:root {
  color-scheme: dark;
  --bg: #141416;
  --surface: #1d1d20;
  --surface-2: #242428;
  --line: #34343a;
  --muted: #9a9aa2;
  --text: #f1f1f3;
  --red: #d4383f;
  --red-dark: #8f252a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -20%, rgba(212, 56, 63, .12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 13px; letter-spacing: .15em; }
.brand-mark {
  width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 9px;
  position: relative; transform: rotate(45deg);
}
.brand-mark::after { content: ""; position: absolute; inset: 8px; background: var(--red); border-radius: 2px; }
.brand div { display: grid; line-height: 1.05; }
.brand strong { font-size: 14px; }
.brand span { color: var(--muted); font-size: 9px; margin-top: 5px; }
.status { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.status span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(212,56,63,.12); }
main { max-width: 1180px; margin: 0 auto; padding: 74px 28px 60px; }
.hero { max-width: 760px; margin-bottom: 58px; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1.03; letter-spacing: -.045em; font-weight: 760; }
.intro { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.panel { background: rgba(29,29,32,.92); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 26px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 25px; }
.panel-tools { display: flex; align-items: center; gap: 10px; width: min(590px, 100%); }
.search { flex: 1; min-width: 220px; }
.search input { width: 100%; height: 44px; border: 1px solid #414147; border-radius: 9px; background: #171719; color: var(--text); padding: 0 14px; outline: none; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,56,63,.12); }
.download { display: inline-flex; align-items: center; justify-content: center; height: 44px; border: 1px solid #494950; border-radius: 9px; padding: 0 14px; color: var(--text); text-decoration: none; white-space: nowrap; background: var(--surface-2); }
.download:hover { border-color: var(--red); }
.summary { min-height: 44px; padding: 13px 26px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.app-row { border-bottom: 1px solid var(--line); }
.app-toggle { width: 100%; display: grid; grid-template-columns: 110px minmax(0,1fr) auto 20px; gap: 18px; align-items: center; min-height: 72px; padding: 15px 26px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.app-toggle:hover { background: rgba(255,255,255,.025); }
.appid, .depotid, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.appid { color: #c5c5ca; font-weight: 700; }
.app-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.count { color: var(--muted); font-size: 13px; }
.chevron { color: var(--red); font-size: 20px; transition: transform .16s ease; }
.app-row.open .chevron { transform: rotate(90deg); }
.depots { display: none; background: #18181a; border-top: 1px solid var(--line); padding: 8px 26px 18px 154px; }
.app-row.open .depots { display: block; }
.depot { display: grid; grid-template-columns: 100px minmax(140px,.7fr) minmax(280px,1.3fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #2b2b2f; }
.depot:last-child { border-bottom: 0; }
.depot-name { color: #d4d4d8; }
code { color: #ef9a9e; overflow-wrap: anywhere; font-size: 12px; }
.empty { padding: 50px 26px; text-align: center; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; }
.pager button { border: 1px solid #45454b; border-radius: 8px; background: var(--surface-2); color: var(--text); padding: 8px 15px; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--red); }
.pager button:disabled { opacity: .35; cursor: default; }
#page-label { color: var(--muted); font-size: 13px; }
footer { max-width: 1180px; margin: 0 auto; padding: 26px 28px 44px; display: flex; justify-content: space-between; color: #727279; font-size: 13px; }
footer a { color: #a7a7ad; text-decoration: none; }
footer a:hover { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 760px) {
  .status { display: none; }
  main { padding-top: 48px; }
  .panel-head { align-items: stretch; flex-direction: column; }
  .panel-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .download { width: 100%; }
  .app-toggle { grid-template-columns: 82px minmax(0,1fr) 20px; gap: 10px; padding-inline: 18px; }
  .app-toggle .count { display: none; }
  .depots { padding: 8px 18px 16px; }
  .depot { grid-template-columns: 82px 1fr; }
  .depot code { grid-column: 1 / -1; }
}
