@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  font-family: Outfit, Arial, sans-serif;
  color: #f8f7fa;
  background: #111014;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: #111014;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent, #f23ba7);
  outline-offset: 3px;
}
.app-shell {
  --accent: #f23ba7;
  --accent-soft: #38142b;
  --surface: #1b1a1f;
  --surface-2: #24232a;
  min-height: 100dvh;
  max-width: 760px;
  margin: auto;
  padding: 0 20px 98px;
  background:
    radial-gradient(ellipse 90% 26% at 55% -5%, #301326 0%, transparent 64%),
    #111014;
}
.app-shell.green {
  --accent: #b9fa3c;
  --accent-soft: #253511;
  background:
    radial-gradient(ellipse 90% 26% at 55% -5%, #203014 0%, transparent 64%),
    #111014;
}
.topbar {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.top-actions,
.bottom-nav button,
.text-button {
  border: 0;
  background: none;
  color: inherit;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1.3px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.flower {
  color: var(--accent);
  font-size: 29px;
  line-height: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.date-label,
.eyebrow {
  color: #a5a2aa;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.1px;
}
.avatar,
.member-avatar {
  border: 1px solid #58555f;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #17151b;
  background: var(--accent);
  font-weight: 700;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 29px 0 31px;
}
.eyebrow {
  margin: 0 0 8px;
}
.hero h1,
.page-title h1 {
  font-size: clamp(36px, 9vw, 53px);
  line-height: 0.98;
  letter-spacing: -2.6px;
  margin: 0;
}
.quick-add {
  width: 55px;
  height: 55px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #17151b;
  font-size: 35px;
  line-height: 1;
  margin-bottom: 3px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #34323a;
  border-radius: 16px;
  background: #18171c;
  margin-bottom: 39px;
}
.summary-strip div {
  padding: 15px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #a7a4ab;
  font-size: 12px;
}
.summary-strip div + div {
  border-left: 1px solid #34323a;
}
.summary-number {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}
.content-section {
  margin: 0 0 36px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.7px;
}
.count-badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 9px;
  border-radius: 12px;
  font:
    11px "DM Mono",
    monospace;
}
.text-button {
  color: var(--accent);
  font-size: 13px;
}
.task-card,
.compact-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid #37333b;
  background: var(--surface);
  border-radius: 17px;
  margin-bottom: 10px;
}
.task-card {
  border-left: 3px solid var(--accent);
}
.task-card-open {
  cursor: pointer;
}
.task-card-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.completed-task {
  border-left-color: #6d6873;
  opacity: 0.62;
}
.completed-task .task-body h3 {
  text-decoration: line-through;
}
.task-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  flex: none;
}
.task-icon.soft {
  background: #2a2930;
  color: #d1cdd5;
}
.task-body {
  min-width: 0;
  flex: 1;
}
.task-body h3,
.event-row h3,
.note-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.task-body p,
.event-row p {
  margin: 0;
  color: #aaa6af;
  font-size: 12px;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.assigned {
  color: #78747e;
}
.done-button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #17151b;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
}
.completion-edit {
  border: 1px solid #5b5660;
  border-radius: 9px;
  background: transparent;
  color: #d1cdd5;
  font-size: 18px;
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
}
.due-time {
  color: #b3afb8;
  font:
    11px "DM Mono",
    monospace;
}
.event-row {
  display: flex;
  gap: 17px;
  padding: 15px 0;
  border-bottom: 1px solid #302e35;
}
.event-time {
  color: var(--accent);
  width: 45px;
  font:
    12px "DM Mono",
    monospace;
}
.event-time small {
  display: block;
  color: #76717b;
  margin-top: 4px;
}
.location {
  color: #aaa6af;
  font-size: 12px;
  display: block;
  margin-top: 7px;
}
.page-title {
  padding: 33px 0 28px;
}
.page-title > p:not(.eyebrow) {
  color: #a7a4ab;
  margin: 10px 0 0;
}
.family-grid {
  display: grid;
  gap: 12px;
}
.member-card,
.note-card {
  padding: 19px;
  border: 1px solid #34323a;
  background: var(--surface);
  border-radius: 17px;
}
.member-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 21px;
}
.member-avatar {
  display: grid;
  place-items: center;
}
.member-head h2 {
  margin: 0;
  font-size: 17px;
}
.member-head p,
.member-note {
  margin: 3px 0 0;
  color: #aaa6af;
  font-size: 12px;
}
.member-card strong {
  font-size: 14px;
}
.member-note {
  margin-top: 8px;
}
.member-card[role="button"] {
  cursor: pointer;
}
.qr-code svg {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 12px 0;
  background: #fff;
  padding: 8px;
}
.add-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.45fr) auto;
  gap: 8px;
  margin-bottom: 17px;
}
.add-inline input,
.add-inline select,
.note-composer input,
.note-composer select,
.sheet input,
.sheet textarea {
  width: 100%;
  background: #242229;
  border: 1px solid #46424c;
  color: white;
  border-radius: 11px;
  padding: 12px;
  outline-color: var(--accent);
}
.add-inline button,
.note-composer button {
  background: var(--accent);
  color: #17151b;
  font-weight: 700;
  border: 0;
  padding: 0 17px;
  border-radius: 11px;
  margin: 0;
}
.shopping-list {
  border-top: 1px solid #34323a;
}
.shopping-item {
  padding: 17px 4px;
  border-bottom: 1px solid #34323a;
  display: flex;
  align-items: center;
  gap: 11px;
}
.shopping-item input {
  position: absolute;
  opacity: 0;
}
.fake-check {
  width: 23px;
  height: 23px;
  border: 1px solid #68636d;
  border-radius: 8px;
  color: transparent;
  display: grid;
  place-items: center;
}
.shopping-item.checked {
  color: #77737d;
  text-decoration: line-through;
}
.shopping-item.checked .fake-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #17151b;
  text-decoration: none;
}
.shopping-item small {
  margin-left: auto;
  color: #89858e;
}
.note-composer {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.note-composer textarea {
  min-height: 100px;
  resize: vertical;
  background: #242229;
  border: 1px solid #46424c;
  border-radius: 11px;
  color: white;
  padding: 12px;
  outline-color: var(--accent);
}
.note-composer button {
  margin: 0;
  border-radius: 11px;
  height: 42px;
}
.note-card {
  margin: 10px 0;
}
.note-card > span,
.note-card small {
  color: var(--accent);
  font:
    10px "DM Mono",
    monospace;
}
.note-card h3 {
  margin-top: 10px;
}
.note-card p {
  color: #d1cdd4;
  line-height: 1.5;
  font-size: 14px;
}
.note-card small {
  color: #85818a;
}
.note-composer label {
  color: #aaa6af;
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.settings-list {
  border-top: 1px solid #34323a;
}
.settings-list > div,
.settings-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 3px;
  border: 0;
  border-bottom: 1px solid #34323a;
  background: transparent;
  color: #f8f7fa;
  font-size: 14px;
  text-align: left;
}
.settings-list strong {
  color: #a7a4ab;
  font-size: 12px;
  font-weight: 400;
}
.theme-choice {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
}
.settings-link span {
  color: var(--accent);
  font-size: 22px;
}
.bottom-nav {
  position: fixed;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  padding: 8px max(15px, calc((100vw - 720px) / 2));
  background: rgba(21, 20, 24, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid #34323a;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav button {
  width: 62px;
  font-size: 10px;
  color: #89858e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bottom-nav button span {
  font-size: 20px;
}
.bottom-nav .active {
  color: var(--accent);
}
.bottom-nav .nav-add {
  align-self: flex-start;
  width: 48px;
  height: 48px;
  margin-top: -26px;
  border-radius: 16px;
  background: var(--accent);
  color: #17151b;
  font-size: 29px;
  display: block;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.theme-switch {
  position: fixed;
  right: 14px;
  top: 82px;
  color: #9d99a2;
  background: #242229;
  border: 1px solid #3f3b44;
  border-radius: 10px;
  padding: 6px 9px;
  font:
    9px "DM Mono",
    monospace;
}
.modal-backdrop {
  position: fixed;
  z-index: 6;
  inset: 0;
  display: flex;
  align-items: end;
  background: rgba(0, 0, 0, 0.65);
}
.sheet {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 12px 20px 30px;
  border-radius: 25px 25px 0 0;
  background: #222027;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 3px;
  background: #63606a;
  margin: 0 auto 24px;
}
.sheet h2 {
  margin: 0 0 7px;
  font-size: 23px;
}
.sheet > p:not(.eyebrow) {
  color: #aaa6af;
  font-size: 14px;
  margin: 0 0 17px;
}
.sheet textarea {
  min-height: 76px;
  margin-top: 9px;
  resize: vertical;
}
.sheet label {
  display: block;
  color: #aaa6af;
  font-size: 12px;
  margin-top: 12px;
}
.sheet label input {
  margin-top: 6px;
}
.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}
.sheet-actions button {
  flex: 1;
  border: 0;
  border-radius: 11px;
  padding: 13px;
  font-weight: 700;
}
.cancel {
  background: #35323a;
  color: white;
}
.save {
  background: var(--accent);
  color: #17151b;
}
.sheet select {
  width: 100%;
  margin: 10px 0;
  padding: 11px;
  border: 1px solid #46424c;
  border-radius: 11px;
  color: #fff;
  background: #242229;
  outline-color: var(--accent);
}
.completion-data {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.account-screen {
  min-height: 100dvh;
}
.account-card {
  max-width: 460px;
  margin: 8vh auto;
}
.account-card h1 {
  font-size: clamp(35px, 9vw, 50px);
  letter-spacing: -2px;
  line-height: 0.98;
  margin: 0;
}
.account-copy {
  color: #aaa6af;
  line-height: 1.5;
  margin: 14px 0 25px;
}
.account-toggle {
  margin-top: 17px;
  padding: 0;
}
.form-error {
  color: #ff8cc8;
  font-size: 13px;
  margin: 0;
}
.form-warning {
  color: #e6cf75;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}
.save-confirmation {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: 88px;
  max-width: min(420px, calc(100vw - 40px));
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: #f8f7fa;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.participant-picker,
.choice-picker {
  border: 1px solid #46424c;
  border-radius: 11px;
  margin: 12px 0 0;
  padding: 8px;
  display: grid;
  gap: 8px;
}
.participant-picker legend,
.choice-picker legend {
  color: #f8f7fa;
  font-size: 13px;
  padding: 0 4px;
}
.participant-picker label,
.choice-picker button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #46424c;
  border-radius: 9px;
  background: #242229;
  color: #d1cdd4;
  text-align: left;
}
.participant-picker input {
  position: absolute;
  opacity: 0;
}
.participant-picker label strong {
  margin-left: auto;
  color: transparent;
  font-size: 16px;
}
.participant-picker label.selected,
.choice-picker button.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
}
.participant-picker label.selected strong {
  color: var(--accent);
}
.picker-group {
  width: 100%;
  margin: 8px 0 2px;
  color: #aaa6af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.choice-picker button {
  width: 100%;
  cursor: pointer;
}
.form-error {
  color: #ff8cc8;
  font-size: 13px;
  margin: 10px 0 0;
}
.sheet-form {
  display: grid;
  gap: 10px;
}
.sheet-form > label {
  margin-top: 0;
}
.sheet-form .sheet-actions {
  margin-top: 7px;
}
@media (min-width: 640px) {
  .app-shell {
    padding-left: 36px;
    padding-right: 36px;
  }
  .family-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar {
    height: 87px;
  }
  .bottom-nav {
    border-radius: 18px 18px 0 0;
    max-width: 720px;
    margin: auto;
  }
}
.task-body,
.event-row > div:last-child,
.settings-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shopping-item input:focus-visible + .fake-check {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sheet {
  max-height: 100dvh;
  overflow-y: auto;
}
.time-picker {
  display: grid;
  gap: 12px;
  margin: 12px 0 6px;
}
.time-picker-date {
  color: #aaa6af;
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.time-picker-date input {
  width: 100%;
}
.time-picker-selected {
  margin: 2px 0 4px;
  text-align: center;
  color: #d9d5dc;
  font-size: 14px;
}
.time-picker-now {
  position: absolute;
  inset: 24%;
  display: grid;
  place-content: center;
  width: 52%;
  aspect-ratio: 1;
  margin: auto;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #242229;
  color: #fff;
}
.time-picker-now span {
  color: var(--accent);
  font:
    10px "DM Mono",
    monospace;
  letter-spacing: 1.7px;
}
.time-picker-now strong {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.time-picker-now small {
  color: #bcb7c1;
  font:
    10px "DM Mono",
    monospace;
}
.time-picker-hint {
  margin: 0;
  text-align: center;
  color: #96919b;
  font-size: 11px;
}
.duration-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.duration-picker label {
  margin: 0;
  display: grid;
  gap: 5px;
  color: #aaa6af;
  font-size: 11px;
}
.duration-picker select,
.date-wheel {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #46424c;
  border-radius: 11px;
  background: #242229;
  color: #fff;
}
.wizard-hint {
  color: #96919b;
  font-size: 11px;
  line-height: 1.4;
}
.completion-sheet {
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}
@media (max-width: 420px) {
  .add-inline {
    grid-template-columns: 1fr auto;
  }
  .add-inline input {
    grid-column: 1 / -1;
  }
  .add-inline select {
    min-width: 0;
  }
  .add-inline button {
    min-height: 46px;
  }
}
.time-picker {
  display: grid;
  gap: 12px;
  margin: 12px 0 6px;
}
.time-picker-date {
  color: #aaa6af;
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.time-picker-date input {
  width: 100%;
}
.time-picker-selected {
  margin: 2px 0 4px;
  text-align: center;
  color: #d9d5dc;
  font-size: 14px;
}
.time-slot-columns,
.duration-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.time-slot-columns:has(.slot-wheel:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.slot-wheel {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.slot-wheel-label {
  color: #aaa6af;
  font:
    11px "DM Mono",
    monospace;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.slot-wheel-viewport {
  --slot-wheel-edge-space: 88px;
  --slot-wheel-row-height: 44px;
  position: relative;
  height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  touch-action: none;
  border: 1px solid #46424c;
  border-radius: 11px;
  background: #242229;
  scrollbar-width: none;
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-size: 100% var(--slot-wheel-row-height);
  background-position: center;
  background-repeat: no-repeat;
}
.slot-wheel-viewport::-webkit-scrollbar {
  display: none;
}
.slot-wheel-list {
  min-width: 100%;
}
.slot-wheel-spacer {
  height: var(--slot-wheel-edge-space);
  pointer-events: none;
}
.slot-wheel-list button {
  display: block;
  width: 100%;
  height: var(--slot-wheel-row-height);
  padding: 0 4px;
  scroll-snap-align: center;
  border: 0;
  background: transparent;
  color: #908c96;
  font:
    16px "DM Mono",
    monospace;
}
.slot-wheel-list button.selected {
  color: #fff;
  font-weight: 700;
}
.time-picker-now {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  aspect-ratio: auto;
  margin: 0;
  justify-self: center;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 10px 20px;
}
.time-picker-date-toggle {
  justify-self: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}
.time-picker-date-toggle::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 7px solid #aaa6af;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}
.time-picker-date-toggle[aria-expanded="true"]::after {
  border-top: 0;
  border-bottom: 7px solid #aaa6af;
}
.date-wheel-picker {
  display: grid;
  gap: 8px;
}
.wheel-picker-hint {
  margin: 0;
  color: #aaa6af;
  font-size: 12px;
}
.hero {
  justify-content: end;
  padding: 0 0 22px;
}
.date-wheel,
.wheel-options {
  max-height: 142px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  border: 1px solid #46424c;
  border-radius: 11px;
  background: #242229;
  scrollbar-width: thin;
}
.date-wheel button,
.wheel-options button {
  display: block;
  width: 100%;
  min-height: 42px;
  scroll-snap-align: center;
  border: 0;
  border-bottom: 1px solid #37333b;
  background: transparent;
  color: #aaa6af;
}
.date-wheel button.selected,
.wheel-options button.selected {
  background: var(--accent-soft);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 var(--accent);
}
.duration-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.duration-wheel {
  min-width: 0;
  color: #aaa6af;
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.wheel-options button {
  font:
    15px "DM Mono",
    monospace;
}
