:root,
[data-theme="forest"] {
  color-scheme: light;
  --ink: #1d2938;
  --muted: #858e9b;
  --paper: #f7f5ef;
  --card: #fff;
  --line: #d9d9d4;
  --accent: #2f7d50;
  --accent-deep: #235d42;
  --moss: #2f7d50;
  --forest: #1d2938;
  --sage: #dcefe5;
  --sand: #eeebe3;
  --tan: #f8edc8;
  --danger: #a94735;
  --warning: #e07a3a;
  --flow-accent: #216c64;
  --flow-muted: #596270;
  --sidebar: 15.625rem;
  --shell-breakpoint: 900px;
  --page-pad: clamp(1rem, 5vw, 1.75rem);
  --nav-height: 5rem;
  --radius-card: 1.6rem;
  --shadow-card: 0 1px 2px rgba(29, 41, 56, .12), 0 10px 28px rgba(29, 41, 56, .04);
}

[data-theme="teal"] {
  --accent: #1f5c56;
  --accent-deep: #163f3b;
  --moss: #1f5c56;
  --sage: #dceae7;
  --flow-accent: #1f5c56;
  --paper: #f5f3ee;
  --ink: #1b2430;
  --forest: #1b2430;
}

[data-theme="navy"] {
  --accent: #2b4c7e;
  --accent-deep: #1d3557;
  --moss: #2b4c7e;
  --sage: #dce6f5;
  --flow-accent: #2b4c7e;
  --paper: #f4f6fa;
  --ink: #1d3557;
  --forest: #1d3557;
}

[data-theme="burgundy"] {
  --accent: #8b3a4a;
  --accent-deep: #6b2a38;
  --moss: #8b3a4a;
  --sage: #f3e0e4;
  --flow-accent: #8b3a4a;
  --paper: #faf6f4;
  --ink: #3d1f24;
  --forest: #3d1f24;
}

[data-theme="plum"] {
  --accent: #6b4c7a;
  --accent-deep: #4e3659;
  --moss: #6b4c7a;
  --sage: #eee4f2;
  --flow-accent: #6b4c7a;
  --paper: #f7f4f8;
  --ink: #2f2236;
  --forest: #2f2236;
}

[data-theme="slate"] {
  --accent: #4a5568;
  --accent-deep: #2d3748;
  --moss: #4a5568;
  --sage: #e2e8f0;
  --flow-accent: #4a5568;
  --paper: #f4f5f7;
  --ink: #2d3748;
  --forest: #2d3748;
}

[x-cloak] { display: none !important; }

.notification-shell { position: relative; }
.notification-trigger {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0.65rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}
.notification-trigger svg { width: 1.3rem; height: 1.3rem; }
.notification-trigger:focus-visible,
.notification-close:focus-visible,
.notification-entry:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}
.notification-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.35rem;
  width: .45rem;
  height: .45rem;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--danger);
}
.notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(18, 29, 43, 0.48);
}
.notification-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  max-height: min(82dvh, 42rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  background: var(--card);
  box-shadow: 0 -16px 42px rgba(36, 28, 22, 0.18);
}
.notification-panel-head,
.notification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.notification-panel-head h2 {
  margin: 0;
  font: 650 1.55rem/1.2 "Fraunces", serif;
}
.notification-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
}
.notification-list {
  max-height: min(56dvh, 29rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notification-list form { margin: 0; }
.notification-entry {
  display: grid;
  width: 100%;
  gap: 0.28rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
  text-align: left;
}
.notification-entry:hover { background: var(--sand); }
.notification-entry.is-unread { background: color-mix(in srgb, var(--sage) 45%, white); }
.notification-entry-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}
.notification-unread-label {
  border-radius: 999px;
  background: var(--accent);
  padding: 0.15rem 0.42rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.notification-entry small { color: var(--muted); }
.notification-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.notification-actions form { margin: 0; }
.notification-actions button,
.notification-actions a {
  margin: 0;
  padding: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
}
.notification-empty { padding: 2rem 1rem; text-align: center; }
.notification-empty p { color: var(--muted); }
.notifications-open { overflow: hidden; }
.sheet-handle { width: 2.7rem; height: .3rem; margin: .65rem auto 0; border-radius: 1rem; background: var(--line); }

@media (min-width: 900px) {
  .notification-overlay { display: none !important; }
  .notification-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    bottom: auto;
    left: auto;
    width: min(39rem, calc(100vw - var(--sidebar) - 2rem));
    max-height: min(38rem, calc(100vh - 5rem));
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(36, 28, 22, 0.18);
  }
  .notification-list { max-height: min(25rem, calc(100vh - 15rem)); }
}

/* Settings page */
.settings-page .app-main { max-width: none; }
.settings-page-shell { max-width: none; }
.settings-head { margin-bottom: 1.3rem; }
.settings-kicker {
  margin: 0 0 .25rem;
  color: var(--muted);
  font: 600 .72rem/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.settings-head h1 { margin: 0; font: 650 2rem/1.05 "Fraunces", serif; }
.settings-workspace { display: grid; gap: 1.2rem; }
.settings-rail {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  overflow: visible;
  padding-bottom: .15rem;
}
.settings-rail a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .45rem;
  min-height: 2.45rem;
  padding: .4rem .75rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.settings-rail a svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-rail a.is-active { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent); }
.settings-card {
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.settings-card-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.15rem; }
.settings-card-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  place-items: center;
  border-radius: .75rem;
  background: var(--sage);
  color: var(--accent-deep);
}
.settings-card-icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-card-head h2 { margin: 0; font: 650 1.35rem/1.15 "Fraunces", serif; }
.settings-card-head p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.settings-form fieldset { margin: 0; padding: 0; border: 0; }
.preference-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.preference-row:first-of-type { border-top: 0; }
.preference-row strong, .preference-row span { display: block; }
.preference-row span span { margin-top: .1rem; color: var(--muted); font-size: .85rem; line-height: 1.1; }
.preference-row input { appearance: none; width: 3rem; height: 1.75rem; border-radius: 999px; background: #bfc4ca; box-shadow: inset 0 0 0 2px transparent; transition: background .15s; }
.preference-row input::after { display: block; width: 1.35rem; height: 1.35rem; margin: .2rem; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .15s; }
.preference-row input:checked { background: var(--accent); }
.preference-row input:checked::after { transform: translateX(1.25rem); }
.settings-field-label, .settings-readonly span { display: block; margin-bottom: .35rem; font-weight: 600; }
.settings-readonly { display: block; margin-bottom: .9rem; }
.settings-readonly input {
  width: 100%;
  min-height: 2.7rem;
  padding: .55rem .8rem;
  border: 0;
  border-radius: .7rem;
  background: var(--sand);
  color: var(--ink);
  font: 400 1rem "Source Sans 3", sans-serif;
}
.settings-memberships { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.settings-memberships li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: .7rem; background: var(--sand); }
.settings-memberships strong { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.settings-save { display: block; width: auto; min-width: 12rem; margin-top: 1.15rem; }
.mobile-settings-logout { margin: 1.15rem 0 0; }
.mobile-settings-logout button { width: auto; min-width: 8rem; }
.settings-preview-col { min-width: 0; }
.settings-help { margin: 0 0 .8rem; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.settings-field { display: grid; gap: .35rem; margin-bottom: .85rem; font-weight: 600; }
.settings-field input[type="text"], .settings-field input[type="file"] { width: 100%; min-height: 2.6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; font: 400 1rem "Source Sans 3", sans-serif; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.theme-swatches legend { width: 100%; margin-bottom: .45rem; font-weight: 600; }
.theme-swatch { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .8rem; cursor: pointer; }
.theme-swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.theme-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch-chip { width: .85rem; height: .85rem; border-radius: 999px; background: var(--swatch); }
.color-fields { display: grid; gap: .85rem; margin: 0 0 1rem; }
.color-field { display: grid; gap: .35rem; font-weight: 600; }
.color-field small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.color-field-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .55rem; align-items: center; }
.color-field-row input[type="color"] { width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid var(--line); border-radius: .7rem; background: #fff; cursor: pointer; }
.color-field-row input[type="text"] { width: 100%; min-height: 2.6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; font: 500 .95rem ui-monospace, monospace; }
.settings-remove-logo { display: flex; align-items: center; gap: .5rem; margin: -.3rem 0 .9rem; font-size: .9rem; }
.login-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #d8d6d0; box-shadow: var(--shadow-card); }
.login-preview-chrome { display: flex; align-items: center; gap: .4rem; padding: .4rem .65rem; background: #d4d2cc; font-size: .72rem; color: #4b5563; }
.appearance-preview-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-preview-split { display: grid; }
.login-preview-left { display: flex; flex-direction: column; justify-content: center; padding: 1rem .9rem 1.15rem; background: var(--auth-paper, var(--paper)); }
.login-preview-brand { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin-bottom: 1rem; text-align: center; }
.login-preview-logo { height: 3.1rem; max-width: 6.5rem; object-fit: contain; padding: .15rem; border-radius: .55rem; background: #fff; }
.login-preview-name { font: 700 1rem "Fraunces", serif; color: var(--auth-ink, var(--ink)); }
.login-preview-card { padding: .9rem .85rem 1rem; border: 1px solid color-mix(in srgb, var(--auth-ink, var(--ink)) 12%, transparent); border-radius: 14px; background: #fff; }
.login-preview-card h3 { margin: 0 0 .2rem; font: 700 1.05rem "Fraunces", serif; color: var(--auth-ink, var(--ink)); }
.login-preview-card p { margin: 0 0 .75rem; color: color-mix(in srgb, var(--auth-ink, var(--ink)) 62%, white); font-size: .78rem; line-height: 1.4; }
.login-preview-input { margin-bottom: .7rem; padding: .55rem .7rem; border: 1.5px solid color-mix(in srgb, var(--auth-ink, var(--ink)) 16%, transparent); border-radius: 10px; color: color-mix(in srgb, var(--auth-ink, var(--ink)) 45%, white); font-size: .8rem; }
.login-preview-cta { display: flex; align-items: center; justify-content: center; min-height: 2.3rem; border-radius: 10px; background: var(--auth-teal, var(--accent)); color: #fff; font-size: .8rem; font-weight: 700; }
.login-preview-right { padding: 1rem .95rem 1.1rem; background: var(--auth-ink, var(--ink)); color: #fff; }
.login-preview-right p { margin: 0 0 .45rem; color: color-mix(in srgb, var(--auth-teal, var(--accent)) 55%, white); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.login-preview-right h3 { margin: 0 0 .45rem; font: 650 1rem/1.2 "Fraunces", serif; }
.login-preview-right p:last-child { margin: 0; color: rgba(255,255,255,.72); font-size: .75rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.coming-soon { display: inline-block; margin-left: .4rem; padding: .12rem .45rem; border-radius: 999px; background: var(--sand); color: var(--muted); font: 700 .68rem/1 "Source Sans 3", sans-serif; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.settings-advanced fieldset { margin: 0; padding: 0; border: 0; }
.domain-status { display: grid; gap: .45rem; margin: .4rem 0 .8rem; }
.domain-status div { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.domain-status dt { color: var(--muted); font-weight: 600; }
.domain-status dd { margin: 0; }
.domain-status-value {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
}
.domain-status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #c5ccd6;
}
.domain-status-value.is-pending .domain-status-dot { background: #d39b2a; }
.domain-status-value.is-connected .domain-status-dot { background: #2f7d50; }
.domain-check-message { margin: 0 0 .75rem; font-size: .85rem; font-weight: 650; }
.domain-check-message.is-notice { color: #2f7d50; }
.domain-check-message.is-error { color: var(--danger, #b42318); }
.domain-records-dialog {
  width: min(28rem, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.domain-records-dialog::backdrop {
  background: color-mix(in srgb, var(--forest) 38%, transparent);
}
.domain-records-body { padding: 1.35rem 1.35rem 1.2rem; }
.domain-records-body h2 {
  margin: 0;
  color: var(--forest);
  font: 650 1.35rem/1.25 "Fraunces", serif;
}
.domain-records-body > p {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.domain-record-steps { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.domain-record-steps h3 { margin: 0 0 .55rem; font-size: .95rem; }
.domain-copy-row {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
  margin: 0 0 .4rem;
}
.domain-copy-row span { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.domain-copy-row code {
  min-width: 0;
  overflow: auto;
  padding: .4rem .5rem;
  border-radius: .55rem;
  background: var(--sand, #f4f1ea);
  font-size: .78rem;
}
.domain-copy-row button {
  min-height: 2rem;
  padding: 0 .7rem;
  border: 0;
  border-radius: .6rem;
  background: var(--forest);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.notifications-open { overflow: hidden; }

@media (min-width: 900px) {
  .settings-page .desktop-utility { display: none; }
  .settings-page .app-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.6rem 2.5rem 1.5rem;
  }
  .settings-page-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }
  .settings-head { flex: none; }
  .settings-head h1 { font: 650 2.15rem/1.05 "Fraunces", serif; }
  .settings-workspace {
    display: flex;
    align-items: stretch;
    gap: 2.25rem;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  .settings-rail {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 13.75rem;
    flex: none;
    gap: .25rem;
    overflow: visible;
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
  .settings-rail a { width: 100%; }
  .settings-stage {
    flex: 1 1 41.25rem;
    max-width: 41.25rem;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .settings-page-shell.has-preview .settings-stage {
    flex: 0 1 41.25rem;
  }
  .settings-preview-col {
    flex: 1 1 25rem;
    min-width: 0;
    max-width: none;
    position: sticky;
    top: 0;
    align-self: stretch;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .settings-save { min-height: 3rem; }
}

@media (min-width: 1100px) {
  .login-preview-split { grid-template-columns: 1.15fr .95fr; min-height: 24rem; }
}

/* Lists workbench */
.lists-mobile-heading { margin-bottom: 1.2rem; }
.lists-mobile-nav { margin-bottom: 1.2rem; overflow-x: auto; }
.lists-mobile-nav a { display: grid; min-width: max-content; place-items: center; padding: .45rem .8rem; }
.list-kind-title { margin: 0; color: var(--muted); font: 600 .78rem ui-monospace,monospace; letter-spacing: .12em; text-transform: uppercase; }
.lists-page .lists-desk { gap: 1rem; }
.lists-page .tree-row { border-radius: 0; }
.lists-inspector-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lists-inspector-actions button {
  min-height: 3rem;
  border: 0;
  border-radius: 1rem;
  background: var(--sage);
  color: var(--forest);
  font-weight: 700;
}

@media (max-width: 899px) {
  .lists-page .lists-sidebar, .lists-page .lists-desk-copy, .lists-page .lists-tree-head, .lists-page .lists-tree-cols, .lists-page .tree-used, .lists-page .tree-size { display: none !important; }
  .lists-page .lists-inspector {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 85dvh;
    overflow: auto;
    padding: 1.25rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    border-radius: 1.5rem 1.5rem 0 0;
  }
  .lists-page .lists-inspector[data-read-only="true"],
  .lists-page .lists-inspector[data-open="false"] { display: none !important; }
  .lists-page .list-kind-title + button { position: fixed; right: 1.3rem; bottom: calc(var(--nav-height) + 1rem + env(safe-area-inset-bottom)); z-index: 20; width: 3.8rem; height: 3.8rem; overflow: hidden; padding: 0; border-radius: 50%; background: var(--ink); color: transparent; box-shadow: 0 8px 22px rgba(29,41,56,.22); }
  .lists-page .list-kind-title + button::after { position: absolute; inset: 0; display: grid; place-items: center; color: white; content: "+"; font-size: 2rem; font-weight: 400; }
  .lists-page section > form[action$="/categories"] { display: none; }
}
@media (min-width: 900px) {
  .lists-mobile-heading { display: none; }
  .lists-page .app-main { padding: 1.4rem 2rem 1.6rem; }
  .lists-page .lists-desk {
    grid-template-columns: 12rem minmax(0, 1fr) minmax(18rem, 20rem);
    align-items: stretch;
    gap: 1.25rem;
  }
  .lists-page .lists-sidebar {
    display: block !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .lists-page .lists-sidebar nav { margin: 0; gap: .15rem; }
  .lists-page .lists-rail-link {
    grid-template-columns: 1.1rem minmax(0, 1fr) auto;
    gap: .65rem;
    min-height: 3.15rem;
    padding: .65rem .75rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: .92rem;
  }
  .lists-page .lists-rail-link.is-selected {
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow-card);
  }
  .lists-page .lists-rail-link svg { width: 1.05rem; height: 1.05rem; }
  .lists-page .lists-rail-link span { min-width: 0; }
  .lists-page .lists-rail-link strong,
  .lists-page .lists-rail-link small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lists-page .lists-rail-link small { font-size: .72rem; }
  .lists-page .lists-rail-link .note-count {
    min-width: 1.15rem;
    padding-inline: .35rem;
    font-size: .68rem;
  }
  .lists-page .lists-mobile-nav { display: none !important; }
  .lists-page .lists-centre {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .1rem;
  }
  .lists-page .lists-centre-head { margin-bottom: 1rem; }
  .lists-page .list-kind-title { font: 700 1.5rem "Source Sans 3",sans-serif; color: var(--ink); letter-spacing: -.02em; text-transform: none; }
  .lists-page .lists-desk-kicker {
    margin-bottom: .35rem !important;
    font-size: .72rem !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .lists-page .lists-desk-copy { display: block !important; font-size: .88rem; line-height: 1.45; }
  .lists-page .lists-add {
    min-height: 2.5rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    background: var(--accent);
    font-size: .84rem;
  }
  .lists-page .lists-tree-head { display: flex !important; margin-bottom: .65rem; }
  .lists-page .lists-tree-head-title { display: none; }
  .lists-page .lists-tree-head p { font-size: .82rem; }
  .lists-page .lists-tree-cols,
  .lists-page .tree-row {
    grid-template-columns: 2rem 1.35rem minmax(0, 1fr) 5.5rem 6.5rem 2.5rem !important;
    column-gap: .55rem;
  }
  .lists-page .lists-tree-cols { display: grid !important; font-size: .75rem; }
  .lists-page .tree-row {
    min-height: 3.1rem;
    padding-block: .35rem;
    font-size: .9rem;
  }
  .lists-page .tree-row > button:first-child {
    width: 2rem;
    min-height: 2.4rem;
  }
  .lists-page .tree-row > button:last-child {
    width: 2.5rem;
    height: 2.5rem;
  }
  .lists-page .tree-used,
  .lists-page .tree-size { display: block !important; }
  .lists-page .tree-used { font-size: .78rem; }
  .lists-page .tree-size button {
    min-height: 1.7rem;
    padding: .2rem .7rem;
    font-size: .72rem;
  }
  .lists-page .tree-row.is-selected,
  .lists-page .lists-value-row.is-selected,
  .lists-page .unfiled-row > .is-selected {
    background: #fff;
    box-shadow: var(--shadow-card);
    outline: 1px solid var(--ink);
    outline-offset: -1px;
  }
  .lists-page .lists-value-row {
    min-height: 3.1rem;
    padding-block: .55rem;
    font-size: .9rem;
  }
  .lists-page .lists-alert {
    display: block;
    padding: .9rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
    border-radius: .9rem;
    background: color-mix(in srgb, var(--tan) 80%, white);
  }
  .lists-page .lists-alert header { margin-bottom: .35rem; }
  .lists-page .lists-alert h2 { font-size: 1rem; }
  .lists-page .lists-inspector {
    display: block !important;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1.3rem;
    border-radius: 1rem;
  }
  .lists-page .lists-inspector-empty {
    display: grid;
    min-height: 100%;
    place-content: center;
    justify-items: center;
    padding: 1.5rem .75rem;
    color: var(--muted);
    text-align: center;
  }
  .lists-page .lists-inspector-empty span {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--sand);
    color: var(--forest);
  }
  .lists-page .lists-inspector-empty h2 {
    margin: .75rem 0 .35rem;
    color: var(--ink);
    font-size: 1.05rem;
  }
  .lists-page .lists-inspector-empty p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.45;
  }
  .lists-page .lists-inspector label {
    margin-bottom: .4rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .lists-page .lists-inspector input[type="text"],
  .lists-page .lists-inspector select,
  .lists-page .lists-inspector textarea {
    min-height: 2.6rem;
    padding: .55rem .75rem;
    border-radius: .65rem;
    font-size: .9rem;
  }
  .lists-page .lists-inspector .lists-inspector-kicker {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .lists-page .lists-inspector .lists-inspector-name {
    margin: .35rem 0 0;
    font-size: 1.45rem;
  }
  .lists-page .lists-inspector-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }
  .lists-page .lists-inspector .grid.grid-cols-2 button,
  .lists-page .lists-inspector-actions button {
    min-height: 2.45rem;
    border: 1.5px solid var(--line);
    border-radius: .65rem;
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
  }
  .lists-page .lists-inspector form[action$="/delete"] button {
    width: auto;
    min-height: 0;
    padding: .4rem 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    text-align: left;
    font-size: .9rem;
  }
}

@media (min-width: 950px) {
  .lists-page .lists-desk {
    grid-template-columns: 12rem minmax(26rem, 1fr) minmax(18rem, 20rem);
  }
}

/* People */
.charities-mobile-create { margin-bottom: 1rem; }
.charities-mobile-create .charities-create {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 700;
}
.charity-manage-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.charity-manage-heading { margin-bottom: 1.25rem; }
.charity-manage-mobile-open { margin-top: 1rem; }
.charity-manage-mobile-open .charity-open {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 700;
}
.charity-manage-banner {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #dfaaa3;
  border-radius: 1.125rem;
  background: #f8e4e1;
}
.charity-manage-layout { display: grid; gap: 2rem; }
.charity-manage-metrics {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
}
.shop-panel {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.shop-panel-lede {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  max-width: 42rem;
}
.shop-metrics-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}
.shop-metrics-updated {
  padding: .4rem .75rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--accent-deep);
  font-size: .82rem;
}
.shop-metrics-updated strong { font-weight: 700; }
.shop-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.shop-metric {
  display: grid;
  align-content: start;
  gap: .45rem;
  min-width: 0;
  min-height: 8.25rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.65), transparent 42%),
    var(--paper);
  box-shadow: inset 3px 0 0 var(--accent);
}
.shop-metric[data-tone="items"],
.shop-metric[data-tone="price"] { box-shadow: inset 3px 0 0 #c4a574; background: linear-gradient(180deg, #fff8ea, var(--paper) 55%); }
.shop-metric[data-tone="images"],
.shop-metric[data-tone="priced"] { box-shadow: inset 3px 0 0 #7d9a88; background: linear-gradient(180deg, #eef6f1, var(--paper) 55%); }
.shop-metric[data-tone="storage"],
.shop-metric[data-tone="searches"] { box-shadow: inset 3px 0 0 var(--forest); }
.shop-metric-label {
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shop-metric strong {
  color: var(--forest);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.shop-metric small {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}
.shop-metrics-notes {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-metrics-notes li {
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--forest);
  font-size: .82rem;
}
.shop-metrics-notes strong { margin-right: .3rem; }
.shop-heat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .85rem 1rem;
}
.shop-heat-empty,
.shop-heat-readout {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.shop-heat-readout {
  min-height: 1.25rem;
  color: var(--forest);
  font-weight: 700;
}
.shop-heat-toggle {
  display: flex;
  gap: .35rem;
  padding: .2rem;
  border-radius: 999px;
  background: var(--sand);
}
.shop-heat-toggle button {
  min-height: 2rem;
  padding: .3rem .85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  font-size: .82rem;
}
.shop-heat-toggle button[aria-pressed="true"] {
  background: var(--forest);
  color: white;
}
.shop-heat-wrap { overflow-x: auto; padding-bottom: .15rem; }
.shop-heat {
  display: grid;
  grid-template-columns: 2.5rem repeat(24, minmax(.72rem, 1fr));
  gap: 4px;
  min-width: 40rem;
}
.shop-heat-corner,
.shop-heat-hour,
.shop-heat-day {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1;
}
.shop-heat-hour { text-align: center; padding-bottom: .15rem; }
.shop-heat-day { align-self: center; font-weight: 700; }
.shop-heat-hour.is-hot,
.shop-heat-day.is-hot { color: var(--forest); }
.shop-heat-cell {
  appearance: none;
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--sage);
  opacity: .22;
  cursor: pointer;
}
[data-heat="searches"] .shop-heat-cell {
  background: var(--accent);
  opacity: calc(.16 + (var(--searches, 0) * .84));
}
[data-heat="created"] .shop-heat-cell {
  background: var(--forest);
  opacity: calc(.16 + (var(--created, 0) * .84));
}
.shop-heat-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
[data-heat="searches"] .shop-heat-cell:is(:hover, :focus-visible)::after { content: attr(data-searches); }
[data-heat="created"] .shop-heat-cell:is(:hover, :focus-visible)::after { content: attr(data-created); }
.shop-heat-cell:is(:hover, :focus-visible) {
  z-index: 2;
  opacity: 1;
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px var(--card);
  transform: scale(1.35);
}
.shop-contributors-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
}
.shop-contributors-head .charity-manage-add { margin-left: auto; }
.shop-invite {
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: var(--sage);
  color: #21513c;
}
.shop-contributors-table-wrap { overflow-x: auto; }
.shop-contributors table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.shop-contributors th,
.shop-contributors td {
  padding: .7rem .55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.shop-contributors tbody tr:hover td { background: var(--paper); }
.shop-contributors th { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.shop-contributors td { font-variant-numeric: tabular-nums; }
.shop-contributors td strong { display: block; color: var(--forest); }
.shop-contributors td small { color: var(--muted); text-transform: capitalize; }
.shop-contributors .charity-person-email,
.shop-contributors .charity-person-role { min-width: 11rem; }
.shop-contributors .charity-person-email input,
.shop-contributors .charity-person-role select,
.shop-contributors .charity-person-email button,
.shop-contributors .charity-person-role button {
  min-height: 2.15rem;
  border-radius: .6rem;
}
.charity-name-line {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.charity-name-edit {
  display: inline-grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .45rem;
  background: var(--sand);
  color: var(--forest);
  cursor: pointer;
}
.charity-name-edit svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.charity-manage-people {
  min-width: 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.charity-manage-people-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.charity-manage-add {
  min-height: 2.5rem;
  padding: .45rem 1rem;
  border: 0;
  border-radius: .75rem;
  background: var(--sand);
  font-weight: 700;
  cursor: pointer;
}
.charity-people { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.charity-person {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.charity-person-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.charity-person-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: .85rem;
  font-weight: 700;
  text-transform: capitalize;
}
.charity-person-role-chip.is-owner { background: #f7dcb8; }
.charity-person-role-chip.is-admin { background: #dce8f5; }
.charity-person-remove {
  min-height: 2rem;
  padding: .35rem .75rem;
  border: 0;
  border-radius: .75rem;
  background: #f3d6d2;
  color: var(--danger);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.charity-person-email,
.charity-person-role {
  display: flex;
  gap: .5rem;
  min-width: 0;
}
.charity-person-email input,
.charity-person-role select {
  min-width: 0;
  min-height: 2.65rem;
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: white;
}
.charity-person-email button,
.charity-person-role button {
  min-height: 2.65rem;
  padding: .4rem .8rem;
  border: 0;
  border-radius: .75rem;
  background: var(--sand);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.charity-people-empty {
  padding: 1.25rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--sand) 60%, transparent);
  color: var(--muted);
  text-align: center;
}
.charity-manage-aside { display: grid; gap: 1rem; align-content: start; }
.charity-manage-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.charity-manage-card.is-danger {
  border-color: #dfaaa3;
  background: #f8e4e1;
  box-shadow: none;
}
.charity-manage-card h2 {
  margin: 0;
  color: var(--forest);
  font: 650 1.25rem/1.2 "Fraunces", serif;
}
.charity-manage-card.is-danger h2 { color: var(--danger); }
.charity-manage-card p {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.charity-manage-card form { display: grid; gap: .5rem; margin-top: .75rem; }
.charity-manage-card label { font-weight: 600; }
.charity-manage-card input,
.charity-manage-card select {
  width: 100%;
  min-height: 2.65rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: white;
}
.charity-manage-card button {
  min-height: 2.5rem;
  border: 0;
  border-radius: .75rem;
  background: var(--sand);
  font-weight: 700;
  cursor: pointer;
}
.charity-manage-card button.is-primary { background: var(--forest); color: white; }
.charity-manage-card button.is-danger { background: var(--danger); color: white; }
@media (min-width: 900px) {
  .charities-mobile-create { display: none; }
}

.people-heading { margin-bottom: 1.3rem; }
.people-invite { display: grid; gap: .55rem; padding: 1.1rem; }
.people-invite label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.people-invite input, .people-invite select { min-height: 3.2rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.people-invite select { text-align: center; font-weight: 700; }
.people-invite button { margin-top: .35rem; }
.team-label { margin: 1.8rem 0 .75rem; }
.person-list-head { display: none; }
.person-list { overflow: hidden; margin: 0; padding: 0 1rem; list-style: none; }
.person-card { display: grid; padding: .9rem 0; border-top: 1px solid var(--line); }
.person-card:first-child { border-top: 0; }
.person-main { display: grid; grid-template-columns: 2.7rem minmax(0,1fr) auto; align-items: center; gap: .75rem; min-width: 0; }
.person-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-avatar { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--sage) 45%,var(--card)); color: var(--muted); font: 700 1rem "Fraunces",serif; }
.person-avatar.is-owner { background: var(--tan); color: color-mix(in srgb,var(--warning) 60%,var(--ink)); }
.person-main .ticket { text-transform: capitalize; }
.person-role-static { display: none; }
.person-actions { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; padding-left: 3.45rem; }
.person-actions form:first-child { display: flex; min-width: 0; flex: 1; align-items: center; gap: .4rem; }
.person-actions select { min-width: 0; min-height: 2.65rem; flex: 1; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.person-actions .ui-secondary { min-height: 2.65rem; padding: .4rem .8rem; }
.remove-person { min-height: 2.65rem; border: 0; background: transparent; color: var(--danger); font-weight: 700; }

@media (min-width: 900px) {
  .people-page .app-main { padding: 1.75rem 2rem 3rem; max-width: none; }
  .people-heading { display: none; }
  .people-heading .ui-page-title { font-size: 1.7rem; letter-spacing: -.02em; }
  .people-heading .ui-lede { font-size: .95rem; }
  .people-invite { grid-template-columns: minmax(16rem,1fr) 10rem auto; align-items: end; gap: .7rem; padding: 1.1rem 1.2rem; border-radius: 1rem; }
  .people-invite label { font-size: .8rem; }
  .people-invite label[for="role"] { grid-column: 2; grid-row: 1; }
  .people-invite input { grid-column: 1; }
  .people-invite select { grid-column: 2; }
  .people-invite input, .people-invite select { min-height: 2.7rem; padding: .55rem .8rem; border-radius: .65rem; font-size: .9rem; }
  .people-invite button { grid-column: 3; grid-row: 1 / span 2; min-height: 2.7rem; margin: 0; padding: .45rem 1.15rem; font-size: .88rem; }
  .team-label { display: none; }
  .person-list-head {
    display: grid;
    grid-template-columns: minmax(14rem,1fr) minmax(18rem,1fr);
    gap: 1rem;
    margin: 0 0 .45rem;
    padding: 0 .2rem .55rem 1.2rem;
    color: var(--muted);
    font: 700 .75rem/1.2 "Source Sans 3", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .person-list { padding: 0 1.1rem; border-radius: 1rem; }
  .person-card { grid-template-columns: minmax(14rem,1fr) minmax(18rem,1fr); align-items: center; padding: .95rem 0; }
  .person-main { grid-template-columns: 2rem minmax(0,1fr); gap: .7rem; }
  .person-avatar { width: 2rem; height: 2rem; font-size: .8rem; }
  .person-main strong { font-size: .98rem; }
  .people-page .person-main .ticket { display: none; }
  .person-role-static { display: flex; align-items: center; min-height: 2rem; }
  .person-role-static .ticket {
    background: #dce3ec;
    color: #4b5768;
    text-transform: capitalize;
  }
  .person-actions { display: flex; align-items: center; gap: .65rem; margin: 0; padding: 0; }
  .person-actions form:first-child { display: flex; align-items: center; gap: .5rem; }
  .person-actions select { min-height: 2rem; padding: .35rem .65rem; border: 1.5px solid var(--line); border-radius: .5rem; background: white; font-size: .85rem; }
  .person-actions .ui-secondary { min-height: 2rem; padding: .3rem .8rem; font-size: .85rem; }
  .remove-person { margin-left: auto; border: 0; background: transparent; color: var(--danger); font-size: .85rem; }
}

/* Item editor */
.item-back { margin: 0 0 1rem; }
.item-back a { color: var(--muted); font-weight: 700; text-decoration: none; }
.item-editor { position: relative; padding: 1.15rem; }
.item-editor-head { display: none; }
.item-editor-body { display: grid; gap: 1rem; }
.item-image-gallery { min-width: 0; margin-bottom: 1.3rem; }
.item-photo-hero { position: relative; display: grid; width: 100%; height: clamp(17rem, 72vw, 28rem); min-height: 0; place-items: center; overflow: hidden; border-radius: 1.25rem; background: var(--sand); color: var(--ink); font-size: 3rem; font-weight: 700; }
.item-photo-hero > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.item-photo-fallback { display: grid; justify-items: center; gap: .4rem; color: var(--muted); }
.item-photo-fallback > span { display: grid; width: 4.5rem; height: 4.5rem; place-items: center; border-radius: 50%; background: var(--card); color: var(--warning); }
.item-photo-fallback small { font-size: .85rem; font-weight: 700; }
.item-photo-thumbnails { display: flex; max-width: 100%; gap: .55rem; margin-top: .65rem; padding: .2rem .15rem .35rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; touch-action: pan-x; }
.item-photo-thumbnail { display: grid; width: 4rem; height: 4rem; flex: 0 0 4rem; place-items: center; overflow: hidden; padding: .2rem; border: 2px solid var(--line); border-radius: .7rem; background: var(--card); cursor: pointer; scroll-snap-align: start; }
.item-photo-thumbnail img { display: block; width: 100%; height: 100%; border-radius: .45rem; object-fit: cover; pointer-events: none; }
.item-photo-thumbnail[aria-selected="true"] { border-color: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep); }
.item-photo-thumbnail:focus-visible { outline: 3px solid color-mix(in srgb, #397bbb 55%, transparent); outline-offset: 2px; }
.change-photo { position: absolute; right: .8rem; bottom: .8rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(24,32,42,.75); color: white; font-size: .78rem; font-weight: 700; text-decoration: none; }
.item-title-block { min-width: 0; }
.item-title-row { display: flex; min-width: 0; align-items: center; gap: .45rem; }
.item-title-row [data-title-heading] { min-width: 0; }
.item-title-edit {
  display: grid; width: 1.85rem; height: 1.85rem; flex: none; place-items: center; border: 0; border-radius: .45rem; background: var(--sand); color: var(--ink); cursor: pointer;
}
.item-title-edit svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.item-title-input { width: 100%; max-width: 22rem; margin: 0; }
.item-title-block.is-editing [data-title-heading],
.item-title-block:not(.is-editing) .item-title-input { display: none; }
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0 0;
  align-items: start;
}
.admin-photo {
  display: grid;
  min-width: 0;
  margin: 0;
  gap: .4rem;
}
.admin-photo-open {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--sand);
  cursor: zoom-in;
}
.admin-photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-photo.is-inactive .admin-photo-open { opacity: .5; }
.admin-photo figcaption { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.item-photo-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.item-photo-actions form { margin: 0; }
.item-photo-delete { border: 0; background: transparent; color: var(--danger); font-size: .85rem; font-weight: 700; }
.item-add-photo { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.item-add-photo-drop {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-height: 0;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  overflow: hidden;
  border: 1.5px dashed color-mix(in srgb, var(--forest) 28%, var(--line));
  border-radius: 1rem;
  background: var(--sand);
  color: var(--forest);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}
.item-add-photo-drop input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.item-add-photo-drop:focus-within,
.item-add-photo-drop.is-over { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.item-add-photo-drop.is-busy { opacity: .72; pointer-events: none; }
.item-add-photo-drop svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.item-add-photo-drop strong { font-size: .88rem; }
.item-add-photo-drop small { color: var(--muted); font-size: .75rem; }
.app-photo {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.app-photo::backdrop { background: color-mix(in srgb, var(--forest) 42%, transparent); }
.app-photo-frame { position: relative; padding: .85rem .85rem 1rem; }
.app-photo-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.app-photo img {
  display: block;
  width: 100%;
  max-height: min(78vh, 38rem);
  border-radius: .85rem;
  background: var(--sand);
  object-fit: contain;
}
.app-photo p { margin: .65rem .15rem 0; color: var(--muted); }
.item-editor label:not(.check) { color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.item-editor input[type="text"], .item-editor input[type="search"], .item-editor textarea { border-color: var(--line); border-radius: .9rem; }
.price-field {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 3.2rem;
  padding: 0 .9rem;
  border: 1.5px solid var(--line);
  border-radius: .9rem;
  background: #fff;
}
.price-field-sym {
  color: var(--muted);
  font: 600 1.15rem ui-monospace, monospace;
}
.price-field input {
  min-width: 0;
  width: 100%;
  min-height: 0;
  padding: .7rem 0;
  border: 0;
  background: transparent;
  font: 600 1.15rem ui-monospace, monospace;
}
.price-field.is-invalid,
.price-field:has(input.is-invalid) {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 22%, transparent);
}
.item-editor input.is-invalid {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 22%, transparent);
}
.item-editor-banner {
  margin: 0;
  padding: .7rem .9rem;
  background: color-mix(in srgb, var(--warning) 16%, white);
  color: #8a4b1f;
  font-size: .86rem;
  font-weight: 600;
}
.field-warning {
  margin: .4rem 0 0;
  color: #8a4b1f;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.check { display: grid !important; grid-template-columns: 1fr auto; margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 700 !important; }
.check input { grid-column: 2; grid-row: 1 / span 2; width: 3rem !important; height: 1.8rem !important; accent-color: var(--accent); }
.check span { grid-column: 1; color: var(--muted); font-size: .82rem; font-weight: 400; }
.item-action-dock { position: sticky; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); z-index: 12; display: grid; grid-template-columns: .8fr 1.7fr; gap: .65rem; margin: 1.5rem -1.15rem -1.15rem; padding: .85rem 1.15rem; border-top: 1px solid var(--line); background: color-mix(in srgb,var(--paper) 94%,transparent); box-shadow: 0 -8px 24px rgba(29,41,56,.07); backdrop-filter: blur(12px); }
.item-action-dock a { display: grid; place-items: center; text-decoration: none; }
.detail-secondary { margin-top: 1.5rem; padding-bottom: 2rem; }
.desktop-save { display: none; }

@media (min-width: 640px) {
  .admin-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .item-back { display: none; }
  .item-editor { padding: 0; border-radius: 1.1rem; }
  .item-editor-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .85rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
  .item-editor-head h1,
  .item-editor-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.015em; }
  .item-editor-head small { color: var(--muted); font-size: .85rem; }
  .item-editor-head .ticket { min-height: 1.7rem; font-size: .75rem; }
  .desktop-save { display: block; min-height: 2.5rem; padding: .45rem 1.05rem; font-size: .84rem; }
  .item-editor-body { grid-template-columns: 1.05fr 1fr; gap: 1.4rem; padding: 1.35rem 1.4rem 1.6rem; }
  .item-image-gallery { margin-bottom: .85rem; }
  .item-photo-hero { border-radius: .9rem; }
  .item-photo-thumbnail { width: 3.8rem; height: 3.8rem; flex-basis: 3.8rem; border-radius: .6rem; }
  .item-editor label:not(.check) { margin-top: .7rem !important; font-size: .8rem; }
  .item-editor input[type="text"], .item-editor input[type="search"], .item-editor textarea { padding: .65rem .8rem; border-radius: .65rem; font-size: .9rem; }
  .item-editor textarea { min-height: 5.2rem; }
  .item-editor-right > .grid { margin-top: 0; }
  .price-field { min-height: 3.1rem; padding: 0 .85rem; border-radius: .65rem; }
  .price-field-sym { font-size: 1.2rem; }
  .price-field input { font-size: 1.2rem; }
  .item-action-dock { display: none; }
  .detail-secondary { margin-top: 1rem; }
  .admin-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Item queue */
.items-heading { margin-bottom: 1.3rem; }
.items-heading a { color: var(--accent-deep); font-weight: 700; }
.items-layout { display: grid; gap: 1rem; }
.items-queue { min-width: 0; }
.queue-chips { margin-bottom: 1rem; }
.queue-chips a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem; }
.queue-chips b { display: inline-grid; min-width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--tan); color: color-mix(in srgb,var(--warning) 60%,var(--ink)); font-size: .7rem; }
.filters-bar { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.search-wrap { display: flex; min-width: 0; flex: 1; align-items: center; gap: .5rem; min-height: 3.2rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: white; }
.search-wrap span { color: var(--muted); font-size: 1.4rem; }
.search-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.filter-fields label { display: grid; gap: .25rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.filter-fields select { min-width: 0; min-height: 2.75rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .65rem; background: white; color: var(--ink); }
.filter-button { grid-column: 1 / -1; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 700; }
.item-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.item-card { display: grid; grid-template-columns: 4rem minmax(0,1fr) auto; align-items: center; gap: .9rem; min-height: 5.6rem; padding: .35rem .45rem; color: var(--ink); text-decoration: none; }
.item-thumb { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: .85rem; background: #477eaf; color: white; object-fit: cover; font-size: 1.25rem; font-weight: 700; }
.item-list li:nth-child(3n+1) .item-placeholder { background: #a9801b; }
.item-list li:nth-child(3n) .item-placeholder { background: #637083; }
.item-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.05; }
.item-card p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.item-side { display: grid; justify-items: end; gap: .35rem; }
.item-side small { color: var(--muted); font: .75rem ui-monospace, monospace; }
.items-empty-detail { display: none; }

@media (min-width: 900px) {
  .items-heading { margin: 0; }
  .items-heading .ui-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .items-heading .ui-lede { display: none; }
  .items-layout { grid-template-columns: minmax(21rem, 24rem) minmax(0,1fr); gap: 1.35rem; }
  .queue-chips { margin-bottom: .85rem; }
  .queue-chips a { min-height: 2.35rem; padding: .25rem .7rem; font-size: .82rem; }
  .queue-chips b { min-width: 1.35rem; height: 1.35rem; font-size: .68rem; }
  .filters-bar { margin-bottom: .85rem; gap: .7rem; }
  .search-wrap { min-height: 2.6rem; padding: 0 .9rem; }
  .search-wrap input { font-size: .88rem; }
  .filter-fields { display: grid; }
  .filter-fields label { font-size: .72rem; }
  .filter-fields select, .filter-button { min-height: 2.5rem; font-size: .82rem; }
  .item-list { gap: .4rem; }
  .item-card { grid-template-columns: 2.75rem minmax(0,1fr) auto; min-height: 3.9rem; gap: .7rem; padding: .65rem .7rem; border: 1px solid transparent; border-radius: .75rem; }
  .item-card:hover, .item-card:focus-visible { border-color: var(--line); background: white; box-shadow: var(--shadow-card); }
  .item-thumb { width: 2.75rem; height: 2.75rem; border-radius: .7rem; font-size: .9rem; }
  .item-card h2 { font-size: .88rem; letter-spacing: -.01em; }
  .item-card p, .item-side small { font-size: .74rem; }
  .item-side .ticket { min-height: 1.55rem; padding: .22rem .6rem .22rem .8rem; font-size: .72rem; }
  .item-side small { display: none; }
  .items-empty-detail { display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
  .items-empty-detail > span { font-size: 2rem; }
}

/* Responsive application shell */
* { box-sizing: border-box; }
html { background: var(--paper); }
body.app { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, #397bbb 55%, transparent) !important;
  outline-offset: 3px;
}
.app-frame { min-height: 100dvh; }
.platform-context { padding: .5rem 1rem; }
.shell-aligned { width: 100%; min-width: 0; }
@media (min-width: 768px) and (max-width: 899px) {
  .platform-context { padding-inline: 1.5rem; }
}
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(.75rem, env(safe-area-inset-top)) var(--page-pad) .75rem;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
}
.mobile-brand { display: grid; color: var(--ink); text-decoration: none; line-height: 1.05; }
.mobile-brand.has-logo { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem; }
.mobile-brand-logo { width: 2.2rem; height: 2.2rem; object-fit: contain; padding: .15rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; }
.mobile-brand-copy { display: grid; min-width: 0; }
.mobile-brand strong { font: 650 1.7rem "Fraunces", serif; letter-spacing: -.03em; }
.mobile-brand small { margin-top: .18rem; color: var(--muted); font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.settings-trigger, .notification-trigger {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
}
.settings-trigger svg, .notification-trigger svg, .app-dock svg, .desktop-nav svg {
  width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.app-main {
  width: 100%;
  max-width: 45rem;
  margin: 0 auto;
  padding: 1.5rem var(--page-pad) calc(var(--nav-height) + 2.5rem + env(safe-area-inset-bottom));
}
.app-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: flex;
  min-height: var(--nav-height);
  padding: .25rem .5rem max(.35rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, white);
  box-shadow: 0 -8px 25px rgba(29,41,56,.06);
  backdrop-filter: blur(16px);
}
.app-dock a {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 3.5rem;
  min-height: 3.8rem;
  place-content: center;
  justify-items: center;
  gap: .2rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.app-dock a.is-active { color: var(--ink); }
.app-dock a.is-active::before {
  position: absolute; top: -.25rem; width: 2.5rem; height: .18rem; border-radius: 1rem; background: var(--accent); content: "";
}
.desktop-sidebar, .desktop-utility { display: none; }

.app-confirm {
  width: min(24.5rem, calc(100% - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.app-confirm::backdrop {
  background: color-mix(in srgb, var(--forest) 38%, transparent);
}
.app-confirm-body { margin: 0; padding: 1.35rem 1.35rem 1.2rem; }
.app-confirm h2 {
  margin: 0;
  color: var(--forest);
  font: 650 1.35rem/1.25 "Fraunces", serif;
}
.app-confirm p {
  margin: .55rem 0 0;
  color: var(--muted);
}
.app-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.25rem;
}
.app-confirm-cancel,
.app-confirm-ok {
  min-height: 2.75rem;
  border: 0;
  border-radius: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.app-confirm-cancel { background: var(--sand); color: var(--ink); }
.app-confirm-ok { background: var(--forest); color: white; }
.app-confirm-ok.is-danger { background: var(--danger); }

.flash-toasts {
  position: fixed;
  z-index: 85;
  top: 5.6rem;
  right: .75rem;
  left: .75rem;
  display: grid;
  justify-items: stretch;
  gap: .5rem;
  pointer-events: none;
}
.flash-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  width: min(100%, 24rem);
  margin: 0 0 0 auto;
  padding: .85rem 1rem;
  border-radius: .9rem;
  box-shadow: 0 14px 36px rgba(29, 41, 56, .18);
  font-weight: 700;
  line-height: 1.3;
  animation: flash-drop .22s ease both;
}
.flash-toast p { margin: 0; flex: 1; min-width: 0; }
.flash-toast-close {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  margin: -.15rem -.2rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
}
.flash-toast.is-notice { background: var(--accent); color: #fff; }
.flash-toast.is-error { background: var(--danger); color: #fff; }
.flash-toast.is-out { animation: flash-lift .2s ease both; }
@keyframes flash-drop {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes flash-lift {
  from { transform: none; opacity: 1; }
  to { transform: translateY(-10px); opacity: 0; }
}

/* Shared redesigned primitives */
.ui-page-title { margin: 0; font: 650 clamp(2rem, 9vw, 2.4rem)/1.05 "Fraunces", serif; letter-spacing: -.035em; }
.ui-lede { margin: .45rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.35; }
.ui-eyebrow { margin: 0; color: var(--muted); font: 600 .77rem/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.ui-card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.ui-primary, .ui-secondary {
  min-height: 3.35rem; border-radius: 999px; padding: .75rem 1.3rem; font-weight: 700;
}
.ui-primary { border: 1px solid var(--accent); background: var(--accent); color: white; }
.ui-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.ticket { display: inline-flex; align-items: center; min-height: 2rem; padding: .3rem .8rem .3rem 1rem; background: var(--tan); color: color-mix(in srgb,var(--warning) 60%,var(--ink)); font: 700 .84rem ui-monospace, monospace; clip-path: polygon(.55rem 0,100% 0,100% 100%,.55rem 100%,0 50%); }
.ticket.is-success { background: var(--sage); color: var(--accent-deep); }
.segment { display: flex; padding: .2rem; border-radius: 999px; background: var(--sand); }
.segment a, .segment button { flex: 1; min-height: 2.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; text-align: center; text-decoration: none; }
.segment .is-active, .segment .active { background: white !important; color: var(--ink) !important; box-shadow: 0 1px 4px rgba(29,41,56,.12); }

@media (min-width: 900px) {
  body.app { overflow: hidden; font-size: .95rem; }
  .app-frame {
    display: flex;
    height: 100dvh;
    min-height: 0;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    margin-left: var(--sidebar);
  }
  .desktop-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 35; display: flex; width: var(--sidebar); flex-direction: column; padding: 1rem .85rem; background: var(--ink); color: white;
  }
  .sidebar-brand { display: grid; justify-items: start; gap: .4rem; margin: 0 .35rem .5rem; color: white; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
  .sidebar-logo-plate { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; padding: .25rem; border-radius: .45rem; background: #fff; }
  .sidebar-logo-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .sidebar-brand-text { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-powered { margin: 0 .35rem .7rem; color: #9ca6b4; font-size: .72rem; }
  .charity-chooser { position: relative; z-index: 2; margin: 0 .25rem 1rem; }
  .charity-chooser-trigger {
    display: grid; min-height: 2.55rem; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .45rem; padding: .7rem .8rem; border: 1px solid #3f4d5e; border-radius: .45rem; background: #273444; color: #f5f6f7; font-size: .82rem; cursor: pointer; list-style: none;
  }
  .charity-chooser-trigger::-webkit-details-marker { display: none; }
  .charity-chooser-trigger span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .charity-chooser[open] .charity-chooser-trigger { border-color: #8ea0b5; border-radius: .45rem .45rem 0 0; }
  .charity-chooser[open] .charity-chooser-trigger span:last-child { transform: rotate(180deg); }
  .charity-chooser-popover {
    position: absolute; top: calc(100% - 1px); left: 0; width: max(100%, 13rem); overflow: hidden; padding: .45rem; border: 1px solid #3f4d5e; border-radius: 0 .45rem .45rem .45rem; background: #273444; box-shadow: 0 14px 32px rgba(0,0,0,.32);
  }
  .charity-chooser-search {
    width: 100%; min-height: 2.35rem; padding: .45rem .6rem; border: 1px solid #526174; border-radius: .35rem; background: #1f2b39; color: white; font-size: .8rem;
  }
  .charity-chooser-search::placeholder { color: #aab4c1; }
  .charity-chooser-search[hidden], .charity-chooser-options form[hidden], .charity-chooser-empty[hidden] { display: none; }
  .charity-chooser-options { max-height: min(18rem, 50vh); overflow-y: auto; overscroll-behavior: contain; padding-top: .3rem; }
  .charity-chooser-options form { margin: 0; }
  .charity-chooser-options button {
    display: grid; width: 100%; gap: .08rem; margin: 0; padding: .5rem .55rem; border: 0; border-radius: .35rem; background: transparent; color: #f5f6f7; font-size: .8rem; text-align: left;
  }
  .charity-chooser-options button:hover:not(:disabled),
  .charity-chooser-options button:focus-visible { background: #354355; }
  .charity-chooser-options button:disabled { color: #dfe4ea; cursor: default; opacity: .72; }
  .charity-chooser-options small { color: #aab4c1; font-size: .68rem; }
  .charity-chooser-empty { margin: .35rem 0 0; padding: .55rem; color: #c5ccd5; font-size: .75rem; text-align: center; }
  .desktop-nav { display: grid; gap: .25rem; }
  .desktop-nav a { position: relative; display: grid; grid-template-columns: 1.2rem 1fr auto; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .65rem .8rem; border-radius: .6rem; color: #bfc6cf; font-size: .95rem; font-weight: 600; text-decoration: none; }
  .desktop-nav a.is-active { background: #303c4b; color: white; }
  .desktop-nav a.is-active::before { position: absolute; left: -.85rem; width: .18rem; height: 1.5rem; border-radius: 0 .2rem .2rem 0; background: var(--accent); content: ""; }
  .desktop-nav svg { width: 1.15rem; height: 1.15rem; }
  .desktop-nav b { min-width: 1.3rem; border-radius: 1rem; background: #665126; color: #f5d88e; font-size: .72rem; text-align: center; }
  .sidebar-account { position: relative; margin-top: auto; padding-top: .75rem; border-top: 1px solid #354252; }
  .sidebar-account form { margin: 0; }
  .account-trigger { display: grid; width: 100%; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .55rem; border: 0; background: transparent; color: white; text-align: left; font-size: .92rem; }
  .account-trigger small { display: block; color: #9ca6b4; font-size: .75rem; }
  .account-avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #f4e4b9; color: #9b6814; font-weight: 700; }
  .account-menu { position: absolute; right: -.25rem; bottom: calc(100% + .7rem); left: -.25rem; overflow: hidden; padding: .45rem; border-radius: .75rem; background: white; box-shadow: 0 12px 35px rgba(0,0,0,.25); }
  .account-menu a, .account-menu button { display: flex; width: 100%; gap: .6rem; padding: .75rem; border: 0; border-radius: .45rem; background: transparent; color: var(--ink); text-decoration: none; }
  .account-menu a { background: var(--sand); }
  .account-menu form { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
  .account-menu button { color: var(--danger); }
  .flash-toasts {
    top: 4.6rem;
    right: 1.5rem;
    left: auto;
    width: min(22rem, calc(100vw - var(--sidebar) - 2.5rem));
  }
  .flash-toast { width: 100%; }
  .desktop-utility { display: flex; min-height: 4.25rem; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 4.5rem .7rem 2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .desktop-utility strong, .desktop-utility small { display: block; }
  .desktop-utility strong { font-size: 1.35rem; letter-spacing: -.015em; }
  .desktop-utility small { color: var(--muted); font-size: .9rem; }
  .desktop-utility-actions:empty { display: none; }
  .desktop-utility .charities-create,
  .desktop-utility .charity-open {
    min-height: 2.5rem;
    padding: .4rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: var(--forest);
    color: white;
    font-weight: 700;
    cursor: pointer;
  }
  .platform-context { min-width: 0; flex: 0 0 auto; padding: .5rem 1.15rem; }
  .shell-aligned { margin: 0; }
  .mobile-header { position: fixed; top: .35rem; right: .75rem; z-index: 40; min-height: 2.8rem; padding: 0; background: transparent; backdrop-filter: none; }
  .mobile-brand, .settings-trigger { display: none; }
  .notification-trigger { width: 2.45rem; height: 2.45rem; }
  .app-main {
    width: 100%;
    max-width: none;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 1rem 1.15rem 2rem;
  }
  .items-page .app-main,
  .lists-page .app-main,
  .charities-page .app-main { overflow: hidden; }
  .charities-page .app-main {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 2rem 1.75rem;
  }
  .charities-page .charity-list {
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    align-content: start;
  }
  .charity-manage-page .app-main {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 2rem 1.75rem;
  }
  .charity-manage-heading,
  .charity-manage-mobile-open { display: none; }
  .charity-manage-back { margin-bottom: .85rem; }
  .charity-manage-layout {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "metrics"
      "aside";
    align-items: start;
    gap: 2rem;
  }
  .shop-metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .shop-metric { min-height: 8.75rem; padding: 1.1rem 1.15rem 1.15rem; }
  .charity-manage-metrics { grid-area: metrics; }
  .charity-manage-aside {
    grid-area: aside;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .charity-people {
    flex: 1 1 auto;
    align-content: start;
  }
  .charity-person {
    grid-template-columns: 6.5rem minmax(12rem, 1fr) minmax(11rem, 16rem) auto;
    align-items: center;
    gap: .65rem 1rem;
    padding: .85rem 1.1rem;
  }
  .charity-person-head { display: contents; }
  .charity-person-head > span { grid-column: 1; }
  .charity-person-head > form { grid-column: 4; grid-row: 1; justify-self: end; }
  .charity-person-email { grid-column: 2; }
  .charity-person-role { grid-column: 3; }
  .charity-person:not(:has(.charity-person-role)) .charity-person-email { grid-column: 2 / 4; }
  .charity-person-email input,
  .charity-person-role select,
  .charity-person-email button,
  .charity-person-role button {
    min-height: 2rem;
    border-radius: .5rem;
    font-size: .88rem;
  }
  .charity-person-email button,
  .charity-person-role button { padding: .3rem .75rem; }
  .charity-manage-aside { gap: 1rem; }
  .charity-manage-card { padding: 1.05rem 1.1rem; }
  .charity-manage-card input,
  .charity-manage-card select,
  .charity-manage-card button { min-height: 2.25rem; }
  .items-page .items-layout,
  .lists-page .lists-desk {
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }
  .items-page .items-layout > *,
  .lists-page .lists-desk > * {
    min-height: 0;
    min-width: 0;
  }
  .app-dock { display: none; }
  .ui-page-title { font-family: "Source Sans 3", sans-serif; font-size: 1.35rem; letter-spacing: 0; }
  .ui-lede { font-size: .9rem; }
  .ui-card { --radius-card: .75rem; }
  .mobile-only, .sheet-handle { display: none !important; }
}

/* Price dashboard and capture */
.dashboard-greeting { margin-bottom: 1.35rem; }
.dashboard-tickets { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.dashboard-tickets a { text-decoration: none; }
.desktop-metrics { display: none; }
.dashboard-grid { display: grid; gap: 1.8rem; }
.camera-card { position: relative; overflow: hidden; padding: 1.25rem; }
.camera-surface {
  position: relative; display: grid; min-height: 14.8rem; place-content: center; justify-items: center; gap: .55rem; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(145deg,#182534,#253246); color: white; cursor: pointer; text-align: center;
}
.camera-surface input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.camera-surface:focus-within { outline: 3px solid #70a7d8; outline-offset: 4px; }
.camera-surface svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.camera-surface strong { font-size: 1rem; }
.camera-surface small { color: #aeb5c0; font: .84rem ui-monospace, monospace; }
.camera-corner { position: absolute; width: 1.65rem; height: 1.65rem; border-color: #aeb5c0; }
.camera-corner.top-left { top: 1rem; left: 1rem; border-top: 3px solid; border-left: 3px solid; border-radius: .35rem 0 0; }
.camera-corner.top-right { top: 1rem; right: 1rem; border-top: 3px solid; border-right: 3px solid; border-radius: 0 .35rem 0 0; }
.camera-corner.bottom-left { bottom: 1rem; left: 1rem; border-bottom: 3px solid; border-left: 3px solid; border-radius: 0 0 0 .35rem; }
.camera-corner.bottom-right { right: 1rem; bottom: 1rem; border-right: 3px solid; border-bottom: 3px solid; border-radius: 0 0 .35rem; }
.camera-copy { padding: 1.15rem .35rem .25rem; text-align: center; }
.camera-copy h2 { margin: 0; font: 650 1.45rem "Fraunces", serif; }
.camera-copy p { margin: .45rem 0 0; color: #596270; line-height: 1.4; }
.desktop-copy { display: none; }
.preview-panel, .crop-panel { margin-top: 1rem; }
.preview-panel:not(.hidden), .crop-panel:not(.hidden) { display: grid; gap: .75rem; }
.preview-panel img { width: 100%; max-height: 20rem; border-radius: 1rem; background: #101820; object-fit: contain; }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.crop-panel p { margin: 0; color: var(--muted); }
.activity-section > h2 { margin-bottom: .75rem; }
.activity-section.ui-card { padding: 1rem; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 2.7rem minmax(0,1fr); align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.activity-list li:first-child { border-top: 0; }
.activity-list a { color: inherit; text-decoration: none; }
.activity-list strong, .activity-list small { display: block; }
.activity-list small { margin-top: .15rem; color: var(--muted); font: .78rem ui-monospace, monospace; }
.activity-icon { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: .65rem; background: var(--tan); color: color-mix(in srgb,var(--warning) 60%,var(--ink)); font-size: 1.3rem; }
.activity-icon.is-success { background: var(--sage); color: var(--accent-deep); }
.activity-list .empty-row { display: block; color: var(--muted); text-align: center; }
.capture-page { display: grid; max-width: 42rem; margin: auto; gap: 1.25rem; }
.archive-banner { margin-bottom: 1rem; padding: 1rem; border-radius: 1rem; background: var(--tan); }

@media (min-width: 900px) {
  /* The utility bar and metric cards carry the visible desktop title, but the
     dashboard still needs its one page-level heading in the accessibility tree. */
  .price-dashboard .dashboard-greeting { margin: 0; }
  .price-dashboard .dashboard-greeting .ui-lede,
  .price-dashboard .dashboard-greeting .dashboard-tickets { display: none; }
  .price-dashboard .dashboard-greeting .ui-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .desktop-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .8rem; }
  .desktop-metrics a { display: grid; gap: .1rem; padding: .9rem 1rem; color: inherit; text-decoration: none; }
  .desktop-metrics strong { font-size: 1.4rem; }
  .desktop-metrics a:first-child strong { color: color-mix(in srgb,var(--warning) 60%,var(--ink)); }
  .desktop-metrics a:nth-child(2) strong { color: var(--accent-deep); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr); align-items: start; gap: .8rem; }
  .camera-card { padding: .8rem; border-radius: .75rem; }
  .camera-surface { min-height: 18rem; border-radius: .65rem; }
  .camera-copy { text-align: left; padding: .6rem 0 0; }
  .camera-copy h2 { font: 700 1.05rem "Source Sans 3", sans-serif; }
  .camera-copy p { margin-top: .2rem; font-size: .85rem; }
  .mobile-copy { display: none; }
  .desktop-copy { display: inline; }
  .activity-section.ui-card { min-height: 18rem; padding: .8rem; border-radius: .75rem; }
  .activity-list li { grid-template-columns: 2rem minmax(0,1fr); gap: .55rem; padding: .48rem 0; }
  .activity-icon { width: 2rem; height: 2rem; border-radius: .45rem; font-size: 1rem; }
  .activity-list strong { font-size: .82rem; }
  .activity-list small { font-size: .72rem; }
  .capture-page { max-width: 50rem; }
}

.file-button input { display: none; }

#crop-canvas {
  width: 100%;
  background: #111;
  border-radius: 12px;
  touch-action: none;
}

.picker { position: relative; z-index: 1; }
.picker.is-open { z-index: 80; }
.picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
}
.picker-selected:empty { display: none; }
.picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 650;
}
.picker-remove {
  width: auto;
  margin: 0;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: #c7ccd3;
  font-size: 1.1rem;
  line-height: 1;
}
.picker-results {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: 13.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(36, 28, 22, 0.12);
}
.picker-results[hidden] { display: none !important; }
.picker.is-open .picker-results:not([hidden]) { display: grid; }
.picker-hint {
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--muted);
}
.picker-option,
button.picker-option {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font-weight: 600;
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}
.picker-option.is-active,
.picker-option:hover { background: var(--sand); }

.suggestions { margin-top: 0.5rem; display: grid; gap: 0.5rem; }
.suggestion {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.6rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.suggestion img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

.match-shell { position: relative; min-width: 0; max-width: 100%; }
.matches {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0 12% 0.6rem 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.match-slide {
  flex: 0 0 82%;
  display: flex;
  scroll-snap-align: start;
}
.match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(36, 28, 22, 0.07);
}
.match-card img, .match-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand);
  flex: 0 0 auto;
}
.match-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding: 1rem 1.05rem 1.2rem;
}
.match-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.rank {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 1.4rem);
  margin: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}
.dots { display: flex; justify-content: center; gap: 0.4rem; margin: 0.8rem 0 1.2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d3c2ab; }
.dot.active { background: var(--ink); }
.carousel-nav {
  display: grid;
  place-items: center;
  position: absolute;
  top: 42%;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.carousel-nav.prev { left: -0.2rem; }
.carousel-nav.next { right: -0.2rem; }
.carousel-nav:disabled { opacity: 0.35; }

.lists-desk {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 900px) {
  .carousel-hint, .dots, .carousel-nav { display: none; }
  .matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .match-slide { flex: none; }
  body.is-signed-in { padding-bottom: 0; }
  .app-nav { display: flex !important; }
  .lists-modal-wrap { align-items: center !important; padding: 1.5rem !important; }
  .lists-modal {
    width: min(36rem, calc(100% - 2rem));
    max-height: min(42rem, 86dvh);
    border-radius: 20px !important;
  }
}

/* Canonical Items queue/editor composition */
.items-detail { display: none; min-width: 0; }
.items-detail.items-detail-requested { display: block; }
.items-queue-behind-detail { display: none; }
.item-editor { min-width: 0; overflow: hidden; }
.item-editor-form { min-width: 0; }
.item-editor-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.item-editor-fields:disabled { opacity: .82; }
.item-editor-body { display: grid; min-width: 0; gap: 1rem; }
.item-editor-left, .item-editor-right { min-width: 0; }
.item-photo-hero {
  position: relative;
  display: grid;
  min-height: 15rem;
  overflow: hidden;
  place-items: center;
  border-radius: 1rem;
  background: var(--sand);
  color: var(--muted);
  font-size: 2rem;
}
.item-photo-hero img { width: 100%; height: 100%; min-height: 15rem; object-fit: contain; }
.change-photo {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  padding: .45rem .8rem;
  color: white;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.item-history { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.item-history summary {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
}
.item-history summary span { color: var(--muted); font-size: .78rem; font-weight: 400; }
.item-history .audit { margin: 0; padding: 0 0 .75rem 1.2rem; }
.detail-secondary { padding: 1rem; border-top: 1px solid var(--line); }
.detail-secondary > h2 { margin: 0; font-size: 1rem; }

@media (max-width: 899px) {
  .items-detail-requested .item-editor { overflow: visible; }
  .items-detail-requested .item-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    margin: -1.15rem -1.15rem 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .items-detail-requested .item-editor-head h1 { margin: 0; }
  .items-detail-requested .item-editor-body { padding: 0; }
}

@media (min-width: 900px) {
  .items-page .app-main { padding: 1.25rem 2rem 1.5rem; }
  .items-page .items-layout {
    grid-template-columns: minmax(21rem, 24rem) minmax(0, 1fr);
    gap: 1.35rem;
  }
  .items-page .items-queue {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .items-page .item-list-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .items-page .item-card.is-selected {
    border-color: var(--ink);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-card);
  }
  .items-page .item-card.is-selected p,
  .items-page .item-card.is-selected .item-side small { color: var(--muted); }
  .items-page .item-card-copy {
    min-width: 0;
    overflow: hidden;
  }
  .items-page .item-card-copy h2,
  .items-page .item-card-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .items-page .items-detail,
  .items-page .items-detail.items-detail-requested {
    display: block;
    min-height: 0;
    overflow: hidden;
  }
  .items-page .items-empty-detail {
    display: grid;
    height: 100%;
    min-height: 0;
    place-content: center;
    justify-items: center;
    padding: 1rem;
  }
  .items-page .item-editor {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .items-page .item-editor-form { min-height: 100%; }
  .items-page .item-editor-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
  }
  .items-page .item-editor-head h1,
  .items-page .item-editor-head h2 { margin: 0; font-size: 1.35rem; }
  .items-page .item-editor-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.35rem 1.4rem 1.6rem;
  }
  .items-page .item-photo-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-bottom: .85rem;
    border-radius: .9rem;
  }
  .items-page .check {
    align-items: center;
    margin-top: 1.15rem;
    padding-top: .9rem;
  }
  .items-page .check span { font-size: .78rem; }
  .items-page .item-photo-hero img { min-height: 0; }
  .items-page .detail-secondary { margin: 0; }
  .items-page .admin-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .app-main { animation: fade-up .28s ease; }
  .desktop-metrics a,
  .dashboard-grid > *,
  .person-list .person-card,
  .lists-desk > *,
  .charity-list > li,
  .charity-person,
  .charity-manage-card {
    animation: fade-up .28s ease both;
  }
  .desktop-metrics a:nth-child(2),
  .dashboard-grid > *:nth-child(2),
  .person-card:nth-child(2),
  .lists-desk > *:nth-child(2),
  .charity-list > li:nth-child(2),
  .charity-person:nth-child(2),
  .charity-manage-card:nth-child(2) { animation-delay: .05s; }
  .desktop-metrics a:nth-child(3),
  .dashboard-grid > *:nth-child(3),
  .person-card:nth-child(3),
  .lists-desk > *:nth-child(3),
  .charity-list > li:nth-child(3),
  .charity-person:nth-child(3),
  .charity-manage-card:nth-child(3) { animation-delay: .1s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Volunteer price flow */
.price-flow .app-main {
  max-width: 58rem;
  padding-top: .1rem;
  padding-bottom: calc(var(--nav-height) + 2.5rem + env(safe-area-inset-bottom));
}
.price-flow-shell,
.capture-page {
  display: grid;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  gap: 1.15rem;
}
.price-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 0 0 .6rem;
}
.price-step { min-width: 0; }
.price-step > span {
  display: block;
  height: .2rem;
  margin-bottom: .45rem;
  border-radius: 999px;
  background: var(--sand);
}
.price-step strong {
  display: block;
  color: var(--muted);
  font: 700 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-step.is-reached > span { background: var(--flow-accent); }
.price-step.is-current strong,
.price-step.is-reached:not(.is-current) strong { color: var(--ink); }
.price-flow-heading { margin-bottom: .15rem; }
.flow-back {
  width: max-content;
  color: var(--flow-muted);
  font-weight: 700;
  text-decoration: none;
}

/* Capture */
.price-capture .camera-card { position: relative; padding: 1.15rem; }
.price-capture .camera-surface {
  min-height: 0;
  height: calc(100dvh - 20rem - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 14rem - env(safe-area-inset-bottom, 0px));
}
.capture-status {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  padding: 1.25rem;
  border-radius: inherit;
  background: color-mix(in srgb, var(--forest) 74%, transparent);
  color: white;
  text-align: center;
  backdrop-filter: blur(8px);
}
.capture-status[hidden] { display: none; }
.capture-status-ring {
  width: 2.5rem;
  height: 2.5rem;
  border: 2.5px solid color-mix(in srgb, var(--sage) 40%, transparent);
  border-top-color: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--sage) 16%, transparent);
  animation: auth-spin .8s linear infinite, capture-pulse 1.6s ease-in-out infinite;
}
.capture-status strong {
  max-width: 14rem;
  font: 650 1.1rem/1.25 "Fraunces", serif;
}
@keyframes capture-pulse {
  50% { box-shadow: 0 0 0 .7rem color-mix(in srgb, var(--sage) 6%, transparent); }
}
.camera-surface[hidden] { display: none; }
.camera-preview {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--sand);
}
.preview-panel {
  margin: 0;
  scroll-margin-top: .75rem;
  scroll-margin-bottom: calc(var(--nav-height) + .75rem);
}
.preview-panel:not(.hidden) { gap: 1rem; }
.preview-panel .camera-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--nav-height) - 11rem - env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  background: var(--sand);
  object-fit: contain;
}
.camera-preview .camera-corner { color: rgba(255,255,255,.82); }
.retake-chip {
  position: absolute;
  top: .75rem;
  right: .75rem;
  min-height: 2.2rem;
  padding: .35rem .75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(29,41,56,.76);
  color: white;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.preview-actions .ui-primary,
.preview-actions .ui-secondary { width: 100%; line-height: 1.05; }
.camera-help {
  display: none;
  margin: .1rem 0 0;
  color: var(--muted);
  text-align: center;
}
.camera-card.has-photo .camera-help { display: block; }
.crop-panel { margin: 0; }

/* Match carousel and decision */
.match-decision-form { min-width: 0; }
.price-matches .matches {
  gap: 1rem;
  overflow-x: auto;
  padding: 0 18% .55rem 0;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
}
.price-matches .match-slide {
  display: flex;
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
}
.price-matches .match-card {
  appearance: none;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-card);
}
.price-matches .match-card.is-selected { border-color: color-mix(in srgb, var(--flow-accent) 55%, var(--line)); }
.price-matches .match-card img,
.price-matches .match-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  place-items: center;
  background: linear-gradient(145deg,#eeece5,#e6e2d8);
  color: #aaa89f;
}
.price-matches .match-card img { object-fit: cover; }
.price-matches .match-photo svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.price-matches .match-copy {
  display: grid;
  min-height: 5.6rem;
  gap: .55rem;
  justify-items: start;
  padding: .9rem 1rem;
}
.price-matches .match-copy strong { min-height: 0; font-size: 1.05rem; }
.price-matches .match-price {
  display: inline-flex;
  width: max-content;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: #e2f0ed;
  color: #235d57;
  font: 700 .82rem ui-monospace, SFMono-Regular, Menlo, monospace;
}
.price-matches .match-price.is-unpriced { background: var(--sand); color: var(--muted); }
.price-matches .rank {
  background: rgba(29,41,56,.76);
  color: white;
  font: 700 .72rem ui-monospace, SFMono-Regular, Menlo, monospace;
}
.price-matches .dots { margin: .6rem 0 1.35rem; }
.price-matches .dot { width: .42rem; height: .42rem; background: #d6d7d4; }
.price-matches .dot.active { width: 1.1rem; border-radius: 999px; background: var(--flow-accent); }
.selected-match-bar {
  position: sticky;
  bottom: max(.65rem, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .8rem;
  margin: 1.25rem 0 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(29,41,56,.16);
  backdrop-filter: blur(12px);
}
.selected-match-bar p { min-width: 0; margin: 0; }
.selected-match-bar span,
.selected-match-bar strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-match-bar span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.selected-match-bar .ui-primary { min-height: 2.9rem; }
.match-refine {
  display: grid;
  gap: .75rem;
  padding: 1.15rem;
  border: 1px dashed #ccd0ce;
  border-radius: 1.2rem;
  background: rgba(255,255,255,.65);
}
.match-refine h2 { margin: 0; font: 650 1.2rem/1.15 "Fraunces", serif; }
.match-refine p { margin: 0; color: var(--flow-muted); line-height: 1.35; }
.match-refine .picker-results { top: auto; bottom: calc(100% + .3rem); }
.new-item-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.clear-filter { color: var(--accent-deep); font-weight: 700; }
.match-empty { margin: 0; padding: 1.25rem; border-radius: 1.1rem; background: var(--sand); color: var(--muted); text-align: center; }
.match-waiting {
  margin: 0;
  padding: 1.5rem 1.25rem;
  border-radius: 1.1rem;
  background: var(--sand);
  color: var(--ink);
  text-align: center;
}
.match-waiting-spinner {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

/* New item */
.your-photo-chip {
  display: inline-grid;
  width: max-content;
  grid-template-columns: 2.35rem auto;
  align-items: center;
  gap: .65rem;
  overflow: hidden;
  padding: .25rem .9rem .25rem .25rem;
  border-radius: 999px;
  background: var(--sand);
}
.your-photo-chip img { width: 2.35rem; height: 2.35rem; border-radius: 50%; object-fit: cover; }
.new-product-form { display: grid; gap: .55rem; }
.flow-label {
  display: block;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.flow-label span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.flow-input {
  width: 100%;
  min-height: 3.25rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: white;
  color: var(--ink);
}
textarea.flow-input { min-height: 6rem; resize: vertical; }
.flow-field { margin-top: 0; }
.condition-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.condition-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.condition-pills input { position: absolute; opacity: 0; pointer-events: none; }
.condition-pills span {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--flow-muted);
  font-weight: 700;
  cursor: pointer;
}
.condition-pills input:checked + span {
  border-color: var(--flow-accent);
  background: #e2f0ed;
  color: #174d48;
  box-shadow: inset 0 0 0 1px var(--flow-accent);
}
.condition-pills input:focus-visible + span { outline: 3px solid color-mix(in srgb,#397bbb 55%,transparent); outline-offset: 3px; }
.new-product-form .picker-selected { margin-top: .1rem; }
.send-pricing { width: 100%; margin-top: 1rem; }

/* Done */
.done-shell { gap: 1.65rem; }
.done-message {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-top: 1.15rem;
  text-align: center;
}
.done-message p { max-width: 34rem; margin: 0; color: var(--flow-muted); font-size: 1.05rem; line-height: 1.45; }
.done-icon {
  display: grid;
  width: 5.1rem;
  height: 5.1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--muted);
  font-size: 2.25rem;
}
.done-icon.is-ready { background: #e2f0ed; color: #174d48; }
.done-icon svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done-notification,
.done-item-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: white;
  box-shadow: var(--shadow-card);
}
.done-notification p,
.done-item-card p { margin: 0; }
.done-notification a { color: #174d48; font-weight: 700; }
.notification-line-icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--flow-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done-thumb {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  overflow: hidden;
  border-radius: .9rem;
  background: var(--sand);
  color: #99988f;
}
.done-thumb img { width: 100%; height: 100%; object-fit: cover; }
.done-thumb > svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.done-item-card strong,
.done-item-card span { display: block; }
.done-item-card span { margin-top: .15rem; color: var(--muted); }
.done-again { display: inline-flex; width: 100%; align-items: center; justify-content: center; text-decoration: none; }

@media (min-width: 900px) {
  .price-flow .app-main { padding: 1.4rem 2rem 2.5rem; }
  .price-flow-shell,
  .capture-page { max-width: 52rem; }
  .price-flow .ui-page-title { font: 650 2rem/1.05 "Fraunces", serif; letter-spacing: -.025em; }
  .price-flow .ui-lede { font-size: 1rem; }
  .price-capture .camera-card { max-width: 34rem; padding: 1.15rem; }
  .price-capture .camera-surface {
    min-height: 26rem;
    height: auto;
    max-height: none;
    border-radius: 1.1rem;
  }
  .price-capture .camera-preview { border-radius: 1.1rem; }
  .preview-panel .camera-preview img { max-height: 28rem; }
  .price-matches .matches {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding: 0 1rem .65rem 0;
    scroll-snap-type: x mandatory;
  }
  .price-matches .match-slide { flex: 0 0 calc((100% - 1.6rem) / 3); }
  .price-matches .carousel-nav { display: grid; z-index: 4; }
  .price-matches .dots { display: flex; }
  .selected-match-bar { bottom: .25rem; }
  .new-product-form { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .new-product-form > *,
  .new-product-form .flow-field,
  .new-product-form .condition-field { grid-column: 1 / -1; }
  .done-shell { max-width: 40rem; }
}

/* Volunteer auth layout — scoped so signed-in pages stay unchanged */
body.auth-page {
  --auth-ink: #1B2430;
  --auth-ink-soft: #4B5768;
  --auth-ink-faint: #8A94A3;
  --auth-paper: #F5F3EE;
  --auth-raised: #FFFFFF;
  --auth-line: rgba(27, 36, 48, 0.10);
  --auth-line-strong: rgba(27, 36, 48, 0.16);
  --auth-teal: #1F5C56;
  --auth-teal-ink: #163F3B;
  --auth-teal-tint: #DCEAE7;
  --auth-teal-light: #7FC7BA;
  --auth-glow: rgba(31, 92, 86, 0.35);
  --auth-btn-shadow: 0 4px 14px rgba(31, 92, 86, 0.28);
  --auth-shadow: 0 10px 28px rgba(27, 36, 48, 0.10);
  --auth-shadow-sm: 0 1px 2px rgba(27, 36, 48, 0.06), 0 1px 1px rgba(27, 36, 48, 0.04);
  background: var(--auth-paper);
  color: var(--auth-ink);
  font-family: Inter, "Source Sans 3", sans-serif;
}
html[data-theme] body.auth-page {
  --auth-ink: var(--ink);
  --auth-ink-soft: color-mix(in srgb, var(--ink) 62%, white);
  --auth-ink-faint: color-mix(in srgb, var(--ink) 42%, white);
  --auth-paper: var(--paper);
  --auth-line: color-mix(in srgb, var(--ink) 10%, transparent);
  --auth-line-strong: color-mix(in srgb, var(--ink) 16%, transparent);
  --auth-teal: var(--accent);
  --auth-teal-ink: var(--accent-deep);
  --auth-teal-tint: var(--sage);
  --auth-teal-light: color-mix(in srgb, var(--accent) 48%, white);
  --auth-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  --auth-btn-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent);
  --auth-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 10%, transparent);
  --auth-shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 1px 1px color-mix(in srgb, var(--ink) 4%, transparent);
}
body.auth-page .mobile-header,
body.auth-page .desktop-utility,
body.auth-page .app-dock {
  display: none !important;
}
body.auth-page .app-frame {
  min-height: 100dvh;
  margin: 0;
}
body.auth-page .app-main {
  max-width: none;
  margin: 0;
  padding: 0;
}
body.auth-page :focus-visible {
  outline: 2.5px solid var(--auth-teal) !important;
  outline-offset: 2px;
  border-radius: 6px;
}
.auth-split {
  display: flex;
  min-height: 100dvh;
}
.auth-left {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 2rem 1.5rem;
  background: var(--auth-paper);
}
.auth-left-top { display: none; }
.auth-left-center {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.auth-col { width: 100%; max-width: 25rem; }
.auth-mobile-brand { margin-bottom: 1.9rem; text-align: center; }
.auth-wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.auth-mobile-brand .auth-wordmark {
  flex-direction: column;
  gap: 1rem;
}
.auth-mobile-brand .auth-charity-logo {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 18px;
}
.auth-tagmark {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--auth-teal-tint);
  color: var(--auth-teal-ink);
}
.auth-tagmark svg { width: 1.25rem; height: 1.25rem; }
.auth-wordmark-text {
  font-family: Fraunces, serif;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-wordmark-dot { color: var(--auth-teal); }
.auth-charity-logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  object-fit: contain;
  border-radius: 13px;
  background: var(--paper, #fff);
}
.domain-actions { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.auth-tagline {
  margin: 0.35rem 0 0;
  color: var(--auth-ink-faint);
  font-size: 0.8125rem;
}
.auth-card {
  padding: 1.75rem 1.625rem;
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  background: var(--auth-raised);
  box-shadow: var(--auth-shadow-sm);
}
.auth-h {
  margin: 0 0 0.25rem;
  font-family: Fraunces, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 0 1.4rem;
  color: var(--auth-ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.auth-flash {
  margin: -0.4rem 0 1rem;
  color: #A94A36;
  font-size: 0.75rem;
}
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--auth-ink-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: var(--auth-ink-faint);
  pointer-events: none;
  transform: translateY(-50%);
}
.auth-input-wrap input {
  width: 100%;
  padding: 0.8rem 0.875rem 0.8rem 2.5rem;
  border: 1.5px solid var(--auth-line-strong);
  border-radius: 12px;
  background: var(--auth-raised);
  color: var(--auth-ink);
  font-size: 0.9375rem;
  outline: none;
}
.auth-input-wrap input:focus { border-color: var(--auth-teal); }
.auth-field-err {
  margin: 0.4rem 0 0;
  color: #A94A36;
  font-size: 0.72rem;
}
.auth-btn {
  display: inline-flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 100px;
  background: var(--auth-teal);
  box-shadow: var(--auth-btn-shadow);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-btn:hover { background: var(--auth-teal-ink); }
.auth-btn:disabled { opacity: 0.75; cursor: default; }
.auth-btn:active { transform: scale(0.98); }
.auth-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-micro {
  margin: 0.9rem 0 0;
  color: var(--auth-ink-faint);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}
.auth-signup-prompt {
  margin: 1.4rem 0 0;
  color: var(--auth-ink-soft);
  font-size: 0.84rem;
  text-align: center;
}
.auth-signup-prompt a {
  color: var(--auth-teal-ink);
  font-weight: 600;
  text-decoration: none;
}
.auth-signup-prompt a:hover { text-decoration: underline; }
.auth-signup-notice {
  display: none;
  margin: 0.7rem 0 0;
  color: var(--auth-ink-faint);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}
.auth-signup-notice:target,
.auth-signup-notice.is-visible { display: block; }
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  color: var(--auth-ink-faint);
  font-size: 0.7rem;
}
.auth-trust svg { width: 0.8rem; height: 0.8rem; flex: none; }
.auth-sent { text-align: center; }
.auth-sent-icon {
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--auth-teal-tint);
  color: var(--auth-teal-ink);
  animation: auth-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.auth-sent-icon svg { width: 1.5rem; height: 1.5rem; }
@keyframes auth-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.auth-sent .auth-sub strong { color: var(--auth-ink); }
.auth-magic { margin: 0 0 0.4rem; }
.auth-magic a {
  color: var(--auth-teal-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-resend {
  margin: 1.1rem 0 0;
  color: var(--auth-ink-faint);
  font-size: 0.78rem;
}
.auth-resend button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--auth-teal-ink);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-resend button:disabled {
  color: var(--auth-ink-faint);
  cursor: default;
}
.auth-try-diff {
  display: block;
  margin: 1rem auto 0;
  color: var(--auth-ink-soft);
  font-size: 0.78rem;
  text-align: center;
}
.auth-brand-panel { display: none; }
.auth-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  left: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--auth-ink);
  box-shadow: 0 20px 50px rgba(27, 36, 48, 0.25);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.auth-toast svg { width: 1rem; height: 1rem; color: var(--auth-teal-tint); flex: none; }
@media (min-width: 900px) {
  body.app.auth-page {
    overflow: auto;
    font-size: 1rem;
  }
  body.auth-page .app-frame {
    display: block;
    height: auto;
    margin-left: 0;
    overflow: visible;
  }
  body.auth-page .app-main {
    overflow: visible;
    padding: 0;
  }
}
@media (min-width: 960px) {
  .auth-split { min-height: 100vh; }
  .auth-left { padding: 2.75rem 3.5rem; }
  .auth-left-top {
    display: flex;
    align-items: center;
  }
  .auth-left-top .auth-tagmark {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 10px;
  }
  .auth-left-top .auth-tagmark svg { width: 1rem; height: 1rem; }
  .auth-left-top .auth-wordmark-text { font-size: 1.2rem; }
  .auth-mobile-brand { display: none; }
  body.auth-page.is-branded .auth-left-top { display: none; }
  body.auth-page.is-branded .auth-mobile-brand {
    display: block;
    margin-bottom: 2.25rem;
  }
  body.auth-page.is-branded .auth-mobile-brand .auth-charity-logo {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 22px;
  }
  body.auth-page.is-branded .auth-mobile-brand .auth-tagmark {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 20px;
  }
  body.auth-page.is-branded .auth-mobile-brand .auth-tagmark svg { width: 2.25rem; height: 2.25rem; }
  body.auth-page.is-branded .auth-mobile-brand .auth-wordmark-text { font-size: 1.85rem; }
  .auth-col { max-width: 25rem; }
  .auth-card {
    padding: 2.25rem 2.125rem;
    border-radius: 20px;
    box-shadow: var(--auth-shadow);
  }
  .auth-h { font-size: 1.5rem; }
  .auth-sub { margin-bottom: 1.6rem; font-size: 0.875rem; line-height: 1.55; }
  .auth-brand-panel {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 4.5rem 4rem;
    background: var(--auth-ink);
    color: #fff;
  }
  .auth-brand-panel::before {
    position: absolute;
    top: -10%;
    right: -8%;
    width: 26rem;
    height: 26rem;
    background: radial-gradient(circle, var(--auth-glow) 0%, transparent 70%);
    content: "";
  }
  .auth-brand-mark {
    position: absolute;
    right: -2.5rem;
    bottom: -3.75rem;
    width: 17.5rem;
    height: 12.5rem;
    background: rgba(255, 255, 255, 0.035);
    clip-path: polygon(60px 0, 100% 0, 100% 100%, 60px 100%, 0 50%);
  }
  .auth-brand-inner { position: relative; max-width: 30rem; }
  .auth-brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--auth-teal-light);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .auth-brand-eyebrow::before {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--auth-teal-light);
    content: "";
  }
  .auth-brand-inner h2 {
    margin: 0 0 1.25rem;
    font-family: Fraunces, serif;
    font-size: clamp(1.875rem, 3.2vw, 2.625rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
  }
  .auth-brand-lede {
    margin: 0 0 2.5rem;
    color: #B8C0CC;
    font-size: 1rem;
    line-height: 1.65;
  }
  .auth-feat {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .auth-feat:last-child { margin-bottom: 0; }
  .auth-feat-icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--auth-teal-light);
  }
  .auth-feat-icon svg { width: 1.125rem; height: 1.125rem; }
  .auth-feat-title {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
  }
  .auth-feat-copy {
    margin: 0;
    color: #98A2B0;
    font-size: 0.84rem;
    line-height: 1.55;
  }
  .auth-toast {
    right: auto;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 2rem);
    border-radius: 100px;
    padding: 0.8rem 1.15rem;
    transform: translate(-50%, 20px);
  }
  .auth-toast.is-visible { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.auth-page *,
  body.auth-page *::before,
  body.auth-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
