:root {
  --bg: #f6f3ec;
  --card: #fffdf8;
  --ink: #1d2a2b;
  --muted: #566768;
  --line: #e2dccd;
  --brand: #0f5e63;
  --brand-ink: #ffffff;
  --accent: #e8a33d;
  --danger: #b3372f;
  --ok: #2d7a4f;
  --warn-bg: #fff3d6;
  --radius: 14px;
  --top-bg: #0f5e63;
  --top-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 40, 40, 0.06), 0 6px 18px rgba(20, 40, 40, 0.05);
  --fs: 16px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #111718;
  --card: #1a2324;
  --ink: #eaf1f0;
  --muted: #a3b4b5;
  --line: #2b3839;
  --brand: #3fb5ae;
  --brand-ink: #062a2b;
  --accent: #f0b95a;
  --danger: #ff8a80;
  --ok: #6fd09a;
  --warn-bg: #3a2f14;
  --shadow: none;
  --top-bg: #0b3a3d;
  --top-ink: #f2fbfa;
  color-scheme: dark;
}
:root[data-contrast='high'] {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #000000;
  --muted: #222222;
  --line: #000000;
  --brand: #00363a;
  --danger: #8a0000;
  --ok: #004d1f;
  --warn-bg: #fff2b3;
}
:root[data-theme='dark'][data-contrast='high'] {
  --bg: #000;
  --card: #000;
  --ink: #fff;
  --muted: #e6e6e6;
  --line: #fff;
  --brand: #7ff3ec;
  --brand-ink: #000;
}

* { box-sizing: border-box; }
html { font-size: var(--fs); }
.banner button { margin-inline-start: 0.5rem; }
:root {
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans SC', 'Noto Sans Devanagari', sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(vi) h1 { letter-spacing: 0; }
button, input, select, textarea { font-family: inherit; }
.label { letter-spacing: 0.01em; }
.tabs button { letter-spacing: 0.01em; }
.tag { letter-spacing: 0.07em; text-transform: uppercase; font-size: 0.68rem; font-weight: 700; }
.brand h1 .accent { font-style: italic; font-weight: 600; color: var(--accent); }
.brand p { font-weight: 500; letter-spacing: 0.01em; font-size: 0.82rem; }
.tabs button { font-size: 0.95rem; font-weight: 600; }
.btn { letter-spacing: 0.01em; }
.btn.big { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.due, .item .meta, .meter-row, .conf { font-variant-numeric: tabular-nums; }
.result-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 800; }
.sec-title, .card > h2 { font-size: 1.25rem; }
.summary { font-size: 1.08rem; line-height: 1.8; font-weight: 500; letter-spacing: 0; }
.summary::first-line { font-weight: 600; }
.glossary dt { font-size: 1rem; }
.foot { font-weight: 500; }
.original, .bubble { font-size: 0.95rem; }
.label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
:lang(ar) .label, :lang(zh) .label, :lang(vi) .label { text-transform: none; letter-spacing: 0.01em; font-size: 0.9rem; }
:lang(ar) .tag, :lang(zh) .tag { letter-spacing: 0; font-size: 0.8rem; }
textarea, input[type='text'], select { font-size: 1rem; line-height: 1.55; }
a { color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 0.5rem; top: 0.5rem; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; z-index: 99; border-radius: 8px; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; background: var(--top-bg); color: var(--top-ink); }
.brand { display: flex; gap: 0.7rem; align-items: center; }
.brand h1 { font-size: 1.6rem; font-weight: 800; color: inherit; font-weight: 700; }
.brand p { margin: 0; font-size: 0.85rem; opacity: 0.9; }
.tools { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.tools select { max-width: 11rem; }
.icon-btn.wide { padding: 0 0.7rem; font-weight: 700; font-size: 0.85rem; }
.icon-btn svg { display: block; margin: auto; }
.icon-btn { min-width: 2.4rem; min-height: 2.4rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: inherit; cursor: pointer; font-size: 1rem; }
.icon-btn[aria-pressed='true'] { background: rgba(255, 255, 255, 0.25); }
.badge { font-size: 0.78rem; padding: 0.25rem 0.6rem; border-radius: 99px; background: var(--accent); color: #2b1c00; font-weight: 600; }

.tabs { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.5rem 1rem 0; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 0.7rem 0.9rem; cursor: pointer; font: inherit; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--brand); border-color: var(--brand); }

main { max-width: 960px; margin: 0 auto; padding: 1rem; }
.panel { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 0; }
.label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
textarea, input[type='text'], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.7rem;
}
textarea { resize: vertical; min-height: 6rem; }
.row { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.8rem; }
.row.wrap { flex-wrap: wrap; }
.row input[type='text'] { flex: 1 1 10rem; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; margin: 0.6rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 0.3rem 0.75rem; cursor: pointer; font: inherit; font-size: 0.9rem; }
.chip:hover, .chip[aria-pressed='true'] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.check { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
details.options { margin-top: 0.8rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
details.options summary { cursor: pointer; color: var(--muted); font-weight: 600; }
fieldset.langs { border: 1px solid var(--line); border-radius: 10px; margin: 0.8rem 0 0; padding: 0.6rem 0.8rem; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0.55rem 0.95rem; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:disabled { opacity: 0.6; cursor: wait; }
.btn.big { padding: 0.8rem 1.4rem; font-size: 1.05rem; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.link { border: 0; background: transparent; color: var(--brand); text-decoration: underline; padding: 0.3rem; }
.btn.small { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.btn.rec { background: var(--danger); color: #fff; border-color: var(--danger); }

.banner { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); padding: 0.7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.banner.warn { background: var(--warn-bg); border-left-color: var(--danger); font-weight: 600; cursor: pointer; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 10px; z-index: 50; max-width: 90vw; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
.toast.error { background: var(--danger); color: #fff; }

/* Result */
.result-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.result-head h2 { font-size: 1.4rem; margin: 0; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.tag { font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-weight: 600; }
.tag.high { background: var(--danger); color: #fff; border-color: var(--danger); }
.tag.medium { background: var(--accent); color: #2b1c00; border-color: var(--accent); }
.tag.low { color: var(--ok); border-color: var(--ok); }
.summary { font-size: 1.15rem; line-height: 1.75; font-weight: 500; background: var(--bg); border-radius: 12px; padding: 0.9rem 1rem; margin: 0.8rem 0; border-left: 5px solid var(--brand); white-space: pre-wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.toolbar label { display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.toolbar input[type='range'] { width: 6rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.original { white-space: pre-wrap; font-size: 0.92rem; background: var(--bg); border-radius: 10px; padding: 0.8rem; max-height: 28rem; overflow: auto; border: 1px dashed var(--line); }
mark { background: #ffe08a; color: #2b1c00; border-radius: 3px; padding: 0 2px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.item.done .txt { text-decoration: line-through; opacity: 0.6; }
.item input[type='checkbox'] { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; flex: none; }
.item .txt { flex: 1; }
.item .meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; align-items: center; }
.due { font-weight: 700; font-size: 0.85rem; }
.due.overdue, .due.soon { color: var(--danger); }
.sec-title { display: flex; align-items: center; gap: 0.5rem; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0 0 0.5rem; color: var(--muted); }
.warnbox { border: 1px solid var(--accent); background: var(--warn-bg); border-radius: 10px; padding: 0.7rem 1rem; }
.warnbox ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.conf { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: var(--muted); }
meter, progress { height: 0.7rem; width: 6rem; }
.stack { display: grid; gap: 1rem; }

.chat { display: grid; gap: 0.6rem; margin: 0.8rem 0; }
.bubble { padding: 0.6rem 0.9rem; border-radius: 14px; max-width: 90%; white-space: pre-wrap; }
.bubble.user { background: var(--brand); color: var(--brand-ink); justify-self: end; }
.bubble.bot { background: var(--bg); border: 1px solid var(--line); }
.bubble blockquote { margin: 0.5rem 0 0; padding-left: 0.7rem; border-left: 3px solid var(--accent); color: var(--muted); font-size: 0.9rem; }
.meter-row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.tr-card textarea { min-height: 7rem; }
.foot { max-width: 960px; margin: 1rem auto 3rem; padding: 0 1rem; color: var(--muted); font-size: 0.85rem; }

@media print {
  .top, .tabs, .input-card, .toolbar, .foot, .btn, .banner, #tab-notices, #tab-reply, #tab-ask, #tab-teacher, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .chip { transition: background 0.15s, border-color 0.15s; } }

/* ---- v4 additions ---- */
:root[data-font='legible'] { --font-body: 'Atkinson Hyperlegible', 'Montserrat', system-ui, sans-serif; --font-display: 'Atkinson Hyperlegible', 'Montserrat', system-ui, sans-serif; }
:root[data-font='legible'] body { letter-spacing: 0.02em; line-height: 1.8; }
.sub { font-size: 1rem; margin: 1rem 0 0.3rem; }
.checks { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; }
.checks li.ok { color: var(--ok); font-weight: 600; }
.checks li.bad { color: var(--danger); font-weight: 600; }
.checks li .muted { font-weight: 500; }
.clarity { margin-top: 0.8rem; }
.easy .summary { font-size: 1.35rem; line-height: 1.9; }
.easy .item { padding: 1rem; font-size: 1.15rem; }
.easy .item input[type='checkbox'] { width: 1.8rem; height: 1.8rem; }
.easy .btn.big { font-size: 1.25rem; padding: 1rem 1.8rem; }
#teacherOut .tr-card textarea { min-height: 6rem; }
@media print {
  body.print-teacher .top, body.print-teacher .tabs, body.print-teacher .foot, body.print-teacher #teacherIn, body.print-teacher .toolbar, body.print-teacher .banner, body.print-teacher .meter-row { display: none !important; }
  body.print-teacher #tab-teacher { display: grid !important; }
  body.print-teacher .tr-card textarea { border: 0; resize: none; overflow: visible; height: auto; font-size: 12pt; background: #fff; color: #000; }
}

/* ================= v5 design layer ================= */
:root {
  --bg: #f4f7f6;
  --card: #ffffff;
  --ink: #14282b;
  --muted: #5b6f72;
  --line: #e3ebe9;
  --brand: #0d6e72;
  --brand-2: #17a097;
  --accent: #f2a541;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(13, 60, 64, 0.05), 0 12px 36px -12px rgba(13, 60, 64, 0.18);
  --grad: linear-gradient(135deg, #0b5559 0%, #0d6e72 45%, #17a097 100%);
  --soft: #eef5f4;
}
:root[data-theme='dark'] {
  --bg: #0c1415; --card: #141f21; --ink: #eaf3f2; --muted: #9bb1b3; --line: #243436; --soft: #1a2a2c;
  --brand: #4cc6bd; --brand-2: #2fa89f; --brand-ink: #04211f; --shadow: 0 12px 36px -14px rgba(0, 0, 0, 0.6);
  --grad: linear-gradient(135deg, #082f32 0%, #0b4a4e 50%, #0f6f6c 100%);
}
body {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(23, 160, 151, 0.12), transparent 60%),
    radial-gradient(50rem 28rem at -10% 10%, rgba(242, 165, 65, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.top {
  background: var(--grad); padding: 1.3rem clamp(1rem, 4vw, 2.5rem) 1.6rem; position: relative; overflow: hidden;
  border-radius: 0 0 28px 28px; box-shadow: 0 14px 40px -18px rgba(11, 85, 89, 0.7);
}
.top::before, .top::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); pointer-events: none; }
.top::before { width: 18rem; height: 18rem; right: -5rem; top: -9rem; }
.top::after { width: 11rem; height: 11rem; left: 38%; bottom: -8rem; background: rgba(242, 165, 65, 0.16); }
.top > * { position: relative; z-index: 1; }
.brand h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.brand p { font-size: 0.9rem; opacity: 0.88; margin-top: 0.15rem; }
.brand svg, .brand img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.tools select { border-radius: 99px; border: 0; padding: 0.55rem 1rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.icon-btn { border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); transition: background 0.2s, transform 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.icon-btn[aria-pressed='true'] { background: #fff; color: var(--brand); }
.badge { background: rgba(255, 255, 255, 0.95); color: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.badge:empty { display: none; }

.tabs {
  background: transparent; border: 0; justify-content: center; padding: 1rem 1rem 0; position: static; gap: 0.35rem; flex-wrap: wrap; overflow: visible;
}
.tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 0.6rem 1.15rem;
  box-shadow: 0 2px 6px rgba(13, 60, 64, 0.05); transition: all 0.2s;
}
.tabs button:hover { color: var(--brand); transform: translateY(-1px); }
.tabs button[aria-selected='true'] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(13, 110, 114, 0.7); }

main { max-width: 1000px; padding: 1.4rem clamp(0.9rem, 3vw, 1.6rem); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.45s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.label { color: var(--brand); font-size: 0.76rem; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 0.5rem; }
textarea, input[type='text'], select { background: var(--soft); border: 1.5px solid transparent; border-radius: 16px; padding: 0.85rem 1rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
textarea:focus, input[type='text']:focus, select:focus { outline: none; background: var(--card); border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(23, 160, 151, 0.15); }
textarea { min-height: 9rem; }

.btn { border-radius: 99px; border: 1.5px solid var(--line); padding: 0.6rem 1.1rem; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(13, 60, 64, 0.35); }
.btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(13, 110, 114, 0.75); }
.btn.primary:hover { box-shadow: 0 14px 28px -10px rgba(13, 110, 114, 0.85); }
.btn.big { padding: 0.95rem 1.8rem; font-size: 1.05rem; }
.btn.link { box-shadow: none; }
.chip { background: var(--soft); border: 1px solid transparent; padding: 0.4rem 0.9rem; transition: all 0.2s; }
.chip:hover { background: var(--grad); color: #fff; transform: translateY(-1px); }

.banner { border: 0; border-left: 0; border-radius: 18px; box-shadow: var(--shadow); background: var(--card); }
.banner.warn { background: linear-gradient(90deg, #fff1d1, #ffe4b0); color: #4a2f00; }
details.options summary { color: var(--brand); }

.summary { background: linear-gradient(135deg, var(--soft), transparent); border-left: 0; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.4rem; position: relative; }
.summary::before { content: '“'; position: absolute; top: -0.3rem; left: 0.7rem; font-size: 3.5rem; color: var(--accent); opacity: 0.6; line-height: 1; }
.summary { padding-top: 1.6rem; }
.result-head h2 { font-size: 1.7rem; letter-spacing: -0.03em; }
.tag { border-radius: 99px; background: var(--soft); border: 0; padding: 0.25rem 0.7rem; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0.85rem 1rem; transition: box-shadow 0.2s, transform 0.2s; }
.item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.item input[type='checkbox'] { accent-color: var(--brand-2); }
.original { background: var(--soft); border: 0; border-radius: 16px; }
.bubble { border-radius: 20px; }
.bubble.user { background: var(--grad); }
.bubble.bot { background: var(--soft); border: 0; }
.warnbox { border-radius: 18px; border: 0; background: #fff3d9; color: #4a2f00; }
:root[data-theme='dark'] .warnbox { background: #3a2f14; color: #f7e6c0; }
.toast { border-radius: 99px; }
.foot { text-align: center; }
meter, progress { accent-color: var(--brand-2); }
@media (max-width: 600px) {
  .brand h1 { font-size: 1.6rem; }
  .card { padding: 1.1rem; border-radius: 18px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .top { border-radius: 0 0 22px 22px; }
}
.tools select { max-width: 17rem; min-width: 12rem; text-overflow: ellipsis; }
.banner .btn { margin-inline-start: 0.6rem; }

/* ---- live demo (captions) ---- */
.tour-launch { background: var(--accent) !important; color: #2b1c00 !important; border-color: transparent !important; font-weight: 800 !important; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); }
#tourBar { position: fixed; inset-inline: 0; bottom: 0; z-index: 100; background: rgba(8, 30, 32, 0.94); color: #fff; padding: 0.8rem clamp(1rem, 4vw, 2rem) 1rem; backdrop-filter: blur(10px); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: #8fe0d8; font-weight: 700; }
.tour-ctl { display: flex; align-items: center; gap: 0.4rem; }
.tour-ctl button { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 99px; min-width: 2.2rem; height: 2.2rem; cursor: pointer; font-size: 1rem; }
.tour-ctl button:hover { background: rgba(255,255,255,.25); }
.tour-narr { display: inline-flex; gap: .3rem; align-items: center; text-transform: none; letter-spacing: 0; color: #fff; font-weight: 600; margin-inline-end: .3rem; cursor: pointer; }
.tour-cap { margin: 0.5rem auto 0.7rem; max-width: 60rem; font-size: clamp(1.05rem, 2.2vw, 1.45rem); line-height: 1.5; font-weight: 600; text-align: center; min-height: 3em; display: flex; align-items: center; justify-content: center; }
.tour-prog { height: 5px; background: rgba(255,255,255,.18); border-radius: 9px; overflow: hidden; }
.tour-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #17a097, #f2a541); transition: width .5s ease; }
.touring main { padding-bottom: 14rem; }
.tour-spot { outline: 4px solid var(--accent); outline-offset: 6px; border-radius: 16px; animation: spotpulse 1.6s ease-in-out infinite; }
@keyframes spotpulse { 50% { outline-color: rgba(242,165,65,.35); } }
@media (prefers-reduced-motion: reduce) { .tour-spot { animation: none; } }
@media print { #tourBar { display: none !important; } }
