:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #fafaf8;
  --surface-warm: #f5f0e9;
  --surface-sage: #eef4ef;
  --surface-lilac: #f1eef7;
  --ink: #202124;
  --ink-2: #34363a;
  --muted: #6e7278;
  --muted-2: #8b8e93;
  --line: #e6e7e3;
  --line-strong: #d8dad4;
  --accent: #3f443d;
  --accent-hover: #2f332d;
  --sage: #597664;
  --sage-soft: #dfeae2;
  --lilac: #7d7196;
  --coral: #d98667;
  --gold: #d5b766;
  --success: #2f7758;
  --danger: #b14c45;
  --shadow-sm: 0 1px 2px rgba(31, 35, 31, .05), 0 8px 24px rgba(31, 35, 31, .04);
  --shadow-md: 0 18px 50px rgba(31, 35, 31, .09);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --sidebar: 244px;
  --topbar: 72px;
  --font: "Google Sans", "Google Sans Text", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { border: 0; background: none; color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: rgba(255,255,255,.94);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  z-index: 80;
  backdrop-filter: blur(16px);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: #f0f0ed; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.brand-mark img { width: 25px; height: 25px; object-fit: contain; }
.brand-name { font-size: 15px; letter-spacing: -.02em; white-space: nowrap; }
.brand-name strong { font-weight: 650; color: var(--lilac); }

.nav-list { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.nav-link {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #5c6065;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.nav-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-link:hover { background: #f4f5f2; color: var(--ink); }
.nav-link.active { background: #eeefe9; color: var(--ink); }
.nav-link.active::before { content: ""; width: 3px; height: 22px; border-radius: 5px; background: linear-gradient(180deg, var(--coral), var(--gold)); margin-left: -9px; margin-right: 6px; }
.nav-button { appearance: none; }
.sidebar-spacer { flex: 1; }

.membership-mini {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 10px;
}
.membership-mini-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.membership-mini-top span { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.membership-mini-top strong { font-size: 13px; font-weight: 650; }
.membership-track { height: 5px; border-radius: 99px; background: #e9e9e4; overflow: hidden; margin: 12px 0 8px; }
.membership-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), #8ca68f); }
.membership-mini small { display: block; color: var(--muted-2); font-size: 11px; }

.sidebar-actions { display: grid; gap: 6px; }
.sidebar-user {
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease;
}
.sidebar-user:hover { background: #f4f5f2; }
.sidebar-avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 650; }
.sidebar-avatar { width: 34px; height: 34px; background: #ece8f2; color: #5f5474; font-size: 12px; }
.sidebar-user strong { display: block; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 10px; }
.sidebar-user > svg { width: 15px; height: 15px; color: var(--muted-2); }
.logout-link { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 11px; color: var(--muted); border-radius: 12px; cursor: pointer; font-size: 13px; }
.logout-link:hover { background: #f7eded; color: var(--danger); }
.logout-link svg { width: 17px; height: 17px; }

.main-shell { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  background: rgba(246,247,245,.88);
  border-bottom: 1px solid rgba(226,228,223,.8);
  backdrop-filter: blur(18px);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.topbar-left { gap: 12px; }
.crumb { display: flex; align-items: baseline; gap: 10px; }
.crumb strong { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.crumb span { font-size: 12px; color: var(--muted-2); }
.topbar-actions { gap: 9px; }
.announcement-button, .days-badge {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.announcement-button { padding: 0 12px; cursor: pointer; position: relative; }
.announcement-button svg { width: 14px; height: 14px; }
.announcement-button i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.days-badge { padding: 0 12px; }
.top-avatar { width: 34px; height: 34px; background: var(--ink); color: #fff; font-size: 11px; cursor: pointer; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: var(--muted); }
.icon-button:hover { background: #efefec; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.mobile-menu, .mobile-only { display: none; }

.content { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 50px 0 32px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 0 0 26px; }
.kicker { display: inline-block; color: var(--muted-2); font-size: 10px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.welcome-row h1 { margin: 10px 0 8px; font-size: clamp(38px, 4.7vw, 64px); line-height: .98; letter-spacing: -.052em; font-weight: 600; }
.welcome-row h1 span { color: var(--lilac); font-weight: 600; }
.welcome-row p { margin: 0; max-width: 660px; color: var(--muted); font-size: 15px; }
.welcome-note { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.aurora-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--gold) 45%, var(--sage) 70%, var(--lilac)); box-shadow: 0 0 0 5px rgba(215,182,104,.08); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, .78fr); gap: 18px; align-items: stretch; }
.flow-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 76% 18%, rgba(147,127,170,.13), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(114,151,126,.13), transparent 30%),
    linear-gradient(145deg, #fff 0%, #faf8f4 58%, #f5f3f8 100%);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr);
}
.flow-card-accent { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 33%, var(--sage) 66%, var(--lilac) 100%); opacity: .9; }
.flow-card-copy { position: relative; z-index: 2; padding: 54px 22px 44px 42px; display: flex; flex-direction: column; align-items: flex-start; }
.status-line { display: inline-flex; align-items: center; gap: 8px; color: #62655f; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(89,118,100,.10); }
.flow-card h2 { margin: 26px 0 14px; max-width: 520px; font-size: clamp(34px, 4vw, 56px); line-height: 1.01; letter-spacing: -.047em; font-weight: 600; }
.flow-card-copy > p { margin: 0; max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.62; }
.primary-cta {
  min-width: 210px;
  height: 54px;
  margin-top: 30px;
  padding: 0 20px 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(51,55,49,.14);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(51,55,49,.18); }
.primary-cta svg { width: 17px; height: 17px; }
.text-link { margin-top: 14px; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-link:hover { color: var(--ink); }

.flow-preview { position: relative; display: flex; align-items: center; justify-content: center; padding: 36px 34px 36px 6px; }
.preview-window {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.08 / .82;
  border-radius: 22px;
  background: #fdfdfb;
  border: 1px solid rgba(218,218,212,.95);
  box-shadow: 0 24px 60px rgba(57,56,51,.16);
  transform: rotate(-2.4deg);
  overflow: hidden;
}
.preview-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #ecece7; color: #9a9c98; }
.preview-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #deded9; }
.preview-bar i { margin-left: auto; font-style: normal; font-size: 9px; letter-spacing: .05em; }
.preview-canvas { padding: 12px; }
.preview-scene { height: 180px; border-radius: 15px; position: relative; overflow: hidden; background: linear-gradient(145deg, #e7ddd1 0%, #ece4d9 42%, #dfe9e2 72%, #e5dfed 100%); }
.scene-orb { position: absolute; border-radius: 50%; filter: blur(.2px); }
.scene-orb-one { width: 110px; height: 110px; left: 32px; top: 38px; background: rgba(218,132,102,.46); }
.scene-orb-two { width: 126px; height: 126px; right: 22px; top: 18px; background: rgba(118,148,127,.38); }
.scene-ribbon { position: absolute; width: 230px; height: 78px; left: 66px; top: 56px; border: 20px solid rgba(126,113,151,.32); border-left-color: rgba(212,183,102,.35); border-radius: 50%; transform: rotate(-11deg); }
.preview-prompt { margin-top: 11px; min-height: 48px; border: 1px solid #e7e8e3; border-radius: 13px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 13px; color: #9a9c98; font-size: 10px; background: #fff; }
.preview-prompt span { flex: 1; }
.preview-prompt button { width: 30px; height: 30px; border-radius: 10px; background: #3f443d; color: #fff; }
.preview-timeline { margin-top: 9px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.preview-timeline span { height: 38px; border-radius: 8px; background: #edece7; }
.preview-timeline span:nth-child(2) { background: #e6d9cf; }
.preview-timeline span:nth-child(3) { background: #dfe9e2; }
.preview-timeline span:nth-child(4) { background: #e5dfed; }
.preview-caption { position: absolute; bottom: 22px; right: 30px; color: #90928e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.extension-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid #dfe5df;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f3f7f3 0%, #eef4ef 100%);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.extension-card::after { content: ""; position: absolute; right: -70px; bottom: -84px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(89,118,100,.15); box-shadow: 0 0 0 32px rgba(89,118,100,.04), 0 0 0 64px rgba(89,118,100,.03); }
.extension-icon { width: 46px; height: 46px; border-radius: 15px; background: rgba(89,118,100,.10); color: var(--sage); display: grid; place-items: center; margin-bottom: 28px; }
.extension-icon svg { width: 22px; height: 22px; }
.extension-card h2 { margin: 13px 0 12px; font-size: clamp(28px, 2.6vw, 39px); line-height: 1.06; letter-spacing: -.036em; font-weight: 600; }
.extension-card > p { margin: 0; max-width: 330px; color: #657168; font-size: 13px; line-height: 1.6; }
.secondary-cta {
  width: 100%;
  height: 50px;
  margin-top: auto;
  position: relative;
  z-index: 2;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(89,118,100,.34);
  color: #385343;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(70,89,75,.07);
  transition: transform .16s ease, background .16s ease;
}
.secondary-cta:hover { transform: translateY(-1px); background: #fbfdfb; }
.secondary-cta svg { width: 17px; height: 17px; }
.connection-state { margin-top: 14px; position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: #7b817c; font-size: 11px; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #c29463; box-shadow: 0 0 0 4px rgba(194,148,99,.10); }
.connection-state.is-connected { color: var(--success); }
.connection-state.is-connected i { background: var(--success); box-shadow: 0 0 0 4px rgba(47,119,88,.10); }

.setup-section { padding: 56px 0 0; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title-row h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.08; font-weight: 600; }
.quiet-action, .support-button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; }
.quiet-action:hover, .support-button:hover { color: var(--ink); border-color: var(--line-strong); }
.quiet-action svg, .support-button svg { width: 14px; height: 14px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { min-height: 252px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.step-number { position: absolute; top: 18px; right: 20px; color: #c0c1bd; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.step-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 28px; }
.step-icon svg { width: 20px; height: 20px; }
.step-icon-warm { background: #f7eee8; color: #b36f54; }
.step-icon-sage { background: #eaf2ec; color: #557360; }
.step-icon-lilac { background: #efebf4; color: #78698f; }
.step-card h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.step-card > a, .step-card > button { margin-top: auto; align-self: flex-start; color: #555a54; text-decoration: none; font-size: 11px; font-weight: 650; cursor: pointer; }
.step-card > a span, .step-card > button span { margin-left: 4px; }
.step-card > a:hover, .step-card > button:hover { color: var(--ink); }

.instruction-drawer { display: none; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); padding: 24px; }
.instruction-drawer.is-open { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 28px; animation: drawerIn .18s ease; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.drawer-intro { display: flex; gap: 14px; align-items: flex-start; }
.drawer-number { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.drawer-intro strong { display: block; font-size: 14px; }
.drawer-intro p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.instruction-drawer ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.instruction-drawer li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.instruction-drawer li > span { width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #fff; }
.instruction-drawer p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.instruction-drawer code { background: #ecece8; border-radius: 5px; padding: 2px 5px; font-family: Consolas, Monaco, monospace; font-size: .95em; color: #454842; }

.insight-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 14px; margin-top: 14px; }
.tip-card, .account-card { border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.tip-card { min-height: 290px; background: linear-gradient(145deg, #f7f2ec 0%, #f3efe9 60%, #f0ecf4 100%); padding: 30px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; overflow: hidden; }
.tip-art { height: 220px; border-radius: 18px; background: #ece5dd; position: relative; overflow: hidden; }
.tip-art span { position: absolute; border-radius: 999px; filter: blur(.1px); }
.tip-art span:nth-child(1) { width: 150px; height: 62px; left: 18px; top: 42px; background: rgba(219,137,105,.55); transform: rotate(-20deg); }
.tip-art span:nth-child(2) { width: 170px; height: 70px; right: -24px; top: 90px; background: rgba(110,146,120,.45); transform: rotate(16deg); }
.tip-art span:nth-child(3) { width: 140px; height: 54px; left: 56px; bottom: 18px; background: rgba(128,111,154,.38); transform: rotate(-8deg); }
.tip-card h2 { margin: 10px 0 9px; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
.tip-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 560px; }
.tip-card button { margin-top: 22px; cursor: pointer; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.tip-card button span { margin-left: 4px; }
.account-card { background: var(--surface); padding: 26px; }
.account-card > .kicker { margin-bottom: 15px; }
.account-card-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.account-card-row span { color: var(--muted); font-size: 11px; }
.account-card-row strong { font-size: 12px; font-weight: 650; text-align: right; }
.active-text { color: var(--success); }

.support-section { padding: 58px 0 0; scroll-margin-top: 100px; }
.support-title-row p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.support-button { background: var(--ink); color: #fff; border-color: var(--ink); }
.support-button:hover { color: #fff; background: #313337; border-color: #313337; }
.faq-list { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item > button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.faq-item > button svg { width: 17px; height: 17px; color: var(--muted-2); transition: transform .18s ease; }
.faq-item.faq-open > button svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 22px 20px; }
.faq-item.faq-open .faq-answer { display: block; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 780px; }
.faq-answer code { background: #f1f1ed; border-radius: 5px; padding: 2px 5px; font-family: Consolas, Monaco, monospace; }
.refresh-access-btn { margin-top: 14px; min-height: 38px; padding: 0 14px; border-radius: 11px; background: #f3f4f1; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; font-size: 11px; font-weight: 650; }
.refresh-access-btn:hover { background: #ebede8; }
.refresh-access-btn:disabled { opacity: .55; cursor: wait; }

.more-tools { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 28px; align-items: end; padding: 58px 0 0; }
.more-tools h2 { margin: 8px 0 0; font-size: clamp(26px, 2.7vw, 38px); letter-spacing: -.035em; line-height: 1.08; font-weight: 600; max-width: 430px; }
.tool-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool-links > a { min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); display: grid; grid-template-columns: 42px 1fr 18px; gap: 12px; align-items: center; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .16s ease, border-color .16s ease; }
.tool-links > a:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.tool-icon { width: 42px; height: 42px; border-radius: 13px; background: #f1f1ed; display: grid; place-items: center; color: #62655f; }
.tool-icon svg { width: 20px; height: 20px; }
.tool-links strong, .tool-links small { display: block; }
.tool-links strong { font-size: 12px; }
.tool-links small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.tool-links > a > svg { width: 17px; height: 17px; color: var(--muted-2); }
.footer { margin-top: 58px; padding: 22px 0 6px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 10px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 200; min-width: 280px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 13px; background: #272925; color: #fff; box-shadow: var(--shadow-md); font-size: 12px; font-weight: 550; text-align: center; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 180; align-items: center; justify-content: center; padding: 20px; background: rgba(31,33,30,.36); backdrop-filter: blur(7px); }
.modal-box { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 26px 80px rgba(31,33,30,.20); }
.modal-icon { width: 42px; height: 42px; border-radius: 14px; background: #f2eee7; color: #8c7552; display: grid; place-items: center; margin-bottom: 18px; }
.modal-icon svg { width: 20px; height: 20px; }
.modal-title { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.modal-date { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.modal-body { margin: 18px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: break-word; }
.modal-close-btn { width: 100%; height: 44px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.history-box { max-height: min(680px, 86vh); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.history-head { padding: 22px 22px 16px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.history-head h3 { margin: 6px 0 0; font-size: 22px; }
.history-content { overflow: auto; padding: 14px; display: grid; gap: 10px; }
.history-item { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); position: relative; }
.history-item.unread::after { content: ""; position: absolute; right: 14px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.history-item strong { display: block; font-size: 12px; padding-right: 20px; }
.history-item small { display: block; color: var(--muted-2); font-size: 9px; margin: 4px 0 8px; }
.history-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word; }
.history-empty { text-align: center; color: var(--muted-2); padding: 28px; font-size: 12px; }
.nav-scrim { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .content { width: min(100% - 42px, 1100px); }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); }
  .flow-card { grid-template-columns: 1fr; min-height: 520px; }
  .flow-card-copy { padding-right: 42px; }
  .flow-preview { position: absolute; right: 20px; bottom: 14px; width: 48%; padding: 0; opacity: .95; }
  .preview-window { transform: rotate(-1.5deg) scale(.92); transform-origin: bottom right; }
  .tip-card { grid-template-columns: 180px 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; --topbar: 64px; }
  body.nav-open { overflow: hidden; }
  .sidebar { width: 276px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(24,27,23,.12); }
  .sidebar.is-open { transform: translateX(0); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(30,31,28,.28); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-shell { margin-left: 0; }
  .mobile-menu, .mobile-only { display: grid; }
  .topbar { padding: 0 18px; }
  .crumb span { display: none; }
  .content { width: min(100% - 32px, 760px); padding-top: 34px; }
  .welcome-row { align-items: flex-start; }
  .welcome-note { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .flow-card, .extension-card { min-height: auto; }
  .flow-card { min-height: 530px; }
  .flow-card-copy { padding: 42px 28px 260px; }
  .flow-preview { width: calc(100% - 50px); right: 20px; bottom: 10px; }
  .preview-window { max-width: none; height: 225px; aspect-ratio: auto; transform: none; }
  .preview-scene { height: 112px; }
  .preview-timeline span { height: 26px; }
  .extension-card { padding: 28px; }
  .secondary-cta { margin-top: 30px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 210px; }
  .instruction-drawer.is-open { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .tip-card { grid-template-columns: 160px 1fr; }
  .more-tools { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .topbar { height: 60px; padding: 0 14px; }
  .announcement-label, .days-badge { display: none; }
  .announcement-button { width: 34px; padding: 0; justify-content: center; }
  .announcement-button i { position: absolute; right: 7px; top: 7px; }
  .top-avatar { width: 32px; height: 32px; }
  .content { width: calc(100% - 24px); padding-top: 26px; }
  .welcome-row { margin-bottom: 18px; }
  .welcome-row h1 { font-size: clamp(36px, 12vw, 50px); }
  .welcome-row p { font-size: 13px; line-height: 1.55; }
  .flow-card { border-radius: 22px; min-height: 520px; }
  .flow-card-copy { padding: 34px 22px 250px; }
  .flow-card h2 { margin-top: 22px; font-size: clamp(34px, 10vw, 46px); }
  .flow-card-copy > p { font-size: 12px; }
  .primary-cta { width: 100%; height: 52px; min-width: 0; }
  .text-link { align-self: center; }
  .flow-preview { width: calc(100% - 32px); right: 16px; bottom: 10px; }
  .preview-window { height: 220px; border-radius: 17px; }
  .preview-caption { display: none; }
  .extension-card { border-radius: 22px; padding: 24px; }
  .extension-card h2 { font-size: 31px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-title-row .quiet-action { width: 100%; justify-content: space-between; }
  .step-card { border-radius: 18px; }
  .tip-card { grid-template-columns: 1fr; padding: 22px; }
  .tip-art { height: 140px; }
  .account-card { padding: 22px; }
  .support-title-row .support-button { width: 100%; justify-content: center; }
  .faq-item > button { padding: 0 18px; min-height: 58px; }
  .faq-answer { padding: 0 18px 18px; }
  .tool-links { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 6px; }
  .modal-overlay { padding: 12px; }
  .modal-box { border-radius: 18px; padding: 22px; }
}

@media (max-width: 390px) {
  .flow-card-copy { padding-left: 18px; padding-right: 18px; }
  .flow-card h2 { font-size: 34px; }
  .extension-card { padding: 20px; }
  .step-card { padding: 19px; }
  .content { width: calc(100% - 18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Typography Readability Pass overrides */
@media (min-width: 769px) {
  h1, .flow-card h2 { font-size: 48px !important; line-height: 1.2 !important; }
  h2, .section-title { font-size: 24px !important; line-height: 1.3 !important; }
  h3, .card-title, .faq-trigger span { font-size: 20px !important; line-height: 1.3 !important; }
  body, p, .modal-body, .faq-answer { font-size: 15px !important; line-height: 1.6 !important; }
  .nav-link, .nav-item { font-size: 15px !important; }
  .primary-cta, .btn, button { font-size: 15px !important; }
  .meta-text, .date, .modal-date { font-size: 13px !important; }
  .kicker, .label { font-size: 11px !important; letter-spacing: 0.05em !important; }
}
@media (max-width: 768px) {
  h1, .flow-card h2 { font-size: 36px !important; line-height: 1.2 !important; }
  body, p, .modal-body, .faq-answer { font-size: 15px !important; line-height: 1.6 !important; }
  .primary-cta, .btn, button { font-size: 15px !important; }
}
