/* bannerpro — quiet chrome, the banners are the hero. */
:root {
  --paper: #FBFBFD;
  --surface: #FFFFFF;
  --stage: #ECECF0;
  --stage-dot: #D6D6DD;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --muted: #6E6E73;
  --line: #DCDCE1;
  --line-soft: #EBEBEF;
  --accent: #2B50E8;
  --accent-hover: #1F3FCC;
  --accent-soft: #E8EDFF;
  --danger: #C4321C;

  --st-review: #A86200;
  --st-review-bg: #FFF3E0;
  --st-updated: #0B6F8C;
  --st-updated-bg: #E2F4F8;
  --st-amended: #6B3BC4;
  --st-amended-bg: #F1EAFD;
  --st-approved: #1C7D37;
  --st-approved-bg: #E5F5E9;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-frame: 0 1px 2px rgba(29, 29, 31, .06), 0 10px 28px -14px rgba(29, 29, 31, .28);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; }
h1.display { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Top bar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 251, 253, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -0.03em; }
.wordmark:hover { text-decoration: none; }
.logo { fill: var(--accent); flex: none; }
.logo rect:first-child { fill: var(--ink); }
.wordmark-lg { font-size: 22px; }
.wordmark-lg .logo { width: 34px; height: 34px; }
.mainnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a { color: var(--ink-2); font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.mainnav a:hover { text-decoration: none; background: rgba(0, 0, 0, .05); }
.mainnav a.is-active { color: var(--ink); background: rgba(0, 0, 0, .07); font-weight: 500; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); padding: 8px; display: grid;
}
.usermenu-name { padding: 8px 10px 0; font-weight: 600; }
.usermenu-meta { padding: 0 10px 8px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.usermenu-panel a, .usermenu-panel button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer;
}
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--paper); text-decoration: none; }

/* ---- Avatars ------------------------------------------------------------- */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--av);
}
.avatar svg { width: 64%; height: 64%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar svg .f { fill: #fff; stroke: none; }

/* ---- Page scaffolding ---------------------------------------------------- */
main { padding-bottom: 96px; }
.page { max-width: 1200px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.page-wide { max-width: 1440px; }
.narrow { max-width: 680px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head > div { display: grid; gap: 10px; max-width: 70ch; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.section-title { margin-bottom: 14px; }
.hint, .optional { color: var(--muted); font-size: 14px; font-weight: 400; }
.optional { font-size: 13px; }
.sub { display: block; color: var(--muted); font-size: 13px; }
.count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.fineprint { color: var(--muted); font-size: 13px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; border-color: #C5C5CC; background: #F5F5F7; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #FDEDEA; border-color: #F2B8AE; }
.btn-small { min-height: 32px; padding: 0 13px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--ink-2);
  font: 500 16px/1 var(--font); cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover:not(:disabled) { background: var(--line-soft); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover { background: #FDEDEA; color: var(--danger); }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--danger); text-decoration: underline; }

/* ---- Forms --------------------------------------------------------------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
input, select, textarea {
  font: 400 16px/1.4 var(--font); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 10px 12px; min-height: 44px; width: 100%;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stack { display: grid; gap: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: end; }
.span-all { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1 1 180px; width: auto; }
.inline-form select { flex: 0 1 200px; width: auto; }
.form-error { color: var(--danger); background: #FDEDEA; border-radius: 10px; padding: 10px 14px; font-size: 15px; }

/* ---- Cards & layout ------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card-head > div { display: grid; gap: 6px; }
.card-danger { border-color: #F6D3CC; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }

.flash { max-width: 1200px; margin: 20px auto 0; padding: 0 var(--gutter); }
.flash > p, .flash > ul { background: var(--surface); }
.flash p { border-radius: 12px; padding: 12px 16px; font-size: 15px; border: 1px solid var(--line-soft); }
.flash-success p { background: var(--st-approved-bg); color: #155E29; border-color: transparent; }
.flash-error p { background: #FDEDEA; color: #9A2512; border-color: transparent; }
.flash-warning p { background: var(--st-review-bg); color: #7A4700; border-color: transparent; }
.flash ul { margin: 8px 0 0; padding: 8px 16px 8px 32px; border-radius: 12px; }

.empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); display: grid; gap: 10px; justify-items: center; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty-page { padding-top: 96px; display: grid; gap: 16px; }

/* ---- Status -------------------------------------------------------------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--st, var(--muted)); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--muted)); flex: none; display: inline-block; }
.status-review { --st: var(--st-review); --st-bg: var(--st-review-bg); }
.status-updated { --st: var(--st-updated); --st-bg: var(--st-updated-bg); }
.status-amended { --st: var(--st-amended); --st-bg: var(--st-amended-bg); }
.status-approved { --st: var(--st-approved); --st-bg: var(--st-approved-bg); }

.status-select {
  width: auto; min-height: 30px; padding: 3px 28px 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 0; cursor: pointer;
  color: var(--st); background-color: var(--st-bg);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.status-select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 30%, transparent); }

/* ---- Segmented control --------------------------------------------------- */
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: rgba(0, 0, 0, .055); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a.is-active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented .status-dot { width: 7px; height: 7px; }

/* ---- Dashboard ----------------------------------------------------------- */
.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project-list li { border-bottom: 1px solid var(--line); }
.project-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px 120px 210px; gap: 24px; align-items: center;
  padding: 22px 8px; color: inherit;
}
.project-row:hover { text-decoration: none; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .025) 12%, rgba(0, 0, 0, .025) 88%, transparent); }
.project-row:hover .project-name { color: var(--accent); }
.project-main { display: grid; gap: 2px; min-width: 0; }
.project-name { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; transition: color .15s; }
.project-client, .project-when { color: var(--muted); font-size: 14px; }
.project-when { text-align: right; }
.project-progress { display: grid; gap: 7px; }
.meter { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--st-approved); border-radius: 99px; }
.meter-label { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-attn { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* ---- Stage: where banners are proofed ------------------------------------ */
.toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stage { display: flex; flex-wrap: wrap; gap: 40px 32px; align-items: flex-start; }
/* One card per banner: the banner plus its size, details, status and comments. */
.spot {
  --pad: 16px;
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  width: calc(max(var(--w), 200px) + 2px + var(--pad) * 2); max-width: 100%; min-width: 0;
  padding: var(--pad); background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-frame); scroll-margin-top: 80px;
}
.spot:target { outline: 3px solid var(--accent); outline-offset: 4px; }
/* The banner itself: white, 1px grey border, true size. Wider than the screen? app.js scales it down to fit. */
.spot-frame {
  width: calc(var(--w) + 2px); max-width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden; line-height: 0;
}
.spot-frame.is-fit { overflow: hidden; }
.spot-frame iframe { display: block; border: 0; max-width: none; background: var(--surface); transform-origin: 0 0; }
.spot-scale { font-size: 12px; color: var(--muted); }
.spot-cap { display: grid; gap: 4px; min-width: 0; }
.spot-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dims { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dims-lg { font-size: inherit; }
.spot-meta { font-size: 14px; }
.spot-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.spot-comments { color: var(--muted); white-space: nowrap; }
.spot-by { font-size: 12px; color: var(--muted); }
.status-quick { display: flex; gap: 6px; }

/* ---- Banner detail ------------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.detail-stage { display: grid; gap: 16px; min-width: 0; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.detail-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
.detail-name { color: var(--muted); font-size: .5em; font-weight: 500; letter-spacing: -0.015em; }
.stage-single { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 420px; padding: 32px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-frame); }
.stage-single .spot-scale { justify-self: center; }
.pager { display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 12px; }
.pager-pos { color: var(--muted); font-variant-numeric: tabular-nums; }

.detail-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.panel-block { padding: 24px; display: grid; gap: 14px; }
.panel-block + .panel-block { border-top: 1px solid var(--line-soft); }
.panel-block h2 { font-size: 17px; }
.panel-note { font-size: 14px; color: var(--muted); }
.panel-note strong { color: var(--ink); font-weight: 600; }

.status-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-option {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 500 15px/1 var(--font); color: var(--ink-2); cursor: pointer; text-align: left;
}
.status-option:hover { border-color: var(--st); color: var(--st); }
.status-option.is-current { background: var(--st-bg); border-color: transparent; color: var(--st); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--st); }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.comment-body { display: grid; gap: 3px; justify-items: start; }
.comment-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; column-gap: 8px; }
.comment-meta strong { color: var(--ink); font-weight: 600; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.comment-form { gap: 10px; }
.comment-form .btn { justify-self: start; }

.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.history li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.history time { color: var(--muted); font-size: 13px; }

/* ---- Account ------------------------------------------------------------- */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
.avatar-choice { border: 2px solid transparent; border-radius: 50%; padding: 6px; background: none; cursor: pointer; justify-self: center; line-height: 0; }
.avatar-choice:hover { border-color: var(--line); }
.avatar-choice.is-current { border-color: var(--ink); }
.details { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* ---- Admin --------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; width: 1%; white-space: nowrap; }
.user-cell { display: flex; align-items: center; gap: 12px; }

.banner-admin { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.banner-admin li {
  display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 10px 4px; border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.banner-admin li.is-dragging { opacity: .4; }
.banner-admin li.is-over { box-shadow: inset 0 2px 0 var(--accent); }
.drag { cursor: grab; color: #B0B0B8; letter-spacing: -3px; font-size: 14px; padding-top: 8px; user-select: none; }
.shape { width: 40px; height: 36px; display: grid; place-items: center; }
.shape span { display: block; max-width: 100%; max-height: 100%; background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 2px; min-width: 3px; min-height: 3px; }
.banner-edit summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 160px) 100px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 36px; }
.banner-edit summary::-webkit-details-marker { display: none; }
.banner-edit[open] summary { margin-bottom: 14px; }
.banner-edit form { padding: 0 0 12px; }
.banner-admin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-admin-url { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 2px; align-items: center; }
.save-state { min-height: 1.4em; }
.add-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 8px; }
.add-banners h3 { margin-bottom: 2px; }
.add-many textarea { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }

.edit-list { list-style: none; margin: 0; padding: 0; display: grid; }
.edit-list li { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.edit-list li > form:first-child { flex: 1; }
.edit-list .sub { white-space: nowrap; }

.row-menu { position: relative; display: inline-block; text-align: left; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(340px, 86vw);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); padding: 18px; display: grid; gap: 14px; white-space: normal;
}
.row-menu-foot { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.credentials {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center;
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 24px;
}
.credentials h2 { font-size: 19px; margin-bottom: 4px; }
.credentials dl { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: 14px; }
.credentials dt { color: var(--muted); }
.credentials dd { margin: 0; }
.credentials code { font-size: 15px; background: var(--surface); padding: 2px 8px; border-radius: 6px; user-select: all; }

/* ---- Sign in ------------------------------------------------------------- */
.login-body main { padding: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-card { align-self: center; justify-self: center; width: min(420px, 100%); padding: 48px 24px; display: grid; gap: 18px; }
.login-card h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 24px; }
.login-card .lede { font-size: 17px; margin-bottom: 8px; }
.login-art {
  display: grid; place-items: center; overflow: hidden;
  background-color: var(--stage);
  background-image: radial-gradient(var(--stage-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.ghost { position: absolute; background: var(--surface); box-shadow: var(--shadow-frame); animation: ghost-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.ghost::after { content: ''; position: absolute; inset: 12%; border-radius: 3px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
/* Real ad-unit proportions, laid out like a proof sheet. */
.login-sheet { position: relative; width: 437px; height: 438px; }
.g-leader { width: 437px; height: 54px; left: 0; top: 0; animation-delay: .05s; }
.g-tower  { width: 96px;  height: 360px; left: 0; top: 78px; animation-delay: .15s; }
.g-half   { width: 180px; height: 360px; left: 120px; top: 78px; animation-delay: .25s; }
.g-rect   { width: 113px; height: 94px; left: 324px; top: 78px; animation-delay: .35s; background: var(--accent); }
.g-rect::after { background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 70%); }
.g-mobile { width: 113px; height: 18px; left: 324px; top: 196px; animation-delay: .45s; }
@keyframes ghost-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .detail { grid-template-columns: 1fr; }
  .detail-panel { position: static; max-height: none; }
  .project-row { grid-template-columns: minmax(0, 1fr) 180px; }
  .project-attn, .project-when { display: none; }
}
@media (max-width: 860px) {
  .split, .add-banners { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .credentials { grid-template-columns: 1fr; }
  .banner-edit summary { grid-template-columns: auto minmax(0, 1fr); }
  .banner-admin-url { grid-column: 1 / -1; }
  .users-table th:nth-child(3), .users-table td:nth-child(3), .users-table th:nth-child(4), .users-table td:nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .page { padding-top: 28px; }
  .mainnav a { padding: 6px 9px; }
  .topbar-inner { gap: 12px; }
  .wordmark span { display: none; }
  .project-row { grid-template-columns: 1fr; gap: 10px; }
  .stage { gap: 24px; }
  .spot { --pad: 12px; }
  .stage-single { padding: 16px; min-height: 0; }
  .banner-admin li { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .banner-admin .shape { display: none; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
