:root {
  color-scheme: light;
  --ink: #18221f;
  --ink-soft: #52605b;
  --muted: #7b8580;
  --paper: #f4f2eb;
  --surface: #fffefa;
  --surface-soft: #ecefe8;
  --line: #d9ddd4;
  --forest: #1e4a3a;
  --forest-2: #2d6752;
  --sage: #bcd0be;
  --sage-pale: #e7eee6;
  --apricot: #e6a36f;
  --apricot-pale: #faeadc;
  --danger: #a44e45;
  --shadow: 0 24px 80px rgba(34, 46, 41, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { background: #dfe4dd; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.85), transparent 28rem),
    radial-gradient(circle at 85% 90%, rgba(173, 199, 180, 0.55), transparent 32rem),
    #dfe4dd;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button, [tabindex="0"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, [tabindex="0"]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(52, 112, 87, 0.28);
  outline-offset: 2px;
}
a { color: var(--forest-2); text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype-note {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  color: #42504a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(30, 51, 42, .12);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.prototype-note__dot {
  width: 7px;
  height: 7px;
  background: var(--apricot);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 163, 111, .2);
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  height: 34px;
  padding: 11px 21px 0;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
}

.status-icons { display: flex; gap: 6px; align-items: center; font-size: 7px; }
.battery { width: 17px; height: 8px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.battery::before { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; background: currentColor; border-radius: 0 1px 1px 0; }

.app-viewport { min-height: 100dvh; }

.page {
  display: none;
  min-height: 100dvh;
  padding: 55px 18px calc(108px + var(--safe-bottom));
  animation: page-in .28s ease both;
}

.page--active { display: block; }
.page--onboarding, .page[data-page="idea-detail"], .page[data-page="project-detail"], .page[data-page="retrospective"] { padding-bottom: 42px; }

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

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  min-height: 68px;
  margin-bottom: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.topbar h1 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.topbar .eyebrow { color: var(--muted); }

.icon-button, .close-button, .back-button {
  display: grid;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  place-items: center;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(217,221,212,.9);
  border-radius: 14px;
  cursor: pointer;
}

.icon-button { font-size: 12px; font-weight: 800; }
.icon-button--plus { padding: 0; font-size: 24px; font-weight: 400; }
.close-button, .back-button { padding: 0; font-size: 24px; }

.text-button {
  min-height: 44px;
  padding: 0 4px;
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 800;
  background: none;
  border: 0;
  cursor: pointer;
}

.chip {
  display: inline-flex;
  min-height: 24px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  background: var(--sage-pale);
  border-radius: 999px;
  white-space: nowrap;
}

.chip--mock { color: #8a552f; background: var(--apricot-pale); }
.chip--review { color: #73553b; background: #f1e8d8; }
.chip--active { color: #fff; background: var(--forest-2); }
.chip--independent { color: #634d79; background: #eee8f4; }
.chip--disabled { color: #727a76; background: #e7e9e5; }

.button {
  min-height: 50px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}

.button--wide { width: 100%; }
.button--primary { color: #fff; background: var(--forest); box-shadow: 0 12px 24px rgba(30,74,58,.18); }
.button--secondary { color: var(--forest); background: var(--sage-pale); }
.button--ghost { color: var(--ink-soft); background: transparent; }
.button--disabled, .button:disabled { color: #959b97; background: #e3e5e0; cursor: not-allowed; box-shadow: none; }
.button--danger-disabled { color: #a98e8a; background: #efe6e4; cursor: not-allowed; }

.section-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-heading .eyebrow { margin-bottom: 5px; }

/* Onboarding */
.hero-header { padding: 24px 4px 18px; }
.brand-mark { position: relative; width: 46px; height: 46px; margin-bottom: 24px; background: var(--forest); border-radius: 15px 15px 15px 5px; box-shadow: 0 12px 24px rgba(30,74,58,.22); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; background: var(--sage); border-radius: 50%; }
.brand-mark::before { width: 9px; height: 9px; top: 11px; left: 11px; }
.brand-mark::after { width: 8px; height: 8px; right: 10px; bottom: 10px; }
.brand-mark span { width: 13px; height: 13px; left: 17px; top: 17px; background: #fff; }
.hero-header h1 { margin-bottom: 14px; font-size: clamp(30px, 8.5vw, 38px); line-height: 1.14; letter-spacing: -.055em; }
.hero-header > p { max-width: 335px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.entry-stack { display: grid; gap: 10px; margin-top: 16px; }
.entry-card { display: grid; grid-template-columns: 34px 1fr 28px; min-height: 78px; padding: 15px 14px; align-items: center; text-align: left; background: rgba(255,255,255,.72); border: 1px solid rgba(217,221,212,.9); border-radius: 20px; cursor: pointer; }
.entry-card--primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.entry-card__number { align-self: start; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.entry-card--primary .entry-card__number { color: var(--sage); }
.entry-card__copy { display: grid; gap: 5px; }
.entry-card__copy strong { font-size: 15px; }
.entry-card__copy small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.entry-card--primary .entry-card__copy small { color: #cbd9d1; }
.entry-card__arrow { font-size: 18px; }
.setup-preview { margin-top: 22px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 14px 34px rgba(42,56,50,.06); }
.step-count { color: var(--muted); font-size: 11px; font-weight: 800; }
.progress-rail { height: 4px; margin: 18px 0 22px; overflow: hidden; background: var(--surface-soft); border-radius: 99px; }
.progress-rail span { display: block; width: 25%; height: 100%; background: var(--forest-2); border-radius: inherit; }
.field-label, .retro-form label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.mock-input, .mock-textarea { min-height: 52px; padding: 15px; color: var(--ink); font-size: 13px; line-height: 1.55; background: #f5f6f2; border: 1px solid var(--line); border-radius: 14px; }
.mock-input--placeholder { color: #989e9a; }
.setup-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 16px 0 18px; }
.setup-point { padding: 7px 2px; color: var(--muted); font-size: 9px; font-weight: 700; text-align: center; background: #f1f2ed; border-radius: 8px; }
.setup-point.is-active { color: var(--forest); background: var(--sage-pale); }

/* Home */
.recovery-strip { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; margin-bottom: 14px; padding: 13px; align-items: center; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 17px; }
.recovery-strip__icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--forest); background: var(--sage-pale); border-radius: 11px; }
.recovery-strip__copy > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.recovery-strip__copy strong { font-size: 12px; }
.recovery-strip__copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.recovery-strip .text-button { min-height: 44px; font-size: 10px; }

.action-card {
  position: relative;
  z-index: 2;
  min-height: 322px;
  padding: 24px 21px 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #173e30 0%, #245c47 72%, #2d6c52 100%);
  border-radius: 30px;
  box-shadow: 0 22px 44px rgba(25,65,50,.25);
}
.action-card::after { content: ""; position: absolute; right: -52px; top: -60px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.02); pointer-events: none; }
.action-card__top { position: relative; z-index: 1; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.action-kicker { color: #bcd7c7; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.action-badge { display: inline-flex; min-height: 26px; padding: 5px 9px; align-items: center; color: #edf6f0; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.action-card h2 { position: relative; z-index: 1; max-width: 330px; margin: 27px 0 22px; font-size: clamp(28px, 7.8vw, 34px); line-height: 1.17; letter-spacing: -.055em; }
.action-reason { position: relative; z-index: 1; display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-bottom: 18px; color: #d8e5dd; font-size: 12px; line-height: 1.55; }
.action-reason span { display: grid; width: 27px; height: 27px; place-items: center; color: #fff; background: rgba(255,255,255,.12); border-radius: 9px; }
.action-details { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 21px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); }
.action-detail { display: grid; gap: 5px; }
.action-detail span { color: #a8c2b3; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.action-detail strong { font-size: 11px; line-height: 1.45; }
.action-detail:last-child { text-align: right; }
.action-buttons { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-buttons button { min-height: 50px; color: #fff; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 15px; cursor: pointer; }
.action-buttons .action-buttons__primary { color: var(--forest); background: #f2f8f3; border-color: #f2f8f3; }

.context-card { margin-top: 12px; padding: 17px; background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 22px; }
.context-card__head { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; justify-content: space-between; }
.context-card__head > span:first-child { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.context-card h3 { margin-bottom: 12px; font-size: 16px; line-height: 1.35; }
.context-next { display: grid; gap: 4px; padding: 12px; background: var(--surface-soft); border-radius: 13px; }
.context-next span { color: var(--muted); font-size: 9px; font-weight: 800; }
.context-next strong { font-size: 12px; line-height: 1.4; }
.context-card__footer { display: flex; gap: 8px; margin-top: 11px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.context-card__footer button { min-height: 44px; padding: 0 10px; color: var(--forest); font-size: 11px; font-weight: 800; background: var(--sage-pale); border: 0; border-radius: 11px; cursor: pointer; }

.empty-action-card { padding: 25px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 16px 38px rgba(37,53,46,.08); }
.empty-action-card__mark { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; color: var(--forest); font-size: 24px; background: var(--sage-pale); border-radius: 18px; }
.empty-action-card h2 { margin-bottom: 9px; font-size: 23px; letter-spacing: -.035em; }
.empty-action-card p { margin-bottom: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.empty-actions { display: grid; gap: 9px; }
.empty-actions--three { grid-template-columns: 1fr; }
.empty-actions button { min-height: 46px; padding: 0 13px; color: var(--forest); font-size: 12px; font-weight: 800; background: var(--sage-pale); border: 0; border-radius: 13px; cursor: pointer; }
.empty-actions button:first-child { color: #fff; background: var(--forest); }

.return-banner { margin-top: 12px; padding: 18px; color: #553923; background: linear-gradient(135deg, #faeadc, #f4dcc7); border: 1px solid #ead0b8; border-radius: 22px; }
.return-banner__head { display: flex; gap: 8px; align-items: center; }
.return-banner__head span { display: grid; width: 30px; height: 30px; place-items: center; background: rgba(255,255,255,.55); border-radius: 10px; }
.return-banner h3 { margin: 13px 0 7px; font-size: 17px; }
.return-banner p { margin-bottom: 14px; font-size: 11px; line-height: 1.55; }
.return-banner button { width: 100%; min-height: 46px; color: #fff; font-size: 12px; font-weight: 800; background: #835b3e; border: 0; border-radius: 13px; cursor: pointer; }

.quick-dock { margin-top: 14px; }
.quick-dock > button { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; width: 100%; min-height: 68px; padding: 12px 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 25px rgba(38,52,46,.07); cursor: pointer; }
.quick-dock__plus { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; font-size: 23px; background: var(--apricot); border-radius: 14px; }
.quick-dock strong, .quick-dock small { display: block; }
.quick-dock strong { margin-bottom: 4px; font-size: 13px; }
.quick-dock small { color: var(--muted); font-size: 10px; }
.quick-dock__hint { color: var(--muted); font-size: 9px; font-weight: 800; }

/* Inbox */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; background: #e6e8e2; border-radius: 15px; }
.segmented button { min-height: 44px; padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 800; background: transparent; border: 0; border-radius: 11px; cursor: pointer; }
.segmented button.is-active { color: var(--ink); background: #fff; box-shadow: 0 4px 12px rgba(42,55,49,.07); }
.segmented span { display: inline-grid; min-width: 19px; min-height: 19px; margin-left: 3px; padding: 0 4px; place-items: center; background: var(--sage-pale); border-radius: 99px; }
.inbox-summary { display: flex; margin: 18px 2px 11px; align-items: flex-end; justify-content: space-between; }
.inbox-summary span { font-size: 12px; font-weight: 800; }
.inbox-summary small { max-width: 145px; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: right; }
.idea-list { display: grid; gap: 11px; }
.idea-card { padding: 17px; background: rgba(255,255,255,.77); border: 1px solid var(--line); border-radius: 21px; cursor: pointer; }
.idea-card--featured { background: #fffefa; box-shadow: 0 13px 28px rgba(42,57,50,.07); }
.idea-card__meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 9px; font-weight: 700; }
.idea-card__meta time { margin-left: auto; }
.source-dot { width: 7px; height: 7px; background: var(--sage); border-radius: 50%; }
.source-dot--video { background: var(--apricot); }
.source-dot--chat { background: #9d87bb; }
.idea-card h2 { margin: 14px 0 8px; font-size: 16px; line-height: 1.42; letter-spacing: -.02em; }
.idea-card p { margin-bottom: 15px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.idea-card__footer { display: flex; align-items: center; justify-content: space-between; color: var(--forest-2); font-size: 10px; font-weight: 800; }
.empty-preview { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; margin-top: 14px; padding: 14px; align-items: center; border: 1px dashed #c5cbc2; border-radius: 18px; }
.empty-preview__icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--forest); background: var(--sage-pale); border-radius: 12px; }
.empty-preview strong { font-size: 11px; }
.empty-preview p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

/* Detail pages */
.detail-header { display: grid; grid-template-columns: 52px 1fr auto; min-height: 52px; margin-bottom: 18px; align-items: center; }
.detail-header > span:nth-child(2) { font-size: 13px; font-weight: 800; text-align: center; }
.detail-lead { padding: 8px 3px 20px; }
.detail-lead__meta { display: flex; margin-bottom: 15px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.detail-lead h1 { margin-bottom: 15px; font-size: clamp(28px, 7.5vw, 34px); line-height: 1.22; letter-spacing: -.05em; }
.detail-lead > p { margin-bottom: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.detail-section { margin-top: 12px; padding: 19px; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 23px; }
.read-only { color: var(--muted); font-size: 9px; font-weight: 800; }
.detail-section blockquote { margin: 18px 0; padding: 15px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; background: var(--surface-soft); border-left: 3px solid var(--sage); border-radius: 0 13px 13px 0; }
.source-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }
.source-row__value { font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mock-grid button { display: grid; min-height: 91px; padding: 11px 5px; place-items: center; background: #f2f3ef; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.mock-grid button > span { font-size: 20px; }
.mock-grid strong { font-size: 10px; }
.mock-grid small { color: #97643f; font-size: 8px; font-weight: 700; }
.reminder-preview { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; margin-top: 9px; padding: 11px; align-items: center; background: var(--apricot-pale); border-radius: 13px; }
.reminder-preview > span:first-child { color: #8a552f; font-size: 17px; }
.reminder-preview div { display: grid; gap: 3px; }
.reminder-preview strong { font-size: 10px; }
.reminder-preview small { color: #806851; font-size: 8px; line-height: 1.4; }
.action-list { display: grid; gap: 8px; margin-top: 16px; }
.action-list button { display: flex; min-height: 68px; padding: 12px 13px; align-items: center; justify-content: space-between; text-align: left; background: #f3f5f1; border: 1px solid transparent; border-radius: 15px; cursor: pointer; }
.action-list button span { display: grid; gap: 4px; }
.action-list strong { font-size: 12px; }
.action-list small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.action-list b { color: var(--forest-2); font-size: 16px; }
.guardrail-note { margin: 14px 0 0; padding: 11px 12px; color: #6b533f; font-size: 9px; line-height: 1.55; background: var(--apricot-pale); border-radius: 11px; }
.reference-lock { display: grid; grid-template-columns: 42px 1fr; gap: 12px; margin-top: 12px; padding: 16px; align-items: start; color: #6b3c36; background: #f3e8e5; border: 1px solid #e6d2ce; border-radius: 20px; }
.reference-lock__icon { display: grid; width: 40px; height: 40px; place-items: center; font-size: 19px; background: rgba(255,255,255,.55); border-radius: 13px; }
.reference-lock strong { font-size: 12px; }
.reference-lock p { margin: 5px 0 0; font-size: 10px; line-height: 1.55; }
.danger-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.danger-help { width: 100%; min-height: 44px; margin-top: 4px; color: var(--danger); font-size: 10px; font-weight: 800; background: transparent; border: 0; cursor: pointer; }

/* Global */
.attention-note, .candidate-note { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px; align-items: center; color: #5a4a32; background: #f6ead6; border: 1px solid #ead8ba; border-radius: 17px; }
.attention-note > span, .candidate-note > span { display: grid; width: 32px; height: 32px; place-items: center; background: rgba(255,255,255,.6); border-radius: 11px; }
.attention-note p, .candidate-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.global-section { margin-top: 22px; }
.project-card { margin-top: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; cursor: pointer; }
.project-card--active { color: #fff; background: linear-gradient(145deg, #1d4637, #2d6751); border-color: #2d6751; box-shadow: 0 18px 34px rgba(31,75,58,.2); }
.project-status { display: inline-flex; padding: 5px 8px; color: #dbe9df; font-size: 9px; font-weight: 800; background: rgba(255,255,255,.1); border-radius: 99px; }
.project-card h3 { margin: 17px 0 12px; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.project-card > p { color: #cbdcd2; font-size: 11px; line-height: 1.6; }
.project-card__next { display: grid; gap: 4px; margin-top: 17px; padding: 13px; background: rgba(255,255,255,.09); border-radius: 14px; }
.project-card__next span { color: #a9c2b3; font-size: 9px; font-weight: 800; }
.project-card__next strong { font-size: 11px; }
.project-card__footer { display: flex; margin-top: 15px; justify-content: space-between; color: #bdd0c4; font-size: 9px; }
.compact-action { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 11px; padding: 15px; align-items: center; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 19px; }
.compact-action h3 { margin: 9px 0 5px; font-size: 13px; }
.compact-action p { margin: 0; color: var(--muted); font-size: 9px; }
.compact-action > button { min-height: 44px; padding: 0 12px; color: var(--forest); font-size: 10px; font-weight: 800; background: var(--sage-pale); border: 0; border-radius: 12px; cursor: pointer; }
.count-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.project-list { display: grid; gap: 8px; margin-top: 11px; }
.project-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; min-height: 64px; padding: 12px 13px; align-items: center; background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 17px; cursor: pointer; }
.project-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; }
.project-dot--candidate { background: var(--apricot); }
.project-dot--paused { background: #a4a9a6; }
.project-dot--completed { background: var(--forest-2); }
.project-dot--archived { background: #8b837b; }
.project-row div { display: grid; gap: 4px; }
.project-row strong { font-size: 12px; }
.project-row small { color: var(--muted); font-size: 9px; }

/* Project */
.project-hero { padding: 23px 20px; color: #fff; background: linear-gradient(145deg, #173e30, #2d6751); border-radius: 27px; box-shadow: 0 18px 38px rgba(30,74,58,.22); }
.project-hero__top { display: flex; align-items: center; justify-content: space-between; color: #b8ccbf; font-size: 9px; }
.project-hero h1 { margin: 23px 0; font-size: 28px; line-height: 1.25; letter-spacing: -.045em; }
.project-fact { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); }
.project-fact + .project-fact { margin-top: 13px; }
.project-fact span { color: #a9c2b3; font-size: 9px; font-weight: 800; }
.project-fact p { margin: 6px 0 0; color: #e2ebe5; font-size: 11px; line-height: 1.55; }
.progress-card { display: grid; grid-template-columns: 1fr 62px; gap: 14px; margin-top: 12px; padding: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.progress-card h2 { margin-bottom: 7px; font-size: 17px; }
.progress-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.progress-token { display: grid; width: 58px; height: 58px; place-items: center; align-content: center; color: var(--forest); font-size: 19px; font-weight: 900; line-height: 1; background: var(--sage-pale); border-radius: 18px; }
.progress-token small { margin-top: 5px; font-size: 8px; }
.next-task-card, .task-section, .source-task-note, .static-flow-section { margin-top: 12px; padding: 18px; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 22px; }
.next-task-card h3 { margin: 18px 0 8px; font-size: 19px; line-height: 1.4; }
.next-task-card > p { margin-bottom: 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.task-list { display: grid; gap: 7px; margin-top: 15px; }
.task-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; min-height: 60px; padding: 11px 10px; align-items: center; background: #f3f4f0; border: 1px solid transparent; border-radius: 15px; }
.task-row--current { background: var(--sage-pale); border-color: #cadacb; }
.task-row--done { opacity: .62; }
.task-check { display: grid; width: 20px; height: 20px; place-items: center; color: var(--forest); font-size: 10px; border: 1px solid #c9cec7; border-radius: 50%; }
.task-row div { display: grid; gap: 4px; }
.task-row strong { font-size: 11px; line-height: 1.35; }
.task-row small { color: var(--muted); font-size: 8px; }
.task-row button { min-height: 44px; padding: 0 8px; color: var(--forest); font-size: 9px; font-weight: 800; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.source-task-note { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.source-task-note strong { font-size: 11px; }
.source-task-note p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.disabled-flow-list { display: grid; gap: 8px; margin-top: 15px; }
.disabled-flow-list button { display: flex; min-height: 62px; padding: 11px 12px; align-items: center; justify-content: space-between; text-align: left; color: #8a908d; background: #eff0ec; border: 1px solid #e0e2dd; border-radius: 14px; cursor: not-allowed; }
.disabled-flow-list button > span:first-child { display: grid; gap: 4px; }
.disabled-flow-list strong { font-size: 10px; }
.disabled-flow-list small { font-size: 8px; }
.disabled-flow-list button > span:last-child { padding: 4px 7px; font-size: 8px; background: #e2e4df; border-radius: 8px; }

/* Retrospective */
.retro-hero { padding: 24px 4px 12px; }
.celebration-mark { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; color: #fff; font-size: 23px; background: var(--forest); border-radius: 20px; box-shadow: 0 13px 28px rgba(30,74,58,.2); }
.retro-hero h1 { margin-bottom: 13px; font-size: 32px; line-height: 1.18; letter-spacing: -.05em; }
.retro-hero p { margin-bottom: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.retro-form { margin-top: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; }
.retro-form label:not(:first-child) { margin-top: 18px; }
.retro-form label span { color: var(--muted); font-weight: 500; }
.mock-textarea { min-height: 96px; }
.mock-textarea--short { min-height: 76px; }
.retro-form .button { margin-top: 20px; }
.candidate-note { margin-top: 12px; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr 62px 1fr 1fr;
  width: min(calc(100% - 22px), 408px);
  min-height: 72px;
  padding: 7px 8px;
  align-items: center;
  background: rgba(255,255,252,.94);
  border: 1px solid rgba(217,221,212,.9);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(32,48,41,.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.bottom-nav > button { display: grid; min-width: 0; min-height: 54px; padding: 4px 2px; place-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; background: transparent; border: 0; border-radius: 14px; cursor: pointer; }
.bottom-nav > button.is-active { color: var(--forest); background: var(--sage-pale); }
.bottom-nav .capture-nav { position: relative; width: 52px; height: 52px; min-height: 52px; margin: -20px auto 0; color: #fff; font-size: 27px; background: var(--forest); border-radius: 18px; box-shadow: 0 9px 20px rgba(30,74,58,.25); }
.nav-icon { font-size: 17px; line-height: 1; }
.bottom-nav[hidden] { display: none; }

/* Sheets and overlays */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; }
.overlay[hidden] { display: none; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(18,27,24,.54); backdrop-filter: blur(3px); }
.sheet { position: relative; z-index: 1; width: min(100%, 430px); max-height: min(88dvh, 760px); padding: 11px 20px calc(20px + var(--safe-bottom)); overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(17,31,25,.22); animation: sheet-in .25s ease both; }
.sheet--tall { max-height: 88dvh; }
.sheet--compact { padding-bottom: calc(22px + var(--safe-bottom)); text-align: left; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.sheet__handle { width: 38px; height: 4px; margin: 0 auto 15px; background: #d4d8d2; border-radius: 99px; }
.sheet__header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sheet__header h2, .sheet--compact h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -.035em; }
.sheet__intro, .sheet--compact > p { margin: 12px 0 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.sheet-label { margin: 20px 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.demo-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.demo-page-grid button { min-height: 44px; padding: 0 10px; color: var(--forest); font-size: 11px; font-weight: 800; background: var(--sage-pale); border: 0; border-radius: 12px; cursor: pointer; }
.demo-state-list { display: grid; gap: 6px; }
.demo-state-list button { display: grid; grid-template-columns: 31px 1fr; min-height: 44px; padding: 7px 10px; align-items: center; text-align: left; font-size: 11px; font-weight: 700; background: #f2f3ef; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.demo-state-list button span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--forest); font-size: 8px; background: var(--sage-pale); border-radius: 8px; }
.capture-input { position: relative; display: block; margin-top: 18px; }
.capture-input textarea { width: 100%; min-height: 138px; padding: 16px 16px 30px; resize: none; color: var(--ink); font-size: 15px; line-height: 1.6; background: #f4f5f1; border: 1px solid var(--line); border-radius: 17px; }
.capture-input__count { position: absolute; right: 12px; bottom: 10px; color: var(--muted); font-size: 9px; }
.capture-input__count.is-over-limit, .reason-input__count.is-over-limit { color: var(--danger); font-weight: 800; }
.link-field { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 7px; margin-top: 10px; padding: 10px 11px; align-items: center; background: #f4f5f1; border: 1px solid var(--line); border-radius: 14px; }
.link-field input { min-width: 0; height: 30px; background: transparent; border: 0; outline: none; font-size: 11px; }
.link-field small { grid-column: 2; justify-self: start; }
.capture-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
.capture-tools button { display: grid; min-height: 67px; padding: 8px 4px; place-items: center; color: var(--ink-soft); font-size: 10px; font-weight: 800; background: #f2f3ef; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.capture-tools button > span { font-size: 17px; }
.capture-tools small { color: #9a6037; font-size: 7px; }
.sheet-footnote { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.success-mark, .modal-symbol { display: grid; width: 48px; height: 48px; margin: 5px 0 18px; place-items: center; color: #fff; font-size: 20px; background: var(--forest); border-radius: 16px; }
.modal-symbol--warning { background: var(--danger); }
.reason-input { position: relative; display: block; margin-bottom: 13px; }
.reason-input textarea { width: 100%; min-height: 92px; padding: 14px 14px 28px; resize: none; color: var(--ink); font-size: 13px; line-height: 1.55; background: #f4f5f1; border: 1px solid var(--line); border-radius: 14px; }
.reason-input__count { position: absolute; right: 11px; bottom: 9px; color: var(--muted); font-size: 9px; }
.form-error { margin: -5px 2px 11px; color: var(--danger); font-size: 10px; line-height: 1.45; }
.form-error[hidden] { display: none; }
.sheet--compact .mock-input { margin-bottom: 13px; }
.sheet--compact .button + .button { margin-top: 5px; }
.compare-actions { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 7px; margin-bottom: 16px; align-items: center; }
.compare-actions > span { display: grid; gap: 5px; padding: 11px; color: var(--muted); font-size: 8px; background: #f1f2ee; border-radius: 12px; }
.compare-actions small { color: var(--ink); font-size: 9px; font-weight: 800; line-height: 1.4; }
.compare-actions b { color: var(--forest); text-align: center; }
.next-preview { display: grid; gap: 5px; margin-bottom: 16px; padding: 13px; background: var(--sage-pale); border-radius: 13px; }
.next-preview span { color: var(--muted); font-size: 8px; font-weight: 800; }
.next-preview strong { font-size: 11px; line-height: 1.4; }
.confirmation-check { display: flex; gap: 9px; margin-bottom: 16px; padding: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 10px; line-height: 1.5; background: #f2f3ef; border-radius: 12px; }
.confirmation-check input { margin-top: 2px; accent-color: var(--forest); }

.toast { position: fixed; left: 50%; bottom: 105px; z-index: 200; width: max-content; max-width: min(calc(100% - 36px), 390px); padding: 11px 14px; color: #fff; font-size: 11px; line-height: 1.45; text-align: center; background: rgba(24,34,31,.93); border-radius: 12px; box-shadow: 0 10px 30px rgba(13,24,19,.22); transform: translateX(-50%); }
.toast[hidden] { display: none; }

/* 阶段 2A：仅在 ?dev=1 显示的数据重置入口，不影响普通预览。 */
.dev-reset { margin-left: 6px; padding: 3px 7px; color: inherit; font: inherit; background: transparent; border: 1px solid currentColor; border-radius: 7px; cursor: pointer; }
.dev-reset[hidden] { display: none; }

@media (min-width: 600px) {
  body { padding: 58px 0 34px; }
  .phone-shell { min-height: min(880px, calc(100vh - 92px)); border: 9px solid #1e2825; border-radius: 42px; box-shadow: var(--shadow); }
  .app-viewport { min-height: min(862px, calc(100vh - 110px)); max-height: min(862px, calc(100vh - 110px)); overflow-y: auto; scrollbar-width: none; }
  .app-viewport::-webkit-scrollbar { display: none; }
  .page { min-height: min(862px, calc(100vh - 110px)); }
  .prototype-note { top: 14px; }
  .bottom-nav { position: absolute; right: 11px; left: 11px; width: auto; transform: none; }
  .overlay { align-items: center; }
  .sheet { border-radius: 28px; max-height: min(80vh, 760px); }
}

@media (max-width: 374px) {
  .page { padding-right: 14px; padding-left: 14px; }
  .action-card { padding-right: 18px; padding-left: 18px; }
  .action-card h2 { font-size: 27px; }
  .recovery-strip { grid-template-columns: 31px 1fr; }
  .recovery-strip .text-button { display: none; }
  .quick-dock__hint { display: none; }
  .quick-dock > button { grid-template-columns: 42px 1fr; }
  .entry-card { grid-template-columns: 30px 1fr 24px; }
  .project-hero h1 { font-size: 25px; }
  .bottom-nav { right: auto; left: 50%; width: calc(100% - 14px); }
}

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