/* Dio Studio · campaign dashboard (14.11.2026). Apple's language: the system font, grouped cards on a soft grey,
   one quiet accent, translucent chrome, springs only where a hand moved something. Every text colour passes 4.5:1
   on what it sits on, in light and in dark (checked in WebKit, webkit-check). No class name here contains "ad":
   ad blockers hide elements by such names. */

@font-face { font-family: "Heebo"; src: url("/fonts/heebo-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("/fonts/heebo-hebrew-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("/fonts/heebo-hebrew-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("/fonts/heebo-hebrew-900-normal.woff2") format("woff2"); font-weight: 800 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --raised: #ffffff;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .07);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --line-soft: rgba(0, 0, 0, .06);
  --link: #0066cc;
  --good: #1a7f37;
  --good-dot: #30d158;
  --warn: #9a4b00;
  --warn-bg: #fff4e5;
  --bad: #c9001a;
  --meta: #5e5ce6;
  --google: #0b8a8a;
  --bar-bg: rgba(245, 245, 247, .78);
  --sheet-bg: rgba(255, 255, 255, .96);
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 4px 18px rgba(0, 0, 0, .05);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, .14);
  --r-xl: 24px; --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Hebrew", "Segoe UI", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Hebrew", "Segoe UI", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --raised: #2c2c2e;
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .14);
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --ink-3: #a1a1a6;
    --line: rgba(255, 255, 255, .14);
    --line-soft: rgba(255, 255, 255, .08);
    --link: #2997ff;
    --good: #30d158;
    --warn: #ffb340;
    --warn-bg: rgba(255, 159, 10, .14);
    --bad: #ff6961;
    --meta: #8e8cff;
    --google: #40c8c8;
    --bar-bg: rgba(0, 0, 0, .72);
    --sheet-bg: rgba(28, 28, 30, .97);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .05);
    --shadow-lift: 0 12px 40px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
bdi { unicode-bidi: isolate; }

/* ---------- the bar (sender strip: the studio and the date) ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: box-shadow .25s var(--ease); }
.bar.scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px rgba(0, 0, 0, .04); }
.bar-in { max-width: 1080px; margin: 0 auto; height: 52px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); display: flex; align-items: center; gap: 12px; position: relative; }
.wordmark { display: inline-flex; align-items: center; height: 44px; }
.wordmark img { height: 15px; width: auto; display: block; }
.wm-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .wm-light { display: none !important; } .wm-dark { display: block !important; } }
.bar-date { margin-inline-start: auto; font-weight: 700; font-size: 15px; letter-spacing: -.005em; }
.bar-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fill-2); display: grid; place-items: center; transition: transform .1s ease-out, background .2s; }
.bar-btn svg { fill: var(--ink); }
.bar-btn:active { transform: scale(.94); background: var(--fill); }
.menu { position: absolute; top: 48px; left: var(--gutter); min-width: 200px; background: var(--sheet-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 6px; transform-origin: 12% 0; animation: pop .22s var(--ease); }
.menu button { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 11px 12px; border-radius: 9px; font-size: 16px; }
.menu button:hover, .menu button:focus-visible { background: var(--fill-2); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- page ---------- */
.app { max-width: 1080px; margin: 0 auto; padding: 8px var(--gutter) calc(48px + env(safe-area-inset-bottom)); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60vh; color: var(--ink-3); font-size: 15px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fill); border-top-color: var(--ink-3); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeUp .45s var(--ease) both; }
/* entrances move, they never hide: content stays readable even where animations do not run (an offscreen WebKit, a
   paused tab), so the motion is only a transform */
@keyframes fadeUp { from { transform: translateY(10px); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* hero: the addressee */
.hero { padding: 22px 2px 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.lede { margin: 6px 0 0; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding-inline: 12px; border-inline-start: 1px solid var(--line); }
.facts li:first-child { padding-inline-start: 0; border: 0; }
.facts b { color: var(--ink-2); font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--good-dot); box-shadow: 0 0 0 0 rgba(48, 209, 88, .5); animation: live 2.4s ease-out infinite; flex: none; }
.live.stale { background: #ff9f0a; animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .45); } 70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

/* client chips (studio) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 2px; margin: 14px -2px 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; padding: 8px 15px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; color: var(--ink); scroll-snap-align: start; transition: transform .1s ease-out, background .2s, color .2s; white-space: nowrap; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* the toolbar: range + export */
.toolbar { position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 10; margin: 14px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter); background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); display: flex; align-items: center; gap: 10px; }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1 1 auto; max-width: 560px; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 4px; font-size: 14px; font-weight: 500; border-radius: 8px; white-space: nowrap; color: var(--ink); transition: color .2s; }
.seg button[aria-checked="true"] { font-weight: 600; }
.seg .thumb { position: absolute; z-index: 0; top: 2px; bottom: 2px; border-radius: 8px; background: var(--raised); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); transition: inset-inline-start .32s var(--ease), width .32s var(--ease); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .1s ease-out, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary { background: var(--fill); color: var(--ink); }
.btn-plain { background: none; color: var(--link); font-weight: 500; }
.btn-block { width: 100%; padding: 14px 18px; font-size: 17px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.period { margin: 10px 2px 0; font-size: 14px; color: var(--ink-3); }

/* numbers */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px 16px; min-width: 0; }
.kpi-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kpi-value { display: block; margin-top: 4px; font-family: var(--display); font-size: clamp(28px, 4.2vw, 38px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value .cur { font-size: .62em; font-weight: 600; letter-spacing: 0; margin-inline-start: .12em; color: var(--ink-2); }
.kpi-value.none { color: var(--ink-3); font-weight: 600; font-size: clamp(22px, 3vw, 28px); }
.kpi-sub { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.kpi-sub b { color: var(--ink-2); font-weight: 600; }
.kpi.accent .kpi-label { color: var(--ink); }
.pace { height: 4px; border-radius: 2px; background: var(--fill); margin-top: 10px; overflow: hidden; }
.pace i { display: block; height: 100%; border-radius: 2px; background: var(--ink); transform-origin: right; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.delta { font-weight: 600; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-3); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 14px 2px 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.stats li { padding-inline: 14px; border-inline-start: 1px solid var(--line); }
.stats li:first-child { padding-inline-start: 0; border: 0; }
.stats b { color: var(--ink); font-weight: 600; font-size: 15px; margin-inline-start: 4px; }

/* cards */
.card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 18px 20px 20px; margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card h2, .section-title { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
.section-title { margin: 30px 2px 0; display: flex; align-items: baseline; gap: 8px; }
.section-title small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* chart */
.seg-sm { flex: 0 0 auto; max-width: none; }
.seg-sm button { padding: 5px 12px; font-size: 13px; }
.chart-wrap { position: relative; margin-top: 14px; }
.chart { display: block; width: 100%; height: 220px; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--line-soft); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .b { transform-box: fill-box; transform-origin: bottom; animation: rise .55s var(--ease) both; }
.chart .b-meta { fill: var(--meta); }
.chart .b-google { fill: var(--google); }
.chart .b-none { fill: var(--fill); }
.chart .hit { fill: transparent; }
.chart .col.on .b { filter: brightness(1.12); }
.chart .col.on .hl { fill: var(--fill-2); }
.chart .hl { fill: transparent; }
@keyframes rise { from { transform: scaleY(0); } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.tip { position: absolute; z-index: 3; pointer-events: none; min-width: 120px; background: var(--sheet-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 8px 11px; font-size: 13px; line-height: 1.4; transform: translate(50%, -100%); white-space: nowrap; }
.tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; }
.chart-empty { display: grid; place-items: center; height: 160px; color: var(--ink-3); font-size: 15px; text-align: center; padding: 0 20px; }

/* clients table (studio) */
.table-wrap { overflow-x: auto; margin: 10px -20px -6px; padding: 0 20px; }
table.rows { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rows th { text-align: start; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rows td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.rows tr:last-child td { border-bottom: 0; }
table.rows tr.click { cursor: pointer; }
table.rows tr.click:hover td { background: var(--fill-2); }
table.rows td:first-child { font-weight: 600; }
table.rows .total td { font-weight: 700; border-top: 1px solid var(--line); }

/* campaigns */
.cmps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.cmp { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 18px 20px 6px; min-width: 0; }
.cmp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.plat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.plat i { width: 8px; height: 8px; border-radius: 2px; }
.plat-meta i { background: var(--meta); }
.plat-google i { background: var(--google); }
.who { color: var(--ink-3); }
.status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-active { color: var(--good); }
.status-active i { background: var(--good-dot); }
.status-issue { color: var(--warn); background: var(--warn-bg); }
.status-issue i, .status-review i { background: #ff9f0a; }
.cmp h3 { margin: 10px 0 2px; font-size: 19px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.cmp-facts { margin: 0; font-size: 14px; color: var(--ink-3); }
.cmp-m { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 12px; padding: 0; }
.cmp-m div { min-width: 0; }
.cmp-m dt { font-size: 13px; color: var(--ink-3); }
.cmp-m dd { margin: 2px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.cmp-m dd small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-inline-start: 2px; }
.cmp-m dd .cur { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.flag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 2px 8px; border-radius: 6px; margin-top: 6px; }
.disclose { display: flex; width: calc(100% + 40px); margin: 0 -20px; padding: 14px 20px 14px; border: 0; border-top: 1px solid var(--line-soft); background: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-align: start; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.disclose:hover { background: var(--fill-2); }
.disclose span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.disclose svg { margin-inline-start: auto; width: 14px; height: 14px; stroke: var(--ink-3); fill: none; stroke-width: 2.4; transition: transform .3s var(--ease); }
.disclose[aria-expanded="true"] svg { transform: rotate(180deg); }
.running { overflow: hidden; }
.running-in { padding: 4px 0 18px; }
.aud { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r-md); background: var(--fill-2); margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.aud b { color: var(--ink); font-weight: 600; }
.pieces { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
.piece { scroll-snap-align: start; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; display: flex; flex-direction: column; }
.piece .ph { aspect-ratio: 1; background: var(--fill-2); display: block; width: 100%; object-fit: cover; }
.piece .pb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.piece b { font-size: 15px; line-height: 1.3; }
.piece p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.piece .pst { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.kw li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); }
.more { border: 0; background: none; color: var(--link); font-size: 14px; padding: 6px 0; }

/* about the data */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 8px; }
.about h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.about p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.about dl { margin: 0; font-size: 14px; }
.about dt { font-weight: 600; color: var(--ink); }
.about dd { margin: 0 0 8px; color: var(--ink-2); line-height: 1.5; }
.src { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; font-size: 14px; }
.src li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.src b { color: var(--ink); font-weight: 600; }

/* weekly email */
.sub-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.field { flex: 1 1 220px; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent); }
.field::placeholder { color: var(--ink-3); }
.sub-list { list-style: none; margin: 12px 0 0; padding: 0; }
.sub-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.sub-list button { border: 0; background: none; color: var(--bad); font-size: 14px; padding: 6px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.banner b { font-weight: 700; }

/* studio admin */
.links { list-style: none; margin: 10px 0 0; padding: 0; }
.links > li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.links > li:first-child { border-top: 0; }
.link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-row .nm { font-weight: 600; font-size: 16px; }
.link-row .meta { font-size: 13px; color: var(--ink-3); flex: 1 1 200px; }
.newlink { margin-top: 10px; padding: 12px; border-radius: var(--r-md); background: var(--fill-2); display: flex; flex-direction: column; gap: 10px; }
.newlink code { direction: ltr; text-align: left; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; color: var(--ink); }
.newlink .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-danger { background: none; color: var(--bad); font-weight: 500; }

/* sheet (export) */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .32); animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; inset: auto 0 0 0; margin: 0 auto; max-width: 520px; background: var(--sheet-bg); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lift); padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(0); transition: transform .32s var(--ease); touch-action: none; }
.sheet.enter { animation: sheetIn .38s var(--ease) both; }
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 2px auto 10px; }
.sheet h2 { margin: 4px 0 2px; font-size: 21px; font-weight: 700; }
.sheet .sub { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.opts { list-style: none; margin: 0; padding: 0; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.opts li + li { border-top: 1px solid var(--line-soft); }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: start; color: var(--ink); text-decoration: none; }
.opt:hover { background: var(--fill-2); text-decoration: none; }
.opt:active { background: var(--fill); }
.opt .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--fill-2); }
.opt .ic svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt span { display: flex; flex-direction: column; }
.opt b { font-size: 16px; font-weight: 600; }
.opt small { font-size: 13px; color: var(--ink-3); }
@media (min-width: 760px) {
  .sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 22px; width: 460px; padding: 18px 20px 20px; }
  .sheet.enter { animation: dialogIn .3s var(--ease) both; }
  .sheet-grip { display: none; }
  @keyframes dialogIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
}

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-lift); animation: toastIn .3s var(--ease) both; max-width: calc(100% - 32px); text-align: center; }

.foot { margin: 36px 2px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.err { text-align: center; padding: 60px 20px; }
.err h2 { font-size: 21px; margin: 0 0 6px; }
.err p { color: var(--ink-3); margin: 0 0 16px; }
.empty { padding: 28px 20px; text-align: center; color: var(--ink-3); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); margin-top: 12px; }
.noscript { padding: 40px 20px; text-align: center; }

/* ---------- the small pages: entry, studio, unsubscribe ---------- */
body.solo { display: grid; min-height: 100dvh; }
.solo-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(28px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom)); gap: 18px; }
.solo-card { width: min(420px, 100%); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 24px 26px; animation: fadeUp .5s var(--ease) both; }
.solo-card .wordmark { height: 24px; margin-bottom: 20px; }
.solo-eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.solo-title { margin: 2px 0 8px; font-family: var(--display); font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.solo-lede { margin: 0 0 22px; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.solo-form { display: flex; flex-direction: column; gap: 8px; }
.solo-form[hidden] { display: none; }
.solo-label { font-size: 15px; font-weight: 600; }
.solo-form .field { flex: none; width: 100%; height: 54px; font-size: 20px; letter-spacing: .02em; text-align: left; }
.field-code { letter-spacing: .4em !important; text-align: center !important; font-size: 24px !important; }
.solo-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.solo-msg { margin: 0; min-height: 22px; font-size: 14px; font-weight: 600; color: var(--bad); }
.solo-msg.ok { color: var(--good); }
.solo-foot { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.shake { animation: shake .45s ease-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 14px 14px; border-radius: var(--r-md); }
  .cmp-m { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .cmp-m .wide { display: none; }
  .about { grid-template-columns: 1fr; gap: 14px; }
  .card, .cmp { border-radius: var(--r-lg); padding-inline: 16px; }
  .disclose { width: calc(100% + 32px); margin: 0 -16px; padding-inline: 16px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .table-wrap { margin-inline: -16px; padding-inline: 16px; }
  .toolbar .btn .lbl { display: none; }
  .toolbar .btn { padding: 9px 12px; }
  .chart { height: 190px; }
  .facts, .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .facts li, .stats li, .facts li:first-child, .stats li:first-child { padding: 0; border: 0; }
  .stats b { display: block; margin: 1px 0 0; }
}
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .seg button { font-size: 13px; padding-inline: 2px; }
  .kpi-value { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .toolbar, .sheet, .menu, .tip { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .sheet, .menu, .tip { background: var(--surface); }
}
@media print {
  .bar, .toolbar, .disclose, .sheet, .scrim, .chips, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .cmp, .kpi { box-shadow: none; border: 1px solid #e5e5ea; }
}
.sheet:focus { outline: none; }
