body.admin { background: #f5f5f8; }
.adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #0e0e14; color: #c8c8d4; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .logo { color: #fff; margin: 4px 8px 24px; font-size: 17px; }
.adm-side .logo-mark { background: #fff; color: #0e0e14; }
.adm-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.adm-side nav a:hover { background: #1c1c26; color: #fff; }
.adm-side nav a.on { background: #fff; color: #0e0e14; }
.adm-side nav a .n { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.adm-side .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6c6c7c; margin: 18px 12px 6px; font-weight: 700; }
.adm-main { padding: 26px 32px 60px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-top h1 { font-size: 26px; margin: 0; }
.adm-toggle { display: none; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; z-index: 50; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .adm-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .adm-toggle { display: inline-flex; }
  .adm-main { padding: 18px 16px 60px; }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.panel > h3 { font-size: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; display: block; }
.stat small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.cols-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.cols-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .cols-2, .cols-2e { grid-template-columns: 1fr; } }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid #f0f0f4; vertical-align: top; }
table.t tr:hover td { background: #fafafd; }
table.t a { text-decoration: none; font-weight: 600; }
table.t .r { text-align: right; }
.tbl-wrap { overflow-x: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.filters label { font-size: 12px; margin-bottom: 3px; color: var(--muted); }
.filters input, .filters select { padding: 8px 10px; font-size: 13.5px; border-radius: 10px; min-width: 120px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; text-align: center; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars i { display: block; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 3px; margin-bottom: 4px; opacity: .85; }
.bars b { font-size: 11px; color: var(--ink); }
.sched { display: grid; grid-template-columns: 110px repeat(7, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; min-width: 1000px; }
.sched > div { border-right: 1px solid #f0f0f4; border-bottom: 1px solid #f0f0f4; padding: 8px; font-size: 12.5px; min-height: 70px; }
.sched .hd { background: #fafafd; font-weight: 700; min-height: 0; }
.sched .hd.today { background: var(--accent-soft); color: var(--accent-ink); }
.sched .tm { background: #fafafd; color: var(--muted); font-weight: 600; }
.job { display: block; text-decoration: none; border-left: 3px solid var(--accent); background: #f7f7fb; border-radius: 6px; padding: 5px 7px; margin-bottom: 5px; line-height: 1.3; }
.job:hover { background: #efeffa; }
.job small { color: var(--muted); display: block; }
.job.laundry { background: #eef7ff; } .job.cleaning { background: #effaf4; }
.job.unassigned { outline: 1px dashed #e0a43a; }
.ev { border-left: 2px solid var(--line); padding: 0 0 14px 14px; position: relative; font-size: 13.5px; }
.ev::before { content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }
.adm-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(800px 400px at 80% -10%, #e9e5ff, transparent 60%), #f5f5f8; padding: 20px; }
.adm-login .card { width: 100%; max-width: 400px; }
.pager { display: flex; gap: 6px; margin-top: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
