/* Shravelle Control Center — platform staff only. Distinct look from the client panel on purpose. */
:root {
  --bg: #F4F2EE; --panel: #FFFFFF; --soft: #F5F5F4; --line: #E7E5E4; --line2: #D6D3D1;
  --ink: #1C1917; --ink2: #44403C; --muted: #78716C; --side: #1C1917; --side2: #292524; --side-text: #A8A29E;
  --accent: #F59E0B; --link: #9A3412; --ok: #15803D; --ok-bg: #DCFCE7; --warn: #B45309; --warn-bg: #FFF7ED; --warn-line: #FDBA74;
  --bad: #B91C1C; --bad-bg: #FEF2F2; --font: Manrope, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); font-weight: 700; text-decoration: none; } a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1 { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #E7E5E4; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 4px; font-weight: 800; font-size: 16px; }
.logo i { width: 22px; height: 22px; border-radius: 50%; border: 3.5px solid var(--accent); display: inline-grid; place-items: center; }
.logo i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tag { margin: 6px 8px 18px; align-self: flex-start; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; }
.side a.nav { padding: 9px 10px; border-radius: 8px; color: var(--side-text); font-size: 14px; font-weight: 500; }
.side a.nav:hover { background: var(--side2); color: #FAFAF9; text-decoration: none; }
.side a.nav.on { background: var(--side2); color: #FAFAF9; font-weight: 700; }
.side .who { margin-top: auto; border-top: 1px solid var(--side2); padding: 14px 8px 0; font-size: 13px; color: var(--side-text); }
.side .who b { display: block; color: #FAFAF9; font-weight: 600; }
.side .who button { margin-top: 10px; background: transparent; color: #E7E5E4; border-color: #44403C; }
.main { padding: 30px 38px 60px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.head .t { flex: 1 1 300px; } .eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; }
.back { font-size: 13px; }
button, input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; background: var(--panel); }
textarea { width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
button { cursor: pointer; font-weight: 600; } button:hover { background: var(--soft); }
button.dark { background: var(--ink); border-color: var(--ink); color: #FAFAF9; font-weight: 700; } button.dark:hover { background: #292524; }
button.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--link); font-weight: 700; }
button.bad { background: var(--bad-bg); border-color: #FCA5A5; color: var(--bad); font-weight: 700; }
button.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
a.btn { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; background: var(--panel); text-decoration: none; } a.btn:hover { background: var(--soft); }
a.btn.dark { background: var(--ink); border-color: var(--ink); color: #FAFAF9; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.card.darkcard { background: var(--side); color: #E7E5E4; border-color: var(--side); }
.card.darkcard h2 { color: #FAFAF9; } .card.darkcard .lbl { font-size: 12.5px; color: var(--side-text); }
.card.attn { background: var(--warn-bg); border-color: #FED7AA; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: auto; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .main { padding: 18px 16px; } }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; } .kpi .v { font-size: 30px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .s { font-size: 13px; color: var(--muted); } .kpi .s.up { color: var(--ok); font-weight: 600; }
.attn .l, .attn .v, .attn .s { color: var(--link); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--panel); color: var(--ink2); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--ink); color: #FAFAF9; border-color: var(--ink); font-weight: 700; }
.tblwrap { overflow-x: auto; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2, .card.flush > .cardhead { padding: 18px 22px 6px; margin: 0; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 13px 14px; white-space: nowrap; }
td { padding: 13px 14px; border-top: 1px solid var(--soft); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 22px; } th:last-child, td:last-child { padding-right: 22px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFAF9; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sub { font-size: 12.5px; color: var(--muted); }
.plan { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; background: var(--soft); color: #57534E; }
.plan.enterprise { background: var(--ink); color: #FAFAF9; } .plan.pro { background: var(--line); color: var(--ink); }
.st { font-weight: 700; } .st.active { color: var(--ok); } .st.suspended { color: var(--warn); } .st.deleted { color: var(--bad); }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink2); }
.pill.staff { background: #FEF3C7; color: #92400E; } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.ok { background: var(--ok-bg); color: var(--ok); }
.bar { display: flex; align-items: center; gap: 8px; } .bar .track { width: 120px; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; flex: none; }
.bar .fill { height: 6px; background: #57534E; border-radius: 3px; } .bar.hot .fill { background: #C2410C; } .bar.hot span { color: #C2410C; font-weight: 700; }
.meter .row { display: flex; justify-content: space-between; } .meter .track { height: 6px; background: var(--soft); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.meter .fill { height: 6px; background: #57534E; } .meter.hot .fill { background: #C2410C; } .meter.hot b { color: #C2410C; }
.tenanthead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); }
.frow .n { font-weight: 700; font-size: 14px; } .frow .c { font-size: 12px; color: var(--muted); } .frow .c.ov { color: var(--link); font-weight: 700; }
.fgroup { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 2px; grid-column: 1 / -1; }
.sw { width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--line2); position: relative; padding: 0; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .15s; }
.sw[aria-pressed="true"] { background: var(--ink); } .sw[aria-pressed="true"]::after { left: 21px; background: var(--accent); }
.sw:hover { filter: brightness(.95); background: var(--line2); } .sw[aria-pressed="true"]:hover { background: #292524; }
.form label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 10px 0 4px; } .form input, .form select { width: 100%; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: #FAFAF9; padding: 12px 16px; border-radius: 10px; z-index: 9; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast.err { background: var(--bad); }
.notice { border-radius: 12px; padding: 12px 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); }
.login { max-width: 420px; margin: 12vh auto; }
.login .card { padding: 30px; } .login input { width: 100%; margin-bottom: 10px; }
.secret { background: var(--soft); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .sp { flex: 1; }
.srOnly { position: absolute; left: -9999px; }
