:root {
  color-scheme: dark;
  --background: #000510;
  --surface: #0d152b;
  --raised: #172343;
  --text: #eff4ff;
  --muted: #a8b7d9;
  --line: #293a5f;
  --accent: #9ebbff;
  --blue: #2c5bf0;
  --radius: 12px;
  font: 16px/1.5 "Segoe UI", "Arial", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, input[type=file]::file-selector-button { cursor: pointer; }
:focus-visible { outline: 2px solid #b9ccff; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.top { background: #090f20; border-bottom: 1px solid var(--line); }
.nav, .brand, .actions, .heading, .card-heading { display: flex; align-items: center; gap: .75rem; }
.nav, .heading, .card-heading { justify-content: space-between; }
.nav { min-height: 70px; }
.brand { gap: .65rem; font-weight: 720; letter-spacing: .035em; }
.brand-mark { display: grid; place-items: center; color: var(--text); border-bottom: 3px solid var(--blue); font: 800 25px/1.2 "Bahnschrift SemiCondensed", "Segoe UI", sans-serif; letter-spacing: .025em; padding: 0 .1em .12em; }
.brand-tail, .muted, .empty, .heading p { color: var(--muted); }
.brand-tail { font-weight: 500; letter-spacing: 0; }
.text-link:hover, h3 a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1 { font: 750 clamp(2rem, 5vw, 3.15rem)/1.07 "Bahnschrift SemiCondensed", "Segoe UI", sans-serif; letter-spacing: -.032em; }
h2 { font-size: 1.27rem; letter-spacing: -.016em; }
h3 { font-size: 1rem; line-height: 1.35; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-size: .92rem; font-weight: 660; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #315ad7; }
.secondary { color: var(--text); background: var(--raised); border-color: var(--line); }
.subtle { color: #c9d4e5; background: transparent; padding-inline: .62rem; }
.secondary:hover, .subtle:hover { background: #2a364b; }
.button:disabled { opacity: .7; cursor: wait; }
.admin { padding: 38px 0 56px; }
.heading { position: relative; overflow: hidden; margin-bottom: 24px; padding: 21px 24px; border: 1px solid #354c83; border-radius: var(--radius); background: linear-gradient(114deg, #101a36, #152551 65%, #232357); }
.heading::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, #6990ff 1px, transparent 1.4px) top right/11px 11px; opacity: .22; mask-image: linear-gradient(112deg, transparent 45%, #000); }
.heading > * { position: relative; }
.heading p { margin-top: .4rem; }
.columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 20px; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card-heading { margin-bottom: 18px; }
.count, .version, .state { display: inline-flex; align-items: center; border-radius: 6px; padding: .13rem .5rem; font-size: .82rem; line-height: 1.5; white-space: nowrap; color: #d3dded; background: #2a354a; }
.state.live { color: #c7d7ff; background: #253969; }
.release { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; border: 1px solid #354257; padding: .7rem; border-radius: 11px; }
.admin-row + .admin-row { margin-top: .55rem; }
.admin-row.selected { border-color: #6487f4; background: #1a2854; }
.tile { width: 40px; height: 40px; display: grid; place-items: center; background: #20376d; color: #cbd9ff; border-radius: 8px; font-weight: 730; font-size: 1.15rem; }
.entry { overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .36rem; }
.empty { padding: 16px; border: 1px dashed #46546b; border-radius: 10px; }
.text-link { color: var(--accent); font-size: .91rem; text-decoration: underline; text-underline-offset: 3px; }
label { display: block; color: #ecf1f8; font-size: .94rem; font-weight: 630; margin-top: .9rem; margin-bottom: .28rem; }
input, textarea { display: block; background: #121926; color: var(--text); border: 1px solid #43516a; border-radius: 8px; padding: .57rem .7rem; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #8d9bb2; }
input[readonly] { color: var(--muted); }
textarea { resize: vertical; }
input[type=file] { color: #c3cee0; padding: .44rem; }
input[type=file]::file-selector-button { border: 0; background: #2d3b52; color: var(--text); border-radius: 6px; padding: .38rem .55rem; margin-right: .55rem; }
small, .optional { color: var(--muted); font-size: .84rem; }
.editor small { display: block; margin-top: .36rem; }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.publish { width: 100%; margin-top: 1.2rem; }
.notice { border-left: 3px solid #92afff; background: #1d3161; padding: .6rem .8rem; border-radius: 5px; overflow-wrap: anywhere; }
.notice.error { border-color: #f0a29b; background: #492e36; color: #ffe4e0; }
[data-upload-status] { margin-top: .5rem; }
.login-wrap { padding: clamp(32px, 8vw, 100px) 0; }
.login { width: min(440px, 100%); margin: auto; padding: clamp(22px, 5vw, 34px); background: linear-gradient(140deg, #0d152b 38%, #172551); }
.login h1 { font-size: clamp(1.7rem, 5vw, 2.25rem); margin-bottom: 18px; }
.login .button { width: 100%; margin-top: 1rem; }
details { margin-top: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; }
summary { color: var(--accent); cursor: pointer; font-size: .94rem; font-weight: 600; }
.check { display: flex; align-items: center; gap: .55rem; }
.check input { width: auto; margin: 0; accent-color: var(--blue); }
.brand img { display: block; object-fit: contain; flex: none; }
.section-nav, .editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.section-nav [aria-current=page] { background: #22315c; border-color: #3c4e7a; color: var(--text); }
.editor-actions { justify-content: flex-end; margin-top: 1.2rem; }
select { display: block; width: 100%; background: #121926; color: var(--text); border: 1px solid #43516a; border-radius: 8px; padding: .57rem .7rem; font: inherit; }
@media (max-width: 650px) {
  .nav { flex-wrap: wrap; gap: .25rem .75rem; padding-block: .45rem; }
  .section-nav .button { padding-inline: .5rem; min-height: 36px; }
}
@media (max-width: 750px) { .columns { grid-template-columns: minmax(0, 1fr); } .heading { flex-wrap: wrap; } }
@media (max-width: 430px) { .wrap { width: calc(100% - 28px); } .brand-tail { display: none; } .card { padding: 16px; } .release .tile { display: none; } .release { grid-template-columns: minmax(0, 1fr) auto; } }
