:root {
  --bg: #f5f7fb;
  --bg-2: #eef2ff;
  --bar: rgba(255,255,255,.88);
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #eef2ff;
  --accent: #4f46e5;
  --accent-2: #4338ca;
  --plus: #f59e0b;
  --plus-ink: #1f1300;
  --ok: #065f46;
  --warn: #92400e;
  --shadow: 0 1px 2px #0f172a14, 0 8px 24px #312e8114;
  --shadow-md: 0 16px 40px #312e8124;
  --radius: 1.25rem;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-2: #111827;
  --bar: rgba(15,23,42,.88);
  --card: #111827;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #1e293b;
  --soft: #1e1b4b;
  --accent: #818cf8;
  --accent-2: #a5b4fc;
  --plus: #fbbf24;
  --plus-ink: #1f1300;
  --ok: #6ee7b7;
  --warn: #fcd34d;
  --shadow: 0 1px 2px #0008, 0 10px 28px #0006;
  --shadow-md: 0 18px 50px #0008;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  padding-top: 56px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% -10%, #c7d2fe 0, transparent 32%),
    radial-gradient(ellipse at 100% 0, #e0e7ff 0, transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Figtree", system-ui, sans-serif;
  line-height: 1.65;
}
html[data-theme="dark"] body.site {
  background:
    radial-gradient(ellipse at 8% -10%, #312e81 0, transparent 34%),
    radial-gradient(ellipse at 100% 0, #1e1b4b 0, transparent 28%),
    var(--bg);
}
body.site a { color: inherit; text-decoration: none; }
body.site button, body.site input, body.site textarea, body.site select { font: inherit; color: inherit; }
body.site button { cursor: pointer; }
body.site button:focus-visible, body.site a:focus-visible, body.site input:focus-visible, body.site textarea:focus-visible, body.site select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 56px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #eceae6;
}
html[data-theme="dark"] .topbar { background: #0c0a09; border-bottom-color: #292524; }
.top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; background: #7212b7; color: white; font-weight: 700; font-size: .85rem;
}
.brand small { display: block; font-weight: 600; color: var(--muted); letter-spacing: .08em; font-size: .68rem; }
.top-new, .plus-link, .join-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px;
  border-radius: 8px; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.top-new {
  border: 1px solid #d6d3d1; background: #fff; color: var(--ink); padding: 0 10px;
}
html[data-theme="dark"] .top-new { background: #1c1917; border-color: #44403c; }
.top-new svg, .plus-link svg, .join-btn svg, .menu-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plus-link { color: #6d28d9; padding: 0 8px; }
.join-btn { background: #7212b7; color: white; padding: 0 14px; }
.join-btn:hover { background: #5b0f94; }
.modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.modes button, .text-btn {
  border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px; font-weight: 700;
}
.modes button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.menu-btn {
  display: none; place-items: center; width: 32px; height: 32px;
  border: 0; background: transparent; border-radius: 8px; color: #57534e;
}
.menu-btn svg, .side svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-select, .theme-btn {
  border: 0; background: transparent; border-radius: 8px; padding: 6px 8px;
}
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px;
}
.lang-select { max-width: 9.5rem; }
.theme-btn { min-width: 42px; }
.btn { font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
[hidden] { display: none !important; }
.btn.login { color: var(--accent-2); }
.btn.plus { background: var(--plus); color: var(--plus-ink); border-color: transparent; box-shadow: var(--shadow); }
.app-main { margin-left: 268px; min-width: 0; }
html.nav-collapsed .app-main { margin-left: 0; }
.shell { width: min(1100px, calc(100% - 36px)); margin: 18px auto 40px; }
.side {
  position: fixed; z-index: 30; top: 56px; bottom: 0; left: 0; width: 268px;
  display: flex; flex-direction: column;
  padding: 6px 8px 8px; overflow: hidden;
  background: #fafaf9; border-right: 1px solid #eceae6;
  transition: transform .18s ease;
}
html[data-theme="dark"] .side { background: #1c1917; border-right-color: #292524; }
html.nav-collapsed .side { transform: translateX(-110%); }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto;
  border: 0; background: transparent; color: #57534e; border-radius: 8px;
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn:hover { background: #e7e5e4; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 6px; scrollbar-width: thin; }
.side-sec { display: flex; flex-direction: column; gap: 1px; }
.side-label, .side-sub, .tool, .side-app, .side-account {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; text-align: start; text-decoration: none; color: #44403c;
  border-radius: 8px; min-height: 30px; padding: 3px 8px; font-weight: 500; font-size: .9rem;
  transition: background-color .16s ease, color .16s ease;
}
html[data-theme="dark"] body.site .side-label,
html[data-theme="dark"] body.site .side-sub,
html[data-theme="dark"] body.site .tool,
html[data-theme="dark"] body.site .side-app { color: #e7e5e4; }
.side-label { cursor: default; color: #1c1917; font-weight: 700; }
body.site .side-sub, body.site .tool, body.site .side-app { color: #57534e; font-weight: 500; }
.side-sub svg, .tool svg, .side-app svg, .side-label svg, .join-wide svg, .pref-label svg, .pro-cta svg, .mini svg {
  width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.side-label svg { width: 15px; height: 15px; }
body.site .side-sub:hover, body.site .tool:hover, body.site .side-app:hover, body.site .icon-btn:hover, body.site .chat-open:hover, body.site .mini:hover {
  background: #eef2ff; color: #4338ca;
}
html[data-theme="dark"] body.site .side-sub:hover, html[data-theme="dark"] body.site .tool:hover, html[data-theme="dark"] body.site .side-app:hover, html[data-theme="dark"] body.site .chat-open:hover {
  background: #312e81; color: #e0e7ff;
}
body.site .tool.active, body.site .side-sub.active, body.site .side-link.active, body.site .chat-row.active .chat-open, body.site #showFav[aria-pressed="true"] {
  background: #e0e7ff; color: #4338ca; font-weight: 700;
  box-shadow: inset 3px 0 0 #4f46e5;
}
html[dir="rtl"] body.site .tool.active, html[dir="rtl"] body.site .side-sub.active, html[dir="rtl"] body.site .side-link.active, html[dir="rtl"] body.site .chat-row.active .chat-open, html[dir="rtl"] body.site #showFav[aria-pressed="true"] {
  box-shadow: inset -3px 0 0 #4f46e5;
}
html[data-theme="dark"] body.site .tool.active, html[data-theme="dark"] body.site .side-sub.active, html[data-theme="dark"] body.site .side-link.active, html[data-theme="dark"] body.site .chat-row.active .chat-open, html[data-theme="dark"] body.site #showFav[aria-pressed="true"] {
  background: #312e81; color: #e0e7ff; font-weight: 700;
}
.side-list { display: flex; flex-direction: column; gap: 2px; }
.chat-row { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
.chat-row .chat-open { width: auto; flex: 1; min-width: 0; }
.chat-row .chat-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.nest { padding-left: 12px; }
.mini {
  width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto;
  border: 0; background: transparent; border-radius: 8px; color: #a8a29e;
  transition: background-color .16s ease, color .16s ease;
}
.mini.star[aria-pressed="true"] { color: #4f46e5; }
.mini.star[aria-pressed="true"] svg { fill: currentColor; }
.mini.trash:hover { background: #fee2e2; color: #b91c1c; }
html[data-theme="dark"] .mini.trash:hover { background: #450a0a; color: #fecaca; }
.side-note, .muted { margin: 2px 8px; color: #a8a29e; font-size: .78rem; }
.folder-form input {
  width: 100%; margin: 2px 0 4px; border: 1px solid #d6d3d1; background: white; border-radius: 8px; padding: 6px 8px;
}
.side-dock {
  display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto;
  padding: 8px 4px 0; border-top: 1px solid #eceae6;
}
html[data-theme="dark"] .side-dock { border-top-color: #292524; }
.usage-card {
  padding: 8px 10px; border: 1px solid #e7e5e4; border-radius: 12px; background: white;
}
html[data-theme="dark"] .usage-card { background: #292524; border-color: #44403c; color: #e7e5e4; }
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; font-weight: 600; color: #57534e; }
html[data-theme="dark"] .usage-head { color: #d6d3d1; }
.usage-head b { color: #4338ca; font-weight: 800; }
html[data-theme="dark"] .usage-head b { color: #c7d2fe; }
.usage-track { height: 6px; margin-top: 8px; border-radius: 999px; background: #e0e7ff; overflow: hidden; }
html[data-theme="dark"] .usage-track { background: #1e1b4b; }
.usage-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: #4f46e5; transition: width .25s ease; }
.pro-card {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; color: white; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #a855f7);
  box-shadow: 0 8px 20px #4f46e533;
}
.pro-card:hover { color: white; filter: saturate(1.08); }
.pro-badge {
  justify-self: start; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  background: #ffffff33; border: 1px solid #ffffff55; border-radius: 999px; padding: 2px 8px;
}
.pro-title { font-size: .95rem; }
.pro-body { margin: 0; color: #f5f3ff; font-size: .75rem; line-height: 1.35; font-weight: 500; }
.pro-cta {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px;
  background: white; color: #4f46e5; font-weight: 800; border-radius: 999px; padding: 6px 11px;
  animation: pro-spark 1.8s ease-in-out infinite;
}
.pro-cta svg { width: 15px; height: 15px; }
@keyframes pro-spark {
  0%, 100% { box-shadow: 0 0 0 0 #ffffff66; }
  50% { box-shadow: 0 0 16px 2px #ffffffcc; }
}
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 4px; }
.pref-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .88rem; font-weight: 650; color: #44403c; }
html[data-theme="dark"] .pref-label { color: #e7e5e4; }
.switch {
  width: 42px; height: 24px; padding: 2px; border: 0; border-radius: 999px; background: #d6d3d1;
  display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer;
  transition: background-color .16s ease;
}
.switch-knob {
  width: 20px; height: 20px; border-radius: 999px; background: white;
  box-shadow: 0 1px 2px #0003; transition: transform .16s ease;
}
.switch[aria-checked="true"] { background: #4f46e5; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(18px); }
html[dir="rtl"] .switch[aria-checked="true"] .switch-knob { transform: translateX(-18px); }
.lang-mini {
  max-width: 9.2rem; border: 1px solid #e7e5e4; background: white; color: #1c1917;
  border-radius: 999px; padding: 4px 8px; font-weight: 700; font-size: .78rem;
}
html[data-theme="dark"] .lang-mini { background: #292524; color: #e7e5e4; border-color: #44403c; }
.side-pitch { display: grid; gap: 6px; padding: 0; text-align: center; }
.side-pitch p { margin: 0; color: #78716c; font-size: .75rem; line-height: 1.35; }
.join-wide {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 34px;
  border-radius: 8px; background: #7212b7; color: white; font-weight: 700; text-decoration: none;
  transition: background-color .16s ease;
}
.join-wide:hover { background: #5b0f94; color: white; }
.side-account { margin-top: 0; }
.settings-board { display: grid; gap: 12px; }
.settings-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
.settings-card h3 { margin: 0 0 4px; }
.settings-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.settings-card .lang-select { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; max-width: 12rem; font-weight: 700; }
.settings-usage { padding: 16px 18px; }
.settings-join { width: auto; min-width: 108px; padding: 0 16px; }
.avatar {
  width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 999px; background: #7212b7; color: white; font-weight: 700; font-size: .8rem;
}
.side-user-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-user-meta b, .side-user-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-meta small { color: #a8a29e; font-weight: 500; }
.nav-backdrop { display: none; }
.hero { text-align: center; padding: 18px 8px 8px; }
.kicker { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
.hero h1 { margin: 10px 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.15; letter-spacing: -.045em; }
.lead { margin: 0 auto; max-width: 46ch; color: var(--muted); }
.panel {
  width: min(760px, 100%); margin: 22px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-md); padding: 18px;
}
.drop {
  position: relative; display: grid; gap: 6px; place-items: center; text-align: center;
  min-height: 180px; padding: 28px 18px; border: 1.5px dashed #a5b4fc; border-radius: 22px; background: var(--bg-2);
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { font-size: 1.25rem; }
.drop span, .trust, .status { color: var(--muted); }
.trust { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #fffbeb; color: var(--warn); border: 1px solid #fde68a; font-size: .84rem; }
html[data-theme="dark"] .trust { background: #3b2f12; border-color: #854d0e; }
.yt-row { display: flex; gap: 8px; align-items: center; }
.yt-row button { white-space: nowrap; flex: 0 0 auto; }
.yt-row input, .ask input, .ticket input, .ticket textarea, .ticket select, .auth input {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px;
}
.primary, .ask button, .ticket button {
  border: 0; border-radius: 14px; background: var(--accent); color: white; font-weight: 700; padding: 12px 16px;
  box-shadow: var(--shadow);
}
.primary:disabled { opacity: .55; }
.sample-row { margin: 12px 0 0; }
.sample-btn { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 0; text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.card, .faq details, .ticket, .info article, .sheet, .chat, .stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.card { padding: 16px; text-align: left; }
.card b { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; box-shadow: var(--shadow); font-weight: 700; }
.section { width: min(980px, 100%); margin: 28px auto; }
.section h2 { margin: 6px 0 14px; letter-spacing: -.03em; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.help-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.ticket { padding: 18px; }
.ticket h2 { margin-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticket label, .auth label { display: block; margin: 10px 0 4px; font-size: .85rem; font-weight: 700; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info article { padding: 16px; }
.reader { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 8px; }
.sheet, .chat { min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.sheet-bar, .chat-bar, .sheet-tools { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.summary-card { padding: 12px 14px 4px; border-bottom: 1px solid var(--line); background: var(--card); }
.download-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.download-bar button {
  border: 1px solid var(--line); background: var(--soft); color: var(--accent-2);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
}
.download-bar button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.summary-card .status { min-height: 1.4em; margin: 8px 0; }
.summary-card .status[data-state="error"] { color: #b91c1c; font-weight: 700; }
.summary-sheet, #summarySheet { margin: 0 0 10px; }
#summarySheet h3 { margin: 0 0 8px; letter-spacing: -.03em; }
.summary-kicker { margin: 10px 0 2px; color: var(--accent); font-size: .75rem; font-weight: 700; }
.summary-question, #summarySheet p, #summarySheet li { margin: 0 0 6px; }
#summarySheet ul { margin: 0; padding-left: 1.1rem; }
.sheet-title { min-width: 0; display: flex; flex-direction: column; }
.sheet-title strong, .chat-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost { margin-left: auto; border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 6px 10px; }
.sheet-tools button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; min-width: 34px; height: 34px; }
.sheet-tools button:disabled { opacity: .4; }
.tool-gap { flex: 1; }
.page-label, .zoom-label { min-width: 4.5rem; text-align: center; font-size: .85rem; }
.video-frame { margin: 12px; border: 0; width: calc(100% - 24px); aspect-ratio: 16/9; border-radius: 16px; background: #020617; }
.pdf-pages { flex: 1; overflow: auto; padding: 14px; background: var(--bg-2); display: grid; gap: 12px; align-content: start; }
.pdf-pages canvas { width: auto; max-width: 100%; height: auto; background: white; border-radius: 12px; box-shadow: var(--shadow); justify-self: center; }
.section-card { margin: 0; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.section-card b { display: block; color: var(--accent); font-size: .75rem; }
.pdf-pages.flash .section-card.current, .pdf-pages.flash canvas { outline: 3px solid var(--plus); }
#thread { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.bubble { max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 16px; }
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--bg); }
.bubble.doc { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask input { margin: 0; }
.ask button { white-space: nowrap; }
.cites { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cite { display: block; width: 100%; text-align: start; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
button.cite { cursor: pointer; }
.cite q { display: block; margin: 4px 0; }
.cite-page { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--card); font-size: .75rem; font-weight: 700; }
.mega {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px;
  width: min(1100px, calc(100% - 32px)); margin: 10px auto 28px; padding: 28px;
  border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow);
}
.mega h2 { margin: 0 0 8px; font-size: 1rem; }
.mega a, .mega p { display: block; color: var(--muted); margin: 6px 0; }
.mega .brand { margin-bottom: 8px; }
.auth-wrap { width: min(460px, calc(100% - 28px)); margin: 48px auto; }
.auth { padding: 22px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tabs button { flex: 1; border-radius: 999px; background: transparent; }
body.site .auth-tabs button.is-on { background: #e0e7ff; color: #4338ca; font-weight: 700; }
.auth .hint { margin: 4px 0 0; color: var(--muted, #78716c); font-size: .82rem; }
.auth .status[data-state="error"] { color: #b91c1c; font-weight: 700; }
html[data-theme="dark"] body.site .auth-tabs button.is-on { background: #312e81; color: #e0e7ff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(980px, calc(100% - 28px)); margin: 12px auto 28px; }
.plan { padding: 18px; }
.plan.featured { outline: 2px solid var(--accent); }
.legal { width: min(760px, calc(100% - 28px)); margin: 28px auto 40px; }
.legal h1 { letter-spacing: -.03em; }
.legal h2 { font-size: 1.05rem; margin-top: 22px; }
html[dir="rtl"] .side { left: auto; right: 0; border-right: 0; border-left: 1px solid #eceae6; }
html[dir="rtl"] .app-main { margin-left: 0; margin-right: 268px; }
html[dir="rtl"].nav-collapsed .app-main { margin-right: 0; }
html[dir="rtl"] .side-sub, html[dir="rtl"] .tool, html[dir="rtl"] .side-app { text-align: right; }
@media (max-width: 980px) {
  .app-main, html.nav-collapsed .app-main, html[dir="rtl"] .app-main, html[dir="rtl"].nav-collapsed .app-main { margin-left: 0; margin-right: 0; }
  .help-grid, .info, .plans, .mega, .cards, .reader { grid-template-columns: 1fr; }
  .menu-btn { display: grid; }
  .desk-only, .top-new, .brand > span:last-child, .theme-btn { display: none; }
  .side { width: min(280px, 86vw); transform: translateX(-105%); box-shadow: var(--shadow-md); pointer-events: none; }
  html.nav-collapsed .side { transform: translateX(-105%); }
  html[dir="rtl"] .side, html[dir="rtl"].nav-collapsed .side { transform: translateX(105%); }
  body.nav-open .side { transform: none; pointer-events: auto; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 56px 0 0; z-index: 25; border: 0; background: #0f172a55; }
  .top-actions { gap: 4px; }
  .lang-select { max-width: 6.2rem; }
  .sheet, .chat { min-height: 0; }
  .pdf-pages { max-height: 52vh; }
  .settings-card { align-items: flex-start; flex-direction: column; }
  .settings-join { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pro-cta, .usage-fill, .switch-knob, .side-sub, .tool, .side-app { animation: none; transition: none; }
}
