:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --ink: #1d1b19;
  --muted: #6b645c;
  --line: #e4ded6;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #e6f4f2;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4b00;
  --danger: #b42318;
  --ok: #067647;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: .92rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 1rem; }
.narrow { max-width: 520px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.logo span { color: var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: .6rem 0 .25rem; }
input, select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink); min-height: 44px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(15,118,110,.35); outline-offset: 1px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button.secondary, .btn.secondary { background: #fff; color: var(--brand); }
button.danger { background: #fff; color: var(--danger); border-color: #f1c0bb; }
button.small, .btn.small { min-height: 36px; padding: .3rem .7rem; font-size: .88rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn.wa { background: #1c8649; border-color: #1c8649; } /* white text 4.6:1 (WCAG AA) */
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.error { color: var(--danger); font-size: .92rem; min-height: 1.2em; margin: .4rem 0 0; }
.success { color: var(--ok); font-size: .92rem; min-height: 1.2em; margin: .4rem 0 0; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f5d8a8; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.notice.info { background: var(--brand-soft); color: #0b4f49; border-color: #bfe3de; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { background: none; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .95rem; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #eee; }
.badge.pending { background: #fff4e0; color: #7a4b00; }
.badge.confirmed { background: #e3f6ec; color: var(--ok); }
.badge.cancelled { background: #f3f3f3; color: #777; text-decoration: line-through; }
.hours-row { display: grid; grid-template-columns: 7.5rem 5.5rem 1fr 1fr; gap: .5rem; align-items: center; padding: .25rem 0; }
.hours-row label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: .35rem; }
.hours-row input[type=checkbox] { width: auto; min-height: auto; }
@media (max-width: 520px) { .hours-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: #fff; color: var(--ink); border: 1px solid var(--line); min-height: 44px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.date-chip { flex-direction: column; min-width: 4.4rem; line-height: 1.15; padding: .4rem .5rem; }
.date-chip small { font-weight: 500; font-size: .75rem; opacity: .85; }
.service-opt { display: flex; justify-content: space-between; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); margin-bottom: .5rem; padding: .75rem 1rem; }
.service-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.step { margin-bottom: 1.25rem; }
.step h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hidden { display: none !important; }
.lang-toggle { display: flex; gap: .25rem; }
.lang-toggle button { min-height: 34px; padding: .2rem .6rem; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2rem; }
footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 2rem 1rem; }
/* Anti-spam honeypot: off-screen (not display:none, so naive bots still fill it), hidden from AT. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { margin: 12px 0; min-height: 65px; max-width: 100%; overflow: hidden; }
.captcha-box.hidden { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-actions { flex: 0 0 auto; align-items: center; }
.row > .shrink, .shrink { flex: 0 0 auto; }
.align-end { align-items: flex-end; }
.full { width: 100%; }
/* Compact button groups: never stretch or stack small action buttons. */
.nav-actions, .actions { flex-wrap: nowrap; gap: .5rem; }
.nav-actions > *, .actions > * { flex: 0 0 auto; }
.actions { display: flex; align-items: center; }
.list li > div:first-child { min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
#share-line { overflow-wrap: anywhere; }
@media (max-width: 420px) { .topbar .nav-actions .btn, .topbar .nav-actions button { padding: .3rem .55rem; } }
@media (max-width: 520px) { .tabs { flex-wrap: wrap; } .tabs button { padding: .4rem .6rem; } }
