:root { font-family: Inter, Arial, sans-serif; color: #172033; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
.admin-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 110px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: #0b1f3a; font-weight: 800; text-decoration: none; }
.admin-brand img { border-radius: 12px; }
.back-link { color: #2563eb; font-weight: 700; text-decoration: none; }
.panel { width: min(460px, 100%); margin: 70px auto; padding: 34px; border: 1px solid #dfe5ed; border-radius: 22px; background: #fff; box-shadow: 0 18px 55px rgba(11,31,58,.10); }
h1 { margin: 4px 0 10px; color: #0b1f3a; font-size: clamp(1.7rem, 4vw, 2.25rem); }
p { color: #647084; line-height: 1.55; }
.eyebrow { margin: 0; color: #2563eb; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
form { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 8px; color: #263247; font-size: .9rem; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #ccd5e1; border-radius: 10px; color: #172033; background: #fff; }
input:focus { outline: 3px solid rgba(37,99,235,.18); border-color: #2563eb; }
button { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 11px; color: #fff; background: #2563eb; font-weight: 800; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button.secondary { color: #263247; background: #e7ecf3; }
.message { min-height: 20px; margin: 0; font-size: .88rem; }
.message.error { color: #b42318; }
.message.success { color: #18723b; }
.editor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.editor-top p { margin: 6px 0 0; }
.admin-groups { display: grid; gap: 18px; }
.admin-group { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 16px; background: #fff; }
.admin-group h2 { margin: 0; padding: 18px 20px; color: #0b1f3a; background: #eaf2ff; font-size: 1.05rem; }
.admin-row { display: grid; grid-template-columns: minmax(160px, 1fr) 150px; align-items: center; gap: 20px; padding: 11px 20px; border-top: 1px solid #edf0f4; }
.admin-row label { color: #263247; font-weight: 600; }
.price-input-wrap { position: relative; }
.price-input-wrap input { padding-right: 52px; text-align: right; font-weight: 700; }
.price-input-wrap span { position: absolute; top: 50%; right: 12px; color: #7b8798; font-size: .8rem; transform: translateY(-50%); pointer-events: none; }
.save-bar { position: fixed; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 14px max(16px, calc((100% - 1040px) / 2)); border-top: 1px solid #dfe5ed; background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(11,31,58,.08); }
@media (max-width: 600px) {
    .admin-shell { width: min(100% - 20px, 1040px); padding-top: 12px; }
    .admin-header { margin-bottom: 22px; }
    .admin-brand span { display: none; }
    .panel { margin-top: 35px; padding: 24px 20px; }
    .editor-top { align-items: center; }
    .admin-row { grid-template-columns: 1fr 125px; gap: 10px; padding: 10px 12px; }
    .save-bar { justify-content: space-between; }
}
