/* GUARD_FILE_SIZE_ALLOW — status page ships as single static bundle */
/* Mevzuat Radar Status — enterprise minimal, dark default + light toggle */

:root,
:root[data-theme='dark'] {
  --bg: #0a0d12;
  --bg-elevated: #0e131c;
  --surface: #121824;
  --surface-raised: #161d2b;
  --border: #1f2636;
  --border-strong: #2a3346;
  --text: #e8ecf2;
  --text-muted: #8b93a6;
  --text-soft: #5a6278;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);

  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --degraded: #eab308;
  --degraded-soft: rgba(234, 179, 8, 0.16);
  --partial: #f97316;
  --partial-soft: rgba(249, 115, 22, 0.16);
  --outage: #ef4444;
  --outage-soft: rgba(239, 68, 68, 0.16);
  --maintenance: #60a5fa;
  --maintenance-soft: rgba(96, 165, 250, 0.16);
  --stale: #a855f7;
  --stale-soft: rgba(168, 85, 247, 0.16);
  --empty-bar: #242a38;

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.02), 0 24px 48px -24px rgba(0, 0, 0, 0.5);
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

:root[data-theme='light'] {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e5e8ee;
  --border-strong: #d0d5de;
  --text: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);

  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.1);
  --degraded: #ca8a04;
  --degraded-soft: rgba(202, 138, 4, 0.12);
  --partial: #ea580c;
  --partial-soft: rgba(234, 88, 12, 0.12);
  --outage: #dc2626;
  --outage-soft: rgba(220, 38, 38, 0.1);
  --maintenance: #2563eb;
  --maintenance-soft: rgba(37, 99, 235, 0.1);
  --stale: #7c3aed;
  --stale-soft: rgba(124, 58, 237, 0.1);
  --empty-bar: #e5e8ee;

  --shadow-card:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.topbar > .brand {
  flex: 0 1 auto;
  margin-right: auto;
}

.topbar > #theme-toggle {
  flex: 0 0 auto;
}

.topbar > .topbar-actions {
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  border-radius: 9px;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.brand-mark .brand-sweep {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: radar-sweep 4s linear infinite;
}
@keyframes radar-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark .brand-sweep {
    animation: none;
  }
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-text-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.icon-button:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.icon-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon-button .icon-sun {
  display: none;
}
:root[data-theme='dark'] .icon-button .icon-moon {
  display: none;
}
:root[data-theme='dark'] .icon-button .icon-sun {
  display: inline-block;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.ghost-button:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.ghost-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Shell */
.shell {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Overall banner */
.overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 40px;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.overall-icon {
  width: 56px;
  height: 56px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.overall-icon svg {
  width: 100%;
  height: 100%;
}
.overall-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.overall-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 540px;
}
.overall-meta {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.overall--operational .overall-icon {
  color: var(--ok);
}
.overall--degraded_performance .overall-icon {
  color: var(--degraded);
}
.overall--partial_outage .overall-icon {
  color: var(--partial);
}
.overall--major_outage .overall-icon {
  color: var(--outage);
}
.overall--maintenance .overall-icon {
  color: var(--maintenance);
}
.overall--stale .overall-icon {
  color: var(--stale);
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section[hidden] {
  display: none;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-header--flex {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* Range tabs */
.range-tabs {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  gap: 2px;
}
.range-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.range-tab:hover {
  color: var(--text);
}
.range-tab.is-active {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.range-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Component card */
.component-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.component-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}
.component-row--toggle {
  cursor: pointer;
}
.component-row--toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.component-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-soft);
  flex-shrink: 0;
}
.component-dot--operational {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}
.component-dot--degraded_performance {
  background: var(--degraded);
  box-shadow: 0 0 0 3px var(--degraded-soft);
}
.component-dot--partial_outage {
  background: var(--partial);
  box-shadow: 0 0 0 3px var(--partial-soft);
}
.component-dot--major_outage {
  background: var(--outage);
  box-shadow: 0 0 0 3px var(--outage-soft);
}
.component-dot--maintenance {
  background: var(--maintenance);
  box-shadow: 0 0 0 3px var(--maintenance-soft);
}
.component-dot--stale {
  background: var(--stale);
  box-shadow: 0 0 0 3px var(--stale-soft);
}

.component-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.component-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.component-message {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.component-uptime {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.component-uptime-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.component-uptime-label {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.component-toggle-icon {
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  transition: transform 0.15s ease;
}
.component-toggle-icon::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 3px 0 0 3px;
}
.component-card.is-open .component-toggle-icon {
  transform: rotate(180deg);
}

/* Bar chart */
.bars-wrapper {
  margin-top: 14px;
}
.bars-grid {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  height: 34px;
}
.bars-grid[data-range='7'] {
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bars-grid[data-range='30'] {
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
}
.bars-grid[data-range='90'] {
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
}

.bar {
  background: var(--empty-bar);
  border-radius: 2px;
  min-width: 2px;
  height: 100%;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.bar:hover {
  transform: scaleY(1.08);
  cursor: pointer;
}
.bar--operational {
  background: var(--ok);
}
.bar--degraded_performance {
  background: var(--degraded);
}
.bar--partial_outage {
  background: var(--partial);
}
.bar--major_outage {
  background: var(--outage);
}
.bar--maintenance {
  background: var(--maintenance);
}

.bars-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* Children (expandable group) */
.component-children {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 14px;
}
.component-card.is-open .component-children {
  display: flex;
}

.component-child {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.component-child .component-label {
  font-size: 13px;
  font-weight: 500;
}
.component-child .component-message {
  font-size: 12px;
}
.component-child-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Incidents + maintenance */
.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--partial);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.alert-card--major {
  border-left-color: var(--outage);
}
.alert-card--minor {
  border-left-color: var(--degraded);
}
.alert-card--maintenance {
  border-left-color: var(--maintenance);
}
.alert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.alert-severity {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--partial-soft);
  color: var(--partial);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.alert-card--major .alert-severity {
  background: var(--outage-soft);
  color: var(--outage);
}
.alert-card--minor .alert-severity {
  background: var(--degraded-soft);
  color: var(--degraded);
}
.alert-card--maintenance .alert-severity {
  background: var(--maintenance-soft);
  color: var(--maintenance);
}
.alert-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.alert-message {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.alert-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}
.alert-updates {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-update {
  font-size: 12px;
  color: var(--text-muted);
}
.alert-update strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
  font-size: 12px;
}
.footer-brand {
  font-weight: 500;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-meta {
  font-variant-numeric: tabular-nums;
}

/* Tooltip */
.tooltip {
  position: fixed;
  z-index: 50;
  padding: 8px 10px;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, calc(-100% - 8px));
  max-width: 220px;
}
.tooltip-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.tooltip-meta {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Skeleton */
.component-skeleton {
  height: 76px;
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--bg-elevated) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--border);
  border-radius: 12px;
}
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Responsive */
@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 10px;
  }
  .topbar > .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }
  .topbar > #theme-toggle {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .topbar > .topbar-actions {
    flex: 0 0 100%;
    justify-content: flex-end;
    gap: 8px;
  }
  .brand-text {
    flex-wrap: wrap;
    row-gap: 2px;
    column-gap: 6px;
    font-size: 14px;
    line-height: 1.2;
  }
  .brand-text-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .topbar-actions {
    flex-wrap: wrap;
  }
  .ghost-button {
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .icon-button {
    width: 34px;
    height: 34px;
  }
  .shell {
    padding: 28px 16px 48px;
    gap: 22px;
  }
  .overall {
    padding: 32px 18px 24px;
  }
  .overall-title {
    font-size: 22px;
  }
  .section-header--flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-header--flex .section-title {
    flex: 0 1 auto;
  }
  .range-tabs {
    align-self: auto;
    margin-left: auto;
  }
  .component-card {
    padding: 14px 14px;
    overflow: hidden;
  }
  .component-row {
    grid-template-columns: auto 1fr auto;
  }
  .component-toggle-icon {
    display: none;
  }
  .component-card.is-open .component-row {
    grid-template-columns: auto 1fr auto;
  }
  .bars-wrapper {
    width: 100%;
    overflow: hidden;
  }
  .bars-grid {
    height: 28px;
    width: 100%;
    min-width: 0;
  }
  .bar {
    min-width: 0;
  }
  .footer {
    padding: 20px 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .topbar {
    padding: 12px 14px;
  }
  .brand-text-sub {
    display: none;
  }
  .ghost-button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .subscribe-cta {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .shell {
    padding: 24px 14px 44px;
  }
  .overall-title {
    font-size: 20px;
  }
  .overall-subtitle {
    font-size: 14px;
  }
  .section-title {
    font-size: 16px;
  }
  .section-header--flex {
    gap: 8px;
  }
  .range-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.cta-short {
  display: none;
}

@media (max-width: 380px) {
  .ghost-button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .cta-full {
    display: none;
  }
  .cta-short {
    display: inline;
  }
}

/* ===========================================================================
   Subscribe modal + history detail popover (PR3 + PR4)
   =========================================================================== */

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.subscribe-modal[hidden] {
  display: none;
}
.subscribe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(4px);
}
.subscribe-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
  max-height: 90vh;
  overflow-y: auto;
}
.subscribe-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.subscribe-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.subscribe-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.subscribe-label input,
.subscribe-label select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.subscribe-label input:focus,
.subscribe-label select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/*
 * Custom dropdown (enterprise grade — native <select> mobile dropdown popup
 * pozisyon bug'unu engeller, full ARIA + klavye desteği). Modal içinde
 * absolute positioned listbox.
 */
.custom-select {
  position: relative;
}
.custom-select-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.custom-select-button:focus-visible,
.custom-select-button[aria-expanded='true'] {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.custom-select-button-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.custom-select-button[aria-expanded='true'] .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.custom-select-listbox {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(2, 6, 12, 0.5);
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.custom-select-listbox[hidden] {
  display: none;
}
.custom-select-listbox--above {
  top: auto;
  bottom: calc(100% + 4px);
}
.custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  text-align: left;
}
.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-active {
  background: var(--bg-elevated);
  outline: none;
}
.custom-select-option[aria-selected='true'] {
  color: var(--accent);
  font-weight: 600;
}
.custom-select-option-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  visibility: hidden;
}
.custom-select-option[aria-selected='true'] .custom-select-option-check {
  visibility: visible;
}
.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.subscribe-consent input {
  margin-top: 3px;
}
.subscribe-consent a {
  color: var(--accent);
}
.subscribe-turnstile {
  margin: 14px 0;
}
.subscribe-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.subscribe-submit:hover {
  filter: brightness(1.1);
}
.subscribe-status {
  margin: 14px 0 0;
  font-size: 13px;
  min-height: 1.2em;
}
.subscribe-status[data-kind='error'] {
  color: var(--outage);
}
.subscribe-status[data-kind='success'] {
  color: var(--ok);
}
.subscribe-status[data-kind='info'] {
  color: var(--text-muted);
}
.subscribe-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.subscribe-close:hover {
  color: var(--text);
}
body.subscribe-open {
  overflow: hidden;
}

.subscribe-cta {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.subscribe-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/*
 * History hover popover (enterprise grade — Claude Status seviyesi)
 * Tıklama davranışı kaldırıldı; sadece hover. Hover gecikmeli (80ms açma /
 * 120ms kapama) ve klavye Escape ile dismiss edilir.
 */

.history-popover {
  position: fixed;
  z-index: 90;
  width: 320px;
  max-width: calc(100vw - 16px);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow:
    0 20px 48px rgba(2, 6, 12, 0.42),
    0 2px 8px rgba(2, 6, 12, 0.16);
  pointer-events: auto;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.history-popover[hidden] {
  display: none;
}

.history-popover-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.history-popover-date {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.history-popover-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.history-popover-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.history-popover-icon svg {
  width: 100%;
  height: 100%;
}
.history-popover-icon[data-severity='none'] {
  color: var(--ok);
}
.history-popover-icon[data-severity='minor'] {
  color: var(--degraded);
}
.history-popover-icon[data-severity='major'] {
  color: var(--partial);
}
.history-popover-icon[data-severity='critical'] {
  color: var(--outage);
}
.history-popover-icon[data-severity='maintenance'] {
  color: var(--accent);
}
.history-popover-status {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}
.history-popover-duration {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.history-popover-related {
  margin-top: 10px;
}
.history-popover-related:empty {
  display: none;
}
.history-popover-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.history-popover-incident {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
}
.history-popover-incident:first-of-type {
  border-top: none;
  padding-top: 2px;
}
.history-popover-incident-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-popover-incident-time {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.history-popover-incident-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0 0;
  line-height: 1.45;
}

/* Bar hover: cursor default (tıklama yok) + parlak ipucu */
.bar.bar--hoverable:hover {
  filter: brightness(1.35);
}
