.admin-wrap{max-width:1350px;padding:40px 5% 80px;margin:auto}.admin-wrap h1{font-size:43px}.admin-wrap form{max-width:720px}.admin-wrap label{display:grid;gap:6px;font-size:13px;font-weight:600;margin-bottom:20px}.admin-wrap label>span{font-weight:400;color:var(--muted)}.admin-wrap input,.admin-wrap textarea,.admin-wrap select{width:100%;font-size:15px;font-weight:400}.admin-wrap textarea{resize:vertical;line-height:1.6}#login{max-width:480px;margin:35px auto}#login form{margin-top:30px}#status:not(:empty){padding:14px 20px;border:1px solid var(--line);background:#e4ecd8;border-radius:5px;margin-bottom:25px}#status.error{background:#fae3d8;border-color:#deb499}.admin-tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:28px;flex-wrap:wrap}.admin-tabs button{padding:10px 20px;border:1px solid var(--line);background:none;color:var(--green);border-radius:4px}.admin-tabs button.active{background:var(--green);color:#fff}.admin-tabs a{margin-left:auto;align-self:center;font-size:13px}.admin-layout{display:grid;grid-template-columns:310px 1fr;gap:45px}#items{margin-top:20px;max-height:75vh;overflow:auto}.item{display:block;text-align:left;padding:16px 8px;background:none;border:0;border-bottom:1px solid var(--line);width:100%;color:var(--ink);font-size:14px}.item small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.item.active{background:#e6ebdd}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-actions{display:flex;gap:15px;flex-wrap:wrap;position:sticky;bottom:0;background:var(--paper);padding:20px 0;border-top:1px solid var(--line)}.image-preview{max-width:240px;max-height:160px;display:block;margin-bottom:20px;border-radius:5px}.editor-help{font-size:12px;color:var(--muted)}#preview{padding:25px;background:#fff;border:1px solid var(--line);border-radius:5px;margin:25px 0;max-height:600px;overflow:auto}.import-notice{font-size:12px;padding:14px;background:#eeefe5;margin-bottom:20px}.admin-wrap button.danger{color:#8c452b;background:none;border:1px solid #dab59e;border-radius:5px;padding:10px 16px}@media(max-width:800px){.admin-layout{grid-template-columns:1fr;gap:30px}#items{max-height:230px}.admin-wrap{padding:30px 6%}.admin-wrap h1{font-size:36px}.form-row{grid-template-columns:1fr;gap:0}header strong{display:none}.admin-tabs a{margin-left:0}.admin-layout aside>.button{width:100%}}

.admin-wrap .archive-toggle{display:flex;align-items:center;gap:9px;font-size:11px;margin:18px 0 0;font-weight:400}.archive-toggle input{width:15px;height:15px}

#security-panel{max-width:780px}#security-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}#security-panel code{font-size:16px;overflow-wrap:anywhere}.admin-wrap label{font-size:14px}.admin-wrap input,.admin-wrap textarea,.admin-wrap select{font-size:16px}
#account-label{margin:.4rem 0 0;font-size:.95rem;color:var(--muted)}
#users-panel{max-width:960px}#users-panel>p{max-width:75ch}#new-user{padding:1.5rem;background:#f3f6f0;border:1px solid var(--line);border-radius:5px;margin:1.5rem 0 2rem}
#user-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.user-card{padding:1.25rem;border:1px solid var(--line);border-radius:5px;min-width:0}.user-card h3{font-size:1.15rem;overflow-wrap:anywhere}.user-status{font-size:.9rem;color:var(--muted)}.user-actions{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.password-policy,.account-notice{padding:1rem;border-left:4px solid var(--green);background:#eaf0e3;font-size:.95rem;line-height:1.6}.account-notice{margin:1.5rem 0}.account-notice textarea{font-family:monospace;resize:vertical}.admin-wrap .account-toggle{display:flex;align-items:center;gap:.65rem}.account-toggle input{width:1.1rem;height:1.1rem}.admin-tabs [hidden]{display:none!important}
@media(max-width:800px){#user-list{grid-template-columns:1fr}#new-user{padding:1rem}.user-card{padding:1rem}}
.attached-photos{margin:1.6rem 0;padding:1.25rem;border:1px solid var(--line);border-radius:5px;background:#f3f6f0}.attached-photos>h3{font-size:1.2rem;margin:0 0 .6rem}.attached-photos>p{font-size:.95rem;line-height:1.6}.attached-photos label>span{font-size:.875rem}.attached-photo-list{list-style:none;padding:0;margin:1rem 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.attached-photo{min-width:0;padding:.65rem;border:1px solid var(--line);border-radius:4px;background:#fff}.attached-photo img{display:block;width:100%;height:130px;object-fit:cover;margin-bottom:.5rem}.attached-photo>span{font-size:.9rem;font-weight:600}.attached-photo-actions{display:flex;flex-wrap:wrap;gap:.4rem .7rem;margin-top:.4rem}.attached-photo-actions button{font-size:.85rem;padding:.25rem 0}.attached-photo-actions button:disabled{opacity:.45;cursor:default}.attached-photos input{max-width:100%}#gallery-status{font-size:.9rem;color:var(--muted)}
@media(max-width:600px){.attached-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.attached-photos{padding:1rem}.attached-photo img{height:110px}}
