:root{--bg:#f3f4f6;--surface:#fff;--surface-2:#f8fafc;--border:#e2e8f0;--border-strong:#cbd5e1;--text:#0f172a;--text-muted:#64748b;--text-faint:#94a3b8;--accent:#2563eb;--accent-strong:#1d4ed8;--accent-soft:#dbeafe;--pos:#16a34a;--pos-soft:#dcfce7;--neg:#dc2626;--neg-soft:#fee2e2;--warn:#b45309;--warn-soft:#fef3c7;--topbar-bg:#0f172a;--topbar-fg:#f8fafc;--topbar-muted:#94a3b8;--radius:10px;--radius-sm:6px;--shadow-sm:0 1px 2px #0f172a0f;--shadow:0 1px 2px #0f172a0a, 0 8px 24px #0f172a0f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body{margin:0}.auth-page{background:radial-gradient(1200px 600px at 50% -10%,#1e293b 0%,#0000 60%),linear-gradient(160deg,#0b1220 0%,#0f172a 45%,#111a2e 100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex;position:relative;overflow:hidden}.auth-glow{filter:blur(20px);pointer-events:none;background:radial-gradient(circle,#2563eb47 0%,#2563eb00 70%);width:640px;height:640px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.auth-card{z-index:1;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#e2e8f0;background:#111929b8;border:1px solid #94a3b829;border-radius:18px;flex-direction:column;gap:14px;width:100%;max-width:380px;padding:36px 32px;animation:.5s cubic-bezier(.16,1,.3,1) both auth-rise;display:flex;position:relative;box-shadow:0 24px 60px #00000073,inset 0 1px #ffffff0f}@keyframes auth-rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.auth-brand{justify-content:center;align-items:center;margin:4px 0 14px;display:flex}.auth-mark{color:#fff;background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;font-size:1.6rem;display:inline-flex;box-shadow:0 10px 28px #2563eb8c}.auth-field{color:#cbd5e1;flex-direction:column;gap:6px;font-size:.82rem;font-weight:500;display:flex}.auth-field input{box-sizing:border-box;width:100%;font:inherit;color:#f8fafc;background:#0f172a99;border:1px solid #94a3b838;border-radius:10px;padding:.7rem .85rem;font-size:.95rem;transition:border-color .15s,box-shadow .15s,background .15s}.auth-field input::placeholder{color:#64748b}.auth-field input:focus{background:#0f172ad9;border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #2563eb47}.auth-field input:disabled{opacity:.55;cursor:not-allowed}.auth-submit{width:100%;font:inherit;color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);border:none;border-radius:10px;margin-top:8px;padding:.75rem 1rem;font-size:.95rem;font-weight:600;transition:transform .12s,box-shadow .15s,filter .15s;box-shadow:0 8px 20px #2563eb66}.auth-submit:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 10px 26px #2563eb8c}.auth-submit:active:not(:disabled){transform:translateY(0)}.auth-submit:disabled{opacity:.65;cursor:not-allowed}.user-menu{border-left:1px solid #94a3b859;align-items:center;gap:8px;margin-left:8px;padding-left:12px;display:flex}.user-name{color:var(--topbar-muted);text-overflow:ellipsis;white-space:nowrap;max-width:12ch;font-size:.85rem;overflow:hidden}.totp-enroll{flex-direction:column;gap:12px;display:flex}.totp-uri{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);word-break:break-all;margin-top:6px;padding:8px;font-size:.75rem;display:block}.totp-recovery{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:4px 0;padding:12px;list-style:none;display:grid}.totp-recovery code{letter-spacing:.02em;font-size:.9rem}.topbar{background:var(--topbar-bg);color:var(--topbar-fg);z-index:10;border-bottom:1px solid #1e293b;position:sticky;top:0}.topbar-inner{align-items:center;gap:2rem;max-width:1200px;margin:0 auto;padding:.75rem 1.5rem;display:flex}.brand{color:inherit;letter-spacing:.02em;align-items:center;gap:.5rem;font-weight:700;text-decoration:none;display:inline-flex}.brand-mark{color:var(--accent);font-size:1.1rem}.brand-name{font-size:1.05rem}.tabs{gap:.25rem;display:flex}.tab{color:var(--topbar-muted);border-radius:var(--radius-sm);padding:.4rem .85rem;font-size:.9rem;font-weight:500;text-decoration:none;transition:background .12s,color .12s}.tab:hover{color:#fff;background:#ffffff0f}.tab-active,.tab-active:hover{background:var(--accent);color:#fff}.nav-settings{font-size:1.1rem;line-height:1}.container{max-width:1200px;margin:0 auto;padding:1.75rem 1.5rem 4rem}header h1{letter-spacing:-.01em;margin:0 0 .25rem;font-size:1.6rem;font-weight:700}.subtitle{color:var(--text-muted);max-width:64ch;margin:0 0 1.5rem}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.page-header .subtitle{margin-bottom:0}a{color:var(--accent)}a:hover{color:var(--accent-strong)}.as-of{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;align-items:flex-end;padding:.5rem .85rem;display:inline-flex}.as-of-label{text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint);font-size:.7rem}.as-of-date{font-variant-numeric:tabular-nums;font-weight:600}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-bottom:1.25rem;padding:1.25rem}.card h2{margin:0 0 .5rem;font-size:1.1rem;font-weight:600}.card h3{margin:1.25rem 0 .5rem;font-size:.95rem;font-weight:600}.summary-strip{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1.25rem;display:grid}.summary-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;gap:.25rem;padding:1rem 1.15rem;display:flex;position:relative;overflow:hidden}.summary-tile:before{content:"";background:var(--accent);width:3px;position:absolute;inset:0 auto 0 0}.summary-tile.summary-pl.pos:before{background:var(--pos)}.summary-tile.summary-pl.neg:before{background:var(--neg)}.summary-label{text-transform:uppercase;letter-spacing:.08em;color:var(--text-faint);font-size:.72rem;font-weight:600}.summary-value{font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:1.6rem;font-weight:700}.summary-pl.pos .summary-value{color:var(--pos)}.summary-pl.neg .summary-value{color:var(--neg)}.summary-sub{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:.8rem}.forex-card{padding:1rem 1.15rem}.forex-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.forex-header h3{margin:0;font-size:.95rem}.forex-total{color:var(--text-muted);font-size:.9rem}.forex-list{flex-wrap:wrap;gap:.5rem;margin:.6rem 0 0;padding:0;list-style:none;display:flex}.forex-chip{background:var(--surface-2);border:1px solid var(--border);font-variant-numeric:tabular-nums;border-radius:999px;align-items:baseline;gap:.3rem;padding:.3rem .7rem;font-size:.85rem;display:inline-flex}.forex-currency{color:var(--text-muted);font-weight:600}.forex-desc{color:var(--text-faint);font-size:.75rem}.positions-card{padding:1rem 1.25rem 1.25rem}.positions-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.positions-toolbar-left,.positions-toolbar-right{align-items:center;gap:.5rem;display:inline-flex}.pill{background:var(--surface-2);color:var(--text);border:1px solid var(--border-strong);cursor:pointer;border-radius:999px;padding:.32rem .8rem;font-size:.85rem;transition:background .12s,color .12s,border-color .12s}.pill:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.pill-active{background:var(--accent);color:#fff;border-color:var(--accent)}.pill-active:hover{background:var(--accent-strong);color:#fff;border-color:var(--accent-strong)}.pill:disabled{opacity:.6;cursor:not-allowed}.symbol-search{border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;background:var(--surface);min-width:9rem;padding:.32rem .75rem;font-size:.85rem}.symbol-search:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.positions-summary{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);margin:.25rem 0 1rem;padding:1rem}.positions-summary-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.summary-list h4{text-transform:uppercase;letter-spacing:.08em;margin:0 0 .5rem;font-size:.78rem;font-weight:700}.summary-list h4.pos{color:var(--pos)}.summary-list h4.neg{color:var(--neg)}.summary-list ul{flex-direction:column;gap:.25rem;margin:0;padding:0;list-style:none;display:flex}.summary-list li{background:var(--surface);border-radius:var(--radius-sm);border:1px solid var(--border);grid-template-columns:1fr max-content max-content;align-items:baseline;gap:.75rem;padding:.35rem .5rem;display:grid}.summary-list-symbol{font-weight:600}.summary-list-pl,.summary-list-pct{font-variant-numeric:tabular-nums;font-size:.85rem}.positions-summary-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem 1rem;margin:1rem 0 0;display:grid}.positions-summary-stats>div{flex-direction:column;gap:.1rem;display:flex}.positions-summary-stats dt{text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);font-size:.72rem}.positions-summary-stats dd{font-variant-numeric:tabular-nums;margin:0;font-weight:600}.positions-table-wrap{border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}.positions-table{border-collapse:collapse;width:100%;font-size:.9rem}.positions-table th,.positions-table td{text-align:left;white-space:nowrap;border-bottom:1px solid var(--border);padding:.55rem .75rem}.positions-table thead th{background:var(--surface-2);text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);z-index:1;font-size:.78rem;position:sticky;top:0}.positions-table tbody tr:last-child td{border-bottom:0}.positions-table tbody tr:hover{background:var(--accent-soft)}.positions-table th.num,.positions-table td.num{text-align:right;font-variant-numeric:tabular-nums}.positions-table .symbol-cell{letter-spacing:.01em;font-weight:600}.symbol-display{align-items:center;gap:.35rem;display:inline-flex}.symbol-note-link,.symbol-chart-link{opacity:.7;font-size:.85em;line-height:1;text-decoration:none}.symbol-note-link:hover,.symbol-chart-link:hover{opacity:1}.charts-page{box-sizing:border-box;flex-direction:column;height:100dvh;padding:1.25rem 1.5rem;display:flex}.charts-page-head{flex:none;align-items:baseline;gap:.75rem;margin-bottom:.75rem;display:flex}.candle-chart{flex-direction:column;flex:auto;min-height:0;display:flex}.candle-chart-canvas{flex:auto;min-height:0}.charts-page-head h1{margin:0;font-size:1.4rem}.charts-page-name{color:#555}.charts-page-currency{color:#888;border:1px solid #ddd;border-radius:4px;padding:0 .35rem;font-size:.85em}.charts-page-head .symbol-note-link{align-self:center;font-size:1.1rem}.charts-page-exchange{color:#888;font-weight:500}.type-help{color:#888;cursor:help;border:1px solid #ccc;border-radius:50%;justify-content:center;align-items:center;width:1rem;height:1rem;margin-left:.35rem;font-size:.7rem;line-height:1;display:inline-flex}.tooltip-bubble{color:#fff;text-align:left;white-space:normal;z-index:1000;pointer-events:none;background:#333;border-radius:4px;max-width:18rem;padding:.4rem .6rem;font-size:.8rem;line-height:1.35;position:fixed;transform:translate(-50%);box-shadow:0 2px 8px #00000040}.candle-chart-controls{flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.candle-chart-ranges button{color:#333;cursor:pointer;background:#fff;border:1px solid #ccc;padding:.2rem .6rem;font-size:.85em}.candle-chart-ranges button.active{color:#fff;background:#2563eb;border-color:#2563eb}.candle-chart-timeframes{display:inline-flex}.candle-chart-timeframes button{color:#333;cursor:pointer;background:#fff;border:1px solid #ccc;padding:.2rem .6rem;font-size:.85em}.candle-chart-timeframes button.active{color:#fff;background:#2563eb;border-color:#2563eb}.candle-chart-smas{gap:.9rem;font-size:.85em;display:flex}.candle-chart-smas label{cursor:pointer;align-items:center;gap:.25rem;display:inline-flex}.candle-chart-empty,.candle-chart-error{color:#777;padding:1.5rem 0}.candle-chart-error{color:#dc2626}.candle-chart-help-toggle{color:#2563eb;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:4px;margin-left:auto;padding:.2rem .6rem;font-size:.85em}.candle-chart-help-toggle:hover{background:#f5f7ff}.candle-chart-help{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;flex:none;max-height:40%;margin:.5rem 0 .75rem;padding:.9rem 1.1rem;font-size:.9em;line-height:1.5;overflow-y:auto}.candle-chart-help-intro{color:#475569;margin:0 0 .75rem}.candle-chart-help dl{margin:0}.candle-chart-help-item{border-top:1px solid #e8edf3;padding:.5rem 0}.candle-chart-help-item:first-child{border-top:none;padding-top:0}.candle-chart-help dt{color:#1e293b;margin-bottom:.2rem;font-weight:600}.candle-chart-help dd{color:#334155;margin:0}.candle-chart-help-example{color:#475569;margin-top:.3rem;display:block}.candle-chart-help-disclaimer{color:#64748b;border-top:1px solid #e8edf3;margin:.75rem 0 0;padding-top:.6rem;font-size:.92em;font-style:italic}.positions-table .pos{color:var(--pos)}.positions-table .neg{color:var(--neg)}.chart-dashboard{margin:0 0 1rem}.chart-dashboard-bar{align-items:center;gap:.75rem;display:flex}.chart-dashboard-toggle,.chart-dashboard-refresh{font:inherit;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);padding:.3rem .7rem}.chart-dashboard-toggle{font-weight:600}.chart-dashboard-toggle:hover,.chart-dashboard-refresh:hover:not(:disabled){border-color:var(--accent);color:var(--accent-strong)}.chart-dashboard-refresh:disabled{opacity:.6;cursor:default}.chart-dashboard-auto{color:var(--text-muted,#666);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.3rem;font-size:.9em;display:inline-flex}.chart-dashboard-auto input{cursor:pointer}.chart-dashboard-body{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;margin-top:.75rem;display:grid}.chart-dashboard-widget{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);padding:.85rem 1rem}.chart-dashboard-widget-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;margin:0 0 .6rem;font-size:.85rem;font-weight:600}.bid-ask-unavailable{margin:0}.bid-ask-quotes,.bid-ask-metrics{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.6rem;display:grid}.bid-ask-metrics{margin-top:.6rem}.bid-ask-tile{border-radius:var(--radius-sm);background:var(--surface-2);flex-direction:column;gap:.15rem;padding:.5rem .6rem;display:flex}.bid-ask-tile-label{text-transform:uppercase;letter-spacing:.03em;color:var(--text-faint);font-size:.72rem}.bid-ask-tile-value{font-variant-numeric:tabular-nums;font-weight:600}.bid-ask-verdict{font-size:.78rem;font-weight:600}.bid-ask-verdict.pos{color:var(--pos)}.bid-ask-verdict.neg{color:var(--neg)}.bid-ask-help-toggle{font:inherit;cursor:pointer;color:var(--accent);background:0 0;border:none;margin-top:.7rem;padding:0;font-size:.82rem}.bid-ask-help{margin:.5rem 0 0}.bid-ask-help-item{margin-bottom:.5rem}.bid-ask-help-item dt{font-size:.82rem;font-weight:600}.bid-ask-help-item dd{color:var(--text-muted);margin:.15rem 0 0;font-size:.82rem;line-height:1.4}.cell-row.quote-cell-row{justify-content:flex-end;gap:.4rem}.quote-value{align-items:baseline;gap:.4rem;display:inline-flex}.quote-change{font-variant-numeric:tabular-nums;font-size:.78em}.sortable button{color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:.25rem;padding:0;display:inline-flex}.sortable button:hover{color:var(--text)}.sortable button.active{color:var(--accent)}.sort-arrow{text-align:center;width:.7em;font-size:.7em;display:inline-block}.tag-list{flex-wrap:wrap;gap:.25rem;display:inline-flex}.tag{background:var(--accent-soft);color:var(--accent-strong);border:1px solid #bfdbfe;border-radius:999px;padding:.1rem .55rem;font-size:.75rem;font-weight:500;text-decoration:none}.tag:hover{background:var(--accent);color:#fff;border-color:var(--accent)}td.editable-cell{vertical-align:top;min-width:9rem}.cell-row{justify-content:space-between;align-items:center;gap:.5rem;display:flex}td.editable-cell .cell-value{cursor:text;text-overflow:ellipsis;flex:auto;min-width:0;padding:.1rem 0;overflow:hidden}td.editable-cell:hover .cell-value{-webkit-text-decoration:underline dotted var(--accent);text-decoration:underline dotted var(--accent);text-underline-offset:3px}td.editable-cell--text{max-width:30ch}td.editable-cell--text .cell-value{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;overflow:visible}.hwm-input{box-sizing:border-box;width:9ch;font:inherit;color:inherit;text-align:right;border-radius:var(--radius-sm);background:0 0;border:none;padding:.1rem .25rem}.hwm-input:hover:not(:disabled),.hwm-input:focus{background:var(--surface);outline:1px solid var(--border,#7882964d)}.hwm-input:focus{outline-color:var(--accent)}.hwm-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.hwm-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.hwm-input[type=number]{appearance:textfield}button.cell-icon-btn{border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;background:0 0;border:none;flex:none;padding:0;font-size:1rem;font-weight:500;line-height:1;transition:background .12s,color .12s,border-color .12s,transform .25s}button.cell-icon-btn:hover:not(:disabled){background:0 0;border-color:#0000}button.cell-icon-btn:disabled{opacity:.6;cursor:progress}button.cell-icon-btn.cell-icon-btn--refresh:hover:not(:disabled){color:var(--accent-strong);transform:rotate(120deg)}button.cell-icon-btn.cell-icon-btn--danger:hover:not(:disabled){color:var(--neg)}td.delete-cell{text-align:center;vertical-align:middle;width:2.5rem;padding-left:.4rem;padding-right:.4rem}.instruments-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.instruments-filters{flex-wrap:wrap;align-items:center;gap:.5rem;display:inline-flex}.instruments-count{margin:0 0 .5rem}.multiselect{position:relative}.multiselect-summary{cursor:pointer;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);-webkit-user-select:none;user-select:none;align-items:center;gap:.35rem;padding:.32rem .75rem;font-size:.85rem;list-style:none;display:inline-flex}.multiselect-summary::-webkit-details-marker{display:none}.multiselect-summary:after{content:"▾";color:var(--text-faint);font-size:.8em}.multiselect[open] .multiselect-summary{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb26}.multiselect-count{background:var(--accent);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:1.1rem;height:1.1rem;padding:0 .3rem;font-size:.7rem;font-weight:700;display:inline-flex}.multiselect-panel{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:14rem;max-height:16rem;box-shadow:var(--shadow);flex-direction:column;gap:.1rem;padding:.5rem;display:flex;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto}.multiselect-clear{align-self:flex-start;margin-bottom:.25rem;font-size:.8rem}.multiselect-option{border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;align-items:center;gap:.4rem;padding:.2rem .3rem;font-size:.85rem;display:flex}.multiselect-option:hover{background:var(--accent-soft)}.multiselect-option input{cursor:pointer}.instruments-toolbar-right{align-items:center;gap:1rem;display:inline-flex}.refresh-status{color:var(--text-muted);margin:0 0 1.5rem;font-size:.85rem}.refresh-status .refresh-label{color:var(--text);font-weight:600}.refresh-status-running{color:var(--accent-strong);align-items:center;gap:.45rem;font-weight:600;display:inline-flex}.refresh-dot{background:var(--accent);border-radius:999px;width:.55rem;height:.55rem;animation:1.2s ease-in-out infinite refresh-pulse}@keyframes refresh-pulse{0%,to{opacity:.35}50%{opacity:1}}.show-hidden{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;font-size:.85rem;display:inline-flex}.add-instrument-form{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:.85rem;margin-bottom:1rem;padding:1rem;display:flex}.add-instrument-inputs{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.add-instrument-inputs .currency-input{min-width:6rem;max-width:7rem}.add-instrument-preview,.add-instrument-missing{flex-direction:column;align-items:flex-start;gap:.6rem;display:flex}.add-preview-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.5rem 1rem;width:100%;margin:0;display:grid}.add-preview-grid>div{flex-direction:column;gap:.1rem;display:flex}.add-preview-grid dt{text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);font-size:.7rem}.add-preview-grid dd{margin:0;font-weight:600}.show-hidden input{cursor:pointer}tr.row-hidden td{opacity:.55}.hidden-badge{background:var(--surface-2);color:var(--text-faint);border:1px solid var(--border-strong);text-transform:uppercase;letter-spacing:.06em;vertical-align:middle;border-radius:999px;margin-left:.4rem;padding:0 .45rem;font-size:.6rem;font-weight:700;display:inline-block}td.num.editable-cell .cell-value{text-align:right}td.num.editable-cell .cell-source{justify-content:flex-end}td.editable-cell input{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--accent);background:#fff;border-radius:4px;padding:.2rem .35rem}.cell-source{align-items:center;gap:.3rem;margin-top:.3rem;display:flex}.source-chip{background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border);text-transform:lowercase;letter-spacing:.04em;border-radius:999px;padding:0 .45rem;font-size:.65rem;font-weight:600;line-height:1.4;display:inline-block}.source-chip-manual{color:#92400e;background:#fef3c7;border-color:#fcd34d}button.source-revert{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:.8rem;font-weight:600;line-height:1}button.source-revert:hover:not(:disabled){color:var(--accent-strong);background:0 0}.banner{border-radius:var(--radius-sm);border:1px solid #0000;margin:.75rem 0;padding:.6rem .85rem;font-size:.9rem}.banner p{margin:.25rem 0}.banner-info{background:var(--accent-soft);color:var(--accent-strong);border-color:#bfdbfe}.banner-success{background:var(--pos-soft);color:#166534;border-color:#bbf7d0}.banner-warn{background:var(--warn-soft);color:var(--warn);border-color:#fde68a}.banner-error{background:var(--neg-soft);color:#991b1b;border-color:#fecaca}.duplicate-meta{grid-template-columns:max-content 1fr;gap:.15rem .75rem;margin:.5rem 0;font-size:.9rem;display:grid}.duplicate-meta dt{font-weight:600}.duplicate-meta dd{margin:0}.upload-label{flex-direction:column;gap:.5rem;font-weight:500;display:flex}.upload-label input[type=file]{font-size:1rem}.kv-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin:0;display:grid}.kv-grid>div{background:var(--surface-2);border-radius:var(--radius-sm);border:1px solid var(--border);flex-direction:column;gap:.15rem;padding:.65rem .75rem;display:flex}.kv-grid dt{color:var(--text-faint);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:.75rem}.kv-grid dd{margin:0;font-size:1rem;font-weight:600}.kv-grid dd.metric{font-variant-numeric:tabular-nums;font-size:1.4rem}.meta{color:var(--text-muted);margin:.25rem 0;font-size:.9rem}.summary{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin:1rem 0 1.5rem;display:grid}.summary>div{background:var(--surface-2);border-radius:var(--radius-sm);border:1px solid var(--border);flex-direction:column;padding:.75rem;display:flex}.metric-value{font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:700}.metric-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-size:.78rem}.split{grid-template-columns:minmax(220px,320px) 1fr;align-items:start;gap:1.25rem;display:grid}@media (width<=760px){.split{grid-template-columns:1fr}}.split-left,.split-right{margin-bottom:0}.create-form,.attach-form{flex-direction:column;gap:.5rem;margin:.5rem 0 1rem;display:flex}.create-form label,.attach-form label{flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.create-form input,.attach-form input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;background:var(--surface);padding:.4rem .55rem}.create-form input:focus,.attach-form input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.attach-fields{grid-template-columns:1fr 100px max-content;align-items:end;gap:.5rem;display:grid}.attach-fields label{font-size:.85rem}button{font:inherit;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:var(--radius-sm);cursor:pointer;padding:.4rem .85rem;font-weight:500}button:hover:not(:disabled){border-color:var(--accent-strong);background:#bfdbfe}button:disabled{opacity:.55;cursor:not-allowed}button.danger{background:var(--neg);border-color:var(--neg)}button.danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}button.link-button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-size:.85rem;font-weight:500}button.link-button:hover:not(:disabled){color:var(--accent-strong);background:0 0;text-decoration:underline}.portfolio-list{flex-direction:column;gap:.25rem;margin:.5rem 0 0;padding:0;list-style:none;display:flex}.portfolio-item{background:var(--surface-2);width:100%;color:var(--text);border-radius:var(--radius-sm);text-align:left;border:1px solid #0000;flex-direction:column;align-items:flex-start;padding:.5rem .65rem;font-weight:500;display:flex}.portfolio-item:hover:not(:disabled){background:var(--accent-soft);color:var(--text);border-color:#bfdbfe}.portfolio-item-active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.portfolio-item-active:hover:not(:disabled){color:var(--accent-strong);background:#bfdbfe}.portfolio-name{font-weight:600}.portfolio-desc{color:var(--text-muted);font-size:.85rem;font-weight:400}.detail-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.5rem;display:flex}.detail-header h2{margin:0 0 .2rem}details{border-top:1px solid var(--border);padding:.5rem 0}details summary{cursor:pointer;padding:.25rem 0;font-weight:600}.table-wrapper{margin-top:.5rem;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:.45rem .6rem}th{background:var(--surface-2);text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);font-size:.78rem;font-weight:600}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}td.desc{white-space:normal;max-width:320px}code{background:var(--surface-2);border:1px solid var(--border);border-radius:3px;padding:.1rem .3rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em}.settings-grid{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr));gap:1rem;display:grid}.job-card{flex-direction:column;gap:.75rem;display:flex}.job-card-head{justify-content:space-between;align-items:center;gap:1rem;display:flex}.job-card-head h2{align-items:center;gap:.5rem;margin:0;font-size:1.05rem;display:inline-flex}.job-toggle{color:var(--text-muted);align-items:center;gap:.35rem;font-size:.85rem;display:inline-flex}.job-schedule{margin:0}.job-fields{flex-direction:column;gap:.5rem;display:flex}.job-field{justify-content:space-between;align-items:center;gap:.75rem;font-size:.9rem;display:flex}.job-field input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:7rem;font:inherit;text-align:right;padding:.3rem .5rem}.job-status{flex-direction:column;gap:.35rem;margin:0;font-size:.85rem;display:flex}.job-status div{gap:.5rem;display:flex}.job-status dt{color:var(--text-muted);min-width:5rem}.job-status dd{margin:0}.job-actions{gap:.5rem;display:flex}.job-history .table-wrapper{max-height:13rem;overflow-y:auto}.job-history thead th{z-index:1;position:sticky;top:0}.run-dot{background:var(--accent);border-radius:50%;width:.55rem;height:.55rem;animation:1.2s ease-in-out infinite run-pulse;display:inline-block}@keyframes run-pulse{0%,to{opacity:.35}50%{opacity:1}}.run-badge{text-transform:uppercase;letter-spacing:.02em;font-size:.75rem;font-weight:600}.run-badge--succeeded{color:var(--pos)}.run-badge--failed{color:var(--neg)}.run-badge--running{color:var(--accent-strong)}.held-dot{color:var(--accent);cursor:default;font-size:.7em;line-height:1}.edit-section{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2,var(--surface));margin-top:1rem}.edit-section>summary{cursor:pointer;color:var(--text);-webkit-user-select:none;user-select:none;padding:.5rem .75rem;font-weight:600}.edit-section[open]>summary{border-bottom:1px solid var(--border)}.edit-section>.attach-form,.edit-section>p{padding:.75rem}.signals-panel{margin-top:1.5rem}.signal-list{flex-direction:column;gap:.25rem;margin:.5rem 0;padding:0;list-style:none;display:flex}.signal-row{border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;gap:.4rem;padding:.35rem .5rem;display:flex}.signal-row-head{align-items:center;gap:.75rem;display:flex}.signal-enable{align-items:center;gap:.4rem;font-weight:500;display:flex}.signal-params{margin-left:auto;font-family:monospace}.signal-row-head .link-button{margin-left:auto}.threshold-edit>summary{cursor:pointer;color:var(--accent);font-size:.85rem}.threshold-editor{margin-top:.5rem}.threshold-list{flex-direction:column;gap:.25rem;margin:.5rem 0;padding:0;list-style:none;display:flex}.threshold-row{align-items:center;gap:.6rem;display:flex}.threshold-price{font-variant-numeric:tabular-nums;margin-left:auto}.quote-change.pos{color:var(--pos)}.quote-change.neg{color:var(--neg)}.signals-body{padding:.75rem}.signals-body>.attach-form{padding:0}.signals-body .attach-fields{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.signals-body .attach-fields>label,.signals-body .attach-fields>.attach-field-set{flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.signals-body .attach-fields>label:first-child{flex:16rem}.signals-body .attach-fields select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;background:var(--surface);padding:.4rem .55rem}.signals-body .attach-fields select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.signals-body .attach-fields>label:first-child select{width:100%}.signals-body .attach-fields input[type=number]{width:6rem}.signals-body .attach-fields>button{margin-left:auto}.split-left-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.split-left-head h2{margin:0}.icon-btn-square{border:1px solid var(--border-strong,var(--border));border-radius:var(--radius-sm);background:var(--surface);width:1.75rem;height:1.75rem;color:var(--text);cursor:pointer;flex:none;justify-content:center;align-items:center;font-size:1.1rem;line-height:1;display:inline-flex}.icon-btn-square:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.detail-actions{align-items:center;gap:.25rem;display:flex}.cell-icon-btn--refresh.is-active{background:var(--accent-soft);color:var(--accent-strong);border-radius:var(--radius-sm)}.rename-input{color:var(--text);border:1px solid var(--accent);border-radius:var(--radius-sm);background:var(--surface);min-width:12rem;padding:.1rem .35rem;font-size:1.25rem;font-weight:700}.row-alerted{background:color-mix(in srgb, var(--neg) 10%, transparent)}.alert-badge{cursor:default}.alert-list{margin:0;padding:.25rem .75rem .4rem;list-style:none}.alert-row{border-bottom:1px solid var(--border);padding:.45rem 0}.alert-row:last-child{border-bottom:none}.alert-summary{font-weight:600}.watchlist-stack{flex-direction:column;gap:5px;min-width:0;display:flex}.watchlist-stack>.card{margin-bottom:0}.wl-item{background:var(--surface-2);border-radius:var(--radius-sm);border:1px solid #0000;align-items:center;gap:.4rem;padding:.4rem .5rem;display:flex}.wl-item-hidden{opacity:.5}.wl-item-drop{border-color:var(--accent);background:var(--accent-soft)}.wl-drag-handle{cursor:grab;color:var(--text-muted);-webkit-user-select:none;user-select:none;padding:0 .15rem;line-height:1}.wl-drag-handle:active{cursor:grabbing}.wl-eye{cursor:pointer;background:0 0;border:none;flex:none;padding:.1rem;font-size:1rem;line-height:1}.wl-eye-off{opacity:.3;filter:grayscale()}.wl-lock{cursor:pointer;opacity:.55;background:0 0;border:none;flex:none;padding:.1rem;font-size:.95rem;line-height:1}.wl-lock-on{opacity:1}.wl-label{flex-direction:column;min-width:0;display:flex}.wl-label .portfolio-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.alerts-toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.alerts-toggle{color:var(--text-muted);align-items:center;gap:.35rem;font-size:.9rem;display:inline-flex}.alert-feed{margin:0;padding:0;list-style:none}.alert-feed-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.alert-feed-main{min-width:0}.alert-detail{color:var(--text-muted);flex-wrap:wrap;gap:.35rem .6rem;margin-top:.2rem;font-size:.78rem;display:flex}.alert-detail-item{white-space:nowrap;font-variant-numeric:tabular-nums}.alert-detail-key{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.alert-detail-value{color:var(--text);font-weight:600}.alert-feed-meta{flex:none;align-items:center;gap:.4rem;display:inline-flex}.chip{background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);white-space:nowrap;border-radius:999px;padding:.1rem .45rem;font-size:.75rem}.chip-source{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.alert-acked{opacity:.55}.alert-ack-btn{margin-left:.5rem}.mh-panels{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-bottom:20px;display:grid}.mh-panel{flex-direction:column;gap:10px;display:flex}.mh-panel-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.mh-panel-head h2{margin:0;font-size:1rem;line-height:1.3}.mh-pill{text-transform:uppercase;letter-spacing:.03em;background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border);border-radius:999px;flex:none;padding:2px 10px;font-size:.72rem;font-weight:600}.mh-pill-regular{background:var(--pos-soft);color:var(--pos);border-color:#0000}.mh-pill-preMarket,.mh-pill-afterHours{background:var(--warn-soft);color:var(--warn);border-color:#0000}.mh-countdown{font-variant-numeric:tabular-nums;color:var(--text);margin:0;font-size:1.15rem;font-weight:600}.mh-sessions{border-top:1px solid var(--border);padding-top:8px}.mh-sessions-day{color:var(--text-muted);align-items:center;gap:8px;margin-bottom:6px;font-size:.8rem;display:flex}.mh-halfday-tag{border-radius:var(--radius-sm);background:var(--warn-soft);color:var(--warn);padding:1px 6px;font-size:.68rem;font-weight:600}.mh-session-rows{margin:0}.mh-session-row{justify-content:space-between;padding:2px 0;font-size:.9rem;display:flex}.mh-session-row dt{color:var(--text-muted)}.mh-session-row dd{font-variant-numeric:tabular-nums;color:var(--text);margin:0}.mh-note{color:var(--text-faint);margin:0;font-size:.8rem}.mh-calendar-card h2{margin:0 0 4px;font-size:1rem}.mh-legend{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;font-size:.78rem;display:flex}.mh-swatch{vertical-align:-1px;border-radius:3px;width:12px;height:12px;margin-left:10px;margin-right:2px;display:inline-block}.mh-legend .mh-swatch:first-child{margin-left:0}.mh-swatch-holiday{background:var(--neg-soft);border:1px solid var(--neg)}.mh-swatch-halfday{background:var(--warn-soft);border:1px solid var(--warn)}.mh-legend-note{color:var(--text-faint);margin-left:10px}.mh-calendar{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.mh-cal-title{margin-bottom:6px;font-size:.9rem;font-weight:600}.mh-cal-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.mh-cal-wd{text-align:center;color:var(--text-faint);padding-bottom:2px;font-size:.68rem}.mh-cal-cell{aspect-ratio:1;border-radius:var(--radius-sm);color:var(--text);background:var(--surface-2);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.8rem;display:flex}.mh-cal-num{line-height:1}.mh-cal-badges{flex-wrap:wrap;justify-content:center;gap:2px;display:flex}.mh-cal-badge{letter-spacing:.02em;border-radius:3px;padding:1px 3px;font-size:.55rem;font-weight:700;line-height:1}.mh-cal-badge-full{background:var(--neg-soft);color:var(--neg)}.mh-cal-badge-half{background:var(--warn-soft);color:var(--warn)}.mh-cal-blank{background:0 0}.mh-cal-weekend{color:var(--text-faint);background:0 0}.mh-cal-holiday{background:var(--neg-soft);color:var(--neg);cursor:help;font-weight:600}.mh-cal-halfday{background:var(--warn-soft);color:var(--warn);cursor:help;font-weight:600}.mh-cal-today{outline:2px solid var(--accent);outline-offset:-2px;font-weight:700}.notes-page{padding:.75rem}.notes-workspace{grid-template-columns:minmax(220px,300px) 1fr;align-items:stretch;gap:.75rem;min-height:calc(100vh - 15rem);display:grid}.notes-workspace.collapsed{grid-template-columns:2.5rem 1fr}.notes-explorer{min-width:0;padding-right:0}.notes-explorer-head{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.notes-add-btn{flex:none}.notes-filter{border:1px solid var(--border-strong);border-radius:var(--radius-sm);min-width:0;font:inherit;background:var(--surface);flex:auto;padding:.32rem .6rem;font-size:.85rem}.notes-filter:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.notes-collapse-toggle,.notes-rail-toggle{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);background:0 0;flex:none;padding:.25rem .5rem;line-height:1}.notes-collapse-toggle:hover,.notes-rail-toggle:hover{background:var(--surface-2);color:var(--text)}.notes-explorer-collapsed{justify-content:center;padding-top:.25rem;display:flex}.notes-root-list{margin:.5rem 0 0;padding:0;list-style:none}.note-root-row{border-radius:var(--radius-sm);border-left:2px solid #0000;align-items:center;gap:.15rem;padding:.2rem .25rem;display:flex}.note-root-row:hover{background:var(--surface-2)}.note-root-row button:hover{background:var(--accent-soft)}.note-root-row.note-root-current{background:var(--surface-2);border-left-color:var(--accent)}.note-root-label{font-weight:600}.note-root-symbol{flex:none}.note-root-name{color:var(--text-muted);overflow-wrap:anywhere;font-weight:400}.note-root-count{color:var(--text-muted);background:var(--surface-2);border:1px solid var(--border);border-radius:999px;flex:none;padding:0 .45rem;font-size:.78em}.note-root-row.note-root--instrument{border-left-color:var(--accent)}.note-root-row.note-root--portfolio{border-left-color:#d4a017}.note-root-row.note-root--custom{border-left-color:#7c3aed}.note-root-drag{cursor:grab;color:var(--text-muted);-webkit-user-select:none;user-select:none;flex:none;padding:0 .1rem;line-height:1}.note-root-drag:active{cursor:grabbing}.note-root-drop>.note-root-row{outline:2px dashed var(--accent);outline-offset:-2px}.note-lock-badge{opacity:.75;flex:none;font-size:.72em;line-height:1}.notes-add-btn{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;color:var(--text);font:inherit;flex:none;padding:.32rem .6rem;font-size:.85rem;line-height:1}.notes-add-btn:hover{background:var(--surface-2)}.notes-archive-toggle{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);background:0 0;flex:none;padding:.25rem .5rem;line-height:1}.notes-archive-toggle:hover,.notes-archive-toggle.is-active{background:var(--surface-2);color:var(--text)}.notes-archive{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);margin:.5rem 0;padding:.5rem .6rem}.notes-archive-title{margin:0 0 .4rem;font-size:.85rem}.notes-archive-list{flex-direction:column;gap:.25rem;margin:0;padding:0;list-style:none;display:flex}.notes-archive-item{align-items:center;gap:.35rem;font-size:.85rem;display:flex}.notes-archive-icon{flex:none}.notes-archive-label{flex-direction:column;flex:auto;min-width:0;line-height:1.1;display:flex}.notes-archive-name{overflow-wrap:anywhere}.notes-archive-context{color:var(--text-muted);font-size:.75em}.notes-archive-action{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text);background:0 0;flex:none;padding:.1rem .4rem;font-size:.78rem}.notes-archive-action:hover{background:var(--surface)}.notes-archive-action-danger{color:var(--neg);border-color:var(--neg)}.note-editor-lock-toggle{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);background:0 0;flex:none;padding:.15rem .45rem;font-size:.78rem}.note-editor-lock-toggle:hover{background:var(--surface-2)}.note-editor-lock-toggle.is-locked{color:var(--text);border-color:#7c3aed}.notes-editor-pane{flex-direction:column;min-width:0;display:flex}.notes-editor-empty{margin:auto}.modal-overlay{z-index:50;background:#0f172a73;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);width:100%;max-width:36rem;max-height:85vh;box-shadow:var(--shadow);padding:1.25rem;overflow-y:auto}.modal-head{justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.75rem;display:flex}.modal-title{margin:0}.modal-subtitle{color:var(--text-muted);font-weight:400}.modal-close{border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);background:0 0;border:1px solid #0000;flex:none;padding:.1rem .45rem;font-size:1.2rem;line-height:1}.modal-close:hover{background:var(--surface-2);color:var(--text)}.template-protips{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:1rem;padding:.5rem .75rem}.template-protips-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:.75rem;font-weight:600}.template-protips ul{margin:.35rem 0 0;padding-left:1.1rem}.template-protips li{color:var(--text-muted);margin:.2rem 0;font-size:.85rem}.template-list{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.template-item{text-align:left;background:var(--surface);width:100%;color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;flex-direction:column;gap:.15rem;padding:.6rem .75rem;font-weight:400;display:flex}.template-item:hover{border-color:var(--accent);background:var(--surface-2)}.template-item-title{font-weight:600}.template-item-focus{color:var(--text-muted);font-size:.85rem}.note-tree{margin:0 0 .25rem}.note-tree button:hover{background:var(--accent-soft)}.note-tree-search{box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-sm);width:calc(100% - 1.6rem);font:inherit;background:var(--surface);margin:.15rem 0 .35rem 1.6rem;padding:.25rem .5rem;font-size:.8rem}.note-tree-search:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.note-tree-empty{margin:.1rem 0 .25rem 1.6rem;font-size:.85em}.note-tree-list{margin:0;padding:0;list-style:none}.note-tree-list .note-tree-list{margin:0}.note-row{border-radius:var(--radius-sm);border:1px solid #0000;align-items:center;gap:.15rem;padding:.15rem .25rem;display:flex}.note-row:hover{background:var(--surface-2)}.note-row-active{background:var(--accent-soft);border-color:var(--accent-soft);color:#0f172a}.note-row-active:hover{background:var(--accent-soft)}.note-row-active .row-menu-trigger{color:#ffffffe6}.note-row-active .row-menu-trigger:hover,.note-row-active .row-menu-open .row-menu-trigger{color:#fff;background:#fff3;border-color:#0000}.note-row-twisty{cursor:pointer;width:1.1rem;color:var(--text-muted);background:0 0;border:none;flex:none;padding:0}.note-row-twisty-leaf{cursor:default;display:inline-block}.note-row-label{text-align:left;cursor:pointer;min-width:0;color:inherit;background:0 0;border:none;flex:auto;align-items:center;gap:.4rem;padding:.1rem .2rem;display:flex}.note-row-icon{flex:none}.note-row-title{overflow-wrap:anywhere}.row-menu{flex:none;margin-left:.25rem;position:relative}.row-menu-trigger{cursor:pointer;border-radius:var(--radius-sm);color:var(--text-faint);background:0 0;border:1px solid #0000;padding:.05rem .35rem;font-size:.95em;line-height:1}.row-menu-trigger:hover,.row-menu-open .row-menu-trigger{background:var(--surface);border-color:var(--border);color:var(--text)}.row-menu-popup{z-index:20;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);min-width:12rem;box-shadow:var(--shadow);flex-direction:column;margin-top:.15rem;padding:.25rem;display:flex;position:absolute;top:100%;right:0}.row-menu-item{text-align:left;border-radius:var(--radius-sm);cursor:pointer;width:100%;color:var(--text);background:0 0;border:none;align-items:center;gap:.5rem;padding:.35rem .5rem;font-size:.9em;display:flex}.row-menu-item:hover:not(:disabled){background:var(--surface-2)}.row-menu-item:disabled{opacity:.4;cursor:default}.row-menu-item-danger{color:var(--neg)}.row-menu-item-danger:hover:not(:disabled){background:var(--neg-soft)}.row-menu-glyph{text-align:center;flex:0 0 1.1rem}.note-editor{flex-direction:column;flex:auto;min-height:0;display:flex}.note-editor-head{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.note-editor-title{margin:0}.note-editor-crumb{color:var(--text-muted);margin-right:.4rem;font-weight:600}.note-editor-status{color:var(--text-muted);font-size:.8em}.note-editor-status-unsaved,.note-editor-status-saving{color:var(--text-faint)}.note-editor-status-error{color:var(--accent)}.note-editor-meta{color:var(--text-muted);margin-left:auto;font-size:.78em}.note-editor-history-toggle{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:4px;padding:0 .4rem;font-size:.78em}.note-editor-history{border:1px solid var(--border);background:var(--surface-2);border-radius:6px;margin:.5rem 0;padding:.5rem .75rem;font-size:.85em}.note-editor-history ul{flex-direction:column;gap:.3rem;margin:0;padding:0;list-style:none;display:flex}.note-editor-history li{align-items:center;gap:.6rem;display:flex}.note-editor-history-who{color:var(--text-muted)}.note-editor-history li button{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:4px;margin-left:auto;padding:0 .4rem}.note-editor-history-empty{color:var(--text-muted);margin:0}.note-toolbar{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);flex-wrap:wrap;align-items:center;gap:.15rem;margin:.5rem 0;padding:.25rem;display:flex}.note-toolbar button{border-radius:var(--radius-sm);cursor:pointer;min-width:1.9rem;color:var(--text);background:0 0;border:1px solid #0000;padding:.2rem .4rem}.note-toolbar button:hover:not(:disabled){background:var(--surface);border-color:var(--border)}.note-toolbar button.is-active{background:var(--accent-soft);border-color:var(--accent)}.note-toolbar button:disabled{opacity:.4;cursor:default}.note-toolbar-sep{background:var(--border);align-self:stretch;width:1px;margin:.1rem .2rem}.note-editor-surface,.note-editor-surface>div{flex-direction:column;flex:auto;min-height:0;display:flex}.note-editor-surface .ProseMirror{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);outline:none;flex:auto;min-height:20rem;padding:.6rem .75rem}.note-editor-surface .ProseMirror:focus{border-color:var(--accent)}.note-editor-surface .ProseMirror img{border-radius:var(--radius-sm);max-width:100%;height:auto}.note-editor-surface .ProseMirror p:first-child{margin-top:0}.note-editor-surface .ProseMirror blockquote{border-left:3px solid var(--border);color:var(--text-muted);margin-left:0;padding-left:.75rem}.note-editor-surface .ProseMirror pre{background:var(--surface-2);border-radius:var(--radius-sm);padding:.6rem .75rem;overflow-x:auto}.note-editor-surface .ProseMirror .tableWrapper{margin:.5rem 0;overflow-x:auto}.note-editor-surface .ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0}.note-editor-surface .ProseMirror th,.note-editor-surface .ProseMirror td{border:1px solid var(--border-strong);vertical-align:top;text-align:left;white-space:normal;overflow-wrap:anywhere;min-width:3rem;padding:.35rem .55rem;position:relative}.note-editor-surface .ProseMirror th>*,.note-editor-surface .ProseMirror td>*{margin-bottom:0}.note-editor-surface .ProseMirror th ul,.note-editor-surface .ProseMirror th ol,.note-editor-surface .ProseMirror td ul,.note-editor-surface .ProseMirror td ol{margin:.2rem 0;padding-left:1.1rem}.note-editor-surface .ProseMirror th li>p,.note-editor-surface .ProseMirror td li>p{margin:.1rem 0}.note-editor-surface .ProseMirror th{background:var(--surface-2);font-weight:600}.note-editor-surface .ProseMirror .selectedCell:after{content:"";background:var(--accent-soft);pointer-events:none;position:absolute;inset:0}.note-editor-surface .ProseMirror .column-resize-handle{background:var(--accent);cursor:col-resize;width:4px;position:absolute;top:0;bottom:0;right:-2px}.note-editor-surface .ProseMirror ul[data-type=taskList]{padding-left:.25rem;list-style:none}.note-editor-surface .ProseMirror ul[data-type=taskList] li{align-items:flex-start;gap:.5rem;display:flex}.note-editor-surface .ProseMirror ul[data-type=taskList] li>label{margin-top:.2rem}.note-editor-surface .ProseMirror ul[data-type=taskList] li>div{flex:auto;min-width:0}.note-editor-surface .ProseMirror mark{background:var(--accent-soft);border-radius:2px;padding:0 .1em}.note-editor-surface .ProseMirror a{color:var(--accent);text-decoration:underline}.bell-wrap{margin-left:auto;position:relative}.bell{cursor:pointer;color:var(--topbar-muted);border-radius:var(--radius-sm);background:0 0;border:none;padding:.3rem .4rem;font-size:1.15rem;line-height:1;position:relative}.bell:hover{background:#ffffff0f}.bell-badge{color:#fff;text-align:center;background:#dc2626;border-radius:999px;min-width:1.05rem;height:1.05rem;padding:0 .25rem;font-size:.68rem;font-weight:700;line-height:1.05rem;position:absolute;top:-2px;right:-2px}.notif-panel{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);width:22rem;max-width:90vw;box-shadow:var(--shadow);z-index:50;color:var(--text);padding:.5rem;position:absolute;top:calc(100% + .5rem);right:0}.notif-panel-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.25rem .4rem .5rem;display:flex}.notif-empty{padding:.75rem .4rem}.notif-list{max-height:22rem;margin:0;padding:0;list-style:none;overflow-y:auto}.notif-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:.5rem;padding:.5rem .4rem;display:flex}.notif-row-main{min-width:0}.notif-viewall{background:var(--surface-2);border-radius:var(--radius-sm);cursor:pointer;width:100%;color:var(--accent-strong);border:none;margin-top:.4rem;padding:.5rem;font-weight:600}.notif-viewall:hover:not(:disabled){background:var(--accent-soft)}.settings-tabs{border-bottom:1px solid var(--border);margin-bottom:1.5rem;padding-bottom:.5rem}.settings-tabs .tab{color:var(--text-muted)}.settings-tabs .tab:hover{background:var(--surface-2);color:var(--text)}.settings-tabs .tab-active,.settings-tabs .tab-active:hover{background:var(--accent-soft);color:var(--accent-strong)}.notif-watchlists{flex-direction:column;gap:.4rem;margin:.5rem 0 0;padding:0;list-style:none;display:flex}.toast-stack{z-index:100;flex-direction:column;gap:.6rem;max-width:22rem;display:flex;position:fixed;bottom:1.25rem;right:1.25rem}.toast{text-align:left;background:var(--surface);border:1px solid var(--border-strong);border-left:3px solid var(--accent);border-radius:var(--radius);box-shadow:var(--shadow);cursor:pointer;color:var(--text);align-items:flex-start;gap:.6rem;padding:.7rem .85rem;animation:.18s ease-out toast-in;display:flex}.toast:hover{border-color:var(--accent)}.toast-bell{font-size:1.05rem;line-height:1.2}.toast-body{flex-direction:column;min-width:0;display:flex}.toast-title{font-size:.8rem;font-weight:700}.toast-summary{color:var(--text-muted);font-size:.85rem}@keyframes toast-in{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}
