/* ============================================================
   nonoise.css — NoNoise 特化层（叠加在 w.css 之后加载）
   只叠加 --nn-*，不覆写 --ob-*；组件前缀 nn-。权威：docs/SPEC.md §7
   ============================================================ */

:root {
  /* ── 四判定语义色（C2/C3 裁决后） ── */
  --nn-color-focus:        #6d4de6;
  --nn-color-focus-soft:   #ece7fd;
  --nn-color-on-focus:     #ffffff;
  --nn-color-reward:       #f59e0b;
  --nn-color-reward-hot:   #f97316;
  --nn-color-reward-soft:  #fef3c7;
  /* reward 作前景文字时的专用色：浅色主题下 #f59e0b/#f97316 对白底仅 ~2.2:1，
     #b45309 对 #fff 为 5.0:1、对 reward-soft 为 4.5:1（WCAG AA，SPEC §11）。
     #f59e0b 仅保留给填充/发光/图形。 */
  --nn-color-reward-text:  #b45309;
  --nn-color-kill:         #c2413a;
  --nn-color-kill-soft:    #fde8e7;
  --nn-color-delegate:     #0f7ea8;
  --nn-color-delegate-soft:#dff1f8;
  --nn-color-automate:     #16865a;
  --nn-color-automate-soft:#e6f6ef;
  --nn-color-worth:        var(--nn-color-automate);
  --nn-color-waste:        var(--nn-color-kill);

  /* ── 触控尺寸 ── */
  --nn-touch-min:   48px;
  --nn-touch-lg:    56px;
  --nn-touch-hero:  64px;
  --nn-timer-size:  min(72vw, 320px);

  /* ── 字号（数字优先） ── */
  --nn-font-display: clamp(44px, 10vw, 72px);
  --nn-font-stat:    32px;
  --nn-font-verdict: 20px;

  /* ── 动效 ── */
  --nn-dur-instant:  120ms;
  --nn-dur-quick:    240ms;
  --nn-dur-celebrate:900ms;
  --nn-dur-ambient:  2.4s;
  --nn-ease-pop:     cubic-bezier(.22, 1.4, .36, 1);
  --nn-ease-cut:     cubic-bezier(.6, 0, .9, .4);

  /* ── 形状 ── */
  --nn-radius-hero:  16px;
  --nn-ring-track:   10px;
  --nn-glow-focus:   0 0 0 4px var(--nn-color-focus-soft);
  --nn-glow-reward:  0 6px 24px rgba(245, 158, 11, .35);
}

.ob-theme-dark,
[data-ob-theme="dark"] {
  --nn-color-focus:        #9b82ff;
  --nn-color-focus-soft:   #241a4d;
  --nn-color-on-focus:     #0d0721;
  --nn-color-reward:       #fbbf24;
  --nn-color-reward-hot:   #fb923c;
  --nn-color-reward-soft:  #3a2a08;
  --nn-color-reward-text:  #fbbf24; /* 暗底上 10.8:1，可直接作文字 */
  --nn-color-kill:         #f08a84;
  --nn-color-kill-soft:    #351719;
  --nn-color-delegate:     #55b9dd;
  --nn-color-delegate-soft:#0c2e3b;
  --nn-color-automate:     #5ed6a3;
  --nn-color-automate-soft:#0d2c22;
  --nn-glow-focus:   0 0 0 4px rgba(155, 130, 255, .25);
  --nn-glow-reward:  0 6px 28px rgba(251, 191, 36, .30);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --nn-dur-instant: 0ms; --nn-dur-quick: 0ms;
    --nn-dur-celebrate: 0ms; --nn-dur-ambient: 0ms;
  }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ 布局骨架 ============ */

html, body { margin: 0; min-height: 100%; }
body.ob-app { display: block; }
#app { min-height: 100vh; min-height: 100dvh; }

.nn-main {
  min-height: 100vh; min-height: 100dvh;
  box-sizing: border-box;
  outline: none;
  padding: 0 0 96px;
}
.nn-view {
  width: min(600px, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0 24px;
}
.nn-view-wide { width: min(720px, 100% - 32px); }

/* 沉浸态（过滤器/专注/引导）隐藏导航与悬浮钮 */
body[data-immersive] .nn-nav,
body[data-immersive] .nn-fab { display: none; }
body[data-immersive] .nn-main { padding-bottom: 0; }

/* ── 5 Tab 导航：移动=底栏，桌面=左侧窄栏（永不折叠、永不换位） ── */
.nn-nav {
  position: fixed; z-index: 40;
  display: flex;
  background: var(--ob-color-surface);
  border-top: 1px solid var(--ob-color-border);
  left: 0; right: 0; bottom: 0; height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
}
.nn-nav a {
  position: relative;
  flex: 1;
  min-width: var(--nn-touch-min);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ob-color-muted);
  font-size: 11px; font-weight: 850;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nn-nav a .nn-nav-ico { font-size: 20px; line-height: 1; font-style: normal; }
.nn-nav a[aria-current="page"] { color: var(--nn-color-focus); }
.nn-nav a::after {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 3px;
  border-radius: 0 0 3px 3px; background: transparent;
  transition: background var(--nn-dur-quick);
}
.nn-nav a[aria-current="page"]::after { background: var(--nn-color-focus); }
.nn-nav .nn-dot {
  position: absolute; top: 8px; right: calc(50% - 18px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nn-color-reward-hot);
}

@media (min-width: 761px) {
  .nn-nav {
    left: 0; top: 0; bottom: 0; right: auto; width: 84px; height: auto;
    flex-direction: column; justify-content: center; gap: 6px;
    border-top: 0; border-right: 1px solid var(--ob-color-border);
    padding-bottom: 0;
  }
  .nn-nav a { flex: 0 0 64px; width: 100%; font-size: 12px; }
  .nn-nav a::after { top: 12%; bottom: 12%; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .nn-main { margin-left: 84px; padding-bottom: 24px; }
  body[data-immersive] .nn-main { margin-left: 0; }
  .nn-nav .nn-dot { right: 16px; top: 12px; }
}

/* ── (＋) 悬浮钮：全局右下同坐标 ── */
.nn-fab {
  position: fixed; z-index: 41;
  right: 20px; bottom: calc(80px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--nn-color-focus); color: var(--nn-color-on-focus);
  font-size: 28px; font-weight: 900; line-height: 1;
  box-shadow: var(--ob-shadow-panel);
  transition: transform var(--nn-dur-instant) var(--nn-ease-pop);
}
.nn-fab:active { transform: scale(.92); }
.nn-fab:focus-visible { outline: none; box-shadow: var(--nn-glow-focus); }
@media (min-width: 761px) { .nn-fab { bottom: 24px; } }

/* ============ 基础组件 ============ */

/* 主行动按钮：每屏至多一个 */
.nn-btn-hero {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--nn-touch-hero);
  border: 0; border-radius: var(--nn-radius-hero);
  background: var(--nn-color-focus); color: var(--nn-color-on-focus);
  font: inherit; font-size: 18px; font-weight: 900;
  cursor: pointer;
  transition: transform var(--nn-dur-instant) var(--nn-ease-pop), background var(--nn-dur-quick), box-shadow var(--nn-dur-quick);
  -webkit-tap-highlight-color: transparent;
}
.nn-btn-hero:active { transform: scale(.97); }
.nn-btn-hero:focus-visible { outline: none; box-shadow: var(--nn-glow-focus); }
.nn-btn-hero[disabled] { opacity: .5; cursor: default; }
.nn-btn-hero.nn-hero-reward { background: linear-gradient(120deg, var(--nn-color-reward), var(--nn-color-reward-hot)); color: #221302; box-shadow: var(--nn-glow-reward); }
.nn-btn-hero.nn-hero-kill { background: var(--nn-color-kill); color: #fff; }
[data-ob-theme="dark"] .nn-btn-hero.nn-hero-kill { color: #230a09; }

/* 幽灵/次级 */
.nn-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--nn-touch-min); padding: 8px 18px;
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: transparent; color: var(--ob-color-text);
  font: inherit; font-weight: 800; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nn-btn-ghost:active { transform: scale(.97); }
.nn-link {
  background: none; border: 0; padding: 10px 6px; min-height: var(--nn-touch-min);
  color: var(--ob-color-muted); font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* 大输入框 */
.nn-input {
  width: 100%; box-sizing: border-box;
  min-height: var(--nn-touch-lg);
  padding: 12px 16px;
  border: 2px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); color: var(--ob-color-text);
  font: inherit; font-size: 18px;
}
.nn-input:focus { outline: none; border-color: var(--nn-color-focus); box-shadow: var(--nn-glow-focus); }
.nn-input::placeholder { color: var(--ob-color-muted); }

/* 大块点选网格（时长档等）：点选即前进 */
.nn-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nn-choice {
  min-height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); color: var(--ob-color-text);
  font: inherit; font-size: 18px; font-weight: 900; cursor: pointer;
  transition: transform var(--nn-dur-instant) var(--nn-ease-pop), border-color var(--nn-dur-instant);
  -webkit-tap-highlight-color: transparent;
}
.nn-choice small { font-size: 12px; font-weight: 700; color: var(--ob-color-muted); }
.nn-choice:active { transform: scale(1.06); }
.nn-choice[aria-pressed="true"] {
  border-color: var(--nn-color-focus);
  background: var(--nn-color-focus-soft);
  color: var(--nn-color-focus);
}
.nn-choice[aria-pressed="true"] small { color: var(--nn-color-focus); }

/* 三选低调控件 + 开关 */
.nn-tri { display: flex; gap: 8px; flex-wrap: wrap; }
.nn-chip {
  min-height: var(--nn-touch-min); padding: 6px 14px;
  border: 1px solid var(--ob-color-border); border-radius: var(--ob-radius-pill);
  background: var(--ob-color-surface); color: var(--ob-color-muted);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: transform var(--nn-dur-instant) var(--nn-ease-pop);
  -webkit-tap-highlight-color: transparent;
}
.nn-chip:active { transform: scale(1.1); }
.nn-chip[aria-pressed="true"] {
  border-color: var(--ob-color-accent); background: var(--ob-color-accent-soft); color: var(--ob-color-accent);
}
.nn-switchrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--nn-touch-min); color: var(--ob-color-muted); font-size: 13px; font-weight: 800;
}
.nn-switch {
  position: relative; width: 52px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--ob-color-border); border-radius: 999px;
  background: var(--ob-color-surface-muted); cursor: pointer; padding: 0;
  transition: background var(--nn-dur-quick);
}
.nn-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--ob-color-surface); border: 1px solid var(--ob-color-border);
  box-sizing: border-box; transition: transform var(--nn-dur-quick) var(--nn-ease-pop);
}
.nn-switch[aria-pressed="true"] { background: var(--ob-color-accent); border-color: var(--ob-color-accent); }
.nn-switch[aria-pressed="true"]::after { transform: translateX(22px); }

/* 11 格打分条：0–5 红 / 6–7 黄 / 8–10 绿 */
.nn-scorebar { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nn-scorebar button {
  min-height: var(--nn-touch-min); min-width: 24px;
  border: 1px solid var(--ob-color-border); border-radius: 8px;
  background: var(--ob-color-surface); color: var(--ob-color-muted);
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; padding: 0;
  transition: transform var(--nn-dur-instant) var(--nn-ease-pop), background var(--nn-dur-instant);
  -webkit-tap-highlight-color: transparent;
}
.nn-scorebar button:active { transform: scale(1.15); }
.nn-scorebar button.nn-lit[data-zone="low"]  { background: var(--nn-color-kill-soft);     border-color: var(--nn-color-kill);     color: var(--nn-color-kill); }
.nn-scorebar button.nn-lit[data-zone="mid"]  { background: var(--ob-status-warning-bg);   border-color: var(--ob-status-warning-fg); color: var(--ob-status-warning-fg); }
.nn-scorebar button.nn-lit[data-zone="high"] { background: var(--nn-color-automate-soft); border-color: var(--nn-color-automate); color: var(--nn-color-automate); }
.nn-score-emoji { text-align: center; font-size: 44px; line-height: 1.2; min-height: 54px; }
.nn-score-emoji b { display: block; font-size: 15px; color: var(--ob-color-muted); font-weight: 800; }

/* 步骤进度点 */
.nn-stepdots { display: flex; gap: 8px; justify-content: center; }
.nn-stepdots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ob-color-border); transition: background var(--nn-dur-quick), transform var(--nn-dur-quick) var(--nn-ease-pop);
}
.nn-stepdots i.nn-on { background: var(--nn-color-focus); transform: scale(1.3); }

/* 顶栏（沉浸态流程头）*/
.nn-flowbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 0 4px; min-height: 48px;
}
.nn-flowbar .nn-anchor { font-size: 12px; color: var(--ob-color-muted); font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-x {
  width: var(--nn-touch-min); height: var(--nn-touch-min); flex: 0 0 auto;
  border: 0; border-radius: 50%; background: transparent; color: var(--ob-color-muted);
  font-size: 22px; cursor: pointer;
}
.nn-x:active { transform: scale(.9); }

/* 大字提问 */
.nn-question { font-size: clamp(28px, 5.4vw, 34px); font-weight: 900; line-height: 1.25; margin: 18px 0 6px; }
.nn-hint { color: var(--ob-color-muted); font-size: 14px; margin: 0 0 18px; }

/* ============ 今日 ============ */

.nn-topline { display: flex; align-items: center; gap: 10px; padding: 8px 0 2px; min-height: 48px; }
.nn-topline .nn-goal {
  flex: 1; min-width: 0; color: var(--ob-color-muted); font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nn-gear {
  width: var(--nn-touch-min); height: var(--nn-touch-min); flex: 0 0 auto;
  border: 0; border-radius: 50%; background: transparent; color: var(--ob-color-muted);
  font-size: 20px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

.nn-todaycard {
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); box-shadow: var(--ob-shadow-panel);
  padding: 24px 20px; margin: 12px 0 16px;
  display: grid; gap: 16px;
}
.nn-today-line { font-size: 15px; font-weight: 800; color: var(--ob-color-muted); }
.nn-today-line b { color: var(--ob-color-text); font-size: 22px; font-variant-numeric: tabular-nums; }

/* 分钟进度条（当天隐喻）：双层——实色 = completed 达标口径，淡色延伸 = total 显示口径（C14） */
.nn-progressbar {
  position: relative;
  height: 12px; border-radius: 999px; overflow: hidden;
  background: var(--ob-color-surface-muted);
}
.nn-progressbar > i {
  position: absolute; left: 0; top: 0; height: 100%;
  display: block; width: calc(var(--nn-progress, 0) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nn-color-focus), var(--nn-color-reward));
  transition: width .5s var(--nn-ease-pop);
}
.nn-progressbar > i.nn-bar-total {
  background: var(--ob-color-border); opacity: .6;
}
.nn-blockdots { display: flex; gap: 8px; font-size: 16px; min-height: 20px; }
.nn-blockdots i { color: var(--ob-color-border); font-style: normal; }
.nn-blockdots i.nn-lit { color: var(--nn-color-reward); text-shadow: 0 0 8px rgba(245,158,11,.5); }

/* 迷你仪表盘条 */
.nn-miniboard {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px; min-height: var(--nn-touch-min);
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface);
  color: var(--ob-color-text); font-size: 15px; font-weight: 800;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.nn-miniboard .nn-money { color: var(--nn-color-reward-text); }

/* 最近判定行 */
.nn-recent { display: grid; gap: 6px; margin-top: 14px; }
.nn-recent-title { font-size: 12px; color: var(--ob-color-muted); font-weight: 850; text-transform: none; }
.nn-row {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--nn-touch-min); padding: 4px 12px;
  border: 1px solid var(--ob-color-border); border-radius: 12px;
  background: var(--ob-color-surface); font-size: 14px;
}
.nn-row .nn-vico { font-style: normal; font-weight: 900; width: 22px; text-align: center; flex: 0 0 auto; }
.nn-row .nn-rowtitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nn-row .nn-rowmeta { color: var(--ob-color-muted); font-size: 12px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.nn-row .nn-rowmeta.nn-money { color: var(--nn-color-reward-text); font-weight: 850; }
.nn-vico[data-v="do"], .nn-vico[data-v="keep"] { color: var(--nn-color-focus); }
.nn-vico[data-v="delegate"] { color: var(--nn-color-delegate); }
.nn-vico[data-v="automate"] { color: var(--nn-color-automate); }
.nn-vico[data-v="drop"] { color: var(--nn-color-kill); }
.nn-row.nn-dropped .nn-rowtitle { text-decoration: line-through; color: var(--ob-color-muted); }

/* 判定小胶囊（prototype .recent-row .tag：四色 soft 底） */
.nn-tag {
  font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px;
  flex: 0 0 auto; font-style: normal;
}
.nn-tag[data-v="drop"] { background: var(--nn-color-kill-soft); color: var(--nn-color-kill); }
.nn-tag[data-v="do"], .nn-tag[data-v="keep"] { background: var(--nn-color-focus-soft); color: var(--nn-color-focus); }
.nn-tag[data-v="delegate"] { background: var(--nn-color-delegate-soft); color: var(--nn-color-delegate); }
.nn-tag[data-v="automate"] { background: var(--nn-color-automate-soft); color: var(--nn-color-automate); }

/* ============ 判定屏（过滤器结果，prototype 05 布局权威） ============ */

.nn-verdict-card {
  --nn-verdict-color: var(--nn-color-focus);
  --nn-verdict-soft: var(--nn-color-focus-soft);
  margin: 8px 0 16px;
  text-align: center;
  animation: nn-toastin var(--nn-dur-quick) var(--nn-ease-pop);
}
.nn-verdict-card[data-verdict="delegate"] { --nn-verdict-color: var(--nn-color-delegate); --nn-verdict-soft: var(--nn-color-delegate-soft); }
.nn-verdict-card[data-verdict="automate"] { --nn-verdict-color: var(--nn-color-automate); --nn-verdict-soft: var(--nn-color-automate-soft); }
.nn-verdict-card[data-verdict="drop"] { --nn-verdict-color: var(--nn-color-kill); --nn-verdict-soft: var(--nn-color-kill-soft); }

/* 居中大徽章（120px 圆角方） */
.nn-verdict-badge {
  margin: 12px auto 20px;
  width: 120px; height: 120px; border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--nn-verdict-soft);
  border: 1px solid color-mix(in srgb, var(--nn-verdict-color) 35%, transparent);
  color: var(--nn-verdict-color);
  animation: nn-pop var(--nn-dur-quick) var(--nn-ease-pop);
}
.nn-verdict-ico { font-size: 40px; line-height: 1; font-style: normal; display: block; }
.nn-verdict-word { font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.nn-verdict-item { font-size: 22px; font-weight: 900; margin: 0 0 8px; word-break: break-all; }
/* drop 判定：标题即划线（划线色=砍红，prototype .verdict-title） */
.nn-verdict-card[data-verdict="drop"] .nn-verdict-item {
  text-decoration: line-through;
  text-decoration-color: var(--nn-color-kill);
  text-decoration-thickness: 2px;
  opacity: .85;
}
.nn-verdict-item.nn-cutting { animation: nn-cutline var(--nn-dur-instant) var(--nn-ease-cut) forwards; }
@keyframes nn-cutline { to { text-decoration: line-through; color: var(--ob-color-muted); } }
.nn-verdict-reason { color: var(--ob-color-muted); font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.nn-verdict-reason strong { color: var(--nn-color-reward-text); font-weight: 900; }

/* A5：释放时间去向卡（research P0）——虚线紫，低调不抢 hero */
.nn-realloc {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--nn-color-focus) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--nn-color-focus) 35%, transparent);
  font-size: 13px; color: var(--ob-color-muted); line-height: 1.5; text-align: left;
}
.nn-realloc strong { color: var(--nn-color-focus); font-weight: 850; }
.nn-realloc .nn-realloc-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 右上守护 toast（prototype .saved-toast） */
.nn-saved-toast {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 95;
  background: var(--nn-color-reward-soft); color: var(--nn-color-reward-text);
  border: 1px solid color-mix(in srgb, var(--nn-color-reward) 30%, transparent);
  padding: 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
  box-shadow: var(--nn-glow-reward);
  animation: nn-toastin var(--nn-dur-quick) var(--nn-ease-pop);
}

/* 时薪对比条：虚线=你的时薪线，实心条=这件事 */
.nn-compare { margin: 18px auto 4px; max-width: 340px; text-align: left; }
.nn-compare .nn-cmp-track {
  position: relative; height: 22px; border-radius: 8px;
  background: var(--ob-color-surface-muted); overflow: visible;
}
.nn-compare .nn-cmp-fill {
  position: absolute; inset: 4px auto 4px 0;
  width: calc(var(--nn-progress, 0) * 100%);
  border-radius: 6px; background: var(--nn-color-waste);
  transition: width .5s var(--nn-ease-pop);
}
.nn-compare.nn-worth .nn-cmp-fill { background: var(--nn-color-worth); }
.nn-compare .nn-cmp-line {
  position: absolute; top: -6px; bottom: -6px; left: 50%;
  border-left: 2px dashed var(--ob-color-text); opacity: .7;
}
.nn-compare .nn-cmp-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ob-color-muted); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ============ 专注计时器 ============ */

.nn-focus-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; box-sizing: border-box; padding: 24px 16px;
  text-align: center;
  /* prototype 06：顶部紫色氛围光晕 */
  background: radial-gradient(ellipse 80% 50% at 50% 40%,
    color-mix(in srgb, var(--nn-color-focus) 12%, transparent), transparent 70%);
}
.nn-timer {
  --nn-progress: 1;
  --nn-timer-color: var(--nn-color-focus);
  position: relative;
  width: var(--nn-timer-size); height: var(--nn-timer-size);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--ob-color-canvas) calc(100% - var(--nn-ring-track) - 4px), transparent calc(100% - var(--nn-ring-track) - 3px)),
    repeating-conic-gradient(from -90deg, transparent 0deg 5.4deg, var(--ob-color-canvas) 5.4deg 6deg),
    conic-gradient(from -90deg, var(--nn-timer-color) calc(var(--nn-progress) * 360deg), var(--ob-color-surface-muted) 0deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nn-timer[data-running] { animation: nn-breathe var(--nn-dur-ambient) ease-in-out infinite; }
@keyframes nn-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 77, 230, 0); }
  50%      { box-shadow: 0 0 34px 2px color-mix(in srgb, var(--nn-timer-color) 35%, transparent); }
}
.nn-timer.nn-last5 { --nn-timer-color: var(--nn-color-reward-hot); animation: nn-pulse5 1.6s ease-in-out infinite; }
@keyframes nn-pulse5 {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
.nn-timer-min {
  font-size: var(--nn-font-display); font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nn-timer-unit { font-size: 14px; color: var(--ob-color-muted); font-weight: 800; }
.nn-timer-task { font-size: 15px; font-weight: 800; max-width: 80%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* prototype 06 .timer-value：金色=这块时间的价值（earned 语义，非控件） */
.nn-timer-worth { font-size: 14px; color: var(--nn-color-reward-text); font-weight: 850; margin: 0; font-variant-numeric: tabular-nums; }

.nn-focus-exits {
  position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; padding: 0 18px;
  pointer-events: none;
}
.nn-focus-exits > * { pointer-events: auto; }

/* 按住 3 秒生效 */
.nn-hold {
  position: relative; overflow: hidden;
  min-height: var(--nn-touch-min); padding: 8px 16px;
  border: 1px solid var(--ob-color-border); border-radius: 999px;
  background: var(--ob-color-surface); color: var(--ob-color-muted);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.nn-hold::before {
  content: ""; position: absolute; inset: 0;
  width: calc(var(--hold, 0) * 100%);
  background: var(--ob-color-surface-muted);
}
.nn-hold > span { position: relative; }

/* +5 分钟缓冲：可点击控件用中性色（C13/铁律 2：用户不能点橙色，只能赢得它）；
   最后 5 分钟的 reward 语义由计时环色过渡承担 */
.nn-plus5 {
  min-height: var(--nn-touch-min); padding: 8px 16px;
  border: 1px solid var(--ob-color-border); border-radius: 999px;
  background: var(--ob-color-surface); color: var(--ob-color-text);
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
  animation: nn-pop var(--nn-dur-quick) var(--nn-ease-pop);
}

@keyframes nn-pop {
  0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); }
}
.nn-pop { animation: nn-pop var(--nn-dur-instant) var(--nn-ease-pop); }

/* ============ 审计 ============ */

.nn-hourglass {
  height: 8px; border-radius: 999px; background: var(--ob-color-surface-muted); overflow: hidden;
}
.nn-hourglass > i {
  display: block; height: 100%; width: calc(var(--nn-progress, 0) * 100%);
  border-radius: 999px; background: var(--ob-color-accent);
}

.nn-audit-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px;
  min-height: var(--nn-touch-lg); padding: 10px 14px;
  border: 1px solid var(--ob-color-border); border-radius: 12px;
  background: var(--ob-color-surface); margin-bottom: 8px;
}
.nn-audit-row .nn-atitle { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-audit-row .nn-abar-wrap { grid-column: 1; display: flex; align-items: center; gap: 8px; }
.nn-abar { height: 8px; border-radius: 999px; background: var(--ob-color-accent-soft); min-width: 6px; }
.nn-audit-row .nn-amin { font-size: 12px; color: var(--ob-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nn-audit-row .nn-aside { grid-row: 1 / 3; grid-column: 2; display: flex; align-items: center; gap: 6px; }

.nn-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }

/* 判定胶囊补充色（SPEC 7.2 铁律 3/4：红只属于砍掉；委托=蓝、自动化=绿） */
.ob-status.nn-status-delegate { background: var(--nn-color-delegate-soft); color: var(--nn-color-delegate); }
.ob-status.nn-status-automate { background: var(--nn-color-automate-soft); color: var(--nn-color-automate); }

/* 时间价值矩阵 */
.nn-matrix { width: 100%; border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero); background: var(--ob-color-surface); }
.nn-matrix text { font-family: var(--ob-font-ui); }

/* 结论卡 */
.nn-conclusion {
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  border-top: 4px solid var(--nn-color-kill);
  background: var(--ob-color-surface); padding: 18px; margin: 12px 0;
  font-size: 15px; font-weight: 800; line-height: 1.6;
}
.nn-conclusion b { font-size: var(--nn-font-stat); font-weight: 900; color: var(--nn-color-kill); font-variant-numeric: tabular-nums; }

/* ============ 仪表盘 ============ */

.nn-stat-card {
  position: relative;
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); box-shadow: var(--ob-shadow-panel);
  padding: 18px; margin-bottom: 14px; overflow: hidden;
}
.nn-stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--nn-topbar, transparent);
}
.nn-stat-card[data-accent="reward"] { --nn-topbar: linear-gradient(90deg, var(--nn-color-reward), var(--nn-color-reward-hot)); }
.nn-stat-card[data-accent="kill"] { --nn-topbar: var(--nn-color-kill); }
.nn-stat-card[data-accent="focus"] { --nn-topbar: var(--nn-color-focus); }
.nn-stat-label { color: var(--ob-color-muted); font-size: 13px; font-weight: 850; }
.nn-stat-value {
  display: block; margin: 6px 0 2px;
  font-size: var(--nn-font-stat); font-weight: 900; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.nn-stat-help { color: var(--ob-color-muted); font-size: 12px; }
.nn-money .nn-cur { font-size: .72em; font-weight: 800; margin-right: 1px; }
/* prototype 07 .stat-value.gold：守护金额=金色大数字 */
.nn-stat-value.nn-money { color: var(--nn-color-reward-text); }

.nn-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ob-color-border); border-radius: 999px; background: var(--ob-color-surface); }
.nn-seg button {
  border: 0; border-radius: 999px; background: transparent; color: var(--ob-color-muted);
  min-height: 34px; min-width: 48px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer;
}
/* 分段器选中态：输入控件不用 reward（铁律 2），走 accent 中性交互色（铁律 4） */
.nn-seg button[aria-pressed="true"] { background: var(--ob-color-accent-soft); color: var(--ob-color-accent); }

.nn-spark { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 12px; }
.nn-spark i {
  flex: 1; border-radius: 3px 3px 0 0; min-height: 3px;
  background: linear-gradient(180deg, var(--nn-color-reward), var(--nn-color-reward-hot));
  opacity: .85;
}

/* streak 火焰（prototype 07 .flame：圆角软底 + 金辉光盒） */
.nn-streak { display: flex; align-items: center; gap: 14px; }
.nn-flame {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 16px; background: var(--nn-color-reward-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1; font-style: normal;
  box-shadow: var(--nn-glow-reward);
}
.nn-flame[data-tier="cold"] { box-shadow: none; background: var(--ob-color-surface-muted); }
.nn-flame[data-tier="cold"] { filter: grayscale(1) opacity(.45); }
.nn-flame[data-tier="warm"] { }
.nn-flame[data-tier="hot"] { animation: nn-sway 1.8s ease-in-out infinite; }
.nn-flame[data-tier="blaze"] { animation: nn-sway 1.8s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(249, 115, 22, .8)); }
@keyframes nn-sway {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%      { transform: rotate(3deg) scale(1.04); }
}
.nn-flame.nn-bounce { animation: nn-flamebounce .5s var(--nn-ease-pop); }
@keyframes nn-flamebounce { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* 热力格：列=周，行=7 天；审计周金边 */
.nn-heatmap { display: flex; gap: 5px; margin-top: 14px; justify-content: flex-start; }
.nn-heatcol { display: flex; flex-direction: column; gap: 5px; padding: 3px; border-radius: 6px; border: 1px solid transparent; }
.nn-heatcol.nn-audited { border-color: var(--nn-color-reward); }
.nn-heatcell {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--ob-color-surface-muted);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.nn-heatcell.nn-met { background: var(--nn-color-reward-soft); }
.nn-heatcell.nn-future { opacity: .3; }

/* 墓地 */
.nn-grave-row {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--nn-touch-min); padding: 4px 0;
  border-bottom: 1px solid var(--ob-color-border);
  font-size: 14px;
}
.nn-grave-row:last-child { border-bottom: 0; }
.nn-grave-row .nn-gtitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: line-through; color: var(--ob-color-muted); font-weight: 700; }
.nn-grave-row .nn-gmeta { color: var(--ob-color-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nn-philosophy { color: var(--ob-color-muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* 环形微缩图（本周深度） */
.nn-miniring {
  --nn-progress: 0;
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  background:
    radial-gradient(closest-side, var(--ob-color-surface) calc(100% - 7px), transparent calc(100% - 6px)),
    conic-gradient(from -90deg, var(--nn-color-focus) calc(var(--nn-progress) * 360deg), var(--ob-color-surface-muted) 0deg);
}

/* 徽章 */
.nn-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nn-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 850;
  background: var(--nn-color-reward-soft); color: var(--nn-color-reward-text);
  border: 1px solid var(--nn-color-reward);
}

/* ============ 庆祝层 ============ */

.nn-celebrate-burst {
  position: fixed; left: 50%; top: 42%; z-index: 90; pointer-events: none;
  width: 0; height: 0;
}
.nn-celebrate-burst i {
  position: absolute; width: 10px; height: 14px; border-radius: 2px;
  background: var(--nn-color-focus);
  animation: nn-shoot var(--nn-dur-celebrate) cubic-bezier(.1, .8, .4, 1) forwards;
}
.nn-celebrate-burst i:nth-child(4n+1) { background: var(--nn-color-focus); }
.nn-celebrate-burst i:nth-child(4n+2) { background: var(--nn-color-reward); }
.nn-celebrate-burst i:nth-child(4n+3) { background: var(--nn-color-reward-hot); }
.nn-celebrate-burst i:nth-child(4n+4) { background: var(--nn-color-automate); }
@keyframes nn-shoot {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* 上浮徽章（+¥xxx / +X.Xh） */
.nn-float-badge {
  position: fixed; z-index: 91; pointer-events: none;
  padding: 6px 14px; border-radius: 999px;
  background: var(--nn-color-reward-soft); color: var(--nn-color-reward-text);
  border: 1px solid var(--nn-color-reward);
  font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums;
  animation: nn-float .9s ease-out forwards;
}
@keyframes nn-float {
  0%   { transform: translateY(0) scale(.8); opacity: 0; }
  20%  { transform: translateY(-10px) scale(1.05); opacity: 1; }
  100% { transform: translateY(-64px) scale(1); opacity: 0; }
}

/* 全屏庆祝 overlay（大庆祝 ≤900ms 动效 + 成就句） */
.nn-celebrate-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: color-mix(in srgb, var(--ob-color-canvas) 88%, transparent);
  backdrop-filter: blur(4px);
  text-align: center; padding: 24px;
}
.nn-celebrate-overlay .nn-cele-ico { font-size: 64px; line-height: 1; animation: nn-pop .5s var(--nn-ease-pop); }
.nn-celebrate-overlay h2 { margin: 0; font-size: 24px; font-weight: 900; }
.nn-celebrate-overlay p { margin: 0; color: var(--ob-color-muted); font-size: 15px; }

/* 卡片"松一口气"动效 */
.nn-relief { animation: nn-relief .5s var(--nn-ease-pop); }
@keyframes nn-relief { 0% { transform: scale(1); } 40% { transform: scale(.98); } 100% { transform: scale(1); } }
.nn-kill-flash { animation: nn-killflash .5s ease-out; }
@keyframes nn-killflash { 0% { background: var(--nn-color-kill-soft); } 100% { background: var(--ob-color-surface); } }

/* ============ toast / 离线 / 空状态 ============ */

.nn-toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw;
}
@media (min-width: 761px) { .nn-toasts { bottom: 24px; } }
.nn-toast {
  padding: 10px 18px; border-radius: 999px;
  background: var(--ob-color-text); color: var(--ob-color-canvas);
  font-size: 14px; font-weight: 800;
  box-shadow: var(--ob-shadow-panel);
  animation: nn-toastin var(--nn-dur-quick) var(--nn-ease-pop);
  max-width: 100%; box-sizing: border-box;
}
@keyframes nn-toastin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.nn-offline {
  border: 1px dashed var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); padding: 26px 20px; margin: 16px 0;
  text-align: center; display: grid; gap: 12px; justify-items: center;
}
.nn-offline p { margin: 0; color: var(--ob-color-muted); font-size: 14px; }
.nn-offline .nn-off-ico { font-size: 34px; }

.nn-empty { text-align: center; padding: 30px 12px; display: grid; gap: 10px; justify-items: center; }
.nn-empty .nn-empty-ico { font-size: 40px; opacity: .7; }
.nn-empty p { margin: 0; color: var(--ob-color-muted); font-size: 14px; }
.nn-breathe { animation: nn-breathe2 2.4s ease-in-out infinite; display: inline-block; }
@keyframes nn-breathe2 { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }

/* ============ 设置 / 表单 ============ */

.nn-form-card {
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); padding: 18px; margin-bottom: 14px;
  display: grid; gap: 12px;
}
.nn-form-card h3 { margin: 0; font-size: 15px; font-weight: 900; }
.nn-field { display: grid; gap: 6px; }
.nn-field label { font-size: 12px; color: var(--ob-color-muted); font-weight: 850; }
.nn-field input, .nn-field select {
  min-height: var(--nn-touch-min); box-sizing: border-box; width: 100%;
  border: 2px solid var(--ob-color-border); border-radius: 12px;
  background: var(--ob-color-surface); color: var(--ob-color-text);
  font: inherit; font-size: 16px; padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}
.nn-field input:focus, .nn-field select:focus { outline: none; border-color: var(--nn-color-focus); box-shadow: var(--nn-glow-focus); }
.nn-rate-big { font-size: var(--nn-font-stat); font-weight: 900; font-variant-numeric: tabular-nums; }
.nn-rate-big .nn-cur { font-size: .7em; }

.nn-examples { display: flex; flex-wrap: wrap; gap: 8px; }

/* 数字上滚 */
.nn-rolling { display: inline-block; }

/* 通用小节标题 */
.nn-h2 { font-size: 18px; font-weight: 900; margin: 22px 0 10px; }
.nn-center { text-align: center; }
.nn-gap { height: 14px; }
.nn-actions { display: grid; gap: 10px; margin-top: 18px; }

/* 桌面：今日卡更高 */
@media (min-width: 761px) {
  .nn-todaycard { padding: 34px 30px; }
}

/* ============ 引导（prototype 08：并排字段 + 金色揭示数字） ============ */

.nn-calc-row { display: flex; gap: 10px; }
.nn-calc-row .nn-field { flex: 1; min-width: 0; }
.nn-reveal {
  color: var(--nn-color-reward-text);
  text-shadow: 0 0 40px color-mix(in srgb, var(--nn-color-reward) 35%, transparent);
}

/* ============ 新手教程（#/guide：循环四步卡） ============ */

.nn-guide-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--ob-color-border); border-radius: var(--nn-radius-hero);
  background: var(--ob-color-surface); padding: 16px 18px; margin-bottom: 12px;
}
.nn-guide-ico {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 14px; background: var(--nn-color-focus-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-style: normal;
}
.nn-guide-cheat .nn-guide-ico { background: var(--nn-color-reward-soft); }
.nn-guide-body { min-width: 0; }
.nn-guide-body h3 { margin: 2px 0 6px; font-size: 15px; font-weight: 900; }
.nn-guide-body p { margin: 0 0 4px; font-size: 13px; color: var(--ob-color-muted); line-height: 1.55; }
.nn-guide-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ob-color-muted); line-height: 1.7; }

/* ============ 落地页（prototype 01，SSO 未登录态） ============ */

.nn-landing {
  min-height: 100vh; min-height: 100dvh;
  box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0; padding: 48px 24px 56px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, color-mix(in srgb, var(--nn-color-focus) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 85%, color-mix(in srgb, var(--nn-color-reward) 8%, transparent), transparent 50%);
}
.nn-landing-inner { width: min(560px, 100%); margin: 0 auto; }
.nn-landing-badge {
  display: inline-flex;
  font-size: 12px; font-weight: 850; color: var(--nn-color-focus);
  background: var(--nn-color-focus-soft);
  border: 1px solid color-mix(in srgb, var(--nn-color-focus) 30%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.nn-landing h1 {
  font-size: clamp(32px, 7vw, 44px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.15; margin: 0 0 16px;
}
.nn-landing h1 em { font-style: normal; color: var(--nn-color-focus); }
.nn-landing .nn-landing-copy {
  font-size: 16px; color: var(--ob-color-muted); max-width: 420px;
  line-height: 1.55; margin: 0 0 28px;
}
.nn-landing-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--nn-touch-hero); padding: 0 28px;
  border: 0; border-radius: var(--nn-radius-hero); cursor: pointer;
  background: var(--nn-color-focus); color: var(--nn-color-on-focus);
  font: inherit; font-size: 16px; font-weight: 900;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--nn-color-focus) 40%, transparent);
  text-decoration: none;
}
.nn-landing-cta:active { transform: scale(.97); }
.nn-landing-meta {
  margin-top: 20px; font-size: 12px; color: var(--ob-color-muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.nn-landing-meta span::before { content: "✓ "; color: var(--nn-color-automate); font-weight: 900; }
