:root {
    --wine: #641f2b;
    --wine-dark: #341116;
    --gold: #dfa34f;
    --ink: #1b1919;
    --muted: #716b66;
    --line: #ded8d2;
    --paper: #f3f0ec;
    --white: #fff;
    --green: #19744b;
    --red: #b4233c;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 255px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 21px; color: #fff; background: var(--wine-dark); }
.admin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 46px; }
.admin-brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; }
.admin-brand span { display: flex; flex-direction: column; }.admin-brand strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }.admin-brand small { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }.admin-sidebar nav a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; color: rgba(255,255,255,.7); border: 1px solid transparent; }.admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.09); }.admin-sidebar nav span { width: 18px; color: var(--gold); text-align: center; }
.logout-form { margin-top: auto; }.logout-form button { width: 100%; padding: 11px; color: rgba(255,255,255,.68); background: transparent; border: 1px solid rgba(255,255,255,.15); cursor: pointer; }.logout-form button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.admin-main { min-width: 0; padding: 52px clamp(28px,5vw,72px) 80px; }
.admin-alert { margin-bottom: 25px; padding: 13px 17px; color: var(--green); background: #e4f4eb; border: 1px solid #a5d9bd; font-weight: 700; }
.admin-page-header { margin-bottom: 35px; }.admin-page-header--row { display: flex; align-items: end; justify-content: space-between; gap: 25px; }.admin-page-header > div > span { color: var(--wine); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }.admin-page-header h1 { margin: 4px 0 4px; font-family: Georgia, serif; font-size: 41px; line-height: 1.15; font-weight: 500; }.admin-page-header p { margin: 0; color: var(--muted); }.admin-back { display: inline-block; margin-bottom: 13px; color: var(--wine); font-weight: 750; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.stats-grid article { min-height: 230px; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); }.stats-grid article > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }.stats-grid article > strong { margin: 23px 0 1px; color: var(--wine); font-family: Georgia, serif; font-size: 56px; line-height: 1; font-weight: 500; }.stats-grid article > small { color: var(--muted); }.stats-grid article > a { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--wine); font-weight: 750; }.stats-card--accent { color: #fff; background: var(--wine) !important; border-color: var(--wine) !important; }.stats-card--accent > span, .stats-card--accent > small { color: rgba(255,255,255,.68) !important; }.stats-card--accent > strong { color: var(--gold) !important; }.stats-card--accent > a { color: #fff !important; border-color: rgba(255,255,255,.18) !important; }
.quick-actions { display: grid; grid-template-columns: .65fr 1.35fr; gap: 50px; margin-top: 45px; padding-top: 36px; border-top: 1px solid var(--line); }.quick-actions > div:first-child > span { color: var(--wine); font-size: 11px; font-weight: 850; text-transform: uppercase; }.quick-actions h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }.quick-actions > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.quick-action { display: grid; grid-template-columns: 45px 1fr; padding: 20px; background: #fff; border: 1px solid var(--line); }.quick-action > span { grid-row: 1 / 3; color: var(--gold); font-size: 25px; }.quick-action strong { font-size: 15px; }.quick-action small { color: var(--muted); }
.admin-panel { background: #fff; border: 1px solid var(--line); }.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; }.admin-table th { padding: 14px 18px; color: var(--muted); background: #faf8f5; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; text-transform: uppercase; white-space: nowrap; }.admin-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }.admin-table tr:last-child td { border-bottom: 0; }.table-item { min-width: 290px; display: flex; align-items: center; gap: 13px; }.table-item img, .table-thumb { width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover; background: var(--paper); }.table-thumb { display: grid; place-items: center; color: var(--wine); font-size: 20px; }.table-item > div { display: flex; flex-direction: column; }.table-item small { max-width: 340px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }.status { display: inline-block; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }.status--active { color: var(--green); background: #e5f3eb; }.status--draft { color: #805e18; background: #f8edcf; }.row-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }.row-actions a, .row-actions button { padding: 6px 9px; border: 0; color: var(--wine); background: transparent; font-weight: 750; cursor: pointer; }.row-actions button { color: var(--red); }.admin-empty { padding: 80px 30px; text-align: center; }.admin-empty > span { display: block; color: var(--gold); font-size: 48px; }.admin-empty h2 { margin: 7px 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }.admin-empty p { color: var(--muted); }.admin-empty .admin-button { margin-top: 10px; }
.admin-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 18px; padding: 10px 17px; border: 1px solid transparent; font-weight: 750; cursor: pointer; }.admin-button--primary { color: #fff; background: var(--wine); }.admin-button--primary:hover { background: var(--wine-dark); }.admin-button--ghost { color: var(--wine); background: transparent; border-color: var(--line); }.admin-button--full { width: 100%; margin-bottom: 9px; }
.admin-form label { display: block; margin-bottom: 23px; }.admin-form label > span:first-child { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }.admin-form input[type="text"], .admin-form input[type="password"], .admin-form textarea { width: 100%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #cfc7c0; outline: none; }.admin-form input:focus, .admin-form textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(100,31,43,.08); }.admin-form textarea { resize: vertical; line-height: 1.6; }.admin-form label > small, .field-error { display: block; margin-top: 5px; color: var(--red); font-size: 12px; }.validation-summary { margin-bottom: 22px; color: var(--red); background: #fff0f2; border: 1px solid #f0bdc7; }.validation-summary:empty, .validation-summary-valid { display: none; }.validation-summary ul { margin: 0; padding: 12px 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }.form-main { padding: 28px; }.form-sidebar { display: flex; flex-direction: column; gap: 13px; }.form-sidebar .admin-panel { padding: 21px; }.form-sidebar h2 { margin: 0 0 17px; font-size: 13px; text-transform: uppercase; }.switch-row { display: flex !important; gap: 11px; align-items: start; padding: 5px 0; }.switch-row input { width: 18px; height: 18px; accent-color: var(--wine); }.switch-row > span { display: flex !important; flex-direction: column; margin: 0 !important; }.switch-row strong { font-size: 13px; }.switch-row small { color: var(--muted) !important; font-weight: 400; }.form-image-preview { width: 100%; max-height: 180px; margin-bottom: 15px; object-fit: contain; background: var(--paper); }.file-input { padding: 14px; border: 1px dashed #bcb1a7; background: var(--paper); cursor: pointer; }.file-input input { width: 100%; font-size: 12px; }.file-input > span { color: var(--wine); }.file-input small { color: var(--muted) !important; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: #fff; background: var(--wine-dark); overflow: hidden; }.login-pattern { position: fixed; width: 690px; height: 690px; right: -180px; bottom: -270px; opacity: .07; }.login-pattern img { width: 100%; }.login-card { position: relative; z-index: 1; width: min(430px,100%); padding: 40px; color: var(--ink); background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.35); }.admin-brand--login { margin-bottom: 37px; color: var(--ink); }.admin-brand--login strong { color: var(--wine); }.login-copy > span { color: var(--wine); font-size: 11px; font-weight: 850; text-transform: uppercase; }.login-copy h1 { margin: 6px 0; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }.login-copy p { margin: 0 0 27px; color: var(--muted); }.login-back { display: block; margin-top: 13px; color: var(--muted); font-size: 13px; text-align: center; }

body { font-kerning: normal; text-rendering: optimizeLegibility; }
body h1,
body h2,
body h3,
.admin-brand strong,
.stats-grid article > strong {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    letter-spacing: normal !important;
}
body h1,
body h2 { font-weight: 720 !important; }
.admin-page-header > div > span,
.quick-actions > div:first-child > span,
.admin-brand small { letter-spacing: .045em; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }.admin-sidebar { position: relative; height: auto; flex-direction: row; align-items: center; gap: 20px; padding: 14px 20px; }.admin-brand { margin: 0 auto 0 0; }.admin-brand small { display: none; }.admin-sidebar nav { flex-direction: row; }.admin-sidebar nav a { padding: 9px; }.admin-sidebar nav a span { display: none; }.logout-form { margin: 0; }.logout-form button { width: auto; }.admin-main { padding: 36px 25px 60px; }.stats-grid { grid-template-columns: 1fr 1fr; }.stats-card--accent { grid-column: 1 / -1; }.form-grid { grid-template-columns: 1fr; }.form-sidebar { display: grid; grid-template-columns: 1fr 1fr; }.form-sidebar > .admin-button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .admin-sidebar { align-items: flex-start; flex-wrap: wrap; }.admin-sidebar nav { order: 3; width: 100%; overflow-x: auto; }.admin-sidebar nav a { white-space: nowrap; }.admin-brand span { display: none; }.admin-main { padding: 28px 15px 50px; }.admin-page-header--row { align-items: stretch; flex-direction: column; }.admin-page-header h1 { font-size: 35px; }.stats-grid, .quick-actions, .quick-actions > div:last-child, .form-sidebar { grid-template-columns: 1fr; }.stats-card--accent, .form-sidebar > .admin-button { grid-column: auto; }.stats-grid article { min-height: 205px; }.login-card { padding: 30px 23px; }
}
