:root { --panel:#fffcf6; --admin-edge:clamp(15px,3vw,50px); }
body { padding:0; }
.admin-header,.editor-bar { padding-inline:var(--admin-edge); }
.admin-header .brand img { width:30px;height:30px; }
.gate { max-width:520px; margin:8vh auto; padding:0 var(--admin-edge); }
.gate h1,.editor-bar h1 { font:900 clamp(3rem,7vw,7rem)/.83 var(--display); letter-spacing:-.045em; text-transform:uppercase; }
.gate form { margin-top:26px; }
.editor-bar { display:grid; grid-template-columns:1fr auto; gap:8px 15px; align-items:end; padding-block:24px 7px; border-bottom:1px solid var(--ink); }
.editor-bar p:first-child { font-size:.85rem; }
.editor-status { font-size:.875rem; min-height:24px; grid-column:1/-1; color:var(--muted); margin-top:8px; overflow-wrap:anywhere; }
.editor-status.error { color:var(--accent); }
.editor-layout { display:grid; grid-template-columns:minmax(200px,22%) minmax(0,1fr) minmax(235px,28%); min-height:65vh; }
.editor-layout > * { padding:clamp(12px,2vw,24px); }
.editor-index,.editor-content { border-right:1px solid var(--line); }
.tabs { display:flex; flex-wrap:wrap; gap:5px; border-bottom:1px solid var(--line); padding-bottom:12px; }
#item-index { display:grid; gap:6px; margin-top:12px; }
.index-item { text-align:left; overflow-wrap:anywhere; }
.index-item[aria-current=true] { border-color:var(--ink); background:var(--surface); }
.actions { display:flex; flex-wrap:wrap; gap:7px; }
.content-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:14px; }
.content-heading h2,.preview-panel h2 { font:900 2.6rem/.92 var(--display); letter-spacing:-.035em; }
.edit-form { display:grid; gap:13px; }
.edit-form label,.drop label { display:grid; gap:4px; font-size:.875rem; }
.edit-form :is(input:not([type=checkbox]), textarea, select) { width:100%; min-height:44px; border:1px solid var(--line); border-radius:0; padding:.5rem .65rem; font:inherit; font-size:1rem; color:var(--ink); background:var(--panel); }
.edit-form textarea { min-height:76px; resize:vertical; }
.edit-form .check { display:flex; align-items:center; gap:8px; min-height:44px; }
.check input { width:20px;height:20px; accent-color:var(--accent); }
.drop { border:1px dashed var(--line); display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px; align-items:center;padding:10px;background:var(--panel); }
.drop.is-over { border-color:var(--accent); background:var(--surface); }
.drop img { width:100%; height:76px; object-fit:contain; background:var(--surface); }
.drop label { overflow-wrap:anywhere; }
.drop input { font-size:.875rem!important; }
.preview-panel { background:var(--surface); }
.preview-panel header { border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:15px; }
.preview-image { width:100%; max-height:300px; object-fit:cover; background:var(--ink); }
.preview-logo { width:140px; height:44px; object-fit:contain; object-position:left; }
.preview-panel h3 { font:900 2rem/1 var(--display); margin:8px 0; overflow-wrap:anywhere; }
.preview-panel p { font-size:.875rem; margin:6px 0; overflow-wrap:anywhere; }
@media(max-width:960px){.editor-layout{grid-template-columns: minmax(180px,25%) minmax(0,1fr)} .preview-panel{grid-column:1/-1;border-top:1px solid var(--line)}}
@media(max-width:580px){.editor-layout,.editor-bar{grid-template-columns:1fr}.editor-index,.editor-content{border-right:0;border-bottom:1px solid var(--line)}.drop{grid-template-columns:64px minmax(0,1fr)}}
