/* Settings → Customize (public/look.js sets these attributes on <html>) and the Plus tools on Home
   (public/plus-tools.js). Themes only override color tokens from app.css, so every component
   follows them. "html:root[...]" outranks app.css's :root[data-theme] and the dark media query. */

/* ---------- themes ---------- */
html:root[data-skin="graphite"] {
  --bg: #111111; --ink: #ececec; --soft: #a3a3a3; --line: #2a2a2a; --brand: #d4d4d4; --on-brand: #111111;
  --panel: rgba(30,30,30,0.78); --panel-solid: #1c1c1c; --panel-ring: rgba(255,255,255,0.08); --header: rgba(17,17,17,0.8);
  --field: #181818; --muted: #1f1f1f; --inverse: #ececec; --on-inverse: #111111; --brand-tint: rgba(212,212,212,0.14);
  --blob-a: rgba(255,255,255,0.05); --blob-b: rgba(255,255,255,0.03); --focus: rgba(212,212,212,0.6);
}
html:root[data-skin="midnight"] {
  --bg: #070b1d; --ink: #e9e8ff; --soft: #a6a8cc; --line: #1f2547; --brand: #a497ff; --on-brand: #070b1d;
  --panel: rgba(20,24,56,0.72); --panel-solid: #12173a; --panel-ring: rgba(164,151,255,0.14); --header: rgba(7,11,29,0.78);
  --field: #0d1230; --muted: #151a3e; --inverse: #a497ff; --on-inverse: #070b1d; --brand-tint: rgba(164,151,255,0.18);
  --blob-a: rgba(124,92,255,0.28); --blob-b: rgba(56,198,232,0.12); --focus: rgba(164,151,255,0.7);
}
html:root[data-skin="ocean"] {
  --bg: #04202b; --ink: #e3f6fb; --soft: #95c2cf; --line: #12404f; --brand: #49d0ef; --on-brand: #04202b;
  --panel: rgba(8,46,60,0.7); --panel-solid: #0a3342; --panel-ring: rgba(73,208,239,0.14); --header: rgba(4,32,43,0.8);
  --field: #062836; --muted: #0b3545; --inverse: #49d0ef; --on-inverse: #04202b; --brand-tint: rgba(73,208,239,0.16);
  --blob-a: rgba(0,180,216,0.28); --blob-b: rgba(0,119,182,0.22); --focus: rgba(73,208,239,0.7);
}
html:root[data-skin="forest"] {
  --bg: #0b1a12; --ink: #e5f5ea; --soft: #9dc0a8; --line: #1d3a28; --brand: #6ee39c; --on-brand: #0b1a12;
  --panel: rgba(18,40,27,0.72); --panel-solid: #13291c; --panel-ring: rgba(110,227,156,0.13); --header: rgba(11,26,18,0.8);
  --field: #0f2117; --muted: #163021; --inverse: #6ee39c; --on-inverse: #0b1a12; --brand-tint: rgba(110,227,156,0.15);
  --blob-a: rgba(46,160,90,0.26); --blob-b: rgba(180,200,60,0.1); --focus: rgba(110,227,156,0.7);
}
html:root[data-skin="sunset"] {
  --bg: #22101a; --ink: #ffece6; --soft: #d4a8a4; --line: #452433; --brand: #ff9a70; --on-brand: #22101a;
  --panel: rgba(56,24,40,0.7); --panel-solid: #3a1a2a; --panel-ring: rgba(255,154,112,0.14); --header: rgba(34,16,26,0.8);
  --field: #2b1421; --muted: #3d1c2c; --inverse: #ff9a70; --on-inverse: #22101a; --brand-tint: rgba(255,154,112,0.16);
  --blob-a: rgba(255,94,98,0.3); --blob-b: rgba(255,195,113,0.18); --focus: rgba(255,154,112,0.7);
}
html:root[data-skin="mocha"] {
  --bg: #1c1512; --ink: #f3e9df; --soft: #c2ab97; --line: #3a2d25; --brand: #e3ad78; --on-brand: #1c1512;
  --panel: rgba(44,33,27,0.75); --panel-solid: #2a201a; --panel-ring: rgba(227,173,120,0.13); --header: rgba(28,21,18,0.82);
  --field: #231a15; --muted: #30241d; --inverse: #e3ad78; --on-inverse: #1c1512; --brand-tint: rgba(227,173,120,0.15);
  --blob-a: rgba(180,110,60,0.22); --blob-b: rgba(120,80,50,0.16); --focus: rgba(227,173,120,0.7);
}
html:root[data-skin="neon"] {
  --bg: #07060c; --ink: #f4f0ff; --soft: #b0a7c9; --line: #241f38; --brand: #ff4fd8; --on-brand: #07060c;
  --panel: rgba(18,14,32,0.78); --panel-solid: #120e20; --panel-ring: rgba(255,79,216,0.22); --header: rgba(7,6,12,0.85);
  --field: #0e0b18; --muted: #17122a; --inverse: #39f3ff; --on-inverse: #07060c; --brand-tint: rgba(255,79,216,0.16);
  --blob-a: rgba(255,0,200,0.28); --blob-b: rgba(0,240,255,0.2); --focus: rgba(57,243,255,0.75);
}
html:root[data-skin="contrast"] {
  --bg: #000000; --ink: #ffffff; --soft: #e0e0e0; --line: #ffffff; --brand: #ffd400; --on-brand: #000000;
  --panel: #000000; --panel-solid: #000000; --panel-ring: #ffffff; --header: #000000;
  --field: #000000; --muted: #111111; --inverse: #ffd400; --on-inverse: #000000; --brand-tint: rgba(255,212,0,0.22);
  --good: #5dff9e; --warn: #ffd400; --warn-text: #ffd400; --bad: #ff6b6b;
  --blob-a: transparent; --blob-b: transparent; --focus: #ffd400; --check-border: #ffffff;
}
html:root[data-skin="rose"] {
  --bg: #fbeef1; --ink: #2a1118; --soft: #74505a; --line: #f0d6dd; --brand: #b0124f; --on-brand: #ffffff;
  --panel: rgba(255,255,255,0.66); --panel-solid: #fffafb; --panel-ring: rgba(176,18,79,0.1); --header: rgba(255,247,249,0.75);
  --field: rgba(255,255,255,0.9); --muted: #f8e6ea; --inverse: #b0124f; --on-inverse: #ffffff; --brand-tint: rgba(176,18,79,0.1);
  --blob-a: rgba(255,105,150,0.24); --blob-b: rgba(255,180,120,0.18); --focus: rgba(176,18,79,0.55);
}
html:root[data-skin="lavender"] {
  --bg: #f1eefb; --ink: #1d1638; --soft: #5c5480; --line: #e0daf5; --brand: #5b37cc; --on-brand: #ffffff;
  --panel: rgba(255,255,255,0.66); --panel-solid: #fcfbff; --panel-ring: rgba(91,55,204,0.1); --header: rgba(248,246,255,0.75);
  --field: rgba(255,255,255,0.9); --muted: #ebe6fa; --inverse: #5b37cc; --on-inverse: #ffffff; --brand-tint: rgba(91,55,204,0.11);
  --blob-a: rgba(150,110,255,0.24); --blob-b: rgba(255,150,220,0.16); --focus: rgba(91,55,204,0.55);
}
html:root[data-skin="mint"] {
  --bg: #e8f6ef; --ink: #0d2419; --soft: #4b6b5c; --line: #d3ebde; --brand: #08724d; --on-brand: #ffffff;
  --panel: rgba(255,255,255,0.66); --panel-solid: #fafffc; --panel-ring: rgba(8,114,77,0.1); --header: rgba(246,255,250,0.75);
  --field: rgba(255,255,255,0.9); --muted: #e0f2e8; --inverse: #08724d; --on-inverse: #ffffff; --brand-tint: rgba(8,114,77,0.11);
  --blob-a: rgba(60,200,140,0.22); --blob-b: rgba(120,200,255,0.16); --focus: rgba(8,114,77,0.55);
}
html:root[data-skin="paper"] {
  --bg: #f7f3ea; --ink: #2b2118; --soft: #6e5f50; --line: #e8dfcf; --brand: #8a4b12; --on-brand: #ffffff;
  --panel: #fffdf8; --panel-solid: #fffdf8; --panel-ring: rgba(43,33,24,0.1); --header: rgba(247,243,234,0.9);
  --field: #ffffff; --muted: #f1ebdf; --inverse: #2b2118; --on-inverse: #fffdf8; --brand-tint: rgba(138,75,18,0.1);
  --blob-a: transparent; --blob-b: transparent; --focus: rgba(138,75,18,0.55);
}
/* Themes and picked accents put their color on the main buttons and the active tab too. */
html[data-skin]:not([data-skin="graphite"]):not([data-skin="paper"]) .btn.primary,
html[data-accent] .btn.primary { background: var(--brand); color: var(--on-brand); }
html[data-skin] .nav-btn.active, html[data-accent] .nav-btn.active { color: var(--brand); }

/* ---------- fonts and text size ---------- */
html[data-font="system"] body, html[data-font="system"] body *:not(.mono):not(.mono *) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif !important; }
html[data-font="rounded"] body, html[data-font="rounded"] body *:not(.mono):not(.mono *) { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif !important; }
html[data-font="serif"] body, html[data-font="serif"] body *:not(.mono):not(.mono *) { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif !important; }
html[data-font="mono"] body, html[data-font="mono"] body * { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace !important; }
html[data-size="s"] body { zoom: 0.92; }
html[data-size="l"] body { zoom: 1.1; }
html[data-size="xl"] body { zoom: 1.22; }
html.display-mode body { zoom: 1; }

/* ---------- density ---------- */
html[data-density="compact"] .card-pad { padding: 12px 14px; }
html[data-density="compact"] .grade-row, html[data-density="compact"] .cols, html[data-density="compact"] .stack { gap: 8px; }
html[data-density="compact"] .grade-row, html[data-density="compact"] .cols { margin-bottom: 10px; }
html[data-density="compact"] .sched-item { padding: 8px 10px; margin-bottom: 6px; }
html[data-density="compact"] main { padding-top: 14px; }
html[data-density="roomy"] .card-pad { padding: 28px; }
html[data-density="roomy"] .grade-row, html[data-density="roomy"] .cols, html[data-density="roomy"] .stack { gap: 22px; }
html[data-density="roomy"] .grade-row, html[data-density="roomy"] .cols { margin-bottom: 26px; }
html[data-density="roomy"] main { padding-top: 36px; }

/* ---------- corners ---------- */
html[data-radius="sharp"] .panel, html[data-radius="sharp"] .grade { border-radius: 4px; }
html[data-radius="sharp"] .btn, html[data-radius="sharp"] .sched-item, html[data-radius="sharp"] input, html[data-radius="sharp"] select { border-radius: 3px; }
html[data-radius="round"] .panel, html[data-radius="round"] .grade { border-radius: 26px; }
html[data-radius="round"] .btn, html[data-radius="round"] .sched-item { border-radius: 16px; }
html[data-radius="pill"] .panel, html[data-radius="pill"] .grade { border-radius: 34px; }
html[data-radius="pill"] .btn { border-radius: 999px; }
html[data-radius="pill"] .sched-item { border-radius: 22px; }

/* ---------- card style ---------- */
html[data-cards="solid"] .panel { background: var(--panel-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-cards="outline"] .panel { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1.5px var(--line); }
html[data-cards="gradient"] .panel { background: linear-gradient(150deg, var(--brand-tint), var(--panel) 55%); }

/* ---------- background ---------- */
html[data-bg="plain"] .blob { display: none; }
html[data-bg="aurora"] .blob { display: none; }
html[data-bg="aurora"] body { background: radial-gradient(1200px 600px at 10% -10%, var(--blob-a), transparent 60%), radial-gradient(900px 500px at 100% 0%, var(--brand-tint), transparent 60%), radial-gradient(900px 700px at 50% 120%, var(--blob-b), transparent 60%), var(--bg); background-attachment: fixed; }
html[data-bg="dots"] .blob { display: none; }
html[data-bg="dots"] body { background: radial-gradient(var(--tint-3) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--bg); background-attachment: fixed; }
html[data-bg="grid"] .blob { display: none; }
html[data-bg="grid"] body { background: linear-gradient(var(--tint-2) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--tint-2) 1px, transparent 1px) 0 0 / 28px 28px, var(--bg); background-attachment: fixed; }

/* ---------- grade display ---------- */
html[data-grades="letter"] .grade .g-pct { display: none; }
html[data-grades="percent"] .grade .g-letter { display: none; }
html[data-grades="percent"] .grade .g-pct { font-size: 26px; font-weight: 700; letter-spacing: 0; color: var(--ink); }

/* ---------- motion ---------- */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }

/* ---------- Settings → Customize ---------- */
.cz-section { padding: 14px 0; border-top: 1px solid var(--line); }
.cz-section:first-of-type { border-top: none; padding-top: 4px; }
.cz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cz-head .label { font-weight: 600; }
.cz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-opt { appearance: none; border: none; cursor: pointer; font: 600 13px "Inter", sans-serif; color: var(--ink); background: var(--tint-2); padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; position: relative; min-height: 36px; }
.cz-opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brand); background: var(--brand-tint); }
.cz-opt .lock { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; background: var(--inverse); color: var(--on-inverse); }
.cz-theme { flex-direction: column; align-items: stretch; padding: 8px; width: 104px; gap: 6px; }
.cz-theme .sw { height: 46px; border-radius: 8px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(127,127,127,0.25); }
.cz-theme .sw i { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; }
.cz-theme .sw b { position: absolute; left: 8px; top: 8px; width: 44px; height: 8px; border-radius: 4px; opacity: 0.55; }
.cz-theme .nm { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 12px; }
.cz-dot { width: 26px; height: 26px; border-radius: 50%; padding: 0; min-height: 0; justify-content: center; }
.cz-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.cz-dot .lock { position: absolute; top: -7px; right: -10px; font-size: 8px; padding: 0 4px; }
.cz-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.cz-custom input[type="color"] { width: 34px; height: 30px; border: none; padding: 0; background: none; cursor: pointer; }
.cz-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cz-switch input[type="text"] { max-width: 180px; }
.cz-plus { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--brand-tint); margin-bottom: 8px; }
.cz-plus p { margin: 0; font-size: 13px; }
.cz-reset { margin-top: 12px; }

/* "Previewing a Plus look" bar */
.cz-preview { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--panel-solid); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--panel-ring); border-radius: 14px; padding: 10px 12px 10px 16px; font-size: 13px; max-width: calc(100vw - 32px); }
@media (max-width: 760px) { .cz-preview { bottom: 84px; } }

/* ---------- Plus tools on Home ---------- */
.pt-tabs { display: flex; gap: 4px; }
.pt-tab { appearance: none; border: none; background: transparent; color: var(--soft); font: 600 12px "Inter", sans-serif; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pt-tab[aria-selected="true"] { background: var(--tint-2); color: var(--ink); }
.pt-badge { font: 700 9px "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); }
.pt-timer { font: 700 44px "JetBrains Mono", monospace; letter-spacing: -0.02em; text-align: center; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pt-phase { text-align: center; font-size: 12px; color: var(--soft); margin-bottom: 10px; }
.pt-ring { height: 6px; border-radius: 999px; background: var(--tint-2); overflow: hidden; margin-bottom: 12px; }
.pt-ring i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width 1s linear; }
.pt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pt-row select { max-width: 170px; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pt-stat { background: var(--tint-1); border-radius: 10px; padding: 8px 10px; text-align: center; }
.pt-stat b { display: block; font-size: 17px; white-space: nowrap; }
.pt-bar .m { font: 500 11px "JetBrains Mono", monospace; color: var(--soft); white-space: nowrap; text-align: right; min-width: 48px; }
.pt-stat span { font-size: 11px; color: var(--soft); }
.pt-bars { margin-top: 12px; display: grid; gap: 6px; }
.pt-bar { display: grid; grid-template-columns: minmax(0, 1fr) 1.6fr auto; gap: 8px; align-items: center; font-size: 12px; }
.pt-bar .t { height: 6px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.pt-bar .t i { display: block; height: 100%; border-radius: 999px; }
.pt-bar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-upsell { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--brand-tint); font-size: 12px; }
.pt-plus-stat b { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); padding: 4px 0; }
.pt-goal { display: grid; grid-template-columns: minmax(0, 1fr) 70px 86px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pt-goal:first-child { border-top: none; }
.pt-goal .n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pt-goal .n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-goal select { padding: 4px 6px; min-height: 30px; font-size: 12px; }
.pt-goal .st { font-size: 11px; text-align: right; }
.pt-lockwrap { position: relative; }
.pt-lockwrap .pt-fake { filter: blur(3px); opacity: 0.55; pointer-events: none; user-select: none; }
.pt-lockover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px; }
.pt-lockover p { margin: 0; font-size: 13px; max-width: 260px; }
.g-extra { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: 11px; color: var(--soft); }
.g-trend.up { color: var(--good); } .g-trend.down { color: var(--bad); }
.g-goal.met { color: var(--good); }
.pt-greet { font-size: 15px; color: var(--soft); margin-bottom: 2px; }
html.display-mode #card-plus-tools { display: none !important; }

/* Confetti when a to-do is checked off */
.pt-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }

/* ---------- Setup guide (public/onboard.js) ---------- */
.ob-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: none; color: var(--ink); background: var(--panel-solid); box-shadow: var(--shadow), 0 0 0 1px var(--panel-ring); border-radius: 20px; overflow: hidden; }
.ob-dialog[open] { display: flex; flex-direction: column; }
.ob-dialog::backdrop { background: rgba(8, 12, 22, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0 22px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 22px; height: 4px; border-radius: 999px; background: var(--tint-3); }
.ob-dots i.on { background: var(--brand); }
.ob-x { appearance: none; border: none; background: var(--tint-2); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.ob-body { padding: 10px 22px 22px; overflow: auto; }
.ob-body h2 { font-size: 22px; margin: 6px 0 6px; letter-spacing: -0.01em; }
.ob-sub { color: var(--soft); margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.ob-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ob-tiles.sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ob-tile { appearance: none; border: none; cursor: pointer; text-align: left; background: var(--tint-1); box-shadow: 0 0 0 1px var(--line); color: var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font: 500 13px "Inter", sans-serif; transition: box-shadow 0.15s, background 0.15s; }
.ob-tiles.sm .ob-tile { padding: 10px 12px; font-weight: 600; }
.ob-tile b { font-size: 15px; }
.ob-tile span { color: var(--soft); font-size: 12px; }
.ob-tile:hover, .ob-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brand); background: var(--brand-tint); }
.ob-card { background: var(--tint-1); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.ob-fakebar { display: flex; gap: 8px; align-items: center; background: var(--field); border-radius: 999px; padding: 8px 14px; font-size: 13px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; overflow: hidden; white-space: nowrap; }
.ob-fakebar b { background: var(--brand-tint); color: var(--ink); padding: 1px 5px; border-radius: 5px; }
.dim { color: var(--soft); }
.ob-big-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.ob-big-steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.ob-big-steps p { margin: 4px 0 8px; font-size: 14px; line-height: 1.5; }
.ob-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; font: 700 14px "Inter", sans-serif; flex: none; }
.ob-steps { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 10px; }
.ob-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; }
.ob-steps .ob-num { width: 24px; height: 24px; font-size: 12px; }
.ob-mock { background: #fff; color: #2d3b45; border-radius: 10px; padding: 10px 12px; box-shadow: 0 0 0 1px #c7cdd1; font: 13px "Lato", "Helvetica Neue", Arial, sans-serif; display: grid; gap: 8px; max-width: 420px; }
.ob-mock .dim { color: #6b7780; }
.ob-mock-h { font-weight: 700; font-size: 15px; border-bottom: 1px solid #e3e6e8; padding-bottom: 6px; }
.ob-mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-mock-btn { justify-self: start; background: #0374b5; color: #fff; padding: 6px 12px; border-radius: 5px; font-weight: 600; box-shadow: 0 0 0 3px rgba(3,116,181,0.25); animation: ob-pulse 1.6s ease-in-out infinite; }
.ob-mock-field { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: center; }
.ob-mock-field code { background: #f5f5f5; padding: 3px 6px; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }
@keyframes ob-pulse { 50% { box-shadow: 0 0 0 6px rgba(3,116,181,0.12); } }
.ob-help { margin: 6px 0 12px; font-size: 13px; }
.ob-help summary { cursor: pointer; color: var(--soft); }
.ob-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.ob-actions { margin-top: 14px; justify-content: flex-end; }
.ob-ok { background: var(--good-tint); color: var(--ink); padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.ob-form .field input { width: 100%; }
.ob-guide-btn { margin: 4px 0 10px; }
@media (max-width: 520px) { .ob-body h2 { font-size: 19px; } .ob-tiles { grid-template-columns: 1fr 1fr; } .ob-actions .btn { flex: 1; } }

/* ---------- Tour ---------- */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-catch { position: absolute; inset: 0; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8, 12, 22, 0.6), 0 0 0 3px var(--brand); transition: all 0.25s cubic-bezier(0.32,0.72,0,1); pointer-events: none; }
.tour-bubble { position: fixed; padding: 16px; background: var(--panel-solid); box-shadow: var(--shadow), 0 0 0 1px var(--panel-ring); border-radius: 16px; z-index: 1; }
.tour-bubble h3 { margin: 6px 0 4px; font-size: 16px; }
.tour-bubble p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.tour-bubble .row { gap: 8px; align-items: center; }

/* ---------- Plus extras (public/plus-extras.js) ---------- */
.px-toasts { position: fixed; right: 16px; top: 72px; z-index: 70; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.px-toast { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--panel-solid); box-shadow: var(--shadow), 0 0 0 1px var(--panel-ring); font-size: 13px; }
.px-report { display: none; }
@media print {
  html.px-printing body > *:not(#px-report) { display: none !important; }
  html.px-printing .px-report { display: block; color: #000; background: #fff; font: 12pt "Inter", Arial, sans-serif; padding: 0; }
  html.px-printing body { background: #fff !important; zoom: 1 !important; }
  .px-report h1 { font-size: 22pt; margin: 0 0 4pt; } .px-report h2 { font-size: 14pt; margin: 18pt 0 6pt; }
  .px-report table { width: 100%; border-collapse: collapse; margin-top: 10pt; }
  .px-report th, .px-report td { text-align: left; padding: 6pt 8pt; border-bottom: 1px solid #ccc; }
  .px-report .fine { color: #666; font-size: 9pt; margin-top: 24pt; }
}

/* ---------- Free week of Plus (public/trial-offer.js) ---------- */
.pw-card { margin-bottom: 18px; background: linear-gradient(135deg, var(--brand-tint), var(--panel) 60%); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow); }
.pw-sub { margin: 0 0 10px; color: var(--soft); font-size: 14px; }
.pw-perks { margin: 0 0 14px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; font-size: 13px; }
.pw-perks li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.pw-ack { background: var(--tint-1); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pw-ok { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pw-chip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--brand-tint); font-size: 13px; font-weight: 600; }
.pw-ended { background: var(--warn-tint); }
html.display-mode #plus-week { display: none !important; }
