:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #12203a;
  --muted: #5b6b86;
  --line: #e3e8f2;
  --brand: #1d6fe0;
  --brand-ink: #0b3f8c;
  --ok: #17915b;
  --ok-bg: #e6f6ee;
  --shadow: 0 10px 30px rgba(18, 32, 58, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: grid; place-items: center;
}

.app-header h1 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.subtitle { margin: 0; font-size: 13px; color: var(--muted); }

.shift-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.shift-pill:hover { border-color: var(--ok); }

.container { max-width: 760px; margin: 28px auto; padding: 0 20px; }

.patient-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.patient-bar label { font-weight: 600; font-size: 13px; color: var(--muted); }

#roomSelect {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  min-width: 190px;
}

.progress { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.progress-track {
  width: 160px; height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--ok));
  transition: width 0.35s ease;
}
.progress-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.check-row:last-child { border-bottom: none; }
.check-row:hover { background: #fafbfe; }

.check-box {
  width: 22px; height: 22px;
  border: 2px solid #c4cfe2;
  border-radius: 7px;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid; place-items: center;
  color: #fff;
  transition: all 0.15s ease;
}
.check-row.done .check-box { background: var(--ok); border-color: var(--ok); }
.check-row.done .check-label { color: var(--muted); text-decoration: line-through; }

.check-body { display: flex; flex-direction: column; }
.check-label { font-weight: 600; font-size: 15px; }
.check-hint { font-size: 12.5px; color: var(--muted); }

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-ghost { background: #fff; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: #c4cfe2; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }

.saved-note {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 2px 40px;
  transition: opacity 0.3s ease;
}
