/* экраны рабочей админки: на токенах style.css */
.adm-login { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.adm-login form { width:min(380px,100%); }
.adm-msg { display:none; padding:10px 12px; border-radius:8px; margin:0 0 12px; }
.adm-msg.ok { display:block; background:var(--accent-soft); color:var(--accent); }
.adm-msg.bad { display:block; background:var(--warm-soft); color:var(--warm); font-weight:600; }
.adm-status { flex:1; min-width:160px; font-size:13px; color:var(--muted); }
.adm-status.dirty { color:#9a5b00; font-weight:600; } .adm-status.ok { color:var(--accent); } .adm-status.bad { color:var(--warm); font-weight:600; }
.adm-sticky { position:sticky; top:0; z-index:5; display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:var(--bg); padding:8px 0 12px; }
.adm-sticky h1 { margin-right:6px; }
.adm-sticky.bottom { top:auto; bottom:0; margin-top:14px; border-top:1px solid var(--line); background:var(--paper); padding:10px 0; }
.adm-two { display:grid; grid-template-columns:210px minmax(0,1fr); gap:16px; align-items:start; }
.adm-sub { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:8px; position:sticky; top:64px; max-height:calc(100vh - 80px); overflow:auto; }
.adm-sub a { display:block; padding:5px 8px; border-radius:6px; color:var(--ink); text-decoration:none; font-size:14px; }
.adm-sub a:hover { background:var(--bg); } .adm-sub a.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.adm-sub small { color:var(--muted); font-weight:400; } .adm-sub .sep { font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); padding:12px 8px 4px; }
.adm-check { display:flex; gap:8px; align-items:center; margin:8px 0; }
.adm-photos { display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 12px; }
.adm-ph { width:190px; border:1px solid var(--line); border-radius:10px; padding:8px; background:var(--paper); display:grid; gap:6px; }
.adm-ph img { width:100%; height:112px; object-fit:cover; border-radius:6px; background:var(--line); display:block; }
.adm-ph input { width:100%; font-size:13px; padding:5px 7px; border:1px solid var(--line); border-radius:6px; }
.adm-add { width:190px; min-height:130px; border:2px dashed var(--line); border-radius:10px; background:none; color:var(--muted); cursor:pointer; }
.btn.sm { padding:3px 8px; font-size:13px; }
.adm-dialog { border:0; border-radius:14px; padding:18px; width:min(900px,calc(100vw - 32px)); box-shadow:0 30px 80px rgba(0,0,0,.35); background:var(--paper); color:var(--ink); }
.adm-dialog::backdrop { background:rgba(20,25,28,.5); }
.adm-pgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; max-height:50vh; overflow:auto; margin-top:10px; }
.adm-pgrid button { padding:0; border:2px solid transparent; border-radius:8px; overflow:hidden; position:relative; cursor:pointer; background:none; }
.adm-pgrid button:hover { border-color:var(--accent); }
.adm-pgrid img { width:100%; height:120px; object-fit:cover; display:block; }
.adm-pgrid span { position:absolute; left:4px; bottom:4px; font-size:11px; background:rgba(0,0,0,.6); color:#fff; padding:1px 6px; border-radius:4px; }
.grow { flex:1; min-width:180px; }
.adm-2col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.adm-3col { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 16px; }
.adm-body { min-height:300px; }
.adm-pre { white-space:pre-wrap; }
.adm-done { opacity:.65; }
.adm-off td { color:var(--muted); }
.adm-cover { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.adm-cover img { width:160px; height:100px; object-fit:cover; border-radius:8px; background:var(--line); }
.adm-card { display:grid; grid-template-columns:170px minmax(0,1fr) 260px; gap:16px; }
.adm-when { display:grid; gap:2px; align-content:start; } .adm-when b { font-size:15px; }
@media (max-width:900px) { .adm-two,.adm-card,.adm-2col,.adm-3col { grid-template-columns:minmax(0,1fr); } .adm-sub { position:static; max-height:240px; } }
