@font-face {
  font-family: "Manrope Variable";
  src: url("manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cream: #fbf6ec;
  --paper: #fffcf7;
  --ink: #063f43;
  --muted: #5e6f70;
  --line: #d9e1db;
  --coral: #ff5a45;
  --coral-dark: #c93628;
  --coral-soft: #ffe4de;
  --mint: #ddf5ee;
  --teal: #0a776e;
  --teal-soft: #ddf5ee;
  --blue: #dfedfa;
  --blue-dark: #356f99;
  --yellow: #ffb21c;
  --yellow-dark: #805200;
  --amber: #d68c16;
  --amber-soft: #fff2cf;
  --shadow: 0 28px 90px rgba(6, 63, 67, 0.17);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope Variable", Manrope, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(42, 117, 107, 0.35);
  outline-offset: 2px;
}

.prototype-shell {
  width: min(1050px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(260px, 390px) 420px;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 100px);
}

.prototype-notes {
  max-width: 390px;
}

.note-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.note-brand-logo {
  width: 210px;
  height: auto;
  display: block;
}

.prototype-notes h1 {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.prototype-notes > p:not(.eyebrow) {
  margin: 24px 0;
  color: #465c56;
  font-size: 17px;
  line-height: 1.6;
}

.prototype-notes ol {
  margin: 28px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.prototype-notes li {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3d544e;
  font-weight: 700;
}

.prototype-notes li::before {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  counter-increment: steps;
  content: counter(steps);
  font-size: 12px;
  font-weight: 900;
}

.phone {
  position: relative;
  width: 420px;
  height: min(860px, calc(100vh - 48px));
  min-height: 680px;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 48px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.phone::before {
  position: absolute;
  z-index: 20;
  top: 9px;
  left: 50%;
  width: 108px;
  height: 27px;
  border-radius: 99px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  position: absolute;
  z-index: 21;
  top: 12px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
}

.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

.prototype-banner {
  position: absolute;
  z-index: 14;
  top: 42px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-banner button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.screen {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 76px 22px 34px;
  background: var(--paper);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
  animation: screen-in 180ms ease-out;
}

.screen.app-screen {
  padding-top: 108px;
  padding-bottom: 105px;
}

.screen h1[tabindex="-1"]:focus,
.screen h2[tabindex="-1"]:focus {
  outline: 0 !important;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.onboarding {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding-top: 92px;
  background:
    radial-gradient(circle at 110% 0%, var(--mint) 0 28%, transparent 29%),
    var(--paper);
}

.onboarding.active {
  display: flex;
}

.welcome-logo {
  width: 54px;
  height: 54px;
  display: block;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.screen-intro {
  margin: 14px 0 0;
  color: #536861;
  font-size: 14px;
  line-height: 1.55;
}

.welcome-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(23, 48, 43, 0.08);
}

.welcome-preview > div {
  padding: 10px;
  border-radius: 11px;
  background: var(--coral-soft);
}

.welcome-preview > div.resolved {
  background: var(--teal-soft);
}

.welcome-preview span,
.welcome-preview strong {
  display: block;
}

.welcome-preview span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.welcome-preview strong {
  font-size: 11px;
  line-height: 1.25;
}

.welcome-preview i {
  font-style: normal;
  font-weight: 900;
}

.screen-actions {
  display: grid;
  gap: 10px;
}

.button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 140ms ease, background 140ms ease;
}

.button:active {
  transform: scale(0.985);
}

.button.primary {
  border: 1px solid var(--coral-dark);
  background: var(--coral);
  box-shadow: 0 6px 0 rgba(181, 72, 51, 0.16);
}

.button.secondary {
  border: 1.5px solid var(--ink);
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.privacy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.screen-header {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr 64px;
  align-items: center;
  margin: -12px 0 24px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.screen-header > :last-child {
  justify-self: end;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
  line-height: 1;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  background: transparent;
  color: var(--teal);
  font-weight: 900;
}

.text-button.small {
  font-size: 10px;
}

.progress {
  height: 4px;
  margin: -16px 0 34px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8e8e2;
}

.progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--teal);
}

.screen-copy {
  margin-bottom: 28px;
}

.screen-copy.compact {
  margin-bottom: 20px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-stack label,
.select-label,
.dialog label {
  display: grid;
  gap: 7px;
  color: #3d544e;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd7d1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.choice-list {
  display: grid;
  gap: 11px;
}

.choice-card {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: #fff;
  text-align: left;
}

.choice-card.featured {
  border-color: #a8c7bb;
  background: var(--teal-soft);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.choice-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.choice-card i {
  font-size: 22px;
  font-style: normal;
}

.choice-action {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
}

.choice-icon,
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.choice-icon.blue,
.avatar.blue { background: var(--blue); }
.choice-icon.coral { background: var(--coral-soft); }
.choice-icon.teal { background: var(--mint); }
.avatar.mint { background: var(--mint); }
.avatar.yellow { background: var(--yellow); }
.avatar.neutral { background: #e7e9e5; }

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.context-copy {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.calendar-period {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.period-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 23px;
  font-weight: 800;
}

.period-title {
  min-height: 44px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 0;
  background: none;
}

.period-title strong {
  font-size: 13px;
}

.period-title small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: 11px;
  padding: 4px;
  background: #e9eae6;
}

.view-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.view-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(23, 48, 43, 0.08);
}

.member-filters {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 13px;
}

.member-filters button {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.member-filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter-dot,
.legend-dot,
.month-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--mint);
}

.filter-dot.blue { background: var(--blue); }
.filter-dot.yellow { background: var(--yellow); }
.legend-dot.coral,
.month-dot.coral { background: var(--coral); }
.legend-dot.amber,
.month-dot.amber { background: var(--amber); }
.legend-dot.teal,
.month-dot.teal { background: var(--teal); }

.calendar-key {
  display: grid;
  gap: 5px;
  margin: -4px 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  background: #fff;
}

.calendar-key > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.calendar-key > div > strong {
  width: 46px;
  color: var(--ink);
  font-size: 8px;
}

.calendar-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.key-line {
  width: 12px;
  height: 4px;
  border-radius: 99px;
  background: var(--teal);
}

.key-line.dani { background: var(--blue-dark); }
.key-line.leo { background: #c29413; }

.key-state {
  width: 9px;
  height: 9px;
  border: 2px solid var(--teal);
  border-radius: 3px;
  background: var(--mint);
}

.key-state.pending { border-color: #9b6100; background: var(--amber-soft); }
.key-state.conflict { border-color: var(--coral-dark); background: var(--coral-soft); }

.topbar p,
.topbar h2 {
  margin: 0;
}

.topbar p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.topbar h2 {
  font-size: 27px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--mint);
  font-size: 11px;
  font-weight: 900;
}

.avatars span:last-child {
  background: var(--blue);
}

.sync-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
}

.sync-line button {
  margin-left: auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: none;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b9977;
}

.week-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.week-picker button {
  min-width: 0;
  min-height: 66px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 6px 2px;
  background: #fff;
}

.week-picker button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.week-picker small {
  font-size: 9px;
}

.week-picker strong {
  font-size: 13px;
}

.day-status {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.day-status.covered { background: var(--mint); color: var(--teal); }
.day-status.pending { background: var(--amber-soft); color: #7a4a00; }
.day-status.critical { background: var(--coral); color: var(--ink); }
.day-status.neutral { background: #e8e9e5; color: var(--muted); }

.summary-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  padding: 12px;
}

.summary-card.warning {
  border: 1px solid #efb5a8;
  background: var(--coral-soft);
}

.summary-card.pending {
  border: 1px solid #e4c06e;
  background: var(--amber-soft);
}

.summary-card.resolved {
  border: 1px solid #b5d8c8;
  background: var(--teal-soft);
}

.summary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 900;
}

.summary-card.resolved .summary-icon {
  background: var(--mint);
  color: var(--teal);
  font-size: 13px;
}

.summary-card.pending .summary-icon {
  background: var(--yellow);
  color: #6f4800;
}

.view-explanation {
  margin: -3px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.family-day-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  border-radius: 10px;
  padding: 4px;
  background: #eceee9;
}

.family-day-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.family-day-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(23, 48, 43, 0.08);
}

.family-day-grid {
  position: relative;
  min-height: calc(var(--family-height) + 34px);
  display: grid;
  grid-template-columns: 38px 1fr;
  margin-bottom: 8px;
}

.family-grid-scale {
  position: relative;
  height: var(--family-height);
  margin-top: 34px;
}

.family-grid-hour {
  position: absolute;
  top: var(--family-top);
  right: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  transform: translateY(-50%);
}

.family-grid-line {
  position: absolute;
  z-index: 0;
  top: var(--family-top);
  right: 0;
  left: 0;
  height: 1px;
  background: #e6e9e3;
}

.family-grid-lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  height: calc(var(--family-height) + 34px);
}

.family-member-lane {
  min-width: 0;
}

.family-member-lane header {
  position: sticky;
  z-index: 4;
  top: -1px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 4px solid var(--teal);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 253, 248, 0.96);
  font-size: 8px;
}

.family-member-lane.dani header { border-top-color: var(--blue-dark); }
.family-member-lane.leo header { border-top-color: #c29413; }

.family-member-lane header span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-size: 7px;
  font-weight: 900;
}

.family-member-lane.dani header span { background: #e4eef6; color: #244f6d; }
.family-member-lane.leo header span { background: #fff0ae; color: #674a00; }

.family-member-track {
  position: relative;
  height: var(--family-height);
  border-right: 1px solid #edf0ea;
  border-left: 1px solid #edf0ea;
}

.family-member-track > p {
  margin: 18px 4px;
  color: var(--muted);
  font-size: 7px;
  text-align: center;
}

.family-lane-event {
  position: absolute;
  z-index: 2;
  top: var(--family-top);
  right: 2px;
  left: 2px;
  min-height: 30px;
  height: var(--family-height);
  overflow: hidden;
  border: 1px solid #9fc8b8;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  padding: 5px 5px;
  background: #edf7f2;
  color: var(--ink);
  text-align: left;
}

button.family-lane-event {
  width: auto;
  cursor: pointer;
}

.family-lane-event.blue { border-color: #a9c7dc; border-left-color: var(--blue-dark); background: #edf4f9; }
.family-lane-event.yellow { border-color: #dbc36f; border-left-color: #a67b08; background: #fff8d9; }
.family-lane-event.amber { border-color: #d5a94a; border-left-color: #8b5700; background: var(--amber-soft); }
.family-lane-event.coral { border-color: #e39a89; border-left-color: var(--coral-dark); background: var(--coral-soft); }

.family-lane-event span,
.family-lane-event strong,
.family-lane-event em {
  display: block;
}

.family-lane-event span { color: #405852; font-size: 7px; font-weight: 900; }
.family-lane-event strong { margin-top: 2px; font-size: 8.2px; line-height: 1.12; }
.family-lane-event em { margin-top: 3px; color: var(--teal); font-size: 7px; font-style: normal; font-weight: 900; }

.event-edit {
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
}

.calendar-empty {
  border: 1px dashed var(--line);
  border-radius: 13px;
  padding: 18px;
  text-align: center;
}

.calendar-empty strong { font-size: 12px; }
.calendar-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.summary-card span,
.summary-card strong,
.summary-card small {
  display: block;
}

.summary-card span,
.summary-card small {
  font-size: 9px;
}

.summary-card strong {
  margin: 2px 0;
  font-size: 13px;
}

.summary-card button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  background: none;
  font-size: 10px;
  font-weight: 900;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 12px;
}

.section-row h3,
.section-row span {
  margin: 0;
}

.section-row h3 {
  font-size: 14px;
}

.section-row span {
  color: var(--muted);
  font-size: 10px;
}

.timeline {
  display: grid;
}

.timeline-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px 4px 1fr;
  gap: 12px;
}

.timeline-item time {
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.timeline-item .line {
  height: calc(100% - 8px);
  min-height: 58px;
  border-radius: 99px;
  background: var(--teal);
}

.timeline-item .line.coral { background: var(--coral); }
.timeline-item .line.yellow { background: var(--yellow); }
.timeline-item .line.blue { background: #7faccb; }
.timeline-item .line.amber { background: var(--amber); }

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item strong {
  margin: 5px 0 3px;
  font-size: 13px;
}

.timeline-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tag {
  display: inline-block;
  border-radius: 99px;
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag.teal { background: var(--mint); color: var(--teal); }
.tag.coral { background: var(--coral-soft); color: var(--coral-dark); }
.tag.yellow { background: #fff4c7; color: #7a5a00; }
.tag.blue { background: #e6f0f7; color: #316886; }
.tag.amber { background: var(--amber-soft); color: #754800; }

.month-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 8px;
}

.month-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.month-grid > span {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.month-grid button {
  position: relative;
  min-width: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.month-grid button.outside {
  color: #b6bdb8;
}

.month-grid button.selected {
  border-color: var(--ink);
  background: var(--teal-soft);
}

.month-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
}

.month-summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid #efb5a8;
  border-radius: 14px;
  padding: 11px;
  background: var(--coral-soft);
}

.month-summary > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 900;
}

.month-summary strong,
.month-summary small { display: block; }
.month-summary strong { font-size: 11px; }
.month-summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.month-summary button { min-height: 44px; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 9px; font-weight: 900; }

.month-summary.resolved {
  border-color: #b5d8c8;
  background: var(--teal-soft);
}

.month-summary.resolved > span {
  background: var(--mint);
  color: var(--teal);
}

.add-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px auto 0;
  border: 0;
  border-radius: 99px;
  padding: 8px 18px 8px 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 48, 43, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.add-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 19px;
}

.bottom-nav {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  height: 78px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 4px 10px 10px;
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(14px);
}

.bottom-nav.visible {
  display: grid;
}

.bottom-nav button {
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.bottom-nav button span {
  min-height: 18px;
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.12em;
}

.bottom-nav button.active {
  color: var(--teal);
}

.info-card,
.person-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.family-person-card {
  align-items: start;
  padding: 14px 0;
}

.person-actions {
  display: grid;
  gap: 3px;
}

.person-actions button {
  min-width: 78px;
  min-height: 34px;
  border-bottom: 0;
  border-radius: 9px;
  padding: 6px 9px;
  background: var(--teal-soft);
}

.person-actions button + button {
  background: transparent;
  color: var(--muted);
}

.member-overview-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.member-overview-card strong,
.member-overview-card small,
.member-overview-card em {
  display: block;
}

.member-overview-card strong { font-size: 13px; }
.member-overview-card small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.member-overview-card em { margin-top: 5px; color: var(--teal); font-size: 9px; font-style: normal; font-weight: 800; }

.member-overview-card button {
  max-width: 88px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  background: none;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
}

.info-card strong,
.info-card small,
.person-row strong,
.person-row small {
  display: block;
}

.info-card strong,
.person-row strong { font-size: 13px; }
.info-card small,
.person-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.info-card button,
.person-row button {
  max-width: 92px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  background: none;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.premium-badge,
.free-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 4px 7px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 7px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.free-badge {
  background: var(--mint);
  color: var(--teal);
}

.premium-badge.inline {
  margin-right: 6px;
  vertical-align: middle;
}

.member-profile-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.member-profile-head .avatar {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.member-profile-head .eyebrow {
  margin-bottom: 4px;
}

.personal-calendar {
  margin: 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 48, 43, 0.06);
}

.compact-period {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 9px;
}

.compact-period .period-button {
  width: 40px;
  height: 40px;
}

.compact-period .period-title {
  min-height: 40px;
}

.personal-week-list {
  display: grid;
  gap: 5px;
}

.personal-week-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}

.personal-week-picker button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 1px;
  background: #fff;
}

.personal-week-picker button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.personal-week-picker small { color: inherit; font-size: 8px; font-weight: 900; }
.personal-week-picker strong { font-size: 12px; }
.personal-week-picker span { color: inherit; font-size: 8px; font-weight: 800; opacity: 0.8; }

.personal-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px;
}

.personal-day-heading strong,
.personal-day-heading small {
  display: block;
}

.personal-day-heading strong { font-size: 13px; }
.personal-day-heading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.personal-day-heading > span { border-radius: 99px; padding: 5px 8px; background: var(--teal-soft); color: var(--teal); font-size: 8px; font-weight: 900; }

.personal-day-agenda {
  position: relative;
  min-height: var(--agenda-height);
  display: grid;
  grid-template-columns: 43px 1fr;
}

.agenda-scale,
.agenda-track {
  position: relative;
  height: var(--agenda-height);
}

.agenda-hour {
  position: absolute;
  top: var(--agenda-top);
  right: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  transform: translateY(-50%);
}

.agenda-grid-line {
  position: absolute;
  top: var(--agenda-top);
  right: 0;
  left: 0;
  height: 1px;
  background: #e8ebe6;
}

.agenda-event {
  position: absolute;
  z-index: 1;
  top: var(--agenda-top);
  right: 0;
  left: 0;
  min-height: 48px;
  height: var(--agenda-height);
  overflow: hidden;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  padding: 7px 9px;
  background: var(--teal-soft);
  color: var(--ink);
  text-align: left;
}

button.agenda-event {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}

.agenda-event.blue { border-left-color: #5b91b5; background: #eaf2f8; }
.agenda-event.yellow { border-left-color: #c29413; background: #fff7d8; }
.agenda-event.coral { border-left-color: var(--coral); background: var(--coral-soft); }
.agenda-event.amber { border-left-color: var(--amber); background: var(--amber-soft); }
.agenda-event span,
.agenda-event strong,
.agenda-event small,
.agenda-event em { display: block; }
.agenda-event span { color: var(--muted); font-size: 8px; font-weight: 900; }
.agenda-event strong { margin-top: 3px; font-size: 10px; line-height: 1.2; }
.agenda-event small { margin-top: 2px; color: #536861; font-size: 8px; line-height: 1.25; }
.agenda-event em { margin-top: 4px; color: var(--teal); font-size: 8px; font-style: normal; font-weight: 900; }

.agenda-empty {
  position: absolute;
  top: 42px;
  right: 0;
  left: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.agenda-empty strong,
.agenda-empty small { display: block; }
.agenda-empty strong { font-size: 10px; }
.agenda-empty small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.personal-agenda-note {
  margin: 12px 0 0;
  border-radius: 10px;
  padding: 10px;
  background: #f2f3ef;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.personal-day-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 7px;
  background: #f6f7f3;
  text-align: left;
}

.personal-day-row.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.personal-day-date {
  display: grid;
  place-items: center;
}

.personal-day-date small { color: var(--muted); font-size: 8px; font-weight: 900; }
.personal-day-date strong { font-size: 15px; }

.personal-day-events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.personal-day-events span {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-day-events b { color: var(--teal); font-size: 8px; }
.personal-day-events .empty-day { color: var(--muted); }

.personal-day-status {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.personal-day-status.covered { background: var(--mint); color: var(--teal); }
.personal-day-status.pending { background: var(--coral); color: var(--ink); }
.personal-day-status.neutral { background: #e8e9e5; color: var(--muted); }

.personal-month-grid {
  gap: 3px;
}

.personal-month-grid button {
  min-height: 36px;
}

.personal-month-note {
  margin: 12px 0 0;
  border-radius: 10px;
  padding: 10px;
  background: var(--teal-soft);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.sub-section-label {
  margin-top: 17px;
}

.member-actions {
  margin-bottom: 3px;
}

.source-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.source-card > div {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 8px;
}

.source-card strong,
.source-card small {
  grid-column: 2;
  display: block;
}

.source-card strong { font-size: 12px; }
.source-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.source-card button { min-height: 44px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--teal); font-size: 9px; font-weight: 900; }

.source-color {
  grid-row: 1 / span 2;
  width: 7px;
  height: 38px;
  border-radius: 99px;
  background: var(--teal);
}

.source-color.yellow { background: var(--yellow); }
.source-color.blue { background: #7faccb; }
.source-color.coral { background: var(--coral); }

.member-panel .button {
  margin-top: 13px;
}

.person-row > span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.section-label {
  margin: 22px 0 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.two-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-action {
  min-height: 114px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  text-align: left;
}

.mini-action > span { font-size: 22px; }
.mini-action strong { font-size: 13px; }
.mini-action small { color: var(--muted); font-size: 10px; }

.quiet-card {
  margin-top: 18px;
  border-radius: 14px;
  padding: 15px;
  background: var(--teal-soft);
}

.quiet-card strong { font-size: 12px; }
.quiet-card p { margin: 6px 0 0; color: #526860; font-size: 10px; line-height: 1.45; }

.full { margin-top: 22px; }

.menu-list {
  display: grid;
}

.menu-list button {
  min-height: 69px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  background: none;
  text-align: left;
}

.menu-list strong,
.menu-list small { display: block; }
.menu-list strong { font-size: 13px; }
.menu-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.menu-list .menu-action {
  border-bottom: 1px solid currentColor;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.source-grid button {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px;
  background: #fff;
}

.source-grid span { font-size: 17px; font-weight: 900; }
.source-grid strong { font-size: 10px; }

.file-state {
  min-height: 60px;
  display: grid;
  align-content: center;
  gap: 3px;
  margin-bottom: 14px;
  border: 1px dashed #aab9b1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.file-state strong { font-size: 11px; }
.file-state small { color: var(--muted); font-size: 9px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.center-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center-state h2 { max-width: 300px; }
.center-state > p:not(.eyebrow) { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.center-state small { max-width: 280px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.spinner {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 5px solid var(--mint);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.shift-list {
  display: grid;
  gap: 9px;
}

.shift-list article {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 22px;
  align-items: end;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.shift-list article.uncertain {
  border-color: #e0a596;
  background: #fff7f4;
}

.shift-list article > span { align-self: center; font-size: 11px; font-weight: 900; }
.shift-list label { display: grid; gap: 3px; color: var(--muted); font-size: 8px; font-weight: 800; }
.shift-list input { min-height: 36px; padding: 6px; font-size: 11px; }
.status-check,
.status-warning { align-self: center; font-style: normal; font-weight: 900; }
.status-check { color: var(--teal); }
.status-warning { color: var(--coral-dark); }

.review-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  margin: 17px 0;
  color: #3d544e;
  font-size: 11px;
  font-weight: 800;
}

.review-check input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

fieldset legend {
  margin-bottom: 7px;
  color: #3d544e;
  font-size: 12px;
  font-weight: 800;
}

.weekday-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.weekday-options label {
  min-width: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
}

.weekday-options input {
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.weekday-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--mint);
}

.toggle-row {
  grid-template-columns: 1fr auto !important;
  align-items: center;
  border-radius: 12px;
  padding: 11px;
  background: var(--teal-soft);
}

.toggle-row strong,
.toggle-row small { display: block; }
.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.toggle-row input { width: 38px; min-height: 22px; accent-color: var(--teal); }
.toggle-row:has(input:disabled) { background: #f0f1ed; color: var(--muted); }

.responsibility-field {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #fff;
}

.event-progress {
  margin-bottom: 18px;
}

.event-step-panel {
  display: grid;
  gap: 16px;
}

.event-step-panel[hidden] {
  display: none;
}

.event-summary-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px;
  background: var(--teal-soft);
}

.event-summary-card strong,
.event-summary-card small { display: block; }
.event-summary-card strong { font-size: 12px; }
.event-summary-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.role-assignment-field {
  display: grid;
  gap: 9px;
}

.role-assignment-field > legend {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.role-assignment-field > p {
  margin: -3px 0 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.role-assignment-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.role-assignment-row:has(input:checked) {
  border-color: #a8c7bb;
  background: var(--teal-soft);
}

.role-assignment-row > label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.role-assignment-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.role-assignment-row strong,
.role-assignment-row small { display: block; }
.role-assignment-row strong { font-size: 11px; }
.role-assignment-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.role-assignment-row select { min-height: 42px; background: #fff; font-size: 11px; }

.repeat-assignments {
  grid-template-columns: 22px 1fr !important;
  align-items: start;
  gap: 9px !important;
  border-radius: 12px;
  padding: 11px;
  background: var(--amber-soft);
}

.repeat-assignments input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.repeat-assignments strong,
.repeat-assignments small { display: block; }
.repeat-assignments small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.responsibility-field legend {
  float: left;
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}

.responsibility-field p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.responsibility-field label {
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 6px 8px;
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 10px;
}

.responsibility-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.reason-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 14px;
  background: var(--coral-soft);
}

.reason-card.pending {
  background: var(--amber-soft);
}

.reason-card.pending > span {
  background: var(--yellow);
}

.reason-card.critical {
  background: var(--coral-soft);
}

.reason-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 900;
}

.reason-card strong { font-size: 11px; }
.reason-card p { margin: 4px 0 0; color: #52615d; font-size: 10px; line-height: 1.4; }

.assignment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.assignment-list label {
  min-height: 65px;
  display: grid;
  grid-template-columns: 18px 36px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  background: #fff;
}

.assignment-list label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.assignment-list input { width: 17px; min-height: 17px; accent-color: var(--teal); }
.assignment-list strong,
.assignment-list small { display: block; }
.assignment-list strong { font-size: 11px; }
.assignment-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.assignment-list em { color: var(--teal); font-size: 8px; font-style: normal; font-weight: 900; }
.assignment-list .disabled-option { opacity: 0.56; }

.assignment-list .needs-adjustment {
  border-color: #d5a94a;
  background: #fffaf0;
}

.assignment-list .needs-adjustment em { color: #7c4c00; }

.availability-adjustment {
  margin: -2px 0 14px;
  border: 1px solid #d5a94a;
  border-radius: 14px;
  padding: 13px;
  background: #fffaf0;
}

.availability-adjustment h3,
.availability-adjustment p { margin: 0; }
.availability-adjustment h3 { font-size: 13px; }
.availability-adjustment > p:not(.eyebrow) { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }

.availability-adjustment > label:not(.adjustment-confirm) {
  display: grid;
  grid-template-columns: 1fr 86px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.availability-adjustment label strong,
.availability-adjustment label small { display: block; }
.availability-adjustment label strong { font-size: 10px; }
.availability-adjustment label small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.3; }
.availability-adjustment input[type="time"] { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 7px; background: #fff; font-size: 10px; }

.adjustment-confirm {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  font-weight: 800;
}

.adjustment-confirm input { width: 18px; min-height: 18px; accent-color: var(--teal); }

.assignment-scope,
.responsibility-edit-scope {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}

.assignment-scope legend,
.responsibility-edit-scope legend { padding: 0 4px; font-size: 10px; font-weight: 900; }
.assignment-scope label { min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 800; }
.responsibility-edit-scope label { min-height: 42px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 8px; }
.responsibility-edit-scope strong,
.responsibility-edit-scope small { display: block; }
.responsibility-edit-scope strong { font-size: 10px; }
.responsibility-edit-scope small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.assignment-scope input,
.responsibility-edit-scope input { width: 17px; min-height: 17px; accent-color: var(--teal); }

.layer-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.layer-list article {
  min-height: 65px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}

.layer-dot {
  width: 10px;
  height: 42px;
  border-radius: 99px;
  background: var(--teal);
}

.layer-dot.yellow { background: var(--yellow); }
.layer-dot.coral { background: var(--coral); }
.layer-list strong,
.layer-list small { display: block; }
.layer-list strong { font-size: 11px; }
.layer-list small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.3; }
.layer-list em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; }

.detected-block {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.detected-block.warning { color: var(--coral-dark); }
.detected-block strong,
.detected-block span,
.detected-block small { display: block; }
.detected-block strong { font-size: 11px; }
.detected-block span { margin-top: 4px; color: var(--ink); font-size: 10px; }
.detected-block small { margin-top: 4px; font-size: 8px; }
.detected-block button { border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; background: none; color: var(--teal); font-size: 9px; font-weight: 900; }

.plan-label {
  display: inline-block;
  margin: 3px 0 7px;
  border-radius: 99px;
  padding: 4px 8px;
  background: var(--mint);
  color: var(--teal);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.plan-label.family { margin-top: 17px; background: var(--yellow); color: var(--ink); }

.travel-card {
  display: grid;
  grid-template-columns: 1fr 82px 82px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
}

.travel-card strong,
.travel-card small { display: block; }
.travel-card strong { font-size: 11px; }
.travel-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.travel-card label { display: grid; gap: 3px; color: var(--muted); font-size: 8px; }
.travel-card input { min-height: 38px; padding: 5px; font-size: 11px; }

.route-card {
  display: grid;
  grid-template-columns: 1fr 95px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
}

.route-card > div { display: flex; align-items: center; gap: 7px; }
.route-card span { border-radius: 7px; padding: 6px; background: var(--teal-soft); font-size: 9px; font-weight: 800; }
.route-card i { font-style: normal; }
.route-card label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; }
.route-card input { width: 52px; min-height: 36px; padding: 5px; font-size: 11px; }

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 4px;
  background: #e9eae6;
}

.billing-toggle button {
  min-height: 35px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(23, 48, 43, 0.08); }

.plan-cards {
  display: grid;
  gap: 10px;
}

.plan-cards article {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: #fff;
}

.plan-cards article.recommended { border: 2px solid var(--teal); background: var(--teal-soft); }
.plan-cards article > span { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: 0.09em; }
.plan-cards h3 { margin: 7px 0 3px; font-size: 24px; letter-spacing: -0.04em; }
.plan-cards h3 small { font-size: 10px; }
.plan-cards p { margin: 0; color: var(--muted); font-size: 9px; }
.plan-cards ul { display: grid; gap: 5px; margin: 10px 0 13px; padding-left: 17px; font-size: 9px; }
.plan-cards .button { min-height: 40px; font-size: 11px; }

.comparison-link {
  display: block;
  margin: 14px auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  background: none;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.comparison-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 9px;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}

.comparison-table > div:last-child { border-bottom: 0; }
.comparison-table > div:first-child { background: var(--ink); color: #fff; }

.clear-comparison {
  margin-top: 16px;
}

.clear-comparison > div {
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  align-items: center;
  min-height: 42px;
}

.clear-comparison .premium-row {
  background: #fff9df;
}

.clear-comparison span:nth-child(2),
.clear-comparison span:nth-child(3) {
  text-align: center;
}

.purchase-title {
  margin: 22px 0 10px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.billing-options {
  display: grid;
  gap: 9px;
}

.billing-options button {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #fff;
  text-align: left;
}

.billing-options button.recommended {
  background: var(--teal-soft);
}

.billing-options button.selected-plan {
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 2px rgba(42, 117, 107, 0.12);
}

.billing-options button > span {
  color: var(--teal);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-options button strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.billing-options button strong small { font-size: 8px; }
.billing-options button em { color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.35; }
.billing-options .billing-cta {
  grid-column: 1 / -1;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.free-plan-note {
  margin-top: 13px;
  border-radius: 13px;
  padding: 13px;
  background: #f0f1ed;
}

.free-plan-note strong { font-size: 11px; }
.free-plan-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.choice-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  font-size: 11px;
  font-weight: 900;
}

.choice-index.premium {
  background: var(--yellow);
}

.search-field {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
}

.search-field input { border: 0; padding-left: 2px; }

.form-step {
  margin: 2px 0 -2px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  margin: 15px 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.faq-list p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.mail-link {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.state-list .choice-card { min-height: 67px; }

.compact-state {
  min-height: calc(100% - 50px);
  gap: 10px;
}

.compact-state .button { max-width: 280px; }

.state-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 30px;
  font-weight: 900;
}

.about-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.about-list p {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 8px;
  margin: 0;
  border-radius: 12px;
  padding: 12px;
  background: var(--teal-soft);
  font-size: 11px;
  line-height: 1.45;
}

.about-list p span { grid-row: span 2; font-weight: 900; }

.sheet-backdrop,
.dialog-backdrop {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 48, 43, 0.46);
  backdrop-filter: blur(2px);
}

.sheet-backdrop[hidden],
.dialog-backdrop[hidden] {
  display: none;
}

.bottom-sheet {
  width: 100%;
  display: grid;
  gap: 9px;
  border-radius: 24px 24px 0 0;
  padding: 11px 18px 25px;
  background: var(--paper);
  animation: sheet-in 180ms ease-out;
}

@keyframes sheet-in { from { transform: translateY(35px); opacity: 0; } }

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: 99px;
  background: #c4cbc6;
}

.sheet-heading {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-heading h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.sheet-heading .icon-button { width: 34px; height: 34px; font-size: 20px; }

.dialog-backdrop {
  align-items: center;
  padding: 18px;
}

.dialog {
  width: 100%;
  display: grid;
  gap: 13px;
  border-radius: 20px;
  padding: 18px;
  background: var(--paper);
}

.toast {
  position: absolute;
  z-index: 50;
  right: 18px;
  bottom: 92px;
  left: 18px;
  min-height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 15px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(23, 48, 43, 0.25);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: bottom 180ms ease;
}

.toast.visible {
  display: flex;
}

@media (max-width: 780px) {
  body { background: var(--paper); }

  .prototype-shell {
    width: 100%;
    min-height: 100dvh;
    display: block;
    padding: 0;
  }

  .prototype-notes { display: none; }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 560px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before { display: none; }
  .phone-status { display: none; }
  .screen { padding-top: 62px; }
  .onboarding { padding-top: 76px; }
  .prototype-banner { top: 17px; }
}

@media (max-height: 720px) and (min-width: 781px) {
  .phone { height: calc(100vh - 24px); min-height: 600px; border-width: 7px; border-radius: 38px; }
  .prototype-shell { padding: 12px 0; }
  .screen { padding-top: 68px; }
  .prototype-banner { top: 36px; }
}

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