:root {
  --bg-deep: #080311;
  --bg-plum: #1A1023;
  --bg-card: #181622;
  --bg-card-2: #100719;
  --pink: #FF4777;
  --orange: #FF7A3D;
  --yellow: #FFE934;
  --mint: #37F2C4;
  --cyan: #63E7FF;
  --lavender: #D9C7F4;
  --ink: #FFF7FF;
  --ink-soft: #D9C7F4;
  --ink-mute: #9D8AC4;
  --border: rgba(255, 255, 255, .08);
  --border-lav: rgba(217, 199, 244, .2);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--border);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #2A1140 0%, var(--bg-plum) 35%, #100719 65%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

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

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

h1,
h2,
h3,
.brand strong,
.btn,
.chip,
.eyebrow {
  font-family: Fredoka, Inter, system-ui, sans-serif;
}

h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 38px;
  line-height: 1;
}

h2 {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-size: 25px;
  line-height: 1.08;
}

h3 {
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.12;
}

p {
  color: var(--ink-soft);
}

.app-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(430px, calc(100% - 28px));
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 3, 17, .76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 20px;
}

.brand small,
.icon-chip,
.soft {
  color: var(--ink-mute);
}

.brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--bg-deep);
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lavender), #FF7AAF);
  box-shadow: 0 0 38px rgba(217, 199, 244, .32);
}

.brand-mark.big {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 36px;
}

.icon-chip {
  max-width: 42vw;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
}

.page {
  width: min(430px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.with-tabbar {
  padding-bottom: 110px;
}

.site-footer {
  width: min(430px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 34px;
  text-align: center;
}

.site-footer.with-tabbar-footer {
  padding-bottom: 126px;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-mute);
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .04);
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--ink);
  border-color: var(--border-lav);
  background: rgba(217, 199, 244, .1);
}

.hero-panel,
.home-hero,
.card,
.auth-card,
.callout,
.install-banner,
.listing-card,
.metric {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(24, 22, 34, .95), rgba(16, 7, 25, .95));
  box-shadow: var(--shadow-card);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 46px 28px;
}

.hero-panel h1 {
  max-width: 760px;
  font-size: 38px;
}

.hero-panel p {
  max-width: 680px;
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.inline-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-choice-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  margin-top: 28px;
}

.landing-choice {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .055);
}

.landing-choice h2 {
  margin: 0;
  font-size: 24px;
}

.landing-choice p {
  margin: 0;
  font-size: 15px;
}

.landing-separator {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-lav);
  border-radius: var(--r-pill);
  color: var(--lavender);
  background: rgba(8, 3, 17, .86);
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 800;
}

.choice-page {
  display: grid;
  gap: 18px;
  min-height: calc(100svh - 188px);
  align-content: end;
}

.choice-sheet {
  display: grid;
  gap: 20px;
  padding: 22px 18px 26px;
  border: 1px solid var(--border);
  border-radius: 32px 32px 24px 24px;
  background: linear-gradient(165deg, rgba(24, 22, 34, .98), rgba(16, 7, 25, .98));
  box-shadow: var(--shadow-card);
}

.sheet-handle {
  justify-self: center;
  width: 40px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 247, 255, .24);
}

.choice-sheet h1 {
  margin: 0;
  text-align: center;
  font-size: 24px;
}

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

.choice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .055);
}

.choice-row strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: Fredoka, sans-serif;
  font-size: 18px;
}

.choice-row small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.choice-row .arr {
  color: var(--lavender);
  font-weight: 900;
}

.choice-row b {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  color: var(--bg-deep);
  background: var(--lavender);
  font-family: Inter, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.choice-row-featured {
  border-color: rgba(217, 199, 244, .52);
  background: rgba(217, 199, 244, .1);
}

.choice-row.is-muted {
  opacity: .82;
}

.share-sheet-open {
  overflow: hidden;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 14px 112px;
}

.share-overlay[hidden] {
  display: none;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 3, 17, .68);
  backdrop-filter: blur(2px);
}

.share-modal {
  position: relative;
  width: min(430px, 100%);
}

.join-form {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.btn.primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--lavender), #FF7AAF);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
}

.btn.danger {
  color: var(--ink);
  background: rgba(255, 71, 119, .14);
  border: 1px solid rgba(255, 71, 119, .32);
}

.btn.full {
  width: 100%;
}

.btn.mini {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.btn:disabled {
  cursor: not-allowed;
  color: var(--ink-mute);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 13px;
  border: 1px solid var(--border-lav);
  border-radius: var(--r-pill);
  color: var(--lavender);
  background: rgba(217, 199, 244, .08);
  font-size: 12px;
  font-weight: 700;
}

.grid,
.cards-grid,
.shortcut-grid {
  display: grid;
  gap: 16px;
}

.grid.two,
.cards-grid {
  grid-template-columns: 1fr;
}

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

.section {
  padding: 28px 0;
}

.section-title {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.card {
  padding: 22px;
}

.sticker {
  margin-top: 16px;
  transform: rotate(-1deg);
}

.sticker.alt {
  transform: rotate(1deg);
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  font-weight: 700;
}

.chip.lavender,
.chip.active {
  color: var(--lavender);
  border-color: rgba(217, 199, 244, .35);
  background: rgba(217, 199, 244, .12);
}

.chip.mint {
  color: var(--mint);
  border-color: rgba(55, 242, 196, .35);
}

.chip.yellow {
  color: var(--yellow);
  border-color: rgba(255, 233, 52, .35);
}

.chip.pink {
  color: var(--pink);
  border-color: rgba(255, 71, 119, .35);
}

.form-page,
.auth-card {
  max-width: 620px;
  margin: 0 auto;
}

.auth-card {
  padding: 28px;
}

.app-badge {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.app-badge strong {
  font-family: Fredoka, sans-serif;
  font-size: 26px;
}

.app-badge small,
.muted-links a {
  color: var(--ink-mute);
}

.form-head {
  margin-bottom: 18px;
}

.form-card {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.field span {
  font-size: 14px;
}

.field small,
.field em,
.form-errors {
  color: var(--pink);
  font-size: 13px;
  font-style: normal;
}

.form-input,
.form-textarea,
.form-select,
.form-file,
.search-bar input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  font: inherit;
}

.form-select {
  padding-right: 42px;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, .06);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lavender) 50%),
    linear-gradient(135deg, var(--lavender) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.form-select option {
  background: var(--bg-card);
  color: var(--ink);
}

.form-select option[value=""] {
  color: var(--ink-mute);
}

.form-select option:checked {
  background: var(--lavender);
  color: var(--bg-deep);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.muted-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 18px 0;
}

.search-bar button {
  border: 0;
  border-radius: var(--r-md);
  color: var(--bg-deep);
  background: var(--lavender);
  font-weight: 800;
  padding: 0 16px;
}

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

.shortcut {
  min-height: 86px;
  display: flex;
  align-items: end;
  padding: 16px;
  border-radius: var(--r-lg);
  color: var(--bg-deep);
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.shortcut.mint {
  background: var(--mint);
}

.shortcut.yellow {
  background: var(--yellow);
}

.shortcut.lavender {
  background: var(--lavender);
}

.callout {
  padding: 18px;
}

.callout.lavender {
  border-color: var(--border-lav);
  background: rgba(217, 199, 244, .11);
}

.callout.yellow {
  border-color: rgba(255, 233, 52, .35);
  background: rgba(255, 233, 52, .1);
}

.install-banner {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--yellow), var(--mint));
}

.install-banner span {
  color: rgba(8, 3, 17, .78);
}

.listing-card {
  overflow: hidden;
}

.listing-card img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: auto;
}

.listing-card > div:last-child {
  padding: 16px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: rgba(8, 3, 17, .72);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .65), transparent 24%),
    linear-gradient(135deg, rgba(217, 199, 244, .95), rgba(99, 231, 255, .82));
  font-family: Fredoka, sans-serif;
  font-size: 46px;
  font-weight: 700;
}

.photo-placeholder span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .38);
}

.photo-placeholder.large {
  min-height: 280px;
  border-radius: var(--r-xl);
}

.detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-xl);
}

.detail-card {
  align-self: start;
}

.owner-actions {
  margin-top: 18px;
}

.contact-card,
.row-card,
.metric {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
}

.contact-card a {
  color: var(--lavender);
}

.list-stack {
  display: grid;
  gap: 10px;
}

.row-card {
  grid-template-columns: 1fr;
  align-items: center;
}

.row-card span {
  color: var(--ink-mute);
}

.metric strong {
  font-family: Fredoka, sans-serif;
  font-size: 32px;
}

.metric span {
  color: var(--ink-mute);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 58px 1fr 1fr;
  align-items: center;
  width: min(430px, calc(100% - 24px));
  min-height: 66px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(8, 3, 17, .9);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.tabbar a {
  display: grid;
  grid-template-rows: 22px auto;
  place-items: center;
  gap: 2px;
  min-height: 46px;
  border-radius: var(--r-pill);
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tab-icon {
  display: grid;
  place-items: center;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.tab-label {
  line-height: 1;
}

.tabbar .fab {
  width: 58px;
  height: 58px;
  margin-top: -18px;
  color: var(--bg-deep);
  background: var(--lavender);
  font-family: Fredoka, sans-serif;
  font-size: 32px;
}

.tabbar .fab .tab-icon {
  height: auto;
  font-size: 34px;
}

.page.with-tabbar {
  width: min(430px, calc(100% - 28px));
}

.page.with-tabbar .section {
  padding: 22px 0;
}

.home-search {
  display: block;
  margin: 4px 0 16px;
}

.home-search input {
  min-height: 50px;
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .055);
}

.home-hero {
  position: relative;
  display: block;
  min-height: 128px;
  overflow: hidden;
  padding: 26px 20px;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #e7c6ff 0%, #ff75ad 100%);
  box-shadow: 0 22px 50px rgba(217, 199, 244, .18);
}

.home-hero .eyebrow {
  margin-bottom: 8px;
  color: rgba(8, 3, 17, .66);
  background: rgba(8, 3, 17, .08);
  border: 0;
}

.home-hero h1 {
  color: var(--bg-deep);
  font-size: 34px;
}

.home-hero p {
  margin: 6px 0 0;
  color: rgba(8, 3, 17, .72);
  font-weight: 600;
}

.hero-deco {
  position: absolute;
  top: -8px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 30px;
}

.welcome-card {
  margin: 14px 0 16px;
}

.home-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.shortcut.card-shortcut {
  display: grid;
  align-content: space-between;
  min-height: 122px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--border);
  box-shadow: none;
}

.card-shortcut small,
.ai-strip small,
.pwa-card small,
.home-row small,
.mini-listing small {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.shortcut-icon,
.home-row-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 20px;
}

.shortcut-icon.artisans {
  background: rgba(255, 71, 119, .18);
}

.shortcut-icon.donation {
  background: rgba(255, 233, 52, .16);
}

.ai-strip,
.pwa-card,
.home-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

.ai-strip {
  margin-top: 10px;
  padding: 13px 14px;
}

.ai-strip > span:first-child {
  font-size: 20px;
}

.section-title.compact {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title.compact h2,
.household-panel h2 {
  margin: 0;
  font-size: 22px;
}

.section-title.compact a {
  color: var(--lavender);
  font-size: 13px;
  font-weight: 800;
}

.object-strip {
  display: grid;
  grid-auto-columns: 132px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.object-strip::-webkit-scrollbar {
  display: none;
}

.mini-listing {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  scroll-snap-align: start;
}

.mini-listing img,
.mini-photo {
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.mini-photo {
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  background: linear-gradient(135deg, rgba(217, 199, 244, .95), rgba(99, 231, 255, .82));
  font-family: Fredoka, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.mini-meta {
  display: block;
  min-height: 74px;
  padding: 10px;
}

.mini-meta strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pwa-card {
  margin: 8px 0 26px;
  padding: 13px 14px;
}

.pwa-card .arr {
  color: var(--lavender);
  font-size: 20px;
}

.household-panel {
  display: grid;
  gap: 10px;
}

.home-row {
  min-height: 68px;
  padding: 12px 14px;
}

.home-row strong,
.pwa-card strong,
.ai-strip strong {
  font-family: Fredoka, sans-serif;
  font-size: 16px;
}

.home-row .arr {
  color: var(--lavender);
}

.home-row-icon.lavender {
  background: rgba(217, 199, 244, .16);
}

.home-row-icon.pink {
  background: rgba(255, 71, 119, .16);
}

.home-row-icon.yellow {
  background: rgba(255, 233, 52, .15);
}

.home-row-icon.mint {
  background: rgba(55, 242, 196, .15);
}

.home-row-icon.cyan {
  background: rgba(99, 231, 255, .16);
}

.install-steps {
  margin-top: 18px;
}

.account-security,
.admin-action-stack,
.admin-menu {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-security h2,
.admin-action-stack h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.logout-link {
  display: inline-flex;
  justify-content: center;
  padding: 20px 0;
  color: var(--ink-mute);
  font-weight: 800;
}

.admin-dashboard .back-header {
  margin-bottom: 16px;
}

.admin-metrics,
.grid.three.admin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-metrics .metric {
  align-items: center;
  justify-items: center;
  min-height: 72px;
  padding: 12px;
  text-align: center;
}

.admin-metrics .metric strong {
  font-size: 30px;
}

.admin-metrics .metric span {
  font-size: 12px;
}

.single-action-form {
  margin-top: 16px;
}

.detail-stack {
  display: grid;
  gap: 12px;
}

.detail-stack p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.detail-stack strong {
  color: var(--ink);
}

.detail-stack span {
  color: var(--ink-soft);
}

.back-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.back-header h1 {
  font-size: 32px;
}

.back-header p {
  margin: 4px 0 0;
  color: var(--ink-mute);
}

.back-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--lavender);
  font-weight: 900;
}

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

.manual-form .field span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.manual-form .field b {
  color: var(--pink);
}

.manual-form .field small {
  color: var(--ink-mute);
  font-weight: 500;
}

.manual-form .form-input,
.manual-form .form-textarea,
.manual-form .form-select {
  min-height: 50px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .055);
}

.manual-form .form-select:disabled {
  opacity: .5;
}

.photo-zone {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 24px 16px;
  border: 1px dashed rgba(217, 199, 244, .35);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  text-align: center;
}

.photo-zone .photo-icon {
  font-size: 26px;
}

.photo-zone strong {
  margin-top: 4px;
  font-family: Fredoka, sans-serif;
}

.photo-zone.has-file {
  border-style: solid;
  background: rgba(217, 199, 244, .12);
}

.ai-review-card {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
}

.ai-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(217, 199, 244, .24);
  border-radius: 18px;
  background: rgba(217, 199, 244, .1);
  text-align: center;
}

.ai-loading[hidden] {
  display: none;
}

.ai-loader-dot {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(217, 199, 244, .28);
  border-top-color: var(--lavender);
  border-radius: 50%;
  animation: ai-spin .8s linear infinite;
}

.ai-loading strong {
  font-family: Fredoka, sans-serif;
}

.ai-loading small {
  color: var(--ink-soft);
}

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

.ai-review-photo {
  width: 100%;
  max-height: 260px;
  border-radius: 22px;
  object-fit: cover;
}

.ai-result-header {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(217, 199, 244, .12);
}

.ai-result-header > span {
  font-size: 24px;
}

.ai-result-header strong {
  font-family: Fredoka, sans-serif;
  font-size: 19px;
}

.ai-result-header small {
  color: var(--ink-soft);
}

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

.status-field {
  max-width: 220px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.publications-page {
  display: grid;
  gap: 18px;
}

.publications-head {
  margin-bottom: 0;
}

.publications-section {
  display: grid;
  gap: 14px;
  padding: 18px 0 4px;
}

.publications-section h2 {
  margin: 0;
  font-size: 22px;
}

.publication-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.publication-tabs::-webkit-scrollbar {
  display: none;
}

.publication-tab {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.publication-tab.active {
  color: var(--ink);
  border-color: var(--lavender);
}

.publication-list {
  display: grid;
  gap: 10px;
}

.my-publication-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}

.publication-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(217, 199, 244, .14);
  font-size: 24px;
}

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

.gooddeal-thumb {
  background: rgba(55, 242, 196, .14);
}

.giveaway-thumb {
  background: rgba(255, 233, 52, .16);
}

.publication-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.publication-title {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.publication-body small {
  color: var(--ink-mute);
  font-size: 12px;
}

.status-pill {
  justify-self: start;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.status-published {
  color: var(--mint);
  background: rgba(55, 242, 196, .12);
}

.status-paused {
  color: var(--yellow);
  background: rgba(255, 233, 52, .12);
}

.status-archived {
  color: var(--ink-mute);
  background: rgba(255, 255, 255, .08);
}

.publication-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-menu-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.action-modal-open {
  overflow: hidden;
}

.action-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 14px 112px;
}

.action-modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop-button {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 3, 17, .68);
  backdrop-filter: blur(2px);
}

.action-modal {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 22px 18px 24px;
  border: 1px solid var(--border);
  border-radius: 32px 32px 24px 24px;
  background: linear-gradient(165deg, rgba(24, 22, 34, .98), rgba(16, 7, 25, .98));
  box-shadow: var(--shadow-card);
}

.action-modal h2 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 22px;
}

.modal-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.modal-action strong {
  display: block;
  font-family: Fredoka, sans-serif;
  font-size: 17px;
}

.modal-action small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
}

.modal-action.danger {
  border-color: rgba(255, 71, 119, .24);
}

.modal-action.danger strong {
  color: var(--pink);
}
