/* Total Tool marketing portal
   Brand: Shop Orange on charcoal, Bebas Neue for display, Barlow for text (same as the flyers). */

@font-face { font-family: "Barlow"; src: url("/admin/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/admin/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/admin/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/admin/assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* brand */
  --orange: #F78E20;        /* fills: buttons, active markers, rails */
  --orange-ink: #A35407;    /* orange text on light surfaces (5.5:1 on white) */
  --charcoal: #1A1A1A;
  --bay: #EDEFF2;           /* the shop wall the sheets hang on */
  --paper: #FFFFFF;
  --steel: #5C636B;
  --rule: #D9DCE0;
  --danger: #B3261E;
  --good: #2E7D46;

  /* roles */
  --bg: var(--bay);
  --surface: var(--paper);
  --surface-2: #F6F7F9;
  --text: var(--charcoal);
  --muted: var(--steel);
  --line: var(--rule);
  --link: var(--orange-ink);
  --status-live: var(--orange-ink);
  --focus: var(--charcoal);
  --pill-on-bg: var(--charcoal);
  --pill-on-fg: #FFFFFF;
  --sheet-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 20px -12px rgba(0, 0, 0, .5);

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --topbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1A;
    --surface: #232528;
    --surface-2: #2C2F33;
    --text: #F1F2F3;
    --muted: #A9AFB6;
    --line: #3A3D42;
    --link: #F7A54F;
    --status-live: #F7A54F;
    --focus: #F7A54F;
    --pill-on-bg: #F1F2F3;
    --pill-on-fg: #1A1A1A;
    --sheet-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 12px 24px -12px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible, .auth-brand :focus-visible, .boot :focus-visible { outline-color: var(--orange); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--charcoal); font-weight: 700;
  padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- buttons and small controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1.1 var(--body); text-decoration: none; cursor: pointer;
  min-height: 46px; padding: 12px 22px; border-radius: 4px; border: 2px solid transparent;
}
.btn svg { flex: none; }
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: #FFA043; }
.btn-secondary { background: transparent; color: var(--text); border-color: currentColor; }
.btn-secondary:hover { background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 6px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- boot */
.boot {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--charcoal); color: #C9CED6; text-align: center; padding: 24px;
}
.boot img { width: 220px; height: auto; }
.boot p { margin: 0; }

/* ---------- sign in */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 560px); }
.auth-brand {
  background: var(--charcoal); color: #F1F2F3;
  padding: 64px clamp(24px, 6vw, 96px);
  display: grid; align-content: center; gap: 20px;
  border-right: 8px solid var(--orange);
}
.auth-brand img { width: 280px; height: auto; display: block; }
.auth-title {
  font: 400 clamp(72px, 9.5vw, 148px)/.86 var(--display);
  letter-spacing: 1px; margin: 18px 0 0; max-width: 6.5ch;
}
.auth-lede { margin: 6px 0 0; font-size: 21px; line-height: 1.4; color: #C9CED6; max-width: 32ch; }
.auth-who { margin: 0; font-size: 15px; color: #9AA1A9; }
.auth-side { display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 28px 28px 24px;
}
.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px;
  border: 2px solid var(--text); border-radius: 6px; overflow: hidden;
}
.auth-switch button {
  border: 0; background: transparent; color: var(--text); font-weight: 600;
  min-height: 44px; cursor: pointer;
}
.auth-switch button + button { border-left: 1px solid var(--line); }
.auth-switch button[aria-pressed="true"] { background: var(--orange); color: var(--charcoal); }
.auth-h { font: 400 34px/1 var(--display); letter-spacing: .4px; margin: 0 0 6px; }
.auth-form p { margin: 10px 0 0; }
.auth-alt { text-align: center; margin-top: 14px !important; }
.auth-form .btn-block { margin-top: 20px; }
.field { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.field input {
  font: 400 16px/1.3 var(--body); color: var(--text); background: var(--surface);
  min-height: 48px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 6px; width: 100%;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { border-color: var(--text); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.form-error { color: var(--danger); font-weight: 600; font-size: 15px; }
.notice { padding: 12px 14px; border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.45; margin: 0 0 6px; border-left: 4px solid; }
.notice.is-ok { background: #E9F4EC; color: #1E5631; border-color: var(--good); }
.notice.is-error { background: #FBEAEA; color: #8C1D18; border-color: var(--danger); }
.notice.is-info { background: #FFF4E8; color: #5A3204; border-color: var(--orange); }
@media (prefers-color-scheme: dark) {
  .form-error { color: #FF8A80; }
  .field input[aria-invalid="true"] { border-color: #FF8A80; }
  .notice.is-ok { background: rgba(46, 125, 70, .18); color: #CDEBD5; }
  .notice.is-error { background: rgba(179, 38, 30, .2); color: #FFD5D1; border-color: #FF8A80; }
  .notice.is-info { background: rgba(247, 142, 32, .14); color: #FFE2C2; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { border-right: 0; border-bottom: 6px solid var(--orange); padding: 36px 24px 30px; gap: 12px; }
  .auth-brand img { width: 200px; }
  .auth-title { font-size: 68px; margin-top: 10px; max-width: none; }
  .auth-lede { font-size: 18px; }
  .auth-side { place-items: start center; padding: 28px 16px 48px; }
  .auth-card { padding: 22px 18px 20px; }
}

/* ---------- top bar */
.topbar { background: var(--charcoal); color: #F1F2F3; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #2C2F33; }
.topbar-in { max-width: 1480px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; min-height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 124px; height: auto; display: block; }
.brand-name { font-weight: 600; font-size: 15px; color: #C9CED6; padding-left: 14px; border-left: 1px solid #44484E; white-space: nowrap; }
.mainnav { display: flex; align-self: stretch; }
.mainnav a {
  display: flex; align-items: center; padding: 4px 16px 0; color: #F1F2F3;
  font-weight: 600; text-decoration: none; border-bottom: 4px solid transparent; white-space: nowrap;
}
.mainnav a:hover { border-bottom-color: #5C636B; }
.mainnav a[aria-current="page"] { border-bottom-color: var(--orange); }
.account { margin-left: auto; position: relative; }
.account > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 8px; border-radius: 6px; font-weight: 600; color: #F1F2F3; min-height: 44px;
}
.account > summary::-webkit-details-marker { display: none; }
.account > summary:hover { background: #2C2F33; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--charcoal); font: 400 19px/1 var(--display); letter-spacing: .5px; padding-top: 2px;
}
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; display: grid; gap: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.account-who { margin: 0; display: grid; gap: 2px; font-size: 15px; overflow-wrap: anywhere; }
.account-who span { color: var(--muted); }
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 0 12px; padding: 0 12px 0 16px; }
  .brand { min-height: 56px; }
  .brand img { width: 108px; }
  .brand-name { display: none; }
  .account { order: 2; }
  .account-name { display: none; }
  .mainnav { order: 3; width: calc(100% + 28px); margin: 0 -12px 0 -16px; border-top: 1px solid #2C2F33; }
  .mainnav a { flex: 1; justify-content: center; min-height: 48px; padding: 4px 8px 0; }
}

/* ---------- page frame */
.page { max-width: 1480px; margin: 0 auto; padding: 34px 24px 72px; }
main:focus { outline: none; }
.page-title { font: 400 52px/.92 var(--display); letter-spacing: .5px; margin: 0; }
.page-title::after { content: ""; display: block; width: 72px; height: 4px; background: var(--orange); margin-top: 12px; }
.page-lede { margin: 14px 0 0; color: var(--muted); max-width: 66ch; font-size: 17px; }
@media (max-width: 760px) {
  .page { padding: 24px 16px 56px; }
  .page-title { font-size: 44px; }
  .page-lede { font-size: 16px; }
}

/* ---------- people: whose contact goes on the PDFs */
.people { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
.people-row, .contact-strip { min-width: 0; }
.people-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 100%; }
.people-label { font-weight: 700; }
.seg {
  display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: thin;
  border: 2px solid var(--text); border-radius: 6px; background: var(--surface);
}
.seg button {
  flex: none; border: 0; background: transparent; color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 9px 16px; min-height: 44px; white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--orange); color: var(--charcoal); }
.contact-strip {
  margin: 0; max-width: 100%;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  background: var(--charcoal); color: #F1F2F3; border-left: 6px solid var(--orange);
  padding: 12px 20px 10px 16px;
}
.contact-strip .lbl { font: 600 13px/1.2 var(--body); color: #C9CED6; }
.contact-strip .line { font: 400 23px/1.05 var(--display); letter-spacing: .7px; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .contact-strip { background: #000; } }
@media (max-width: 760px) {
  .people-row .seg, .vw-people .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; overflow: visible; }
  .people-row .seg button, .vw-people .seg button { white-space: normal; border-left: 0; }
  .people-row .seg button:nth-child(2n), .vw-people .seg button:nth-child(2n) { border-left: 1px solid var(--line); }
  .people-row .seg button:nth-child(n+3), .vw-people .seg button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .people-row { width: 100%; }
  .people-label { width: 100%; }
  .contact-strip { width: 100%; }
  .contact-strip .line { font-size: 20px; }
}

/* ---------- filters */
.mat-body { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 36px; margin-top: 30px; align-items: start; }
.rail { position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; padding: 2px 4px 12px 0; }
.facet + .facet { margin-top: 26px; }
.facet-h { font: 700 17px/1.2 var(--body); margin: 0 0 8px; }
.facet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.opt {
  width: 100%; text-align: left; cursor: pointer; color: var(--text);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; align-items: baseline;
  padding: 9px 10px 9px 12px; min-height: 42px; border: 0; border-left: 4px solid transparent;
  background: transparent; border-radius: 0 6px 6px 0; font-size: 15.5px; line-height: 1.3;
}
.opt:hover { background: var(--surface); }
.opt[aria-pressed="true"] { border-left-color: var(--orange); background: var(--surface); font-weight: 700; }
.opt .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; font-weight: 400; }
.opt .st { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.opt .st.is-live { color: var(--status-live); font-weight: 600; }
.opt[data-zero] .l { color: var(--muted); }

.toolbar { display: grid; gap: 14px; }
.search input {
  width: 100%; font: 400 16px/1.3 var(--body); color: var(--text);
  min-height: 50px; padding: 12px 16px 12px 46px; border: 2px solid var(--line); border-radius: 6px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%235C636B' stroke-width='2.2'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%235C636B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 15px 50%;
}
.search input:hover { border-color: var(--muted); }
.search input:focus { border-color: var(--text); }
.mobile-filters { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.select { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.select select {
  font: 400 16px/1.2 var(--body); color: var(--text); background: var(--surface);
  min-height: 46px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 6px; width: 100%;
}
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.type-tabs button {
  cursor: pointer; font-weight: 600; font-size: 15px; min-height: 40px; padding: 7px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
}
.type-tabs button:hover { border-color: var(--muted); }
.type-tabs button[aria-pressed="true"] { background: var(--pill-on-bg); color: var(--pill-on-fg); border-color: var(--pill-on-bg); }
.type-tabs .n { margin-left: 7px; font-variant-numeric: tabular-nums; opacity: .72; font-weight: 400; }
.result-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 36px; }
.result-line p { margin: 0; color: var(--muted); font-size: 15px; }
.active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; min-height: 34px;
}
.chip:hover { border-color: var(--muted); }
.chip svg { opacity: .7; }

@media (max-width: 960px) {
  .mat-body { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 22px; }
  .rail { display: none; }
  .mobile-filters { display: grid; }
  .type-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .type-tabs button { flex: none; }
}

/* ---------- sections and the flyer wall */
.sections { margin-top: 6px; }
.sec { margin-top: 30px; }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.sec-title { font: 400 34px/1 var(--display); letter-spacing: .4px; margin: 0; }
.sec-title .n { font: 400 15px/1 var(--body); color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.sec-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  color: var(--link); text-decoration: none; border-bottom: 2px solid var(--orange); padding: 4px 0 2px;
}
.sec-link:hover { color: var(--text); }
.group-title { font: 600 15px/1.2 var(--body); color: var(--muted); margin: 24px 0 14px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 30px 22px; }
.sheet-card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sheet {
  display: block; width: 100%; padding: 0; border: 0; background: #FFF; cursor: zoom-in;
  box-shadow: var(--sheet-shadow);
}
.sheet img { display: block; width: 100%; height: auto; aspect-ratio: 8.5 / 11; background: #FFF; }
.sheet:hover { box-shadow: 0 0 0 3px var(--orange), var(--sheet-shadow); }
.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.fnum {
  grid-row: span 3; min-width: 28px; height: 28px; padding: 3px 5px 0; display: grid; place-items: center;
  background: var(--orange); color: var(--charcoal); font: 400 20px/1 var(--display);
}
.cap h3, .cap h4 { margin: 0; font: 700 16px/1.25 var(--body); }
.cap p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.dl {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-weight: 700; font-size: 14px; color: var(--link); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding: 3px 0 1px; min-height: 28px;
}
.dl:hover { color: var(--text); }
@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .sec-title { font-size: 30px; }
}

/* line card spread */
.spread { display: grid; grid-template-columns: minmax(0, 520px) minmax(240px, 1fr); gap: 20px 32px; margin-top: 18px; align-items: start; }
.spread-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spread figure { margin: 0; display: grid; gap: 8px; }
.spread figcaption { font-size: 14px; color: var(--muted); font-weight: 600; }
.spread-info { display: grid; gap: 10px; align-content: start; }
.spread-info h3 { margin: 0; font: 700 18px/1.25 var(--body); }
.spread-info p { margin: 0; color: var(--muted); }
.spread-info .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.single { grid-template-columns: minmax(0, 260px) minmax(240px, 1fr); }
.single .spread-sheets { grid-template-columns: 1fr; }
.note-card {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--orange);
  border-radius: 0 8px 8px 0; padding: 18px 20px; display: grid; gap: 12px; max-width: 760px;
}
.note-card p { margin: 0; }
.note-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .spread, .single { grid-template-columns: 1fr; }
  .single .spread-sheets { max-width: 220px; }
}

/* email promos */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; margin-top: 18px; }
.promo {
  position: relative; display: grid; gap: 12px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--line);
  border-radius: 0 8px 8px 0; padding: 18px 20px 18px 18px;
}
.promo.is-live { border-left-color: var(--orange); }
.promo:hover { border-color: var(--muted); }
.promo.is-live:hover { border-left-color: var(--orange); }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-live { color: var(--status-live); }
.status.plain::before { display: none; }
.promo-name { margin: 0; font: 400 29px/1 var(--display); letter-spacing: .3px; }
.stretch { all: unset; cursor: pointer; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.promo:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.inbox { display: grid; gap: 3px; padding: 12px 14px; background: var(--bg); border-radius: 6px; }
.inbox .from { font-size: 13px; color: var(--muted); }
.inbox .subj { font-weight: 700; font-size: 15px; line-height: 1.3; }
.inbox .pv { font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-meta { margin: 0; font-size: 14px; color: var(--muted); }
.promo-meta strong { color: var(--text); font-weight: 600; }
.recap-card { grid-template-columns: 92px minmax(0, 1fr); align-items: start; column-gap: 16px; }
.recap-card img { width: 92px; height: auto; aspect-ratio: 8.5 / 11; display: block; background: #FFF; box-shadow: var(--sheet-shadow); grid-row: span 3; }

/* loading, empty, error */
.skeleton .sheet-ph { aspect-ratio: 8.5 / 11; background: var(--surface); opacity: .7; }
.skeleton .line-ph { height: 14px; background: var(--surface); opacity: .7; width: 70%; }
.empty {
  margin-top: 30px; background: var(--surface); border: 1px dashed var(--muted); border-radius: 8px;
  padding: 28px; display: grid; gap: 12px; justify-items: start; max-width: 640px;
}
.empty h2 { margin: 0; font: 700 20px/1.25 var(--body); }
.empty p { margin: 0; color: var(--muted); }

/* ---------- viewer */
.viewer {
  width: min(1200px, 96vw); height: min(94vh, 1100px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); overflow: hidden;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer::backdrop { background: rgba(18, 18, 18, .76); }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.viewer-kicker { margin: 0; font-weight: 600; font-size: 15px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-nav { margin-left: auto; display: flex; gap: 6px; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); min-height: 0; }
.vw-media { background: var(--bg); overflow: auto; padding: 24px; display: grid; justify-items: center; align-content: start; gap: 18px; grid-auto-rows: max-content; }
.vw-media figure { margin: 0; width: 100%; max-width: 780px; display: grid; gap: 8px; }
.vw-media img { display: block; width: 100%; height: auto; background: #FFF; box-shadow: var(--sheet-shadow); }
.vw-media figcaption { font-size: 14px; color: var(--muted); font-weight: 600; }
.vw-info { overflow: auto; padding: 26px 26px 32px; display: grid; gap: 20px; align-content: start; grid-auto-rows: max-content; }
.vw-kick { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vw-title { margin: 0; font: 400 44px/.95 var(--display); letter-spacing: .4px; }
.vw-sub { margin: 8px 0 0; color: var(--muted); }
.vw-h { margin: 0 0 8px; font: 700 15px/1.2 var(--body); }
.vw-info p { margin: 0; }
.vw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vw-print { font-size: 14px; color: var(--muted); margin-top: -8px !important; }
.vw-people .seg { margin-top: 2px; }
.vw-contact { margin-top: 8px !important; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 12px; }
.mini { all: unset; cursor: pointer; display: grid; gap: 6px; font-size: 13px; line-height: 1.25; font-weight: 600; }
.mini img { width: 100%; height: auto; aspect-ratio: 8.5 / 11; display: block; background: #FFF; box-shadow: var(--sheet-shadow); }
.mini:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mini:hover img { box-shadow: 0 0 0 3px var(--orange), var(--sheet-shadow); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.offer { background: var(--bg); border-left: 4px solid var(--orange); padding: 12px 14px; border-radius: 0 6px 6px 0; }
.email-box { width: 100%; max-width: 660px; display: grid; gap: 10px; }
.email-head { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 3px; }
.email-head .from { font-size: 13px; color: var(--muted); }
.email-head .subj { font-weight: 700; }
.email-head .pv { font-size: 14px; color: var(--muted); }
.email-frame { width: 100%; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #F4F4F4; }
.email-frame iframe { display: block; width: 640px; height: 900px; border: 0; transform-origin: 0 0; background: #F4F4F4; }
.email-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

@media (max-width: 960px) {
  .viewer { width: 100vw; height: 100dvh; height: 100vh; border-radius: 0; margin: 0; }
  @supports (height: 100dvh) { .viewer { height: 100dvh; } }
  .viewer-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; overflow-x: hidden; }
  .vw-media, .vw-info { overflow: visible; min-width: 0; }
  .vw-media { padding: 16px; }
  .vw-info { padding: 20px 16px 40px; }
  .vw-title { font-size: 38px; }
  .viewer-bar { padding: 8px 8px 8px 16px; }
}

/* ---------- proposal builder */
.builder-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 24px; }
.howto {
  margin-top: 22px; max-width: 920px; background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--orange); border-radius: 0 8px 8px 0; padding: 12px 18px;
}
.howto summary { font-weight: 700; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.howto ol { margin: 8px 0 6px; padding-left: 22px; }
.howto li { margin: 0 0 6px; }
.frame-wrap {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  height: max(680px, calc(100vh - var(--topbar-h) - 260px));
}
.frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #FFF; }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--charcoal); color: #F1F2F3; border-left: 5px solid var(--orange);
  padding: 12px 18px; border-radius: 0 6px 6px 0; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  max-width: calc(100vw - 32px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-strip .line { transition: opacity .18s ease; }
  .contact-strip.swap .line { opacity: 0; }
}

/* ---------- promo status badges, grouped promo list, print pieces, business cards */
.badge { display: inline-flex; align-items: center; font: 700 12.5px/1 var(--body); letter-spacing: .2px; padding: 5px 8px 4px; border-radius: 4px; white-space: nowrap; }
.badge.is-current { background: var(--orange); color: var(--charcoal); }
.badge.is-old { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.is-undated { background: transparent; color: var(--text); border: 1.5px dashed var(--muted); }
.status-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt-group { margin: 16px 0 4px; padding-left: 16px; font: 700 13.5px/1.2 var(--body); color: var(--muted); }
.opt-group .n { font-weight: 400; margin-left: 4px; }
.grp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sheet img.natural { aspect-ratio: auto; }
.cap-piece { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 4px; }
.card-spread { grid-template-columns: minmax(0, 420px) minmax(240px, 1fr); }
.card-spread .spread-sheets { grid-template-columns: 1fr; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.chip-st { font-weight: 400; color: var(--muted); margin-left: 6px; }
.vw-media figure.card-figure { max-width: 900px; }
@media (max-width: 760px) { .card-spread { grid-template-columns: 1fr; } }

/* proposal builder opens in its own tab */
.mainnav a .ext, .btn .ext { margin-left: 7px; flex: none; opacity: .85; }
.launch { margin-top: 22px; max-width: 920px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; display: grid; gap: 16px; justify-items: start; }
.launch p { margin: 0; color: var(--muted); max-width: 60ch; }
