:root {
  --bg: #f5f4f0; --panel: #ffffff; --ink: #23302e; --muted: #6c7a77; --line: #e4e2dc;
  --accent: #2f6f6a; --accent-soft: #e3efed; --warn: #a24b3a;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
h1 { font-size: 1.6rem; font-weight: 600; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .8rem; }
a { color: var(--accent); }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: #fbfaf7; border-right: 1px solid var(--line); padding: 1.2rem .8rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: 1.1rem; padding: .2rem .7rem 1rem; }
.nav { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav:hover { background: #f0eee8; }
.nav.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.grow { flex: 1; }
.live { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .85rem; padding: .5rem .7rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8c5bb; }
.dot.on { background: #4aa07a; }
.main { padding: 1.8rem 2.2rem 3rem; max-width: 1100px; width: 100%; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.2rem; }
.sub, .muted { color: var(--muted); font-size: .9rem; font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.panel { margin-bottom: 1.1rem; overflow-x: auto; }
.card .k { color: var(--muted); font-size: .85rem; }
.card .v { font-size: 1.7rem; font-weight: 600; margin-top: .2rem; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: .82rem; padding: .35rem .6rem; border-bottom: 1px solid var(--line); }
td { padding: .55rem .6rem; border-bottom: 1px solid #f0eee9; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-form { display: flex; gap: .6rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
input { flex: 1; min-width: 220px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
input:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { padding: .6rem 1.1rem; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.empty { color: var(--muted); padding: 1rem 0; }
.error { color: var(--warn); background: #f8ebe7; border-radius: 8px; padding: .6rem .8rem; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .8rem; background: #eceae4; }
.pill.booked { background: #e1ebf4; color: #2d5a7e; }
.pill.completed { background: var(--accent-soft); color: var(--accent); }
.pill.cancelled { background: #f4e4df; color: var(--warn); }
.bars { display: grid; gap: .45rem; margin-bottom: .6rem; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 30px; align-items: center; gap: .6rem; }
.bar { display: block; height: 14px; background: var(--accent); border-radius: 7px; min-width: 6px; }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .4rem 0; border-bottom: 1px solid #f0eee9; }
.feed time { color: var(--muted); margin-right: .6rem; font-variant-numeric: tabular-nums; }
.map { width: 100%; height: auto; background: #f1f5f3; border-radius: 8px; }
.map .grid { stroke: #dde6e3; stroke-width: 1; }
.map .gl { fill: #9aaaa6; font-size: 11px; }
.map .pin { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.map .pl { fill: var(--ink); font-size: 13px; }
.toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; display: grid; gap: .5rem; z-index: 10; }
.toast { background: #23302e; color: #fff; padding: .6rem .9rem; border-radius: 10px; max-width: 360px; font-size: .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .nav span { display: none; } .brand span:last-child, .live { display: none; }
  .main { padding: 1.2rem; }
  .bar-row { grid-template-columns: 110px 1fr 30px; }
}
