:root{color-scheme:dark;--bg:#0b1020;--bg2:#0e1425;--card:#151d31;--card2:#182239;--border:#2a344a;--text:#f0f4ff;--muted:#96a4bc;--blue:#618cff;--green:#72d7a7;--orange:#f1bb6d;--red:#ff929a;--radius:16px}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;min-height:100vh;background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}a{color:#9cbbff;text-decoration:none}a:hover{color:#d1dcff}form{margin:0}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,37px);font-weight:750;letter-spacing:-.055em;line-height:1.2;margin-bottom:10px}h1 span{color:#91afff}h2{font-size:19px;letter-spacing:-.035em;margin:0}h3{font-size:15px;margin-bottom:8px}.muted{color:var(--muted);line-height:1.65}.small-text{font-size:13px}.eyebrow{color:#81a3ff;font-size:10px;font-weight:800;letter-spacing:.2em;margin-bottom:9px}.brand-mark{width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(145deg,#5078ed,#8c9efc);box-shadow:0 10px 26px #263e9466;color:white;font-size:29px;font-weight:800;letter-spacing:-.11em}.brand-mark span{color:#a6f7ed}.brand-mark.small{width:40px;height:40px;font-size:23px;border-radius:12px;box-shadow:none;flex-shrink:0}.auth-page{background:radial-gradient(ellipse 70% 48% at 50% 0%,#273d77 0%,transparent 70%),#0b1020}.auth-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px}.auth-shell>.brand-mark{margin-bottom:24px}.auth-card{background:linear-gradient(155deg,#1a2641,#12192a);border:1px solid #334260;box-shadow:0 22px 80px #0005;max-width:440px;width:100%;padding:38px;border-radius:24px}.auth-card h1{font-size:32px}.auth-card .muted{font-size:14px;margin-bottom:30px}.auth-footer{color:#74829a;font-size:12px;margin:26px 0 0}.stack{display:flex;flex-direction:column;gap:18px}.stack label{display:flex;flex-direction:column;gap:9px}.stack label small{display:inline;color:var(--muted);font-weight:400}label{display:block;font-size:12px;font-weight:650;color:#d9e1f2}input,select{display:block;outline:0;width:100%;color:var(--text);border:1px solid #38445c;border-radius:10px;background:#0e1628;padding:12px 13px;min-height:44px;margin-top:8px;transition:border-color .2s,box-shadow .2s}input:focus,select:focus{border-color:#729aff;box-shadow:0 0 0 3px #557fff30}input::placeholder{color:#74819a}option{background:#10182c}.stack input{margin-top:0}code{background:#26334f;color:#baccf6;border-radius:5px;padding:2px 5px;font-size:.95em}.btn{border:1px solid transparent;border-radius:10px;font-weight:700;font-size:13px;padding:12px 17px;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:14px;white-space:nowrap;transition:transform .15s,background .15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(125deg,#537af1,#7296ff);color:white;box-shadow:0 7px 22px #3460da22}.btn.primary:hover{background:linear-gradient(125deg,#6488fa,#89a6ff)}.btn.primary span{margin-left:auto}.btn.secondary{background:#202c44;border-color:#3a4863;color:#dce5ff}.btn.secondary:hover{background:#2b3952}.btn.full{grid-column:1/-1;width:100%}.auth-card .btn{width:100%;margin-top:3px}.notice{border-radius:12px;border:1px solid #384965;padding:13px 16px;margin-bottom:23px;font-size:13px;line-height:1.6;background:#1c2b47;color:#dfe9ff}.notice.success{background:#16392e;border-color:#285946;color:#b7edcf}.notice.warning{background:#352c1f;border-color:#685437;color:#f4dfb7}.notice.error{background:#3a222e;border-color:#7b3c51;color:#ffd5db}.notice.subtle{background:#19253a;border-color:#34435d;color:#b4c0d7;margin:20px 0 0}.notice a{font-weight:750;text-decoration:underline}.app-layout{display:grid;grid-template-columns:239px minmax(0,1fr);min-height:100vh}.sidebar{background:#11192b;border-right:1px solid #27334a;padding:31px 18px 26px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 6px 42px;color:#f3f5ff;font-weight:750;font-size:17px;letter-spacing:-.04em}.brand:hover{color:white}.brand small{display:block;font-size:9px;color:#8798b7;letter-spacing:.22em;margin-top:2px}.nav-label{font-size:10px;letter-spacing:.16em;font-weight:700;color:#7383a0;padding:0 16px;margin-bottom:13px}.side-nav{display:flex;flex-direction:column;gap:5px}.side-nav a{display:flex;align-items:center;gap:12px;color:#99a8c2;padding:13px 15px;border-radius:10px;font-weight:650;font-size:13px}.side-nav a:hover{color:#eef4ff;background:#1d2a41}.side-nav a.active{color:#dfe8ff;background:#2a3a5b;box-shadow:inset 3px 0 #7196ff}.nav-ico{width:22px;font-size:19px;text-align:center;color:#94a9d0}.sidebar-bottom{border-top:1px solid #27334a;margin-top:auto;padding:20px 12px 8px;color:#c3d1e8;font-size:12px;line-height:1.9}.sidebar-bottom small{color:#7e8eab}.status-dot,.live-dot{width:7px;height:7px;border-radius:50%;background:#73d7a4;display:inline-block;margin-right:7px;box-shadow:0 0 10px #73d7a477}.logout button{width:100%;background:none;border:none;color:#8d9ab2;text-align:left;padding:12px;font-size:12px}.logout button:hover{color:#fff}.main-column{min-width:0}.topbar{height:69px;border-bottom:1px solid #253047;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4.8vw,74px);background:#0c1324}.topbar-brand{font-size:10px;font-weight:850;letter-spacing:.16em;color:#ccd7ec}.topbar-brand span{color:#7788a8}.topbar-right{font-size:11px;color:#899bb8}.content{max-width:1450px;margin:0 auto;padding:38px clamp(22px,4.8vw,74px) 28px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px}.heading-row>.muted{margin:0}.heading-row p{margin-bottom:0;font-size:13px}.small-link{white-space:nowrap;font-size:12px;font-weight:700}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:21px}.stat-card{background:linear-gradient(155deg,#172138,#111b2e);border:1px solid #2a3850;border-radius:var(--radius);padding:20px;min-height:142px}.stat-label{font-size:12px;color:#b4c2dd;display:flex;justify-content:space-between;gap:7px}.stat-label span{color:#879dc3;font-size:18px}.stat-value{font-size:33px;line-height:1.4;font-weight:760;letter-spacing:-.045em}.stat-note{font-size:11px;color:#7486a3}.split-area{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;margin-bottom:21px}.panel{background:linear-gradient(145deg,#172036,#131c2e);border:1px solid #2a3850;border-radius:var(--radius);padding:25px;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.panel-symbol{font-size:25px;color:#7792c4;font-weight:400}.panel>.muted.small-text{margin-bottom:23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:13px;row-gap:17px}.form-grid input,.form-grid select{margin-top:9px}.form-grid .full{margin-top:3px}.tip{border-top:1px solid #2e3a51;padding-top:16px;margin-top:20px;color:#8799b8;font-size:11px;line-height:1.6}.tip span{color:#91b4ff;margin-right:6px}.info-panel{display:flex;flex-direction:column}.status-list{display:flex;flex-direction:column}.status-list>div{border-bottom:1px solid #2b364c;padding:13px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.status-list>div span{color:#91a1ba}.status-list>div strong{font-weight:700;text-align:right;color:#e2ebff}.status-list>div strong.good{color:#8fe9bc}.status-list>div strong.warn{color:#e6be74}.status-list>div:last-child{border-bottom:0}.info-panel .notice{margin-top:auto}.list-panel{margin-top:0}.counter{display:inline-flex;padding:3px 9px;border:1px solid #35445f;border-radius:999px;color:#a6b5cf;background:#253148;font-size:12px;font-weight:650;vertical-align:middle;margin-left:6px}.table-wrap{overflow-x:auto;margin:15px -25px -10px;scrollbar-color:#344766 transparent}.data-table{width:100%;border-collapse:collapse;min-width:810px;text-align:left}.data-table thead th{font-size:9px;letter-spacing:.1em;color:#7185a6;font-weight:800;padding:14px 15px;background:#121c30;border-bottom:1px solid #334059}.data-table td{padding:18px 15px;border-bottom:1px solid #2c3750;font-size:12px;color:#c5d0e4;vertical-align:middle}.data-table tr:last-child td{border-bottom:none}.data-table td:first-child,.data-table th:first-child{padding-left:25px}.data-table td:last-child,.data-table th:last-child{padding-right:25px}.data-table .ticker{font-size:13px;color:#eff3fe;letter-spacing:.02em}.data-table small{display:block;color:#7589a9;font-size:11px;margin-top:5px;max-width:250px;overflow-wrap:anywhere}.data-table .money{color:#e8eefc;font-weight:700}.dir-icon{font-size:17px;font-weight:bold;margin-right:4px}.dir-icon.down{color:#8ecab7}.dir-icon.up{color:#e4b48e}.pill{display:inline-block;font-size:10px;font-weight:760;padding:5px 9px;border-radius:999px;white-space:nowrap}.pill.on{color:#89e3b3;background:#1d4439;border:1px solid #32634f}.pill.paused{color:#f3cb85;background:#4b3d28;border:1px solid #76613c}.pill.done{color:#bac9ff;background:#293c6a;border:1px solid #4162aa}.pill.error-pill{color:#ffb2c0;background:#5a2c41;border:1px solid #7d3952}.action-group{display:flex;gap:7px}.action-group form{display:inline-block}.mini-btn{display:inline-flex;align-items:center;justify-content:center;min-width:31px;min-height:31px;border:1px solid #3a4a66;border-radius:8px;background:#222f47;color:#c4d3ec;font-weight:bold;font-size:15px;padding:3px 8px}.mini-btn:hover{color:#fff;background:#304260}.mini-btn.delete:hover{background:#5a3341;border-color:#b2536a}.empty{min-height:215px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{border-radius:18px;background:#253553;padding:9px 16px;font-size:28px;color:#8fadfc;margin-bottom:17px}.empty h3{margin-bottom:4px;font-size:15px}.empty p{font-size:12px;color:#8d9cb7}.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.settings-layout .panel{min-height:260px}.settings-layout .section-head{margin-bottom:18px}.settings-layout .stack{gap:16px}.settings-layout .stack .btn{align-self:start;min-width:145px}.section-divider{border:0;border-top:1px solid #2d3b55;margin:23px 0}.inline-form,.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form input{max-width:170px;margin:0}.discovery{padding:15px;border:1px solid #344a67;border-radius:12px;background:#192a41;margin-top:20px}.discovery strong{font-size:13px}.discovery p{margin:6px 0}.process{display:flex;flex-direction:column;gap:16px;margin-top:20px}.process div{display:flex;gap:13px;align-items:flex-start}.process span{flex:none;display:flex;width:25px;height:25px;border-radius:50%;background:#294876;color:#bcd0ff;align-items:center;justify-content:center;font-weight:800;font-size:11px}.process p{font-size:12px;line-height:1.55;color:#b5c2d9;margin:3px 0}.history-panel{min-height:280px}.footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #243149;color:#667996;font-size:11px;padding:24px 0 0;margin-top:33px}
@media(max-width:1200px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split-area{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr 1fr}}@media(max-width:920px){.app-layout{grid-template-columns:1fr}.sidebar{height:auto;position:static;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;padding:12px 18px;gap:10px;border-right:none;border-bottom:1px solid #27334a}.brand{padding:0;margin-right:auto}.nav-label,.sidebar-bottom{display:none}.side-nav{flex-direction:row;gap:3px}.side-nav a{font-size:12px;padding:9px}.logout button{padding:9px}.topbar{height:52px}.content{padding:30px 22px}.settings-layout{grid-template-columns:1fr}}@media(max-width:600px){html{font-size:14px}.sidebar{gap:4px}.brand{width:100%;padding:0 0 10px}.side-nav{flex:1;justify-content:space-between}.side-nav a{padding:8px 10px}.nav-ico{font-size:15px;width:16px}.logout button{padding:9px 4px}.topbar{padding:0 20px}.topbar-right{font-size:10px}.content{padding:25px 15px}.heading-row{align-items:flex-start;margin-bottom:22px}.heading-row>.small-link{display:none}.heading-row .muted{font-size:12px}.stat-grid{gap:9px}.stat-card{padding:15px;min-height:115px}.stat-label{font-size:10px}.stat-value{font-size:27px}.stat-note{font-size:9px}.panel{padding:19px}.form-grid{grid-template-columns:1fr}.table-wrap{margin-left:-19px;margin-right:-19px}.section-head h2{font-size:17px}.footer{flex-direction:column;gap:7px}.auth-card{padding:25px 22px}.button-row{flex-direction:column;align-items:stretch}.button-row form,.button-row .btn{width:100%}.inline-form{flex-wrap:nowrap}.inline-form input{min-width:0;width:38%}.inline-form .btn{flex:1;padding-left:7px;padding-right:7px}.settings-layout .panel{min-height:0}}

@media(max-width:600px){
.table-wrap{overflow:visible;margin-top:15px}
.data-table{display:block;min-width:0}
.data-table thead{display:none}
.data-table tbody{display:flex;flex-direction:column;gap:10px;padding:0 12px 8px}
.data-table tbody tr{display:flex;flex-direction:column;border:1px solid #33405a;border-radius:12px;background:#141f34;padding:8px 12px}
.data-table tbody td,.data-table tbody td:first-child,.data-table tbody td:last-child{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 2px;border-bottom:1px solid #283650;text-align:right;font-size:12px}
.data-table tbody td:last-child{border-bottom:0}
.data-table tbody td::before{content:attr(data-label);font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8298bb;font-weight:700;text-align:left;margin-right:auto}
.data-table tbody td .ticker,.data-table tbody td .money{margin-left:auto}
.data-table tbody td small{width:100%;text-align:right;margin-top:-7px}
.data-table tbody td.actions{justify-content:space-between}
.data-table tbody td.actions .action-group{margin-left:auto}
}

/* v1.1: price-band inputs */
.form-grid .full-row{grid-column:1/-1}
.range-fields[hidden]{display:none!important}
.range-fields{padding:15px;border:1px solid #3a4b6b;border-radius:12px;background:#19263c}
.band-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.band-help{margin:13px 0 0;color:#a6bad9;font-size:11px;line-height:1.6}
@media(max-width:600px){.band-inputs{grid-template-columns:1fr}}

/* v1.2 — cadastro simples e atualizador interno */
.threshold-preview{margin:12px 0 0;font-size:13px;color:#a5e6c6;font-weight:750;line-height:1.5}
.update-panel input[type=file]{padding:10px;min-height:44px;font-size:12px;max-width:100%}
.update-panel .update-hint{margin:18px 0 0;color:#8799b8;font-size:11px}
.update-panel .section-divider{margin:20px 0}
