/* FakeNotifications — single stylesheet. */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
:root {
  --bg:        #0f1117;
  --bg-2:      #151823;
  --bg-3:      #1c2030;
  --panel:     #1a1e2a;
  --panel-2:   #232838;
  --line:      #2a2f40;
  --line-2:    #3a4055;
  --text:      #e6e9f2;
  --text-dim:  #a4abbd;
  --text-mute: #6e768a;
  --accent:    #ff7a59;     /* coral */
  --accent-2:  #5b8cff;     /* periwinkle blue */
  --success:   #45c08b;
  --warning:   #f5b042;
  --danger:    #ef5a6b;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.55), 0 4px 18px -6px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -10px rgba(0,0,0,.5);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
html { color-scheme: dark; }
body {
  background: radial-gradient(1200px 600px at 80% -200px, rgba(91,140,255,.10), transparent 60%),
              radial-gradient(900px 500px at -100px 100px, rgba(255,122,89,.07), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--text); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; letter-spacing: -0.005em; }
h3 { font-size: 1.08rem; }
p  { color: var(--text-dim); margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code, .mono { font-family: var(--font-mono); }
.muted { color: var(--text-mute); }
.small { font-size: .85rem; }

main { flex: 1 0 auto; padding-bottom: 60px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15,17,23,.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 4px 14px -4px rgba(255,122,89,.45);
}
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.brand__text { letter-spacing: -0.01em; }
.primary-nav { display: flex; gap: 20px; }
.primary-nav a {
  color: var(--text-dim); font-size: .95rem; padding: 8px 4px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display:block; width: 18px; height: 2px; background: var(--text); margin: 3px 0; border-radius: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.015); padding: 40px 0 24px; margin-top: 60px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-bottom: 24px; }
.site-footer h4 { font-size: .92rem; color: var(--text); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .88rem; }

/* Page header */
.page-head { padding: 36px 0 16px; }
.page-head .lead { font-size: 1.08rem; max-width: 780px; color: var(--text-dim); }
.breadcrumb { font-size: .9rem; color: var(--text-mute); margin: 14px 0 0; }
.breadcrumb a { color: var(--text-dim); }
.section-pad { padding: 36px 0 0; }

/* Layout grid for generator */
.studio {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .studio { grid-template-columns: 1fr; }
}

/* Panels */
.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.panel--preview { padding: 18px; }
.panel h2 { font-size: 1.05rem; margin: 0 0 14px; }
.panel h3 { font-size: .92rem; margin: 0 0 8px; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }

.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-size: .82rem; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.field .hint { font-size: .8rem; color: var(--text-mute); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-family: inherit; font-size: .96rem;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(91,140,255,.18);
}
.textarea { resize: vertical; min-height: 78px; line-height: 1.45; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .row, .row-3 { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: .92rem; font-family: inherit; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: background .12s, border-color .12s, transform .04s;
  text-decoration: none;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, #e96a4a 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(255,122,89,.6);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 6px 10px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.segmented { display: inline-flex; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented button {
  background: transparent; border: 0; color: var(--text-dim);
  padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: .88rem; font-family: inherit;
}
.segmented button.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Preset chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--text-dim); border-radius: 999px; padding: 5px 12px;
  font-size: .85rem; cursor: pointer; transition: all .12s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--accent-2); }
.chip.is-active { background: rgba(91,140,255,.14); color: #cad5ff; border-color: rgba(91,140,255,.5); }

/* Preview stage */
.stage {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(91,140,255,.10), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(255,122,89,.08), transparent 55%),
    linear-gradient(160deg, #0c0e15 0%, #131725 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px 18px;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; opacity: .5;
}
.stage > * { position: relative; z-index: 1; }
.stage-bar {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 10px; margin-bottom: 4px;
  color: var(--text-mute); font-size: .82rem;
}

/* === Notification mockup === */
.fn {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #1f2230 0%, #1a1d29 100%);
  color: #e6e9f2;
  border: 1px solid #30354a;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6), 0 4px 12px -4px rgba(0,0,0,.4);
  font-family: var(--font-sans);
  animation: fn-in .28s ease both;
}
@keyframes fn-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.fn--light {
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
  color: #1a1d29;
  border-color: #e2e5ee;
  box-shadow: 0 18px 40px -16px rgba(20,25,40,.25), 0 4px 12px -4px rgba(20,25,40,.12);
}
.fn--wide { max-width: 460px; }
.fn--narrow { max-width: 320px; }
.fn--banner { max-width: 100%; border-radius: 10px; }
.fn__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), #8a6dff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
  overflow: hidden;
}
.fn__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn__icon svg { width: 22px; height: 22px; }
.fn--light .fn__icon { box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.fn__main { min-width: 0; }
.fn__row1 {
  display: flex; align-items: baseline; gap: 8px; font-size: .76rem;
  color: #9aa1b6; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 2px;
}
.fn--light .fn__row1 { color: #6a7287; }
.fn__app { font-weight: 600; }
.fn__time { margin-left: auto; text-transform: none; letter-spacing: 0; color: #7a8195; font-size: .78rem; }
.fn--light .fn__time { color: #8a92a8; }
.fn__title {
  font-size: 1rem; font-weight: 600; line-height: 1.3;
  margin: 0 0 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word;
}
.fn__body {
  font-size: .92rem; line-height: 1.42; color: #c1c6d6;
  margin: 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-word;
}
.fn--light .fn__body { color: #4d5468; }
.fn__close {
  background: transparent; border: 0; color: inherit; opacity: .5;
  font-size: 1rem; cursor: pointer; padding: 0; line-height: 1;
  align-self: flex-start;
}
.fn__close:hover { opacity: 1; }
.fn__thumb {
  grid-column: 1 / -1;
  margin-top: 10px;
  width: 100%; height: 120px;
  background: #2a2f40; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-size: .8rem;
}
.fn--light .fn__thumb { background: #ecedf2; color: #8a92a8; }
.fn__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fn__accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); border-radius: 14px 0 0 14px;
}
.fn { position: relative; }
.fn[data-variant="warning"] .fn__accent { background: var(--warning); }
.fn[data-variant="success"] .fn__accent { background: var(--success); }
.fn[data-variant="alert"]   .fn__accent { background: var(--danger); }
.fn[data-variant="info"]    .fn__accent { background: var(--accent-2); }
.fn[data-variant="chat"]    .fn__accent { background: #6dd6c1; }

.stack { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.stack .fn:nth-child(2) { transform: scale(.97); opacity: .95; }
.stack .fn:nth-child(3) { transform: scale(.94); opacity: .85; }

/* Run row: delay input + primary "Show notification" button */
.run-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; }
.run-row .field { flex: 0 0 auto; min-width: 160px; margin: 0; }
.run-row .btn--run { flex: 1 1 auto; padding: 12px 16px; font-size: 1rem; }
@media (max-width: 520px) {
  .run-row { flex-direction: column; align-items: stretch; }
  .run-row .field { min-width: 0; }
}

/* Mode toggle: big two-button switch at the top of the form */
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 4px;
}
.mode-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
  background: var(--bg-3); border: 2px solid var(--line-2);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; text-align: left; transition: border-color .14s, background .14s;
}
.mode-btn__icon { font-size: 1.5rem; line-height: 1; }
.mode-btn__label { font-size: .96rem; font-weight: 600; color: var(--text-dim); }
.mode-btn__sub { font-size: .78rem; color: var(--text-mute); }
.mode-btn.is-active {
  border-color: var(--accent);
  background: rgba(255,122,89,.08);
}
.mode-btn.is-active .mode-btn__label { color: var(--text); }
.mode-btn[data-mode="native"].is-active {
  border-color: var(--accent-2);
  background: rgba(91,140,255,.10);
}
.mode-btn[data-mode="native"].is-active .mode-btn__label { color: var(--accent-2); }
@media (max-width: 440px) {
  .mode-toggle { grid-template-columns: 1fr; }
}

/* Panels tinted per active mode */
.panel[data-panel-mode="native"] {
  border-color: rgba(91,140,255,.35);
  background: linear-gradient(180deg, rgba(91,140,255,.06) 0%, var(--bg-2) 100%);
}
.panel--preview[data-panel-mode="native"] .stage-bar { color: var(--accent-2); }
.panel--preview[data-panel-mode="native"] .btn--run {
  background: linear-gradient(180deg, #5b8cff 0%, #3a6de0 100%);
  box-shadow: 0 6px 14px -6px rgba(91,140,255,.5);
}

/* Native notice (replaces preview stage in native mode) */
.native-notice {
  background: linear-gradient(135deg, rgba(91,140,255,.12), rgba(91,140,255,.05));
  border: 1px solid rgba(91,140,255,.3);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin: 8px 0;
  min-height: 120px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.native-notice p { color: var(--text-dim); margin: 0; }
.native-notice p:first-child { font-size: 1rem; color: var(--text); font-weight: 500; }

/* In-page notification popup — the "run in browser" experience.
   Fixed overlay, top-right on desktop, full-width top on mobile. */
.fn-pop-layer {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.fn-pop { pointer-events: auto; animation: fn-pop-in .34s cubic-bezier(.2,.8,.2,1) both; }
.fn-pop .fn { animation: none; width: 100%; max-width: none; }
.fn-pop.is-leaving { animation: fn-pop-out .24s ease forwards; }
@keyframes fn-pop-in  { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fn-pop-out { to   { opacity: 0; transform: translateY(-14px) scale(.97); } }
@media (max-width: 560px) {
  .fn-pop-layer { top: 10px; left: 10px; right: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fn-pop, .fn { animation: none !important; }
}

/* Mobile banner preview frame */
.phone {
  width: 280px; max-width: 100%; padding: 14px 10px 24px;
  background: #0a0c12; border-radius: 26px;
  border: 1px solid #20253a; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 6px; background: #1c2030; border-radius: 4px;
}
.phone .fn { max-width: 250px; padding: 10px; font-size: .9rem; }

/* Color swatch / file input */
.upload-row { display: flex; align-items: center; gap: 10px; }
.upload-preview {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 34px; height: 20px; background: var(--bg-3);
  border: 1px solid var(--line-2); border-radius: 999px; position: relative; transition: background .12s;
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--text-dim);
  transition: left .14s ease, background .14s;
}
.switch input:checked + .switch__track { background: rgba(91,140,255,.35); border-color: var(--accent-2); }
.switch input:checked + .switch__track::after { left: 16px; background: var(--accent-2); }
.switch__label { font-size: .9rem; color: var(--text-dim); }

/* Cards / link grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: border-color .12s, transform .12s; display: block; color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.card p { margin: 0; font-size: .9rem; color: var(--text-dim); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ol, .prose ul { color: var(--text-dim); }
.prose li { margin: 6px 0; }
.prose code { background: var(--bg-3); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; font-size: .88em; color: var(--text); }

/* FAQ */
.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::after { content: "+"; color: var(--text-mute); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 10px 0 4px; }

/* Status / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-dim);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-mute); }
.pill--granted { color: #b6f0d3; border-color: rgba(69,192,139,.45); background: rgba(69,192,139,.10); }
.pill--granted::before { background: var(--success); }
.pill--denied  { color: #ffc4c9; border-color: rgba(239,90,107,.45); background: rgba(239,90,107,.10); }
.pill--denied::before { background: var(--danger); }
.pill--prompt  { color: #ffd9a8; border-color: rgba(245,176,66,.45); background: rgba(245,176,66,.10); }
.pill--prompt::before { background: var(--warning); }
.pill--unsupported { color: var(--text-mute); }

.status-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px;
}
.status-msg { color: var(--text-dim); font-size: .88rem; }

/* Template gallery */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tmpl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.tmpl-stage {
  background: linear-gradient(160deg, #0c0e15 0%, #1a1f2d 100%);
  border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: center;
  min-height: 130px; border: 1px solid var(--line);
}
.tmpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tmpl-cat { font-size: .76rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.tmpl-card h3 { margin: 0; font-size: 1rem; }
.tmpl-card p  { font-size: .88rem; color: var(--text-dim); margin: 0; }
.tmpl-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.category-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

/* Timer */
.timer-display {
  font-family: var(--font-mono); font-size: 2.4rem; color: var(--text);
  letter-spacing: 0.04em; text-align: center; padding: 16px 0 8px;
}
.progress {
  position: relative; height: 8px; background: var(--bg-3);
  border-radius: 999px; overflow: hidden; border: 1px solid var(--line-2);
}
.progress__bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .25s linear;
}

/* Real toast (for in-page user feedback) */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 18px; opacity: 0;
  transition: opacity .15s, transform .15s; z-index: 50; pointer-events: none;
  box-shadow: var(--shadow-md); font-size: .92rem;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Tips */
.tips { color: var(--text-dim); padding-left: 1.2em; }
.tips li { margin: 6px 0; }
.kbd {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: .8rem; color: var(--text);
}

/* Responsive nav drawer */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
}

/* Helper utility classes */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.full { width: 100%; }
