@font-face {
  font-family: "TheYearofHandicrafts";
  src: url("./fonts/TheYearofHandicrafts-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TheYearofHandicrafts";
  src: url("./fonts/TheYearofHandicrafts-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "TheYearofHandicrafts";
  src: url("./fonts/TheYearofHandicrafts-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "TheYearofHandicrafts";
  src: url("./fonts/TheYearofHandicrafts-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "TheYearofHandicrafts";
  src: url("./fonts/TheYearofHandicrafts-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-paper: #f7f3ed;
  --brand-ink: #30283e;
  --brand-coral: #c86245;
  --brand-apricot: #eed9cb;
  --brand-lilac: #dbd2e7;
  --brand-muted: #766c7b;
  --brand-white: #ffffff;
  --brand-black: #19171d;
  --ink: var(--brand-ink);
  --ink-soft: #675d6c;
  --ink-faint: var(--brand-muted);
  --canvas: var(--brand-paper);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: var(--brand-white);
  --surface-muted: #f0eaf2;
  --line: rgba(48, 40, 62, 0.1);
  --line-strong: rgba(48, 40, 62, 0.2);
  --green: var(--brand-ink);
  --green-pressed: #221b2e;
  --green-soft: var(--brand-lilac);
  --mint: var(--brand-coral);
  --amber: #8c482f;
  --amber-soft: var(--brand-apricot);
  --red: #c43e48;
  --red-soft: #fff0f1;
  --blue: #51456a;
  --shadow-card: 0 1px 2px rgba(48, 40, 62, 0.035), 0 10px 30px rgba(48, 40, 62, 0.055);
  --shadow-float: 0 18px 54px rgba(48, 40, 62, 0.18);
  --radius-control: 0.875rem;
  --radius-card: 1.25rem;
  --radius-large: 1.75rem;
  --content: 68rem;
  --reading: 43rem;
  --ease-out: cubic-bezier(0.2, 0.78, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(238, 217, 203, 0.52), transparent 34rem),
    radial-gradient(circle at 0% 72%, rgba(219, 210, 231, 0.38), transparent 38rem),
    var(--canvas);
  background-attachment: fixed;
  font-family: "TheYearofHandicrafts", system-ui, -apple-system, BlinkMacSystemFont, "SF Arabic", "Noto Sans Arabic", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.625;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

html:lang(ar) .display-title,
html:lang(ar) .countdown {
  letter-spacing: normal;
}

html:lang(ar) .display-title {
  line-height: 1.12;
}

html:lang(ar) .countdown {
  line-height: 1.18;
}

body > main {
  flex: 1 0 auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 62%, white);
  outline-offset: 2px;
}

::selection {
  color: white;
  background: var(--green);
}

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

.skip-link {
  position: fixed;
  inset-block-start: -10rem;
  inset-inline-start: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: white;
  background: var(--ink);
  transform: none;
}

.skip-link:focus-visible {
  inset-block-start: 0.75rem;
}

.shell,
.public-shell {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.public-shell {
  width: min(100% - 2rem, var(--reading));
}

.page-main {
  padding-block: 1.25rem 7rem;
}

.topbar-wrap {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  padding-block: max(0.65rem, env(safe-area-inset-top)) 0.65rem;
  pointer-events: none;
}

.topbar {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 30px rgba(16, 32, 25, 0.06);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  overflow: clip;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 0.82rem;
  color: white;
  background: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(23, 107, 77, 0.22);
}

.brand-mark svg {
  width: 1.55rem;
  height: 1.55rem;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-block-start: 0.18rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 550;
}

.topbar-actions,
.inline-actions,
.hero-actions,
.form-actions,
.owner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.button,
.icon-button,
.chip-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 700;
  line-height: 1;
  transition:
    transform 110ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  touch-action: manipulation;
  user-select: none;
}

.button {
  min-width: 7.5rem;
  max-width: 100%;
  padding: 0.8rem 1.05rem;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.icon-button {
  width: 3rem;
  padding: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button svg,
.icon-button svg,
.chip-button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.button:active,
.icon-button:active,
.chip-button:active,
.pressable:active {
  transform: scale(0.98);
  transition-duration: 90ms;
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(23, 107, 77, 0.2);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-solid);
}

.button-quiet {
  min-width: 0;
  color: var(--green);
  background: transparent;
}

.button-danger {
  color: var(--red);
  background: var(--red-soft);
}

.button-wide {
  width: 100%;
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.eyebrow-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.3rem color-mix(in srgb, currentColor 13%, transparent);
}

.display-title {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.65rem, 8vw, 5.6rem);
  font-weight: 780;
  letter-spacing: -0.018em;
  line-height: 1.02;
}

.display-title span {
  color: var(--green);
}

.lead {
  max-width: 32rem;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  line-height: 1.75;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 7rem);
  align-items: center;
  gap: 2.5rem;
  padding-block: 3rem 6rem;
}

.landing-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.75rem;
}

.landing-actions > .button {
  min-width: min(100%, 12rem);
  flex: 1 1 12rem;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-block-start: 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.trust-note svg {
  width: 1rem;
  height: 1rem;
  color: var(--green);
}

.phone-stage {
  position: relative;
  min-width: 0;
  width: min(100%, 22.75rem);
  aspect-ratio: 393 / 852;
  margin-inline: auto;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 3.15rem;
  background: linear-gradient(145deg, #f7f8f8 0%, #aeb4b2 42%, #f7f8f8 72%, #929997 100%);
  box-shadow:
    0 34px 90px rgba(16, 32, 25, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(16, 32, 25, 0.28);
}

.phone-stage::before {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 4;
  width: 5.25rem;
  height: 1.3rem;
  border-radius: 99px;
  background: #050a08;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border: 0.38rem solid #101513;
  border-radius: 2.7rem;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-content {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 3.1rem 0.68rem 0.78rem;
}

.mini-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 750;
}

.mini-button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.7rem;
  color: var(--green);
  background: white;
}

.phone-content .outing-hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 1rem;
  border-radius: 1.8rem;
  box-shadow: 0 12px 34px rgba(17, 86, 62, 0.18);
}

.phone-content .countdown {
  margin-block-start: clamp(1.15rem, 6vh, 2.3rem);
  font-size: clamp(2.55rem, 11vw, 3.5rem);
}

.phone-content .host-card {
  margin-block-start: auto;
}

.phone-content .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.phone-content .info-card {
  min-height: 8.4rem;
  padding: 0.85rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-block: 1rem 5rem;
}

.feature-card,
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 1.25rem;
}

.feature-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  margin-block-end: 0.8rem;
  place-items: center;
  border-radius: 0.85rem;
  color: var(--green);
  background: var(--green-soft);
}

.feature-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.5rem 1.25rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.page-heading p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.outing-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-outing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.55rem, 2.5vw, 1rem);
}

.dashboard-outing-grid > .dashboard-hero-card:only-child,
.dashboard-outing-grid > .dashboard-hero-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.dashboard-link-button {
  margin-block-start: 1rem;
}

.dashboard-hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 15rem;
  align-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem;
  overflow: clip;
  border: 0;
  border-radius: var(--radius-large);
  color: white;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.1), transparent 15rem),
    linear-gradient(145deg, #257c5e, #104c38 82%);
  box-shadow: 0 20px 54px rgba(17, 86, 62, 0.2);
  transition: transform 110ms var(--ease-out), box-shadow 180ms ease;
  touch-action: manipulation;
}

.dashboard-hero-card::after {
  position: absolute;
  inset-block-end: -7rem;
  inset-inline-start: -5rem;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border: 1rem solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.dashboard-hero-card .summary-label,
.dashboard-hero-card .status-pill {
  color: white;
}

.dashboard-hero-card .status-pill,
.dashboard-hero-card .summary-block {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 17, 14, 0.16);
}

.dashboard-hero-card:active {
  transform: scale(0.99);
}

.new-outing-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: transparent;
  color: white;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(23, 107, 77, 0.2);
}

.new-outing-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.outing-grid:has(.outing-card:only-child) {
  grid-template-columns: minmax(0, 42rem);
}

.outing-card {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: 1.15rem;
  overflow: hidden;
}

.outing-card::after {
  position: absolute;
  inset-block-start: -3.5rem;
  inset-inline-end: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent, var(--green)) 12%, transparent);
  content: "";
}

.outing-card-header,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.outing-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.outing-name > div {
  min-width: 0;
}

.outing-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  color: white;
  background: var(--card-accent, var(--green));
}

.outing-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.outing-name h2,
.outing-name h3 {
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill,
.meta-pill {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.status-pill.is-warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.outing-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.75rem;
}

.summary-block {
  padding: 0.85rem;
  border-radius: 1rem;
  background: var(--surface-muted);
}

.summary-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 650;
}

.summary-value {
  display: block;
  margin-block-start: 0.15rem;
  font-size: 0.94rem;
  font-weight: 750;
}

.empty-state {
  padding: 3rem 1.2rem;
  text-align: center;
}

.empty-state .feature-icon {
  margin-inline: auto;
}

.empty-state h2 {
  margin: 0.85rem 0 0;
}

.empty-state p {
  max-width: 30rem;
  margin: 0.45rem auto 1.25rem;
  color: var(--ink-soft);
}

.inline-note {
  margin-block-start: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--ink-soft);
  background: var(--surface-solid);
  font-size: 0.78rem;
  font-weight: 600;
}

.outing-hero {
  position: relative;
  isolation: isolate;
  min-height: 25.5rem;
  padding: 1.3rem;
  overflow: hidden;
  border-radius: var(--radius-large);
  color: white;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.05), transparent 16rem),
    linear-gradient(145deg, #1f7b5b, #0f5039 78%);
  box-shadow: 0 20px 54px rgba(17, 86, 62, 0.24);
}

.outing-hero::before,
.outing-hero::after {
  position: absolute;
  z-index: -1;
  border: 1.1rem solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.outing-hero::before {
  inset-block-start: -7rem;
  inset-inline-end: -5rem;
  width: 17rem;
  height: 17rem;
}

.outing-hero::after {
  inset-block-end: -9rem;
  inset-inline-start: -7rem;
  width: 21rem;
  height: 21rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 650;
}

.hero-kicker .status-pill {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 17, 14, 0.22);
}

.countdown {
  max-width: 13ch;
  margin: 2.5rem 0 0;
  font-size: clamp(2.65rem, 12vw, 4.5rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.exact-date {
  margin: 0.75rem 0 0;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.host-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-block-start: 2.4rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.1rem;
  background: rgba(9, 17, 14, 0.2);
}

.avatar {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--green);
  background: white;
  font-size: 1.05rem;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-copy {
  display: grid;
  min-width: 0;
}

.host-copy span {
  color: white;
  font-size: 0.74rem;
}

.host-copy strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-actions {
  flex-wrap: wrap;
  margin-block-start: 0.8rem;
}

.hero-actions > .button,
.hero-share-actions {
  flex: 1 1 11rem;
  min-width: 0;
}

.hero-share-actions {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.hero-actions .button {
  min-width: 0;
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(9, 17, 14, 0.22);
}

.hero-share-actions .button {
  flex: 1 1 auto;
  padding-inline: 0.7rem;
  font-size: 0.9rem;
}

.hero-share-actions .whatsapp-share {
  width: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  flex: 0 0 3rem;
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
  background: #1fa855;
}

.hero-share-actions .whatsapp-share:focus-visible {
  background: #178b47;
}

@media (hover: hover) and (pointer: fine) {
  .hero-share-actions .whatsapp-share:hover {
    background: #178b47;
  }
}

.hero-share-actions .whatsapp-share svg {
  width: 1.45rem;
  height: 1.45rem;
}

@media (max-width: 340px) {
  .hero-share-actions {
    gap: 0.4rem;
  }

  .hero-share-actions .button {
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }

  .hero-share-actions .button svg {
    display: none;
  }
}

.outing-hero.dashboard-hero-card {
  min-width: 0;
  min-height: 14.5rem;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  gap: 0.8rem;
  padding: 1.25rem;
  box-shadow: 0 16px 44px rgba(17, 86, 62, 0.2);
}

.dashboard-hero-card .hero-kicker {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.6rem;
}

.dashboard-hero-card .dashboard-outing-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: white;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html:lang(ar) .dashboard-hero-card .dashboard-outing-name {
  letter-spacing: normal;
}

.dashboard-outing-time {
  align-self: start;
}

.dashboard-hero-card .countdown {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.35;
}

.dashboard-hero-card .exact-date {
  margin-block-start: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.45;
}

.dashboard-hero-card .host-card {
  align-self: end;
  margin-block-start: auto;
}

.content-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-block-start: 1rem;
}

.content-stack > *,
.info-grid > * {
  min-width: 0;
  max-width: 100%;
}

.card {
  padding: 1.1rem;
}

.card-heading {
  margin-block-end: 0.9rem;
}

.card-heading h2,
.card-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.card-heading p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.details-grid {
  --details-gap: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--details-gap);
  margin-block-start: 1rem;
}

.details-grid--mosaic {
  grid-template-areas:
    "items cost"
    "items contribution";
  grid-template-rows: max-content minmax(min-content, 1fr);
  align-items: stretch;
}

.details-grid--mosaic-with-rotation {
  grid-template-areas:
    "items cost"
    "items contribution"
    "rotation rotation";
  grid-template-rows: max-content minmax(min-content, 1fr) auto;
}

.details-grid--mosaic > .detail-items {
  grid-area: items;
}

.details-grid--mosaic > .detail-cost {
  grid-area: cost;
  align-self: start;
  width: 100%;
}

.details-grid--mosaic > .detail-contribution {
  grid-area: contribution;
  width: 100%;
}

.details-grid--mosaic > .detail-rotation {
  grid-area: rotation;
}

.details-grid > *,
[data-detail-card] {
  min-width: 0;
  max-width: 100%;
}

.details-grid:not(.details-grid--mosaic) > :only-child,
.details-grid:not(.details-grid--mosaic) > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.detail-card {
  min-height: 10rem;
}

.detail-items { order: 1; }
.detail-cost { order: 2; }
.detail-contribution { order: 3; }
.detail-rotation { order: 4; }

.info-card {
  min-height: 10rem;
  padding: 1rem;
}

.detail-cost-trigger {
  width: 100%;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: start;
  touch-action: manipulation;
  transition: transform 110ms var(--ease-out), border-color 180ms ease;
}

.detail-cost-trigger:active {
  transform: scale(0.99);
}

.info-card-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  margin-block-end: 1.25rem;
  place-items: center;
  border-radius: 0.82rem;
  color: var(--green);
  background: var(--green-soft);
}

.info-card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.info-card-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 650;
}

.info-card-value {
  display: block;
  margin-block-start: 0.2rem;
  font-size: 1.08rem;
  font-weight: 780;
  line-height: 1.4;
}

.info-card-subvalue {
  display: block;
  margin-block-start: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.guest-follow-form {
  width: 100%;
  margin-block-start: 0.9rem;
}

.guest-follow-card {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding-block: 0.75rem;
  padding-inline: 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
  text-align: start;
  transition: transform 110ms var(--ease-out), border-color 180ms ease;
  touch-action: manipulation;
}

.guest-follow-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guest-follow-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.guest-follow-icon .google-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.guest-follow-card:active {
  transform: scale(0.99);
}

.check-list,
.rotation-list,
.activity-list {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.rotation-list li,
.activity-list li {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.7rem;
  border-block-end: 1px solid var(--line);
}

.check-list li:last-child,
.rotation-list li:last-child,
.activity-list li:last-child {
  border-block-end: 0;
}

.check-dot {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.check-dot svg {
  width: 0.82rem;
  height: 0.82rem;
}

.rotation-number {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.62rem;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.rotation-list li:first-child .rotation-number {
  color: white;
  background: var(--green);
}

.rotation-name {
  min-width: 0;
  flex: 1;
  font-weight: 650;
}

.rotation-name-button,
button.rotation-name,
[data-rotation-member] {
  display: inline-flex;
  min-width: 0;
  min-height: 2.4rem;
  flex: 1;
  align-items: center;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.7rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 650;
  text-align: start;
  transition: transform 110ms var(--ease-out), background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.rotation-name-button:active,
button.rotation-name:active,
[data-rotation-member]:active {
  transform: scale(0.98);
}

.show-more-button,
.detail-more,
[data-show-more],
.list-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  margin-block-start: 0.6rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.8rem;
  color: var(--green);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 720;
  transition: transform 110ms var(--ease-out), background-color 160ms ease;
  touch-action: manipulation;
}

.show-more-button:active,
.detail-more:active,
[data-show-more]:active,
.list-toggle:active {
  transform: scale(0.98);
}

.list-toggle {
  width: 100%;
  margin-block-start: 0.45rem;
}

.role-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 1rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-muted);
}

.role-detail > div {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-block-end: 1px solid var(--line);
}

.role-detail > div:last-child {
  border-block-end: 0;
}

.role-detail dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.role-detail dd {
  margin: 0;
  font-weight: 740;
  text-align: end;
}

.role-detail > span:first-child {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.role-detail-date {
  overflow-wrap: anywhere;
  text-align: end;
}

.role-detail-count {
  grid-column: 1 / -1;
  padding-block-start: 0.7rem;
  border-block-start: 1px solid var(--line);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 680;
}

.back-button {
  flex: 0 0 auto;
}

.rotation-tag {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
}

.payment-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.payment-row {
  display: flex;
  min-width: 0;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface-solid);
  cursor: pointer;
}

.payment-row label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 680;
}

.payment-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

.payment-status {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.payment-name {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 680;
}

.payment-summary {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.payment-row:has(input:checked) .payment-status {
  color: var(--green);
}

.last-updated {
  margin: 1.15rem 0 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
  text-align: center;
}

.owner-panel {
  margin-block-start: 1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 107, 77, 0.14);
  border-radius: var(--radius-card);
  background: var(--green-soft);
}

.owner-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 0.85rem;
}

.owner-panel-header h2 {
  margin: 0;
  font-size: 0.96rem;
}

.owner-panel-header span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.owner-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.5rem, 1fr));
}

.owner-actions > form {
  min-width: 0;
}

.owner-actions > form .owner-action {
  width: 100%;
}

.owner-action {
  min-width: 0;
  padding-inline: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.share-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: 0.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
}

.share-url {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ink-soft);
  direction: ltr;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-owner-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 90;
  padding: 0.7rem 1rem max(0.7rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--canvas) 55%, transparent);
  pointer-events: none;
}

.floating-owner-bar .owner-actions {
  width: min(100%, 40rem);
  margin-inline: auto;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  pointer-events: auto;
}

.form-shell {
  width: min(100% - 2rem, 49rem);
  margin-inline: auto;
}

.wizard-progress {
  display: flex;
  min-width: 0;
  gap: 0.45rem;
  margin-block: 1.4rem 1rem;
}

.progress-step {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-step::before {
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
  transition: transform 200ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}

.progress-step.is-active {
  color: var(--green);
}

.progress-step.is-active::before {
  background: var(--green);
  transform: scale(1.08);
  box-shadow: 0 0 0 0.28rem var(--green-soft);
}

.progress-step.is-done {
  color: var(--ink-soft);
}

.progress-step.is-done::before {
  background: color-mix(in srgb, var(--green) 62%, var(--surface-solid));
  transform: scale(0.84);
  box-shadow: none;
}

.form-card {
  padding: 1.2rem;
  scroll-margin-block-start: 6.25rem;
}

.form-section + .form-section {
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.form-section h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.form-section,
.field-grid,
.field {
  min-width: 0;
}

.field-grid {
  grid-template-columns: minmax(0, 1fr);
}

.form-section > p {
  margin: 0.3rem 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.field-grid {
  display: grid;
  gap: 0.9rem;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.38rem;
}

fieldset.field {
  min-inline-size: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend.field-label {
  width: 100%;
  padding: 0;
}

.field label,
.field-label {
  font-size: 0.82rem;
  font-weight: 720;
}

.field-hint {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.input,
.textarea,
.select {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--surface-solid);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input[type="date"],
input[type="date"].input {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.input[type="date"]::-webkit-datetime-edit,
input[type="date"].input::-webkit-datetime-edit {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.date-input-shell {
  position: relative;
}

.date-input-placeholder {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  padding-inline: 0.85rem 3.25rem;
  color: var(--ink-soft);
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 0.86rem;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.date-input-shell[data-has-value="1"] .date-input-placeholder {
  opacity: 0;
}

.date-input-shell[data-has-value="0"] .date-input-control::-webkit-datetime-edit {
  opacity: 0;
}

.textarea {
  min-height: 7.2rem;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.12);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--red);
}

.select-menu-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.select.select-menu-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.select-menu-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: none;
  color: var(--ink);
  background: var(--surface-solid);
  font: inherit;
  text-align: start;
  touch-action: manipulation;
  transition: transform 110ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.select-menu-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-menu-chevron {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  transition: transform 180ms var(--ease-out), color 160ms ease;
}

.select-menu-chevron svg,
.select-menu-check svg {
  width: 100%;
  height: 100%;
}

.select-menu-trigger[aria-expanded="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.12);
}

.select-menu-trigger[aria-expanded="true"] .select-menu-chevron {
  color: var(--green);
  transform: rotate(180deg);
}

.select-menu-trigger:focus-visible {
  border-color: var(--green);
  outline: 3px solid color-mix(in srgb, var(--green) 62%, white);
  outline-offset: 2px;
}

.select-menu-trigger:active:not(:disabled) {
  transform: scale(0.985);
}

.select-menu-trigger:disabled {
  cursor: default;
  opacity: 0.52;
}

.select-menu-trigger[aria-invalid="true"] {
  border-color: var(--red);
}

.select-menu-popover {
  position: fixed;
  z-index: 420;
  inset: auto;
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0.38rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(16, 32, 25, 0.2), 0 2px 8px rgba(16, 32, 25, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  scrollbar-width: thin;
  transform-origin: top right;
}

.select-menu-popover.is-open {
  display: grid;
  gap: 0.18rem;
}

.select-menu-popover.opens-up {
  transform-origin: bottom right;
}

.select-menu-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.72rem;
  cursor: pointer;
  border-radius: 0.72rem;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
  text-align: start;
  touch-action: manipulation;
  transition: transform 100ms var(--ease-out), color 140ms ease, background-color 140ms ease;
}

.select-menu-item-label {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.select-menu-check {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green);
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 140ms ease, transform 160ms var(--ease-out);
}

.select-menu-item[aria-checked="true"] {
  color: var(--green);
  background: var(--green-soft);
}

.select-menu-item[aria-checked="true"] .select-menu-check {
  opacity: 1;
  transform: scale(1);
}

.select-menu-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 62%, white);
  outline-offset: -2px;
}

.select-menu-item:active {
  transform: scale(0.985);
}

.field-error {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 650;
}

.token-editor {
  display: grid;
  gap: 0.7rem;
}

.token-entry,
.token-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem;
  gap: 0.55rem;
  direction: rtl;
}

.token-input {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: none;
  color: var(--ink);
  background: var(--surface-solid);
  direction: rtl;
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.token-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.token-input[aria-invalid="true"] {
  border-color: var(--red);
}

.token-add {
  display: grid;
  width: 3.25rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-control);
  color: white;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(23, 107, 77, 0.18);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 110ms var(--ease-out), background-color 180ms ease;
  touch-action: manipulation;
}

.token-add:active {
  transform: scale(0.96);
  transition-duration: 90ms;
}

.token-list {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.token-list:empty {
  display: none;
}

.token-pill,
.token-chip {
  display: inline-flex;
  min-width: 0;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 999px;
  color: var(--ink);
  background: var(--green-soft);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.2;
}

.token-pill > span,
.token-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-remove {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, var(--surface-solid));
  font-size: 1rem;
  line-height: 1;
  transition: transform 110ms var(--ease-out), background-color 160ms ease;
  touch-action: manipulation;
}

.token-remove:active {
  transform: scale(0.9);
}

.next-host-field {
  margin-block-start: 0.2rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.recurrence-choices {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.contribution-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: grid;
  min-height: 5rem;
  align-content: center;
  padding: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-solid);
  transition: transform 110ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}

.choice label:active {
  transform: scale(0.985);
}

.choice input:checked + label {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice input:focus-visible + label {
  outline: 3px solid color-mix(in srgb, var(--green) 62%, white);
  outline-offset: 2px;
}

.choice strong {
  font-size: 0.9rem;
}

.choice small {
  margin-block-start: 0.18rem;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.toggle-row {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.toggle-copy {
  display: grid;
  min-width: 0;
}

.toggle-copy strong {
  font-size: 0.88rem;
}

.toggle-copy span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.switch {
  position: relative;
  width: 3.25rem;
  height: 1.95rem;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #cfd7d2;
  transition: background-color 180ms ease;
}

.switch-track::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0.2rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(16, 32, 25, 0.24);
  content: "";
  transform: translateY(-50%);
  transition: transform 220ms var(--ease-out);
}

.switch input:checked + .switch-track {
  background: var(--green);
}

.switch input:checked + .switch-track::after {
  transform: translate(-1.3rem, -50%);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid color-mix(in srgb, var(--green) 62%, white);
  outline-offset: 2px;
}

.optional-panel {
  margin-block-start: 0.6rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-muted);
}

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

.cost-rows {
  display: grid;
  gap: 0.55rem;
}

.cost-row,
.cost-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.8rem, 6.5rem) 3.25rem;
  gap: 0.45rem;
  direction: rtl;
}

.cost-entry-row {
  margin-block-start: 0.55rem;
}

.cost-row .input,
.cost-entry-row .input {
  min-height: 2.9rem;
}

.remove-row {
  width: 2.7rem;
  min-height: 2.7rem;
  justify-self: center;
}

.cost-add {
  width: 3.25rem;
  min-width: 3.25rem;
}

@media (max-width: 22rem) {
  .cost-row,
  .cost-entry-row {
    grid-template-columns: minmax(0, 1fr) 3.25rem;
  }

  .cost-row .input:first-child,
  .cost-entry-row .input:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .cost-row .input:nth-child(2),
  .cost-entry-row .input:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cost-row .remove-row,
  .cost-entry-row .cost-add {
    grid-column: 2;
    grid-row: 1;
  }
}

.cost-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 0.7rem;
  padding-block-start: 0.7rem;
  border-block-start: 1px solid var(--line);
  font-size: 0.84rem;
}

.cost-total strong {
  color: var(--green);
  font-size: 1rem;
}

.form-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-block-start: 1rem;
}

.form-actions .button {
  min-width: 0;
  flex: 1 1 8rem;
  line-height: 1.3;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-block-end: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(196, 62, 72, 0.16);
  border-radius: 1rem;
  color: #8f2c34;
  background: var(--red-soft);
  font-size: 0.84rem;
}

.alert ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.auth-card {
  width: min(100% - 2rem, 30rem);
  margin: 8vh auto 0;
  padding: 1.3rem;
  text-align: center;
}

.auth-card .brand-mark {
  width: 3.4rem;
  height: 3.4rem;
  margin-inline: auto;
  border-radius: 1.15rem;
}

.auth-card h1 {
  margin: 1rem 0 0;
  font-size: 1.6rem;
}

.auth-card p {
  margin: 0.45rem 0 1.2rem;
  color: var(--ink-soft);
}

.google-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.sheet {
  width: min(calc(100% - 1rem), 34rem);
  max-height: min(84vh, 42rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.75rem 1.75rem 1.2rem 1.2rem;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 90px rgba(16, 32, 25, 0.26);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
}

.sheet[open] {
  display: block;
  margin-block-end: max(0.5rem, env(safe-area-inset-bottom));
}

.sheet::backdrop {
  background: rgba(8, 18, 13, 0.34);
  backdrop-filter: blur(2px);
}

.sheet-handle-zone {
  display: grid;
  height: 2rem;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.sheet-handle {
  width: 2.6rem;
  height: 0.3rem;
  border-radius: 99px;
  background: rgba(16, 32, 25, 0.2);
}

.sheet-content {
  max-height: calc(84vh - 2rem);
  padding: 0.25rem 1.05rem max(1.1rem, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
}

.sheet-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sheet-intro {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.calendar-choice-list {
  display: grid;
  gap: 0.65rem;
}

.calendar-choice {
  display: grid;
  min-height: 4.5rem;
  grid-template-columns: 3rem minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  color: var(--ink);
  background: var(--surface-solid);
  transition: transform 110ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.calendar-choice:active {
  transform: scale(0.985);
}

.calendar-choice-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  color: var(--brand-ink);
  background: var(--brand-lilac);
  place-items: center;
}

.calendar-choice[data-calendar-provider="apple"] .calendar-choice-icon {
  background: var(--brand-apricot);
}

.calendar-choice-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.calendar-choice > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.calendar-choice strong {
  font-size: 1rem;
}

.calendar-choice small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.calendar-choice-arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .calendar-choice:hover {
    border-color: color-mix(in srgb, var(--brand-coral) 52%, var(--line));
    background: color-mix(in srgb, var(--surface-solid) 92%, var(--brand-apricot));
  }
}

.sheet .form-actions {
  position: sticky;
  inset-block-end: 0;
  padding-block-start: 0.8rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 75%, transparent);
}

.cost-breakdown-list {
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-muted);
}

.cost-breakdown-row {
  display: grid;
  min-height: 3.4rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-block-end: 1px solid var(--line);
}

.cost-breakdown-row:last-child {
  border-block-end: 0;
}

.cost-breakdown-row dt,
.cost-breakdown-row dd {
  min-width: 0;
  margin: 0;
}

.cost-breakdown-row dt {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.cost-breakdown-row dd {
  font-weight: 760;
  white-space: nowrap;
}

.cost-breakdown-total {
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: var(--green-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.cost-breakdown-total strong {
  color: var(--green);
  font-size: 1rem;
  white-space: nowrap;
}

.toast-region {
  position: fixed;
  inset-inline: 1rem;
  inset-block-end: calc(1rem + env(safe-area-inset-bottom));
  z-index: 300;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  display: flex;
  width: min(100%, 30rem);
  min-height: 3.4rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  color: white;
  background: rgba(16, 32, 25, 0.92);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(20px);
  transform-origin: bottom center;
  animation: toast-in 360ms var(--ease-out) both;
  pointer-events: auto;
}

.toast-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
}

.toast-message {
  min-width: 0;
  flex: 1;
  font-size: 0.82rem;
  font-weight: 650;
}

.toast-action {
  min-height: 2.3rem;
  padding: 0.4rem 0.65rem;
  color: #a9ebcf;
  background: transparent;
  font-size: 0.78rem;
}

.toast.is-leaving {
  animation: toast-out 220ms ease-in both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.98);
  }
}

.skeleton {
  overflow: hidden;
  border-radius: 0.4rem;
  color: transparent !important;
  background: linear-gradient(90deg, #e7ece9 25%, #f4f7f5 50%, #e7ece9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.error-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  text-align: center;
}

.error-page-inner {
  max-width: 29rem;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
}

.error-page p {
  margin: 0.7rem 0 1.3rem;
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
  color: var(--ink-faint);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

.privacy-page {
  width: min(100% - 2rem, 42rem);
}

.prose-card h1 {
  max-width: 100%;
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.prose-card section + section {
  margin-block-start: 1.25rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--line);
}

.prose-card h2 {
  margin: 0;
  font-size: 1rem;
}

.prose-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

[hidden] {
  display: none !important;
}

@media (min-width: 46rem) {
  .shell,
  .public-shell,
  .form-shell {
    width: min(100% - 3rem, var(--content));
  }

  .public-shell {
    width: min(100% - 3rem, var(--reading));
  }

  .form-shell {
    width: min(100% - 3rem, 49rem);
  }

  .landing-hero {
    grid-template-columns: 1.05fr 0.85fr;
    gap: 4rem;
  }

  .feature-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .outing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-outing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-outing-grid > .dashboard-hero-card:only-child,
  .dashboard-outing-grid > .dashboard-hero-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .outing-hero {
    padding: 1.6rem;
  }

  .card,
  .form-card {
    padding: 1.35rem;
  }

  .cost-row {
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 7rem) auto;
  }

  .cost-row .input:first-child,
  .cost-row .input:nth-child(2),
  .cost-row .remove-row {
    grid-column: auto;
    grid-row: auto;
  }

  .sheet {
    margin-block: auto 1rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .select-menu-trigger:hover:not(:disabled) {
    border-color: var(--green);
    background: color-mix(in srgb, var(--surface-solid) 90%, var(--green-soft));
  }

  .select-menu-item:hover {
    background: var(--surface-muted);
  }

  .select-menu-item[aria-checked="true"]:hover {
    background: color-mix(in srgb, var(--green-soft) 86%, var(--green) 14%);
  }

  .button-primary:hover,
  .token-add:hover {
    background: var(--green-pressed);
  }

  .button-secondary:hover,
  .icon-button:hover {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--surface-solid) 88%, var(--surface-muted));
  }

  .hero-actions .button:hover {
    background: rgba(9, 17, 14, 0.3);
  }

  .token-remove:hover {
    background: color-mix(in srgb, var(--green) 20%, var(--surface-solid));
  }

  .dashboard-hero-card:hover {
    box-shadow: 0 24px 62px rgba(17, 86, 62, 0.25);
  }

  .new-outing-button:hover {
    border-color: transparent;
    background: var(--green-pressed);
  }

  .rotation-name-button:hover,
  button.rotation-name:hover,
  [data-rotation-member]:hover,
  .show-more-button:hover,
  .detail-more:hover,
  [data-show-more]:hover,
  .list-toggle:hover {
    background: var(--green-soft);
  }
}

@media (max-width: 35rem) {
  .dashboard-outing-grid {
    gap: 0.6rem;
  }

  .outing-hero.dashboard-hero-card {
    min-height: 13.5rem;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
  }

  .dashboard-hero-card .hero-kicker {
    gap: 0.4rem;
  }

  .dashboard-hero-card .dashboard-outing-name {
    font-size: clamp(1.08rem, 5.2vw, 1.28rem);
    line-height: 1.22;
  }

  .dashboard-hero-card .status-pill {
    min-height: 1.45rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.62rem;
  }

  .dashboard-hero-card .countdown {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .dashboard-hero-card .exact-date {
    margin-block-start: 0.12rem;
    font-size: 0.64rem;
    line-height: 1.45;
  }

  .dashboard-hero-card .host-card {
    min-width: 0;
    gap: 0.4rem;
    padding: 0.45rem;
    border-radius: 0.85rem;
  }

  .dashboard-hero-card .avatar {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.72rem;
  }

  .dashboard-hero-card .host-copy span {
    font-size: 0.58rem;
  }

  .dashboard-hero-card .host-copy strong {
    font-size: 0.76rem;
  }

  .topbar {
    gap: 0.5rem;
  }

  .topbar .brand {
    flex: 1 1 0;
  }

  .topbar-actions {
    min-width: 0;
    flex: 0 0 auto;
  }

  .topbar .brand-copy small {
    display: none;
  }

  .topbar-actions .button-label {
    display: none;
  }

  .topbar-actions .button {
    width: 3rem;
    min-width: 3rem;
    padding-inline: 0;
  }

  .feature-strip,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --details-gap: 0.65rem;
    gap: var(--details-gap);
  }

  .info-card,
  .detail-card {
    min-height: 9rem;
    padding: 0.85rem;
  }

  .info-card-icon {
    margin-block-end: 0.85rem;
  }

  .info-card-value {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .details-grid:not(.details-grid--mosaic) .rotation-list li {
    gap: 0.3rem;
  }

  .details-grid:not(.details-grid--mosaic) .rotation-name-button {
    padding-inline: 0.2rem;
  }

  .check-list li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .landing-actions > .button {
    width: 100%;
  }

  .feature-strip {
    margin-block-end: 3rem;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading .button {
    width: 100%;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .recurrence-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contribution-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner-actions {
    gap: 0.4rem;
  }

  .owner-action {
    min-height: 3.15rem;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .wizard-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-step {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .cost-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cost-row .input:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .cost-row .input:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cost-row .remove-row {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 22rem) {
  .public-shell .topbar .brand-mark {
    display: none;
  }

  .public-shell .topbar .brand-copy > span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

html.is-large-text .shell,
html.is-large-text .public-shell,
html.is-large-text .form-shell,
html.is-large-text .privacy-page {
  width: min(calc(100% - 32px), var(--content));
}

html.is-large-text .public-shell {
  width: min(calc(100% - 32px), var(--reading));
}

html.is-large-text .form-shell {
  width: min(calc(100% - 32px), 49rem);
}

html.is-large-text .privacy-page {
  width: min(calc(100% - 32px), 42rem);
}

html.is-large-text .phone-stage {
  aspect-ratio: auto;
}

html.is-large-text .dashboard-outing-grid {
  grid-template-columns: minmax(0, 1fr);
}

html.is-large-text .dashboard-outing-grid > .dashboard-hero-card {
  grid-column: 1 / -1;
}

html.is-large-text .phone-screen,
html.is-large-text .phone-content {
  height: auto;
}

html.is-large-text .phone-content {
  grid-template-rows: auto;
}

html.is-large-text .topbar-wrap {
  padding-block: max(10px, env(safe-area-inset-top)) 10px;
}

html.is-large-text .topbar {
  min-height: 64px;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
}

html.is-large-text .brand {
  min-height: 48px;
  gap: 10px;
  flex: 1 1 0;
}

html.is-large-text .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

html.is-large-text .brand-mark svg {
  width: 28px;
  height: 28px;
}

html.is-large-text .brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

html.is-large-text .brand-copy > span {
  overflow: visible;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

html.is-large-text .topbar-actions {
  gap: 8px;
}

html.is-large-text .topbar-actions .button,
html.is-large-text .topbar-actions .icon-button,
html.is-large-text .topbar > .icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
}

html.is-large-text .public-shell .topbar .brand-mark {
  display: none;
}

html.is-large-text .page-main {
  padding-block: 24px 140px;
}

html.is-large-text .card,
html.is-large-text .form-card {
  padding: 20px;
  border-radius: 20px;
}

html.is-large-text .outing-card {
  gap: 20px;
  padding: 20px;
}

html.is-large-text .outing-card-header,
html.is-large-text .card-heading {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

html.is-large-text .outing-name {
  width: 100%;
  align-items: flex-start;
  gap: 12px;
}

html.is-large-text .outing-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

html.is-large-text .outing-icon svg {
  width: 24px;
  height: 24px;
}

html.is-large-text .outing-name h2,
html.is-large-text .outing-name h3 {
  overflow: visible;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

html.is-large-text .status-pill,
html.is-large-text .meta-pill {
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.25;
  white-space: normal;
}

html.is-large-text .outing-summary,
html.is-large-text .info-grid,
html.is-large-text .details-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

html.is-large-text .details-grid--mosaic {
  grid-template-areas:
    "items"
    "cost"
    "contribution";
  grid-template-rows: repeat(3, auto);
}

html.is-large-text .details-grid--mosaic-with-rotation {
  grid-template-areas:
    "items"
    "cost"
    "contribution"
    "rotation";
  grid-template-rows: repeat(4, auto);
}

html.is-large-text .summary-block,
html.is-large-text .info-card {
  min-width: 0;
  padding: 16px;
}

html.is-large-text .summary-value,
html.is-large-text .info-card-value {
  overflow-wrap: anywhere;
}

html.is-large-text .outing-hero {
  min-height: 0;
  padding: 24px;
}

html.is-large-text .host-card {
  gap: 12px;
  padding: 16px;
}

html.is-large-text .hero-actions .button {
  min-height: 64px;
  padding: 12px 14px;
}

html.is-large-text .floating-owner-bar {
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
}

html.is-large-text .floating-owner-bar .owner-actions {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
}

html.is-large-text .owner-action {
  min-height: 68px;
  padding: 8px;
  gap: 4px;
  font-size: 0;
  line-height: 1;
}

html.is-large-text .owner-action svg {
  width: 24px;
  height: 24px;
}

html.is-large-text .owner-action::after {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

html.is-large-text .owner-action[data-dialog-open="#postpone-sheet"]::after {
  content: "تأجيل";
}

html.is-large-text .owner-action[data-dialog-open="#swap-sheet"]::after {
  content: "تبديل";
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .sheet {
    opacity: 1;
    transform: none !important;
  }

  .progress-step::before {
    transform: none !important;
  }

  .toast {
    animation: reduced-fade-in 160ms ease-out both !important;
  }

  .toast.is-leaving {
    animation: reduced-fade-out 120ms ease-in both !important;
  }
}

@keyframes reduced-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reduced-fade-out {
  to { opacity: 0; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .floating-owner-bar .owner-actions,
  .sheet,
  .select-menu-popover,
  .host-card,
  .hero-actions .button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar,
  .floating-owner-bar .owner-actions,
  .sheet,
  .select-menu-popover,
  .phone-stage,
  .guest-follow-card {
    background: var(--surface-solid);
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(16, 32, 25, 0.26);
    --line-strong: rgba(16, 32, 25, 0.46);
  }

  .topbar,
  .card,
  .feature-card,
  .sheet,
  .guest-follow-card,
  .select-menu-trigger,
  .select-menu-popover,
  .floating-owner-bar .owner-actions {
    border-width: 1.5px;
    background: var(--surface-solid);
  }

  .lead,
  .summary-label,
  .field-hint,
  .card-heading p {
    color: var(--ink);
  }
}

/* MyOutings identity system */
.topbar {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(247, 243, 237, 0.78);
  box-shadow: 0 10px 34px rgba(48, 40, 62, 0.075);
}

.brand {
  font-weight: 700;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 0;
  color: var(--brand-ink);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img,
.brand-mark svg {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  width: clamp(9.75rem, 21vw, 10.75rem);
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
}

.brand-lockup > img,
.brand-lockup > svg,
.brand-lockup > div,
.brand-lockup canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
}

/* The packaged icon motion keeps the icon inside a wide 1000×600 stage. */
[data-brand-mark-motion] > svg {
  width: 100%;
  height: 100%;
  transform: scale(1.7);
  transform-origin: center;
}

.brand-lockup[data-brand-mark-motion] > svg {
  transform: scale(2.05);
  transform-origin: center;
}

.brand-copy > span {
  font-size: 1.08rem;
  font-weight: 700;
}

.landing-lockup {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin-inline: auto;
  margin-block-end: clamp(1.4rem, 4vw, 2.4rem);
}

.theme-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.theme-toggle .theme-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.2rem;
  height: 1.2rem;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

.theme-toggle .theme-icon-sun {
  transform: translate(-50%, -50%) rotate(-35deg) scale(0.58);
  visibility: hidden;
  opacity: 0;
}

html.theme-is-changing body,
html.theme-is-changing .topbar,
html.theme-is-changing .card,
html.theme-is-changing .detail-card,
html.theme-is-changing .optional-panel,
html.theme-is-changing .button,
html.theme-is-changing .icon-button,
html.theme-is-changing .input,
html.theme-is-changing .textarea,
html.theme-is-changing .select,
html.theme-is-changing .select-menu-trigger,
html.theme-is-changing .switch-track {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 360ms;
  transition-timing-function: var(--ease-out);
}

html[data-theme="light"] .theme-toggle .theme-icon-moon {
  transform: translate(-50%, -50%) rotate(28deg) scale(0.58);
  visibility: hidden;
  opacity: 0;
}

html[data-theme="light"] .theme-toggle .theme-icon-sun {
  transform: translate(-50%, -50%) rotate(0) scale(1);
  visibility: visible;
  opacity: 1;
}

html[data-theme="light"] .brand-mark img {
  content: url("./brand/symbol-duo.svg");
}

html[data-theme="light"] .landing-lockup,
html[data-theme="light"] .brand-lockup > img {
  content: url("./brand/logo-ar-en-right-duo.svg");
}

html[data-theme="light"] .auth-logo {
  content: url("./brand/logo-stacked-duo.svg");
}

.auth-card-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-block-end: 0.35rem;
}

.auth-logo {
  width: min(72%, 12.5rem);
  height: auto;
  margin: 0 auto 1.5rem;
}

.display-title {
  max-width: none;
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 6.1rem);
  white-space: nowrap;
}

html.is-large-text .display-title {
  overflow-wrap: anywhere;
  white-space: normal;
}

.display-title span {
  color: var(--brand-coral);
}

.eyebrow,
.button-quiet,
.show-more-button,
.detail-more,
[data-show-more],
.list-toggle,
.cost-total strong,
.cost-breakdown-total strong {
  color: var(--brand-ink);
}

.eyebrow-dot {
  background: var(--brand-coral);
  box-shadow: 0 0 0 0.3rem rgba(200, 98, 69, 0.12);
}

.button-primary,
.token-add,
.new-outing-button {
  color: var(--brand-paper);
  background: var(--brand-ink);
  box-shadow: 0 8px 22px rgba(48, 40, 62, 0.2);
}

.button-secondary,
.icon-button {
  border-color: rgba(48, 40, 62, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.feature-card,
.card,
.guest-follow-card,
.form-card {
  border-color: rgba(48, 40, 62, 0.095);
  background: rgba(255, 255, 255, 0.9);
}

.feature-icon,
.info-card-icon {
  color: var(--brand-ink);
  background: var(--brand-lilac);
}

.feature-card:nth-child(even) .feature-icon {
  background: var(--brand-apricot);
}

.phone-stage {
  border-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, #fbfaf7 0%, #b8b0bd 42%, #f7f3ed 72%, #807888 100%);
  box-shadow: 0 34px 90px rgba(48, 40, 62, 0.2), inset 0 1px 0 white, inset 0 -1px 0 rgba(48, 40, 62, 0.28);
}

.phone-stage::before {
  background: var(--brand-black);
}

.phone-screen {
  border-color: var(--brand-black);
}

.phone-content .outing-hero {
  box-shadow: 0 14px 38px rgba(48, 40, 62, 0.22);
}

.dashboard-hero-card,
.outing-hero {
  color: var(--brand-paper);
  background-color: var(--brand-ink);
  background-image:
    linear-gradient(145deg, rgba(48, 40, 62, 0.96), rgba(48, 40, 62, 0.95)),
    url("./brand/pattern-white.svg");
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: cover, 25rem auto;
  box-shadow: 0 22px 58px rgba(48, 40, 62, 0.22);
}

.dashboard-hero-card::after,
.outing-hero::before,
.outing-hero::after {
  display: none;
}

.outing-hero.dashboard-hero-card {
  box-shadow: 0 18px 48px rgba(48, 40, 62, 0.22);
}

.dashboard-hero-card .summary-label,
.dashboard-hero-card .status-pill,
.dashboard-hero-card .dashboard-outing-name,
.hero-kicker,
.exact-date,
.host-copy span,
.hero-actions .button {
  color: var(--brand-paper);
}

.dashboard-hero-card .status-pill,
.dashboard-hero-card .summary-block,
.hero-kicker .status-pill,
.host-card,
.hero-actions .button {
  border-color: rgba(247, 243, 237, 0.2);
  background: rgba(25, 23, 29, 0.2);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.dashboard-hero-card .countdown {
  color: rgba(247, 243, 237, 0.86);
}

.dashboard-hero-card .exact-date {
  color: rgba(247, 243, 237, 0.68);
}

.avatar {
  color: var(--brand-ink);
  background: var(--brand-paper);
}

.status-pill,
.meta-pill,
.check-dot,
.token-pill,
.token-chip {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-lilac) 78%, white);
}

.outing-icon,
.rotation-list li:first-child .rotation-number,
.guest-follow-icon {
  color: var(--brand-paper);
  background: var(--brand-ink);
}

.detail-items {
  background: color-mix(in srgb, white 92%, var(--brand-lilac));
}

.detail-cost {
  background: color-mix(in srgb, white 91%, var(--brand-apricot));
}

.detail-contribution {
  background: color-mix(in srgb, white 94%, var(--brand-apricot));
}

.detail-rotation {
  background: color-mix(in srgb, white 94%, var(--brand-lilac));
}

.info-card-icon,
.detail-card:nth-child(even) .info-card-icon {
  background: var(--brand-lilac);
}

.detail-contribution .info-card-icon,
.detail-cost .info-card-icon {
  background: var(--brand-apricot);
}

.owner-panel {
  border-color: rgba(48, 40, 62, 0.1);
  background: color-mix(in srgb, var(--brand-lilac) 42%, white);
}

.share-strip,
.optional-panel,
.summary-block,
.cost-breakdown-list {
  background: color-mix(in srgb, var(--brand-paper) 72%, white);
}

.floating-owner-bar .owner-actions {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(247, 243, 237, 0.86);
}

.progress-step.is-active {
  color: var(--brand-coral);
}

.progress-step.is-active::before {
  background: var(--brand-coral);
  box-shadow: 0 0 0 0.28rem rgba(200, 98, 69, 0.14);
}

.progress-step.is-done::before {
  background: var(--brand-ink);
}

.input,
.textarea,
.select,
.select-menu-trigger,
.token-input,
.choice label {
  border-color: rgba(48, 40, 62, 0.18);
  background: rgba(255, 255, 255, 0.88);
}

.input:focus,
.textarea:focus,
.select:focus,
.select-menu-trigger[aria-expanded="true"],
.token-input:focus {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(48, 40, 62, 0.12);
}

.select-menu-popover {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(247, 243, 237, 0.94);
  box-shadow: 0 20px 62px rgba(48, 40, 62, 0.2), 0 2px 8px rgba(48, 40, 62, 0.08);
}

.select-menu-item[aria-checked="true"],
.choice input:checked + label {
  color: var(--brand-ink);
  border-color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-lilac) 72%, white);
}

.choice input:checked + label {
  box-shadow: inset 0 0 0 1px var(--brand-ink);
}

.switch-track {
  border: 1px solid color-mix(in srgb, var(--brand-muted) 48%, white);
  background: color-mix(in srgb, var(--brand-muted) 56%, white);
  box-shadow: inset 0 1px 2px rgba(48, 40, 62, 0.16);
}

.switch input:checked + .switch-track {
  border-color: color-mix(in srgb, var(--brand-coral) 82%, var(--brand-ink));
  background: var(--brand-coral);
}

.switch-track::after {
  border: 1px solid rgba(48, 40, 62, 0.12);
  background: var(--brand-paper);
  box-shadow: 0 2px 8px rgba(48, 40, 62, 0.3);
}

.icon-button.token-add,
.icon-button.new-outing-button {
  color: var(--brand-paper);
  border-color: transparent;
  background: var(--brand-ink);
}

.token-remove {
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.68);
}

.sheet {
  border-color: rgba(48, 40, 62, 0.1);
  background: rgba(247, 243, 237, 0.94);
  box-shadow: 0 26px 96px rgba(48, 40, 62, 0.28);
}

.sheet .form-actions {
  background: linear-gradient(to top, rgba(247, 243, 237, 0.98) 75%, transparent);
}

.sheet-handle {
  background: rgba(48, 40, 62, 0.22);
}

.cost-breakdown-total {
  background: var(--brand-lilac);
}

.toast {
  color: var(--brand-paper);
  background: rgba(48, 40, 62, 0.94);
}

.toast-icon {
  color: var(--brand-paper);
  background: var(--brand-coral);
}

.toast-action {
  color: var(--brand-apricot);
}

/* Opening mark motion */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(219, 210, 231, 0.68), transparent 19rem),
    var(--brand-paper);
  opacity: 1;
  transition: opacity 320ms ease, visibility 320ms ease;
}

html.pwa-launch-preparing .brand-intro[hidden] {
  display: grid !important;
}

html.pwa-launch-preparing .brand-intro-mark > img {
  opacity: 0;
}

.brand-intro::after {
  position: absolute;
  inset: 0;
  background: url("./brand/pattern-ink.svg") center / 28rem auto repeat;
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

.brand-intro.is-leaving,
.brand-intro[data-state="leaving"] {
  visibility: hidden;
  opacity: 0;
}

.brand-intro-mark {
  position: relative;
  z-index: 1;
  width: min(82vw, 30rem);
  aspect-ratio: 5 / 3;
}

.brand-intro-mark > img,
.brand-intro-mark > svg,
.brand-intro-mark > div,
.brand-intro-mark canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Confirmed outing creation flow */
.creation-flow {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(25, 23, 29, 0.48);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  animation: brand-overlay-in 300ms ease-out both;
}

.creation-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 27rem);
  min-height: 24rem;
  align-content: center;
  justify-items: center;
  gap: 1.45rem;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2rem;
  color: var(--brand-ink);
  background: rgba(247, 243, 237, 0.96);
  box-shadow: 0 30px 100px rgba(25, 23, 29, 0.32);
  animation: brand-panel-in 420ms var(--ease-out) both;
}

.creation-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./brand/pattern-ink.svg") center / 28rem auto repeat;
  content: "";
  opacity: 0.025;
}

.creation-brand-motion,
.creation-success {
  display: grid;
  width: 7.25rem;
  height: 7.25rem;
  place-items: center;
}

.creation-brand-motion {
  overflow: hidden;
  border-radius: 1.75rem;
}

.creation-brand-motion > img,
.creation-brand-motion > svg,
.creation-brand-motion > div,
.creation-brand-motion canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-creation-motion] > svg {
  width: 100%;
  height: 100%;
  transform: scale(1.7);
  transform-origin: center;
}

.creation-success {
  color: var(--brand-ink);
  animation: creation-success-in 480ms var(--ease-out) both;
}

.creation-success svg {
  width: 6.25rem;
  height: 6.25rem;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.creation-success circle,
.creation-success path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: creation-line 620ms var(--ease-out) forwards;
}

.creation-success path {
  stroke: var(--brand-coral);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation-delay: 260ms;
}

.creation-status-wrap {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 0.8rem;
}

.creation-status {
  min-height: 2rem;
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.creation-progress {
  width: min(100%, 18rem);
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-lilac);
}

.creation-progress > span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-ink);
  transition: width 440ms var(--ease-out), background-color 180ms ease;
}

.creation-error {
  max-width: 24rem;
  margin: 0;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
}

/* Install prompts: direct Android install and guided iOS steps */
.pwa-install-card {
  position: fixed;
  z-index: 260;
  inset-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: min(calc(100% - 2rem), 32rem);
  margin-inline: auto;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.35rem;
  color: var(--brand-ink);
  background: rgba(247, 243, 237, 0.94);
  box-shadow: 0 20px 64px rgba(48, 40, 62, 0.24);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  animation: pwa-card-in 440ms var(--ease-out) both;
}

.pwa-install-card > img,
.pwa-install-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.92rem;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(48, 40, 62, 0.14);
}

.pwa-install-card.is-leaving {
  pointer-events: none;
  animation: pwa-card-out 220ms ease-in both;
}

.pwa-install-copy {
  min-width: 0;
}

.pwa-install-copy strong,
.pwa-install-copy h2,
.pwa-install-copy p {
  margin: 0;
}

.pwa-install-copy strong,
.pwa-install-copy h2 {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.pwa-install-copy p {
  margin-block-start: 0.12rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.pwa-install-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.pwa-install-actions .button {
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
}

.pwa-install-close {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 110ms var(--ease-out), color 160ms ease, background-color 160ms ease;
  touch-action: manipulation;
}

.pwa-install-close:active {
  transform: scale(0.94);
}

.pwa-ios-steps {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  margin: 0;
  border-radius: 1rem;
  color: var(--brand-ink);
  background: rgba(219, 210, 231, 0.58);
  font-size: 0.8rem;
  line-height: 1.6;
  list-style-position: inside;
}

.pwa-ios-steps li::marker {
  color: var(--brand-coral);
  font-weight: 700;
}

/* Quiet, one-time page materialization; interactive elements never drift on hover. */
body > main {
  animation: brand-page-in 460ms var(--ease-out) both;
}

.card,
.feature-card,
.dashboard-hero-card,
.detail-card,
.guest-follow-card {
  animation: brand-card-in 420ms var(--ease-out) both;
}

@keyframes brand-page-in {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-card-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brand-panel-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes creation-success-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes creation-line {
  to { stroke-dashoffset: 0; }
}

@keyframes pwa-card-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pwa-card-out {
  to {
    opacity: 0;
    transform: translateY(0.65rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover,
  .token-add:hover,
  .new-outing-button:hover {
    color: var(--brand-paper);
    background: var(--green-pressed);
  }

  .dashboard-hero-card:hover {
    box-shadow: 0 24px 64px rgba(48, 40, 62, 0.26);
  }

  .hero-actions .button:hover {
    background: rgba(25, 23, 29, 0.34);
  }
}

@media (max-width: 35rem) {
  .landing-copy {
    text-align: center;
  }

  .landing-lockup {
    width: min(70vw, 12.75rem);
    margin-inline: auto;
  }

  .landing-copy .lead {
    margin-inline: auto;
  }

  .landing-copy .landing-actions {
    justify-content: center;
  }

  .brand-lockup {
    width: min(43vw, 10rem);
  }

  .pwa-install-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pwa-install-actions {
    width: 100%;
  }

  .pwa-install-actions .button {
    flex: 1;
  }

  .creation-panel {
    min-height: min(24rem, calc(100vh - 2rem));
    border-radius: 1.65rem;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: var(--brand-paper);
  --ink-soft: #c6bdca;
  --ink-faint: #a89ead;
  --canvas: var(--brand-black);
  --surface: rgba(48, 40, 62, 0.84);
  --surface-solid: var(--brand-ink);
  --surface-muted: #3c3349;
  --line: rgba(247, 243, 237, 0.1);
  --line-strong: rgba(247, 243, 237, 0.2);
  --green: var(--brand-lilac);
  --green-pressed: #c8bdd8;
  --green-soft: #463b55;
  --amber: #f0b49f;
  --amber-soft: #4e302b;
  --red: #ffadb4;
  --red-soft: #4b2830;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 16px 42px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 98, 69, 0.15), transparent 32rem),
    radial-gradient(circle at 0% 72%, rgba(219, 210, 231, 0.1), transparent 38rem),
    var(--canvas);
}

html[data-theme="dark"] .skip-link {
  color: var(--brand-paper);
  background: var(--brand-ink);
}

html[data-theme="dark"] .mini-button {
  color: var(--brand-ink);
  background: var(--brand-paper);
}

html[data-theme="dark"] .alert {
  color: #ffd7da;
  border-color: rgba(255, 173, 180, 0.28);
  background: var(--red-soft);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .button-quiet,
html[data-theme="dark"] .show-more-button,
html[data-theme="dark"] .detail-more,
html[data-theme="dark"] [data-show-more],
html[data-theme="dark"] .list-toggle,
html[data-theme="dark"] .cost-total strong,
html[data-theme="dark"] .cost-breakdown-total strong {
  color: var(--brand-lilac);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .floating-owner-bar .owner-actions {
  border-color: rgba(247, 243, 237, 0.09);
  background: rgba(48, 40, 62, 0.78);
}

html[data-theme="dark"] .brand-mark img {
  content: url("./brand/symbol-white.svg");
}

html[data-theme="dark"] .landing-lockup,
html[data-theme="dark"] .brand-lockup > img {
  content: url("./brand/logo-ar-en-right-white.svg");
}

html[data-theme="dark"] .auth-logo {
  content: url("./brand/logo-stacked-white.svg");
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .token-add,
html[data-theme="dark"] .new-outing-button {
  color: var(--brand-black);
  background: var(--brand-lilac);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .token-add {
  color: var(--brand-ink);
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .select,
html[data-theme="dark"] .select-menu-trigger,
html[data-theme="dark"] .token-input,
html[data-theme="dark"] .choice label {
  border-color: rgba(247, 243, 237, 0.13);
  background: rgba(48, 40, 62, 0.88);
}

html[data-theme="dark"] .icon-button.token-add,
html[data-theme="dark"] .icon-button.new-outing-button {
  color: var(--brand-paper);
  border-color: rgba(247, 243, 237, 0.16);
  background: var(--brand-coral);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .switch-track {
  border-color: rgba(247, 243, 237, 0.25);
  background: #5b5265;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .switch input:checked + .switch-track {
  border-color: #e7a791;
  background: var(--brand-coral);
}

html[data-theme="dark"] .switch-track::after {
  border-color: rgba(48, 40, 62, 0.2);
  background: var(--brand-paper);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .guest-follow-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .detail-items,
html[data-theme="dark"] .detail-cost,
html[data-theme="dark"] .detail-contribution,
html[data-theme="dark"] .detail-rotation {
  border-color: rgba(247, 243, 237, 0.085);
  background: rgba(48, 40, 62, 0.82);
}

html[data-theme="dark"] .outing-icon,
html[data-theme="dark"] .rotation-list li:first-child .rotation-number,
html[data-theme="dark"] .guest-follow-icon {
  color: var(--brand-black);
  background: var(--brand-lilac);
}

html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .meta-pill,
html[data-theme="dark"] .check-dot,
html[data-theme="dark"] .token-pill,
html[data-theme="dark"] .token-chip,
html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .info-card-icon {
  color: var(--brand-paper);
  background: #463b55;
}

html[data-theme="dark"] .feature-card:nth-child(even) .feature-icon,
html[data-theme="dark"] .detail-contribution .info-card-icon,
html[data-theme="dark"] .detail-cost .info-card-icon {
  color: var(--brand-paper);
  background: #5a3c3a;
}

html[data-theme="dark"] .owner-panel,
html[data-theme="dark"] .share-strip,
html[data-theme="dark"] .optional-panel,
html[data-theme="dark"] .summary-block,
html[data-theme="dark"] .cost-breakdown-list {
  border-color: rgba(247, 243, 237, 0.08);
  background: rgba(48, 40, 62, 0.7);
}

html[data-theme="dark"] .progress-step.is-active { color: #e7a791; }
html[data-theme="dark"] .progress-step.is-active::before { background: var(--brand-coral); }
html[data-theme="dark"] .progress-step.is-done::before { background: var(--brand-lilac); }

html[data-theme="dark"] .select-menu-popover,
html[data-theme="dark"] .sheet {
  color: var(--brand-paper);
  border-color: rgba(247, 243, 237, 0.1);
  background: rgba(48, 40, 62, 0.96);
}

html[data-theme="dark"] .sheet .form-actions {
  background: linear-gradient(to top, rgba(48, 40, 62, 0.99) 75%, transparent);
}

html[data-theme="dark"] ::selection {
  color: var(--brand-black);
  background: var(--brand-lilac);
}

html[data-theme="dark"] .sheet-handle {
  background: rgba(247, 243, 237, 0.38);
}

html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .textarea::placeholder,
html[data-theme="dark"] .token-input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

html[data-theme="dark"] .select-menu-item[aria-checked="true"],
html[data-theme="dark"] .choice input:checked + label,
html[data-theme="dark"] .cost-breakdown-total {
  color: var(--brand-paper);
  border-color: var(--brand-lilac);
  background: #463b55;
}

html[data-theme="dark"] .creation-panel,
html[data-theme="dark"] .pwa-install-card {
  color: var(--brand-paper);
  border-color: rgba(247, 243, 237, 0.11);
  background: rgba(48, 40, 62, 0.97);
}

html[data-theme="dark"] .brand-intro {
  background:
    radial-gradient(circle at 50% 42%, rgba(200, 98, 69, 0.16), transparent 19rem),
    var(--brand-black);
}

html[data-theme="dark"] .brand-intro-mark > img,
html[data-theme="dark"] .creation-brand-motion > img {
  content: url("./brand/symbol-white.svg");
}

html[data-theme="dark"] .creation-success { color: var(--brand-paper); }
html[data-theme="dark"] .creation-progress { background: #4a4058; }
html[data-theme="dark"] .creation-progress > span { background: var(--brand-lilac); }
html[data-theme="dark"] .pwa-install-copy p { color: #c6bdca; }

html[data-theme="dark"] .pwa-ios-steps {
  color: var(--brand-paper);
  background: rgba(219, 210, 231, 0.12);
}

@media (prefers-contrast: more) {
  html[data-theme="dark"] {
    --line: rgba(244, 247, 245, 0.34);
    --line-strong: rgba(244, 247, 245, 0.58);
  }

  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .feature-card,
  html[data-theme="dark"] .sheet,
  html[data-theme="dark"] .guest-follow-card,
  html[data-theme="dark"] .select-menu-trigger,
  html[data-theme="dark"] .select-menu-popover,
  html[data-theme="dark"] .floating-owner-bar .owner-actions {
    border-color: var(--line-strong);
  }
}

@media (max-width: 35rem) {
  .topbar-actions {
    gap: 0.4rem;
  }

  .topbar-actions .icon-button,
  .topbar > .icon-button {
    --mobile-icon-background: rgba(255, 255, 255, 0.82);
    --mobile-icon-border: rgba(48, 40, 62, 0.12);
    --mobile-icon-shadow: none;
    position: relative;
    isolation: isolate;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-color: transparent;
    border-radius: 0.9rem;
    background: transparent;
    box-shadow: none;
  }

  .topbar-actions .icon-button::before,
  .topbar > .icon-button::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0.125rem;
    border: 1px solid var(--mobile-icon-border);
    border-radius: 0.78rem;
    background: var(--mobile-icon-background);
    box-shadow: var(--mobile-icon-shadow);
  }

  .topbar-actions .new-outing-button {
    --mobile-icon-background: var(--brand-ink);
    --mobile-icon-border: transparent;
    --mobile-icon-shadow: 0 6px 16px rgba(48, 40, 62, 0.2);
  }

  html[data-theme="dark"] .topbar-actions .icon-button,
  html[data-theme="dark"] .topbar > .icon-button {
    --mobile-icon-background: rgba(48, 40, 62, 0.88);
    --mobile-icon-border: rgba(247, 243, 237, 0.13);
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="dark"] .topbar-actions .new-outing-button {
    --mobile-icon-background: var(--brand-coral);
    --mobile-icon-border: rgba(247, 243, 237, 0.16);
    --mobile-icon-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 22rem) {
  .topbar {
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
  }

  .topbar-actions {
    gap: 0.35rem;
  }

  .topbar-actions .icon-button,
  .topbar > .icon-button {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .brand-lockup {
    width: 7.25rem;
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > main,
  .card,
  .feature-card,
  .dashboard-hero-card,
  .detail-card,
  .guest-follow-card,
  .brand-intro,
  .creation-flow,
  .creation-panel,
  .creation-success,
  .pwa-install-card {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .pwa-install-card.is-leaving {
    opacity: 0;
  }

  .creation-success circle,
  .creation-success path {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .floating-owner-bar .owner-actions,
  .creation-panel,
  .pwa-install-card {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .creation-flow {
    background: color-mix(in srgb, var(--brand-black) 88%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
