/* The ledger remains the money authority. This layer only controls hierarchy. */
.calm-shell{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC",sans-serif}
.calm-shell .market-clock{display:none}.calm-shell .topbar{justify-content:flex-end}.calm-shell[data-active-view="overview"] .search-shell{display:none}
.calm-shell .nav-item{min-height:48px;border-radius:12px}.calm-shell .nav-item.active{box-shadow:none}.calm-shell .workspace{max-width:1220px;margin:auto}
.calm-shell :is(button,summary,a,input,select):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.autonomous-home{padding:32px 36px;min-width:0;border-radius:24px;box-shadow:none}.autonomous-home>header{margin-bottom:24px}.autonomous-home h1{font-size:30px;letter-spacing:-1px;margin:5px 0;line-height:1.3}.autonomous-home>header p{font-size:13px;color:var(--muted);margin:0}
.auto-paper-summary{padding:28px 30px;min-width:0;border-radius:24px}.auto-paper-summary>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.auto-paper-summary h1{font-size:23px;line-height:1.35;margin:4px 0}.auto-paper-summary header p{font-size:13px;color:var(--muted);margin:0}.auto-paper-table-wrap{overflow-x:auto}.auto-paper-summary table{width:100%;border-collapse:collapse;min-width:900px;font-size:13px}.auto-paper-summary th,.auto-paper-summary td{text-align:right;padding:13px 12px;border-bottom:1px solid var(--border);white-space:nowrap}.auto-paper-summary thead th{font-size:12px;color:var(--muted);font-weight:600}.auto-paper-summary th:first-child{text-align:left}.auto-paper-summary tbody th{font-weight:600}.auto-paper-summary tbody tr:last-child :is(th,td){border-bottom:0}
.autonomous-home .rl-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 24px;padding:0 0 24px;margin:0;border:0}.autonomous-home .rl-summary>div:first-child{grid-column:1/-1;padding-bottom:20px;border-bottom:1px solid var(--border)}.autonomous-home .rl-summary dt{font-size:13px;line-height:1.5}.autonomous-home .rl-summary dd{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:1.3;margin:6px 0 0;overflow-wrap:anywhere}.autonomous-home .rl-summary>div:first-child dd{font-size:42px;letter-spacing:-1.5px}
.auto-state{display:flex;gap:12px;background:var(--panel-muted);border:1px solid var(--border);border-radius:16px;padding:16px 18px;margin:0 0 28px}.state-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);margin-top:7px;flex:none}.auto-state>div{min-width:0}.auto-state strong{font-size:15px;font-weight:600}.auto-state p{font-size:13px;line-height:1.7;margin:6px 0;color:var(--muted)}.auto-explain>summary{font-size:13px;color:var(--accent-strong);cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.auto-explain>summary::after{content:'›';font-size:20px}.auto-explain[open]>summary::after{transform:rotate(90deg)}
.auto-progress h2{font-size:16px;margin:10px 0}.auto-progress ol{list-style:none;padding:0}.auto-progress li{display:grid;grid-template-columns:160px 1fr;gap:12px;font-size:13px;padding:10px 0;border-bottom:1px solid var(--border)}.auto-progress li span{color:var(--muted);line-height:1.7}.auto-progress summary{font-size:13px;min-height:44px;cursor:pointer;padding:12px 0}
.rl-trade-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}.rl-trade-heading h2{font-size:20px;margin:0}.rl-trade-heading>span{font-size:12px;color:var(--muted)}.autonomous-home .rl-tabs{display:inline-flex;border:0;border-radius:10px;background:var(--panel-muted);padding:4px;gap:4px;margin:0 0 12px}.autonomous-home .rl-tabs button{min-height:44px;border:0;border-radius:8px;background:transparent;padding:9px 20px;color:var(--muted)}.autonomous-home .rl-tabs button[aria-selected="true"]{background:var(--panel);color:var(--text);box-shadow:0 1px 4px rgb(0 0 0 / .08)}
.rl-empty{font-size:14px;color:var(--muted);line-height:1.8;padding:20px 0 24px;max-width:58ch;margin:0}.rl-empty[hidden]{display:none!important}.autonomous-home .rl-table{margin-top:8px}.autonomous-home .rl-table td{padding-block:16px}.autonomous-home :is(.rl-audit,.rl-detail){font-size:13px}.autonomous-home .rl-audit{border-top:1px solid var(--border);padding-top:8px;margin-top:12px}.autonomous-home .rl-audit>summary{min-height:44px;cursor:pointer;display:list-item;line-height:44px}.autonomous-home .rl-detail dl{display:grid;grid-template-columns:1fr;gap:10px}.autonomous-home .rl-detail dd{margin:4px 0}.autonomous-home .rl-detail p{font-size:12px;line-height:1.7}.autonomous-home .rl-run pre{max-height:350px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.auto-reconcile{font-size:12px;color:var(--muted);margin:12px 0 0}.ledger-alert{padding:14px;border:2px solid var(--warn);border-radius:12px;line-height:1.7}.home-loading{padding:30px 0;color:var(--muted);line-height:1.8}
#research-view .module-heading{padding:0 0 24px;flex-wrap:wrap}#research-view .module-heading h1{font-size:30px}#research-view .module-heading p{font-size:14px;color:var(--muted);font-weight:400;letter-spacing:0;text-transform:none}.research-progress-panel{padding:28px;border-radius:20px}.progress-kicker{color:var(--muted);font-size:12px}.progress-heading h2{font-size:22px;letter-spacing:-.6px;margin:10px 0}.progress-heading p{font-size:14px;color:var(--muted);line-height:1.8;max-width:64ch}.progress-stock-list{margin-top:24px}.progress-stock{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px;padding:16px 0;border-top:1px solid var(--border);align-items:center;font-size:14px}.progress-stock strong{font-weight:600}.progress-stock strong span{font-weight:400}.progress-stock small{font-size:13px;color:var(--muted)}.progress-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px}.progress-foot p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.progress-next{border-top:1px solid var(--border);margin-top:14px}.progress-next summary{min-height:48px;line-height:48px;cursor:pointer;font-size:14px}.progress-next small{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.8}.progress-next p{font-size:14px;line-height:1.8;color:var(--muted)}.research-links{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0}.research-links button,.progress-foot button{min-height:44px}.research-tools{padding:18px 24px;margin-top:16px}.research-tools>summary{min-height:44px;font-size:15px;cursor:pointer;line-height:44px}.research-tools>summary small{font-size:12px;color:var(--muted);margin-left:12px}.research-tools[open]>.panel{margin-top:24px}
@media(max-width:700px){.calm-shell .mobile-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.calm-shell .mobile-nav-item{min-width:0}.calm-shell .mobile-nav-item b{font-size:11px}.calm-shell .workspace{padding:20px 12px 96px}.auto-paper-summary{padding:22px 18px;border-radius:20px}.auto-paper-summary h1{font-size:20px}.autonomous-home{padding:22px 18px;border-radius:20px}.autonomous-home h1{font-size:27px}.autonomous-home>header{margin-bottom:20px}.autonomous-home .rl-summary{grid-template-columns:1fr 1fr;gap:18px 12px;padding-bottom:22px}.autonomous-home .rl-summary dd{font-size:21px}.autonomous-home .rl-summary>div:first-child dd{font-size:36px}.autonomous-home .rl-summary>div:first-child{padding-bottom:18px}.auto-state{padding:12px;margin-bottom:22px;gap:9px}.auto-state p{font-size:12px}.auto-progress li{grid-template-columns:1fr;gap:4px}.autonomous-home .rl-tabs{display:flex}.autonomous-home .rl-tabs button{flex:1;padding:8px;font-size:14px}.autonomous-home .rl-table td{padding:0}.autonomous-home .rl-table tr{padding:16px 0}.autonomous-home .rl-detail[open] dl{grid-template-columns:1fr 1fr}.research-progress-panel{padding:22px 18px}.progress-heading h2{font-size:21px}.progress-stock{grid-template-columns:1fr 1fr;gap:8px}.progress-stock strong{grid-column:1/-1}.progress-foot{display:block}.research-tools{padding:12px 18px}.research-tools>summary small{display:block;line-height:1.5;margin:0 0 10px}.progress-next summary{line-height:1.7;padding:14px 0}#research-view .module-heading{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.calm-shell *{scroll-behavior:auto;transition:none!important}}

.automatic-replay{border-top:1px solid var(--border);margin-top:20px;padding-top:12px}.automatic-replay h3{font-size:17px;margin:10px 0}.automatic-replay p,.automatic-replay small{font-size:13px;line-height:1.8;color:var(--muted)}.automatic-replay summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px}.replay-jobs{display:grid;gap:12px;margin:16px 0}.replay-jobs article{padding:12px 0;border-top:1px solid var(--border)}.replay-jobs strong{font-size:14px}.replay-jobs small{display:block}.replay-jobs button{min-height:44px}.automatic-replay [data-replay-output]{min-width:0}.automatic-replay .rl-run pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
/* Status explains the work; the ledger remains the authority for all money. */
.automation-status h2{font-size:22px;line-height:1.35;letter-spacing:-.025em;margin:8px 0 12px}.automation-status>p{color:var(--muted);line-height:1.7;margin:0 0 16px}.auto-state .automation-status h2{font-size:17px;margin:6px 0}.auto-state .automation-status>p{margin-bottom:8px}.auto-state .automation-status .text-btn{padding-left:0}
.automation-steps{list-style:none;margin:24px 0;padding:0}.automation-steps>li{display:flex;gap:16px;padding:20px 0;border-top:1px solid var(--border)}.step-number{flex:none;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f0f1f3;color:#555;font-size:14px;font-weight:600}.automation-steps h3{font-size:16px;margin:2px 0 8px}.automation-steps p{margin:5px 0;line-height:1.6}.automation-steps small,.automation-lanes{font-size:12px;line-height:1.7;color:var(--muted)}.research-evidence{border-top:1px solid var(--border);margin-top:24px;padding-top:8px}.research-evidence>summary{padding:16px 0;font-size:14px;font-weight:600;cursor:pointer}.research-evidence .progress-heading{margin-top:20px}
@media(max-width:600px){.automation-status h2{font-size:21px}.automation-steps{margin:20px 0}.automation-steps>li{gap:12px;padding:18px 0}.automation-steps p{font-size:14px}.automation-lanes{max-width:30em}.research-evidence>summary{min-height:44px}.auto-state .automation-status .text-btn{min-height:44px}}
.market-stale-banner{padding:14px 18px;border:1px solid #b42318;border-left:5px solid #b42318;background:#fff1f0;color:#8b1b13;border-radius:8px;font-weight:700;margin:12px 0}
.home-summary-note{font-size:.82rem;color:var(--text-muted,#666);margin:8px 0}
