/* The editing side: home for the owner and editors, the desk doors, one desk's lanes and cards. Built from the
   shared parts in components.css; only what these pages add lives here. */

/* ---- home ---- */
.ehome .hero h1 { max-width: 20ch; }
.lede { margin-top: var(--s2); color: var(--muted); min-height: 1.55em; }
.sechead { display: flex; align-items: baseline; gap: var(--s3); }
.sechead .link { margin-left: auto; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---- the PC is asleep: a calm notice, and the last known cards greyed ---- */
.asleep {
  display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s4); border-radius: var(--r-lg);
  background: var(--brass-soft); border: 1px solid var(--line-strong);
}
.asleep .i { width: 22px; height: 22px; margin-top: 3px; color: var(--brass-ink); }
.asleep b { display: block; font: 600 var(--t-h3)/1.3 var(--serif); letter-spacing: -.01em; }
.asleep span { display: block; margin-top: 2px; font-size: var(--t-small); }
.deskpage .asleep, .deskspage .asleep { margin-bottom: var(--s4); }
.deskgrid.stale .deskdoor, .deskpage.stale .vcard, .deskpage.stale .drow {
  opacity: .55; filter: grayscale(1); pointer-events: none;
}

/* ---- desk doors ---- */
.deskgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deskgrid > .empty { grid-column: 1 / -1; }
a.card.deskdoor { display: flex; flex-direction: column; min-height: 152px; padding: var(--s4); }
.deskdoor h3 { margin-top: 6px; font-size: 1.1875rem; line-height: 1.2; overflow-wrap: anywhere; }
.dd-num { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: var(--s3); }
.dd-num b { font: 500 2.25rem/1 var(--serif); letter-spacing: -.02em; color: var(--line-strong); }
.dd-num span { font-size: var(--t-small); color: var(--muted); }
.dd-sub { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.deskdoor.hot { border-color: var(--line-strong); }
.deskdoor.hot .dd-num b { color: var(--brass-ink); }
.deskdoor.hot .dd-num span { color: var(--ink); font-weight: 600; }
@media (min-width: 700px) { .deskgrid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: var(--s4); } }

/* ---- the daily note ---- */
.notecard { display: grid; gap: var(--s3); }
.notetext { font-size: 1.0625rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.notetext p + p { margin-top: var(--s3); }
.notetext.old { color: var(--muted); }
.notetext.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
[data-noteread] { display: grid; gap: var(--s3); }
.noteform { display: grid; gap: var(--s3); }
.noteform textarea { min-height: 84px; }
.notemsg { color: var(--bad); font-weight: 500; }
.notegrid { display: grid; gap: var(--s4); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.notegrid h4 {
  margin: 0 0 6px; font: 700 var(--t-micro)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.notegrid h4:not(:first-child) { margin-top: var(--s4); }
.dots { display: grid; gap: 6px; }
.dots li { position: relative; padding-left: 16px; font-size: var(--t-small); }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
}
.notepop { margin-top: var(--s2); }
@media (min-width: 700px) { .notegrid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }

/* ---- an editor's "what happened" list and the kill notice ---- */
.yours { padding: 0 var(--s4); }
.yrow { display: flex; align-items: center; gap: var(--s3); min-height: 60px; padding: var(--s3) 0; }
.y-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brass-soft); }
.y-ico .i { width: 16px; height: 16px; }
.y-text { flex: 1; min-width: 0; font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.y-when { flex: none; }
.kills { display: grid; gap: var(--s3); }
.kills li { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--bad-soft); }
.kills b { display: block; font: 600 1.0625rem/1.3 var(--serif); }
.kills p { margin: 4px 0 6px; }

/* ---- one desk ---- */
.deskpage .pagehead { margin-bottom: var(--s4); }
.deskpage .tabs { margin-bottom: var(--s4); }
.vgrid { display: grid; gap: var(--s3); }
a.card.vcard { position: relative; display: flex; align-items: stretch; gap: var(--s4); padding: var(--s3); }
.vcard .cover { display: grid; place-items: center; flex: none; align-self: flex-start; width: 88px; border-radius: var(--r-sm); }
.vcard .cover img { position: absolute; inset: 0; }
.nocover { width: 22px; height: 22px; color: #6E6654; }
.cover img:not([hidden]) + .nocover { display: none; }
.vc-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 2px 0; }
.vc-text h3, .vc-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vc-text h3 { font-size: 1.125rem; line-height: 1.25; overflow-wrap: anywhere; }
.vc-line { color: var(--muted); font-size: var(--t-small); line-height: 1.4; overflow-wrap: anywhere; }
.vc-prog { display: grid; gap: 5px; width: 100%; }
.vc-meta { margin-top: auto; padding-top: 2px; font-size: var(--t-small); color: var(--muted); }
.longform .vcard .cover { width: 136px; aspect-ratio: 16 / 9; }
.donelist { padding: 0 var(--s4); }
.drow { display: grid; justify-items: start; gap: var(--s2); padding: var(--s3) 0; }
a.drow:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.dr-main { min-width: 0; }
.dr-main h3 { font-size: 1.0625rem; overflow-wrap: anywhere; }
.drow .pill { flex: none; }
@media (min-width: 700px) {
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: var(--s5) var(--s4); }
  a.card.vcard { flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s3) var(--s4); }
  .vcard .cover { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-md); }
  .vcard .pill { position: absolute; left: calc(var(--s3) + 10px); top: calc(var(--s3) + 10px); z-index: 1; }
  .vcard .pill.quiet { background: var(--paper); color: var(--ink); }
  .vc-text { padding: 0 var(--s1); }
  .longform .vgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .longform .vcard .cover { width: 100%; }
  .drow { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
  .dr-main { flex: 1; }
}
/* A desk's lanes: big covers, three to a row on a wide screen (Devin 2026-11-15: "3 videos per row instead of 5"). */
@media (min-width: 700px) { .deskpage .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .deskpage .vgrid, .deskpage.longform .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Hover a card and its newest draft plays in the cover, silent. Leaving stops it and lets the download go. */
.vcard .cover video.peek { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* The DaVinci tab: one video is on the timeline at a time, and it is the top one. The top card stands alone, large;
   the queue sits under it, three to a row. Each card carries its own buttons. */
.vcard .vc-now { display: none; }
.vcard.now .vc-now { display: block; }
.dvlist { display: grid; gap: var(--s4); }
.dvcard { display: flex; gap: var(--s4); padding: var(--s3); min-width: 0; }
.dvcard .cover { display: grid; place-items: center; flex: none; align-self: flex-start; width: 96px; border-radius: var(--r-sm); }
.dvcard .cover img, .dvcard .cover video.peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dvcard .cover video.peek { z-index: 1; background: #000; }
.dv-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: var(--s2); min-width: 0; }
.dv-body h3 { font-size: 1.125rem; line-height: 1.25; overflow-wrap: anywhere; }
.dv-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dv-line { color: var(--muted); font-size: var(--t-small); line-height: 1.4; overflow-wrap: anywhere; }
.dv-line[data-tone="ok"] { color: var(--green); font-weight: 600; }
.dv-line[data-tone="bad"] { color: var(--bad); font-weight: 600; }
.dv-acts { display: flex; flex-wrap: wrap; gap: var(--s2); width: 100%; margin-top: var(--s1); }
.dv-acts .btn { flex: none; }
.dv-acts .btn.primary, .dv-acts .btn.green { flex: 1 1 100%; }
.dvcard .vc-meta { margin-top: auto; }
.deskpage.stale .dvcard { opacity: .55; filter: grayscale(1); }
@media (min-width: 700px) {
  .dvlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .dvcard { position: relative; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s3) var(--s4); }
  .dvcard .cover { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-md); }
  .dvcard .pill { position: absolute; left: calc(var(--s3) + 10px); top: calc(var(--s3) + 10px); z-index: 2; }
  .dvcard .pill.quiet { background: var(--paper); color: var(--ink); }
  .dv-body { padding: 0 var(--s1); }
  .dvlist > .dvcard:first-child { grid-column: 1 / -1; flex-direction: row; gap: var(--s5); padding: var(--s4); }
  .dvlist > .dvcard:first-child .cover { flex: none; width: min(42%, 380px); }
  .dvlist > .dvcard:first-child .pill { left: calc(var(--s4) + 10px); top: calc(var(--s4) + 10px); }
  .dvlist > .dvcard:first-child .dv-body { justify-content: center; gap: var(--s3); padding: 0; }
  .dvlist > .dvcard:first-child h3 { font-size: 1.75rem; }
  .dvlist > .dvcard:first-child .dv-line { font-size: var(--t-body); }
  .dvlist > .dvcard:first-child .dv-acts .btn { flex: none; }
  .dvlist > .dvcard:first-child .vc-meta { margin-top: var(--s2); }
  .longform .dvcard .cover { aspect-ratio: 16 / 9; }
  .longform .dvlist > .dvcard:first-child .cover { width: min(60%, 640px); }
}
@media (min-width: 1000px) { .dvlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- the owner's brand doors and a brand's page of big buttons (Devin 2026-11-15) ---- */
.brandgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brandgrid > .empty { grid-column: 1 / -1; }
a.card.branddoor { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3); }
.branddoor h3 { padding: 0 var(--s1) var(--s1); font-size: 1.1875rem; line-height: 1.2; overflow-wrap: anywhere; }
a.card.branddoor:hover { border-color: var(--line-strong); }
/* A logo sits on its own black plate in both looks (Devin 2026-11-15). */
.logoplate {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14%; overflow: hidden;
  border-radius: var(--r-md); background: #000; color: #fff;
}
.logoplate img { position: absolute; inset: 12% 14%; width: 72%; height: 76%; object-fit: contain; }
.logoplate b { font: 600 1.25rem/1.2 var(--serif); text-align: center; }
.brandhead { display: flex; align-items: center; gap: var(--s4); margin: var(--s3) 0 var(--s5); }
.brandhead .logoplate { flex: none; width: 132px; padding: 12px; border: 1px solid var(--line); }
.hubgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.card.hubbtn { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: var(--s4); }
a.card.hubbtn:hover { border-color: var(--line-strong); }
.hub-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s2); border-radius: 50%;
  background: var(--brass-soft); color: var(--brass-ink); }
.hub-ico .i { width: 22px; height: 22px; }
.hubbtn b { font: 600 1.25rem/1.2 var(--serif); letter-spacing: -.01em; }
.hub-sub { color: var(--muted); font-size: var(--t-small); line-height: 1.4; }
@media (min-width: 700px) {
  .brandgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .hubgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  a.card.hubbtn { min-height: 168px; padding: var(--s5); }
  .hubbtn b { font-size: 1.5rem; }
  .brandhead .logoplate { width: 180px; }
}
@media (min-width: 1100px) { .hubgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* ---- Avalon's posting order (no dates) ---- */
.polist { display: grid; gap: var(--s2); margin-top: var(--s4); }
.porow { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); }
.po-n { flex: none; width: 2ch; font: 600 1.25rem/1 var(--serif); color: var(--brass-ink); text-align: right; }
.po-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.po-text b { overflow-wrap: anywhere; }

/* ---- posting order: thumbnail + player per video (Devin 2026-11-16) ---- */
.po-vid { flex: none; width: clamp(96px, 22vw, 168px); aspect-ratio: 9 / 16; border-radius: var(--r2, 10px); overflow: hidden;
  background: #000; display: grid; place-items: center; }
.po-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-none { color: #aaa; text-align: center; padding: var(--s2); }
.po-btns { flex: none; display: grid; gap: var(--s2); justify-items: center; }
.po-link { display: block; margin: 0 0 var(--s3); font-weight: 600; }
@media (max-width: 640px) {
  .porow { flex-wrap: wrap; }
  .po-text { flex: 1 1 0; }
  .po-btns { width: 100%; display: flex; justify-content: flex-end; gap: var(--s3); }
}

/* ---- Pin on the bottom of a card (Devin 2026-11-24; 11-16 it was a round button in the corner) ---- */
.vcard .vc-pins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vcard .vc-pins[hidden] { display: none; }
.vcard .vc-pin { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: inherit; font-weight: 700;
  font-size: 13px; cursor: pointer; }
.vcard .vc-pin svg { width: 16px; height: 16px; }
.vcard .vc-pin:hover { background: rgba(127, 127, 127, .14); }
.vcard .vc-pin[aria-pressed="true"] { background: var(--brass, #c9a227); border-color: transparent; color: #111; }
.vcard:has(.vc-nf:not([hidden])) .vc-text { padding-right: 50px; }
/* The line every pinned card sits under. It spans the whole grid. */
.pin-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4);
  padding-top: var(--s4); border-top: 2px solid var(--line-strong); }
.pin-divider.top { margin-top: 0; }
.pin-divider svg { width: 18px; height: 18px; color: var(--brass, #c9a227); }
/* NF = needs film (Devin 2026-11-18): a round button beside the pin. */
.vcard .vc-nf { position: absolute; top: var(--s2); right: var(--s2); z-index: 2; border-radius: 999px; width: 44px;
  height: 44px; background: rgba(0, 0, 0, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .25); font-weight: 800;
  font-size: 13px; letter-spacing: .02em; }
.vcard .vc-nf:hover { background: rgba(0, 0, 0, .8); }
.vcard .vc-nf[aria-pressed="true"], .nfbtn[aria-pressed="true"] { background: var(--brass, #c9a227); color: #111; }
.nfbtn { border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 800; font-size: 13px; }
.vcard.pinned { box-shadow: inset 3px 0 0 var(--brass, #c9a227); }
/* The DaVinci line's Up / Down arrows (2026-11-16): round outlined buttons so they read as buttons. */
.dv-acts .dv-arrow { flex: none; background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); }
