@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600&display=swap");

:root {
  --blue-950: #06304d;
  --blue-800: #075b91;
  --blue-700: #0875b8;
  --blue-600: #1495d0;
  --blue-100: #dceff6;
  --blue-50: #f1f8fb;
  --ink: #162631;
  --muted: #61717c;
  --line: #d9e3e8;
  --surface: #ffffff;
  --canvas: #f6f9fa;
  --green: #198754;
  --amber: #a86109;
  --orange: #e8590c;
  --purple: #7048e8;
  --red: #c43d45;
  --outage-red: #e40000;
  --shadow: 0 12px 36px rgba(16, 53, 74, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(220, 239, 246, 0.55), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a { color: inherit; }

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(20, 149, 208, 0.38);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  justify-self: start;
  text-decoration: none;
}

.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { color: var(--blue-950); font-size: 19px; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }

.brand-mark {
  align-items: center;
  display: flex;
  height: 52px;
  width: 127px;
}

.brand-mark img {
  display: block;
  height: 50px;
  width: auto;
}

.site-header nav { align-items: stretch; align-self: stretch; display: flex; }
.site-header nav a { align-items: center; color: var(--muted); display: flex; font-size: 13px; font-weight: 600; padding: 0 18px; position: relative; text-decoration: none; }
.site-header nav a + a::before { background: #bdcdd5; content: ""; height: 28px; left: 0; position: absolute; top: calc(50% - 14px); width: 1px; }
.site-header nav a:hover { background: var(--blue-50); color: var(--blue-800); }
.site-header nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-950); font-weight: 700; }
.site-header nav a[aria-current="page"]::after { background: var(--blue-700); bottom: 0; content: ""; height: 4px; left: 10px; position: absolute; right: 10px; }

.user-chip { align-items: center; display: flex; gap: 9px; justify-self: end; text-decoration: none; }
.user-chip > span:first-child { align-items: center; background: var(--blue-100); border-radius: 50%; color: var(--blue-800); display: flex; font-size: 11px; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.user-chip .user-details { display: grid; gap: 2px; line-height: 1.1; }
.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 9px; font-weight: 600; white-space: nowrap; }

.page-shell { margin: 0 auto; max-width: 1500px; padding: 33px clamp(20px, 5vw, 72px) 52px; }

.announcements { display: grid; gap: 8px; margin-bottom: 34px; }
.announcement-link { color: inherit; display: block; text-decoration: none; }
.announcement-link:focus-visible { border-radius: 5px; box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.3); outline: none; }
.announcement-link:hover .announcement-title strong { color: var(--blue-800); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.announcement { align-items: start; background: #eef8fc; border: 1px solid #b9dfec; border-left: 4px solid var(--blue-600); border-radius: 5px; display: grid; gap: 13px; grid-template-columns: auto 1fr; padding: 15px 17px; }
.announcement-symbol { align-items: center; background: var(--blue-700); border-radius: 50%; color: white; display: flex; font-size: 12px; font-weight: 700; height: 23px; justify-content: center; line-height: 1; width: 23px; }
.announcement-clock { border: 2px solid currentColor; border-radius: 50%; display: block; height: 14px; position: relative; width: 14px; }
.announcement-clock::before { background: currentColor; border-radius: 1px; content: ""; height: 4px; left: 50%; position: absolute; top: 2px; transform: translateX(-50%); width: 2px; }
.announcement-clock::after { background: currentColor; border-radius: 1px; content: ""; height: 2px; left: 50%; position: absolute; top: 50%; transform: rotate(30deg); transform-origin: left center; width: 4px; }
.announcement-title { align-items: baseline; display: flex; gap: 10px; }
.announcement-title span { color: var(--blue-700); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.announcement-title strong { font-size: 13px; }
.announcement p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 5px 0 0; }
.announcement-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 4px 12px; line-height: 1.4; margin-top: 5px; }
.announcement-meta span + span::before { content: "·"; margin-right: 12px; }
.announcement-page .announcement-title { align-items: start; display: grid; gap: 4px; }
.announcement-page .announcement-title h1 { font-size: 26px; line-height: 1.2; margin: 0; }
.announcement-body { white-space: pre-line; }
.announcement-page .announcement-meta { border-top: 1px solid rgba(97, 113, 124, 0.25); margin-top: 17px; padding-top: 12px; }
.created-by { color: var(--muted); }
.announcement-maintenance { background: #f5f1fe; border-color: #d9cdfa; border-left-color: var(--purple); }
.announcement-maintenance .announcement-symbol { background: var(--purple); }
.announcement-maintenance .announcement-title span { color: var(--purple); }
.announcement-warning { background: #fff3e8; border-color: #f6c9a0; border-left-color: var(--orange); }
.announcement-warning .announcement-symbol { background: var(--orange); }
.announcement-warning .announcement-title span { color: var(--orange); }
.announcement-outage { background: #ffdcdd; border-color: #f2a6aa; border-left-color: var(--outage-red); }
.announcement-outage .announcement-symbol { background: var(--outage-red); }
.announcement-outage .announcement-title span { color: var(--outage-red); }

.intro { align-items: flex-start; display: flex; gap: 48px; justify-content: space-between; }
.eyebrow { color: var(--blue-700); font-size: 11px; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; }
h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2 { font-family: "Source Serif 4", serif; }
.intro-heading { color: var(--blue-950); font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0; }
.search { display: grid; gap: 8px; margin-left: auto; width: 630px; max-width: 100%; }
.search span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.search-wrapper { position: relative; }
.search input { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-height: 50px; padding: 0 16px; width: 100%; }
.search input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(20, 149, 208, 0.1); outline: none; }

.search-count { color: var(--muted); font-size: 11px; font-weight: 600; pointer-events: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1; }
.search input { padding-right: 160px; }

.search-dropdown { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); display: grid; left: 0; max-height: 380px; overflow-y: auto; position: absolute; top: calc(100% + 4px); width: 100%; z-index: 30; }
.search-dropdown[hidden] { display: none; }
.search-empty { color: var(--muted); font-size: 13px; padding: 22px 16px; text-align: center; }
.suggestion { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; display: flex; gap: 12px; padding: 12px 16px; text-align: left; width: 100%; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.active { background: var(--blue-50); }
.suggestion-icon { align-items: center; background: linear-gradient(145deg, var(--blue-100), #f8fcfd); border: 1px solid #c4e2ed; border-radius: 6px; color: var(--blue-800); display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 700; height: 36px; justify-content: center; min-width: 36px; padding: 0 6px; }
.suggestion-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.suggestion-title { color: var(--blue-950); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-fields { display: flex; flex-wrap: wrap; gap: 5px; }
.match-pill { border: 1px solid; border-radius: 3px; font-size: 9px; font-weight: 700; line-height: 20px; padding: 0 7px; text-transform: uppercase; }
.match-title { background: var(--blue-50); border-color: #c9e4ee; color: var(--blue-800); }
.match-description { background: #f1f8fb; border-color: #d4e8f0; color: var(--muted); }
.match-account { background: var(--blue-950); border-color: var(--blue-950); color: white; }
.match-vpn { background: #fff8e8; border-color: #eed59b; color: #865207; }

.service-card.search-highlight { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.18), var(--shadow); }

.filter-row { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--blue-600), var(--line) 35%, transparent) 1; display: flex; gap: 6px; margin: 34px 0 32px; overflow-x: auto; padding-bottom: 16px; }
.filter { background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; min-height: 34px; padding: 0 13px; white-space: nowrap; }
.filter:hover { background: var(--blue-50); color: var(--blue-800); }
.filter.active { background: var(--blue-950); color: white; }

.service-section { margin-top: 48px; }
.section-heading { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { font-size: 24px; margin: 0; }
.section-heading span { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.service-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; min-height: 292px; padding: 20px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.service-card:hover { border-color: #acd4e5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-topline { align-items: start; display: flex; justify-content: space-between; margin-bottom: 20px; }
.service-icon { align-items: center; background: linear-gradient(145deg, var(--blue-100), #f8fcfd); border: 1px solid #c4e2ed; border-radius: 6px; color: var(--blue-800); display: inline-flex; font-size: 11px; font-weight: 700; height: 40px; justify-content: center; min-width: 40px; padding: 0 7px; }
.service-icon.large { font-size: 16px; height: 64px; min-width: 64px; }
.favorite { background: transparent; border: 0; color: #85939b; cursor: pointer; font-size: 23px; height: 34px; line-height: 1; padding: 0; width: 34px; }
.favorite.selected { color: var(--blue-700); }
.service-title-row { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.service-card h3 { font-size: 16px; margin: 0; }
.service-card h3 a { text-decoration: none; }
.service-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 16px; }
.status { align-items: center; color: var(--muted); display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 700; gap: 5px; text-transform: uppercase; }
.status i { background: #8b9aa2; border-radius: 50%; display: block; height: 7px; width: 7px; }
.status-operational { color: var(--green); }
.status-operational i { background: var(--green); box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12); }
.status-unavailable { color: var(--red); }
.status-unavailable i { background: var(--red); }
.status-maintenance { color: var(--amber); }
.status-maintenance i { background: var(--amber); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { border: 1px solid; border-radius: 4px; font-size: 9px; font-weight: 700; line-height: 24px; max-width: 100%; overflow: hidden; padding: 0 8px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.badge-auth { display: inline-flex; gap: 4px; }
.badge-icon { height: 11px; width: 11px; object-fit: contain; }
.badge-vpn { background: #fff0f0; border-color: #f5c2c2; color: #a83333; }
.badge-legacy { background: #f3f4f5; border-color: #d8dcde; color: #606b70; }
.card-rows { display: flex; flex-direction: column; margin-top: auto; min-width: 0; }
.card-row { min-width: 0; }
.card-row + .card-row { margin-top: 12px; }
.card-row-heading { align-items: center; display: flex; justify-content: center; min-height: 9px; position: relative; }
.card-row-heading::before { background: linear-gradient(90deg, rgba(154, 201, 216, 0) 0%, rgba(154, 201, 216, 0.05) 5%, rgba(154, 201, 216, 0.12) 10%, rgba(154, 201, 216, 0.24) 15%, rgba(154, 201, 216, 0.42) 20%, rgba(154, 201, 216, 0.75) 25%, rgba(154, 201, 216, 1) 30%, rgba(154, 201, 216, 1) 70%, rgba(154, 201, 216, 0.75) 75%, rgba(154, 201, 216, 0.42) 80%, rgba(154, 201, 216, 0.24) 85%, rgba(154, 201, 216, 0.12) 90%, rgba(154, 201, 216, 0.05) 95%, rgba(154, 201, 216, 0) 100%); content: ""; height: 1px; left: 0; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.card-row-heading span { background: var(--surface); color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0.4em; line-height: 1; padding: 0 10px; position: relative; text-transform: uppercase; white-space: nowrap; z-index: 1; }
.card-row-access .badges { margin-top: 10px; }
.service-announcement-badges { display: flex; padding-bottom: 0; padding-top: 10px; }
.service-announcement-link { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; text-decoration: none; width: 100%; }
.service-announcement-link .badge:hover { filter: brightness(0.97); }
.badge-announcement { align-items: center; border-radius: 999px; display: inline-flex; gap: 4px; line-height: 1; padding: 3px 7px; }
.announcement-badge-symbol { align-items: center; background: var(--announcement-badge-color); border-radius: 50%; color: white; display: inline-flex; font-size: 13px; font-weight: 800; height: 18px; justify-content: center; line-height: 18px; min-width: 18px; text-transform: none; }
.announcement-badge-clock { border: 1px solid currentColor; border-radius: 50%; display: block; height: 12px; position: relative; width: 12px; }
.announcement-badge-clock::before { background: currentColor; content: ""; height: 4px; left: 50%; position: absolute; top: 2px; transform: translateX(-50%); width: 1px; }
.announcement-badge-clock::after { background: currentColor; content: ""; height: 1px; left: 50%; position: absolute; top: 50%; transform: rotate(30deg); transform-origin: left center; width: 4px; }
.announcement-badge-symbol-warning,
.announcement-badge-symbol-information { font-size: 0; position: relative; }
.announcement-badge-symbol-warning::before,
.announcement-badge-symbol-warning::after,
.announcement-badge-symbol-information::before,
.announcement-badge-symbol-information::after { background: white; border-radius: 2px; content: ""; left: 50%; position: absolute; transform: translateX(-50%); }
.announcement-badge-symbol-warning::before { height: 7px; top: 4px; width: 2px; }
.announcement-badge-symbol-warning::after { bottom: 3px; height: 2px; width: 2px; }
.announcement-badge-symbol-information::before { bottom: 3px; height: 7px; width: 2px; }
.announcement-badge-symbol-information::after { height: 2px; top: 3px; width: 2px; }
.announcement-symbol-warning,
.announcement-symbol-information { font-size: 0; position: relative; }
.announcement-symbol-warning::before,
.announcement-symbol-warning::after,
.announcement-symbol-information::before,
.announcement-symbol-information::after { background: white; border-radius: 2px; content: ""; left: 50%; position: absolute; transform: translateX(-50%); }
.announcement-symbol-warning::before { height: 8px; top: 5px; width: 2px; }
.announcement-symbol-warning::after { bottom: 5px; height: 2px; width: 2px; }
.announcement-symbol-information::before { bottom: 5px; height: 8px; width: 2px; }
.announcement-symbol-information::after { height: 2px; top: 5px; width: 2px; }
.announcement-symbol-mark-outage { font-size: 13px; }
.badge-announcement-information { --announcement-badge-color: var(--blue-700); background: #eef8fc; border-color: #b9dfec; color: var(--blue-700); }
.badge-announcement-maintenance { --announcement-badge-color: var(--purple); background: #f5f1fe; border-color: #d9cdfa; color: var(--purple); }
.badge-announcement-warning { --announcement-badge-color: var(--orange); background: #fff3e8; border-color: #f6c9a0; color: var(--orange); }
.badge-announcement-outage { --announcement-badge-color: var(--outage-red); background: #ffdcdd; border-color: #f2a6aa; color: var(--outage-red); }
.card-actions { align-items: center; display: flex; justify-content: space-between; min-height: 35px; padding-top: 10px; }
.text-link,
.launch-link { color: var(--blue-800); font-size: 12px; font-weight: 700; text-decoration: none; }
.launch-link { align-items: center; display: flex; gap: 6px; }

.support-band { align-items: center; background: var(--blue-950); border-left: 5px solid var(--blue-600); border-radius: 6px; color: white; display: flex; justify-content: space-between; margin-top: 64px; padding: 30px 34px; }
.support-band .eyebrow { color: #83d5f2; }
.support-band h2 { font-size: 24px; margin-bottom: 6px; }
.support-band p:last-child { color: #c9dbe4; margin-bottom: 0; }
.support-action { background: white; border-radius: 5px; color: var(--blue-950); flex: 0 0 auto; font-size: 12px; font-weight: 700; margin-left: 30px; padding: 13px 16px; text-decoration: none; }

.back-link { color: var(--blue-800); display: inline-block; font-size: 12px; font-weight: 700; margin-bottom: 36px; text-decoration: none; }
.account-page { margin: 0 auto; max-width: 980px; }
.account-heading { margin-bottom: 38px; max-width: 700px; }
.account-heading h1 { color: var(--blue-950); font-size: 42px; margin: 0 0 10px; }
.account-heading > p:last-child { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.account-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.account-identity { align-items: center; display: flex; gap: 16px; }
.account-avatar { align-items: center; background: var(--blue-100); border: 1px solid #c4e2ed; border-radius: 50%; color: var(--blue-800); display: inline-flex; flex: 0 0 auto; font-size: 17px; font-weight: 700; height: 64px; justify-content: center; width: 64px; }
.account-identity h2 { font-family: "Manrope", sans-serif; font-size: 19px; margin: 0 0 5px; }
.account-identity p { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.account-details { margin: 27px 0 0; }
.account-details div { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1fr); padding: 13px 0; }
.account-details dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.account-details dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.account-preferences { display: grid; gap: 22px; }
.account-preferences .section-heading { margin-bottom: 0; }
.account-preferences .section-heading h2 { font-size: 21px; }
.account-field { color: var(--muted); display: grid; font-size: 10px; font-weight: 700; gap: 8px; text-transform: uppercase; }
.account-field-help { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; text-transform: none; }
.account-logout { align-items: center; display: flex; margin: 16px auto 0; text-decoration: none; width: max-content; }
.detail-header { align-items: start; display: grid; gap: 24px; grid-template-columns: auto 1fr; max-width: 900px; }
.detail-header h1 { font-size: 46px; margin: 0; }
.detail-header p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 18px; }
.detail-layout { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) 300px; margin-top: 58px; }
.detail-main h2 { font-size: 21px; margin: 34px 0 15px; }
.detail-main h2:first-child { margin-top: 0; }
.link-list { border-top: 1px solid var(--line); }
.link-list a { align-items: center; border-bottom: 1px solid var(--line); color: var(--blue-800); display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; padding: 16px 2px; text-decoration: none; }
.link-list a:hover { background: var(--blue-50); padding-left: 10px; padding-right: 10px; }
.detail-aside { border-left: 1px solid var(--line); display: grid; gap: 0; padding-left: 26px; }
.detail-aside > div { border-bottom: 1px solid var(--line); display: grid; gap: 5px; padding: 15px 0; }
.detail-aside > div:first-child { padding-top: 0; }
.detail-aside strong { font-size: 12px; }
.detail-aside small { color: var(--muted); }
.meta-label { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.support-band.compact { margin-top: 56px; }

.admin-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 38px; }
.admin-heading h1 { font-size: 42px; margin-bottom: 0; }
.admin-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.health-heading { align-items: center; }
.health-grid { align-items: start; display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; padding: 22px; }
.health-panel-wide { grid-column: 1 / -1; }
.health-panel-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; margin-bottom: 18px; padding-bottom: 13px; }
.health-panel-heading h2 { color: var(--ink); font-size: 17px; margin: 0; }
.health-state { border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 4px 8px; text-transform: uppercase; }
.health-state-ok { background: #e7f5ed; border-color: #b8dfc8; color: #19713b; }
.health-state-warning { background: #fff3e8; border-color: #f6c9a0; color: #a8510a; }
.health-state-error { background: #fff0f0; border-color: #f3c4c4; color: #a43737; }
.health-state-not-configured { background: #f2f5f6; border-color: #d4dfe2; color: var(--muted); }
.health-facts { display: grid; gap: 0; margin: 0; }
.health-facts > div { border-bottom: 1px solid #e7eff2; display: grid; gap: 16px; grid-template-columns: max-content minmax(0, 1fr); padding: 9px 0; }
.health-facts > div:last-child { border-bottom: 0; }
.health-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.health-facts dd { font-size: 12px; margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.health-subheading { border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; margin: 20px 0 0; padding-bottom: 9px; }
.health-table { display: grid; }
.health-table-row { border-bottom: 1px solid #e7eff2; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) max-content; padding: 9px 0; }
.health-table-row span { font-size: 11px; overflow-wrap: anywhere; }
.health-table-row strong { font-size: 11px; }
.health-table-header span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.admin-layout { align-items: start; display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.77fr); }
.slack-webhook-panel { grid-column: 1; grid-row: 1; }
.slack-settings-panel { grid-column: 2; grid-row: 2; }
.slack-test-panel { grid-column: 2; grid-row: 1; }
.slack-delete-panel { grid-column: 1; grid-row: 2; }
.category-detail-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-panel > .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.admin-service-list { display: grid; }
.admin-service-list > a, .admin-service-row > a { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 3px; text-decoration: none; }
.admin-service-list > a:hover, .admin-service-row > a:hover { background: var(--blue-50); padding-left: 8px; padding-right: 8px; }
.admin-service-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.admin-service-row > a { border-bottom: 0; min-width: 0; }
.admin-service-row > .admin-delete-form { padding-right: 3px; }
.admin-service-list strong, .admin-service-list small { display: block; }
.admin-service-list strong { font-size: 12px; }
.admin-service-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.admin-service-list .service-icon { height: 34px; min-width: 34px; }
.admin-service-list b { color: var(--blue-700); }
.admin-category-list { display: grid; }
.admin-category-list .service-category-sort-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 4px; grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 12px 3px; }
.admin-category-list .service-category-sort-item.dragging { opacity: 0.5; }
.admin-category-row { align-items: center; display: flex; gap: 16px; justify-content: space-between; min-width: 0; padding: 5px 0; text-decoration: none; }
.admin-category-row:hover { background: var(--blue-50); padding-left: 8px; padding-right: 8px; }
.admin-category-row strong { font-size: 12px; }
.category-actions { align-items: center; color: var(--muted); display: flex; flex: 0 0 auto; font-size: 10px; gap: 14px; }
.category-sort-index { color: var(--muted); font-size: 11px; font-weight: 700; justify-self: center; min-width: 20px; text-align: right; }
.category-sort-handle { background: transparent; border: 0; color: var(--muted); cursor: grab; font-size: 14px; letter-spacing: -2px; line-height: 1; padding: 6px 8px; }
.category-sort-handle:active { cursor: grabbing; }
.category-reorder-form { margin-top: 14px; }
.category-reorder-form .primary-button { justify-self: start; }
.admin-delete-form { align-items: center; display: flex; justify-content: center; }
.admin-delete-form .icon-button { flex: 0 0 auto; }
.admin-notice { border: 1px solid; border-radius: 6px; margin: -16px 0 28px; padding: 12px 15px; }
.admin-notice p { font-size: 12px; line-height: 1.5; margin: 0; }
.admin-notice ul { display: flex; flex-wrap: wrap; gap: 5px 16px; list-style: none; margin: 7px 0 0; padding: 0; }
.admin-notice a { color: inherit; font-weight: 700; }
.admin-notice-success { background: #eef8f1; border-color: #b9dfc3; color: #23683a; }
.admin-notice-error { background: #fff0f0; border-color: #f3c4c4; color: #a43737; }
.admin-form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 16px; padding: 22px; }
.admin-form.wide { max-width: 900px; }
.announcement-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.announcement-form-edit { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; }
.announcement-form-edit > label:first-of-type { grid-column: 1; }
.announcement-form-edit > label:nth-of-type(2) { grid-column: 1 / -1; }
.announcement-form-edit > label:nth-of-type(3) { grid-column: 2; grid-row: 1; }
.announcement-form-edit .service-field { grid-column: 1 / -1; }
.announcement-form-edit textarea { min-height: 150px; }
.announcement-form-actions { align-items: center; display: flex; gap: 10px; }
.announcement-form-actions .quiet-button { text-decoration: none; }
.announcement-admin-body { color: inherit; text-decoration: none; }
.announcement-admin-body:hover strong { color: var(--blue-800); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.back-link { color: var(--blue-800); display: inline-block; font-size: 11px; font-weight: 700; margin-bottom: 9px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.announcement-edit-heading p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.admin-form label { align-content: start; color: var(--muted); display: grid; font-size: 10px; font-weight: 700; gap: 7px; text-transform: uppercase; }
.admin-form input, .admin-form textarea, .admin-form select { background: white; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); min-height: 42px; padding: 10px; text-transform: none; width: 100%; }
.admin-form textarea { resize: vertical; }
.character-counter { justify-self: end; }
.admin-form small { color: var(--muted); font-size: 10px; font-weight: 500; text-transform: none; }
.date-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.date-presets button { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600; padding: 4px 8px; text-transform: none; }
.date-presets button:hover { border-color: var(--blue-800); color: var(--blue-800); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }

/* Searchable chip multi-select for announcement service targeting. */
.service-field { align-content: start; display: grid; gap: 7px; min-width: 0; }
.form-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.dropdown-select-control, .service-picker-control {
  align-items: center; background: linear-gradient(135deg, #ffffff 0%, #f5fbfd 100%);
  border: 1px solid #b8d1dc; border-radius: 8px; min-height: 42px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.dropdown-select { min-width: 0; position: relative; }
.dropdown-select-native { height: 1px; opacity: 0; overflow: hidden; pointer-events: none; position: absolute; width: 1px; }
.dropdown-select-control {
  color: var(--ink); cursor: pointer; display: flex; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 600;
  gap: 7px; padding: 5px 9px; text-align: left; width: 100%;
}
.dropdown-select-control:hover, .service-picker-control:hover { border-color: #75abc0; }
.dropdown-select-control:focus-visible, .service-picker-control:focus-within {
  border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.14);
}
.form-chevron {
  border-bottom: 3px solid var(--blue-800); border-right: 3px solid var(--blue-800); height: 7px; transform: rotate(45deg); width: 7px;
}
.dropdown-select-control .form-chevron { margin: 0 3px 4px auto; }
.dropdown-select-label { font-size: 12px; font-weight: 600; line-height: normal; }
.severity-mark {
  align-items: center; border-radius: 7px; display: inline-flex; flex: 0 0 25px; font-size: 16px; font-weight: 800; height: 25px; justify-content: center; line-height: 1; width: 25px;
}
.severity-information { background: #e8f5f8; color: #0875b8; }
.severity-maintenance { background: #f5f1fe; color: var(--purple); }
.severity-warning { background: #fff0dc; color: #b95b0d; }
.severity-outage { background: #fde7e7; color: #c43d45; }
.severity-clock { border: 2px solid currentColor; border-radius: 50%; height: 12px; position: relative; width: 12px; }
.severity-clock::after { background: currentColor; content: ""; height: 4px; left: 5px; position: absolute; top: 2px; transform: rotate(-25deg); transform-origin: bottom; width: 2px; }
.dropdown-select-menu {
  background: #ffffff; border: 1px solid #b8d1dc; border-radius: 8px; box-shadow: 0 16px 35px rgba(16, 53, 74, 0.16);
  left: 0; margin-top: 6px; overflow: hidden; padding: 7px; position: absolute; right: 0; z-index: 20;
}
.timezone-menu { max-height: 360px; overflow-y: auto; }
.timezone-menu::-webkit-scrollbar { width: 8px; }
.timezone-menu::-webkit-scrollbar-thumb { background: #b8d1dc; border: 2px solid white; border-radius: 8px; }
.dropdown-select-heading { align-items: baseline; border-bottom: 1px solid #e7eff2; display: flex; justify-content: space-between; padding: 4px 8px 8px; }
.dropdown-select-heading span { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.dropdown-select-heading small { color: var(--muted); font-size: 10px; text-transform: none; }
.dropdown-select-search { border-bottom: 1px solid #e7eff2; padding: 8px; }
.dropdown-select-search input { background: var(--blue-50); border: 1px solid #b8d1dc; border-radius: 5px; color: var(--ink); font-size: 11px; min-height: 34px; padding: 7px 9px; width: 100%; }
.dropdown-select-search input:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.1); outline: 0; }
.dropdown-select-option {
  align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--ink); cursor: pointer; display: grid;
  font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 600; gap: 9px; grid-template-columns: 27px minmax(0, 1fr); margin: 2px 0; min-height: 39px; padding: 5px 8px; text-align: left; width: 100%;
}
.timezone-menu .dropdown-select-option { grid-template-columns: minmax(0, 1fr); }
.dropdown-select-option[hidden] { display: none; }
.dropdown-select-option:hover, .dropdown-select-option.is-selected { background: #e8f5f8; color: var(--blue-950); }
.dropdown-select-option:focus-visible { box-shadow: inset 0 0 0 2px rgba(20, 149, 208, 0.35); outline: 0; }
.dropdown-select-empty { color: var(--muted); font-size: 11px; padding: 14px 8px; text-align: center; }
.service-picker { min-width: 0; position: relative; }
.service-picker-control {
  cursor: text; display: flex; gap: 7px; padding: 5px 9px;
}
.service-picker-target {
  align-items: center; background: var(--blue-800); border-radius: 6px; color: white; display: inline-flex;
  flex: 0 0 25px; font-size: 17px; height: 25px; justify-content: center; line-height: 1;
}
.service-picker-chips { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 4px; min-width: 0; }
.service-picker-input {
  background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ink);
  flex: 1 1 55px; font-size: 12px; margin: 0 !important; min-height: 27px !important; min-width: 45px;
  padding: 3px 0 !important; text-transform: none; width: auto !important;
}
.service-picker-input::placeholder { color: #526a76; font-weight: 600; }
.service-picker-control .form-chevron { flex: 0 0 7px; height: 7px; margin: 0 3px 4px 2px; width: 7px; }
.service-picker-chip {
  align-items: center; background: #e0f3f8; border: 1px solid #a8d8e5; border-radius: 5px; color: #075b91;
  display: inline-flex; font-size: 10px; font-weight: 700; gap: 5px; line-height: 1.2; max-width: 100%; padding: 5px 6px 5px 8px; text-transform: none;
}
.service-picker-chip::before { background: #e8590c; border-radius: 50%; content: ""; flex: 0 0 5px; height: 5px; }
.service-picker-chip button {
  align-items: center; background: transparent; border: 0; border-radius: 3px; color: #3b8399; cursor: pointer;
  display: inline-flex; font-size: 14px; height: 15px; justify-content: center; line-height: 1; padding: 0; text-transform: none; width: 15px;
}
.service-picker-chip button:hover { background: #c5e8ef; color: var(--red); }
.service-picker-menu {
  background: #ffffff; border: 1px solid #b8d1dc; border-radius: 8px; box-shadow: 0 16px 35px rgba(16, 53, 74, 0.16);
  left: 0; margin-top: 6px; max-height: 290px; overflow-y: auto; padding: 7px; position: absolute; right: 0; z-index: 20;
}
.service-picker-menu::-webkit-scrollbar { width: 8px; }
.service-picker-menu::-webkit-scrollbar-thumb { background: #b8d1dc; border: 2px solid white; border-radius: 8px; }
.service-picker-menu-heading { align-items: baseline; border-bottom: 1px solid #e7eff2; display: flex; justify-content: space-between; padding: 4px 8px 8px; }
.service-picker-menu-heading span { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.service-picker-menu-heading small { color: var(--muted); font-size: 10px; text-transform: none; }
.admin-form .service-picker-option {
  align-items: center; background: transparent; border: 0; border-radius: 6px; color: var(--ink); cursor: pointer; display: grid;
  font-size: 12px; font-weight: 600; gap: 9px; grid-template-columns: 19px 27px minmax(0, 1fr); margin: 2px 0; min-height: 39px; padding: 5px 8px; text-align: left; text-transform: none;
}
.service-picker-option:hover { background: #f0f8fa; }
.service-picker-option.is-selected { background: #e8f5f8; color: var(--blue-950); }
.admin-form .service-picker-option.service-picker-all { border-bottom: 1px solid #e7eff2; border-radius: 6px 6px 8px 8px; font-weight: 800; grid-template-columns: 27px minmax(0, 1fr); margin-bottom: 5px; }
.admin-form .service-picker-option.service-picker-all .service-picker-check { display: none; }
.service-picker-option.is-hidden { display: none; }
.service-picker-option input { height: 1px; margin: -1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.service-picker-check { border: 1.5px solid #a8bdc6; border-radius: 5px; display: inline-block; height: 18px; position: relative; width: 18px; }
.service-picker-option input:focus-visible + .service-picker-check { box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.2); }
.service-picker-option input:checked + .service-picker-check { background: var(--blue-700); border-color: var(--blue-700); }
.service-picker-option input:checked + .service-picker-check::after { border-bottom: 2px solid white; border-right: 2px solid white; content: ""; height: 8px; left: 5px; position: absolute; top: 2px; transform: rotate(43deg); width: 4px; }
.service-picker-option-mark { align-items: center; background: #e9f5f7; border-radius: 7px; color: #0875b8; display: inline-flex; font-size: 10px; font-weight: 800; height: 27px; justify-content: center; line-height: 1; overflow: hidden; width: 27px; }
.service-picker-all-mark { background: #fff0dc; color: #b95b0d; font-size: 16px; }
.service-picker-option:nth-of-type(3n + 1) .service-picker-option-mark { background: #e8f5f8; color: #0875b8; }
.service-picker-option:nth-of-type(3n + 2) .service-picker-option-mark { background: #fff0dc; color: #b95b0d; }
.service-picker-option:nth-of-type(3n + 3) .service-picker-option-mark { background: #e7f5ed; color: #198754; }
.check-row { display: grid; gap: 12px; }
.check-row input { min-height: auto; width: auto; }
.service-editor-section { border-top: 1px solid var(--line); display: grid; gap: 10px; padding-top: 16px; }
.service-editor-heading { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.service-editor-heading h2 { color: var(--ink); font-size: 17px; margin: 0 0 3px; text-transform: none; }
.service-editor-heading small { color: var(--muted); font-size: 10px; }
.service-editor-list { display: grid; gap: 8px; }
.service-editor-row { align-items: end; background: #f7fbfc; border: 1px solid #d8e7eb; border-radius: 6px; display: grid; gap: 9px; grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.5fr) auto auto; padding: 10px; }
.service-editor-row-simple { grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.5fr) auto; }
.service-editor-row .primary-choice, .no-primary-choice { align-items: center; display: flex; flex-direction: row; gap: 6px; text-transform: none; white-space: nowrap; }
.service-editor-row .primary-choice input, .no-primary-choice input { min-height: auto; width: auto; }
.service-editor-row .icon-button { margin-bottom: 7px; }
.no-primary-choice { color: var(--muted); font-size: 10px; font-weight: 600; justify-self: start; }
.admin-form .toggle-field { align-items: center; color: var(--muted); cursor: pointer; display: grid; font-size: 10px; font-weight: 700; gap: 8px 16px; grid-template-columns: auto minmax(0, 1fr); text-transform: uppercase; }
.toggle-field-copy { display: grid; gap: 3px; grid-column: 2; grid-row: 1; min-width: 0; }
.toggle-field-description { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; text-transform: none; }
.toggle-field .toggle-input { height: 1px; margin: -1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.toggle-field .toggle-switch { flex-shrink: 0; grid-column: 1; grid-row: 1; padding: 0 9px; width: 60px; }
.toggle-field .toggle-switch::after { content: "On"; letter-spacing: 0; }
.toggle-field .toggle-input:not(:checked) + .toggle-switch::after { content: "Off"; }
.toggle-field .toggle-input:not(:checked) + .toggle-switch {
  background: linear-gradient(180deg, #f7fafb 0%, var(--line) 100%); border-color: #c5d3da;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(97, 113, 124, 0.1), 0 1px 2px rgba(16, 53, 74, 0.07);
  color: var(--muted); flex-direction: row-reverse;
}
.toggle-field .toggle-input:focus-visible + .toggle-switch { outline: 3px solid rgba(20, 149, 208, 0.2); outline-offset: 2px; }
.primary-button { background: var(--blue-800); border: 0; border-radius: 4px; color: white; cursor: pointer; font-size: 11px; font-weight: 700; justify-self: start; min-height: 40px; padding: 0 16px; }
.quiet-button { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 10px; padding: 7px 9px; }
.slack-send-form { justify-self: center; }
.slack-send-button.is-sent { color: var(--green); }
.slack-send-button.is-sent:hover { background: #e7f5ed; border-color: #b8dfc8; color: #19713b; }
.slack-send-button.is-failed { color: var(--red); }
.slack-send-button.is-failed:hover { background: #fff0f0; border-color: #f3c4c4; color: #a43737; }
.slack-test-heading { align-items: center; }
.slack-test-summary { align-items: flex-end; display: grid; gap: 4px; justify-items: end; }
.slack-test-status { align-items: center; border: 1px solid; border-radius: 999px; display: inline-flex; font-size: 10px; font-weight: 800; gap: 6px; padding: 4px 8px; text-transform: uppercase; }
.slack-test-status i { background: currentColor; border-radius: 50%; display: block; height: 6px; width: 6px; }
.slack-test-status-success { background: #e7f5ed; border-color: #b8dfc8; color: #19713b; }
.slack-test-status-failed { background: #fff0f0; border-color: #f3c4c4; color: #a43737; }
.slack-test-status-idle { background: #f2f5f6; border-color: #d4dfe2; color: var(--muted); }
.section-heading .slack-test-status-success { color: #19713b; }
.section-heading .slack-test-status-failed { color: #a43737; }
.section-heading .slack-test-status-idle { color: var(--muted); }
.slack-test-time { color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.announcement-admin-list { display: grid; gap: 0 12px; grid-template-columns: max-content minmax(0, 1fr) auto auto auto auto auto; margin-top: 20px; }
.announcement-admin-head { color: var(--muted); display: grid; font-size: 9px; font-weight: 700; gap: 0 12px; grid-column: 1 / -1; grid-template-columns: subgrid; padding: 0 2px 9px; text-transform: uppercase; }
.announcement-admin-head span:last-child { justify-self: center; }
.announcement-admin-list:not(.archived) .announcement-admin-head span:nth-child(3),
.announcement-admin-list:not(.archived) .announcement-admin-head span:nth-child(4),
.announcement-admin-list:not(.archived) .announcement-admin-head span:nth-child(5) { justify-self: center; }
.announcement-admin-list article { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 0 12px; grid-column: 1 / -1; grid-template-columns: subgrid; padding: 13px 2px; }
.announcement-admin-list .badge { align-items: center; display: inline-flex; gap: 5px; justify-content: flex-start; justify-self: start; line-height: 1; padding: 4px 8px; }
.announcement-admin-list .badge-symbol { font-size: 10px; font-weight: 700; line-height: 1; }
.announcement-admin-list .badge-information { background: #eef8fc; border-color: #b9dfec; color: var(--blue-700); }
.announcement-admin-list .badge-maintenance { background: #f5f1fe; border-color: #d9cdfa; color: var(--purple); }
.announcement-admin-list .badge-maintenance .badge-symbol { font-size: 0; }
.announcement-admin-list .badge-clock { border: 2px solid currentColor; border-radius: 50%; display: block; height: 10px; position: relative; width: 10px; }
.announcement-admin-list .badge-clock::before { background: currentColor; border-radius: 1px; content: ""; height: 3px; left: 50%; position: absolute; top: 1px; transform: translateX(-50%); width: 1.5px; }
.announcement-admin-list .badge-clock::after { background: currentColor; border-radius: 1px; content: ""; height: 1.5px; left: 50%; position: absolute; top: 50%; transform: rotate(30deg); transform-origin: left center; width: 3px; }
.announcement-admin-list .badge-warning { background: #fff3e8; border-color: #f6c9a0; color: var(--orange); }
.announcement-admin-list .badge-outage { background: #ffdcdd; border-color: #f2a6aa; color: var(--outage-red); }
.announcement-admin-list .announcement-admin-body { align-items: start; display: grid; gap: 4px; min-width: 0; }
.announcement-admin-list .announcement-admin-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-admin-list strong { font-size: 12px; }
.announcement-admin-list small { color: var(--muted); display: grid; font-size: 9px; gap: 4px; line-height: 1.4; }
.announcement-admin-list .announcement-ends::before { content: none; margin-right: 0; }
.announcement-toggle-form { justify-self: center; }
.announcement-action-form { justify-self: center; }
.icon-button { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; display: inline-flex; height: 28px; justify-content: center; padding: 0; transition: background 120ms ease, border-color 120ms ease, color 120ms ease; width: 28px; }
.icon-button:hover { background: var(--blue-50); border-color: var(--blue-800); color: var(--blue-800); }
.icon-button.danger:hover { background: #fff0f0; border-color: #f5c2c2; color: #a83333; }
.icon-button .icon { height: 15px; width: 15px; }
.icon-button .icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.announcement-admin-list .archived-at { color: var(--muted); font-size: 10px; justify-self: center; white-space: nowrap; }
.announcement-admin-list .created-by { color: var(--muted); font-size: 10px; justify-self: center; line-height: 1.35; margin: 0; max-width: 90px; overflow-wrap: break-word; text-align: center; }
.pagination { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.pagination-link { align-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--blue-800); display: inline-flex; font-size: 11px; font-weight: 600; height: 26px; justify-content: center; min-width: 26px; padding: 0 6px; text-decoration: none; }
.pagination-link:hover { background: var(--blue-50); border-color: var(--blue-800); }
.pagination-link.current { background: var(--blue-950); border-color: var(--blue-950); color: white; }
.pagination-link.disabled { color: var(--muted); cursor: default; pointer-events: none; }
.toggle-switch {
  align-items: center; background: linear-gradient(180deg, #2a82a8 0%, #176b8f 100%);
  border: 1px solid rgba(6, 48, 77, 0.16); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 3px rgba(6, 48, 77, 0.16), 0 1px 2px rgba(16, 53, 74, 0.08); color: white; cursor: pointer;
  display: inline-flex; font-size: 10px; font-weight: 700; gap: 7px; height: 26px; justify-content: flex-start; min-width: 60px;
  padding: 0 9px; position: relative; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.toggle-switch:hover { border-color: rgba(6, 48, 77, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 3px rgba(6, 48, 77, 0.2), 0 2px 4px rgba(16, 53, 74, 0.12); }
.toggle-switch.is-off {
  background: linear-gradient(180deg, #f7fafb 0%, var(--line) 100%); border-color: #c5d3da;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(97, 113, 124, 0.1), 0 1px 2px rgba(16, 53, 74, 0.07);
  color: var(--muted); flex-direction: row-reverse;
}
.toggle-switch.is-off:hover { border-color: #a8bdc6; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -2px 3px rgba(97, 113, 124, 0.14), 0 2px 4px rgba(16, 53, 74, 0.1); }
.toggle-knob {
  background: linear-gradient(145deg, #ffffff 0%, #e4f0f3 100%); border: 1px solid rgba(6, 48, 77, 0.42); border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.98), inset 0 -1px 1px rgba(6, 48, 77, 0.08),
    0 1px 2px rgba(6, 48, 77, 0.26);
  flex-shrink: 0; height: 16px; transition: box-shadow 140ms ease, margin 0.15s ease; width: 16px;
}
.toggle-switch:hover .toggle-knob { border-color: rgba(6, 48, 77, 0.52); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.98), inset 0 -1px 1px rgba(6, 48, 77, 0.1), 0 1px 2px rgba(6, 48, 77, 0.3); }
.toggle-field:hover .toggle-switch { border-color: rgba(6, 48, 77, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 3px rgba(6, 48, 77, 0.2), 0 2px 4px rgba(16, 53, 74, 0.12); }
.toggle-field:hover .toggle-input:not(:checked) + .toggle-switch { border-color: #a8bdc6; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -2px 3px rgba(97, 113, 124, 0.14), 0 2px 4px rgba(16, 53, 74, 0.1); }
.toggle-label { letter-spacing: 0; }
.metric-title { font-size: 13px; margin: 28px 0 10px; }
.metric-table { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.metric-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; font-size: 12px; gap: 20px; grid-template-columns: 140px 180px minmax(0, 1fr) 80px; min-height: 48px; padding: 0 18px; }
.metric-row[hidden] { display: none; }
.metric-table .metric-row:not(.header):nth-child(odd) { background: #fafbfc; }
.metric-row.header { background: var(--blue-50); color: var(--muted); font-size: 9px; font-weight: 700; min-height: 38px; text-transform: uppercase; }
.metric-table-compact .metric-row { grid-template-columns: 180px minmax(0, 1fr) 80px; }
.metric-table-unique-users .metric-row { grid-template-columns: 180px minmax(0, 1fr); min-width: 0; }
.metric-table-announcement-views .metric-row { grid-template-columns: 110px 110px minmax(0, 1fr) 90px 90px; }
.metric-sort-button { align-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; font: inherit; gap: 5px; padding: 4px 6px; text-align: left; text-transform: inherit; width: 100%; }
.metric-sort-button:hover, .metric-sort-button.is-active { background: #e8f5f8; border-radius: 4px; color: var(--blue-800); }
.metric-sort-button:focus-visible { box-shadow: 0 0 0 2px rgba(20, 149, 208, 0.35); outline: 0; }
.metric-sort-arrow { display: inline-block; font-size: 11px; line-height: 1; min-width: 8px; visibility: hidden; }
.metric-sort-button.is-active .metric-sort-arrow { visibility: visible; }
.metric-table-announcement-views .metric-row.header > span:nth-child(4) .metric-sort-button,
.metric-table-announcement-views .metric-row.header > span:nth-child(5) .metric-sort-button { justify-content: flex-end; }
.metric-table[data-sortable-metric-table] .metric-row.header > span:last-child .metric-sort-button { justify-content: flex-end; }
.metric-table .metric-row > strong { text-align: right; }
.metric-table-unique-users .metric-row.header > span:last-child { text-align: right; }
.analytics-pagination { justify-content: center; user-select: none; -webkit-user-select: none; }
.analytics-pagination-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.analytics-pagination .pagination-link { background: transparent; cursor: pointer; font-family: inherit; }
.analytics-pagination > [data-pagination-first],
.analytics-pagination > [data-pagination-prev],
.analytics-pagination > [data-pagination-next],
.analytics-pagination > [data-pagination-last] { font-size: 15px; font-weight: 700; line-height: 1; }
.analytics-pagination .pagination-link:hover { background: var(--blue-50); }
.analytics-pagination .pagination-link.current,
.analytics-pagination .pagination-link.current:hover { background: var(--blue-950); border-color: var(--blue-950); color: white; }
.analytics-pagination .pagination-link:disabled { color: var(--muted); cursor: default; pointer-events: none; }
.metric-announcement-link { color: var(--blue-800); font-weight: 600; text-decoration: none; }
.metric-announcement-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.empty-state { color: var(--muted); padding: 24px; }
.login-audit-unlock-form { max-width: 520px; }
.login-audit-table .metric-row { grid-template-columns: 220px minmax(180px, 0.8fr) minmax(220px, 1.2fr); }
.login-audit-subject { overflow-wrap: anywhere; }
.login-audit-permissions { display: flex; flex-wrap: wrap; gap: 5px; }
.muted-value { color: var(--muted); font-style: italic; }
.login-audit-panel .section-heading form { margin: 0; }

.admin-tabs {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  max-width: 100%;
  overflow-x: auto;
  position: sticky;
  top: 72px;
  z-index: 19;
}
.admin-tabs a { border-bottom: 2px solid transparent; color: var(--muted); flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 12px 18px; text-decoration: none; text-transform: uppercase; }
.admin-tabs a:hover { color: var(--blue-800); }
.admin-tabs a[aria-current="page"] {
  background: var(--blue-50);
  border-color: var(--blue-800);
  color: var(--blue-800);
}
.admin-auth-list { display: grid; }
.admin-auth-list .auth-account-sort-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 4px; grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 12px 3px; }
.admin-auth-list .auth-account-sort-item.dragging { opacity: 0.5; }
.admin-auth-list .auth-account-row { align-items: center; display: grid; gap: 13px; grid-template-columns: 170px minmax(0, 1fr); text-decoration: none; }
.admin-auth-list .auth-account-row .auth-badge-preview { justify-self: start; max-width: 100%; }
.admin-auth-list .auth-account-row:hover { background: var(--blue-50); padding-left: 8px; padding-right: 8px; }
.admin-auth-list .auth-account-sort-item.disabled { opacity: 0.5; }
.auth-sort-index { color: var(--muted); font-size: 11px; font-weight: 700; justify-self: center; min-width: 20px; text-align: right; }
.auth-sort-handle { background: transparent; border: 0; color: var(--muted); cursor: grab; font-size: 14px; letter-spacing: -2px; line-height: 1; padding: 6px 8px; }
.auth-sort-handle:active { cursor: grabbing; }
.auth-reorder-form { margin-top: 14px; }
.auth-reorder-form .primary-button { justify-self: start; }
.auth-account-meta strong { display: block; font-size: 12px; }
.auth-account-meta small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.auth-badge-preview { align-items: center; border: 1px solid; border-radius: 4px; display: inline-flex; font-size: 9px; font-weight: 700; gap: 4px; padding: 0 8px; text-transform: uppercase; white-space: nowrap; }
.badge-color-row { align-items: center; display: flex; gap: 14px; }
.badge-color-field { display: grid; font-size: 9px; font-weight: 500; gap: 4px; justify-items: center; text-transform: none; }
.badge-color-field .badge-color-caption { color: var(--muted); }
.badge-color-row input[type="color"] { flex: 0 0 auto; height: 42px; padding: 4px; width: 64px; }
.badge-preview-slot { align-items: center; display: flex; min-height: 42px; }
.badge-preview-slot .auth-badge-preview { max-width: 240px; }
.form-hint { color: var(--muted); font-size: 10px; font-weight: 500; }
.danger-button { background: transparent; border: 1px solid #f5c2c2; border-radius: 4px; color: #a83333; cursor: pointer; font-size: 10px; margin-top: 12px; padding: 7px 9px; }

.delete-confirm,
.slack-send-confirm { background: transparent; border: 0; color: var(--ink); padding: 0; }
.delete-confirm::backdrop,
.slack-send-confirm::backdrop { background: rgba(22, 38, 49, 0.45); }
.slack-send-confirm .primary-button { margin-top: 0; }
.delete-confirm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(22, 38, 49, 0.25); margin: 0; max-width: 420px; min-width: 320px; padding: 22px; }
.delete-confirm-card h2 { font-size: 15px; margin: 0 0 8px; }
.delete-confirm-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.delete-confirm-card .delete-confirm-name { color: var(--ink); font-weight: 700; }
.delete-confirm-warning { color: #a43737 !important; font-weight: 700; }
.delete-confirm-card .delete-confirm-allow { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; margin: 20px 0 0; padding: 14px 0 0; width: 100%; }
.delete-confirm-card .delete-confirm-allow[hidden] { display: none; }
.delete-confirm-card .delete-confirm-allow .toggle-field-copy { display: block; flex: 1 1 auto; grid-column: auto; grid-row: auto; min-width: 0; }
.delete-confirm-card .delete-confirm-allow .toggle-field-label { color: var(--ink); display: block; font-size: 12px; font-weight: 700; line-height: 1.35; text-transform: none; }
.delete-confirm-card .delete-confirm-allow .toggle-switch { flex: 0 0 60px; grid-column: auto; grid-row: auto; }
.delete-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.delete-confirm-actions .quiet-button { margin-top: 0; }
.danger-solid-button { background: #a83333; border: 1px solid #a83333; border-radius: 4px; color: white; cursor: pointer; font-size: 10px; padding: 7px 9px; }
.danger-solid-button:hover { background: #932d2d; border-color: #932d2d; }
.danger-solid-button:disabled { background: #d9b5b5; border-color: #d9b5b5; cursor: not-allowed; }

footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; margin: 0 clamp(20px, 5vw, 72px); padding: 24px 0; }
.is-hidden { display: none !important; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 58px 42px;
    min-height: 100px;
    padding: 0 16px;
  }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { height: 42px; width: 106px; }
  .brand-mark img { height: 42px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }
  .site-header nav {
    align-self: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: safe center;
    min-width: 0;
    overflow-x: auto;
  }
  .site-header nav a { font-size: 12px; padding: 0 12px; white-space: nowrap; }
  .site-header nav a + a::before { height: 22px; top: calc(50% - 11px); }
  .site-header nav a[aria-current="page"]::after { height: 3px; left: 8px; right: 8px; }
  .user-chip > span:first-child { font-size: 10px; height: 32px; width: 32px; }
  .user-chip strong { font-size: 11px; }
  .user-chip small { font-size: 8px; }
  .admin-heading h1 { font-size: 36px; }
  .section-heading h2 { font-size: 20px; }
  .admin-tabs {
    background: transparent;
    border-bottom: 0;
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
    overflow: visible;
    position: static;
    top: auto;
  }
  .admin-tabs a {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 5px;
    display: flex;
    flex: initial;
    font-size: 11px;
    justify-content: space-between;
    line-height: 1.2;
    min-height: 44px;
    padding: 0 14px;
  }
  .admin-tabs a::after { color: var(--blue-700); content: ">"; font-size: 17px; line-height: 1; }
  .admin-tabs a[aria-current="page"] { border-color: var(--blue-700); box-shadow: inset 4px 0 0 var(--blue-700); }
  .announcement-admin-list {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .announcement-admin-head { display: none; }
  .announcement-admin-list article {
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    gap: 12px;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    padding: 14px;
  }
  .announcement-admin-list .badge,
  .announcement-admin-list .announcement-admin-body,
  .announcement-admin-list .created-by,
  .announcement-admin-list .archived-at { grid-column: 1 / -1; justify-self: start; }
  .announcement-admin-list .announcement-admin-body strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
  .announcement-admin-list small { display: grid; gap: 4px; line-height: 1.4; }
  .announcement-admin-list .announcement-ends::before { content: none; margin-right: 0; }
  .announcement-admin-list .created-by { max-width: none; text-align: left; }
  .announcement-toggle-form,
  .announcement-action-form { align-self: center; justify-self: start; }
  .page-shell { padding-bottom: 48px; padding-top: 40px; }
  .announcement-meta { display: grid; gap: 4px; }
  .announcement-meta span + span::before { content: none; margin-right: 0; }
  .intro { align-items: stretch; flex-direction: column; gap: 24px; }
  .filter-row { margin-top: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .search input { padding-right: 16px; }
  .search-count { display: none; }
  .support-band { align-items: stretch; flex-direction: column; gap: 24px; padding: 25px; }
  .support-action { margin: 0; text-align: center; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-header h1 { font-size: 38px; }
  .detail-layout { gap: 42px; grid-template-columns: 1fr; }
  .detail-aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .account-layout { grid-template-columns: 1fr; }
  .account-heading h1 { font-size: 36px; }
  footer { align-items: start; flex-direction: column; gap: 7px; }
  .admin-layout { grid-template-columns: 1fr; }
  .slack-webhook-panel, .slack-settings-panel, .slack-test-panel, .slack-delete-panel { grid-column: auto; grid-row: auto; }
  .slack-webhook-panel { order: 1; }
  .slack-delete-panel { order: 2; }
  .slack-test-panel { order: 3; }
  .slack-settings-panel { order: 4; }
  .health-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .announcement-form-edit { grid-template-columns: 1fr; }
  .announcement-form-edit > label:first-of-type,
  .announcement-form-edit > label:nth-of-type(2),
  .announcement-form-edit > label:nth-of-type(3),
  .announcement-form-edit .service-field { grid-column: auto; }
  .announcement-form-edit > label:nth-of-type(3) { grid-row: auto; }
  .announcement-form-edit > label:first-of-type,
  .announcement-form-edit > label:nth-of-type(2),
  .announcement-form-edit > label:nth-of-type(3),
  .announcement-form-edit .service-field { grid-column: auto; }
  .announcement-form-edit textarea { min-height: 110px; }
  .service-editor-heading { align-items: start; flex-direction: column; }
  .service-editor-row, .service-editor-row-simple { grid-template-columns: minmax(0, 1fr) auto; }
  .service-editor-row label:first-of-type, .service-editor-row label:nth-of-type(2) { grid-column: 1 / -1; }
  .service-editor-row .primary-choice { align-self: center; }
  .service-editor-row .icon-button { margin-bottom: 0; }
  .metric-table { overflow-x: auto; }
  .login-audit-table .metric-row { min-width: 680px; }
  .metric-row { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Auth landing & forbidden pages */
.auth-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 16px; max-width: 440px; padding: 44px 40px; text-align: center; width: 100%; }
.auth-card .brand { align-items: center; display: inline-flex; gap: 10px; justify-self: center; text-decoration: none; }
.auth-card .brand-mark img { height: 36px; width: auto; }
.auth-card h1 { color: var(--blue-950); font-size: 28px; font-weight: 700; margin: 8px 0 0; }
.auth-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.auth-card code { background: var(--blue-50); border: 1px solid var(--line); border-radius: 4px; color: var(--blue-800); font-size: 12px; padding: 1px 6px; }
.auth-denied { background: #fef3f0; border: 1px solid #f0cdc3; border-radius: 5px; color: #a8442b; font-size: 13px; padding: 12px 14px; }
.auth-diagnostics { text-align: left; max-width: 100%; overflow-x: auto; }
.auth-diagnostics > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-800); padding: 8px 0; }
.auth-diagnostics-hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.auth-diagnostics-list { display: grid; gap: 8px; margin: 0; }
.auth-diagnostics-list dt { font-size: 12px; font-weight: 600; color: var(--blue-950); margin-top: 8px; }
.auth-diagnostics-list dt:first-child { margin-top: 0; }
.auth-diagnostics-list dd { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.auth-diagnostics-list dd code { background: var(--blue-50); border: 1px solid var(--line); border-radius: 4px; color: var(--blue-800); font-size: 11px; padding: 1px 5px; }
.auth-diagnostics-none { font-style: italic; }
.auth-diagnostics-pre { background: var(--blue-50); border: 1px solid var(--line); border-radius: 4px; font-size: 11px; line-height: 1.5; margin: 0; max-height: 200px; overflow: auto; padding: 10px; white-space: pre-wrap; word-break: break-all; }
.auth-signin-button { align-items: center; background: var(--blue-800); border-radius: 6px; color: white; display: inline-flex; font-size: 14px; font-weight: 700; justify-self: center; justify-content: center; min-height: 48px; padding: 0 28px; text-decoration: none; }
.auth-signin-button:hover { background: var(--blue-700); }
.auth-signin-button:focus-visible { box-shadow: 0 0 0 3px rgba(20, 149, 208, 0.3); outline: none; }