.adm { min-height: 100vh; background: #0b1220; color: #e6edf7; font-family: Outfit, system-ui, sans-serif; }
.adm * { box-sizing: border-box; }
.adm h1 { font-size: 1.4rem; margin: 0; }
.adm h3 { margin: 0 0 .6rem; font-size: 1rem; }
.adm-login { display: grid; place-items: center; padding: 1rem; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: .9rem; }
.adm-brand { font-weight: 700; font-size: 1.15rem; color: #7cc8ff; }
.adm-brand span { color: #94a3b8; font-weight: 500; font-size: .85rem; margin-left: .3rem; }
.adm-card { background: #131c2e; border: 1px solid #22304a; border-radius: 14px; padding: 1rem; min-width: 0; }
.adm-card.flush { padding: 0; overflow: hidden; }
.adm-stack { display: flex; flex-direction: column; gap: 1rem; }
.adm-stack.sm { gap: .5rem; }
.adm-two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .adm-two { grid-template-columns: 1fr 1fr; } }
.adm-field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: #94a3b8; }
.adm-field input, .adm-field textarea, .adm-field select, .adm-input {
  width: 100%; background: #0b1220; color: #e6edf7; border: 1px solid #2b3b5a; border-radius: 10px; padding: .65rem .75rem; font: inherit; font-size: .95rem;
}
.adm-input.narrow { width: auto; max-width: 170px; }
.adm-field input:focus, .adm-input:focus, .adm-field textarea:focus { outline: 2px solid #38bdf8; outline-offset: 1px; }
.adm-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.adm-seg { display: flex; background: #0b1220; border-radius: 10px; padding: 4px; gap: 4px; }
.adm-seg button { flex: 1; border: 0; background: transparent; color: #94a3b8; padding: .55rem; border-radius: 8px; font: inherit; cursor: pointer; }
.adm-seg button.on { background: #38bdf8; color: #06223a; font-weight: 600; }
.adm-btn { border: 1px solid #2b3b5a; background: #1a2740; color: #e6edf7; padding: .6rem .9rem; border-radius: 10px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.adm-btn:hover { border-color: #38bdf8; }
.adm-btn.primary { background: #38bdf8; border-color: #38bdf8; color: #06223a; font-weight: 600; }
.adm-btn.warn { border-color: #b7791f; color: #fbd38d; }
.adm-btn.danger { background: #9b2c2c; border-color: #9b2c2c; color: #fff; }
.adm-btn.danger.ghost, .adm-btn.ghost.danger { background: transparent; color: #fc8181; border-color: #742a2a; }
.adm-btn:disabled { opacity: .6; cursor: default; }
.adm-link { background: none; border: 0; color: #7cc8ff; font: inherit; cursor: pointer; padding: 0; text-align: left; text-decoration: none; }
.adm-muted { color: #94a3b8; }
.adm .sm { font-size: .8rem; }
.adm-err { background: #3b1219; color: #fecaca; border: 1px solid #7f1d1d; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.adm-ok { background: #0f2e22; color: #bbf7d0; border: 1px solid #166534; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.adm-shell { display: flex; flex-direction: column; }
.adm-side { background: #0e1729; border-bottom: 1px solid #22304a; padding: .8rem; position: sticky; top: 0; z-index: 5; }
.adm-menu { display: flex; gap: .4rem; overflow-x: auto; margin-top: .6rem; padding-bottom: .2rem; }
.adm-menu button { flex: none; display: flex; gap: .45rem; align-items: center; border: 0; background: transparent; color: #cbd5e1; padding: .55rem .75rem; border-radius: 10px; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.adm-menu button.on { background: #1d3a5c; color: #7cc8ff; font-weight: 600; }
.adm-main { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; flex: 1; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; scroll-margin-top: 120px; }
@media (min-width: 900px) {
  .adm-shell { flex-direction: row; }
  .adm-side { width: 250px; height: 100vh; border-bottom: 0; border-right: 1px solid #22304a; flex: none; }
  .adm-menu { flex-direction: column; overflow: visible; }
  .adm-main { padding: 1.5rem 2rem; }
}
.stat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { text-align: left; background: #131c2e; border: 1px solid #22304a; border-radius: 14px; padding: .9rem; color: #e6edf7; font: inherit; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; }
.stat span { color: #94a3b8; font-size: .8rem; }
.stat b { font-size: 1.35rem; overflow-wrap: anywhere; }
.stat.hot { border-color: #38bdf8; box-shadow: 0 0 0 1px #38bdf8 inset; }
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 170px; padding-top: 1rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .25rem; min-width: 0; }
.bar { width: 100%; max-width: 38px; background: linear-gradient(#7cc8ff, #2b8fd6); border-radius: 6px 6px 2px 2px; }
.bar-val { font-size: .65rem; color: #94a3b8; white-space: nowrap; overflow: hidden; max-width: 100%; }
.bar-lbl { font-size: .75rem; color: #94a3b8; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip { border: 1px solid #2b3b5a; background: transparent; color: #cbd5e1; padding: .4rem .75rem; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip.on { background: #38bdf8; color: #06223a; border-color: #38bdf8; font-weight: 600; }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; background: #22304a; color: #cbd5e1; white-space: nowrap; }
.pill.st-pending, .pill.ps-pending, .pill.o-new { background: #3a2f0b; color: #fcd34d; }
.pill.st-approved, .pill.ps-approved, .pill.m-active, .pill.o-done { background: #0f2e22; color: #86efac; }
.pill.st-rejected, .pill.ps-blocked, .pill.m-blocked, .pill.o-cancelled { background: #3b1219; color: #fca5a5; }
.pill.ps-hidden, .pill.ps-suspended, .pill.m-suspended { background: #2d2440; color: #c4b5fd; }
.card-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; margin: .7rem 0; font-size: .9rem; }
.kv dt { color: #94a3b8; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.adm .mono { font-family: ui-monospace, Menlo, monospace; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li { display: flex; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid #1d2840; font-size: .9rem; }
.adm-list li:last-child { border-bottom: 0; }
.adm-list li.adm-stack { flex-direction: column; }
.user-row { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; background: transparent; border: 0; border-bottom: 1px solid #1d2840; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.user-row:hover { background: #17233a; }
.u-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #1d3a5c; color: #7cc8ff; display: grid; place-items: center; font-weight: 600; }
.u-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.u-main small { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .75rem; }
.adm-form-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.method-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.method-row input:not([type="checkbox"]) { flex: 1 1 160px; }
.adm-thumb { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; margin: .4rem 0; }
.adm-body { margin: .3rem 0; color: #cbd5e1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.post-row { display: flex; flex-direction: column; gap: .35rem; }
.adm .loading, .adm .empty { color: #94a3b8; }
