/* Estética Pro: estilo base (painel, celular, login e página de agendamento).
   Fonte do próprio sistema (Segoe UI no Windows, SF no iPhone, Roboto no Android): funciona sem internet. */
:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #f1efec;
  --side: #efedea;
  --line: #e4e1dc;
  --line-2: #d4d0c9;
  --text: #1f1c1a;
  --muted: #6c6560;
  --faint: #9b948d;
  --accent: #7a2d3a;
  --accent-hover: #65242f;
  --accent-soft: #f3e7e9;
  --ok: #2f7a4f;
  --ok-soft: #e6f2ea;
  --warn: #9a5b0e;
  --warn-soft: #fbf1e1;
  --bad: #b3372f;
  --bad-soft: #fbe9e7;
  --info: #3a5d8c;
  --info-soft: #e8eef6;
  --wa: #1f8f50;
  --r: 6px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: 20px; } h2 { font-size: 15px; } h3 { font-size: 14px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* botões e campos */
button, .btn { font: inherit; font-weight: 500; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); height: 34px; padding: 0 12px; border-radius: var(--r); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #18773f; border-color: #18773f; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--bad); }
.btn-sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn-icon { width: 34px; padding: 0; }
button:disabled { opacity: .5; cursor: default; }
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { font: inherit; font-size: 14px; width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--text); }
textarea { height: auto; padding: 8px 10px; resize: vertical; min-height: 72px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent); }
/* foco visível para quem usa o teclado (Tab) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 0; }
button:active, .btn:active { transform: translateY(1px); }
kbd { font: 500 11px var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--muted); background: var(--surface); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .field { flex: 1 1 150px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); font-weight: 400; margin-bottom: 0; }
.hint { font-size: 12px; color: var(--faint); margin-top: 4px; }

/* blocos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); min-height: 46px; }
.panel-h h2 { font-size: 14px; }
.panel-b { padding: 14px 16px; }
.panel-b.flush { padding: 0; }

/* situação: ponto colorido + texto */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.st-agendado::before { background: var(--info); }
.st-confirmado::before { background: var(--accent); }
.st-concluido::before { background: var(--ok); }
.st-faltou::before { background: var(--bad); }
.st-cancelado { text-decoration: line-through; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid #ecd9b8; background: var(--warn-soft); color: #6e4510; border-radius: var(--r); margin-bottom: 14px; font-size: 13.5px; }
.notice.bad { border-color: #efc9c4; background: var(--bad-soft); color: var(--bad); }
.notice.info { border-color: #cfdcec; background: var(--info-soft); color: var(--info); }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #2a2624; color: #fff; padding: 10px 16px; border-radius: var(--r); z-index: 100; max-width: calc(100vw - 32px); font-size: 13.5px; }
.toast.err { background: var(--bad); }
.empty { text-align: center; padding: 28px 12px; color: var(--faint); }
