:root {
  color-scheme: dark;
  --ops-bg: #090b0f;
  --ops-panel: #12161d;
  --ops-panel-2: #181e27;
  --ops-border: #2b3441;
  --ops-text: #f2f5f7;
  --ops-muted: #a8b1bc;
  --ops-accent: #d8b96b;
  --ops-danger: #ff8f86;
  --ops-focus: #92c5ff;
}
* { box-sizing: border-box; }
html { background: var(--ops-bg); }
body {
  margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(circle at 100% 0, #1b2028 0, var(--ops-bg) 38rem);
  color: var(--ops-text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.auth-shell { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(100%, 32rem); }
.auth-card h1 { margin: 0; font-size: clamp(1.7rem, 8vw, 2.35rem); }
.auth-form { padding: 0; margin-top: 20px; }
.auth-primary { width: 100%; min-height: 48px; }
a { color: inherit; text-decoration: none; }
main a:not(.ops-card):not(.ops-list-card):not(.ops-button) {
  display: inline-flex; align-items: center; min-height: 44px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ops-focus); outline-offset: 3px;
}
.ops-shell { width: min(100%, 1440px); margin: 0 auto; padding: 16px; }
.ops-topbar { display: grid; gap: 14px; margin-bottom: 20px; }
.ops-brand { display: flex; align-items: center; gap: 12px; }
.ops-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #6f6040; border-radius: 12px; color: var(--ops-accent); font-weight: 800; }
.ops-brand h1 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.55rem); letter-spacing: -.02em; }
.ops-kicker { margin: 0 0 2px; color: var(--ops-accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.ops-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ops-nav a, .ops-button, button, input, select, summary {
  min-height: 44px; border-radius: 12px;
}
.ops-nav a { display: inline-flex; align-items: center; white-space: nowrap; padding: 0 14px; border: 1px solid var(--ops-border); background: #10141a; color: var(--ops-muted); }
.ops-nav a[aria-current="page"] { border-color: #7c6b45; color: var(--ops-text); background: #211d16; }
.ops-system-menu { position: relative; min-width: 0; }
.ops-system-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ops-border); border-radius: 12px; background: #10141a; color: var(--ops-muted); cursor: pointer; list-style: none; }
.ops-system-menu > summary::-webkit-details-marker { display: none; }
.ops-system-links { z-index: 10; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: min(92vw, 430px); padding: 8px; margin-top: 6px; border: 1px solid var(--ops-border); border-radius: 14px; background: #10141a; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.ops-system-links a { justify-content: center; white-space: normal; text-align: center; }
.ops-page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 16px 0; }
.ops-page-head h2 { margin: 0; font-size: clamp(1.45rem, 6vw, 2.15rem); }
.ops-page-head p { margin: 4px 0 0; color: var(--ops-muted); }
.ops-filter-panel { margin: 16px 0; border: 1px solid var(--ops-border); border-radius: 16px; background: rgba(18, 22, 29, .92); }
.ops-filter-panel > summary { display: flex; align-items: center; padding: 0 14px; color: var(--ops-text); cursor: pointer; font-weight: 700; }
.ops-filter-panel[open] > summary { border-bottom: 1px solid var(--ops-border); }
.ops-filters { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; margin: 16px 0; border: 1px solid var(--ops-border); border-radius: 16px; background: rgba(18, 22, 29, .92); }
.ops-filter-panel .ops-filters { margin: 0; border: 0; border-radius: 0 0 16px 16px; background: transparent; }
.ops-filters label { display: grid; gap: 6px; color: var(--ops-muted); font-size: .82rem; }
.ops-filters input, .ops-filters select { width: 100%; padding: 10px 12px; border: 1px solid #3b4655; background: #0c1016; color: var(--ops-text); font: inherit; }
.ops-filters .ops-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ops-filters .ops-checkbox input { width: 22px; height: 22px; margin: 0; accent-color: var(--ops-accent); }
.ops-filter-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.ops-button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid #786943; background: #2a2418; color: #fff2ca; font: inherit; font-weight: 700; cursor: pointer; }
.ops-button.secondary { border-color: var(--ops-border); background: #151a22; color: var(--ops-text); }
.ops-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-card { min-width: 0; padding: 16px; border: 1px solid var(--ops-border); border-radius: 16px; background: linear-gradient(145deg, rgba(24,30,39,.98), rgba(15,19,25,.98)); overflow-wrap: anywhere; }
a.ops-card { min-height: 112px; transition: border-color .18s ease, transform .18s ease; }
a.ops-card:hover { border-color: #6f6040; }
.ops-card h3 { margin: 0 0 8px; font-size: .86rem; color: var(--ops-muted); font-weight: 600; }
.ops-value { display: block; font-size: clamp(1.55rem, 8vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ops-section { margin: 26px 0; }
.ops-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ops-section h2, .ops-section h3 { margin: 0; }
.ops-muted { color: var(--ops-muted); }
.ops-alert { border-color: #6e413e; background: linear-gradient(145deg, #211716, #151417); }
.ops-alert strong { color: #ffd0cb; }
.ops-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid #465263; border-radius: 999px; color: #d9e1e9; background: #171d25; font-size: .78rem; font-weight: 700; }
.ops-badge.attention { border-color: #7e4742; color: #ffd0cb; }
.ops-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.ops-list-card { display: grid; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--ops-border); border-radius: 16px; background: var(--ops-panel); overflow-wrap: anywhere; }
.ops-list-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ops-reference { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; color: #c9d1dc; overflow-wrap: anywhere; }
.ops-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.ops-fields div { min-width: 0; }
.ops-fields dt { color: var(--ops-muted); font-size: .76rem; }
.ops-fields dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.ops-timeline { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ops-timeline li { position: relative; padding: 14px 14px 14px 38px; border: 1px solid var(--ops-border); border-radius: 14px; background: var(--ops-panel); }
.ops-timeline li::before { content: ""; position: absolute; left: 15px; top: 20px; width: 9px; height: 9px; border: 2px solid var(--ops-accent); border-radius: 50%; }
.ops-timeline time { color: var(--ops-muted); font-size: .78rem; }
.ops-table-wrap { width: 100%; overflow: hidden; }
.ops-empty { padding: 28px 16px; border: 1px dashed #3b4655; border-radius: 16px; color: var(--ops-muted); text-align: center; }
.ops-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ops-country { display: inline-flex; align-items: center; gap: 7px; }
.ops-danger-text { color: var(--ops-danger); }
.ops-action-panel { margin: 14px 0; border: 1px solid #6f6040; border-radius: 16px; background: #17150f; }
.ops-action-panel > summary { display: flex; align-items: center; padding: 0 14px; cursor: pointer; font-weight: 800; }
.ops-form, .ops-stack, .ops-inline-form { display: grid; gap: 12px; padding: 14px; }
.ops-form label, .ops-stack label, .ops-inline-form label { display: grid; gap: 6px; color: var(--ops-muted); }
.ops-form input, .ops-form select, .ops-form textarea, .ops-stack input, .ops-stack select, .ops-stack textarea, .ops-inline-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #3b4655; border-radius: 12px; background: #0c1016; color: var(--ops-text); font: inherit; }
.ops-form textarea, .ops-stack textarea, .ops-inline-form textarea { min-height: 88px; resize: vertical; }
button.danger, .ops-button.danger { border-color: #8e4c46; background: #351b1a; color: #ffd0cb; }
.ops-json { max-width: 100%; margin: 0; padding: 12px; overflow: auto; border-radius: 12px; background: #0a0d12; color: #dce3ea; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-status { display: block; margin: 4px 0 10px; }
.ops-status-ready { color: #b7dfc2; }.ops-status-warning { color: #f0d393; }.ops-status-not_ready { color: #ffada6; }.ops-status-disabled { color: #a8b1bc; }
.ops-one-time-secret { display: block; max-width: 100%; padding: 12px; border: 1px dashed #8e6f42; border-radius: 12px; background: #090b0f; color: #fff2ca; overflow-wrap: anywhere; user-select: all; }
.ops-noscript { padding: 10px; border: 1px solid var(--ops-border); border-radius: 12px; color: var(--ops-muted); }
.help-head { align-items: flex-start; }
.help-versions { display: grid; gap: 4px; color: var(--ops-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.help-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.help-card { display: flex; flex-direction: column; align-items: flex-start; }
.help-card .ops-button { margin-top: auto; }
.help-search-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.help-document-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.help-document { line-height: 1.65; }
.help-document h1, .help-document h2, .help-document h3 { scroll-margin-top: 16px; overflow-wrap: anywhere; }
.help-code { position: relative; max-width: 100%; }
.help-copy { min-height: 44px; margin: 0 0 6px; padding: 8px 12px; border: 1px solid var(--ops-border); border-radius: 10px; background: #111722; color: var(--ops-text); font: inherit; cursor: pointer; }
.help-copy:focus-visible { outline: 3px solid var(--ops-accent); outline-offset: 2px; }
.help-document pre { max-width: 100%; margin-top: 0; padding: 14px; overflow: auto; border-radius: 12px; background: #090c11; }
.help-document code { overflow-wrap: anywhere; }
.help-document a { text-decoration: underline; text-underline-offset: 3px; }
.help-meta { color: var(--ops-muted); }
@media (min-width: 721px) {
  .ops-shell { padding: 24px 28px 48px; }
  .ops-topbar { grid-template-columns: auto 1fr; align-items: center; }
  .ops-nav { justify-content: flex-end; }
  .ops-filters { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
  .ops-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-list-card { grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr); align-items: start; }
  .ops-system-links { position: absolute; right: 0; }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-search-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
}
@media (min-width: 1180px) {
  .ops-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ops-columns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ops-nav {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible; padding-bottom: 0;
  }
  .ops-nav a { justify-content: center; min-width: 0; padding: 0 10px; white-space: normal; text-align: center; }
  .ops-system-menu { grid-column: 1 / -1; }
  .ops-system-links { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; width: 100%; }
  .ops-filters details { grid-column: 1 / -1; }
  .ops-fields { grid-template-columns: 1fr; }
  .ops-card { padding: 14px; }
  .help-versions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
