*{box-sizing:border-box}body{margin:0;background:#f3ecd9;color:#66615c;font-family:Arial,Helvetica,sans-serif}.wrap{max-width:940px;margin:0 auto;padding:26px 22px 70px}.top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}h1{font-size:42px;font-weight:300;margin:0 0 8px}.sub{color:#7a746c}.global{font-size:14px;color:#63c21b;margin-top:12px}.global.bad{color:#d64545}.led{display:inline-block;width:12px;height:12px;border-radius:50%;background:#7bdc35;margin-right:8px;vertical-align:-1px}.bad .led{background:#d64545}.group{background:#fff;border:1px solid #dedbd2;margin:0 0 24px;box-shadow:0 1px 2px #00000010}.group-title{height:42px;background:#f1efe2;border-bottom:1px solid #e3e0d5;display:flex;align-items:center;padding:0 14px;font-size:16px}.group-title b{margin-left:4px}.dot{width:12px;height:12px;border-radius:50%;margin-left:auto;background:#7bdc35}.dot.down{background:#d64545}.row{display:grid;grid-template-columns:1fr 150px;min-height:53px;align-items:center;padding:0 14px;border-bottom:1px solid #e8e8e8;background:#fff}.row:last-child{border-bottom:0}.state{text-align:right;font-size:13px;color:#54bf15}.state.down{color:#d64545}.state.unknown{color:#999}.inc-title{font-size:38px;font-weight:300;margin:42px 0 18px}.day{font-size:18px;margin:28px 0 36px}.timeline{position:relative;margin:12px 0 0 34px;border-left:2px solid #6b655d;min-height:72px;padding:6px 0 6px 38px}.mark{position:absolute;left:-18px;top:20px;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #e8e4d7;text-align:center;line-height:32px;color:#79d72d;font-weight:bold}.card{background:#fffef8;border:1px solid #e2ded0;margin-bottom:14px;position:relative}.card:before{content:'';position:absolute;left:-14px;top:18px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:14px solid #fffef8}.card-head{padding:12px 16px;border-bottom:1px solid #e7e2d4;font-size:14px}.card-head b{font-size:16px}.badge{display:inline-block;margin-left:6px;padding:4px 8px;border-radius:999px;background:#111;color:#fff;font-size:12px}.ago{display:inline-block;color:#69c80c;font-size:12px;text-decoration:underline;margin-top:8px}.msg{padding:16px;font-size:18px;line-height:1.55}.empty{background:#fffef8;border:1px solid #e2ded0;padding:16px;margin-left:0}.admin-body{background:#f7f8fb;color:#1d2939}.admin-wrap{max-width:1160px;margin:0 auto;padding:24px}.nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel{background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:18px;margin:16px 0;box-shadow:0 6px 24px #1018280d}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}input,select,textarea,button{font:inherit;padding:11px 12px;border:1px solid #d0d5dd;border-radius:8px}button{cursor:pointer}.primary{background:#155eef;color:#fff;border:0}table{width:100%;border-collapse:collapse;margin-top:12px}td,th{text-align:left;padding:11px;border-bottom:1px solid #eaecf0}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#dcfae6;color:#067647;font-size:12px;font-weight:800}.pill.down{background:#fee4e2;color:#b42318}.login{max-width:380px;margin:100px auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 10px 30px #0001}.login input,.login button{width:100%;margin:8px 0}.err{color:#b42318}
.svc-link{color:inherit;text-decoration:none}.svc-link:hover{text-decoration:underline}.panel-like{background:#fffef8;border:1px solid #e2ded0;padding:18px;margin:16px 0}.service-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.service-status{font-size:28px;font-weight:300;color:#54bf15}.service-status.down{color:#d64545}.service-status.unknown{color:#999}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0}.stats div{background:#fffef8;border:1px solid #e2ded0;padding:16px}.stats b{display:block;font-size:28px;font-weight:300;color:#59544f}.stats span{font-size:13px;color:#777}.uptime-bars{display:flex;gap:3px;align-items:end;height:90px;margin-top:14px}.bar{flex:1;min-width:3px;height:70px;border-radius:3px;background:#d7d2c4}.bar.up{background:#69c80c}.bar.down{background:#d64545}.bar.mixed{background:#e9b949}.bar.empty{background:#ddd8c8;height:40px}.chart-labels{display:flex;justify-content:space-between;font-size:12px;color:#777;margin-top:8px}.mini-inc{border-top:1px solid #e7e2d4;padding:10px 0}.mini-inc span{color:#777;font-size:13px}

/* FIX: uptime chart must stay inside card on public and admin pages */
.uptime-bars{
  width:100%;
  max-width:100%;
  display:grid;
  grid-template-columns:repeat(48,minmax(0,1fr));
  gap:3px;
  align-items:end;
  overflow:hidden;
}
.bar{
  display:block;
  width:100%;
  min-width:0;
}
.panel-like{
  overflow:hidden;
}
.admin-body .panel,
.pro-admin-body .panel,
.monitor-form,
.form-field,
.checkline{
  overflow:visible;
}
@media (max-width:700px){
  .uptime-bars{gap:2px;height:70px}
  .bar{height:52px}
  .bar.empty{height:30px}
}
.notice{background:#ecfdf3;border:1px solid #abefc6;color:#067647;padding:12px 14px;border-radius:10px;margin:0 0 16px}.hint{color:#667085;font-size:13px}.test-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.test-actions form{margin:0}.incident-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.incident-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;line-height:1}.incident-status.small{font-size:11px;padding:4px 8px}.incident-status.status-investigating{background:#fee4e2;color:#b42318}.incident-status.status-working{background:#fef0c7;color:#b54708}.incident-status.status-resolved{background:#dcfae6;color:#067647}.incident-status.status-update{background:#e0f2fe;color:#026aa2}.timeline.status-investigating .mark{color:#b42318;border-color:#fecdca}.timeline.status-working .mark{color:#b54708;border-color:#fedf89}.timeline.status-resolved .mark{color:#067647;border-color:#abefc6}.timeline.status-investigating{border-left-color:#f04438}.timeline.status-working{border-left-color:#f79009}.timeline.status-resolved{border-left-color:#12b76a}.msg .incident-status{margin-bottom:7px}
@media (max-width:700px){.service-head{display:block}.row{grid-template-columns:1fr 105px}.admin-wrap{padding:14px}table{display:block;overflow-x:auto}.msg{font-size:15px}.inc-title{font-size:30px}.top h1,h1{font-size:34px}}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions form{margin:0}.btn-small,.small{display:inline-block;padding:7px 10px;border-radius:8px;border:1px solid #d0d5dd;background:#fff;color:#1d2939;text-decoration:none;font-size:13px}.danger{background:#fee4e2;color:#b42318;border-color:#fecdca}.site-logo{max-height:72px;max-width:320px;display:block;margin-bottom:8px}.admin-logo-preview{max-height:80px;max-width:260px;background:#f5f5f5;border:1px solid #e4e7ec;border-radius:8px;padding:8px}.favicon-preview{width:48px;height:48px;object-fit:contain;background:#f5f5f5;border:1px solid #e4e7ec;border-radius:8px;padding:6px}.preview-files{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap;margin:12px 0;color:#667085;font-size:13px}

.toast{position:fixed;right:20px;top:20px;z-index:9999;max-width:420px;padding:13px 16px;border-radius:12px;box-shadow:0 14px 40px #10182826;transform:translateY(-16px);opacity:0;pointer-events:none;transition:.22s ease;font-weight:700}.toast.show{transform:translateY(0);opacity:1}.toast.ok{background:#dcfae6;color:#067647;border:1px solid #abefc6}.toast.error{background:#fee4e2;color:#b42318;border:1px solid #fecdca}button[disabled]{opacity:.65;cursor:wait}
.inline-edit{display:grid;grid-template-columns:minmax(180px,1fr) 110px;gap:8px;align-items:center}.inline-edit input{width:100%}.save-group{background:#eef4ff;border:1px solid #b2ccff;color:#175cd3}

/* PRO admin layout */
.pro-admin-body{background:#f5f8fc;color:#0f172a;min-height:100vh;padding-left:174px}.admin-sidebar{position:fixed;left:0;top:0;bottom:0;width:174px;background:#fff;border-right:1px solid #dbe3ef;padding:0 10px 14px;z-index:50}.admin-brand{height:58px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #e6edf6;margin:0 -10px 10px;padding:8px 10px}.admin-brand img{max-width:142px;max-height:44px;object-fit:contain}.brand-mark{width:36px;height:36px;border-radius:12px;background:#155eef;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.brand-text{font-weight:900;color:#111827;line-height:1.1}.side-menu{display:flex;flex-direction:column;gap:7px}.side-menu a{display:flex;align-items:center;min-height:38px;padding:0 10px;border-radius:12px;color:#344054;text-decoration:none;font-weight:700;font-size:13px}.side-menu a:hover{background:#f2f6fc}.side-menu a.active{background:#0f172a;color:#fff}.side-menu .logout-link{margin-top:12px;border:1px solid #dbe3ef;background:#f8fafc;color:#111827}.admin-main{max-width:none;margin:0;padding:0 18px 26px}.admin-topbar{height:58px;margin:0 -18px 18px;padding:0 18px;border-bottom:1px solid #dbe3ef;background:#f8fbff;display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-topbar h1{font-size:20px;font-weight:900;margin:0;color:#111827}.admin-topbar p{margin:3px 0 0;color:#53627a;font-size:13px}.top-actions{display:flex;align-items:center;gap:10px}.chip{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border:1px solid #dbe3ef;background:#fff;border-radius:999px;color:#53627a;font-size:12px}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;margin-bottom:14px}.dash-card{background:#fff;border:1px solid #dbe3ef;border-radius:16px;padding:16px;box-shadow:0 10px 24px #1018280a}.dash-card span{display:block;color:#53627a;font-size:12px;margin-bottom:7px}.dash-card b{display:block;font-size:24px;line-height:1;color:#020617}.dash-card small{display:block;margin-top:7px;color:#53627a}.admin-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,0.78fr);gap:14px}.pro-admin-body .panel{border-color:#dbe3ef;border-radius:18px;box-shadow:0 10px 24px #1018280a;margin:14px 0}.pro-admin-body .panel h2{font-size:16px;margin:0 0 4px;color:#0f172a}.panel-sub{font-size:12px;color:#53627a;margin:0 0 14px}.quick-panel .grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.system-panel .system-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px dashed #dbe3ef;padding:10px 0;font-size:13px}.system-panel .system-row:last-child{border-bottom:0}.system-row span{color:#53627a}.system-row b{color:#020617;text-align:right}.pro-admin-body input,.pro-admin-body select,.pro-admin-body textarea{border-color:#dbe3ef;background:#fff}.pro-admin-body input:focus,.pro-admin-body select:focus,.pro-admin-body textarea:focus{outline:2px solid #dbeafe;border-color:#93c5fd}.pro-admin-body .primary{background:#0f172a;border-radius:10px;font-weight:800}.checkline{display:flex;gap:8px;align-items:center;background:#f8fafc;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px}.checkline input{width:auto;padding:0}.pro-admin-body table{font-size:13px}.pro-admin-body th{color:#53627a;font-weight:800;background:#f8fafc}.pro-admin-body td,.pro-admin-body th{border-bottom:1px solid #edf2f7}.pro-admin-body .btn-small,.pro-admin-body .small{border-radius:10px}.pro-admin-body .notice{border-radius:14px;margin:0 0 14px}.pro-admin-body .toast{top:14px;right:18px}.pro-admin-body h3{font-size:14px;margin:18px 0 9px;color:#0f172a}
@media(max-width:980px){.pro-admin-body{padding-left:0}.admin-sidebar{position:relative;width:auto;height:auto;display:block;border-right:0;border-bottom:1px solid #dbe3ef}.admin-brand{justify-content:center}.side-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-main{padding:0 12px 20px}.admin-topbar{margin:0 -12px 14px;height:auto;min-height:64px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-two-col{grid-template-columns:1fr}.quick-panel .grid{grid-template-columns:1fr}}
@media(max-width:620px){.dashboard-grid{grid-template-columns:1fr}.side-menu{grid-template-columns:1fr}.admin-topbar{display:block;padding-top:12px;padding-bottom:12px}.top-actions{margin-top:10px;flex-wrap:wrap}.quick-panel .grid,.grid{grid-template-columns:1fr}.inline-edit{grid-template-columns:1fr}}
/* Settings page v2 */
.settings-panel{padding:16px}.settings-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.settings-tabs{display:flex;gap:0;border-bottom:1px solid #dbe3ef;margin:12px 0 18px;overflow-x:auto}.settings-tabs button{display:inline-flex;min-height:32px;align-items:center;padding:0 13px;border:1px solid #dbe3ef;border-bottom:0;background:#f8fbff;color:#344054;text-decoration:none;font-size:13px;font-weight:800;border-radius:10px 10px 0 0;margin-right:4px;white-space:nowrap;cursor:pointer}.settings-tabs button:hover{background:#eef4ff}.settings-tabs button.active{background:#fff;color:#020617;border-color:#cbd5e1;box-shadow:0 -1px 0 #fff inset}.settings-section{padding:16px 0;border-bottom:1px solid #edf2f7;scroll-margin-top:70px}.settings-section:last-of-type{border-bottom:0}.settings-section-title h3{font-size:16px;margin:0;color:#020617}.settings-section-title p{font-size:12px;color:#53627a;margin:4px 0 14px}.settings-two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.75fr);gap:16px;align-items:start}.form-stack{display:grid;gap:10px}.form-stack label{font-size:12px;color:#53627a;margin-bottom:-4px}.info-card{background:#f8fbff;border:1px solid #dbe3ef;border-radius:16px;padding:14px;min-height:110px}.info-card span{display:block;color:#53627a;font-size:12px;margin-bottom:6px}.info-card b{display:block;font-size:26px;margin-bottom:4px;color:#020617}.info-card strong{display:block;font-size:13px;color:#53627a;margin-bottom:6px}.info-card p{font-size:12px;color:#53627a;line-height:1.4}.settings-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.secondary{background:#f8fafc;color:#0f172a;border:1px solid #dbe3ef;border-radius:10px;font-weight:800}.filebox{display:flex;flex-direction:column;gap:7px;background:#f8fafc;border:1px solid #dbe3ef;border-radius:12px;padding:10px;font-size:13px;color:#53627a}.settings-savebar{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%);padding-top:18px;margin-top:4px}.preview-files{display:flex;gap:16px;align-items:center;margin-top:12px;color:#53627a;font-size:12px}.admin-logo-preview{max-height:52px;max-width:180px}.favicon-preview{width:32px;height:32px;object-fit:contain}@media(max-width:900px){.settings-two{grid-template-columns:1fr}.settings-head{display:block}.settings-tabs{padding-bottom:4px}.info-card b{font-size:22px}}

.panel-section{display:none}.panel-section:first-of-type{display:block}.panel-section table{margin-top:14px}.actions{white-space:nowrap}


/* Labeled monitor forms */
.form-field{display:flex;flex-direction:column;gap:5px;min-width:0}.form-field input,.form-field select,.form-field textarea{width:100%;min-width:0}.field-label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#344054;line-height:1.2}.monitor-form .primary{min-height:46px;align-self:end}.monitor-form input[type="hidden"]{display:none}.checkline{display:flex;gap:8px;align-items:center;background:#f8fafc;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px}.checkline span{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#344054;line-height:1.3}.checkline input{width:auto;padding:0}.tip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;border:1px solid #cbd5e1;background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);color:#155eef;font-size:11px;font-weight:800;font-style:italic;cursor:help;flex:0 0 18px;box-shadow:0 1px 2px rgba(16,24,40,.08);z-index:30}.tip::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);min-width:200px;max-width:280px;padding:9px 10px;border-radius:10px;background:#111827;color:#fff;font-size:11px;line-height:1.35;font-weight:400;box-shadow:0 12px 28px rgba(16,24,40,.2);opacity:0;pointer-events:none;transition:.16s ease;z-index:31;text-align:left;white-space:normal}.tip::before{content:'';position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #111827;opacity:0;pointer-events:none;transition:.16s ease;z-index:32}.tip:hover::after,.tip:hover::before,.tip:focus::after,.tip:focus::before{opacity:1}.admin-body .field-label{font-size:12px;font-weight:800;color:#344054}.admin-body .checkline span{font-size:13px;font-weight:700;color:#344054}


/* Admin font size controls */
.admin-body{--admin-font-scale:1;font-size:calc(14px * var(--admin-font-scale))}.font-controls{display:inline-flex;align-items:center;height:34px;border:1px solid #dbe3ef;background:#fff;border-radius:999px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.04)}.font-controls button{height:32px;min-width:38px;padding:0 10px;border:0;border-right:1px solid #e6edf6;border-radius:0;background:#fff;color:#344054;font-weight:900;font-size:calc(12px * var(--admin-font-scale));line-height:1;cursor:pointer}.font-controls button:last-child{border-right:0}.font-controls button:hover{background:#eef4ff;color:#155eef}.font-value{min-width:54px;color:#53627a!important;font-weight:800!important}.pro-admin-body .admin-topbar h1{font-size:calc(20px * var(--admin-font-scale))}.pro-admin-body .admin-topbar p,.panel-sub,.chip,.side-menu a,.dash-card span,.dash-card small,.system-panel .system-row,.pro-admin-body table,.btn-small,.small,.hint,.notice{font-size:calc(13px * var(--admin-font-scale))}.pro-admin-body input,.pro-admin-body select,.pro-admin-body textarea,.pro-admin-body button{font-size:calc(14px * var(--admin-font-scale))}.pro-admin-body .panel h2,.settings-section-title h3{font-size:calc(16px * var(--admin-font-scale))}.pro-admin-body h3{font-size:calc(14px * var(--admin-font-scale))}.dash-card b{font-size:calc(24px * var(--admin-font-scale))}.field-label,.admin-body .field-label{font-size:calc(12px * var(--admin-font-scale))}.checkline span,.admin-body .checkline span{font-size:calc(13px * var(--admin-font-scale))}.tip{font-size:calc(11px * var(--admin-font-scale))}.tip::after{font-size:calc(11px * var(--admin-font-scale))}.admin-body:not(.pro-admin-body){font-size:calc(14px * var(--admin-font-scale))}.admin-body:not(.pro-admin-body) h1{font-size:calc(34px * var(--admin-font-scale))}.admin-body:not(.pro-admin-body) input,.admin-body:not(.pro-admin-body) select,.admin-body:not(.pro-admin-body) button{font-size:calc(14px * var(--admin-font-scale))}@media(max-width:620px){.font-controls{width:100%;max-width:210px}.font-controls button{flex:1}}
