:root {
  --ink: #0b2018;
  --ink-soft: #18362b;
  --muted: #607168;
  --line: #d9e4dc;
  --paper: #f3f7f1;
  --surface: #fbfdfa;
  --raised: #ffffff;
  --green: #147a4f;
  --green-bright: #36d987;
  --mint: #dfffe9;
  --wash: #e8f0e9;
  --danger: #a23f46;
  --shadow: 0 24px 80px rgba(15, 56, 40, 0.12);
  --animate-duration: 680ms;
  --animate-delay: 1s;
  --animate-repeat: 1;
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(20, 122, 79, 0.28); outline-offset: 3px; }

/* Extracted from Animate.css 4.1.1 (MIT), limited to effects used by Radix. */
.animate__animated { animation-duration: 1s; animation-duration: var(--animate-duration); animation-fill-mode: both; }
@keyframes fadeIn { 0% { opacity: 0; } to { opacity: 1; } }
.animate__fadeIn { animation-name: fadeIn; }
@keyframes fadeInUp {
  0% { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translateZ(0); }
}
.animate__fadeInUp { animation-name: fadeInUp; }
.js [data-animate] { opacity: 0; transform: translateY(18px); transition: transform 680ms cubic-bezier(.16, 1, .3, 1); }
.js [data-animate].is-visible, .js [data-animate].animate__animated { opacity: 1; transform: translateY(0); }

.nav {
  position: relative;
  z-index: 10;
  min-height: 76px;
  width: min(calc(100% - 48px), 1240px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.045em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 5px 14px rgba(11, 32, 24, 0.13); }
.nav nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav nav a { transition: color 160ms ease, transform 160ms ease; }
.nav nav a:hover { color: var(--ink); transform: translateY(-1px); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink) !important; background: transparent; }

main { overflow: hidden; }
.hero {
  position: relative;
  width: min(calc(100% - 48px), 1240px);
  min-height: calc(100dvh - 76px);
  max-height: 880px;
  margin: auto;
  padding: 56px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -180px; top: 2%; border-radius: 50%; background: var(--mint); filter: blur(3px); opacity: 0.78; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 20px 0 24px; font-size: clamp(51px, 5.45vw, 76px); line-height: 0.98; letter-spacing: -0.065em; }
h1 em { color: var(--green); font: inherit; font-style: normal; }
.lead { max-width: 530px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin: 34px 0 16px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 10px; font-weight: 760; cursor: pointer; transition: transform 180ms cubic-bezier(.16, 1, .3, 1), box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.985); }
.primary { color: #effff4; background: var(--ink); box-shadow: 0 10px 28px rgba(11, 32, 24, 0.14); }
.primary:hover { background: var(--ink-soft); box-shadow: 0 14px 34px rgba(11, 32, 24, 0.2); }
.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.52); }
.hero-note { margin: 0; color: var(--muted); font-size: 11px; }

.product-preview { overflow: hidden; border: 1px solid rgba(11, 32, 24, 0.13); border-radius: 22px; background: var(--raised); box-shadow: var(--shadow); transform: rotate(0.45deg); transition: transform 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 400ms ease; }
.product-preview:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 32px 95px rgba(15, 56, 40, 0.17); }
.preview-toolbar { min-height: 70px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.mini-brand { display: flex; align-items: center; gap: 10px; }
.mini-brand img { width: 37px; height: 37px; }
.mini-brand > span { display: grid; gap: 1px; }
.mini-brand strong { font-size: 14px; }
.mini-brand small { color: var(--muted); font-size: 9px; letter-spacing: 0.04em; }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.mode-switch button { padding: 6px 9px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { color: var(--ink); background: var(--raised); box-shadow: 0 2px 8px rgba(11, 32, 24, 0.08); }
.video-frame { position: relative; min-height: 366px; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; background: linear-gradient(150deg, #173b2e 0%, #0b2018 48%, #213228 100%); }
.video-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 13, 9, 0.72), transparent 55%); }
.frame-light { position: absolute; border-radius: 50%; filter: blur(4px); opacity: 0.62; }
.light-one { width: 240px; height: 240px; top: -75px; right: -48px; background: #56e69d; }
.light-two { width: 180px; height: 180px; left: -50px; bottom: 40px; background: #d5b86b; opacity: 0.31; }
.video-context { position: absolute; z-index: 1; inset: 20px 22px auto; display: flex; justify-content: space-between; color: rgba(239, 255, 244, 0.76); font-size: 10px; }
.video-context strong { font-weight: 600; }
.caption-stage { position: relative; z-index: 1; width: 100%; padding: 17px 18px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; color: #fff; background: rgba(5, 18, 12, 0.72); backdrop-filter: blur(14px); }
.caption-stage p { margin: 0; }
.caption-primary { font-size: 18px; font-weight: 700; line-height: 1.45; }
.caption-phonetic { min-height: 18px; margin-top: 4px !important; color: var(--green-bright); font-size: 11px; line-height: 1.45; }
.caption-translation { margin-top: 5px !important; color: rgba(255, 255, 255, 0.72); font-size: 12px; line-height: 1.5; }
.preview-footer { min-height: 55px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.preview-footer > span { display: flex; align-items: center; gap: 7px; }
.preview-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(54, 217, 135, 0.13); }
.preview-footer button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.preview-footer button:hover, .preview-footer button[data-saved="true"] { background: var(--mint); }
.preview-footer button:active { transform: scale(0.97); }

.trust-rail { width: min(calc(100% - 48px), 1180px); margin: 20px auto 150px; padding: 28px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-rail p { margin: 0; padding: 0 28px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.trust-rail p:last-child { border: 0; }
.trust-rail strong { font-size: 24px; letter-spacing: -0.045em; }
.trust-rail span { color: var(--muted); font-size: 11px; line-height: 1.45; }

.directions, .workflow, .membership, .pricing-preview, .privacy, .install { width: min(calc(100% - 48px), 1180px); margin: 0 auto 150px; }
.section-copy { max-width: 740px; margin-bottom: 50px; }
.section-copy h2, .workflow h2, .membership h2, .pricing-preview h2, .privacy h2 { margin: 13px 0 18px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.055em; }
.section-copy > p:last-child, .membership-copy > p, .workflow-intro > p:last-child { max-width: 650px; color: var(--muted); line-height: 1.75; }
.direction-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 14px; align-items: stretch; }
.direction-feature { min-height: 430px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); }
.direction-feature:first-child { background: linear-gradient(145deg, var(--raised), var(--mint)); }
.direction-code { width: max-content; padding: 6px 9px; border: 1px solid currentColor; border-radius: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.direction-feature small { color: var(--green); font-size: 11px; font-weight: 750; }
.direction-feature h3 { margin: 10px 0 13px; font-size: 29px; letter-spacing: -0.04em; }
.direction-feature p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.72; }
.secondary-direction { min-height: 370px; align-self: end; }

.workflow { padding: 72px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; border: 1px solid var(--line); border-radius: 22px; background: var(--wash); }
.workflow ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(11, 32, 24, 0.17); }
.workflow li { min-height: 88px; padding: 19px 0; display: grid; grid-template-columns: 43px 1fr; gap: 14px; border-bottom: 1px solid rgba(11, 32, 24, 0.17); }
.workflow li > b { color: var(--green); font-size: 10px; }
.workflow li span { display: grid; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.workflow li strong { color: var(--ink); font-size: 15px; }

.membership { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 96px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--green); font-weight: 750; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.memory-path { position: relative; display: grid; gap: 14px; }
.memory-path::before { content: ""; position: absolute; left: 20px; top: 30px; bottom: 30px; width: 1px; background: var(--green); opacity: 0.35; }
.memory-path article { position: relative; margin-left: 44px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); box-shadow: 0 12px 35px rgba(15, 56, 40, 0.07); }
.memory-path article::before { content: ""; position: absolute; left: -31px; top: 25px; width: 9px; height: 9px; border: 4px solid var(--paper); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.memory-path article:nth-child(2) { margin-right: 22px; }
.memory-path small { color: var(--green); font-size: 10px; font-weight: 800; }
.memory-path strong { display: block; margin-top: 6px; font-size: 17px; }
.memory-path p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.pricing-preview { padding-top: 76px; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 86px; border-top: 1px solid var(--line); }
.price-lines p { min-height: 63px; margin: 0; padding: 15px 12px; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.price-lines span { color: var(--muted); }
.price-lines .recommended { background: var(--mint); }
.price-lines b i { padding: 3px 5px; border-radius: 5px; color: var(--green); background: rgba(20, 122, 79, 0.1); font-size: 8px; font-style: normal; vertical-align: 2px; }

.privacy { position: relative; padding: 70px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, var(--mint), var(--surface)); }
.privacy-index { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; }
.privacy h2 { max-width: 800px; }
.privacy > p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.install { padding: 54px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.install h2 { margin: 0 0 8px; font-size: 40px; letter-spacing: -0.045em; }
.install p { margin: 0; color: var(--muted); }
.install-action { display: grid; gap: 10px; }
.install-action small { color: var(--muted); font-size: 10px; text-align: center; }

footer { width: min(calc(100% - 48px), 1240px); margin: auto; padding: 35px 0 55px; display: flex; align-items: center; gap: 26px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
footer .brand { color: var(--ink); }
footer > p { flex: 1; }
footer nav { display: flex; gap: 14px; }
footer a:hover { color: var(--green); }

.connection-complete-page {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}
.connection-complete-card {
  width: min(100%, 520px);
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(20 70 48 / .1);
}
.connection-complete-card img { display: block; margin-bottom: 34px; }
.connection-complete-card p {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.connection-complete-card h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
.connection-complete-card span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.extension-login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(111, 222, 151, .18), transparent 30%),
    var(--paper);
}
.extension-login-shell { width: min(100%, 520px); }
.extension-login-shell > .brand { width: max-content; margin: 0 0 22px; }
.extension-login-card {
  min-height: 390px;
  padding: 52px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  box-shadow: 0 28px 80px rgba(29, 70, 51, .12);
}
.extension-login-status {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}
.extension-login-status p { margin: 0; font-size: 12px; }
.extension-login-card .eyebrow { margin: 0 0 18px; }
.extension-login-card h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}
.extension-login-email {
  margin: 13px 0 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 760;
}
.extension-login-copy {
  margin: 30px 0 26px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.extension-login-button {
  width: 100%;
  min-height: 52px;
  font-size: 14px;
}
.extension-login-button:active { transform: scale(.985); }
.extension-login-button:disabled { cursor: wait; opacity: .62; }
.extension-login-note {
  margin: 14px 0 -8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 560px) {
  .extension-login-page { padding: 20px; }
  .extension-login-card { min-height: 360px; padding: 34px 26px; }
}

/* Shared legal, auth and account surfaces. */
.legal { width: min(calc(100% - 48px), 840px); margin: 0 auto 120px; padding-top: 54px; overflow: visible; }
.legal > .brand { margin-bottom: 72px; }
.legal h1 { margin: 16px 0 12px; font-size: clamp(44px, 6vw, 64px); }
.legal .updated { color: var(--muted); font-size: 12px; }
.legal h2 { margin-top: 44px; font-size: 24px; letter-spacing: -0.025em; }
.legal p, .legal li { color: var(--muted); line-height: 1.82; }
.legal a:not(.brand, .button) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal .price-lines { margin-top: 44px; }
.auth-page { min-height: 100dvh; display: grid; place-items: center; background: var(--wash); }
.auth-page::before { content: ""; position: fixed; width: 420px; height: 420px; right: -100px; top: -120px; border-radius: 50%; background: var(--mint); opacity: 0.75; }
.auth-shell { position: relative; width: min(calc(100% - 32px), 540px); padding: 48px 0; overflow: visible; }
.auth-shell > .brand { width: max-content; margin: 0 auto 24px; }
.auth-card { padding: 44px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); box-shadow: var(--shadow); }
.auth-card h1 { margin: 14px 0 18px; font-size: 40px; line-height: 1.05; letter-spacing: -0.05em; }
.auth-card > p:not(.eyebrow, .form-status) { color: var(--muted); line-height: 1.7; }
.auth-card .button { width: 100%; margin-top: 24px; }
.auth-card .button:disabled { opacity: 0.48; cursor: wait; }
.form-status { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.quiet-link { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.account-page { min-height: 100dvh; background: var(--paper); }
.account-shell { max-width: 1040px; margin: auto; padding: 34px 24px 80px; }
.account-head { min-height: 52px; margin-bottom: 42px; display: flex; align-items: center; justify-content: space-between; }
.account-head > a:last-child { color: var(--muted); font-size: 13px; font-weight: 700; }
.account-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; }
.account-grid:has(.account-main[hidden]) { grid-template-columns: minmax(0, 540px); justify-content: center; }
.account-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); box-shadow: 0 10px 34px rgba(15, 56, 40, 0.05); }
.account-card h1, .account-card h2 { margin: 8px 0 14px; letter-spacing: -0.035em; }
.account-card h1 { font-size: 32px; }
.account-card p, .account-card small { color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 10px; }
.login-form input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }
.account-main { display: grid; gap: 18px; }
.usage-number { font-size: 32px; font-weight: 800; letter-spacing: -0.045em; }
.usage-bar { height: 7px; overflow: hidden; border-radius: 7px; background: var(--line); }
.usage-bar i { display: block; width: 0; height: 100%; background: var(--green); transition: width 250ms ease; }
.device-row { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.text-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: transparent; cursor: pointer; }
.danger { color: var(--danger); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-good { color: var(--green); font-weight: 700; }

/* Account authentication and personal center */
.account-page { min-height: 100dvh; background: var(--paper); }
.account-nav {
  width: min(calc(100% - 48px), 1180px);
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-nav nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 650; }
.account-nav nav a:hover { color: var(--ink); }
.auth-shell {
  width: min(calc(100% - 48px), 1080px);
  min-height: calc(100dvh - 72px);
  margin: auto;
  padding: 48px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(56px, 9vw, 118px);
  align-items: center;
}
.auth-intro h1 { margin: 18px 0 22px; font-size: clamp(48px, 6vw, 72px); line-height: .98; letter-spacing: -.06em; }
.auth-intro > p:not(.eyebrow) { max-width: 470px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.auth-benefits { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-benefits span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; }
.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow);
}
.auth-card-head { margin-bottom: 28px; display: flex; align-items: center; gap: 13px; }
.auth-card-head img { width: 45px; height: 45px; border-radius: 12px; }
.auth-card-head h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.auth-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.password-form { display: grid; gap: 8px; }
.password-form label { margin-top: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
}
.password-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 122, 79, .12); outline: 0; }
.password-form .primary { width: 100%; margin-top: 12px; }
.register-code { display: grid; gap: 8px; }
.code-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.auth-mode { width: 100%; margin-top: 14px; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-divider { margin: 23px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); }
.google-button { width: 100%; border-color: var(--line); color: var(--ink); background: var(--surface); gap: 9px; }
.google-mark { width: 20px; height: 20px; display: block; flex: 0 0 auto; }
.form-status { min-height: 20px; margin: 13px 0 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
.auth-legal { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.auth-legal a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* Guest extension connection */
.guest-connect-page {
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(208, 248, 217, .7) 0 12%, transparent 30%),
    var(--wash);
}
.guest-connect-shell {
  width: min(calc(100% - 48px), 1120px);
  min-height: 100dvh;
  margin: auto;
  padding: 34px 0 48px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.guest-connect-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.language-switch {
  padding: 3px;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);
}
.language-switch button {
  min-width: 52px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.language-switch button:hover { color: var(--ink); }
.language-switch button:disabled { cursor: wait; opacity: .62; }
.language-switch button[aria-pressed="true"] {
  color: #effff4;
  background: var(--green);
  box-shadow: 0 4px 12px rgba(20, 122, 79, .18);
}
.language-switch button:active { transform: scale(.97); }
.guest-connect-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
}
.guest-connect-copy { min-width: 0; padding: 64px 0; }
.guest-connect-copy h1 {
  max-width: 650px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7.4vw, 94px);
  line-height: .91;
  letter-spacing: -.07em;
}
.guest-connect-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.guest-connect-preview {
  width: min(100%, 520px);
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .52);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.guest-connect-preview span { color: var(--muted); }
.guest-connect-preview i { color: var(--green); font-style: normal; }
.guest-connect-preview strong { text-align: right; }
.guest-connect-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 24px 70px rgba(15, 56, 40, .12);
  animation: guest-connect-in .42s cubic-bezier(.16, 1, .3, 1) both;
}
.guest-connect-credit {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--mint);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.guest-connect-credit span { color: var(--green); font-size: 11px; font-weight: 750; }
.guest-connect-credit strong { font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.guest-connect-credit small { font-size: 11px; letter-spacing: 0; }
.guest-connect-card h2 { margin: 28px 0 9px; font-size: 27px; letter-spacing: -.04em; }
.guest-connect-card > p:not(.form-status) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guest-connect-card .button { width: 100%; margin-top: 26px; }
.guest-connect-card .button:disabled { cursor: wait; opacity: .48; }
.guest-connect-card .quiet-link { margin-top: 2px; }
@keyframes guest-connect-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-shell {
  width: min(calc(100% - 48px), 1180px);
  min-height: calc(100dvh - 72px);
  margin: auto;
  padding: 28px 0 72px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
}
.dashboard-sidebar { padding: 22px 0; display: flex; flex-direction: column; justify-content: space-between; }
.dashboard-sidebar > div { display: grid; gap: 8px; }
.sidebar-label { padding: 0 12px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-sidebar button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.dashboard-sidebar button[aria-current="page"] { color: var(--ink); background: var(--mint); font-weight: 750; }
.dashboard-sidebar .sidebar-logout { color: var(--danger); }
.dashboard-main { min-width: 0; }
.dashboard-head { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.dashboard-head p { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.dashboard-head h1 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.dashboard-head > span { color: var(--muted); font-size: 12px; }
.dashboard-summary { padding: 30px 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.plan-summary, .usage-summary { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.plan-summary > span, .usage-summary > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.plan-summary > strong, .usage-summary > strong { display: block; margin-top: 14px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.055em; }
.plan-summary p, .usage-summary p { max-width: 360px; min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-summary .button { margin-top: 14px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.section-title p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #eafff1; --ink-soft: #d2f7df; --muted: #9aada3; --line: #2b4137; --paper: #0b1511; --surface: #101c17; --raised: #14221c; --green: #66e6a1; --green-bright: #66e6a1; --mint: #173c2a; --wash: #101e18; --danger: #ff9399; --shadow: 0 24px 80px rgba(0, 0, 0, 0.34); color-scheme: dark; }
  .brand img { box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28); }
  .secondary { background: rgba(20, 34, 28, 0.6); }
  .product-preview { border-color: var(--line); }
  .mode-switch button[aria-pressed="true"] { background: #24382f; }
  .direction-feature:first-child { background: linear-gradient(145deg, var(--raised), var(--mint)); }
  .privacy { background: linear-gradient(135deg, var(--mint), var(--surface)); }
  .memory-path article::before { border-color: var(--paper); }
  .login-form input { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce), print {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .animate__animated { animation-duration: 1ms !important; transition-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js [data-animate] { opacity: 1; }
}

@media (max-width: 960px) {
  .hero { max-height: none; grid-template-columns: 1fr; padding-top: 78px; }
  .hero-copy { max-width: 760px; }
  .product-preview { width: min(100%, 610px); }
  .trust-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-rail p:nth-child(2) { border-right: 0; }
  .trust-rail p { padding: 18px 26px; }
  .workflow { grid-template-columns: 1fr; gap: 34px; }
  .membership { grid-template-columns: 1fr; }
  .memory-path { max-width: 620px; }
  .pricing-preview { grid-template-columns: 1fr; gap: 34px; }
  .auth-shell { grid-template-columns: 1fr; gap: 38px; }
  .auth-intro { max-width: 680px; }
  .auth-card { width: min(100%, 520px); }
  .guest-connect-layout { grid-template-columns: 1fr; gap: 0; }
  .guest-connect-copy { padding-bottom: 28px; }
  .guest-connect-card { width: min(100%, 540px); }
  .dashboard-shell { grid-template-columns: 1fr; gap: 20px; }
  .dashboard-sidebar { padding: 8px 0; flex-direction: row; align-items: center; border-bottom: 1px solid var(--line); }
  .dashboard-sidebar > div { display: flex; align-items: center; }
}

@media (max-width: 700px) {
  .nav { width: min(calc(100% - 32px), 1240px); }
  .nav nav > a:not(.nav-cta) { display: none; }
  .hero { width: min(calc(100% - 32px), 1240px); min-height: auto; padding: 52px 0 90px; }
  h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .video-frame { min-height: 320px; padding: 16px; }
  .caption-primary { font-size: 16px; }
  .preview-toolbar { align-items: flex-start; }
  .mini-brand small { display: none; }
  .trust-rail { width: min(calc(100% - 32px), 1180px); margin-bottom: 100px; }
  .trust-rail p { border-bottom: 1px solid var(--line); }
  .trust-rail p:nth-last-child(-n + 2) { border-bottom: 0; }
  .directions, .workflow, .membership, .pricing-preview, .privacy, .install { width: min(calc(100% - 32px), 1180px); margin-bottom: 100px; }
  .direction-layout { grid-template-columns: 1fr; }
  .direction-feature, .secondary-direction { min-height: 330px; }
  .workflow { padding: 40px 24px; }
  .membership { gap: 46px; }
  .pricing-preview { padding-top: 48px; }
  .price-lines p { grid-template-columns: 78px 1fr; gap: 7px 12px; }
  .price-lines p strong { grid-column: 2; }
  .privacy { padding: 42px 25px; }
  .install { grid-template-columns: 1fr; gap: 28px; }
  .install-action .button { width: 100%; }
  footer { width: min(calc(100% - 32px), 1240px); align-items: flex-start; flex-wrap: wrap; }
  footer > p { width: calc(100% - 120px); flex: auto; }
  footer nav { width: 100%; flex-wrap: wrap; }
  .legal { width: min(calc(100% - 32px), 840px); padding-top: 28px; }
  .legal > .brand { margin-bottom: 48px; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .account-nav { width: min(calc(100% - 32px), 1180px); }
  .account-nav nav { gap: 14px; }
  .auth-shell, .dashboard-shell { width: min(calc(100% - 32px), 1180px); padding-top: 24px; }
  .auth-intro h1 { font-size: 46px; }
  .guest-connect-shell { width: min(calc(100% - 32px), 1120px); padding-top: 18px; }
  .guest-connect-header > span { display: none; }
  .guest-connect-copy { padding: 52px 0 24px; }
  .guest-connect-copy h1 { font-size: clamp(48px, 15vw, 66px); }
  .guest-connect-copy > p:not(.eyebrow) { font-size: 14px; }
  .guest-connect-preview { margin-top: 28px; padding: 15px; gap: 9px; }
  .guest-connect-card { padding: 24px; }
  .dashboard-head { min-height: 92px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .plan-summary, .usage-summary { min-height: 190px; }
  .section-title { flex-direction: column; }
  .subscription-actions { width: 100%; }
  .subscription-details { grid-template-columns: 1fr; }
  .order-row { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .guest-connect-card { animation: none; }
}

/* Homepage navigation and v0.7.0 pricing */
.nav-primary, .nav-actions, .nav-sections, .account-link {
  display: flex;
  align-items: center;
}
.nav-primary { gap: 38px; }
.nav .nav-sections { gap: 22px; }
.nav .nav-actions { gap: 23px; }
.account-link {
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}
.account-link img { width: 21px; height: 21px; }
.nav-actions .current { color: var(--green); }
.nav-cta {
  border-width: 2px;
  padding: 10px 18px;
  font-weight: 780;
}
.hero-actions .primary { width: min(100%, 320px); min-height: 52px; }
.trust-rail { padding: 36px 0; }
.trust-rail p { gap: 16px; }
.trust-rail strong { font-size: 32px; }
.trust-rail span { font-size: 12px; }

.pricing-page {
  width: min(calc(100% - 48px), 1180px);
  margin: auto;
  padding: 88px 0 140px;
  overflow: visible;
}
.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 80px;
  align-items: end;
}
.pricing-hero h1 {
  max-width: 800px;
  margin: 18px 0 0;
  font-size: clamp(54px, 7vw, 88px);
}
.pricing-lead {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.guest-strip {
  margin: 72px 0 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) auto;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.guest-strip > div { display: grid; gap: 6px; }
.guest-strip span, .guest-strip small { color: var(--muted); font-size: 11px; }
.guest-strip p { margin: 0; display: grid; gap: 5px; }
.guest-strip p b { font-size: 20px; }
.guest-strip > strong { font-size: 18px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
}
.plan-featured {
  border: 2px solid var(--green);
  background: linear-gradient(160deg, var(--raised) 25%, var(--mint));
  box-shadow: 0 24px 70px rgba(15, 56, 40, .13);
}
.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--green);
  background: rgba(20, 122, 79, .1);
  font-size: 9px;
  font-weight: 800;
}
.plan-card-head { min-height: 128px; }
.plan-card h2 { margin: 9px 0 8px; font-size: 31px; letter-spacing: -.045em; }
.plan-card-head > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-price { min-height: 64px; display: flex; align-items: baseline; gap: 7px; }
.plan-price strong { font-size: 40px; letter-spacing: -.055em; }
.plan-price span { color: var(--muted); font-size: 12px; }
.plan-quota {
  min-height: 83px;
  padding: 17px 0;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan-quota strong { font-size: 16px; }
.plan-quota span { color: var(--muted); font-size: 11px; }
.plan-card ul {
  margin: 23px 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}
.plan-card li { position: relative; padding-left: 15px; }
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.plan-card .button { width: 100%; margin-top: auto; }
.plan-comparison {
  margin-top: 120px;
  padding-top: 72px;
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(560px, 1.35fr);
  gap: 90px;
  border-top: 1px solid var(--line);
}
.comparison-copy h2 { margin: 13px 0 18px; font-size: clamp(38px, 4vw, 54px); line-height: 1.04; letter-spacing: -.055em; }
.comparison-copy > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.75; }
.comparison-table { min-width: 0; }
.comparison-row {
  min-height: 68px;
  padding: 15px 12px;
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(88px, .7fr));
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.comparison-row span { color: var(--muted); }
.comparison-row b { font-weight: 720; text-align: center; }
.comparison-head { color: var(--green); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.comparison-head span { color: var(--green); }

@media (max-width: 960px) {
  .nav-primary { gap: 22px; }
  .nav .nav-sections, .nav .nav-actions { gap: 15px; }
  .pricing-hero { grid-template-columns: 1fr; gap: 24px; }
  .pricing-lead { max-width: 650px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .plan-card-head { min-height: auto; }
  .plan-comparison { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  .nav-primary { gap: 0; }
  .nav .nav-sections { display: none; }
  .nav .nav-actions > a:not(.nav-cta, .account-link) { display: none; }
  .nav .nav-actions > .account-link { display: flex; }
  .nav .nav-actions { gap: 11px; }
  .account-link { font-size: 0; }
  .account-link img { width: 24px; height: 24px; }
  .nav-cta { padding: 9px 12px; }
  .hero h1 { font-size: 42px; }
  .trust-rail strong { font-size: 25px; }
  .pricing-page { width: min(calc(100% - 32px), 1180px); padding: 56px 0 100px; }
  .pricing-hero h1 { font-size: 41px; }
  .guest-strip { grid-template-columns: 1fr auto; gap: 18px; padding: 20px; }
  .guest-strip p { grid-column: 1 / -1; grid-row: 2; }
  .plan-card { padding: 25px; }
  .plan-comparison { margin-top: 90px; padding-top: 52px; overflow-x: auto; }
  .comparison-table { min-width: 650px; }
}

/* Account center conversion and stable session loading */
.pricing-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 780;
}
.pricing-nav-link b {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--raised);
  background: var(--green);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .02em;
}
.pricing-nav-link:hover { color: var(--ink); }
.pricing-nav-link:hover b { background: var(--ink); }
.account-nav .pricing-nav-link { color: var(--green); }

.account-loading {
  min-height: calc(100dvh - 72px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--muted);
}
.account-loading[hidden] { display: none; }
.account-loading p {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}
.account-loading-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: account-loading-spin .8s linear infinite;
}
@keyframes account-loading-spin { to { transform: rotate(360deg); } }
.account-pending .account-nav nav { visibility: hidden; }

.dashboard-shell {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
}
.dashboard-sidebar {
  min-height: 0;
  justify-content: flex-start;
}
.dashboard-head {
  min-height: 126px;
  align-items: center;
}
.dashboard-head > div { min-width: 0; }
.dashboard-head h1 {
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-head #account-email {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.account-logout {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.account-logout:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--raised);
}

.dashboard-summary {
  padding: 30px 0 20px;
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
  gap: 16px;
}
.plan-summary,
.next-plan-summary {
  min-height: 306px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.plan-summary {
  display: flex;
  flex-direction: column;
}
.plan-summary > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.plan-summary > strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}
.plan-summary > p {
  margin: 15px 0 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.plan-usage {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
}
.plan-usage span,
.plan-usage small {
  color: var(--muted);
  font-size: 10px;
}
.plan-usage b {
  overflow: hidden;
  font-size: 24px;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-switch {
  width: max-content;
  margin: 0 auto 18px;
  padding: 4px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.billing-switch button {
  min-width: 84px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.billing-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.availability-status {
  min-height: 24px;
  margin: 0 0 16px;
  text-align: center;
  color: var(--green);
  font-weight: 700;
}

.plan-card .button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.62;
}
.plan-usage-meter {
  height: 8px;
  margin: 6px 0 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 56, 40, .1);
}
.plan-usage-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7a4f, #51e497);
  transition: width .42s cubic-bezier(.16, 1, .3, 1);
}
.next-plan-summary {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 222, 151, .24), transparent 40%),
    var(--raised);
}
.next-plan-summary::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(20, 122, 79, .18);
  border-radius: 50%;
  pointer-events: none;
}
.next-plan-summary .eyebrow { margin: 0; }
.next-plan-summary h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.next-plan-summary h2 span { color: var(--green); }
.next-plan-summary ul {
  margin: 24px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  list-style: none;
}
.next-plan-summary li {
  position: relative;
  padding-left: 19px;
}
.next-plan-summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 850;
}
.next-plan-summary .button {
  width: max-content;
  margin-top: auto;
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dashboard-sidebar {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .account-nav nav a:last-child { display: none; }
  .account-nav .pricing-nav-link { display: inline-flex; }
  .dashboard-head {
    min-height: 116px;
    align-items: center;
    flex-direction: row;
  }
  .dashboard-head h1 { font-size: 29px; }
  .account-logout {
    flex: 0 0 auto;
    padding: 0 12px;
  }
  .dashboard-summary { grid-template-columns: 1fr; }
  .plan-summary,
  .next-plan-summary { min-height: 280px; }
  .next-plan-summary .button { width: 100%; }
}

/* Daily word learning workspace */
.dashboard-sidebar {
  position: sticky;
  top: 88px;
  height: calc(100dvh - 112px);
  min-height: 420px;
  padding: 22px 0 0;
  justify-content: flex-start;
  gap: 28px;
}
.sidebar-group {
  display: grid;
  gap: 8px;
}
.sidebar-account {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.dashboard-view[hidden] { display: none; }
.daily-dashboard-head {
  min-height: 132px;
  padding: 22px 26px;
  border: 1px solid rgba(129, 159, 146, .2);
  border-radius: 16px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .72), rgba(222, 247, 230, .42)),
    var(--surface);
  align-items: center;
}
.daily-dashboard-head > div > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.daily-settings-button {
  min-width: 138px;
  min-height: 48px;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(15, 56, 40, .14);
}
.daily-settings-button:active { transform: translateY(1px); }
.daily-setup {
  padding: 30px 0 20px;
  display: block;
}
.daily-progress,
.study-session,
.daily-empty,
.daily-complete {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.daily-progress {
  min-height: 330px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  background: var(--raised);
}
.daily-progress-main {
  padding: 30px 32px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 222, 151, .24), transparent 44%),
    var(--surface);
}
.daily-progress-main > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.daily-progress-main > strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(50px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -.07em;
}
.daily-progress-main > strong b { font-weight: 800; }
.daily-progress-main > strong small {
  margin-left: 8px;
  color: var(--muted);
  font-size: .36em;
  letter-spacing: -.03em;
}
.daily-progress-main > p {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.daily-progress .button {
  min-width: 158px;
  min-height: 50px;
}
.daily-queue-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.daily-queue-summary article {
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  align-content: space-between;
  background: var(--surface);
}
.daily-queue-summary span { color: var(--muted); font-size: 11px; }
.daily-queue-summary strong { font-size: 28px; letter-spacing: -.05em; }
.daily-queue-summary .daily-available {
  grid-column: 1 / -1;
  min-height: 142px;
  border-color: rgba(66, 129, 91, .28);
  background: var(--mint);
}
.daily-queue-summary .daily-available strong { font-size: 32px; }
.daily-queue-summary .daily-available b { font-size: 56px; font-weight: 820; }
.daily-settings-modal {
  width: min(calc(100% - 32px), 500px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--raised);
  box-shadow: 0 30px 90px rgba(7, 35, 24, .2);
}
.daily-settings-modal::backdrop {
  background: rgba(7, 24, 17, .42);
  backdrop-filter: blur(5px);
}
.daily-settings-modal[open] { animation: daily-modal-in .2s cubic-bezier(.16, 1, .3, 1); }
.daily-settings-modal form { padding: 28px; }
.daily-settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.daily-settings-modal-head span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.daily-settings-modal-head h2 {
  margin: 6px 0 0;
  font-size: 27px;
  letter-spacing: -.04em;
}
.daily-settings-close {
  min-width: 58px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.daily-settings-close:hover { border-color: var(--green); color: var(--green); }
.daily-settings-modal > form > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.goal-options {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.goal-options button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.goal-options button:hover {
  border-color: var(--green);
  color: var(--green);
}
.goal-options button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--raised);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(15, 56, 40, .14);
}
.goal-options button:active,
.study-actions .button:active,
.daily-progress .button:active { transform: translateY(1px); }
.settings-status {
  min-height: 18px;
  margin: 0 !important;
  color: var(--green) !important;
  font-size: 11px;
}
.dictation-setting {
  margin-top: 20px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}
.dictation-setting input { width: 17px; height: 17px; accent-color: var(--green); }
.setting-help {
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--raised);
  cursor: help;
}
.radix-tooltip {
  position: relative;
  overflow: visible;
}
.radix-tooltip-panel {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: min(280px, calc(100vw - 40px));
  padding: 10px 12px;
  border: 1px solid rgba(81, 228, 151, .38);
  border-radius: 9px;
  color: #eafff1;
  background: #0b2018;
  box-shadow: 0 12px 30px rgba(7, 35, 24, .22);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.55;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  visibility: hidden;
}
.radix-tooltip-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(81, 228, 151, .38);
  border-bottom: 1px solid rgba(81, 228, 151, .38);
  background: #0b2018;
  transform: translate(-50%, -5px) rotate(45deg);
}
.radix-tooltip-end .radix-tooltip-panel {
  right: auto;
  left: -7px;
  transform: translateY(4px);
}
.radix-tooltip-end .radix-tooltip-panel::after { right: auto; left: 13px; transform: translateY(-5px) rotate(45deg); }
.radix-tooltip:hover .radix-tooltip-panel,
.radix-tooltip:focus-within .radix-tooltip-panel,
.radix-tooltip[data-open="true"] .radix-tooltip-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  animation: radix-tooltip-fade-in .18s ease-out both;
}
.radix-tooltip-end:hover .radix-tooltip-panel,
.radix-tooltip-end:focus-within .radix-tooltip-panel,
.radix-tooltip-end[data-open="true"] .radix-tooltip-panel { transform: translateY(0); }
.radix-tooltip-align-end .radix-tooltip-panel {
  right: 0;
  left: auto;
  transform: translateY(4px);
}
.radix-tooltip-align-end .radix-tooltip-panel::after {
  right: 14px;
  left: auto;
  transform: translateY(-5px) rotate(45deg);
}
.radix-tooltip-align-end:hover .radix-tooltip-panel,
.radix-tooltip-align-end:focus-within .radix-tooltip-panel,
.radix-tooltip-align-end[data-open="true"] .radix-tooltip-panel { transform: translateY(0); }
@keyframes radix-tooltip-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.daily-settings-modal-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.daily-settings-modal-foot .button { min-width: 112px; }
@keyframes daily-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.daily-empty,
.daily-complete {
  min-height: 310px;
  margin-top: 30px;
  padding: 48px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.daily-empty[hidden],
.daily-complete[hidden] { display: none; }
.daily-empty strong,
.daily-complete h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}
.daily-empty p,
.daily-complete p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.daily-complete > span {
  margin-bottom: 13px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.daily-complete .button { margin-top: 28px; }

.study-session {
  margin-top: 30px;
  padding: 28px;
}
.study-session[hidden] { display: none; }
.study-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.study-session-head > div {
  display: grid;
  gap: 5px;
}
.study-session-head span {
  color: var(--muted);
  font-size: 10px;
}
.study-session-head strong { font-size: 18px; }
.study-exit-wrap { display: grid; justify-items: end; gap: 5px; }
.study-exit-wrap small { color: var(--muted); font-size: 10px; }
.study-word-card {
  min-height: 380px;
  padding: 48px 24px 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.study-instruction {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.study-word-card h2 {
  margin: 18px 0 24px;
  font-size: clamp(52px, 8vw, 82px);
  line-height: 1;
  letter-spacing: -.065em;
}
.study-word-card h2.is-hidden-for-dictation {
  filter: blur(12px);
  user-select: none;
}
.study-context {
  width: min(100%, 680px);
  display: grid;
  gap: 10px;
}
.study-context blockquote,
.study-context p {
  margin: 0;
  padding: 16px 19px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}
.study-context blockquote {
  border-left: 3px solid var(--green);
  background: var(--mint);
}
.study-context p { color: var(--muted); background: var(--surface); }
.study-context [hidden] { display: none; }
.study-cloze {
  padding: 0 5px;
  border-radius: 4px;
  color: transparent;
  background: rgba(15,56,40,.16);
  filter: blur(4px);
  user-select: none;
}
.study-cloze.is-revealed { color: inherit; filter: none; background: rgba(81,228,151,.18); }
.study-word-card > .button { min-width: 150px; }
.study-answer {
  width: min(100%, 620px);
  margin-top: 22px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.study-answer[hidden] { display: none; }
.study-answer > strong {
  font-size: 25px;
  line-height: 1.35;
}
.study-answer blockquote {
  width: 100%;
  margin: 18px 0 0;
  padding: 17px 20px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: var(--mint);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}
.study-answer blockquote[hidden] { display: none; }
.dictation-panel {
  width: min(100%, 440px);
  margin-top: 20px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.dictation-panel[hidden] { display: none; }
.dictation-panel label { color: var(--muted); font-size: 11px; }
.dictation-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 18px;
}
.dictation-panel input:focus { border-color: var(--green); outline: 3px solid rgba(81,228,151,.2); }
.dictation-panel p { min-height: 18px; margin: 0; color: var(--green); font-size: 11px; }
.study-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.study-actions[hidden] { display: none; }
.study-actions .button { min-width: 132px; }
.study-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.study-actions .button[hidden] { display: none; }
.study-actions kbd {
  min-width: 22px;
  padding: 3px 6px;
  border: 2px solid currentColor;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  opacity: .7;
}
.study-status {
  min-height: 18px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 960px) {
  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
  }
  .sidebar-group {
    display: flex;
    align-items: center;
  }
  .sidebar-account {
    padding: 0 16px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .daily-setup { grid-template-columns: 1fr; }
  .daily-progress,
  .daily-goal-settings { min-height: 270px; }
}

@media (max-width: 700px) {
  .dashboard-sidebar {
    gap: 8px;
    justify-content: stretch;
  }
  .sidebar-group {
    min-width: 0;
    flex: 1;
  }
  .sidebar-group .sidebar-label { display: none; }
  .sidebar-account {
    padding-right: 8px;
  }
  .dashboard-sidebar button {
    width: 100%;
    text-align: center;
  }
  .daily-dashboard-head {
    min-height: 164px;
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .daily-settings-button { width: 100%; }
  .daily-setup { padding-top: 22px; }
  .daily-progress {
    min-height: 300px;
    padding: 24px;
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .daily-progress-main > strong { font-size: 56px; }
  .daily-progress .button { width: 100%; }
  .daily-settings-modal form { padding: 22px; }
  .daily-settings-modal-foot { align-items: stretch; flex-direction: column; }
  .daily-settings-modal-foot .button { width: 100%; }
  .daily-empty,
  .daily-complete { min-height: 290px; padding: 32px 24px; }
  .study-session { margin-top: 22px; padding: 20px; }
  .study-word-card { min-height: 340px; padding: 40px 8px 32px; }
  .study-word-card h2 { font-size: 52px; }
  .study-answer > strong { font-size: 22px; }
  .study-actions { flex-direction: column-reverse; }
  .study-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .daily-settings-modal[open] { animation: none; }
  .radix-tooltip-panel { animation: none !important; transition: none; }
}

/* Collapsible account navigation and stable learning canvas */
.account-nav,
.dashboard-shell {
  width: min(calc(100% - 48px), 1400px);
}
.dashboard-shell {
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 28px;
  transition: grid-template-columns .22s cubic-bezier(.16, 1, .3, 1), gap .22s cubic-bezier(.16, 1, .3, 1);
}
.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
}
.dashboard-sidebar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 18px 46px rgba(15, 56, 40, .07);
  gap: 14px;
  overflow: visible;
  transition: padding .22s cubic-bezier(.16, 1, .3, 1);
}
.sidebar-top {
  min-height: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar-toggle,
.sidebar-nav-button {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.sidebar-toggle:hover,
.sidebar-nav-button:hover {
  color: var(--ink);
  background: var(--surface);
}
.sidebar-nav-button[aria-current="page"] {
  color: var(--green);
  background: var(--mint);
  font-weight: 800;
}
.sidebar-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.sidebar-profile-icon {
  mask-image: url("/assets/user-circle.svg");
  -webkit-mask-image: url("/assets/user-circle.svg");
}
.sidebar-daily-icon {
  mask-image: url("/assets/daily-words.svg");
  -webkit-mask-image: url("/assets/daily-words.svg");
}
.sidebar-toggle-icon {
  mask-image: url("/assets/sidebar-collapse.svg");
  -webkit-mask-image: url("/assets/sidebar-collapse.svg");
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.sidebar-toggle-text,
.sidebar-item-text {
  overflow: hidden;
  opacity: 1;
  transition: width .18s ease, opacity .14s ease;
}
.sidebar-toggle-text { width: 92px; }
.sidebar-item-text { width: 88px; }
.dashboard-shell.sidebar-collapsed .dashboard-sidebar { padding-inline: 11px; }
.dashboard-shell.sidebar-collapsed .sidebar-toggle,
.dashboard-shell.sidebar-collapsed .sidebar-nav-button {
  padding-inline: 11px;
  justify-content: center;
}
.dashboard-shell.sidebar-collapsed .sidebar-label,
.dashboard-shell.sidebar-collapsed .sidebar-toggle-text,
.dashboard-shell.sidebar-collapsed .sidebar-item-text {
  width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.dashboard-shell.sidebar-collapsed .sidebar-toggle-icon { transform: rotate(180deg); }
.dashboard-shell.sidebar-collapsed .sidebar-nav-button::after {
  content: attr(data-label);
  position: absolute;
  z-index: 40;
  left: calc(100% + 12px);
  top: 50%;
  padding: 8px 10px;
  border: 1px solid rgba(81, 228, 151, .38);
  border-radius: 8px;
  color: #eafff1;
  background: #0b2018;
  box-shadow: 0 10px 26px rgba(7, 35, 24, .2);
  font-size: 11px;
  transform: translate(4px, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.dashboard-shell.sidebar-collapsed .sidebar-nav-button:hover::after,
.dashboard-shell.sidebar-collapsed .sidebar-nav-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.daily-words-view.is-studying .daily-dashboard-head,
.daily-words-view.is-studying .daily-setup,
.daily-words-view.is-studying .daily-empty,
.daily-words-view.is-studying .daily-complete {
  display: none;
}
.daily-words-view.is-studying {
  min-height: calc(100dvh - 128px);
}
.daily-words-view.is-studying .study-session {
  --animate-duration: .24s;
  min-height: calc(100dvh - 128px);
  margin: 0;
  padding: 28px 34px 26px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 58px 24px;
}
.study-word-card {
  min-height: 560px;
  padding: 34px 24px 22px;
  display: grid;
  grid-template-rows: auto auto 140px minmax(142px, auto);
  align-content: center;
  justify-items: center;
}
.study-word-card h2 { margin: 16px 0 28px; }
.study-context { align-self: start; }
.study-answer-slot {
  width: min(100%, 680px);
  height: 140px;
  min-height: 140px;
  padding-top: 30px;
  display: grid;
  align-items: start;
}
.study-answer {
  width: 100%;
  margin: 0;
  gap: 12px;
}
.study-answer > strong {
  padding-inline: 16px;
  font-size: 26px;
}
.study-actions {
  min-height: 58px;
  align-items: center;
}
.study-status {
  min-height: 24px;
  margin: 0;
  align-self: end;
}
@media (max-width: 960px) {
  .account-nav,
  .dashboard-shell { width: min(calc(100% - 32px), 1400px); }
  .dashboard-shell,
  .dashboard-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px;
    border-radius: 13px;
    flex-direction: row;
    align-items: center;
  }
  .sidebar-top { display: none; }
  .sidebar-group {
    min-width: 0;
    flex: 1;
    display: flex;
  }
  .sidebar-account {
    padding: 0 8px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .sidebar-label { display: none; }
  .dashboard-shell.sidebar-collapsed .sidebar-item-text {
    width: auto;
    opacity: 1;
  }
  .dashboard-shell.sidebar-collapsed .sidebar-nav-button,
  .sidebar-nav-button { justify-content: center; }
  .dashboard-shell.sidebar-collapsed .sidebar-nav-button::after { display: none; }
  .daily-words-view.is-studying,
  .daily-words-view.is-studying .study-session { min-height: auto; }
}

@media (max-width: 700px) {
  .daily-words-view.is-studying .study-session {
    padding: 20px;
    grid-template-rows: auto minmax(0, 1fr) auto 24px;
  }
  .study-word-card {
    min-height: 540px;
    padding-inline: 8px;
    grid-template-rows: auto auto 148px minmax(154px, auto);
  }
  .study-answer-slot { height: 148px; min-height: 148px; padding-top: 26px; }
}

/* Daily workspace navigation refinement and real translated cloze */
.dashboard-shell {
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 34px;
}
.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
}
.dashboard-sidebar {
  position: relative;
  z-index: 20;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 24px;
}
.dashboard-main {
  position: relative;
  z-index: 1;
}
.sidebar-top {
  min-height: 40px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.sidebar-toggle {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  justify-content: center;
  color: var(--green);
  background: var(--raised);
  box-shadow: 0 8px 20px rgba(15, 56, 40, .055);
}
.sidebar-toggle:hover {
  border-color: rgba(61, 129, 88, .35);
  color: var(--ink);
  background: var(--mint);
}
.sidebar-nav-button {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
}
.sidebar-nav-button[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--green);
}
.sidebar-account {
  padding-bottom: 16px;
}
.sidebar-label {
  padding-inline: 13px;
}
.dashboard-shell.sidebar-collapsed .dashboard-sidebar {
  padding-inline: 0;
  gap: 8px;
  align-items: center;
}
.dashboard-shell.sidebar-collapsed .sidebar-top {
  width: 56px;
  min-height: 44px;
  padding: 0;
  border-bottom: 0;
  display: grid;
  place-items: center;
  place-content: center;
}
.dashboard-shell.sidebar-collapsed .sidebar-group {
  width: 56px;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0;
  place-items: center;
}
.dashboard-shell.sidebar-collapsed .sidebar-label {
  display: none;
}
.dashboard-shell.sidebar-collapsed .sidebar-item-text {
  display: none;
}
.dashboard-shell.sidebar-collapsed .sidebar-toggle,
.dashboard-shell.sidebar-collapsed .sidebar-nav-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
}
.dashboard-shell.sidebar-collapsed .sidebar-account {
  padding: 0;
  border: 0;
}
.dashboard-shell.sidebar-collapsed .sidebar-icon {
  margin: 0;
  align-self: center;
  justify-self: center;
}
.sidebar-toggle::after {
  content: attr(data-label);
  position: absolute;
  z-index: 40;
  left: calc(100% + 10px);
  top: 50%;
  padding: 7px 9px;
  border: 1px solid rgba(81, 228, 151, .38);
  border-radius: 8px;
  color: #eafff1;
  background: #0b2018;
  box-shadow: 0 10px 26px rgba(7, 35, 24, .2);
  font-size: 11px;
  white-space: nowrap;
  transform: translate(3px, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.sidebar-toggle:hover::after,
.sidebar-toggle:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.study-context {
  gap: 12px;
}
.study-context blockquote,
.study-context p {
  min-height: 62px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
}
.study-context blockquote {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  color: var(--ink);
  background: var(--raised);
}
.study-context p {
  border: 1px solid rgba(81, 228, 151, .22);
  color: var(--ink);
  background: var(--mint);
}
.study-context p.is-loading {
  color: var(--muted);
}
.study-cloze {
  min-width: 1.25em;
  margin-inline: 3px;
  padding: 1px 7px;
  border: 1px solid rgba(61, 129, 88, .18);
  border-radius: 5px;
  background: rgba(15, 56, 40, .18);
  filter: blur(5px);
}
.study-cloze.is-revealed {
  border-color: rgba(81, 228, 151, .34);
}

@media (max-width: 960px) {
  .dashboard-sidebar {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--raised);
  }
}
