:root {
  color-scheme: dark;
  font:
    16px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f2f2ee;
  background: #0a0a0a;
  --muted: #a8a8a2;
  --line: #2a2a28;
  --surface: #121212;
  --accent: #e0e0da;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  min-height: 44px;
  border: 1px solid #3a3a37;
  border-radius: 10px;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #1b1b1a;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #282827;
  border-color: #66665e;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover {
  background: #f2f2ee;
}
button.quiet {
  background: transparent;
}
button.danger {
  color: #ff9183;
  border-color: #703c34;
  background: #291713;
}
button.icon-button {
  width: 44px;
  padding: 10px;
  flex-shrink: 0;
}
button svg,
.nav-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
:focus-visible {
  outline: 2px solid #b4caff;
  outline-offset: 3px;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: #0c0c0c;
  padding: 11px 12px;
}
input::placeholder {
  color: #777770;
}
input[readonly] {
  color: var(--muted);
}
label {
  display: grid;
  min-width: 0;
  gap: 8px;
}
form {
  display: grid;
  gap: 20px;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}
a {
  color: inherit;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #8a8a84;
}
.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}
.topbar {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
}
.brand {
  text-decoration: none;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand span {
  color: #a8b7ed;
}
.product-name {
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.session {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  min-width: 0;
}
#identity {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100dvh - 76px);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 16px;
}
.sidebar > .eyebrow {
  padding: 0 12px 20px;
  font-size: 11px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-button {
  justify-content: start;
  background: transparent;
  border-color: transparent;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  padding: 12px;
}
.nav-button[aria-current="page"] {
  color: #f2f2ee;
  background: #222220;
  border-color: #30302d;
}
.nav-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.nav-icon {
  display: flex;
}
.sidebar-note {
  padding: 28px 12px;
  font-size: 13px;
  color: #8a8a84;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #5bd68a;
  border-radius: 50%;
}
.content {
  padding: 36px 40px 64px;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin: 8px 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
#view {
  display: grid;
  gap: 24px;
}
.notice {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid #665333;
  background: #252015;
  color: #edcc91;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.notice.error,
.inline-error {
  color: #ffb1a5;
}
.inline-error {
  padding: 12px;
  background: #291713;
  border: 1px solid #703c34;
  border-radius: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--surface);
}
.stat-value {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  margin: 10px 0 4px;
  letter-spacing: -0.7px;
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-heading button {
  font-size: 14px;
  min-height: 36px;
  padding: 6px 12px;
}
.panel-body {
  padding: 24px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 14px 20px;
  color: var(--muted);
  background: #151515;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
td .hint {
  margin-top: 4px;
}
td:last-child:has(button) {
  text-align: right;
}
td button {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}
.cell-main {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.cell-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.nowrap {
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #242420;
  color: #cecec5;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.good {
  color: #88dda7;
  background: #18261d;
}
.badge.warn {
  color: #efc783;
  background: #2a2417;
}
.badge.bad {
  color: #ff9b89;
  background: #2d1b17;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 52px 24px;
}
.empty-icon {
  padding: 14px;
  border: 1px solid #363633;
  border-radius: 14px;
  color: #bdbdb4;
  background: #20201d;
  line-height: 0;
  margin-bottom: 4px;
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 15px;
}
.empty button {
  margin-top: 8px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #41413b;
  border-radius: 50%;
  color: #d7d7ce;
  margin-bottom: 12px;
  font-size: 14px;
}
.steps h3 {
  margin-bottom: 8px;
  font-size: 16px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.search {
  max-width: 360px;
}
.count-note {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.service-details {
  color: var(--muted);
  font-size: 14px;
}
.service-details summary {
  cursor: pointer;
  padding: 6px 0;
}
.service-details p {
  padding: 10px 0;
}
.login-card {
  width: min(440px, calc(100% - 32px));
  margin: 9vh auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.login-card h1 {
  margin: 14px 0 8px;
  font-size: 30px;
}
.login-card > p {
  margin-bottom: 28px;
}
.login-card form > button {
  margin-top: 4px;
}
dialog {
  padding: 28px;
  background: #141414;
  color: #f2f2ee;
  border: 1px solid #3a3a37;
  border-radius: 20px;
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  margin-top: 6px;
}
.dialog-heading .icon-button {
  background: transparent;
  border-color: transparent;
}
.dialog-description {
  color: var(--muted);
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
}
.form-footer button {
  min-width: 100px;
}
.input-action {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.input-action button {
  flex-shrink: 0;
  padding: 10px;
}
.price-summary {
  padding: 18px;
  border: 1px solid #3c3c35;
  border-radius: 12px;
  background: #20201c;
}
.price-summary strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.check-field {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: #201d15;
  border: 1px solid #4a4027;
  border-radius: 12px;
}
.check-field input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: #e0e0da;
}
.check-field span {
  font-size: 14px;
}
.summary-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.summary-row dt {
  color: var(--muted);
}
.summary-row dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.action-list {
  display: grid;
  gap: 12px;
}
.action-list button {
  justify-content: space-between;
  text-align: left;
  white-space: normal;
}
.action-list .danger {
  margin-top: 12px;
}
.secret-block {
  padding: 18px;
  border: 1px solid #3c3c35;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #0c0c0c;
}
.secret-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.secret-value {
  display: flex;
  align-items: start;
  gap: 12px;
}
.secret-value code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.5;
  padding-top: 6px;
}
.secret-value button {
  flex-shrink: 0;
}
.result-warning {
  margin-bottom: 20px;
  color: #efc783;
  font-size: 14px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 260px;
  font-size: 13px;
}
@media (min-width: 1500px) {
  .content {
    padding: 40px 48px 72px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 28px 24px 48px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .steps {
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 14px 20px;
    gap: 14px;
    min-height: 68px;
  }
  .product-name {
    display: none;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  .sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .nav-button {
    width: auto;
    flex-shrink: 0;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .nav-count {
    margin-left: 4px;
  }
  .nav-icon {
    display: none;
  }
  .content {
    padding: 24px 20px 48px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-label {
    font-size: 12px;
  }
  .panel-heading {
    padding: 18px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-number {
    float: left;
    margin: 0 12px 24px 0;
  }
  .panel-body {
    padding: 20px;
  }
  .hide-mobile {
    display: none;
  }
  th,
  td {
    padding: 14px 16px;
  }
  .count-note {
    display: none;
  }
  .search {
    max-width: none;
  }
  .toolbar {
    display: block;
  }
  .heading-actions {
    gap: 8px;
  }
}
@media (max-width: 440px) {
  .brand {
    font-size: 22px;
  }
  #identity {
    font-size: 13px;
  }
  .session {
    gap: 8px;
  }
  .session button {
    padding: 8px 12px;
  }
  .content {
    padding: 24px 16px 40px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
  }
  .stat-value {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  .stat .hint {
    grid-column: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .login-card {
    padding: 24px;
    margin-top: 6vh;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .form-footer button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
/* Grid children must be allowed to shrink below the table's intrinsic width. */
#view > *,
.table-scroll {
  min-width: 0;
  max-width: 100%;
}
.notice {
  border-color: #2d5036;
  background: #142119;
  color: #a1d8af;
}
.notice.error {
  border-color: #703c34;
  background: #291713;
  color: #ffb1a5;
}
@media (max-width: 600px) {
  .table-scroll {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 18px 20px;
    gap: 16px 12px;
    border-top: 1px solid var(--line);
  }
  tbody tr:first-child {
    border-top: 0;
  }
  td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 15px;
  }
  td.hide-mobile {
    display: none;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
  }
  td:first-child {
    grid-column: 1 / -1;
  }
  td:first-child .cell-main {
    font-size: 17px;
  }
  td:last-child:has(button) {
    grid-column: 1 / -1;
  }
  td:last-child:has(button)::before {
    display: none;
  }
  td:last-child button {
    width: 100%;
    min-height: 40px;
  }
}
