:root{--bg:#0a0f15;--panel:#141b24;--panel2:#19222e;--border:#2a3544;--text:#f4f7fb;--muted:#8e9aac;--orange:#ff6500;--orange2:#ff7a1a;--green:#39d98a;--red:#ff626f;--amber:#ffbd3f}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
body{min-height:100vh}.login{background:radial-gradient(circle at 82% 10%,#2d1b10 0,transparent 31%),linear-gradient(135deg,#090d12,#101720)}
.login-grid{min-height:100vh;max-width:1160px;margin:auto;padding:50px;display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center}.brand h1{font-size:76px;line-height:.88;letter-spacing:-.055em;margin:0}.brand h1 b,.eyebrow{color:var(--orange)}.brand h3{font-size:22px;margin:28px 0 5px}.brand p,.card p{color:var(--muted)}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.18em;margin-bottom:10px}.pills{display:flex;gap:9px;margin-top:30px;flex-wrap:wrap}.pills span{border:1px solid var(--border);border-radius:999px;padding:9px 13px;color:#cbd3dd;font-size:13px}
.card{background:var(--panel);border:1px solid var(--border);border-radius:15px}.signin{padding:34px}.logo{width:48px;height:48px;border-radius:13px;background:var(--orange);display:grid;place-items:center;font-weight:1000;margin-bottom:20px}.signin h2{font-size:29px;margin:0 0 8px}.signin label,.deal-form label{display:block;font-size:13px;font-weight:750;color:#d4dbe4}.signin input,.deal-form input{display:block;width:100%;margin-top:7px;padding:12px 13px;background:#0d131b;color:white;border:1px solid #303c4c;border-radius:9px;outline:none}.signin input:focus,.deal-form input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,101,0,.1)}
.primary{display:inline-block;padding:11px 16px;border:0;border-radius:9px;background:var(--orange);color:white;font-weight:900;text-decoration:none;cursor:pointer}.primary:hover{background:var(--orange2)}.signin .primary{width:100%;margin-top:3px}.signin>small{display:block;text-align:center;color:#697587;margin-top:20px}
.alert,.flash{padding:11px 14px;border-radius:9px}.error{background:#35191b;border:1px solid #6d3035;color:#ffb1b1}.flash{position:fixed;right:22px;top:70px;z-index:30;background:#143224;border:1px solid #276d4c;color:#a8f1cb;box-shadow:0 15px 40px rgba(0,0,0,.35)}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:rgba(13,18,25,.97);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}.brand-mini .eyebrow{margin:0}.topbar nav{display:flex;gap:7px;flex-wrap:wrap}.topbar nav a{color:#c9d1dc;text-decoration:none;border:1px solid var(--border);padding:8px 11px;border-radius:8px;font-size:12px;font-weight:800}.topbar nav a:hover,.topbar nav a.active{border-color:#6c7b8f;color:white}
.app{max-width:1500px;margin:auto;padding:24px}.app.narrow{max-width:980px}.hero{padding:23px;display:flex;justify-content:space-between;align-items:center}.hero h2{font-size:29px;margin:0}.role{color:var(--orange);border:1px solid #73401f;background:#22170f;padding:8px 11px;border-radius:8px;font-weight:900}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}.stats .card{padding:18px}.stats small{color:var(--muted)}.stats strong{display:block;font-size:27px;margin-top:6px}.green{color:var(--green)}
.feed{overflow:hidden}.feedhead{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--border)}.feedhead h2{margin:0}.feedhead p{margin:5px 0 0}.empty{text-align:center;padding:75px 20px;color:var(--muted)}.empty b{font-size:40px;color:var(--orange)}.empty h3{color:white;margin-bottom:4px}
.deal-grid{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.deal-card{display:grid;grid-template-columns:105px 1fr auto;gap:14px;align-items:center;background:var(--panel2);border:1px solid var(--border);border-radius:13px;padding:13px;transition:.15s ease}.deal-card:hover{border-color:#465466;transform:translateY(-1px)}.product-img{width:105px;height:105px;background:#f4f4f4;border-radius:10px;display:grid;place-items:center;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:contain}.product-img span{color:#222;font-weight:1000}.deal-main{min-width:0}.deal-topline{display:flex;justify-content:space-between;gap:10px}.brand-name{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#bec8d4;font-weight:900}.age{font-size:11px;color:var(--muted)}.deal-main h3{font-size:16px;line-height:1.25;margin:5px 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.meta,.details{font-size:11px;color:var(--muted)}.price-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0}.price-line strong{font-size:21px;color:var(--green)}.price-line span{font-size:11px;color:var(--muted)}.price-line em{font-style:normal;font-size:10px;font-weight:900;color:#b9f7d7;background:#17472f;border-radius:6px;padding:4px 6px}.details{display:flex;gap:10px;flex-wrap:wrap}
.deal-actions{min-width:135px}.deal-actions form{display:flex;flex-direction:column;gap:6px}.chip{white-space:nowrap;background:#111821;border:1px solid #334052;color:#dbe3ec;padding:8px 9px;border-radius:8px;font-weight:800;font-size:11px;cursor:pointer}.chip:hover,.chip.selected{border-color:var(--orange);background:#26190f;color:#fff}.chip.danger:hover{border-color:var(--red);background:#2b1519}.open-link{display:block;text-align:center;color:#9fb0c4;font-size:11px;text-decoration:none;margin-top:8px}.open-link:hover{color:white}
.form-card{padding:24px}.form-card h2{margin:0}.deal-form{margin-top:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.span2{grid-column:span 2}.deal-form .primary{margin-top:20px;min-width:190px}
@media(max-width:1050px){.deal-grid{grid-template-columns:1fr}}@media(max-width:760px){.login-grid{grid-template-columns:1fr;padding:25px;gap:25px}.brand h1{font-size:52px}.stats{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.deal-card{grid-template-columns:75px 1fr}.product-img{width:75px;height:75px}.deal-actions{grid-column:1/-1}.deal-actions form{flex-direction:row;flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}}
.mobile-watch-list{display:grid;gap:14px;padding:14px}.mobile-watch-store{border:1px solid var(--border);border-radius:13px;overflow:hidden;background:var(--panel2)}.mobile-watch-store>header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border)}.mobile-watch-store h3{margin:0}.mobile-watch-store h3 span,.mobile-watch-store small{color:var(--muted)}.mobile-watch-item{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}.mobile-watch-item:last-child{border-bottom:0}.mobile-watch-item img{width:72px;height:72px;object-fit:contain;background:white;border-radius:8px}.mobile-watch-item h4{margin:3px 0;font-size:14px}.watch-stock{font-size:12px;font-weight:900;margin-top:5px}.watch-stock.in{color:var(--amber)}.watch-stock.out{color:var(--muted)}@media(max-width:650px){.mobile-watch-item{grid-template-columns:60px 1fr}.mobile-watch-item img{width:60px;height:60px}.mobile-watch-item .open-link{grid-column:1/-1;text-align:left}.feedhead{align-items:flex-start;flex-direction:column}}
/* HD Watch List relay */
.watch-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.small-primary{padding:8px 11px;font-size:12px}.relay-banner{margin:12px 14px 0;padding:11px 14px;border:1px solid var(--border);border-radius:10px;background:#101720;display:flex;align-items:center;gap:10px}.relay-banner .relay-dot{width:9px;height:9px;border-radius:50%;background:var(--muted);flex:0 0 auto}.relay-banner.on .relay-dot{background:var(--green);box-shadow:0 0 0 4px rgba(57,217,138,.09)}.relay-banner.off .relay-dot{background:var(--red)}.relay-banner div{display:flex;flex-direction:column;gap:2px}.relay-banner small{color:var(--muted)}#relayPageStatus{margin-left:auto;color:var(--amber);font-size:12px}.watch-item-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:90px}.watch-item-actions .open-link{margin:0}.watch-checked{font-size:10px;color:var(--muted);margin-top:3px}.watch-relay-status{font-size:11px;font-weight:800;margin-top:4px;min-height:14px}.watch-relay-status.working{color:var(--amber)}.watch-relay-status.good{color:var(--green)}.watch-relay-status.bad{color:var(--red)}.relay-refresh:disabled{opacity:.55;cursor:wait}.watch-regular-price{color:#e8eef6!important}.relay-good{background:#143224;border:1px solid #276d4c;color:#a8f1cb;margin-bottom:12px}.relay-settings{margin-top:18px}.relay-settings .form-grid{margin:14px 0}.relay-settings label,.relay-add-user{font-size:13px;font-weight:750;color:#d4dbe4}.relay-settings input[type=number],.relay-add-user input{display:block;width:100%;margin-top:7px;padding:11px 12px;background:#0d131b;color:#fff;border:1px solid #303c4c;border-radius:9px}.relay-settings label small{display:block;color:var(--muted);font-weight:500;margin-top:5px}.relay-toggle{display:flex!important;align-items:center;gap:9px}.relay-toggle input{width:auto!important;margin:0!important}.relay-add-user{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:16px 0}.relay-add-user input{margin:0}.relay-user-list>div{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid var(--border)}.relay-user-list span{display:flex;align-items:center;gap:10px}.relay-user-list small{color:var(--muted);text-transform:uppercase}.muted{color:var(--muted)}
@media(max-width:650px){.watch-head-actions{justify-content:flex-start}.relay-banner{align-items:flex-start;flex-wrap:wrap}#relayPageStatus{width:100%;margin-left:19px}.mobile-watch-item{grid-template-columns:60px 1fr}.watch-item-actions{grid-column:1/-1;flex-direction:row}.watch-item-actions .chip,.watch-item-actions .open-link{flex:1;text-align:center}.relay-add-user{grid-template-columns:1fr}.relay-settings .form-grid{grid-template-columns:1fr}}

/* Watch relay UI cleanup */
.watch-head-actions{gap:18px!important}.watch-head-actions strong{white-space:nowrap}.watch-head-actions .small-primary{min-width:108px}.watch-page-status{display:none;margin:10px 20px 0;color:var(--amber);font-size:12px;font-weight:800}.watch-page-status:not(:empty){display:block}.watch-page-status.good{color:var(--green)}.watch-page-status.bad{color:var(--red)}
@media(max-width:650px){.watch-head-actions{width:100%;justify-content:space-between!important;gap:12px!important}.watch-head-actions .small-primary{margin-left:auto}}

/* First-login Chrome setup */
.setup-page{background:radial-gradient(circle at 84% 8%,#2d1b10 0,transparent 30%),var(--bg)}
.setup-shell{max-width:1180px;margin:0 auto;padding:42px 24px 70px}.setup-hero{max-width:820px;margin-bottom:24px}.setup-hero h1{font-size:42px;letter-spacing:-.035em;margin:0 0 10px}.setup-hero p{color:var(--muted);font-size:16px;line-height:1.6;margin:0}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.setup-card{padding:24px;display:flex;gap:18px;align-items:flex-start}.setup-card h2{margin:0 0 8px;font-size:21px}.setup-card p{margin:0 0 15px;line-height:1.55}.setup-step{width:38px;height:38px;min-width:38px;border-radius:11px;background:var(--orange);display:grid;place-items:center;font-weight:1000;font-size:17px}.setup-primary{margin-top:4px}.setup-download small{display:block;color:var(--muted);margin-top:10px;word-break:break-all}.setup-list{margin:8px 0 0;padding-left:21px;color:#dce3ec;line-height:1.8}.setup-list strong{color:#fff}.setup-grow{min-width:0;flex:1}.setup-key-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:10px}.setup-key-input{width:100%;min-width:0;padding:12px 13px;background:#0d131b;color:#fff;border:1px solid #303c4c;border-radius:9px;outline:none;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.setup-key-input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,101,0,.1)}.setup-copy{padding:11px 15px}.setup-copy-status{font-size:12px;color:var(--muted);margin-top:9px}.setup-finish{grid-column:1/-1}.setup-finish>div:last-child{flex:1}.setup-finish .primary{float:right}
@media(max-width:800px){.setup-shell{padding:28px 16px 50px}.setup-hero h1{font-size:34px}.setup-grid{grid-template-columns:1fr}.setup-finish{grid-column:auto}.setup-finish .primary{float:none;width:100%;text-align:center}.setup-key-row{grid-template-columns:1fr}.setup-copy{width:100%}}

/* Polished onboarding + member settings */
.setup-shell{max-width:1120px}.setup-hero.card{padding:32px 34px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(135deg,var(--panel),#171d25)}.setup-hero-copy{max-width:790px}.setup-hero h1{font-size:38px;margin-bottom:12px}.setup-hero-mark{width:74px;height:74px;flex:0 0 74px;border-radius:20px;background:var(--orange);display:grid;place-items:center;font-size:24px;font-weight:1000;box-shadow:0 16px 45px rgba(255,101,0,.18)}.setup-progress{display:flex;align-items:center;margin-top:22px;max-width:360px}.setup-progress span{width:27px;height:27px;border:1px solid #445165;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:900;color:#aab4c1;background:#10161e}.setup-progress span.active{background:var(--orange);border-color:var(--orange);color:#fff}.setup-progress i{height:1px;background:#3b4655;flex:1}.setup-card{min-height:250px;padding:25px;background:linear-gradient(145deg,var(--panel),#151d27)}.setup-card:hover{border-color:#3c495a}.setup-label{font-size:10px;font-weight:900;letter-spacing:.16em;color:var(--orange);margin-bottom:7px}.setup-card h2{font-size:22px}.setup-card p{color:#9eabbc}.setup-note{display:inline-block;margin-top:13px;padding:7px 9px;border-radius:7px;background:#10161e;color:var(--muted);font-size:11px}.setup-key-label{font-size:10px;font-weight:900;color:#aab5c3;letter-spacing:.12em;margin-top:18px}.setup-key-row{grid-template-columns:minmax(0,1fr) auto auto}.setup-key-input{height:42px}.setup-copy-status{display:flex;align-items:center;gap:7px}.setup-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(57,217,138,.08)}.setup-finish{grid-column:auto}.setup-finish .primary{float:none}.setup-ready{display:flex;align-items:center;gap:11px;padding:12px 13px;margin:17px 0;background:#10251c;border:1px solid #245d43;border-radius:10px}.setup-ready>span{width:30px;height:30px;border-radius:50%;background:var(--green);color:#07130d;display:grid;place-items:center;font-weight:1000}.setup-ready div{display:flex;flex-direction:column}.setup-ready small{color:#8ebca4;margin-top:2px}.setup-footer{text-align:center;color:var(--muted);font-size:12px;padding:20px}
.settings-shell{max-width:1180px}.settings-hero{padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-hero h1{margin:0;font-size:30px}.settings-hero p{margin:5px 0 0}.connection-pill{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--border);border-radius:999px;color:#aab5c3;font-size:12px;font-weight:900}.connection-pill i{width:8px;height:8px;border-radius:50%;background:#667180}.connection-pill.online{color:#a8f1cb;border-color:#276d4c;background:#10251c}.connection-pill.online i{background:var(--green);box-shadow:0 0 0 4px rgba(57,217,138,.08)}.settings-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}.settings-stats .card{padding:17px 19px}.settings-stats small{color:var(--muted)}.settings-stats strong{display:block;font-size:25px;margin-top:5px}.settings-stats p{margin:3px 0 0;font-size:12px}.settings-stats .settings-time{font-size:18px;margin-top:9px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-card{padding:23px}.settings-card h2{margin:0 0 6px}.settings-card>p,.settings-title-row p{margin:4px 0 0}.settings-title-row{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.account-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.account-facts div{padding:12px;background:#101720;border:1px solid var(--border);border-radius:9px}.account-facts span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.account-facts strong{display:block;margin-top:4px}.settings-form{display:grid;gap:11px}.settings-form label{font-size:12px;font-weight:800;color:#d4dbe4}.settings-form input,.api-view input{display:block;width:100%;margin-top:6px;padding:11px 12px;background:#0d131b;color:#fff;border:1px solid #303c4c;border-radius:9px;outline:none}.settings-form input:focus,.api-view input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,101,0,.1)}.settings-form .primary{justify-self:start}.user-key-list{margin-top:17px;display:grid;gap:9px}.user-key{padding:13px;background:#101720;border:1px solid var(--border);border-radius:10px}.user-key.revoked{opacity:.6}.user-key-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-key-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.api-view{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin:10px 0 7px}.api-view input{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.user-key small{color:var(--muted)}.settings-extension{grid-column:1/-1}.settings-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.settings-link{display:inline-flex;align-items:center;text-decoration:none}.setup-tip{margin-top:18px;display:flex;gap:12px;padding:12px 14px;background:#101720;border:1px solid var(--border);border-radius:10px}.setup-tip strong{color:var(--orange)}.setup-tip span{color:var(--muted);font-size:12px}
@media(max-width:800px){.setup-hero.card{padding:24px;align-items:flex-start}.setup-hero-mark{display:none}.setup-hero h1{font-size:31px}.setup-key-row{grid-template-columns:1fr 1fr}.setup-key-input{grid-column:1/-1}.settings-grid,.settings-stats{grid-template-columns:1fr}.settings-extension{grid-column:auto}.settings-hero{align-items:flex-start;flex-direction:column}.account-facts{grid-template-columns:1fr}.api-view{grid-template-columns:1fr 1fr}.api-view input{grid-column:1/-1}.settings-title-row{flex-direction:column}.settings-actions .primary,.settings-actions .chip{width:100%;text-align:center;justify-content:center}}

/* Logged-in header identity / relay heartbeat */
.header-welcome{display:flex;align-items:center;gap:6px;margin-top:2px;color:#cbd4df;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap}
.header-welcome>strong{color:#f4f7fb;font-size:13px}
.header-sep{color:#667384;margin:0 1px}
.chrome-state{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:850}
.chrome-state i{display:block;width:8px;height:8px;border-radius:50%;background:#788391;box-shadow:0 0 0 2px rgba(120,131,145,.12)}
.chrome-state.online{color:#72e4a9}.chrome-state.online i{background:#45d58b;box-shadow:0 0 0 2px rgba(69,213,139,.14)}
.chrome-state.offline{color:#9ba6b4}
@media(max-width:760px){.brand-mini{width:100%}.header-welcome{font-size:12px;white-space:normal;flex-wrap:wrap;gap:5px}.header-welcome>strong{font-size:12px}.chrome-state{font-size:11px}.topbar nav{width:100%;margin-top:7px}}

/* Compact account + relay status header */
.header-account-line{display:flex;align-items:center;gap:7px;margin-top:3px;min-height:22px;line-height:1;white-space:nowrap}
.header-user-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px;background:#7f8996;box-shadow:0 0 0 3px rgba(127,137,150,.10)}
.header-user-dot.online{background:#45d58b;box-shadow:0 0 0 3px rgba(69,213,139,.13)}
.header-user-dot.offline{background:#7f8996}
.header-username{font-size:13px;color:#f5f7fa;font-weight:850;letter-spacing:.01em}
.header-role-badge,.header-chrome-badge{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:3px 7px;border-radius:999px;font-size:9px;line-height:1;font-weight:900;letter-spacing:.04em;border:1px solid #324154;background:#18212d;color:#8ea1bb}
.header-role-badge.admin{color:#8eadd0;background:#182231;border-color:#293d55}
.header-role-badge.trusted{color:#c5a8ff;background:#241d35;border-color:#443462}
.header-role-badge.user{color:#9cacbf;background:#18212d;border-color:#324154}
.header-chrome-badge.online{color:#79f0b0;background:#0e2820;border-color:#18734f}
.header-chrome-badge.offline{color:#a8b1be;background:#1a2028;border-color:#38414e}
@media(max-width:760px){.header-account-line{gap:5px;flex-wrap:wrap;white-space:normal}.header-username{font-size:12px}.header-role-badge,.header-chrome-badge{font-size:8px;min-height:18px;padding:3px 6px}.header-user-dot{width:8px;height:8px;flex-basis:8px}}

/* Header identity v2: useful account + relay state only */
.header-account-line{display:flex;align-items:center;gap:8px;margin-top:4px;min-height:22px;line-height:1;white-space:nowrap}
.header-user-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px;background:#7f8996;box-shadow:0 0 0 3px rgba(127,137,150,.10)}
.header-user-dot.online{background:#45d58b;box-shadow:0 0 0 3px rgba(69,213,139,.13)}
.header-user-dot.offline{background:#7f8996}
.header-username{font-size:13px;color:#f5f7fa;font-weight:850;letter-spacing:.01em}
.header-chrome-badge{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:3px 8px;border-radius:999px;font-size:9px;line-height:1;font-weight:900;letter-spacing:.04em;border:1px solid #38414e;background:#1a2028;color:#a8b1be}
.header-chrome-badge.online{color:#79f0b0;background:#0e2820;border-color:#18734f}
.header-chrome-badge.offline{color:#a8b1be;background:#1a2028;border-color:#38414e}
.header-role-badge{display:none!important}
@media(max-width:760px){.header-account-line{gap:6px;flex-wrap:wrap;white-space:normal}.header-username{font-size:12px}.header-chrome-badge{font-size:8px;min-height:18px;padding:3px 7px}}


/* v39 Light / Dark theme */
html[data-theme="light"]{--bg:#f4f7fb;--panel:#ffffff;--panel2:#f7f9fc;--border:#ccd6e2;--text:#17202b;--muted:#67778b;--green:#148a57;--red:#c63f4b;--amber:#9a6b00}
html[data-theme="light"] body{background:#f4f7fb;color:#17202b}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.97);border-color:#ccd6e2}
html[data-theme="light"] .topbar nav a{color:#344255;background:#fff;border-color:#cbd5e1}
html[data-theme="light"] .topbar nav a:hover,html[data-theme="light"] .topbar nav a.active{color:#111827;border-color:#7f8fa3;background:#f4f7fb}
html[data-theme="light"] .card,html[data-theme="light"] .feedhead,html[data-theme="light"] .deal-head,html[data-theme="light"] .detail-card,html[data-theme="light"] .filterbar,html[data-theme="light"] .watch-retailer-section,html[data-theme="light"] .watch-retailer-head,html[data-theme="light"] .mobile-watch-store,html[data-theme="light"] .mobile-watch-store>header,html[data-theme="light"] .mobile-watch-item,html[data-theme="light"] .shared-card,html[data-theme="light"] .store-row,html[data-theme="light"] .store-head{background:#fff!important;color:#17202b!important;border-color:#ccd6e2!important}
html[data-theme="light"] .mobile-watch-item:hover,html[data-theme="light"] .store-row:hover{background:#f7f9fc!important}
html[data-theme="light"] .watch-columns{background:#eef3f8!important;color:#526174!important;border-color:#ccd6e2!important}
html[data-theme="light"] .shared-sub,html[data-theme="light"] .shared-meta,html[data-theme="light"] .muted,html[data-theme="light"] .meta,html[data-theme="light"] .details,html[data-theme="light"] .age,html[data-theme="light"] .count-note{color:#66768a!important}
html[data-theme="light"] .shared-title,html[data-theme="light"] .watch-product-copy h4,html[data-theme="light"] .empty h3{color:#17202b!important}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea,html[data-theme="light"] .chip,html[data-theme="light"] .filter-btn,html[data-theme="light"] .tabs a,html[data-theme="light"] .snapshot-action,html[data-theme="light"] .watch-jump-tabs button{background:#fff!important;color:#17202b!important;border-color:#bfcbd9!important}
html[data-theme="light"] .tabs a.active,html[data-theme="light"] .filter-btn.active,html[data-theme="light"] .watch-jump-tabs button.active{background:#e9eff6!important;color:#17202b!important}
html[data-theme="light"] .product-img,html[data-theme="light"] .mobile-watch-item img,html[data-theme="light"] .shared-card>img{background:#fff!important}
html[data-theme="light"] .selected-state-meta{background:#eaf8f0!important;border-color:#8bc7a7!important}
html[data-theme="light"] .login{background:radial-gradient(circle at 82% 10%,#fff1e6 0,transparent 31%),linear-gradient(135deg,#f7f9fc,#eef3f8)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);font-size:12px;font-weight:900;cursor:pointer}
.theme-toggle:hover{border-color:#6c7b8f}.theme-toggle.floating{position:fixed;right:18px;top:18px;z-index:80;background:var(--panel)}

html[data-theme="light"] .scan-card,html[data-theme="light"] .online-users-card,html[data-theme="light"] .checkopt,html[data-theme="light"] .network-panel,html[data-theme="light"] .relay-chip,html[data-theme="light"] .lowes-note,html[data-theme="light"] .state-trigger,html[data-theme="light"] .state-menu,html[data-theme="light"] .state-actions,html[data-theme="light"] .scan-table td,html[data-theme="light"] .watch-tools{background:#fff!important;color:#17202b!important;border-color:#ccd6e2!important}
html[data-theme="light"] .scan-table th,html[data-theme="light"] .mutedx,html[data-theme="light"] .relay-note,html[data-theme="light"] .network-meta,html[data-theme="light"] .online-users-empty{color:#66768a!important}
html[data-theme="light"] .retailer-tabs button,html[data-theme="light"] .chipx,html[data-theme="light"] .state-row,html[data-theme="light"] .online-user{background:#f7f9fc!important;color:#17202b!important;border-color:#c4cfdb!important}
html[data-theme="light"] .scan-form label,html[data-theme="light"] .online-users-head strong,html[data-theme="light"] .network-meta strong,html[data-theme="light"] .relay-chip strong{color:#263447!important}
html[data-theme="light"] .progress-line{background:#e5ebf2!important;border-color:#ccd6e2!important}
html[data-theme="light"] .watch-tools input,html[data-theme="light"] .watch-tools select{background:#fff!important;color:#17202b!important;border-color:#bfcbd9!important}


/* v40 explicit theme controls + copy buttons */
.theme-controls{display:inline-flex;align-items:center;gap:6px;margin-left:2px}
.theme-mode-btn{width:38px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:#101720;color:var(--text);font-size:15px;line-height:1;cursor:pointer;padding:0}
.theme-mode-btn:hover,.theme-mode-btn.active{border-color:#66788d;background:#172231}
html[data-theme="light"] .theme-mode-btn{background:#fff;color:#17202b;border-color:#cbd5e1}
html[data-theme="light"] .theme-mode-btn:hover,html[data-theme="light"] .theme-mode-btn.active{background:#e9eff6;border-color:#8799ad}
.copy-inline{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin:0 1px;padding:0;border:0;background:transparent!important;color:#8ea0b5!important;font-size:12px;line-height:1;cursor:pointer;vertical-align:-2px;position:relative;z-index:6;border-radius:4px}
.copy-inline:hover,.copy-inline.copied{color:#57e6a0!important;background:rgba(87,230,160,.08)!important}
html[data-theme="light"] .copy-inline{color:#66788b!important}
html[data-theme="light"] .copy-inline:hover,html[data-theme="light"] .copy-inline.copied{color:#087b4c!important;background:#e8f7ef!important}

/* broader light mode coverage */
html[data-theme="light"] body,html[data-theme="light"] main{background:#f4f7fb;color:#17202b}
html[data-theme="light"] .feed,html[data-theme="light"] .hero,html[data-theme="light"] .form-card,html[data-theme="light"] .stats .card,html[data-theme="light"] .deal-card,html[data-theme="light"] .mobile-watch-list,html[data-theme="light"] .mobile-watch-store,html[data-theme="light"] .watch-retailer-section,html[data-theme="light"] .watch-tools,html[data-theme="light"] .scan-card,html[data-theme="light"] .product-card,html[data-theme="light"] .network-panel,html[data-theme="light"] .online-users-card,html[data-theme="light"] .settings-card,html[data-theme="light"] .admin-card{background:#fff!important;color:#17202b!important;border-color:#ccd6e2!important}
html[data-theme="light"] .deal-card,html[data-theme="light"] .mobile-watch-store>header,html[data-theme="light"] .mobile-watch-item,html[data-theme="light"] .watch-retailer-head,html[data-theme="light"] .watch-columns,html[data-theme="light"] .stat,html[data-theme="light"] .store-row,html[data-theme="light"] .scan-table td,html[data-theme="light"] .scan-table th{background:#f8fafc!important;color:#17202b!important;border-color:#d4dde7!important}
html[data-theme="light"] .brand-name,html[data-theme="light"] .meta,html[data-theme="light"] .details,html[data-theme="light"] .muted,html[data-theme="light"] .mutedx,html[data-theme="light"] small,html[data-theme="light"] .shared-sub,html[data-theme="light"] .shared-meta,html[data-theme="light"] .state-line{color:#66768a!important}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] h4,html[data-theme="light"] strong,html[data-theme="light"] .shared-title,html[data-theme="light"] .header-username{color:#17202b}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.98)!important}
html[data-theme="light"] .header-chrome-badge.online{color:#087b4c;background:#e9f8f0;border-color:#91ccb0}
html[data-theme="light"] .watch-delete{background:#fff1f2!important;color:#b42335!important;border-color:#e2a1aa!important}
html[data-theme="light"] .watch-cleanup{background:#fff8eb!important;color:#8a5b00!important;border-color:#d9ba73!important}
