:root { --accent:#ffd21c; --ink:#202522; --paper:#f4f4f0; --line:#dedfda; --muted:#727772; --panel:#fff; --sidebar:238px; --preview:430px; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; font-family:"Manrope",Arial,sans-serif; color:var(--ink); background:var(--paper); }
button, input, textarea, select { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
button { color:inherit; }
.login-overlay { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 25% 15%,#425247,#202522 55%); }
.login-overlay.hidden { display:none; }
.login-card { width:min(440px,100%); padding:44px; border-radius:22px; background:#fff; box-shadow:0 35px 90px rgba(0,0,0,.28); }
.admin-logo { display:inline-flex; align-items:center; gap:10px; font-size:20px; letter-spacing:.03em; }
.admin-logo i { width:28px; height:28px; display:block; background:var(--accent); clip-path:polygon(50% 0,100% 35%,100% 100%,58% 100%,58% 61%,42% 61%,42% 100%,0 100%,0 35%); }
.login-kicker,.section-kicker { margin:32px 0 10px!important; color:#8d7700!important; font-size:10px!important; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.login-card h1 { margin:0; font-size:30px; line-height:1.15; letter-spacing:-.035em; }
.login-card > p:not(.login-kicker) { color:var(--muted); font-size:12px; line-height:1.6; }
.login-card label { display:block; margin:28px 0 16px; font-size:11px; font-weight:700; }
.password-field { display:flex; margin-top:7px; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.password-field input { width:100%; height:48px; padding:0 14px; border:0; outline:0; font-size:15px; }
.password-field button { width:48px; border:0; background:#fff; cursor:pointer; }
.primary-action,.secondary-action,.danger-action { min-height:42px; padding:0 18px; display:inline-flex; align-items:center; justify-content:center; gap:18px; border-radius:8px; border:0; font-size:11px; font-weight:800; cursor:pointer; text-decoration:none; }
.primary-action { background:var(--accent); color:var(--ink); }
.primary-action:hover { background:#ffdc4f; }
.primary-action.compact { min-height:38px; min-width:105px; }
.secondary-action { border:1px solid var(--line); background:#fff; }
.danger-action { border:1px solid #e0bdb7; color:#a54232; background:#fff7f5; }
.login-card .primary-action { width:100%; min-height:50px; }
.login-card > a { display:block; margin-top:22px; color:var(--muted); text-align:center; text-decoration:none; font-size:10px; }
.login-error { min-height:18px; margin-top:12px; color:#af3928; font-size:10px; text-align:center; }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:var(--sidebar) minmax(520px,1fr) var(--preview); grid-template-rows:64px 1fr; }
.admin-shell[aria-hidden="true"] { visibility:hidden; }
.admin-header { position:sticky; top:0; z-index:20; grid-column:1/-1; display:flex; align-items:center; padding:0 18px 0 22px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(10px); }
.header-brand { min-width:var(--sidebar); display:flex; align-items:center; gap:13px; }
.header-brand .admin-logo { font-size:17px; }.header-brand .admin-logo i { width:23px; height:23px; }
.header-divider { height:23px; border-left:1px solid var(--line); }.header-title { color:var(--muted); font-size:10px; font-weight:700; }
.header-actions { margin-left:auto; display:flex; gap:9px; }
.save-state { margin-left:auto; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:9px; }
.save-state i { width:7px; height:7px; border-radius:50%; background:#5e9660; }.save-state.dirty i { background:#d8a000; }.save-state.error i { background:#c74f3b; }
.mobile-nav-toggle { display:none; border:0; background:transparent; font-size:20px; }
.admin-sidebar { position:sticky; top:64px; height:calc(100vh - 64px); z-index:15; display:flex; flex-direction:column; padding:18px 13px; border-right:1px solid var(--line); background:#fff; }
.admin-sidebar nav { overflow:auto; }.admin-sidebar nav > p { margin:14px 11px 8px; color:#9a9d99; font-size:8px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.admin-sidebar nav button { width:100%; min-height:40px; padding:0 11px; display:flex; align-items:center; gap:10px; border:0; border-radius:8px; background:transparent; color:#555b56; font-size:10px; font-weight:650; cursor:pointer; text-align:left; }
.admin-sidebar nav button:hover { background:#f5f5f1; }.admin-sidebar nav button.active { background:#fff8d6; color:#242923; }
.admin-sidebar nav button > span { width:19px; color:#767c77; font-size:13px; text-align:center; }.admin-sidebar nav button b { margin-left:auto; min-width:20px; padding:2px 5px; border-radius:9px; background:#eff0ec; color:#7a7e7a; font-size:8px; text-align:center; }
.sidebar-footer { margin-top:auto; padding:15px 9px 2px; border-top:1px solid var(--line); }.sidebar-footer p { margin:0 0 10px; display:flex; align-items:center; gap:7px; color:#777c77; font-size:8px; }.server-dot { width:7px; height:7px; border-radius:50%; background:#59a762; box-shadow:0 0 0 3px #e8f4e8; }.sidebar-footer button { border:0; padding:0; color:#888c88; background:none; font-size:9px; cursor:pointer; }
.admin-main { padding:36px clamp(24px,3vw,52px) 90px; overflow:hidden; }
.admin-section { display:none; max-width:920px; margin:0 auto; }.admin-section.active { display:block; }
.section-title { margin-bottom:28px; display:flex; justify-content:space-between; gap:24px; align-items:flex-end; }.section-title h1 { margin:0; font-size:30px; letter-spacing:-.04em; }.section-title p:not(.section-kicker) { max-width:600px; margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.65; }.section-title .section-kicker { margin:0 0 8px!important; }.section-title.with-action .primary-action { flex:0 0 auto; }
.overview-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:12px; }.overview-card { min-height:210px; padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; }.overview-card.accent-card { background:var(--ink); color:#fff; }.overview-card > span { color:#898e89; font-size:8px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.overview-card h2 { margin:28px 0 10px; font-size:18px; }.overview-card p { margin:0; color:#777c77; font-size:10px; line-height:1.55; }.accent-card p { color:rgba(255,255,255,.58); }.overview-card button { margin-top:20px; padding:0; border:0; background:none; color:var(--accent); font-size:9px; font-weight:800; cursor:pointer; }.overview-card code { font-size:8px; }
.quick-actions { margin-top:20px; padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; }.quick-actions h2 { margin:0 0 18px; font-size:14px; }.quick-actions > div { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.quick-actions button { padding:15px; display:grid; grid-template-columns:32px 1fr; grid-template-rows:auto auto; gap:2px 10px; border:1px solid var(--line); border-radius:9px; background:#fff; text-align:left; cursor:pointer; }.quick-actions button:hover { border-color:#b9a214; background:#fffdf2; }.quick-actions button > span { grid-row:1/3; width:32px; height:32px; display:grid; place-items:center; border-radius:7px; background:#f2f2ee; }.quick-actions b { font-size:9px; }.quick-actions small { color:var(--muted); font-size:7px; }
.editor-tip { margin-top:16px; padding:16px 19px; display:flex; gap:13px; border-radius:10px; background:#eaf0eb; color:#58625a; }.editor-tip > span { width:22px; height:22px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:#fff; font-size:10px; font-weight:800; }.editor-tip p { margin:0; font-size:9px; line-height:1.6; }.editor-tip strong { display:block; color:#334038; }.editor-tip kbd { padding:1px 4px; border:1px solid #cbd2cc; border-bottom-width:2px; border-radius:3px; background:#fff; font:8px Manrope; }
.form-card { margin-bottom:15px; padding:26px; border:1px solid var(--line); border-radius:14px; background:#fff; }.form-card-title { margin-bottom:22px; }.form-card-title h2 { margin:0; font-size:15px; }.form-card-title p { margin:5px 0 0; color:var(--muted); font-size:9px; }.form-grid { display:grid; gap:18px; }.form-grid.two-columns { grid-template-columns:1fr 1fr; }.form-grid .full-width { grid-column:1/-1; }
label { color:#5d625e; font-size:9px; font-weight:750; }.form-card input:not([type="color"]),.form-card textarea,.repeater input,.repeater textarea,.repeater select,.image-editor input { width:100%; margin-top:6px; padding:11px 12px; border:1px solid var(--line); border-radius:7px; color:var(--ink); background:#fafaf8; outline:0; font-size:11px; resize:vertical; }.form-card input:focus,.form-card textarea:focus,.repeater input:focus,.repeater textarea:focus,.repeater select:focus,.image-editor input:focus { border-color:#b09b13; box-shadow:0 0 0 3px rgba(255,210,28,.17); background:#fff; }.form-card label > small { display:block; margin-top:5px; color:#989c98; font-size:7px; font-weight:500; }
.small-section-title { margin:30px 0 12px; display:flex; align-items:center; justify-content:space-between; gap:20px; }.small-section-title h2 { margin:0; font-size:15px; }.small-section-title p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }.small-section-title .secondary-action { flex:0 0 auto; }
.banner-admin-title { margin-top:38px; padding-top:28px; border-top:1px solid var(--line); }
.repeater-card { margin-bottom:18px; }
.image-editor { display:grid; grid-template-columns:1.3fr 1fr; gap:22px; align-items:center; }.image-preview { aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:#e9eae6; }.image-preview img { width:100%; height:100%; display:block; object-fit:cover; }.image-editor .upload-button { margin-top:12px; }.image-editor small { display:block; margin-top:8px; color:#999d99; font-size:8px; }
.repeater { display:flex; flex-direction:column; gap:12px; }.repeater-item { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fff; }.repeater-head { min-height:48px; padding:0 14px 0 20px; display:flex; align-items:center; border-bottom:1px solid var(--line); }.repeater-head > span { margin-right:9px; color:#9a9e9a; font-size:9px; }.repeater-head strong { font-size:11px; }.repeater-controls { margin-left:auto; display:flex; gap:3px; }.repeater-controls button { width:30px; height:30px; border:0; border-radius:6px; background:transparent; color:#777c77; cursor:pointer; }.repeater-controls button:hover { background:#f1f2ee; }.repeater-controls button.remove:hover { color:#a64235; background:#fff0ed; }
.repeater-body { padding:20px; display:grid; grid-template-columns:155px 1fr; gap:20px; }.repeater-fields { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.repeater-fields label.full { grid-column:1/-1; }.repeater-photo { aspect-ratio:1/1; border-radius:9px; overflow:hidden; background:#ecece8; position:relative; }.repeater-photo img { width:100%; height:100%; object-fit:cover; }.repeater-photo button { position:absolute; left:8px; right:8px; bottom:8px; min-height:31px; border:0; border-radius:6px; background:rgba(255,255,255,.92); font-size:8px; font-weight:800; cursor:pointer; }.compact-repeater .repeater-body { display:block; }.compact-repeater .repeater-fields { grid-template-columns:130px 1fr; }
.color-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }.color-grid > label { padding:18px; border:1px solid var(--line); border-radius:10px; }.color-grid label > span { display:block; margin-bottom:11px; color:var(--ink); font-size:11px; }.color-grid label > div { display:flex; gap:8px; }.color-grid input[type="color"] { width:46px; height:42px; padding:2px; border:1px solid var(--line); border-radius:7px; background:#fff; cursor:pointer; }.color-grid input[type="text"] { margin:0!important; }.color-grid small { display:block; margin-top:9px; color:#989c98; font-size:8px; font-weight:500; }
.data-actions { display:flex; flex-direction:column; gap:12px; }.data-actions article { padding:24px; display:flex; gap:20px; border:1px solid var(--line); border-radius:14px; background:#fff; }.data-actions article > span { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:#f0f1ed; font-size:18px; }.data-actions h2 { margin:0 0 6px; font-size:14px; }.data-actions p { margin:0 0 15px; color:var(--muted); font-size:9px; line-height:1.6; }.data-actions .danger-zone { border-color:#e5ceca; }
.preview-panel { position:sticky; top:64px; height:calc(100vh - 64px); display:grid; grid-template-rows:48px 1fr; border-left:1px solid var(--line); background:#e7e7e3; }.preview-header { padding:0 11px 0 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:#fff; }.preview-header > div:first-child { display:flex; flex-direction:column; }.preview-header strong { font-size:10px; }.preview-header span { color:#8f938f; font-size:7px; }.preview-header > div:last-child { display:flex; gap:3px; }.preview-header button { width:28px; height:28px; border:0; border-radius:5px; background:transparent; color:#747a75; cursor:pointer; }.preview-header button.active { background:#f0f0ec; color:#222; }.preview-stage { padding:12px; display:grid; place-items:center; overflow:hidden; }.preview-stage iframe { width:100%; height:100%; border:0; border-radius:8px; background:#fff; box-shadow:0 10px 25px rgba(20,24,21,.12); transition:width .25s; }.preview-stage.mobile iframe { width:360px; max-width:100%; }.preview-toggle { display:none; position:fixed; right:18px; bottom:18px; z-index:25; border:0; border-radius:9px; background:var(--ink); color:#fff; padding:11px 14px; font-size:9px; font-weight:800; }
.toast { position:fixed; z-index:200; left:50%; bottom:22px; transform:translate(-50%,20px); padding:11px 18px; border-radius:9px; background:#222824; color:#fff; box-shadow:0 12px 35px rgba(0,0,0,.2); opacity:0; pointer-events:none; font-size:10px; transition:.2s; }.toast.visible { opacity:1; transform:translate(-50%,0); }.toast.error { background:#a94535; }
@media (max-width:1250px) { .admin-shell { grid-template-columns:var(--sidebar) minmax(520px,1fr); }.preview-panel { position:fixed; z-index:30; top:64px; right:0; width:min(480px,100%); box-shadow:-20px 0 50px rgba(0,0,0,.18); transform:translateX(105%); transition:transform .25s; }.preview-panel.open { transform:translateX(0); }.preview-toggle { display:block; } }
@media (max-width:800px) { .admin-shell { display:block; padding-top:64px; }.admin-header { position:fixed; inset:0 0 auto; }.header-title,.save-state,.header-actions .secondary-action { display:none; }.header-brand { min-width:0; }.mobile-nav-toggle { display:block; }.admin-sidebar { position:fixed; top:64px; bottom:0; left:0; width:260px; height:auto; transform:translateX(-105%); box-shadow:20px 0 45px rgba(0,0,0,.16); transition:transform .25s; }.admin-sidebar.open { transform:translateX(0); }.admin-main { padding:28px 16px 90px; }.overview-grid,.quick-actions > div,.form-grid.two-columns,.color-grid { grid-template-columns:1fr; }.form-grid .full-width { grid-column:auto; }.image-editor { grid-template-columns:1fr; }.repeater-body { grid-template-columns:110px 1fr; }.repeater-fields { grid-template-columns:1fr; }.repeater-fields label.full { grid-column:auto; }.section-title.with-action { align-items:flex-start; flex-direction:column; }.login-card { padding:32px 25px; } }
@media (max-width:520px) { .repeater-body { display:block; }.repeater-photo { aspect-ratio:16/8; margin-bottom:16px; }.compact-repeater .repeater-fields { grid-template-columns:1fr; }.admin-header { padding:0 10px; }.header-actions { margin-left:auto; } }
