:root{--bg:#e8edf2;--card:#ffffffa3;--card-border:#ffffffd9;--text:#16202b;--muted:#4a5664;--gain:#0b6e46;--loss:#b3261e;--ok:#1f5fbf;--warn:#f2b33d;--bad:#1b2230;--idle:#d6dce3;--paper:#fff;--cell:#ffffff8c;--radius:20px;--blur:18px;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--line:#16202b1a;--input-border:#16202b2e;--input-bg:#ffffffd9;--shadow:0 18px 40px -24px #16202b59;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font);font-variant-numeric:tabular-nums;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-size:16px;line-height:1.5}*,:before,:after{box-sizing:border-box}body{min-height:100vh;margin:0}body:before{content:"";z-index:-1;filter:blur(48px);pointer-events:none;background:radial-gradient(38% 34% at 18% 22%,#9fe0cf 0%,#0000 70%),radial-gradient(34% 32% at 82% 30%,#ffd38a 0%,#0000 70%),radial-gradient(42% 38% at 55% 88%,#b8c2ff 0%,#0000 70%);position:fixed;inset:-15%}h1,h2,h3,p{margin:0}h1{letter-spacing:-.01em;font-size:1.75rem;font-weight:650;line-height:1.2}h2{font-size:1.125rem;font-weight:600;line-height:1.3}h3{font-size:.9375rem;font-weight:600;line-height:1.3}small,.muted{color:var(--muted)}a{color:var(--ok)}button,input{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--ok);outline-offset:2px}.big{letter-spacing:-.02em;font-size:2.25rem;font-weight:650;line-height:1.1}.gain{color:var(--gain)}.loss{color:var(--loss)}.card{background:var(--card);-webkit-backdrop-filter:blur(var(--blur));backdrop-filter:blur(var(--blur));border:1px solid var(--card-border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:20px}.tag{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:.8125rem;font-weight:600;line-height:1.6;display:inline-flex}.tag:before{content:"";opacity:.85;background:currentColor;border-radius:50%;width:7px;height:7px}.tag-ok{background:var(--ok);color:#fff}.tag-warn{background:var(--warn);color:var(--text)}.tag-bad{background:var(--bad);color:#fff}.tag-idle{background:var(--idle);color:var(--text)}.tag-small{padding:0 8px;font-size:.75rem}.tag-small:before{display:none}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.health{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0;display:grid}.health>div{background:var(--cell);box-shadow:inset 0 0 0 1px var(--line);border-radius:14px;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:12px 14px;display:flex}.health dt{color:var(--muted);font-size:.8125rem;font-weight:600}.health dd{flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;display:flex}.health .num{font-weight:600}@media (width<=719px){.health>div{flex-flow:wrap;justify-content:space-between;align-items:center;padding:10px 14px}.health dd{justify-content:flex-end}}.timeline{margin:0;padding:0;list-style:none}.timeline li{grid-template-columns:3.25rem 1fr;column-gap:14px;padding:0 0 14px;display:grid;position:relative}.timeline li:last-child{padding-bottom:0}.timeline li:before{content:"";background:var(--line);width:1px;position:absolute;top:12px;bottom:-12px;left:calc(3.25rem + 20px)}.timeline li:last-child:before{display:none}.timeline time{color:var(--muted);font-weight:600}.timeline .what{flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;padding-left:14px;display:flex;position:relative}.timeline .what:before{content:"";background:var(--text);border-radius:50%;width:7px;height:7px;position:absolute;top:8.5px;left:3px}.empty{color:var(--muted)}.dash{gap:16px;display:grid}.dash>*{min-width:0}.dash>*>.card{height:100%}@media (width>=900px){.dash{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-hero{grid-column:span 2}.dash-wide{grid-column:1/-1}}.reason{margin-bottom:16px;font-weight:600}.hero{flex-direction:column;gap:16px;display:flex}.hero-net{font-size:clamp(2.5rem,9vw,3.5rem)}.hero-spark{flex-direction:column;gap:4px;display:flex}.figures{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px 16px;margin:0;display:grid}.figures dt{color:var(--muted);font-size:.8125rem;font-weight:600}.figures dd{margin:0;font-weight:600}.kpi-row{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;display:grid}.kpi-row .big{font-size:1.75rem}.spot{flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px;display:flex}.spot .num:first-child{font-size:1.25rem;font-weight:650}.legs{border-top:1px solid var(--line);flex-direction:column;gap:16px;padding-top:16px;display:flex}.leg-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.leg-list li{background:var(--cell);box-shadow:inset 0 0 0 1px var(--line);border-radius:12px;padding:8px 12px}.load-error{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.kpi{flex-direction:column;gap:4px;min-width:0;display:flex}.kpi-label{color:var(--muted);font-size:.875rem;font-weight:600}.kpi .spark{margin-top:8px}.spark{align-self:flex-start;width:auto;max-width:100%;height:32px;display:block}.spark rect{fill:currentColor}.spark-base{stroke:var(--line);stroke-width:1px}.gauge{width:100%;max-width:200px;margin:0 auto;display:block}.gauge path{fill:none;stroke-width:10px;stroke-linecap:round}.gauge-track{stroke:var(--idle)}.gauge-arc.ok{stroke:var(--ok)}.gauge-arc.warn{stroke:var(--warn)}.gauge-value{fill:var(--text);font-size:20px;font-weight:650}.gauge-label{fill:var(--muted);font-size:9px;font-weight:600}.cal{max-width:480px}.cal-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.cal-head .button{min-width:44px;padding:0}.cal svg{width:100%;height:auto;display:block}.cal rect{stroke:var(--paper);stroke-width:4px;fill:var(--cell)}.cal .gain rect,.cal .loss rect{fill:currentColor;fill-opacity:.1}.cal .closed rect{fill:var(--idle)}.cal-weekday{fill:var(--muted);font-size:10.5px;font-weight:600}.cal-date{fill:var(--muted);font-size:10px;font-weight:600}.cal-amount{fill:currentColor;font-weight:650}.button{border:1px solid var(--line);cursor:pointer;background:#fffc;border-radius:999px;justify-content:center;align-items:center;min-height:44px;padding:0 20px;font-weight:600;transition:background-color .15s,transform .15s;display:inline-flex}.button:hover{background:#fff}.button:active{transform:translateY(1px)}.button:disabled{opacity:.6;cursor:default;transform:none}.button.primary{background:var(--text);border-color:var(--text);color:#fff}.button.primary:hover{background:#2a3644}.button.stop{background:var(--bad);border-color:var(--bad);color:#fff}.button.quiet{background:0 0;border-color:#0000;min-height:44px;padding:0 12px}.button.quiet:hover{background:#fff9}.shell{width:100%;max-width:1200px;padding:16px 16px calc(96px + env(safe-area-inset-bottom));flex-direction:column;gap:20px;min-height:100vh;margin:0 auto;display:flex}.page{flex-direction:column;flex:1;gap:16px;min-width:0;display:flex}.footer{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:.875rem;display:flex}.nav{z-index:10;padding:6px 8px calc(6px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(var(--blur));backdrop-filter:blur(var(--blur));border-top:1px solid var(--card-border);background:#ffffffc7;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 24px -16px #16202b4d}.nav a{min-width:0;min-height:52px;color:var(--muted);border-radius:14px;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:600;text-decoration:none;transition:background-color .15s,color .15s;display:flex}.nav a:hover{color:var(--text)}.nav a[aria-current=page]{color:var(--text);box-shadow:inset 0 0 0 1px var(--line), 0 2px 6px -2px #16202b40;background:#fff}.nav svg{flex:none;width:22px;height:22px}@media (width>=720px){.shell{gap:24px;padding:20px 24px 24px}.nav{border:1px solid var(--card-border);box-shadow:var(--shadow);border-radius:999px;align-self:center;gap:4px;padding:6px;position:static}.nav a{border-radius:999px;flex-direction:row;flex:none;gap:8px;min-height:44px;padding:0 18px;font-size:.9375rem}.nav svg{width:18px;height:18px}}.banner{z-index:20;background:var(--warn);color:var(--text);box-shadow:var(--shadow);border-radius:999px;align-self:center;padding:8px 16px;font-size:.875rem;font-weight:600;position:sticky;top:12px}.loading{min-height:100vh;color:var(--muted);place-items:center;display:grid}.login{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.login .card{flex-direction:column;gap:24px;width:100%;max-width:380px;padding:32px 28px;display:flex}.login-head{flex-direction:column;gap:6px;display:flex}.form{flex-direction:column;gap:16px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:.875rem;font-weight:600}.field input{border:1px solid var(--input-border);background:var(--input-bg);border-radius:12px;min-height:48px;padding:0 14px;font-size:1.0625rem}.field input:focus-visible{outline-offset:0;border-color:var(--ok)}.form .button{margin-top:4px}.alert{color:var(--text);background:#ffffffe6;border:1px solid #1b223066;border-radius:12px;padding:10px 14px;font-size:.9375rem;font-weight:500}.stop{flex-direction:column;align-items:flex-start;gap:16px;display:flex}.stop-on{background:var(--cell);box-shadow:inset 0 0 0 1px var(--line);border-radius:14px;flex-direction:column;align-self:stretch;gap:10px;padding:16px;display:flex}.checklist{gap:6px;margin:0;padding:0;list-style:none;display:grid}.checklist li{align-items:center;gap:8px;display:flex}.checklist svg{width:18px;height:18px;color:var(--ok);flex:none}.dialog{border:1px solid var(--card-border);border-radius:var(--radius);background:var(--paper);width:min(440px,100vw - 32px);max-width:none;max-height:calc(100vh - 32px);color:var(--text);box-shadow:var(--shadow);padding:24px}.dialog::backdrop{background:#16202b59}.dialog p{margin-top:8px}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.dialog-actions form{display:contents}.terms{flex-direction:column;gap:16px;width:100%;max-width:640px;margin:0 auto;display:flex}.terms-text{flex-direction:column;align-items:flex-start;gap:16px;display:flex}.positions{flex-direction:column;gap:16px;display:flex}.totals dd{font-size:1.25rem}.totals-main dd{white-space:nowrap;font-size:1.75rem;font-weight:650;line-height:1.2}@media (width<=599px){.totals-main{grid-column:1/-1}}.note{margin-bottom:16px}.table-scroll{margin:-4px;padding:4px;overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;vertical-align:top;padding:10px 8px}.table th:first-child,.table td:first-child{padding-left:0}.table th:last-child,.table td:last-child{padding-right:0}.table thead th{color:var(--muted);border-bottom:1px solid var(--line);font-size:.8125rem;font-weight:600}.table tbody tr+tr td{border-top:1px solid var(--line)}.table .num{text-align:right}.table td.num{white-space:nowrap;font-weight:600}.table .scrip{font-weight:600}.table .sub{font-weight:400;display:block}.table tfoot th,.table tfoot td{border-top:1px solid var(--text);font-weight:650}@media (width<=899px){.table thead,.table tfoot th{display:none}.table,.table tbody,.table tfoot,.table tr,.table td{display:block}.table tr{background:var(--cell);box-shadow:inset 0 0 0 1px var(--line);border-radius:14px;padding:12px 14px}.table tbody tr{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:24px;display:grid}.table tbody tr+tr{margin-top:10px}.table tbody tr+tr td{border-top:0}.table td,.table td:first-child,.table td:last-child{padding:4px 0}.table td:not(:first-child){white-space:normal;justify-content:space-between;gap:12px;display:flex}.table td:not(:first-child):before{content:attr(data-label);color:var(--muted);font-weight:600}.table td.num .sub{margin-left:6px;display:inline}.table td:first-child{grid-column:1/-1;padding-bottom:8px}.table tfoot tr{box-shadow:none;border-top:1px solid var(--text);background:0 0;border-radius:0;margin-top:10px;padding:10px 14px 0}.table tfoot td{border-top:0}}.orders{flex-direction:column;gap:16px;display:flex}.orders-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 32px;display:flex}.orders-head .figures{flex:260px;max-width:420px}.orders-head dd{font-size:1.25rem}.day-pick{color:var(--muted);flex-direction:column;gap:6px;font-size:.875rem;font-weight:600;display:flex}.day-pick input{border:1px solid var(--input-border);background:var(--input-bg);min-height:44px;color:var(--text);border-radius:12px;padding:0 12px;font-size:1rem}.orders .table tbody+tbody td{border-top:1px solid var(--line)}.orders .table .order-more td{border-top:0;padding-top:0}.broker-reason{margin-bottom:8px}.broker-reason p:last-child{font-weight:600}.story summary{cursor:pointer;color:var(--ok);width:fit-content;padding:10px 0;font-weight:600}.story ul{gap:2px;margin:8px 0 0;padding-left:18px;display:grid}@media (width<=899px){.orders .table tbody{background:var(--cell);box-shadow:inset 0 0 0 1px var(--line);border-radius:14px;padding:12px 14px;display:block}.orders .table tbody+tbody{margin-top:10px}.orders .table tr{box-shadow:none;background:0 0;border-radius:0;padding:0}.orders .table tbody+tbody td{border-top:0}.orders .table .order-more td{padding-top:8px}}.pnl{gap:16px;display:grid}.pnl>*{min-width:0}.pnl .cal{margin:0 auto}@media (width>=900px){.pnl{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start}.pnl-wide{grid-column:1/-1}.pnl .totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
