:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  --background: #141a1c;
  --text: #f2f6f5;
  --raised: #283337;
  --control-border: #4e6166;
  --accent-text: #103025;
  --accent-surface: #213a32;
  --accent-pressed: #304d41;
  --danger-surface: #352526;
  --danger-text: #ffcbc6;
  --danger-border: #754b49;
  --warning-surface: #302c23;
  color: var(--text);
  background: var(--background);
  --muted: #b2c1c3;
  --line: #38484c;
  --accent: #b9efd8;
  --panel: #1e282b;
  --warn: #f7cc91;
  --card-radius: 24px;
  --card-shadow: inset 0 1px 0 #ffffff05, 0 8px 24px #00000012;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--background);
}
body {
  background: var(--background);
  color: var(--text);
  min-height: 100svh;
  margin: 0;
  min-width: 280px;
  -webkit-text-size-adjust: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
.select-control {
  position: relative;
  min-width: 0;
}
.select-control::after {
  content: "";
  position: absolute;
  right: 22px;
  top: calc(50% - 6px);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.select-control select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  min-height: 56px;
  padding: 15px 46px;
  line-height: 1.4;
  text-align: center;
  text-align-last: center;
  text-overflow: ellipsis;
  cursor: pointer;
}
.select-control select:disabled {
  opacity: 0.55;
  cursor: default;
}
.select-control.is-disabled::after {
  opacity: 0.5;
}
.select-control option {
  color: var(--text);
  background: var(--panel);
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}
p {
  line-height: 1.6;
  text-wrap: pretty;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
small,
.small {
  font-size: 0.82rem;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.shell {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  padding: calc(24px + env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  min-height: 100svh;
}
.topbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-surface);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--accent);
}
.brand-mark::before {
  width: 2px;
  height: 7px;
  left: 9px;
  top: 4px;
}
.brand-mark::after {
  width: 6px;
  height: 2px;
  left: 9px;
  top: 9px;
}
.text-button {
  justify-content: center;
  text-align: center;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 12px 0;
  min-height: 44px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-button:hover {
  color: var(--text);
}
.intro {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}
.family-name {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.family-name-form {
  padding: 0;
}
.settings-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.section-card {
  --section-accent: #a6ddc7;
  --section-tint: #243d34;
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid #4b6066;
  border-top: 3px solid var(--section-accent);
  border-radius: var(--card-radius);
  background: #1b2528;
  box-shadow: 0 10px 24px #0002;
  overflow-wrap: anywhere;
}
.section-card[data-tone="blue"] {
  --section-accent: #accedf;
  --section-tint: #293d48;
}
.section-card[data-tone="violet"] {
  --section-accent: #c6bfe3;
  --section-tint: #373344;
}
.section-card[data-tone="amber"] {
  --section-accent: var(--warn);
  --section-tint: #443b2b;
}
.category-heading {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.category-heading .section-title {
  margin: 0;
}
.section-title.category-heading {
  display: grid;
  gap: 8px;
}
.category-label {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 30%, transparent);
  border-radius: 999px;
  color: var(--section-accent);
  background: var(--section-tint);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-hero {
  padding: 28px 20px;
  border: 1px solid #49655b;
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, #233a32, #1b2528);
  box-shadow: var(--card-shadow);
}
.section-card .task-row,
.section-card .member-card,
.section-card .empty {
  background: #263337;
  border-color: #4b6066;
  border-radius: 18px;
}
.section-card .attention {
  border-color: #90764f;
}
.section-card .empty {
  padding: 24px 16px;
}
.section-card .member-card {
  padding: 24px 16px;
}
.section-card > form > .field:first-child {
  margin-top: 0;
}
.form-section {
  margin-bottom: 24px;
}
.form-section > .field:last-child,
.form-section > .day-picker:last-child {
  margin-bottom: 0;
}
.task-options {
  border-color: #4b6066;
  border-top: 3px solid #c6bfe3;
}
.add-member {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #4b6066;
}
.add-member form {
  margin-top: 20px;
}
.section-card.coordinator-card {
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid #4b6066;
  border-top: 3px solid var(--section-accent);
  border-radius: var(--card-radius);
}
.coordinator-card .category-heading {
  margin-bottom: 0;
}
.health-banner {
  display: grid;
  gap: 10px;
}
.health-banner .text-button {
  margin: 0;
  color: var(--warn);
}
.health-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid #49695b;
  border-radius: 18px;
  background: var(--accent-surface);
}
.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.health-state.needs-check {
  border-color: #79664b;
  background: var(--warning-surface);
}
.needs-check .health-dot {
  background: var(--warn);
}
.delivery-issues {
  display: grid;
  gap: 16px;
}
.delivery-issue {
  display: grid;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid #79664b;
  border-radius: 18px;
  background: var(--warning-surface);
}
.delivery-issue.historical {
  border-color: var(--line);
  background: var(--background);
}
.delivery-history {
  margin: 20px 0 0;
}
.delivery-history .delivery-issues {
  margin-top: 18px;
}
#reminder-health {
  scroll-margin-top: 24px;
}
#reminder-health:focus {
  outline: none;
}
.member-list {
  display: grid;
  gap: 24px;
}
.member-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}
.member-card h3 {
  font-size: 1.3rem;
}
.member-now {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.member-task {
  font-weight: 600;
}
.member-facts {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.member-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.member-facts dd {
  margin: 5px 0 0;
  font-size: 0.95rem;
}
.member-card .actions {
  margin-top: 22px;
}
.setup-guide {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.setup-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.setup-card p {
  color: var(--muted);
}
.setup-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.setup-guide h1:focus {
  outline: none;
}
.section {
  margin-top: 36px;
}
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  gap: 12px;
}
.list {
  display: grid;
  gap: 14px;
}
.task-row {
  display: block;
  text-align: center;
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px 20px;
  overflow-wrap: anywhere;
}
.task-row .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.task-row h3 {
  font-size: 1.12rem;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.status {
  font-size: 0.84rem;
  color: var(--accent);
  line-height: 1.5;
}
.attention {
  border-color: #79664b;
}
.attention .status {
  color: var(--warn);
}
.pill {
  display: inline-block;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--muted);
}
.primary,
.secondary,
.danger {
  border: 0;
  min-height: 56px;
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.3;
  text-align: center;
}
.primary {
  color: var(--accent-text);
  background: var(--accent);
}
.secondary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--control-border);
}
.danger {
  background: var(--danger-surface);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.plan-action {
  margin: 24px 0;
}
.empty {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  padding: 28px 22px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}
.empty h2 {
  color: var(--text);
}
.quiet-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 16px;
}
.notice {
  padding: 20px;
  border: 1px solid #66563e;
  border-radius: 20px;
  background: var(--warning-surface);
  color: var(--warn);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 20px;
}
.notice.soft {
  border-color: #49695b;
  background: var(--accent-surface);
  color: var(--accent);
}
.notice.error {
  border-color: var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}
.notice button {
  margin-top: 12px;
}
.field {
  display: grid;
  gap: 9px;
  margin: 24px 0;
}
.field label,
.label {
  font-size: 0.9rem;
  font-weight: 550;
}
input,
textarea,
select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--control-border);
  border-radius: 16px;
  color: var(--text);
  min-height: 54px;
  padding: 13px 14px;
  max-width: 100%;
  min-width: 0;
  color-scheme: dark;
  text-align: center;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 23px;
  height: 23px;
  min-height: 23px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
input[type="date"],
input[type="time"] {
  appearance: none;
  min-width: 0;
}
label.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 0.9rem;
  margin: 8px 0;
  justify-content: center;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.two > * {
  min-width: 0;
}
.two .field {
  margin: 12px 0;
}
.details {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  margin: 26px 0;
  padding: 16px;
}
.details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  font-size: 0.95rem;
}
.details summary:after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--muted);
}
.details[open] summary:after {
  content: "−";
}
.details summary::-webkit-details-marker {
  display: none;
}
.step-edit {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step-edit .field {
  margin: 10px 0;
}
.step-title {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.days {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.day-picker {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
.day-picker[hidden] {
  display: none;
}
.day-picker legend {
  font-size: 0.9rem;
  font-weight: 550;
  margin: 0 auto 12px;
}
.day-toggle {
  flex: 0 1 calc((100% - 24px) / 4);
  min-width: max(56px, 4.1em);
  min-height: 54px;
  padding: 12px 5px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.day-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.day-tick {
  visibility: hidden;
}
.day-toggle[aria-pressed="true"] .day-tick {
  visibility: visible;
}
.right-now .topbar {
  margin-bottom: 24px;
}
.recipient-heading {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.instruction {
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}
.countdown {
  margin: 24px 0 20px;
}
.countdown-number {
  font-variant-numeric: tabular-nums;
  font-size: 5.2rem;
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 600;
}
.countdown-label {
  color: var(--muted);
  margin-top: 9px;
  font-size: 0.9rem;
}
.track {
  height: 4px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin-top: 22px;
}
.track progress {
  width: 100%;
  height: 4px;
  display: block;
  appearance: none;
  border: 0;
  background: var(--line);
}
.track progress::-webkit-progress-bar {
  background: var(--line);
}
.track progress::-webkit-progress-value {
  background: var(--accent);
}
.track progress::-moz-progress-bar {
  background: var(--accent);
}
.right-now .actions {
  margin-top: 28px;
}
.help-toggle {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  min-height: 48px;
}
.help-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.help-panel h2 {
  font-size: 1.05rem;
}
.success-mark {
  border: 1px solid #456858;
  border-radius: 100px;
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  color: var(--accent);
  font-size: 2rem;
  margin: 0 auto 24px;
  animation: arrive 0.35s ease-out;
}
.saved {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.fact span:first-child {
  color: var(--muted);
}
.fact span:last-child {
  text-align: center;
}
.delivery {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.5;
}
.linkbox {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  margin: 16px 0;
}
.ai-attribution {
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.coordinator-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.coordinator-screen .topbar {
  gap: 8px;
  margin-bottom: 24px;
}
.coordinator-layout,
.coordinator-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.coordinator-intro,
.coordinator-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
.coordinator-intro p:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}
.coordinator-intro h1 {
  font-size: 2rem;
}
.coordinator-setup {
  gap: 16px;
}
.coordinator-status {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.coordinator-status h2 {
  color: var(--accent);
  font-size: 0.95rem;
}
.coordinator-status p {
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.coordinator-layout .quiet-note,
.coordinator-layout .field {
  margin: 0;
}
.coordinator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.coordinator-steps button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px 6px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.coordinator-steps button[aria-current="step"] {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: var(--accent);
}
.coordinator-steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
}
.coordinator-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.coordinator-panel p,
.coordinator-disclosure p {
  font-size: 0.88rem;
  color: var(--muted);
}
.coordinator-panel .eyebrow {
  font-size: 0.72rem;
}
.coordinator-panel .quiet-note {
  font-size: 0.78rem;
}
.coordinator-panel strong {
  color: var(--text);
  font-weight: 550;
}
.coordinator-panel h2:focus {
  outline: none;
}
.coordinator-destination,
.coordinator-example {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.coordinator-destination span {
  font-size: 0.78rem;
}
.coordinator-key {
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 14px;
}
.coordinator-separator {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
.coordinator-disclosure {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #4b6066;
  border-radius: 20px;
  background: var(--panel);
}
.coordinator-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  line-height: 1.4;
  font-size: 0.88rem;
}
.coordinator-disclosure[open] summary {
  margin-bottom: 16px;
}
.coordinator-disclosure summary::-webkit-details-marker {
  display: none;
}
.coordinator-disclosure summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.coordinator-disclosure[open] summary::after {
  content: "−";
}
.coordinator-disclosure textarea {
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.6;
}
.coordinator-disclosure > p + button {
  margin-top: 12px;
}
.coordinator-result {
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-surface);
  color: var(--accent) !important;
}
.coordinator-reminder {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.coordinator-reminder p {
  font-size: 0.82rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
#feedback:not(:empty) {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 540px;
  margin: auto;
  background: var(--accent-surface);
  border: 1px solid #456858;
  color: var(--text);
  border-radius: 14px;
  padding: 16px 20px;
  z-index: 10;
  box-shadow: 0 8px 35px #0009;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--background);
  padding: 16px;
}
.skip:focus {
  top: 10px;
}
.sign-in {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  padding-top: clamp(12px, 5svh, 48px);
  text-align: center;
}
.sign-in h1 {
  font-size: 2.6rem;
  margin: 32px 0 16px;
}
.sign-in .brand {
  font-size: 1.3rem;
}
.sign-in .primary {
  margin-top: 26px;
}

.pin-sign-in h1 {
  font-size: 2.2rem;
  margin: 24px 0;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 14px;
}
.pin-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--muted);
}
.pin-dots span.filled {
  background: var(--accent);
  border-color: var(--accent);
}
.pin-status {
  min-height: 1.5em;
  font-size: 0.85rem;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 300px;
  margin: 20px auto 24px;
}
.pin-key {
  min-width: 0;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 500;
}
.pin-key:active {
  background: var(--accent-pressed);
}
.pin-edit {
  font-size: 0.9rem;
  color: var(--muted);
}
.offline-banner {
  color: var(--warn);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.date-filter input {
  width: 170px;
  min-height: 44px;
  font-size: 0.8rem;
}
.link-button {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  text-align: center;
}
.quiet-state {
  padding-top: 30px;
}
.quiet-state h1 {
  margin: 20px 0 16px;
}
.quiet-state p {
  color: var(--muted);
}
@keyframes arrive {
  from {
    transform: scale(0.92);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 360px) {
  .shell {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .instruction {
    font-size: 2.1rem;
  }
  .countdown-number {
    font-size: 4.7rem;
  }
  .two,
  .facts {
    grid-template-columns: 1fr;
  }
  .topbar {
    margin-bottom: 26px;
  }
}
@media (min-width: 700px) {
  .shell {
    padding-top: 44px;
  }

  .instruction {
    font-size: 2.8rem;
  }
  .countdown {
    margin-top: 40px;
  }
  .countdown-number {
    font-size: 6rem;
  }
}

.topbar,
.recipient-heading {
  flex-wrap: wrap;
}
.countdown-number {
  font-size: min(5.2rem, 22vw);
}
.save-confirmation {
  margin: 0;
  text-align: center;
  min-height: 24px;
}

/* Native controls and autofill use the same palette on every route. */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:autofill {
  background: var(--panel);
  color: var(--text);
}
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
  caret-color: var(--text);
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  text-align: center;
  margin-inline: auto;
  width: 100%;
}
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
  text-align: center;
  width: 100%;
  padding: 0;
}
option {
  background: var(--panel);
  color: var(--text);
}
::selection {
  background: var(--accent);
  color: var(--accent-text);
}
noscript {
  display: block;
  max-width: 600px;
  padding: 24px;
  margin-inline: auto;
  text-align: center;
}
/* Private local setup pages load this stylesheet too. */
.setup-screen {
  max-width: 440px;
}
.setup-screen h1 {
  margin: 28px 0 16px;
}
.setup-screen p {
  color: var(--muted);
}
.setup-screen label {
  display: block;
  margin: 24px 0 9px;
}
.setup-screen button,
.setup-screen a.button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.setup-screen .badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-surface);
  font-size: 0.8rem;
}
.setup-screen .note {
  margin-top: 20px;
  font-size: 0.8rem;
}
.setup-screen .dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 24px 0;
}
.setup-screen .dots span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.setup-screen .dots .filled {
  background: var(--accent);
  border-color: var(--accent);
}
.setup-screen .keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 300px;
  margin: 20px auto 24px;
}
.setup-screen .keypad button {
  margin: 0;
  min-height: 64px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 1.65rem;
}
.setup-screen .keypad button:active {
  background: var(--accent-pressed);
}
.setup-screen .keypad .edit {
  font-size: 0.9rem;
  color: var(--muted);
}

/* A single primary connection, with optional tools kept below it. */
.chatgpt-card {
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid #4b6066;
  border-top: 3px solid #c6bfe3;
  border-radius: var(--card-radius);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}
.chatgpt-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.chatgpt-heading h2,
.chatgpt-heading p {
  margin: 0;
}
.chatgpt-heading > div {
  display: grid;
  gap: 6px;
}
.chatgpt-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-surface);
  color: var(--accent);
  font-size: 32px;
}
.chatgpt-simple {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.oauth-screen {
  text-align: center;
  width: min(100% - 40px, 440px);
  margin: 60px auto;
}
.oauth-screen h1 {
  font-size: 2rem;
  line-height: 1.15;
}
.oauth-screen #oauth-pin {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}
[hidden] {
  display: none !important;
}
