*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: #f3f4f6; color: #1f2937; font-size: 14px; }
a { color: #c2410c; }
.top { background: #111; color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px 22px; border-bottom: 3px solid #F47920; }
.top .brand { font-weight: 800; letter-spacing: .5px; color: #F47920; }
.top a { color: #ddd; text-decoration: none; font-weight: 600; }
.top a:hover { color: #fff; }
.top .right { margin-left: auto; display: flex; gap: 12px; align-items: center; color: #aaa; font-size: 13px; }
.top .mode { background: #7c3aed; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.top .mode.live { background: #16a34a; }
.wrap { max-width: 1180px; margin: 22px auto; padding: 0 18px; }
h1 { font-size: 1.4rem; margin: 0 0 14px; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 18px 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
th { color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
tr:hover td { background: #fafafa; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.pill.serving { background: #dcfce7; color: #166534; }
.pill.banner { background: #fef3c7; color: #92400e; }
.pill.paused { background: #fee2e2; color: #991b1b; }
.pill.grey { background: #e5e7eb; color: #374151; }
.pill.blue { background: #dbeafe; color: #1e40af; }
.muted { color: #6b7280; }
.small { font-size: 12px; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.btn { display: inline-block; border: 1px solid #d1d5db; background: #fff; color: #111; border-radius: 6px; padding: 7px 14px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 13px; }
.btn.primary { background: #F47920; border-color: #F47920; color: #fff; }
.btn.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn.warn { background: #b45309; border-color: #b45309; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
input[type=text], input[type=date], input[type=email], input[type=password], select, textarea { border: 1px solid #d1d5db; border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 13px; width: 100%; }
label { display: block; font-size: 12px; color: #6b7280; font-weight: 600; margin: 8px 0 3px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
label.inline input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: #dcfce7; color: #166534; }
.flash.err { background: #fee2e2; color: #991b1b; }
.msgbox { background: #fff8f0; border: 1.5px solid #f59e0b; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; }
.login { max-width: 380px; margin: 80px auto; }
.kv td:first-child { color: #6b7280; width: 38%; }
details summary { cursor: pointer; color: #6b7280; font-size: 12px; }
pre { background: #f9fafb; border: 1px solid #eee; border-radius: 6px; padding: 8px; font-size: 11px; overflow: auto; max-height: 240px; margin: 4px 0 0; }
