:root { --navy: #0b1f33; --accent: #19b37a; --text: #1b2430; --muted: #5d6b7a; --line: #e3e8ee; --bg: #f4f6f9; --red: #c0392b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: #1f6fb2; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.top { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; }
.top a { color: #d6e2ee; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; font-size: 14px; }
.top nav a:hover { color: #fff; }
.brand { font-weight: 700; color: #fff !important; display: flex; align-items: center; gap: 6px; }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 14px; }
.logout button { background: transparent; color: #d6e2ee; border: 1px solid #3b5470; }
h1 { font-size: 22px; margin: 8px 0 14px; } h2 { font-size: 17px; margin: 24px 0 8px; }
button { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #062818; font-weight: 600; }
button.danger { color: var(--red); border-color: #e7b5af; }
button.small { padding: 3px 9px; font-size: 13px; }
input, select, textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid #cfd8e1; border-radius: 6px; background: #fff; }
textarea { line-height: 1.55; resize: vertical; }
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; }
.flash { background: #eefaf4; border: 1px solid #bfe8d4; padding: 8px 12px; border-radius: 6px; }
.warn, .reason { background: #fff6e5; border: 1px solid #f1d39a; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .ok { color: #1d7a52; } .err { color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-decoration: none; color: var(--text); }
.card b { display: block; font-size: 24px; } .card span { color: var(--muted); font-size: 13px; }
.card.alert { border-color: #f1d39a; background: #fffaf0; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fafbfc; font-size: 12.5px; color: var(--muted); }
.list td.t a { font-weight: 600; text-decoration: none; color: var(--text); }
.list td.actions { white-space: nowrap; text-align: right; }
.list td.actions form { display: inline; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; } .filters select { width: auto; }
form.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
input.num { width: 70px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; align-self: start; }
.side img { width: 100%; border-radius: 6px; } .side form { margin-bottom: 8px; } .side button { width: 100%; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
pre.source { white-space: pre-wrap; font-size: 12px; max-height: 360px; overflow: auto; background: #f6f8fa; padding: 8px; border-radius: 6px; }
.login { max-width: 360px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.login h1 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.login button { width: 100%; }
@media (max-width: 760px) {
  .edit-grid { grid-template-columns: 1fr; }
  .list td.actions { white-space: normal; }
  table { font-size: 13px; } th, td { padding: 6px 8px; }
}
.slots { max-width: 760px; }
.slot { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.slot-main { border-color: var(--accent); border-width: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 760px) { .row2 { grid-template-columns: 1fr; } }
.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.row2 label.check { margin-bottom: 4px; }
.upload { margin-top: 10px; } .upload label { font-size: 13px; } .upload input[type=file] { padding: 6px; font-size: 13px; }
