:root {
  --bg-color: #fffcee;
  --text-color: #3f3f3f;
  --accent-color: #168253;
  --info-color: #0071bd;
  --danger-color: #b91c1c;
  --link-color: #209ed5;
  --pill-color: #e9ffe4;
  --box-bg: #ffffff;
  --radius: 14px;
  --box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  --anchor-offset: 86px;
  --maxw: 1100px;
  --c-text: #1e1e1e;
  --c-muted: #1e1e1e;
  --ui-bg: #fffcee;
  --ui-card: #ffffff;
  --ui-text: #111827;
  --ui-muted: #6b7280;
  --ui-border: #e5e7eb;
  --ui-green: #168253;
  --ui-green-soft: #dff2ea;

  --font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/nunito-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/nunito-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/nunito-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; box-sizing: border-box; font-size: 16px; font-family: var(--font-family); }

body{
  font-family: var(--font-family);
  color:var(--c-text);
  background:var(--bg-color);
  line-height:1.5;
  margin: 0;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto 1.2rem;
  padding: 0 1rem;
}

.content {
  padding: 1rem .55rem;
  background: var(--bg-color);
  color: var(--c-text);
}

@media (min-width: 769px) {
  .content {
    padding: 1rem 2rem;
  }
}

.page-title {
  text-align: center;
}

.page-title a {
  display: block;
  width: fit-content;
  margin: .5rem auto;
}

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

@media (min-width: 769px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 950px) {
  .grid {
    grid-template-columns: 1.2fr 1.6fr 1.2fr;
  }

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

.row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.names-grid {
  display: grid;
  grid-template-columns: 44px 100px 1fr;
  gap: .5rem 1rem;
  align-items: center;
}

.names-grid--header {
  font-weight: 700;
  color: #64748b;
  margin-bottom: .25rem;
}

.names-grid--header > div {
  padding-bottom: .25rem;
  border-bottom: 1px solid #e9eef3;
}

.names-row {
  display: contents;
}

.names-col.idx {
  text-align: right;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.names-col input {
  width: 100%;
}

.invite-grid {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: .5rem 1rem;
  align-items: center;
}

.invite-grid--header {
  font-weight: 700;
  color: #64748b;
  margin-bottom: .25rem;
}

.invite-grid--header > div {
  padding-bottom: .25rem;
  border-bottom: 1px solid #e9eef3;
}

.invite-row {
  display: contents;
}

.invite-col.idx {
  text-align: right;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.invite-col input {
  width: 100%;
}

@media (max-width: 520px) {
  .names-grid {
    grid-template-columns: 32px 1fr;
  }

  .invite-grid {
    grid-template-columns: 32px 1fr 1fr;
  }
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfe2d2;
  border-radius: 999px;
  padding: .58rem .95rem;
  background: var(--ui-green-soft);
  color: #0f5132;
  font-weight: 700;
  font-size: .9rem;
  user-select: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .06s ease;
}

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

.pill span {
  display: inline-block;
  font-weight: 700;
}

.pill:has(input:checked) {
  background: var(--ui-green);
  border-color: var(--ui-green);
  color: #fff;
}

.muted {
  color: var(--ui-muted);
}

.card {
  background: var(--ui-card);
  border-radius: 20px;
  border: 1px solid #dde5ec;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  padding: 1rem 1.05rem;
  margin: 1rem 0;
}

.card h2,
.card h3 {
  margin: 0 0 .8rem;
}

.card .card__header {
  padding: .15rem 0 .65rem;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: .25rem;
}

.card .card__body {
  padding: .5rem 0 .15rem;
}

.card .card__footer {
  padding-top: .85rem;
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .card .card__footer {
    justify-content: center;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .64rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .84rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.toolbar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-table {
  justify-content: center;
  margin-top: 1rem;
}

.switch {
  --h: 30px;
  --w: 54px;
  --knob: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  user-select: none;
}

.switch .slider {
  display: inline-block;
  width: var(--w);
  height: var(--h);
  border-radius: calc(var(--h) / 2);
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: var(--knob);
  height: var(--knob);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  transition: left .18s ease;
}

.switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: var(--w);
  height: var(--h);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch input[type="checkbox"]:checked + .slider {
  background: var(--ui-green);
  border-color: var(--ui-green);
}

.switch input[type="checkbox"]:checked + .slider::before {
  left: calc(var(--w) - var(--knob) - 3px);
}

.switch .switch-text {
  font-size: .92rem;
  color: #64748b;
}

.switch input[type="checkbox"]:checked ~ .switch-text {
  color: var(--ui-green);
}

.switch-text {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0;
}

.note {
  border: 1px solid #bfdbfe;
  border-left-width: 4px;
  border-left-color: #3b82f6;
  border-radius: 12px;
  background: #eff6ff;
  padding: .7rem .78rem;
  color: #1e293b;
}

.note-danger {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background: #fff1f2;
}

.wl-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  display: flex;
  gap: .5rem;
  counter-reset: step;
}

.wl-stepper li {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  background: #eef2f7;
  color: #475569;
  border-radius: 999px;
  padding: .4rem .5rem;
  position: relative;
}

.wl-stepper li.is-active {
  background: var(--ui-green);
  color: #fff;
}

.wl-step {
  display: none;
}

.wl-step.is-active {
  display: block;
}

.wl-stepper-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  justify-content: center;
  margin-top: .75rem;
}

.help {
  margin: .5rem 0 1rem;
}

.help summary {
  cursor: pointer;
  color: var(--ui-green);
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.help summary::before {
  content: "▸";
  display: inline-block;
  transform: translateY(1px);
}

.help[open] summary {
  color: var(--ui-green);
}

.help[open] summary::before {
  content: "▾";
}

.help .help-body {
  margin-top: .35rem;
  font-size: .95rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
  padding: 0 1rem;
}

input,
textarea,
select {
  font: inherit;
  border-radius: 12px;
  border: 1px solid #d6dce3;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input,
select {
  min-height: 44px;
  padding: .65rem .75rem;
}

textarea {
  width: 100%;
  min-height: 11rem;
  resize: vertical;
  padding: .65rem .75rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #9dc8b5;
  box-shadow: 0 0 0 3px rgba(22, 130, 83, .12);
}

.modal input[type="text"],
.modal input[type="email"] {
  width: 100%;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  color: var(--c-text);
  padding-right: 2.25rem;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2' fill='none' stroke='%23168253' stroke-width='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' stroke='%23168253' stroke-width='2'/%3E%3Cline x1='8' y1='2' x2='8' y2='6' stroke='%23168253' stroke-width='2'/%3E%3Cline x1='3' y1='10' x2='21' y2='10' stroke='%23168253' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1.1rem;
}

fieldset.settings input[type="date"] {
  width: calc(100% - 5rem);
  text-align: center;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: center;
}

input[type="date"]:-webkit-autofill {
  -webkit-text-fill-color: var(--c-text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

button,
.btn,
a.btn-secondary {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .66rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--ui-green);
  background: var(--ui-green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-family);
  transition: filter .16s ease, transform .1s ease, box-shadow .16s ease, border-color .16s ease;
}

button:hover,
.btn:hover,
a.btn-secondary:hover {
  filter: brightness(.98);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

.btn-secondary,
a.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cfd8df !important;
  font-weight: 700 !important;
}

.btn-secondary:hover,
a.btn-secondary:hover {
  color: #0f172a;
  background: #f8fafc;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

button[disabled],
button.is-disabled {
  background: #cbd5e1 !important;
  color: #fff !important;
  border-color: #cbd5e1 !important;
  opacity: 1;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}

button[disabled]:hover,
button[disabled]:active,
button.is-disabled:hover,
button.is-disabled:active {
  background: #cbd5e1 !important;
  transform: none !important;
}

.btn-danger:hover {
  filter: brightness(.95);
}

.btn-danger:active {
  transform: translateY(1px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .8rem .95rem;
}

.btn-icon svg {
  display: block;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}

.btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .5em;
  vertical-align: -0.125em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-btn-spin .8s linear infinite;
}

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

form.inline {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: end;
}

@media (max-width: 768px) {
  form.inline input {
    width: 100%;
  }

  form.inline button {
    margin: 0 auto;
  }
}

fieldset.settings {
  border: 1px solid #e4e9ef;
  border-radius: 18px;
  padding: .8rem;
  margin: .5rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: #fff;
}

fieldset.settings textarea {
  border: 0;
}

fieldset.settings input {
  border: 0;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  width: calc(100% - 1.7rem);
}

fieldset.settings legend {
  margin-bottom: 10px;
  text-align: center;
}

fieldset.settings input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: .75rem;
}

.dialog[hidden] {
  display: none;
}

.dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}

.dialog__panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(248, 251, 255, .99));
  color: var(--c-text);
  width: min(560px, calc(100vw - 1rem));
  max-height: min(90dvh, 820px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid #d9e3ec;
  box-shadow: 0 28px 54px rgba(2, 8, 23, .24);
  padding: 1rem 1.1rem;
  transform: translateY(10px);
  opacity: .94;
  transition: transform .2s ease, opacity .2s ease;
}

.dialog.is-open .dialog__backdrop {
  opacity: 1;
}

.dialog.is-open .dialog__panel {
  transform: translateY(0);
  opacity: 1;
}

.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #e8eef4;
}

.dialog__title {
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0;
}

.dialog__body {
  padding: .78rem 0 .36rem;
  display: grid;
  gap: .72rem;
}

.dialog__body > :first-child {
  margin-top: 0;
}

.dialog__body > :last-child {
  margin-bottom: 0;
}

.dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
  padding-top: .78rem;
  border-top: 1px solid #e8eef4;
}

.dialog__footer--between {
  justify-content: space-between;
}

.dialog__actions {
  justify-content: flex-end;
}

.dialog__stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dialog__legend {
  font-weight: 700;
}

.dialog__checks {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .4rem;
  align-items: center;
}

.dialog__row-between {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.dialog__search,
.share-url {
  width: 100%;
}

.dialog__search {
  max-width: 280px;
}

.dialog__toolbar {
  justify-content: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
}

.dialog__hint-inline {
  margin: 0;
}

.dialog__hint-small {
  font-size: .78rem;
  color: #64748b;
}

.dialog__hint-card {
  margin: .2rem 0;
  border: 1px solid #dde5ec;
  border-radius: 12px;
  background: #f8fafc;
  padding: .62rem .72rem;
}

.dialog__feedback {
  margin-top: .75rem;
}

.dialog__wish-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.wish-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: start;
}

.wish-detail__button {
  display: flex;
  align-items: center;
}

.dialog__wish-link {
  flex-direction: row;
  font-size: .88rem;
  padding: .42rem .65rem;
}

.confirm-delete {
  display: flex;
  align-items: center;
  gap: .62rem;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #f8fafc;
  padding: .52rem .62rem;
}

.dialog__close {
  min-height: auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d5dde5;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  line-height: 1;
}

.dialog__close:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.has-dialog-open {
  overflow: hidden;
}

.dialog--wide .dialog__panel {
  width: min(760px, calc(100vw - 1rem));
}

.dialog--narrow .dialog__panel {
  width: min(420px, calc(100vw - 1rem));
}

@media (max-width: 640px) {
  .dialog {
    padding: .45rem;
  }

  .dialog__panel {
    border-radius: 20px;
    padding: .88rem .85rem;
    width: calc(100vw - .9rem);
  }

  .dialog__title {
    font-size: 1.16rem;
  }

  .dialog__footer,
  .dialog__footer--between {
    justify-content: center;
  }

  .dialog__search {
    max-width: 100%;
  }

  .wish-detail {
    grid-template-columns: 1fr;
  }

  .wish-detail__button {
    justify-content: center;
  }

  .wish-detail__body {
    text-align: center;
  }
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: center;
}

.share-grid--header {
  font-weight: 700;
  color: #64748b;
  margin-bottom: .25rem;
}

.share-grid--header > div {
  padding-bottom: .25rem;
  border-bottom: 1px solid #e9eef3;
}

.share-row {
  display: contents;
}

ul,
ol {
  margin-left: -20px;
  text-align: left;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: .6rem .75rem;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

th {
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  text-align: left;
}

tr:hover td {
  background: #fafafa;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ui-green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 74px;
  padding: .62rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.topbar-menu-details {
  position: relative;
  display: none;
  align-items: center;
}

.topbar-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
  list-style: none;
}

.topbar-menu-toggle:hover {
  background: rgba(255, 255, 255, .24);
}

.topbar-menu-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.topbar-menu-toggle::-webkit-details-marker {
  display: none;
}

.topbar-menu-toggle::marker {
  content: "";
}

.topbar-menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: background-color .2s ease;
}

.topbar-menu-icon::before,
.topbar-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: top .2s ease, transform .2s ease;
}

.topbar-menu-icon::before {
  top: -6px;
}

.topbar-menu-icon::after {
  top: 6px;
}

.topbar-menu-panel {
  display: block;
}

.topbar-menu-actions {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.topbar-menu-actions--desktop {
  display: inline-flex;
}

.topbar-menu-actions--mobile {
  display: flex;
}

.topbar-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .2rem .72rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.topbar-login-link:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .5);
}

.topbar-login-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-right: .3rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .28rem .45rem;
  background: rgba(255, 255, 255, .12);
}

.locale-switcher-label {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .96);
  letter-spacing: .02em;
}

.locale-switcher-select {
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .18rem 1.4rem .18rem .55rem;
  min-height: 32px;
  cursor: pointer;
}

.locale-switcher-select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.locale-switcher-select option {
  color: #111827;
}

.locale-switcher-links {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
}

.locale-switcher-links a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-size: .74rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .16rem .44rem;
}

.locale-switcher-links a.is-active {
  background: rgba(255, 255, 255, .19);
  border-color: rgba(255, 255, 255, .52);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 10px;
}

.brand-name,
.brand a {
  color: #fff;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: none;
  opacity: .9;
}

@media (max-width: 820px) {
  .topbar-menu-actions--desktop {
    display: none;
  }

  .topbar-menu-details {
    display: inline-flex;
  }

  .topbar-menu-toggle {
    display: inline-flex;
  }

  .topbar-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    z-index: 80;
    min-width: min(92vw, 290px);
  }

  .topbar-menu-details[open] > .topbar-menu-panel {
    display: block;
  }

  .topbar-menu-details[open] .topbar-menu-icon {
    background: transparent;
  }

  .topbar-menu-details[open] .topbar-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .topbar-menu-details[open] .topbar-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .topbar-menu-actions--mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .72rem;
    border: 1px solid #d3dde8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
  }

  .topbar-menu-actions--mobile .locale-switcher {
    width: 100%;
    margin-right: 0;
    justify-content: space-between;
    border-color: #d3dde8;
    background: #f4f8fb;
  }

  .topbar-menu-actions--mobile .locale-switcher-label {
    color: #1f2937;
  }

  .topbar-menu-actions--mobile .locale-switcher-select {
    color: #1f2937;
    background: #fff;
    border-color: #c8d5e6;
  }

  .topbar-menu-actions--mobile .locale-switcher-select:focus-visible {
    outline-color: var(--ui-green);
  }

  .topbar-menu-actions--mobile .topbar-login-link {
    width: 100%;
    min-height: 38px;
    border-color: var(--ui-green);
    background: var(--ui-green);
    color: #fff;
  }

  .topbar-menu-actions--mobile .topbar-login-link:hover {
    background: #1b6e42;
    border-color: #1b6e42;
  }
}

@media (min-width: 900px) {
  .topbar-inner {
    padding: .75rem 1rem;
  }
}

.footer {
  margin-top: auto;
  background: var(--ui-green);
  color: #fff;
  padding: 2.9rem 0 6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.has-app-tabbar .footer {
  padding-bottom: calc(2.4rem + 84px + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 2rem;
  align-items: start;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
}

.footer .brand-logo {
  border-radius: 10px;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .38rem;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #eaf8f2;
  text-decoration: underline;
}

.footer-copy {
  align-self: end;
  color: #fff;
}

.footer-copy p {
  margin: 0;
  color: #fff;
}

@media (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 1.1fr 1.2fr auto;
  }
}

@media (max-width: 768px) {
  .footer-brand,
  .footer-nav,
  .footer-copy {
    margin: 0 auto;
    text-align: center;
  }
}

.notifications-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notifications-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .1s ease;
}

.notifications-toggle:hover {
  background: rgba(255, 255, 255, .2);
}

.notifications-toggle:active {
  transform: translateY(1px);
}

.notifications-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.notifications-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notifications-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.notifications-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: linear-gradient(160deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .92);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(127, 29, 29, .34), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.topbar .notifications-badge {
  border-color: rgba(15, 23, 42, .2);
}

.notifications-panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  width: min(380px, calc(100vw - 1.2rem));
  max-height: min(68vh, 540px);
  overflow: auto;
  z-index: 70;
  border-radius: 18px;
  border: 1px solid #dbe3ea;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 22px 46px rgba(2, 8, 23, .22);
  padding: .75rem;
  color: #0f172a;
}

.notifications-panel[hidden] {
  display: none !important;
}

.notifications-panel[aria-hidden="false"] {
  animation: notifications-panel-in .16s ease-out;
}

@keyframes notifications-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notifications-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 .55rem;
}

.notifications-mark-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: .84rem;
  font-weight: 700;
  padding: .42rem .72rem;
  cursor: pointer;
}

.notifications-mark-all:hover {
  background: #f3f4f6;
}

.notifications-mark-all:disabled {
  opacity: .58;
  cursor: not-allowed;
}

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

.notifications-item {
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
}

.notifications-item.is-unread {
  border-color: #bfd8cc;
  box-shadow: inset 3px 0 0 var(--ui-green);
}

.notification-link {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: .62rem .72rem;
  text-decoration: none;
  color: inherit;
}

.notification-link--button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notifications-message {
  font-size: .93rem;
  line-height: 1.35;
}

.notifications-item.is-unread .notifications-message {
  font-weight: 700;
}

.notifications-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.notifications-meta {
  font-size: .76rem;
  color: #6b7280;
}

.notifications-cta {
  font-size: .76rem;
  font-weight: 700;
  color: var(--ui-green);
}

.notifications-empty {
  margin: .25rem 0;
  padding: .5rem .2rem;
  text-align: center;
  color: #6b7280;
  font-size: .9rem;
}

@media (max-width: 520px) {
  .notifications-panel {
    right: -.35rem;
    width: min(380px, calc(100vw - .7rem));
    max-height: 62vh;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: .7rem .75rem calc(max(.7rem, env(safe-area-inset-bottom)));
}

.cookie-banner__content {
  max-width: min(var(--maxw), 980px);
  margin: 0 auto;
  border: 1px solid #cfe0d7;
  border-radius: 20px;
  background: linear-gradient(155deg, #ffffff, #f4faf7);
  box-shadow: 0 18px 40px rgba(2, 8, 23, .18);
  padding: .92rem .95rem;
  display: grid;
  gap: .55rem;
  color: #0f172a;
}

.cookie-banner__content h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.cookie-banner__content p {
  margin: 0;
  color: #334155;
  font-size: .96rem;
  line-height: 1.45;
}

.cookie-banner__content a {
  color: var(--ui-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.cookie-banner__actions button,
.cookie-banner__actions .btn,
.cookie-banner__actions a.btn-secondary,
.cookie-banner__actions button.btn-secondary {
  min-height: 42px;
  padding: .62rem .95rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
  flex-direction: row;
}

.cookie-banner__actions .btn-secondary,
.cookie-banner__actions a.btn-secondary {
  border: 1px solid #cbd5e1 !important;
  color: #0f172a;
}

@media (min-width: 860px) {
  .cookie-banner__content {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
  }

  .cookie-banner__content h3,
  .cookie-banner__content p {
    grid-column: 1;
  }

  .cookie-banner__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    margin-left: .35rem;
  }
}

.flash-toast {
  position: fixed;
  left: 50%;
  bottom: calc(.95rem + env(safe-area-inset-bottom));
  z-index: 95;
  width: min(520px, calc(100vw - 1.9rem));
  max-width: min(520px, calc(100vw - 1.9rem));
  border: 1px solid #bfe2d2;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #edf8f2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  color: #0f172a;
  padding: .75rem .88rem;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 600;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity .22s ease, transform .22s ease;
}

.flash-toast::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--ui-green);
  margin-right: .5rem;
  transform: translateY(-1px);
}

.flash-toast--success {
  border-color: #bfe2d2;
  background: linear-gradient(145deg, #ffffff, #edf8f2);
}

.flash-toast--success::before {
  background: var(--ui-green);
}

.flash-toast--error {
  border-color: #f3b6be;
  background: linear-gradient(145deg, #ffffff, #fdecef);
  box-shadow: 0 14px 30px rgba(127, 29, 29, .18);
  color: #3f1013;
}

.flash-toast--error::before {
  background: #dc2626;
}

.flash-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 8px);
}

body.has-app-tabbar .flash-toast {
  bottom: calc(6rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .flash-toast {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    font-size: .92rem;
  }

  body.has-app-tabbar .flash-toast {
    bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

.page-landing .content {
  padding: .95rem .78rem 2.3rem;
}

body.page-landing.page-landing-with-app-tabbar .content {
  padding-bottom: calc(7.3rem + env(safe-area-inset-bottom));
}

.lp {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: .92rem;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 1.15rem .95rem;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58%;
  height: 76%;
  border-radius: 0 0 180px 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent);
  pointer-events: none;
}

.lp-hero-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.lp-kicker {
  display: inline-flex;
  margin: 0;
  border: 1px solid #c8d8ef;
  background: #edf4ff;
  border-radius: 999px;
  padding: .33rem .68rem;
  font-size: .79rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #0f3562;
}

.lp-hero-copy h1 {
  margin: .66rem 0 .62rem;
  color: #0b0f14;
  font-size: clamp(1.7rem, 6.1vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  max-width: 17ch;
}

.lp-subline {
  margin: 0;
  max-width: 62ch;
  color: #4c6167;
  font-size: clamp(1rem, 2.6vw, 1.16rem);
  line-height: 1.56;
}

.lp-benefits {
  margin: .84rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .48rem;
}

.lp-benefits li {
  position: relative;
  padding-left: 1.65rem;
  color: #10233d;
  font-size: .97rem;
  line-height: 1.42;
}

.lp-benefits li::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: 0;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #1d74f5, #0d4fab);
}

.lp-cta-row {
  margin-top: .94rem;
  display: flex;
  flex-wrap: wrap;
  gap: .56rem;
}

.lp-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  padding: .67rem .9rem;
  transition: transform .12s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.lp-btn:focus-visible {
  outline: 3px solid #0f5cc9;
  outline-offset: 2px;
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn-primary {
  background: linear-gradient(160deg, #165fcb, #0b3f88);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 63, 136, .24);
}

.lp-btn-secondary {
  background: #fff;
  color: #0d2f5e;
  border-color: #a9bddd;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.lp-btn-ghost {
  background: #eef4fb;
  color: #173255;
  border-color: #c9d8eb;
}

.lp-store-badge-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}

.lp-store-badge-link:hover {
  transform: translateY(-1px);
}

.lp-store-badge-link:focus-visible {
  outline: 3px solid #0f5cc9;
  outline-offset: 2px;
}

.lp-store-badge-image {
  display: block;
  height: 50px;
  width: auto;
}

.lp-cta-row.is-secondary-platform .lp-store-badge-link {
  border-color: #d5e1ef;
  background: #f8fafd;
  box-shadow: none;
}

.lp-cta-row.is-secondary-platform .lp-store-badge-image {
  height: 40px;
  opacity: .96;
}

.lp-hero-device {
  justify-self: center;
  width: min(100%, 260px);
}

.lp-phone-slider {
  display: block;
  width: 100%;
}

.lp-phone-shell {
  --phone-frame-radius: 44px;
  --phone-bezel: 6px;
  --phone-gap: 0;
  --phone-screen-radius: calc(var(--phone-frame-radius) - var(--phone-bezel) - var(--phone-gap));
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: var(--phone-frame-radius);
  padding: calc(var(--phone-bezel) + var(--phone-gap));
  background: #060a11;
  box-shadow: 0 18px 34px rgba(4, 10, 19, .36);
  aspect-ratio: 1320 / 2868;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.lp-phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--phone-bezel) solid #060a11;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.lp-phone-shell:focus-visible {
  outline: 3px solid #213f56;
  outline-offset: 4px;
}

.lp-phone-notch {
  display: none;
}

.lp-phone-track {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: var(--phone-screen-radius);
  overflow: visible;
  transition: transform .36s ease;
  will-change: transform;
}

.lp-phone-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  border-radius: var(--phone-screen-radius);
  overflow: hidden;
  background: #e8e6d9;
  border: 0;
}

.lp-phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--phone-screen-radius);
  object-fit: cover;
  object-position: top center;
}

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

.lp-guide-map {
  border: 1px solid #d4dee9;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  padding: .96rem .9rem;
}

.lp-guide-head h2 {
  margin: .2rem 0 0;
  font-size: clamp(1.12rem, 2.8vw, 1.5rem);
  line-height: 1.18;
  color: #102642;
}

.lp-guide-kicker {
  margin: 0;
  font-size: .74rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .05em;
  color: #1a4f89;
  text-transform: uppercase;
}

.lp-guide-list {
  margin: .78rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .46rem;
}

.lp-guide-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: .5rem;
  align-items: start;
  border: 1px solid #d9e4f1;
  border-radius: 12px;
  padding: .56rem .62rem;
  background: #fff;
}

.lp-guide-index {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #1d74f5, #0f4da6);
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
}

.lp-guide-label {
  color: #153352;
  line-height: 1.42;
}

.lp-pattern-support .lp-guide-map,
.lp-pattern-support .lp-step-track {
  display: none;
}

.lp-section {
  border: 1px solid #d8e0ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  padding: .98rem .92rem;
}

.lp-section h2 {
  margin: 0 0 .42rem;
  font-size: clamp(1.2rem, 3vw, 1.68rem);
  line-height: 1.17;
  color: #0e223f;
}

.lp-section p {
  margin: 0;
  color: #2f455f;
  line-height: 1.6;
}

.lp-section p + p {
  margin-top: .62rem;
}

.lp-body-section {
  border-radius: 24px;
  border: 1px solid #d6e0ea;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  background: #fff;
}

.lp-body-section .lp-section-shell {
  display: grid;
  gap: .86rem;
}

.lp-body-section .lp-section-main h2 {
  margin-bottom: .54rem;
}

.lp-section-kicker {
  margin: 0 0 .34rem;
  font-size: .73rem;
  letter-spacing: .05em;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a5a97;
}

.lp-side-title {
  margin: 0 0 .42rem;
  font-size: .94rem;
  line-height: 1.2;
  color: #1a3554;
}

.lp-section-side {
  display: grid;
  gap: .32rem;
  align-content: start;
}

.lp-section--feature {
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
}

.lp-section--split {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
  border-left: 5px solid #a8c4e4;
}

.lp-section--plain {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-left: .25rem;
  padding-right: .25rem;
}

.lp-section--facts {
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
}

.lp-section--steps {
  background: linear-gradient(165deg, #f7fbff 0%, #eef5ff 100%);
}

.lp-mosaic {
  display: grid;
  gap: .62rem;
}

.lp-mini-card {
  border: 1px solid #d5dfeb;
  border-radius: 18px;
  background: #fff;
  padding: .86rem .84rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.lp-mini-card h3 {
  margin: 0 0 .42rem;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #102540;
}

.lp-mini-card p {
  margin: 0;
  color: #35506a;
  line-height: 1.56;
}

.lp-mini-list {
  margin: .6rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .28rem;
  color: #163350;
}

.lp-pillars {
  border: 1px solid #dae3ef;
  border-radius: 20px;
  background: linear-gradient(170deg, #f6fbff 0%, #f4f8f4 100%);
  padding: .9rem .84rem;
}

.lp-pillars h2 {
  margin: 0;
  color: #102742;
  font-size: clamp(1.15rem, 2.8vw, 1.48rem);
}

.lp-pillars-grid {
  margin: .64rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .48rem;
}

.lp-pillar {
  border: 1px solid #d2dfef;
  border-radius: 13px;
  background: #fff;
  padding: .58rem .66rem;
  color: #14324f;
  line-height: 1.45;
}

.lp-quote-strip {
  border-left: 5px solid #5d88ba;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(160deg, #f2f8ff 0%, #f9fcff 100%);
  padding: .84rem .92rem;
}

.lp-quote-strip p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.55;
  color: #173450;
  font-weight: 600;
}

.lp-checklist {
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .44rem;
}

.lp-checklist li {
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #f7faff;
  padding: .62rem .7rem;
  color: #17304e;
  line-height: 1.45;
}

.lp-checklist.is-compact {
  margin-top: .5rem;
}

.lp-checklist.is-compact li {
  border-radius: 11px;
  padding: .5rem .62rem;
  font-size: .95rem;
}

.lp-steps {
  margin: .18rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-step;
  display: grid;
  gap: .5rem;
}

.lp-steps li {
  position: relative;
  border: 1px solid #cfe0f6;
  border-radius: 12px;
  background: #fff;
  padding: .56rem .62rem .56rem 2.4rem;
  color: #15344f;
  line-height: 1.45;
}

.lp-steps li::before {
  counter-increment: lp-step;
  content: counter(lp-step);
  position: absolute;
  top: .52rem;
  left: .56rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #1563d4, #0f4b9b);
  color: #fff;
  font-weight: 700;
  font-size: .79rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-facts {
  margin: .16rem 0 0;
  display: grid;
  gap: .44rem;
}

.lp-facts > div {
  border: 1px solid #d7e5f7;
  border-radius: 12px;
  background: #fff;
  padding: .52rem .62rem;
}

.lp-facts dt {
  margin: 0;
  font-weight: 700;
  color: #123a66;
  line-height: 1.25;
}

.lp-facts dd {
  margin: .16rem 0 0;
  color: #2a4760;
  line-height: 1.45;
}

.lp-step-track {
  border: 1px solid #d3dfef;
  border-radius: 22px;
  background: linear-gradient(170deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  padding: .9rem .84rem;
}

.lp-step-track h2 {
  margin: 0;
  color: #102742;
  font-size: clamp(1.15rem, 2.8vw, 1.48rem);
}

.lp-track-list {
  margin: .68rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .46rem;
}

.lp-track-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: .58rem;
  align-items: start;
  border: 1px solid #d0dff4;
  border-radius: 13px;
  background: #fff;
  padding: .56rem .62rem;
}

.lp-track-list li span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(160deg, #155fd0, #0f4998);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
}

.lp-track-list li strong {
  color: #143654;
  line-height: 1.42;
  font-weight: 700;
}

.lp-related-band {
  background: linear-gradient(170deg, #fbfdff 0%, #f2f7ff 100%);
}

.lp-related-head h2 {
  margin-bottom: .28rem;
}

.lp-related-head p {
  margin: 0;
}

.lp-related-grid {
  margin-top: .72rem;
  display: grid;
  gap: .5rem;
}

.lp-related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  border: 1px solid #d5e2f1;
  border-radius: 14px;
  background: #fff;
  color: #123f77;
  text-decoration: none;
  padding: .72rem .76rem;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}

.lp-related-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  border-color: #c6d8ee;
}

.lp-related-card:focus-visible {
  outline: 3px solid #0f5cc9;
  outline-offset: 2px;
}

.lp-related-label {
  font-weight: 700;
  line-height: 1.35;
}

.lp-related-cta {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1f5d9a;
  white-space: nowrap;
}

.lp-faq-list {
  display: grid;
  gap: .5rem;
  margin-top: .5rem;
}

.lp-faq-item {
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  padding: .2rem .62rem;
  background: #fbfdff;
}

.lp-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f2c53;
  padding: .5rem 0;
}

.lp-faq-item p {
  margin: 0 0 .56rem;
}

.lp-final-cta {
  border-radius: 24px;
  border: 1px solid #cad7e7;
  background: linear-gradient(165deg, #f7fbff 0%, #edf3fb 100%);
  padding: 1rem .9rem;
}

.lp-final-cta h2 {
  margin: 0;
  color: #0c2648;
}

.lp-final-cta p {
  margin: .45rem 0 0;
  color: #334d68;
}

.lp-pattern-wichtlify-pro .lp-kicker {
  color: #0f4ca2;
  letter-spacing: .07em;
}

.lp-pro-detail .lp-hero {
  border-color: #ccd9ee;
}

.lp-pro-hero-visual {
  width: min(100%, 420px);
  justify-self: center;
}

.lp-pro-hero-visual,
.lp-pro-shot,
.lp-pro-shot-grid {
  display: none !important;
}

.lp-pro-shot {
  position: relative;
  border: 1px solid #c9d8ee;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(20, 92, 173, .14) 0%, rgba(20, 92, 173, 0) 56%),
    linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
  padding: .9rem .88rem;
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: .34rem;
}

.lp-pro-shot.is-large {
  min-height: 240px;
  padding: 1rem;
}

.lp-pro-shot.is-inline {
  margin-top: .6rem;
  min-height: 94px;
  border-radius: 14px;
  box-shadow: none;
}

.lp-pro-shot-label {
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #1f5f9d;
}

.lp-pro-shot-title {
  font-size: 1rem;
  font-weight: 700;
  color: #123355;
  line-height: 1.25;
}

.lp-pro-shot-sub {
  color: #35526f;
  line-height: 1.45;
}

.lp-pro-shot-grid {
  margin-top: .9rem;
  display: grid;
  gap: .8rem;
}

.lp-pro-iap-note {
  margin: .72rem 0 0;
  border: 1px solid #cadef8;
  border-radius: 14px;
  padding: .58rem .66rem;
  background: #f3f8ff;
  color: #133f71;
  line-height: 1.42;
}

.lp-pattern-wichtlify-pro .lp-guide-map {
  border-color: #c8d9f0;
  background: linear-gradient(170deg, #f8fbff 0%, #edf4ff 100%);
}

.lp-pattern-wichtlify-pro .lp-section--feature {
  border-color: #cad9ef;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(56, 118, 210, .12) 0%, rgba(56, 118, 210, 0) 50%),
    linear-gradient(175deg, #ffffff 0%, #f5f9ff 100%);
}

.lp-pro-feature-grid {
  margin-top: .9rem;
  display: grid;
  gap: .95rem;
}

.lp-pro-feature {
  position: relative;
  overflow: hidden;
  border-color: #c9d9ef;
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(27, 93, 173, .08) 0%, rgba(27, 93, 173, 0) 52%),
    linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
  padding: 1rem .98rem;
}

.lp-pro-feature h3 {
  margin: .12rem 0 .46rem;
  color: #102a49;
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
}

.lp-pro-feature-eyebrow {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1a578f;
}

.lp-pro-feature-list {
  margin: .68rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .34rem;
  color: #193857;
  line-height: 1.4;
}

.lp-pro-feature-meta {
  margin-top: .7rem;
  padding-top: .62rem;
  border-top: 1px solid #d9e4f2;
  color: #295073;
  font-size: .92rem;
  line-height: 1.42;
}

.lp-pro-feature:nth-child(3n + 2) {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(19, 120, 101, .08) 0%, rgba(19, 120, 101, 0) 52%),
    linear-gradient(165deg, #ffffff 0%, #f6fcfa 100%);
}

.lp-pro-feature:nth-child(3n + 3) {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(24, 99, 187, .1) 0%, rgba(24, 99, 187, 0) 52%),
    linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
}

.lp-pro-feature-link {
  margin-top: .74rem;
}

.lp-pro-compare-grid {
  margin-top: .85rem;
  display: grid;
  gap: 1rem;
}

.lp-pro-tier {
  border: 1px solid #d4e0ef;
  border-radius: 20px;
  background: #fff;
  padding: 1rem .96rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  display: grid;
  align-content: start;
  gap: .58rem;
}

.lp-pro-tier h3 {
  margin: 0;
  color: #0f2b4d;
  font-size: clamp(1.06rem, 2.6vw, 1.26rem);
}

.lp-pro-tier.is-pro {
  border-color: #b9cef0;
  background:
    radial-gradient(110% 110% at 100% 0%, rgba(26, 91, 167, .12) 0%, rgba(26, 91, 167, 0) 56%),
    linear-gradient(165deg, #f9fbff 0%, #f0f6ff 100%);
}

.lp-pro-tier.is-pro h3 {
  color: #0d3f7f;
}

.lp-pro-tier-head {
  display: grid;
  gap: .24rem;
}

.lp-pro-tier-kicker {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1f5d99;
}

.lp-pro-tier h4 {
  margin: .2rem 0 0;
  color: #163758;
  font-size: .94rem;
  letter-spacing: .01em;
}

.lp-pro-tier-note {
  margin: 0;
  color: #32506d;
  line-height: 1.5;
}

.lp-pro-use-cases {
  margin-top: .1rem;
}

.lp-pro-use-cases .lp-mini-card {
  border-color: #ccdaec;
  border-radius: 18px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
  padding: 1rem .94rem;
}

.lp-pro-feature-nav {
  margin-top: .72rem;
  display: flex;
  flex-wrap: wrap;
  gap: .48rem;
}

.lp-pro-feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #c7d8ee;
  border-radius: 999px;
  padding: .44rem .74rem;
  text-decoration: none;
  background: #fff;
  color: #153d67;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
}

.lp-pro-feature-chip.is-current {
  background: #e9f2ff;
  border-color: #9dbde6;
  color: #0f4380;
}

.lp-pro-next-link {
  margin: .66rem 0 0;
  color: #294d70;
  line-height: 1.45;
}

.lp-pro-next-link a {
  color: #0f4d92;
  font-weight: 700;
}

.lp-pro-final-note {
  margin: .62rem 0 0;
  color: #26476e;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .page-landing .content {
    padding: 1.15rem 1.3rem 2.6rem;
  }

  .lp {
    gap: 1rem;
  }

  .lp-hero {
    padding: 1.35rem 1.25rem;
  }

  .lp-hero-grid {
    grid-template-columns: 1.08fr .92fr;
    gap: 1.1rem;
  }

  .lp-hero-device {
    width: min(100%, 260px);
  }

  .lp-cta-row {
    margin-top: 1.1rem;
  }

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

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

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

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

  .lp-body-section .lp-section-shell.has-side {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: 1rem;
  }

  .lp-section--split .lp-section-shell.has-side {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

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

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

@media (min-width: 980px) {
  .lp-pro-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1040px) {
  .lp-hero {
    padding: 1.8rem 1.7rem;
  }

  .lp-section {
    padding: 1.08rem 1.05rem;
  }

  .lp-hero-device {
    width: min(100%, 260px);
  }
}

.small {
  font-size: .875rem;
}

.wichtel {
  font-size: 1.2rem;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 0;
  width: 100%;
  flex-wrap: nowrap;
}

.buttons button {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 769px) {
  .buttons button {
    width: auto;
  }
}

.budget-custom {
  margin-top: .6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  text-align: center;
}

.budget-custom[hidden] {
  display: none;
}

.budget-custom label {
  margin: 0;
  font-weight: 700;
}

.budget-custom input[type="number"],
.budget-custom input[type="text"] {
  max-width: 160px;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.table-responsive {
  text-align: left;
}

.inline {
  display: inline;
}

.icon-crown {
  margin-right: .35rem;
  font-size: 1em;
  line-height: 1;
  vertical-align: middle;
}

.table-mobile-cards .pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
}

.table-mobile-cards .pill[data-excluded="0"] {
  background: #e9f9ea;
  border-color: #b9e2be;
}

.table-mobile-cards .pill[data-excluded="1"] {
  background: #ffe9e9;
  border-color: #edb1b1;
}

.table-mobile-cards td .buttons {
  flex-direction: row;
}

@media (max-width: 768px) {
  .table-mobile-cards {
    border-collapse: separate;
    border-spacing: 0 .75rem;
  }

  .table-mobile-cards thead {
    display: none;
  }

  .table-mobile-cards tbody {
    display: block;
  }

  .table-mobile-cards tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    padding: .75rem;
    margin-bottom: 1rem;
  }

  .table-mobile-cards tbody td {
    display: block;
    padding: .25rem 0;
    border: 0;
    text-align: center;
  }

  .table-mobile-cards tr:hover td {
    background: none;
  }

  .table-mobile-cards tbody td:nth-child(1) .table-mobile-cards__title {
    font-weight: 700;
    font-size: 1.2rem;
  }

  .table-mobile-cards tbody td:nth-child(3) {
    color: #6b7280;
    margin-bottom: .35rem;
  }

  .table-mobile-cards tbody td:nth-child(5) {
    display: flex;
    justify-content: center;
    margin-top: .6rem;
    flex-direction: column;
    align-items: center;
  }
}

.page-system .wrap {
  max-width: 1180px;
}

.page-system .system-page-subline,
.page-system .system-overview-subline {
  max-width: 780px;
  margin: .45rem auto 0;
  text-align: center;
}

.page-system .system-page-meta {
  margin: .85rem 0 .45rem;
  text-align: center;
}

.page-system .system-nav,
.page-system .system-overview-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .55rem;
  margin-top: 1rem;
  padding: .1rem .12rem .55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c5d4df transparent;
}

.page-system .system-nav::-webkit-scrollbar,
.page-system .system-overview-nav::-webkit-scrollbar {
  height: 6px;
}

.page-system .system-nav::-webkit-scrollbar-thumb,
.page-system .system-overview-nav::-webkit-scrollbar-thumb {
  background: #c5d4df;
  border-radius: 999px;
}

.page-system .system-nav a,
.page-system .system-overview-nav a {
  flex: 0 0 auto;
  min-width: 126px;
  scroll-snap-align: start;
}

.page-system .system-nav a.btn-primary,
.page-system .system-overview-nav a.btn-primary {
  background: var(--ui-green);
  border-color: var(--ui-green) !important;
  color: #fff;
}

.page-system .system-filter-form {
  margin-top: .95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .7rem;
}

.page-system .system-filter-form label {
  display: inline-block;
  margin-bottom: .28rem;
  font-size: .75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #64748b;
}

.page-system .system-filter-form input,
.page-system .system-filter-form select {
  width: 100%;
  min-height: 42px;
  margin-bottom: 0;
}

.page-system .system-filter-form__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: .55rem;
}

.page-system .system-filter-form__actions > * {
  flex: 1 1 0;
}

.page-system .system-table-wrap {
  margin-top: .95rem;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #fff;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.page-system .system-desktop-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.page-system .system-desktop-table th,
.page-system .system-desktop-table td {
  border-bottom: 1px solid #e7eef5;
  padding: .65rem .75rem;
  vertical-align: top;
  text-align: left;
}

.page-system .system-desktop-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: .74rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #475569;
  background: #f7fafc;
}

.page-system .system-desktop-table td {
  font-size: .9rem;
  color: #1e293b;
  overflow-wrap: anywhere;
}

.page-system .system-desktop-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-system .system-mobile-cards {
  display: none;
  margin-top: .95rem;
  gap: .72rem;
}

.page-system .system-mobile-card {
  border: 1px solid #dce5ec;
  border-radius: 18px;
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  padding: .78rem .74rem;
}

.page-system .system-mobile-card--empty {
  text-align: center;
}

.page-system .system-mobile-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .58rem;
}

.page-system .system-mobile-card__head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.page-system .system-mobile-card__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: .2rem .54rem;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #ecf7ef;
  border: 1px solid #c9e7d2;
  color: #166534;
  font-weight: 700;
}

.page-system .system-mobile-card__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .48rem;
}

.page-system .system-mobile-card__grid > div {
  margin: 0;
  min-width: 0;
  border: 1px solid #e7eef5;
  border-radius: 11px;
  background: #fff;
  padding: .46rem .52rem;
}

.page-system .system-mobile-card__grid dt {
  margin: 0;
  font-size: .67rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}

.page-system .system-mobile-card__grid dd {
  margin: .26rem 0 0;
  font-size: .88rem;
  line-height: 1.3;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.page-system .system-mobile-card__trace {
  margin-top: .64rem;
  border-top: 1px dashed #d5e1ec;
  padding-top: .56rem;
}

.page-system .system-mobile-card__trace summary {
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.page-system .system-mobile-card__trace pre {
  margin: .46rem 0 0;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: .56rem;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
}

.page-system .system-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
}

.page-system .system-pagination > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .72rem;
  border-radius: 12px;
  border: 1px solid #dbe6ee;
  background: #f8fbff;
  font-weight: 700;
  color: #334155;
}

.page-system .system-metric-section {
  margin-top: 1.1rem;
}

.page-system .system-metric-section__title {
  margin: .3rem 0 .7rem;
  font-size: 1.08rem;
  letter-spacing: .01em;
  color: #0f172a;
}

.page-system .system-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .72rem;
}

.page-system .system-metric-card {
  border: 1px solid #dce5ec;
  border-radius: 18px;
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  padding: .85rem .82rem;
}

.page-system .system-metric-card--highlight {
  border-color: #bddbc9;
  background: linear-gradient(170deg, #ffffff 0%, #eff8f3 100%);
}

.page-system .system-metric-card--source {
  border-color: #cfe0ef;
  background: linear-gradient(170deg, #ffffff 0%, #f0f7ff 100%);
}

.page-system .system-metric-card__title {
  margin: 0 0 .7rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #0f172a;
}

.page-system .system-metric-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.page-system .system-metric-stat {
  margin: 0;
  padding: .56rem .5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  min-width: 0;
}

.page-system .system-metric-stat dt {
  margin: 0;
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
}

.page-system .system-metric-stat dd {
  margin: .24rem 0 0;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  .page-system .system-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .page-system .system-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-system .system-nav a,
  .page-system .system-overview-nav a {
    min-width: 112px;
  }

  .page-system .system-filter-form {
    grid-template-columns: 1fr;
    gap: .58rem;
  }

  .page-system .system-mobile-cards {
    display: grid;
  }

  .page-system .system-table-wrap {
    display: none;
  }
}

@media (max-width: 460px) {
  .page-system .system-mobile-card__grid {
    grid-template-columns: 1fr;
  }

  .page-system .system-pagination > span,
  .page-system .system-pagination > a {
    width: 100%;
  }

  .page-system .system-metric-stats {
    grid-template-columns: 1fr;
  }

  .page-system .system-metric-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem;
  }

  .page-system .system-metric-stat dd {
    margin: 0;
    text-align: right;
  }
}


.app-private-shell {
  max-width: 860px;
  padding: 1rem 1rem calc(20rem + env(safe-area-inset-bottom));
}

.app-private-shell .app-card {
  border-radius: 28px;
  padding: 1.05rem 1rem;
  margin: .9rem 0;
}

.app-private-header {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .2rem 0 .75rem;
  background: var(--ui-bg);
}

.app-private-header h1 {
  margin: 0;
  text-align: center;
  font-size: 1.92rem;
  line-height: 1.2;
  font-weight: 700;
}

.app-private-summary h2 {
  margin: 0;
  font-size: 2.33rem;
}

.app-private-summary > p {
  margin: .2rem 0 .72rem;
  color: var(--ui-muted);
  font-size: 1.14rem;
  line-height: 1.34;
}

.app-private-branding .app-private-header {
  border-bottom: 3px solid var(--private-brand-primary);
}

.app-private-branding .app-private-summary > p {
  color: var(--private-brand-primary);
}

.app-private-brand-sub {
  margin: -.2rem 0 .72rem;
  color: var(--ui-muted);
  font-size: 1.02rem;
  line-height: 1.3;
}

.app-private-brand-image {
  margin: .2rem 0 .75rem;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  overflow: hidden;
}

.app-private-brand-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.app-private-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .58rem;
}

.app-private-metric {
  border-radius: 16px;
  padding: .66rem .74rem;
}

.app-private-metric span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.12;
}

.app-private-metric strong {
  display: block;
  margin-top: .2rem;
  font-size: 1.2rem;
  line-height: 1.1;
}

.app-private-metric--green {
  background: #dff2ea;
}

.app-private-metric--blue {
  background: #dbeafe;
}

.app-private-metric--red {
  background: #fbe4e6;
}

.app-private-assignments h2,
.app-private-shell .app-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  line-height: 1.1;
}

.app-private-shell .app-card > p {
  margin: .1rem 0 .75rem;
  color: var(--ui-muted);
  font-size: 1.29rem;
  line-height: 1.33;
}

.app-private-assignment-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .76rem;
  align-items: center;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: .72rem .82rem;
  margin: .35rem 0 .62rem;
  background: #fff;
}

.app-private-assignment-row small {
  display: block;
  color: var(--ui-muted);
  font-size: 1.02rem;
  line-height: 1.2;
}

.app-private-assignment-row strong {
  display: block;
  font-size: 2rem;
  line-height: 1.12;
}

.app-private-assignment-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #dff2ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-green);
}

.app-private-branding .app-private-metric--green {
  background: var(--private-brand-primary-soft);
}

.app-private-branding .app-private-metric--blue {
  background: var(--private-brand-accent-soft);
}

.app-private-branding .app-private-metric--green .app-private-metric-title .app-private-icon,
.app-private-branding .app-private-gift-link .app-private-icon,
.app-private-branding .app-private-dock .app-private-icon {
  color: var(--private-brand-primary);
}

.app-private-branding .app-private-metric--blue .app-private-metric-title .app-private-icon,
.app-private-branding .app-private-fact-row .app-private-icon,
.app-private-branding .app-private-info-note .app-private-icon {
  color: var(--private-brand-accent);
}

.app-private-branding .app-private-assignment-icon {
  background: var(--private-brand-primary-soft);
  color: var(--private-brand-primary);
}

.app-private-branding .app-private-dock .app-btn {
  background: var(--private-brand-primary);
  border-color: var(--private-brand-primary);
  color: #fff;
}

.app-private-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .68rem;
}

.app-private-gift-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  min-height: 68px;
  padding: .58rem .88rem;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.2;
}

.app-private-shell .app-card > p.app-private-affiliate-note {
  margin: 1rem 0 0;
  color: var(--ui-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.app-private-wish-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .7rem;
  align-items: start;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: #fff;
  padding: .62rem .68rem;
  margin: .4rem 0;
}

.app-private-wish-main strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.app-private-wish-main p {
  margin: .25rem 0 0;
  font-size: .98rem;
  color: var(--ui-muted);
}

.app-private-wish-actions {
  display: inline-flex;
  gap: .38rem;
  align-items: center;
}

.app-private-wish-actions a,
.app-private-wish-actions button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.app-private-wish-actions form {
  display: inline-flex;
  margin: 0;
}

.app-private-wish-actions a {
  color: #0ea5e9;
}

.app-private-wish-actions button {
  color: #ef4444;
  appearance: none;
  -webkit-appearance: none;
}

.app-private-wish-actions .app-private-icon {
  width: 16px;
  height: 16px;
}

.app-private-mini-btn {
  align-self: center;
  white-space: nowrap;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  padding: .45rem .72rem;
  font-size: .95rem;
  font-weight: 600;
}

.app-private-info-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .55rem;
  align-items: start;
}

.app-private-info-note p {
  margin: 0;
  color: #111827;
}

.app-private-fact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .7rem;
  margin: .4rem 0;
}

.app-private-fact-row span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--ui-muted);
  font-size: 1.3rem;
}

.app-private-fact-row strong {
  font-size: 1.46rem;
}

.app-private-exclusion-list {
  display: grid;
  gap: .3rem;
  margin-bottom: .35rem;
}

.app-private-exclusion-item {
  font-size: 1.38rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.app-private-exclusion-editor summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: .82rem .95rem;
  background: #fff;
  font-weight: 700;
  font-size: 1.34rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.app-private-exclusion-editor summary::-webkit-details-marker {
  display: none;
}

.app-private-exclusion-editor form {
  margin-top: .6rem;
  display: grid;
  gap: .15rem;
}

.app-private-exclusion-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid #eef2f7;
}

.app-private-exclusion-edit-row:last-of-type {
  border-bottom: 0;
}

.app-private-exclusion-edit-row input {
  width: 20px;
  height: 20px;
}

.app-private-exclusion-editor .app-private-exclusion-toggle-row {
  border-bottom: 1px solid #eef2f7;
}

.app-private-exclusion-editor .app-private-exclusion-toggle-row:last-of-type {
  border-bottom: 0;
}

.app-private-exclusion-editor .app-private-exclusion-toggle-row > span:first-child {
  font-size: 1.1rem;
}

.app-private-exclusion-editor .app-private-exclusion-toggle-row .exclusion-on-text {
  display: none;
  font-size: .95rem;
}

.app-private-exclusion-editor .app-private-exclusion-toggle-row.is-on .exclusion-on-text {
  display: inline;
}

.app-private-dock {
  z-index: 36;
  background: transparent;
  border-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.app-private-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-private-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-back-btn .app-private-icon {
  width: 24px;
  height: 24px;
}

.app-private-assignment-icon .app-private-icon {
  width: 28px;
  height: 28px;
}

.app-private-gift-link .app-private-icon,
.app-private-metric-title .app-private-icon,
.app-private-exclusion-item .app-private-icon,
.app-private-info-note .app-private-icon,
.app-private-fact-row .app-private-icon,
.app-private-dock .app-private-icon {
  color: var(--ui-green);
}

.app-private-metric--red .app-private-metric-title .app-private-icon,
.app-private-exclusion-item .app-private-icon {
  color: #ef4444;
}

.app-private-metric--blue .app-private-metric-title .app-private-icon,
.app-private-fact-row .app-private-icon,
.app-private-info-note .app-private-icon {
  color: #3b82f6;
}

.app-private-dock .app-btn {
  min-height: 72px;
  border-radius: 20px;
  font-size: 1.62rem;
}

body.page-register,
body.page-setup,
body.page-app {
  background: var(--ui-bg);
  color: var(--ui-text);
}



body.page-register .content,
body.page-setup .content,
body.page-app .content {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--ui-bg);
}

.app-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: .95rem 1rem 7.35rem;
  box-sizing: border-box;
}

.app-overview-shell {
  max-width: 860px;
}

.app-overview-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--ui-bg);
  padding: .45rem 0 .7rem;
}

.app-overview-header h1 {
  margin: 0;
  text-align: center;
  font-size: 1.85rem;
  line-height: 1.2;
}

.app-overview-card {
  border-radius: 24px;
  padding: 1rem;
  background: #e8ecef;
  border-color: #dce2e7;
}

.app-overview-card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
}

.app-overview-card > p {
  margin: .15rem 0 .72rem;
  color: #374151;
  font-size: 1.3rem;
  line-height: 1.32;
}

.app-overview-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
}

.app-overview-kpi {
  border-radius: 16px;
  border: 1px solid #dce2e7;
  background: #f3f5f7;
  padding: .7rem .75rem;
}

.app-overview-kpi span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-overview-kpi span.is-blue {
  color: #3b82f6;
}

.app-overview-kpi span.is-green {
  color: #168253;
}

.app-overview-kpi span.is-muted {
  color: #6b7280;
}

.app-overview-kpi strong {
  display: block;
  margin-top: .2rem;
  color: #111827;
  font-size: 1.93rem;
  line-height: 1.05;
}

.app-overview-row {
  border: 1px solid #dce2e7;
  border-radius: 16px;
  background: #f2f4f6;
  padding: .72rem .82rem;
  margin: .45rem 0;
  color: #111827;
  text-decoration: none;
}

.app-overview-row-content {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .68rem;
  align-items: center;
}

.app-overview-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.app-overview-row-main strong {
  display: block;
  font-size: 1.43rem;
  line-height: 1.2;
}

.app-overview-row-main span {
  display: block;
  margin-top: .1rem;
  color: #374151;
  font-size: 1.27rem;
  line-height: 1.25;
}

.app-overview-row-cta {
  color: #3b82f6;
  font-size: 1.23rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
}

.app-overview-muted-copy {
  color: #374151;
  font-size: 1.2rem;
  line-height: 1.28;
}

.app-overview-toggle {
  display: inline-block;
  margin-top: .25rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.24rem;
}

.app-overview-primary-link {
  margin-top: .55rem;
  border: 1px solid #dce2e7;
  border-radius: 14px;
  background: #f3f5f7;
  color: #111827;
  text-decoration: none;
  padding: .76rem .88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.36rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .app-overview-shell {
    max-width: min(1640px, calc(100vw - 3rem));
    padding: 1.1rem clamp(1.25rem, 2.8vw, 2.6rem) calc(7.35rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .app-overview-shell .app-overview-header {
    margin-bottom: .1rem;
    padding: .35rem 0 .8rem;
  }

  .app-overview-shell .app-overview-header h1 {
    font-size: clamp(1.85rem, 1vw + 1.2rem, 2.35rem);
  }

  .app-overview-shell > .app-overview-card {
    margin: 0;
    padding: 1.1rem 1.15rem;
    border-radius: 22px;
  }
}

@media (min-width: 1250px) {
  .app-overview-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-overview-shell > .app-overview-header,
  .app-overview-shell > .app-overview-card:first-of-type {
    grid-column: 1 / -1;
  }
}

.app-settings-shell {
  max-width: 860px;
}

.app-settings-header h1 {
  margin: 0;
  text-align: center;
  font-size: 2.27rem;
  line-height: 1.18;
}

.app-settings-subheader {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: .55rem;
  margin-bottom: .7rem;
}

.app-settings-subheader h1 {
  margin: 0;
  text-align: center;
  font-size: 2.08rem;
  line-height: 1.2;
}

.app-settings-card {
  border-radius: 28px;
  padding: 1rem;
  background: #f0f2f5;
  border-color: #dce2e7;
}

.app-settings-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  gap: .7rem;
  align-items: center;
  text-decoration: none;
  color: #111827;
  padding: .35rem 0;
}

.app-settings-row + .app-settings-row {
  margin-top: .5rem;
}

.app-settings-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.app-settings-row-icon.is-blue {
  background: #dbeafe;
  color: #3b82f6;
}

.app-settings-row-icon.is-red {
  background: #fee2e2;
  color: #ef4444;
}

.app-settings-row-main strong {
  display: block;
  font-size: 1.49rem;
  line-height: 1.2;
}

.app-settings-row-main span {
  display: block;
  margin-top: .12rem;
  color: #6b7280;
  font-size: 1.3rem;
  line-height: 1.25;
}

.app-settings-row-chevron {
  color: #6b7280;
  font-size: 2rem;
  line-height: 1;
  text-align: right;
}

.app-settings-row-form {
  margin: 0;
  padding: 0;
}

.app-settings-row-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  padding: .35rem 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  text-align: left;
}

.app-settings-profile-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: center;
}

.app-settings-label {
  margin: 0;
  color: #6b7280;
  font-size: 1.38rem;
  line-height: 1.2;
}

.app-settings-value {
  margin: .12rem 0 0;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
}

.app-settings-edit-btn {
  appearance: none;
  border: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dbeafe;
  color: #3b82f6;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.app-settings-edit-form {
  margin-top: .8rem;
  display: grid;
  gap: .55rem;
}

.app-settings-edit-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: .7rem .85rem;
  font-size: 1.27rem;
  color: #111827;
}

.app-settings-divider {
  margin: .9rem 0;
  border: 0;
  border-top: 1px solid #d5dae0;
}

.app-settings-card h2 {
  margin: 0 0 .7rem;
  font-size: 1.88rem;
  line-height: 1.18;
}

.app-pro-teaser-card {
  background: #f6f8fb;
}

.app-pro-teaser-card.is-active {
  border-color: #bbdfcc;
  background: #eef8f2;
}

.app-pro-teaser-card.is-inactive {
  border-color: #d8deee;
  background: #f3f6ff;
}

.app-pro-teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.app-pro-teaser-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.app-pro-teaser-title-wrap h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.app-pro-teaser-subline {
  margin: .55rem 0 0;
  color: #374151;
  font-size: 1.24rem;
  line-height: 1.35;
}

.app-pro-teaser-features {
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .38rem;
}

.app-pro-teaser-features li {
  position: relative;
  padding-left: 1.45rem;
  color: #0f172a;
  font-size: 1.16rem;
  line-height: 1.32;
}

.app-pro-teaser-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .02rem;
  color: #16754b;
  font-weight: 800;
}

.app-pro-teaser-actions {
  margin-top: .92rem;
  display: grid;
  gap: .52rem;
}

.app-settings-switch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  align-items: center;
}

.app-settings-switch-row p {
  margin: 0;
  color: #111827;
  font-size: 1.42rem;
  line-height: 1.28;
}

.app-subscription-status-line {
  margin: 0 0 .75rem;
}

.app-subscription-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .3rem .72rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-subscription-status-pill.is-active {
  background: #dff2ea;
  color: #0f7a4a;
}

.app-subscription-status-pill.is-inactive,
.app-subscription-status-pill.is-expired {
  background: #fee2e2;
  color: #b91c1c;
}

.app-subscription-status-pill.is-neutral {
  background: #e5e7eb;
  color: #374151;
}

.app-subscription-meta {
  margin: .45rem 0 0;
}

.app-subscription-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .65rem;
  margin: .3rem 0;
}

.app-subscription-meta dt {
  color: #6b7280;
  font-size: 1.26rem;
}

.app-subscription-meta dd {
  margin: 0;
  color: #111827;
  font-size: 1.3rem;
  font-weight: 700;
}

.app-subscription-actions {
  margin-top: .95rem;
  display: grid;
  gap: .5rem;
}

.app-subscription-empty {
  margin: 0;
  color: #6b7280;
  font-size: 1.32rem;
}

.app-subscription-history {
  display: grid;
  gap: .62rem;
}

.app-subscription-item {
  border: 1px solid #d7dde4;
  border-radius: 16px;
  background: #f8fafc;
  padding: .72rem .82rem;
}

.app-subscription-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.app-subscription-item-head strong {
  color: #111827;
  font-size: 1.26rem;
}

.app-subscription-item-platform {
  margin: .22rem 0 .52rem;
  color: #6b7280;
  font-size: 1.16rem;
}

.app-subscription-item-meta {
  margin: 0;
}

.app-subscription-item-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  margin: .2rem 0;
}

.app-subscription-item-meta dt {
  color: #6b7280;
  font-size: 1.14rem;
}

.app-subscription-item-meta dd {
  margin: 0;
  color: #111827;
  font-size: 1.16rem;
  font-weight: 600;
}

.app-switch {
  position: relative;
  width: 66px;
  height: 38px;
  display: inline-block;
}

.app-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.app-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: .2s ease;
}

.app-switch-slider::before {
  content: "";
  position: absolute;
  height: 30px;
  width: 30px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: .2s ease;
}

.app-switch input:checked + .app-switch-slider {
  background: #168253;
}

.app-switch input:checked + .app-switch-slider::before {
  transform: translateX(28px);
}

.app-wish-shell {
  max-width: 860px;
}

.app-wish-header {
  margin-bottom: .7rem;
}

.app-wish-header h1 {
  margin: 0;
  text-align: center;
  font-size: 2.08rem;
  line-height: 1.2;
}

.app-wish-card {
  border-radius: 28px;
  padding: 1rem;
  background: #f0f2f5;
  border-color: #dce2e7;
}

.app-wish-intro {
  margin: 0 0 .9rem;
  color: #374151;
  font-size: 1.23rem;
  line-height: 1.3;
}

.app-wish-form {
  display: grid;
  gap: .55rem;
}

.app-wish-form .ui-field-label {
  margin-bottom: .15rem;
  font-size: 1.23rem;
}

.app-wish-form .ui-input {
  min-height: 56px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.12rem;
}

.app-wish-textarea {
  min-height: 130px;
  resize: vertical;
}

.app-wish-note {
  margin: .25rem 0 .2rem;
}

.app-wish-actions {
  margin-top: .2rem;
  display: grid;
  gap: .6rem;
}

.app-wish-actions .app-btn {
  margin-top: 0;
}

.app-wish-back-link {
  margin-top: .25rem;
}

.app-wish-partner-box {
  margin-top: .3rem;
  border: 1px solid #d5dae0;
  border-radius: 16px;
  background: #f8fafc;
  padding: .75rem;
}

.app-wish-partner-link {
  margin-top: 0;
}

.app-wish-partner-copy {
  margin: .6rem 0 0;
  font-size: .95rem;
}

.app-wish-shell .app-card > p.app-wish-affiliate-note {
  margin-top: 1rem;
  font-size: .8rem;
}

.auth-scene {
  position: relative;
  min-height: 100dvh;
  background-image: url('/assets/img/bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.22), rgba(12, 18, 30, 0.14) 45%, rgba(13, 16, 23, 0.2));
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: calc(1rem + env(safe-area-inset-top)) 1rem 2rem;
}

.auth-topline {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  margin-bottom: .9rem;
}

.auth-topline h1 {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.auth-back-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 50, 78, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-back-btn:hover {
  text-decoration: none;
}

.auth-hero-copy {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.auth-hero-copy h2 {
  margin: 0;
  font-size: 3rem;
  line-height: .96;
  font-weight: 800;
}

.auth-hero-copy p {
  margin: .9rem 0 0;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 600;
}

.auth-glass-card {
  border-radius: 24px;
  padding: .95rem;
  background: rgba(228, 232, 235, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 44px rgba(10, 14, 20, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-social-error {
  min-height: 1.2rem;
  color: #fee2e2;
  font-size: .95rem;
  font-weight: 600;
}

.auth-social-stack {
  display: grid;
  gap: .75rem;
}

.auth-provider-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 19px;
  padding: .85rem 1rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.auth-provider-btn:hover {
  text-decoration: none;
}

.auth-provider-icon {
  width: 42px;
  text-align: center;
  font-size: 1.9rem;
}

.auth-provider-btn--apple {
  background: #020205;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-provider-btn--google {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.auth-provider-btn--email {
  background: rgba(236, 228, 205, 0.9);
  color: #0f172a;
}

.auth-segment-card {
  margin-top: .2rem;
  margin-bottom: .75rem;
}

.auth-segment-control {
  background: rgba(197, 204, 215, 0.68);
  border-radius: 999px;
  padding: .28rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
}

.auth-segment-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  background: transparent;
  cursor: pointer;
}

.auth-segment-btn.is-active {
  background: rgba(255, 255, 255, 0.92);
}

.auth-email-card {
  padding: .95rem;
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.is-active {
  display: block;
}

.auth-form-stack {
  display: grid;
  gap: .7rem;
}

.auth-form-stack input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid #d8dde4;
  background: rgba(255, 255, 255, 0.93);
  min-height: 62px;
  padding: .95rem 1.1rem;
  font-size: 1.1rem;
  color: #111827;
}

.auth-form-stack input::placeholder {
  color: #9ca3af;
}

.auth-primary-btn {
  appearance: none;
  border: 0;
  width: 100%;
  border-radius: 18px;
  background: rgba(220, 224, 230, 0.9);
  color: #9ca3af;
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
}

.auth-email-card .auth-primary-btn {
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.auth-email-card .auth-primary-btn.is-ready {
  background: var(--ui-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 130, 83, 0.25);
}

.auth-email-card .auth-primary-btn.is-ready:hover {
  filter: brightness(.96);
}

.auth-email-card .auth-primary-btn:focus-visible {
  outline: 3px solid rgba(22, 130, 83, 0.35);
  outline-offset: 2px;
}

.auth-secondary-btn {
  appearance: none;
  border: 1px solid #cfd6de;
  width: 100%;
  border-radius: 16px;
  background: rgba(246, 248, 250, 0.9);
  color: #1f2937;
  font-size: 1.38rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-secondary-link {
  display: inline;
  color: #1f2937;
  font-size: 1.38rem;
  font-weight: 700;
  cursor: pointer;
  background:none;
  margin: 1rem 0;
}

.auth-inline-link {
  display: block;
  margin-top: .95rem;
  text-align: center;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: none;
}

.auth-helper-copy {
  margin: .95rem 0 0;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.3;
}

@media (min-width: 860px) {
  .auth-wrap {
    max-width: 620px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.app-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.app-header p {
  margin: .35rem 0 0;
  color: var(--ui-muted);
  font-size: 1.2rem;
}

.app-card {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  padding: .95rem;
  margin: .8rem 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.app-brand-card {
  display: flex;
  gap: .95rem;
  align-items: center;
}

.app-brand-logo {
  width: 66px;
  height: 66px;
  background: #dcebe6;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-brand-logo img {
  width: 44px;
  height: 44px;
}

.app-title {
  margin: 0;
  font-size: 2.4rem;
}

.app-subtitle {
  margin: .2rem 0 0;
  color: var(--ui-muted);
  font-size: 1.4rem;
}

.app-gradient-card {
  background: linear-gradient(135deg, #ffffff, #eef2f9);
}

.app-gradient-card--green {
  background: linear-gradient(135deg, #ffffff, #edf6f2);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.app-card-head h2 {
  margin: 0;
  font-size: 2.3rem;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-icon-blue { background: #dbeafe; }
.app-icon-green { background: #dff2ea; }

.app-card p {
  color: var(--ui-muted);
  font-size: 1.1rem;
  line-height: 1.4;
}

.app-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: .9rem 1rem;
  margin-top: .7rem;
  box-sizing: border-box;
}

.app-btn-primary {
  background: var(--ui-green);
  color: #fff;
}

.app-btn-secondary {
  background: #fff;
  color: #111827;
  border-color: var(--ui-border);
}

.app-btn-danger {
  background: #fff;
  color: #dc2626;
  border-color: rgba(220, 38, 38, .35);
}

.app-note {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.app-note p { margin: 0; }

.app-split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .9rem;
}

.app-group-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.app-group-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}

.app-group-gift {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff2ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-chip {
  display: inline-flex;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 999px;
  font-weight: 700;
  padding: .45rem .75rem;
  margin: .65rem 0;
}

.app-group-meta {
  margin: .25rem 0 0;
}

.app-group-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  margin: .35rem 0;
}

.app-group-meta dt {
  color: var(--ui-muted);
  font-size: 1.32rem;
}

.app-group-meta dd {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
}

.app-group-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .55rem;
}

.app-draws-header h1 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.12;
}

.app-draws-header p {
  margin: .35rem 0 0;
  color: var(--ui-muted);
  font-size: 1.44rem;
  line-height: 1.35;
}

.app-draw-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.app-draw-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.app-draw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.app-draw-member-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  background: #dff2ea;
  color: var(--ui-green);
  padding: .35rem .7rem;
  font-size: 1.11rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-draw-meta {
  margin: .65rem 0 .45rem;
}

.app-draw-meta div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  margin: .3rem 0;
}

.app-draw-meta dt {
  color: var(--ui-muted);
  font-size: 1.31rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.app-draw-ico {
  display: inline-flex;
  width: 1.1em;
  justify-content: center;
}

.app-draw-meta dd {
  margin: 0;
  font-size: 1.37rem;
  font-weight: 700;
  color: #0f172a;
}

.app-unread-badge {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .38rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  background: linear-gradient(160deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
  border: 1.5px solid rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(127, 29, 29, .28), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.app-unread-badge--tab {
  min-width: 1.1rem;
  height: 1.1rem;
  font-size: .59rem;
  padding: 0 .25rem;
  margin-left: .28rem;
  border-width: 1px;
}

.app-tabbar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  background: #eef3f4;
  border: 1px solid #dce2e7;
  border-radius: 26px;
  padding: .34rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  z-index: 40;
}

.app-tab {
  color: #4b5563;
  text-decoration: none;
  border-radius: 20px;
  padding: .46rem .14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.app-tab.is-active {
  background: #dde7eb;
  color: var(--ui-green);
}

.app-tab-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-tab-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  line-height: 1;
}

.app-tab-label-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.app-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.app-btn-with-icon {
  gap: .55rem;
  flex-direction: row;
}

.app-btn-with-icon .app-ico {
  flex: 0 0 auto;
}

.app-shell-admin {
  max-width: 860px;
}

.app-admin-header {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .25rem 0 .55rem;
  background: var(--ui-bg);
}

.app-admin-header h1 {
  margin: 0;
  font-size: 1.59rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.app-back-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ui-border);
  background: #fff;
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  line-height: 1;
}

.app-admin-summary h2,
.app-admin-event-status h2,
.app-admin-next h2,
.app-admin-workflow h2,
.app-admin-actions h2,
.app-admin-draw h2,
.app-admin-reminders h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.app-admin-summary > p,
.app-admin-event-status > p,
.app-admin-next > p, 
.app-admin-workflow > p,
.app-admin-actions > p,
.app-admin-draw > p,
.app-admin-reminders > p {
  margin: .2rem 0 .65rem;
  color: var(--ui-muted);
  font-size: 1.1rem;
  line-height: 1.35;
}

.app-pro-crown {
  display: inline-flex;
  vertical-align: middle;
  margin-left: .25rem;
  color: #b98105;
}

.app-admin-reminders-form {
  display: grid;
  gap: .65rem;
}

.app-admin-reminder-toggle-row {
  margin-bottom: .1rem;
}

.app-admin-reminder-group {
  display: grid;
  gap: .45rem;
}

.app-admin-reminder-group strong {
  font-size: 1.13rem;
  line-height: 1.2;
}

.app-admin-reminder-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.app-admin-reminder-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d8c8;
  background: #f2faf6;
  color: #166534;
  border-radius: 999px;
  padding: .4rem .72rem;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 600;
  cursor: pointer;
}

.app-admin-reminder-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-admin-reminder-chip.is-selected {
  background: #79c29f;
  border-color: #5eb08a;
  color: #fff;
}

.app-admin-reminder-chip.is-disabled {
  opacity: .55;
  cursor: default;
}

.app-event-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .58rem;
}

.app-event-status-grid + .app-event-status-grid,
.app-event-status-grid + .app-event-status-locked,
.app-event-status-grid + .app-event-status-note,
.app-event-status-note + .app-event-status-blockers {
  margin-top: .58rem;
}

.app-event-status-grid--pro-top,
.app-event-status-grid--locked {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-event-status-kpi {
  border-radius: 14px;
  padding: .65rem .7rem;
  display: grid;
  gap: .18rem;
}

.app-event-status-kpi span {
  font-size: .98rem;
  color: var(--ui-muted);
  line-height: 1.15;
  font-weight: 500;
}

.app-event-status-kpi strong {
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.app-event-status-kpi--blue {
  background: #dbeafe;
}

.app-event-status-kpi--blue span {
  color: #2563eb;
}

.app-event-status-kpi--green {
  background: #dff2ea;
}

.app-event-status-kpi--green span {
  color: #15803d;
}

.app-event-status-kpi--red {
  background: #fee2e2;
}

.app-event-status-kpi--red span {
  color: #dc2626;
}

.app-event-status-kpi--gray {
  background: #e5e7eb;
}

.app-event-status-kpi--gray span {
  color: #4b5563;
}

.app-event-status-note {
  margin: .58rem 0 0;
  font-size: 1rem;
}

.app-event-status-note--ok {
  color: #15803d;
}

.app-event-status-blockers {
  margin-top: .58rem;
}

.app-event-status-blockers strong {
  display: block;
  margin-bottom: .24rem;
}

.app-event-status-blockers ul {
  margin: 0;
  padding-left: 1rem;
}

.app-event-status-blockers li {
  margin: .22rem 0;
}

.app-event-status-locked {
  position: relative;
  margin-top: .58rem;
}

.app-event-status-locked .app-event-status-grid {
  filter: blur(5px);
  opacity: .84;
  pointer-events: none;
  user-select: none;
}

.app-event-status-locked-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(248, 250, 252, .95);
  color: #0f172a;
  padding: .38rem .72rem;
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
}

.app-insights-window-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.app-insights-window-chip {
  border-radius: 999px;
  border: 1px solid #cfd5df;
  background: #fff;
  color: #374151;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  padding: .4rem .72rem;
  text-decoration: none;
}

.app-insights-window-chip.is-active {
  background: #dff2ea;
  border-color: #6ab48e;
  color: #166534;
}

.app-insights-risk-list {
  display: grid;
  gap: .55rem;
}

.app-insights-risk-list .app-event-status-kpi small {
  color: #334155;
  font-size: .9rem;
  line-height: 1.25;
}

.app-insights-trend-list {
  display: grid;
  gap: .35rem;
}

.app-insights-trend-row {
  display: grid;
  grid-template-columns: minmax(98px, auto) repeat(3, minmax(0, 1fr));
  gap: .45rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: .55rem .65rem;
}

.app-insights-trend-row strong {
  font-size: .95rem;
  color: #0f172a;
}

.app-insights-trend-row span {
  color: #475569;
  font-size: .93rem;
}

.app-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .58rem;
}

.app-admin-metric {
  border-radius: 14px;
  padding: .65rem .7rem;
}

.app-admin-metric span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  font-size: 1.02rem;
  color: var(--ui-muted);
  font-weight: 500;
}

.app-admin-metric strong {
  display: block;
  margin-top: .15rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
}

.app-admin-metric--blue {
  background: #dbeafe;
}

.app-admin-metric--blue span {
  color: #2563eb;
}

.app-admin-metric--green {
  background: #dff2ea;
}

.app-admin-metric--green span {
  color: #168253;
}

.app-admin-metric--red {
  background: #fbe4e6;
}

.app-admin-metric--red span {
  color: #dc2626;
}

.app-admin-next-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .65rem;
  align-items: start;
  margin-bottom: .5rem;
}

.app-admin-next-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff2ea;
  color: var(--ui-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-admin-next h3 {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.2;
}

.app-admin-next-row p {
  margin: .2rem 0 0;
  color: var(--ui-muted);
  font-size: 1.23rem;
  line-height: 1.3;
}

.app-workflow-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .65rem;
  align-items: start;
  margin: .6rem 0;
}

.app-workflow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #9ca3af;
  margin-top: .2rem;
}

.app-workflow-dot.is-done {
  background: var(--ui-green);
  border-color: var(--ui-green);
  position: relative;
}

.app-workflow-dot.is-done::after {
  content: "✓";
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
}

.app-workflow-row strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.18;
}

.app-workflow-row small {
  display: block;
  color: var(--ui-muted);
  font-size: 1.17rem;
  line-height: 1.3;
}

.app-admin-error {
  color: #dc2626;
  margin: .5rem 0 0;
  font-size: 1rem;
}

.app-admin-draw-state strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.18;
}

.app-admin-draw-state small {
  display: block;
  color: var(--ui-muted);
  margin-top: .15rem;
  font-size: 1.14rem;
}

.app-admin-draw-icon {
  display: inline-flex;
  color: #dc2626;
  margin: 0 0 .3rem;
}

.app-draw-sheet-body {
  display: grid;
  gap: .72rem;
}

.app-draw-mode-grid {
  display: grid;
  gap: .55rem;
}

.app-draw-mode-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ui-border);
  background: #fff;
  border-radius: 14px;
  padding: .72rem .78rem;
  cursor: pointer;
  color: var(--ui-text);
}

.app-draw-mode-option strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.2;
}

.app-draw-mode-option small {
  display: block;
  margin-top: .16rem;
  color: var(--ui-muted);
  font-size: .97rem;
  line-height: 1.25;
}

.app-draw-mode-option.is-selected {
  border-color: var(--ui-green);
  box-shadow: 0 0 0 1px rgba(22, 101, 52, .2) inset;
  background: #f2faf6;
}

.app-draw-overwrite-box {
  border: 1px solid #f1c2c2;
  background: #fff5f5;
  border-radius: 12px;
  padding: .68rem .72rem;
}

.app-draw-overwrite-box strong {
  display: block;
  margin-bottom: .2rem;
}

.app-draw-overwrite-box p {
  margin: 0 0 .45rem;
  color: var(--ui-muted);
}

.app-draw-overwrite-toggle {
  margin-top: .15rem;
}

.app-draw-overwrite-toggle p {
  font-size: 1rem;
  line-height: 1.3;
  color: #111827;
}

.app-admin-action-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  margin-top: .55rem;
  padding: .72rem 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.43rem;
  font-weight: 600;
  line-height: 1.22;
}

.app-admin-action-row .app-ico {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.app-admin-member-list {
  margin-top: .35rem;
}

.app-admin-member-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .35rem 0;
  border-bottom: 1px solid #eef2f7;
}

.app-admin-member-row:last-child {
  border-bottom: 0;
}

.app-admin-member-main {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.app-admin-member-main strong {
  font-size: 1.3rem;
  line-height: 1.2;
}

.app-admin-member-status {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  appearance: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: 1;
}

.app-admin-member-status-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-admin-member-status {
  cursor: pointer;
}

.app-admin-member-status:focus-visible {
  outline: 2px solid #2f855a;
  outline-offset: 2px;
}

.app-admin-member-status-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  z-index: 30;
  min-width: 12rem;
  max-width: 18rem;
  padding: .5rem .65rem;
  border-radius: .6rem;
  background: #1f2937;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.35;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .2);
}

.app-admin-member-status-tooltip::before {
  content: "";
  position: absolute;
  top: -.3rem;
  right: .95rem;
  width: .65rem;
  height: .65rem;
  background: #1f2937;
  transform: rotate(45deg);
}

.app-admin-member-status .app-ico {
  flex: 0 0 auto;
}

.app-admin-member-status.is-secure {
  color: #168253;
  background: #dff2ea;
  border-color: rgba(22, 130, 83, .22);
}

.app-admin-member-status.is-guest {
  color: #dc2626;
  background: #fee2e2;
  border-color: rgba(220, 38, 38, .24);
}

.app-admin-member-status.is-pending {
  color: #6b7280;
  background: #eef2f7;
  border-color: #dce2e7;
}

.app-ico {
  display: inline-block;
  vertical-align: middle;
}

.members-flow {
  padding-bottom: calc(23rem + env(safe-area-inset-bottom));
}

.members-flow,
.members-flow * {
  box-sizing: border-box;
}

.flow-progress-card {
  padding: .95rem 1rem;
}

.flow-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem;
}

.flow-progress-row strong {
  font-size: 1rem;
  line-height: 1.15;
}

.flow-progress-row span {
  font-size: 1rem;
  color: var(--ui-muted);
  font-weight: 700;
}

.flow-track {
  height: 8px;
  border-radius: 999px;
  background: #dadce3;
  overflow: hidden;
}

.flow-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ui-green);
}

.members-list {
  margin-top: .5rem;
}

.member-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.member-row-name {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.member-row-name strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.member-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: .18rem .72rem;
  border-radius: 999px;
  color: var(--ui-green);
  background: #dff2ea;
  font-weight: 600;
  font-size: 1.04rem;
}

.member-delete-wrap {
  position: relative;
}

.member-delete-wrap summary {
  list-style: none;
}

.member-delete-wrap summary::-webkit-details-marker {
  display: none;
}

.member-delete-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fde8e8;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.member-delete-form {
  position: absolute;
  right: 0;
  top: 50px;
  width: min(290px, 80vw);
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: .6rem;
  z-index: 20;
}

.flow-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin-bottom: .55rem;
  font-size: .95rem;
  color: var(--ui-muted);
}

.flow-mini-danger {
  width: 100%;
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 10px;
  background: #fff;
  color: #dc2626;
  font-weight: 700;
  padding: .55rem .75rem;
}

.members-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #f4f5f8;
  color: #0f172a;
  padding: .85rem;
  margin: 0;
  resize: vertical;
  min-height: 160px;
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.members-input:focus {
  outline: none;
  border-color: var(--ui-green);
  box-shadow: none;
}

.members-stats {
  margin: .55rem 0;
}

.members-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .22rem 0;
}

.members-stats span {
  color: var(--ui-muted);
}

.members-stats strong {
  font-size: 1.2rem;
}

.flow-bottom-actions {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: 84px;
  z-index: 35;
  display: grid;
  gap: .5rem;
  background: rgba(239, 243, 246, .92);
  border-top: 1px solid var(--ui-border);
  padding: .55rem .45rem calc(.45rem + env(safe-area-inset-bottom));
  border-radius: 16px;
}

.flow-bottom-actions.is-inline {
  position: static;
  border-top: 0;
  background: transparent;
  padding: .6rem 0 0;
}

.exclusion-card {
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: .85rem;
  background: #fff;
  margin: .6rem 0;
}

.exclusion-card h3 {
  margin: 0 0 .2rem;
  font-size: 1.1rem;
}

.exclusion-card p {
  margin: 0 0 .55rem;
}

.exclusion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
}

.exclusion-row > span:first-child {
  font-size: 1.2rem;
}

.exclusion-right {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.exclusion-on-text {
  color: #ef4444;
  font-size: .95rem;
}

.flow-switch {
  position: relative;
  display: inline-flex;
  width: 60px;
  height: 34px;
}

.flow-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.flow-switch-slider {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c5c7cc;
  position: relative;
}

.flow-switch-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.flow-switch input:checked + .flow-switch-slider::before {
  transform: translateX(26px);
}

.flow-switch-red input:checked + .flow-switch-slider {
  background: #ef4444;
}

.flow-switch-green input:checked + .flow-switch-slider {
  background: var(--ui-green);
}

.group-settings-flow {
  padding-bottom: calc(16rem + env(safe-area-inset-bottom));
}

.group-settings-flow,
.group-settings-flow * {
  box-sizing: border-box;
}

.group-settings-flow .gs-card h2 {
  margin: 0 0 .35rem;
  font-size: 2rem;
  line-height: 1.15;
}

.group-settings-flow .gs-card p {
  margin: 0 0 .75rem;
  font-size: 1.13rem;
  color: var(--ui-muted);
}

.gs-toggle-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  font-size: 1.23rem;
  color: #111827;
}

.gs-toggle-row + .gs-toggle-row {
  margin-top: .25rem;
}

.gs-toggle-row.is-disabled {
  opacity: .48;
}

.gs-textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #f4f5f8;
  color: #0f172a;
  resize: vertical;
  font-size: 1.02rem;
  line-height: 1.35;
  padding: .85rem;
}

.gs-textarea:focus {
  outline: none;
  border-color: var(--ui-green);
  box-shadow: none;
}

.gs-date-pill-row {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  margin: .35rem 0 .65rem;
}

.gs-date-pill-row .ui-chip-btn {
  min-width: 88px;
  text-align: center;
  padding: .62rem .95rem;
}

.gs-date-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6rem;
}

.gs-date-select-row > span {
  font-size: 1.23rem;
  color: #111827;
}

.gs-date-input {
  border: 0;
  border-radius: 999px;
  padding: .5rem .88rem;
  background: #eaebef;
  color: #111827;
  font-size: 1.16rem;
  min-height: 42px;
}

.gs-date-input:disabled {
  opacity: .55;
}

.gs-budget-select {
  width: auto;
  min-width: 140px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ui-green);
  font-size: 1.67rem;
  font-weight: 600;
  padding: .2rem 1.15rem .2rem .25rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 2l5 5 5-5' stroke='%23168253' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .28rem center;
}

.gs-budget-select:focus {
  outline: none;
}

.gs-budget-custom {
  margin-top: .55rem;
}

.gs-budget-custom label {
  display: block;
  font-size: .94rem;
  color: var(--ui-muted);
  margin-bottom: .3rem;
}

.gs-branding-label {
  display: block;
  margin: .65rem 0 .3rem;
  font-size: .95rem;
  color: var(--ui-muted);
}

.gs-brand-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .8rem;
}

.gs-brand-color-field {
  display: grid;
  gap: .35rem;
  color: #111827;
  font-size: 1rem;
}

.gs-brand-color-field input[type="color"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
  padding: .25rem;
  cursor: pointer;
}

.gs-brand-color-field input[type="color"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.gs-brand-color-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  color: var(--ui-muted);
}

.gs-branding-actions {
  margin-top: .9rem;
}

.gs-card-danger h2 {
  color: #dc2626;
}

.gs-delete-btn {
  margin-top: .2rem;
  background: #fff2f2;
  border-color: rgba(220, 38, 38, .34);
  color: #ef4444;
}

.settings-save-dock {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: 84px;
  z-index: 35;
  background: rgba(239, 243, 246, .92);
  border-top: 1px solid var(--ui-border);
  padding: .55rem .45rem calc(.45rem + env(safe-area-inset-bottom));
  border-radius: 16px;
}

.invite-share-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .35rem 0;
  border-bottom: 1px solid #eef2f7;
}

.members-flow .app-card input,
.members-flow .app-card textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.invite-share-row:last-child {
  border-bottom: 0;
}

.invite-share-row strong {
  font-size: 1.1rem;
}

.invite-share-mini {
  min-width: 118px;
  width: auto;
  margin: 0;
  font-size: .95rem;
  padding: .55rem .8rem;
}

.invite-email-list {
  display: grid;
  gap: .65rem;
}

.invite-email-row {
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  padding: .72rem;
  background: #f8fafc;
}

.invite-email-row .ui-input {
  display: block;
  width: 100%;
  margin: 0;
}

.invite-email-row label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .45rem;
}

.ui-flow {
  max-width: 760px;
  margin: 0 auto;
  padding: .8rem .95rem 2rem;
}

.ui-flow,
.ui-flow * {
  box-sizing: border-box;
}

.ui-flow__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.ui-flow__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.ui-nav-btn {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ui-green);
  font-size: 1.1rem;
  font-weight: 700;
  padding: .7rem 1rem;
  min-width: 7rem;
}

.ui-nav-btn[disabled] {
  color: #9ca3af;
}

.ui-form {
  margin: 0;
}

.ui-screen {
  display: none;
}

.ui-screen.is-active {
  display: block;
}

.ui-progress-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--ui-muted);
  font-size: 1.02rem;
  margin-bottom: .45rem;
}

.ui-progress-track {
  height: 8px;
  background: #dadce3;
  border-radius: 999px;
  overflow: hidden;
}

.ui-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ui-green);
  border-radius: inherit;
}

.ui-screen.is-active .ui-progress-fill {
  width: 100%;
}

.ui-screen-title {
  margin: 1rem 0 .4rem;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.15;
}

.ui-screen-subtitle {
  margin: 0 0 1rem;
  color: var(--ui-muted);
  font-size: 1.1rem;
  line-height: 1.35;
}

.ui-panel {
  background: #f8f8fb;
  border: 1px solid var(--ui-border);
  border-radius: 24px;
  padding: .95rem;
}

.ui-field {
  display: block;
  margin-bottom: .85rem;
}

.ui-field:last-child {
  margin-bottom: 0;
}

.ui-field-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.ui-field-label--muted {
  color: var(--ui-muted);
  font-weight: 500;
}

.ui-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
  padding: .85rem 1rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.ui-input:focus {
  outline: none;
  border-color: var(--ui-green);
  box-shadow: 0 0 0 3px rgba(22, 130, 83, .14);
}

.ui-copy {
  color: var(--ui-muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 .8rem;
}

.ui-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.ui-chip-row {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: .2rem;
  margin-bottom: .75rem;
}

.ui-chip {
  border-radius: 999px;
  background: #eaebef;
  color: #111827;
  border: 1px solid transparent;
  font-weight: 700;
  padding: .55rem .95rem;
}

.ui-chip input {
  display: none;
}

.ui-chip:has(input:checked) {
  background: #bfd8cf;
  color: var(--ui-green);
  border-color: rgba(22, 130, 83, .25);
}

.ui-chip-btn {
  border: 0;
  border-radius: 999px;
  background: #eaebef;
  color: #4b5563;
  font-weight: 700;
  padding: .55rem 1rem;
}

.ui-chip-btn.is-active {
  background: #bfd8cf;
  color: var(--ui-green);
}

.ui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 0;
}

.ui-toggle-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.ui-toggle-text {
  color: var(--ui-muted);
  margin-top: .2rem;
}

.ui-toggle {
  position: relative;
  display: inline-block;
  width: 62px;
  height: 36px;
}

.ui-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ui-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: .2s ease;
}

.ui-toggle-slider::before {
  content: "";
  position: absolute;
  height: 30px;
  width: 30px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s ease;
}

.ui-toggle input:checked + .ui-toggle-slider {
  background: var(--ui-green);
}

.ui-toggle input:checked + .ui-toggle-slider::before {
  transform: translateX(26px);
}

.ui-radio-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.7rem;
  margin: .45rem 0;
}

.ui-radio-row input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ui-green);
}

.ui-auth-option {
  width: 100%;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .82rem .95rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.ui-auth-option--apple {
  background: #111827;
  color: #fff;
}

.ui-auth-option--google {
  background: #bfd8cf;
  color: var(--ui-green);
  border-color: transparent;
}

.ui-auth-option--email {
  background: #b28662;
  color: #fff;
}

.ui-auth-option[disabled] {
  opacity: .55;
}

.ui-auth-icon {
  width: 1.2rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.ui-help {
  color: var(--ui-muted);
  font-size: .95rem;
}

.ui-consent {
  font-size: .95rem;
  line-height: 1.45;
}

@media (min-width: 980px) {
  .ui-flow {
    max-width: 860px;
  }

  .app-shell-admin {
    max-width: 760px;
  }

  .app-admin-header h1 {
    font-size: 2rem;
  }

  .app-admin-summary h2,
  .app-admin-event-status h2,
  .app-admin-next h2,
  .app-admin-workflow h2,
  .app-admin-actions h2,
  .app-admin-draw h2,
  .app-admin-reminders h2 {
    font-size: 2.45rem;
  }

  .app-admin-next h3 {
    font-size: 2.05rem;
  }

  .app-workflow-row strong {
    font-size: 1.2rem;
  }
}

@media (min-width: 1024px) {
  .app-shell-admin-dashboard {
    max-width: min(1640px, calc(100vw - 3rem));
    padding: 1.1rem clamp(1.25rem, 2.8vw, 2.6rem) calc(7.35rem + env(safe-area-inset-bottom));
  }

  .app-shell-admin-dashboard .app-admin-header {
    margin-bottom: .1rem;
    padding: .35rem 0 .8rem;
  }

  .app-shell-admin-dashboard .app-admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .app-shell-admin-dashboard .app-admin-dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .app-shell-admin-dashboard .app-admin-dashboard-main > .app-card,
  .app-shell-admin-dashboard .app-admin-dashboard-side > .app-card {
    margin: 0;
    padding: 1.1rem 1.15rem;
    border-radius: 22px;
  }

  .app-shell-admin-dashboard .app-admin-header h1 {
    font-size: clamp(1.85rem, 1vw + 1.2rem, 2.35rem);
  }

  .app-shell-admin-dashboard .app-admin-summary h2,
  .app-shell-admin-dashboard .app-admin-event-status h2,
  .app-shell-admin-dashboard .app-admin-next h2,
  .app-shell-admin-dashboard .app-admin-workflow h2,
  .app-shell-admin-dashboard .app-admin-actions h2,
  .app-shell-admin-dashboard .app-admin-status h2,
  .app-shell-admin-dashboard .app-admin-draw h2,
  .app-shell-admin-dashboard .app-admin-reminders h2 {
    font-size: clamp(1.55rem, .85vw + 1rem, 2rem);
    line-height: 1.2;
  }

  .app-shell-admin-dashboard .app-admin-summary > p,
  .app-shell-admin-dashboard .app-admin-event-status > p,
  .app-shell-admin-dashboard .app-admin-next > p,
  .app-shell-admin-dashboard .app-admin-workflow > p,
  .app-shell-admin-dashboard .app-admin-actions > p,
  .app-shell-admin-dashboard .app-admin-status > p,
  .app-shell-admin-dashboard .app-admin-draw > p,
  .app-shell-admin-dashboard .app-admin-reminders > p {
    margin: .3rem 0 .7rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .app-shell-admin-dashboard .app-admin-next h3 {
    font-size: clamp(1.35rem, .7vw + 1rem, 1.8rem);
  }

  .app-shell-admin-dashboard .app-admin-next-row p,
  .app-shell-admin-dashboard .app-workflow-row small {
    font-size: 1rem;
  }

  .app-shell-admin-dashboard .app-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem .75rem;
    align-content: start;
  }

  .app-shell-admin-dashboard .app-admin-actions > h2,
  .app-shell-admin-dashboard .app-admin-actions > p {
    grid-column: 1 / -1;
  }

  .app-shell-admin-dashboard .app-admin-actions .app-admin-action-row {
    min-height: 56px;
    margin-top: 0;
    padding: .7rem .85rem;
    font-size: 1.04rem;
  }
}

@media (min-width: 1250px) {
  .app-shell-admin-dashboard .app-admin-dashboard-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .app-shell-admin-dashboard .app-admin-dashboard-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell-admin-dashboard .app-admin-dashboard-main > .app-admin-event-status,
  .app-shell-admin-dashboard .app-admin-dashboard-main > .app-admin-draw {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ui-flow {
    padding: .7rem .75rem 1.5rem;
  }

  .ui-nav-btn {
    min-width: 6.3rem;
    padding: .62rem .8rem;
  }

  .ui-flow { max-width: 100%; }

  .app-shell-admin {
    padding-top: .55rem;
  }

  .app-event-status-grid,
  .app-event-status-grid--pro-top,
  .app-event-status-grid--locked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-event-status-kpi strong {
    font-size: 1.25rem;
  }

  .app-event-status-locked-note {
    white-space: normal;
    text-align: center;
    width: min(88%, 240px);
  }

  .app-insights-trend-row {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .members-flow {
    padding-bottom: calc(24.5rem + env(safe-area-inset-bottom));
  }

  .flow-progress-card {
    padding: .95rem .9rem;
  }

  .flow-progress-row strong {
    font-size: 1.2rem;
  }

  .flow-progress-row span {
    font-size: 1.2rem;
  }

  .members-flow .app-card h2 {
    font-size: 1.5rem;
    line-height: 1.18;
    margin: 0 0 .3rem;
  }

  .members-flow .app-card p {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 .55rem;
  }

  .members-input {
    min-height: 174px;
    border-radius: 16px;
    padding: .9rem;
    font-size: 1.06rem;
  }

  .members-stats span,
  .members-stats strong {
    font-size: 1.05rem;
  }

  .member-row {
    min-height: 60px;
  }

  .member-row-name strong {
    font-size: 1.2rem;
  }

  .member-admin-pill {
    font-size: .95rem;
    padding: .2rem .72rem;
  }

  .member-delete-btn {
    width: 42px;
    height: 42px;
  }

  .flow-bottom-actions {
    left: 12px;
    right: 12px;
    bottom: 84px;
    padding: .52rem .45rem calc(.5rem + env(safe-area-inset-bottom));
    gap: .55rem;
  }

  .exclusion-card {
    border-radius: 18px;
    padding: .9rem;
    margin: .62rem 0;
  }

  .exclusion-card h3 {
    font-size: 1.2rem;
  }

  .exclusion-row > span:first-child {
    font-size: 1.1rem;
  }

  .flow-switch {
    width: 62px;
    height: 36px;
  }

  .flow-switch-slider::before {
    width: 30px;
    height: 30px;
  }

  .flow-switch input:checked + .flow-switch-slider::before {
    transform: translateX(26px);
  }

  .invite-share-row {
    min-height: 64px;
    padding: .45rem .2rem;
  }

  .invite-share-row strong {
    font-size: 1.2rem;
  }

  .invite-share-mini {
    min-width: 112px;
    font-size: 1.02rem;
    border-radius: 14px;
  }

  .invite-email-row {
    border-radius: 14px;
    padding: .78rem;
  }

  .invite-email-row label strong {
    font-size: 1.7rem;
  }

  .invite-email-row .ui-input {
    border-radius: 13px;
    min-height: 48px;
    font-size: 1.05rem;
  }

  .group-settings-flow {
    padding-bottom: calc(17rem + env(safe-area-inset-bottom));
  }

  .group-settings-flow .gs-card h2 {
    font-size: 2rem;
  }

  .group-settings-flow .gs-card p {
    font-size: 1rem;
    margin: 0 0 .62rem;
  }

  .gs-toggle-row {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .gs-date-pill-row .ui-chip-btn {
    min-width: 82px;
    padding: .56rem .88rem;
  }

  .gs-budget-select {
    font-size: 1.95rem;
  }

  .gs-brand-color-grid {
    grid-template-columns: 1fr;
  }

  .settings-save-dock {
    left: 12px;
    right: 12px;
    bottom: 84px;
    padding: .52rem .45rem calc(.5rem + env(safe-area-inset-bottom));
  }

  .app-admin-metric {
    padding: .62rem .64rem;
  }

  .app-admin-metrics {
    gap: .5rem;
  }

  .app-btn {
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 52px;
  }

  .app-tabbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .app-tab {
    font-size: .62rem;
    gap: .14rem;
  }

  .app-tab-icon svg {
    width: 21px;
    height: 21px;
  }

  .app-private-shell {
    padding: .92rem .86rem calc(19.5rem + env(safe-area-inset-bottom));
  }

  .app-private-shell .app-card {
    border-radius: 24px;
    padding: .92rem .9rem;
    margin: .78rem 0;
  }

  .app-private-header {
    margin-bottom: .48rem;
    padding-bottom: .62rem;
  }

  .app-private-header h1 {
    font-size: 1.95rem;
  }

  .app-private-metric {
    padding: .58rem .58rem;
    border-radius: 14px;
  }

  .app-private-metric span {
    font-size: .83rem;
  }

  .app-private-metric strong {
    font-size: 1.2rem;
  }

  .app-private-shell .app-card > p {
    font-size: 1rem;
    margin-bottom: .65rem;
  }

  .app-private-assignment-row {
    border-radius: 15px;
    padding: .62rem .7rem;
  }

  .app-private-assignment-row strong {
    font-size: 1.86rem;
  }

  .app-private-gift-link {
    border-radius: 16px;
    min-height: 62px;
    padding: .55rem .76rem;
  }

  .app-private-dock .app-btn {
    min-height: 64px;
    border-radius: 18px;
    font-size: 1.02rem;
  }
}
