:root { --bg:#f5f7fa; --paper:#fff; --ink:#202d3b; --muted:#5f6e7d; --line:#e8edf2; --accent:#087d68; --soft:#e8f5f0; --negative:#bf5250; --blue:#6487d5; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:20px; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 "Segoe UI","Apple SD Gothic Neo",sans-serif; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:not-allowed; }
:focus-visible { outline:3px solid #83bdb0; outline-offset:3px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:208px; background:white; border-right:1px solid var(--line); padding:27px 16px; display:flex; flex-direction:column; z-index:2; }
.brand { display:flex; align-items:center; gap:9px; padding:0 6px; font-size:12px; font-weight:800; letter-spacing:.09em; }
.brand-symbol { display:grid; place-items:center; flex-shrink:0; width:34px; height:36px; border-radius:10px; background:var(--accent); color:white; font-size:24px; letter-spacing:0; }
.brand small { display:block; margin-top:3px; font-size:10px; font-weight:500; color:var(--muted); letter-spacing:0; }
.nav-label { margin:43px 12px 12px; color:#a2aab5; font-size:9px; letter-spacing:.13em; }
nav { display:grid; gap:7px; }
nav a { display:flex; align-items:center; gap:11px; min-height:43px; padding:10px 12px; color:#718090; font-size:12px; border-radius:8px; }
nav a>span:first-child { font-size:18px; width:17px; }
nav a.active { background:var(--soft); color:var(--accent); font-weight:700; }
nav a:hover { background:#f2f6f8; }
.external { margin-left:auto; font-size:12px; }
.nav-divider { border-top:1px solid var(--line); margin:13px 10px; }
.sidebar-note { margin-top:auto; padding:15px 10px 0; font-size:11px; color:var(--ink); }
.sidebar-note p { font-size:10px; color:var(--muted); line-height:1.8; }
.local-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#1b9d7e; margin-right:6px; }
.workspace { margin-left:208px; max-width:1800px; padding:26px 28px 16px; }
.page-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:17px; }
.eyebrow { margin:0 0 5px; font-size:9px; font-weight:700; letter-spacing:.14em; color:var(--accent); }
h1 { margin:0; font-size:25px; letter-spacing:-.06em; }
h2 { margin:0; font-size:15px; letter-spacing:-.035em; }
.subtitle { margin:7px 0 0; color:var(--muted); font-size:12px; }
.header-actions { display:flex; align-items:center; gap:8px; }
.header-actions>span { font-size:10px; color:var(--muted); margin-right:8px; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:9px 13px; border-radius:7px; border:1px solid var(--line); font-size:13px; font-weight:600; min-height:44px; }
.primary { color:white; border-color:var(--accent); background:var(--accent); }
.quiet { background:white; color:#617181; }
.text-button { background:none; border:0; padding:8px 0; min-height:44px; color:var(--accent); font-size:12px; white-space:nowrap; }
.app-status { color:#9c652c; background:#fff4dd; border-radius:7px; padding:9px 12px; margin:0 0 13px; font-size:12px; }
.app-status:empty { display:none; }
.market-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:white; border:1px solid var(--line); border-radius:10px; margin-bottom:18px; }
.market-item { min-width:0; padding:13px 17px; border-right:1px solid var(--line); }
.market-item:last-child { border:0; }
.market-item>span { display:block; color:var(--muted); font-size:10px; }
.market-item strong { display:inline-block; font-size:18px; margin:4px 9px 0 0; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.market-item small { font-size:10px; }
.market-meta { display:block; margin-top:4px; font-size:9px; color:var(--muted); }
.asset-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:18px; }
.summary-card { min-width:0; border:1px solid var(--line); background:white; border-radius:10px; padding:16px 17px; }
.summary-card>span { display:block; font-size:11px; color:var(--muted); }
.summary-card>strong { display:block; font-size:25px; letter-spacing:-.045em; margin:6px 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.summary-card>small { display:block; color:var(--muted); font-size:10px; line-height:1.6; }
.main-value { background:var(--accent); border-color:var(--accent); color:white; }
.main-value>span,.main-value>small { color:#d0ebe3; }
.positive { color:var(--accent); }
.negative { color:var(--negative); }
.muted { color:var(--muted); font-size:11px; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr); gap:16px; align-items:start; }
.card { background:white; border:1px solid var(--line); border-radius:11px; padding:19px 19px 14px; min-width:0; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.card-header .muted { margin:4px 0 0; }
.pill { background:#f1f4f7; color:#8894a0; font-size:9px; padding:4px 7px; border-radius:5px; white-space:nowrap; }
.goal-overview { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.goal-overview strong { display:block; font-size:25px; letter-spacing:-.04em; margin-top:4px; }
.goal-overview p { margin:6px 0 0; color:var(--muted); font-size:11px; }
.goal-amount { text-align:right; flex-shrink:0; }
.goal-amount span { display:block; color:var(--muted); font-size:10px; }
.goal-amount b { font-size:17px; display:block; margin-top:4px; }
.progress-track { height:5px; border-radius:6px; background:#edf2f3; margin-top:18px; overflow:hidden; }
.progress-track>span { display:block; height:100%; width:0; background:var(--accent); border-radius:6px; }
.goal-current-position { margin:10px 0 0; color:var(--accent); font-size:12px; font-weight:600; }
.progress-track { position:relative; overflow:visible; }
.progress-track>i { position:absolute; left:var(--current-progress,0%); top:-4px; width:2px; height:13px; background:var(--accent); transform:translateX(-1px); }
.progress-track>i::before { content:""; position:absolute; top:-5px; left:-4px; border:5px solid transparent; border-top-color:var(--accent); }
.progress-labels { display:flex; justify-content:space-between; margin-top:6px; font-size:9px; color:var(--muted); }
.projection-chart { margin:9px 0; min-height:120px; }
.projection-chart svg { display:block; width:100%; height:auto; }
.empty-chart { display:grid; place-items:center; background:linear-gradient(180deg,#f7faf9,white); color:#9aa6ac; font-size:11px; border-radius:7px; padding:16px; text-align:center; }
.goal-scenarios { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.scenario-result { background:#f6f8fa; padding:9px 10px; border-radius:6px; }
.scenario-result span { display:block; font-size:9px; color:var(--muted); }
.scenario-result b { display:block; font-size:12px; margin-top:3px; }
.scenario-result.base { background:var(--soft); }
.scenario-result.base b { color:var(--accent); }
.card-note { color:var(--muted); font-size:12px; line-height:1.7; margin:12px 0 0; }
.allocation-card { align-self:stretch; }
.allocation-visual { min-height:176px; display:grid; place-items:center; }
.empty-donut { width:150px; height:150px; border:24px solid #edf2f4; border-radius:50%; display:grid; place-items:center; color:#9aa6ac; font-size:11px; }
.allocation-donut { width:156px; height:156px; border-radius:50%; display:grid; place-items:center; }
.donut-hole { width:110px; height:110px; border-radius:50%; background:white; display:flex; flex-direction:column; justify-content:center; align-items:center; color:var(--muted); font-size:10px; }
.donut-hole b { color:var(--ink); font-size:24px; margin-top:5px; }
.allocation-legend { display:grid; gap:8px; margin:12px 0 0; }
.allocation-line { display:flex; align-items:center; gap:7px; font-size:11px; }
.allocation-line i { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.allocation-line b { margin-left:auto; font-weight:500; }
.empty-note { color:var(--muted); font-size:13px; line-height:1.8; }
.table-scroll { overflow:auto; max-height:290px; scrollbar-width:thin; }
table { width:100%; border-collapse:collapse; font-size:11px; white-space:nowrap; font-variant-numeric:tabular-nums; }
th,td { text-align:left; padding:11px 8px; border-bottom:1px solid var(--line); }
th { color:#93a0ac; font-weight:500; font-size:10px; background:white; position:sticky; top:0; }
td small { color:var(--muted); font-size:9px; display:block; margin-top:3px; }
td strong { font-size:12px; }
.number { text-align:right; }
.empty-table { text-align:center; white-space:normal; padding:36px 12px; color:var(--muted); }
.empty-table strong { color:#536779; }
.empty-table p { line-height:1.8; margin:8px 0 16px; }
.macro-item { padding:12px 0; border-bottom:1px solid var(--line); }
.macro-item:last-child { border:0; }
.macro-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.macro-top a { font-size:11px; }
.macro-top a:hover { color:var(--accent); }
.macro-top strong { font-size:17px; }
.macro-bottom { display:flex; justify-content:space-between; color:var(--muted); font-size:9px; margin-top:4px; gap:8px; }
.macro-meaning { margin:4px 0 0; color:var(--muted); font-size:9px; }
#asset-summary[aria-busy="true"] { opacity:.5; }
.dashboard-footer { display:flex; justify-content:space-between; gap:12px; margin-top:19px; font-size:10px; color:#9aa4ad; }
.dashboard-footer a { color:var(--accent); }
dialog { width:min(660px,calc(100% - 24px)); border:1px solid var(--line); border-radius:14px; padding:25px; color:var(--ink); box-shadow:0 24px 100px #173c3033; max-height:90dvh; overflow:auto; scroll-padding-block:100px; }
dialog::backdrop { background:#152c394d; backdrop-filter:blur(2px); }
.dialog-header { display:flex; justify-content:space-between; align-items:center; gap:16px; position:sticky; top:-25px; z-index:2; background:white; padding:12px 0; }
.dialog-header h2 { font-size:22px; }
.close-button { flex-shrink:0; border:0; background:#f2f5f7; border-radius:50%; width:44px; height:44px; font-size:22px; color:var(--muted); }
.dialog-copy { font-size:12px; color:var(--muted); line-height:1.8; margin:15px 0 20px; }
.editor-labels,.owned-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 28px; gap:9px; }
.editor-labels { font-size:10px; color:var(--muted); margin-bottom:6px; }
.owned-row { margin-bottom:9px; }
.symbol-results { display:grid; gap:6px; margin-bottom:14px; }
.symbol-results button { text-align:left; white-space:normal; }
input,select { width:100%; min-width:0; padding:9px 10px; border:1px solid #dfe6eb; border-radius:6px; color:var(--ink); background:white; }
.remove-owned { border:0; background:#fcf0ef; color:var(--negative); border-radius:5px; font-size:18px; }
.add-row { margin:3px 0 20px; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.field-grid label { font-size:11px; color:#718293; display:grid; gap:6px; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; margin-top:20px; position:sticky; bottom:-25px; padding:12px 0; background:white; border-top:1px solid var(--line); z-index:2; }
.form-status { color:var(--negative); font-size:12px; line-height:1.6; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
@media(min-width:1650px) { .overview-grid { grid-template-columns:minmax(0,2fr) minmax(310px,1fr); } }
@media(max-width:1150px) { .sidebar { width:175px; padding:24px 10px; } .workspace { margin-left:175px; padding:22px 18px; } .header-actions>span { display:none; } .overview-grid { grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr); gap:12px; } .asset-summary { gap:9px; } .summary-card { padding:13px; } .summary-card>strong { font-size:21px; } .card { padding:16px; } .goal-overview { flex-wrap:wrap; } .goal-amount { text-align:left; } }
@media(max-width:900px) { .sidebar { position:static; width:auto; padding:15px 18px; border:0; border-bottom:1px solid var(--line); } .brand { padding:0; } .nav-label,.sidebar-note,.nav-divider { display:none; } nav { display:flex; flex-wrap:wrap; gap:3px; margin-top:12px; } nav a { min-height:36px; padding:7px 9px; font-size:11px; gap:6px; } nav a>span:first-child { font-size:15px; width:auto; } .workspace { margin:0; padding:20px 16px; } .overview-grid { grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr); } h1 { font-size:23px; } .market-item { padding:12px; } .market-item strong { font-size:16px; } .dashboard-footer { flex-wrap:wrap; } }
@media(max-width:680px) { .page-header { flex-wrap:wrap; } .header-actions { width:100%; justify-content:flex-end; } .header-actions>span { display:block; margin-right:auto; } .market-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } .market-item:nth-child(2) { border:0; } .market-item:nth-child(-n+2) { border-bottom:1px solid var(--line); } .asset-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .overview-grid { grid-template-columns:1fr; } .goal-overview strong { font-size:22px; } .card { padding:16px; } .summary-card>strong { font-size:22px; } .allocation-card { order:2; } .holdings-card { order:3; } .macro-card { order:4; } input,select { font-size:16px; min-height:42px; } .field-grid { grid-template-columns:1fr; } dialog { padding:19px; } .editor-labels,.owned-row { gap:5px; } .owned-row input { padding:8px 5px; font-size:14px; } .header-actions .button { min-height:40px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
:root { --login-panel-width: 460px; }
.login-panel { width: min(var(--login-panel-width), calc(100% - 32px)); margin: 15vh auto; padding: 32px; }
.login-panel p { margin: 20px 0; }
.account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.editor-labels,.owned-row { grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr)) 28px; }
.field-grid .check-field { display:flex; align-items:center; gap:8px; }
.check-field input { width:18px; min-height:18px; }
#rebalance-status { margin-bottom:12px; }
.rebalance-settings { margin-bottom:10px; color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.rebalance-group { border:1px solid var(--line); border-radius:8px; padding:12px; margin:10px 0; }
.group-members { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:10px; }
.group-members label { display:flex; align-items:center; gap:6px; }
.group-members input { width:auto; }
[hidden] { display:none !important; }
.layout-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; color:var(--muted); font-size:11px; }
.layout-help { flex:1 1 200px; font-size:12px; }
.layout-help summary { cursor:pointer; padding:12px 0; }
.layout-help p { max-width:560px; margin:0 0 12px; line-height:1.7; }
.getting-started { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; padding:20px; border:1px solid #b8d9ce; border-radius:12px; background:var(--soft); }
.getting-started h2 { font-size:18px; }
.getting-started p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.getting-started .button { flex-shrink:0; }
.layout-toolbar .card-note { flex-basis:100%; margin:0; }
.overview-grid { grid-template-columns:repeat(12,minmax(0,1fr)); }
.dashboard-panel { position:relative; min-width:0; grid-column:span var(--panel-span); height:var(--panel-height,auto); }
.dashboard-panel[hidden],.widget-list[hidden] { display:none; }
.panel-controls { display:flex; gap:3px; position:absolute; bottom:3px; left:5px; z-index:1; }
.panel-controls button { min-width:28px; height:28px; padding:0 6px; border:1px solid var(--line); border-radius:6px; color:var(--muted); background:white; }
.panel-controls .panel-move { cursor:grab; touch-action:none; }
.panel-drop-target { outline:3px dashed var(--accent); outline-offset:2px; }
.widget-list { display:flex; flex-wrap:wrap; gap:12px 20px; padding:14px; margin-bottom:16px; background:var(--paper); border:1px solid var(--line); border-radius:8px; }
.widget-list label { display:flex; align-items:center; gap:8px; min-height:32px; font-size:12px; white-space:nowrap; }
.widget-list input { flex:0 0 16px; width:16px; height:16px; margin:0; }
.performance-list { list-style:none; padding:0; margin:0; }
.performance-list li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.performance-list li span { min-width:0; overflow-wrap:anywhere; }
.performance-list small { display:block; font-size:10px; color:var(--muted); }
.performance-list b { white-space:nowrap; }
.dashboard-panel { container:panel / inline-size; }
.dashboard-panel.panel-sized { container-type:size; }
.dashboard-panel>section { height:100%; max-width:100%; margin:0; overflow:auto; }
.dashboard-panel .card { padding-bottom:34px; }
.dashboard-panel .card-header,.dashboard-panel .goal-overview { flex-wrap:wrap; }
.dashboard-panel .market-strip,.dashboard-panel .asset-summary { padding-bottom:28px; }
.dashboard-panel .asset-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
.dashboard-panel.panel-sized .table-scroll { max-height:none; }
.panel-adaptive-hint,.panel-compact-summary,.goal-compact-note { display:none; }
.dashboard-panel h2 { font-size:clamp(13px,2.4cqw,20px); }
.dashboard-panel .summary-card>strong { font-size:clamp(19px,3.5cqw,34px); }
.dashboard-panel .market-strip { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
.dashboard-panel .market-item strong { font-size:clamp(16px,3cqw,28px); }
.dashboard-panel.panel-sized>.card { display:flex; flex-direction:column; }
.dashboard-panel.panel-sized>.card>* { flex-shrink:0; }
.dashboard-panel.panel-sized .table-scroll { flex:1; min-height:0; overflow:auto; }
.dashboard-panel.panel-sized .projection-chart { flex:1; min-height:120px; }
.dashboard-panel.panel-sized .projection-chart svg { height:100%; }
.dashboard-panel .allocation-donut,.dashboard-panel .empty-donut { width:clamp(110px,30cqw,280px); height:auto; aspect-ratio:1; }
.dashboard-panel .donut-hole { width:70%; height:70%; }
.allocation-donut { position:relative; background:none; }
.allocation-donut>svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.allocation-donut .donut-hole { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); pointer-events:none; }
.allocation-segment { cursor:help; }
.allocation-segment:hover,.allocation-segment:focus { stroke-width:34; outline:none; }
.allocation-tooltip { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:85%; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:#202d3b; color:white; font-size:11px; text-align:center; pointer-events:none; z-index:2; }
.allocation-donut:has(.allocation-tooltip:not([hidden])) .donut-hole { visibility:hidden; }
.owned-name { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.dashboard-panel.panel-sized .allocation-visual { flex:1; min-height:110px; }
.dashboard-panel.panel-sized .allocation-donut { width:min(55cqw,55cqh,320px); }
.panel-compact-summary strong,.panel-compact-summary span,.panel-compact-summary small { display:block; }
.panel-compact-summary strong { font-size:clamp(20px,5cqw,32px); }
.panel-compact-summary span,.panel-compact-summary small { color:var(--muted); font-size:10px; }
@container panel (min-width:620px) {
  #macro-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
  .macro-top strong { font-size:24px; }
}
@container panel (max-width:520px) {
  #holdings th:nth-child(2),#holdings td:nth-child(2),#holdings th:nth-child(6),#holdings td:nth-child(6),.price-cost-detail { display:none; }
  #rebalance th:nth-child(5),#rebalance td:nth-child(5) { display:none; }
  .macro-meaning { display:none; }
  .goal-scenarios { gap:4px; }
}
@container panel (max-width:440px) {
  #holdings thead,#rebalance thead { display:none; }
  #holdings table,#holdings tbody,#rebalance table,#rebalance tbody { display:block; white-space:normal; }
  #holdings tr,#rebalance tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; padding:10px 0; border-bottom:1px solid var(--line); }
  #rebalance tr { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #holdings td,#rebalance td { text-align:left; padding:2px 0; border:0; overflow-wrap:anywhere; }
  #holdings td:first-child,#rebalance td:first-child { grid-column:1/-1; }
  #holdings td[data-label]::before,#rebalance td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:9px; }
  .goal-overview { display:block; }
  .goal-amount { margin-top:8px; text-align:left; }
  .goal-scenarios { grid-template-columns:1fr; }
  .scenario-result:not(.base),.projection-detail { display:none; }
  .goal-compact-note { display:block; }
}
@container panel (max-height:260px) {
  .performance-list li:nth-child(n+4) { display:none; }
  .dashboard-panel>.card { padding:12px 14px 30px; }
  .card-header { margin-bottom:8px; }
  .card-header .eyebrow,.card-header .muted,.macro-meaning,.card>p.card-note:not([role=status]),#goal-overview p { display:none; }
  #projection-chart,#goal-scenarios,.goal-compact-note { display:none; }
  #holdings .table-scroll,#rebalance .table-scroll { display:none; }
  .panel-compact-summary { display:block; }
  .panel-adaptive-hint { display:block; margin:8px 0 0; color:var(--muted); font-size:9px; }
  .allocation-visual { display:none; }
  .allocation-legend { margin-top:4px; gap:5px; }
  .allocation-line:nth-child(n+4) { display:none; }
  #macro-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; }
  .macro-item { padding:3px 0; }
  .macro-top { flex-wrap:wrap; gap:2px 6px; }
  .macro-top strong { font-size:15px; }
  .macro-bottom { flex-wrap:wrap; }
  .summary-card { padding:10px; }
  .goal-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .goal-overview strong { font-size:20px; }
  .goal-amount { margin:0; text-align:right; }
  .goal-amount b { font-size:14px; }
}
@container panel (max-height:220px) {
  .progress-track,.progress-labels { display:none; }
  .dashboard-panel .card-header { margin-bottom:4px; }
}
@container panel (max-height:180px) {
  .compact-profit { display:none; }
}
@container panel (max-height:180px) and (max-width:520px) {
  .asset-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .asset-summary .summary-card:nth-child(n+3) { display:none; }
}
.panel-resize { position:absolute; bottom:3px; right:3px; width:28px; height:28px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--accent); cursor:nwse-resize; touch-action:none; z-index:1; }
.recovery-panel { padding:20px; margin:16px 0; border:1px solid var(--line); border-radius:12px; background:white; }
#other-drafts:not([hidden]) { display:block; margin:12px 0; }
#draft-list { display:block; max-width:100%; margin-top:6px; }
.recovery-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.recovery-comparison pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; line-height:1.6; }
@media(max-width:680px) { .recovery-comparison { grid-template-columns:1fr; } }
@media(max-width:900px) { .overview-grid { grid-template-columns:minmax(0,1fr); } .dashboard-panel { grid-column:1/-1; } .panel-resize { cursor:ns-resize; } }
@media(max-width:680px) {
  nav a { min-height:44px; font-size:12px; }
  .header-actions { flex-wrap:wrap; }
  .header-actions>span { flex-basis:100%; }
  .getting-started { flex-direction:column; align-items:stretch; gap:14px; }
  .layout-help { flex-basis:100%; }
  .layout-toolbar { justify-content:flex-end; }
  .dialog-header { top:-19px; }
  .dialog-actions { bottom:-19px; }
  .dialog-actions .button { flex:1 1 auto; }
  .editor-labels { display:none; }
  .owned-row { grid-template-columns:1fr 1fr; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
  .owned-row label { min-width:0; }
  .owned-row .sr-only { position:static; display:block; width:auto; height:auto; min-height:36px; margin-bottom:6px; clip-path:none; overflow:visible; white-space:normal; font-size:12px; color:var(--muted); }
  .owned-row input { font-size:16px; min-height:44px; padding:9px; }
  .owned-row .remove-owned { grid-column:2; justify-self:end; width:44px; min-height:44px; }
}
