:root{--bg:#0b0f17;--surface:#131a26;--surface-2:#1b2434;--surface-3:#222e42;--border:rgba(255,255,255,.08);--border-strong:rgba(255,255,255,.16);--text:#f3f6fb;--text-muted:#94a3b8;--text-dim:#64748b;--amber:#f59e0b;--amber-soft:rgba(245,158,11,.14);--emerald:#10b981;--emerald-soft:rgba(16,185,129,.14);--blue:#38bdf8;--blue-soft:rgba(56,189,248,.14);--rose:#f43f5e;--rose-soft:rgba(244,63,94,.14);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;background:#06090f;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;line-height:1.55;overscroll-behavior-y:none}
.app-shell{max-width:460px;min-height:100dvh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column;position:relative;box-shadow:0 0 60px rgba(0,0,0,.7)}
.top-bar{position:sticky;top:0;z-index:20;background:rgba(11,15,23,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);padding:12px 16px 10px}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand{display:flex;align-items:center;gap:10px}
.brand-icon{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#f59e0b,#ef4444);display:grid;place-items:center;font-size:18px;box-shadow:0 4px 14px rgba(245,158,11,.3)}
.brand h1{font-size:16px;font-weight:700;letter-spacing:.3px}
.brand-sub{font-size:11px;color:var(--text-muted)}
.goal-pill{display:flex;align-items:center;gap:6px;background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;cursor:pointer}
.goal-pill.done{background:var(--emerald-soft);border-color:rgba(16,185,129,.45);color:#6ee7b7}
.goal-dot{width:7px;height:7px;border-radius:50%;background:var(--amber)}
.goal-pill.done .goal-dot{background:var(--emerald);box-shadow:0 0 8px var(--emerald)}
.energy-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px;background:var(--surface);padding:4px;border-radius:13px;border:1px solid var(--border)}
.energy-btn{background:transparent;border:none;color:var(--text-muted);padding:6px 4px;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px;transition:all .2s ease}
.energy-btn span{font-size:12px;font-weight:600}
.energy-btn small{font-size:10px;opacity:.78}
.energy-btn.active{background:var(--surface-3);color:var(--text);box-shadow:0 2px 8px rgba(0,0,0,.3)}
.energy-btn[data-energy="low"].active{color:#93c5fd}
.energy-btn[data-energy="mid"].active{color:#fcd34d}
.energy-btn[data-energy="high"].active{color:#6ee7b7}
.main-stage{flex:1;padding:12px 14px calc(84px + var(--safe-bottom));overflow-y:auto}
.view{display:none}
.view.active{display:block;animation:fadeIn .2s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.filter-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}
.filter-strip::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:500;cursor:pointer;transition:all .18s}
.chip.active{background:var(--amber-soft);border-color:rgba(245,158,11,.45);color:#fcd34d}
.spark-card{background:linear-gradient(180deg,var(--surface) 0%,#101622 100%);border:1px solid var(--border-strong);border-radius:22px;padding:18px 16px;box-shadow:0 12px 32px rgba(0,0,0,.35)}
.card-meta-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.tag-group{display:flex;flex-wrap:wrap;gap:6px}
.badge{font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px}
.badge-comm{background:var(--blue-soft);color:#7dd3fc}
.badge-biz{background:var(--amber-soft);color:#fcd34d}
.badge-pillar{background:rgba(148,163,184,.14);color:#cbd5e1}
.badge-done{background:var(--emerald-soft);color:#6ee7b7}
.star-btn{background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);width:32px;height:32px;border-radius:10px;font-size:15px;cursor:pointer;display:grid;place-items:center;flex-shrink:0}
.star-btn.saved{background:var(--amber-soft);border-color:rgba(245,158,11,.5);color:var(--amber)}
.card-title{font-size:19px;font-weight:700;line-height:1.38;margin-bottom:10px;color:#fff}
.scenario-box{background:rgba(255,255,255,.035);border-left:3px solid var(--amber);padding:11px 13px;border-radius:0 12px 12px 0;font-size:14px;color:#dbe4f0;margin-bottom:14px}
.card-index-hint{font-size:11px;color:var(--text-dim);margin-bottom:10px;display:flex;justify-content:space-between}
.options-wrap{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.opt-btn{text-align:left;background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);padding:12px 13px;border-radius:14px;font-size:13.5px;line-height:1.45;cursor:pointer;transition:all .18s;display:flex;gap:10px;align-items:flex-start}
.opt-letter{width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0;margin-top:1px}
.opt-btn.correct{background:var(--emerald-soft);border-color:rgba(16,185,129,.6)}
.opt-btn.correct .opt-letter{background:var(--emerald);color:#052e16}
.opt-btn.wrong{background:var(--rose-soft);border-color:rgba(244,63,94,.55)}
.opt-btn.wrong .opt-letter{background:var(--rose);color:#fff}
.choice-feedback{padding:11px 13px;border-radius:12px;font-size:13px;margin-bottom:14px;line-height:1.5}
.choice-feedback.good{background:var(--emerald-soft);border:1px solid rgba(16,185,129,.35);color:#a7f3d0}
.choice-feedback.warn{background:var(--rose-soft);border:1px solid rgba(244,63,94,.35);color:#fecdd3}
.insight-panel{background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:14px;margin-bottom:14px}
.panel-heading{font-size:12px;font-weight:700;color:var(--amber);letter-spacing:.4px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.step-list{display:flex;flex-direction:column;gap:9px}
.step-item{font-size:13.5px;color:#e2e8f0}
.step-label{display:inline-block;font-size:11px;font-weight:700;color:#0b0f17;background:#fbbf24;padding:1px 7px;border-radius:6px;margin-right:6px}
.copyable-box{margin-top:12px;padding:11px 12px;background:rgba(56,189,248,.08);border:1px dashed rgba(56,189,248,.35);border-radius:12px}
.copyable-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:11px;color:#7dd3fc;font-weight:600}
.copy-mini-btn{background:rgba(56,189,248,.2);border:none;color:#bae6fd;padding:3px 9px;border-radius:7px;font-size:11px;cursor:pointer}
.copyable-text{font-size:13px;color:#e0f2fe}
.output-panel{background:linear-gradient(180deg,rgba(16,185,129,.09),rgba(16,185,129,.03));border:1px solid rgba(16,185,129,.32);border-radius:16px;padding:14px}
.output-prompt{font-size:13px;color:#a7f3d0;margin-bottom:8px;font-weight:500}
.starter-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.starter-chip{background:rgba(255,255,255,.06);border:1px solid var(--border-strong);color:#cbd5e1;font-size:11.5px;padding:4px 9px;border-radius:8px;cursor:pointer}
.output-textarea{width:100%;background:rgba(11,15,23,.75);border:1px solid var(--border-strong);color:var(--text);border-radius:12px;padding:10px 12px;font-size:13.5px;font-family:inherit;resize:vertical;min-height:76px;margin-bottom:10px}
.output-textarea:focus{outline:none;border-color:var(--emerald)}
.output-actions{display:flex;gap:8px;flex-wrap:wrap}
.primary-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:10px 14px;border-radius:11px;font-size:13px;font-weight:700;cursor:pointer;flex:1}
.secondary-btn{background:var(--surface-3);color:var(--text);border:1px solid var(--border-strong);padding:10px 12px;border-radius:11px;font-size:12.5px;font-weight:600;cursor:pointer}
.secondary-btn.recording{background:var(--rose-soft);border-color:var(--rose);color:#fda4af}
.ai-feedback-box{margin-top:12px;padding:12px;border-radius:12px;background:rgba(11,15,23,.85);border:1px solid rgba(245,158,11,.35);font-size:13px;color:#f1f5f9;white-space:pre-wrap}
.feed-controls{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:8px;margin-top:12px}
.ctrl-btn{background:var(--surface);border:1px solid var(--border-strong);color:var(--text);padding:11px 8px;border-radius:14px;font-size:13px;font-weight:600;cursor:pointer}
.ctrl-btn.primary-ghost{background:var(--amber-soft);border-color:rgba(245,158,11,.4);color:#fcd34d}
.low-done-btn{width:100%;background:var(--surface-3);border:1px solid rgba(16,185,129,.4);color:#6ee7b7;padding:11px;border-radius:12px;font-size:13px;font-weight:600;cursor:pointer}
.section-intro{margin-bottom:14px}
.section-intro h2{font-size:19px;margin-bottom:4px}
.section-intro p{font-size:12.5px;color:var(--text-muted)}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:10px}
.system-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.stat-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 10px;text-align:center}
.stat-val{font-size:20px;font-weight:800;color:var(--amber)}
.stat-lbl{font-size:11px;color:var(--text-muted);margin-top:2px}
.pillar-list{display:flex;flex-direction:column;gap:10px}
.pillar-card{background:var(--surface);border:1px solid var(--border-strong);border-radius:16px;padding:14px}
.pillar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.pillar-title{font-size:15px;font-weight:700}
.pillar-pct{font-size:12px;font-weight:700;color:var(--emerald)}
.pillar-desc{font-size:12.5px;color:var(--text-muted);margin-bottom:10px}
.progress-track{height:7px;background:var(--surface-3);border-radius:999px;overflow:hidden;margin-bottom:10px}
.progress-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#10b981);border-radius:999px;transition:width .3s ease}
.pillar-notes{display:flex;flex-direction:column;gap:6px}
.pillar-note-item{background:rgba(255,255,255,.03);border-left:2px solid var(--emerald);padding:7px 10px;border-radius:0 8px 8px 0;font-size:12.5px;color:#cbd5e1}
.pillar-jump-btn{margin-top:8px;background:transparent;border:1px solid var(--border-strong);color:var(--text-muted);font-size:11.5px;padding:5px 10px;border-radius:8px;cursor:pointer}
.mini-action-btn{background:var(--amber-soft);border:1px solid rgba(245,158,11,.45);color:#fcd34d;padding:7px 12px;border-radius:10px;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0}
.sub-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}
.sub-tab{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);padding:8px 6px;border-radius:11px;font-size:12px;font-weight:600;cursor:pointer}
.sub-tab.active{background:var(--surface-3);border-color:var(--border-strong);color:#fff}
.arsenal-list{display:flex;flex-direction:column;gap:10px}
.arsenal-item{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:13px}
.arsenal-item h4{font-size:14px;margin-bottom:6px}
.arsenal-item p{font-size:13px;color:#cbd5e1;white-space:pre-wrap}
.arsenal-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:11px;color:var(--text-dim)}
.empty-state{text-align:center;padding:36px 20px;color:var(--text-muted);font-size:13.5px;background:var(--surface);border-radius:16px;border:1px dashed var(--border-strong)}
.settings-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:15px;margin-bottom:12px}
.settings-card h3{font-size:14.5px;margin-bottom:6px}
.settings-card .hint{font-size:12px;color:var(--text-muted);margin-bottom:10px}
.field-label{display:block;font-size:12px;color:var(--text-muted);margin:10px 0 5px}
.field-input{width:100%;background:var(--bg);border:1px solid var(--border-strong);color:var(--text);padding:10px 12px;border-radius:10px;font-size:13.5px;font-family:inherit}
.full-width{width:100%;margin-top:12px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:460px;background:rgba(11,15,23,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(3,1fr);padding:8px 10px calc(8px + var(--safe-bottom));z-index:30}
.nav-item{background:transparent;border:none;color:var(--text-dim);display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;padding:4px 0}
.nav-item.active{color:var(--amber)}
.nav-icon{font-size:19px}
.nav-label{font-size:11px;font-weight:600}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.72);display:grid;place-items:end center;z-index:50}
.modal-backdrop.hidden{display:none}
.modal-sheet{width:100%;max-width:460px;max-height:88dvh;overflow-y:auto;background:var(--surface);border-radius:22px 22px 0 0;border-top:1px solid var(--border-strong);padding:18px 16px calc(24px + var(--safe-bottom))}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.icon-close{background:var(--surface-3);border:none;color:var(--text);width:30px;height:30px;border-radius:50%;cursor:pointer}
.toast{position:fixed;top:72px;left:50%;transform:translateX(-50%);background:#1e293b;color:#f8fafc;border:1px solid rgba(245,158,11,.5);padding:9px 16px;border-radius:999px;font-size:13px;font-weight:600;z-index:60;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.toast.hidden{display:none}