/* Admin panel layout (on top of pages.css) */
body { min-height: 100vh; }
#app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
aside { background: #0b1018; border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: .04em; color: #fff; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.logo.big { font-size: 36px; text-align: center; }
#nav { display: grid; gap: 4px; }
#nav a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
#nav a:hover { background: #151c29; color: var(--text); }
#nav a.on { background: #1d2738; color: #fff; }
.badge { background: var(--danger); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; min-width: 20px; text-align: center; }
.badge:empty { display: none; }
.me { margin-top: auto; font-size: 13px; color: var(--muted); line-height: 1.8; }
#view { padding: 24px 28px 60px; max-width: 1300px; }
#view h1 { margin: 0 0 4px; font-size: 28px; }
#view .sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat .n { font-size: 32px; font-weight: 700; color: #fff; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat a { font-size: 13px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { padding: 6px 12px; font-size: 14px; }
.tabs button.on { background: var(--accent); color: #0d2a09; font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; position: sticky; top: 0; z-index: 3; }
.toolbar .grow { flex: 1; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.req.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.req .head { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.req .head b { color: var(--text); }
.req .text { white-space: pre-wrap; font-size: 15px; line-height: 1.45; max-height: 220px; overflow: auto; }
.req img.thumb { width: 100%; max-height: 220px; object-fit: contain; background: #0b0f17; border-radius: 10px; cursor: zoom-in; }
.req .note { width: 100%; font-size: 13px; }
.req .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.req .actions button { font-size: 13px; padding: 5px 10px; }
.req .hist { font-size: 12px; color: var(--muted); }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 56px; background: var(--bg); }
table.users td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users tr:hover td { background: #121926; }
table.users .name { font-weight: 600; }
table.users .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
table.users select { padding: 4px 6px; font-size: 13px; }
table.users .acts { display: flex; gap: 4px; flex-wrap: wrap; }
table.users .acts button { font-size: 12px; padding: 4px 8px; }
.reports { display: grid; gap: 10px; }
.report { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.report .chat { background: #0f1420; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 8px 0; max-height: 180px; overflow: auto; }
.report .chat div { color: #cfd7e3; }
.report .chat span { color: var(--muted); margin-right: 6px; }
.empty { color: var(--muted); text-align: center; padding: 40px; background: var(--panel); border-radius: 14px; }
#login { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: 380px; text-align: center; }
#login-form { display: grid; gap: 8px; }
.or { color: var(--muted); font-size: 13px; margin: 8px 0; }
#google-wrap { display: flex; flex-direction: column; align-items: center; }
#lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: grid; place-items: center; z-index: 50; cursor: zoom-out; }
#lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1d2738; border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; }
.help { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { #app { grid-template-columns: 1fr; } aside { position: static; height: auto; } }
