:root { --bg: #f4f5fb; --ink: #1e1b4b; --muted: #6b6f8f; --indigo: #4f46e5; --indigo-l: #eef0ff; --line: #e4e6f2; --ok: #16a34a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.demo-bar { background: #111; color: #ffd166; font: 600 13px/1.4 system-ui, sans-serif; text-align: center; padding: 8px 12px; }
.demo-bar a { color: #fff; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 36px); }
aside { background: var(--ink); color: #c7c9ff; padding: 22px 16px; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 28px; }
.brand span { color: #a5b4fc; }
aside a { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .95rem; margin-bottom: 4px; }
aside a.on { background: rgba(255,255,255,.12); color: #fff; }
main { padding: 26px 30px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 1.5rem; }
.muted { color: var(--muted); font-size: .9rem; }
.btn { background: var(--indigo); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi b { display: block; font-size: 1.6rem; }
.board { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.panel h2 { font-size: 1rem; margin: 0 0 14px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.day { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 0; font-size: .85rem; color: var(--muted); }
.day b { display: block; font-size: 1.15rem; color: var(--ink); }
.day.on { background: var(--indigo); border-color: var(--indigo); color: #e0e7ff; }
.day.on b { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { text-align: center; padding: 9px 0; border-radius: 8px; background: var(--indigo-l); color: var(--indigo); font-weight: 600; font-size: .88rem; }
.slot.taken { background: #f1f1f5; color: #b3b5c7; text-decoration: line-through; }
.slot.sel { background: var(--indigo); color: #fff; }
.appt { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.appt:last-child { border: 0; }
.tag { font-size: .75rem; padding: 3px 8px; border-radius: 999px; background: #dcfce7; color: var(--ok); font-weight: 600; }
.tag.wait { background: #fef3c7; color: #b45309; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  aside { display: none; }
  .board, .kpis { grid-template-columns: 1fr; }
  main { padding: 18px 16px; }
}
