:root{
  --accent:#1f6f4a;
  --accent-2:#2f9e6e;
  --accent-ink:#175638;
  --accent-weak:#eef4f0;
  --accent-line:#d6e6dd;

  --ink:#0b0b0c;
  --ink-2:#3a3a3e;
  --muted:#6b7280;
  --muted-2:#9298a3;
  --line:#ececec;
  --line-2:#e2e2e4;
  --bg:#ffffff;
  --bg-2:#f6f6f7;
  --bg-3:#f0f0f2;
  --card:#ffffff;

  --good:#1f6f4a;
  --good-weak:#eef4f0;
  --good-line:#d6e6dd;
  --warn-ink:#8a6d1f;
  --warn-weak:#f7f2e6;
  --warn-line:#ecdfbf;
  --alert-ink:#9a4322;
  --alert-weak:#f8efe9;
  --alert-line:#eed4c5;

  --shadow-xs:0 1px 2px rgba(16,24,40,.04);
  --shadow-sm:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.04);
  --shadow-md:0 2px 6px rgba(16,24,40,.05),0 8px 24px rgba(16,24,40,.06);
  --shadow-lg:0 4px 12px rgba(16,24,40,.06),0 18px 48px rgba(16,24,40,.08);
  --shadow:0 1px 2px rgba(16,24,40,.04),0 12px 34px rgba(16,24,40,.07);

  --radius:18px;
  --radius-lg:24px;
  --radius-sm:12px;
  --r-pill:999px;

  --topbar-h:58px;
  --bottombar-h:64px;
  --side-w:284px;
  --main-w:980px;

  --font:'Inter','Noto Sans JP',-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif;
  --mono:'SF Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

*{box-sizing:border-box;}
*::before,*::after{box-sizing:border-box;}

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg-2);
  line-height:1.65;
  font-size:16px;
  font-feature-settings:"palt" 1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4,h5,h6{ line-height:1.25;letter-spacing:-.018em;font-weight:600;margin:0; }
p{margin:0;}
a{ color:var(--accent-ink); text-decoration:none; }

button{
  font-family:inherit;font-size:inherit;color:inherit;cursor:pointer;
  border:0;background:none;letter-spacing:inherit;
}
input,select,textarea{ font-family:inherit; }
img,svg{ max-width:100%; }

:focus-visible{ outline:2px solid var(--accent);outline-offset:2px;border-radius:6px; }
::selection{ background:var(--accent-weak); color:var(--accent-ink); }

.tnum{ font-variant-numeric:tabular-nums; }
.sr-only{ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.hidden{ display:none !important; }

/* ICONS */
.icon{
  display:inline-block;width:1.25em;height:1.25em;vertical-align:-.18em;flex:0 0 auto;
  stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;color:inherit;
}
.icon-sm{ width:1em;height:1em; }
.icon-lg{ width:1.6em;height:1.6em; }

/* BUTTONS */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 18px;border-radius:13px;border:1px solid var(--line-2);background:var(--card);
  font-size:14.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;text-decoration:none;
  transition:transform .16s cubic-bezier(.16,1,.3,1),background .18s ease,border-color .18s ease,box-shadow .25s ease,color .18s ease;
}
.btn:active{ transform:scale(.98); }
.btn .icon{ width:1.1em;height:1.1em; }
.btn[disabled]{ opacity:.45;pointer-events:none; }
.btn-sm{ padding:8px 13px;font-size:13px;border-radius:11px;gap:6px; }
.btn-block{ width:100%; }
.btn-primary{ background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:#000;box-shadow:var(--shadow-md);transform:translateY(-1px); }
.btn-primary:active{ transform:translateY(0) scale(.99); }
.btn-accent{ background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:var(--shadow-sm); }
.btn-accent:hover{ background:var(--accent-ink);box-shadow:var(--shadow-md);transform:translateY(-1px);color:#fff; }
.btn-ghost{ background:var(--card);color:var(--ink);border-color:var(--line-2); }
.btn-ghost:hover{ border-color:#d2d2d6;background:var(--bg-2); }
.btn-soft{ background:var(--bg-2);border-color:transparent;color:var(--ink-2); }
.btn-soft:hover{ background:var(--bg-3);color:var(--ink); }
.btn-danger{ background:var(--card);color:var(--alert-ink);border-color:var(--alert-line); }
.btn-danger:hover{ background:var(--alert-weak); }

.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:11px;color:var(--muted);border:1px solid transparent;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .14s ease;
}
.icon-btn .icon{ width:18px;height:18px; }
.icon-btn:hover{ background:var(--bg-2);color:var(--ink); }
.icon-btn:active{ transform:scale(.92); }
.icon-btn.danger:hover{ background:var(--alert-weak);color:var(--alert-ink); }

/* ============================================================
   APP SHELL (.dash + legacy aliases)
   ============================================================ */
.dash,.app{ min-height:100dvh;display:flex;flex-direction:column; }

.dash-topbar,.topbar{
  position:fixed;top:0;left:0;right:0;
  height:calc(var(--topbar-h) + env(safe-area-inset-top));
  z-index:60;display:flex;align-items:center;gap:10px;
  padding:env(safe-area-inset-top) 14px 0;
  background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);
}
.dash-topbar .icon-btn{ flex:0 0 auto;width:40px;height:40px;color:var(--ink); }
.dash-topbar .icon-btn .icon{ width:21px;height:21px; }
.dash-topbar-title,.top-title{
  flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:9px;
  font-size:15.5px;font-weight:600;letter-spacing:-.01em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.dash-topbar-title .icon{ width:18px;height:18px;color:var(--accent); }
.dash-topbar-spacer{ flex:0 0 auto;width:40px;height:40px; }

.dash-side,.side{ display:flex;flex-direction:column;background:var(--card); }
@media (max-width:899.98px){
  .dash-side,.side{
    position:fixed;top:0;bottom:0;left:0;width:min(86vw,320px);z-index:80;
    transform:translateX(-100%);transition:transform .34s cubic-bezier(.16,1,.3,1);
    box-shadow:var(--shadow-lg);border-right:1px solid var(--line);overflow-y:auto;
    padding-top:env(safe-area-inset-top);
  }
  .dash-side.open,.side.open{ transform:translateX(0); }
}

.dash-scrim,.scrim{
  position:fixed;inset:0;z-index:70;background:rgba(11,11,12,.32);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;
}
.dash-scrim.show,.scrim.show{ opacity:1;visibility:visible; }

.dash-side-head,.side-head{
  padding:22px 20px 18px;border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:11px;
}
.dash-brand,.brand{
  display:flex;align-items:center;gap:11px;flex:1 1 auto;min-width:0;
  font-weight:600;font-size:15.5px;letter-spacing:-.01em;
}
.dash-brand-mark,.brand-mark{
  width:36px;height:36px;border-radius:11px;background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.dash-brand-mark .icon,.brand-mark .icon{ width:19px;height:19px; }
.dash-brand-text,.brand-text{ flex:1 1 auto;min-width:0; }
.dash-brand-title,.brand-title{ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600; }
.dash-brand-sub,.brand-sub{ display:block;font-size:11.5px;font-weight:500;color:var(--muted);letter-spacing:.03em;margin-top:2px; }
.dash-side-close,.side-close{
  flex:0 0 auto;width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  border-radius:10px;color:var(--muted);transition:background .15s ease,color .15s ease;
}
.dash-side-close .icon,.side-close .icon{ width:18px;height:18px; }
.dash-side-close:hover,.side-close:hover{ background:var(--bg-2);color:var(--ink); }
@media (min-width:900px){ .dash-side-close,.side-close{ display:none; } }

.dash-nav,.nav{ flex:1 1 auto;display:flex;flex-direction:column;gap:1px;padding:12px;overflow-y:auto; }
.nav-group{ display:flex;flex-direction:column;gap:1px; }
.nav-group + .nav-group{ margin-top:14px;padding-top:14px;border-top:1px solid var(--line); }
.nav-grouplabel{
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);
  padding:2px 12px 7px;
}
.dash-nav button,.nav button,.nav a.nav-item{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  padding:10px 12px;border-radius:11px;color:var(--ink-2);
  font-size:14px;font-weight:500;letter-spacing:-.01em;text-decoration:none;
  transition:background .16s ease,color .16s ease;position:relative;
}
.dash-nav .nav-ico,.nav .nav-ico{
  flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;color:var(--muted);transition:color .16s ease,background .16s ease,box-shadow .16s ease;
}
.dash-nav .nav-ico .icon,.nav .nav-ico .icon{ width:18px;height:18px;stroke-width:1.7; }
.dash-nav .nav-label,.nav .nav-label{ flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.nav-sub .nav-label{ font-size:13.5px; }
.dash-nav .nav-badge,.nav .nav-badge{
  flex:0 0 auto;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 6px;border-radius:var(--r-pill);font-size:11px;font-weight:700;
  background:var(--bg-3);color:var(--muted);font-variant-numeric:tabular-nums;
}
.dash-nav .nav-badge.alert,.nav .nav-badge.alert{ background:var(--alert-weak);color:var(--alert-ink); }
.dash-nav .nav-badge.empty,.nav .nav-badge.empty{ display:none; }
.nav-soon{ font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--muted-2);background:var(--bg-3);border-radius:var(--r-pill);padding:2px 8px;flex:0 0 auto; }
.dash-nav button:hover,.nav button:hover,.nav a.nav-item:hover{ background:var(--bg-2);color:var(--ink); }
.dash-nav button:hover .nav-ico,.nav button:hover .nav-ico,.nav a.nav-item:hover .nav-ico{ color:var(--ink-2); }
.dash-nav button.active,.nav button.active,.nav a.nav-item.active{ background:var(--bg-2);color:var(--ink);font-weight:600; }
.dash-nav button.active .nav-ico,.nav button.active .nav-ico,.nav a.nav-item.active .nav-ico{ color:var(--ink);background:#fff;box-shadow:var(--shadow-xs); }
.dash-nav button.active::before,.nav button.active::before,.nav a.nav-item.active::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:18px;border-radius:var(--r-pill);background:var(--ink);
}
.nav button[disabled],.nav a.nav-item.disabled,.dash-nav button[disabled]{
  opacity:.5;pointer-events:none;cursor:default;
}
.nav-sub{ padding-left:26px; }
.nav-sub::before{ display:none !important; }
.nav-sub.active{ font-weight:600;color:var(--ink); }

.dash-side-foot,.side-foot{
  padding:16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);font-size:12px;color:var(--muted-2);
}
.dash-side-foot b,.side-foot b{ color:var(--ink-2);font-weight:600; }

.dash-tabbar,.bottombar{
  position:fixed;bottom:0;left:0;right:0;z-index:60;display:flex;
  padding:6px 8px;padding-bottom:calc(6px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-top:1px solid var(--line);
}
.dash-tabbar .bb-tab,.bottombar .bb-tab{
  flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:7px 4px;border-radius:12px;color:var(--muted-2);
  font-size:10.5px;font-weight:600;position:relative;text-decoration:none;
  transition:color .16s ease,background .16s ease;
}
.dash-tabbar .bb-tab .icon,.bottombar .bb-tab .icon{ width:21px;height:21px;stroke-width:1.7; }
.dash-tabbar .bb-tab .bb-dot,.bottombar .bb-tab .bb-dot{
  position:absolute;top:5px;right:50%;transform:translateX(14px);
  width:7px;height:7px;border-radius:50%;background:var(--alert-ink);border:1.5px solid var(--card);
}
.dash-tabbar .bb-tab.active,.bottombar .bb-tab.active{ color:var(--ink); }
.dash-tabbar .bb-tab.active .icon,.bottombar .bb-tab.active .icon{ color:var(--ink); }

/* CONTENT / PAGE */
.dash-content,.content{ flex:1 1 auto;min-width:0;display:flex;justify-content:center;background:var(--bg-2); }
.dash-main,.main{
  width:100%;max-width:var(--main-w);
  padding:calc(var(--topbar-h) + env(safe-area-inset-top) + 18px) 16px calc(var(--bottombar-h) + 28px);
}
.dash-view{ width:100%; }
.dash-main.lesson-main,.main.lesson-main{ padding-left:0;padding-right:0;max-width:100%; }

@keyframes pageIn{ from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
.page{ animation:pageIn .38s cubic-bezier(.16,1,.3,1); }

.page-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:4px 0 22px;
}
.page-head .ph-text{ min-width:0; }
.page-kicker{
  display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
}
.page-kicker .icon{ width:14px;height:14px;color:var(--accent); }
.page-title{ margin:6px 0 0;font-size:27px;font-weight:600;letter-spacing:-.025em;line-height:1.18; }
.page-sub{ color:var(--muted);margin:6px 0 0;font-size:15px;line-height:1.6; }
.page-head .ph-actions{ display:flex;gap:9px;flex-wrap:wrap; }

.section-head{ display:flex;align-items:center;gap:9px;margin:30px 0 12px; }
.section-head .icon{ width:18px;height:18px;color:var(--accent); }
.section-head .sh-title{ font-size:16px;font-weight:600;letter-spacing:-.01em;color:var(--ink); }
.section-head .sh-sub{ font-size:13px;color:var(--muted);margin-left:auto; }
.section-head .sh-sub a,.section-head .sh-sub button{ color:var(--accent-ink);font-weight:600; }

/* CARD */
.card{
  padding:22px;border-radius:var(--radius);background:var(--card);
  border:1px solid var(--line);box-shadow:var(--shadow-xs);
  transition:box-shadow .28s ease,border-color .2s ease;
}
.card.hover:hover{ box-shadow:var(--shadow-sm);border-color:var(--line-2); }
.card > .card-title{
  font-size:16px;font-weight:600;letter-spacing:-.02em;margin:0 0 14px;color:var(--ink);
  display:flex;align-items:center;gap:9px;
}
.card > .card-title .icon{ width:18px;height:18px;color:var(--accent); }
.card-row + .card-row{ margin-top:12px; }

/* HOME summary */
.summary-grid{ display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0 0 8px; }
.stat-card{
  padding:18px 18px 16px;border-radius:var(--radius);background:var(--card);
  border:1px solid var(--line);box-shadow:var(--shadow-xs);
  display:flex;flex-direction:column;gap:9px;text-align:left;width:100%;
  transition:box-shadow .25s ease,border-color .2s ease,transform .18s cubic-bezier(.16,1,.3,1);
}
.stat-card.link:hover{ box-shadow:var(--shadow-sm);border-color:var(--line-2);transform:translateY(-2px); }
.stat-card .sc-top{ display:flex;align-items:center;gap:10px; }
.stat-card .sc-ico{
  width:36px;height:36px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  border-radius:11px;background:var(--bg-2);color:var(--ink-2);
}
.stat-card .sc-ico .icon{ width:19px;height:19px;stroke-width:1.7; }
.stat-card.accent .sc-ico{ background:var(--accent-weak);color:var(--accent); }
.stat-card .sc-label{ font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--muted);flex:1 1 auto;min-width:0; }
.stat-card .sc-value{
  font-size:28px;font-weight:600;letter-spacing:-.025em;color:var(--ink);line-height:1.1;font-variant-numeric:tabular-nums;
}
.stat-card .sc-value .yen{ font-size:16px;color:var(--muted);font-weight:500;margin-right:1px; }
.stat-card .sc-value.accent{ color:var(--accent); }
.stat-card .sc-sub{ font-size:12.5px;color:var(--muted);font-weight:500; }
.stat-card .sc-sub .up{ color:var(--accent-ink);font-weight:600; }
.stat-card .sc-sub .down{ color:var(--alert-ink);font-weight:600; }

/* HOME today */
.today{ margin:0 0 8px;padding:20px 22px;border-radius:var(--radius);background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-xs); }
.today .today-head{ display:flex;align-items:center;gap:10px;margin:0 0 4px; }
.today .today-head .icon{ width:19px;height:19px;color:var(--accent); }
.today .today-head .th-title{ font-size:16px;font-weight:600;letter-spacing:-.01em; }
.today .today-head .th-date{ margin-left:auto;font-size:12.5px;color:var(--muted-2);font-variant-numeric:tabular-nums; }
.today .today-sub{ font-size:13px;color:var(--muted);margin:2px 0 14px; }
.today-list{ display:flex;flex-direction:column;gap:9px; }
.today-item{
  display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:14px;
  border:1px solid var(--line);background:var(--card);text-align:left;width:100%;text-decoration:none;
  transition:border-color .16s ease,background .16s ease,transform .16s cubic-bezier(.16,1,.3,1);
}
.today-item:hover{ border-color:var(--line-2);background:var(--bg-2);transform:translateX(2px); }
.today-item .ti-ico{
  flex:0 0 auto;width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border-radius:11px;background:var(--bg-2);color:var(--ink-2);
}
.today-item .ti-ico .icon{ width:19px;height:19px; }
.today-item .ti-body{ flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px; }
.today-item .ti-title{ font-size:14.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink); }
.today-item .ti-desc{ font-size:12.5px;color:var(--muted); }
.today-item .ti-arrow{ flex:0 0 auto;color:var(--muted-2); }
.today-item .ti-arrow .icon{ width:18px;height:18px; }
.today-item.warn .ti-ico{ background:var(--warn-weak);color:var(--warn-ink); }
.today-item.alert .ti-ico{ background:var(--alert-weak);color:var(--alert-ink); }
.today-item.info .ti-ico{ background:var(--accent-weak);color:var(--accent); }
.today-item .ti-count{
  flex:0 0 auto;min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 8px;border-radius:var(--r-pill);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;
  background:var(--bg-3);color:var(--ink-2);
}
.today-item.alert .ti-count{ background:var(--alert-weak);color:var(--alert-ink); }
.today-item.warn .ti-count{ background:var(--warn-weak);color:var(--warn-ink); }
.today-empty{ text-align:center;padding:24px 16px; }
.today-empty .te-ico{
  width:52px;height:52px;margin:0 auto 12px;border-radius:50%;
  background:var(--accent-weak);color:var(--accent);display:flex;align-items:center;justify-content:center;
}
.today-empty .te-ico .icon{ width:26px;height:26px; }
.today-empty .te-title{ font-weight:600;font-size:16px; }
.today-empty .te-desc{ color:var(--muted);font-size:14px;margin-top:6px; }

/* HOME quick */
.quick-grid{ display:grid;grid-template-columns:1fr;gap:10px;margin:0; }
.quick-btn{
  display:flex;align-items:center;gap:13px;padding:15px 17px;border-radius:14px;
  border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow-xs);text-align:left;width:100%;text-decoration:none;
  transition:all .16s cubic-bezier(.16,1,.3,1);
}
.quick-btn:hover{ border-color:var(--line-2);background:var(--bg-2);transform:translateY(-1px);box-shadow:var(--shadow-sm); }
.quick-btn .qb-ico{
  flex:0 0 auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border-radius:12px;background:var(--ink);color:#fff;
}
.quick-btn .qb-ico .icon{ width:20px;height:20px; }
.quick-btn.accent .qb-ico{ background:var(--accent); }
.quick-btn .qb-body{ flex:1 1 auto;min-width:0; }
.quick-btn .qb-title{ font-size:14.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink); }
.quick-btn .qb-desc{ font-size:12.5px;color:var(--muted);margin-top:1px; }
.quick-btn .qb-arrow{ flex:0 0 auto;color:var(--muted-2); }
.quick-btn .qb-arrow .icon{ width:17px;height:17px; }

/* HOME hero (learn entry) */
.home-hero{
  position:relative;overflow:hidden;isolation:isolate;border-radius:var(--radius-lg);
  background:#0e1311;color:#fff;padding:30px 26px;margin:0 0 22px;box-shadow:var(--shadow);
}
.home-hero::after{ content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(120deg,#13201a,#0c100e); }
.home-hero > *{ position:relative;z-index:1; }
.home-hero .hh-kick{ font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-2); }
.home-hero .hh-title{ font-size:clamp(22px,4vw,30px);font-weight:700;letter-spacing:-.02em;line-height:1.2;margin:10px 0 8px; }
.home-hero .hh-sub{ font-size:14.5px;color:rgba(255,255,255,.8);max-width:46ch;line-height:1.7;margin-bottom:18px; }
.home-hero .hh-actions{ display:flex;gap:10px;flex-wrap:wrap; }
.home-hero .btn-accent{ background:var(--accent-2);border-color:var(--accent-2); }
.home-hero .btn-accent:hover{ background:var(--accent);border-color:var(--accent); }
.home-hero .btn-ghost{ background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#fff; }
.home-hero .btn-ghost:hover{ background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4); }

/* ALERT BAR */
.alertbar{
  display:flex;align-items:center;gap:13px;padding:14px 18px;border-radius:14px;margin:0 0 18px;
  border:1px solid var(--alert-line);background:var(--alert-weak);color:var(--alert-ink);
}
.alertbar.warn{ border-color:var(--warn-line);background:var(--warn-weak);color:var(--warn-ink); }
.alertbar .ab-ico{ flex:0 0 auto;display:flex; }
.alertbar .ab-ico .icon{ width:20px;height:20px; }
.alertbar .ab-body{ flex:1 1 auto;min-width:0; }
.alertbar .ab-title{ font-size:14px;font-weight:600;letter-spacing:-.01em; }
.alertbar .ab-desc{ font-size:12.5px;opacity:.85;margin-top:1px; }
.alertbar .ab-action{
  flex:0 0 auto;font-size:13px;font-weight:600;padding:7px 13px;border-radius:10px;
  background:rgba(255,255,255,.65);border:1px solid currentColor;color:inherit;
}
.alertbar .ab-action:hover{ background:#fff; }

/* FORMS */
.form-grid{ display:grid;grid-template-columns:1fr;gap:14px; }
.field{ display:flex;flex-direction:column;gap:6px; }
.field label,.field .field-label{
  font-size:12.5px;font-weight:600;letter-spacing:.01em;color:var(--ink-2);
  display:flex;align-items:center;gap:6px;
}
.field .field-hint{ font-size:11.5px;color:var(--muted-2);font-weight:500;margin-left:auto; }
.field .input-wrap{
  display:flex;align-items:center;border:1px solid var(--line-2);border-radius:12px;background:var(--card);
  transition:border-color .16s ease,box-shadow .16s ease;
}
.field .input-wrap:focus-within{ border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak); }
.field input,.field select,.field textarea{
  flex:1 1 auto;width:100%;border:0;background:none;padding:11px 13px;
  font-size:15px;font-weight:500;font-family:inherit;color:var(--ink);outline:none;
}
.field .input-wrap input,.field .input-wrap select{ font-variant-numeric:tabular-nums; }
.field > input,.field > select,.field > textarea{
  border:1px solid var(--line-2);border-radius:12px;background:var(--card);padding:11px 13px;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.field > input:focus,.field > select:focus,.field > textarea:focus{ border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak); }
.field textarea{ resize:vertical;min-height:78px;line-height:1.6; }
.field input::placeholder,.field textarea::placeholder{ color:var(--muted-2);font-weight:400; }
.field .num{ text-align:right; }
.field .prefix,.field .unit{ flex:0 0 auto;font-size:13px;font-weight:500;color:var(--muted); }
.field .prefix{ padding:0 4px 0 13px; }
.field .unit{ padding:0 13px 0 4px; }
.field .select-wrap{ position:relative;display:flex;align-items:center;border:1px solid var(--line-2);border-radius:12px;background:var(--card);transition:border-color .16s ease,box-shadow .16s ease; }
.field .select-wrap:focus-within{ border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak); }
.field .select-wrap select{ appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:34px; }
.field .select-wrap .sel-chev{ position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted-2);display:flex; }
.field .select-wrap .sel-chev .icon{ width:16px;height:16px; }

.form-actions{ display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid var(--line); }
.form-actions.right{ justify-content:flex-end; }
.form-actions .btn{ flex:0 0 auto; }
.form-actions .grow{ flex:1 1 auto; }

.helper-row{ display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-top:8px; }
.helper-row .icon{ width:15px;height:15px;color:var(--muted-2); }
.form-note{ font-size:12.5px;color:var(--muted);margin:12px 0 0;line-height:1.6; }
.form-note b{ color:var(--ink-2);font-weight:600; }

/* INVENTORY toolbar */
.toolbar{ display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 14px; }
.toolbar .grow{ flex:1 1 auto; }
.search-box{
  display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line-2);border-radius:12px;background:var(--card);
  min-width:180px;flex:1 1 200px;transition:border-color .16s ease,box-shadow .16s ease;
}
.search-box:focus-within{ border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak); }
.search-box .icon{ width:17px;height:17px;color:var(--muted-2);flex:0 0 auto; }
.search-box input{ flex:1 1 auto;border:0;background:none;outline:none;padding:10px 0;font-size:14.5px;color:var(--ink); }
.search-box input::placeholder{ color:var(--muted-2); }

.segment{ display:inline-flex;gap:3px;padding:3px;border-radius:12px;background:var(--bg-3);border:1px solid var(--line); }
.segment button{
  padding:7px 14px;border-radius:9px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.segment button:hover{ color:var(--ink); }
.segment button.active{ background:var(--card);color:var(--ink);box-shadow:var(--shadow-xs); }
.segment button .seg-count{ font-weight:600;opacity:.6;margin-left:4px;font-variant-numeric:tabular-nums; }

.sort-pill{
  display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:12px;
  border:1px solid var(--line-2);background:var(--card);font-size:13px;font-weight:600;color:var(--ink-2);
}
.sort-pill .icon{ width:15px;height:15px;color:var(--muted-2); }
.sort-pill select{ border:0;background:none;outline:none;font:inherit;color:inherit;cursor:pointer; }

.table-wrap{
  overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line);background:var(--card);
  box-shadow:var(--shadow-xs);-webkit-overflow-scrolling:touch;
}
table.inv-table{ width:100%;border-collapse:separate;border-spacing:0;font-size:14px;min-width:680px; }
table.inv-table th{
  background:var(--bg-2);font-weight:600;text-align:left;color:var(--muted);
  font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;padding:12px 14px;
  border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;z-index:1;
}
table.inv-table th.num,table.inv-table td.num{ text-align:right;font-variant-numeric:tabular-nums; }
table.inv-table td{ padding:14px;border-bottom:1px solid var(--line);color:var(--ink-2);vertical-align:middle; }
table.inv-table tbody tr:last-child td{ border-bottom:0; }
table.inv-table tbody tr{ transition:background .14s ease; }
table.inv-table tbody tr:hover{ background:var(--bg-2); }
table.inv-table td.cell-name{ position:relative;padding-left:18px; }
table.inv-table td.cell-name::before{
  content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:var(--r-pill);background:transparent;
}
.inv-table .name-main{ font-weight:600;color:var(--ink);letter-spacing:-.01em; }
.inv-table .name-sub{ font-size:12px;color:var(--muted);margin-top:2px; }
.inv-table .cell-profit b{ color:var(--ink);font-weight:600; }
.inv-table .cell-profit.neg b{ color:var(--alert-ink); }
.inv-table .row-actions{ display:flex;align-items:center;gap:4px;justify-content:flex-end; }

.age{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--r-pill);
  font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;background:var(--bg-3);color:var(--ink-2);white-space:nowrap;
}
.age .icon{ width:13px;height:13px; }
.age.fresh{ background:var(--bg-3);color:var(--muted); }
.age.review{ background:var(--accent-weak);color:var(--accent-ink); }
.age.markdown{ background:var(--warn-weak);color:var(--warn-ink); }
.age.urgent{ background:var(--alert-weak);color:var(--alert-ink); }
tr.r-review td.cell-name::before{ background:var(--accent-line); }
tr.r-markdown td.cell-name::before{ background:var(--warn-line); }
tr.r-urgent td.cell-name::before{ background:var(--alert-line); }
tr.r-sold td.cell-name::before{ background:var(--good-line); }

.status{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--r-pill);
  font-size:12px;font-weight:600;white-space:nowrap;
}
.status .dot{ width:6px;height:6px;border-radius:50%;background:currentColor; }
.status.s-active{ background:var(--bg-3);color:var(--ink-2); }
.status.s-sold{ background:var(--accent-weak);color:var(--accent-ink); }
.status.s-hold{ background:var(--warn-weak);color:var(--warn-ink); }

.inv-cards{ display:flex;flex-direction:column;gap:10px; }
.inv-card{ position:relative;padding:15px 16px 15px 18px;border-radius:14px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow-xs); }
.inv-card::before{ content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:var(--r-pill);background:var(--line-2); }
.inv-card.r-review::before{ background:var(--accent-line); }
.inv-card.r-markdown::before{ background:var(--warn-line); }
.inv-card.r-urgent::before{ background:var(--alert-line); }
.inv-card.r-sold::before{ background:var(--good-line); }
.inv-card .ic-top{ display:flex;align-items:flex-start;gap:10px; }
.inv-card .ic-name{ flex:1 1 auto;min-width:0; }
.inv-card .ic-name .name-main{ font-size:15px;font-weight:600;color:var(--ink);letter-spacing:-.01em; }
.inv-card .ic-name .name-sub{ font-size:12.5px;color:var(--muted);margin-top:2px; }
.inv-card .ic-meta{ display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px; }
.inv-card .ic-figs{ display:flex;gap:18px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line); }
.inv-card .ic-fig{ display:flex;flex-direction:column;gap:1px; }
.inv-card .ic-fig .f-label{ font-size:11px;color:var(--muted-2);font-weight:600;letter-spacing:.02em; }
.inv-card .ic-fig .f-value{ font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums; }
.inv-card .ic-fig .f-value.accent{ color:var(--accent); }
.inv-card .ic-fig .f-value.neg{ color:var(--alert-ink); }
.inv-card .ic-hint{ display:flex;align-items:center;gap:7px;margin-top:11px;font-size:12px;color:var(--muted); }
.inv-card .ic-hint .icon{ width:14px;height:14px; }
.inv-card.r-urgent .ic-hint{ color:var(--alert-ink); }
.inv-card.r-markdown .ic-hint{ color:var(--warn-ink); }
.inv-card .ic-actions{ display:flex;gap:7px;margin-top:13px;flex-wrap:wrap; }
.inv-card .ic-actions .btn{ flex:1 1 auto; }

/* CALC */
.calc-result{ margin-top:20px;padding:20px 22px;border-radius:var(--radius);background:var(--accent-weak);border:1px solid var(--accent-line); }
.calc-result .cr-verdict{ display:flex;align-items:center;gap:11px;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--accent-line); }
.calc-result .cr-verdict .cv-mark{
  width:42px;height:42px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  border-radius:12px;background:var(--accent);color:#fff;
}
.calc-result .cr-verdict .cv-mark .icon{ width:22px;height:22px;stroke-width:2; }
.calc-result .cr-verdict.ng .cv-mark{ background:var(--alert-ink); }
.calc-result .cr-verdict .cv-text .cv-title{ font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--ink); }
.calc-result .cr-verdict .cv-text .cv-sub{ font-size:13px;color:var(--accent-ink);margin-top:2px; }
.calc-result .cr-verdict.ng .cv-text .cv-sub{ color:var(--alert-ink); }
.calc-result .cr-grid{ display:grid;grid-template-columns:repeat(2,1fr);gap:18px 20px; }
.calc-result .ri{ min-width:0; }
.calc-result .ri .ri-label{ font-size:11.5px;font-weight:600;letter-spacing:.03em;color:var(--accent-ink);display:flex;align-items:center;gap:5px; }
.calc-result .ri .ri-value{ font-size:26px;font-weight:600;letter-spacing:-.025em;color:var(--ink);margin-top:4px;line-height:1.12;font-variant-numeric:tabular-nums; }
.calc-result .ri .ri-value .yen{ font-size:15px;color:var(--muted);font-weight:500;margin-right:1px; }
.calc-result .ri.hero .ri-value{ font-size:32px; }
.calc-result .ri .ri-value.accent{ color:var(--accent); }
.calc-result .ri .ri-value.neg{ color:var(--alert-ink); }
.calc-result .cr-note{ font-size:12.5px;color:var(--accent-ink);margin:16px 0 0;line-height:1.6;opacity:.9; }
.calc-result .cr-actions{ display:flex;gap:10px;margin-top:18px;flex-wrap:wrap; }
.calc-result .cr-actions .btn{ flex:1 1 auto;background:var(--card); }
.calc-result .cr-actions .btn-primary{ background:var(--ink);color:#fff; }

/* KPI */
.kpi-summary{ display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0 0 18px; }
.goal-bar{ margin:6px 0 0; }
.goal-bar .gb-top{ display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:13.5px;color:var(--ink-2); }
.goal-bar .gb-cur{ font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums; }
.goal-bar .gb-cur .yen{ font-size:.8em;color:var(--muted);font-weight:500; }
.goal-bar .gb-goal{ color:var(--muted);font-variant-numeric:tabular-nums; }
.goal-bar .gb-track{ height:10px;border-radius:var(--r-pill);background:var(--bg-3);overflow:hidden;margin:10px 0 8px; }
.goal-bar .gb-fill{ display:block;height:100%;border-radius:var(--r-pill);background:var(--accent);transition:width .7s cubic-bezier(.16,1,.3,1); }
.goal-bar .gb-fill.over{ background:var(--accent-ink); }
.goal-bar .gb-diff{ font-size:12.5px;font-weight:500;color:var(--muted); }
.goal-bar .gb-diff .gain{ color:var(--accent-ink);font-weight:600; }
.goal-bar .gb-diff .short{ color:var(--warn-ink);font-weight:600; }

.chart{ margin:6px 0 0; }
.chart .chart-head{ display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px; }
.chart .chart-title{ font-size:13.5px;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:7px; }
.chart .chart-title .icon{ width:16px;height:16px;color:var(--accent); }
.chart .chart-legend{ display:flex;gap:14px;font-size:11.5px;color:var(--muted); }
.chart .chart-legend i{ display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px;vertical-align:-.5px;background:var(--ink); }
.chart .chart-legend i.accent{ background:var(--accent); }
.chart .bars{ display:flex;align-items:flex-end;gap:10px;height:160px;padding:0 2px;border-bottom:1px solid var(--line); }
.chart .bar-col{ flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end; }
.chart .bar-stack{ width:100%;max-width:38px;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;flex:1 1 auto;position:relative; }
.chart .bar{ width:100%;border-radius:6px 6px 0 0;background:var(--bg-3);min-height:3px;transition:height .6s cubic-bezier(.16,1,.3,1);position:relative; }
.chart .bar.fill-ink{ background:var(--ink); }
.chart .bar.fill-accent{ background:var(--accent); }
.chart .bar.fill-soft{ background:var(--accent-line); }
.chart .bar .bar-val{ position:absolute;top:-19px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:600;color:var(--ink-2);white-space:nowrap;font-variant-numeric:tabular-nums; }
.chart .bar-col:hover .bar.fill-accent,.chart .bar-col:hover .bar.fill-ink{ filter:brightness(1.06); }
.chart .bar-x{ font-size:11px;color:var(--muted);font-weight:500;white-space:nowrap; }
.chart .chart-empty{ height:160px;display:flex;align-items:center;justify-content:center;color:var(--muted-2);font-size:13px; }

/* HISTORY */
.hist-list{ display:flex;flex-direction:column;gap:9px; }
.hist-item{
  display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--card);
  box-shadow:var(--shadow-xs);transition:border-color .16s ease,box-shadow .2s ease;
}
.hist-item:hover{ border-color:var(--line-2);box-shadow:var(--shadow-sm); }
.hist-item .hi-ico{ flex:0 0 auto;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--bg-2);color:var(--ink-2); }
.hist-item .hi-ico .icon{ width:18px;height:18px; }
.hist-item .hi-ico.ok{ background:var(--accent-weak);color:var(--accent); }
.hist-item .hi-ico.ng{ background:var(--alert-weak);color:var(--alert-ink); }
.hist-item .hi-body{ flex:1 1 auto;min-width:0; }
.hist-item .hi-title{ font-size:14.5px;font-weight:600;color:var(--ink);letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.hist-item .hi-meta{ display:flex;gap:12px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-top:3px; }
.hist-item .hi-meta b{ color:var(--ink-2);font-weight:600;font-variant-numeric:tabular-nums; }
.hist-item .hi-meta .date{ font-variant-numeric:tabular-nums; }
.hist-item .hi-fig{ flex:0 0 auto;text-align:right; }
.hist-item .hi-fig .f-value{ font-size:16px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums; }
.hist-item .hi-fig .f-value.accent{ color:var(--accent); }
.hist-item .hi-fig .f-value.neg{ color:var(--alert-ink); }
.hist-item .hi-fig .f-label{ font-size:11px;color:var(--muted-2);margin-top:1px; }
.hist-item .hi-actions{ flex:0 0 auto;display:flex;gap:4px; }

/* SETTINGS */
.settings-group{ margin:0 0 18px; }
.danger-zone{ border:1px solid var(--alert-line);border-radius:var(--radius);padding:20px 22px;background:var(--alert-weak);margin-top:8px; }
.danger-zone .dz-title{ font-size:14.5px;font-weight:600;color:var(--alert-ink);display:flex;align-items:center;gap:8px; }
.danger-zone .dz-title .icon{ width:17px;height:17px; }
.danger-zone .dz-desc{ font-size:12.5px;color:var(--alert-ink);opacity:.85;margin:6px 0 14px;line-height:1.6; }
.io-area{
  width:100%;min-height:120px;font-family:var(--mono);font-size:12px;line-height:1.6;padding:13px 15px;border-radius:12px;
  border:1px solid var(--line-2);background:var(--bg-2);color:var(--ink-2);resize:vertical;outline:none;
}
.io-area:focus{ border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak);background:var(--card); }

/* EMPTY */
.empty{ text-align:center;padding:46px 24px;border-radius:var(--radius);border:1px dashed var(--line-2);background:var(--card); }
.empty .empty-ico{ width:60px;height:60px;margin:0 auto;display:flex;align-items:center;justify-content:center;border-radius:18px;background:var(--bg-2);color:var(--muted-2); }
.empty .empty-ico .icon{ width:28px;height:28px;stroke-width:1.5; }
.empty .empty-title{ font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--ink);margin:18px 0 7px; }
.empty .empty-desc{ font-size:14px;color:var(--muted);max-width:380px;margin:0 auto;line-height:1.7; }
.empty .empty-action{ margin-top:20px;display:inline-flex; }
.empty.inline{ padding:34px 20px;border:0;background:none; }
.empty.mini{ padding:26px 18px; }
.empty.mini .empty-ico{ width:48px;height:48px;border-radius:14px; }
.empty.mini .empty-ico .icon{ width:23px;height:23px; }
.empty.mini .empty-title{ font-size:15px;margin:14px 0 5px; }

/* MODAL (.dash-modal hidden control + .modal-card styling) */
.dash-modal,.modal{ position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:18px; }
.dash-modal.open,.modal.open{ display:flex;animation:modalFade .22s ease; }
.dash-modal[hidden]{ display:none; }
@keyframes modalFade{ from{opacity:0;} to{opacity:1;} }
.dash-modal-scrim,.modal-scrim{ position:absolute;inset:0;background:rgba(11,11,12,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px); }
.modal-card,.dash-modal-card{
  position:relative;z-index:1;width:100%;max-width:520px;max-height:calc(100dvh - 36px);
  display:flex;flex-direction:column;background:var(--card);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);border:1px solid var(--line);animation:modalPop .3s cubic-bezier(.16,1,.3,1);overflow:hidden;
}
.modal-card.wide{ max-width:640px; }
.modal-card.narrow{ max-width:400px; }
@keyframes modalPop{ from{opacity:0;transform:translateY(16px) scale(.97);} to{opacity:1;transform:translateY(0) scale(1);} }
.modal-top,.dash-modal-top{ display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 16px;border-bottom:1px solid var(--line);flex:0 0 auto; }
.modal-heading,.dash-modal-heading{ min-width:0; }
.modal-title,.dash-modal-title{ font-size:19px;font-weight:600;letter-spacing:-.02em;color:var(--ink); }
.modal-sub{ font-size:13px;color:var(--muted);font-weight:500;margin-top:3px; }
.modal-sub:empty{ display:none; }
.modal-close,.dash-modal-close{ flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:background .15s ease,color .15s ease; }
.modal-close .icon,.dash-modal-close .icon{ width:18px;height:18px; }
.modal-close:hover,.dash-modal-close:hover{ background:var(--bg-2);color:var(--ink); }
.modal-body,.dash-modal-body{ padding:22px 24px;overflow-y:auto;flex:1 1 auto; }
.modal-foot,.dash-modal-foot{ display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:16px 24px calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--card);flex:0 0 auto; }
.modal-foot:empty,.dash-modal-foot:empty{ display:none; }
.modal-foot .btn{ flex:0 0 auto; }
.modal-foot .grow{ flex:1 1 auto; }
.confirm-ico{ width:48px;height:48px;margin:0 0 14px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--alert-weak);color:var(--alert-ink); }
.confirm-ico .icon{ width:24px;height:24px; }
.confirm-ico.accent{ background:var(--accent-weak);color:var(--accent); }
.confirm-text{ font-size:14.5px;color:var(--ink-2);line-height:1.7; }
.confirm-text strong{ color:var(--ink);font-weight:600; }

/* BADGE / DIVIDER */
.badge{ display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:var(--r-pill);background:var(--accent-weak);color:var(--accent-ink);font-size:12px;font-weight:600;border:1px solid var(--accent-line); }
.badge .icon{ width:13px;height:13px; }
.badge.neutral{ background:var(--bg-3);color:var(--muted);border-color:var(--line-2); }
.badge.warn{ background:var(--warn-weak);color:var(--warn-ink);border-color:var(--warn-line); }
.badge.alert{ background:var(--alert-weak);color:var(--alert-ink);border-color:var(--alert-line); }
.divider{ height:1px;background:var(--line);margin:24px 0;border:0; }
.meta-dot{ display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--muted-2);margin:0 7px;vertical-align:middle; }

/* TOAST */
.dash-toast,.toast{
  position:fixed;left:50%;bottom:calc(var(--bottombar-h) + 20px);transform:translateX(-50%) translateY(20px);z-index:110;
  display:none;align-items:center;gap:11px;padding:13px 20px;border-radius:15px;background:var(--ink);color:#fff;
  box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:opacity .3s ease,transform .4s cubic-bezier(.16,1,.3,1);max-width:90vw;
}
.dash-toast.show,.toast.show{ display:flex;opacity:1;transform:translateX(-50%) translateY(0); }
.dash-toast .toast-ico,.toast .toast-ico{ flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;color:#fff; }
.dash-toast .toast-ico .icon,.toast .toast-ico .icon{ width:19px;height:19px;color:#fff; }
.dash-toast.ok .toast-ico,.toast.ok .toast-ico{ color:#a7e0c4; }
.dash-toast.warn .toast-ico,.toast.warn .toast-ico{ color:#e8d59a; }
.dash-toast .toast-text,.toast .toast-text{ display:flex;flex-direction:column;gap:1px;min-width:0; }
.dash-toast .toast-title,.toast .toast-title{ font-size:14.5px;font-weight:600;letter-spacing:-.01em; }
.dash-toast .toast-sub,.toast .toast-sub{ font-size:12px;color:rgba(255,255,255,.66);font-weight:500; }

/* ============================================================
   LEARN — chapter list (#/learn)
   ============================================================ */
.chapter-list{ display:flex;flex-direction:column;gap:12px;margin-top:4px; }
.chapter-card{
  display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:var(--radius);
  border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow-xs);text-align:left;width:100%;text-decoration:none;
  transition:border-color .16s ease,box-shadow .22s ease,transform .18s cubic-bezier(.16,1,.3,1);
}
.chapter-card:hover{ border-color:var(--accent-line);box-shadow:var(--shadow-sm);transform:translateY(-2px); }
.chapter-card .cc-no{
  flex:0 0 auto;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;
  background:var(--accent-weak);color:var(--accent-ink);font-weight:800;font-size:17px;letter-spacing:.01em;font-variant-numeric:tabular-nums;
}
.chapter-card.done .cc-no{ background:var(--accent);color:#fff; }
.chapter-card .cc-body{ flex:1 1 auto;min-width:0; }
.chapter-card .cc-kick{ font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted); }
.chapter-card .cc-title{ font-size:16.5px;font-weight:700;letter-spacing:-.015em;color:var(--ink);margin-top:3px; }
.chapter-card .cc-sub{ font-size:13px;color:var(--muted);margin-top:3px;line-height:1.6; }
.chapter-card .cc-state{ flex:0 0 auto;display:flex;align-items:center;gap:8px; }
.chapter-card .cc-arrow{ flex:0 0 auto;color:var(--muted-2);display:flex; }
.chapter-card .cc-arrow .icon{ width:20px;height:20px; }
.chapter-card.locked{ opacity:.6;pointer-events:none; }
.chapter-card.locked .cc-no{ background:var(--bg-3);color:var(--muted-2); }
.cc-done-chip{ display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:var(--accent-ink);background:var(--accent-weak);border:1px solid var(--accent-line);border-radius:var(--r-pill);padding:4px 10px; }
.cc-done-chip .icon{ width:13px;height:13px; }

/* ============================================================
   LESSON — chapter body (#/learn/1) — editorial design
   ============================================================ */
.lesson{ color:var(--ink);line-height:1.8;font-variant-numeric:tabular-nums;background:var(--bg); }

/* reading progress (inside shell, below topbar on mobile / top on desktop) */
.readbar{
  position:fixed;left:0;right:0;height:3px;z-index:55;background:transparent;pointer-events:none;
  top:calc(var(--topbar-h) + env(safe-area-inset-top));
}
.readbar i{ display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .08s linear; }
@media (min-width:900px){ .readbar{ top:0; } }

/* reveal */
.reveal{ opacity:0;transform:translateY(20px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1;transform:none; }

/* in-lesson step indicator (replaces standalone .top bar) */
.lesson-step{
  max-width:840px;margin:0 auto;padding:18px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.lesson-step .ls-prog{ font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.06em; }
.lesson-step .ls-back{ display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:13.5px;font-weight:600;text-decoration:none; }
.lesson-step .ls-back .icon{ width:16px;height:16px; }
.lesson-step .ls-back:hover{ color:var(--ink); }

/* cinematic chapter hero */
.chero{ position:relative;overflow:hidden;isolation:isolate;min-height:clamp(320px,50vh,480px);display:flex;align-items:flex-end;background:#0e1311;color:#fff;margin-top:14px; }
.chero-bg{ position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.62;z-index:0;transform:scale(1.09);animation:cz 18s ease-out forwards; }
@keyframes cz{ to{transform:scale(1);} }
.chero::after{ content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(10,14,12,.28) 0%,rgba(10,14,12,.55) 55%,rgba(10,14,12,.88) 100%); }
.chero.nobg .chero-bg{ display:none; }
.chero.nobg::after{ background:linear-gradient(180deg,#161d18,#0c100e); }
.chero-in{ position:relative;z-index:2;max-width:840px;margin:0 auto;width:100%;padding:48px 24px 40px; }
.chero .kick{ color:var(--accent-2);margin-bottom:0;opacity:0;animation:up2 .8s .12s cubic-bezier(.2,.7,.2,1) forwards; }
.chero .ctitle{ font-size:clamp(28px,5.2vw,46px);line-height:1.12;letter-spacing:-.025em;font-weight:800;margin:14px 0 16px;opacity:0;animation:up2 .9s .22s cubic-bezier(.2,.7,.2,1) forwards; }
.chero .clede{ font-size:clamp(15px,2vw,18px);color:rgba(255,255,255,.84);max-width:50ch;opacity:0;animation:up2 .9s .34s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes up2{ from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;} }

.lesson .wrap{ max-width:840px;margin:0 auto;padding:44px 24px 60px; }

.lesson .kick{ font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent-ink);font-weight:800;margin-bottom:14px; }
.lesson .lede{ font-size:17px;color:var(--ink-2);max-width:52ch;margin-bottom:30px; }
.hero-photo{ position:relative;border-radius:22px;overflow:hidden;aspect-ratio:16/8;box-shadow:var(--shadow); }
.hero-photo img{ width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.06);transition:transform 1.2s ease; }
.hero-photo.in img{ transform:scale(1); }
.ph-fallback{ position:absolute;inset:0;display:none;place-items:center;background:radial-gradient(120% 120% at 30% 20%,#eaf3ee,#dcebe3); }
.ph-fallback svg{ width:56px;height:56px;stroke:var(--accent);fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.7; }
.photo-failed img{ display:none; }
.photo-failed .ph-fallback{ display:grid; }

.lesson section{ margin-top:64px; }
.lesson .eyebrow{ display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--accent-ink);margin-bottom:16px; }
.lesson .eyebrow svg{ width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.lesson h2{ font-size:25px;letter-spacing:-.015em;margin-bottom:8px; }
.lesson p.body{ font-size:16px;color:var(--ink-2);margin:10px 0; }

.outcomes{ border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow); }
.oc{ display:flex;gap:16px;align-items:center;padding:19px 22px;background:var(--card);transition:background .15s; }
.oc+.oc{ border-top:1px solid var(--line); }
.oc:hover{ background:#fcfdfc; }
.oc-no{ flex:none;width:36px;height:36px;border-radius:11px;background:var(--accent-weak);color:var(--accent-ink);font-weight:800;font-size:13px;display:grid;place-items:center;letter-spacing:.02em; }
.oc-tx b{ display:block;font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.4; }
.oc-tx span{ display:block;font-size:13.5px;color:var(--muted);margin-top:2px; }

.miles{ display:grid;grid-template-columns:1fr 1fr;gap:16px; }
@media(max-width:560px){ .miles{ grid-template-columns:1fr; } }
.mile{ background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px 22px; }
.mile .tag{ font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;display:block;margin-bottom:16px; }
.mile .big{ font-size:30px;font-weight:700;letter-spacing:-.025em;color:var(--ink);line-height:1; }
.mile .big small{ font-size:14px;font-weight:600;color:var(--muted);margin-left:5px;letter-spacing:0; }
.mile .note{ font-size:13px;color:var(--muted);margin-top:10px; }

/* editorial photo band with pull quote */
.band{ position:relative;border-radius:22px;overflow:hidden;aspect-ratio:21/8;margin-top:8px;background:#0e1311; }
.band img{ width:100%;height:100%;object-fit:cover;opacity:.62; }
.band::after{ content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,14,12,.78),rgba(10,14,12,.30)); }
.band.nobg img{ display:none; }
.band.nobg::after{ background:linear-gradient(90deg,#111714,#0c100e); }
.band-q{ position:absolute;inset:0;display:flex;align-items:center;padding:0 clamp(24px,5vw,52px);z-index:2;color:#fff;font-size:clamp(17px,2.8vw,24px);font-weight:700;letter-spacing:.01em;line-height:1.5;max-width:24ch; }

/* formula */
.formula{ position:relative;overflow:hidden;isolation:isolate;background:#0e1311;color:#f4f6f5;border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:44px 30px;text-align:center; }
.formula-bg{ position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;z-index:0; }
.formula::after{ content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(12,17,15,.60),rgba(12,17,15,.84)); }
.formula.nobg .formula-bg{ display:none; }
.formula.nobg::after{ background:rgba(14,19,17,.42); }
.formula-in{ position:relative;z-index:2; }
.formula .f{ font-size:clamp(13.5px,2.2vw,17px);font-weight:600;line-height:2.2;letter-spacing:.03em; }
.formula .f .plus{ color:#566059;margin:0 8px;font-weight:500; }
.formula .f .res{ color:#84d3ad;font-weight:700; }
.formula .cap{ font-size:11.5px;color:rgba(244,246,245,.42);margin-top:20px;letter-spacing:.02em; }

/* calc breakdown */
.calc-break{ margin-top:20px;border-top:1px solid var(--line); }
.calc-break .row{ display:flex;justify-content:space-between;align-items:baseline;padding:13px 2px;border-bottom:1px solid var(--line);font-size:15px; }
.calc-break .row span{ color:var(--ink-2); }
.calc-break .row.sub span{ color:var(--muted); }
.calc-break .row b{ font-weight:600;color:var(--ink);letter-spacing:-.01em; }
.calc-break .row.res{ border-bottom:0;border-top:1.5px solid var(--ink);margin-top:2px;padding-top:18px;align-items:flex-start; }
.calc-break .row.res > span{ font-weight:700;color:var(--ink);padding-top:4px; }
.calc-break .row.res b{ font-size:22px;font-weight:800;color:var(--accent-ink);text-align:right; }
.calc-break .row.res b em{ display:block;font-style:normal;font-size:12.5px;font-weight:600;color:var(--muted);margin-top:3px; }

/* equation + spec */
.eq-label{ font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:14px; }
.equation{ display:flex;flex-wrap:wrap;align-items:baseline;gap:0 3px;padding:0 0 26px; }
.equation .n{ font-size:clamp(23px,4.4vw,33px);font-weight:700;letter-spacing:-.02em;line-height:1; }
.equation .u{ font-size:13.5px;color:var(--muted);font-weight:500;margin-right:9px; }
.equation .op{ font-size:17px;color:#bcc1bd;font-weight:400;margin:0 7px; }
.equation .n.hl{ color:var(--accent-ink);font-weight:800;box-shadow:inset 0 -11px 0 var(--accent-weak); }
.spec{ border-top:1px solid var(--line); }
.spec > div{ display:flex;justify-content:space-between;align-items:baseline;padding:15px 2px;border-bottom:1px solid var(--line); }
.spec dt{ color:var(--muted);font-size:14.5px; }
.spec dd{ font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0; }
.spec dd span{ font-size:13px;font-weight:600;color:var(--muted);margin-left:4px; }

/* rate viz */
.rateviz{ margin-top:26px;background:var(--bg-2);border:1px solid var(--line);border-radius:16px;padding:22px 24px; }
.rv-head{ display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px; }
.rv-head span{ font-size:14px;color:var(--ink-2);font-weight:600; }
.rv-head b{ font-size:26px;font-weight:800;color:var(--accent-ink);letter-spacing:-.02em; }
.rv-bar{ height:14px;border-radius:8px;background:#e6e9e7;overflow:hidden;position:relative; }
.rv-bar i{ display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:8px;transition:width 1s cubic-bezier(.2,.7,.2,1); }
.rv-note{ font-size:13px;color:var(--muted);margin-top:12px; }

/* accordion */
.acc{ border:1px solid var(--line);border-radius:16px;overflow:hidden; }
.acc .item+.item{ border-top:1px solid var(--line); }
.acc .q{ width:100%;text-align:left;background:var(--card);border:0;cursor:pointer;font:inherit;font-weight:700;font-size:15.5px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink); }
.acc .q svg{ width:18px;height:18px;flex:none;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s; }
.acc .item.open .q svg{ transform:rotate(180deg); }
.acc .a{ max-height:0;overflow:hidden;transition:max-height .3s ease; }
.acc .item.open .a{ max-height:360px; }
.acc .a-in{ padding:0 20px 18px;color:var(--ink-2);font-size:15px; }

/* tool: real calculator preview */
.tool{ background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow); }
.calcui{ background:#0e1311;padding:18px 18px 22px; }
.cu-bar{ display:flex;align-items:center;gap:7px;padding:2px 2px 16px; }
.cu-bar i{ width:10px;height:10px;border-radius:50%;background:#39413c;display:inline-block; }
.cu-bar em{ margin-left:10px;font-style:normal;font-size:12px;color:rgba(255,255,255,.5);font-weight:600;letter-spacing:.02em; }
.cu-card{ background:#fff;border-radius:14px;padding:8px 16px; }
.cu-row{ display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line); }
.cu-row label{ font-size:14px;color:var(--ink-2); }
.cu-in{ min-width:96px;text-align:right;font-size:15px;font-weight:600;color:var(--ink);background:var(--bg-2);border:1px solid var(--line);border-radius:9px;padding:7px 12px; }
.cu-out{ display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 6px; }
.cu-out > div{ background:var(--accent-weak);border:1px solid var(--accent-line);border-radius:12px;padding:13px 16px; }
.cu-out span{ display:block;font-size:12px;color:var(--accent-ink);font-weight:600;margin-bottom:3px; }
.cu-out b{ font-size:21px;font-weight:800;color:var(--accent-ink);letter-spacing:-.02em; }
.tool .bd{ padding:24px; }
.tool h3{ font-size:18px;margin-bottom:6px; }
.tool p{ font-size:14.5px;color:var(--muted);margin-bottom:18px; }
.tool .tool-cta{ display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:15px;text-decoration:none;border-radius:13px;padding:14px 22px;background:var(--accent);color:#fff;transition:transform .15s ease,background .2s ease; }
.tool .tool-cta:hover{ transform:translateY(-2px);background:var(--accent-ink);color:#fff; }
.tool .tool-cta svg,.tool .tool-cta .icon{ width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.tool .hint{ font-size:12.5px;color:var(--muted);margin-top:12px;display:flex;align-items:center;gap:6px; }
.tool .hint svg,.tool .hint .icon{ width:15px;height:15px;stroke:var(--accent);fill:none;stroke-width:2; }

/* todo + clear */
.todo{ list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0; }
.todo li{ display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:14px 16px;font-size:15px;cursor:pointer;transition:.15s; }
.todo li:hover{ border-color:var(--accent-line); }
.todo li .box{ width:22px;height:22px;flex:none;border:2px solid #cfd6d2;border-radius:7px;display:grid;place-items:center;transition:.18s; }
.todo li .box svg{ width:13px;height:13px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20;transition:stroke-dashoffset .3s ease .05s; }
.todo li.done .box{ background:var(--accent);border-color:var(--accent);transform:scale(1.04); }
.todo li.done .box svg{ stroke-dashoffset:0; }
.todo li.done span{ color:var(--muted);text-decoration:line-through; }
.todo li .todo-tx{ flex:1 1 auto;min-width:0; }
.clearchip{ display:none;align-items:center;gap:10px;margin-top:18px;background:var(--accent-weak);border:1px solid var(--accent-line);border-radius:14px;padding:15px 18px;color:var(--accent-ink);font-weight:700;font-size:15px;opacity:0;transform:translateY(8px);transition:opacity .4s,transform .4s; }
.clearchip.show{ display:flex;opacity:1;transform:none; }
.clearchip svg,.clearchip .icon{ width:22px;height:22px;stroke:var(--accent);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }

/* lesson pager (prev / next inside shell) */
.pager{ display:flex;justify-content:space-between;gap:12px;margin-top:56px;padding-top:26px;border-top:1px solid var(--line); }
.pager a,.pager button{ display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;font-size:15px;color:var(--ink);border:1px solid var(--line);border-radius:13px;padding:13px 20px;background:var(--card);transition:.15s; }
.pager a:hover,.pager button:hover{ border-color:var(--accent);color:var(--accent-ink);background:var(--accent-weak); }
.pager a svg,.pager button svg,.pager a .icon,.pager button .icon{ width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.pager .next{ background:var(--accent);color:#fff;border-color:var(--accent); }
.pager .next:hover{ background:var(--accent-ink);color:#fff;border-color:var(--accent-ink); }
.pager .spacer{ flex:1 1 auto; }
.pager a[disabled],.pager button[disabled]{ opacity:.4;pointer-events:none; }

/* DESKTOP */
@media (min-width:900px){
  .dash-topbar,.topbar,.dash-tabbar,.bottombar,.dash-scrim,.scrim{ display:none; }
  .dash,.app{ flex-direction:row; }
  .dash-side,.side{
    position:sticky;top:0;align-self:flex-start;height:100dvh;width:var(--side-w);flex:0 0 var(--side-w);
    border-right:1px solid var(--line);transform:none !important;
  }
  .dash-content,.content{ padding:0; }
  .dash-main,.main{ padding:40px 44px 80px;max-width:calc(var(--main-w) + 88px); }
  .dash-main.lesson-main,.main.lesson-main{ padding:0 0 60px;max-width:100%; }
  .page-title{ font-size:32px; }
  .summary-grid{ grid-template-columns:repeat(4,1fr); }
  .quick-grid{ grid-template-columns:repeat(3,1fr); }
  .form-grid{ grid-template-columns:1fr 1fr; }
  .form-grid .field.span-2{ grid-column:span 2; }
  .kpi-summary{ grid-template-columns:repeat(4,1fr); }
  .calc-result .cr-grid{ grid-template-columns:repeat(4,1fr); }
}

.split{ display:grid;grid-template-columns:1fr;gap:18px;align-items:start; }
@media (min-width:1040px){
  .split{ grid-template-columns:minmax(0,360px) minmax(0,1fr); }
  .split.calc-split{ grid-template-columns:minmax(0,1fr) minmax(0,420px); }
  .split .split-side{ position:sticky;top:40px; }
}

@media (min-width:600px) and (max-width:899.98px){
  .dash-main,.main{ padding-left:28px;padding-right:28px; }
  .dash-main.lesson-main,.main.lesson-main{ padding-left:0;padding-right:0; }
  .summary-grid{ grid-template-columns:repeat(4,1fr); }
  .quick-grid{ grid-template-columns:repeat(3,1fr); }
  .form-grid{ grid-template-columns:1fr 1fr; }
  .form-grid .field.span-2{ grid-column:span 2; }
  .kpi-summary{ grid-template-columns:repeat(4,1fr); }
  .calc-result .cr-grid{ grid-template-columns:repeat(4,1fr); }
}

@media (max-width:479.98px){
  .summary-grid{ grid-template-columns:1fr 1fr;gap:10px; }
  .stat-card .sc-value{ font-size:24px; }
  .page-title{ font-size:24px; }
  .calc-result .cr-grid{ grid-template-columns:1fr 1fr; }
  .lesson .wrap{ padding:36px 18px 56px; }
  .chero-in{ padding:40px 18px 32px; }
  .lesson-step{ padding:16px 18px 0; }
}

.only-desktop{ display:none; }
.only-mobile{ display:block; }
@media (min-width:760px){
  .only-desktop{ display:block; }
  .only-mobile{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1;transform:none;transition:none; }
  .chero-bg{ animation:none; }
  .chero .kick,.chero .ctitle,.chero .clede{ opacity:1;animation:none; }
  *,*::before,*::after{ animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important; }
}
