body{background:#f6f3e9;color:#203e36}
body>header{border-bottom:2px solid #bb9655;gap:18px;flex-wrap:wrap;min-height:78px;padding:14px 5%}
body>header .brand{font-size:19px}
.admin{max-width:1400px}
#tabs{padding:12px;background:#e8e9de;border-radius:12px}
#tabs button{background:#fffdf8;color:#235749}
#editor{min-width:0;border-top:3px solid #b38a45;box-shadow:0 6px 24px #243e3510}
#editor h2{font-size:24px;margin-top:0}
#editor fieldset{background:#faf9f3;min-width:0}
#editor legend{font-weight:700}
#editor input,#editor textarea,#editor select{min-width:0;font:inherit;line-height:1.6}
#editor textarea{min-height:110px}
.admin-layout>aside{min-width:0}
#records{max-height:65vh;overflow:auto;padding:2px}
#records button:hover{background:#eef2e7;border-color:#769689}
.admin-actions{position:sticky;bottom:0;background:#fffdf8;border-top:1px solid #ded8c9;padding:14px 0;z-index:2}
.admin button:disabled{opacity:.55;cursor:wait}
.admin :focus-visible{outline:3px solid #287765;outline-offset:3px}
#status:not(:empty){padding:12px 16px;background:#e4eee4;border-left:4px solid #287765;border-radius:6px}
#status.error{background:#fff0e9;border-color:#a02e20}
.hint,.admin-note{color:#536258;line-height:1.7}
.image-list>div{width:120px}.image-list img{width:120px;height:90px}
@media(min-width:1000px){#editor fieldset:not(:has(.image-list)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#editor fieldset label{margin:4px 0}}
@media(max-width:650px){body>header{gap:10px;padding:12px 4%}body>header .brand{width:100%;font-size:18px}#logout{margin-left:auto}.admin-layout{gap:16px;margin-top:18px}#records{max-height:230px}#tabs{gap:6px}#tabs button{flex:1 1 40%;padding:9px}.admin-actions button{flex:1}#editor{padding:16px}fieldset{padding:12px}}
.confirm-dialog{width:min(440px,90vw);border:1px solid #baa16c;border-radius:14px;padding:28px;color:#203e36;background:#fffdf8;box-shadow:0 16px 60px #0004}.confirm-dialog::backdrop{background:#102e29aa}.confirm-dialog h2{margin-top:0}.confirm-dialog p{line-height:1.8}.confirm-dialog button{min-height:44px;padding:10px 14px;margin:6px;border-radius:6px;border:1px solid #adbdaf}.confirm-dialog button:focus-visible{outline:3px solid #287765;outline-offset:3px}
