:root { color-scheme: light dark; --bg: #f6f7f8; --ink: #172321; --muted: #526460; --line: #ced9d6; --paper: #fff; --accent: #166758; --highlight: #e1f1eb; --warn: #97382c; font: 15px/1.55 system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --bg: #171c1b; --ink: #eef6f4; --muted: #b1c2be; --line: #465450; --paper: #242b29; --accent: #166758; --highlight: #314640; --warn: #ffb4a6; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.frame { width: min(1220px, 100%); padding: 0 clamp(12px, 3vw, 36px); margin-inline: auto; }
.bar, .section-head, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar, .section-head { justify-content: space-between; }
.bar { min-height: 60px; }
.bar strong { font-size: 17px; }
.bar span { color: var(--muted); font-size: 14px; margin-left: 8px; font-weight: 500; }
h1 { font-size: 23px; margin: 12px 0; }
h2 { font-size: 18px; overflow-wrap: anywhere; }
button, input { font: inherit; color: inherit; }
button { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; min-height: 36px; padding: 5px 12px; cursor: pointer; }
button:hover:not(:disabled) { background: var(--highlight); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary { background: var(--accent); border-color: var(--accent); color: white; }
button.primary:hover:not(:disabled) { filter: brightness(.92); background: var(--accent); }
button.danger, #status[data-error="true"] { color: var(--warn); }
input { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; min-height: 35px; width: 100%; padding: 5px 8px; }
label { display: grid; gap: 5px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
nav button[aria-pressed="true"] { background: var(--highlight); border-color: var(--accent); font-weight: 600; }
#status { color: var(--muted); min-height: 1.55em; margin: 12px 0; }
#login { display: grid; gap: 14px; max-width: 380px; margin: 24px 0; }
.scroll { overflow-x: auto; }
table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; font-size: 14px; }
th { color: var(--muted); font-weight: 600; background: var(--highlight); }
td, th { padding: 9px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#catalog table { min-width: 920px; table-layout: fixed; }
#catalog th:nth-child(5), #catalog th:nth-child(6) { width: 20%; }
#catalog th:last-child { width: 80px; }
.release-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 10px 0 20px; }
.release-form > label:first-child { max-width: 150px; }
.release-form > label:nth-child(2) { max-width: 100%; }
dialog { width: min(700px, 95vw); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #0007; }
#review-content { max-height: 56vh; overflow: auto; padding: 0 8px; }
#review-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog .actions { justify-content: end; margin-top: 14px; }
