/* ==========================================================================
   TradePrompt — main stylesheet
   RTL-first, dark/light, zero framework. ~۱۴ کیلوبایت فشرده‌نشده.
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0b0f17;
  --bg-soft: #111725;
  --bg-elev: #151d2e;
  --bg-input: #0e1421;
  --line: #1f2a3d;
  --line-soft: #18212f;
  --fg: #e8edf6;
  --fg-muted: #9aa8bf;
  --fg-dim: #6b7a94;
  --brand: #37d3a0;
  --brand-ink: #062018;
  --brand-soft: rgba(55, 211, 160, 0.12);
  --accent: #4d8dff;
  --warn: #f5a524;
  --danger: #f2555a;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --maxw: 1180px;
  --ff: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ff-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

html[data-theme='light'] {
  --bg: #f7f9fc;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --bg-input: #ffffff;
  --line: #e2e8f2;
  --line-soft: #edf1f7;
  --fg: #0f1725;
  --fg-muted: #526078;
  --fg-dim: #7c8aa3;
  --brand: #0f9d74;
  --brand-ink: #ffffff;
  --brand-soft: rgba(15, 157, 116, 0.1);
  --accent: #2563eb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px -16px rgba(15, 23, 42, 0.25);
  color-scheme: light;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 800; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section--tight { padding-block: 36px; }
.stack > * + * { margin-top: 16px; }
.skip {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: 10px 18px; border-radius: 8px;
}
.skip:focus { inset-inline-start: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.06rem; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: var(--brand-ink);
}
.logo-mark svg { width: 17px; height: 17px; }
.logo span small { display: block; font-size: 0.62rem; color: var(--fg-dim); font-weight: 500; line-height: 1; margin-top: 2px; letter-spacing: 0.06em; }
.main-nav { display: flex; gap: 2px; margin-inline-start: 14px; flex: 1; }
.main-nav a {
  padding: 7px 11px; border-radius: 8px; font-size: 0.895rem; color: var(--fg-muted);
  font-weight: 500; transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-elev); color: var(--fg); }
.main-nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-soft); display: grid; place-items: center; cursor: pointer;
  color: var(--fg-muted); transition: 0.15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--brand); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    display: none; margin: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-toggle { display: grid; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.16s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: var(--bg-soft); border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 7px 14px; font-size: 0.83rem; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 72px 48px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 20% auto 20%; height: 420px;
  background: radial-gradient(ellipse at center, rgba(55, 211, 160, 0.14), transparent 68%);
  pointer-events: none;
}
html[data-theme='light'] .hero::before { background: radial-gradient(ellipse at center, rgba(15, 157, 116, 0.11), transparent 68%); }
.hero-inner { position: relative; text-align: center; max-width: 820px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  padding: 5px 13px; border-radius: 99px; margin-bottom: 20px; line-height: 1.9;
}
.eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 520px) { .eyebrow { font-size: 0.72rem; padding: 5px 11px; } }
.hero h1 { font-size: clamp(1.85rem, 4.4vw, 3rem); line-height: 1.3; margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(0.98rem, 1.6vw, 1.12rem); color: var(--fg-muted); max-width: 660px; margin-inline: auto; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- search ---------- */
.searchbox { position: relative; max-width: 620px; margin: 28px auto 0; }
.searchbox input {
  width: 100%; padding: 14px 46px 14px 16px; border-radius: 13px;
  background: var(--bg-input); border: 1px solid var(--line); font-size: 0.97rem;
  transition: 0.16s;
}
.searchbox input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.searchbox .s-icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--fg-dim); width: 18px; height: 18px; pointer-events: none; }
.search-results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow);
  max-height: 60vh; overflow-y: auto; z-index: 40; text-align: start; display: none; padding: 6px;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 10px 13px; border-radius: 9px; }
.search-results a:hover, .search-results a.active { background: var(--bg-soft); }
.search-results strong { display: block; font-size: 0.92rem; font-weight: 600; }
.search-results span { font-size: 0.79rem; color: var(--fg-dim); }
.search-results .empty { padding: 18px; text-align: center; color: var(--fg-dim); font-size: 0.88rem; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 14px; text-align: center;
}
.stat b { display: block; font-size: 1.55rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--fg-muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.sec-head p { color: var(--fg-muted); font-size: 0.93rem; margin-top: 6px; max-width: 620px; }
.sec-head a.more { color: var(--brand); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.sec-head a.more:hover { text-decoration: underline; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; transition: 0.18s; position: relative; display: flex; flex-direction: column;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 700; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { font-size: 0.875rem; color: var(--fg-muted); flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.card--market { padding-top: 22px; }
.card--market .m-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 13px; background: color-mix(in srgb, var(--m, var(--brand)) 15%, transparent);
  color: var(--m, var(--brand));
}
.card--market .m-icon svg { width: 20px; height: 20px; }
.card--market .count { font-size: 0.78rem; color: var(--fg-dim); margin-top: 10px; }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 99px; background: var(--bg-elev);
  border: 1px solid var(--line); color: var(--fg-muted); line-height: 1.7;
}
.tag--level { border-color: color-mix(in srgb, var(--lv, var(--brand)) 40%, transparent); color: var(--lv, var(--brand)); background: color-mix(in srgb, var(--lv, var(--brand)) 11%, transparent); }
.tag--brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }

/* ---------- filter bar ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 22px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row > .label { font-size: 0.8rem; color: var(--fg-dim); font-weight: 600; margin-inline-end: 4px; min-width: 62px; }
.chip {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 0.82rem; cursor: pointer; color: var(--fg-muted); transition: 0.14s; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--fg); }
.chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.87rem; color: var(--fg-muted); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.filter-summary b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- prompt card ---------- */
.p-card { position: relative; }
.p-card .p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-card .p-en { font-size: 0.73rem; color: var(--fg-dim); font-family: var(--ff-mono); direction: ltr; text-align: start; margin-bottom: 9px; }
.p-card .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 0.76rem; color: var(--fg-dim); }
.p-card .p-foot .models { display: flex; gap: 5px; }

/* ---------- prompt page ---------- */
.page-head { border-bottom: 1px solid var(--line-soft); padding-block: 34px 28px; background: var(--bg-soft); }
.page-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 12px; }
.page-head .en { font-family: var(--ff-mono); direction: ltr; text-align: start; color: var(--fg-dim); font-size: 0.85rem; margin-bottom: 14px; }
.page-head p.lead { color: var(--fg-muted); max-width: 760px; }
.page-head .card-meta { margin-top: 16px; }

.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 0.79rem; color: var(--fg-dim); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: 0.5; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 84px; display: grid; gap: 14px; }
.side-box { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.side-box h3 { font-size: 0.88rem; color: var(--fg-dim); font-weight: 700; margin-bottom: 11px; letter-spacing: 0.02em; }
.side-box dl { display: grid; gap: 9px; font-size: 0.85rem; }
.side-box dl > div { display: flex; justify-content: space-between; gap: 10px; }
.side-box dt { color: var(--fg-dim); }
.side-box dd { margin: 0; font-weight: 600; text-align: end; }
.side-list a { display: block; font-size: 0.86rem; padding: 7px 0; color: var(--fg-muted); border-bottom: 1px solid var(--line-soft); }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--brand); }

/* ---------- prose ---------- */
.prose { font-size: 1rem; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.3rem; margin-top: 38px; padding-top: 4px; }
.prose h3 { font-size: 1.08rem; margin-top: 28px; }
.prose p { color: var(--fg); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: 9px; padding-inline-start: 4px; }
.prose ul li { position: relative; padding-inline-start: 20px; color: var(--fg); }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-inline-start: 30px; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: 4px; width: 21px; height: 21px;
  background: var(--brand-soft); color: var(--brand); border-radius: 6px; display: grid; place-items: center;
  font-size: 0.73rem; font-weight: 700;
}
.prose blockquote {
  border-inline-start: 3px solid var(--brand); background: var(--bg-soft);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--fg-muted); font-size: 0.94rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.88rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose code { font-family: var(--ff-mono); font-size: 0.86em; background: var(--bg-elev); padding: 2px 6px; border-radius: 5px; direction: ltr; display: inline-block; }

/* ---------- prompt block ---------- */
.prompt-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-input); margin-top: 22px; }
.prompt-block__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--bg-elev); border-bottom: 1px solid var(--line);
}
.prompt-block__bar .t { font-size: 0.82rem; font-weight: 700; color: var(--fg-muted); display: flex; align-items: center; gap: 7px; }
.prompt-block__bar .t svg { width: 15px; height: 15px; color: var(--brand); }
.prompt-block__actions { display: flex; gap: 6px; }
.prompt-block pre {
  margin: 0; padding: 20px; overflow-x: auto; font-family: var(--ff); font-size: 0.9rem;
  line-height: 1.95; white-space: pre-wrap; word-break: break-word; max-height: 620px; overflow-y: auto;
}
.prompt-block.collapsed pre { max-height: 300px; }
.prompt-block mark { background: var(--brand-soft); color: var(--brand); padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.copy-ok { color: var(--brand) !important; border-color: var(--brand) !important; }

.var-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-top: 14px; }
.var-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.var-table td:first-child { width: 190px; font-family: var(--ff-mono); color: var(--brand); direction: ltr; white-space: nowrap; }

/* ---------- callout ---------- */
.callout { border: 1px solid var(--line); border-inline-start: 3px solid var(--warn); background: var(--bg-soft); padding: 15px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--fg-muted); }
.callout b { color: var(--fg); }
.callout--brand { border-inline-start-color: var(--brand); }
.callout--danger { border-inline-start-color: var(--danger); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-soft); overflow: hidden; }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.25rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 18px 16px; color: var(--fg-muted); font-size: 0.91rem; }

/* ---------- tools ---------- */
.tool-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  padding: 10px 13px; border-radius: 9px; background: var(--bg-input); border: 1px solid var(--line);
  font-size: 0.93rem; width: 100%; font-family: var(--ff);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field small { font-size: 0.76rem; color: var(--fg-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.result-box { background: var(--bg-input); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-top: 8px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.91rem; }
.result-row:last-child { border-bottom: 0; }
.result-row b { font-variant-numeric: tabular-nums; font-size: 1rem; }
.result-row .big { color: var(--brand); font-size: 1.2rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); margin-top: 56px; padding-block: 44px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.85rem; color: var(--fg); margin-bottom: 13px; font-weight: 700; }
.footer-grid a { font-size: 0.87rem; color: var(--fg-muted); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { font-size: 0.86rem; color: var(--fg-muted); margin-top: 12px; max-width: 320px; }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--fg-dim);
}

/* ---------- misc ---------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--fg-dim); }
.empty-state svg { width: 40px; height: 40px; margin-inline: auto; margin-bottom: 14px; opacity: 0.4; }
.hidden { display: none !important; }
.toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(140%);
  background: var(--brand); color: var(--brand-ink); padding: 11px 22px; border-radius: 99px;
  font-weight: 700; font-size: 0.87rem; z-index: 99; transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2); box-shadow: var(--shadow);
}
.toast.show { transform: translateX(50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .prompt-block__actions, .hero-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { grid-template-columns: 1fr; }
}
