:root {
  --bg: #11100f;
  --surface: #1a1816;
  --surface-2: #211e1b;
  --line: #3b342e;
  --text: #f3eee8;
  --muted: #aca197;
  --orange: #dd6b42;
  --orange-soft: rgba(221, 107, 66, .13);
  --sand: #e6c77d;
  --blue: #79acd5;
  --coral: #ed8f73;
  --green: #72c796;
  --danger: #d76459;
  --content: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(221, 107, 66, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.hero {
  position: relative;
  display: flex;
  min-height: 330px;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid #49382e;
  background:
    linear-gradient(112deg, rgba(17, 16, 15, .98) 12%, rgba(32, 27, 23, .9) 58%, rgba(103, 49, 31, .74)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(221, 107, 66, .1) 18px 20px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(500px) rotateX(58deg) scale(1.6) translateY(25%);
  transform-origin: center bottom;
}

.hero-inner {
  position: relative;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 42px;
}

.eyebrow, .kicker {
  margin: 0 0 9px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-heading { display: flex; align-items: center; gap: 22px; }
.rust-mark {
  display: grid;
  width: 82px;
  height: 82px;
  flex: none;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: rgba(17, 16, 15, .64);
  color: var(--orange);
  font: 900 47px/1 "Arial Narrow", Impact, sans-serif;
  box-shadow: 0 0 0 7px rgba(221, 107, 66, .08), inset 0 0 25px rgba(221, 107, 66, .08);
}

.hero h1 { margin: 0; font-size: 45px; line-height: 1.12; letter-spacing: -.025em; }
.hero-copy { max-width: 720px; margin: 12px 0 0; color: #ded4cb; font-size: 16px; }

.nav-band {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 15, .96);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  width: min(var(--content), calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  align-items: stretch;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.nav svg, .status-row svg { width: 17px; height: 17px; flex: none; }

.status-band { border-bottom: 1px solid var(--line); background: #161411; }
.status-row {
  display: flex;
  width: min(var(--content), calc(100% - 40px));
  min-height: 46px;
  margin: 0 auto;
  align-items: center;
  gap: 19px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-item { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.online { background: var(--green); box-shadow: 0 0 9px rgba(114, 199, 150, .72); }
.status-dot.preparing, .status-dot.starting { background: var(--orange); box-shadow: 0 0 9px rgba(221, 107, 66, .62); }
.status-dot.offline, .status-dot.stale { background: var(--danger); }

.wrap { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
main { padding: 34px 0 72px; }
.section { padding: 31px 0; border-top: 1px solid var(--line); }
.section:first-child { padding-top: 0; border-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section h2 { margin: 0; font-size: 24px; line-height: 1.3; }
.section-lead, .updated { color: var(--muted); font-size: 14px; }
.section-lead { margin: 5px 0 0; }
.updated { margin: 12px 0 0; text-align: right; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(150deg, var(--surface), #171411);
}
.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-value { margin-top: 3px; font-size: 24px; font-weight: 850; line-height: 1.22; overflow-wrap: anywhere; }
.metric-value.orange { color: var(--orange); }
.metric-value.sand { color: var(--sand); }
.metric-value.blue { color: var(--blue); }
.metric-value.coral { color: var(--coral); }

.phase-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(221, 107, 66, .48);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  background: var(--orange-soft);
}
.phase-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(221, 107, 66, .6); border-radius: 50%; color: var(--orange); }
.phase-icon svg { width: 25px; height: 25px; }
.phase-card strong { font-size: 19px; }
.phase-card p { margin: 4px 0 0; color: #d9c5b9; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #151310; color: var(--muted); font-size: 12px; font-weight: 800; }
td:first-child { width: 34%; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.collection-grid svg { width: 22px; height: 22px; color: var(--orange); }
.collection-grid h3 { margin: 9px 0 4px; font-size: 17px; }
.collection-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.privacy-note {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-left: 3px solid var(--green);
  background: rgba(114, 199, 150, .08);
  color: #d8e9de;
}
.privacy-note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green); }
.privacy-note p { margin: 3px 0 0; color: #b7c8bd; }

.compact-hero { min-height: 270px; }
.catalog-note { margin: 0 0 16px; padding: 13px 15px; border-left: 3px solid var(--sand); background: rgba(230, 199, 125, .08); color: #dfd1ae; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #151310; }
.segmented button { padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--orange); }
.search { width: min(330px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #151310; color: var(--text); font: inherit; }
.search:focus { border-color: var(--orange); }
.empty { padding: 25px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.badge { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge.managed { border-color: rgba(114, 199, 150, .55); color: var(--green); }
.setting-name { color: var(--text) !important; }
.setting-key { color: var(--sand); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.setting-description { min-width: 250px; color: var(--muted); font-size: 13px; }
.settings-table td:first-child { width: auto; }

.error { margin-top: 14px; padding: 17px; border: 1px solid rgba(215, 100, 89, .55); border-radius: 6px; color: #ffc5bd; background: rgba(215, 100, 89, .08); }
footer { padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 780px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 36px; }
  .rust-mark { width: 68px; height: 68px; font-size: 39px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
}

@media (max-width: 560px) {
  .hero { min-height: 300px; }
  .hero-inner, .nav, .status-row, .wrap { width: min(100% - 28px, var(--content)); }
  .hero-heading { align-items: flex-start; gap: 15px; }
  .rust-mark { width: 57px; height: 57px; font-size: 33px; }
  .hero h1 { font-size: 30px; }
  .hero-copy { font-size: 14px; }
  .nav { width: 100%; }
  .nav a { flex: 1; justify-content: center; }
  .metrics, .collection-grid { grid-template-columns: 1fr; }
  .phase-card { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 17px; }
  .phase-icon { width: 42px; height: 42px; }
  .table-wrap { border: 0; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 9px; }
  tbody tr { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
  tbody td { display: block; width: 100%; padding: 8px 12px; border-bottom: 0; }
  tbody td:first-child { width: 100%; padding-bottom: 0; font-size: 12px; }
}
