:root {
  --ink: #173d35;
  --ink-2: #31584f;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --line: #e6e0d6;
  --orange: #f4b860;
  --coral: #e9826e;
  --mint: #d8e9df;
  --muted: #718079;
  --shadow: 0 16px 44px rgba(23, 61, 53, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #ddd8cf;
  font-synthesis: none;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-screen[hidden] {
  display: none;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.brand-mark.large {
  width: 52px;
  height: 52px;
  font-size: 27px;
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: 42px;
  margin-bottom: 8px;
}
.login-card > p.muted {
  margin-bottom: 28px;
}
.form-error {
  min-height: 18px;
  color: #b64232;
  font-size: 13px;
  margin: -3px 0 10px;
}
.sync-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72a78f;
  margin-right: 5px;
}
.logout-button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 14px;
  border-radius: 13px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
}
.person-photo.mini {
  width: 42px;
  height: 42px;
  font-size: 17px;
  margin: 0;
}
.person-photo.alt {
  background: #fce8c8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.app-shell {
  width: 100%;
  max-width: 520px;
  margin: auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 94px;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font:
    600 25px "Fraunces",
    serif;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--orange);
  font-size: 19px;
}
.avatar {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  font-weight: 700;
  cursor: pointer;
}
.page {
  padding: 12px 18px 24px;
}
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 34px;
  line-height: 1.06;
  margin-bottom: 10px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.hero {
  padding: 14px 4px 22px;
}
.hero p {
  line-height: 1.55;
}
.status-card {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.status-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 38px solid rgba(244, 184, 96, 0.12);
  border-radius: 50%;
  right: -92px;
  top: -80px;
}
.status-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.status-card h2 {
  margin: 14px 0 6px;
  color: #fff;
}
.status-card p {
  font-size: 14px;
  color: #d8e4df;
  margin-bottom: 20px;
}
.relay-button {
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: var(--orange);
  padding: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 2px 12px;
}
.section-head h2 {
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.summary-card,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.summary-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row:first-child {
  padding-top: 0;
}
.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.event-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-size: 18px;
}
.event-icon.orange {
  background: #fce8c8;
}
.event-icon.coral {
  background: #f8dcd5;
}
.summary-row h3 {
  margin: 1px 0 4px;
}
.summary-row p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  color: #53665f;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-actions button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 15px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.quick-actions span {
  font-size: 22px;
}
.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 82px;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 66px 1fr 1fr;
  align-items: center;
  padding: 7px 9px max(7px, env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #84918c;
  font-size: 10px;
}
.bottom-nav a.active {
  color: var(--ink);
  font-weight: 700;
}
.nav-icon {
  font-size: 22px;
  height: 27px;
}
.quick-button {
  align-self: start;
  margin-top: -23px;
  width: 58px;
  height: 58px;
  border: 5px solid var(--cream);
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 30px;
  box-shadow: 0 6px 18px rgba(233, 130, 110, 0.35);
  cursor: pointer;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 22, 0.48);
  z-index: 40;
}
.sheet {
  position: fixed;
  z-index: 41;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  padding: 8px 20px calc(26px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}
.sheet-handle {
  width: 42px;
  height: 5px;
  background: #d6d1c8;
  border-radius: 5px;
  margin: 2px auto 19px;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
}
.sheet-head h2 {
  margin-bottom: 16px;
}
.icon-button {
  border: 0;
  background: #f0ece5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.type-grid button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 11px 6px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}
.type-grid button.selected {
  border-color: var(--ink);
  background: var(--mint);
}
.type-grid span {
  font-size: 19px;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 13px;
}
select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 12px;
  outline: none;
}
textarea {
  resize: none;
}
select:focus,
input:focus,
textarea:focus {
  border-color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-label {
  justify-content: flex-end;
}
.check-label input {
  width: 18px;
  height: 18px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 22px;
}
.primary-button {
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}
.full {
  width: 100%;
}
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  white-space: nowrap;
}
.timeline {
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 10px 0;
}
.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--cream);
  box-sizing: content-box;
  margin: 4px 0 0 15px;
  z-index: 1;
}
.timeline-time {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.timeline-item h3 {
  margin-bottom: 3px;
}
.timeline-item p {
  font-size: 14px;
  color: #53665f;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 5px;
  margin-bottom: 12px;
}
.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}
.chip.active {
  background: var(--ink);
  color: #fff;
}
.task-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.task-item:last-child {
  border: 0;
}
.task-check {
  width: 23px;
  height: 23px;
  border: 2px solid #9dafaa;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.task-item.done {
  opacity: 0.55;
}
.task-item.done .task-check {
  background: var(--ink);
  color: #fff;
}
.task-item.done h3 {
  text-decoration: line-through;
}
.task-item h3 {
  margin: 1px 0 4px;
}
.task-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
}
.person-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 11px;
  background: var(--mint);
  font:
    600 28px "Fraunces",
    serif;
}
.person-card:nth-child(2) .person-photo {
  background: #fce8c8;
}
.person-card h3 {
  margin-bottom: 4px;
}
.person-card p {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 700px) {
  body {
    padding: 20px 0;
  }
  .app-shell {
    min-height: calc(100vh - 40px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(23, 61, 53, 0.15);
    overflow: hidden;
  }
  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 30px 30px;
  }
  .sheet {
    bottom: 20px;
  }
}
