/* Othman Orthodontics brand: navy #002D5D, orange #CD5200. Shared by the patient app and staff dashboard. */
:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --ink: #002d5d;
  --muted: #4d6382;
  --line: #d5dbe3;
  --accent: #002d5d;
  --accent-ink: #ffffff;
  --accent-soft: #e1e8f2;
  --cta: #c25000;
  --cta-ink: #ffffff;
  --ok: #17845a;
  --ok-soft: #dcf1e7;
  --warn: #b3261e;
  --warn-soft: #fbe4e2;
  --guide-bg: #f7f8fa;
  --logo-bg: transparent;
  --display: "Montserrat", "Gotham", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1522; --surface: #111f30; --ink: #e8eef5; --muted: #94a3b6; --line: #24364b;
    --accent: #9db8e6; --accent-ink: #0a1522; --accent-soft: #1b2e48; --cta: #f07a2a; --cta-ink: #1a0c02;
    --ok: #4fd09a; --ok-soft: #133528; --warn: #ff8a80; --warn-soft: #3a1714; --guide-bg: #0d1a29; --logo-bg: #ffffff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; }
[hidden] { display: none !important; }

header.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { background: var(--logo-bg); border-radius: 10px; padding: 4px 8px; margin-left: -8px; }
.logo img { height: 42px; width: auto; display: block; }
.tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 7vw, 34px); }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
p { margin: 0; }
.lede { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cta); }
.error { color: var(--warn); font-size: 14px; font-weight: 500; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions > * { flex: 1 1 140px; }
button { font: 600 16px var(--body); border-radius: 12px; padding: 14px 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; }
button.primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); min-height: 40px; padding: 8px 10px; font-weight: 500; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .chip:focus-within, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], textarea, select {
  font: 16px var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; width: 100%;
}
textarea { min-height: 84px; resize: vertical; }

.pill { display: inline-block; font: 600 12px var(--mono); padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.new { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
dl.summary { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .panel { animation: rise .25s ease-out; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }
