:root {
  --bg: #f4f7fa;
  --card: #ffffff;
  --ink: #16212e;
  --muted: #5d6b7a;
  --brand: #0a7c86;
  --brand-dark: #075d65;
  --brand-soft: #dff2f3;
  --line: #d5dde5;
  --warn: #b45309;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

/* Kiosk modunda her şey daha büyük (yaşlı hastalar için) */
body.kiosk { font-size: 24px; }
body.kiosk .btn, body.kiosk .chip { min-height: 72px; }

header.top {
  background: var(--brand);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.top h1 { margin: 0; font-size: 1.1em; }
header.top .brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.homebtn {
  font: inherit; font-size: .8em; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px;
  padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.homebtn:hover { background: rgba(255, 255, 255, .3); }
.homebtn:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
header.top .tag { font-size: .7em; opacity: .85; }

main { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

h2 { margin: 0 0 6px; font-size: 1.35em; }
.hint { color: var(--muted); margin: 0 0 18px; font-size: .85em; }

.progress { display: flex; gap: 6px; margin-bottom: 16px; }
.progress span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 52px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.chip:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f5a623; outline-offset: 2px;
}

.sev { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sev .chip { padding: 10px 0; text-align: center; font-weight: 600; }

.btn {
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
a.btn { display: inline-block; text-decoration: none; line-height: 32px; }
.btn.ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn.big { width: 100%; font-size: 1.2em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }

.row { display: flex; gap: 10px; align-items: stretch; }
.row input { flex: 1; }

.list { list-style: none; padding: 0; margin: 14px 0 0; }
.list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 8px;
  background: var(--brand-soft); border-radius: 12px;
}
.list button { border: 0; background: none; font-size: 1.3em; cursor: pointer; color: var(--muted); }

.mic { min-width: 56px; padding: 0 14px; }
.mic.rec { background: #c62828; color: #fff; border-color: #c62828; }

.welcome { text-align: center; }
.welcome .qr { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.welcome .small { color: var(--muted); font-size: .8em; }

.summary dt { font-weight: 700; margin-top: 14px; color: var(--brand-dark); }
.summary dd { margin: 2px 0 0; }

.notice {
  background: #fff7e6; border: 1px solid #f3d38a; color: #5c3d00;
  border-radius: 12px; padding: 12px 14px; font-size: .8em; margin-top: 16px;
}

/* Doktor ekranı */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.queue { list-style: none; padding: 0; margin: 0; }
.queue li {
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  margin-bottom: 8px; background: #fff; cursor: pointer;
}
.queue li.sel { border-color: var(--brand); background: var(--brand-soft); }
.queue li.done { opacity: .5; }
.queue .meta { font-size: .8em; color: var(--muted); }
.sevbadge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #fde8e8; color: #9b1c1c; font-weight: 700; font-size: .85em; }

@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

@media print {
  header.top, .noprint, .queue-col { display: none !important; }
  .split { display: block; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}
