/**
 * AutoTube. The same board the Flythrough studio uses, word for word: one pad
 * at the top, the steps under it with their price, then the frames laid out as
 * a grid. Every rule is fenced behind .at-page so nothing leaks onto fly.css.
 */

.at-page {
    --bg: #0F1012; --panel: #17181A; --card: #212225; --line: rgba(255, 255, 255, .09);
    --ink: #F4F4F5; --ink-2: #D6D6D9; --lime: #D3F34B;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, sans-serif;
}
.at-page * { box-sizing: border-box; }
.at-page [hidden] { display: none !important; }

/* the page scrolls, fly.css locks the studio shell in place */
html.at-html, html.at-html body { height: auto; overflow: visible; }

/* ---------- buttons ---------- */

.at-page .btn {
    border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px;
    padding: 12px 18px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.at-page .btn:hover { border-color: rgba(255, 255, 255, .22); }
.at-page .btn-go {
    position: relative; overflow: hidden; isolation: isolate; color: #14140f; font-weight: 700;
    border: 1px solid rgba(211, 243, 75, .5);
    background: linear-gradient(180deg, #E4FF63 0%, #D3F34B 46%, #A8C531 100%);
    box-shadow: 0 10px 26px rgba(211, 243, 75, .18);
}
.at-page .btn-go:hover { filter: brightness(1.04); }
.at-page .btn-go:active { transform: translateY(1px); }
.at-page .btn-go:disabled { cursor: not-allowed; filter: grayscale(.55) brightness(.75); box-shadow: none; }
.at-page .btn-big { padding: 14px 26px; font-size: 14px; }
/* The sparkle marks a button that spends an AI model, the same mark the rest
   of the studio uses, and fly-busy.js turns it into the spinner while it works. */
.at-page .btn-go .fly-pb-spark { display: inline-flex; vertical-align: -3px; margin-left: 6px; }
.at-page .btn-go .fly-pb-spark svg { width: 16px; height: 16px; }
.at-page .btn-bar {
    padding: 9px 16px; font-size: 12px; font-family: Oswald, Inter, sans-serif;
    letter-spacing: .16em; text-transform: uppercase;
}
.at-page .btn-mini {
    background: transparent; border: 1px solid var(--line); color: var(--lime); border-radius: 4px;
    padding: 5px 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 600; cursor: pointer; font-family: inherit;
}
.at-page .btn-mini:hover { border-color: var(--lime); }

/* ---------- the pad ---------- */

/* ---------- the hero, the same block every Fly page opens with ---------- */

.at-page .at-hero {
    height: auto;
    padding: 104px 28px 34px;
    background: radial-gradient(120% 140% at 50% 0%, #1A1B1E 0%, var(--bg) 62%);
    /* The cinema hero fades its own bottom edge away, which would swallow the
       paragraph. Here the words are the picture, so the fade goes. */
    -webkit-mask-image: none;
    mask-image: none;
}
.at-page .at-hero .fly-cine-hero-veil { display: none; }
@media (max-width: 900px) { .at-page .at-hero { padding: 84px 20px 26px; height: auto; } }

.at-page .at-hero-copy { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; text-align: center; }
.at-page .at-hero .fly-cine-hero-title { white-space: normal; margin: 0 0 14px; }
.at-page .at-hero .fly-cine-hero-title span { color: var(--lime); opacity: .9; }
.at-page .at-hero-p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-2);
}

.at-page .console { max-width: 1560px; margin: 0 auto; padding: 4px 28px; }
.at-page .console-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.at-page .console-bar-left {
    font-family: Oswald, Inter, sans-serif; font-size: 12px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--ink-2);
}
.at-page .console-bar-right { display: flex; gap: 8px; }

.at-page .pad {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
    display: flex; gap: 18px;
}
.at-page .pad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-page .pad-titlerow,
.at-page .pad-toprow { display: flex; align-items: flex-start; gap: 10px; }
.at-page .pad-toprow { flex: 1; }
.at-page .pad-toprow textarea { flex: 1; }

/* Every explanation on this page lives behind one of these, so the fields
   themselves stay empty and ready to be typed in. */
.at-page .q {
    flex: 0 0 auto;
    width: 20px; height: 20px; padding: 0; margin-top: 2px;
    border: 1px solid var(--line); border-radius: 50%;
    background: transparent; color: var(--ink-2);
    font: 600 11px/1 Inter, sans-serif; cursor: pointer;
}
.at-page .q:hover { color: var(--lime); border-color: rgba(211, 243, 75, .5); }
.at-page .step b .q, .at-page .pad-look .q { margin-left: 6px; vertical-align: middle; }

.at-page .help {
    position: fixed; inset: 0; z-index: 130; background: rgba(0, 0, 0, .6);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.at-page .help[hidden] { display: none !important; }
.at-page .help-box {
    max-width: 460px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.at-page .help-box p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.at-page .help-box .btn-mini { align-self: flex-end; }
.at-page .pad-main .pad-row { margin-top: auto; }
.at-page .title-in {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
    color: var(--ink); font-family: inherit; font-size: 13px; padding: 0 0 10px; margin-bottom: 12px;
}
.at-page .title-in:focus { outline: none; border-bottom-color: rgba(211, 243, 75, .45); }
.at-page .title-in::placeholder { color: var(--ink-2); }
.at-page .pad textarea {
    width: 100%; background: transparent; border: 0; color: var(--ink); font-family: inherit;
    font-size: 16px; line-height: 1.6; min-height: 84px; resize: vertical;
}
.at-page .pad textarea:focus { outline: none; }
.at-page .pad textarea::placeholder { color: var(--ink-2); }
.at-page .pad-row {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.at-page .pad-row select {
    background: var(--card); border: 1px solid var(--line); color: var(--ink);
    border-radius: 999px; padding: 9px 14px; font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.at-page .pad-row select:focus { outline: none; border-color: rgba(255, 255, 255, .22); }
.at-page .pad-row .spacer { flex: 1; }
.at-page .pad-row .price {
    font-family: Oswald, Inter, sans-serif; font-size: 12px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--ink-2);
}
.at-page .pad-row .price b { color: var(--lime); font-weight: 500; }

.at-page .pad-look {
    width: 240px; min-width: 240px; border: 1px dashed var(--line); border-radius: 12px;
    padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.at-page .pad-look span {
    font-family: Oswald, Inter, sans-serif; font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-2);
}
.at-page .pad-look textarea {
    flex: 1; min-height: 90px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}

/* ---------- the steps ---------- */

.at-page .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 1000px) { .at-page .steps { grid-template-columns: 1fr; } }

.at-page .step {
    position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.at-page .step .sn {
    font-family: Oswald, Inter, sans-serif; font-size: 11px; letter-spacing: .24em;
    text-transform: uppercase; color: var(--ink-2); opacity: .85;
}
/* A step that is finished ticks itself off, so the board can be read at a glance */
.at-page .step .tick {
    position: absolute; top: 14px; right: 14px;
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent;
}
.at-page .step.is-done .tick { border-color: var(--lime); background: var(--lime); }
.at-page .step.is-done .tick::after {
    content: ""; position: absolute; left: 7px; top: 3px;
    width: 5px; height: 10px; border: solid #14140f;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.at-page .step.is-done { border-color: rgba(211, 243, 75, .28); }

.at-page .step.is-now { border-color: rgba(211, 243, 75, .35); }
.at-page .step.is-now .sn { color: var(--lime); }
.at-page .step b {
    font-family: Oswald, Inter, sans-serif; font-size: 17px; letter-spacing: .12em;
    text-transform: uppercase; font-weight: 400;
}
.at-page .step p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.at-page .step-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; }
.at-page .step-row .btn-go { margin-left: auto; }
.at-page .step-row .price {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.at-page .say { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); min-height: 1em; }

/* ---------- the board ---------- */

.at-page .wrap { max-width: 1560px; margin: 0 auto; padding: 34px 28px 140px; }
.at-page .board-head { display: flex; align-items: center; gap: 26px; margin-bottom: 30px; }
.at-page .board-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(211, 243, 75, .28), transparent); }
.at-page .board-title {
    font-family: Oswald, Inter, sans-serif; font-weight: 300; font-size: clamp(26px, 3.6vw, 52px);
    letter-spacing: .26em; text-transform: uppercase; margin: 0; text-align: center;
    color: var(--lime); text-shadow: 0 0 40px rgba(211, 243, 75, .14);
}
/* An empty board is grey. The title only lights up once there is a film in it. */
.at-page .board-title.is-empty { color: #6B6B70; text-shadow: none; }
.at-page .board-head.is-empty .rule { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10), transparent); }

.at-page .board-meta {
    text-align: center; margin: -14px 0 30px; font-size: 12px; letter-spacing: .22em;
    text-transform: uppercase; color: var(--ink-2); font-family: Oswald, Inter, sans-serif;
}

/* Four across, so the narration under a frame has room to be read. The thin
   column between two cards is where a new scene is dropped in. */
.at-page .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr) 26px);
    gap: 14px 0;
    align-items: start;
}
@media (max-width: 1280px) { .at-page .grid { grid-template-columns: repeat(3, minmax(0, 1fr) 26px); } }
@media (max-width: 760px)  { .at-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr) 26px); } }
@media (max-width: 520px)  { .at-page .grid { grid-template-columns: minmax(0, 1fr) 26px; } }

.at-page .plus {
    align-self: stretch;
    min-height: 120px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #55555C; font-size: 20px; line-height: 1;
}
.at-page .plus span {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px dashed var(--line);
}
.at-page .plus:hover { color: var(--lime); }
.at-page .plus:hover span { border-color: var(--lime); border-style: solid; }

/* Dragging a scene into another place */
.at-page .frame { cursor: grab; }
.at-page .frame.is-dragging { opacity: .4; }
.at-page .frame.drop-here { border-color: var(--lime); transform: translateY(-2px); }
.at-page .frame textarea, .at-page .frame button { cursor: auto; }
.at-page .acts button, .at-page .btn-mini, .at-page .kill { cursor: pointer; }

/* The X that throws a scene away, always in reach on the picture */
.at-page .kill {
    position: absolute; top: 9px; right: 9px; z-index: 3;
    width: 22px; height: 22px; padding: 0;
    background: rgba(20, 20, 22, .72); border: 1px solid var(--line);
    border-radius: 3px; color: var(--ink-2);
    font: 400 15px/1 Inter, sans-serif;
}
.at-page .kill:hover { color: #fff; border-color: #E45858; background: #E45858; }

.at-page .frame {
    background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    position: relative; transition: border-color .18s, transform .18s; animation: atRise .32s ease both;
}
.at-page .frame:hover { border-color: rgba(255, 255, 255, .26); transform: translateY(-2px); }
@keyframes atRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.at-page .shot {
    aspect-ratio: 16/10; position: relative; overflow: hidden; display: flex;
    align-items: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 0%, #454549 0%, #313134 55%, #242426 100%);
}
.at-page .frame.is-empty .shot { background: linear-gradient(180deg, #1D1E21, #141517); }

/* The waiting frames on an untouched board: the same shape, quieter, and they
   do not answer to the mouse because there is nothing in them yet. */
.at-page .frame.is-ghost { cursor: default; opacity: .5; border-style: dashed; }
.at-page .frame.is-ghost:hover { border-color: var(--line); transform: none; }
.at-page .frame.is-ghost .shot { background: linear-gradient(180deg, #191A1D, #131416); }
.at-page .plus.is-ghost { pointer-events: none; opacity: 0; }
.at-page .frame.is-empty .num { color: rgba(255, 255, 255, .10); }
.at-page .shot:after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
}
.at-page .shot img,
.at-page .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.at-page .shot img { cursor: zoom-in; }
.at-page .shot .num {
    font-family: Oswald, Inter, sans-serif; font-size: 54px; font-weight: 300;
    color: rgba(255, 255, 255, .13); letter-spacing: .06em;
}
.at-page .shot.has-img .num, .at-page .shot.has-img:after { display: none; }

.at-page .tag {
    position: absolute; top: 9px; left: 9px; z-index: 2; font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; background: rgba(20, 20, 22, .72); border: 1px solid var(--line);
    border-radius: 3px; padding: 3px 7px; color: var(--ink-2);
}
/* The X owns the corner, the seconds sit just inside it. This is the order on
   every card in the studio from here on. */
.at-page .dur {
    position: absolute; top: 9px; right: 37px; z-index: 2; font-family: Oswald, Inter, sans-serif;
    font-size: 11px; letter-spacing: .14em; background: rgba(20, 20, 22, .72);
    border: 1px solid var(--line); border-radius: 3px; padding: 3px 7px; color: var(--lime);
}

.at-page .shot.working .num { display: none; }
.at-page .shot-ring { display: none; }
.at-page .shot.working .shot-ring { display: flex; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center; }
.at-page .shot.working .shot-ring:before {
    content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .12); border-top-color: var(--lime);
    animation: atGoSpin .9s linear infinite;
}
@keyframes atGoSpin { to { transform: rotate(360deg); } }

.at-page .cap { padding: 11px 12px 13px; border-top: 1px solid var(--line); }
.at-page .cap .idx {
    font-family: Oswald, Inter, sans-serif; font-size: 12px; letter-spacing: .18em;
    color: var(--ink-2); text-transform: uppercase; display: block; margin-bottom: 5px;
}
.at-page .cap .txt { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

.at-page .acts {
    position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; gap: 6px; padding: 8px;
    opacity: 0; transform: translateY(6px); transition: .18s;
    background: linear-gradient(180deg, transparent, rgba(20, 20, 22, .88));
}
.at-page .frame:hover .acts, .at-page .shot.working .acts { opacity: 1; transform: none; }
.at-page .acts button {
    flex: 1; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    background: rgba(36, 36, 38, .94); border: 1px solid var(--line); color: var(--ink);
    border-radius: 3px; padding: 7px 2px; cursor: pointer; font-family: inherit;
    /* One word, one line. A label that wraps makes the row jump. */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.at-page .acts button:hover { border-color: var(--lime); color: var(--lime); }
/* Motion is the one action here that costs real money, so it is marked */
.at-page .acts button.is-move { border-color: rgba(211, 243, 75, .45); color: var(--lime); }

/* The words of one scene, written in a panel instead of stretching the card */
/* Centred on the screen you are looking at, not pinned to the top of it */
.at-page .sceneed {
    position: fixed; inset: 0; z-index: 125; background: rgba(0, 0, 0, .62);
    display: flex; align-items: center; justify-content: center; padding: 30px 20px; overflow-y: auto;
}
.at-page .sceneed[hidden] { display: none !important; }
.at-page .sceneed-box {
    width: min(560px, 100%); max-height: calc(100vh - 60px); overflow-y: auto;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.at-page .sceneed-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 8px;
}
.at-page .sceneed-head b {
    font-family: Oswald, Inter, sans-serif; font-size: 15px;
    letter-spacing: .14em; text-transform: uppercase;
}
.at-page .plabel {
    font-family: Oswald, Inter, sans-serif; font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-2); display: block; margin: 10px 0 4px;
}
.at-page .sceneed textarea {
    width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-family: inherit; font-size: 13px; line-height: 1.55;
    padding: 10px 12px; resize: vertical;
}
.at-page .sceneed textarea:focus { outline: none; border-color: rgba(211, 243, 75, .45); }
.at-page .sceneed .btn-go { align-self: flex-start; margin-top: 8px; }
.at-page .sceneed .say { margin: 8px 0 0; }
.at-page .sceneed-foot {
    display: flex; align-items: center; gap: 8px;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.at-page .sceneed-foot .spacer { flex: 1; }
.at-page .sceneed-foot .btn-go { margin-top: 0; align-self: auto; }

/* ---------- the closing block ---------- */

.at-page .finish { margin: 26px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.at-page .finish-stats {
    display: flex; gap: 34px; font-family: Oswald, Inter, sans-serif; font-size: 17px;
    letter-spacing: .2em; text-transform: uppercase; color: var(--lime);
}
.at-page .finish-stats b { color: var(--lime); font-weight: 500; font-size: 19px; }
.at-page .finish-note { margin: 0; font-size: 13px; color: var(--ink-2); }

.at-page .progress { display: flex; align-items: center; gap: 12px; width: min(560px, 90%); font-size: 12px; color: var(--ink-2); }
.at-page .progress-bar { flex: 1; height: 6px; border-radius: 4px; background: #1c1c20; overflow: hidden; }
.at-page .progress-bar i { display: block; height: 100%; width: 3%; background: var(--lime); transition: width .4s ease; }

.at-page .film { width: 100%; max-width: 900px; margin: 22px auto 0; }
.at-page .film-stage {
    position: relative; width: 100%; aspect-ratio: 16/9; margin: 0 auto;
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000;
}
.at-page .film.vertical .film-stage { max-width: 460px; aspect-ratio: 9/16; }
.at-page .film.square .film-stage   { max-width: 680px; aspect-ratio: 1/1; }
.at-page .film-stage video { width: 100%; height: 100%; display: block; }
.at-page .film-wait {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; text-align: center; padding: 20px;
}
.at-page .film-wait b { color: var(--ink); font-size: 14px; font-family: Oswald, Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.at-page .film-wait span { color: var(--ink-2); font-size: 12px; }
.at-page .film-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* the listing copy for YouTube, folded away until the script exists */
/* The film and the listing stand side by side, so what you copy is next to
   what you are copying it for. They stack on a narrow screen. */
.at-page .finish-cols {
    width: 100%; margin: 10px auto 0; display: grid; gap: 40px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start;
}
.at-page .finish-cols > .film { margin: 0; max-width: none; }
.at-page .listing { max-width: none; margin: 0; display: grid; gap: 14px; align-content: start; padding-bottom: 10px; }
@media (max-width: 900px) {
    .at-page .finish-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.at-page .listing span {
    font-family: Oswald, Inter, sans-serif; font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-2);
}
.at-page .listing input, .at-page .listing textarea {
    width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-family: inherit; font-size: 13px; line-height: 1.55; padding: 10px 12px; resize: vertical;
}
.at-page .listing input:focus, .at-page .listing textarea:focus { outline: none; border-color: rgba(211, 243, 75, .45); }
.at-page .listing input[readonly] { color: var(--ink); cursor: default; }
.at-page .listing-say { color: var(--ink-2); font-size: 12.5px; margin: 0; }
.at-page .listing-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.at-page .listing-copy {
    background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
    font-family: Oswald, Inter, sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    padding: 5px 12px; cursor: pointer; flex: none;
}
.at-page .listing-copy:hover { border-color: rgba(211, 243, 75, .45); }

/* My projects: a drawer on the left with a tab that is always within reach,
   the same one Shot List and the Flythrough studio carry. */
.at-page .proj-tab {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl; z-index: 55; background: var(--panel);
    border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0;
    color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; padding: 16px 8px; cursor: pointer;
}
.at-page .proj-tab:hover { color: var(--lime); border-color: rgba(211, 243, 75, .45); }

.at-page .boards-panel {
    position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55);
    display: none; align-items: stretch; justify-content: flex-start;
}
.at-page .boards-panel.open { display: flex; }
.at-page .boards-box {
    width: min(340px, 86vw); height: 100%; background: #17181A;
    border-right: 1px solid var(--line); padding: 18px 18px 16px;
    display: flex; flex-direction: column;
}
.at-page .boards-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.at-page .boards-head b {
    font-family: Oswald, Inter, sans-serif; font-size: 15px;
    letter-spacing: .14em; text-transform: uppercase;
}
.at-page .boards-head div { display: flex; gap: 8px; }
.at-page .boards-list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow-y: auto; }
.at-page .boards-row {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 8px;
}
.at-page .boards-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.at-page .boards-row b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.at-page .boards-row span { font-size: 11px; color: var(--ink-2); }
.at-page .boards-empty, .at-page .boards-note { font-size: 12px; color: var(--ink-2); margin-top: 12px; }

.at-page .lightbox {
    position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .88); display: none;
    align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.at-page .lightbox.open { display: flex; }
.at-page .lightbox-close {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    background: rgba(36, 36, 38, .94); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: 9px 16px; font: 600 12px/1 Inter, sans-serif;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.at-page .lightbox-close:hover { border-color: var(--lime); color: var(--lime); }
.at-page .lightbox img,
.at-page .lightbox video { max-width: 100%; max-height: 100%; border-radius: 10px; }
/* The clip is watched here, so the controls have to stay clickable inside a
   backdrop whose whole job is to close on a click. */
.at-page .lightbox video { cursor: default; }
.at-page .shot video { cursor: zoom-in; }
