:root {
  color-scheme: light;
  --font-label: 13px;
  --font-small: 12px;
  --bg: #f4f7fa;
  --surface: #fff;
  --surface-soft: #f7f9fb;
  --text: #15202c;
  --muted: #5c6c7c;
  --line: #dce4ec;
  --input-line: #7c8c9c;
  --green: #007d6b;
  --green-soft: #e3faf5;
  --red: #b33e3a;
  --history-failed: #d92d3a;
  --red-soft: #fbefed;
  --amber: #936618;
  --amber-soft: #fff5df;
  --shadow: 0 2px 5px #15202c10;
  --focus: #007d6b;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #101820;
  --surface: #15202c;
  --surface-soft: #1c2a38;
  --text: #f1f5f9;
  --muted: #a2b4c4;
  --line: #304356;
  --input-line: #74899c;
  --green: #00cfb0;
  --green-soft: #123b3a;
  --red: #f69e96;
  --history-failed: #ff5c68;
  --red-soft: #402c29;
  --amber: #e9c27b;
  --amber-soft: #3b3323;
  --shadow: 0 2px 5px #0002;
  --focus: #00cfb0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

button,input,select,textarea {
  font: inherit;
}

button,.button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.4;
}

button:hover,.button:hover {
  background: var(--surface-soft);
  border-color: var(--muted);
}

.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--surface);
}

.primary:hover {
  background: var(--green);
  filter: brightness(.94);
  border-color: var(--green);
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
  font-weight: 650;
}

h2 {
  font-size: 18px;
  letter-spacing: -.3px;
  font-weight: 650;
}

h3 {
  font-size: 15px;
  margin: 24px 0 14px;
}

.muted,.subtitle {
  color: var(--muted);
}

.subtitle {
  margin-top: 8px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}

.sr-only,.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 14px;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1264px;
  margin: auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  gap: 52px;
  align-items: center;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.brand img {
  display: block;
}

.brand .brand-dark,
:root[data-theme=dark] .brand-light {
  display: none;
}

:root[data-theme=dark] .brand-dark {
  display: block;
}

.theme-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  color: var(--muted);
}

.theme-switch {
  width: 48px;
  min-height: 44px;
  padding: 0;
  border: 0;
  position: relative;
  background: transparent!important;
}

.theme-switch:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 24px;
  border-radius: 20px;
  background: var(--line);
  left: 4px;
}

.theme-switch span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  left: 7px;
  box-shadow: 0 1px 3px #0003;
}

.theme-switch[aria-checked=true]:before {
  background: var(--green);
}

.theme-switch[aria-checked=true] span {
  left: 23px;
  background: #173a27;
}

.workspace {
  max-width: 1264px;
  margin: auto;
  padding: 38px 32px 8px;
  min-height: 0;
}

.workspace:focus {
  outline: none;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.page-heading .primary {
  align-self: center;
}

.status-overview {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 25px;
  margin-bottom: 29px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.status-overview h2 {
  font-size: 18px;
}

.status-overview p {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}

.status-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--green-soft);
  color: var(--green);
  font-size: 22px;
}

.needs-attention .status-symbol {
  background: var(--amber-soft);
  color: var(--amber);
}

.summary-time {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
}

.summary-time .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.periods {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  flex-shrink: 0;
}

.periods a {
  min-width: 47px;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.periods a[aria-current] {
  background: var(--green-soft);
  color: var(--green);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th {
  font-weight: 550;
}

td,th {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: var(--font-label);
  line-height: 20px;
  letter-spacing: normal;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-soft);
  white-space: nowrap;
}

tr:last-child>td,tr:last-child>th {
  border-bottom: 0;
}

.domain-list {
  position: relative;
  overflow: hidden;
}

.domains-table {
  table-layout: auto;
}

.domains-table td,.domains-table th {
  padding: 20px 16px;
}

.domains-table thead th {
  padding-block: 14px;
}

.domains-table th:first-child {
  padding-left: 23px;
}

.domain-name {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.domain-name:hover {
  color: var(--green);
  text-decoration: underline;
}

.row-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.badge.ok {
  color: var(--green);
  background: var(--green-soft);
}

.badge.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.crit {
  color: #fff;
  background: #c52232;
  font-weight: 750;
}

.badge.unknown,.badge.paused {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.paused .status-dot {
  border-radius: 1px;
}

.history-cell {
  width: 21%;
  min-width: 130px;
}

.history-strip {
  display: block;
  width: 100%;
  height: 20px;
}

.strip-background {
  fill: var(--surface-soft);
}

.strip-successful {
  fill: var(--green);
}

.strip-failed {
  fill: var(--history-failed);
  stroke: var(--history-failed);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.strip-unknown {
  fill: var(--muted);
}

.strip-no-data { fill: var(--muted); opacity: .22; }

.numeric {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.time-cell {
  font-size: 12px;
  color: var(--muted);
  max-width: 150px;
  font-variant-numeric: tabular-nums;
}

.last-checked time, .last-checked > .muted {
  display: block;
  white-space: nowrap;
}

.row-action a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
  max-width: 760px;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer > span { display: inline-flex; align-items: center; gap: 4px; }

.notice {
  padding: 16px 20px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 22px;
}

.error-notice {
  background: var(--red-soft);
  color: var(--red);
}

.error-notice p {
  margin: 6px 0;
}

.empty-state {
  text-align: center;
  padding: 72px 24px;
}

.empty-state h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.empty-state p {
  margin: 8px auto;
  max-width: 390px;
}

.empty-symbol {
  font-size: 44px;
  color: var(--green);
  margin-bottom: 12px;
}

.empty-filter {
  text-align: center;
  padding: 40px!important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 15px;
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
}

.domain-title {
  overflow-wrap: anywhere;
}

.detail-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  font-size: 12px;
}

.history-panel,.chart-panel {
  padding: 25px 28px;
  margin-bottom: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 27px;
}

.metrics>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.metrics strong,.response-chart strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.metrics .muted {
  font-size: 12px;
  margin-top: 5px;
}

.metrics time {
  font-size: 13px;
  margin-top: 7px;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}

.source-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.response-chart {
  position: relative;
  margin: 0;
}

.response-chart figcaption {
  display: flex;
  flex-direction: column;
}

.response-chart figcaption .muted {
  font-size: 12px;
  margin-top: 4px;
}

.response-chart svg {
  cursor: crosshair;
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  margin-top: 6px;
  overflow: visible;
}

.chart-scale {
  font-size: 10px;
  color: var(--muted);
  margin-top: 24px;
}

.chart-grid {
  stroke: var(--line);
  fill: none;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--green);
}

.chart-empty,.no-data {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 25px;
  color: var(--muted);
  font-size: 13px;
}

.chart-empty {
  margin-top: 22px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-data {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.chart-data table {
  font-size: 12px;
}

.chart-data td,.chart-data th {
  padding: 12px;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll caption {
  padding: 12px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
}

summary {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 550;
}

.latest-checks {
  padding: 8px 24px;
}

.check-list {
  padding: 0;
  list-style: none;
  margin: 0 0 10px;
}

.check-list li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.check-list li>span:first-child {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.check-list time {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.danger-link {
  color: var(--red);
  margin-left: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.form-page {
  max-width: 824px;
}

.form-page .page-heading {
  margin-bottom: 25px;
}

.form-section {
  padding: 26px 30px;
}

.form-section>h2 {
  margin-bottom: 20px;
}

.form-page>.panel {
  margin-bottom: 20px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 7px;
}

input,select,textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 12px;
  max-width: 100%;
  width: 100%;
  line-height: 1.5;
}

input::placeholder {
  color: var(--muted);
  opacity: .8;
}

input[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
}

textarea {
  resize: vertical;
}

input[type=file] {
  padding: 9px;
}

.field-help,.helptext {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 7px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.form-grid .field {
  min-width: 0;
}

.form-section>.field-help {
  margin-bottom: 20px;
}

.advanced-settings {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advanced-settings>summary {
  padding: 19px 30px;
  color: var(--muted);
  font-size: 13px;
}

.advanced-settings .form-section {
  padding-top: 8px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
}

.form-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.form-section .form-actions {
  padding: 20px 0 0;
}

.reset-settings {
  padding: 10px 25px;
}

.reset-settings p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.reset-settings form {
  padding-bottom: 16px;
}

.danger-button {
  background: var(--red);
  border-color: var(--red);
  color: var(--surface);
}

.field-error,.errorlist {
  color: var(--red);
  font-size: 12px;
}

.field-error {
  margin-top: 7px;
}

.errorlist {
  padding: 10px 14px 10px 28px;
  border-radius: 8px;
  background: var(--red-soft);
  margin: 10px 0;
}

.auth-page {
  max-width: 490px;
  padding-top: 62px;
}

.auth-panel {
  padding: 35px;
}

.auth-panel h1 {
  font-size: 26px;
}

.auth-panel .eyebrow {
  margin-top: 20px;
}

.auth-mark {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.auth-panel form {
  margin-top: 28px;
}

.auth-panel form>p,.password-form>p {
  margin-bottom: 18px;
}

.auth-panel button.primary {
  width: 100%;
  margin-top: 4px;
}

.auth-panel .recovery {
  margin-top: 24px;
  text-align: center;
}

.password-form ul {
  font-size: 12px;
  color: var(--muted);
  padding-left: 20px;
}

.password-form .errorlist {
  color: var(--red);
}

@media(min-width:721px) and (max-width:1000px) {
  .workspace {
  padding: 30px 24px;
}

.topbar-inner {
  padding: 0 24px;
}

.domains-table td,.domains-table th {
  padding: 15px 10px;
}

.history-cell {
  min-width: 100px;
  width: 16%;
}

.domains-table th:first-child {
  padding-left: 16px;
}

.footer {
  margin: 0 auto;
}

}

@media(max-width:720px) {
  h1 {
  font-size: 27px;
}

.topbar-inner {
  height: auto;
  min-height: 70px;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 12px 20px 0;
}

.brand {
  font-size: 17px;
}

.theme-controls {
  order: 1;
}

.workspace {
  padding: 27px 20px 8px;
  min-height: 0;
}

.page-heading {
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.page-heading .primary {
  padding: 10px 13px;
  font-size: 12px;
  white-space: nowrap;
}

.subtitle {
  font-size: 12px;
  max-width: 250px;
}

.status-overview {
  padding: 18px;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.status-overview h2 {
  font-size: 16px;
}

.status-overview p {
  font-size: 11px;
}

.status-symbol {
  width: 32px;
  height: 32px;
  font-size: 19px;
}

.status-overview>div:not(.summary-time) {
  flex: 1;
}

.summary-time {
  margin-left: 44px;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}

.summary-time .eyebrow {
  font-size: 9px;
}

.periods {
  margin-left: auto;
}

.periods a {
  min-height: 44px;
  min-width: 50px;
}

.domain-list {
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.domains-table,.domains-table tbody {
  display: block;
}

.domains-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.domains-table tr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.domains-table td,.domains-table th,.domains-table th:first-child {
  border: 0;
  padding: 7px 0;
}

.domains-table th[data-label=Domain] {
  grid-column: 1;
  align-self: center;
}

.domain-name {
  font-size: 14px;
  min-height: 44px;
}

.domains-table td[data-label=Status] {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding-left: 10px;
}

.domains-table .history-cell {
  grid-column: 1/-1;
  width: 100%;
  padding: 9px 0 15px;
}

.domains-table .history-cell:before {
  display: none;
}

.domains-table td.numeric,.domains-table td.time-cell {
  grid-column: 1/-1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  font-size: 12px;
  padding: 7px 0;
}

.domains-table td.numeric:before,.domains-table td.time-cell:before {
  content: attr(data-label);
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}

.domains-table .row-action {
  grid-column: 1/-1;
  text-align: right;
  margin-top: 7px;
  border-top: 1px solid var(--line);
  padding: 5px 0 0;
}

.row-action a {
  min-width: 55px;
  justify-content: flex-end;
}

.fine-print {
  font-size: 11px;
  margin-top: 14px;
}

.footer {
  margin: 0 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0 16px;
  font-size: 12px;
}

.empty-state {
  padding: 45px 20px;
}

.empty-state p {
  font-size: 13px;
}

.detail-status {
  flex-wrap: wrap;
  gap: 9px;
}

.detail-status>.muted {
  font-size: 11px;
}

.page-heading:has(.domain-title) {
  flex-direction: column;
  gap: 17px;
}

.section-toolbar h2 {
  font-size: 16px;
}

.history-panel,.chart-panel {
  padding: 20px;
}

.metrics {
  grid-template-columns: 1fr 1fr;
  gap: 22px 15px;
}

.metrics>div:last-child {
  grid-column: 1/-1;
}

.metrics strong,.response-chart strong {
  font-size: 27px;
}

.metrics .eyebrow {
  font-size: 10px;
  letter-spacing: .7px;
}

.metrics .muted {
  font-size: 11px;
}

.metrics time {
  margin: 0;
  font-size: 12px;
}

.chart-axis {
  font-size: 9px;
  gap: 8px;
}

.chart-axis span:last-child {
  text-align: right;
}

.response-chart svg {
  min-height: 110px;
}

.check-list li {
  flex-wrap: wrap;
  font-size: 11px;
}

.check-list li>span:last-child {
  width: 100%;
}

.latest-checks {
  padding: 8px 20px;
}

.detail-actions {
  gap: 8px;
}

.detail-actions button {
  font-size: 12px;
}

.danger-link {
  width: 100%;
  margin-left: 0;
}

.form-section {
  padding: 23px 20px;
}

.form-grid {
  grid-template-columns: 1fr;
}

.advanced-settings>summary {
  padding: 18px 20px;
}

.form-actions {
  padding: 20px;
}

.field-help {
  font-size: 11px;
}

.auth-page {
  padding-top: 32px;
}

.auth-panel {
  padding: 26px;
}

.auth-panel h1 {
  font-size: 25px;
}

.auth-panel .eyebrow {
  font-size: 10px;
}

.password-form ul {
  font-size: 11px;
}

.empty-filter {
  grid-column: 1/-1;
}

.source-note {
  line-height: 1.7;
}

}

@media(max-width:359px) {
  .workspace {
  padding-inline: 14px;
}

.topbar-inner {
  padding-inline: 14px;
}

.footer {
  margin-inline: auto;
}

.page-heading .primary {
  font-size: 11px;
  padding: 10px;
  gap: 3px;
}

.page-heading {
  gap: 10px;
}

.page-heading h1 {
  font-size: 25px;
}

.badge {
  font-size: 10px;
  padding: 4px 6px;
  gap: 5px;
}

.domains-table tr {
  padding-inline: 12px;
}

.domain-name {
  font-size: 12px;
}

.section-toolbar {
  gap: 8px;
}

.section-toolbar h2 {
  font-size: 14px;
}

.periods a {
  min-width: 44px;
}

.history-panel,.chart-panel {
  padding: 16px;
}

.form-section {
  padding: 20px 17px;
}

}

.recent-history {
  margin-top: 14px;
}

.recent-history table {
  font-size: 12px;
}

.recent-history td {
  overflow-wrap: anywhere;
}

.recent-history td:last-child {
  min-width: 200px;
}

.preferences-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.preferences-form legend {
  font-size: 20px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 20px;
}

.publication-settings { margin-top: 22px; margin-bottom: 22px; }
.publication-settings fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.publication-settings legend { font-weight: 600; }
.publication-settings textarea { margin-top: 10px; }
.copy-public-link { margin-top: 12px; }

.publication-domains { display: grid; gap: 8px; margin-top: 16px; }
.publication-domains label { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.publication-domains input { width: 20px; min-height: 20px; height: 20px; flex-shrink: 0; }
.publication-domains span { overflow-wrap: anywhere; }

input, select, textarea { border-color: var(--input-line); }

.domain-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.domain-actions form {
  margin: 0;
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 10px;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.domain-actions .icon-danger {
  color: var(--red);
}
.domain-actions .icon-danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
}

.chart-point:is(:focus, .is-active) .chart-dot {
  r: 5px;
  fill: var(--surface);
  stroke: var(--green);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
.chart-tooltip {
  width: max-content;
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 16px #0002;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.chart-tooltip[hidden] {
  display: none;
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin: 18px 0;
  align-items: end;
}
.history-filters .field {
  margin: 0;
  min-width: 0;
}
.history-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.history-filters > .field-error, .history-filters > .field-help {
  grid-column: 1 / -1;
}

.status-preview {
  display: inline-block;
}
[data-status-trigger] {
  cursor: help;
}
[data-status-trigger]:focus-visible, .status-tooltip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.status-tooltip {
  position: fixed;
  z-index: 30;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 6px 24px #0003;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}
.status-tooltip[hidden] {
  display: none;
}
.status-tooltip-heading {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.status-tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-tooltip li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.status-tooltip p {
  margin: 5px 0;
}
.status-tooltip-severity {
  display: block;
  font-size: 11px;
}
.status-tooltip-severity.crit { color: var(--red); }
.status-tooltip-severity.warn { color: var(--amber); }

.domain-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.domain-heading-name {
  min-width: 0;
}
.favorite-form {
  margin: 0;
  flex-shrink: 0;
}
.favorite-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 25px;
  line-height: 1;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.favorite-star.is-favorite {
  color: var(--amber);
}
button.favorite-star:hover {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: transparent;
}

.topbar-inner:has(.topbar-actions) {
  gap: 20px;
  height: auto;
  min-height: 76px;
  flex-wrap: wrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.topbar-actions form {
  margin: 0;
}
.settings-button {
  margin-left: auto;
}
.topbar-actions + .settings-button, .topbar-actions + .theme-controls, .settings-button + .theme-controls {
  margin-left: 0;
}
.settings-button[aria-current="page"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: var(--green);
}
.topbar-actions [hidden] {
  display: none;
}
@media (max-width: 720px) {
  .topbar-inner:has(.topbar-actions) {
    gap: 0 20px;
  }
  .settings-button {
    order: 2;
  }
  .settings-button + .theme-controls, .topbar-actions + .theme-controls {
    margin-left: auto;
  }
  .topbar-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }
}

.activity-toggle[aria-pressed=true] {
  color: var(--green);
  background: var(--green-soft);
  border-color: var(--green);
}
/* Public services stay in one dense list; charts expand only on demand. */
.public-status .status-overview { padding: 14px 18px; margin-bottom: 16px; }
.public-status .status-overview h2 { font-size: 16px; }
.public-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.public-totals strong { color: var(--text); margin-left: 4px; }
.public-services { overflow: hidden; }
.public-services-header, .public-service-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) 140px minmax(100px, 1fr) 110px 150px 16px;
  gap: 14px;
  align-items: center;
  padding: 8px 16px;
}
.public-services-header {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: var(--font-label);
  line-height: 20px;
  font-weight: 600;
}
.public-services-list { list-style: none; padding: 0; margin: 0; }
.public-services-list > li + li { border-top: 1px solid var(--line); }
.public-service-row { list-style: none; min-height: 54px; font-size: 12px; }
.public-service-row::-webkit-details-marker { display: none; }
.public-service-row:hover { background: var(--surface-soft); }
.public-service-row:focus-visible { outline-offset: -3px; }
.public-service-row > span { min-width: 0; }
.public-service-name { overflow-wrap: anywhere; font-weight: 600; }
.public-service-row .badge { justify-self: start; max-width: 100%; white-space: normal; }
.public-service-row .history-strip { height: 14px; }
.public-service-time { font-size: 11px; font-weight: 400; }
.public-service-success { font-variant-numeric: tabular-nums; }
.public-service-expand { font-size: 20px; color: var(--muted); text-align: center; }
.public-component-chart[open] > summary .public-service-expand { transform: rotate(180deg); }
.public-service-detail { border-top: 1px solid var(--line); padding: 16px; }
.public-service-detail > p { font-size: 12px; margin-bottom: 12px; }
.public-service-detail .chart-data { margin-top: 12px; }
.public-notes { margin-top: 12px; }
.public-notes > summary { color: var(--muted); font-size: 12px; }
.public-notes .fine-print { margin: 0 0 8px; }
@media (max-width: 1000px) {
  .public-services-header, .public-service-row {
    grid-template-columns: minmax(120px, 1.4fr) 120px minmax(70px, 1fr) 85px 135px 16px;
    gap: 10px;
    padding-inline: 12px;
  }
}
@media (max-width: 720px) {
  .public-services-header { display: none; }
  .public-service-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 5px 10px;
    padding: 10px 12px;
  }
  .public-service-name { grid-column: 1; grid-row: 1; }
  .public-service-row .badge { grid-column: 2; grid-row: 1; justify-self: end; }
  .public-service-history { grid-column: 1; grid-row: 2; }
  .public-service-success { grid-column: 2; grid-row: 2; text-align: right; }
  .public-service-time { grid-column: 1 / 3; grid-row: 3; display: flex; gap: 8px; flex-wrap: wrap; }
  .public-service-time time, .public-service-time > .muted { display: inline; }
  .public-service-expand { grid-column: 3; grid-row: 1 / 4; }
  .public-totals { gap: 4px 16px; }
}


/* Filtering belongs to the columns; each control keeps its native keyboard behavior. */
.domains-table thead th { padding-block: 10px; vertical-align: middle; }
.column-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.column-search label { cursor: text; margin: 0; font-size: var(--font-label); line-height: 20px; font-weight: 600; }
.column-search input {
  flex: 1;
  width: 130px;
  min-width: 80px;
  min-height: 36px;
  height: 36px;
  padding: 7px 10px;
  font-size: var(--font-label);
  line-height: 20px;
  font-weight: 400;
}
.column-status {
  min-height: 36px;
  height: 36px;
  width: 160px;
  max-width: 100%;
  padding: 7px 24px 7px 8px;
  border-color: transparent;
  background-color: transparent;
  color: var(--muted);
  font-size: var(--font-label);
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}
.column-status:hover { border-color: var(--input-line); }
.column-status[data-filtered] { color: var(--green); background-color: var(--green-soft); }
@media (max-width: 720px) {
  .domains-table thead {
    display: block;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .domains-table thead tr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 0 0 12px;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .domains-table thead th { padding: 0; background: transparent; }
  .domains-table thead .header-domain { grid-column: 1 / -1; padding-left: 0; }
  .domains-table thead .header-status { grid-column: 1 / -1; grid-row: 2; }
  .domains-table .header-metric {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .column-search { flex-wrap: nowrap; }
  .column-search input { min-height: 44px; }
  .column-status { min-height: 44px; width: 100%; min-width: 0; max-width: none; padding-left: 0; }
}

.secret-input { display: flex; align-items: center; gap: 8px; }
.secret-input input { flex: 1; min-width: 0; }
.secret-input .icon-button { flex: 0 0 44px; }
.key-visibility .eye-closed { display: none; }
.key-visibility[aria-pressed=true] .eye-open { display: none; }
.key-visibility[aria-pressed=true] .eye-closed { display: block; }
.secret-input [hidden] { display: none; }
.field .checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 10px 0 0;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-field input[type=checkbox] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}


/* The owner overview keeps its status beside the brand, leaving room for results. */
.topbar-inner:has(.header-monitoring-summary) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 16px;
  padding-block: 12px;
}
.header-monitoring-summary {
  border-inline: 1px solid var(--line);
  padding-inline: 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.header-monitoring-summary .status-symbol {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-size: 16px;
}
.header-monitoring-summary h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.header-monitoring-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.header-monitoring-summary.needs-attention .status-symbol {
  color: var(--amber);
  background: var(--amber-soft);
}
.header-monitoring-summary.is-neutral .status-symbol {
  color: var(--muted);
  background: var(--surface-soft);
}
.overview-workspace { padding-top: 16px; }
.header-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.header-checked { white-space: nowrap; }
.overview-workspace .header-periods { padding: 8px; }
.header-periods .periods { margin: 0; }
.header-periods .periods a { min-width: 44px; min-height: 44px; }
@media (max-width: 900px) {
  .topbar-inner:has(.header-monitoring-summary) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
  }
  .header-monitoring-summary { grid-column: 2 / -1; }
  .topbar-inner:has(.header-monitoring-summary) .topbar-actions {
    grid-column: 1 / 3;
    margin: 0;
    padding: 0;
    width: auto;
  }
}
@media (max-width: 720px) {
  .topbar-inner:has(.header-monitoring-summary) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }
  .topbar-inner:has(.header-monitoring-summary) .brand { grid-column: 1; grid-row: 1; }
  .topbar-inner:has(.header-monitoring-summary) .settings-button { grid-column: 2; grid-row: 1; }
  .topbar-inner:has(.header-monitoring-summary) .theme-controls { grid-column: 3; grid-row: 1; }
  .header-monitoring-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    border-inline: 0;
    border-block: 1px solid var(--line);
    padding: 8px 0;
  }
  .overview-workspace .header-periods {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    padding: 0;
  }
  .topbar-inner:has(.header-monitoring-summary) .topbar-actions { grid-column: 1 / -1; grid-row: 3; }
}

/* Separate working actions from view controls without reducing hit areas. */
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.toolbar-group .icon-button,
.toolbar-group > .button,
.toolbar-group > form > .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.topbar .settings-button,
.topbar-actions .activity-toggle,
.topbar-actions .refresh-page {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}
.topbar .settings-button:hover,
.topbar-actions .activity-toggle:hover,
.topbar-actions .refresh-page:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.topbar .settings-button[aria-current="page"],
.topbar-actions .activity-toggle[aria-pressed="true"] {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--text);
}
@media (max-width: 359px) {
  .topbar-actions { gap: 12px; }
}

/* One readable scale and stable geometry for labels, filters and navigation. */
html { scrollbar-gutter: stable; }
.topbar-actions > .icon-button, .topbar-actions > .button, .topbar-actions > form > .icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.topbar-actions .activity-toggle[hidden] {
  display: inline-flex;
  visibility: hidden;
}
.summary-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  margin-left: auto;
  min-width: 0;
}
.summary-controls .summary-time {
  display: block;
  margin: 0;
  min-width: 0;
  font-size: var(--font-small);
  line-height: 18px;
  font-weight: 400;
}
.summary-controls .eyebrow {
  display: block;
  font-size: var(--font-small);
  line-height: 18px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  margin: 0 0 4px;
}
.summary-timestamp {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 8px;
  font-variant-numeric: tabular-nums;
}
.summary-timestamp time { white-space: nowrap; }
.summary-controls .periods { margin: 0; }
.summary-controls .periods a { width: 47px; min-height: 40px; font-size: var(--font-label); line-height: 20px; }
.periods a:not([aria-current]):hover { background: var(--surface-soft); }
@media (max-width: 720px) {
  .topbar-inner:has(.topbar-actions) { column-gap: 12px; }
  .column-search input, .column-status { height: 44px; }
  .status-overview > div.summary-controls {
    flex: 0 0 100%;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
  }
  .summary-controls .summary-time { flex: 1 1 220px; text-align: left; }
  .summary-timestamp { justify-content: flex-start; }
  .summary-controls .periods a { min-height: 44px; }
}
@media (max-width: 359px) {
  .topbar-inner, .topbar-inner:has(.topbar-actions) { column-gap: 6px; padding-inline: 12px; }
  .brand img { width: 120px; height: auto; }
}

@media (min-width: 721px) and (max-width: 1199px) {
  .domains-table thead th { white-space: normal; }
  .column-search input { width: 100px; }
}


@media (min-width: 721px) {
  .domain-list { overflow-x: auto; }
  .domains-table { table-layout: fixed; min-width: 1000px; }
  .domains-table .col-domain { width: 24%; }
  .domains-table .col-status { width: 18%; }
  .domains-table .col-history { width: auto; }
  .domains-table .col-success { width: 17%; }
  .domains-table .col-time { width: 15%; }
  .domains-table .col-actions { width: 156px; }
}
@media (min-width: 721px) and (max-width: 1199px) {
  .domains-table .col-status { width: 23%; }
  .domains-table .col-history { width: auto; }
  .domains-table .col-success { width: 13.5%; }
  .domains-table .col-time { width: 15.5%; }
  .domains-table .col-actions { width: 156px; }
  .domains-table .row-action { padding-inline: 4px; }
}
@media (max-width: 720px) {
  .domains-table colgroup { display: none; }
}

.domain-heading:has(.domain-reorder-handle) { gap: 6px; }
.domain-reorder-handle[hidden] { display: none; }
.domain-reorder-handle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; min-height: 32px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); box-shadow: none; cursor: grab; }
.domain-reorder-handle:hover { color: var(--text); background: var(--line); }
.domain-reorder-handle:active { cursor: grabbing; }
.domain-is-dragging { opacity: .45; }
.domain-drop-before > * { box-shadow: inset 0 2px 0 var(--green); }
.domain-drop-after > * { box-shadow: inset 0 -2px 0 var(--green); }
.domains-table[aria-busy=true] .domain-reorder-handle { cursor: progress; opacity: .5; }
.domain-order-error { padding: 12px 16px; margin: 0; color: var(--red); font-size: 13px; }

.row-domain-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.domains-table .row-action { padding-inline: 8px; }
.row-domain-actions .icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-width: 44px; width: 44px; height: 44px; padding: 10px; }

.site-address-input { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.site-address-input select { width: 108px; flex: 0 0 108px; }
.site-address-input input { flex: 1 1 0; min-width: 0; }

/* One compact caption and a plot-aligned scale, including on narrow screens. */
.response-chart figcaption {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.chart-caption-title { font-size: 14px; font-weight: 600; }
.chart-metrics { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; min-width: 0; max-width: 100%; color: var(--muted); font-size: 13px; line-height: 1.6; }
.chart-window { display: inline-block; white-space: nowrap; }
.chart-window-value { min-height: 0; margin: 0; padding: 2px 0; border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: var(--text); font: inherit; cursor: help; }
.chart-window-value:hover { background: transparent; color: var(--text); }
.chart-window-value:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.chart-window-tooltip { position: fixed; inset: auto; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.4; white-space: nowrap; box-shadow: 0 4px 12px #0002; }
.chart-window-tooltip::backdrop { background: transparent; }
@media (pointer: coarse) { .chart-window-value { min-height: 44px; } }
.chart-window strong { color: var(--text); font-size: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-gap { fill: var(--muted); fill-opacity: .08; stroke: var(--muted); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-frame { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 10px; }
.chart-plot { display: contents; }
.chart-y-axis { grid-column: 1; grid-row: 1; position: relative; color: var(--muted); font-size: 11px; }
.chart-y-axis > span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart-y-axis > span:nth-child(1) { top: 10.909091%; }
.chart-y-axis > span:nth-child(2) { top: 30.909091%; }
.chart-y-axis > span:nth-child(3) { top: 50.909091%; }
.chart-y-axis > span:nth-child(4) { top: 70.909091%; }
.chart-y-axis > span:nth-child(5) { top: 90.909091%; }
.response-chart .chart-frame svg { grid-column: 2; grid-row: 1; width: 100%; height: 180px; max-height: none; margin: 0; }
.chart-frame .chart-axis { grid-column: 2; grid-row: 2; display: block; position: relative; height: 24px; margin-top: 8px; font-size: 11px; }
.chart-axis > time { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.chart-axis > time:nth-child(1) { left: 0; transform: none; }
.chart-axis > time:nth-child(2) { left: 25%; }
.chart-axis > time:nth-child(3) { left: 50%; }
.chart-axis > time:nth-child(4) { left: 75%; }
.chart-axis > time:nth-child(5) { left: 100%; transform: translateX(-100%); }
.chart-tick-compact { display: none; }
.chart-frame .chart-dot { r: 1.3; }
.chart-frame .chart-point:is(:focus, .is-active) .chart-dot { r: 5; }
@media (max-width: 720px) {
  .chart-frame { grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; }
  .response-chart .chart-frame svg { height: 160px; }
  .chart-y-axis, .chart-frame .chart-axis { font-size: 10px; }
  .chart-axis > time:nth-child(2), .chart-axis > time:nth-child(4), .chart-tick-wide { display: none; }
  .chart-tick-compact { display: inline; }
}

/* Icon explanations also appear on keyboard focus. */
.topbar .icon-button[title], .topbar .theme-switch[title] { position: relative; }
.topbar .icon-button[title]::after, .topbar .theme-switch[title]::after {
  content: attr(title);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: max-content;
  max-width: min(240px, 85vw);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  box-shadow: var(--shadow);
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.topbar .icon-button[title]:is(:hover, :focus-visible)::after,
.topbar .theme-switch[title]:is(:hover, :focus-visible)::after { display: block; opacity: 1; visibility: visible; }
.topbar-actions .icon-button[title]::after { left: 0; right: auto; }

/* Status-page settings share the workspace form and panel styles. */
.status-pages-list { display: grid; gap: 16px; }
.status-page-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.status-page-card > div { min-width: 0; overflow-wrap: anywhere; }
.status-page-card h2 { margin: 0 0 8px; font-size: 18px; }
.status-page-card p { margin: 0 0 8px; }
.status-page-card > .button { flex-shrink: 0; }
.status-page-form { max-width: 760px; }
.status-page-form > fieldset { min-width: 0; padding: 0; border: 0; }
.status-page-domain-picker { min-width: 0; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.status-page-domain-picker legend { padding: 0 6px; font-weight: 600; }
.status-page-link-actions, .status-page-delete { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.status-page-delete summary { cursor: pointer; color: var(--muted); }
.status-page-title { margin: 0 0 20px; font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .status-page-card { align-items: flex-start; flex-direction: column; }
}

.status-page-form .checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 20px; }
.status-page-form .checkbox-row input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; flex: 0 0 18px; accent-color: var(--green); }

.status-page-domain-picker .publication-domains { gap: 0; margin-top: 4px; }
.status-page-domain-picker .publication-domains label { min-height: 30px; margin: 0; gap: 8px; cursor: pointer; }
.status-page-domain-picker .publication-domains input { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--green); }
.status-page-address-prefix { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
.status-page-address[hidden] { display: none; }
@media (pointer: coarse) {
  .status-page-domain-picker .publication-domains label { min-height: 36px; }
}

.auth-panel .remember-me { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; font-weight: 400; cursor: pointer; }
.auth-panel .remember-me input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--green); }

.status-page-card > div { flex: 1; }
.status-page-links { max-width: 640px; margin-top: 12px; }
.status-page-links .copy-link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.status-page-links .copy-public-link { margin: 0; }

@media (max-width: 720px) {
  .status-pages-heading { flex-direction: column; align-items: stretch; }
  .status-pages-heading .primary { align-self: flex-start; }
}

[data-new-group-field][hidden] { display: none !important; }
