:root { --bg:#F1EFE8; --text:#171A18; --accent:#E7A72D; --dark:#171A18; --font:'Inter', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
main.wide { max-width: 1100px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--dark); color: #fff; }
header.top img { height: 40px; display: block; }
.logo-text { font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
h1, h2 { font-weight: 700; line-height: 1.15; margin: 28px 0 12px; }
h1 { font-size: 26px; } h2 { font-size: 21px; }
p.hint { margin: 6px 0 0; font-size: 15px; opacity: .75; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 0; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-decoration: none; }
.primary { background: var(--accent); color: var(--dark); }
.secondary { background: var(--dark); color: #fff; }
.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
.full { width: 100%; }
.stack > * + * { margin-top: 10px; }
input[type=email], input[type=text], input[type=datetime-local], textarea, select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: #fff; border: 2px solid rgba(0,0,0,.15); border-radius: 0; }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
.card { background: #fff; padding: 16px; margin: 12px 0; }
.card video { width: 100%; max-height: 70vh; background: #000; display: block; }
.caption { white-space: pre-wrap; margin: 12px 0; font-size: 16px; }
.status { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; background: var(--bg); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.modes { display: flex; gap: 8px; }
.modes label { flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: #fff; font-weight: 700; cursor: pointer; padding: 0 10px; text-align: center; font-size: 15px; }
.modes input { accent-color: var(--accent); width: 20px; height: 20px; }
.progress { height: 8px; background: rgba(0,0,0,.08); margin-top: 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.filerow { padding: 8px 0; font-size: 15px; }
.filerow .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { background: var(--dark); color: #fff; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.error { color: #9b1c1c; font-weight: 700; margin: 8px 0; }
.ok { font-weight: 700; margin: 8px 0; }
dialog { border: 0; padding: 0; width: min(560px, 94vw); background: var(--bg); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog form { padding: 18px; }
.muted { opacity: .7; font-size: 14px; }
.history { font-size: 15px; margin-top: 10px; }
.history div { padding: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { padding: 6px 4px; text-align: left; vertical-align: middle; }
tr:nth-child(even) td { background: rgba(0,0,0,.03); }
footer.cb { background: var(--dark); padding: 22px 16px; text-align: center; margin-top: 40px; }
.wordmark { font-family: 'Times New Roman', Times, serif; font-style: italic; font-size: 20px; }
.wordmark .c { color: #F5F1E6; } .wordmark .b { color: #d4af37; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
