:root {
  color-scheme: dark;
  --background: #0b100f;
  --sidebar: #101614;
  --card: #141c19;
  --surface: #0f1714;
  --line: #26352d;
  --text: #e8f2ec;
  --muted: #a3b4aa;
  --accent: #81eaa1;
  --accent-ink: #103622;
  --light-red: #ffaba9;
  --radius: 16px;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; line-height: 1.2; }
h2 { font-size: 1.12rem; letter-spacing: -.015em; }
h3 { font-size: 1.02rem; }
p { margin-block: .45rem; }
a { color: var(--accent); text-underline-offset: 3px; }
small, .muted, .empty { color: var(--muted); }
code { color: #d0e3d6; font-size: .86em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; align-self: start; display: flex; flex-direction: column;
  gap: 26px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 24px 16px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding-inline: 6px; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 11px; background: #1b2b21; }
.brand strong { display: block; font-size: 1.04rem; letter-spacing: -.02em; }
.brand small { display: block; font-size: .78rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent;
  border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .88rem; white-space: nowrap;
}
.sidebar nav a:hover { background: var(--card); color: var(--text); }
.sidebar nav a[aria-current] { background: #173125; border-color: #284e37; color: #a1f2b6; font-weight: 670; }
.side-bottom { margin-top: auto; display: grid; gap: 12px; padding: 4px 7px; }
.side-bottom > a { font-size: .78rem; color: var(--muted); }
.workspace { width: min(100%, 1320px); margin-inline: auto; padding: 34px clamp(20px, 4vw, 54px); min-width: 0; }
.top, .section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top { margin-bottom: 25px; }
.section-head { margin-bottom: 12px; }
.section-head a, .back { font-size: .88rem; }
.back { display: inline-block; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats.rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { margin: 0; min-height: 101px; background: linear-gradient(140deg, #17251d 0%, var(--card) 75%); }
.metric span { display: block; color: var(--muted); font-size: .85rem; }
.metric strong { display: block; margin-top: 3px; color: var(--accent); font-size: clamp(1.38rem,3vw,1.9rem); letter-spacing: -.025em; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent;
  border-radius: 9px; padding: 9px 13px; min-height: 42px; color: #10281b; background: var(--accent);
  font-family: inherit; font-size: .87rem; font-weight: 670; text-decoration: none;
  cursor: pointer; text-align: center;
}
button:hover, .button:hover { filter: brightness(1.10); }
.secondary { color: var(--text); background: #1b2922; border-color: #35493c; }
.danger { color: var(--light-red); background: #321f22; border-color: #654244; }
label { display: grid; gap: 5px; color: #d8e7dd; font-size: .85rem; min-width: 0; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 42px; border: 1px solid #34473a; border-radius: 8px;
  background: var(--surface); padding: 9px 10px; color: var(--text); font: inherit; color-scheme: dark;
}
input::placeholder { color: #96aa9c; }
input[type=file]::file-selector-button { color: var(--text); background: #26392e; border: 0; border-radius: 5px; margin-right: 8px; padding: 5px 8px; }
textarea { resize: vertical; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; }
.filters label { flex: 1 1 150px; max-width: 350px; }
.form-grid { align-items: start; }
.form-grid button { margin-top: 26px; }
.stack { display: grid; gap: 14px; margin-top: 13px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; text-align: left; width: 100%; font-size: .84rem; }
td, th { border-bottom: 1px solid var(--line); padding: 12px 9px; vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--muted); font-size: .76rem; font-weight: 650; }
table tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; width: fit-content; border-radius: 20px; white-space: nowrap; padding: 3px 8px; font-size: .74rem; font-weight: 670; }
.pill.green { background: #203f2e; color: #a0f3b6; }
.pill.gray { background: #27352e; color: #c8d5cd; }
.pill.red { background: #432b2d; color: var(--light-red); }
.pill.amber { background: #402f1f; color: #ffd18d; }
.activity-text { display: block; margin-top: 4px; }
.notice { border: 1px solid #3b5d47; background: #172b20; border-radius: 10px; padding: 10px 13px; margin: 0 0 16px; }
.danger-notice { border-color: #744749; background: #2e2021; color: var(--light-red); }
.issued { border-color: #477b57; }
.copy, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copy input { flex: 1 1 200px; max-width: 430px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,170px), 1fr)); gap: 15px; margin-bottom: 18px; }
.facts div { min-width: 0; overflow-wrap: anywhere; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; color: var(--muted); font-size: .82rem; }
.pager div { display: flex; flex-wrap: wrap; gap: 8px; }
.release-row { padding-block: 17px; border-bottom: 1px solid var(--line); }
.release-row:last-of-type { border-bottom: 0; padding-bottom: 6px; }
.release-row h3 small { margin-left: 5px; font-weight: normal; }
.release-row .actions { margin-top: 10px; }
.changelog { white-space: pre-wrap; overflow-wrap: anywhere; }
details { font-size: .86rem; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
.login { display: grid; min-height: 100vh; align-items: center; background: radial-gradient(ellipse at 50% 20%, #1a3022, var(--background) 65%); }
.login-wrap { width: min(calc(100% - 32px), 410px); margin: 32px auto; }
.login-brand { margin: 0 0 18px; }
.signin { padding: 24px; }
.login-footer { font-size: .79rem; text-align: center; }
.login-footer span { margin-inline: 3px; }
@media (max-width: 960px) { .app { grid-template-columns: 200px minmax(0,1fr); } .workspace { padding-inline: 18px; } }
@media (max-width: 740px) {
  .app { display: block; }
  .sidebar { position: static; height: auto; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar nav a { padding: 8px; white-space: normal; }
  .side-bottom { display: flex; justify-content: space-between; align-items: center; }
  .workspace { padding: 22px 12px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { padding: 14px; }
  .table-wrap { overflow: visible; }
  table, tbody, tr { display: block; }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  tr { border-bottom: 1px solid var(--line); padding: 7px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; display: grid; grid-template-columns: minmax(80px, 25%) minmax(0,1fr); gap: 7px; padding: 4px 2px; }
  td::before { content: attr(data-label); font-size: .76rem; color: var(--muted); }
  td .activity-text { grid-column: 2; margin-top: 0; }
}
