@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #0e110f;
  --surface-2: #121613;
  --line: rgba(235, 242, 237, 0.12);
  --line-bright: rgba(235, 242, 237, 0.25);
  --text: #f1f4f1;
  --muted: #8d958f;
  --dim: #5f6761;
  --green: #55e782;
  --green-2: #a0ffc2;
  --ink: #061009;
  --font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 7%, rgba(47, 126, 77, .11), transparent 32rem),
    radial-gradient(circle at 88% 66%, rgba(37, 89, 57, .055), transparent 42rem),
    var(--bg);
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

button, input, select, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, textarea { caret-color: var(--green); }
::selection { background: rgba(85, 231, 130, .28); color: var(--text); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.app-shell { width: min(1680px, calc(100% - 80px)); margin: 0 auto; }
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid var(--line);
  font: 700 .7rem/1 var(--mono);
  letter-spacing: .13em;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--text); text-decoration: none; }
.wordmark-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--text); font-size: .72rem; }
.topbar-nav { display: flex; align-items: center; gap: 13px; }
.topbar-nav a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.topbar-nav a:hover { color: var(--text); }
.topbar-nav i { width: 3px; height: 3px; border-radius: 50%; background: var(--green); }
.account-button { display: flex; align-items: center; justify-self: end; gap: 12px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: right; }
.account-button span { display: grid; gap: 5px; }
.account-button b { font: 700 .7rem var(--mono); letter-spacing: .1em; }
.account-button small { color: var(--green); font: 700 .58rem var(--mono); letter-spacing: .12em; }
.account-button > i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(85, 231, 130, .55); }

.kicker, .list-label { margin: 0 0 11px; color: var(--green); font: 700 .7rem/1 var(--mono); letter-spacing: .14em; }
.list-label { color: var(--muted); }
h1, h2, h3 { font-family: var(--font); }
.section-heading h1, .auth-brand h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
.command-heading h2, .horizon-heading h2, .missions-heading h2, .focus-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.04em;
}
.card-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.vn-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.record-section { scroll-margin-top: 20px; padding: clamp(48px, 6vh, 68px) 0 44px; border-bottom: 1px solid var(--line); }
.section-heading, .command-heading, .horizon-heading, .missions-heading, .focus-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.record-side { display: grid; justify-items: end; gap: 19px; }
.record-period { display: grid; justify-items: end; gap: 8px; }
.record-period strong { font-size: clamp(2rem, 2.6vw, 3rem); line-height: .8; letter-spacing: -.055em; }
.record-period span { color: var(--muted); font: 700 .64rem var(--mono); letter-spacing: .12em; }
.score-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 700 .58rem var(--mono); }
.score-legend i { display: block; width: 13px; height: 13px; border-radius: 2px; outline: 1px solid rgba(235, 242, 237, .05); }

.calendar-shell {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: 18px auto;
  gap: 12px 16px;
  margin: 42px 0 39px;
  padding: 2px;
}
.calendar-corner { align-self: end; color: var(--dim); font: 700 .58rem var(--mono); letter-spacing: .1em; }
.calendar-hint { display: none; }
.month-axis { display: grid; grid-template-columns: repeat(var(--week-columns, 53), minmax(0, 1fr)); gap: 4px; width: 100%; color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .08em; }
.month-axis span { white-space: nowrap; }
.weekday-axis { display: grid; grid-template-rows: repeat(7, 1fr); align-items: center; color: var(--dim); font: 700 .57rem var(--mono); }
.heatmap-wrap { min-width: 0; }
.heatmap {
  display: grid;
  grid-template-columns: repeat(var(--week-columns, 53), minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: 4px;
  width: 100%;
}
.heat-cell, .heat-spacer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
}
.heat-cell {
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(235, 242, 237, .07);
  outline: 1px solid rgba(235, 242, 237, .02);
  transition: transform .12s ease, outline-color .12s ease;
}
.heat-cell:hover { z-index: 2; transform: scale(1.2); outline-color: var(--text); }
.level-0 { background: rgba(235, 242, 237, .07) !important; }
.level-1 { background: #173b26 !important; }
.level-2 { background: #196c38 !important; }
.level-3 { background: #28aa5a !important; }
.level-4 { background: var(--green) !important; box-shadow: 0 0 7px rgba(85, 231, 130, .25); }
.heat-cell.selected { outline: 1px solid #fff; transform: scale(1.06); }
.heat-cell.future { background: rgba(235, 242, 237, .035) !important; cursor: default; }
.heat-cell.future:hover { transform: none; outline-color: rgba(235, 242, 237, .02); }

.record-footer {
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(250px, 1fr);
  align-items: end;
  gap: clamp(38px, 6vw, 105px);
  padding-top: 27px;
  border-top: 1px solid var(--line);
}
.stat { display: grid; gap: 10px; }
.stat > span, .year-remaining > span { color: var(--muted); font: 700 .63rem/1 var(--mono); letter-spacing: .1em; }
.stat strong { display: flex; align-items: baseline; gap: 5px; }
.stat b { font-size: 1.65rem; line-height: 1; letter-spacing: -.045em; }
.stat small { color: var(--muted); font: 700 .6rem var(--mono); }
.year-remaining { display: grid; justify-items: end; gap: 12px; }
.year-remaining b { color: var(--text); }
.year-progress { width: min(340px, 100%); height: 2px; background: rgba(255, 255, 255, .1); }
.year-progress div { width: 0; height: 100%; background: var(--green); transition: width .6s ease; }

.command-section, .horizon-section, .focus-section {
  scroll-margin-top: 20px;
  padding: clamp(66px, 8vh, 92px) 0;
  border-bottom: 1px solid var(--line);
}
#entryDate { max-width: 145px; padding: 0 0 9px; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; background: transparent; color: var(--muted); color-scheme: dark; font: 700 .72rem var(--mono); }
.proof-meter {
  --score: 0;
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 148px;
  margin: 38px 0 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(85, 231, 130, .065), rgba(255, 255, 255, .012) 46%);
}
.proof-meter::after { position: absolute; right: -64px; bottom: -116px; width: 250px; height: 250px; border: 1px solid rgba(85, 231, 130, .13); border-radius: 50%; content: ""; box-shadow: 0 0 0 32px rgba(85, 231, 130, .024), 0 0 0 64px rgba(85, 231, 130, .016); }
.proof-score { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-right: 1px solid var(--line); }
.proof-score > span { color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .12em; }
.proof-score > div { display: flex; align-items: baseline; }
.proof-score strong { font-size: 4.25rem; font-weight: 780; line-height: .75; letter-spacing: -.075em; }
.proof-score small { margin-left: 5px; color: var(--muted); font: 700 .6rem var(--mono); }
.proof-state { z-index: 1; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 24px 32px; }
.state-line { display: flex; align-items: center; gap: 9px; }
.state-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(85, 231, 130, .65); }
.state-line strong { color: var(--green); font: 700 .67rem var(--mono); letter-spacing: .12em; }
.proof-state p { margin: 13px 0 20px; color: #adb4af; font-size: .86rem; line-height: 1.5; }
.score-track { width: 100%; height: 2px; background: rgba(255, 255, 255, .09); }
.score-track i { display: block; width: calc(var(--score) * 1%); height: 100%; background: var(--green); box-shadow: 0 0 8px rgba(85, 231, 130, .5); transition: width .25s ease; }
.saved-score { margin-top: 10px; color: var(--muted); font: 700 .58rem var(--mono); letter-spacing: .1em; }
.saved-score b { color: var(--text); }

.daily-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.daily-card { min-width: 0; padding: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255, 255, 255, .014), transparent 62%); }
.card-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 91px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.card-heading > span { color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .1em; }
.habit-list, .todo-list { display: grid; }
.habit, .todo-item {
  position: relative;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease, padding .15s ease;
}
.habit { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; cursor: pointer; }
.habit:hover { padding: 0 10px; background: rgba(255, 255, 255, .022); }
.habit input, .todo-item input { position: absolute; opacity: 0; pointer-events: none; }
.habit-code { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .11em; }
.habit-text strong, .todo-copy strong { display: block; color: var(--text); font-size: .92rem; font-weight: 650; line-height: 1.35; }
.habit-text small, .todo-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.habit-points { margin-right: 40px; color: var(--muted); font: 700 .58rem var(--mono); }
.habit-points b { color: var(--text); font-size: .76rem; }
.custom-check, .todo-check {
  display: grid;
  position: absolute;
  right: 2px;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: transparent;
  font-size: .7rem;
  transition: all .15s ease;
}
.habit.checked, .todo-item.checked { padding: 0 10px; background: linear-gradient(90deg, rgba(85, 231, 130, .075), transparent 75%); }
.habit.checked .custom-check, .todo-item.checked .todo-check { right: 10px; border-color: var(--green); background: var(--green); color: var(--ink); }
.habit.checked .habit-text, .todo-item.checked .todo-copy { opacity: .48; }
.habit:has(input:focus-visible), .todo-item:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.todo-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 76px; padding-left: 2px; cursor: pointer; transition: background .15s ease, padding .15s ease; }
.todo-main:hover { padding-left: 10px; background: rgba(255, 255, 255, .022); }
.todo-copy { padding-right: 54px; }
.todo-empty { min-height: 154px; display: grid; place-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.5; }
.todo-remove { position: absolute; right: 42px; padding: 7px; border: 0; background: transparent; color: var(--dim); font: 700 .58rem var(--mono); opacity: 0; transition: opacity .15s ease, color .15s ease; }
.todo-item:hover .todo-remove, .todo-remove:focus-visible { opacity: 1; }
.todo-remove:hover { color: #ff9292; }
.todo-composer { margin-top: 20px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.composer-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-meta span { color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .1em; }
.composer-meta input { width: 132px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; background: transparent; color: var(--text); color-scheme: dark; font: 700 .65rem var(--mono); }
.composer-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 15px; }
.composer-input input { min-width: 0; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; background: transparent; color: var(--text); font-size: .9rem; }
.composer-input button { min-width: 84px; border: 1px solid var(--green); background: transparent; color: var(--green); font: 700 .65rem var(--mono); letter-spacing: .08em; }
.composer-input button:hover { background: var(--green); color: var(--ink); }
.healthy-composer { border-color: rgba(85, 231, 130, .2); background: rgba(85, 231, 130, .025); }
.healthy-item .todo-copy small { color: #718078; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; }

.save-button, .secondary-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 18px 22px;
  border: 0;
  background: var(--green);
  color: var(--ink);
  font: 800 .7rem var(--mono);
  letter-spacing: .1em;
  transition: background .15s ease, transform .15s ease;
}
.save-button:hover { background: var(--green-2); transform: translateY(-1px); }
.save-button:disabled, .secondary-save:disabled { opacity: .55; cursor: wait; }
.privacy-note { margin: 13px 0 0; color: var(--dim); text-align: center; font: .58rem var(--mono); letter-spacing: .09em; }

.horizon-heading > span, .missions-heading > span { color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .1em; }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.goal-card { display: grid; min-width: 0; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(85, 231, 130, .035), transparent 64%); }
.goal-card > span { color: var(--green); font: 700 .65rem var(--mono); letter-spacing: .12em; }
.goal-card > b { margin-top: 28px; font-size: 1.05rem; }
.goal-card > small { margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.goal-card textarea { width: 100%; min-height: 135px; margin-top: 22px; padding: 14px; resize: vertical; border: 1px solid var(--line); outline: 0; background: rgba(0, 0, 0, .16); color: var(--text); font-size: .86rem; line-height: 1.7; }
.goal-card textarea:focus { border-color: var(--green); }
.secondary-save { width: auto; margin-left: auto; border: 1px solid var(--green); background: transparent; color: var(--green); }
.secondary-save:hover { background: var(--green); color: var(--ink); }

.missions-section {
  position: relative;
  scroll-margin-top: 20px;
  margin-top: 28px;
  padding: 26px 28px 5px;
  overflow: hidden;
  border: 1px solid rgba(85, 231, 130, .28);
  border-left: 3px solid var(--green);
  background: linear-gradient(110deg, rgba(85, 231, 130, .09), rgba(255, 255, 255, .012) 48%, transparent);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.missions-section::after { position: absolute; top: -120px; right: -80px; width: 310px; height: 310px; border: 1px solid rgba(85, 231, 130, .1); border-radius: 50%; content: ""; box-shadow: 0 0 0 42px rgba(85, 231, 130, .018); pointer-events: none; }
.event-signal { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: var(--green); font: 700 .6rem var(--mono); letter-spacing: .13em; }
.event-signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(85, 231, 130, .8); animation: event-pulse 1.8s ease-in-out infinite; }
.missions-section .missions-heading { position: relative; z-index: 1; align-items: center; }
.missions-section .missions-heading h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
.mission-list { position: relative; z-index: 1; display: grid; margin-top: 21px; border-top: 1px solid rgba(235, 242, 237, .14); }
.mission-card { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 84px; border-bottom: 1px solid var(--line); }
.mission-date { color: var(--green); font: 700 .67rem var(--mono); letter-spacing: .08em; }
.mission-copy strong { display: block; font-size: .98rem; }
.mission-copy p { margin: 7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.mission-done { min-width: 110px; padding: 11px 13px; border: 1px solid var(--line-bright); background: transparent; color: var(--muted); font: 700 .61rem var(--mono); letter-spacing: .08em; }
.mission-done.completed { border-color: var(--green); background: var(--green); color: var(--ink); }
.owner-drawer { margin-top: 22px; border: 1px solid var(--line); }
.owner-drawer summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; color: var(--muted); font: 700 .65rem var(--mono); letter-spacing: .1em; cursor: pointer; list-style: none; }
.owner-drawer summary::-webkit-details-marker { display: none; }
.summary-plus { font-size: 1rem; transition: transform .2s ease; }
.owner-drawer[open] .summary-plus { transform: rotate(45deg); }
.mission-form { display: grid; grid-template-columns: 1fr 220px; gap: 14px; padding: 0 20px 20px; }
.mission-form label { display: grid; gap: 9px; }
.mission-form label > span { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .1em; }
.mission-form input, .mission-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); outline: 0; background: var(--surface); color: var(--text); }
.mission-form input:focus, .mission-form textarea:focus { border-color: var(--green); }
.mission-form textarea { resize: vertical; }
.wide-field { grid-column: 1 / -1; }
.mission-form button { grid-column: 1 / -1; padding: 15px; border: 1px solid var(--green); background: transparent; color: var(--green); font: 700 .65rem var(--mono); letter-spacing: .1em; }
.mission-form button:hover { background: var(--green); color: var(--ink); }
.account-mission-control { margin-top: 12px; }
.mission-manage-list { display: grid; padding: 0 20px 20px; }
.mission-manage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 58px; border-top: 1px solid var(--line); }
.mission-manage-row span { display: grid; gap: 5px; min-width: 0; }
.mission-manage-row strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.mission-manage-row small { color: var(--muted); font: .58rem var(--mono); letter-spacing: .08em; }
.mission-manage-row button { padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .56rem var(--mono); letter-spacing: .08em; }
.mission-manage-row button:hover { border-color: #ff9292; color: #ff9292; }
.mission-manage-empty { padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .72rem; }

@keyframes event-pulse { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

.focus-board { display: grid; grid-template-columns: 1fr; margin-top: 34px; border: 1px solid var(--line); background: #090c0a; }
.focus-count { display: grid; justify-items: end; gap: 5px; }
.focus-count strong { font-size: 1.85rem; line-height: 1; }
.focus-count span { color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .1em; }
.focus-board-bar { display: flex; min-height: 52px; padding: 0 22px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.focus-board-bar > span { color: var(--dim); font: 700 .6rem var(--mono); letter-spacing: .11em; }
.fullscreen-toggle { display: flex; align-items: center; gap: 13px; padding: 8px 0 8px 16px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .1em; }
.fullscreen-toggle b { color: var(--green); font-size: .85rem; }
.fullscreen-toggle:hover { color: var(--text); }
.timer-face { display: grid; width: 100%; min-height: clamp(280px, 32vw, 480px); padding: clamp(22px, 4vw, 56px); place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at center, rgba(85, 231, 130, .075), transparent 48%), linear-gradient(145deg, rgba(85, 231, 130, .03), transparent 62%); color: var(--text); font-size: clamp(6rem, 15vw, 15rem); font-weight: 760; line-height: .82; letter-spacing: -.085em; text-indent: -.085em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .18s ease; }
.timer-face.long-time { font-size: clamp(4.7rem, 12vw, 12rem); }
.timer-face.paused { color: #747874; }
.focus-controls { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.focus-controls label { display: grid; gap: 10px; }
.focus-controls label span { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .1em; }
.focus-controls input { width: 100%; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; background: transparent; color: var(--text); font-size: .9rem; }
.preset-row, .timer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.preset, .timer-actions button { padding: 10px 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .08em; }
.preset:hover, .preset.active { border-color: rgba(85, 231, 130, .5); color: var(--green); }
.timer-actions { margin-top: 11px; }
.timer-actions button:first-child { flex: 1; border-color: var(--green); background: var(--green); color: var(--ink); }
.timer-actions button:first-child:hover { background: var(--green-2); }
.timer-actions #focusFinish { border-color: rgba(85, 231, 130, .58); color: var(--green); }
.timer-actions #focusFinish:hover { background: rgba(85, 231, 130, .09); }

.focus-hint { margin: 16px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
body.focus-overlay-open { overflow: hidden; }
.focus-board.focus-expanded { position: fixed; inset: 0; z-index: 100; }
.focus-board:is(:fullscreen, .focus-expanded) { display: grid; width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 0; place-items: center; overflow: hidden; border: 0; background: #000; }
.focus-board:fullscreen::backdrop { background: #000; }
.focus-board:is(:fullscreen, .focus-expanded) .focus-board-bar, .focus-board:is(:fullscreen, .focus-expanded) .focus-controls { display: none; }
.focus-board:is(:fullscreen, .focus-expanded) .timer-face { width: 100%; height: 100%; min-height: 0; padding: 0 max(2vw, env(safe-area-inset-right)) 0 max(2vw, env(safe-area-inset-left)); border: 0; background: #000; color: #fff; cursor: pointer; font-size: min(20vw, 64vh, 22rem); font-size: min(20vw, 64dvh, 22rem); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.focus-board:is(:fullscreen, .focus-expanded) .timer-face.long-time { font-size: min(17vw, 58vh, 19rem); font-size: min(17vw, 58dvh, 19rem); }
.focus-board:is(:fullscreen, .focus-expanded) .timer-face.paused { color: #747474; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; }
.site-footer p { margin: 0; color: var(--muted); font: .64rem var(--mono); letter-spacing: .08em; }
.site-footer button { padding: 0; border: 0; background: transparent; color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .08em; }
.site-footer button:hover { color: var(--text); }

.auth-screen { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 100vh; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 120px); border-right: 1px solid var(--line); background: radial-gradient(circle at 20% 35%, rgba(85, 231, 130, .09), transparent 30rem); }
.auth-mark { display: grid; width: 48px; height: 48px; margin-bottom: 48px; place-items: center; border: 1px solid var(--text); font: 800 1rem var(--mono); }
.auth-brand h1 { font-size: clamp(2.8rem, 5vw, 5.6rem); }
.auth-brand .vn-subtitle { max-width: 560px; font-size: 1rem; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(480px, calc(100% - 64px)); margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 16px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 700 .68rem var(--mono); letter-spacing: .1em; }
.auth-tabs button.active { border-bottom-color: var(--green); color: var(--text); }
.auth-form { display: grid; gap: 18px; }
.auth-heading { margin-bottom: 12px; }
.auth-heading h2 { margin: 0; font-size: clamp(1.8rem, 2.6vw, 2.7rem); letter-spacing: -.04em; }
.auth-heading p { margin: 10px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.auth-form label { display: grid; gap: 9px; }
.auth-form label > span { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .1em; }
.auth-form input { width: 100%; padding: 14px 13px; border: 1px solid var(--line); outline: 0; background: var(--surface); color: var(--text); }
.auth-form input:focus { border-color: var(--green); }
.auth-submit { display: flex; justify-content: space-between; margin-top: 4px; padding: 16px 18px; border: 0; background: var(--green); color: var(--ink); font: 800 .68rem var(--mono); letter-spacing: .1em; }
.form-error { min-height: 18px; margin: -4px 0; color: #ff9d9d; font-size: .75rem; }
.first-owner-note { margin: 0; color: var(--dim); text-align: center; font-size: .7rem; }

.account-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 28px; overflow: auto; border: 1px solid var(--line-bright); background: #0c0f0d; color: var(--text); box-shadow: 0 24px 90px rgba(0, 0, 0, .62); }
.account-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; font-size: 1.9rem; }
.dialog-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.dialog-heading button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; }
.role-card { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding: 18px; border: 1px solid var(--line); }
.role-card span { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .1em; }
.role-card strong { color: var(--green); font: 700 .68rem var(--mono); letter-spacing: .1em; }
.guide-open-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 12px; padding: 14px 18px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 700 .66rem var(--mono); letter-spacing: .1em; }
.guide-open-button span:last-child { color: var(--green); }
.guide-open-button:hover { border-color: var(--green); }
.user-admin { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.user-admin-heading h3 { margin: 0; font-size: 1rem; }
.user-admin-heading p { margin: 7px 0 18px; color: var(--muted); font-size: .76rem; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 14px; min-height: 58px; border-top: 1px solid var(--line); }
.user-row strong { display: block; font-size: .82rem; }
.user-row small { color: var(--muted); font-size: .67rem; }
.user-row select { padding: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .72rem; }
.logout-button { width: 100%; margin-top: 30px; padding: 14px; border: 1px solid var(--line-bright); background: transparent; color: var(--muted); font: 700 .66rem var(--mono); letter-spacing: .1em; }
.logout-button:hover { border-color: #ff8f8f; color: #ff9d9d; }

.onboarding-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 1px solid var(--line-bright); background: #090c0a; color: var(--text); box-shadow: 0 28px 110px rgba(0, 0, 0, .72); }
.onboarding-dialog::backdrop { background: rgba(2, 4, 3, .88); backdrop-filter: blur(8px); }
.onboarding-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: min(680px, calc(100vh - 34px)); }
.guide-sidebar { display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-right: 1px solid var(--line); background: radial-gradient(circle at 15% 20%, rgba(85, 231, 130, .11), transparent 20rem); }
.guide-brand { display: flex; align-items: center; gap: 13px; font: 800 .68rem var(--mono); letter-spacing: .1em; }
.guide-brand > span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--text); }
.guide-position p, .guide-motto { margin: 0; color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .12em; }
.guide-position > strong { display: block; margin-top: 12px; font: 760 2.05rem var(--body); letter-spacing: -.045em; }
.guide-progress { height: 2px; margin-top: 20px; overflow: hidden; background: var(--line); }
.guide-progress i { display: block; width: 25%; height: 100%; background: var(--green); transition: width .25s ease; }
.guide-motto { max-width: 150px; line-height: 1.7; }
.guide-content { display: grid; min-width: 0; padding: 32px clamp(28px, 5vw, 66px); grid-template-rows: auto minmax(0, 1fr) auto; }
.guide-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.guide-topbar > span { color: var(--muted); font: 700 .62rem var(--mono); letter-spacing: .12em; }
.guide-topbar button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.25rem; }
.guide-topbar button:hover { border-color: var(--text); color: var(--text); }
.guide-slides { display: grid; align-items: center; min-width: 0; padding: 34px 0; }
.guide-step { animation: guide-in .24s ease both; }
.guide-step h2 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 4.6vw, 4.7rem); line-height: .94; letter-spacing: -.062em; }
.guide-lead { max-width: 730px; margin: 22px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.guide-principle { display: grid; gap: 12px; margin-top: 36px; padding: 24px; border: 1px solid rgba(85, 231, 130, .26); background: rgba(85, 231, 130, .035); }
.guide-principle span, .guide-role-note > span { color: var(--green); font: 700 .62rem var(--mono); letter-spacing: .12em; }
.guide-principle strong { font-size: 1rem; font-weight: 600; }
.guide-mini-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; margin-top: 26px; }
.guide-mini-grid i { aspect-ratio: 1; background: rgba(235, 242, 237, .06); }
.guide-mini-grid i:nth-child(6), .guide-mini-grid i:nth-child(7) { background: #1d5a34; }
.guide-mini-grid i:nth-child(8), .guide-mini-grid i:nth-child(9) { background: #328f52; }
.guide-mini-grid i:last-child { background: var(--green); box-shadow: 0 0 12px rgba(85, 231, 130, .28); }
.guide-list { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.guide-list > div { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 20px; min-height: 86px; border-bottom: 1px solid var(--line); }
.guide-list b { color: var(--green); font-size: 1.55rem; letter-spacing: -.04em; }
.guide-list strong, .guide-list small { display: block; }
.guide-list strong { font: 750 .72rem var(--mono); letter-spacing: .09em; }
.guide-list small { margin-top: 6px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.guide-heatmap { display: grid; grid-template-columns: repeat(5, minmax(42px, 1fr)); gap: 10px; max-width: 460px; margin-top: 34px; }
.guide-heatmap span { aspect-ratio: 1; }
.guide-horizons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.guide-horizons div { display: flex; align-items: baseline; justify-content: space-between; min-height: 76px; padding: 17px; border: 1px solid var(--line); }
.guide-horizons strong { font-size: 1.75rem; }
.guide-horizons span { color: var(--muted); font: 700 .6rem var(--mono); letter-spacing: .1em; }
.guide-note { margin: 18px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.guide-focus-demo { display: flex; width: min(100%, 540px); align-items: center; justify-content: space-between; gap: 22px; margin-top: 32px; padding: 18px 22px; border: 1px solid var(--line); background: radial-gradient(circle at 20% 50%, rgba(85, 231, 130, .075), transparent 65%); }
.guide-focus-demo span { color: var(--text); font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 760; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-focus-demo i { width: clamp(70px, 16vw, 180px); height: 2px; background: var(--green); box-shadow: 0 0 12px rgba(85, 231, 130, .28); }
.guide-role-note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px 18px; margin-top: 20px; padding: 18px 20px; border-left: 2px solid var(--green); background: rgba(255, 255, 255, .018); }
.guide-role-note strong { font: 750 .7rem var(--mono); letter-spacing: .1em; }
.guide-role-note p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.guide-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.guide-actions > button, .guide-actions > div button { min-width: 94px; min-height: 44px; padding: 13px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .09em; }
.guide-actions > div { display: flex; gap: 9px; }
.guide-actions #guideNext { min-width: 142px; border-color: var(--green); background: var(--green); color: var(--ink); }
.guide-actions #guideNext span { margin-left: 22px; }
.guide-actions button:hover { border-color: var(--text); color: var(--text); }
.guide-actions #guideNext:hover { border-color: var(--green-2); background: var(--green-2); color: var(--ink); }

@keyframes guide-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

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

@media (hover: none), (pointer: coarse) {
  .todo-remove { opacity: 1; }
}

.toast { position: fixed; right: 28px; bottom: 28px; z-index: 50; max-width: min(380px, calc(100% - 40px)); padding: 12px 15px; border: 1px solid var(--line-bright); background: #151a16; color: var(--text); font-size: .78rem; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; height: auto; padding-top: 8px; }
  .topbar-nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 8px; min-width: 0; overflow-x: auto; }
  .topbar-nav a { display: grid; min-height: 44px; padding: 0 6px; align-items: center; font-size: .75rem; letter-spacing: .03em; white-space: nowrap; }
  .topbar-nav i { display: none; }
  .account-button { min-height: 44px; }
  .daily-columns { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr; }
  .record-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .year-remaining { grid-column: 1 / -1; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { min-height: 0; padding: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-mark { width: 32px; height: 32px; margin-bottom: 16px; }
  .auth-panel { padding: 32px 0; }
  .onboarding-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .guide-sidebar { padding: 24px; }
  .guide-actions { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .app-shell { width: auto; margin-left: max(16px, env(safe-area-inset-left)); margin-right: max(16px, env(safe-area-inset-right)); }
  .topbar { position: sticky; top: 0; z-index: 20; padding-top: max(8px, env(safe-area-inset-top)); background: var(--bg); }
  .topbar-nav { margin-top: 4px; border-top: 1px solid var(--line); }
  .topbar-nav a { padding: 0 4px; font-size: .7rem; }
  .account-button b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  button:not(.heat-cell), select, summary { min-height: 44px; }
  input:not([type="checkbox"]), textarea, select, #entryDate { min-width: 0; max-width: 100%; font-size: 16px; }
  input:not([type="checkbox"]) { min-height: 44px; }
  .record-section, .command-section, .horizon-section, .focus-section, .missions-section { scroll-margin-top: calc(116px + env(safe-area-inset-top)); padding-top: 36px; padding-bottom: 36px; }
  .section-heading, .command-heading, .horizon-heading, .missions-heading, .focus-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .section-heading h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.08; }
  .command-heading h2, .horizon-heading h2, .missions-heading h2, .focus-heading h2 { font-size: clamp(1.65rem, 6.5vw, 2.4rem); line-height: 1.1; }
  .vn-subtitle { font-size: .875rem; }
  .record-side { width: 100%; grid-template-columns: 1fr auto; align-items: end; justify-items: start; }
  .record-period { justify-items: start; }
  .record-period strong { font-size: 2rem; }
  .score-legend { justify-self: end; }
  .calendar-shell { grid-template-columns: 26px calc(var(--week-columns, 53) * 28px - 4px); gap: 10px 10px; margin: 28px 0 0; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 12px; scrollbar-color: var(--line-bright) transparent; }
  .calendar-corner, .weekday-axis { position: sticky; left: 0; z-index: 3; background: var(--bg); box-shadow: 6px 0 0 var(--bg); }
  .month-axis, .weekday-axis { font-size: .7rem; }
  .calendar-hint { display: block; margin: 8px 0 22px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
  .record-footer { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
  .stat > span { min-height: 28px; font-size: .7rem; line-height: 1.35; letter-spacing: .02em; }
  .year-remaining { grid-column: 1 / -1; justify-items: start; }
  .year-progress { width: 100%; }
  #entryDate { max-width: 100%; width: 100%; padding: 10px 0; text-align: left; }
  .proof-meter { grid-template-columns: 104px minmax(0, 1fr); margin: 24px 0; }
  .proof-score { padding: 16px 12px; }
  .proof-score strong { font-size: 3rem; }
  .proof-state { padding: 16px; }
  .proof-state p { font-size: .8rem; }
  .state-line strong { letter-spacing: .03em; }
  .daily-card { padding: 16px; }
  .card-heading { min-height: 0; align-items: flex-start; gap: 12px; padding-bottom: 20px; }
  .card-heading > div { min-width: 0; }
  .card-heading > span { flex-shrink: 0; padding-top: 2px; }
  .card-heading h3 { font-size: 1.3rem; line-height: 1.1; }
  .habit { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 6px; padding: 12px 0; }
  .habit:hover, .habit.checked { padding: 12px 0; }
  .habit-text strong, .todo-copy strong, .mission-copy { overflow-wrap: anywhere; }
  .habit-text small, .todo-copy small { font-size: .78rem; }
  .habit-points { margin-right: 42px; }
  .custom-check, .todo-check { width: 32px; height: 32px; right: 2px; }
  .habit.checked .custom-check, .todo-item.checked .todo-check { right: 2px; }
  .todo-item.checked { padding: 0; }
  .todo-main, .todo-main:hover { padding: 14px 0; }
  .todo-copy { padding-right: 88px; }
  .todo-remove { top: 50%; right: 38px; width: 44px; transform: translateY(-50%); padding: 0; opacity: 1; font-size: 0; color: var(--muted); }
  .todo-remove::after { content: "×"; font: 400 1.25rem var(--font); }
  .todo-composer { padding: 14px; }
  .composer-meta { flex-wrap: wrap; }
  .composer-meta span { font-size: .65rem; line-height: 1.5; }
  .composer-meta input { width: 100%; }
  .composer-input { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
  .composer-input button { min-width: 0; }
  .goal-card { padding: 20px; }
  .mission-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .mission-date { grid-column: 1 / -1; }
  .mission-form { grid-template-columns: 1fr; }
  .mission-form .wide-field, .mission-form button { grid-column: 1; }
  .focus-count { display: flex; align-items: baseline; gap: 10px; }
  .focus-count strong { font-size: 1.4rem; }
  .focus-board { margin-top: 24px; }
  .timer-face { min-height: 172px; padding: 16px 8px; font-size: clamp(3.4rem, 17vw, 7rem); }
  .timer-face.long-time { font-size: clamp(2.8rem, 14vw, 5rem); }
  .focus-board-bar { padding: 0 12px; gap: 8px; }
  .focus-board-bar > span { font-size: .55rem; letter-spacing: 0; }
  .fullscreen-toggle { padding-left: 10px; gap: 8px; }
  .focus-controls { padding: 16px; }
  .preset-row, .timer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preset, .timer-actions button { font-size: .7rem; padding: 12px 6px; }
  .timer-actions button:first-child, #focusFinish[hidden] + #focusReset { grid-column: 1 / -1; }
  .auth-screen { min-height: 100dvh; align-content: start; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .auth-brand { display: grid; grid-template-columns: 32px 1fr; gap: 10px 14px; padding: 24px 20px; }
  .auth-brand h1 { font-size: 1.9rem; align-self: center; }
  .auth-brand .kicker { display: none; }
  .auth-brand .vn-subtitle { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
  .auth-mark { margin: 0; }
  .auth-panel { width: min(100% - 40px, 480px); padding: 20px 0 32px; }
  .auth-tabs { margin-bottom: 24px; }
  .auth-heading { margin-bottom: 0; }
  .auth-heading h2 { font-size: 1.7rem; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0 max(20px, env(safe-area-inset-bottom)); }
  .account-dialog { max-height: calc(100dvh - 32px); padding: 18px; }
  .dialog-heading > div { min-width: 0; overflow-wrap: anywhere; }
  .dialog-heading button { flex-shrink: 0; width: 44px; }
  .user-row { grid-template-columns: minmax(0, 1fr); padding: 14px 0; gap: 10px; overflow-wrap: anywhere; }
  .user-row select { font-size: 16px; }
  .onboarding-dialog { width: min(100% - 18px, 680px); max-height: calc(100dvh - 18px); }
  .onboarding-shell { grid-template-columns: 1fr; min-height: 0; }
  .guide-sidebar { min-height: 72px; padding: 16px; gap: 12px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-brand { gap: 8px; font-size: .6rem; }
  .guide-brand > span { width: 28px; height: 28px; }
  .guide-position { display: grid; gap: 4px; }
  .guide-position p { display: none; }
  .guide-position > strong { margin: 0; font-size: 1rem; }
  .guide-progress { width: 70px; margin-top: 5px; }
  .guide-motto { display: none; }
  .guide-content { padding: 16px; }
  .guide-topbar { padding-bottom: 12px; }
  .guide-slides { padding: 24px 0; }
  .guide-step h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.05; }
  .guide-lead { margin-top: 17px; font-size: .92rem; }
  .guide-list > div { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .guide-principle { padding: 18px; margin-top: 24px; }
  .guide-horizons div { align-items: flex-start; flex-direction: column; }
  .guide-focus-demo { gap: 14px; padding: 16px; }
  .guide-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .guide-actions > button { order: 2; min-width: 0; }
  .guide-actions > div { display: flex; }
  .guide-actions > div button, .guide-actions #guideNext { flex: 1; min-width: 0; }
  .toast { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
}
