/* Owner-approved calm direction: compact hierarchy, real data, 44px targets. */
.calm-shell #main-nav button>span:not(.badge){overflow-wrap:normal;word-break:normal;font-weight:500;letter-spacing:-.3px}
.calm-shell{--home-bg:#f3f4f6;--home-surface:#fff;--home-text:#1c1d22;--home-muted:#626773;--home-line:#e3e5eb;--home-blue:#0065d9;--home-soft:#eaf2ff;display:block;max-width:1060px;margin:auto;padding:0 18px;color:var(--home-text);background:var(--home-bg)}
html:has(.calm-shell){background:#f3f4f6}.calm-shell>header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:56px;padding:10px 0;border-bottom:1px solid var(--home-line)}.calm-shell>header .eyebrow{display:none}.calm-shell>header h1{font-size:14px;letter-spacing:.1em;margin:0}.calm-shell>header #identity{font-size:12px;color:var(--home-muted);margin-left:auto;max-width:55%;text-align:right}.calm-shell .browser-controls{width:100%;font-size:12px}.calm-shell .browser-controls button{min-height:44px;font-size:12px;padding:7px 10px}.calm-shell>header .browser-controls{display:none}.calm-shell #content .browser-controls{display:block}
.calm-shell>main{display:block;padding:18px 0 108px}.calm-shell>main>.card,.calm-shell>main>.report-tools{margin-bottom:14px}.calm-shell #main-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;position:fixed;top:auto;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:1060px;padding:9px 8px calc(9px + env(safe-area-inset-bottom));background:var(--home-surface);border-top:1px solid var(--home-line);z-index:10}.calm-shell #main-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:transparent;color:var(--home-muted);border-radius:8px;min-height:52px;font-size:12px;line-height:1.2;padding:5px 1px;white-space:normal;box-shadow:none;position:relative}.calm-shell #main-nav button.active{color:var(--home-blue);background:var(--home-soft)}.calm-shell #main-nav svg,.calm-shell .more-grid svg{width:21px;height:21px;flex-shrink:0}.calm-shell #main-nav .badge{position:absolute;top:0;right:4px;font-size:10px;height:17px;min-width:17px;background:var(--home-blue)}.calm-shell .more-grid button{display:flex;align-items:center;gap:7px;text-align:left}
.calm-shell button{cursor:pointer}.calm-shell button:hover:not(:disabled){box-shadow:0 0 0 1px var(--home-blue)}.calm-shell button:focus-visible,.calm-shell summary:focus-visible{outline:3px solid var(--home-blue);outline-offset:3px}.calm-shell .action,.calm-shell .task-tabs .active{background:var(--home-blue);color:#fff}.calm-shell .secondary{background:var(--home-soft);color:var(--home-blue)}.calm-shell .card{background:var(--home-surface);color:var(--home-text);border-color:var(--home-line)}.calm-shell .hint,.calm-shell .meta{color:var(--home-muted)}.calm-shell .welcome{border-top-color:var(--home-blue)}
.home-page{font-size:14px;line-height:1.45;min-width:0}.home-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.home-title h2{font-size:27px;line-height:1.15;letter-spacing:-.6px;margin:0}.home-title p{font-size:12px;color:var(--home-muted);margin:5px 0 0;text-transform:capitalize}.home-title>span{font-size:12px;color:var(--home-muted);text-align:right;max-width:125px}.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:17px;background:var(--home-surface);padding:12px 0}.home-metrics button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:46px;border-radius:0;background:none;color:var(--home-text);padding:0 8px}.home-metrics button+button{border-left:1px solid var(--home-line)}.home-metrics strong{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}.home-metrics span{font-size:12px;color:var(--home-muted);font-weight:400}.home-metrics .home-emphasis strong{color:var(--home-blue)}
.home-block{margin-top:14px}.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:40px;margin-bottom:4px}.home-section-title h3{font-size:16px;line-height:1.35;margin:0;font-weight:600}.home-count{display:inline-block;font-size:11px;background:var(--home-soft);color:var(--home-blue);padding:3px 6px;border-radius:7px;margin-left:4px}.home-link{background:none;color:var(--home-blue);font-size:12px;font-weight:500;padding:8px 0;min-height:44px;border-radius:5px;flex-shrink:0}.home-group{background:var(--home-surface);border-radius:17px;padding:0 14px}.home-row{display:flex;align-items:center;text-align:left;gap:10px;min-height:62px;width:100%;padding:12px 0;border-radius:0;background:transparent;color:var(--home-text);font-weight:400;line-height:1.4}.home-row+.home-row{border-top:1px solid var(--home-line)}.home-row-copy{flex:1;min-width:0;overflow-wrap:anywhere}.home-row-title{display:block;font-size:14px;font-weight:550}.home-row-sub{display:block;font-size:12px;color:var(--home-muted);margin-top:3px}.home-trailing{font-size:14px;text-align:right;font-variant-numeric:tabular-nums;max-width:45%;overflow-wrap:anywhere}.home-trailing small{display:block;font-size:11px;color:var(--home-muted);margin-top:3px}.home-arrow{font-size:22px;color:var(--home-muted)}.home-note{font-size:12px;color:var(--home-muted);margin:8px 0 0;line-height:1.45}.home-empty{margin:0;padding:14px 0;font-size:13px;color:var(--home-muted)}
.home-stock{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;background:var(--home-surface);border-radius:17px}.home-stock>div{min-width:0}.home-stock strong{display:block;font-size:23px;line-height:1.2;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.home-stock strong small{font-size:13px;font-weight:400}.home-stock span{display:block;font-size:12px;color:var(--home-muted);margin-top:4px}.home-stock dl{display:grid;gap:6px;margin:0;font-size:12px;max-width:53%;min-width:0}.home-stock dl>div{display:flex;justify-content:space-between;gap:8px}.home-stock dt{color:var(--home-muted)}.home-stock dd{margin:0;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.home-freshness{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:12px;color:var(--home-muted);font-size:11px}.home-freshness.is-stale{padding:6px 10px;border:1px solid #b08743;border-radius:12px}.home-freshness .home-link{font-size:12px}.home-team{margin-top:5px}.home-page .focused-card{scroll-margin-bottom:100px}
@media(min-width:760px){.home-page{max-width:820px;margin:auto}.home-group{padding:0 18px}.home-row{min-height:65px}.home-stock{padding:18px}.calm-shell>header{min-height:58px}.calm-shell #main-nav{padding-left:30px;padding-right:30px}.home-title{margin-bottom:18px}}
@media(max-width:350px){.calm-shell{padding-left:13px;padding-right:13px}.home-metrics button{padding:0 4px}.home-metrics span{font-size:11px}.home-stock{gap:10px;padding:12px}.home-stock strong{font-size:21px}.home-stock dl>div{flex-wrap:wrap;gap:2px;justify-content:flex-end}.home-stock dt{width:100%;text-align:right}.home-row{gap:7px}.home-trailing{max-width:42%}.calm-shell #main-nav button{font-size:11px}}
@media(prefers-color-scheme:dark){.calm-shell{--home-bg:#17181b;--home-surface:#25262a;--home-text:#f5f5f7;--home-muted:#b6b9c2;--home-line:#3c3e45;--home-blue:#81b8ff;--home-soft:#25364f;--surface:var(--home-surface);--muted:var(--home-muted);--tg-theme-secondary-bg-color:var(--home-surface);--tg-theme-text-color:var(--home-text)}html:has(.calm-shell){background:#17181b}.calm-shell .action{background:#126ad4;color:white}.calm-shell .task-tabs .active{background:#126ad4;color:white}.calm-shell input,.calm-shell textarea,.calm-shell select{background:var(--home-surface);color:var(--home-text)}}
@media print{.calm-shell #main-nav,.home-link,.home-freshness{display:none!important}.calm-shell>main{padding-bottom:0}.home-row,.home-stock,.home-metrics{break-inside:avoid}}
