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

[hidden] { display: none !important; }

:root {
  --bg: #05070e;
  --bg-2: #080c17;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.028);
  --surface-solid: #0d1220;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #eaeefc;
  --text-dim: #a6b1ce;
  --text-faint: #71809f;
  --accent: #5fe6ff;
  --accent-2: #a78bfa;
  --accent-3: #38f2b3;
  --warn: #ffb454;
  --danger: #ff6b8a;
  --glow: rgba(95, 230, 255, 0.28);
  --glow-soft: rgba(95, 230, 255, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.36);
  --radius: 20px;
  --radius-sm: 12px;
  --blur: blur(22px) saturate(150%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.3, 1.4, 0.4, 1);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --tap: 44px;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #e9eef7;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-2: rgba(255, 255, 255, 0.56);
  --surface-solid: #ffffff;
  --border: rgba(12, 20, 40, 0.1);
  --border-strong: rgba(12, 20, 40, 0.2);
  --text: #0b1120;
  --text-dim: #4c5a78;
  --accent: #0a93b8;
  --accent-2: #6d4df0;
  --accent-3: #0f9f78;
  --warn: #b96c05;
  --danger: #d63e60;
  --glow: rgba(10, 147, 184, 0.18);
  --glow-soft: rgba(10, 147, 184, 0.1);
  --shadow: 0 1px 2px rgba(20, 32, 66, 0.06), 0 8px 24px rgba(20, 32, 66, 0.1), 0 24px 60px rgba(20, 32, 66, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 32, 66, 0.05), 0 6px 18px rgba(20, 32, 66, 0.09);
  --text-faint: #6c7c9c;
}

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

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 700px at 12% -10%, var(--bg-2), var(--bg) 60%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(95, 230, 255, 0.3); color: #04101a; }

html { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: content-box; }

.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; display: block; border-radius: 50%; filter: blur(110px); opacity: 0.5; will-change: transform; }
.aurora__a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, var(--accent), transparent 68%); animation: drift 26s var(--ease) infinite alternate; }
.aurora__b { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: radial-gradient(circle, var(--accent-2), transparent 68%); opacity: 0.36; animation: drift 32s var(--ease) infinite alternate-reverse; }
.aurora__c { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: radial-gradient(circle, var(--accent-3), transparent 70%); opacity: 0.2; animation: drift 38s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 5vh, 0) scale(1.16); }
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 120; padding: 12px 18px; background: var(--surface-solid); color: var(--text); border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

.noscript { max-width: 720px; margin: 40px auto; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-solid); text-align: center; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.appbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.78), rgba(6, 9, 18, 0.42));
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .appbar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6)); }
.appbar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 68px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; color: #04101a; background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px var(--glow); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap; }
.brand__dot { color: var(--accent); }
.brand__sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs {
  display: flex; gap: 6px; justify-self: center; min-width: 0; max-width: 100%;
  padding: 5px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; min-height: 40px; padding: 8px 18px; border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim);
  border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: color 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.28s var(--ease), transform 0.16s var(--ease-snap);
}
.tab > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab__ico { flex: none; opacity: 0.85; }
.tab:hover { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tab:active { transform: scale(0.96); transition-duration: 0.06s; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(140deg, rgba(95, 230, 255, 0.2), rgba(167, 139, 250, 0.2));
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 20px var(--glow), 0 0 34px -6px var(--glow);
}

.appbar__actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--warn); font-size: 12px; }
.chip__value { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text); }
.chip__label { color: var(--text-faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  min-height: var(--tap); padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease-snap), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s, filter 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 22px rgba(0, 0, 0, 0.26); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.07s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--primary { color: #041018; border-color: transparent; background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -8px 14px rgba(4, 16, 24, 0.14), 0 10px 30px var(--glow); }
.btn--primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -8px 14px rgba(4, 16, 24, 0.1), 0 14px 40px var(--glow); }
.btn--primary:active { box-shadow: inset 0 2px 8px rgba(4, 16, 24, 0.28), 0 6px 18px var(--glow); }
.btn--ghost { background: transparent; }
.btn--icon { padding: 0; width: var(--tap); height: var(--tap); color: var(--text-dim); }
.btn--icon:hover { color: var(--text); }
.btn--sm { min-height: 38px; padding: 9px 15px; font-size: 13px; border-radius: 11px; }
.btn--mini { min-height: 32px; padding: 6px 12px; font-size: 12px; border-radius: 10px; color: var(--text-dim); }
.btn--lg { min-height: 52px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.lang { position: relative; }
.lang__btn { gap: 7px; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 168px; list-style: none; padding: 6px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); box-shadow: var(--shadow);
  animation: pop 0.24s var(--ease) both;
}
.lang__opt {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 10px; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang__opt:hover { background: var(--surface); color: var(--text); }
.lang__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lang__opt[aria-selected="true"] { color: var(--accent); background: var(--surface-2); }

.info {
  display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none;
  margin-left: 7px; vertical-align: middle;
  font: inherit; font-size: 11px; font-weight: 700; line-height: 1;
  color: var(--text-faint); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 50%; cursor: help;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.info:hover { color: var(--accent); border-color: var(--accent); transform: scale(1.12); }
.info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tooltip {
  position: fixed; z-index: 95; max-width: min(320px, calc(100vw - 24px));
  padding: 12px 14px; border-radius: 13px;
  border: 1px solid var(--border-strong); background: var(--surface-solid);
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; color: var(--text-dim);
  animation: tipIn 0.22s var(--ease) both;
}
.tooltip.is-above { animation: tipUp 0.22s var(--ease) both; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tipUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view { padding-bottom: 60px; animation: fadeIn 0.45s var(--ease-out) both; }
#viewCalc { padding-bottom: 0; }

.hero-block { padding: 50px 0 38px; max-width: 820px; animation: cardIn 0.6s var(--ease-out) both; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); }
.pill--sm { font-size: 10.5px; padding: 4px 10px; margin-bottom: 10px; }
.display { margin-top: 18px; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.lead { margin-top: 16px; font-size: clamp(15px, 1.6vw, 18px); color: var(--text-dim); }
.hero-block__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 20px; }
.step { padding-top: 30px; }
.step__num { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--border-strong); }

.readlist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.readlist__item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-dim); }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; margin-top: 5px; }
.dot--peak { background: rgba(56, 242, 179, 0.45); }
.dot--dip { background: var(--danger); }
.dot--now { background: var(--warn); }

.glossary { display: grid; gap: 2px; }
.glossary__row { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.glossary__row:last-child { border-bottom: none; }
.glossary__term { font-size: 14px; font-weight: 700; color: var(--accent); }
.glossary__def { font-size: 14px; color: var(--text-dim); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-top: 18px; padding-bottom: 60px; }
.side-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.grid-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.stack > * { animation: cardIn 0.55s var(--ease-out) both; }
.stack > * .card { animation: none; }
.stack > :nth-child(2) { animation-delay: 0.05s; }
.stack > :nth-child(3) { animation-delay: 0.1s; }
.stack > :nth-child(4) { animation-delay: 0.15s; }
.stack > :nth-child(5) { animation-delay: 0.2s; }
.stack > :nth-child(6) { animation-delay: 0.24s; }
.stack > :nth-child(7) { animation-delay: 0.28s; }
.stack > :nth-child(8) { animation-delay: 0.32s; }
.stack > :nth-child(n+9) { animation-delay: 0.36s; }
.steps > :nth-child(2) { animation-delay: 0.06s; }
.steps > :nth-child(3) { animation-delay: 0.12s; }
.steps > :nth-child(4) { animation-delay: 0.18s; }
.plans > :nth-child(2) { animation-delay: 0.07s; }
.plans > :nth-child(3) { animation-delay: 0.14s; }

.ad { position: relative; margin: 22px 0 6px; }
.ad__tag { position: absolute; top: -9px; left: 14px; z-index: 2; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); background: var(--surface-solid); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); }
.ad__slot { display: grid; place-items: center; min-height: 92px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: repeating-linear-gradient(135deg, transparent, transparent 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.ad__slot--tower { min-height: 600px; }
.ad__slot--native { min-height: 120px; }
.ad__ph { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); text-align: center; padding: 0 12px; }
.ad--native { margin: 4px 0; }
.ad--mobile { display: none; }

.card {
  position: relative; padding: 26px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  animation: cardIn 0.55s var(--ease-out) both;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 40%), linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 30%); opacity: 0.6; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 46px -22px var(--glow); }
.card--hero { box-shadow: var(--shadow), 0 0 90px -34px var(--glow); }
.card--hero:hover { box-shadow: var(--shadow), 0 0 100px -30px var(--glow); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(0.992); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card__title { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; }
.card__title--lg { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.015em; }
.card__desc { margin-top: 6px; font-size: 13.5px; color: var(--text-dim); max-width: 62ch; }
.counter { font-size: 12px; color: var(--text-faint); font-family: var(--mono); white-space: nowrap; }

.card--checkin { padding: 30px; }

.flowbar { list-style: none; display: flex; gap: 8px; margin: 0 0 22px; counter-reset: flow; }
.flowbar__item { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--text-faint); counter-increment: flow; }
.flowbar__item::before { content: counter(flow); display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; font-family: var(--mono); font-size: 11px; background: var(--border); color: var(--text-dim); }
.flowbar__item.is-active { color: var(--text); border-color: var(--accent); box-shadow: 0 4px 18px var(--glow); }
.flowbar__item.is-active::before { background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #04101a; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
.field__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.field__out { font-family: var(--mono); color: var(--accent); text-transform: none; letter-spacing: 0; }

.input { width: 100%; font: inherit; color: var(--text); min-height: var(--tap); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.input--time { font-family: var(--mono); font-size: 17px; letter-spacing: 0.04em; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-2)); border: 4px solid var(--surface-solid); box-shadow: 0 4px 16px var(--glow), 0 0 0 0 var(--glow-soft); transition: transform 0.16s var(--ease-snap), box-shadow 0.24s var(--ease); }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 4px 18px var(--glow), 0 0 0 7px var(--glow-soft); }
.range:active::-webkit-slider-thumb { transform: scale(0.94); box-shadow: 0 2px 10px var(--glow), 0 0 0 9px var(--glow-soft); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--surface-solid); background: var(--accent); box-shadow: 0 4px 16px var(--glow); }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.range__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); font-family: var(--mono); }

.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg--sm { gap: 6px; }
.seg__btn {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  min-height: var(--tap); padding: 10px 6px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.24s var(--ease), transform 0.16s var(--ease-snap);
}
.seg__btn:hover { color: var(--text); transform: translateY(-1px); border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.seg__btn:active { transform: translateY(0) scale(0.95); transition-duration: 0.06s; }
.seg__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg__btn[aria-checked="true"] { color: var(--text); border-color: transparent; background: linear-gradient(140deg, rgba(95, 230, 255, 0.22), rgba(167, 139, 250, 0.22)); box-shadow: inset 0 0 0 1px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 20px var(--glow); }
.seg--sm .seg__btn { min-height: 38px; padding: 8px 4px; font-size: 12px; }

.switch-row { display: flex; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; min-height: var(--tap); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); transition: background 0.25s var(--ease), border-color 0.25s var(--ease); flex: none; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-faint); transition: transform 0.3s var(--ease-snap), background 0.25s var(--ease); }
.switch:active .switch__thumb { transform: scaleX(1.15); transform-origin: left center; }
.switch:active input:checked + .switch__track .switch__thumb { transform: translateX(20px) scaleX(1.15); transform-origin: right center; }
.switch input:checked + .switch__track { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); background: #04101a; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch__text { font-size: 14px; color: var(--text-dim); }
.form__note { font-size: 12px; color: var(--text-faint); text-align: center; }

.hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__ring { position: relative; flex: none; display: grid; place-items: center; }
.hero__ringtext { position: absolute; display: flex; flex-direction: column; align-items: center; }
.hero__value { font-family: var(--mono); font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.hero__unit { font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.hero__info { flex: 1 1 220px; min-width: 0; }
.hero__verdict { font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; letter-spacing: -0.01em; }
.hero__chrono { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.ring__bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring__fg { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 0 10px var(--glow)); }
.grad-a { stop-color: var(--accent); }
.grad-b { stop-color: var(--accent-2); }

.now { margin-top: 18px; }
.now__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.now__label { font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.now__value { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent); }
.now__bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.now__fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.9s var(--ease); }

.windows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.window { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); transition: transform 0.22s var(--ease-snap), border-color 0.24s var(--ease), box-shadow 0.3s var(--ease); }
.window:hover { transform: translateX(4px); border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.2); }
.window__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 11px; flex: none; }
.window--peak .window__icon { color: var(--accent-3); background: rgba(56, 242, 179, 0.12); }
.window--dip .window__icon { color: var(--danger); background: rgba(255, 107, 138, 0.12); }
.window--second .window__icon { color: var(--accent-2); background: rgba(167, 139, 250, 0.14); }
.window__body { display: flex; flex-direction: column; min-width: 0; }
.window__name { display: flex; align-items: center; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.window__time { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.window__sub { font-size: 12px; color: var(--text-dim); }

.marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mark { padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.mark__label { display: flex; align-items: center; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); }
.mark__value { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--warn); }

.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-faint); flex-wrap: wrap; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__item::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.legend__item--peak::before { background: rgba(56, 242, 179, 0.4); }
.legend__item--now::before { background: var(--warn); }

.chart { position: relative; width: 100%; }
#chart { display: block; width: 100%; height: 260px; touch-action: pan-y; }
.chart__grid line { stroke: var(--border); stroke-width: 1; }
.chart__grid text { fill: var(--text-faint); font-size: 11px; font-family: var(--mono); }
.chart__area { fill: url(#areaGrad); }
.area-a { stop-color: var(--accent); stop-opacity: 0.34; }
.area-b { stop-color: var(--accent); stop-opacity: 0; }
.chart__line { fill: none; stroke: url(#lineGrad); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 14px var(--glow)); }
.chart__peak { fill: rgba(56, 242, 179, 0.12); stroke: rgba(56, 242, 179, 0.32); stroke-width: 1; }
.chart__now { stroke: var(--warn); stroke-width: 1.6; stroke-dasharray: 5 5; }
.chart__hover { stroke: var(--border-strong); stroke-width: 1.4; opacity: 0; transition: opacity 0.18s var(--ease); }
.chart__dot { fill: var(--accent); stroke: var(--surface-solid); stroke-width: 2.5; opacity: 0; transition: opacity 0.18s var(--ease); }
.chart.is-hover .chart__hover, .chart.is-hover .chart__dot { opacity: 1; }
.chart__tip { position: absolute; transform: translate(-50%, -130%); pointer-events: none; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.chart__tiptime { font-size: 11px; color: var(--text-faint); font-family: var(--mono); }
.chart__tipval { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--accent); }

.tips { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tip { display: flex; gap: 13px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.tip__idx { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); flex: none; padding-top: 2px; }
.tip__text { font-size: 14px; color: var(--text-dim); }

.taskform { display: flex; gap: 10px; margin-bottom: 14px; }
.tasks { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); animation: rise 0.4s var(--ease-out) both; transition: border-color 0.22s var(--ease), box-shadow 0.26s var(--ease); }
.task:hover { border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.task__check { width: 26px; height: 26px; flex: none; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: transparent; display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease); }
.task__check:hover { border-color: var(--accent); }
.task__check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.task.is-done .task__check { background: linear-gradient(140deg, var(--accent), var(--accent-3)); border-color: transparent; color: #04101a; }
.task__text { flex: 1 1 auto; font-size: 14px; word-break: break-word; }
.task.is-done .task__text { color: var(--text-faint); text-decoration: line-through; }
.task__slot { font-family: var(--mono); font-size: 11px; color: var(--accent-2); padding: 3px 8px; border-radius: 99px; background: rgba(167, 139, 250, 0.12); flex: none; }
.task__del { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px; transition: color 0.2s; }
.task__del:hover { color: var(--danger); }
.task__del:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty { font-size: 13px; color: var(--text-faint); padding: 16px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); }

.timer { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.timer__ring { position: relative; display: grid; place-items: center; flex: none; }
.timer__ring .ring__fg { transition: stroke-dashoffset 0.9s linear; }
.timer__time { position: absolute; font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.timer__ctl { flex: 1 1 190px; display: flex; flex-direction: column; gap: 12px; }
.timer__buttons { display: flex; gap: 9px; }
.card--timer.is-running { border-color: var(--accent); box-shadow: 0 0 0 1px var(--glow), var(--shadow); }

.ritual { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ritual__text { font-size: 16px; font-weight: 600; flex: 1 1 300px; }
.card--ritual.is-done .ritual__text { color: var(--accent-3); }

.heatmap { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 7px; margin-bottom: 20px; }
.hm { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); transition: transform 0.18s var(--ease-snap), box-shadow 0.24s var(--ease); }
.hm:hover { transform: scale(1.18); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 12px var(--glow-soft); }
.hm--l1 { background: rgba(95, 230, 255, 0.16); }
.hm--l2 { background: rgba(95, 230, 255, 0.34); }
.hm--l3 { background: rgba(95, 230, 255, 0.58); }
.hm--l4 { background: linear-gradient(140deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 4px 14px var(--glow); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); text-align: center; }
.stat__value { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; }
.stat__label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }

.badges { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.badge { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); opacity: 0.44; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.badge.is-open { opacity: 1; border-color: var(--accent); box-shadow: 0 8px 26px var(--glow); }
.badge:hover { transform: translateY(-2px); }
.badge__icon { font-size: 19px; }
.badge__title { display: block; font-size: 13.5px; font-weight: 700; margin-top: 5px; }
.badge__desc { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.card--promo { padding: 20px; }
.card--promo .card__desc { margin: 8px 0 16px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; }
.plan--best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--glow), var(--shadow); }
.plan__flag { position: absolute; top: -11px; left: 24px; padding: 4px 12px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #041018; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.plan__name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.plan__price { font-family: var(--mono); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.plan__per { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.plan__item { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.plan__check { color: var(--accent-3); font-weight: 700; flex: none; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 13.5px; }
.ctable th, .ctable td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.ctable thead th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.ctable tbody th { font-weight: 600; color: var(--text-dim); }
.ctable tbody td { font-family: var(--mono); color: var(--text); }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: none; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; transition: border-color 0.25s var(--ease); }
.faq__item.is-open { border-color: var(--accent); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: var(--tap); padding: 15px 16px; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; color: var(--text); background: none; border: none; cursor: pointer; }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq__sign { font-family: var(--mono); font-size: 20px; color: var(--accent); transition: transform 0.28s var(--ease); flex: none; }
.faq__item.is-open .faq__sign { transform: rotate(45deg); }
.faq__a { padding: 0 16px 16px; font-size: 13.5px; color: var(--text-dim); animation: rise 0.32s var(--ease) both; }

.guarantee { text-align: center; font-size: 13px; color: var(--text-faint); padding: 8px 0 20px; }

.footer { border-top: 1px solid var(--border); padding: 26px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 12, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(440px, 100%); max-height: 88dvh; overflow: auto; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow); animation: modalIn 0.36s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.sharecanvas { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.modal__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1 1 140px; }

.modal__panel--auth { width: min(420px, 100%); }

.authtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.authtab { min-height: 40px; padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim); border: 1px solid transparent; background: transparent; cursor: pointer; transition: color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.14s var(--ease-snap); }
.authtab:hover { color: var(--text); }
.authtab:active { transform: scale(0.97); }
.authtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.authtab[aria-selected="true"] { color: var(--text); background: linear-gradient(140deg, rgba(95, 230, 255, 0.2), rgba(167, 139, 250, 0.2)); box-shadow: inset 0 0 0 1px var(--accent); }

.authform { display: flex; flex-direction: column; gap: 16px; }
.authform.is-busy { opacity: 0.65; pointer-events: none; }
.authform__hint { font-size: 13px; color: var(--text-dim); }
.authform__links { display: flex; justify-content: center; gap: 16px; }
.linkbtn { font: inherit; font-size: 13px; color: var(--accent); background: none; border: none; cursor: pointer; padding: 6px 4px; border-radius: 8px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }
.linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field__err { font-size: 12px; color: var(--danger); }
.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.16); }

.pwd { position: relative; display: flex; }
.pwd .input { padding-right: 50px; }
.pwd__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: none; background: transparent; color: var(--text-faint); cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.pwd__eye:hover { color: var(--accent); background: var(--surface-2); }
.pwd__eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwd__eye .pwd__off { display: none; }
.pwd__eye[aria-pressed="true"] .pwd__on { display: none; }
.pwd__eye[aria-pressed="true"] .pwd__off { display: block; }

.drawer { position: fixed; inset: 0; z-index: 84; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 12, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 100%);
  overflow-y: auto; padding: 22px calc(22px + env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 22px;
  border-left: 1px solid var(--border-strong); background: var(--surface-solid);
  box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform 0.42s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }

.prof { display: flex; flex-direction: column; gap: 16px; }
.prof__id { display: flex; align-items: center; gap: 14px; }
.prof__avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; font-size: 21px; font-weight: 700; color: #041018; background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px var(--glow); }
.prof__idtext { min-width: 0; }
.prof__email { font-size: 14.5px; font-weight: 600; word-break: break-all; }
.prof__since { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.prof__plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.prof__planlabel { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.prof__planvalue { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.prof__planvalue.is-pro { color: var(--accent); }
.prof__sync { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; min-height: 18px; }
.prof__sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.prof__sync--pending::before { background: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
.prof__sync--ok::before { background: var(--accent-3); }
.prof__sync--fail::before { background: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.prof__note { font-size: 12px; color: var(--text-faint); }
.prof__actions { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }

.tour { position: fixed; inset: 0; z-index: 88; }
.tour__spot { position: fixed; border-radius: 18px; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(2, 4, 10, 0.74), 0 0 40px var(--glow); transition: left 0.4s var(--ease), top 0.4s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease); pointer-events: none; }
.tour__card { position: fixed; width: min(370px, calc(100vw - 28px)); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow); transition: left 0.4s var(--ease), top 0.4s var(--ease); }
.tour__step { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tour__title { font-size: 18px; font-weight: 700; margin-top: 6px; }
.tour__text { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }
.tour__actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.tour__spacer { flex: 1 1 auto; }

.bootnotice {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 98;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: min(720px, calc(100vw - 28px)); padding: 15px 18px;
  border-radius: 15px; border: 1px solid var(--warn);
  background: var(--surface-solid); box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease-out) both;
}
.bootnotice__text { font-size: 13px; color: var(--text-dim); flex: 1 1 320px; }

.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 96; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { padding: 12px 17px; border-radius: 13px; font-size: 13.5px; border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow); animation: slide 0.4s var(--ease) both; max-width: min(340px, calc(100vw - 44px)); }
.toast--ok { border-color: var(--accent-3); }
.toast--warn { border-color: var(--warn); }
.toast.is-out { animation: slideOut 0.34s var(--ease) both; }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(28px); } }

.achstack { position: fixed; right: 22px; bottom: 22px; z-index: 97; display: flex; flex-direction: column-reverse; gap: 12px; align-items: flex-end; pointer-events: none; }
.achtoast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  width: min(360px, calc(100vw - 44px)); padding: 16px 18px;
  border-radius: 18px; border: 1px solid var(--accent);
  background: linear-gradient(140deg, rgba(95, 230, 255, 0.14), var(--surface-solid) 55%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glow);
  animation: achIn 0.62s var(--ease) both;
}
.achtoast.is-out { animation: achOut 0.44s var(--ease) both; }
.achtoast__glow { position: absolute; inset: -60% 60% -60% -20%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); transform: skewX(-18deg); animation: sheen 2.4s var(--ease) 0.4s 1; }
.achtoast__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; font-size: 20px; color: #041018; background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px var(--glow); }
.achtoast__body { display: flex; flex-direction: column; min-width: 0; }
.achtoast__label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.achtoast__title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.achtoast__desc { font-size: 12.5px; color: var(--text-faint); }
.achtoast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left center; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: drain 5.2s linear both; }
@keyframes riseUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sinkDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(26px); } }
@keyframes achIn { from { opacity: 0; transform: translateX(40px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes achOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(40px) scale(0.96); } }
@keyframes sheen { from { transform: translateX(-40%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: none; }
  .ad--mobile { display: block; }
}

@media (max-width: 1024px) {
  .appbar__inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .tab { flex: 1 1 0; gap: 7px; padding: 8px 12px; font-size: 13.5px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .glossary__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 900px) {
  .grid-hero, .grid-two { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .heatmap { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  #chart { height: 220px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
  .card { padding: 17px; border-radius: 18px; }
  .card--checkin { padding: 18px; }
  .chip__label { display: none; }
  .brand__sub { display: none; }
  .appbar__share { display: none; }
  .appbar__auth span { display: none; }
  .appbar__auth { width: var(--tap); padding: 0; justify-content: center; }
  .drawer__panel { width: 100%; border-left: none; }
  .modal__panel--auth { width: 100%; }
  .appbar__inner { padding-block: 14px 12px; row-gap: 12px; }
  .tabs { gap: 4px; padding: 4px; }
  .tab { gap: 6px; padding: 8px 7px; font-size: clamp(11px, 3.1vw, 13.5px); }
  .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 18px; justify-content: center; text-align: center; }
  .hero__info { text-align: left; }
  .hero__value { font-size: 38px; }
  .flowbar { flex-direction: column; }
  .heatmap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .marks { grid-template-columns: minmax(0, 1fr); }
  .taskform { flex-direction: column; }
  .task__check { width: 34px; height: 34px; }
  .task__del { font-size: 24px; padding: 6px 10px; }
  .timer { justify-content: center; }
  .hero-block { padding: 30px 0 24px; }
  #chart { height: 190px; }
  .toasts, .achstack { right: 12px; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; animation-name: riseUp; }
  .toast.is-out { animation-name: sinkDown; }
  .achtoast { width: 100%; animation-name: riseUp; }
  .achtoast.is-out { animation-name: sinkDown; }
  .tour__card { width: calc(100vw - 24px); }
}

@media (max-width: 440px) {
  .tab__ico { display: none; }
  .tab { padding: 9px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
