:root{color-scheme:dark;--bg:#070d19;--bg2:#0a1322;--surface:#0e192a;--surface2:#111f33;--line:#213147;--line-soft:#1a2a3e;--text:#eef5ff;--muted:#7f92ac;--dim:#61758e;--teal:#43e0c2;--teal2:#1fb9a9;--violet:#9277fa;--blue:#6ab9ff;--amber:#ffbf6a;--red:#ff7b91;--shadow:0 22px 70px rgba(0,0,0,.15)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px;letter-spacing:-.011em;background:var(--bg);color:var(--text);line-height:1.5}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}::selection{background:#33bfad66;color:white}input,select{outline:none}body:before{content:'';position:fixed;inset:0;background:radial-gradient(ellipse 38% 34% at 78% 0,rgba(35,124,145,.12),transparent 78%),radial-gradient(ellipse 48% 55% at 1% 90%,rgba(79,59,140,.09),transparent 85%);pointer-events:none;z-index:-1}.background-grid{position:fixed;inset:0;opacity:.14;pointer-events:none;z-index:-1;background-image:linear-gradient(#284d661e 1px,transparent 1px),linear-gradient(90deg,#284d661e 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}
.app-shell{display:flex;min-height:100vh}.sidebar{width:251px;min-width:251px;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;background:linear-gradient(145deg,#0d1827 0%,#0b1424 85%);border-right:1px solid var(--line-soft);padding:28px 16px 18px;z-index:10}.sidebar-logo,.setup-brand{display:flex;align-items:center;gap:12px;padding:0 10px;margin-bottom:46px}.brand-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;color:#042124;background:linear-gradient(140deg,#63f0d4,#2cbfae);font-size:19px;box-shadow:0 7px 34px #39d9c52d;transform:rotate(-5deg)}.sidebar-logo strong,.setup-brand strong{display:block;font-size:18px;letter-spacing:.035em;font-weight:800;line-height:1}.sidebar-logo small,.setup-brand small{display:block;font-size:9px;font-weight:700;letter-spacing:.18em;color:var(--muted);margin-top:8px}.brand-dot{color:var(--teal)}.sidebar-section{font-size:9px;color:#587089;letter-spacing:.19em;font-weight:800;margin:0 14px 13px}.side-links{display:flex;flex-direction:column;gap:5px;margin-bottom:29px}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 15px;border:1px solid transparent;border-radius:11px;color:#8fa0b9;transition:background .2s,border .2s,color .2s;min-height:43px;font-size:12.5px;font-weight:550}.nav-link i{width:16px;text-align:center;font-size:14px;color:#6e83a0}.nav-link:hover{background:#19283a;color:white}.nav-link.active{background:linear-gradient(90deg,#204943a6,#16302e6d);border-color:#316d6494;color:#b4f7e9}.nav-link.active i{color:var(--teal)}.side-space{flex:1}.sidebar-status{background:#101f2b;border:1px solid #24443e;border-radius:12px;display:flex;align-items:center;gap:11px;padding:14px 11px;margin:0 2px 16px}.status-dot,.live-pulse,.dot{width:7px;height:7px;background:var(--teal);border-radius:100%;display:inline-block;box-shadow:0 0 0 5px #43e0c21a,0 0 20px #43e0c25c;flex-shrink:0}.sidebar-status b{font-size:11px;display:block;font-weight:650}.sidebar-status small{display:block;font-size:10px;color:#8caaad;margin-top:2px}.sidebar-profile{border-top:1px solid var(--line-soft);padding:18px 3px 1px;display:flex;align-items:center;gap:10px}.profile-avatar{width:34px;height:34px;border-radius:10px;background:#1f3047;display:grid;place-items:center;color:#9dc2d9}.profile-info{flex:1;min-width:0}.profile-info b,.profile-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-info b{font-size:11px;font-weight:650}.profile-info small{font-size:10px;color:var(--muted)}.icon-btn,.top-icon{border:1px solid transparent;background:transparent;color:#7e91ac;width:33px;height:33px;display:inline-grid;place-items:center;border-radius:9px;transition:background .2s,color .2s}.icon-btn:hover,.top-icon:hover{background:#213449;color:var(--text)}.main-column{flex:1;min-width:0}.topbar{height:75px;border-bottom:1px solid var(--line-soft);background:#0b1523b0;backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(25px,3vw,50px);position:sticky;top:0;z-index:5}.topbar-left,.topbar-right{display:flex;align-items:center;gap:20px}.location-label{font-weight:750;letter-spacing:.14em;font-size:10px;color:var(--teal)}.location-label i{margin-right:7px;font-size:11px}.top-divider{width:1px;height:18px;background:#314158}.top-property{font-size:12px;color:#b4c4d8;font-weight:550}.server-time{font-size:11px;color:#95a8bb;display:flex;align-items:center;gap:11px}.live-pulse{width:6px;height:6px;animation:pulse 2.4s infinite}.mobile-menu{display:none}.content{padding:40px clamp(25px,3vw,50px) 21px;max-width:1750px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 27px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:750;color:#81d7c7;display:flex;align-items:center;gap:10px}.eyebrow .dot{width:6px;height:6px;box-shadow:none}.tiny-sep{color:#50687f}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,2.15vw,36px);font-weight:750;letter-spacing:-.055em;line-height:1.2;margin:14px 0 9px}h2{font-size:16px;font-weight:680;letter-spacing:-.035em;margin:4px 0 3px}h3{font-size:13px;font-weight:650;margin:0 0 6px}.subheading,.muted{color:var(--muted)}.subheading{font-size:12px;margin:0}.tiny{font-size:11px;line-height:1.55}.small{font-size:11px}.btn{border:1px solid #30425b;background:#14243a;color:#d9e9f9;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:39px;padding:0 16px;border-radius:10px;font-size:11.5px;font-weight:680;transition:transform .17s,border .17s,background .17s,box-shadow .17s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-2px);border-color:#42627c}.btn.primary{color:#06251f;background:linear-gradient(130deg,#69eace,#3accae);border:0;box-shadow:0 6px 22px #45dbbe2a}.btn.primary:hover:not(:disabled){box-shadow:0 10px 29px #45dbbe4d}.btn.subtle{background:#15243a;color:#c0d2e3}.btn:disabled{opacity:.55;cursor:not-allowed}.small-btn{min-height:32px}.inline-form{display:inline-flex}.panel{position:relative;overflow:hidden;background:linear-gradient(150deg,#101d30ea,#0c1829ed);border:1px solid var(--line-soft);border-radius:15px;box-shadow:var(--shadow)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.kpi{min-height:154px;padding:20px 21px 17px;transition:border .2s,transform .2s}.kpi:hover{border-color:#31516a;transform:translateY(-2px)}.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:#8195ad;font-size:9px;font-weight:750;letter-spacing:.115em}.kpi-icon{font-size:14px;width:35px;height:35px;border-radius:11px;display:grid;place-items:center;margin-top:-4px}.kpi-icon.green{color:var(--teal);background:#1c5b533d}.kpi-icon.blue{color:var(--blue);background:#34577a40}.kpi-icon.purple{color:#b29eff;background:#66569e46}.kpi-icon.amber{color:var(--amber);background:#8c5e2a35}.kpi-value{font-weight:740;font-size:31px;letter-spacing:-.07em;line-height:1.1;margin:16px 0 9px;position:relative}.kpi-caption{font-size:10.5px;color:#8399b0;position:relative}.kpi-glow{position:absolute;inset:auto -50px -85px auto;width:220px;height:150px;pointer-events:none;border-radius:50%;filter:blur(45px);opacity:.09}.kpi-glow.green{background:var(--teal)}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 24px 0}.panel-header p{margin-bottom:0}.panel-kicker{font-size:9px;color:#7d9db0;letter-spacing:.15em;font-weight:780}.panel-kicker i{color:var(--teal);margin-right:7px}.main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr);gap:17px;margin-bottom:18px}.chart-panel{min-height:342px}.seg-buttons{display:flex;align-items:center;gap:2px;background:#101d30;border:1px solid #293b51;border-radius:8px;padding:3px;flex-shrink:0}.seg-buttons button{background:transparent;color:#8094af;border:0;border-radius:6px;font-size:9px;font-weight:800;padding:7px 9px}.seg-buttons button.active,.seg-buttons button:hover{background:#2b4558;color:var(--teal)}.chart-wrap{position:relative;padding:24px 19px 10px}.landscape-wrap{height:238px}.evolution-wrap{height:142px;padding-top:10px}.chart-wrap canvas{height:100%!important;width:100%!important}.canvas-empty{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;text-align:center;color:#73859c;line-height:1.6;font-size:11px;padding:35px;pointer-events:none}.canvas-empty.hidden{display:none}.chart-legend{display:flex;gap:19px;align-items:center;padding:0 24px 18px;font-size:10px;color:#8b9db1}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--teal)}.legend-dot.muted-dot{background:#526579}.history-selector{margin:19px 24px 16px;display:flex;align-items:center;gap:15px}.history-selector label{font-size:9px;font-weight:750;letter-spacing:.12em;color:var(--muted);flex-shrink:0}.history-selector select{min-width:130px;height:34px;flex:1;font-size:11px;border-radius:8px}.history-current{display:flex;align-items:center;justify-content:space-between;padding:0 24px}.history-price{font-size:24px;font-weight:750;line-height:1.3;letter-spacing:-.055em}.trend-pill{border:1px solid #354a5e;background:#19283b;color:#a6b5c7;font-size:10px;font-weight:730;border-radius:7px;padding:6px 9px;white-space:nowrap}.trend-pill.down{color:#55e1c0;background:#1b433e66;border-color:#286e60}.trend-pill.up{color:#ff8da0;background:#5f2a3f66;border-color:#763a4d}.footnote{color:#668098;font-size:9.5px;padding:0 24px;margin:0 0 15px}.below-grid{display:grid;grid-template-columns:minmax(350px,1.15fr) minmax(330px,1fr);gap:17px}.calendar-panel,.activity-panel{min-height:405px}.calendar-controls{display:flex;align-items:center;gap:4px;font-size:11px}.calendar-controls b{min-width:110px;text-align:center;font-size:11px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 22px}.calendar-weekdays{padding:23px 0 9px;text-align:center;color:#7085a1;font-size:9px;font-weight:750}.calendar-grid{min-height:245px}.calendar-day{height:53px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:9px;gap:3px;border:1px solid transparent;background:#121f31;color:#8194ad;position:relative;transition:background .15s,border .15s,transform .15s;min-width:0}.calendar-day.placeholder{visibility:hidden}.calendar-day strong{font-size:12px;font-weight:650;line-height:1.1}.calendar-day small{font-size:9px;font-weight:650;color:#a1b6c9}.calendar-day.low{background:#17483f81;border-color:#2c6f5d59}.calendar-day.low small{color:#6aead1}.calendar-day.mid{background:#1a2d3e}.calendar-day.high{background:#41304085;border-color:#7250643d}.calendar-day.high small{color:#ffaaaf}.calendar-day.unavailable{background:#27233082}.calendar-day.unknown{background:#121f31}.calendar-day:hover:not(.placeholder){border-color:#508d94;transform:translateY(-1px)}.calendar-day.selected{outline:2px solid #58e4cf;outline-offset:-2px}.calendar-day:disabled{cursor:default;opacity:.7}.calendar-key{display:flex;gap:18px;padding:17px 24px;color:#8095ab;font-size:10px}.cal-dot{display:inline-block;height:7px;width:7px;border-radius:2px;margin-right:5px;background:#526377}.cal-dot.low{background:#39be9d}.cal-dot.high{background:#df819c}.cal-dot.none{background:#566478}.activity-panel .panel-header{padding-bottom:15px}.text-link{font-size:10px;font-weight:650;color:var(--teal);white-space:nowrap}.text-link i{font-size:9px;margin-left:5px}.activity-feed{max-height:350px;overflow:auto;padding:0 24px 15px}.activity-item{display:flex;align-items:center;gap:13px;padding:13px 0;border-top:1px solid #1d2d40}.event-icon{width:33px;height:33px;border-radius:10px;background:#273a50;display:grid;place-items:center;flex-shrink:0;color:#b2c4d6}.event-icon.down{background:#174e3f;color:var(--teal)}.event-icon.up{background:#543344;color:#ff8298}.event-info{flex:1;min-width:0}.event-info b,.event-info small{display:block}.event-info b{font-size:11.5px;font-weight:650}.event-info small{font-size:10px;color:var(--muted);margin-top:2px}.event-value{text-align:right;font-size:12px;font-weight:730}.event-value small{display:block;font-size:10px;color:var(--muted);font-weight:500}.negative{color:var(--teal)}.positive{color:#ff91a4}.empty-list{font-size:11px;color:#71869f;text-align:center;padding:48px 16px}.content-footer{border-top:1px solid var(--line-soft);margin:32px 0 0;padding:19px 0 4px;display:flex;justify-content:space-between;color:#50677d;font-size:9px;letter-spacing:.04em;gap:15px}.content-footer i{font-size:5px;vertical-align:middle;margin:0 5px;color:var(--teal)}.alert{display:flex;align-items:center;gap:12px;border-radius:11px;padding:12px 15px;margin-bottom:19px;border:1px solid #3b5463;background:#172c39;color:#c3d8e9;font-size:11.5px;line-height:1.6;overflow-wrap:anywhere}.alert.success{border-color:#2c7059;background:#153b32;color:#b5f7df}.alert.error{border-color:#7d4150;background:#38232e;color:#ffd2da}.alert.warning{border-color:#927345;background:#3e3423;color:#ffe3a7}.toast{position:fixed;bottom:25px;right:25px;padding:12px 18px;border-radius:9px;background:#1b3b39;border:1px solid #34816d;color:#d1fff0;font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s;z-index:100}.toast.visible{opacity:1;transform:translateY(0)}
/* Analysis */
.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.analysis-grid .panel{min-height:280px}.insight-list{padding:14px 25px 23px}.insight-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #213044}.insight-row:last-child{border:0}.rank{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;color:#81e8d2;background:#1f4c47;font-weight:790;font-size:11px}.insight-data{flex:1}.insight-data b,.insight-data small{display:block}.insight-data b{font-size:11.5px;font-weight:620}.insight-data small{color:var(--muted);font-size:10px}.insight-number{font-weight:720;font-size:14px}.table-panel{margin-bottom:17px}.table-scroll{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left}th{padding:16px 20px 12px;font-size:9px;color:#697f98;letter-spacing:.1em;font-weight:750;white-space:nowrap;border-bottom:1px solid #29364a}td{padding:14px 20px;border-bottom:1px solid #1c2b40;font-size:11px;white-space:nowrap;color:#b9c8d9;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#1423358b}td:first-child{color:#e5edf8;font-weight:630}.empty-table{text-align:center;color:var(--dim);padding:48px 20px}.table-pill{font-size:9px;padding:4px 8px;border-radius:6px;display:inline-block;background:#223a46;color:#acdfd5;font-weight:670}.table-pill.failed{background:#4c2937;color:#ffa9b8}.table-pill.partial{background:#534128;color:#f1cd81}.table-pill.success{background:#1d473e;color:#83e5cd}.change-down{color:var(--teal);font-weight:710}.change-up{color:#f79cb2;font-weight:710}.change-flat{color:#8497aa}.status-bar{padding:20px 24px;display:flex;align-items:center;gap:30px;margin-bottom:18px;flex-wrap:wrap}.status-card{display:flex;align-items:center;gap:13px;flex:1;min-width:175px}.status-icon{width:43px;height:43px;display:grid;place-items:center;background:#1c493f;border-radius:12px;color:var(--teal);font-size:17px}.status-card b,.status-card span:last-child{display:block}.status-card b{font-size:12px}.status-card div>span{font-size:10px;color:var(--muted);margin-top:3px}.status-meta small,.status-meta strong{display:block}.status-meta small{font-size:9px;letter-spacing:.1em;color:var(--dim)}.status-meta strong{font-size:11px;margin-top:6px}.history-panels{display:grid;grid-template-columns:1fr;gap:18px}.history-panels .panel{min-height:225px}.history-panels table{table-layout:auto}.history-panels td:last-child{white-space:normal;min-width:240px;max-width:520px;overflow-wrap:anywhere;font-size:10px;color:#8499ac}.export-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px;margin-top:18px}.export-panel h3 i{margin-right:9px;color:var(--teal)}.export-panel p{margin:0}.export-buttons{display:flex;gap:9px;flex-wrap:wrap}
/* Forms */
.settings-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,.8fr);gap:18px;align-items:start}.settings-panel{padding-bottom:24px}.settings-form{padding:0 25px}.settings-form>.panel-header{padding-bottom:15px}.settings-group-title,.form-title{margin:26px 0 15px;padding-bottom:11px;border-bottom:1px solid var(--line);font-weight:740;color:#bddadf;font-size:11px}.settings-group-title:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--teal);margin-right:9px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}label{display:block;color:#9bb0c5;font-size:10.5px;font-weight:620}label.full,.full{grid-column:1/-1}input:not([type=checkbox]),select{width:100%;height:40px;background:#0d1727;border:1px solid #2b3b50;color:#e7f2ff;border-radius:9px;padding:0 12px;margin-top:7px;transition:border .2s,box-shadow .2s;max-width:100%;min-width:0}input:focus,select:focus{border-color:#49aa9e;box-shadow:0 0 0 3px #49aa9e22}input::placeholder{color:#536a80}select{padding-right:13px;cursor:pointer;appearance:auto}.secret-group{border:1px solid #26384b;background:#0d1a2a7e;border-radius:11px;padding:17px;margin-top:14px}.secret-group input:not([type=checkbox]){margin-bottom:8px}.saved-indicator{color:#63cfb5;font-size:9px;display:inline-block;font-weight:520;margin-left:5px}.helper{color:#68859d;font-size:10px;line-height:1.65;margin:10px 0 0}.helper code{color:#b3c8e0}.checkline{display:flex;align-items:center;gap:9px;font-size:10px;color:#8ca2b8;margin:9px 0;cursor:pointer}.checkline input{accent-color:#44d5bd}.check-stack{display:flex;gap:13px;flex-wrap:wrap}.settings-form>.btn{margin-top:24px}.settings-side{display:flex;flex-direction:column;gap:18px}.settings-side .panel{padding:22px 23px}.settings-side h2{margin-top:10px}.cron-panel p{margin-bottom:18px}.code-label{display:flex;justify-content:space-between;align-items:center;color:#91a6ba;font-size:9px;font-weight:700;letter-spacing:.11em;margin:18px 0 6px}.copy-btn{border:0;background:transparent;color:var(--teal);font-size:11px;cursor:pointer}.code-box{margin:0;border:1px solid #2b4554;border-radius:8px;background:#081522;overflow:auto;padding:13px;color:#72ecd1;font-size:10px;font-weight:610;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.cron-guide{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.cron-guide>div{font-size:10px;color:#a9bece;padding:4px 0}.cron-guide i{color:var(--teal);margin-right:9px}.security-panel form{margin-top:15px}.security-panel form label{margin-bottom:13px}.security-panel form .btn{margin-top:5px}.note-panel{display:flex;align-items:flex-start;gap:13px}.note-panel>i{color:#75c6f3;font-size:17px}.note-panel b{font-size:11px}.note-panel p{margin:6px 0 0}#oauth-settings,#json-settings,#widget-settings{display:none}
/* Install and login */
.setup-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:35px 18px}.aurora{position:fixed;pointer-events:none;inset:0;z-index:-1;background:radial-gradient(ellipse 45% 45% at 30% 20%,#1c6c6366,transparent),radial-gradient(ellipse 35% 55% at 90% 80%,#48357355,transparent);filter:blur(25px);animation:aurora 18s ease-in-out infinite alternate}.setup-shell{width:min(690px,100%)}.login-shell{width:min(440px,100%)}.setup-brand{justify-content:center;margin:0 0 24px;padding:0}.setup-panel,.login-panel{padding:34px 38px}.setup-panel h1,.login-panel h1{margin-top:20px;margin-bottom:8px;font-size:30px}.lead{font-size:12px;line-height:1.8;margin-bottom:24px}.check-row{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 20px}.check{border:1px solid #294c49;border-radius:7px;color:#8fe5ce;background:#1b3d39;font-size:9px;padding:5px 7px}.check.fail{border-color:#8b4759;background:#402732;color:#ffc1c9}.check i{margin-right:5px}.setup-form .form-title{font-size:11px;margin:22px 0 15px}.form-title i{color:var(--teal);margin-right:9px}.full-btn{width:100%;margin-top:24px;min-height:44px}.login-panel form label{margin-top:17px}.login-panel form .full-btn{margin-top:25px}.setup-footer{text-align:center;font-size:10px;color:#647d94;padding:22px}.setup-panel>.small{margin:15px 0 0}
@keyframes aurora{from{transform:rotate(-3deg) scale(1)}to{transform:rotate(4deg) scale(1.15)}}@keyframes pulse{0%,100%{box-shadow:0 0 0 4px #43e0c21b,0 0 13px #43e0c24c}50%{box-shadow:0 0 0 7px #43e0c208,0 0 22px #43e0c28c}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1250px){.sidebar{width:220px;min-width:220px}.topbar{padding:0 25px}.content{padding:32px 25px}.main-grid{grid-template-columns:minmax(0,1.3fr) minmax(310px,1fr)}.kpi{padding:17px}.kpi-value{font-size:27px}.kpi-top{font-size:8.5px}.below-grid{grid-template-columns:1fr 1fr}.settings-layout{grid-template-columns:1.1fr 0.9fr}}@media(max-width:1050px){.sidebar{position:fixed;left:0;transform:translateX(-101%);transition:transform .22s;box-shadow:15px 0 45px #0007}.sidebar.open{transform:translateX(0)}.mobile-menu{display:grid}.main-column{width:100%}.kpi-grid{grid-template-columns:repeat(2,1fr)}.main-grid,.below-grid{grid-template-columns:1fr}.main-grid{gap:16px}.chart-panel{min-height:310px}.settings-layout{grid-template-columns:1fr 1fr}}@media(max-width:720px){.topbar{height:64px;padding:0 16px}.topbar-left{gap:9px}.topbar-left .top-divider,.top-property{display:none}.location-label{font-size:9px}.topbar-right{gap:5px}.server-time{font-size:10px}.content{padding:25px 15px}.page-heading{display:block;margin-bottom:24px}.heading-actions{margin-top:18px}h1{font-size:27px}.subheading{line-height:1.7}.kpi-grid{gap:9px}.kpi{min-height:133px;padding:16px 13px}.kpi-top{font-size:8px;line-height:1.5}.kpi-icon{width:27px;height:27px;font-size:12px}.kpi-value{font-size:24px;margin:15px 0 7px}.kpi-caption{font-size:9px}.panel-header{padding:18px 17px 0}.panel-header h2{font-size:15px}.seg-buttons button{padding:6px}.main-grid{grid-template-columns:1fr}.landscape-wrap{height:235px}.below-grid{grid-template-columns:minmax(0,1fr)}.calendar-weekdays,.calendar-grid{margin:0 12px;gap:3px}.calendar-day{height:48px}.calendar-day strong{font-size:11px}.calendar-day small{font-size:8px}.calendar-key{padding:13px;font-size:9px;gap:9px;flex-wrap:wrap}.activity-feed{padding:0 17px 14px}.calendar-panel{min-height:0;padding-bottom:7px}.calendar-controls b{min-width:100px;font-size:10px}.analysis-grid,.settings-layout{grid-template-columns:1fr}.history-panels td:last-child{min-width:180px}.status-bar{gap:19px;padding:17px}.status-meta{flex:1}.export-panel{align-items:flex-start;flex-direction:column}.content-footer{font-size:8px;flex-direction:column;gap:5px}.settings-form{padding:0 17px}.settings-side .panel{padding:18px}.form-grid{gap:12px}.setup-panel,.login-panel{padding:24px 21px}.setup-panel .form-grid{grid-template-columns:1fr}.setup-panel h1{font-size:26px}}@media(max-width:400px){.kpi-grid{grid-template-columns:1fr 1fr}.kpi-value{font-size:21px}.main-grid,.below-grid{min-width:0}.panel-header{flex-wrap:wrap}.history-selector{margin:12px 15px}.history-current{padding:0 15px}.footnote{padding:0 15px}.chart-legend{padding:0 15px 14px}}

/* Manual captured-JSON import (no extra JS files in ZIP) */
.capture-import{padding-top:8px;border-top:1px solid #26384b;margin-top:26px}
.capture-import-form{display:flex;flex-direction:column;gap:15px;margin-top:15px}
.capture-import-form textarea{display:block;min-height:118px;resize:vertical;width:100%;margin-top:8px;padding:12px 13px;background:#0d1727;color:#e7f2ff;border:1px solid #2b3b50;border-radius:9px;font-size:11px;line-height:1.6;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.capture-import-form textarea:focus{outline:0;border-color:#49aa9e;box-shadow:0 0 0 3px #49aa9e22}
.capture-import-form .btn{align-self:flex-start}
.table-pill.imported{background:#25334d;color:#aebffc}

/* v1.05: keep grid children from shrinking beyond their content and breaking layout */
.settings-layout > .settings-panel,.settings-layout > .settings-side{min-width:0}
.settings-layout .settings-form,.settings-layout .form-grid,.settings-layout label{min-width:0}
.settings-side .code-box{max-width:100%}

/* v1.09 · safe upstream-error diagnostics */
.auth-diagnostic{padding-top:26px;border-top:1px solid #273a4e;margin-top:24px}
.auth-diagnostic .settings-group-title i{color:#5be1c9;margin-right:9px}
.diagnostic-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:17px}
.diagnostic-small{font-size:10px;color:#7f9bb0;line-height:1.5}
.diagnostic-report{margin-top:22px;background:#0a1626;border:1px solid #2b4251;border-radius:13px;overflow:hidden}
.diagnostic-report-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 17px 10px;flex-wrap:wrap}
.diagnostic-report-header strong{font-size:11px;display:block;margin-top:6px;letter-spacing:.01em}
.diagnostic-eyebrow{color:#80a4ab;font-size:9px;font-weight:800;letter-spacing:.12em}
.diagnostic-pill{display:inline-flex;align-items:center;gap:7px;font-size:10px;border-radius:100px;border:1px solid #6f5059;background:#38232b;color:#ffb4bc;padding:7px 11px;font-weight:700}
.diagnostic-pill.passed{color:#85f2d5;background:#153b35;border-color:#2f7166}
.diagnostic-summary{padding:0 17px 15px;font-size:11px;line-height:1.6;color:#bac9d7;margin:0}
.probe-list{border-top:1px solid #2b3e51}
.probe-row{display:flex;align-items:flex-start;gap:11px;padding:12px 15px;border-bottom:1px solid #23364a;min-width:0}
.probe-row:last-child{border-bottom:0}
.probe-indicator{flex:none;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#26364b;color:#899cb1;font-size:10px;margin-top:1px}
.probe-indicator.pass{background:#163e37;color:#6aedd1}
.probe-indicator.fail{background:#522b37;color:#ffc1c9}
.probe-indicator.warn{background:#4d3e29;color:#ffd186}
.probe-info{flex:1;min-width:0}.probe-title{font-size:11px;font-weight:690;color:#e6f0fb;margin-bottom:4px;line-height:1.4}
.probe-detail{font-size:10px;line-height:1.55;color:#9fb2c5;overflow-wrap:anywhere}
.probe-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:66px;flex:none;font-family:ui-monospace,Consolas,monospace;font-size:9px;color:#7fa6b9}
.diagnostic-foot{padding:13px 15px;background:#122134;display:flex;gap:8px;font-size:9.5px;line-height:1.6;color:#96aec0}
.diagnostic-foot i{color:#5cd8c5;margin-top:2px}
.diagnostic-empty{padding:15px 0;color:#7f97ab;font-size:10.5px;line-height:1.6}
.diagnostic-empty i{color:#5ed3c3;margin-right:8px}
@media(max-width:600px){.probe-row{padding:11px 10px;gap:8px}.probe-meta{min-width:50px}.diagnostic-report-header{padding:14px 11px 10px}.diagnostic-summary{padding:0 11px 12px}.diagnostic-form .btn{white-space:normal;min-height:42px}}

.diagnostic-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.diagnostic-header-actions .btn{font-size:9px;padding:0 10px;min-height:31px}
/* v1.10 Browser worker onboarding */
.browser-worker-panel {background:linear-gradient(130deg,rgba(42,125,139,.1),rgba(23,30,52,.05));border:1px solid rgba(92,207,187,.22);border-radius:16px;margin-top:20px;padding:28px;}
.browser-worker-panel form {display:inline-flex; margin:8px 12px 12px 0;}
.browser-worker-panel .helper {max-width:82ch;line-height:1.7;}
@media(max-width:600px){.browser-worker-panel{padding:18px}.browser-worker-panel form {display:flex;width:100%;}.browser-worker-panel .btn{width:100%;justify-content:center;}}

/* v1.14 public sharing + clickable insight links */
.insight-link{width:100%;text-decoration:none;color:inherit;background:transparent;border:0;cursor:pointer;text-align:left}
.insight-link:hover,.date-link:hover{text-decoration:none}
.insight-link:hover .insight-data b,.date-link:hover{color:var(--teal)}
.date-link{background:none;border:0;padding:0;color:#d8e5f2;font:inherit;font-weight:620;cursor:pointer;text-decoration:none}
.share-panel .code-box{white-space:pre-wrap;word-break:break-all}
.public-shell .sidebar-profile{align-items:center}

/* v1.15 clickable dates use colour and focus outlines, never underlines. */
.date-link,.date-link:visited,.date-link:hover,.date-link:focus-visible,
.insight-link,.insight-link:visited,.insight-link:hover,.insight-link:focus-visible {text-decoration:none}
.date-link:focus-visible,.insight-link:focus-visible {outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}

/* v1.17 - Align the public dashboard's two 2-column panel rows, and
   separate the full-width Stay-date analysis table from the row above. */
.public-shell .below-grid { margin-bottom:18px; }
@media (min-width:1051px) {
  .public-shell .below-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* v1.18: separate UK clock from booking CTA on narrow public headers. */
@media (max-width:720px) {
  .public-shell .topbar-right { gap:16px; }
  .public-shell .server-time { gap:7px; white-space:nowrap; flex-shrink:0; }
  .public-shell .topbar-right .btn { flex-shrink:0; }
}
@media (max-width:350px) {
  .public-shell .topbar-right { gap:10px; }
}


/* v1.19 — Public dashboard: align the panels into two consistently sized columns.
   Cheapest + Rate calendar on the left; Latest movements + Most volatile dates
   on the right. Volatility now immediately follows movements with an 18px gap. */
.public-shell .public-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:18px;
  margin-bottom:18px;
}
.public-shell .public-detail-column {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:18px;
}
.public-shell .public-detail-column > .panel {min-width:0;width:100%;}
@media (max-width:1050px) {
  .public-shell .public-detail-grid {grid-template-columns:minmax(0,1fr);}
}


/* v1.20 — Admin overview now has the same price modules as public. */
.rate-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:18px;
  margin-bottom:18px;
}
.rate-detail-column {display:flex;flex-direction:column;min-width:0;gap:18px;}
.rate-detail-column > .panel {width:100%;min-width:0;}
@media (max-width:1050px) {.rate-detail-grid {grid-template-columns:minmax(0,1fr);}}

/* Filter buttons and record count in both public and private Stay-date analysis. */
.rate-analysis-panel {min-width:0;margin-bottom:18px;}
.rate-analysis-panel .panel-header {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.analysis-controls {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;}
.analysis-toggle {display:inline-flex;flex-shrink:0;}
.analysis-toggle button {white-space:nowrap;}
.analysis-count {color:var(--muted);font-size:10px;white-space:nowrap;}
.rate-analysis-table {width:100%;}
.rate-analysis-table td {white-space:nowrap;}

/* At phone widths, show each date as a compact card instead of a horizontally-scrolling six-column table. */
@media (max-width:720px) {
  .rate-analysis-panel {overflow:hidden;}
  .rate-analysis-panel .panel-header {gap:12px;}
  .analysis-controls {width:100%;justify-content:space-between;gap:9px;}
  .rate-analysis-scroll {overflow-x:hidden;overflow-y:visible;padding:0 12px 14px;}
  .rate-analysis-table,.rate-analysis-table tbody {display:block;width:100%;min-width:0;}
  .rate-analysis-table thead {display:none;}
  .rate-analysis-table tr:not(.analysis-empty-row) {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 5px;
    margin:8px 0 12px;padding:14px 12px;
    background:rgba(17,31,51,.75);border:1px solid var(--line);border-radius:12px;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td {
    display:block;min-width:0;margin:0;padding:0;border:0;
    font-size:11px;line-height:1.3;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:first-child {
    grid-column:1/-1;padding-bottom:9px;margin-bottom:1px;
    border-bottom:1px solid var(--line);font-size:13px;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:first-child::before {display:none;}
  .rate-analysis-table tr:not(.analysis-empty-row) td::before {
    content:attr(data-label);display:block;margin-bottom:4px;
    color:var(--muted);font-size:9px;line-height:1.1;font-weight:650;
    letter-spacing:.065em;text-transform:uppercase;
  }
  .rate-analysis-table .analysis-empty-row {display:block;}
  .rate-analysis-table .analysis-empty-row td {display:block;border:0;padding:25px 10px;white-space:normal;text-align:center;}
}
@media (max-width:360px) {
  .rate-analysis-scroll {padding-left:8px;padding-right:8px;}
  .rate-analysis-table tr:not(.analysis-empty-row) {padding:11px 9px;gap:10px 3px;}
  .rate-analysis-table tr:not(.analysis-empty-row) td {font-size:10px;}
  .analysis-count {font-size:9px;}
}

/* Mobile collector summary: last check and last result share a row, with
   their labels and values aligned to the same top edge on both dashboards. */
@media (max-width:720px) {
  .status-bar {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px 16px;
    align-items:start;
  }
  .status-bar > .status-card {
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    margin:0;
  }
  .status-bar > .status-meta {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    align-self:start;
    min-width:0;
    width:100%;
    margin:0;
  }
  .status-bar > .status-meta small {
    line-height:1.2;
    min-height:1.2em;
  }
  .status-bar > .status-meta strong {
    margin-top:7px;
    line-height:1.45;
    overflow-wrap:anywhere;
  }
  .status-bar > .btn {
    grid-column:1 / -1;
    justify-self:start;
  }
}


/* v1.21 — Inline historical range next to Current, with Revisions as the
   fourth field on the same row on mobile. Applies to admin and public. */
.rate-analysis-table .analysis-inline-range {
  display:inline;
  margin-left:3px;
  color:#f79cb2;
  font-size:0.9em;
  font-weight:700;
  white-space:nowrap;
}
.rate-analysis-table .analysis-current-price {white-space:nowrap;}
@media (max-width:720px) {
  .rate-analysis-table tr:not(.analysis-empty-row) {
    grid-template-columns:minmax(0,1.7fr) minmax(0,.87fr) minmax(0,.87fr) minmax(0,.47fr);
    gap:8px 5px;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:nth-child(2) {
    white-space:normal;
    text-overflow:clip;
    overflow:visible;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:nth-child(2) .analysis-inline-range {
    display:inline-block;
    margin-left:2px;
    font-size:9px;
    vertical-align:baseline;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:nth-child(5) {
    text-align:right;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:nth-child(5)::before {
    content:"REVS";
    letter-spacing:0;
    font-size:8px;
  }
}
@media (max-width:360px) {
  .rate-analysis-table tr:not(.analysis-empty-row) {
    grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,.5fr);
    gap:7px 3px;
  }
  .rate-analysis-table tr:not(.analysis-empty-row) td:nth-child(2) .analysis-inline-range {
    font-size:8px;
  }
}
