:root {
  --paper: #f3edc9;
  --surface: #fbf6df;
  --ink: #394233;
  --muted: #7d7a61;
  --line: #56634a;
  --red: #b57965;
  --red-dark: #93604f;
  --green: #6f8b5d;
  --green-soft: #dce7bd;
  --amber: #c6a66d;
  --amber-soft: #efe2af;
  --blue: #8db8b8;
  --purple: #9a8eae;
  --shadow: 4px 6px 0 rgba(86, 99, 74, .14);
  --pixel-border: 2px solid #56634a;
  font-family: "Comic Sans MS", "Kaiti SC", "STKaiti", "PingFang SC", "Microsoft YaHei", cursive;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.38), transparent 24%),
    radial-gradient(circle at 82% 3%, rgba(126,158,132,.16), transparent 20%),
    linear-gradient(180deg, #f3edc9, #e8e0b8);
  background-size: auto;
}
button, input, select { font: inherit; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 30px; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(220, 74, 61, .2); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 244px; padding: 30px 22px 24px;
  background: #6f7f52; color: #fff8dc; display: flex; flex-direction: column; z-index: 20; border-right: 3px solid #56634a;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: #fff7df; border: 2px solid #56634a; box-shadow: 3px 4px 0 rgba(57,66,51,.16); font: 700 22px "Kaiti SC", cursive; border-radius: 44% 50% 46% 52%; }
.brand-mark.salt-logo {
  background: #fff7df url("assets/kaoyan-brand-clean-v23.png") center / 130% auto no-repeat;
}
.brand-mark.salt-logo span { display: none; }
.salt-logo span { width: 23px; height: 28px; background: #fff7df; border: 2px solid #56634a; border-radius: 52% 48% 54% 46%; position: relative; display: block; }
.salt-logo span::before { content: ""; position: absolute; left: -3px; right: -3px; top: 4px; height: 8px; background: #8fa66d; border: 2px solid #56634a; border-radius: 8px; }
.salt-logo span::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-bottom: 2px solid #56634a; }
.brand strong, .brand small, .profile-chip strong, .profile-chip small { display: block; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 2px; color: #9fa49c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.main-nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-item {
  border: 0; background: transparent; color: #afb3ac; min-height: 46px; padding: 0 14px;
  display: flex; align-items: center; gap: 13px; cursor: pointer; border-left: 3px solid transparent;
}
.nav-item svg { width: 19px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-item.active { background: #efe2af; color: #394233; border-left-color: #b57965; box-shadow: 3px 3px 0 rgba(57,66,51,.16); }
.sidebar-card { margin-top: auto; padding: 16px 12px; border: 2px solid #56634a; background: #82925f; display: flex; gap: 12px; align-items: center; box-shadow: 4px 4px 0 rgba(57,66,51,.14); }
.sidebar-card strong { font-size: 13px; }
.sidebar-card p { margin: 5px 0 0; color: #969b94; font-size: 11px; line-height: 1.5; }
.mini-ring, .goal-ring {
  --value: 68%; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--red) var(--value), #454941 0);
  display: grid; place-items: center; position: relative;
}
.mini-ring { width: 48px; height: 48px; }
.mini-ring::after, .goal-ring::after { content: ""; position: absolute; border-radius: 50%; background: #20231f; }
.mini-ring::after { inset: 5px; }
.mini-ring span { position: relative; z-index: 1; font-size: 10px; }
.profile-chip { margin-top: 14px; padding: 12px 8px; border: 0; background: transparent; color: #fff; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 48% 52% 46% 54%; background: #fff7df; color: #6f7f52; display: grid; place-items: center; font-weight: 700; border: 2px solid rgba(86,99,74,.5); }
.profile-chip strong { font-size: 12px; }.profile-chip small { color: #8f958c; margin-top: 3px; font-size: 10px; }.profile-chip svg { width: 16px; color: #757b73; }
.main-content { margin-left: 244px; min-height: 100vh; padding: 0 42px 60px; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow, .kicker { margin: 0; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar h1 { margin: 7px 0 0; font-family: "Kaiti SC", "STKaiti", "PingFang SC", cursive; font-size: clamp(24px, 3vw, 34px); letter-spacing: 0; text-shadow: 2px 2px 0 rgba(255,255,255,.55); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.install-button {
  min-height: 42px; padding: 0 14px; border: var(--pixel-border); background: #dff3c3; color: #254d3b;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(52,40,31,.16);
}
.install-button[hidden] { display: none; }
.install-button svg { width: 16px; }
.icon-button { width: 42px; height: 42px; border: var(--pixel-border); background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: 3px 3px 0 rgba(52,40,31,.18); }
.icon-button svg { width: 18px; }.icon-button.subtle { width: 34px; height: 34px; border: 0; background: #f1f2ec; }
.primary-button, .secondary-button, .text-button {
  border: 0; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700;
}
.primary-button { min-height: 46px; padding: 0 20px; background: var(--red); color: white; border: 2px solid #56634a; box-shadow: 4px 4px 0 rgba(57,66,51,.16); border-radius: 16px 12px 15px 10px; }
.primary-button:hover { background: var(--red-dark); }
.primary-button.compact { min-height: 42px; }.primary-button.full { width: 100%; }
.primary-button svg, .secondary-button svg, .text-button svg { width: 16px; }
.secondary-button { min-height: 38px; padding: 0 14px; border: var(--pixel-border); background: var(--surface); box-shadow: 3px 3px 0 rgba(52,40,31,.16); }
.text-button { min-height: 34px; padding: 0; background: transparent; color: var(--red); font-size: 12px; }
.view { display: none; animation: fade .22s ease; }.view.active { display: block; }
@keyframes fade { from { opacity: .2; transform: translateY(5px); } }
.pwa-card {
  margin-bottom: 16px; padding: 16px; border: var(--pixel-border); background: #dff3c3;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  box-shadow: var(--shadow);
}
.pwa-card[hidden] { display: none; }
.pwa-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--green); color: white; font: 800 25px "Songti SC", serif; }
.pwa-card h2 { margin: 4px 0 4px; font-size: 15px; }
.pwa-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pwa-actions { display: flex; align-items: center; gap: 8px; }
.widget-board { display: grid; grid-template-columns: 1.35fr 1fr .72fr; grid-auto-rows: minmax(142px, auto); gap: 14px; }
.today-board { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.35fr) minmax(260px, .8fr); align-items: stretch; }
.compact-voyage-board { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
.home-widget {
  min-width: 0; padding: 18px; border: var(--pixel-border); background: #fff8dc;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
  border-radius: 18px 14px 20px 13px;
}
.widget-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.widget-topline svg { width: 18px; color: currentColor; }
.countdown-widget { grid-row: span 2; background: transparent; color: var(--ink); border-color: transparent; box-shadow: none; }
.today-board .countdown-widget { grid-row: span 1; }
.boss-relic-widget {
  min-height: 104px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: start;
  color: var(--ink);
  position: relative;
  border: 0;
  border-radius: 0;
}
.boss-relic-widget::before { content: none; }
.boss-relic-widget p { color: var(--ink); text-shadow: none; }
.boss-relic-art { width: 72px; margin: 0; filter: drop-shadow(3px 4px 0 rgba(57,66,51,.14)); }
.boss-relic-art svg { width: 100%; display: block; overflow: visible; }
.relic-cloud { fill: rgba(255,248,220,.22); stroke: rgba(255,248,220,.58); stroke-width: 4; stroke-linejoin: round; }
.relic-tower { fill: #f9efd0; stroke: #56634a; stroke-width: 5; stroke-linejoin: round; }
.relic-roof { fill: #a96d5b; stroke: #56634a; stroke-width: 5; stroke-linejoin: round; }
.relic-door { fill: #6f7f52; stroke: #56634a; stroke-width: 4; stroke-linejoin: round; }
.relic-light { fill: none; stroke: #fff8dc; stroke-width: 5; stroke-linecap: round; }
.relic-gem { fill: #9fc7bd; stroke: #56634a; stroke-width: 4; }
.voyage-log-widget { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; background: #dce7bd; min-height: 0; padding: 14px 16px; }
.voyage-log-widget .boss-relic-art { width: 86px; }
.voyage-log-main { min-width: 0; }
.voyage-log-widget .widget-topline { margin-bottom: 4px; color: var(--ink); }
.countdown-sentence { margin: 0 0 8px; font-size: clamp(14px, 1.8vw, 18px); font-weight: 900; line-height: 1.3; color: var(--ink); }
.countdown-sentence b { color: var(--red); font: 900 clamp(22px, 3vw, 32px)/1 "Courier New", monospace; }
.voyage-total-report { margin: 9px 0 0; padding-top: 8px; border-top: 1px dashed rgba(86,99,74,.42); color: var(--muted); font-size: 10px; line-height: 1.7; font-weight: 800; }
.today-widget { grid-row: span 2; background: #fff8dc; }
.today-board .today-widget { grid-row: span 1; min-height: 250px; }
.today-widget ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.today-widget li { min-height: 44px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; font-size: 12px; }
.today-widget li.empty-add-task { min-height: 178px; display: block; }
.today-widget li.empty-add-task button { width: 100%; height: 100%; min-height: 178px; border: 3px dashed var(--line); background: #fff3bd; color: var(--ink); display: grid; place-items: center; align-content: center; gap: 12px; cursor: pointer; box-shadow: inset 0 0 0 3px rgba(255,255,255,.3); }
.today-widget li.empty-add-task span { width: 56px; height: 56px; border: 3px solid var(--line); background: var(--red); color: white; font-size: 30px; font-weight: 800; box-shadow: 4px 4px 0 rgba(52,40,31,.2); }
.today-widget li.empty-add-task strong { font-size: 17px; }
.today-widget li.empty-add-task small { font-size: 11px; }
.today-widget li span { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line); color: var(--green); background: white; }
.today-widget li.done { color: var(--muted); text-decoration: line-through; }
.today-widget li.done span { background: var(--green); border-color: var(--green); color: white; }
.today-widget li strong, .today-widget li small { display: block; }
.today-widget li small { margin-top: 4px; color: var(--muted); font-size: 9px; text-decoration: none; }
.today-summary-widget { background: #dce7bd; min-height: 170px; }
.today-summary-grid { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(92px, .8fr) minmax(150px, 1.25fr); gap: 8px; align-items: stretch; }
.today-summary-grid div { padding: 8px 10px; background: rgba(255,248,220,.72); border: 2px solid rgba(86,99,74,.72); box-shadow: none; }
.today-summary-grid span, .today-summary-grid strong { display: block; }
.today-summary-grid span { color: var(--muted); font-size: 10px; font-weight: 800; }
.today-summary-grid strong { margin-top: 3px; font-size: 18px; }
.summary-track { height: 9px; background: rgba(90,61,43,.18); border: 2px solid var(--line); margin-top: 8px; }
.summary-track span { display: block; width: var(--value, 0%); height: 100%; background: var(--green); }
.voyage-goal-control { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: end; }
.voyage-goal-control span { grid-column: 1 / -1; }
.voyage-goal-control label { display: flex; align-items: center; gap: 4px; min-width: 0; }
.voyage-goal-control input { width: 68px; min-height: 28px; border: 2px solid var(--line); background: #fff8dc; padding: 0 6px; color: var(--ink); font: 800 13px "Courier New", monospace; }
.voyage-goal-control b { color: var(--muted); font-size: 11px; }
.voyage-goal-control .text-button { align-self: end; min-height: 28px; padding: 0 4px; font-size: 10px; }
.mini-widget { min-height: 142px; cursor: pointer; }
.mini-widget strong { margin-top: 18px; font-size: 28px; }
.mini-widget p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.widget-ring { --value: 50%; width: 68px; height: 68px; margin-top: 13px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) var(--value), rgba(157,102,36,.15) 0); position: relative; }
.widget-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fbf0df; }
.widget-ring span { position: relative; z-index: 1; font-weight: 800; font-size: 13px; color: var(--ink); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, .72fr) minmax(180px, .72fr); gap: 16px; }
.countdown-panel, .metric-panel, .section-block { background: var(--surface); border: var(--pixel-border); box-shadow: var(--shadow); }
.countdown-panel { padding: 24px 26px; background: #dff3c3; }
.panel-label { color: var(--green); font-size: 11px; font-weight: 700; }
.countdown-panel h2 { margin: 10px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.countdown-panel h2 strong { color: var(--red); font-size: 32px; }
.countdown-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.countdown-track { height: 8px; margin-top: 22px; background: rgba(90,61,43,.2); border: 2px solid var(--line); }.countdown-track span { display: block; height: 100%; background: var(--green); }
.countdown-meta { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-panel { padding: 22px 20px; display: flex; gap: 15px; align-items: center; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; }.metric-icon svg { width: 19px; }
.metric-icon.green { background: var(--green-soft); color: var(--green); }.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-panel span, .metric-panel small, .metric-panel strong { display: block; }
.metric-panel span { color: var(--muted); font-size: 11px; }.metric-panel strong { margin: 3px 0 2px; font-size: 22px; }.metric-panel small { color: var(--muted); font-size: 10px; }
.content-columns { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.section-block { padding: 24px; border-radius: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading h2, .section-block > h2, .insights-header h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: 0; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.task-date-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.task-date-actions .icon-button { width: 34px; height: 34px; }
.task-date-actions .text-button { min-height: 34px; padding-inline: 8px; }
.subject-tabs { margin: 22px 0 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.subject-tabs button { border: 2px solid var(--line); background: #fff3bd; padding: 7px 13px; color: var(--muted); font-size: 11px; cursor: pointer; box-shadow: 2px 2px 0 rgba(52,40,31,.13); }
.subject-tabs button.active { background: #254d3b; border-color: var(--line); color: white; }
.task-list { display: grid; gap: 10px; }
.task-item { display: grid; grid-template-columns: 28px 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 82px; border: 2px solid var(--line); background: #fff3bd; padding: 12px; box-shadow: 3px 3px 0 rgba(52,40,31,.12); }
.task-check { width: 20px; height: 20px; border: 2px solid var(--line); background: white; cursor: pointer; display: grid; place-items: center; }
.task-check svg { width: 13px; opacity: 0; }
.task-item.completed { opacity: .57; }.task-item.completed .task-check { background: var(--green); border-color: var(--green); color: white; }.task-item.completed .task-check svg { opacity: 1; }.task-item.completed h3 { text-decoration: line-through; }
.subject-badge { width: 34px; height: 34px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; box-shadow: 2px 2px 0 rgba(52,40,31,.14); }
.subject-badge.politics { background: #f8e4e1; color: #b64d43; }.subject-badge.english { background: #e7eef5; color: #4f7297; }.subject-badge.math { background: #e5f0eb; color: #35745f; }.subject-badge.major { background: #eee9f4; color: #6f5d98; }
.task-copy h3 { margin: 0 0 5px; font-size: 13px; }.task-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.task-duration { color: var(--muted); font-size: 11px; white-space: nowrap; }.task-duration svg { width: 13px; vertical-align: -2px; margin-right: 3px; }
.task-actions { display: flex; align-items: center; gap: 8px; }
.task-actions .secondary-button.compact { min-height: 34px; padding-inline: 10px; font-size: 10px; }
.task-actions .icon-button { width: 34px; height: 34px; }
.recurring-inline-panel { display: grid; gap: 12px; padding: 14px; background: #fff3bd; border: 2px dashed var(--line); box-shadow: inset 0 0 0 3px rgba(255,255,255,.26); }
.recurring-inline-panel[hidden] { display: none; }
.empty-state { min-height: 200px; display: grid; place-items: center; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }
.empty-state.compact { min-height: 90px; font-size: 10px; }
.right-column { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.plan-overview { display: grid; grid-template-columns: minmax(0, 420px); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.target-card { display: grid; gap: 12px; background: #f7efc8; }
.target-card label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.target-card input { min-height: 40px; border: 2px solid var(--line); background: #fff8dc; padding: 0 10px; border-radius: 0; color: var(--ink); box-shadow: inset 2px 2px 0 rgba(52,40,31,.08); }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.target-total { min-height: 42px; padding: 10px 12px; background: #6f7f52; color: white; display: flex; justify-content: space-between; align-items: center; font-size: 11px; border: 2px solid var(--line); border-radius: 14px 10px 16px 11px; }
.target-total strong { font-size: 20px; color: #ffe166; }
.focus-preview { margin: 20px 0 10px; padding: 14px; background: #fff3bd; border: 2px solid var(--line); display: flex; align-items: center; gap: 10px; }
.subject-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }.subject-dot.english, .breakdown-list i.english { background: var(--blue); }.subject-dot.math, .breakdown-list i.math { background: var(--green); }.subject-dot.major, .breakdown-list i.major { background: var(--purple); }.subject-dot.politics, .breakdown-list i.politics { background: var(--red); }
.focus-preview strong, .focus-preview small { display: block; }.focus-preview strong { font-size: 11px; }.focus-preview small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.timer-preview { font: 700 44px "SFMono-Regular", Consolas, monospace; text-align: center; margin: 18px 0 20px; letter-spacing: 0; }
.quote-card { background: #6f7f52; color: #fff8dc; }.quote-card svg { width: 20px; color: #efe2af; }.quote-card blockquote { margin: 18px 0; font: 18px/1.65 "Kaiti SC", "STKaiti", cursive; }.quote-card span { color: rgba(255,248,220,.72); font-size: 10px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }.wide { min-width: 0; }
.task-center-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.task-center-panel, .fixed-task-card, .daily-goal-card { min-width: 0; }
.compact-list { margin-top: 16px; }
.stage-task-list, .recurring-task-list { display: grid; gap: 10px; margin-top: 16px; }
.stage-task-card, .recurring-task-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; background: #f7efc8; border: 2px solid var(--line); box-shadow: 3px 4px 0 rgba(57,66,51,.1); border-radius: 15px 12px 17px 11px; }
.stage-task-card { grid-template-columns: 38px minmax(0, 1fr) 44px; }
.stage-task-card strong, .stage-task-card small, .recurring-task-item strong, .recurring-task-item small { display: block; }
.stage-task-card small, .recurring-task-item small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.stage-task-card i { display: block; height: 8px; margin-top: 8px; background: rgba(90,61,43,.18); border: 2px solid var(--line); }
.stage-task-card i b { display: block; height: 100%; background: var(--green); }
.stage-task-card em { font-style: normal; font-weight: 800; color: var(--green); }
.fixed-task-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(120px, .7fr) minmax(90px, .5fr); gap: 10px; align-items: end; }
.fixed-task-form label, .daily-goal-card label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.fixed-task-form input, .fixed-task-form select, .daily-goal-card input { min-height: 42px; border: 2px solid var(--line); background-color: #fff8dc; padding: 0 10px; }
.fixed-task-form .primary-button { grid-column: 1 / -1; }
.daily-goal-card p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.mainline-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.world-map-panel { overflow: hidden; background:
  radial-gradient(circle at 14% 16%, rgba(111,139,93,.13), transparent 22%),
  radial-gradient(circle at 88% 18%, rgba(141,184,184,.16), transparent 24%),
  #f8f0c8; }
.map-progress { padding: 6px 10px; background: #efe2af; border: 2px solid var(--line); font-size: 10px; font-weight: 800; box-shadow: 2px 3px 0 rgba(57,66,51,.1); border-radius: 12px 9px 13px 8px; }
.map-heading-target { display: grid; gap: 8px; min-width: 0; }
.map-target-card {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: min(560px, 100%);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.map-target-card small, .map-target-card strong, .map-target-card p { display: block; }
.map-target-card small { color: var(--muted); font-size: 9px; font-weight: 900; }
.map-target-card strong { color: var(--ink); font-size: 14px; line-height: 1.35; }
.map-target-card strong b { font: inherit; color: inherit; }
.map-target-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.map-target-card.needs-target strong b { color: #9d443e; }
.map-target-card.needs-target p { color: #9d443e; }
.target-alert {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #b94b44;
  color: #fff8dc;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 2px 3px 0 rgba(57,66,51,.18);
}
.target-alert[hidden] { display: none; }
.map-target-card .secondary-button { min-height: 32px; padding: 0 9px; font-size: 10px; }
.voyage-target-card {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  background: rgba(255,248,220,.72);
  border: 2px solid rgba(86,99,74,.72);
  box-shadow: none;
}
.voyage-target-card strong { font-size: 12px; }
.voyage-target-card p { margin-top: 2px; font-size: 9px; }
.voyage-target-card .secondary-button { min-height: 28px; padding: 0 8px; }
.world-map { position: relative; min-height: 430px; margin-top: 22px; border: 2px solid var(--line); background:
  radial-gradient(circle at 20% 18%, rgba(255,248,220,.54) 0 2px, transparent 3px),
  radial-gradient(circle at 74% 32%, rgba(255,248,220,.42) 0 2px, transparent 3px),
  radial-gradient(circle at 42% 72%, rgba(57,66,51,.08), transparent 28%),
  linear-gradient(135deg, rgba(255,248,220,.45), transparent 38%),
  #ebe4b7;
  background-size: auto, auto, auto, auto, 100%;
  box-shadow: inset 0 0 0 5px rgba(255,248,220,.34), 5px 7px 0 rgba(57,66,51,.11);
  border-radius: 34px 24px 38px 22px;
  overflow: hidden;
}
.lighthouse-stage {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 28px;
}
.lighthouse-sky { position: absolute; inset: 0; pointer-events: none; }
.lighthouse-sky span { position: absolute; width: 66px; height: 22px; border: 2px solid rgba(86,99,74,.25); border-radius: 999px; opacity: .45; }
.lighthouse-sky span:nth-child(1) { left: 10%; top: 18%; }
.lighthouse-sky span:nth-child(2) { right: 12%; top: 24%; width: 92px; }
.lighthouse-sky span:nth-child(3) { left: 24%; bottom: 26%; width: 78px; }
.lighthouse-scene { position: relative; z-index: 2; min-height: 390px; display: grid; place-items: end center; }
.lighthouse-illustration { width: min(680px, 100%); height: auto; display: block; }
.salt-character-art {
  position: absolute;
  left: max(2%, calc(50% - 320px));
  bottom: 18px;
  width: clamp(150px, 24vw, 230px);
  z-index: 4;
  border: 2px solid rgba(86,99,74,.46);
  border-radius: 16px 12px 18px 13px;
  box-shadow: 5px 7px 0 rgba(57,66,51,.14);
  mix-blend-mode: multiply;
}
.drawn-clouds path { fill: rgba(255,248,220,.35); stroke: rgba(86,99,74,.24); stroke-width: 3; stroke-linejoin: round; }
.lamp-beam { fill: rgba(255,229,143,.55); opacity: 0; transition: opacity .28s ease; }
.lamp-beam.lit { opacity: 1; }
.far-rock { fill: #b8c890; stroke: var(--line); stroke-width: 4; stroke-linejoin: round; }
.tower-back { fill: #e8ddad; stroke: none; opacity: .9; }
.tower-side { fill: #d8cc9a; opacity: .85; }
.tower-outline { fill: none; stroke: var(--line); stroke-width: 6; stroke-linejoin: round; }
.tower-balcony { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; opacity: .72; }
.tower-lantern .lantern-room { fill: #efe2af; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-lantern .lantern-roof { fill: #b57965; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-lantern .lantern-core { fill: #8fa6a0; stroke: var(--line); stroke-width: 5; transition: fill .25s ease, filter .25s ease; }
.tower-lantern .lantern-rays { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; opacity: .72; }
.tower-lantern.lit .lantern-core { fill: #ffe58f; filter: drop-shadow(0 0 12px rgba(255,229,143,.9)); }
.tower-lantern.lit .lantern-rays { stroke: #fff2aa; opacity: 1; }
.tower-base-drawn { fill: #6f7f52; stroke: var(--line); stroke-width: 6; stroke-linejoin: round; }
.tower-label { fill: #fff8dc; font: 900 24px "Kaiti SC", "STKaiti", cursive; letter-spacing: 0; }
.tower-layer-svg rect { stroke: var(--line); stroke-width: 3; }
.tower-layer-svg text { font: 800 10px "Courier New", monospace; fill: var(--ink); }
.tower-layer-svg.major rect { fill: #b57965; }
.tower-layer-svg.major text { fill: #fff8dc; }
.tower-layer-svg.minor rect { fill: #f8efd0; }
.tower-layer-svg.empty rect { fill: rgba(255,248,220,.38); stroke-dasharray: 6 5; }
.tower-layer-svg.empty text { fill: var(--muted); font-family: "Kaiti SC", "STKaiti", cursive; }
.salt-shadow { fill: rgba(57,66,51,.18); }
.salt-body { fill: #fff8dc; stroke: var(--line); stroke-width: 5; }
.salt-cap { fill: #8fa66d; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.salt-band, .salt-mouth, .salt-arm { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.salt-eye { fill: var(--line); }
.salt-label { fill: #6f7f52; font: 900 22px "Kaiti SC", "STKaiti", cursive; }
.salt-spark { fill: #ffe58f; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; opacity: .9; }
.salt-character-drawn { display: none; }
.lighthouse-stage:not(.lit-today) .lighthouse-full { filter: saturate(.65); opacity: .82; }
.lighthouse-stage.lit-today .lighthouse-full { opacity: 1; }
.tower-control { position: relative; z-index: 3; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; background: rgba(251,246,223,.78); border: 2px solid rgba(86,99,74,.45); border-radius: 18px 12px 20px 14px; }
.tower-control strong, .tower-control p { display: block; }
.tower-control strong { font-size: 14px; }
.tower-control p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tower-control .primary-button:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); }
.shoreline-stage {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 24px;
}
.shoreline-copy {
  position: relative;
  z-index: 4;
  width: min(780px, 100%);
  max-width: none;
  justify-self: center;
  min-height: 104px;
  padding: 12px 142px 12px 14px;
  background: rgba(255,248,220,.72);
  border: 2px solid rgba(86,99,74,.42);
  border-radius: 18px 14px 20px 14px;
  box-shadow: 3px 4px 0 rgba(57,66,51,.08);
}
.shoreline-copy h3 { margin: 4px 0 3px; font-size: 20px; }
.shoreline-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.voyage-stage-count {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255,248,220,.8);
  box-shadow: 2px 3px 0 rgba(57,66,51,.11);
  color: var(--ink);
  font: 900 12px "Courier New", monospace;
}
.voyage-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.voyage-stage-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 2px solid rgba(86,99,74,.38);
  border-radius: 999px;
  background: rgba(255,248,220,.64);
}
.voyage-stage-meta span:first-child {
  color: #fff8dc;
  background: #b57965;
  border-color: var(--line);
}
.voyage-stage-meta span:first-child.done {
  color: #fff8dc;
  background: #6f7f52;
}
.voyage-stage-meta span:first-child.locked {
  color: #687052;
  background: rgba(216,222,170,.94);
  border-color: rgba(86,99,74,.48);
}
.shoreline-scene { position: relative; z-index: 2; display: grid; place-items: center; min-height: 330px; }
.shoreline-art-wrap {
  position: relative;
  width: min(900px, 100%);
}
.shoreline-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px 22px 38px 25px;
  box-shadow: 4px 7px 0 rgba(57,66,51,.1);
  filter: none;
  image-rendering: auto;
}
.voyage-stage-labels { position: absolute; inset: 0; pointer-events: none; }
.voyage-story-button {
  position: absolute;
  left: 4.6%;
  top: 5.2%;
  min-height: 40px;
  padding: 0 18px;
  border: 3px solid rgba(64,72,49,.78);
  border-radius: 15px 9px 16px 10px;
  background: #f5ebcc;
  color: #3a3140;
  box-shadow: 2px 3px 0 rgba(57,66,51,.16);
  font: 900 17px "Kaiti SC", "STKaiti", "PingFang SC", serif;
  cursor: pointer;
  z-index: 3;
}
.voyage-story-button:hover,
.voyage-story-button[aria-expanded="true"] {
  background: rgba(239,213,151,.96);
  color: #6e4f3b;
}
.voyage-story-panel {
  position: absolute;
  left: 4.6%;
  top: 14%;
  width: min(360px, 42%);
  padding: 13px 15px;
  border: 3px solid rgba(64,72,49,.78);
  border-radius: 18px 12px 20px 13px;
  background: rgba(251,246,223,.96);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(57,66,51,.16);
  font: 800 13px/1.75 "Kaiti SC", "STKaiti", "PingFang SC", serif;
  z-index: 4;
}
.voyage-story-panel[hidden] { display: none; }
.voyage-stage-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  min-height: 34px;
  max-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 13px 4px 8px;
  border: 3px solid rgba(64,72,49,.78);
  border-radius: 14px 8px 15px 9px;
  background: #f5ebcc;
  color: #3a3140;
  box-shadow: 2px 3px 0 rgba(57,66,51,.16);
  font: 900 15px "Kaiti SC", "STKaiti", "PingFang SC", serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.voyage-stage-label::before {
  content: attr(data-stage-order);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(86,99,74,.44);
  border-radius: 8px 6px 9px 6px;
  background: #b57965;
  color: #fff8dc;
  font: 900 16px "Courier New", monospace;
  box-shadow: inset 0 0 0 2px rgba(255,248,220,.18);
}
.voyage-stage-label:hover,
.voyage-stage-label.active {
  transform: translate(-50%, -50%) scale(1.06);
}
.voyage-stage-label.done {
  background: rgba(213,222,170,.92);
  color: #46523c;
}
.voyage-stage-label.current {
  background: rgba(239,213,151,.96);
  color: #6e4f3b;
  border-color: rgba(100,79,54,.78);
}
.voyage-stage-label.locked { opacity: .88; }
.shoreline-map { width: min(760px, 100%); height: auto; display: block; overflow: visible; }
.sea-shape { fill: #a8cfd0; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.shore-shape { fill: #d5dc9e; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.salt-flat { fill: #efe7b7; stroke: rgba(86,99,74,.62); stroke-width: 4; stroke-linejoin: round; }
.reef { fill: #8fa66d; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.reef.small { fill: #b7c77e; }
.voyage-route-bg { fill: none; stroke: rgba(255,248,220,.84); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 2 34; }
.voyage-route-fill { fill: none; stroke: #b57965; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray .35s ease; }
.route-points circle { fill: #fff8dc; stroke: var(--line); stroke-width: 5; }
.beacon-lights circle { fill: #fff8dc; stroke: var(--line); stroke-width: 4; opacity: .55; transition: fill .25s ease, opacity .25s ease, filter .25s ease; }
.beacon-lights circle.lit { fill: #ffe58f; opacity: 1; filter: drop-shadow(0 0 8px rgba(255,229,143,.75)); }
.leaf-boat { fill: #8fa66d; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.salt-boat { transition: transform .32s ease; transform-box: fill-box; transform-origin: center; }
.salt-q-body { fill: #fff8dc; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.salt-q-headband { fill: #7f925e; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.salt-q-eye { fill: var(--line); }
.salt-q-mouth { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.tower-rock { fill: #cbd893; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-q-body { fill: #fff8dc; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-q-roof { fill: #b57965; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-q-room { fill: #efe7b7; stroke: var(--line); stroke-width: 5; }
.tower-q-lamp { fill: #9fb5aa; stroke: var(--line); stroke-width: 5; transition: fill .25s ease, filter .25s ease; }
.tower-q-door { fill: #8fa66d; stroke: var(--line); stroke-width: 5; stroke-linejoin: round; }
.tower-q-window { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.shoreline-stage.lit-today .tower-q-lamp { fill: #ffe58f; filter: drop-shadow(0 0 12px rgba(255,229,143,.85)); }
.shoreline-stage.lit-today .salt-q-body { fill: #fffdf1; }
.shoreline-stage.lit-today .shoreline-art { filter: saturate(1.04) brightness(1.03) drop-shadow(0 0 10px rgba(255,229,143,.28)); }
.world-map::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(86,99,74,.22); border-radius: 28px 18px 31px 19px; pointer-events: none; z-index: 1; }
.world-map::after { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(0deg, rgba(57,66,51,.025) 0 1px, transparent 1px 7px),
  repeating-linear-gradient(90deg, rgba(57,66,51,.018) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply; pointer-events: none; z-index: 1; }
.hand-map { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); filter: drop-shadow(3px 4px 0 rgba(86,99,74,.12)); z-index: 2; }
.map-paper-stain { fill: #e1d79c; opacity: .42; }
.map-land { fill: #cbd893; stroke: #56634a; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.map-coast { fill: none; stroke: #6d7057; stroke-width: 3; stroke-linecap: round; opacity: .5; }
.map-river { fill: none; stroke: #a8cfc3; stroke-width: 24; stroke-linecap: round; opacity: .72; }
.map-river-line { fill: none; stroke: #6d9e9a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 12; opacity: .55; }
.map-route-line { fill: none; stroke: #6d7057; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 13 13; opacity: .76; }
.map-region path, .map-region ellipse, .map-region circle { stroke: #56634a; stroke-width: 4; stroke-linejoin: round; opacity: .94; }
.map-region text { fill: #4f5943; paint-order: stroke; stroke: rgba(248,240,200,.8); stroke-width: 5; stroke-linejoin: round; font: 24px "Kaiti SC", "STKaiti", cursive; }
.map-region.village > path:first-child { fill: #b8cf82; }
.map-region.forest > path:first-child { fill: #8fa66d; }
.map-region.cave > path:first-child { fill: #b9b48f; }
.map-region.spring > path:first-child { fill: #a8cfc3; }
.map-region.saltflat > path:first-child { fill: #ddd1a1; }
.map-region.lighthouse > path:first-child { fill: #d5dfb5; }
.map-region .hut, .map-region .tower { fill: #f5e8bf; stroke-width: 4; }
.map-region .door, .map-region .cave-mouth { fill: #5f6e49; }
.map-region .window, .map-region .relic-gem { fill: #f1d67e; }
.map-region .tree { fill: #5f7b51; }
.map-region .scroll, .map-region .paper-scrap { fill: #f7efc8; }
.map-region .pond { fill: #8db8b8; opacity: .9; }
.map-region .hourglass, .map-region .flag, .map-region .tower-roof { fill: #b57965; }
.map-region .salt-wind, .map-region .light, .map-region .book-mark { fill: none; stroke: #56634a; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.map-doodles path { fill: none; stroke: #56634a; stroke-width: 3; stroke-linecap: round; opacity: .38; }
.map-doodles circle { fill: #f7efc8; stroke: #56634a; stroke-width: 2; opacity: .45; }
.map-path { position: absolute; left: 13%; right: 13%; top: 56%; height: 132px; pointer-events: none; z-index: 3; }
.map-node { position: absolute; left: var(--x); transform: translate(-50%, -50%); width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line); background: #f9f0c8; box-shadow: 2px 3px 0 rgba(57,66,51,.14); border-radius: 50%; font-size: 9px; color: transparent; }
.map-node:nth-child(odd) { top: 8px; }
.map-node:nth-child(even) { top: 70px; }
.map-node.done { background: #e5d48a; }
.map-node.current { background: #b57965; color: transparent; transform: translate(-50%, -50%) scale(1.18); }
.map-node b { display: none; }
.map-player { position: absolute; top: 53%; width: 44px; height: 48px; transform: translate(-50%, -50%); display: grid; place-items: center; background: #fff7df; color: #6f7f52; border: 2px solid var(--line); font-weight: 900; box-shadow: 4px 5px 0 rgba(57,66,51,.16); transition: left .35s ease; border-radius: 48% 52% 45% 55%; z-index: 4; }
.map-player::before { content: ""; position: absolute; left: -5px; right: -5px; top: 6px; height: 10px; background: #8fa66d; border: 2px solid var(--line); border-radius: 8px; }
.map-player::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 5px; background: #b57965; border: 1px solid var(--line); border-radius: 999px; }
.kingdom-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.kingdom-list article { padding: 12px; border: 2px solid var(--line); background:
  radial-gradient(circle at 15% 20%, rgba(111,139,93,.11), transparent 28%),
  #fbf6df; box-shadow: 3px 4px 0 rgba(57,66,51,.08); border-radius: 18px 12px 19px 13px; }
.kingdom-list article.active { background: #efe2af; }
.kingdom-list strong, .kingdom-list span { display: block; }
.kingdom-list span { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.kingdom-list p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.story-card { background: #6f7f52; color: #fff8dc; border-radius: 22px 16px 25px 14px; }
.story-card .kicker { color: #efe2af; }
.story-card h2 { margin-top: 8px; font-size: 20px; line-height: 1.45; }
.story-card p { color: rgba(255,248,220,.82); font-size: 13px; line-height: 1.85; }
.salt-care-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 32%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.035) 7px 9px),
    #6f9bc6;
  color: #f7fbff;
  border: 5px solid #dcecf2;
  box-shadow: 0 0 0 3px #8fb2c6, 5px 6px 0 rgba(52,40,31,.14);
  border-radius: 26px;
}
.salt-care-card .kicker { color: #eff9ff; }
.salt-care-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.salt-care-head h2 { margin: 7px 0 0; font-size: 20px; }
.salt-crystal-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(247,251,255,.88); color: #1f405e; border: 3px solid #2d5f8b; box-shadow: 3px 3px 0 rgba(31,64,94,.18); font-size: 11px; font-weight: 900; white-space: nowrap; }
.salt-crystal-pill span { width: 16px; height: 16px; background: linear-gradient(135deg, #fff 0 34%, #9de9ff 34% 68%, #5aa7d8 68%); border: 2px solid #1f405e; transform: rotate(45deg); }
.salt-care-body { margin-top: 14px; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px; align-items: center; }
.pixel-salt-avatar { width: 104px; height: 112px; position: relative; image-rendering: pixelated; filter: drop-shadow(5px 5px 0 rgba(31,64,94,.22)); }
.pixel-salt-avatar.pop { animation: salt-pop .34s steps(4); }
@keyframes salt-pop { 0% { transform: scale(.96); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
.pixel-body { position: absolute; left: 20px; top: 20px; width: 66px; height: 76px; background: #fff8ef; border: 5px solid #24515b; border-radius: 30px 30px 20px 20px; box-shadow: inset 8px 0 0 #efe1d4; }
.pixel-band { position: absolute; left: 14px; top: 6px; width: 78px; height: 22px; background: #8bb4c7; border: 5px solid #24515b; clip-path: polygon(0 38%, 18% 0, 75% 0, 100% 38%, 82% 100%, 10% 100%); }
.pixel-pack { position: absolute; right: 2px; top: 48px; width: 28px; height: 38px; background: #a2775c; border: 4px solid #24515b; }
.pixel-eye { position: absolute; top: 53px; width: 7px; height: 11px; background: #24515b; z-index: 2; }
.pixel-eye.left { left: 42px; }
.pixel-eye.right { left: 63px; }
.pixel-mouth { position: absolute; left: 51px; top: 72px; width: 14px; height: 7px; border-bottom: 3px solid #24515b; z-index: 2; }
.salt-status-bars { display: grid; gap: 10px; }
.salt-status-bars div { display: grid; grid-template-columns: 38px 1fr 28px; gap: 8px; align-items: center; font-size: 10px; font-weight: 900; }
.salt-status-bars i { height: 16px; background: rgba(31,64,94,.58); border: 2px solid #dcecf2; box-shadow: inset 0 0 0 2px rgba(31,64,94,.16); }
.salt-status-bars b { display: block; height: 100%; width: 0; background: #f9d66b; transition: width .25s steps(5); }
.salt-status-bars div:nth-child(2) b { background: #9fd8ff; }
.salt-status-bars div:nth-child(3) b { background: #f2a8b5; }
.salt-status-bars strong { font-size: 10px; text-align: right; }
.salt-care-speech { margin: 12px 0 0; padding: 11px; color: #f7fbff; background: rgba(255,255,255,.14); border: 2px solid rgba(247,251,255,.48); font-size: 11px; line-height: 1.7; }
.salt-stall { margin-top: 12px; display: grid; gap: 8px; }
.salt-stall button { width: 100%; display: grid; grid-template-columns: 86px 1fr; gap: 7px; align-items: center; min-height: 42px; padding: 8px 10px; border: 3px solid rgba(247,251,255,.74); background: rgba(255,255,255,.14); color: #f7fbff; cursor: pointer; text-align: left; box-shadow: inset 0 0 0 2px rgba(31,64,94,.12); }
.salt-stall button:hover { background: rgba(255,255,255,.22); }
.salt-stall strong { font-size: 11px; }
.salt-stall span { font-size: 9px; color: rgba(247,251,255,.82); }
.stage-plan-panel { display: grid; gap: 16px; }
.stage-plan-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(96px, .8fr) minmax(118px, .8fr) auto; gap: 10px; align-items: end; }
.stage-plan-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; position: relative; }
.stage-plan-form input, .stage-plan-form select {
  min-height: 42px;
  border: 2px solid var(--line);
  background: #fff8dc;
  padding: 0 10px;
  color: var(--ink);
  border-radius: 0;
}
.stage-plan-form label span { position: absolute; right: 10px; bottom: 13px; color: var(--muted); font-size: 10px; }
.stage-plan-form input[type="number"] { padding-right: 42px; }
.stage-plan-list { display: grid; gap: 10px; }
.stage-plan-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(130px, 1fr) auto 34px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--line);
  background: #fff3bd;
  box-shadow: 3px 3px 0 rgba(52,40,31,.1);
}
.stage-plan-item span { color: #b57965; font: 900 9px "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.stage-plan-item h3 { margin: 3px 0; font-size: 15px; }
.stage-plan-item p { margin: 0; color: var(--muted); font-size: 11px; }
.stage-plan-item strong { min-width: 42px; color: var(--green); text-align: right; }
.stage-plan-progress { height: 12px; border: 2px solid var(--line); background: #f8f0c8; box-shadow: inset 2px 2px 0 rgba(52,40,31,.08); }
.stage-plan-progress span { display: block; height: 100%; background: linear-gradient(90deg, #8fa66d, #b9c984); transition: width .25s ease; }
.task-calendar-section { display: grid; gap: 14px; }
.task-calendar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.task-calendar-actions .icon-button { width: 34px; height: 34px; }
.calendar-mode-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); background: #fff8dc; box-shadow: 2px 2px 0 rgba(52,40,31,.12); }
.calendar-mode-tabs button { min-width: 54px; min-height: 34px; border: 0; border-right: 2px solid var(--line); background: transparent; color: var(--muted); font-weight: 900; cursor: pointer; }
.calendar-mode-tabs button:last-child { border-right: 0; }
.calendar-mode-tabs button.active { background: #6f7f52; color: #fff8dc; }
.task-calendar-panel { display: grid; gap: 14px; }
.task-calendar-grid { display: grid; gap: 10px; }
.task-calendar-grid.week { grid-template-columns: repeat(7, minmax(92px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.task-calendar-grid.month { grid-template-columns: repeat(7, minmax(82px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.task-calendar-day {
  min-height: 142px;
  padding: 10px;
  border: 2px solid var(--line);
  background: #fff3bd;
  box-shadow: 3px 3px 0 rgba(52,40,31,.1);
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 8px;
}
.task-calendar-day:hover, .task-calendar-day.selected { background: #efe2af; }
.task-calendar-day.today { box-shadow: inset 0 0 0 3px rgba(111,127,82,.18), 3px 3px 0 rgba(52,40,31,.1); }
.task-calendar-day-head { display: grid; gap: 2px; }
.task-calendar-day-head strong { font-size: 12px; }
.task-calendar-day-head span, .task-calendar-day-head em { color: var(--muted); font-size: 9px; font-style: normal; }
.task-calendar-day-head em { color: #b57965; font-weight: 900; }
.task-calendar-day ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.task-calendar-day li { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.task-calendar-day li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-calendar-day li.empty { justify-content: center; min-height: 42px; color: rgba(90,61,43,.48); }
.task-calendar-day i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--green); }
.task-calendar-day i.english { background: var(--blue); }
.task-calendar-day i.politics { background: var(--red); }
.task-calendar-day i.math { background: var(--green); }
.task-calendar-day i.major { background: var(--purple); }
.task-calendar-day small { color: var(--muted); font-size: 9px; }
.task-calendar-hint { margin: 0; padding: 12px; border: 2px dashed rgba(90,61,43,.28); color: var(--muted); text-align: center; font-size: 11px; }
.task-calendar-detail { display: grid; gap: 12px; padding-top: 2px; }
.task-plan-day-card .calendar-event, .plan-day-lane .vertical-event { background: #6f7f52; }
.task-calendar-dialog { width: min(680px, calc(100vw - 28px)); border: 0; padding: 0; background: transparent; }
.task-calendar-dialog::backdrop { background: rgba(37,45,31,.38); }
.task-calendar-dialog-card {
  max-height: min(82vh, 760px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: var(--pixel-border);
  box-shadow: var(--shadow);
}
.task-calendar-dialog-card .actual-day-card { min-height: 0; }
.task-calendar-dialog-card .vertical-compare-scroll { max-height: min(58vh, 560px); }
.npc-dialogue { display: grid; gap: 12px; margin: 18px 0 14px; }
.dialogue-line { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: end; }
.dialogue-line.npc-line { grid-template-columns: minmax(0, 1fr) 34px; }
.dialogue-line.npc-line .speaker-avatar { grid-column: 2; grid-row: 1; }
.dialogue-line.npc-line p { grid-column: 1; grid-row: 1; justify-self: end; }
.speaker-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff8dc;
  color: #6f7f52;
  border: 2px solid rgba(255,248,220,.5);
  border-radius: 48% 52% 45% 55%;
  font-weight: 900;
  box-shadow: 2px 3px 0 rgba(37,45,31,.18);
}
.dialogue-line p {
  margin: 0;
  padding: 12px 14px;
  max-width: 100%;
  background: rgba(255,248,220,.16);
  border: 2px solid rgba(255,248,220,.33);
  border-radius: 18px 16px 17px 6px;
  color: #fff8dc;
  font: 14px/1.7 "Kaiti SC", "STKaiti", cursive;
}
.dialogue-line.npc-line p { border-radius: 16px 18px 6px 17px; background: rgba(255,248,220,.24); }
.dialogue-line.locked p { color: rgba(255,248,220,.64); background: rgba(37,45,31,.16); border-style: dashed; }
.encounter-name { margin: 14px 0 0; color: rgba(255,248,220,.72); }
.quote-actions { display: grid; gap: 9px; margin-top: 14px; }
.quote-actions .text-button { justify-self: center; color: #fff8dc; }
.quote-book-count { margin: 10px 0 0; color: rgba(255,248,220,.72); font-size: 11px; }
.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.story-stats span { padding: 10px; background: rgba(255,248,220,.12); border: 2px solid rgba(255,248,220,.24); font-size: 10px; }
.status { width: max-content; padding: 5px 8px; font-size: 9px; border: 2px solid var(--line); box-shadow: 2px 2px 0 rgba(52,40,31,.12); }.status.on-track { color: #245d7d; background: #d8effa; }.status.good { color: #254d3b; background: var(--green-soft); }.status.warning { color: #6d4820; background: var(--amber-soft); }
.focus-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }.focus-stage { min-height: 650px; background: linear-gradient(180deg, #d6ddaa 0 18%, #b4c884 18% 36%, #7f9b66 36% 100%); color: white; padding: 30px; display: flex; flex-direction: column; align-items: center; border: var(--pixel-border); box-shadow: var(--shadow); position: relative; overflow: hidden; border-radius: 28px 19px 32px 17px; }
.focus-stage::before { content: ""; position: absolute; inset: 30% 0 auto; height: 12px; background: repeating-linear-gradient(90deg, rgba(239,226,175,.85) 0 18px, transparent 18px 30px); opacity: .62; }
.focus-stage > * { position: relative; z-index: 1; }
.focus-topline { width: 100%; display: flex; justify-content: space-between; }.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--green); background: var(--green-soft); padding: 7px 10px; width: max-content; }.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47,118,97,.12); }
.focus-stage .live-pill { background: #fff8dc; color: #6f7f52; border: 2px solid var(--line); }.focus-stage .icon-button { color: #fff8dc; background: #6f7f52; }
.focus-subject-select { width: min(520px, 100%); margin-top: 76px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.focus-subject-select label { display: grid; gap: 7px; color: #fff8dc; font-size: 10px; font-weight: 800; }
.focus-subject-select select, .focus-subject-select input { min-height: 44px; border: 3px solid var(--line); background-color: #fff8dc; color: var(--ink); padding: 0 14px; border-radius: 0; box-shadow: 4px 4px 0 rgba(52,40,31,.18); }
.main-timer { margin-top: 34px; font: 800 clamp(76px, 10vw, 140px)/1 "Courier New", Consolas, monospace; letter-spacing: 0; text-shadow: 4px 4px 0 rgba(52,40,31,.26); }.timer-caption { color: rgba(255,248,220,.9); font: 14px "Courier New", "Songti SC", monospace; }
.timer-controls { display: flex; align-items: center; gap: 24px; margin-top: 44px; }.focus-stage .secondary-button { color: var(--ink); border-color: var(--line); background: #fff8dc; min-width: 86px; }.timer-toggle { width: 70px; height: 70px; border: 2px solid var(--line); border-radius: 50% 47% 52% 45%; background: var(--red); color: white; display: grid; place-items: center; cursor: pointer; box-shadow: 5px 5px 0 rgba(57,66,51,.16); }.timer-toggle svg { width: 26px; }
.finish-timer-button { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; }
.focus-modes { margin-top: auto; display: flex; border-top: 3px solid rgba(90,61,43,.65); background: rgba(37,77,59,.34); }.focus-modes button { border: 0; background: transparent; color: rgba(255,248,220,.68); padding: 18px; font-size: 10px; cursor: pointer; border-top: 3px solid transparent; }.focus-modes button.active { color: white; border-top-color: #ffe166; }
.focus-side { display: grid; gap: 18px; align-content: start; }.session-list { margin-top: 14px; }.session-list > div { min-height: 65px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }.session-list p { margin: 0; }.session-list strong, .session-list small { display: block; }.session-list strong { font-size: 11px; }.session-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }.session-list em { font-style: normal; font-weight: 700; font-size: 11px; }
.focus-summary { display: grid; grid-template-columns: 1fr 1fr; }.focus-summary div + div { border-left: 1px solid var(--line); padding-left: 24px; }.focus-summary span, .focus-summary strong, .focus-summary small { display: block; }.focus-summary span, .focus-summary small { color: var(--muted); font-size: 9px; }.focus-summary strong { font-size: 28px; margin: 4px 0; }
.focus-trial-cabin {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  align-content: start;
  padding: 18px;
  color: #f9fdff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 32%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.04) 7px 9px),
    #6f9fd2;
  border: 8px solid #dceef6;
  box-shadow: 0 0 0 4px #8db1c9, 10px 12px 0 rgba(30,67,92,.18);
  border-radius: 34px;
}
.focus-trial-cabin::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  background: repeating-linear-gradient(90deg, #276d67 0 12px, #347c72 12px 24px, #24615d 24px 36px);
  opacity: .62;
}
.focus-trial-cabin > * { position: relative; z-index: 1; }
.focus-cabin-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.focus-cabin-head h2 { margin: 4px 0 0; font-size: 24px; line-height: 1; letter-spacing: 0; color: #f9fdff; }
.focus-cabin-head .kicker { color: #d9f1ff; }
.focus-crystal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 3px solid rgba(249,253,255,.68);
  background: rgba(249,253,255,.16);
  font: 800 13px "Courier New", monospace;
  white-space: nowrap;
}
.focus-crystal-pill span {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: linear-gradient(135deg, #fff 0 35%, #9deaff 35% 68%, #5aa8dd 68%);
  border: 3px solid #1e435c;
  transform: rotate(45deg);
}
.focus-cabin-main { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(250px, .66fr); gap: 10px; align-items: stretch; }
.focus-console {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 11px;
  background: rgba(255,255,255,.1);
  border: 3px solid rgba(249,253,255,.46);
  box-shadow: inset 0 0 0 3px rgba(30,67,92,.12);
}
.timer-console { text-align: center; }
.focus-trial-cabin .focus-subject-select {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(92px, .75fr) minmax(0, 1.35fr);
  gap: 8px;
}
.focus-trial-cabin .focus-subject-select label { gap: 4px; color: #f8fdff; font-size: 10px; }
.focus-trial-cabin .focus-subject-select select,
.focus-trial-cabin .focus-subject-select input {
  min-height: 34px;
  border: 3px solid rgba(255,255,255,.85);
  background: #80abd7;
  color: #f9fdff;
  padding: 0 8px;
  box-shadow: none;
  font: 800 12px "Courier New", monospace;
}
.focus-trial-cabin .main-timer {
  margin: 0;
  font: 800 clamp(60px, 10vw, 108px)/.94 "Courier New", Consolas, monospace;
  color: #f9fdff;
  text-shadow: 5px 5px 0 rgba(30,67,92,.22);
}
.focus-trial-cabin .timer-caption { margin: 0; color: #eaf8ff; font: 800 12px "Courier New", "Songti SC", monospace; }
.focus-trial-cabin .focus-modes {
  width: min(420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  border: 0;
  background: transparent;
}
.focus-trial-cabin .focus-modes button {
  min-height: 29px;
  padding: 0 8px;
  border: 3px solid rgba(255,255,255,.85);
  background: #5e83b5;
  color: #eaf8ff;
  font: 800 11px "Courier New", monospace;
  box-shadow: 3px 3px 0 rgba(30,67,92,.18);
}
.focus-trial-cabin .focus-modes button.active { background: #e97872; color: #fff; border-color: #fff; }
.focus-action-row { display: grid; grid-template-columns: 1.75fr .9fr; gap: 8px; }
.focus-trial-cabin .timer-toggle {
  width: auto;
  height: 48px;
  min-height: 48px;
  border: 4px solid #fff;
  border-radius: 0;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  display: inline-flex;
  gap: 8px;
  background: #e97872;
  font: 900 15px "Courier New", monospace;
  color: #fff;
}
.focus-trial-cabin .timer-toggle span { display: inline; }
.focus-trial-cabin .finish-timer-button {
  min-height: 40px;
  margin: 0;
  align-self: end;
  justify-content: center;
  color: #f9fdff;
  background: rgba(128,171,215,.82);
  border: 4px solid #fff;
  font-size: 12px;
}
.focus-care-top { display: grid; grid-template-columns: 94px 1fr; gap: 9px; align-items: center; }
.focus-salt-avatar { transform: scale(.74); transform-origin: left center; margin: -12px 0 -18px; }
.focus-status-bars { gap: 6px; }
.focus-status-bars div { grid-template-columns: 34px 1fr 25px; gap: 6px; color: #f9fdff; font-size: 10px; }
.focus-status-bars i { height: 13px; border-color: #dceef6; background: rgba(30,67,92,.58); }
.focus-care-speech {
  min-height: 38px;
  padding: 8px;
  border: 2px solid rgba(249,253,255,.58);
  background: rgba(255,255,255,.16);
  color: #f8fdff;
  font-size: 10px;
  line-height: 1.35;
}
.focus-trial-footer { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 6px; align-items: stretch; }
.focus-stall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.focus-stall button {
  min-height: 36px;
  padding: 3px 2px;
  border: 2px solid rgba(249,253,255,.68);
  background: rgba(255,255,255,.14);
  color: #f9fdff;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.focus-stall button strong { font-size: 9px; }
.focus-stall button span { font-size: 7px; white-space: nowrap; }
.focus-letter-button {
  min-height: 36px;
  padding: 0 5px;
  border: 3px solid #fff;
  background: #80abd7;
  color: #fff;
  font-size: 10px;
  justify-content: center;
}
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.log-layout { display: grid; gap: 16px; max-width: 980px; }
.log-card { display: grid; gap: 14px; }
.hidden-review-form { display: none; }
.review-compose { display: grid; gap: 20px; }
.review-import { padding: 16px; background: #dff3c3; border: 2px solid var(--line); display: grid; gap: 10px; box-shadow: 3px 3px 0 rgba(52,40,31,.12); }
.review-import label, .review-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 800; }
.review-import textarea, .review-form textarea, .review-form input, .review-form select {
  width: 100%; border: 2px solid var(--line); background: #fff8dc; padding: 12px; border-radius: 0; color: var(--ink);
}
.review-import textarea, .review-form textarea { resize: vertical; line-height: 1.6; }
.review-import-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-form { display: grid; gap: 14px; }
.review-form.hidden-review-form { display: none; }
.period-review { display: grid; gap: 12px; }
.period-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--line); background: #fff8dc; box-shadow: 3px 3px 0 rgba(52,40,31,.12); }
.period-tabs button { min-height: 40px; border: 0; border-right: 2px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.period-tabs button:last-child { border-right: 0; }
.period-tabs button.active { background: #6f7f52; color: white; }
.period-review-panel { padding: 16px; border: 2px solid var(--line); background: #fff8dc; display: grid; gap: 14px; }
.period-review-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.period-review-stats div { padding: 12px; background: var(--paper); }
.period-review-stats span, .period-review-stats strong { display: block; }
.period-review-stats span { color: var(--muted); font-size: 9px; }
.period-review-stats strong { margin-top: 5px; font-size: 18px; }
.total-voyage-stats { grid-template-columns: 1fr; }
.period-donut-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; }
.period-donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--period-donut); border: 2px solid var(--line); box-shadow: 4px 4px 0 rgba(52,40,31,.12); position: relative; }
.period-donut::after { content: ""; position: absolute; inset: 27px; border-radius: 50%; background: #fff8dc; border: 2px solid rgba(90,61,43,.14); }
.period-donut span { position: relative; z-index: 1; font-size: 18px; font-weight: 900; text-align: center; }
.period-donut small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.period-subject-list { display: grid; gap: 8px; }
.period-subject-list div { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 9px; align-items: center; font-size: 10px; padding: 8px; background: var(--paper); border: 1px solid rgba(90,61,43,.22); }
.period-subject-list i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }
.period-subject-list em { color: var(--muted); font-style: normal; font-weight: 800; }
.calendar-timeline-panel { display: grid; gap: 12px; }
.calendar-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px dashed rgba(90,61,43,.28); }
.calendar-timeline-head strong { font-size: 12px; }
.calendar-timeline-head span { color: var(--muted); font-size: 9px; }
.calendar-timeline { display: grid; gap: 10px; }
.calendar-timeline.day { grid-template-columns: 1fr; }
.calendar-timeline.week { grid-template-columns: repeat(7, minmax(86px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.calendar-timeline.month { grid-template-columns: repeat(7, minmax(82px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.calendar-day-card { min-height: 168px; padding: 9px; border: 1px solid rgba(90,61,43,.28); background: var(--paper); display: grid; grid-template-rows: auto 1fr; gap: 8px; cursor: pointer; }
.calendar-day-card.empty { opacity: .72; }
.calendar-day-card.selected { outline: 3px solid rgba(183,88,70,.45); background: #fff3bd; }
.calendar-day-head { display: flex; justify-content: space-between; gap: 6px; align-items: start; }
.calendar-day-head strong, .calendar-day-head span { display: block; font-size: 8px; line-height: 1.35; }
.calendar-day-head span { color: var(--muted); white-space: nowrap; }
.calendar-day-track { position: relative; min-height: 118px; border-left: 2px solid rgba(90,61,43,.26); background: repeating-linear-gradient(to bottom, rgba(90,61,43,.08) 0, rgba(90,61,43,.08) 1px, transparent 1px, transparent 24px); }
.calendar-event { position: absolute; left: 7px; right: 2px; min-height: 18px; padding: 4px 5px; border: 1px solid var(--line); color: #fff8dc; overflow: hidden; box-shadow: 1px 2px 0 rgba(52,40,31,.14); }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { font-size: 8px; }
.calendar-event span { margin-top: 2px; font-size: 7px; opacity: .9; }
.calendar-day-card p { margin: 0; align-self: center; color: var(--muted); text-align: center; font-size: 9px; }
.review-date-detail { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed rgba(90,61,43,.28); }
.review-date-detail-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.review-date-detail-head strong { display: block; margin-top: 4px; font-size: 15px; }
.review-date-detail-head p { margin: 0; color: var(--muted); font-size: 10px; }
.review-compare, .today-planner, .tomorrow-planner { display: grid; gap: 14px; }
.plan-actual-list { display: grid; gap: 10px; }
.plan-actual-item { padding: 14px; border: 2px solid var(--line); background: #fff8dc; display: grid; gap: 9px; box-shadow: 3px 3px 0 rgba(52,40,31,.1); }
.plan-actual-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 11px; font-weight: 800; }
.plan-actual-top span { color: var(--muted); font-size: 9px; font-weight: 700; }
.compare-bars { display: grid; gap: 6px; }
.compare-bars div { display: grid; grid-template-columns: 42px 1fr 44px; gap: 8px; align-items: center; font-size: 9px; color: var(--muted); }
.compare-bars i { height: 8px; background: var(--line); position: relative; overflow: hidden; }
.compare-bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--green); }
.compare-bars .actual i::before { background: var(--red); }
.timeline-preview { display: grid; gap: 10px; }
.timeline-card { padding: 14px; border: 2px solid var(--line); background: #fff8dc; display: grid; gap: 12px; box-shadow: 3px 3px 0 rgba(52,40,31,.1); }
.timeline-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline-card-head strong { font-size: 12px; }
.timeline-card-head span { padding: 5px 9px; border: 1px solid rgba(90,61,43,.28); background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 900; white-space: nowrap; }
.study-timeline { display: grid; gap: 6px; }
.timeline-ruler { position: relative; height: 18px; border-bottom: 1px dashed rgba(90,61,43,.28); }
.timeline-ruler span { position: absolute; bottom: 3px; transform: translateX(-50%); color: var(--muted); font-size: 8px; font-weight: 800; }
.timeline-track { position: relative; min-height: 96px; border: 2px solid rgba(90,61,43,.45); background: repeating-linear-gradient(to right, rgba(90,61,43,.08) 0, rgba(90,61,43,.08) 1px, transparent 1px, transparent 36px), #fff3bd; overflow: hidden; }
.timeline-item { position: absolute; top: 12px; min-width: 56px; min-height: 68px; padding: 8px; border: 2px solid var(--line); color: #fff8dc; box-shadow: 2px 3px 0 rgba(52,40,31,.18); overflow: hidden; }
.timeline-item strong, .timeline-item span, .timeline-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-item strong { font-size: 10px; }
.timeline-item span { margin-top: 5px; font-size: 8px; opacity: .94; }
.timeline-item small { margin-top: 8px; font-size: 8px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.timeline-empty { margin: 0; padding: 34px 12px; color: var(--muted); text-align: center; font-size: 10px; }
.vertical-compare-card { padding: 14px; border: 2px solid var(--line); background: #fff8dc; display: grid; gap: 12px; box-shadow: 3px 3px 0 rgba(52,40,31,.1); }
.vertical-compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 62px; align-items: center; }
.vertical-compare-head div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; min-width: 0; }
.vertical-compare-head strong { font-size: 12px; }
.vertical-compare-head span { padding: 5px 8px; border: 1px solid rgba(90,61,43,.28); background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 900; white-space: nowrap; }
.vertical-compare-head small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.vertical-compare-scroll { max-height: 720px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 4px; scrollbar-gutter: stable; }
.vertical-compare-scroll::-webkit-scrollbar { width: 8px; }
.vertical-compare-scroll::-webkit-scrollbar-track { background: rgba(90,61,43,.08); }
.vertical-compare-scroll::-webkit-scrollbar-thumb { background: rgba(90,61,43,.34); border-radius: 999px; }
.vertical-compare-axis { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 8px; min-height: 960px; padding: 0 2px; }
.vertical-lane { position: relative; min-width: 0; border: 0; background: repeating-linear-gradient(to bottom, rgba(90,61,43,.08) 0, rgba(90,61,43,.08) 1px, transparent 1px, transparent 60px), linear-gradient(180deg, rgba(255,243,189,.56), rgba(255,248,220,.24)); overflow: visible; }
.plan-lane { background-color: rgba(255,243,189,.36); }
.actual-lane { background-color: rgba(223,243,195,.24); }
.vertical-ruler { position: relative; border-left: 3px solid rgba(90,61,43,.52); justify-self: center; width: 1px; }
.vertical-tick { position: absolute; left: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; }
.vertical-tick i { width: 15px; height: 2px; background: rgba(90,61,43,.52); display: block; }
.vertical-tick b { display: block; min-width: 36px; color: var(--muted); font-size: 8px; font-weight: 900; text-align: center; background: #fff8dc; }
.vertical-timeline-item { position: absolute; left: 8px; right: 8px; min-height: 74px; padding: 8px; border: 2px solid var(--line); color: #fff8dc; box-shadow: 2px 3px 0 rgba(52,40,31,.18); overflow: visible; z-index: 1; }
.vertical-timeline-item strong, .vertical-timeline-item span, .vertical-timeline-item small { display: block; overflow: hidden; text-overflow: ellipsis; }
.vertical-timeline-item strong { font-size: 10px; white-space: nowrap; }
.vertical-timeline-item span { margin-top: 4px; font-size: 8px; opacity: .94; white-space: nowrap; }
.vertical-timeline-item small { margin-top: 6px; font-size: 8px; line-height: 1.25; display: block; white-space: normal; }
.vertical-empty { margin: 0; padding: 20px 8px; color: var(--muted); text-align: center; font-size: 10px; }
.vertical-floating { padding-top: 2px; }
.actual-day-card { padding: 12px; border: 1px dashed rgba(90,61,43,.32); background: rgba(255,243,189,.5); display: grid; gap: 10px; }
.actual-day-axis { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; min-height: 960px; padding: 0 2px; }
.actual-day-lane { min-height: 100%; }
.floating-sessions { display: grid; gap: 6px; }
.floating-sessions span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed rgba(90,61,43,.38); background: var(--paper); color: var(--muted); font-size: 9px; }
.floating-sessions i { width: 9px; height: 9px; border-radius: 999px; border: 1px solid var(--line); flex: 0 0 auto; }
.quote-book-dialog { padding: 24px; display: grid; gap: 14px; background: #fbf6df; border: var(--pixel-border); color: var(--ink); }
.quote-book-progress { margin: 0; padding: 8px 10px; background: #efe2af; border: 2px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 900; }
.quote-book-list { max-height: min(58vh, 520px); overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.quote-book-item { padding: 13px; border: 2px solid var(--line); background: #fff3bd; box-shadow: 2px 3px 0 rgba(52,40,31,.1); }
.quote-book-item span, .quote-book-item strong, .quote-book-item small { display: block; }
.quote-book-item span { color: var(--red); font-size: 9px; font-weight: 900; }
.quote-book-item strong { margin-top: 6px; font: 900 14px/1.65 "Kaiti SC", "STKaiti", serif; }
.quote-book-item small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.tomorrow-plan-rows { display: grid; gap: 10px; }
.tomorrow-plan-row { padding: 12px; border: 2px solid var(--line); background: #fff3bd; display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr 34px; gap: 8px; align-items: end; box-shadow: 3px 3px 0 rgba(52,40,31,.1); }
.tomorrow-plan-row label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.tomorrow-plan-row input, .tomorrow-plan-row select { min-height: 38px; border: 2px solid var(--line); background: #fff8dc; padding: 0 8px; border-radius: 0; color: var(--ink); }
.plan-task-field { grid-template-columns: 1fr; }
.plan-task-field select, .plan-task-field input { width: 100%; }
.tomorrow-plan-row .icon-button { width: 34px; height: 38px; }
.review-side { display: grid; gap: 18px; }
.review-card-live { background: #254d3b; color: white; }
.review-card-live .kicker { color: #ffe166; }
.review-card-live h2 { margin: 8px 0 12px; font: 24px/1.35 "Courier New", "Songti SC", monospace; }
.review-card-live p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.review-card-live dl { display: grid; gap: 11px; margin: 18px 0 0; }
.review-card-live div { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.review-card-live dt { color: rgba(255,255,255,.54); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.review-card-live dd { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.review-history-list { margin-top: 12px; display: grid; gap: 10px; }
.review-history-item { padding: 13px; border: 2px solid var(--line); background: #fff3bd; }
.review-history-item strong, .review-history-item span { display: block; }
.review-history-item strong { font-size: 12px; }
.review-history-item span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.insights-header { display: flex; justify-content: space-between; align-items: end; }.insights-header p { color: var(--muted); font-size: 10px; margin: 6px 0 0; }
.stats-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.stats-grid article { padding: 20px; background: #fff8dc; border: 2px solid var(--line); box-shadow: 3px 3px 0 rgba(52,40,31,.12); }.stats-grid span, .stats-grid strong, .stats-grid em { display: block; }.stats-grid span { color: var(--muted); font-size: 10px; }.stats-grid strong { font-size: 28px; margin: 7px 0; }.stats-grid strong small { font-size: 11px; margin-left: 4px; }.stats-grid em { font-style: normal; color: var(--muted); font-size: 9px; }.stats-grid em.up { color: var(--green); }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 18px; margin-top: 18px; }.legend { color: var(--muted); font-size: 9px; }.legend i { width: 7px; height: 7px; background: var(--green); display: inline-block; margin-right: 5px; }
.bar-chart { height: 280px; margin-top: 24px; border-bottom: 3px solid var(--line); display: flex; align-items: end; gap: clamp(10px,3vw,28px); padding: 0 12px 4px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 67px, rgba(90,61,43,.12) 70px); overflow-x: auto; overflow-y: hidden; }.bar-chart div { flex: 1 0 42px; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; min-width: 32px; }.bar-chart span { font-size: 8px; color: var(--muted); margin-bottom: 5px; }.bar-chart i { width: min(36px,70%); height: var(--h); background: var(--green); border: 2px solid var(--line); transition: height .5s ease; }.bar-chart small { margin: 8px 0 -22px; font-size: 9px; color: var(--muted); white-space: nowrap; }
.subject-breakdown { text-align: left; }.donut { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 31%, var(--green) 31% 60%, var(--purple) 60% 87%, var(--red) 87% 100%); position: relative; }.donut::after { content:""; position:absolute; inset:24px; border-radius:50%; background:white; }.donut span { position:relative; z-index:1; font-weight:800; font-size:18px; text-align:center; }.donut small { display:block; font-size:8px; color:var(--muted); margin-top:3px; }.breakdown-list div { min-height: 30px; display: grid; grid-template-columns: 8px 1fr auto 32px; gap: 7px; align-items: center; font-size: 9px; }.breakdown-list i { width: 7px; height: 7px; border-radius: 50%; }.breakdown-list em { font-style: normal; color: var(--muted); text-align: right; }
.review-card { margin-top: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; background: #dff3c3; }.review-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--green); color: white; border: 2px solid var(--line); }.review-mark svg { width: 20px; }.review-card h2 { margin: 4px 0; }.review-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; max-width: 700px; }
.mobile-nav { display: none; }
dialog { width: min(440px, calc(100vw - 32px)); border: 0; padding: 0; box-shadow: var(--shadow); background: white; }.dialog-heading { display: flex; justify-content: space-between; align-items: center; }.dialog-heading h2 { margin: 5px 0 0; }dialog form { padding: 26px; display: grid; gap: 18px; }dialog::backdrop { background: rgba(28,30,26,.56); backdrop-filter: blur(3px); }dialog label { display: grid; gap: 8px; font-size: 11px; font-weight: 700; }dialog input, dialog select { min-height: 44px; border: 2px solid var(--line); background-color: var(--paper); padding: 0 12px; border-radius: 0; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.dialog-score-grid { grid-template-columns: 1fr 1fr; }
.goal-complete-dialog { background: transparent; box-shadow: none; }
.goal-complete-card { padding: 24px; display: grid; gap: 18px; background: #fff8dc; border: var(--pixel-border); box-shadow: var(--shadow); color: var(--ink); border-radius: 24px 18px 28px 16px; text-align: center; }
.goal-complete-card .dialog-heading { text-align: left; }
.goal-complete-illustration { width: 92px; height: 92px; margin: 0 auto; display: grid; place-items: center; position: relative; background: #f3e8bc; border: 3px solid var(--line); border-radius: 48% 52% 46% 54%; box-shadow: 5px 6px 0 rgba(57,66,51,.14); }
.goal-complete-illustration span { font: 900 36px "Kaiti SC", "STKaiti", serif; color: #6f7f52; }
.goal-complete-illustration i { position: absolute; right: -9px; top: -10px; width: 30px; height: 30px; color: #d5a943; }
.goal-complete-card p { margin: 0; font: 900 18px/1.7 "Kaiti SC", "STKaiti", "PingFang SC", serif; }
.install-guide { padding: 26px; display: grid; gap: 18px; }
.install-steps { display: grid; gap: 10px; }
.install-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.install-steps article span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 800; }
.install-steps strong { display: block; font-size: 13px; }
.install-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; min-height: 48px; padding: 0 18px; background: #20231f; color: white; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .25s ease; pointer-events: none; }.toast.show { transform: translateY(0); opacity: 1; }.toast svg { width: 17px; color: #9ac2b2; }.toast span { font-size: 11px; }

@media (max-width: 1100px) {
  .main-content { padding-inline: 26px; }
  .widget-board { grid-template-columns: 1fr 1fr; }
  .today-board, .plan-overview { grid-template-columns: 1fr; }
  .countdown-widget, .today-widget { grid-row: span 1; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }.countdown-panel { grid-column: 1/-1; }
  .content-columns, .page-grid, .focus-layout, .analytics-grid, .review-layout, .task-center-layout, .mainline-layout { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }.sidebar { display: none; }.main-content { margin-left: 0; padding: 0 16px 32px; }
  .topbar { min-height: 92px; }.topbar h1 { font-size: 22px; }.top-actions .icon-button { display: none; }.primary-button.compact span, .install-button span { display: none; }.primary-button.compact, .install-button { width: 42px; padding: 0; justify-content: center; }
  .pwa-card { grid-template-columns: 44px 1fr; align-items: start; }.pwa-icon { width: 44px; height: 44px; font-size: 22px; }.pwa-actions { grid-column: 2; justify-content: space-between; }.pwa-actions .primary-button { min-height: 40px; flex: 1; }
  .widget-board { grid-template-columns: 1fr 1fr; gap: 10px; }
  .compact-voyage-board { grid-template-columns: 1fr; }
  .voyage-log-widget { grid-template-columns: 68px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .voyage-log-widget .boss-relic-art { width: 64px; }
  .today-summary-grid { grid-template-columns: 1fr 1fr; }
  .voyage-goal-control { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .today-board, .plan-overview, .task-center-layout, .mainline-layout { grid-template-columns: 1fr; }
  .home-widget { padding: 15px; border-radius: 0; }
  .countdown-widget, .today-widget { grid-column: 1 / -1; }
  .countdown-widget strong { margin-top: 16px; font-size: 76px; }
  .today-widget ol { margin-top: 14px; }
  .mini-widget { min-height: 128px; }
  .dashboard-grid { gap: 10px; }.countdown-panel { padding: 20px; }.countdown-panel h2 { font-size: 18px; }.countdown-panel h2 strong { font-size: 29px; }
  .metric-panel { padding: 16px 14px; gap: 10px; }.metric-icon { width: 36px; height: 36px; }.metric-panel strong { font-size: 18px; }
  .content-columns, .right-column { display: grid; grid-template-columns: 1fr; }.section-block { padding: 19px; }
  .task-item { grid-template-columns: 26px 34px 1fr; min-height: 108px; align-items: start; }.task-duration { grid-column: 3; margin-top: 0; }.task-actions { grid-column: 3; justify-content: start; flex-wrap: wrap; }.task-copy h3 { line-height: 1.45; }
  .right-column { grid-template-columns: 1fr; }.quote-card { display: none; }
  .page-grid { display: block; }
  .focus-stage { min-height: calc(100vh - 170px); margin-inline: -16px; padding: 22px 16px; }.focus-subject-select { margin-top: 56px; grid-template-columns: 1fr; }.main-timer { font-size: clamp(66px, 22vw, 96px); }.timer-controls { gap: 14px; }.timer-toggle { width: 64px; height: 64px; }.focus-modes button { padding: 16px 11px; }.finish-timer-button { width: min(220px, 100%); justify-content: center; }
  .insights-header { align-items: start; }.insights-header .secondary-button { font-size: 0; width: 40px; padding: 0; }.stats-grid { gap: 10px; }.stats-grid article { padding: 15px; }.stats-grid strong { font-size: 23px; }
  .bar-chart { gap: 8px; padding-inline: 0; }.review-card { grid-template-columns: 40px 1fr; }.review-card .text-button { grid-column: 2; justify-self: start; }
  .review-import-actions { display: grid; }
  .period-review-stats { grid-template-columns: 1fr; }
  .period-donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .period-subject-list { width: 100%; }
  .timeline-card { padding: 12px; }
  .timeline-card-head { align-items: start; }
  .timeline-track { min-height: 112px; overflow-x: auto; }
  .timeline-item { min-width: 70px; min-height: 76px; }
  .timeline-ruler span { font-size: 7px; }
  .vertical-compare-card { padding: 12px; }
  .vertical-compare-head { gap: 42px; }
  .vertical-compare-head div { display: grid; gap: 5px; align-content: start; }
  .vertical-compare-head span { justify-self: start; }
  .vertical-compare-scroll { max-height: 620px; padding-right: 2px; }
  .vertical-compare-axis { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 6px; min-height: 840px; }
  .vertical-lane { background-size: auto 52px; }
  .vertical-tick b { min-width: 32px; font-size: 7px; }
  .vertical-tick i { width: 10px; }
  .vertical-timeline-item { left: 5px; right: 5px; min-height: 68px; padding: 6px; }
  .vertical-timeline-item strong { font-size: 9px; }
  .vertical-timeline-item span, .vertical-timeline-item small { font-size: 7px; }
  .actual-day-axis { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; min-height: 840px; }
  .tomorrow-plan-row { grid-template-columns: 1fr 1fr; }
  .tomorrow-plan-row label:last-of-type { grid-column: 1 / -1; }
  .stage-plan-form, .stage-plan-item { grid-template-columns: 1fr; }
  .stage-plan-item strong { text-align: left; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .fixed-task-form { grid-template-columns: 1fr; }
  .stage-task-card, .recurring-task-item { grid-template-columns: 34px minmax(0, 1fr); }
  .stage-task-card em, .recurring-task-item button { grid-column: 2; justify-self: start; }
  .world-map { min-height: 320px; margin-inline: -8px; }
  .lighthouse-stage { min-height: 500px; padding: 20px 14px; }
  .shoreline-stage { min-height: 540px; padding: 18px 12px; gap: 12px; }
  .shoreline-copy { width: 100%; min-height: 116px; padding: 10px 98px 10px 12px; }
  .shoreline-copy h3 { font-size: 17px; }
  .voyage-stage-count { top: 10px; right: 10px; min-height: 26px; padding: 0 8px; font-size: 10px; }
  .shoreline-scene { min-height: 270px; }
  .shoreline-art-wrap { width: 100%; max-width: 100%; }
  .shoreline-art { border-radius: 22px 16px 24px 16px; }
  .voyage-story-button { left: 4%; top: 5%; min-height: 30px; padding: 0 10px; border-width: 2px; font-size: 12px; }
  .voyage-story-panel { left: 4%; top: 14%; width: min(270px, 58%); padding: 9px 10px; border-width: 2px; font-size: 10px; line-height: 1.55; }
  .voyage-stage-label { min-height: 26px; max-width: 92px; padding-inline: 6px 8px; border-width: 2px; font-size: 10px; box-shadow: 2px 3px 0 rgba(57,66,51,.16); }
  .voyage-stage-label::before { width: 7px; height: 7px; border-width: 1px; }
  .shoreline-map { width: 680px; max-width: 112%; }
  .lighthouse-scene { min-height: 340px; gap: 12px; }
  .lighthouse-illustration { width: min(520px, 100%); }
  .salt-character-art { left: 6px; bottom: 56px; width: 138px; border-width: 2px; }
  .tower-control { display: grid; }
  .tower-control .primary-button { width: 100%; }
  .map-target-card { width: 100%; grid-template-columns: auto minmax(0, 1fr); }
  .map-target-card .secondary-button { grid-column: 2; justify-self: start; }
  .dialog-score-grid { grid-template-columns: 1fr 1fr; }
  .kingdom-list { grid-template-columns: 1fr 1fr; }
  .story-stats { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; inset: auto 0 0; min-height: 72px; background: #fff8dc; border-top: 3px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); z-index: 30; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 0 rgba(52,40,31,.12); }
  .mobile-nav button { border: 0; background: #fff8dc; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 3px; font-size: 9px; cursor: pointer; }.mobile-nav svg { width: 18px; }.mobile-nav button.active { color: var(--red); background: #fff3bd; }.mobile-nav .focus-nav svg { width: 28px; height: 28px; padding: 5px; border: 2px solid var(--line); border-radius: 0; background: var(--red); color: white; box-shadow: 2px 2px 0 rgba(52,40,31,.18); }
  .toast { left: 16px; right: 16px; bottom: 86px; justify-content: center; }
}

@media (max-width: 390px) {
  .topbar h1 { font-size: 19px; }.metric-panel small { display: none; }.metric-panel strong { font-size: 16px; }
  .section-heading h2, .section-block > h2 { font-size: 16px; }.subject-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .subject-tabs button { white-space: nowrap; }.timer-caption { text-align: center; }.focus-modes button { padding-inline: 8px; }
}

@media (max-width: 760px) {
  .focus-layout { gap: 0; }
  .focus-trial-cabin.focus-stage {
    min-height: 0;
    margin-inline: -14px;
    padding: 10px;
    border-width: 5px;
    border-radius: 22px;
    gap: 7px;
  }
  .focus-trial-cabin::before { height: 26px; }
  .focus-cabin-head { grid-template-columns: 1fr auto; gap: 7px; }
  .focus-cabin-head h2 { font-size: 18px; }
  .focus-crystal-pill { padding: 6px 8px; border-width: 2px; font-size: 12px; }
  .focus-crystal-pill span { width: 17px; height: 17px; border-width: 3px; }
  .focus-cabin-main { grid-template-columns: 1fr; gap: 7px; }
  .focus-console { padding: 8px; gap: 6px; border-width: 2px; box-shadow: inset 0 0 0 2px rgba(30,67,92,.12); }
  .focus-trial-cabin .focus-subject-select {
    margin-top: 0;
    grid-template-columns: minmax(82px, .72fr) minmax(0, 1.28fr);
    gap: 6px;
  }
  .focus-trial-cabin .focus-subject-select label { gap: 3px; font-size: 9px; }
  .focus-trial-cabin .focus-subject-select select,
  .focus-trial-cabin .focus-subject-select input { min-height: 29px; border-width: 2px; font-size: 11px; padding: 0 6px; }
  .focus-trial-cabin .main-timer { font-size: clamp(48px, 17vw, 76px); letter-spacing: 0; text-shadow: 4px 4px 0 rgba(30,67,92,.2); }
  .focus-trial-cabin .timer-caption { font-size: 10px; text-align: center; }
  .focus-trial-cabin .focus-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .focus-trial-cabin .focus-modes button { min-height: 26px; padding: 0 4px; border-width: 2px; font-size: 10px; box-shadow: 2px 2px 0 rgba(30,67,92,.18); }
  .focus-action-row { grid-template-columns: minmax(0, 1.8fr) minmax(86px, .7fr); }
  .focus-trial-cabin .timer-toggle { width: auto; height: 42px; min-height: 42px; border-width: 3px; font-size: 14px; }
  .focus-trial-cabin .finish-timer-button { width: auto; min-height: 34px; font-size: 11px; border-width: 3px; }
  .focus-care-top { grid-template-columns: 96px 1fr; gap: 10px; }
  .focus-salt-avatar { transform: scale(.74); transform-origin: left center; margin: -12px 0 -18px; }
  .focus-status-bars div { grid-template-columns: 34px 1fr 25px; font-size: 10px; }
  .focus-status-bars i { height: 13px; border-width: 2px; }
  .focus-care-speech { min-height: 38px; padding: 8px; font-size: 10px; line-height: 1.35; }
  .focus-trial-footer { grid-template-columns: minmax(0, 1fr) 78px; gap: 5px; }
  .focus-stall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .focus-stall button { min-height: 36px; padding: 3px 2px; border-width: 2px; }
  .focus-stall button strong { font-size: 9px; }
  .focus-stall button span { font-size: 7px; white-space: nowrap; }
  .focus-letter-button { min-height: 36px; padding: 0 4px; border-width: 3px; font-size: 10px; }
}

/* 7.1.0 visual unification: make the trial cabin match the Salt Road paper style. */
.harbor-paper,
.harbor-stage-paper {
  width: 100%;
  background:
    radial-gradient(circle, rgba(86,99,74,.18) 1.4px, transparent 1.7px),
    linear-gradient(180deg, rgba(255,248,220,.94), rgba(249,239,196,.94));
  background-size: 22px 22px, auto;
  border: 3px solid var(--line);
  box-shadow: 5px 6px 0 rgba(52,40,31,.12);
}
.harbor-paper {
  display: grid;
  gap: 0;
  margin-top: 12px;
  padding: 18px;
  min-height: min(760px, calc(100vh - 150px));
}
.harbor-stage-paper {
  margin-top: 20px;
}
.harbor-log-strip {
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 0;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.harbor-log-strip .boss-relic-art { width: 70px; }
.harbor-log-strip .voyage-log-main {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(240px, 1fr);
  gap: 10px 14px;
  align-items: end;
}
.harbor-log-strip .widget-topline,
.harbor-log-strip .countdown-sentence,
.harbor-log-strip .voyage-total-report {
  grid-column: 1;
}
.harbor-log-strip .map-target-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
}
.harbor-log-strip .today-summary-grid {
  grid-column: 1 / -1;
  grid-template-columns: minmax(100px, .7fr) minmax(100px, .7fr) minmax(180px, 1fr);
}
.harbor-log-strip .map-target-card,
.harbor-log-strip .today-summary-grid div {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.harbor-log-strip .map-target-card {
  min-height: 0;
  align-items: start;
}
.harbor-log-strip .map-target-card .secondary-button {
  margin-top: 6px;
}
.harbor-log-strip .today-summary-grid {
  padding-top: 8px;
  border-top: 2px solid rgba(86,99,74,.38);
}
.harbor-log-strip .today-summary-grid div {
  display: grid;
  align-content: start;
  gap: 3px;
}
.harbor-log-strip .today-summary-grid strong {
  margin-top: 0;
  font-size: 20px;
}
.harbor-log-strip .voyage-goal-control {
  grid-template-columns: auto minmax(74px, 92px) auto;
  align-items: center;
}
.harbor-log-strip .voyage-goal-control span {
  grid-column: 1 / -1;
}
.harbor-log-strip .voyage-goal-control label {
  width: 92px;
  min-height: 32px;
  background: #fff8dc;
  border: 2px solid rgba(86,99,74,.68);
}
.harbor-log-strip .voyage-goal-control .text-button {
  justify-self: end;
}
.harbor-log-strip .summary-track {
  grid-column: 1 / -1;
  margin: 0;
}
.harbor-log-strip .voyage-total-report {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.harbor-matrix {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  min-height: 420px;
  border-top: 3px solid var(--line);
}
.harbor-matrix::before,
.harbor-matrix::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(86,99,74,.78);
}
.harbor-matrix::before {
  top: 0;
  bottom: 0;
  left: 57.5%;
  width: 3px;
  transform: translateX(-1.5px);
}
.harbor-matrix::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-1.5px);
}
.harbor-cell {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.harbor-cell-quests {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.harbor-cell-calendar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.harbor-cell .section-heading {
  align-items: start;
}
.harbor-cell .task-list {
  align-self: stretch;
  max-height: 315px;
  overflow: auto;
  padding-right: 4px;
}
.harbor-cell .task-list:empty::before,
.harbor-cell .empty-state {
  min-height: 190px;
}
.harbor-cell .task-calendar-panel {
  max-height: 326px;
  overflow: auto;
}
.harbor-stage-paper .section-heading {
  margin-bottom: 12px;
}
.harbor-stage-paper .stage-plan-list {
  min-height: 145px;
}

.focus-trial-cabin.focus-stage {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 14%, rgba(111,127,82,.13), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(183,88,70,.10), transparent 22%),
    linear-gradient(180deg, #fff8dc 0%, #f7efc8 100%);
  border: var(--pixel-border);
  box-shadow: var(--shadow);
  border-radius: 24px 18px 28px 16px;
}
.focus-trial-cabin.focus-stage::before {
  inset: 0;
  height: auto;
  opacity: .22;
  background:
    linear-gradient(rgba(90,61,43,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,61,43,.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.focus-cabin-head h2,
.focus-trial-cabin .kicker,
.focus-trial-cabin .timer-caption,
.focus-status-bars div,
.focus-care-speech { color: var(--ink); }
.focus-cabin-head .kicker { color: var(--red); }
.focus-crystal-pill {
  color: var(--ink);
  background: #fff3bd;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(52,40,31,.12);
}
.focus-crystal-pill span {
  border-color: var(--line);
  background: linear-gradient(135deg, #fffaf0 0 35%, #f3d77d 35% 68%, #d5a943 68%);
}
.focus-console {
  background: rgba(255,248,220,.76);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(52,40,31,.10);
}
.focus-trial-cabin .focus-subject-select label { color: var(--muted); }
.focus-trial-cabin .focus-subject-select select,
.focus-trial-cabin .focus-subject-select input {
  color: var(--ink);
  background: #fff8dc;
  border-color: var(--line);
  box-shadow: inset 2px 2px 0 rgba(52,40,31,.08);
}
.focus-trial-cabin .main-timer {
  color: #3a2b23;
  text-shadow: 4px 4px 0 rgba(183,88,70,.16);
}
.focus-trial-cabin .focus-modes button {
  color: var(--muted);
  background: #efe2af;
  border-color: var(--line);
  box-shadow: 2px 3px 0 rgba(52,40,31,.12);
}
.focus-trial-cabin .focus-modes button.active {
  color: #fff8dc;
  background: var(--green);
  border-color: var(--line);
}
.focus-trial-cabin .timer-toggle {
  color: white;
  background: var(--red);
  border-color: var(--line);
  box-shadow: 4px 4px 0 rgba(52,40,31,.18);
}
.focus-trial-cabin .finish-timer-button {
  color: var(--ink);
  background: #fff8dc;
  border-color: var(--line);
  box-shadow: 3px 3px 0 rgba(52,40,31,.12);
}
.focus-status-bars i {
  background: rgba(90,61,43,.18);
  border-color: var(--line);
}
.focus-care-speech {
  background: #dce7bd;
  border-color: var(--line);
}
.focus-stall button {
  color: var(--ink);
  background: #fff8dc;
  border-color: var(--line);
}
.focus-stall button span { color: var(--muted); }
.focus-letter-button {
  color: #fff8dc;
  background: var(--green);
  border-color: var(--line);
  box-shadow: 3px 3px 0 rgba(52,40,31,.14);
}

@media (max-width: 760px) {
  .harbor-paper {
    margin-inline: -6px;
    padding: 12px;
    min-height: 0;
    border-width: 2px;
    box-shadow: 3px 4px 0 rgba(52,40,31,.12);
  }
  .harbor-log-strip {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 12px;
  }
  .harbor-log-strip .boss-relic-art { width: 54px; }
  .harbor-log-strip .voyage-log-main,
  .harbor-log-strip .today-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .harbor-log-strip .map-target-card,
  .harbor-log-strip .today-summary-grid,
  .harbor-log-strip .summary-track,
  .harbor-log-strip .voyage-total-report {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .harbor-log-strip .countdown-sentence { font-size: 17px; }
  .harbor-log-strip .today-summary-grid .voyage-goal-control { grid-column: 1 / -1; }
  .harbor-matrix {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .harbor-matrix::before { display: none; }
  .harbor-matrix::after {
    top: auto;
    bottom: 50%;
    opacity: .45;
  }
  .harbor-cell {
    min-height: 320px;
    padding: 14px 8px;
  }
  .harbor-cell + .harbor-cell {
    border-top: 2px solid rgba(86,99,74,.45);
  }
  .harbor-cell .task-list,
  .harbor-cell .task-calendar-panel {
    max-height: 290px;
  }
  .harbor-stage-paper {
    margin-inline: -6px;
    padding: 16px 12px;
    border-width: 2px;
    box-shadow: 3px 4px 0 rgba(52,40,31,.12);
  }
  .focus-trial-cabin.focus-stage {
    border-width: 3px;
    box-shadow: 4px 5px 0 rgba(52,40,31,.14);
  }
  .focus-console {
    border-width: 2px;
    box-shadow: 2px 2px 0 rgba(52,40,31,.10);
  }
  .focus-trial-cabin .timer-toggle,
  .focus-trial-cabin .finish-timer-button,
  .focus-letter-button { border-color: var(--line); }
}

/* v39: low-saturation pixel widget desktop skin. */
:root {
  --pixel-ink: #473d31;
  --pixel-shadow: #7f7962;
  --pixel-hi: rgba(255, 255, 242, .72);
  --pixel-mint: #d9e8e1;
  --pixel-cream: #fff8df;
  --pixel-green: #aebd7b;
  --pixel-blue: #89addb;
  --pixel-coral: #c98070;
  --pixel-brown: #9c8d79;
  --pixel-yellow: #e5bb5c;
  --line: var(--pixel-ink);
  --pixel-border: 4px solid var(--pixel-ink);
  --shadow: 6px 7px 0 rgba(71,61,49,.26);
}

html,
body {
  background: #dce9e6;
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.36) 0 16%, transparent 16%),
    linear-gradient(135deg, transparent 0 72%, rgba(151,180,139,.58) 72% 82%, rgba(118,148,94,.62) 82%),
    linear-gradient(180deg, #dce9e6 0%, #d0e2df 62%, #aebf92 62%, #95aa76 100%);
  image-rendering: pixelated;
}

.main-content {
  padding-top: 18px;
}

.topbar {
  min-height: 92px;
}

.topbar h1 {
  text-shadow: 3px 3px 0 rgba(255,255,242,.78);
}

.sidebar {
  background: #6f7f52;
  border-right: 5px solid var(--pixel-ink);
  box-shadow: 7px 0 0 rgba(71,61,49,.18);
}

.brand-mark,
.sidebar-card,
.nav-item.active,
.profile-chip .avatar,
.pwa-card,
.home-widget,
.section-block,
.countdown-panel,
.metric-panel,
.harbor-paper,
.harbor-stage-paper,
.focus-trial-cabin.focus-stage,
.review-card,
.timeline-card,
.vertical-compare-card,
.log-card,
dialog {
  border: 5px solid var(--pixel-ink);
  border-radius: 0;
  box-shadow:
    7px 7px 0 rgba(71,61,49,.24),
    inset 5px 5px 0 var(--pixel-hi),
    inset -6px -6px 0 rgba(71,61,49,.10);
}

.home-widget,
.section-block,
.countdown-panel,
.metric-panel,
.harbor-paper,
.harbor-stage-paper,
.pwa-card,
.focus-trial-cabin.focus-stage,
dialog {
  position: relative;
  background-color: var(--pixel-cream);
}

.home-widget::after,
.section-block::after,
.countdown-panel::after,
.metric-panel::after,
.harbor-paper::after,
.harbor-stage-paper::after,
.pwa-card::after,
.focus-trial-cabin.focus-stage::after,
dialog::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 13px;
  height: 13px;
  background: rgba(255,255,242,.78);
  box-shadow:
    calc(100% - 20px) calc(100% - 20px) 0 rgba(71,61,49,.14);
  pointer-events: none;
}

.harbor-paper,
.harbor-stage-paper {
  background:
    linear-gradient(90deg, rgba(71,61,49,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(71,61,49,.045) 1px, transparent 1px),
    #dfe9df;
  background-size: 18px 18px, 18px 18px, auto;
}

.harbor-log-strip {
  border: 0;
  box-shadow: none;
}

.harbor-matrix {
  border-top: 5px solid var(--pixel-ink);
}

.harbor-matrix::before,
.harbor-matrix::after {
  background: var(--pixel-ink);
}

.harbor-cell {
  box-shadow: none;
}

.harbor-stage-paper {
  background:
    linear-gradient(90deg, rgba(71,61,49,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(71,61,49,.04) 1px, transparent 1px),
    #fff8df;
  background-size: 18px 18px, 18px 18px, auto;
}

.home-widget:nth-of-type(4n+1),
.metric-icon.green,
.subject-tabs button.active {
  background-color: var(--pixel-green);
}

.home-widget:nth-of-type(4n+2),
.focus-letter-button,
.mobile-nav button:nth-child(2) {
  background-color: var(--pixel-blue);
}

.home-widget:nth-of-type(4n+3),
.primary-button,
.timer-toggle,
.mobile-nav button.active {
  background-color: var(--pixel-coral);
}

.home-widget:nth-of-type(4n+4),
.metric-icon.amber {
  background-color: #f5e8b5;
}

.countdown-sentence b,
.eyebrow,
.kicker,
.text-button {
  color: #b6675a;
}

.primary-button,
.secondary-button,
.install-button,
.icon-button,
.text-button,
.subject-tabs button,
.task-actions .secondary-button.compact,
.focus-trial-cabin .focus-modes button,
.focus-trial-cabin .timer-toggle,
.focus-trial-cabin .finish-timer-button,
.focus-stall button,
.focus-letter-button,
.calendar-mode-tabs button,
.task-date-actions .text-button,
.task-calendar-actions .icon-button,
.mobile-nav button {
  border: 4px solid var(--pixel-ink);
  border-radius: 0;
  box-shadow:
    5px 5px 0 rgba(71,61,49,.24),
    inset 4px 4px 0 rgba(255,255,242,.55),
    inset -4px -4px 0 rgba(71,61,49,.12);
}

.text-button {
  min-height: 32px;
  padding-inline: 10px;
  background: #fff8df;
}

.icon-button.subtle {
  border: 4px solid var(--pixel-ink);
  background: #fff8df;
}

input,
select,
textarea,
.voyage-goal-control label {
  border: 4px solid var(--pixel-ink);
  border-radius: 0;
  background-color: #fff8df;
  box-shadow:
    inset 3px 3px 0 rgba(71,61,49,.12),
    inset -3px -3px 0 rgba(255,255,242,.62);
}

.task-item,
.stage-plan-item,
.recurring-inline-panel,
.target-total,
.focus-preview,
.map-target-card,
.task-calendar-day,
.timeline-item,
.vertical-timeline-item,
.period-subject-list li {
  border: 4px solid var(--pixel-ink);
  border-radius: 0;
  box-shadow:
    5px 5px 0 rgba(71,61,49,.18),
    inset 3px 3px 0 rgba(255,255,242,.52);
}

.task-item,
.stage-plan-item,
.task-calendar-day,
.timeline-item {
  background: #fff8df;
}

.subject-tabs button {
  background: #f5e8b5;
}

.subject-tabs button.active {
  color: #fff8df;
}

.summary-track,
.countdown-track,
.stage-plan-progress,
.focus-status-bars i {
  border: 4px solid var(--pixel-ink);
  background: #d9d1b6;
  box-shadow: inset 3px 3px 0 rgba(71,61,49,.12);
}

.summary-track span,
.countdown-track span,
.stage-plan-progress span,
.focus-status-bars b {
  background: var(--pixel-green);
}

.boss-relic-art,
.salt-character-art,
.pixel-salt-avatar,
.brand-mark.salt-logo {
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0 rgba(71,61,49,.24));
}

.harbor-log-strip .map-target-card,
.harbor-log-strip .today-summary-grid div {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.harbor-log-strip .voyage-goal-control label {
  box-shadow:
    inset 3px 3px 0 rgba(71,61,49,.12),
    inset -3px -3px 0 rgba(255,255,242,.62);
}

.voyage-goal-control input,
.stage-plan-form input,
.stage-plan-form select,
.target-card input,
.focus-trial-cabin .focus-subject-select select,
.focus-trial-cabin .focus-subject-select input {
  border: 4px solid var(--pixel-ink);
  box-shadow:
    inset 3px 3px 0 rgba(71,61,49,.12),
    inset -3px -3px 0 rgba(255,255,242,.62);
}

.focus-trial-cabin.focus-stage {
  background:
    linear-gradient(90deg, rgba(71,61,49,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(71,61,49,.045) 1px, transparent 1px),
    #dfe9df;
  background-size: 18px 18px, 18px 18px, auto;
}

.focus-console {
  border: 4px solid var(--pixel-ink);
  background: #fff8df;
  box-shadow:
    5px 5px 0 rgba(71,61,49,.18),
    inset 4px 4px 0 rgba(255,255,242,.56);
}

.focus-care-speech {
  border: 4px solid var(--pixel-ink);
  background: #d6e3bb;
  box-shadow: inset 4px 4px 0 rgba(255,255,242,.42);
}

.mobile-nav {
  background: rgba(89,78,60,.88);
  border-top: 5px solid var(--pixel-ink);
  box-shadow: 0 -7px 0 rgba(71,61,49,.2);
}

.mobile-nav button {
  margin: 8px 6px;
  min-height: 46px;
  background: #fff8df;
  color: var(--pixel-ink);
}

.mobile-nav .focus-nav svg {
  border: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, #dce9e6 0 62%, #a9bd8d 62% 100%);
  }
  .main-content {
    padding-inline: 14px;
  }
  .harbor-paper,
  .harbor-stage-paper,
  .section-block,
  .home-widget,
  .focus-trial-cabin.focus-stage {
    border-width: 4px;
    box-shadow:
      5px 5px 0 rgba(71,61,49,.24),
      inset 4px 4px 0 var(--pixel-hi),
      inset -5px -5px 0 rgba(71,61,49,.10);
  }
  .primary-button,
  .secondary-button,
  .install-button,
  .icon-button,
  .text-button,
  .subject-tabs button,
  .task-item,
  .stage-plan-item,
  input,
  select,
  textarea {
    border-width: 3px;
  }
}
