/* The dentist space (index.html). The hub's palette: navy text, violet for the one action, green for what is done. */
:root {
  --bg: #f5f4fa; --surface: #fff; --text: #0b1446; --muted: #4a5478; --faint: #646d8a; --border: #e9e7e2;
  --accent: #7c3aed; --accent-ink: #6528d3; --ok: #0f7b53; --danger: #c81e1e; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.narrow { max-width: 420px; margin: 24px auto; }
h1 { font-size: 22px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 0; }
.center { text-align: center; }
label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 0; }
input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid #cfcbe0; border-radius: 10px; }
input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
input[readonly] { background: var(--bg); color: var(--muted); }
button { font: inherit; cursor: pointer; }
.primary { width: 100%; margin-top: 18px; min-height: 46px; border: 0; border-radius: 10px; color: #fff;
  background: var(--accent); font-weight: 600; }
.primary:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; color: var(--accent-ink); padding: 8px; min-height: 44px; white-space: nowrap; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 10px 0 0; }
.help { margin-top: 18px; font-size: 14px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--accent-ink); }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.bar input { flex: 1 1 260px; margin: 0; }
.tabs { display: flex; background: #ece9f5; border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; color: var(--muted); min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 20, 70, .08); }
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.patient { font-weight: 600; }
.due { color: var(--muted); font-size: 14px; }
.works { margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); margin: 16px 0 2px; padding: 0; list-style: none; }
.step { position: relative; text-align: center; font-size: 12px; color: var(--faint); padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--surface); border: 2px solid #cfcbe0; z-index: 1; }
.step::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #e2dfeb; }
.step:first-child::after { display: none; }
.step.done { color: var(--text); }
.step.done::before { background: var(--ok); border-color: var(--ok); }
.step.done::after { background: var(--ok); }
.step .at { display: block; color: var(--faint); }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .step { text-align: left; padding: 0 0 0 24px; }
  .step::before { top: 4px; left: 0; margin-left: 0; }
  .step::after { display: none; }
  .step .at { display: inline; margin-left: 6px; }
}
