:root {
  --bg: #0a0f10; --sidebar: #0d1415; --panel: #111a1b; --panel-raised: #172122;
  --line: #243234; --line-soft: #1b2829; --muted: #829296; --muted-2: #637376;
  --text: #f4f8f6; --lime: #c6f36b; --lime-deep: #24351d; --blue: #82b8ff;
  --purple: #c69bff; --orange: #ffc36e; --red: #ff8585; --shadow: 0 22px 70px rgba(0,0,0,.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-width: 320px; margin: 0; color: var(--text); background: radial-gradient(circle at 72% -12%, #1b322b 0, transparent 32rem), var(--bg); }
button, input { font: inherit; } button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar { width: 250px; flex: 0 0 250px; display: flex; flex-direction: column; padding: 28px 16px 18px; background: rgba(13,20,21,.9); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 35px; color: #f3f7f5; font-size: 21px; font-weight: 780; letter-spacing: -1px; }
.brand-accent { color: var(--lime); }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.brand-mark i { width: 4px; display: block; border-radius: 4px; background: var(--lime); transform: skewX(-18deg); }
.brand-mark i:nth-child(1) { height: 8px; } .brand-mark i:nth-child(2) { height: 15px; } .brand-mark i:nth-child(3) { height: 20px; }
.workspace-label { padding: 0 12px 10px; color: #607174; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 9px; color: #8c9b9e; background: transparent; text-align: left; font-size: 13px; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: #162123; } .nav-item.active { color: var(--lime); background: #1a2a20; box-shadow: inset 3px 0 0 var(--lime); }
.nav-icon { width: 16px; color: inherit; font-size: 16px; text-align: center; } .nav-count { min-width: 21px; margin-left: auto; padding: 3px 6px; border-radius: 12px; color: var(--lime); background: #293a25; font-size: 11px; text-align: center; }
.nav-count.muted { color: #92a0a2; background: #222d2f; }
.sidebar-bottom { display: grid; gap: 8px; margin-top: auto; }
.local-card { margin: 12px 4px; padding: 14px; border: 1px solid #2b412c; border-radius: 11px; background: linear-gradient(145deg, #17251a, #111b16); }
.local-card-title { display: flex; align-items: center; gap: 8px; color: #d9efbd; font-size: 11px; font-weight: 650; } .local-card-sub { margin-top: 8px; color: #829483; font-size: 10px; line-height: 1.4; } .local-card-url { margin-top: 6px; color: #afd087; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

.main-content { min-width: 0; flex: 1; } .topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 45px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #708083; font-size: 12px; } .breadcrumbs b { color: #39494b; font-weight: 400; } .breadcrumbs strong { color: #d0d9d8; font-weight: 600; } .crumb-icon { color: var(--lime); font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; } .top-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #2e4830; border-radius: 999px; color: #afd486; background: #152118; font-size: 10px; font-weight: 650; } .top-status.bad { border-color: #5b3030; color: #ffaaaa; background: #271719; } .top-status.warn { border-color: #594528; color: #ffd28a; background: #251e15; }
.last-updated { color: #697a7d; font-size: 11px; } .icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; color: #aebbbd; background: #11191a; font-size: 20px; line-height: 1; } .icon-button:hover { color: var(--lime); border-color: #527040; } .icon-button.spin { animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .avatar { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #d0f18b; background: #2b3a2c; font-size: 10px; font-weight: 750; }

.content-wrap { width: 100%; max-width: 1460px; margin: auto; padding: 38px 45px 70px; } .view { display: none; } .active-view { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; } .hero-heading { position: relative; overflow: hidden; min-height: 205px; padding: 29px 31px; border: 1px solid #2b4035; border-radius: 18px; background: radial-gradient(circle at 76% 32%, rgba(161,220,86,.13), transparent 10rem), linear-gradient(120deg, #14221b, #101b1d 60%, #101719); box-shadow: var(--shadow); } .hero-heading::after { position: absolute; right: -80px; bottom: -125px; width: 310px; height: 310px; border: 1px solid rgba(191,239,100,.14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(191,239,100,.025), 0 0 0 48px rgba(191,239,100,.025); content: ""; }
.hero-copy { position: relative; z-index: 1; } .eyebrow { color: #92a5a3; font-size: 10px; font-weight: 780; letter-spacing: 1.5px; } .pulse-ring { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--lime); box-shadow: 0 0 0 4px #294426; } h1, h2, p { margin: 0; } h1 { margin-top: 10px; color: #f4f9f5; font-size: 34px; font-weight: 760; letter-spacing: -1.7px; } .page-heading p { margin-top: 10px; color: #8b9a9b; font-size: 12px; } .hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 25px; } .hero-badge { padding: 6px 10px; border: 1px solid #3a5b35; border-radius: 999px; color: #c8ed91; background: #1c301d; font-size: 10px; font-weight: 650; } .hero-badge.bad { border-color: #693b3b; color: #ffb1b1; background: #3a2022; } .hero-badge.warn { border-color: #68532e; color: #ffd38a; background: #382a19; } .hero-meta-note { color: #70807c; font-size: 10px; }
.hero-service-window { width: min(690px, 100%); margin-top: 18px; padding: 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(5,74,30,.22); backdrop-filter: blur(8px); }
.hero-window-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 9px; }.hero-window-head span { color: rgba(255,255,255,.84); font-size: 9px; font-weight: 780; letter-spacing: 1.1px; }.hero-window-head small { color: rgba(255,255,255,.63); font-size: 9px; }
.hero-service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.hero-service-card { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.11); }.hero-service-card.bad { border-color: rgba(255,170,170,.55); background: rgba(130,30,30,.22); }.hero-service-card.warn { border-color: rgba(255,218,137,.55); background: rgba(113,74,15,.22); }
.hero-service-title { display: flex; align-items: center; gap: 6px; min-width: 0; }.hero-service-title .status-dot { width: 6px; height: 6px; box-shadow: none; }.hero-service-title strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.hero-service-title span { overflow: hidden; margin-left: auto; color: rgba(255,255,255,.76); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.hero-service-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: rgba(255,255,255,.66); font-size: 9px; }
.hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; } .hero-visual { position: relative; display: grid; width: 92px; height: 92px; place-items: center; } .hero-orbit { position: absolute; inset: 6px; border: 1px solid rgba(195,241,106,.24); border-radius: 50%; } .hero-orbit::before, .hero-orbit::after { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); content: ""; } .hero-orbit::before { top: 9px; right: 14px; } .hero-orbit::after { bottom: 8px; left: 13px; opacity: .45; } .hero-core { width: 45px; height: 45px; border: 1px solid rgba(202,244,117,.54); border-radius: 50%; background: radial-gradient(circle, #cbf377 0, #9bcf4b 15%, #294423 16%, #18271d 64%, transparent 65%); box-shadow: 0 0 30px rgba(197,242,106,.18); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 720; transition: .2s ease; } .primary-button { color: #17220f; background: var(--lime); box-shadow: 0 8px 22px rgba(189,239,97,.12); } .primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); } .secondary-button { border: 1px solid var(--line); color: #c3cecf; background: #182224; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 39px; } .metric-card { position: relative; min-height: 142px; overflow: hidden; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,26,27,.92); box-shadow: 0 12px 35px rgba(0,0,0,.11); } .metric-card::after { position: absolute; right: -22px; bottom: -42px; width: 100px; height: 100px; border: 1px solid rgba(255,255,255,.035); border-radius: 50%; content: ""; } .metric-label { display: flex; align-items: center; justify-content: space-between; color: #92a1a3; font-size: 11px; line-height: 1.35; } .metric-icon { font-size: 19px; font-weight: 400; } .metric-icon.blue { color: var(--blue); } .metric-icon.green { color: var(--lime); } .metric-icon.purple { color: var(--purple); } .metric-icon.orange { color: var(--orange); } .metric-value { margin-top: 20px; color: #f2f7f5; font-size: 31px; font-weight: 760; letter-spacing: -1.2px; } .metric-meta { min-height: 16px; margin-top: 7px; font-size: 10px; } .trend { color: #829194; } .green-text { color: #a8d77b; } .alert-metric .metric-value { color: var(--orange); }

.section-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .section-heading { margin-bottom: 14px; } .section-heading p, .panel-heading p { margin-top: 5px; color: #718184; font-size: 11px; } .section-kicker { margin-bottom: 6px; color: #748684; font-size: 9px; font-weight: 780; letter-spacing: 1.4px; } h2 { color: #edf3f1; font-size: 15px; font-weight: 680; letter-spacing: -.2px; } .text-button { border: 0; color: var(--lime); background: transparent; font-size: 11px; font-weight: 680; } .text-button span { padding-left: 4px; font-size: 16px; }
.resource-list { display: grid; gap: 9px; margin-bottom: 35px; } .resource-card { display: grid; grid-template-columns: minmax(220px, 1.45fr) 1fr 120px 145px 100px; align-items: center; gap: 17px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(17,26,27,.9); transition: .2s ease; } .resource-card:hover { border-color: #3b5151; background: #152022; transform: translateY(-1px); } .resource-name { display: flex; align-items: center; gap: 12px; min-width: 0; } .status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; } .status-dot.good { background: var(--lime); box-shadow: 0 0 0 4px #22381f, 0 0 14px rgba(198,243,107,.3); } .status-dot.bad { background: var(--red); box-shadow: 0 0 0 4px #3c2022, 0 0 12px rgba(255,133,133,.25); } .status-dot.unknown { background: #849397; box-shadow: 0 0 0 4px #2b3739; } .status-dot.warn { background: var(--orange); box-shadow: 0 0 0 4px #3c2c1c; } .resource-title { overflow: hidden; color: #e3ebe8; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; } .resource-url { overflow: hidden; margin-top: 5px; color: #6d7d7e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; } .resource-status { font-size: 11px; } .resource-status strong { display: block; font-weight: 650; } .resource-status small { display: block; margin-top: 5px; color: #748486; font-size: 9px; } .status-up { color: #b0e27d; } .status-down { color: #ff9999; } .status-degraded, .status-recovering { color: #ffd084; } .status-unknown { color: #9aa8aa; } .spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; } .spark i { display: block; width: 5px; min-height: 4px; border-radius: 2px 2px 0 0; background: #3b5556; } .spark i.good { background: #699b43; } .spark i.bad { background: #b35c5c; } .spark i.warn { background: #b7873f; } .latency { color: #d1dad8; font-size: 12px; text-align: right; } .latency small { padding-left: 3px; color: #697b7d; font-size: 9px; } .resource-action { text-align: right; } .small-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #a4b1b3; background: #172123; font-size: 10px; } .small-button:hover { border-color: #5c7b47; color: var(--lime); }

.analytics-panel { margin-bottom: 14px; padding: 22px 22px 18px; } .analytics-heading { align-items: center; margin-bottom: 13px; } .chart-controls { display: flex; align-items: center; gap: 10px; } .chart-controls select { max-width: 230px; padding: 8px 29px 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: #cdd8d5; background: #172123; font-size: 10px; } .range-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0e1617; } .range-button { padding: 6px 8px; border: 0; border-radius: 5px; color: #778689; background: transparent; font-size: 10px; } .range-button:hover { color: #d8e5e0; } .range-button.active { color: #1b2813; background: var(--lime); font-weight: 700; } .chart-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 14px 0 8px 44px; color: #7d8e90; font-size: 10px; } .chart-legend span { display: inline-flex; align-items: center; gap: 6px; } .legend-line { width: 16px; height: 2px; background: #a8d86e; box-shadow: 0 0 8px rgba(168,216,110,.35); } .legend-state { width: 8px; height: 8px; border-radius: 2px; } .legend-state.good { background: #6b9f45; } .legend-state.bad { background: #b55d5d; } .legend-state.warn { background: #b78840; } .chart-wrap { position: relative; height: 230px; padding-left: 42px; } .chart-y-labels { position: absolute; top: 4px; bottom: 24px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #677779; font-size: 9px; } #availabilityChart { width: 100%; height: 100%; overflow: visible; } .chart-grid-line { stroke: #223033; stroke-dasharray: 2 5; stroke-width: 1; } .chart-baseline { stroke: #304143; stroke-width: 1; } .chart-state { opacity: .95; } .chart-state.up { fill: #6b9f45; } .chart-state.down { fill: #b55d5d; } .chart-state.degraded { fill: #b78840; } .chart-state.empty { fill: #2a3839; } .latency-line { fill: none; stroke: #b6e477; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(182,228,119,.3)); } .latency-point { fill: #c8f279; stroke: #17251a; stroke-width: 2; } .chart-x-axis { display: flex; justify-content: space-between; margin: -2px 0 0 42px; color: #677779; font-size: 9px; } .chart-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); } .chart-summary div { display: grid; gap: 5px; } .chart-summary span { color: #718184; font-size: 10px; } .chart-summary strong { color: #dce6e2; font-size: 14px; font-weight: 700; }
.provider-health-section { margin: 21px 0 14px; padding: 22px; border: 1px solid #cfe6d4; border-radius: 13px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(240,250,243,.92)); box-shadow: 0 8px 24px rgba(28,79,45,.045); }
.provider-health-section .section-heading { margin-bottom: 15px; }
.provider-region-badge { align-self: center; padding: 7px 10px; border: 1px solid #b9dfc2; border-radius: 999px; color: #277c3d; background: #edf9f0; font-size: 10px; font-weight: 700; }
.provider-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.provider-card { padding: 17px; border: 1px solid #d9e9dc; border-radius: 11px; background: #fff; }
.provider-card.good { border-color: #b9dfc2; }.provider-card.bad { border-color: #efc5c5; background: #fffafa; }.provider-card.warn { border-color: #efd8a9; background: #fffdf7; }
.provider-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.provider-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }.provider-brand > div { min-width: 0; }.provider-brand strong { display: block; overflow: hidden; color: #24392b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.provider-brand small { display: block; margin-top: 4px; color: #82958a; font-size: 9px; }
.provider-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff; font-size: 16px; font-weight: 800; }.provider-mark.mts { background: #e33e3e; }.provider-mark.beeline { color: #4b3f00; background: #ffd400; }
.provider-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }.provider-status.good { color: #22843b; }.provider-status.bad { color: #c94444; }.provider-status.warn { color: #b67610; }.provider-status.unknown { color: #7a8a83; }.provider-status .status-dot { width: 6px; height: 6px; box-shadow: none; }
.provider-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf3ef; }.provider-metrics div { display: grid; gap: 5px; min-width: 0; }.provider-metrics span { color: #82958a; font-size: 9px; }.provider-metrics strong { overflow: hidden; color: #365b41; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.provider-note { margin-top: 13px; color: #708378; font-size: 9px; line-height: 1.4; }
.provider-disclaimer { margin-top: 13px; color: #7d9084; font-size: 9px; line-height: 1.45; }
.field-hint { color: var(--muted-2); font-size: 9px; font-weight: 400; }

.lower-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; } .panel { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,26,27,.92); } .panel-heading { margin-bottom: 20px; } .live-label { display: flex; align-items: center; gap: 7px; color: #9bc375; font-size: 9px; font-weight: 750; letter-spacing: 1px; } .live-label .status-dot { width: 5px; height: 5px; box-shadow: none; } .panel-more { color: #718083; letter-spacing: 2px; } .events-list { display: grid; gap: 0; } .event-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); } .event-row:first-child { padding-top: 0; border-top: 0; } .event-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; font-size: 11px; } .event-icon.check { color: #84b6c2; background: #203137; } .event-icon.latency_high { color: #ffd17f; background: #3a2e1d; } .event-icon.incident_opened { color: #ff8a8a; background: #392326; } .event-icon.incident_resolved, .event-icon.resource_up { color: #b4e887; background: #22341e; } .event-text { color: #cbd5d3; font-size: 11px; } .event-text strong { font-weight: 600; } .event-text small { display: block; margin-top: 4px; color: #708083; font-size: 10px; } .event-time { color: #6e7d80; font-size: 10px; white-space: nowrap; }
.policy-list { display: grid; gap: 2px; } .policy-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); } .policy-row:first-child { padding-top: 0; border-top: 0; } .policy-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 720; } .policy-icon.red { color: #ff9090; background: #392326; } .policy-icon.amber { color: #ffc974; background: #3b2f1e; } .policy-icon.blue { color: #8dbdff; background: #213246; } .policy-row div:nth-child(2) { flex: 1; } .policy-row strong { display: block; color: #d5dedc; font-size: 11px; font-weight: 620; } .policy-row small { display: block; margin-top: 4px; color: #708083; font-size: 9px; } .policy-state { font-size: 10px; } .policy-state.on { color: #aadd7a; } .toggle { width: 30px; height: 17px; padding: 2px; border: 0; border-radius: 20px; background: #345226; } .toggle span { display: block; width: 13px; height: 13px; margin-left: 13px; border-radius: 50%; background: var(--lime); transition: .2s; } .toggle.off { background: #344043; } .toggle.off span { margin-left: 0; background: #829095; }

.resource-table-panel, .incidents-panel { padding: 0; overflow: hidden; } .table-header, .table-row { display: grid; grid-template-columns: minmax(240px, 1.5fr) 1.2fr 110px 110px 100px; align-items: center; gap: 16px; padding: 15px 20px; } .table-header { border-bottom: 1px solid var(--line); color: #728184; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; } .table-row { min-height: 70px; border-bottom: 1px solid var(--line-soft); } .table-row:last-child { border-bottom: 0; } .table-cell { min-width: 0; color: #c1cdca; font-size: 11px; } .table-url { overflow: hidden; color: #778689; text-overflow: ellipsis; white-space: nowrap; } .table-row-actions { display: flex; justify-content: flex-end; gap: 6px; } .danger-button:hover { border-color: #754040; color: #ff9696; } .empty-state { padding: 50px 20px; color: #7b8a8c; font-size: 12px; text-align: center; } .incident-row { display: grid; grid-template-columns: 1.1fr .8fr .8fr .8fr; align-items: center; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line-soft); } .incident-row:last-child { border-bottom: 0; } .incident-title { color: #d9e2df; font-size: 11px; font-weight: 650; } .incident-meta { margin-top: 5px; color: #778689; font-size: 10px; } .incident-status { font-size: 10px; } .incident-status.open { color: #ff9797; } .incident-status.resolved { color: #aade79; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,7,8,.74); backdrop-filter: blur(5px); } .modal-backdrop[hidden] { display: none; } .modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 25px; border: 1px solid #35484a; border-radius: 14px; background: #162122; box-shadow: 0 30px 100px rgba(0,0,0,.45); } .modal-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; } .modal h2 { margin-top: 8px; color: #f0f6f3; font-size: 20px; } .close-button { height: 28px; border: 0; color: #849496; background: transparent; font-size: 26px; line-height: 1; } .modal form { display: grid; gap: 15px; } .modal label { display: grid; gap: 7px; color: #a7b4b3; font-size: 11px; } .modal input { width: 100%; padding: 10px 11px; border: 1px solid #334648; border-radius: 7px; outline: none; color: #e6efeb; background: #0f1718; font-size: 12px; } .modal input:focus { border-color: #789c4d; box-shadow: 0 0 0 3px rgba(198,243,107,.08); } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-hint { padding: 10px 11px; border: 1px solid #2d4140; border-radius: 7px; color: #879897; background: #12201e; font-size: 10px; line-height: 1.45; } .form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 20; max-width: 360px; padding: 13px 15px; border: 1px solid #4e6f3f; border-radius: 9px; color: #d3efac; background: #1d2b1e; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; } .toast.show { opacity: 1; transform: none; } .toast.error { border-color: #743c3c; color: #ffc3c3; background: #352122; }

@media (max-width: 1050px) { .sidebar { width: 214px; flex-basis: 214px; } .topbar, .content-wrap { padding-right: 27px; padding-left: 27px; } .resource-card { grid-template-columns: minmax(180px, 1.4fr) 1fr 90px 90px 80px; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .hero-visual { display: none; } }
@media (max-width: 760px) { .app-shell { display: block; } .sidebar { width: 100%; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { padding: 0 4px 14px; } .workspace-label, .sidebar-bottom { display: none; } .nav { display: flex; overflow: auto; } .nav-item { width: auto; padding: 9px 11px; white-space: nowrap; } .nav-count { margin-left: 2px; } .topbar { height: 61px; padding: 0 17px; } .top-status { display: none; } .last-updated { display: none; } .content-wrap { padding: 22px 17px 40px; } .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; } .hero-heading { min-height: 220px; padding: 24px 20px; } h1 { font-size: 29px; } .hero-actions { align-self: stretch; } .hero-actions .primary-button { width: 100%; justify-content: center; } .hero-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 20px; } .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 29px; } .metric-card { min-height: 128px; padding: 15px; } .metric-value { margin-top: 17px; font-size: 25px; } .resource-card { grid-template-columns: 1fr auto; gap: 11px; } .resource-card > :nth-child(2), .resource-card > :nth-child(3) { display: none; } .resource-action { grid-column: 2; grid-row: 1; } .resource-name { grid-row: 1; } .lower-grid { grid-template-columns: 1fr; } .table-header { display: none; } .table-row { grid-template-columns: 1fr auto; gap: 10px; padding: 14px 15px; } .table-row > :nth-child(2), .table-row > :nth-child(3), .table-row > :nth-child(4) { display: none; } .table-row-actions { grid-column: 2; grid-row: 1; } .incident-row { grid-template-columns: 1fr auto; gap: 7px; } .incident-row > :nth-child(3), .incident-row > :nth-child(4) { display: none; } .form-grid { grid-template-columns: 1fr; } .modal { padding: 20px; } }
@media (max-width: 760px) { .analytics-heading { align-items: flex-start; flex-direction: column; } .chart-controls { width: 100%; align-items: stretch; flex-direction: column; } .chart-controls select { max-width: none; } .chart-legend { margin-left: 0; gap: 9px; } .chart-wrap { padding-left: 34px; } .chart-x-axis { margin-left: 34px; } .chart-summary { grid-template-columns: 1fr 1fr; } }

/* Яркая зелёная тема: светлый и дружелюбный операционный портал. */
:root {
  --bg: #f3f7f4; --sidebar: #ffffff; --panel: #ffffff; --panel-raised: #f7fbf8;
  --line: #dce8e0; --line-soft: #edf3ef; --muted: #60726a; --muted-2: #84958d;
  --text: #15221c; --lime: #21a038; --lime-deep: #dff4e5; --blue: #4385d8;
  --purple: #8a61c7; --orange: #df8b19; --red: #d84c4c; --shadow: 0 12px 32px rgba(28,79,45,.08);
}
.admin-button { padding: 7px 10px; border: 1px solid #c7ded0; border-radius: 8px; color: #4d6a59; background: #f7fbf8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-button:hover, .admin-button.authenticated { border-color: #65b474; color: #168832; background: #eaf7ed; }
.admin-lock { margin-left: auto; opacity: .62; font-size: 10px; }
.read-only-label { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
body.theme-dark .admin-button { border-color: var(--line); color: #b4c4bd; background: #172122; }
body.theme-dark .admin-button:hover, body.theme-dark .admin-button.authenticated { border-color: #527040; color: #d3f19d; background: #1a2a20; }
@media (max-width: 760px) { .admin-button { padding: 7px 8px; font-size: 9px; } }
body { color: var(--text); background: radial-gradient(circle at 70% -16%, #d9f3e1 0, transparent 34rem), #f3f7f4; }
.sidebar { background: rgba(255,255,255,.94); border-right-color: var(--line); }
.brand { color: #16241d; }
.brand-mark { width: 25px; height: 25px; align-items: center; justify-content: center; border-radius: 50%; background: #21a038; transform: rotate(-12deg); }
.brand-mark i { display: none; }
.brand-leaf { width: 12px; height: 16px; border-radius: 100% 0 100% 0; background: #fff; transform: rotate(42deg) translate(1px, -1px); }
.brand-name { color: #21a038; font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.brand-divider { color: #a7b8ad; }
.brand-product { color: #43564c; font-size: 13px; font-weight: 650; letter-spacing: -.3px; }
.workspace-label { color: #8a9b91; }
.nav-item { color: #61736a; }
.nav-item:hover { color: #183023; background: #f1f8f3; }
.nav-item.active { color: #16832f; background: #e8f6eb; box-shadow: inset 3px 0 0 #21a038; }
.nav-count { color: #188732; background: #e2f4e7; }
.nav-count.muted { color: #708078; background: #eff4f0; }
.local-card { border-color: #bde1c7; background: linear-gradient(145deg, #effaf1, #f8fcf8); }
.local-card-title { color: #1f7f37; }
.local-card-sub { color: #71867a; }
.local-card-url { color: #3c8b4e; }
.topbar { background: rgba(255,255,255,.84); border-bottom-color: var(--line); }
.breadcrumbs { color: #85958d; }.breadcrumbs b { color: #c3d1c8; }.breadcrumbs strong { color: #263a2e; }.crumb-icon { color: #21a038; }
.top-status { border-color: #bfe2c7; color: #1a8133; background: #effaf1; }.top-status.bad { border-color: #efc3c3; color: #b63c3c; background: #fff2f2; }.top-status.warn { border-color: #eed7ac; color: #a46a0c; background: #fff8e9; }
.last-updated { color: #84948d; }.icon-button { border-color: var(--line); color: #658074; background: #fff; }.icon-button:hover { color: #168732; border-color: #9ed2aa; }.avatar { color: #1a7d32; background: #e3f4e7; }
.content-wrap { max-width: 1460px; }
.hero-heading { border-color: #bfe3c8; background: radial-gradient(circle at 78% 30%, rgba(33,160,56,.12), transparent 11rem), linear-gradient(120deg, #f0fbf2, #ffffff 64%, #f7fcf8); box-shadow: 0 15px 42px rgba(39,115,57,.08); }
.hero-heading::after { border-color: rgba(33,160,56,.15); box-shadow: 0 0 0 24px rgba(33,160,56,.035), 0 0 0 48px rgba(33,160,56,.025); }
.eyebrow { color: #5e7b69; }.pulse-ring { background: #21a038; box-shadow: 0 0 0 4px #d3efd9; } h1 { color: #15261b; }.page-heading p { color: #6f8177; }.hero-badge { border-color: #bfe2c6; color: #177d30; background: #e8f7eb; }.hero-badge.bad { border-color: #efc5c5; color: #b94141; background: #fff1f1; }.hero-badge.warn { border-color: #efd8a9; color: #9b650e; background: #fff8e8; }.hero-meta-note { color: #7c8e84; }
.hero-orbit { border-color: rgba(33,160,56,.27); }.hero-orbit::before, .hero-orbit::after { background: #21a038; box-shadow: 0 0 12px rgba(33,160,56,.45); }.hero-core { border-color: rgba(33,160,56,.48); background: radial-gradient(circle, #21a038 0, #21a038 15%, #bdebc7 16%, #e8f7eb 64%, transparent 65%); box-shadow: 0 0 30px rgba(33,160,56,.15); }
.primary-button { color: #fff; background: #21a038; box-shadow: 0 8px 22px rgba(33,160,56,.16); }.primary-button:hover { background: #168a2f; }.secondary-button { border-color: var(--line); color: #40584b; background: #f7fbf8; }
.metric-card { border-color: var(--line); background: #fff; box-shadow: var(--shadow); }.metric-card::after { border-color: rgba(33,160,56,.08); }.metric-label { color: #71837a; }.metric-value { color: #183023; }.metric-icon.blue { color: #4385d8; }.metric-icon.green { color: #21a038; }.metric-icon.purple { color: #8a61c7; }.metric-icon.orange { color: #df8b19; }.trend { color: #7c8d84; }.green-text { color: #23863b; }.alert-metric .metric-value { color: #bd7511; }
.section-kicker { color: #6e8978; }.section-heading p, .panel-heading p { color: #778980; } h2 { color: #21372a; }.text-button { color: #198b35; }
.resource-card { border-color: var(--line); background: #fff; box-shadow: 0 7px 22px rgba(28,79,45,.045); }.resource-card:hover { border-color: #a9d5b3; background: #fbfefb; }.resource-title { color: #24392b; }.resource-url { color: #7d8e85; }.resource-status small { color: #7d9084; }.status-up { color: #188632; }.status-down { color: #c94444; }.status-degraded, .status-recovering { color: #b87710; }.status-unknown { color: #7a8a83; }.status-dot.good { background: #21a038; box-shadow: 0 0 0 4px #e0f4e4, 0 0 12px rgba(33,160,56,.18); }.status-dot.bad { background: #d84c4c; box-shadow: 0 0 0 4px #fde8e8, 0 0 12px rgba(216,76,76,.16); }.status-dot.warn { background: #df8b19; box-shadow: 0 0 0 4px #fff2d5; }.status-dot.unknown { background: #91a099; box-shadow: 0 0 0 4px #eaf0ec; }.spark i { background: #c7d7cc; }.spark i.good { background: #65b474; }.spark i.bad { background: #df8989; }.spark i.warn { background: #e6b766; }.latency { color: #3f5648; }.latency small { color: #84958c; }.small-button { border-color: var(--line); color: #587064; background: #f8fbf9; }.small-button:hover { border-color: #8fc79a; color: #178530; }
.panel, .analytics-panel { border-color: var(--line); background: #fff; box-shadow: 0 7px 22px rgba(28,79,45,.045); }.live-label { color: #318848; }.panel-more { color: #8b9b92; }.event-row { border-top-color: var(--line-soft); }.event-icon.check { color: #4385a0; background: #e7f2f7; }.event-icon.latency_high { color: #b67610; background: #fff2d7; }.event-icon.incident_opened { color: #c94444; background: #fdeaea; }.event-icon.incident_resolved, .event-icon.resource_up { color: #21883b; background: #e2f4e6; }.event-text { color: #40564a; }.event-text small, .event-time { color: #83938b; }.policy-row { border-top-color: var(--line-soft); }.policy-icon.red { color: #c94444; background: #fdeaea; }.policy-icon.amber { color: #b67610; background: #fff2d7; }.policy-icon.blue { color: #4385d8; background: #e8f1fc; }.policy-row strong { color: #40564a; }.policy-row small { color: #819189; }.policy-state.on { color: #21883b; }.toggle { background: #b8dfbf; }.toggle span { background: #21a038; }.toggle.off { background: #d8e2db; }.toggle.off span { background: #92a198; }
.chart-controls select, .range-switcher { border-color: var(--line); background: #f7fbf8; }.chart-controls select { color: #466052; }.range-button { color: #71837a; }.range-button.active { color: #fff; background: #21a038; }.chart-legend { color: #71837a; }.legend-line { background: #21a038; box-shadow: 0 0 8px rgba(33,160,56,.25); }.legend-state.good { background: #65b474; }.legend-state.bad { background: #df8989; }.legend-state.warn { background: #e6b766; }.chart-y-labels, .chart-x-axis { color: #84948c; }.chart-grid-line { stroke: #e5eee8; }.chart-baseline { stroke: #c8d9cd; }.chart-state.up { fill: #65b474; }.chart-state.down { fill: #df8989; }.chart-state.degraded { fill: #e6b766; }.chart-state.empty { fill: #e2ebe5; }.latency-line { stroke: #21a038; filter: drop-shadow(0 0 4px rgba(33,160,56,.2)); }.latency-point { fill: #21a038; stroke: #fff; }.chart-summary { border-top-color: var(--line-soft); }.chart-summary span { color: #7d8f85; }.chart-summary strong { color: #31523d; }
.table-header { color: #71847a; border-bottom-color: var(--line); }.table-row { border-bottom-color: var(--line-soft); }.table-cell { color: #4b6354; }.table-url { color: #7b8e83; }.incident-row { border-bottom-color: var(--line-soft); }.incident-title { color: #304a38; }.incident-meta { color: #7d8e85; }.incident-status.open { color: #c94444; }.incident-status.resolved { color: #21883b; }.empty-state { color: #83938a; }
.modal-backdrop { background: rgba(25,62,36,.28); }.modal { border-color: #cfe2d4; background: #fff; box-shadow: 0 30px 100px rgba(26,82,44,.18); }.modal h2 { color: #20392a; }.close-button { color: #71847a; }.modal label { color: #60766a; }.modal input { border-color: #d4e3d8; color: #23392b; background: #fbfdfb; }.modal input:focus { border-color: #65b474; box-shadow: 0 0 0 3px rgba(33,160,56,.1); }.form-hint { border-color: #d2e8d7; color: #6f8377; background: #f1faf3; }.toast { border-color: #b7dfbf; color: #1e7d35; background: #effaf1; }.toast.error { border-color: #ecc2c2; color: #b73c3c; background: #fff2f2; }

/* Яркая версия темы. */
body { background: radial-gradient(circle at 72% -8%, #b9efc7 0, transparent 30rem), linear-gradient(135deg, #f7fcf8 0%, #eef9f1 48%, #f6fbf7 100%); }
.sidebar { box-shadow: 8px 0 30px rgba(30,113,54,.05); }
.hero-heading { border-color: #159132; background: linear-gradient(122deg, #0c7f32 0%, #21a038 48%, #72cf83 100%); box-shadow: 0 18px 42px rgba(33,160,56,.2); }
.hero-heading::after { border-color: rgba(255,255,255,.23); box-shadow: 0 0 0 24px rgba(255,255,255,.055), 0 0 0 48px rgba(255,255,255,.04); }
.hero-heading .eyebrow, .hero-heading h1, .hero-heading .page-heading p, .hero-heading p { color: #fff; }
.hero-heading .pulse-ring { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.hero-heading .hero-badge { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.15); }
.hero-heading .hero-meta-note { color: rgba(255,255,255,.8); }
.hero-heading .hero-orbit { border-color: rgba(255,255,255,.48); }.hero-heading .hero-orbit::before, .hero-heading .hero-orbit::after { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.5); }.hero-heading .hero-core { border-color: rgba(255,255,255,.6); background: radial-gradient(circle, #fff 0, #fff 15%, #a8e9b4 16%, rgba(255,255,255,.2) 64%, transparent 65%); box-shadow: 0 0 30px rgba(255,255,255,.25); }
.hero-heading .primary-button { color: #13782e; background: #fff; box-shadow: 0 10px 24px rgba(4,68,23,.18); }.hero-heading .primary-button:hover { color: #0c6c29; background: #f1fff4; }
.metric-card:nth-child(1) { border-top: 3px solid #21a038; }.metric-card:nth-child(2) { border-top: 3px solid #56bd6a; }.metric-card:nth-child(3) { border-top: 3px solid #6e9fe8; }.metric-card:nth-child(4) { border-top: 3px solid #e9ad4d; }
.section-heading { padding-top: 4px; }.analytics-panel { background: linear-gradient(180deg, #fff, #fbfefc); }
.incident-row { display: block; padding: 0; }
.incident-summary { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 17px 20px; border: 0; color: inherit; background: transparent; text-align: left; }
.incident-summary:hover { background: #f8fcf9; }
.incident-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.incident-type-icon { display: inline-grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #c94444; background: #fdeaea; font-size: 12px; font-weight: 800; }
.incident-type-icon.network, .incident-type-icon.timeout { color: #b67610; background: #fff2d7; }
.incident-type-icon.http_status { color: #8a61c7; background: #f2ebfc; }
.incident-type-icon.latency { color: #b67610; background: #fff2d7; }
.incident-main .incident-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.incident-chevron { color: #7e9587; font-size: 17px; transition: transform .2s ease; }
.incident-row.expanded .incident-chevron { transform: rotate(180deg); }
.incident-details { padding: 0 20px 18px 58px; border-top: 1px solid var(--line-soft); }
.incident-details[hidden] { display: none; }
.incident-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 15px; }
.incident-detail-grid div { display: grid; gap: 5px; min-width: 0; }
.incident-detail-grid span, .incident-detail-note > span { color: #82958a; font-size: 10px; }
.incident-detail-grid strong { overflow: hidden; color: #34533e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.incident-detail-note { display: grid; gap: 5px; margin-top: 15px; padding: 10px 12px; border-radius: 8px; background: #f5faf6; }
.incident-detail-note strong { color: #466651; font-size: 11px; font-weight: 600; }
.incident-timeline { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; color: #82958a; font-size: 10px; line-height: 1.45; }
.incident-timeline strong { color: #466651; font-weight: 650; }
@media (max-width: 760px) {
  .incident-summary { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 15px; }
  .incident-summary .incident-status { grid-column: 1; grid-row: 2; margin-left: 38px; }
  .incident-chevron { grid-column: 2; grid-row: 1 / span 2; }
  .incident-details { padding: 0 15px 16px 15px; }
  .incident-detail-grid { grid-template-columns: 1fr 1fr; }
  .incident-timeline { gap: 12px; }
}

.settings-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr); gap: 14px; align-items: start; }
.settings-panel { padding: 22px; }
.theme-choices { display: grid; gap: 9px; margin-top: 20px; }
.theme-choice { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: var(--panel-raised); text-align: left; }
.theme-choice:hover, .theme-choice.active { border-color: #66b877; background: #eef9f1; }
.theme-choice strong, .theme-choice small { display: block; }
.theme-choice strong { color: #34533e; font-size: 11px; }
.theme-choice small { margin-top: 4px; color: #83938b; font-size: 10px; }
.theme-preview { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; font-size: 17px; }
.light-preview { color: #168832; background: #e4f5e8; }.dark-preview { color: #c6f36b; background: #1a2a20; }
.notification-form { display: grid; gap: 10px; margin-top: 18px; }
.channel-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
.channel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.channel-heading strong, .channel-heading small { display: block; }.channel-heading strong { color: #34533e; font-size: 12px; }.channel-heading small { margin-top: 4px; color: #83938b; font-size: 10px; }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.settings-fields label { display: grid; gap: 6px; color: #71837a; font-size: 10px; }
.settings-fields input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: #34533e; background: #fff; font-size: 11px; }
.settings-fields input:focus { border-color: #65b474; box-shadow: 0 0 0 3px rgba(33,160,56,.1); }
.settings-fields select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: #34533e; background: #fff; font-size: 11px; }
.connection-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 11px; border: 1px solid #dce9df; border-radius: 8px; background: #f5faf6; }.connection-toggle strong, .connection-toggle small { display: block; }.connection-toggle strong { color: #34533e; font-size: 11px; }.connection-toggle small { margin-top: 3px; color: #83938b; font-size: 10px; }
.channel-hint { margin-top: 12px; color: #83938b; font-size: 10px; line-height: 1.45; }.channel-hint code { padding: 2px 4px; border-radius: 4px; color: #4c7658; background: #edf7ef; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.secret-input { position: relative; display: flex; align-items: stretch; }
.secret-input input { min-width: 0; padding-right: 76px; }
.secret-toggle { position: absolute; right: 5px; top: 50%; padding: 4px 6px; border: 0; border-radius: 5px; color: #5d8069; background: transparent; font-size: 10px; transform: translateY(-50%); }
.secret-toggle:hover { color: #168832; background: #eaf7ed; }
.template-editor { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }.template-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.template-editor-heading strong, .template-editor-heading small { display: block; }.template-editor-heading strong { color: #34533e; font-size: 11px; }.template-editor-heading small { margin-top: 4px; color: #83938b; font-size: 10px; }.compact-button { padding: 7px 9px; font-size: 10px; white-space: nowrap; }.template-editor textarea { display: block; width: 100%; min-height: 150px; margin-top: 10px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; outline: none; color: #34533e; background: #fff; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }.template-editor textarea:focus { border-color: #65b474; box-shadow: 0 0 0 3px rgba(33,160,56,.1); }.template-fields-label { margin-top: 10px; color: #71837a; font-size: 10px; }.template-fields { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }.template-fields button { padding: 5px 7px; border: 1px solid #cfe2d3; border-radius: 6px; color: #4c7658; background: #f4faf5; font-size: 10px; }.template-fields button:hover { border-color: #65b474; color: #168832; background: #eaf7ed; }.template-preview { margin-top: 11px; padding: 9px 10px; border-radius: 8px; background: #f5f8f6; }.template-preview span { display: block; color: #83938b; font-size: 10px; }.template-preview pre { max-height: 170px; margin: 7px 0 0; overflow: auto; white-space: pre-wrap; color: #34533e; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.switch { position: relative; display: inline-flex; width: 34px; height: 20px; flex: 0 0 auto; }.switch input { position: absolute; opacity: 0; }.switch span { width: 34px; height: 20px; padding: 2px; border-radius: 20px; background: #cbd8cf; transition: .2s; }.switch span::after { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); content: ''; transition: .2s; }.switch input:checked + span { background: #21a038; }.switch input:checked + span::after { transform: translateX(14px); }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.chart-failure { fill: #df8989; opacity: .16; }.latency-line.p95 { stroke: #8a61c7; stroke-dasharray: 5 4; stroke-width: 1.5; filter: none; }.latency-point.p95 { fill: #8a61c7; }
.legend-p95 { height: 0; border-top: 2px dashed #8a61c7; background: transparent; box-shadow: none; }
.chart-summary { grid-template-columns: repeat(6, 1fr); }
body.theme-dark { --bg: #0a0f10; --sidebar: #0d1415; --panel: #111a1b; --panel-raised: #172122; --line: #243234; --line-soft: #1b2829; --text: #f4f8f6; --muted: #829296; --muted-2: #637376; --lime: #c6f36b; color: var(--text); background: radial-gradient(circle at 72% -12%, #1b322b 0, transparent 32rem), var(--bg); }
body.theme-dark .sidebar { background: rgba(13,20,21,.94); border-right-color: var(--line); box-shadow: none; }
body.theme-dark .brand { color: #f3f7f5; } body.theme-dark .brand-name { color: var(--lime); } body.theme-dark .brand-divider { color: #6c7c7e; } body.theme-dark .brand-product { color: #c3ceca; }
body.theme-dark .nav-item { color: #8c9b9e; } body.theme-dark .nav-item:hover { color: var(--text); background: #162123; } body.theme-dark .nav-item.active { color: var(--lime); background: #1a2a20; box-shadow: inset 3px 0 0 var(--lime); }
body.theme-dark .nav-count { color: var(--lime); background: #293a25; } body.theme-dark .nav-count.muted { color: #92a0a2; background: #222d2f; }
body.theme-dark .local-card { border-color: #2b412c; background: linear-gradient(145deg, #17251a, #111b16); } body.theme-dark .local-card-title { color: #d9efbd; } body.theme-dark .local-card-sub { color: #829483; } body.theme-dark .local-card-url { color: #afd087; }
body.theme-dark .topbar { background: rgba(13,20,21,.9); border-bottom-color: var(--line); } body.theme-dark .breadcrumbs { color: #708083; } body.theme-dark .breadcrumbs strong { color: #d0d9d8; } body.theme-dark .breadcrumbs b { color: #39494b; } body.theme-dark .icon-button { border-color: var(--line); color: #aebbbd; background: #11191a; }
body.theme-dark .hero-heading { border-color: #2b4035; background: radial-gradient(circle at 76% 32%, rgba(161,220,86,.13), transparent 10rem), linear-gradient(120deg, #14221b, #101b1d 60%, #101719); box-shadow: var(--shadow); } body.theme-dark .hero-heading .eyebrow, body.theme-dark .hero-heading h1, body.theme-dark .hero-heading p { color: #f4f9f5; } body.theme-dark .hero-heading .hero-meta-note { color: #70807c; } body.theme-dark .hero-heading .hero-badge { border-color: #3a5b35; color: #c8ed91; background: #1c301d; } body.theme-dark .hero-heading .primary-button { color: #17220f; background: var(--lime); }
body.theme-dark .metric-card, body.theme-dark .resource-card, body.theme-dark .panel, body.theme-dark .analytics-panel { border-color: var(--line); background: rgba(17,26,27,.94); box-shadow: 0 12px 35px rgba(0,0,0,.11); } body.theme-dark .metric-label { color: #92a1a3; } body.theme-dark .metric-value { color: #f2f7f5; } body.theme-dark h2 { color: #edf3f1; } body.theme-dark .section-heading p, body.theme-dark .panel-heading p { color: #718184; } body.theme-dark .resource-title { color: #e3ebe8; } body.theme-dark .resource-url { color: #6d7d7e; } body.theme-dark .latency { color: #c3cfcb; }
body.theme-dark .chart-controls select, body.theme-dark .range-switcher { border-color: var(--line); background: #0e1617; } body.theme-dark .chart-controls select { color: #cdd8d5; } body.theme-dark .range-button { color: #778689; } body.theme-dark .range-button.active { color: #1b2813; background: var(--lime); } body.theme-dark .chart-legend { color: #7d8e90; } body.theme-dark .chart-grid-line { stroke: #223033; } body.theme-dark .chart-baseline { stroke: #304143; } body.theme-dark .chart-state.up { fill: #6b9f45; } body.theme-dark .chart-state.down { fill: #b55d5d; } body.theme-dark .chart-state.degraded { fill: #b78840; } body.theme-dark .chart-state.empty { fill: #2a3839; } body.theme-dark .latency-line { stroke: #b6e477; } body.theme-dark .latency-line.p95 { stroke: #c69bff; } body.theme-dark .latency-point { fill: #c8f279; stroke: #17251a; } body.theme-dark .latency-point.p95 { fill: #c69bff; }
body.theme-dark .table-header { color: #728184; border-bottom-color: var(--line); } body.theme-dark .table-row { border-bottom-color: var(--line-soft); } body.theme-dark .table-cell { color: #c1cdca; } body.theme-dark .incident-title { color: #d9e2df; } body.theme-dark .incident-meta { color: #778689; } body.theme-dark .incident-summary:hover { background: #152022; } body.theme-dark .incident-details { border-top-color: var(--line-soft); } body.theme-dark .incident-detail-grid span, body.theme-dark .incident-detail-note > span { color: #82958a; } body.theme-dark .incident-detail-grid strong, body.theme-dark .incident-detail-note strong, body.theme-dark .incident-timeline strong { color: #c8d7d0; } body.theme-dark .incident-detail-note { background: #12201e; } body.theme-dark .incident-timeline { color: #82958a; }
body.theme-dark .settings-panel { background: #111a1b; } body.theme-dark .theme-choice, body.theme-dark .channel-card { border-color: var(--line); background: #172122; } body.theme-dark .theme-choice:hover, body.theme-dark .theme-choice.active { border-color: #527040; background: #1a2a20; } body.theme-dark .theme-choice strong, body.theme-dark .channel-heading strong { color: #d5dedc; } body.theme-dark .theme-choice small, body.theme-dark .channel-heading small, body.theme-dark .settings-fields label { color: #829296; } body.theme-dark .settings-fields input { border-color: #334648; color: #e6efeb; background: #0f1718; } body.theme-dark .form-hint { background: #12201e; }
body.theme-dark .settings-fields select { border-color: #334648; color: #e6efeb; background: #0f1718; } body.theme-dark .channel-hint { color: #829296; } body.theme-dark .channel-hint code { color: #afd087; background: #1b2d20; } body.theme-dark .connection-toggle { border-color: #2d4732; background: #14231a; } body.theme-dark .connection-toggle strong { color: #d5e9c5; } body.theme-dark .connection-toggle small { color: #829483; } body.theme-dark .template-editor { border-top-color: var(--line); } body.theme-dark .template-editor-heading strong { color: #d5dedc; } body.theme-dark .template-editor-heading small, body.theme-dark .template-fields-label { color: #829296; } body.theme-dark .template-editor textarea { border-color: #334648; color: #e6efeb; background: #0f1718; } body.theme-dark .template-fields button { border-color: #36563d; color: #b5d69b; background: #182a1c; } body.theme-dark .template-fields button:hover { border-color: #76ad5e; color: #d3f19d; background: #263a25; } body.theme-dark .template-preview { background: #12201e; } body.theme-dark .template-preview span, body.theme-dark .template-preview pre { color: #a8b9b4; }
body.theme-dark .secret-toggle { color: #a8c986; } body.theme-dark .secret-toggle:hover { color: #d3f19d; background: #263a25; }

/* Профиль портала: информативная сводка связана с выбранным графиком. */
.brand > span:last-child { min-width: 0; line-height: 1.15; }.brand-product { display: inline-block; max-width: 145px; vertical-align: middle; }
.hero-status-line { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: rgba(255,255,255,.82); font-size: 10px; }.hero-status-line strong { color: #fff; font-size: 12px; }.hero-status-line .status-dot { box-shadow: 0 0 0 4px rgba(255,255,255,.2); }.hero-status-line .status-dot.bad { background: #ff9d9d; }.hero-status-line .status-dot.warn { background: #ffd27e; }.hero-status-line > span:last-child { color: rgba(255,255,255,.72); }
.hero-actions { flex-direction: column; align-items: flex-end; gap: 13px; }.hero-snapshot { display: grid; grid-template-columns: repeat(2, minmax(105px, 1fr)); gap: 7px; width: min(250px, 100%); }.hero-snapshot > div { min-height: 56px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.11); backdrop-filter: blur(5px); }.hero-snapshot span, .hero-snapshot small, .hero-snapshot strong { display: block; }.hero-snapshot span { color: rgba(255,255,255,.72); font-size: 9px; }.hero-snapshot strong { margin-top: 4px; color: #fff; font-size: 17px; }.hero-snapshot small { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 9px; }.hero-actions > .primary-button { align-self: stretch; justify-content: center; }
.chart-current-status { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-raised); }.chart-current-status strong, .chart-current-status small { display: block; }.chart-current-status strong { color: var(--text); font-size: 10px; }.chart-current-status small { max-width: 145px; margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-subheading { margin-top: 18px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }.background-heading { margin-top: 25px; }.background-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }.background-choice { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: var(--panel-raised); text-align: left; }.background-choice:hover, .background-choice.active { border-color: #66b877; background: #eef9f1; }.background-choice strong, .background-choice small { display: block; }.background-choice strong { color: var(--text); font-size: 10px; }.background-choice small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }.background-preview { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 7px; border: 1px solid rgba(30,80,46,.12); }.background-preview.background-mint { background: linear-gradient(135deg, #d7f4df, #f7fcf8); }.background-preview.background-soft { background: linear-gradient(135deg, #eef2f5, #ffffff); }.background-preview.background-plain { background: #f5f7f6; }.background-preview.background-contrast { background: linear-gradient(135deg, #bfe8cb, #ffffff 45%, #dbeee1); }
body.background-mint { background: radial-gradient(circle at 70% -16%, #d9f3e1 0, transparent 34rem), linear-gradient(135deg, #f7fcf8 0%, #eef9f1 48%, #f6fbf7 100%); }.background-mint .topbar { background: rgba(255,255,255,.84); }.background-mint .content-wrap { background: transparent; }
body.background-soft { background: radial-gradient(circle at 14% -10%, #e5ebf0 0, transparent 30rem), linear-gradient(135deg, #f7f9fb 0%, #edf2f4 52%, #f8fafb 100%); }.background-soft .sidebar { background: rgba(255,255,255,.95); }.background-soft .hero-heading { box-shadow: 0 15px 42px rgba(48,83,65,.13); }
body.background-plain { background: #f5f7f6; }.background-plain .topbar, .background-plain .sidebar { background: #fff; }.background-plain .hero-heading { box-shadow: 0 12px 30px rgba(35,65,48,.1); }
body.background-contrast { background: radial-gradient(circle at 86% -12%, #b9efc7 0, transparent 28rem), linear-gradient(135deg, #e7f6eb 0%, #f8fcf9 54%, #dcefe1 100%); }.background-contrast .topbar { background: rgba(255,255,255,.92); }.background-contrast .analytics-panel, .background-contrast .panel, .background-contrast .metric-card { box-shadow: 0 11px 30px rgba(35,94,51,.1); }
body.theme-dark.background-mint { background: radial-gradient(circle at 72% -12%, #1b322b 0, transparent 32rem), #0a0f10; }.theme-dark .background-choice:hover, .theme-dark .background-choice.active { border-color: #527040; background: #1a2a20; }.theme-dark .settings-subheading { color: #829296; }
body.theme-dark.background-soft { background: radial-gradient(circle at 14% -10%, #26373b 0, transparent 31rem), #0d1315; }.theme-dark.background-plain { background: #0d1315; }.theme-dark.background-contrast { background: radial-gradient(circle at 86% -12%, #24412f 0, transparent 28rem), #0d1512; }.theme-dark .chart-current-status { border-color: var(--line); background: #172122; }.theme-dark .background-choice { border-color: var(--line); background: #172122; }.theme-dark .background-choice strong { color: #d5dedc; }.theme-dark .background-choice small { color: #829296; }
body.theme-dark .provider-health-section { border-color: #2d4732; background: linear-gradient(135deg, rgba(17,31,22,.95), rgba(17,26,27,.95)); } body.theme-dark .provider-region-badge { border-color: #36563d; color: #b5d69b; background: #182a1c; } body.theme-dark .provider-card { border-color: var(--line); background: #172122; } body.theme-dark .provider-card.good { border-color: #36563d; } body.theme-dark .provider-card.bad { border-color: #593235; background: #24191a; } body.theme-dark .provider-card.warn { border-color: #5b4727; background: #252016; } body.theme-dark .provider-brand strong { color: #e3ebe8; } body.theme-dark .provider-brand small, body.theme-dark .provider-metrics span, body.theme-dark .provider-note, body.theme-dark .provider-disclaimer { color: #829296; } body.theme-dark .provider-metrics { border-top-color: var(--line-soft); } body.theme-dark .provider-metrics strong { color: #c8d7d0; }
@media (max-width: 900px) { .hero-actions { align-items: stretch; }.hero-snapshot { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }.hero-actions > .primary-button { align-self: auto; } }
@media (max-width: 760px) { .brand-product { max-width: 132px; font-size: 11px; }.hero-status-line { align-items: flex-start; flex-wrap: wrap; }.hero-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }.chart-current-status { width: 100%; box-sizing: border-box; }.background-choices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .settings-fields { grid-template-columns: 1fr; } .settings-actions { flex-direction: column-reverse; } .settings-actions button { width: 100%; justify-content: center; } }
@media (max-width: 760px) { .chart-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .provider-health-section { padding: 17px; }.provider-health-grid { grid-template-columns: 1fr; }.provider-metrics { grid-template-columns: repeat(2, 1fr); }.provider-region-badge { align-self: flex-start; } }
.hero-detector-link, .detector-link { display: inline-flex; align-items: center; width: fit-content; margin-top: 9px; color: #e5f8c4; font-size: 9px; font-weight: 700; text-decoration: none; }.hero-detector-link:hover, .detector-link:hover { color: #fff; text-decoration: underline; }.provider-card .detector-link { color: #21883b; }
