@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #18352f;
  --ink-soft: #35534b;
  --muted: #64766f;
  --canvas: #f3f6f3;
  --paper: #ffffff;
  --paper-tint: #f8faf8;
  --line: #dce7e1;
  --line-strong: #bdcec6;
  --green: #176b58;
  --green-dark: #104c40;
  --green-soft: #e5f3ed;
  --green-wash: #f1f8f4;
  --gold: #edbd5c;
  --gold-soft: #fff6df;
  --red: #a3423c;
  --red-soft: #fff0ee;
  --focus: #cb771d;
  --shadow: 0 12px 36px rgba(27, 58, 47, 0.075);
  --radius-large: 24px;
  --radius-medium: 17px;
  --radius-small: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
}
button, input, select { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  left: 14px;
  top: 10px;
  padding: 11px 15px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #fff;
  color: #102f28;
  font-weight: 750;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1320px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: 15px;
}
.brand-mark svg { width: 33px; height: 33px; }
.brand-copy { display: grid; line-height: 1.18; gap: 4px; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: -.025em; }
.brand-copy span { color: var(--muted); font-size: .79rem; }
.header-badges { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .025em;
  white-space: nowrap;
}
.badge-demo { border-color: #cfdfd7; background: #edf5f0; color: #224f42; text-transform: uppercase; letter-spacing: .075em; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #238568; }
.header-note { color: var(--muted); font-size: .82rem; }

.page-shell { width: min(1320px, 100%); margin: 0 auto; padding: 4px 28px 52px; }
.hero {
  position: relative;
  min-height: 266px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(118deg, #153b34 0%, #1b5145 67%, #21634e 100%);
  box-shadow: 0 20px 50px rgba(18, 58, 46, .18);
}
.hero::before, .hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(231, 245, 236, .1);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 430px; height: 430px; right: 78px; top: -220px; }
.hero::after { width: 325px; height: 325px; right: 132px; top: -167px; }
.hero-copy { position: relative; z-index: 1; width: min(650px, 72%); }
.eyebrow {
  margin: 0 0 8px;
  color: #688278;
  font-size: .69rem;
  line-height: 1.35;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #d1e3d9; }
.eyebrow-line { width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(2.15rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.052em; font-weight: 760; }
.hero-description { max-width: 535px; margin: 14px 0 22px; color: #e3ede7; font-size: 1rem; line-height: 1.55; }
.hero-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(241, 249, 244, .21);
  border-radius: 999px;
  color: #f0f6f2;
  background: rgba(255,255,255,.075);
  font-size: .76rem;
  font-weight: 650;
}
.summary-symbol { color: #f3cf78; font-size: .86rem; line-height: 1; }
.hero-art { position: absolute; top: 0; right: 42px; width: 300px; height: 100%; display: grid; place-items: center; color: #dcece2; }
.hero-art-halo { position: absolute; width: 224px; height: 224px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 23px rgba(255,255,255,.025), 0 0 0 47px rgba(255,255,255,.025); }
.hero-door { position: relative; z-index: 1; width: 162px; height: 192px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 10px 10px 0; border: 1px solid rgba(238, 249, 241, .27); border-radius: 72px 72px 13px 13px; background: rgba(255,255,255,.09); box-shadow: 0 16px 35px rgba(0,0,0,.13); }
.hero-door svg { width: 128px; height: 156px; }
.hero-door-label { position: absolute; bottom: -18px; width: max-content; padding: 5px 10px; border-radius: 999px; background: #d6e9dc; color: #234b3f; font-size: .64rem; font-weight: 760; letter-spacing: .025em; }
.hero-sparkle { position: absolute; color: #f1cb70; font-size: 1.6rem; }
.sparkle-one { top: 51px; right: 7px; }
.sparkle-two { left: 18px; bottom: 59px; font-size: 3rem; }

.notice, .storage-warning {
  position: relative;
  margin: 17px 0 0;
  padding: 13px 48px 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #c8dbd1;
  border-radius: 13px;
  color: #21493c;
  background: #edf7f1;
  font-size: .89rem;
}
.notice p { margin: 0; }
.notice-icon { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #d8ebe0; color: #1f5b48; font-size: .79rem; font-weight: 850; }
.notice-dismiss { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #315a4c; font-size: 1.5rem; line-height: 1; }
.notice-dismiss:hover { background: rgba(25,81,63,.08); }
.storage-warning { display: block; padding: 13px 16px; border-color: #e7cf92; color: #493714; background: #fff7e4; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(340px, .88fr); align-items: start; gap: 22px; margin-top: 22px; }
.primary-column, .settings-column { display: grid; gap: 20px; min-width: 0; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-heading h2 { margin: 0; font-size: 1.44rem; line-height: 1.22; letter-spacing: -.035em; }
.section-heading .eyebrow { margin-bottom: 7px; }
.count-pill { display: inline-flex; align-items: center; min-height: 29px; margin-top: 2px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper-tint); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.count-pill.has-active { border-color: #e8c876; color: #5e4816; background: var(--gold-soft); }
.active-alerts { display: grid; gap: 13px; margin-top: 18px; }
.empty-state { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #cbd9d1; border-radius: var(--radius-medium); background: #fbfdfb; }
.empty-illustration { flex: 0 0 47px; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; color: #315b4d; background: #e9f3ec; font-size: 1.5rem; }
.empty-state h3 { margin: 0 0 3px; font-size: 1rem; letter-spacing: -.02em; }
.empty-state p { margin: 0; color: var(--muted); font-size: .84rem; }

.alert-card {
  padding: 21px;
  border: 1px solid #dec576;
  border-left: 5px solid #b88720;
  border-radius: 17px;
  background: #fffdf6;
  box-shadow: 0 8px 23px rgba(102, 80, 27, .07);
}
.alert-card-spoken { border-color: #a9c8b4; border-left-color: #39745c; background: #f8fcf9; box-shadow: 0 8px 23px rgba(34, 83, 60, .06); }
.alert-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.alert-state, .source-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: .67rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.alert-state { border: 1px solid #e1c56e; color: #57420e; background: #fff5d6; }
.alert-state-symbol { display: inline-grid; width: 15px; height: 15px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: .64rem; letter-spacing: 0; }
.source-tag { border: 1px solid var(--line); color: #50675e; background: #fff; }
.source-tag-demo { border-color: #ccdcd3; color: #315646; background: #f3f8f4; }
.source-tag-example { border-color: #d8dce4; color: #535c68; background: #f6f7f9; }
.source-tag-ring { border-color: #cadbe8; color: #284e67; background: #f1f7fb; }
.alert-card h3 { margin: 13px 0 7px; font-size: 1.48rem; line-height: 1.2; letter-spacing: -.035em; }
.alert-details { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; color: #425d54; font-size: .88rem; }
.alert-detail { display: inline-flex; align-items: center; gap: 6px; }
.alert-detail svg { width: 17px; height: 17px; color: #436c59; }
.alert-card-message { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #e3d9b4; border-radius: 10px; color: #574a24; background: rgba(255,255,255,.72); font-size: .81rem; line-height: 1.45; }
.alert-card-message.message-escalated { border-color: #c8ddd1; color: #244e3d; background: #eff8f2; }
.alert-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.button svg, .text-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .75; }
.button-primary { border-color: var(--green-dark); color: #fff; background: var(--green-dark); }
.button-primary:hover:not(:disabled) { background: #0b4035; }
.button-secondary { border-color: #bdcec4; color: #20463a; background: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #739985; background: #f4f8f5; }
.button-quiet { border-color: transparent; color: #53675f; background: transparent; }
.button-danger { border-color: #9d3b34; color: #fff; background: #9d3b34; }
.button-danger:hover:not(:disabled) { background: #802f29; }
.button-compact { min-height: 39px; padding: 8px 11px; font-size: .78rem; }
.action-aware { min-width: 135px; }
.action-dismiss { border-color: transparent; color: #596b63; background: transparent; }
.action-dismiss:hover:not(:disabled) { background: #f3f4f2; }
.text-button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 8px; color: #3b6352; background: transparent; font-size: .79rem; font-weight: 750; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.text-button:hover { color: #183e32; background: #f2f7f3; text-decoration-color: currentColor; }
.action-feedback { margin: 10px 0 0; color: #425c51; font-size: .8rem; }

.simulate-box { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.simulate-copy { display: flex; align-items: flex-start; gap: 10px; }
.simulate-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #315f4d; background: #e8f3ec; }
.simulate-icon svg { width: 19px; height: 19px; }
.simulate-copy h3 { margin: 0 0 3px; font-size: .96rem; letter-spacing: -.015em; }
.simulate-copy p { margin: 0; color: var(--muted); font-size: .79rem; }
.simulate-controls { display: grid; grid-template-columns: auto minmax(130px, .8fr) minmax(190px, 1.4fr); align-items: end; gap: 8px; margin-top: 14px; }
.field-label, .form-label { display: block; margin-bottom: 5px; color: #3e5950; font-size: .73rem; font-weight: 760; }
.select-control, .text-control {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #bccdc4;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: .83rem;
}
.select-control:focus-visible, .text-control:focus-visible { border-color: var(--green); }
.simulate-controls .field-label { margin: 0 0 11px; }
.simulate-button { width: 100%; min-height: 43px; padding: 8px 11px; font-size: .77rem; white-space: nowrap; }
.simulate-button svg { width: 17px; height: 17px; }

.inbox-panel { padding-bottom: 20px; }
.badge-local { min-height: 28px; border-color: #c9dbd0; color: #2d5c48; background: #eef7f1; font-size: .68rem; }
.panel-intro { margin: 11px 0 13px; color: var(--muted); font-size: .82rem; }
.inbox-empty { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px dashed #cbd9d1; border-radius: 12px; color: #566b61; background: #fbfdfb; }
.inbox-empty p { margin: 0; font-size: .8rem; }
.inbox-empty-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #bed3c4; border-radius: 50%; color: #32674e; background: #edf7ef; font-weight: 850; }
.caregiver-feed-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.caregiver-notice { padding: 13px; border: 1px solid #d7e4da; border-radius: 13px; background: #f7fbf7; }
.caregiver-notice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.caregiver-notice-top strong { font-size: .86rem; }
.caregiver-notice p { margin: 7px 0 0; color: #4b6256; font-size: .8rem; }
.caregiver-notice .notice-meta { margin-top: 8px; color: #65776c; font-size: .72rem; }
.local-only-label { display: inline-flex; padding: 3px 7px; border: 1px solid #c5d8c9; border-radius: 999px; color: #315940; background: #edf7ee; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.history-heading-row { align-items: center; }
.history-caption { max-width: 450px; margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.clear-button { flex: 0 0 auto; color: #77564a; }
.clear-button svg { width: 16px; height: 16px; }
.clear-button:disabled { opacity: .48; cursor: not-allowed; }
.history-list { margin: 16px 0 0; padding: 0; list-style: none; }
.history-row { display: grid; grid-template-columns: 43px minmax(0, 1fr) minmax(145px, auto); align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #e8eeea; }
.history-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #dbe6df; border-radius: 13px; color: #416351; background: #f4f8f5; }
.history-icon svg { width: 20px; height: 20px; }
.history-main { min-width: 0; }
.history-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.history-title-line strong { font-size: .87rem; line-height: 1.35; }
.source-tag { min-height: 20px; padding: 2px 6px; font-size: .57rem; }
.history-main p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.history-status { justify-self: end; display: inline-flex; align-items: center; gap: 6px; max-width: 195px; color: #345b45; font-size: .73rem; font-weight: 700; line-height: 1.35; text-align: right; }
.status-symbol { flex: 0 0 18px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .65rem; }
.history-status.status-active { color: #76550d; }
.history-status.status-dismissed { color: #636c66; }
.history-status.status-escalated { color: #285a44; }
.history-empty { display: flex; gap: 12px; align-items: center; padding: 24px 12px; border-top: 1px solid #e8eeea; color: var(--muted); }
.history-empty svg { flex: 0 0 24px; width: 24px; height: 24px; color: #668174; }
.history-empty p { margin: 0; font-size: .86rem; }
.clear-confirm { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding: 14px; border: 1px solid #e7c4bd; border-radius: 13px; color: #5c322b; background: #fff7f5; }
.clear-confirm strong { font-size: .85rem; }
.clear-confirm p { margin: 4px 0 0; color: #76544e; font-size: .76rem; }
.confirm-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.history-loading { display: block; color: var(--muted); font-size: .83rem; }

.settings-panel { padding: 23px; }
.settings-title { align-items: center; margin-bottom: 18px; }
.settings-mark { flex: 0 0 41px; width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid #d9e8dd; border-radius: 13px; color: #2d664d; background: #eff7f1; }
.settings-mark svg { width: 22px; height: 22px; }
.alert-style-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.alert-style-fieldset legend { padding: 0; color: var(--ink); font-size: .91rem; font-weight: 780; }
.field-hint { margin: 5px 0 11px; color: var(--muted); font-size: .76rem; line-height: 1.48; }
.style-options { display: grid; gap: 8px; }
.style-option { position: relative; display: flex; align-items: center; min-height: 65px; padding: 9px 12px; border: 1px solid #dce7e1; border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.style-option:hover { border-color: #94b5a3; background: #fbfdfb; }
.style-option:has(input:checked) { border-color: #39745c; background: #f2f8f3; box-shadow: inset 0 0 0 1px #39745c; }
.style-option:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.style-option input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0 11px 0 0; accent-color: var(--green-dark); }
.style-option-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
.style-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #36644f; background: #eaf4ed; }
.style-icon svg { width: 19px; height: 19px; }
.style-copy { display: grid; gap: 1px; min-width: 0; }
.style-copy strong { font-size: .83rem; }
.style-copy span { color: var(--muted); font-size: .72rem; line-height: 1.3; }

.toggle-list { display: grid; }
.display-toggles { margin-top: 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 9px 0; border-top: 1px solid #e9efeb; cursor: pointer; }
.toggle-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toggle-copy strong { display: block; color: var(--ink); font-size: .83rem; }
.toggle-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.toggle-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #e0e9e3; border-radius: 10px; color: #395f4d; background: #f5f8f5; font-size: 1.05rem; font-weight: 800; }
.large-icon { position: relative; font-size: .94rem; }
.large-icon span { align-self: end; margin: 0 0 3px -1px; font-size: .64rem; }
.switch-wrap { position: relative; flex: 0 0 45px; width: 45px; height: 27px; }
.switch-wrap input { position: absolute; z-index: 2; inset: 0; width: 45px; height: 27px; margin: 0; opacity: 0; }
.switch-track { position: absolute; inset: 0; border: 1px solid #aebfb5; border-radius: 999px; background: #e7ece8; transition: background-color .16s ease, border-color .16s ease; pointer-events: none; }
.switch-track::before { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .16s ease; }
.switch-wrap input:checked + .switch-track { border-color: var(--green-dark); background: var(--green-dark); }
.switch-wrap input:checked + .switch-track::before { transform: translateX(18px); }
.switch-wrap input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 3px; }

.speech-tools { margin-top: 10px; padding: 13px; border: 1px solid #e1e9e3; border-radius: 13px; background: #f9fbf9; }
.speech-tools h3 { margin: 0; font-size: .81rem; }
.speech-tools p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.speech-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.speech-buttons .button svg { width: 16px; height: 16px; }
.speech-status:empty { display: none; }
.speech-status:not(:empty) { margin-top: 8px; padding-top: 7px; border-top: 1px solid #e2eae4; color: #315d49; }
.setting-divider { height: 1px; margin: 20px 0 18px; background: #e5ece7; }
.setting-subsection { min-width: 0; }
.subsection-heading { display: flex; align-items: flex-start; gap: 10px; }
.subsection-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #315e49; background: #eef6ef; }
.subsection-icon svg { width: 19px; height: 19px; }
.subsection-heading h3 { margin: 0; font-size: .97rem; letter-spacing: -.02em; }
.subsection-heading p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.setup-button { width: 100%; min-height: 42px; margin-top: 13px; font-size: .78rem; }
.setup-disclosure { margin-top: 12px; padding: 14px; border: 1px solid #cadbd0; border-radius: 14px; background: #f6faf6; }
.setup-disclosure h4 { margin: 0 0 6px; font-size: .87rem; }
.setup-disclosure p { margin: 7px 0; color: #4e6358; font-size: .75rem; line-height: 1.48; }
.setup-disclosure ul { margin: 7px 0 9px; padding-left: 20px; color: #385749; font-size: .74rem; }
.setup-disclosure li { margin: 3px 0; padding-left: 2px; }
.privacy-callout { padding: 9px 10px; border-left: 3px solid #5e8c6d; border-radius: 0 8px 8px 0; color: #355344 !important; background: #eaf4eb; }
.consent-row { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.4; cursor: pointer; }
.consent-row input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green-dark); }
.disclosure-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.enabled-label { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0 14px; padding: 9px 10px; border: 1px solid #cadfd0; border-radius: 9px; color: #2a563f; background: #f0f8f1; font-size: .75rem; font-weight: 690; }
.enabled-check { flex: 0 0 17px; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #6c9b76; border-radius: 50%; color: #24553b; font-size: .68rem; }
.form-label { margin-top: 11px; }
.form-label span { display: block; margin-top: 1px; color: var(--muted); font-size: .67rem; font-weight: 450; }
.caregiver-config .text-control, .caregiver-config .select-control { min-height: 41px; font-size: .79rem; }
.delay-hint { margin: 7px 0 1px; font-size: .71rem; }
.turn-off-caregiver { margin: 9px -7px 0; color: #79544c; }
.quiet-heading-row { align-items: flex-start; }
.quiet-toggle-row { margin-top: 12px; border-bottom: 1px solid #e9efeb; }
.time-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 9px; padding-top: 11px; }
.time-field { min-width: 0; }
.time-control { min-height: 40px; padding: 7px 9px; }
.time-separator { padding-bottom: 10px; color: var(--muted); font-size: .76rem; }
.quiet-explainer { margin: 9px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.48; }
.quiet-status { margin: 7px 0 0; color: #315b46; font-size: .73rem; font-weight: 700; }
.quiet-status:empty { display: none; }

.site-footer { border-top: 1px solid #dfe8e2; background: #edf2ee; }
.footer-inner { width: min(1264px, 100%); min-height: 68px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #64746c; font-size: .72rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: #30483d; font-weight: 760; white-space: nowrap; }
.footer-mark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #fff; background: #315e49; font-size: 1rem; }
.footer-inner a { color: #315e49; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* The high-contrast option deliberately uses borders and labels, not color alone. */
body.high-contrast {
  --ink: #000;
  --ink-soft: #111;
  --muted: #181818;
  --canvas: #fff;
  --paper: #fff;
  --paper-tint: #fff;
  --line: #111;
  --line-strong: #000;
  --green: #003d2b;
  --green-dark: #000;
  --green-soft: #fff;
  --green-wash: #fff;
  --focus: #bd4c00;
  --shadow: none;
}
body.high-contrast .site-header, body.high-contrast .footer-inner { color: #000; }
body.high-contrast .hero { border: 2px solid #000; color: #fff; background: #000; box-shadow: none; }
body.high-contrast .hero-description, body.high-contrast .hero-eyebrow { color: #fff; }
body.high-contrast .hero-summary-item { border-color: #fff; color: #fff; background: #000; }
body.high-contrast .panel, body.high-contrast .alert-card { border: 2px solid #000; box-shadow: none; }
body.high-contrast .alert-card { border-left-width: 6px; background: #fff; }
body.high-contrast .button-primary, body.high-contrast .button-danger { border: 2px solid #000; color: #fff; background: #000; }
body.high-contrast .button-secondary, body.high-contrast .style-option, body.high-contrast .select-control, body.high-contrast .text-control { border-color: #000; color: #000; }
body.high-contrast .style-option:has(input:checked) { box-shadow: inset 0 0 0 2px #000; background: #fffbe6; }
body.high-contrast .badge, body.high-contrast .count-pill, body.high-contrast .source-tag, body.high-contrast .alert-state { border-color: #000; color: #000; background: #fff; }
body.high-contrast .notice, body.high-contrast .storage-warning, body.high-contrast .setup-disclosure, body.high-contrast .privacy-callout, body.high-contrast .clear-confirm { border: 2px solid #000; color: #000; background: #fff; }
body.high-contrast .switch-track { border: 2px solid #000; background: #fff; }
body.high-contrast .switch-wrap input:checked + .switch-track { background: #000; }
body.high-contrast .switch-track::before { border: 1px solid #000; background: #fff; }
body.high-contrast .caregiver-notice, body.high-contrast .empty-state, body.high-contrast .inbox-empty { border: 1px solid #000; background: #fff; }
body.high-contrast .site-footer { border-top: 2px solid #000; background: #fff; }
body.high-contrast .footer-mark { border: 1px solid #000; color: #fff; background: #000; }

html.large-text { font-size: 19px; }
html.large-text .header-note, html.large-text .history-caption, html.large-text .field-hint,
html.large-text .style-copy span, html.large-text .toggle-copy small,
html.large-text .quiet-explainer, html.large-text .speech-tools p { font-size: .82rem; }
html.large-text .button { min-height: 50px; }

@media (max-width: 980px) {
  .page-shell { padding-right: 21px; padding-left: 21px; }
  .site-header { padding-right: 21px; padding-left: 21px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.12fr) minmax(315px, .88fr); gap: 16px; }
  .panel { padding: 20px; }
  .settings-panel { padding: 20px; }
  .hero { padding-left: 36px; }
  .hero-art { right: 14px; transform: scale(.88); transform-origin: center right; }
  .hero-copy { width: min(610px, 76%); }
  .simulate-controls { grid-template-columns: minmax(100px, .7fr) minmax(125px, .8fr); }
  .simulate-controls .field-label { grid-column: 1 / -1; margin: 0 0 -2px; }
  .simulate-button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 13px 18px; }
  .header-badges { gap: 6px; }
  .header-note { display: none; }
  .page-shell { padding: 5px 18px 38px; }
  .hero { min-height: 250px; padding: 32px 27px; }
  .hero-copy { width: min(570px, 88%); }
  .hero-art { right: -41px; opacity: .36; transform: scale(.78); }
  .hero h1 { font-size: clamp(2.15rem, 6vw, 2.85rem); }
  .hero-description { max-width: 440px; font-size: .94rem; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 17px; }
  .primary-column, .settings-column { gap: 17px; }
  .settings-column { grid-row: 1; }
  .settings-panel { padding: 21px; }
  .primary-column { grid-row: 2; }
  .style-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .style-option { min-height: 88px; align-items: flex-start; padding: 10px 8px; }
  .style-option input { margin: 2px 7px 0 0; }
  .style-option-body { align-items: flex-start; gap: 7px; flex-direction: column; }
  .style-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .style-icon svg { width: 17px; height: 17px; }
  .settings-panel .setting-divider { margin: 17px 0; }
  .simulate-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .simulate-controls .field-label { grid-column: 1 / -1; }
  .simulate-button { grid-column: auto; }
  .footer-inner { padding: 14px 18px; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .header-badges { margin-left: auto; }
  .brand { gap: 9px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy span { font-size: .7rem; }
  .badge-demo { min-height: 28px; padding: 4px 7px; font-size: .61rem; }
  .header-badges { padding-top: 4px; }
  .page-shell { padding-right: 13px; padding-left: 13px; }
  .hero { min-height: 278px; padding: 29px 21px; border-radius: 22px; }
  .hero-copy { width: 100%; }
  .hero-art { right: -104px; opacity: .22; }
  .hero h1 { max-width: 440px; font-size: 2.15rem; }
  .hero-description { max-width: 370px; font-size: .91rem; }
  .hero-summary { gap: 6px; }
  .hero-summary-item { min-height: 29px; padding: 5px 8px; font-size: .68rem; }
  .panel { padding: 17px; border-radius: 19px; }
  .section-heading h2 { font-size: 1.27rem; }
  .live-heading { align-items: center; }
  .count-pill { padding: 4px 8px; font-size: .65rem; }
  .empty-state { align-items: flex-start; padding: 16px 13px; }
  .empty-illustration { flex-basis: 40px; width: 40px; height: 40px; }
  .alert-card { padding: 16px; }
  .alert-card h3 { font-size: 1.3rem; }
  .alert-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .alert-actions .action-aware { grid-column: 1 / -1; }
  .alert-actions .button { width: 100%; }
  .simulate-controls { grid-template-columns: 1fr; }
  .simulate-controls .field-label { grid-column: auto; margin: 0 0 -2px; }
  .simulate-button { grid-column: auto; }
  .style-options { gap: 6px; }
  .style-option { display: block; min-height: 112px; padding: 9px 7px; }
  .style-option input { margin: 0 0 6px; }
  .style-option-body { gap: 5px; }
  .style-copy strong { font-size: .75rem; }
  .style-copy span { font-size: .65rem; }
  .history-heading-row { align-items: flex-start; }
  .history-heading-row h2 { font-size: 1.23rem; }
  .history-caption { max-width: 260px; }
  .clear-button { padding: 6px 4px; font-size: .71rem; }
  .history-row { grid-template-columns: 38px minmax(0,1fr); gap: 9px; padding: 12px 0; }
  .history-icon { width: 36px; height: 36px; }
  .history-status { grid-column: 2; justify-self: start; max-width: unset; text-align: left; font-size: .7rem; }
  .history-main p { font-size: .72rem; }
  .clear-confirm { align-items: flex-start; flex-direction: column; }
  .confirm-actions { width: 100%; justify-content: flex-end; }
  .time-range { gap: 6px; }
  .footer-inner { padding-right: 14px; padding-left: 14px; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
