@font-face { font-family: "Mark"; src: url("fonts/markpro-book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mark"; src: url("fonts/markpro-medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mark"; src: url("fonts/markpro-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mark"; src: url("fonts/markpro-heavy.otf") format("opentype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #171710;
  --muted: #747268;
  --soft: #a19f95;
  --paper: #f3f2ed;
  --white: #fff;
  --line: #e5e3da;
  --line-dark: #d5d2c7;
  --accent: #13a89e;
  --accent-dark: #087c75;
  --accent-soft: #e5f6f4;
  --green: #42a86d;
  --green-soft: #eaf7ef;
  --orange: #bd702f;
  --orange-soft: #fff4e8;
  --red: #cf4e3a;
  --red-soft: #fcecea;
  --shadow: 0 15px 45px rgba(23, 23, 16, .06);
  --font: "Mark", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; }

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 28px;
  padding: 10px max(24px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid rgba(229, 227, 218, .9);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 13px; background: var(--ink); box-shadow: 0 5px 15px rgba(23,23,16,.13); }
.brand-mark img { display: block; width: 42px; height: 42px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }

.view-switcher { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 11px; background: var(--paper); }
.view-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.view-button:hover { color: var(--ink); }
.view-button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(23,23,16,.06); }
.view-button span { min-width: 18px; padding: 1px 5px; border-radius: 99px; background: var(--line); font-size: 9px; text-align: center; }
.view-button.is-active span { background: var(--accent-soft); color: var(--accent-dark); }

.header-account { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.header-user { display: flex; align-items: center; gap: 9px; }
.user-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.user-copy strong, .user-copy small { display: block; }
.user-copy strong { max-width: 160px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: var(--muted); font-size: 10px; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 17px; font-weight: 500; text-decoration: none; }
.icon-button:hover { background: var(--paper); color: var(--ink); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-switcher { position: static; flex: 0 0 auto; }
.app-switcher-toggle { display: grid; width: 36px; height: 36px; cursor: pointer; list-style: none; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.app-switcher-toggle::-webkit-details-marker { display: none; }
.app-switcher-toggle:hover, .app-switcher[open] .app-switcher-toggle { background: var(--paper); color: var(--ink); }
.app-switcher-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(19, 168, 158, .18); }
.app-switcher-dots { width: 18px; height: 18px; background-image: radial-gradient(circle, currentColor 1.45px, transparent 1.7px); background-position: 0 0; background-size: 6px 6px; }
.app-switcher-menu { position: absolute; z-index: 100; top: calc(100% + 12px); right: 0; width: min(312px, calc(100vw - 28px)); padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 22px 60px rgba(23,23,16,.16); }
.app-switcher-title strong, .app-switcher-title small { display: block; }
.app-switcher-title strong { font-size: 14px; font-weight: 800; }
.app-switcher-title small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.app-switcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }
.app-switcher-item { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px; border-radius: 12px; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.app-switcher-item:hover { background: var(--paper); }
.app-switcher-item.is-current { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.app-switcher-icon { display: block; width: 37px; height: 37px; flex: 0 0 auto; overflow: hidden; border-radius: 11px; }
.app-switcher-icon img { display: block; width: 100%; height: 100%; }

.app-shell { width: min(1420px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); align-items: center; gap: 60px; padding: 8px 4px 30px; }
.eyebrow, .panel-kicker { margin: 0; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.hero-copy h1 { max-width: 760px; margin: 8px 0 10px; font-size: 38px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.hero-copy > p:last-child { max-width: 690px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); }
.hero-stats > div { position: relative; min-height: 100px; padding: 17px 18px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { margin-bottom: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span:last-child { color: var(--muted); font-size: 11px; line-height: 1.35; }
.verdict-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; column-gap: 9px; }
.verdict-summary .status-dot { grid-column: 1; grid-row: 1; align-self: center; }
.verdict-summary strong { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 15px; }
.verdict-summary > span:last-child { grid-column: 1 / -1; margin-top: 8px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c1bfb5; box-shadow: 0 0 0 4px rgba(193,191,181,.14); }
.status-dot.is-good { background: var(--green); box-shadow: 0 0 0 4px rgba(66,168,109,.13); }
.status-dot.is-bad { background: var(--red); box-shadow: 0 0 0 4px rgba(207,78,58,.12); }

.alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #f0c3bb; border-left: 4px solid var(--red); border-radius: 12px; background: var(--red-soft); color: #843827; font-size: 12px; }
.alert button { border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 800; }
.configuration-note { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid #cfe9e6; border-radius: 14px; background: var(--accent-soft); }
.configuration-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 13px; font-weight: 800; }
.configuration-note strong { font-size: 12px; }
.configuration-note p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.workspace-heading { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 25px 19px 30px; border-bottom: 1px solid var(--line); }
.workspace-heading h2 { margin: 5px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.028em; line-height: 1.2; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.settings-card { display: grid; align-content: start; gap: 23px; min-width: 0; padding: 30px; }
.settings-card + .settings-card { border-left: 1px solid var(--line); background: #fcfcfa; }
.settings-card h3 { margin: 6px 0 7px; font-size: 19px; letter-spacing: -.02em; }
.settings-card > div > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--line); }
.settings-status-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.settings-status-row { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 14px; background: var(--white); }
.settings-status-row strong, .settings-status-row small { display: block; }
.settings-status-row strong { font-size: 11px; }
.settings-status-row small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.settings-status-dot.is-good { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.settings-status-dot.is-bad { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.settings-status-dot.is-neutral { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 7px 18px rgba(23,23,16,.13); }
.button-primary:hover:not(:disabled) { background: #2b2b23; }
.button-secondary { border-color: var(--line-dark); background: var(--white); color: var(--ink); }
.button-secondary:hover:not(:disabled) { border-color: #aaa79d; background: #fbfbf9; }
.subtle-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }

.monitor-list { display: grid; }
.monitor-row { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(460px, .9fr) auto; align-items: center; gap: 28px; min-height: 112px; padding: 20px 24px 20px 30px; border-bottom: 1px solid var(--line); }
.monitor-row:last-child { border-bottom: 0; }
.monitor-row:hover { background: #fcfcfa; }
.monitor-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.status-orb { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #bbb9b0; box-shadow: 0 0 0 6px rgba(187,185,176,.13); }
.status-orb.status-up { background: var(--green); box-shadow: 0 0 0 6px rgba(66,168,109,.12); }
.status-orb.status-down { background: var(--red); box-shadow: 0 0 0 6px rgba(207,78,58,.11); }
.status-orb.status-warning, .status-orb.status-late { background: var(--orange); box-shadow: 0 0 0 6px rgba(189,112,47,.11); }
.monitor-identity > div { min-width: 0; }
.monitor-title { display: flex; align-items: center; gap: 9px; }
.monitor-title h3 { overflow: hidden; margin: 0; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.monitor-identity a { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font: 10px/1.4 Consolas, monospace; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.monitor-identity a:hover { color: var(--accent-dark); }
.status-pill { display: inline-flex; min-height: 23px; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.status-up { background: var(--green-soft); color: #2d8853; }
.status-pill.status-down { background: var(--red-soft); color: var(--red); }
.status-pill.status-warning, .status-pill.status-late { background: var(--orange-soft); color: var(--orange); }
.status-pill.status-new { background: var(--accent-soft); color: var(--accent-dark); }
.status-pill.status-paused { background: var(--paper); color: var(--muted); }
.monitor-metrics { display: grid; grid-template-columns: repeat(4, minmax(75px, 1fr)); gap: 18px; margin: 0; }
.monitor-metrics div { min-width: 0; }
.monitor-metrics dt { margin-bottom: 5px; color: var(--soft); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.monitor-metrics dd { overflow: hidden; margin: 0; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.text-button, .icon-action { border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 10px; font-weight: 800; }
.text-button { min-height: 34px; padding: 7px 10px; border-radius: 8px; }
.text-button:hover, .icon-action:hover { border-color: var(--line-dark); background: var(--paper); }
.icon-action { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; }
.icon-action.danger, .danger-text { color: var(--red); }

.heartbeat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.heartbeat-card { min-width: 0; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.heartbeat-card:nth-child(3n) { border-right: 0; }
.heartbeat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.heartbeat-head h3 { margin: 10px 0 0; font-size: 17px; letter-spacing: -.02em; }
.heartbeat-signal { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); font-size: 25px; font-weight: 800; }
.heartbeat-signal.status-down { background: var(--red-soft); color: var(--red); }
.heartbeat-signal.status-late { background: var(--orange-soft); color: var(--orange); }
.heartbeat-signal.status-paused { background: var(--paper); color: var(--muted); }
.heartbeat-schedule { margin: 18px 0 15px; color: var(--muted); font-size: 11px; }
.heartbeat-schedule strong { color: var(--ink); }
.heartbeat-schedule span { margin-left: 7px; color: var(--soft); }
.ping-endpoints { display: grid; gap: 9px; }
.ping-endpoint { min-width: 0; }
.ping-kind { display: block; margin: 0 0 4px 2px; color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ping-kind.is-fail { color: var(--red); }
.ping-url { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px 7px 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.ping-url-fail { border-color: #efd4cf; background: var(--red-soft); }
.ping-url code { min-width: 0; flex: 1; overflow: hidden; font: 9px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.ping-url button { padding: 5px 7px; border: 0; border-radius: 6px; background: var(--white); color: var(--accent-dark); font-size: 8px; font-weight: 800; }
.ping-url-fail button { color: var(--red); }
.heartbeat-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.heartbeat-meta small, .heartbeat-meta strong { display: block; }
.heartbeat-meta small { color: var(--soft); font-size: 9px; }
.heartbeat-meta strong { margin-top: 3px; font-size: 11px; }
.card-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.card-actions .text-button { border: 0; background: transparent; padding: 4px 0; }
.card-action-group { display: inline-flex; gap: 13px; }

.event-list { display: grid; }
.event-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 19px 28px; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-mark { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.event-mark.status-down { background: var(--red); }
.event-mark.status-up { background: var(--green); }
.event-mark.status-warning, .event-mark.status-late { background: var(--orange); }
.event-title { display: flex; align-items: center; gap: 9px; }
.event-title strong { font-size: 12px; }
.event-title span { padding: 2px 6px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: 8px; font-weight: 700; }
.event-row p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.event-row time { color: var(--soft); font-size: 9px; white-space: nowrap; }

.empty-state { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 190px; padding: 32px 36px; }
.empty-pulse { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 17px; background: var(--accent-soft); color: var(--accent-dark); font-size: 30px; font-weight: 800; }
.empty-state h3 { margin: 6px 0 5px; font-size: 18px; }
.empty-state p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.loading-rows { display: grid; gap: 1px; background: var(--line); }
.loading-rows span { display: block; height: 92px; background: linear-gradient(100deg, #fbfbfa 30%, #f1f0eb 50%, #fbfbfa 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.dialog-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 28px; background: rgba(23,23,16,.4); backdrop-filter: blur(4px); }
.dialog { width: min(620px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 30px 90px rgba(23,23,16,.24); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.025em; }
.dialog-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 22px; }
.dialog form { display: grid; gap: 16px; padding: 25px 27px 27px; }
.form-field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 10px; outline: 0; background: #fcfcfa; color: var(--ink); font-size: 12px; }
.form-field input:focus, .form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(19,168,158,.12); }
.form-field input::placeholder { color: #aaa89f; }
.form-field small { display: block; margin-top: 5px; color: var(--soft); font-size: 9px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.code-example { padding: 12px 14px; border: 1px dashed #b9ddda; border-radius: 11px; background: var(--accent-soft); }
.code-example span { display: block; margin-bottom: 5px; color: var(--accent-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.code-example code + span { margin-top: 11px; color: var(--red); }
.code-example code { display: block; overflow: hidden; color: var(--muted); font: 10px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 18px; border-top: 1px solid var(--line); }

.toast { position: fixed; z-index: 250; right: 20px; bottom: 20px; width: min(340px, calc(100% - 40px)); padding: 13px 15px; border: 1px solid var(--line-dark); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--white); box-shadow: 0 12px 35px rgba(23,23,16,.16); font-size: 11px; animation: toast-in .2s ease; }
@keyframes toast-in { from { transform: translateY(7px); opacity: 0; } }
.copy-helper { position: fixed; left: -9999px; top: 0; opacity: 0; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 82% 10%, rgba(19,168,158,.14), transparent 26rem), #f4f3ee; }
.login-card { width: min(440px, 100%); padding: 38px 36px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 24px 65px rgba(23,23,16,.1), inset 0 3px 0 var(--accent); }
.login-brand { margin: 0 0 26px; }
.login-brand .brand-mark { box-shadow: 0 0 0 3px var(--accent-soft), 0 5px 15px rgba(23,23,16,.13); }
.login-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 500; line-height: 1.2; }
.login-lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-button { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 0; border-radius: 10px; background: var(--accent); color: white; font-size: 13px; font-weight: 800; text-decoration: none; transition: filter .15s, transform .15s; }
.login-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.login-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.gitlab-mark { font-size: 16px; transform: rotate(45deg); }
.login-hint { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-hint strong { color: var(--ink); }
.login-alert { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #f3c4bb; border-radius: 12px; background: #fdeeea; color: #8a3a28; font-size: 13px; line-height: 1.5; }
.login-setup { margin-top: 6px; padding: 18px 20px; border: 1px dashed var(--line-dark); border-radius: 14px; background: var(--paper); }
.login-setup h2 { margin: 0 0 8px; font-size: 16px; }
.login-setup p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-setup code { display: block; padding: 6px; border-radius: 6px; background: rgba(23,23,16,.07); font: 11px/1.4 Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 1150px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .monitor-row { grid-template-columns: minmax(260px, 1fr) minmax(370px, .8fr); }
  .row-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -10px; }
  .heartbeat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heartbeat-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .heartbeat-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 780px) {
  .app-header { flex-wrap: wrap; gap: 8px 12px; padding: 9px 14px; }
  .brand > span:last-child, .user-copy { display: none; }
  .view-switcher { order: 3; width: 100%; gap: 1px; }
  .view-button { flex: 1; justify-content: center; padding-inline: 7px; font-size: 11px; }
  .header-account { margin-left: auto; }
  .app-shell { width: min(100% - 28px, 1420px); padding-top: 27px; }
  .hero-grid { padding-inline: 0; }
  .hero-copy h1 { font-size: 31px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats > div:last-child { border-bottom: 0; }
  .configuration-note { align-items: flex-start; }
  .workspace-heading { align-items: flex-start; flex-direction: column; padding: 19px; }
  .workspace-heading .button { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 23px 19px; }
  .settings-card + .settings-card { border-top: 1px solid var(--line); border-left: 0; }
  .settings-actions .button { width: 100%; }
  .monitor-row { grid-template-columns: 1fr; gap: 20px; padding: 22px 19px; }
  .monitor-metrics { grid-template-columns: 1fr 1fr; }
  .row-actions { grid-column: auto; justify-content: flex-start; margin-top: 0; }
  .heartbeat-grid { grid-template-columns: 1fr; }
  .heartbeat-card { border-right: 0 !important; }
  .empty-state { grid-template-columns: 1fr; padding: 28px 22px; }
  .empty-state .button { width: 100%; }
  .event-row { grid-template-columns: 10px minmax(0, 1fr); padding-inline: 18px; }
  .event-row time { grid-column: 2; }
  .dialog-backdrop { place-items: end center; padding: 12px; }
  .dialog { max-height: calc(100vh - 24px); overflow-y: auto; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .login-page { padding: 14px; }
  .login-card { padding: 30px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
