:root {
  color-scheme: light;
  --ink: #102035;
  --muted: #68758a;
  --line: #e3e9f1;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --nav: #0c1525;
  --nav-muted: #9ba8ba;
  --primary: #2864dc;
  --primary-dark: #1e4fb5;
  --good: #11835b;
  --good-soft: #e8f7f1;
  --danger: #c43c4e;
  --danger-soft: #fff0f2;
  --warning: #aa6c0b;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
:focus-visible { outline: 3px solid #76a7ff; outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: white; color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 .5rem; color: #718096; font-weight: 750; font-size: .72rem; letter-spacing: .13em; }
.button { min-height: 42px; padding: .7rem 1.05rem; border-radius: 10px; border: 1px solid transparent; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 8px 24px rgba(40, 100, 220, .18); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.button-wide { width: 100%; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: inherit; font-size: 1.2rem; }
.icon-button:hover { background: rgba(128, 145, 168, .14); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 520px) 1fr; background: var(--nav); }
.login-card { background: #f9fbfd; padding: clamp(2rem, 7vw, 6.5rem); display: flex; flex-direction: column; justify-content: center; }
.login-card h1 { margin: 0 0 1.2rem; max-width: 470px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.login-copy { margin: 0 0 2rem; max-width: 430px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.security-note { color: #7d8998; font-size: .78rem; line-height: 1.5; text-align: center; }
.form-message { min-height: 1.4rem; color: var(--danger); font-size: .87rem; }
.brand-mark { width: 50px; height: 50px; display: flex; align-items: flex-end; gap: 4px; margin-bottom: 2rem; }
.brand-mark span { display: block; width: 10px; border-radius: 5px; background: var(--primary); }
.brand-mark span:nth-child(1) { height: 21px; opacity: .55; }.brand-mark span:nth-child(2) { height: 36px; opacity: .78; }.brand-mark span:nth-child(3) { height: 48px; }
.brand-mark-small { width: 27px; height: 28px; margin: 0; gap: 3px; }.brand-mark-small span { width: 6px; }.brand-mark-small span:nth-child(1) { height: 12px; }.brand-mark-small span:nth-child(2) { height: 20px; }.brand-mark-small span:nth-child(3) { height: 27px; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(circle at 68% 28%, #234a85 0, transparent 28%), radial-gradient(circle at 25% 78%, #17385c 0, transparent 35%), #0c1525; }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent); }
.signal-card { position: absolute; border: 1px solid rgba(255,255,255,.13); background: rgba(13, 29, 51, .82); color: white; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.35); backdrop-filter: blur(15px); }
.signal-card-main { left: 12%; right: 10%; top: 33%; padding: 2rem; }
.signal-heading, .signal-metrics { display: flex; justify-content: space-between; align-items: center; color: #9fb1c8; }.signal-heading strong { color: #54d6a1; }
.signal-line { height: 105px; margin: 1.7rem 0; display: flex; align-items: end; gap: 7px; }.signal-line i { flex: 1; height: 72%; border-radius: 5px 5px 2px 2px; background: linear-gradient(#46b98c, #23765a); }.signal-line i:nth-child(4), .signal-line i:nth-child(9) { height: 45%; background: #d7a653; }.signal-line i:nth-child(7) { height: 89%; }
.signal-metrics b { display: block; color: white; font-size: 1.25rem; margin-bottom: .25rem; }
.signal-card-float { right: 6%; top: 18%; padding: 1.2rem 1.5rem; }.signal-card-float strong { font-size: 1.8rem; margin: 0 .5rem; }.signal-card-float small { color: #9fb1c8; }.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #54d6a1; box-shadow: 0 0 0 5px rgba(84,214,161,.13); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 256px; padding: 1.25rem 1rem; background: var(--nav); color: white; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; gap: .7rem; align-items: center; padding: .25rem .5rem 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.account-label { padding: 0 .5rem; color: var(--nav-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.account-switcher { width: 100%; margin: .45rem 0 1.3rem; padding: .7rem 2rem .7rem .75rem; border: 1px solid #26354b; border-radius: 9px; background: #111f33; color: white; }
.nav-list { display: grid; gap: .28rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .72rem .8rem; border: 0; border-radius: 9px; background: transparent; color: var(--nav-muted); text-align: left; }
.nav-item > span { width: 1.2rem; font-size: 1.12rem; }.nav-item small { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; }
.nav-item:hover, .nav-item.is-active { color: white; background: #18273c; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #26354b; display: flex; align-items: center; gap: .7rem; }
.user-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #dce8ff; color: #2455ad; font-size: .76rem; font-weight: 800; }
.user-summary { min-width: 0; display: flex; flex: 1; flex-direction: column; }.user-summary strong, .user-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-summary strong { font-size: .83rem; }.user-summary span { color: var(--nav-muted); font-size: .72rem; margin-top: .15rem; }
.main-content { margin-left: 256px; min-height: 100vh; padding: 2.4rem clamp(1.25rem, 4vw, 4rem) 5rem; }
.mobile-header { display: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }.page-subtitle { color: var(--muted); margin: .55rem 0 0; }
.notice { position: fixed; z-index: 40; top: 1rem; right: 1rem; max-width: 420px; padding: .9rem 1.1rem; border-radius: 10px; background: #113e30; color: white; box-shadow: 0 12px 40px rgba(0,0,0,.2); }.notice-error { background: #7c2230; }
.health-banner { display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem; border: 1px solid #cfe8dd; border-radius: var(--radius); background: linear-gradient(105deg, #f2fbf7, #fff); box-shadow: 0 9px 35px rgba(33,66,50,.04); }.health-danger { background: linear-gradient(105deg, #fff4f5, #fff); border-color: #f2cdd2; }.health-icon { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; background: var(--good); color: white; font-size: 1.45rem; font-weight: 800; }.health-danger .health-icon { background: var(--danger); }.health-copy h2 { margin: 0 0 .25rem; font-size: 1.22rem; }.health-copy p:last-child { margin: 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.3rem 0; }.summary-card { min-height: 145px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: white; display: flex; flex-direction: column; }.summary-label { color: var(--muted); font-size: .77rem; font-weight: 700; }.summary-value { margin: auto 0 .1rem; font-size: 2rem; letter-spacing: -.04em; }.summary-detail { color: var(--muted); }.tone-good .summary-value { color: var(--good); }.tone-danger .summary-value { color: var(--danger); }.tone-neutral .summary-value { color: #7a8798; }
.panel { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(21, 43, 73, .035); overflow: hidden; }.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.35rem; border-bottom: 1px solid var(--line); }.panel-heading h2 { margin: 0; font-size: 1.12rem; }
.table-scroll { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; }.data-table th { padding: .8rem 1.2rem; background: #f9fbfd; color: #748197; font-size: .69rem; text-align: left; text-transform: uppercase; letter-spacing: .08em; }.data-table td { padding: 1rem 1.2rem; border-top: 1px solid #edf1f5; font-size: .87rem; }.data-table tbody tr:hover { background: #fbfcfe; }.data-table td:first-child strong, .data-table td:first-child small { display: block; }.url-text { max-width: 380px; margin-top: .3rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.text-button { border: 0; background: transparent; color: var(--primary); font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .56rem; border-radius: 999px; background: #edf1f5; color: #5d6878; font-size: .72rem; font-weight: 750; white-space: nowrap; }.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-up { background: var(--good-soft); color: var(--good); }.status-down { background: var(--danger-soft); color: var(--danger); }.status-pending-down, .status-degraded, .status-maintenance { background: #fff6df; color: var(--warning); }.status-paused, .status-unknown { background: #edf1f5; color: #697487; }
.empty-state { padding: 4rem 1.5rem; text-align: center; }.empty-icon { width: 58px; height: 58px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 16px; background: #edf3ff; color: var(--primary); font-size: 1.6rem; }.empty-state h3 { margin: 0; }.empty-state p { color: var(--muted); margin: .5rem auto 1.4rem; }
.dialog { width: min(600px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 28px 90px rgba(8,20,39,.32); }.dialog::backdrop { background: rgba(6, 14, 27, .6); backdrop-filter: blur(3px); }.dialog form { padding: 1.5rem; }.dialog-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.2rem; }.dialog-header h2 { margin: 0; }.dialog label, .settings-form label { display: grid; gap: .45rem; margin: .9rem 0; color: #34435a; font-size: .8rem; font-weight: 700; }.dialog input, .dialog select, .settings-form input { width: 100%; min-height: 43px; padding: .65rem .75rem; border: 1px solid #cfd8e5; border-radius: 9px; background: white; color: var(--ink); }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.dialog .check-label { display: flex; align-items: center; grid-template-columns: auto 1fr; }.dialog .check-label input { width: 17px; min-height: 17px; }.optional { color: var(--muted); font-weight: 500; }.dialog-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.2rem; }
.settings-form select { width: 100%; min-height: 43px; padding: .65rem .75rem; border: 1px solid #cfd8e5; border-radius: 9px; background: white; color: var(--ink); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 1.25rem; }.split-layout .panel { margin-top: 0; }.form-panel { overflow: visible; }.settings-form { padding: .4rem 1.35rem 1.5rem; }.form-help { padding: .8rem; border-radius: 9px; background: #f5f8fc; color: var(--muted); font-size: .8rem; line-height: 1.5; }.status-preview { --preview-accent: var(--primary); padding: 1.4rem; border-radius: var(--radius); background: #eaf0f8; }.status-preview.accent-green { --preview-accent: #0f8a5f; }.status-preview.accent-amber { --preview-accent: #b45309; }.status-preview.accent-violet { --preview-accent: #6d4aff; }.preview-card { overflow: hidden; margin-top: 1rem; padding: 1.4rem; border-radius: 12px; background: white; box-shadow: 0 14px 35px rgba(24,49,84,.12); }.preview-card::before { content: ""; display: block; height: 4px; margin: -1.4rem -1.4rem 1.2rem; background: var(--preview-accent); }.preview-top, .preview-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }.preview-top { font-size: .8rem; }.preview-badge { color: var(--good); }.preview-card h3 { margin: 2.4rem 0 1.5rem; font-size: 1.3rem; }.preview-row { padding: .75rem 0; border-top: 1px solid var(--line); font-size: .82rem; }.preview-row strong { color: var(--good); }.preview-empty { color: var(--muted); font-size: .83rem; }
.account-list { display: grid; }.account-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }.account-row:first-child { border-top: 0; }.account-row strong, .account-row small { display: block; }.account-row small { margin-top: .25rem; color: var(--muted); }

@media (max-width: 1050px) { .summary-grid { grid-template-columns: repeat(2, 1fr); }.split-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }.login-art { display: none; }.login-card { min-height: 100vh; padding: 2rem; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 50px rgba(0,0,0,.2); }.sidebar.is-open { transform: translateX(0); }
  .main-content { margin: 0; padding: 0 1rem 3rem; }.mobile-header { height: 64px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }.page-header { align-items: end; }.page-header h1 { font-size: 2rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }.summary-card { min-height: 125px; }.field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) { .page-header { display: grid; }.page-header .button { width: 100%; }.summary-grid { grid-template-columns: 1fr; }.health-banner { align-items: flex-start; }.dialog form { padding: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
