/* PrayFor — teal theme ("design B") */
:root {
  --bg: #F4FBFA;
  --teal: #028090;
  --teal-pill: #00A896;
  --mint: #02C39A;
  --nav-text: #CDEDEA;
  --ink: #1B2B2E;
  --muted: #5C7A7D;
  --border: #D7EDEA;
  --divider: #E3F0EE;
  --soft: #E3F6F3;
  --field: #F7FCFB;
  --tint: #F2FBFA;
  --placeholder: #9FB3B1;
  --idle-dot: #C7DAD8;
  --danger: #C0392B;
  --danger-soft: #C97A6E;
  --white: #FFFFFF;

  --serif: Cambria, Georgia, "Times New Roman", serif;
  --sans: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --gutter: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  height: 84px;
  background: var(--teal);
  display: flex;
  align-items: center;
  padding: 0 48px 0 28px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mint);
  display: grid; place-items: center;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.mainnav { display: flex; gap: 14px; margin-left: 172px; }
.mainnav a {
  color: var(--nav-text);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 18px;
  white-space: nowrap;
}
.mainnav a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,.08); }
.mainnav a.active { background: var(--teal-pill); color: var(--white); font-weight: 700; }
.avatar-link {
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--teal);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.avatar-link:hover { text-decoration: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* ---------- Page ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 40px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-title { font-size: 30px; line-height: 1.2; }
.page-title.sm { font-size: 28px; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs strong { color: var(--teal); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.card-pad { padding: 28px; }
.card-title { font-size: 17px; margin-bottom: 22px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--teal); text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  min-height: 96px; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.stat-value { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--teal); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.stats.lg .stat { min-height: 100px; }
.stats.lg .stat-value { font-size: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 26px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: 1.5px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #016d7a; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--field); }
.btn-ghost.teal { color: var(--teal); }
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { background: var(--tint); }
.btn-sm { height: 44px; padding: 0 26px; font-size: 13px; border-radius: 22px; }
.btn-md { height: 48px; padding: 0 26px 0 18px; border-radius: 24px; }
.btn[disabled], .btn.is-done { cursor: default; opacity: .9; }
.btn-plus {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 17px; line-height: 1; font-weight: 400;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: #fdf3f1; border-color: var(--danger-soft); }
.link-strong { font-weight: 700; font-size: 12.5px; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Avatars ---------- */
.avatar {
  border-radius: 50%; background: var(--soft); color: var(--teal);
  font-family: var(--serif); font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.avatar.xl { width: 92px; height: 92px; font-size: 30px; }
.avatar.lg { width: 88px; height: 88px; font-size: 30px; }
.avatar.md { width: 80px; height: 80px; font-size: 26px; }
.avatar.sm { width: 56px; height: 56px; font-size: 18px; }

/* ---------- Pills / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 20px; border-radius: 17px;
  background: var(--white); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px;
  cursor: pointer; user-select: none;
}
.chip:hover { text-decoration: none; border-color: var(--teal); }
.chip.active, .chip-input:checked + .chip { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 700; }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input:focus-visible + .chip { outline: 2px solid var(--mint); outline-offset: 2px; }
.form .chip { height: 36px; background: var(--field); border-radius: 18px; }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 14px; border-radius: 13px;
  background: var(--soft); color: var(--teal); font-size: 11.5px; font-weight: 700;
}
.tag.lg { height: 28px; font-size: 11px; padding: 0 16px; border-radius: 14px; }

/* ---------- Today ---------- */
.today-grid { display: grid; grid-template-columns: minmax(0, 748fr) minmax(0, 542fr); gap: 30px; align-items: start; }
.focus-card { padding: 44px 36px 36px; min-height: 536px; }
.focus-head { display: flex; align-items: center; gap: 24px; padding: 0 0 30px 8px; border-bottom: 1px solid var(--divider); }
.focus-name { font-size: 24px; }
.focus-request { font-size: 12.5px; font-style: italic; color: var(--muted); margin-top: 6px; }
.focus-request a { color: inherit; }
.resource {
  background: var(--tint); border-radius: 14px; padding: 22px 24px 20px 20px;
  display: flex; gap: 18px; align-items: flex-start; margin-top: 20px;
}
.resource-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.resource-title { font-weight: 700; font-size: 12.5px; }
.resource-body { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.resource-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.resource-meta a { font-weight: 700; }
.focus-actions { display: grid; grid-template-columns: minmax(0, 419fr) minmax(0, 241fr); gap: 16px; margin-top: 20px; }
.focus-actions form, .focus-actions .btn { width: 100%; }
.empty { text-align: center; padding: 70px 30px; color: var(--muted); }
.empty h2 { font-size: 22px; margin: 18px 0 8px; }
.empty .btn { margin-top: 22px; }

/* ---------- Timelines ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-left: 26px; padding-bottom: 32px; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 20px; bottom: -2px; width: 2px; background: var(--border);
}
.timeline .t-date { font-size: 11px; font-weight: 700; color: var(--teal); }
.timeline .t-name { font-size: 14px; font-weight: 700; margin-top: 6px; }
.timeline .t-desc { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.timeline-lg li { padding-left: 36px; padding-bottom: 46px; }
.timeline-lg li::before { left: 0; top: 2px; width: 14px; height: 14px; }
.timeline-lg li:not(:last-child)::after { left: 6px; top: 18px; }
.timeline-lg .t-date { font-size: 12px; }
.timeline-lg .t-name { font-family: var(--serif); font-size: 18px; margin-top: 6px; }
.timeline-lg .t-desc { font-size: 13px; margin-top: 6px; }
.t-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.t-side { display: flex; align-items: center; gap: 10px; flex: none; }
.t-delete { opacity: 0; transition: opacity .15s; color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.timeline li:hover .t-delete, .t-delete:focus-visible { opacity: 1; }
.timeline-sm li { padding-left: 30px; padding-bottom: 26px; }
.timeline-sm li::before { top: 4px; }
.timeline-sm .t-date { font-size: 12px; }
.timeline-sm .t-desc { font-size: 12.5px; margin-top: 2px; }
.answers-card { padding: 46px 40px 30px 50px; }
.recent-card { padding: 28px 28px 20px; min-height: 536px; }
.recent-card .timeline { padding-left: 2px; }
.card-foot { margin-top: 6px; font-size: 12.5px; font-weight: 700; }

/* ---------- People ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: -2px 0 20px; }
.search {
  position: relative; width: 420px; max-width: 100%;
}
.search input {
  width: 100%; height: 48px; border-radius: 24px; border: 1px solid var(--border);
  background: var(--white); padding: 0 20px 0 48px; font: inherit; font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.person-card { border-radius: 16px; padding: 18px 24px 16px; display: flex; flex-direction: column; }
.person-top { display: flex; gap: 14px; align-items: center; padding: 0 0 22px; }
.person-top .info { flex: 1; min-width: 0; }
.person-name { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ink); }
.person-req { font-size: 11.5px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-foot { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.status { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--idle-dot); flex: none; }
.dot.on { background: var(--mint); }
.view-link { font-weight: 700; font-size: 12px; }
.menu { position: relative; align-self: flex-start; }
.menu summary {
  list-style: none; cursor: pointer; width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--tint); }
.menu-list {
  position: absolute; right: 0; top: 34px; z-index: 5; min-width: 168px; padding: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 64, 72, .12);
}
.menu-list a, .menu-list button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); background: none; border: 0; font-size: 13px; cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: var(--tint); text-decoration: none; }
.menu-list .danger { color: var(--danger); }
.no-results { grid-column: 1 / -1; padding: 50px; text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 520fr); gap: 40px; align-items: start; }
.form { padding: 36px 40px 26px; }
.field { margin-bottom: 26px; }
.field > label, .field-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date],
.field input[type=time], .field select, .field textarea {
  width: 100%; height: 52px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--field); padding: 0 16px; font: inherit; font-size: 13.5px; color: var(--ink);
}
.field textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%235C7A7D'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,128,144,.12); background: var(--white); }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.field .help ul { margin: 4px 0 0; padding-left: 18px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: 12px; }
.form-error { background: #fdf3f1; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
.toggle-row {
  background: var(--field); border-radius: 12px; padding: 14px 20px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; margin-bottom: 36px;
}
.toggle-title { font-weight: 700; font-size: 13.5px; }
.toggle-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.form-actions { display: flex; gap: 20px; align-items: center; }
.form-actions .btn-primary { min-width: 220px; }
.form-actions .btn-ghost { min-width: 140px; }

/* Toggle switch (checkbox) */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 13px; background: var(--idle-dot); transition: background .15s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(24px); }
.switch input:focus-visible + .track { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Side cards */
.side-stack { display: grid; gap: 20px; }
.preview-card { padding: 30px 28px 34px; }
.preview-body { text-align: center; padding: 26px 0 30px; border-bottom: 1px solid var(--border); }
.preview-body .avatar { margin: 0 auto; }
.preview-name { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-top: 20px; color: var(--ink); }
.preview-name.placeholder { color: #B7C7C6; }
.preview-req { font-size: 12px; font-style: italic; color: var(--muted); margin-top: 6px; }
.preview-req.placeholder { color: #C7D6D5; }
.preview-note { font-size: 11.5px; color: var(--muted); margin-top: 22px; max-width: 280px; }
.teal-card { background: var(--teal); color: var(--nav-text); border-radius: 20px; padding: 30px 28px; }
.teal-card h3 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.teal-card p { font-size: 12.5px; line-height: 1.6; max-width: 260px; }

/* ---------- Person detail ---------- */
.detail-head { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; }
.detail-head .info { flex: 1; min-width: 0; }
.detail-name { font-size: 28px; line-height: 1.2; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.detail-actions { display: flex; gap: 18px; align-items: center; }
.detail-actions .btn-ghost { min-width: 110px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 774fr) minmax(0, 516fr); gap: 30px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 24px; }
.request-card { padding: 28px 28px 22px; }
.request-text { font-size: 16px; line-height: 1.5; margin: 18px 0 14px; color: var(--ink); max-width: 620px; }
.request-empty { color: var(--muted); font-style: italic; }
.history-card { padding: 28px 28px 30px; min-height: 450px; }
.history-card .timeline { padding-left: 20px; }
.answer-cta { text-align: center; padding: 30px 28px 26px; }
.answer-cta .check { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; margin: 0 auto; }
.answer-cta h3 { margin: 14px 0 10px; font-size: 17px; }
.answer-cta p { text-align: left; max-width: none; font-size: 12px; margin-bottom: 18px; }
.answer-cta .btn { width: 100%; height: 44px; border-radius: 22px; font-size: 13px; }
.notes-card { padding: 28px; min-height: 380px; display: flex; flex-direction: column; }
.notes-card h3 { font-size: 16px; margin-bottom: 14px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.6; padding: 10px 0; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; gap: 10px; }
.note:last-of-type { border-bottom: 0; }
.note-text { white-space: pre-line; }
.note-date { font-size: 11px; color: var(--placeholder); margin-top: 2px; }
.notes-foot { margin-top: auto; padding-top: 18px; }
.note-form { display: none; margin-top: 12px; }
.note-form.open { display: block; }
.note-form textarea { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--field); padding: 12px 14px; font: inherit; font-size: 13px; resize: vertical; min-height: 84px; }
.note-form textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.note-form .row { display: flex; gap: 10px; margin-top: 10px; }
.note-form .btn { height: 38px; padding: 0 18px; font-size: 12.5px; }
.note .t-delete { opacity: .5; }
.note:hover .t-delete { opacity: 1; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 542fr) minmax(0, 748fr); gap: 30px; align-items: start; }
.settings-left { display: grid; gap: 24px; }
.profile-card { text-align: center; padding: 34px 28px 30px; }
.profile-card .avatar { margin: 0 auto; }
.profile-name { font-family: var(--serif); font-weight: 700; font-size: 19px; margin-top: 18px; }
.profile-email { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.profile-card .btn { margin-top: 20px; min-width: 160px; height: 42px; border-radius: 21px; font-size: 13px; }
.list-card { padding: 28px 28px 20px; }
.list-card h3 { font-size: 16px; margin-bottom: 6px; }
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  padding: 16px 0 18px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left;
  color: inherit; cursor: pointer; font: inherit;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { text-decoration: none; }
.list-row:hover .row-title { color: var(--teal); }
.list-row.danger:hover .row-title { color: var(--danger); }
.row-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.list-row.danger .row-title { color: var(--danger); }
.row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.chev { color: var(--muted); font-size: 18px; }
.prefs-card { padding: 28px 28px 34px; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 20px; border-bottom: 1px solid var(--border); }
.pref-row .row-title { font-size: 14px; }
.prefs-fields { padding-top: 22px; }
.prefs-fields .field input[type=time] { max-width: 220px; height: 48px; }
.prefs-fields .field select { max-width: 260px; height: 48px; }
.prefs-save { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.save-state { font-size: 12px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 460px; padding: 40px 40px 32px; }
.auth-card h1 { font-size: 28px; }
.auth-card .page-sub { margin-bottom: 28px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.narrow { max-width: 760px; }

/* ---------- Messages ---------- */
.messages { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.message {
  background: var(--soft); color: var(--teal); border-radius: 12px; padding: 12px 18px;
  font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.message.error { background: #fdf3f1; color: var(--danger); }
.message button { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; line-height: 1; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 12px; font-size: 13px;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mainnav { margin-left: 40px; }
  .today-grid, .detail-grid, .form-grid, .settings-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-card, .recent-card, .history-card, .notes-card { min-height: 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .topbar { height: auto; flex-wrap: wrap; padding: 14px 16px 10px; gap: 10px 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 19px; }
  .avatar-link { width: 38px; height: 38px; }
  .mainnav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { padding: 7px 12px; font-size: 13px; }
  .page { padding-top: 24px; }
  .page-title { font-size: 25px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 0; padding: 16px 20px; }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-direction: column-reverse; align-items: stretch; }
  .search { width: 100%; }
  .focus-card { padding: 26px 18px 20px; }
  .focus-head { padding-left: 0; gap: 16px; }
  .focus-head .avatar { width: 64px; height: 64px; font-size: 24px; }
  .focus-name { font-size: 20px; }
  .focus-actions { grid-template-columns: 1fr; }
  .form { padding: 26px 18px 20px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { min-width: 0; }
  .answers-card { padding: 30px 18px 10px; }
  .t-row { flex-direction: column; gap: 8px; }
  .detail-head { flex-wrap: wrap; }
  .detail-head .avatar { width: 64px; height: 64px; font-size: 24px; }
  .detail-name { font-size: 24px; }
  .detail-actions { width: 100%; }
  .auth-card { padding: 30px 20px 24px; }
}
