@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Caveat:wght@500;700&family=Nothing+You+Could+Do&display=swap');
.top { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.brand { font-size: 20px; color: var(--ink); text-decoration: none; font-weight: 600; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a.on { background: var(--accent-tint); color: var(--accent); }
.who { margin-left: auto; display: flex; gap: 10px; align-items: center; }
main.wrap { padding-top: 28px; padding-bottom: 80px; }
h1.pg { font-size: clamp(30px, 4vw, 42px); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 16px; font: 600 15px var(--sans); cursor: pointer; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.good { background: var(--good); }
.btn.bad { background: transparent; color: var(--bad); border: 1px solid var(--bad-tint); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
input, select, textarea { font: 15px var(--sans); padding: 9px 11px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; color: var(--ink); max-width: 100%; }
textarea { width: 100%; min-height: 80px; }
label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.acc { background: var(--accent-tint); color: var(--accent); }
.feed { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.play { user-select: none; }
.play .gift { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 6px 0 8px; }
.play .gimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) - 4px); background: var(--paper-2); display: block; }
.play .note { font-family: var(--hand); font-size: 22px; line-height: 1.2; color: var(--ink-2); border-left: 3px solid var(--rule); padding-left: 10px; margin: 10px 0; }
.src { font-size: 13px; }
.src a { word-break: break-word; }
.heart { position: absolute; font-size: 64px; pointer-events: none; animation: pop .7s ease forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 1 } to { transform: scale(1.4); opacity: 0 } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.proof { max-width: 100%; max-height: 420px; border-radius: var(--r-sm); border: 1px solid var(--rule); }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--dark); color: var(--dark-ink); padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
#toast.on { opacity: 1; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.login { max-width: 420px; margin: 8vh auto; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 640px) { .who #me { display: none; } .feed { grid-template-columns: 1fr; } }
label.row { display: flex; gap: 8px; font-size: 14px; margin: 0; }
label.row input { width: auto; }

.crumbs { color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.sd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sd-head h1 .muted { font-weight: 400; }
.sd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 860px) { .sd-grid { grid-template-columns: 1fr; } }
.sd-photo { background: var(--paper-2); border-radius: var(--r); min-height: 300px; display: grid; place-items: center; overflow: hidden; position: relative; }
.sd-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
.sd-ph { display: grid; place-items: center; gap: 18px; padding: 40px 16px; position: relative; width: 100%; }
.tag { font: 500 11px/1.3 var(--mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--card); padding: 3px 7px; border-radius: 5px; }
.sd-note { background: #FFFCF4; border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; }
.sd-note .hand { font-size: 26px; color: #1F3A8A; margin-top: 8px; }
.kv { width: 100%; }
.kv th { width: 38%; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.kv td { font-size: 15px; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.tl { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.tl li { display: flex; gap: 14px; padding: 0 0 16px; position: relative; }
.tl li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--rule); }
.tl li:last-child::before { display: none; }
.tl .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); background: var(--card); margin-top: 2px; z-index: 1; }
.tl li.done .dot { background: var(--good); border-color: var(--good); }
.tl li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.tl li:not(.done):not(.now) b { color: var(--ink-3); font-weight: 500; }
details summary { cursor: pointer; }
.kv th, .kv td { font-family: var(--sans); background: none; }
.kv th { font-size: 14px; }
/* step 2: pack review + maker forms */
#pack label.row { align-items: flex-start; }
#pack input[type=checkbox] { margin-top: 3px; }
#pack textarea, #mk select { width: 100%; }
/* ===== Redesign v2 (30-nov): dark sidebar, one typeface (Geist), stone ground, tone steps instead of lines and shadows ===== */
:root {
  --paper: #EDEBE6; --paper-2: #E2DFD8; --card: #FAF9F6; --ink: #0E0E0C; --ink-2: #2E2D2A; --ink-3: #6B6862;
  --rule: #D9D5CC; --accent: #FF4F1F; --accent-2: #E8410F; --accent-tint: #FFE6DD;
  --good: #0E0E0C; --good-tint: #DDEBD9; --bad: #B4321F; --bad-tint: #F7DED8;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: var(--sans);
  --r: 0px; --r-sm: 0px; --shadow: none; --side: 240px;
}
html, body { background: var(--paper); }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--sans); }

/* Sidebar */
.top { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink); color: #F4F2EE; border: 0; z-index: 20; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top .wrap.bar { height: 100%; max-width: none; margin: 0; padding: 28px 18px 22px; display: flex; flex-direction: column; align-items: stretch; gap: 28px; flex-wrap: nowrap; }
.brand { color: #fff !important; font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: normal; }
.brand::after { content: ''; display: block; width: 28px; height: 6px; background: var(--accent); margin-top: 12px; }
nav { display: flex !important; flex-direction: column; gap: 2px; overflow: visible; }
nav[hidden] { display: none !important; }
nav a { color: #A9A59C; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 0; background: transparent; }
nav a:hover { color: #fff; background: #1D1C19; }
nav a.on { color: #fff; background: #1D1C19; box-shadow: inset 3px 0 0 var(--accent); }
.who { margin: auto 0 0; flex-direction: column; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
#orgPick { width: 100%; max-width: none; background: #1D1C19; color: #fff; border: 0; border-radius: 0; padding: 10px 12px; font: 500 14px var(--sans); }
.who #me { display: block !important; color: #8C887F; font-size: 12px; max-width: none; white-space: normal; word-break: break-all; }
#out { color: #A9A59C; text-align: left; font-size: 13px; }
#out:hover { color: #fff; }

/* Main column */
main.wrap { margin-left: var(--side); max-width: 1240px; padding: 48px 48px 120px; }
h1.pg { font-size: clamp(56px, 7vw, 104px); font-weight: 800; letter-spacing: -0.055em; line-height: .9; margin-bottom: 18px !important; }
h1.pg + p, main > p.muted { font-size: 18px; color: var(--ink-2); max-width: 56ch; }

/* Forms: flat tone step, no outlines */
form.card, .card { background: var(--card); border: 0; border-radius: 0; box-shadow: none; }
form.card { padding: 22px 24px; }
label { font: 500 13px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink-3); }
input, select, textarea { background: var(--paper); border: 0; border-radius: 0; padding: 12px 14px; font: 15px var(--sans); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; box-shadow: none; }

/* Buttons: square, one accent action */
.btn { border-radius: 0; background: var(--ink); color: #fff; border: 0; padding: 12px 20px; font: 600 15px var(--sans); text-transform: none; letter-spacing: 0; min-height: 0; transition: background .12s ease, transform .12s ease; }
.btn:hover { background: #2E2D2A; transform: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--paper-2); color: var(--ink); border: 0; }
.btn.ghost:hover { background: var(--rule); }
.btn.good { background: var(--accent); color: #fff; }
.btn.good:hover { background: var(--accent-2); }
.btn.bad { background: transparent; color: var(--ink-3); border: 0; }
.btn.bad:hover { color: var(--bad); }
.link { color: var(--ink); }

/* Status and score: sentence case, flat */
.pill { font: 600 13px var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; border-radius: 0 !important; padding: 5px 10px; background: var(--paper-2); color: var(--ink-2); }
.pill.acc { background: var(--ink); color: #fff; }
.pill.good { background: var(--good-tint); color: #1C4A2A; }
.pill.warn { background: #F6E7C6; color: #6B4A08; }
.pill.bad { background: var(--bad-tint); color: var(--bad); }

/* Company sections: big name, field change between companies */
#view section.stack { margin-top: 64px; padding-top: 0; border: 0; }
#view section.stack > .row h2 { font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
#view section.stack .stack > .row b { font-size: 22px !important; font-weight: 700; letter-spacing: -0.02em; }

/* Gift cards */
.feed { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); background: transparent; }
.play.card { background: var(--card); padding: 0 0 22px; display: flex; flex-direction: column; transition: background .15s ease; }
.play.card:hover { background: #fff; transform: none; box-shadow: none; }
.play.card > .row:first-child { padding: 16px 20px 12px; }
.play .gimg { border-radius: 0; aspect-ratio: 4 / 3; margin: 0; width: 100%; }
.play.card > *:not(.gimg):not(.row:first-child) { margin-left: 20px; margin-right: 20px; }
.play .gift { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-top: 16px; }
.play > p.small:not(:has(b)) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: var(--ink-2); }
.play:hover > p.small:not(:has(b)) { -webkit-line-clamp: unset; }
.play .note { font-family: 'Caveat', cursive; font-size: 25px; color: var(--ink); background: var(--accent-tint); border: 0; border-radius: 0; padding: 16px 18px; }
.play > p.small:has(b) { background: var(--paper); border-radius: 0; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.play > .small.muted, .play .src, .play .src a { font-size: 13px; color: var(--ink-3); }
.play > .row:last-of-type { margin-top: auto; padding-top: 16px; border: 0; }

/* Tables and the rest */
.tablewrap, table { background: var(--card); }
th { font: 600 13px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink-3); background: var(--paper-2); }
td { font-size: 15px; }
.card.muted.small { background: var(--paper-2); border: 0; }
#toast { border-radius: 0; background: var(--ink); }

/* Phone: sidebar becomes a top bar */
@media (max-width: 900px) {
  .top { position: sticky; inset: auto; width: 100%; height: auto; }
  .top .wrap.bar { flex-direction: row; flex-wrap: wrap; padding: 14px 16px; gap: 12px; align-items: center; }
  .brand::after { display: none; }
  nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .who { margin: 0 0 0 auto; flex-direction: row; }
  .who #me { display: none !important; }
  main.wrap { margin-left: 0; padding: 28px 16px 80px; }
}
/* Signed out: no sidebar */
.top:has(nav[hidden]) { display: none; }
body:has(nav[hidden]) main.wrap { margin-left: auto; margin-right: auto; }
.play.card { border: 0 !important; }
#view section.stack > .row h2 { font-size: clamp(44px, 5vw, 72px) !important; font-weight: 800 !important; letter-spacing: -0.05em; line-height: .95 !important; }
.play > p.small:not(:has(b)), .play > .muted.small[style] { padding: 0 20px; margin-left: 0 !important; margin-right: 0 !important; }
.play > .muted.small[style] { margin-top: 8px !important; }
.play > .row:last-of-type { flex-wrap: nowrap; }

h1, h2, h3, h1.pg, #view section.stack > .row h2 { color: var(--ink) !important; }

/* Onboarding guide on the Feed */
.how { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.how li { counter-increment: s; background: var(--ink); color: #F4F2EE; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.how li::before { content: counter(s); font: 800 44px/1 var(--sans); color: var(--accent); letter-spacing: -0.04em; }
.how li b { font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.how li span { font-size: 15px; color: #C9C5BC; line-height: 1.45; }
h2.step { font-size: 30px !important; font-weight: 800; letter-spacing: -0.035em; margin: 34px 0 0 !important; }
p.hint { font-size: 16px; color: var(--ink-2); margin: 8px 0 0; max-width: 70ch; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* ===== Apple-style pass (30-nov 09:45): light, SF-like type, rounded surfaces, one blue ===== */
:root {
  --paper: #F5F5F7; --paper-2: #E8E8ED; --card: #FFFFFF; --ink: #1D1D1F; --ink-2: #424245; --ink-3: #86868B;
  --rule: #D2D2D7; --accent: #0071E3; --accent-2: #0077ED; --accent-tint: #E8F2FD;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif; --serif: var(--sans);
  --r: 20px; --r-sm: 12px; --shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.06);
}
html, body { background: var(--paper); }
body { font-family: var(--sans); color: var(--ink); letter-spacing: -0.012em; }
h1, h2, h3, h1.pg, #view section.stack > .row h2 { color: var(--ink) !important; font-family: var(--sans); }

/* Sidebar: light, translucent */
.top { background: rgba(251,251,253,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-right: 1px solid rgba(0,0,0,.06); color: var(--ink); }
.brand { color: var(--ink) !important; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand::after { display: none; }
nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; border-radius: 10px; padding: 9px 12px; }
nav a:hover { background: rgba(0,0,0,.04); color: var(--ink); }
nav a.on { background: rgba(0,0,0,.06); color: var(--ink); box-shadow: none; }
#orgPick { background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; }
.who #me { color: var(--ink-3); }
#out { color: var(--accent); }
#out:hover { color: var(--accent-2); }

/* Type */
main.wrap { padding: 56px 56px 120px; }
h1.pg { font-size: clamp(44px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h2.step { font-size: 28px !important; font-weight: 700; letter-spacing: -0.025em; }
#view section.stack > .row h2 { font-size: clamp(32px, 3.2vw, 44px) !important; font-weight: 700 !important; letter-spacing: -0.03em; line-height: 1.05 !important; }
#view section.stack .stack > .row b { font-size: 21px !important; font-weight: 600; }
p.hint { color: var(--ink-3); font-size: 17px; }

/* Guide */
.how { gap: 16px; margin: 28px 0 48px; }
.how li { background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.how li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 16px/34px var(--sans); text-align: center; letter-spacing: 0; }
.how li b { color: var(--ink); font-size: 19px; font-weight: 600; }
.how li span { color: var(--ink-3); }

/* Surfaces */
form.card, .card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
form.card { padding: 22px 24px; }
label { font: 500 13px var(--sans); color: var(--ink-3); }
input, select, textarea { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 11px 14px; font: 16px var(--sans); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }

/* Buttons: Apple pills */
.btn { border-radius: 980px; background: var(--accent); color: #fff; padding: 11px 20px; font: 500 15px var(--sans); letter-spacing: -0.01em; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: var(--paper); color: var(--accent); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.good { background: var(--accent); }
.btn.good:hover { background: var(--accent-2); }
.btn.bad { color: var(--ink-3); background: transparent; }

/* Pills */
.pill { font: 500 12px var(--sans) !important; border-radius: 980px !important; padding: 4px 11px; background: var(--paper); color: var(--ink-2); }
.pill.acc { background: var(--ink); color: #fff; }
.pill.good { background: #E3F5E8; color: #1A7F37; }

/* Gift cards */
.feed { gap: 20px; }
.play.card { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); padding-bottom: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.play.card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(0,0,0,.05), 0 24px 48px rgba(0,0,0,.10); background: #fff; }
.play .gimg { border-radius: 0; background: var(--paper); }
.play .gift { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.play > p.small:not(:has(b)) { color: var(--ink-2); }
.play .note { background: #F5F5F7; color: var(--ink); border-radius: 14px; font-size: 24px; }
.play > p.small:has(b) { background: transparent; padding: 0 20px; color: var(--ink-2); }
.play > .row:last-of-type .btn { flex: 1; }
.play > .row:last-of-type .btn.bad { flex: 0; }

/* Tables */
.tablewrap, table { background: #fff; border-radius: var(--r); }
th { background: transparent; color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--rule); }
td { border-bottom: 1px solid #F0F0F2; }
.card.muted.small { background: #fff; }
#toast { border-radius: 980px; background: rgba(29,29,31,.92); }
@media (max-width: 900px) { .top { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.06); } main.wrap { padding: 28px 16px 80px; } }
.play > p.small:has(b) { margin-left: 0 !important; margin-right: 0 !important; }

/* Apple HIG review fixes (30-nov 09:50): accessibility.md › Vision (4.5:1 contrast up to 17pt), typography.md › Ensuring legibility (no text under 13px), accessibility.md › Mobility (44pt controls, ~12pt between), buttons.md › Style (style, not size, marks the preferred choice) */
:root { --ink-3: #6E6E73; }
.small, .src, .src a, .play > .small.muted, .play .src a, label, .who #me, .pill, th { font-size: 13px !important; }
.play > .muted.small[style] { font-size: 13px !important; color: var(--ink-3); }
p.muted, .muted { color: var(--ink-3); }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.row { gap: 12px; }
nav a { min-height: 40px; display: flex; align-items: center; }
input, select { min-height: 44px; }
.play > .row:last-of-type .btn.bad { min-width: 64px; }
#view section.stack > .row .pill { display: none; }
.play > p.small:not(:has(b)) { cursor: default; }

/* ===== Danilo feedback (2-dec): account menu, View as, simpler cards, product page, mocks, legal-pad note ===== */
:root { --pen: 'Nothing You Could Do', 'Bradley Hand', 'Segoe Print', cursive; --ink-pen: #1f2a5a; }

/* Top-right bar: View as, company picker, account menu */
.topbar { margin-left: var(--side); display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 56px 0; position: relative; z-index: 15; }
.topbar[hidden] { display: none; }
nav a[hidden] { display: none !important; }
.topbar #orgPick { width: auto; min-width: 180px; max-width: 260px; min-height: 40px; padding: 8px 12px; }
.viewas { display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 980px; padding: 3px; box-shadow: var(--shadow); }
.viewas[hidden] { display: none; }
.viewas .muted { padding: 0 8px 0 10px; }
.viewas button { border: 0; background: transparent; font: 500 13px var(--sans); color: var(--ink-2); padding: 7px 12px; border-radius: 980px; cursor: pointer; min-height: 34px; }
.viewas button.on { background: var(--ink); color: #fff; }
.acct { position: relative; }
.acct-btn { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 980px; padding: 9px 14px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; min-height: 40px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.14); min-width: 220px; padding: 8px; display: flex; flex-direction: column; z-index: 30; }
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-menu .link { display: block; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 14px var(--sans); }
.acct-menu a:hover, .acct-menu .link:hover { background: var(--paper); }
.acct-menu a[hidden] { display: none; }
.acct-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; border-bottom: 1px solid var(--paper-2); margin-bottom: 4px; font-size: 14px; }
main.wrap { padding-top: 24px; }
@media (max-width: 900px) { .topbar { margin-left: 0; padding: 10px 16px 0; justify-content: flex-start; } .acct-btn { max-width: 200px; } }

/* Feed card: format, picture, title, one line, cost and speed, actions */
.play.card { padding: 0 0 20px; }
.play.card > .play-top { padding: 14px 20px 10px; justify-content: space-between; margin: 0 !important; }
.play.card > .gpic { display: block; margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.play .gpic .gimg { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.play .gpic .mock { height: 100%; }
.play.card > .gift { display: block; color: var(--ink); text-decoration: none; margin: 16px 20px 0 !important; }
.play.card > .gift:hover { text-decoration: underline; }
.play.card > .line { margin: 6px 20px 0 !important; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.play.card > .meta { margin: 8px 20px 0 !important; font-size: 14px; color: var(--ink-3); }
.play.card > .acts { margin: auto 20px 0 !important; padding-top: 16px; flex-wrap: nowrap; }
.play.card > .acts .btn { flex: 1; padding: 11px 12px; white-space: nowrap; }
.play.card > .acts .btn.bad { flex: 0; }
.play.card > .track { margin: 14px 20px 0 !important; }
.about-line { margin-top: 4px; color: var(--ink-2); max-width: 75ch; }
.about { background: #fff; }
.facts { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.facts li + li { margin-top: 4px; }

/* Mocks: pictures that say what the thing is */
.mock { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, #eceae4, #dedad1); overflow: hidden; position: relative; font-family: var(--sans); }
.mock .ln { display: block; height: 5px; border-radius: 3px; background: #d8d8dc; margin: 6px 0; }
.mock .ln.thin { height: 3px; margin: 5px 0; }
.doc-page, .memo-page, .news-page { background: #fff; width: 62%; aspect-ratio: 8.5 / 11; max-height: 88%; padding: 7% 7%; box-sizing: border-box; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.mock-doc .doc-page { box-shadow: 4px 4px 0 #f4f4f4, 5px 5px 0 #d6d6d6, 8px 8px 0 #f4f4f4, 9px 9px 0 #d0d0d0, 12px 12px 0 #f4f4f4, 13px 13px 0 #cacaca, 0 10px 30px rgba(0,0,0,.18); }
.doc-eyebrow { font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #b4321f; }
.doc-title { font: 700 clamp(13px, 1.6vw, 17px)/1.15 Georgia, 'Times New Roman', serif; color: #111; margin-top: 12%; }
.doc-for { font-size: 10px; color: #6e6e73; margin-top: 6px; }
.doc-lines { margin-top: auto; }
.doc-foot { display: flex; justify-content: space-between; font-size: 9px; color: #8e8e93; border-top: 1px solid #eee; padding-top: 5px; margin-top: 6px; }
.memo-h { font: 700 15px/1 Georgia, serif; letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid #111; padding-bottom: 6px; }
.memo-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; font-size: 10px; margin: 8px 0; color: #333; }
.memo-kv b { color: #8e8e93; font-weight: 600; }
.news-page { width: 70%; aspect-ratio: auto; height: 90%; max-height: none; background: #f7f3ea; padding: 4% 5%; }
.news-mast { font: 900 clamp(14px, 1.9vw, 20px)/1 'Times New Roman', Georgia, serif; text-align: center; letter-spacing: .02em; border-bottom: 3px double #222; padding-bottom: 4px; }
.news-date { display: flex; justify-content: space-between; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1px solid #222; padding: 3px 0; }
.news-head { font: 700 clamp(12px, 1.5vw, 16px)/1.1 Georgia, serif; margin: 6px 0; color: #111; }
.news-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; flex: 1; }
.news-photo { background: repeating-linear-gradient(45deg, #cfc8b8 0 3px, #ddd6c6 3px 6px); }
.mock-news .ln { background: #c9c3b6; }
.mock-video { display: flex; flex-direction: column; gap: 6px; padding: 5%; box-sizing: border-box; background: #1d1d1f; place-items: stretch; }
.vid-frame { flex: 1; position: relative; border-radius: 8px; background: radial-gradient(circle at 30% 30%, #3a3a40, #121214); display: grid; place-items: center; min-height: 0; }
.vid-title { position: absolute; left: 10px; top: 8px; right: 10px; color: #fff; font: 600 12px/1.2 var(--sans); opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); position: relative; }
.vid-play::after { content: ''; position: absolute; left: 18px; top: 13px; border-left: 15px solid #1d1d1f; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vid-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 8px; color: #ccc; font-size: 9px; }
.vid-bar i { flex: 1; height: 3px; background: linear-gradient(90deg, #ff4f1f 0 8%, rgba(255,255,255,.3) 8%); border-radius: 2px; }
.vid-scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.vid-scenes li { background: #2c2c30; border-radius: 4px; padding: 5px 6px; color: #ddd; font-size: 9px; line-height: 1.2; height: 42px; overflow: hidden; }
.vid-scenes li b { display: block; color: #ff8a66; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.vid-label { color: #fff; font: 600 11px var(--sans); text-align: center; }
.mock-obj { background: var(--paper); }

/* Handwritten note: ballpoint on a yellow legal pad */
.legal { margin: 0; max-width: 520px; background-color: #fdf5a6; background-image: linear-gradient(90deg, transparent 54px, #e06666 54px, #e06666 56px, transparent 56px), repeating-linear-gradient(180deg, transparent 0 31px, #9db3d6 31px 32px); background-position: 0 0, 0 43px; padding: 48px 26px 20px 70px; transform: rotate(-1.2deg); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.12); position: relative; }
.legal-top { position: absolute; inset: 0 0 auto 0; height: 26px; background: #fdf5a6; border-bottom: 2px solid #c8bd5e; }
.legal-body { margin: 0; font: 400 22px/32px var(--pen); color: var(--ink-pen); white-space: pre-wrap; letter-spacing: .01em; padding-top: 2px; }
.legal-sign { font: 400 22px/32px var(--pen); color: var(--ink-pen); margin-top: 0; padding-left: 40%; }
.sd-note { background: none; border: 0; padding: 0; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; margin-top: 8px; align-items: start; }
.pdp-pic { position: sticky; top: 16px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.pdp-pic .gimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pdp-pic .mock { aspect-ratio: 4 / 3; }
.pdp-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.pdp .q { border-top: 1px solid var(--rule); padding-top: 14px; }
.pdp .q h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.pdp .q p { margin: 0 0 6px; color: var(--ink-2); line-height: 1.5; }
.pdp .srcs summary { color: var(--ink-3); }
.pdp .srcs .src { margin-top: 6px; }
.deliv { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 16px; }
.deliv legend { font-weight: 600; padding: 0 6px; }
.deliv label.row { padding: 6px 0; cursor: pointer; }
.pdp .acts { padding-top: 6px; }
.pdp-sec { margin-top: 48px; }
.pdp-sec h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 4px; }
.pdp-sec[hidden] { display: none; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-pic { position: static; } }

/* How it arrives */
.pk { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-top: 14px; }
.pk-svg { width: 100%; height: auto; display: block; }
.pk-band { font: 600 11px var(--sans); fill: #1d1d1f; letter-spacing: .04em; }
.pk-badge circle { fill: var(--accent); }
.pk-badge text { fill: #fff; font: 700 13px var(--sans); }
.pk-list { list-style: none; counter-reset: pk; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pk-list li { counter-increment: pk; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.pk-list li::before { content: counter(pk); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/24px var(--sans); text-align: center; }
.pk-list b { color: var(--ink); }
.pk-rule { margin: 14px 0 0; }
@media (max-width: 760px) { .pk-list { grid-template-columns: 1fr; } }

/* Approvals */
.appr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.appr-pic { display: flex; flex-direction: column; gap: 8px; }
.appr-pic img, .appr-pic video { width: 100%; border-radius: var(--r-sm); display: block; }
.appr-pic .mock { border-radius: var(--r-sm); }
.appr-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.thread summary { cursor: pointer; }
.thread .timeline { margin: 8px 0; }
.thread form { margin-top: 8px; }
.proof-file { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.proof-file object { width: 100%; height: 440px; border: 0; background: #fff; }
.proof-video { width: 100%; max-height: 460px; background: #000; display: block; }
@media (max-width: 860px) { .appr { grid-template-columns: 1fr; } }
/* mock fixes: no link styling inside pictures, pages sized by height, scene labels clamp to 2 lines */
.gpic, .gpic:hover, .gpic * { text-decoration: none !important; }
.mock { color: #111; }
.doc-page, .memo-page { width: auto; height: 86%; max-height: none; aspect-ratio: 8.5 / 11; }
.doc-title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vid-scenes li { height: auto; }
.vid-scenes li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deliv label.row { padding: 4px 0; font-size: 15px !important; color: var(--ink); gap: 10px; }
.deliv input[type=radio] { min-height: 0; width: 18px; height: 18px; margin: 0; padding: 0; }
.legal { padding-top: 52px; }
a .mock, a .mock * { text-decoration: none !important; }
a.gpic, a.gpic:hover { color: var(--ink); }
/* Phone: keep the top controls to two short rows (View as, then company + account side by side). */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 8px 16px 0; }
  .viewas { width: 100%; justify-content: space-between; }
  .topbar #orgPick { flex: 1 1 0; min-width: 0; max-width: none; }
  .acct { flex: 0 0 auto; }
  .acct-btn { max-width: 150px; padding: 9px 12px; font-size: 13px; }
}
