/* Heritage Imaging Client Portal — brand: navy #1e4383, orange #f76a0c, teal #4dc5d6 */
:root {
  --navy: #1e4383; --navy-900: #122a55; --navy-50: #eef3fb;
  --orange: #f76a0c; --orange-600: #dc5b06; --orange-50: #fff3ea;
  --teal: #4dc5d6;
  --bg: #f5f7fb; --surface: #fff; --line: #e4e8f0; --line-2: #eef1f6;
  --ink: #1b2333; --ink-2: #4a5568; --ink-3: #7a8699;
  --green: #18794e; --green-bg: #e6f6ee; --amber: #a35c00; --amber-bg: #fff4dc; --red: #c0352b; --red-bg: #fdecea;
  --blue: #1d5fbf; --blue-bg: #e8f0fd; --purple: #6b3fc4; --purple-bg: #f1ebfd; --gray-bg: #eef0f4;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); font-size: 15px; line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; color: var(--ink); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 20px; } h3 { font-size: 16px; font-weight: 600; } h4 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { background: var(--gray-bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--ink-3); } .fine { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.block { display: block; } .strong { font-weight: 600; }
.ic { flex-shrink: 0; vertical-align: -3px; }
[hidden] { display: none !important; }

/* ---------- loading / banners ---------- */
.loading { display: grid; place-items: center; min-height: 40vh; }
/* ---- Guided tour ---- */
.tour-root { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.tour-dim { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); pointer-events: auto; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(15, 23, 42, .55), 0 0 0 3px var(--orange); transition: all .25s ease; pointer-events: none; }
.tour-pop { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); pointer-events: auto; }
.tour-pop.center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); }
.tour-pop.sheet { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; }
.tour-pop.sheet.top { top: 12px; bottom: auto; }
.tour-pop h3 { margin: 4px 0 8px; font-size: 18px; padding-right: 28px; }
.tour-pop p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tour-count { font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; }
.tour-x { position: absolute; top: 10px; right: 10px; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; }
.tour-offer .modal { max-width: 460px; }
.tour-offer .modal-body { text-align: center; padding-top: 28px; }
.tour-offer h3 { margin: 10px 0 6px; font-size: 20px; }
.tour-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff1e8; color: var(--orange); }
.tour-offer-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-offer-foot .spacer { flex: 1; }
.tour-offer-foot .link-btn { font-size: 13px; color: var(--ink-3); }
@media (max-width: 520px) { .tour-offer-foot { justify-content: center; } .tour-offer-foot .spacer { display: none; } .tour-offer-foot .link-btn { order: 3; width: 100%; } }
.scope-seg { display: inline-flex; margin: 0 0 16px; }
.scope-seg button { font: inherit; font-size: 14px; border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.scope-seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12); font-weight: 600; }
.first-run { margin-bottom: 18px; border-left: 4px solid var(--orange); }
.first-run h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.am-card h4.mt { margin-top: 18px; }
.am-card [data-transfer] { margin-top: 4px; }
.radio-card.disabled { opacity: .55; cursor: not-allowed; }
td.nowrap { white-space: nowrap; }
.pad-x { padding: 0 20px 16px; }
.notice-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; border-left: 4px solid var(--orange); }
.notice-row > div { flex: 1; }
@media (max-width: 640px) { .notice-row { flex-wrap: wrap; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-banner, .preview-banner { font-size: 13px; padding: 7px 16px; text-align: center; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.demo-banner { background: var(--navy-900); color: #dbe5f7; }
.preview-banner { background: var(--orange); color: #fff; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }
.demo-banner .link-btn { color: #fff; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none !important; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d1de; background: #fafbfd; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 7px; cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--gray-bg); color: var(--ink); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 67, 131, .12); }
input:disabled, textarea:disabled { background: #f8f9fb; color: var(--ink-2); }
textarea { resize: vertical; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); cursor: pointer; }
label.check input { width: auto; accent-color: var(--orange); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.req { color: var(--red); margin-left: 2px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row-form { display: flex; gap: 8px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex-shrink: 0; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: #cdd8ee; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 18px; text-decoration: none !important; }
.brand img { width: 150px; }
.brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.org-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; font-size: 13px; color: #fff; font-weight: 500; }
.org-chip img { width: auto; max-width: 70px; height: 34px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }
.org-initial { width: 34px; height: 34px; border-radius: 8px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.org-initial.lg { width: 72px; height: 72px; font-size: 30px; border-radius: 14px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .sidebar .switch { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: #cdd8ee; font-size: 14px; font-weight: 500; text-decoration: none; }
.sidebar nav a:hover, .sidebar .switch:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }
.sidebar .switch { background: rgba(77,197,214,.14); color: #e6fbfe; }
.me { display: flex; gap: 10px; align-items: center; padding: 0 4px; }
.me strong { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.me small { display: block; font-size: 11.5px; color: #9fb0d0; overflow: hidden; text-overflow: ellipsis; max-width: 160px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--navy-900); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.avatar.ghost { background: var(--gray-bg); color: var(--ink-3); }
.signout { background: transparent; color: #cdd8ee; border-color: rgba(255,255,255,.18); }
.signout:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 60px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* ---------- auth ---------- */
.public { min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 34px); }
.auth-hero { background: radial-gradient(circle at 85% 10%, rgba(247,106,12,.35), transparent 40%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.auth-logo { width: 210px; }
.auth-hero h1 { color: #fff; font-size: 38px; max-width: 520px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #dbe5f7; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points .ic { color: var(--teal); margin-top: 3px; }
.auth-tag { color: var(--teal); font-weight: 600; letter-spacing: .03em; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h2 { font-size: 26px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.demo-choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }
.choice > span { flex: 1; } .choice strong { display: block; } .choice small { color: var(--ink-3); }
.choice > .ic:first-child { color: var(--navy); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- cards & page ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.pad { padding: 20px; }
.card.pad h3, .card.pad h4 { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin-top: 5px; max-width: 720px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.section-title { font-size: 17px; margin: 30px 0 14px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.link { font-size: 13.5px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.empty { text-align: center; padding: 34px 20px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty h4 { color: var(--ink-2); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); } .badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); } .badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-purple { background: var(--purple-bg); color: var(--purple); } .badge-gray { background: var(--gray-bg); color: var(--ink-2); }
.ftype { display: inline-grid; place-items: center; width: 40px; height: 46px; border-radius: 6px; background: color-mix(in srgb, var(--ft) 12%, white); color: var(--ft); font-size: 10px; font-weight: 800; letter-spacing: .03em; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--ft) 25%, white); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert-green { background: var(--green-bg); color: #0f5132; } .alert-amber { background: var(--amber-bg); color: #6b3d00; }
.alert-purple { background: var(--purple-bg); color: #44238a; } .alert-blue { background: var(--blue-bg); color: #163f7e; }

/* ---------- client home ---------- */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 30px; border-radius: 16px; margin-bottom: 22px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(247,106,12,.5), transparent 45%), linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); }
.welcome h1 { color: #fff; font-size: 28px; margin: 4px 0; }
.welcome p { color: #d4def2; }
.welcome .eyebrow { color: var(--teal); }
.ring { --p: 0; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); position: relative; flex-shrink: 0; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--navy-900); }
.ring span, .ring small { position: relative; } .ring span { font-size: 24px; font-weight: 700; line-height: 1; } .ring small { font-size: 11px; color: #b9c7e3; }
.steps { list-style: none; margin: 0; padding: 8px 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 13px 20px; }
.steps li + li { border-top: 1px solid var(--line-2); }
.steps li > div { flex: 1; } .steps strong { display: block; font-weight: 600; } .steps small { color: var(--ink-3); font-size: 13px; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-3); flex-shrink: 0; }
.steps li.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.done strong { color: var(--ink-2); }
.news article { padding: 16px 20px; } .news article + article { border-top: 1px solid var(--line-2); }
.news h4 { margin-bottom: 4px; } .news p { color: var(--ink-2); font-size: 14px; } .news time { font-size: 12px; color: var(--ink-3); }
.pin { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.rep { display: flex; gap: 12px; align-items: center; padding: 16px 20px 6px; }
.rep strong { display: block; } .rep small { color: var(--ink-3); }
.rep-card .btn { margin: 4px 20px 20px; width: calc(100% - 40px); }
.contact-list { list-style: none; margin: 0; padding: 8px 20px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.card.pad .contact-list { padding: 0; }
.contact-list li { display: flex; gap: 9px; align-items: center; }
.mini-list { list-style: none; margin: 0; padding: 8px 0; }
.mini-list li { display: flex; gap: 12px; align-items: center; padding: 9px 20px; }
.mini-list .ftype { width: 32px; height: 36px; font-size: 9px; }
.mini-list a { font-weight: 500; font-size: 14px; } .mini-list small { display: block; color: var(--ink-3); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 8px 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 20px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.timeline li strong { color: var(--ink); font-weight: 600; }
.timeline small { display: block; color: var(--ink-3); font-size: 12px; }
.timeline.compact li { padding: 7px 20px; }
.tl-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.tl-ic.t-download, .tl-ic.t-cobrand_export { background: var(--orange-50); color: var(--orange-600); }
.tl-ic.t-account_created, .tl-ic.t-site_setup_submitted, .tl-ic.t-toolkit_completed { background: var(--green-bg); color: var(--green); }
.res-name { color: var(--ink); font-weight: 500; }
.org-link { font-size: 12.5px; background: var(--gray-bg); padding: 1px 7px; border-radius: 5px; color: var(--ink-2); margin-left: 2px; }

/* ---------- marketing ---------- */
.brand-strip { display: flex; align-items: center; gap: 18px; padding: 14px 18px; }
.bs-logo { width: 140px; height: 56px; display: grid; place-items: center; background: #fafbfd; border-radius: 8px; border: 1px dashed var(--line); font-size: 13px; }
.bs-logo img { max-height: 48px; max-width: 128px; object-fit: contain; }
.bs-info { flex: 1; } .bs-info strong { display: block; } .bs-info small { color: var(--ink-3); }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0,0,0,.08); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tpl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; box-shadow: var(--shadow); }
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,24,40,.12); border-color: #cfd6e3; }
.tpl-thumb { background: linear-gradient(180deg, #eef1f6, #e3e8f0); padding: 18px 26px 0; height: 250px; overflow: hidden; display: flex; justify-content: center; }
.tpl-thumb svg { width: 100%; height: auto; box-shadow: 0 6px 18px rgba(16,24,40,.18); border-radius: 3px 3px 0 0; }
.tpl-thumb.square { padding: 22px 30px; align-items: center; } .tpl-thumb.square svg { border-radius: 4px; }
.tpl-body { padding: 14px 16px 6px; flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tpl-body p { font-size: 13.5px; color: var(--ink-2); }
.tpl-cta { padding: 10px 16px 14px; font-size: 13.5px; font-weight: 600; color: var(--orange-600); display: flex; gap: 6px; align-items: center; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-row { display: flex; gap: 14px; align-items: center; padding: 14px 20px; }
.file-row + .file-row { border-top: 1px solid var(--line-2); }
.fr-main { flex: 1; min-width: 0; }
.fr-title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fr-main p { font-size: 13.5px; color: var(--ink-2); }
.fr-main small { font-size: 12px; }
.fr-actions { display: flex; gap: 10px; align-items: center; }
.file-row.is-done .fr-title { color: var(--ink-2); }
.done-toggle { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.done-toggle input { width: auto; accent-color: var(--green); margin: 0; }
.file-row.is-done .done-toggle { background: var(--green-bg); border-color: transparent; color: var(--green); font-weight: 600; }
.callout { display: flex; gap: 16px; align-items: center; padding: 20px; margin-top: 26px; background: linear-gradient(90deg, var(--orange-50), #fff); }
.callout > div:first-child { color: var(--orange); }
.callout > div:nth-child(2) { flex: 1; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.editor-preview { padding: 28px; background: linear-gradient(180deg, #eef1f6, #e3e8f0); display: flex; justify-content: center; }
.preview-frame { width: 100%; max-width: 560px; }
.preview-frame svg { width: 100%; height: auto; display: block; box-shadow: 0 10px 30px rgba(16,24,40,.2); background: #fff; }
.preview-frame.square { max-width: 520px; }
.editor-side { position: sticky; top: 20px; }
.brand-mini { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.brand-mini img { max-width: 140px; max-height: 50px; object-fit: contain; }
aside.card .preview-frame { max-width: 100%; }

/* brand kit */
.logo-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #fafbfd; transition: border-color .15s, background .15s; }
.logo-drop.over { border-color: var(--orange); background: var(--orange-50); }
.logo-drop #logoPrev { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); }
.logo-drop #logoPrev img { max-height: 90px; max-width: 280px; object-fit: contain; }
.logo-drop strong { color: var(--ink); }
.color-in { display: flex; gap: 8px; }
.color-in input[type=color] { width: 48px; height: 40px; padding: 3px; cursor: pointer; flex-shrink: 0; }
.color-in input[type=text] { font-family: ui-monospace, monospace; text-transform: uppercase; }

/* toolkit */
.progress-card { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.progress-card > div:first-child { min-width: 140px; } .progress-card strong, .progress-card small { display: block; }
.bar { flex: 1; height: 10px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ff9a4d); border-radius: 999px; transition: width .4s; }
.phases { display: flex; flex-direction: column; gap: 18px; }
.phase-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.phase-head > div { flex: 1; } .phase-head p { font-size: 13.5px; }
.phase-num { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.phase-count { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--gray-bg); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.phase-count.complete { background: var(--green-bg); color: var(--green); }

/* support */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; align-items: flex-start; }
.req-list li + li { border-top: 1px solid var(--line-2); }
.req-list p { font-size: 14px; color: var(--ink-2); margin: 2px 0; white-space: pre-line; }
.req-list .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.faq { border-top: 1px solid var(--line-2); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- site setup wizard ---------- */
.save-state { font-size: 12.5px; color: var(--ink-3); }
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.wizard-nav { padding: 12px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.wn-prog { padding: 6px 8px 14px; } .wn-prog small { color: var(--ink-3); font-size: 12px; display: block; margin-top: 6px; }
.wn-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.wn-item:hover { background: var(--gray-bg); }
.wn-item.active { background: var(--navy-50); color: var(--navy); font-weight: 600; }
.wn-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: #fff; }
.wn-item.complete .wn-dot { background: var(--green); border-color: var(--green); color: #fff; }
.wizard-body h2 { margin: 4px 0 8px; }
.section-intro { background: var(--navy-50); color: #24406f; padding: 12px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; }
.dl-forms { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.field { flex: 1 1 100%; min-width: 0; }
.field.half { flex: 1 1 calc(50% - 8px); }
.field-heading { flex: 1 1 100%; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--navy); }
.fields > .field-heading:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field-note { flex: 1 1 100%; font-size: 13.5px; color: var(--ink-2); background: var(--gray-bg); padding: 10px 12px; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.opt-pill { flex-direction: row; cursor: pointer; }
.opt-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-pill span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; color: var(--ink-2); background: #fff; transition: all .15s; }
.opt-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,67,131,.2); }
.opt-pill input:disabled + span { cursor: default; }
.uploads { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.upload-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.upload-row strong { display: block; font-size: 14px; } .upload-row small { color: var(--ink-3); font-size: 12.5px; }
.upload-row.has-file { border-color: #b7e4cc; background: #f6fcf9; } .upload-row.has-file small { color: var(--green); }
.upload-row label.btn { flex-direction: row; }
.submit-box { margin-top: 20px; padding: 12px 14px; border-radius: 9px; background: var(--amber-bg); color: #6b3d00; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.submit-box.ready { background: var(--green-bg); color: var(--green); }
.wizard-foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* ---------- admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis.small { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; position: relative; }
.kpi > .ic { position: absolute; top: 16px; right: 16px; color: var(--ink-3); }
.kpi-label { padding-right: 24px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--ink-3); }
.chart-wrap { padding: 12px 16px 8px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { font-size: 10px; fill: var(--ink-3); font-family: inherit; }
.chart .bar { fill: var(--navy); }
.chart g.hot .bar { fill: var(--orange); }
.chart-tip { position: fixed; z-index: 100; display: none; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.chart-tip small { color: #b5bfd0; }
.hbars { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.hbars li { display: grid; grid-template-columns: 130px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; cursor: default; }
.hb-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 10px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.hb-fill.alt { background: var(--orange); }
.hbars li.hot .hb-fill { filter: brightness(1.15); }
.hb-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.attention { list-style: none; margin: 0; padding: 6px 0; }
.attention li { display: flex; gap: 10px; align-items: center; padding: 10px 20px; font-size: 13.5px; }
.attention li + li { border-top: 1px solid var(--line-2); }
.attention li > div { flex: 1; }
.attention .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lvl-red .dot { background: var(--red); } .lvl-amber .dot { background: #e5a000; } .lvl-blue .dot { background: var(--blue); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; } .table tr[data-href]:hover td { background: #fafbfd; }
.table td:first-child { min-width: 190px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.dim td { color: var(--ink-3); }
.table .actions { white-space: nowrap; text-align: right; }
.table .ftype { width: 32px; height: 36px; font-size: 9px; }
.ok { color: var(--green); }
.mini-bar { width: 70px; height: 6px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini-bar span { display: block; height: 100%; background: var(--navy); }
.score { display: inline-grid; place-items: center; min-width: 36px; height: 26px; border-radius: 7px; font-weight: 700; font-size: 13px; padding: 0 6px; }
.score-green { background: var(--green-bg); color: var(--green); } .score-amber { background: var(--amber-bg); color: var(--amber); } .score-red { background: var(--red-bg); color: var(--red); }
.score.big { min-width: 64px; height: 52px; font-size: 24px; border-radius: 12px; }
.filters { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input[type=search] { max-width: 300px; } .filters select { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font: 500 13px inherit; font-family: inherit; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-n { font-size: 11px; background: rgba(0,0,0,.07); border-radius: 999px; padding: 0 6px; }
.chip.on .chip-n { background: rgba(255,255,255,.2); }
.client-hero { display: flex; gap: 20px; align-items: center; padding: 20px; flex-wrap: wrap; }
.ch-logo { width: 120px; height: 72px; display: grid; place-items: center; }
.ch-logo img { max-width: 120px; max-height: 72px; object-fit: contain; }
.ch-main { flex: 1; min-width: 240px; } .ch-main .row { margin-top: 8px; }
.ch-score { display: flex; flex-direction: column; align-items: center; gap: 2px; } .ch-score small { font-size: 11.5px; color: var(--ink-3); }
.ch-actions { display: flex; flex-direction: column; gap: 6px; }
.people { list-style: none; margin: 0; padding: 6px 0; }
.people li { display: flex; gap: 12px; padding: 10px 20px; align-items: center; }
.people li > div { flex: 1; min-width: 0; }
.people strong { display: block; font-size: 14px; } .people small { display: block; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 20px 0; margin-top: 4px; }
.card.pad textarea { margin-bottom: 8px; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-wide { max-width: 680px; }
.modal-form { display: flex; flex-direction: column; min-height: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.seg { display: inline-flex; background: var(--gray-bg); border-radius: 10px; padding: 3px; align-self: flex-start; }
.seg label { flex-direction: row; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; }
.seg span { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.radio-card { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin-bottom: 8px; }
.radio-card input { width: auto; margin-top: 4px; accent-color: var(--orange); }
.radio-card span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink); }
.radio-card small { flex-basis: 100%; color: var(--ink-3); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.email-preview summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--navy); }
.email-mock { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: #fafbfd; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.copy-row { display: flex; gap: 8px; } .copy-row input { font-family: ui-monospace, monospace; font-size: 12.5px; }
.file-drop { flex-direction: row; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; cursor: pointer; font-weight: 400; }
.file-drop input { border: 0; padding: 0; width: auto; flex: 1; }
.switch-t { display: inline-block; position: relative; cursor: pointer; }
.switch-t input { position: absolute; opacity: 0; }
.switch-t span { display: block; width: 36px; height: 20px; background: #cfd5df; border-radius: 999px; transition: background .15s; position: relative; }
.switch-t span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch-t input:checked + span { background: var(--green); }
.switch-t input:checked + span::after { transform: translateX(16px); }

/* toasts */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; gap: 9px; align-items: center; background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s; transition: opacity .4s, transform .4s; max-width: 380px; }
.toast-ok .ic { color: #6ee7a8; } .toast-err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .grid-2-1, .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; }
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .wizard-nav { position: static; flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .wn-prog { display: none; } .wn-item { white-space: nowrap; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar-logo { height: 30px; }
  .content { padding: 20px 16px 48px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 36px 24px; } .auth-hero h1 { font-size: 28px; }
  .grid-2, .row-2, .row-3 { grid-template-columns: 1fr; }
  .kpis, .kpis.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.half { flex-basis: 100%; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .brand-strip, .callout, .file-row { flex-wrap: wrap; }
  .fr-actions { width: 100%; justify-content: flex-end; }
  .hbars li { grid-template-columns: 100px 1fr 28px; }
}
@media print {
  .sidebar, .topbar, .demo-banner, .preview-banner, .page-actions, .back { display: none !important; }
  .content { padding: 0; } .card { box-shadow: none; break-inside: avoid; }
}

/* ================= Launch Accelerator Kit: co-branding ================= */
/* Free stand-ins for the designer fonts: TeX Gyre Heros ~ UHC Sans, Lexend ~ Scandia, DejaVu Sans = PSMA pieces */
@font-face { font-family: "kit-heros-regular"; src: url(../assets/fonts/heros-regular.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "kit-heros-bold"; src: url(../assets/fonts/heros-bold.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "kit-lexend-bold"; src: url(../assets/fonts/lexend-bold.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "kit-dejavu-sans"; src: url(../assets/fonts/dejavu-sans.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "kit-dejavu-sans-bold"; src: url(../assets/fonts/dejavu-sans-bold.ttf) format("truetype"); font-display: block; }

.hint { font-size: 13px; color: var(--ink-2); background: var(--navy-50); border-radius: 8px; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start; }
.hint.warn { background: var(--amber-bg); color: var(--amber); }
.warn { color: var(--amber); } small.ok, .ok { color: var(--green); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.center { text-align: center; }

.mod-tabs { display: flex; gap: 6px; margin: 22px 0 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mod-tab { border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.mod-tab:hover { color: var(--ink); }
.mod-tab.on { color: var(--navy); border-bottom-color: var(--orange); }
.section-title .ic { color: var(--orange); margin-right: 4px; }
.bs-info small { display: block; }

.kit-thumb { background: linear-gradient(180deg, #eef1f6, #e3e8f0); height: 270px; padding: 18px 16px; display: flex; justify-content: center; align-items: flex-start; gap: 10px; overflow: hidden; }
.kit-thumb svg { height: 100%; width: auto; max-width: 100%; box-shadow: 0 6px 18px rgba(16,24,40,.18); background: #fff; flex: 0 1 auto; }
.kit-thumb.rack svg { max-width: 48%; }

.kit-page { display: block; width: 100%; height: auto; background: #fff; }
.kit-focus { fill: rgba(247,106,12,.12); stroke: var(--orange); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.kit-logo-ph { fill: rgba(30,67,131,.04); stroke: #9aa6bb; stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.kit-logo-ph-t { fill: #7a8699; font-family: Inter, sans-serif; font-weight: 600; letter-spacing: .08em; }

.kit-editor .editor-preview { flex-direction: column; align-items: center; gap: 12px; }
.kit-pages { display: flex; gap: 22px; justify-content: center; align-items: flex-start; width: 100%; }
.kit-pages figure { margin: 0; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kit-pages figure svg { box-shadow: 0 10px 30px rgba(16,24,40,.2); }
.kit-pages figcaption { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kit-pages.rack figure { max-width: 300px; }
.kit-pages.poster figure { max-width: 560px; }
.kit-pages.compact.rack figure { max-width: 200px; }
.kit-pages.compact.poster figure { max-width: 340px; }

.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-thumb { flex: 1; min-height: 60px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; padding: 8px; background: #fff; }
.logo-thumb img { max-height: 56px; max-width: 100%; object-fit: contain; }
.range-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.range-row input { width: 100%; accent-color: var(--orange); }
.range-row output { font-size: 13px; color: var(--ink-3); min-width: 36px; text-align: right; }
.line-field .line-note { font-size: 12px; color: var(--ink-3); }
.line-field .line-note:empty { display: none; }
.line-field .link-btn { font-size: 12px; }
.btn-2line { justify-content: flex-start; text-align: left; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.btn-2line span { display: flex; flex-direction: column; line-height: 1.25; }
.btn-2line small { font-weight: 400; font-size: 12px; opacity: .8; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }

/* outreach documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.doc-card { display: flex; gap: 14px; padding: 16px 18px; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.doc-card:hover { border-color: #cfd6e3; box-shadow: 0 8px 22px rgba(16,24,40,.1); }
.doc-card p { font-size: 13.5px; margin: 4px 0 6px; }
.doc-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); display: grid; place-items: center; flex-shrink: 0; }
.tpl-cta.inline { padding: 0; }
.doc-editor .editor-side .sub-h { margin-top: 6px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 22px rgba(16,24,40,.08); padding: 34px 40px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.55; color: #222; }
.paper p { margin: 0 0 2px; min-height: 1em; } .paper p.sp { height: .7em; }
.paper p.b { font-weight: 700; } .paper ul { margin: 4px 0 8px 18px; padding: 0; }
.letter { max-width: 720px; }
mark { border-radius: 3px; padding: 0 2px; }
.ph-filled { background: #dff3e8; color: #135e3d; }
.ph-missing { background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.ph-recipient { background: #eef0f4; color: #5b6475; border: 1px dashed #c3cad6; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.tips { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.email-card { padding: 0; overflow: hidden; }
.email-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.subject-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.subject-chip:hover { border-color: var(--orange); color: var(--orange-600); }
.email-body { border: 0; box-shadow: none; border-radius: 0; padding: 20px 22px; font-family: inherit; font-size: 14.5px; }

/* social */
.social-card { display: grid; grid-template-columns: minmax(0, 520px) 1fr; align-items: center; color: inherit; text-decoration: none !important; overflow: hidden; padding: 0; }
@media (max-width: 900px) { .social-card { grid-template-columns: minmax(0, 1fr); } }
.social-card:hover { box-shadow: 0 8px 22px rgba(16,24,40,.1); }
.social-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.social-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.social-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 18px; }
.social-controls .fine { margin: 0; }
.inline-sel { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.inline-sel select { width: auto; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.post-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.post-head strong { flex-basis: 100%; }
.post-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; display: block; background: var(--gray-bg); }
.post-photo { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; color: var(--ink-2); background: var(--bg); }
.post-photo .ic { color: var(--orange); }
.post-photo p { font-size: 13.5px; }
.caption textarea { font-size: 13.5px; }

/* brand page */
.brand-preview { position: sticky; top: 20px; }
.brand-preview select { width: auto; max-width: 60%; font-size: 13px; padding: 6px 8px; }
.brand-preview .kit-pages { margin: 14px 0 4px; padding: 18px 10px; background: linear-gradient(180deg, #eef1f6, #e3e8f0); border-radius: 8px; gap: 12px; }
.editor.brand-editor { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }

/* toolkit steps & admin */
.ft-task { width: 40px; height: 46px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--navy-50); color: var(--navy); flex-shrink: 0; }
.file-row.is-done .ft-task { background: var(--green-bg); color: var(--green); }
.checklist { margin-top: 6px; font-size: 13.5px; }
.checklist summary { cursor: pointer; color: var(--navy); font-weight: 500; }
.checklist ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 4px; color: var(--ink-2); }
.checklist .ic { color: var(--green); }
fieldset.mods { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
fieldset.mods legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.facts { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 4px; font-size: 13.5px; }
.facts li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.facts li span { color: var(--ink-3); }

/* 12-week launch plan */
.seg-tabs { display: inline-flex; background: var(--gray-bg); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.seg-tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.seg-tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.tab-intro { margin: -4px 0 14px; }
.mod-tabs.slim { margin-top: 0; margin-bottom: 16px; }
.plan-start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 26px; align-items: start; }
.plan-start h2 { margin: 6px 0 8px; font-size: 22px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-600); }
.ps-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.ps-list .ic { color: var(--orange); }
.ps-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ps-form label { max-width: 200px; }
.ps-preview { list-style: none; margin: 0; padding: 16px; background: var(--bg); border-radius: 10px; display: grid; gap: 12px; font-size: 13px; }
.ps-preview li { display: grid; gap: 3px; }
.ps-preview li span { color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.ps-preview .more { color: var(--ink-3); font-style: italic; }
.plan-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 18px; }
.plan-head h3 { font-size: 20px; margin: 2px 0; }
.plan-head .bar { height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.plan-head .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffa154); border-radius: 999px; }
.plan-now { border: 1.5px solid var(--orange); margin-bottom: 18px; }
.plan-months { display: grid; gap: 18px; }
.plan-steps { list-style: none; margin: 0; padding: 0; }
.plan-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.plan-steps .plan-step:first-child { border-top: 0; }
.plan-step p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.ps-title { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.chan { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ps-check { position: relative; display: block; }
.ps-check input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ps-check span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c3cad6; display: grid; place-items: center; color: transparent; cursor: pointer; transition: all .15s; }
.ps-check:hover span { border-color: var(--green); color: #b5dcc7; }
.ps-check input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.ps-check input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.plan-step.st-done .ps-body { opacity: .6; } .plan-step.st-done strong { text-decoration: line-through; text-decoration-color: #9aa6bb; }
.plan-step.st-overdue { background: #fff8f7; }
.plan-week { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--line); }
.plan-week:first-of-type { border-top: 0; }
.plan-week.current { background: var(--orange-50); }
.pw-label { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border-right: 1px solid var(--line-2); }
.pw-label small { color: var(--ink-3); font-size: 12.5px; }
.plan-week.past .pw-label { color: var(--ink-3); }
.plan-mini a { font-weight: 500; }
.focus-flash { animation: flash 1.2s ease 2; border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(247,106,12,.25) !important; }
@keyframes flash { 50% { box-shadow: 0 0 0 8px rgba(247,106,12,.12); } }

/* ease of use */
.only-link { display: none; font-size: 12px; }
.line-field:focus-within .only-link, .line-field:hover .only-link { display: inline; }
.only-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--purple); background: var(--purple-bg); border-radius: 999px; padding: 1px 8px; }
.line-field { display: flex; flex-direction: column; gap: 5px; }
.line-field > label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.line-field .line-note { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.line-field .line-note:empty { display: none; }
.which-file ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
#missing .hint { margin: -6px 0 16px; }
.how-it-works { list-style: none; margin: 16px 0 0; padding: 16px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-it-works li { display: flex; gap: 12px; align-items: flex-start; }
.how-it-works li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-bg); color: var(--ink-2); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.how-it-works li.now > span { background: var(--orange); color: #fff; }
.how-it-works small { display: block; color: var(--ink-3); font-size: 13px; }
.up-next { margin-bottom: 18px; border: 1.5px solid var(--orange); padding-top: 12px; }
.up-next .eyebrow { display: block; padding: 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-600); }
.up-next.done-all { display: flex; gap: 12px; align-items: flex-start; border-color: var(--green); color: var(--green); }
details.phase > summary { list-style: none; cursor: pointer; }
details.phase > summary::-webkit-details-marker { display: none; }
details.phase:not([open]) > summary { border-bottom: 0; }
details.phase:not([open]) .phase-num { background: var(--green); }

@media (max-width: 900px) {
  .how-it-works { grid-template-columns: 1fr; }
  .plan-start { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .plan-head { grid-template-columns: minmax(0, 1fr); }
  .plan-week { grid-template-columns: minmax(0, 1fr); }
  .pw-label { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; border-right: 0; padding-bottom: 0; }
  .plan-step { grid-template-columns: auto minmax(0, 1fr); }
  .plan-step > .btn { grid-column: 2; justify-self: start; }
  .page-actions .btn { flex: 1 1 auto; justify-content: center; }
  .editor.brand-editor { grid-template-columns: minmax(0, 1fr); }
  .brand-preview { position: static; }
  .kit-pages { gap: 12px; }
  .paper { padding: 22px 18px; }
  .kit-thumb { height: 220px; }
}
