/* Layer 6 — Yajarchana storefront. Layout only; no third-party slogans or assets. */

* { box-sizing: border-box; }
html { overflow-y: scroll; }
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.quote, .ritual-name, .highlight {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.top-strip {
  background: var(--strip);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.top-strip b { color: #fff; font-weight: 600; }

.header {
  background: var(--header);
  color: var(--header-ink);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-mark {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: flex;
  flex-shrink: 0;
  border-radius: 50%;
}
.logo-mark img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #1a0b08;
}
.logo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 8, 6, 0.82);
  cursor: zoom-out;
}
.logo-lightbox[hidden] {
  display: none;
}
.logo-lightbox img {
  width: min(72vw, 420px);
  height: min(72vw, 420px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: #1a0b08;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-word .ritual-name {
  font-size: 34px;
  color: var(--gold-soft);
  line-height: 0.95;
}
.logo-word small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbb48a;
  font-family: var(--font);
  font-weight: 600;
}
.search {
  display: flex;
  background: #3a1c14;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(232, 213, 163, 0.25);
}
.search:focus-within { border-color: var(--gold); }
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 11px 16px;
  outline: none;
}
.search input::placeholder { color: #cbb48a; }
.search button {
  border: 0;
  background: var(--gold);
  color: #2b120c;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Phone bottom tabs — shown only under html.phone-ui (see mobile.css) */
.m-tabbar {
  display: none;
}
.icon-btn, .ghost-btn, .primary-btn, .saffron-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}
.icon-btn {
  background: transparent;
  color: var(--gold-soft);
  padding: 8px 12px;
  font-weight: 600;
}
.icon-btn:hover { color: #fff; }
button.icon-btn {
  font: inherit;
  font-weight: 600;
}
.signout-link {
  margin-top: 12px;
  width: 100%;
  color: var(--maroon);
  border-color: var(--border);
}
.account-page-title {
  font-size: 42px;
  color: var(--maroon);
  margin: 0;
}
.account-hub-head {
  display: none;
}
.account-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.account-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.account-hub-card__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-hub-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon-deep, var(--maroon));
  line-height: 1.25;
}
.account-hub-card--due {
  border-color: rgba(196, 92, 38, 0.45);
  background: #fff6ec;
}
.account-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-order-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.account-order-card__main {
  min-width: 0;
  flex: 1;
}
.account-order-card__act {
  flex: 0 0 auto;
}
.account-order-card__act .saffron-btn,
.account-order-card__act .ghost-btn {
  min-height: 36px;
  padding: 6px 12px;
  white-space: nowrap;
}
.dash-subnav,
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.dash-subnav a,
.ops-tabs a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
}
.dash-subnav a:hover,
.ops-tabs a:hover {
  background: #faf7f2;
}
.dash-subnav a.active,
.ops-tabs a.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.nav-cats-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 8px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nav-cats-scroll {
  flex: 0 0 auto;
  align-self: center;
  user-select: none;
  padding: 8px 10px;
  color: #d7c4a4;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: ew-resize;
  line-height: 1;
}
.nav-cats-scroll:not(.is-disabled):hover {
  color: var(--gold);
}
.nav-cats-scroll.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.nav-cats {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-cats::-webkit-scrollbar {
  display: none;
}
.nav-cats a, .nav-cats button {
  background: none;
  border: 0;
  padding: 8px 12px;
  white-space: nowrap;
  color: #d7c4a4;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav-cats a.active, .nav-cats a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.banner {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 12px 16px;
  background: #fff4e5;
  border: 1px solid #e8c48a;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.banner.retry { background: #fde8e8; border-color: #e8a0a0; }
.banner.ok { background: #e8f4ea; border-color: #9ccc9c; }
.field-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 18px 48px; }
.empty { text-align: center; padding: 48px 16px; }
.empty h2 { font-family: var(--display); font-size: 42px; margin: 0 0 8px; color: var(--maroon); }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 162, 39, 0.28), transparent 42%),
    linear-gradient(120deg, #2b120c 0%, #6b1d1d 46%, #3a1010 100%);
  color: #f7ecda;
  padding: 56px 40px;
  min-height: 340px;
  box-shadow: var(--shadow);
}
.hero .eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  margin: 10px 0 8px;
  font-weight: 400;
}
.hero .lede { max-width: 540px; color: #ead9bd; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-ornament {
  position: absolute;
  right: 36px;
  top: 36px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-ornament::after {
  content: "";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #ffe9a8 0 18%, transparent 19%),
    conic-gradient(from 20deg, #c9a227, #6b1d1d, #c45c26, #c9a227);
}

.primary-btn, .saffron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 700;
  text-align: center;
}
.primary-btn {
  background: var(--gold);
  color: #2b120c;
}
.primary-btn:hover { filter: brightness(1.05); }
.primary-btn:disabled, .saffron-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.saffron-btn { background: var(--saffron); color: #fff; }
.saffron-btn:hover { background: var(--saffron-hover); }
.ghost-btn {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 10px 18px;
}
.hero .ghost-btn { color: var(--gold-soft); border-color: rgba(232, 213, 163, 0.5); }

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 36px 0 16px;
}
.section-h h2 {
  font-family: var(--display);
  font-size: 40px;
  margin: 0;
  color: var(--maroon);
}
.section-h a { color: var(--saffron); font-weight: 600; }

.cat-marquee {
  position: relative;
  margin: 0 -18px 8px;
  width: calc(100% + 36px);
}
.cat-marquee::before,
.cat-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.cat-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 241, 230, 0.65), transparent);
}
.cat-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 241, 230, 0.65), transparent);
}
.cat-marquee__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.cat-marquee__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.cat-marquee__track {
  display: flex;
  width: max-content;
}
.cat-marquee__set {
  display: flex;
  gap: 14px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.cat-marquee .cat-tile {
  flex: 0 0 168px;
  width: 168px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.cat-marquee .cat-tile:hover,
.cat-marquee .cat-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  outline: none;
}

.cat-grid, .fest-grid, .svc-grid {
  display: grid;
  gap: 16px;
}
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.fest-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.svc-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.cat-tile, .fest-card, .svc-card, .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-tile {
  padding: 18px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-tile .art {
  height: 72px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 34px;
}
.cat-tile .art.art--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.cat-tile .art.art--photo .photo-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cat-tile .cat-name { font-weight: 600; }
.cat-tile .cat-time {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3e6d0;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.fest-card { padding: 18px; }
.fest-card .when { color: var(--muted); font-size: 13px; }
.fest-card h3 { margin: 6px 0; font-family: var(--display); font-size: 30px; color: var(--maroon); }

.svc-card { overflow: hidden; display: flex; flex-direction: column; }
.svc-card > .svc-art {
  margin: 14px 16px 0;
  border-radius: 12px;
  width: auto;
}
.svc-art {
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  position: relative;
}
.svc-art .diya {
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 30%, #ffe9a8, #c45c26 55%, #6b1d1d);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.45);
}
.svc-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; color: var(--maroon-deep); line-height: 1.15; }
.svc-card .note { color: var(--muted); font-size: 14px; flex: 1; }
.svc-meta { display: flex; justify-content: space-between; margin-top: 12px; align-items: baseline; }
.price { font-weight: 700; color: var(--maroon); }
.chip {
  display: inline-block;
  background: #f3e6d0;
  color: var(--maroon);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 4px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filters select, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.filters select { width: auto; min-width: 160px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 20px; }
.pkg {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.pkg.selected { border-color: var(--gold); background: #fff8e8; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }

.footer {
  background: #1c0c08;
  color: #d7c4a4;
  padding: 40px 18px 20px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer h4 { color: var(--gold); font-family: var(--display); font-size: 28px; margin: 0 0 8px; font-weight: 400; }
.footer a, .footer span { display: block; padding: 3px 0; }
.fine { max-width: 1180px; margin: 18px auto 0; font-size: 12px; color: #9a8468; padding: 0 18px 8px; }

.catalog-row { margin-top: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ghost-btn.danger { color: var(--maroon); border-color: rgba(122, 32, 22, 0.35); }
.danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(122, 32, 22, 0.2);
}
.users-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.users-desk-actions .primary-btn,
.users-desk-actions .ghost-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
  box-shadow: none;
}
.users-desk-actions .primary-btn:hover,
.users-desk-actions .ghost-btn:hover {
  background: #faf7f2;
}
.users-desk-actions .primary-btn.active,
.users-desk-actions .ghost-btn.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.users-desk-body { max-width: 720px; }
.users-desk-body .panel { margin-bottom: 14px; }
.catalog-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.catalog-mode-bar a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.catalog-mode-bar a:hover { background: #faf7f2; }
.catalog-mode-bar a.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.roles-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}
.roles-desk-side { min-width: 0; }
.roles-desk-scroll {
  position: relative;
}
.roles-desk-list {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 6px;
  box-shadow: var(--shadow);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.roles-desk-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.roles-desk-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 2;
  pointer-events: auto;
}
.roles-desk-edge--top {
  top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
}
.roles-desk-edge--bottom {
  bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(255,255,255,0.55), transparent);
}
.roles-desk-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}
.roles-desk-item:hover { background: rgba(74, 28, 28, 0.05); }
.roles-desk-item.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.roles-desk-item.active .hint { color: rgba(255, 255, 255, 0.75); }
.roles-desk-item-name {
  font-weight: 600;
  font-size: 14px;
}
.roles-desk-main { min-width: 0; }
.roles-desk-create { max-width: 720px; }
.perm-grid {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.perm-check { align-items: flex-start; }
.perm-check code { font-size: 12px; }
.catalog-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}
.catalog-inline input { flex: 1; min-width: 160px; }

.desk-frame { display: contents; }
.desk-rail[hidden] { display: none !important; }
.desk-col { min-width: 0; }

/* Staff desk: same storefront chrome as home; rail keeps the dark workspace look */
body.desk-mode .desk-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}
body.desk-mode .desk-rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 88px;
  min-height: calc(100vh - 160px);
  background: #1a1412;
  color: #efe7dc;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px 16px 24px;
}
body.desk-mode .desk-rail .dash-kicker { color: #b9a48c; }
body.desk-mode .desk-rail .dash-side-title {
  color: #f4e6c8;
  margin-bottom: 18px;
  font-size: 28px;
}
body.desk-mode .desk-rail .dash-nav a {
  color: #d7c4a4;
}
body.desk-mode .desk-rail .dash-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.desk-mode .desk-rail .dash-nav a.active {
  background: #fff;
  color: #1a1412;
}
body.desk-mode .desk-rail .dash-who {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #efe7dc;
}
body.desk-mode .desk-rail .hint,
body.desk-mode .desk-rail .dash-stat-label { color: #b9a48c; }
body.desk-mode .desk-rail .signout-link {
  color: #f4e6c8;
  border-color: rgba(232, 213, 163, 0.35);
}
body.desk-mode .desk-col {
  background: transparent;
  min-width: 0;
}
body.desk-mode .wrap,
body.desk-mode .dash {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dash {
  max-width: 1180px;
  margin: 0;
  padding: 24px 28px 48px;
  display: block;
}
.dash-side {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
}
.dash-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-side-title {
  margin: 4px 0 16px;
  font-size: 28px;
  color: var(--maroon);
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}
.dash-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}
.dash-nav a:hover { background: var(--cream); }
.dash-nav a.active {
  background: var(--maroon);
  color: #fff;
}
.dash-who {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.dash-who p { margin: 0 0 4px; }
.dash-head { margin-bottom: 18px; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
}
.dash-stat-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-stat-value {
  margin: 6px 0 4px;
  font-size: 32px;
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.1;
}
.dash-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.dash-panel-head h2 { margin: 0; font-size: 18px; }
.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--border);
}
.dash-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table a { color: var(--maroon); }
.dash-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.dash-tool { margin: 0; }

.account-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.account-dash-side {
  position: sticky;
  top: 88px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
}
.account-dash-main { min-width: 0; }
.account-dash-nav a.account-store-link { margin-top: 8px; opacity: 0.85; }
.account-guest { max-width: 560px; margin: 0 auto; padding: 24px 20px; }
.auth-hub { padding: 28px 26px 22px; }
.auth-hub__head { margin-bottom: 20px; }
.auth-hub__title {
  font-size: 40px;
  margin: 0;
  color: var(--maroon);
}
.svc-detail__title {
  font-size: 48px;
  margin: 16px 0 8px;
  color: var(--maroon);
}
.panel-title {
  font-size: 32px;
  margin-top: 0;
}
.panel--spaced { margin-top: 16px; }
.book-page__title {
  font-size: 46px;
  color: var(--maroon);
  margin: 0 0 8px;
}
.catalog-more {
  text-align: center;
  margin-top: 24px;
}
.auth-hub__audience,
.auth-hub__flow {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.auth-hub__tab,
.auth-hub__flow-btn {
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.auth-hub__tab.active,
.auth-hub__flow-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #f7ecda;
}
.auth-hub__social {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-hub__social-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--card);
  text-align: left;
}
.auth-hub__social-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.auth-hub__social-btn--google { border-color: #4285f4; color: #1a3d7c; }
.auth-hub__social-btn--facebook { border-color: #1877f2; color: #0d3d7a; }
.auth-hub__social-note { margin: 0 0 8px; font-size: 13px; }
.auth-hub__or {
  text-align: center;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-hub__or span {
  display: inline-block;
  padding: 0 12px;
  background: var(--card);
  position: relative;
}
.auth-hub__or::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: -0.65em;
}
.auth-hub__form .field { margin-bottom: 12px; }
.auth-hub__form .primary-btn,
.auth-hub__form .saffron-btn,
.auth-hub__form .ghost-btn { margin-top: 8px; width: 100%; }
.auth-hub__form .linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--maroon);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}
.auth-hub__dev {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
}
.auth-hub__dev summary { cursor: pointer; color: var(--muted); font-weight: 600; }

.svc-art--photo,
.art--photo {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(165deg, var(--cream) 0%, var(--photo-frame) 45%, var(--photo-frame-deep) 100%);
}

/* Scale the full image to fit any frame — never crop (object-fit: contain). */
.photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-card > .svc-art.svc-art--photo {
  padding: 8px;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.photo-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.svc-art.svc-art--photo {
  display: flex;
}
.cat-tile .art.art--photo {
  display: flex;
}

.svc-art--photo img { border-radius: inherit; }

.svc-art.svc-art--detail.photo-frame {
  display: block;
  width: 100%;
  max-width: min(100%, 560px);
  height: auto;
  border-radius: var(--radius);
}
.svc-art--detail .photo-fit {
  width: 100%;
  height: auto;
  max-height: min(75vh, 720px);
  object-fit: contain;
}

.media-block {
  margin: 12px 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.media-block--compact { margin: 8px 0 4px; }
.media-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.media-preview--compact {
  max-width: 200px;
  aspect-ratio: 4 / 3;
}
.media-preview--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.media-upload-btn { cursor: pointer; margin-right: 8px; }
.media-hint { margin: 6px 0 0; font-size: 12px; }
.media-video { margin: 16px 0; padding: 16px; }

.location-picker { margin: 12px 0 18px; }
.location-picker__gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.location-picker.is-map-open .location-picker__gate {
  display: none;
}
.location-picker__gate-hint {
  flex: 1 1 100%;
  margin: 0;
}
.location-picker__gps-status.is-error { color: var(--maroon, #7a2016); }
.location-picker__map-panel[hidden] { display: none !important; }
.location-picker__search-wrap {
  position: relative;
  margin-bottom: 10px;
  z-index: 5;
}
.location-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.location-picker__search {
  flex: 1 1 180px;
  min-width: 140px;
}
.location-picker__suggest {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  position: absolute;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--panel, #fffaf3);
  border: 1px solid var(--border, #d9cbb8);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(40, 20, 10, 0.12);
  z-index: 6;
}
.location-picker__suggest-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #2a1a12);
}
.location-picker__suggest-item:hover,
.location-picker__suggest-item.is-active {
  background: var(--cream, #f3ebe0);
}
.location-picker__suggest-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted, #6b5a4c);
}
.location-picker__map-shell {
  position: relative;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #efe6d6;
  z-index: 1;
  touch-action: none;
}
.location-picker__map {
  height: 260px;
  width: 100%;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}
.location-picker__map-shell.is-moving .location-picker__map {
  cursor: grabbing;
}
.location-picker__center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -28px 0 0 -14px;
  z-index: 500;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(40, 20, 10, 0.35));
  transition: transform 0.12s ease;
}
.location-picker__map-shell.is-moving .location-picker__center-pin {
  transform: translateY(-6px);
}
.location-picker__center-pin-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #c45c26;
  border: 2px solid #8b1e1e;
}
.location-picker__address-field {
  margin: 0 0 12px;
}
.location-picker__coords { margin-top: 6px; }

.bulk-drop {
  margin-top: 16px;
  padding: 28px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}
.bulk-drop:focus,
.bulk-drop.is-over {
  border-color: var(--maroon);
  background: var(--cream);
}
.bulk-select-btn { display: inline-block; margin-top: 8px; cursor: pointer; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bulk-table th, .bulk-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bulk-thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block; }
.bulk-error { color: var(--maroon); font-size: 13px; max-width: 280px; }
.bulk-status--pending { background: #efe6d6; }
.bulk-status--uploading { background: #f3d9b0; }
.bulk-status--uploaded { background: #d7ead4; }
.bulk-status--failed { background: #f3d0c8; }
.bulk-summary p { margin: 4px 0; }

.fest-card-art {
  min-height: 100px;
  margin: -18px -18px 12px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(165deg, var(--cream) 0%, var(--photo-frame) 45%, var(--photo-frame-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.fest-card-art .photo-fit {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.book-desk-group { margin-top: 16px; }
.book-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.book-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted, #6b5b4f);
  text-align: center;
}
.book-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.book-cal-cell {
  min-height: 88px;
  border: 1px solid rgba(90, 40, 30, 0.12);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 252, 247, 0.7);
}
.book-cal-cell.is-empty { background: transparent; border-color: transparent; }
.book-cal-day {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon);
}
.book-cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-cal-list a {
  color: var(--maroon);
  font-size: 12px;
  font-weight: 600;
}
.book-cal-list .hint { display: block; font-size: 11px; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr; }
  .hero { padding: 36px 22px; }
  .hero-ornament { display: none; }
  .cat-marquee { margin: 0 -18px 4px; }
  .cat-marquee .cat-tile { flex-basis: 148px; width: 148px; }
  .footer-inner, .two { grid-template-columns: 1fr; }
  .logo-word .ritual-name { font-size: 28px; }
  .dash, .dash-stats, .dash-tools-grid { grid-template-columns: 1fr; }
  .account-dash { grid-template-columns: 1fr; padding: 16px; }
  .account-dash-side { position: static; }
  .roles-desk { grid-template-columns: 1fr; }
  .roles-desk-list { max-height: 240px; }
  body.desk-mode .desk-frame {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  body.desk-mode .desk-rail {
    position: static;
    min-height: 0;
  }
  body.desk-mode .desk-rail .dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}
