:root {
  --ink: #1d1a16;
  --muted: #70695f;
  --line: #e6ded0;
  --paper: #fbf8f1;
  --panel: #fffdf8;
  --surface: #fffdf8;
  --surface-soft: #fbf8f1;
  --field: #ffffff;
  --tab: #f4eee4;
  --danger: #8f3223;
  --moss: #58643a;
  --moss-dark: #38452d;
  --clay: #a6532d;
  --heart: #5f584f;
  --gold: #c8943f;
  --topbar-height: 68px;
  --admin-toolbar-height: 34px;
  --admin-subtoolbar-height: 34px;
  --admin-sidebar-width: 220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--paper); max-width: 100%; overflow-x: hidden; }
html[data-mode="night"] {
  background: #070907;
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
}
main,
.topbar,
.subnav,
.grid,
.filters {
  max-width: 100%;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  background: var(--field);
  color: var(--ink);
  border-color: var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(29, 26, 22, .12);
  background: rgba(251, 248, 241, .9);
  backdrop-filter: blur(14px);
}
.admin-logged:not(.admin-shell) .topbar {
  top: var(--admin-toolbar-height);
}
.subnav {
  position: sticky;
  top: 68px;
  z-index: 19;
  display: flex;
  gap: 18px;
  min-height: 38px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(29, 26, 22, .1);
  background: #f4eee4;
  color: var(--moss-dark);
  font-size: 14px;
  font-weight: 650;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.admin-logged:not(.admin-shell) .subnav {
  top: calc(68px + var(--admin-toolbar-height));
}
.subnav::-webkit-scrollbar { display: none; }
.subnav { scrollbar-width: none; }
.subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 9px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.subnav .promo-link { white-space: nowrap; }
.subnav a:hover {
  background: rgba(49, 71, 58, .08);
  color: var(--ink);
}
.subnav .promo-link {
  border: 1px solid rgba(166, 83, 45, .18);
  background: rgba(166, 83, 45, .08);
  color: #7a442f;
}
.subnav .promo-link:hover {
  background: rgba(166, 83, 45, .14);
  box-shadow: inset 0 0 0 1px rgba(166, 83, 45, .08);
}

.brand, .nav, .hero-actions, .buy-row, .chips, .summary-line {
  display: flex;
  align-items: center;
}

.brand { gap: 10px; color: var(--moss-dark); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(29, 26, 22, .08);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 150px) minmax(260px, 1fr) 58px;
  flex: 1 1 680px;
  max-width: 760px;
  margin: 0 22px;
}
.top-search.article-search {
  grid-template-columns: minmax(260px, 1fr) 58px;
}
.top-search.article-search input {
  border-radius: 6px 0 0 6px;
}
.top-search select, .top-search input {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 12px;
}
.top-search select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background-color: #f4eee4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  color: var(--muted);
  cursor: pointer;
  padding-right: 48px;
  background-position: right 18px center;
}
.top-search select::-ms-expand { display: none; }
.search-suggest-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: 150px;
  right: 58px;
  z-index: 45;
  display: none;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(29, 26, 22, .16);
  padding: 6px 0;
}
.top-search.suggest-open .search-suggest-panel {
  display: block;
}
.top-search:not(:has(select)) .search-suggest-panel {
  left: 0;
}
.search-suggest-panel button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 7px 12px;
  text-align: left;
}
.search-suggest-panel button[hidden] {
  display: none !important;
}
.search-suggest-panel button:hover,
.search-suggest-panel button.active {
  background: #f5f5f5;
}
.search-suggest-panel span {
  color: var(--muted);
}
.top-search input {
  border-right: 0;
  border-radius: 0;
}
.top-search button {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--moss);
  color: white;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.top-search button:hover { background: var(--moss); box-shadow: none; color: var(--paper); }
.top-search button:active, .button:active, .buy-row button:not(.wishlist-button):active { transform: translateY(1px); }
.top-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.top-search .search-suggest-panel button {
  display: flex;
  place-items: initial;
  min-height: 38px;
  border-radius: 0;
  background: white;
  color: #39342e;
  box-shadow: none;
  font-weight: 500;
}
.top-search .search-suggest-panel button:hover,
.top-search .search-suggest-panel button.active {
  background: #f3f3f3;
  color: #111;
}
.top-search .search-suggest-panel button:active {
  transform: none;
}

.nav { gap: 8px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.cart-hover { position: relative; display: inline-flex; }
.account-hover { position: relative; display: inline-flex; }
.cart-hover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: min(360px, 92vw);
  height: 12px;
}
.cart-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, 92vw);
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(29, 26, 22, .18);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.cart-hover:hover .cart-popover, .cart-hover:focus-within .cart-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: none;
  width: min(360px, 92vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(29, 26, 22, .16);
  padding: 14px;
  color: var(--ink);
}
.account-popover::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  width: 96px;
  height: 12px;
}
.account-hover:hover .account-popover,
.account-hover:focus-within .account-popover { display: grid; gap: 10px; }
.account-hover.logged-in .account-popover { display: none; }
.account-popover .folder-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-popover .folder-tabs button {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}
.auth-forgot-link {
  justify-self: start;
  width: auto;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.auth-forgot-link:hover {
  background: transparent;
  color: var(--ink);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
}
.nav a:hover { background: rgba(49, 71, 58, .08); color: var(--ink); }
.lang-toggle, .theme-toggle {
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(112, 105, 95, .22);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease;
}
.lang-toggle:hover, .theme-toggle:hover { background: rgba(49, 71, 58, .08); color: var(--ink); }
.account-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.cart-count, .wishlist-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--moss);
  color: white;
  font-size: 12px;
  line-height: 1;
}

main { width: min(1360px, calc(100% - 32px)); margin: 0 auto; }
body.admin-shell main {
  width: auto;
  margin: 0;
  padding-left: var(--admin-sidebar-width);
  padding-top: var(--admin-toolbar-height);
}
body.admin-shell:has(.admin-subtoolbar) main {
  padding-top: calc(var(--admin-toolbar-height) + var(--admin-subtoolbar-height));
}
body.admin-shell:not(.admin-sidebar-open) main {
  padding-left: 0;
}
body.admin-shell.admin-sidebar-open main {
  padding-left: var(--admin-sidebar-width);
}
.admin-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0;
  background: #1f1d19;
  color: #f8f0e4;
  font-size: 13px;
  overflow: visible;
}
.admin-toolbar a {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 5px 9px;
}
.admin-toolbar a:hover { background: rgba(255,255,255,.12); }
.admin-sidebar-toggle {
  display: inline-grid;
  gap: 3px;
  width: 28px;
  height: 28px;
  place-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8f0e4;
  cursor: pointer;
}
.sidebar-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
}
.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  background: currentColor;
  opacity: .78;
}
.sidebar-toggle-icon::before {
  left: 5px;
  width: 1.5px;
}
.sidebar-toggle-icon::after {
  left: 2.5px;
  width: 1.5px;
}
.sidebar-count,
.tab-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #8f3223;
  color: white;
  font-size: 11px;
  font-weight: 400;
}
.admin-refresh-button,
.admin-home-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.admin-home-button { margin-left: auto; }
.admin-home-button.text-home {
  width: auto;
  padding: 5px 9px;
}
.admin-refresh-button svg,
.admin-home-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-refresh-button + .admin-user-menu { margin-left: 0; }
.admin-refresh-button:hover,
.admin-refresh-button:focus-visible,
.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  outline: none;
}
.admin-user-menu {
  position: relative;
  display: inline-grid;
  margin-left: auto;
}
.admin-user-menu > span {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 90;
  display: none;
  min-width: 160px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0 0 6px 6px;
  background: #1f1d19;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.admin-user-menu:hover > span,
.admin-user-menu:focus-within > span { display: grid; }
.admin-user-menu > span a { padding: 8px 10px; }
.admin-face, .admin-order-link {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.admin-face svg, .admin-order-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-order-link { gap: 5px; display: inline-flex; }
.admin-order-link span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f8f0e4;
  color: #1f1d19;
  font-size: 11px;
  font-weight: 800;
}
.admin-create-menu {
  position: relative;
  flex: 0 0 auto;
}
.admin-create-menu > button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: inherit;
  padding: 5px 10px;
  cursor: pointer;
}
.admin-create-menu > span {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  display: none;
  min-width: 128px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #1f1d19;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.admin-create-menu::after {
  content: "";
  position: absolute;
  z-index: 79;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 10px;
}
.admin-create-menu:hover > span,
.admin-create-menu:focus-within > span { display: grid; }
.admin-create-menu > span a { padding: 7px 9px; }
.admin-create-menu.open > span { display: grid; }
.admin-subtoolbar {
  grid-column: 1 / -1;
  position: fixed;
  top: var(--admin-toolbar-height);
  left: 0;
  right: 0;
  z-index: 44;
  display: flex;
  gap: 0;
  min-height: 34px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #171612;
  color: rgba(248, 240, 228, .72);
  font-size: 13px;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.admin-shell .admin-page {
  padding-top: 0;
}
.admin-sidebar {
  position: fixed;
  left: 0;
  top: calc(var(--topbar-height) + var(--admin-toolbar-height));
  z-index: 45;
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: var(--admin-sidebar-width);
  min-height: calc(100vh - (var(--topbar-height) + var(--admin-toolbar-height)));
  height: calc(100vh - (var(--topbar-height) + var(--admin-toolbar-height)));
  align-content: start;
  padding: 14px;
  border-right: 1px solid rgba(255,255,255,.12);
  background: #1f1d19;
  color: #f8f0e4;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 10px 9px 20px;
}
.admin-sidebar a > span {
  min-width: 0;
}
.sidebar-add {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  text-align: center;
  line-height: 20px;
  font-weight: 400;
}
.admin-sidebar a:hover .sidebar-add { display: inline-block; }
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.12);
}
.admin-shell .admin-grid,
body.admin-sidebar-open .admin-grid {
  grid-template-columns: minmax(0, 1fr);
}
body.admin-shell:not(.admin-sidebar-open) .admin-sidebar {
  display: none;
}
body.admin-shell {
  --topbar-height: 0px;
}
body.admin-logged:not(.admin-shell) {
  --topbar-height: 0px;
}
body.admin-sidebar-open .admin-sidebar {
  display: grid;
  grid-row: 1 / span 30;
  grid-column: 1;
}
body.admin-sidebar-open .admin-subtoolbar {
  left: var(--admin-sidebar-width);
  right: 0;
}
body.admin-shell:not(.admin-sidebar-open) .admin-subtoolbar {
  left: 0;
  right: 0;
}
@media (max-width: 1024px) and (min-width: 761px) {
  body.admin-shell {
    --admin-sidebar-width: 190px;
  }
}
.admin-subtoolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0 12px;
  cursor: pointer;
}
.media-view-buttons button, .media-view-buttons select {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f4eee4;
  color: var(--moss-dark);
  padding: 10px 14px;
  cursor: pointer;
  transform: translateY(1px);
}
.admin-kpis, .admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.admin-kpis > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--paper) 92%, white);
}
.admin-kpis strong, .admin-kpis small {
  display: block;
}
.feature-group {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.feature-group legend {
  padding: 0 6px;
  font-weight: 700;
}
.admin-subtoolbar a:hover {
  background: rgba(255,255,255,.1);
}
.editor-tools button:hover, .media-view-buttons button:hover {
  background: var(--panel);
}
.admin-subtoolbar a.active {
  background: rgba(255,255,255,.1);
  color: #f8f0e4;
  box-shadow: inset 0 3px 0 var(--clay);
}
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.admin-subtabs a {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f4eee4;
  color: var(--moss-dark);
  padding: 9px 12px;
  font-weight: 400;
}
.admin-subtabs a.active,
.admin-subtabs a:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--moss);
}
.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e8dfd0;
  padding: 3px;
}
.segmented-control input {
  position: absolute;
  opacity: 0;
}
.segmented-control label {
  display: grid;
  place-items: center;
  border-radius: 999px;
  min-height: 30px;
  color: var(--moss-dark);
  cursor: pointer;
}
.segmented-control input:checked + label {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(0,0,0,.12);
}
.skin-preview-row {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.skin-preview-row i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 50%;
  background: var(--swatch);
}
.product-form label > .skin-preview-row { display: none; }
.skin-select {
  position: relative;
  display: grid;
}
.skin-select > button,
.skin-select > span button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.skin-select > span {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: none;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.skin-select.open > span { display: grid; }
body.admin-night .admin-panel,
body.admin-night .admin-login {
  border-color: rgba(245, 237, 223, .16);
  background: #1f211f;
  color: #f5eddf;
}
body.admin-night .admin-panel input,
body.admin-night .admin-panel textarea,
body.admin-night .admin-panel select,
body.admin-night .tag-editor,
body.admin-night .skin-select > button,
body.admin-night .skin-select > span,
body.admin-night .module-table,
body.admin-night .module-control-list,
body.admin-night .module-detail,
body.admin-night .media-library figure,
body.admin-night .media-detail-panel,
body.admin-night .editor-preview {
  background: #151716;
  color: #f5eddf;
  border-color: rgba(245, 237, 223, .18);
}
body.admin-night .media-library figure[data-media-tiny="1"] .media-stack {
  background: #101211;
}
body.admin-night .admin-subtabs a,
body.admin-night .media-view-buttons button,
body.admin-night .media-view-buttons select {
  background: #181a18;
  color: #f5eddf;
  border-color: rgba(245, 237, 223, .18);
}
body.admin-night .admin-subtabs a.active,
body.admin-night .admin-subtabs a:hover,
body.admin-night .notice,
body.admin-night .admin-kpis > div {
  background: #151716;
  color: #f5eddf;
  border-color: rgba(245, 237, 223, .18);
}
body.admin-night .button.ghost,
body.admin-night .compact-button,
body.admin-night .text-action {
  color: #f5eddf;
  box-shadow: inset 0 0 0 1px rgba(245, 237, 223, .18);
}
body[data-mode="night"].admin-shell .admin-panel,
body[data-mode="night"].admin-shell .admin-login,
body[data-mode="night"].admin-shell .module-table,
body[data-mode="night"].admin-shell .module-control-list,
body[data-mode="night"].admin-shell .module-detail,
body[data-mode="night"].admin-shell .media-library figure,
body[data-mode="night"].admin-shell .media-detail-panel,
body[data-mode="night"].admin-shell .editor-preview,
body[data-mode="night"].admin-shell .notice,
body[data-mode="night"].admin-shell .admin-kpis > div {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 84%, var(--paper));
  color: var(--ink);
}
body[data-mode="night"].admin-shell .media-library figure[data-media-tiny="1"] .media-stack {
  background: color-mix(in srgb, var(--paper) 82%, black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(78vh - 138px);
  padding: 48px 0 36px;
}

.eyebrow, .category {
  margin: 0;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.category a { color: inherit; }

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 500;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions { gap: 12px; margin-top: 30px; }
.button, .search button, .buy-row button:not(.wishlist-button) {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:hover, .search button:hover, .buy-row button:not(.wishlist-button):hover {
  background: var(--moss);
  color: var(--paper);
  box-shadow: none;
}
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: color-mix(in srgb, var(--moss) 10%, var(--panel)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button:disabled,
.button[disabled],
.search button:disabled {
  cursor: not-allowed;
  opacity: .6;
  background: color-mix(in srgb, var(--field) 84%, var(--panel));
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
body[data-mode="day"] .button:hover,
body[data-mode="day"] .search button:hover,
body[data-mode="day"] .buy-row button:not(.wishlist-button):hover,
body[data-mode="day"] .fascinata-actions .button:hover {
  box-shadow: none;
}
.button.full { width: 100%; margin-top: 18px; }
.button.center { display: block; text-align: center; }
.text-action {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(49,71,58,.92), rgba(29,26,22,.78)),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: 0 30px 80px rgba(29, 26, 22, .22);
}
.hero-art span {
  position: absolute;
  border: 1px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}
.hero-art span:nth-child(1) { width: 180px; height: 180px; left: 70px; top: 70px; }
.hero-art span:nth-child(2) { width: 90px; height: 90px; right: 88px; bottom: 112px; }
.hero-art span:nth-child(3) { width: 260px; height: 260px; right: -80px; top: 170px; }

.filters {
  display: grid;
  gap: 18px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
}
.search, .quick-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.quick-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.customize-panel .admin-subtabs {
  display: none;
}
.search input, .quick-filters select, .catalog-sort-select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 13px 14px;
}
.catalog-sort-select {
  min-height: 42px;
  background: var(--panel);
  width: 150px;
  flex: 0 0 150px;
}
.blog-filters {
  grid-template-columns: repeat(auto-fit, minmax(190px, max-content));
  align-items: end;
  margin-bottom: 12px;
}
.blog-filters label {
  display: grid;
  gap: 5px;
}
.filter-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  width: 132px;
  min-width: 132px;
  flex: 0 0 132px;
}
.filter-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.filter-accordion summary::-webkit-details-marker { display: none; }
.filter-accordion summary::after { content: none; }
.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 0;
  min-width: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 10px;
  opacity: 0;
  overflow: hidden;
  transition: max-height .18s ease, opacity .18s ease, padding .18s ease;
  transform-origin: top;
}
.filter-accordion[open] .filter-checks {
  max-height: 260px;
  padding: 10px;
  opacity: 1;
}
.filter-sort span {
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.filter-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.1;
}
.filter-checks input { accent-color: var(--moss); }
.filter-checks label:has(input:checked) {
  border-color: var(--moss);
  background: color-mix(in srgb, var(--moss) 10%, white);
  color: var(--moss-dark);
}
.color-filter-checks i,
.active-filter-pills i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(29,26,22,.18);
  border-radius: 50%;
  background: var(--swatch);
}
.filter-sort {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}
.filter-sort select {
  min-height: 35px;
  padding: 8px 10px;
}
.catalog-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}
.active-filter-pills {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 7px;
}
.active-filter-pills a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 5px 10px;
}
.active-filter-pills b {
  font-weight: 400;
  color: var(--clay);
}
.compact-filter {
  flex: 0 1 150px;
}
.compact-sort {
  width: auto;
  min-width: 190px;
}
.filter-reset {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 11px;
  color: var(--moss-dark);
}
.chips { gap: 8px; flex-wrap: wrap; }
.chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.chips a.active { border-color: var(--ink); color: var(--ink); }
.chips a:hover { background: rgba(49, 71, 58, .08); border-color: rgba(49, 71, 58, .22); color: var(--ink); }
.chips span { color: var(--clay); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 70px;
  max-width: 100%;
}
.compact-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-carousel {
  display: grid;
  gap: 14px;
  padding: 18px 0 28px;
  max-width: 100%;
}
.product-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  max-width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -webkit-user-drag: none;
}
.product-rail img,
.related-track img,
.cluster-strip img,
.product-thumbs img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail .product {
  flex: 0 0 min(216px, 72vw);
  scroll-snap-align: none;
}
.carousel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-rail.grabbing {
  cursor: grabbing;
}
.product-rail.grabbing .product {
  cursor: grabbing;
}
.cluster-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scrollbar-width: none;
  max-width: 100%;
}
.cluster-strip::-webkit-scrollbar { display: none; }
.cluster-card {
  flex: 0 0 min(330px, 82vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}
.cluster-card small {
  display: block;
  margin-bottom: 2px;
  color: var(--clay);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cluster-card strong { display: block; color: var(--moss-dark); }
.cluster-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cluster-card a, .cluster-card button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.cluster-card button { background: rgba(88, 100, 58, .08); color: var(--moss-dark); }
.cluster-card button.active, .cluster-card button[aria-pressed="true"] {
  border-color: var(--moss);
  background: var(--moss);
  color: white;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.collection-card {
  flex: none;
  grid-template-columns: 108px minmax(0, 1fr);
}
.collection-card-image {
  grid-row: span 2;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #e9dfcf;
}
.collection-card-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.followed-card {
  flex: 0 0 min(260px, 72vw);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
  color: var(--ink);
}
.followed-card img, .followed-line img {
  width: 74px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  background: #e9dfcf;
}
.followed-card small, .followed-line small {
  display: block;
  color: var(--clay);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.followed-card strong, .followed-line strong { color: var(--moss-dark); }
.followed-line a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.catalogue-hidden { display: none; }
.show-more {
  display: block;
  margin: -42px auto 70px;
}
.catalog-end-dot {
  display: block;
  margin: -28px auto 56px;
  color: var(--muted);
  text-align: center;
  font-size: 22px;
  line-height: 1;
}
.catalog-end-dot[hidden] { display: none; }
.account-sort-filter {
  justify-content: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--panel) 86%, var(--paper));
}
.account-sort-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-sort-filter select {
  width: auto;
  min-width: 120px;
  background: var(--field);
  color: var(--ink);
}
.stats-list {
  display: grid;
  gap: 10px;
}
.stats-list article {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.stats-list article div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stats-list article strong { font-size: 15px; }
.stats-list article span { color: var(--muted); font-size: 18px; }
.mini-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 44px;
}
.mini-chart i {
  flex: 1 1 8px;
  min-width: 6px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: .75;
}

.wiki-home {
  display: grid;
  gap: 18px;
  padding: 54px 0 24px;
}
.wiki-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
}
.wiki-search input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  color: var(--ink);
  padding: 14px 16px;
}
.wiki-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wiki-category-strip a,
.wiki-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 90%, var(--paper));
  color: var(--ink);
  padding: 8px 12px;
}
.wiki-category-strip a.active {
  border-color: var(--moss);
  background: var(--moss);
  color: white;
}
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding-bottom: 70px;
}
.wiki-card a {
  display: grid;
  gap: 8px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  padding: 15px;
}
.wiki-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}
.wiki-card small {
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.wiki-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 500;
}
.wiki-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.wiki-article {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 48px auto 80px;
}
.wiki-breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.wiki-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
}
.wiki-article header {
  display: grid;
  gap: 10px;
}
.wiki-article header p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}
.wiki-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wiki-hero-image {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: cover;
}
.wiki-body {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  padding: clamp(18px, 3vw, 34px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
}
.wiki-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}
.wiki-toc strong,
.wiki-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
}
.wiki-toc strong { color: var(--muted); }
.wiki-toc a {
  background: color-mix(in srgb, var(--moss) 10%, transparent);
  color: var(--moss-dark);
}
.wiki-inner-link {
  color: var(--moss-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wiki-bottom-tabs {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.wiki-bottom-tabs nav {
  display: flex;
  flex-wrap: wrap;
}
.wiki-bottom-tabs button {
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--tab);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
}
.wiki-bottom-tabs button.active {
  background: var(--panel);
  box-shadow: inset 0 3px 0 var(--moss);
}
.wiki-tab-panel {
  display: none;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  padding: 16px;
}
.wiki-tab-panel.active { display: grid; }
.wiki-tab-panel a,
.wiki-tab-panel span {
  display: block;
  color: var(--moss-dark);
}
.wiki-body h2 {
  margin: 18px 0 0;
  font-size: 28px;
}
.wiki-body p,
.wiki-body ul {
  margin: 0;
}

.product {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
  min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.grid .product:hover, .product-rail .product:hover, .related-card:hover, .cluster-card:hover {
  border-color: rgba(49, 71, 58, .26);
  box-shadow: 0 12px 28px rgba(49, 40, 28, .09);
  transform: translateY(-2px);
}
.product * { min-width: 0; }
.product-image { display: block; aspect-ratio: 4 / 5; background: #e9dfcf; border-radius: 8px 8px 0 0; overflow: hidden; }
.product-image img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: Georgia, serif;
  font-size: 84px;
  color: rgba(49,71,58,.45);
}
.product-body { display: grid; gap: 6px; padding: 14px; }
.follow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.follow-meta .category { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.14; font-weight: 500; }
.product p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (hover: hover) and (min-width: 861px) {
  .catalog-grid,
  .compact-listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 202px));
    justify-content: start;
    gap: 14px;
  }
  .catalog-grid .product-body {
    padding: 11px;
    gap: 5px;
  }
  .catalog-grid .product h2 {
    font-size: 17px;
  }
  .grid .product .product-body {
    position: static;
    max-height: none;
    overflow: visible;
    background: var(--panel);
    border-top: 0;
    transform: none;
    transition: none;
  }
  .grid .product h2 { font-size: 17px; }
}
.stock-badge {
  justify-self: start;
  border: 1px solid rgba(88, 100, 58, .22);
  border-radius: 999px;
  background: rgba(88, 100, 58, .08);
  color: var(--moss-dark) !important;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badges span {
  border-radius: 999px;
  background: rgba(200, 148, 63, .15);
  color: #7a442f;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 750;
}
.stock-badge.low {
  border-color: rgba(166, 83, 45, .22);
  background: rgba(166, 83, 45, .08);
  color: #7a442f !important;
}
.stock-badge.unavailable, .stock-badge.restock {
  border-color: rgba(112, 105, 95, .24);
  background: rgba(112, 105, 95, .08);
  color: var(--muted) !important;
}
.options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.compact-options select {
  flex: 1 1 70px;
  min-width: 58px;
}
.compact-options .color-select {
  flex-basis: 128px;
  padding-left: 34px;
  background:
    radial-gradient(circle at 16px 50%, var(--selected-color, #d8c9b6) 0 8px, transparent 9px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 7px center/14px 14px no-repeat,
    white;
}
.options label, .coupon-label, .admin-login label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.options select, .coupon-row input, .admin-login input, .admin-panel input, .admin-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.options select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 26px 6px 8px;
  min-height: 32px;
  font-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2370695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 7px center;
}
.select-with-swatch {
  grid-template-columns: 16px minmax(104px, 1fr);
}
.buy-row { justify-content: space-between; gap: 14px; margin-top: auto; }
.buy-row span { display: inline-flex; align-items: center; gap: 8px; }
.buy-row button:not(.wishlist-button) {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  white-space: nowrap;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.buy-row button:not(.wishlist-button).just-added,
.product-actions .add-detail.just-added {
  background: #6f7b46;
  box-shadow: 0 0 0 5px rgba(111, 123, 70, .18);
  transform: scale(1.06);
}
.add-word { display: none; }
.add-plus { display: inline; transform: translateY(-1px); }
.wishlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--heart);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}
.wishlist-button.compact {
  width: 32px;
  height: 32px;
  font-size: 25px;
}
.wishlist-button:hover, .wishlist-button.active { color: #5f372d; background: transparent; }
.wishlist-button.active {
  color: #5f372d;
  -webkit-text-stroke: 1.1px #5f372d;
  text-shadow: 0 0 0 #5f372d;
  transform: scaleX(1.08);
}
.wishlist-button.compact:hover, .wishlist-button.compact.active { font-size: 25px; transform: scaleX(1.1); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 34px;
  margin: 44px 0 72px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.product-gallery-main {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
  background: #e9dfcf;
  cursor: zoom-in;
  padding: 0;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumbs button {
  flex: 0 0 78px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  padding: 0;
}
.product-thumbs button.active { border-color: var(--moss); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(10, 9, 7, .86);
  padding: min(7vw, 54px);
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox img {
  max-width: min(100%, 1180px);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: white;
  font-size: 28px;
  cursor: pointer;
}
.product-detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 8px 0;
}
.product-detail-body h1 { font-size: clamp(32px, 4vw, 48px); }
.product-detail-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.detail-price { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-size: 24px; font-weight: 800; }
.detail-price.promo-price span {
  color: var(--promo-color, #8f3223);
  font-size: 1.08em;
}
.detail-price del, .price-stack del { color: var(--muted); font-weight: 600; opacity: .75; }
.detail-price em {
  border-radius: 999px;
  background: color-mix(in srgb, var(--promo-color, #8f3223) 12%, transparent);
  color: var(--promo-color, #8f3223);
  padding: 4px 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.price-stack {
  display: grid;
  gap: 2px;
  font-size: 15px;
  line-height: 1.15;
}
.price-stack span {
  color: var(--ink);
  font-size: 15px;
}
.price-stack.promo-price span {
  color: var(--promo-color, #8f3223);
  font-size: 17px;
  font-weight: 500;
}
.price-stack.promo-price del {
  color: color-mix(in srgb, var(--promo-color, #8f3223) 62%, var(--muted));
  font-size: 13px;
}
.price-stack .stock-badge {
  justify-self: start;
  max-width: 100%;
  margin-top: 2px;
  font-size: 11px;
  white-space: nowrap;
}
.price-stack del { font-size: 13px; }
.product-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.product-actions .add-detail {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.product-actions .add-detail,
.buy-row button:not(.wishlist-button) {
  align-items: center;
  justify-items: center;
  line-height: 0;
}
.product-actions .add-detail .add-plus,
.buy-row .add-plus {
  display: block;
  transform: translateY(-1px);
  line-height: 1;
}
.price-stock-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-stock-row .detail-price { margin: 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
}
.follow-button {
  justify-self: start;
  border: 1px solid rgba(95, 88, 79, .28);
  border-radius: 999px;
  background: rgba(95, 88, 79, .05);
  color: var(--heart);
  padding: 8px 12px;
  cursor: pointer;
}
.follow-button.compact {
  justify-self: start;
  margin-top: -6px;
  padding: 5px 9px;
  font-size: 12px;
}
.follow-button.active, .follow-suggestions button.active { border-color: var(--moss); color: var(--moss-dark); background: rgba(88, 100, 58, .1); }
.related-section {
  display: grid;
  gap: 16px;
  margin: -34px 0 72px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.section-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.related-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  padding-bottom: 8px;
}
.related-track.grabbing { cursor: grabbing; }
.related-card {
  flex: 0 0 min(240px, 72vw);
  scroll-snap-align: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.related-card img, .related-card .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}
.related-card strong, .related-card span {
  display: block;
  padding: 0 12px;
}
.related-card strong { margin-top: 12px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.related-card span { margin: 7px 0 12px; color: var(--muted); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(29, 26, 22, .36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  width: min(420px, 100%);
  min-height: 100%;
  padding: 24px;
  background: var(--panel);
  box-shadow: -20px 0 60px rgba(29,26,22,.18);
  transform: translateX(28px);
  transition: transform .24s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.icon {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-popover .cart-line {
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  padding: 10px 0;
}
.cart-popover .cart-line h3 { font-size: 14px; }
.cart-popover .text-action { font-size: 12px; }
.cart-popover .qty button {
  width: 26px;
  height: 26px;
}
.saved-panel {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.saved-panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}
.saved-line {
  display: grid;
  grid-template-columns: 72px 1fr auto 32px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.saved-line img, .saved-line a > span {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #e9dfcf;
}
.saved-line a > span {
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  color: rgba(49,71,58,.55);
}
.saved-line strong, .saved-line small, .saved-line p { display: block; margin: 0; }
.saved-line small, .saved-line p { color: var(--muted); }
.saved-line .add-saved {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.cart-line h3 { margin: 0 0 4px; font-size: 16px; }
.cart-line p { margin: 0; color: var(--muted); }
.cart-color-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cart-color-option i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(49, 40, 28, .24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.discount-applied.unlocked {
  display: flex;
  align-items: center;
  gap: 8px;
}
.unlock-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--moss);
  color: white;
  font-weight: 800;
  line-height: 1;
}
.qty { display: flex; gap: 8px; align-items: center; }
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}
.remove-line {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.remove-line:hover { background: rgba(29, 26, 22, .08); }

.message-page, .cart-page { padding: 80px 0; }
.message-page .eyebrow { margin-bottom: 12px; }
.message-page h1, .cart-page h1 { font-size: clamp(32px, 5vw, 52px); }
.content-body {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.blog-home {
  display: grid;
  gap: 34px;
  padding: 76px 0;
}
.blog-hero,
.article-hero {
  display: grid;
  gap: 14px;
  max-width: 860px;
}
.blog-layout-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}
.blog-layout-toggle:hover {
  background: color-mix(in srgb, var(--moss) 10%, var(--panel));
}
.blog-hero-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 4px;
}
.blog-filter-pill {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}
.blog-filter-pill summary {
  min-height: 32px;
  padding: 0 9px;
  font-size: 13px;
}
.blog-filter-pill .filter-checks {
  min-width: 180px;
  max-width: 260px;
}
.blog-filter-pill .filter-checks a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  font-size: 12px;
}
.blog-filter-pill .filter-checks a.active {
  background: var(--moss);
  color: var(--paper);
  border-color: transparent;
}
.blog-reset-inline {
  padding: 6px 9px;
  min-height: 32px;
  font-size: 12px;
}
@media (max-width: 780px) {
  .blog-hero-tools {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}
.blog-hero h1,
.article-hero h1 {
  max-width: 820px;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0 auto;
}
.blog-list.large-blog-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.blog-list.large-blog-layout .blog-card a,
.blog-list.large-blog-layout .blog-card a.has-image,
.blog-list.large-blog-layout .blog-card a.large-preview {
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 170px;
}
.blog-list.large-blog-layout .blog-card img,
.blog-list.large-blog-layout .blog-card a.large-preview img {
  width: 168px;
  aspect-ratio: 1;
}
.blog-card a {
  display: grid;
  gap: 8px 12px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, white);
  padding: 12px;
}
.blog-card a.has-image {
  grid-template-columns: 96px minmax(0, 1fr);
}
.blog-card a.large-preview {
  grid-template-columns: 96px minmax(0, 1fr);
}
.blog-card a.large-preview img {
  grid-row: 1 / span 3;
  grid-column: 1;
  aspect-ratio: 1;
}
.blog-card img {
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 96px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.blog-card small,
.article-meta {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.blog-card small strong,
.article-meta strong {
  color: var(--ink);
  font-weight: 650;
}
.blog-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
}
.blog-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .blog-card a,
  .blog-card a.has-image,
  .blog-card a.large-preview {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 9px;
  }
  .blog-card img,
  .blog-card a.large-preview img,
  .blog-list.large-blog-layout .blog-card img,
  .blog-list.large-blog-layout .blog-card a.large-preview img {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .blog-list.large-blog-layout .blog-card a,
  .blog-list.large-blog-layout .blog-card a.has-image,
  .blog-list.large-blog-layout .blog-card a.large-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .blog-card h2 {
    font-size: 17px;
  }
  .blog-card p {
    display: none;
  }
}
.article-page {
  display: grid;
  justify-items: center;
  padding: 78px 0;
}
.article-page > * {
  width: min(var(--blog-text-width, 760px), 100%);
}
.article-page .content-body {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.78;
}
.article-page .content-body p {
  margin: 0 0 1.25em;
}
.article-page .content-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 18px 0;
}
.article-page .content-body figure {
  margin: 28px 0;
}
.article-page .content-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.article-page .content-body h2,
.article-page .content-body h3 {
  margin: 1.4em 0 .45em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
.subscribe-inline {
  margin: 14px 0;
}
.subscribe-inline summary {
  cursor: pointer;
  color: var(--moss-dark);
  font-weight: 700;
}
.subscribe-inline form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}
.subscribe-inline input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.subscribe-consent {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.subscribe-consent input {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--moss);
}
.author-box {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.author-box p {
  color: var(--muted);
}
.content-editor {
  display: grid;
  gap: 10px;
}
.content-title-field {
  display: grid;
  gap: 7px;
}
.content-lang-title[hidden] { display: none; }
.content-lang-tabs {
  display: inline-flex;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.content-lang-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}
.content-lang-tabs button.active {
  background: var(--ink);
  color: white;
}
.content-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 16px;
}
.content-settings {
  display: grid;
  gap: 12px;
  align-content: start;
}
.content-settings label {
  display: grid;
  gap: 7px;
}
.tag-editor {
  display: grid;
  gap: 6px;
}
.tag-editor-chips, .tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-editor-chips button, .tag-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 90%, white);
  padding: 5px 9px;
  cursor: pointer;
}
.danger-inline {
  margin: 10px 0 18px;
}
.admin-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(31, 29, 25, .38);
}
.admin-confirm-dialog[hidden] { display: none; }
.admin-confirm-card {
  display: grid;
  gap: 14px;
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.admin-confirm-card div {
  display: flex;
  justify-content: end;
  gap: 8px;
}
.content-settings .button {
  width: 100%;
  justify-content: center;
}
.slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  gap: 6px;
}
.slug-row button,
.editor-tools button.active {
  border-color: rgba(88, 100, 58, .34);
  background: rgba(88, 100, 58, .12);
  color: var(--moss-dark);
}
.slug-row button.active {
  background: var(--moss);
  color: white;
}
.editor-tools, .media-view-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.editor-tools {
  position: sticky;
  top: 76px;
  z-index: 4;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #f7f3ea;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(29,26,22,.06);
}
.media-stack {
  position: relative;
  display: grid;
  min-height: 160px;
  background: #f7f2e8;
}
.media-stack button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.media-stack [data-media-prev] { left: 8px; }
.media-stack [data-media-next] { right: 8px; }
.media-library video,
.media-library audio {
  width: 100%;
  min-height: 44px;
}
.site-player {
  width: min(980px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  gap: 12px;
}
.site-player article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}
.editor-tools button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(112,105,95,.18);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
.editor-tools button:hover {
  background: #ece5da;
}
.editor-tools select {
  height: 38px;
  width: auto;
  max-width: 160px;
  border: 1px solid rgba(112,105,95,.18);
  border-radius: 6px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
}
.content-editor textarea {
  border-radius: 0 0 10px 10px;
  min-height: 380px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}
.editor-preview {
  display: none;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}
.content-editor.visual textarea {
  display: none;
}
.content-editor textarea[hidden] { display: none; }
.content-editor.visual .editor-preview {
  display: block;
  min-height: 420px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  outline: 0;
}
.media-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
}
.media-library {
  display: grid;
  gap: 10px;
  padding: 0;
}
.media-library [hidden] { display: none !important; }
.media-library.grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-library.list { grid-template-columns: 1fr; }
.media-library.masonry { columns: 4 150px; display: block; }
.media-library figure {
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.media-library figure.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(49, 71, 58, .12);
}
.media-open {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.media-library img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.media-library figure[data-media-tiny="1"] .media-stack {
  display: grid;
  min-height: 120px;
  place-items: center;
  background: #f7f5ef;
}
.media-library figure[data-media-tiny="1"] img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  aspect-ratio: auto;
  object-fit: contain;
}
.media-library video,
.media-library audio {
  width: 100%;
}
.media-stack {
  position: relative;
  display: block;
}
.media-stack button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(17, 18, 19, .62);
  color: white;
}
.media-stack [data-media-prev] { left: 6px; }
.media-stack [data-media-next] { right: 6px; }
.media-audio-thumb {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #f3f0e9;
  color: var(--muted);
}
.media-library.masonry img { aspect-ratio: auto; }
.media-library.masonry .media-caption { display: none; }
.media-library.list figure {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.media-library.list .media-open {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
}
.media-library.list img,
.media-library.list video,
.media-library.list .media-audio-thumb {
  width: 44px;
  height: 44px;
  min-height: 44px;
  aspect-ratio: 1;
}
.media-library.list figure[data-media-tiny="1"] .media-stack {
  min-height: 44px;
  background: transparent;
}
.media-library.list figure[data-media-tiny="1"] img {
  max-width: 44px;
  max-height: 44px;
}
.media-library.list .media-caption {
  padding: 4px 8px;
}
.media-library.list figure {
  margin-bottom: 4px;
}
.media-library figcaption,
.media-caption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-caption {
  display: block;
}
.media-library figcaption strong,
.media-caption strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
}
.media-library figcaption small,
.media-caption small { display: block; }
.media-meta-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px !important;
  padding: 8px;
}
.media-meta-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
}
.media-meta-form button {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 7px 9px;
}
.media-meta-form button[hidden] { display: none; }
.media-detail-panel {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.media-detail-preview img,
.media-detail-preview video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f7f5ef;
  border-radius: 6px;
}
.media-detail-preview.tiny-preview {
  display: grid;
  min-height: 160px;
  place-items: center;
  background: #f7f5ef;
  border-radius: 6px;
}
.media-detail-preview.tiny-preview img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
}
.media-detail-panel h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.media-detail-panel dl {
  display: grid;
  gap: 7px;
  margin: 0;
}
.media-detail-panel dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}
.media-detail-panel dt { color: var(--muted); }
.media-detail-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.media-detail-actions {
  display: grid;
  gap: 8px;
}
.media-detail-actions .media-meta-form {
  padding: 0;
}
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.share-panel {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 4px;
}
.share-panel input {
  min-width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 11px 12px;
}
.share-panel button, .follow-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}
.cart-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  margin-top: 28px;
}
.summary {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.summary p { color: var(--muted); line-height: 1.5; }
.progress-stack { display: grid; gap: 10px; }
.progress-stack.pulse .progress-card i { transition: width .65s cubic-bezier(.2,.8,.2,1); }
.progress-stack.compact {
  gap: 6px;
  margin: 8px 0;
}
.progress-stack.compact .progress-card {
  padding: 8px;
  min-width: 0;
}
.progress-stack.compact .progress-card p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  font-size: 11px;
  line-height: 1.25;
}
.progress-card {
  border: 1px solid rgba(112, 105, 95, .22);
  border-radius: 8px;
  background: #f0ebe2;
  padding: 9px 10px;
  color: #1f1d19;
  min-width: 0;
}
.progress-card.shipping-progress i,
.progress-card.discount-progress i { background: #174f8f; }
.progress-card.complete {
  background: #eef5e8;
  border-color: rgba(95, 88, 79, .28);
}
.progress-card p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 750;
  min-width: 0;
}
.progress-card p strong,
.progress-card p span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.progress-card p span { font-weight: 650; color: #3a352f; }
.free-shipping-badge,
.discount-applied {
  border: 1px solid rgba(88, 100, 58, .18);
  border-radius: 8px;
  background: #f9fbf5;
  color: var(--moss-dark);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}
.discount-applied {
  background: #fffaf0;
  border-color: rgba(200, 148, 63, .3);
  color: #755118;
}
.unlock-pop {
  animation: unlock-pop .42s ease-out;
}
@keyframes unlock-pop {
  0% { transform: scale(.98); box-shadow: 0 0 0 rgba(88,100,58,0); }
  55% { transform: scale(1.018); box-shadow: 0 0 0 5px rgba(88,100,58,.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(88,100,58,0); }
}
.progress-card .progress-track {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(251, 248, 241, .72);
}
.progress-card i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
  transition: width .65s cubic-bezier(.2,.8,.2,1);
}
.summary-line { justify-content: space-between; margin-top: 18px; font-size: 18px; }
.summary-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.cart-notice {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 90;
  width: min(620px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(23, 79, 143, .2);
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 18px 46px rgba(29, 26, 22, .14);
  padding: 12px 14px;
  color: var(--ink);
}
.cart-notice strong { color: #174f8f; }
.cart-notice a {
  margin-left: 8px;
  color: #174f8f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-notice button {
  margin-left: 8px;
  border: 1px solid rgba(23,79,143,.25);
  border-radius: 999px;
  background: white;
  color: #174f8f;
  padding: 5px 9px;
  cursor: pointer;
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.coupon-row button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: #f0eadf;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 18px 42px;
  color: rgba(112,105,95,.55);
  font-size: 12px;
}
.footer a:hover { color: var(--muted); }

.admin-page { padding: 80px 0; }
.account-page { padding: 68px 0; }
.account-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: end;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eee3d4;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  transform: translateY(1px);
}
.account-tabs button.active {
  border-color: var(--moss);
  background: var(--panel);
  color: var(--moss-dark);
  padding-top: 12px;
}
.folder-tabs {
  display: flex;
  gap: 2px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.folder-tabs button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eee3d4;
  color: var(--muted);
  padding: 9px 11px;
  cursor: pointer;
}
.folder-tabs button.active {
  background: var(--panel);
  border-color: var(--moss);
  color: var(--moss-dark);
}
.checkout-account {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.checkout-account h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.delivery-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.34);
}
.delivery-box h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.delivery-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.delivery-switch label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 11px;
  cursor: pointer;
}
.relay-fields {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.relay-fields[hidden] { display: none; }
.relay-search {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
}
.relay-results {
  display: grid;
  gap: 6px;
}
.relay-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  color: inherit;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}
.relay-results button:hover {
  border-color: var(--moss);
  background: color-mix(in srgb, var(--moss) 10%, var(--paper));
}
.relay-results span {
  color: var(--muted);
  font-size: 13px;
}
.relay-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fffaf4;
}
.delivery-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.auth-panel {
  display: none;
  gap: 8px;
  padding-top: 4px;
}
.auth-panel.active {
  display: grid;
}
.auth-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.auth-panel button {
  border: 0;
  border-radius: 6px;
  background: var(--moss);
  color: white;
  padding: 10px 12px;
  cursor: pointer;
}
.checkout-account p {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.account-panel {
  display: none;
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  background: var(--panel);
  padding: 20px;
}
.danger-zone {
  border-color: rgba(143, 50, 35, .3);
  background: #fff8f5;
}
.inline-danger {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 16px;
}
.danger-zone form,
.danger-zone label {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.danger-zone input[name="confirm_email"] {
  max-width: 360px;
}
.button.danger {
  background: #8f3223;
  color: white;
}
.account-panel.active { display: grid; }
.account-panel h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.account-panel input, .account-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
}
.profile-form {
  display: grid;
  gap: 12px;
}
.address-fields {
  display: grid;
  gap: 10px;
}
.flat-address-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flat-address-fields input:first-child,
.flat-address-fields input:nth-child(2) {
  grid-column: 1 / -1;
}
.profile-form label {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.profile-form label span {
  color: var(--muted);
  font-size: 13px;
}
.profile-form input, .profile-form textarea {
  min-height: 38px;
  padding: 8px 10px;
}
.profile-form .button { justify-self: end; margin-top: 8px; }
.dating-form-intro {
  display: grid;
  gap: 6px;
  max-width: 760px;
  border: 1px solid rgba(88, 73, 102, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 240, 232, .92), rgba(239, 227, 218, .88));
  padding: 14px 16px;
}
.dating-form-intro strong {
  color: var(--ink);
  font-size: 15px;
}
.dating-form-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.dating-profile-form .feature-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 94%, var(--paper));
}
.dating-profile-form .feature-group legend {
  padding: 0 8px 0 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--moss-dark);
}
.dating-field-row {
  display: grid;
  grid-template-columns: 18px minmax(130px, 170px) minmax(220px, 1fr) minmax(84px, 112px);
  gap: 10px;
  align-items: center;
}
.dating-field-row.is-required {
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-left: 8px;
}
.defer-question {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0;
}
.defer-question-placeholder {
  width: 18px;
  height: 18px;
  display: block;
}
.dating-field-row > label {
  display: contents;
}
.dating-field-row > label > span {
  grid-column: 2;
  color: var(--muted);
}
.dating-field-row > label > textarea {
  grid-column: 3;
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  padding: 9px 10px;
}
.group-subhead {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.gallery-builder {
  display: grid;
  gap: 10px;
}
.gallery-add-card,
.gallery-create-card {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--paper));
  padding: 14px;
}
.gallery-create-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(170px, 210px) minmax(84px, 112px);
  gap: 10px;
  border-style: solid;
  align-items: center;
}
.gallery-remove {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.gallery-upload {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: var(--field);
  cursor: pointer;
  padding: 8px 10px;
}
.gallery-upload > span {
  font-size: 16px;
}
.deferred-questions [data-deferred-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.deferred-questions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, var(--paper));
  color: var(--ink);
  padding: 7px 10px;
}
.privacy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  grid-column: 4;
  justify-items: stretch;
}
.privacy-controls select,
.privacy-controls input {
  width: 100%;
  min-width: 0;
  max-width: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  padding: 7px 9px;
  min-height: 36px;
  font-size: 13px;
}
.required-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.publish-status {
  margin: 6px 0 0;
  font-size: 13px;
}
.publish-status[data-kind="error"] { color: #a13a3a; }
.publish-status[data-kind="ok"] { color: #2f6a44; }
.required-list {
  display: grid;
  gap: 8px;
}
.inline-form {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}
.inline-form input {
  min-width: 180px;
}
.footer-links-table {
  display: grid;
  gap: 6px;
}
.footer-links-table .inventory-head,
.footer-links-table .inventory-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr);
  gap: 8px;
}
.footer-links-table .inventory-row input {
  width: 100%;
}
.required-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--panel) 90%, var(--paper));
}
.progressive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.progressive-nav span {
  color: var(--muted);
  font-size: 13px;
}
.privacy-controls [hidden] {
  display: none;
}
.sensitive-fieldset {
  border-color: rgba(124, 90, 100, .35);
  background: rgba(246, 240, 232, .58);
}
.sensitive-consent {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(58, 17, 34, .22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, var(--paper));
  padding: 13px 14px;
}
.sensitive-consent strong {
  color: #3a1122;
}
.sensitive-consent p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.dating-media-group label:not(.upload-tile) {
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
}
.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.profile-photo-dropzone {
  display: grid;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--field) 82%, var(--panel));
  padding: 14px;
}
.profile-photo-dropzone.drag-over {
  border-color: var(--moss);
  background: color-mix(in srgb, var(--moss) 12%, var(--panel));
}
.upload-tile {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  padding: 22px;
  text-transform: none;
  letter-spacing: 0;
}
.upload-tile > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--moss);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
}
.upload-tile small {
  max-width: 420px;
  color: var(--muted);
}
.profile-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.profile-photo-preview figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.profile-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.profile-photo-preview figcaption {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}
.dating-message-panel {
  grid-template-columns: 1fr;
}
.dating-message-panel h2 {
  margin-bottom: -4px;
}
.chat-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.message-thread-list {
  display: grid;
  align-content: start;
  gap: 0;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
}
.message-thread {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 14px;
  text-decoration: none;
}
.message-thread.active,
.message-thread:hover {
  background: color-mix(in srgb, var(--moss) 10%, transparent);
}
.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: var(--moss);
  color: white;
}
.default-avatar {
  background: var(--panel) url('/assets/avatar-default.svg') center / cover no-repeat;
  border: 1px solid var(--line);
}
.image-avatar {
  object-fit: cover;
  background: transparent;
}
.message-thread span:last-child {
  min-width: 0;
}
.message-thread strong {
  display: block;
  margin-bottom: 3px;
}
.message-thread small,
.chat-window small,
.chat-bubble {
  color: var(--muted);
}
.chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 440px;
  background: color-mix(in srgb, var(--paper) 82%, var(--panel));
}
.chat-window header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.chat-window header .avatar {
  width: 54px;
  height: 54px;
}
.chat-window header a {
  color: var(--moss-dark);
  font-size: 13px;
}
.chat-messages {
  display: grid;
  align-content: end;
  gap: 10px;
  overflow: auto;
  padding: 18px;
}
.chat-bubble {
  width: fit-content;
  max-width: min(72ch, 74%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 10px 12px;
  line-height: 1.45;
}
.chat-bubble.outgoing {
  justify-self: end;
  background: var(--moss);
  color: white;
  border-color: transparent;
}
.chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.chat-composer textarea {
  margin: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
}
.emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--moss) 12%, var(--panel));
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  transform: translateY(0);
}
.emoji-toggle:hover {
  background: var(--moss);
  color: white;
}
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  transform: translateY(0);
}
.chat-send svg {
  width: 19px;
  height: 19px;
  display: block;
  margin-left: 2px;
  margin-top: 1px;
}
.emoji-palette {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  z-index: 4;
  display: none;
  grid-template-columns: repeat(6, 34px);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.chat-composer.emoji-open .emoji-palette {
  display: grid;
}
.emoji-palette button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.emoji-palette button:hover {
  background: color-mix(in srgb, var(--moss) 12%, transparent);
}
.article-manage-list {
  display: grid;
  gap: 8px;
}
.article-manage-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}
.article-manage-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--moss-dark);
  padding: 6px 10px;
  cursor: pointer;
}
.anonymous-qr-panel > p {
  max-width: 720px;
  margin: 0;
}
.qr-chat {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 0;
  width: min(920px, 100%);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.qr-question-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--field) 80%, var(--panel));
}
.qr-question-list button {
  display: grid;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.qr-question-list button.active,
.qr-question-list button:hover {
  background: color-mix(in srgb, var(--moss) 12%, transparent);
}
.qr-question-list span {
  color: var(--muted);
}
.qr-answer-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}
.qr-question-display {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--field) 86%, var(--panel));
  padding: 14px;
}
.qr-question-display small {
  color: var(--muted);
}
.qr-question-display p {
  margin: 5px 0 0;
}
.qr-answer-form {
  align-self: end;
  display: grid;
  gap: 10px;
}
.qr-answer-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}
.qr-answer-form .button {
  justify-self: end;
}
.fascinata-home {
  display: grid;
  gap: 22px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 80px 18px;
}
.fascinata-home h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 500;
  line-height: .95;
}
.fascinata-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fascinata-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fascinata-preview-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}
.fascinata-preview-grid span {
  color: var(--muted);
  line-height: 1.45;
}
.fascinata-actions .button {
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, background .16s ease;
}
.fascinata-actions .button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.cosmogora-channels-home {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.cosmogora-channel-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 10px;
}
.cosmogora-channel-layout aside {
  display: grid;
  gap: 6px;
}
.cosmogora-channel-layout aside button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 10px;
}
.cosmogora-channel-layout aside button.active {
  background: var(--accent);
  color: white;
}
.cosmogora-channel-layout article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper) 88%, var(--panel));
  padding: 10px;
  display: grid;
  gap: 6px;
}
.social-admin-panel .admin-kpis {
  margin-bottom: 12px;
}
.social-compose-layout {
  gap: 14px;
}
.social-compose-form textarea {
  min-height: 100px;
  resize: vertical;
}
.social-feed-list {
  gap: 10px;
}
.social-post-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: var(--panel);
}
.social-post-item strong {
  font-size: 0.98rem;
}
.social-post-item small {
  opacity: .8;
}
.social-post-item form {
  margin: 0;
}
.social-post-item button {
  width: auto;
  padding: 4px 10px;
  font-size: .86rem;
}
.social-actions-grid {
  align-items: start;
  gap: 14px;
}
@media (max-width: 900px) {
  .social-compose-layout {
    grid-template-columns: 1fr;
  }
  .social-actions-grid {
    grid-template-columns: 1fr;
  }
}
.address-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}
.address-capsules button {
  max-width: 100%;
  border: 1px solid rgba(88, 100, 58, .2);
  border-radius: 999px;
  background: rgba(88, 100, 58, .08);
  color: var(--moss-dark);
  padding: 7px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.admin-page h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
}
.admin-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-head .button { flex: 0 0 auto; margin-top: 18px; }
.admin-login, .admin-panel {
  max-width: 520px;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}
.admin-login {
  margin-left: auto;
  margin-right: auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}
.admin-panel { max-width: none; margin: 20px; align-content: start; }
.admin-panel.admin-hidden { display: none; }
.admin-panel h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.admin-panel p, .notice { color: var(--muted); line-height: 1.5; }
.module-admin-panel,
.function-admin-panel {
  width: min(100%, 920px);
  justify-self: center;
}
.admin-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.admin-breadcrumb a { color: inherit; }
.admin-breadcrumb span::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}
.feature-form {
  display: grid;
  gap: 12px;
}
.module-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
}
.module-table a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
}
.module-table a:last-child { border-bottom: 0; }
.module-table a:hover { background: rgba(49, 71, 58, .06); }
.module-table strong { display: block; }
.module-table span {
  color: var(--muted);
  font-size: 12px;
}
.notification-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
}
.notification-table a {
  display: grid;
  grid-template-columns: 14px minmax(90px, 120px) minmax(0, 1fr) minmax(28px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.notification-table a:last-child { border-bottom: 0; }
.notification-table a:hover { background: rgba(49, 71, 58, .06); }
.notification-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c9c0b2;
}
.notification-dot.active { background: #8f3223; }
.notification-table strong,
.notification-table em {
  font-weight: 400;
}
.notification-table span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notification-table em {
  justify-self: end;
  font-style: normal;
}
.player-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.player-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  padding: 14px;
}
.player-preview-card strong,
.player-preview-card span,
.player-preview-card small {
  display: block;
}
.compact-form {
  margin: 0;
}
.wiki-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
}
.wiki-admin-list {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 74px;
}
.wiki-admin-list a:not(.button) {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  padding: 10px;
}
.wiki-admin-list span {
  color: var(--muted);
  font-size: 13px;
}
.wiki-revision-list {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}
.media-upload-panel {
  width: min(760px, 100%);
  margin: 0 0 12px;
}
.speed-test-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.speed-test-panel span {
  color: var(--muted);
}
.module-detail {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  padding: 14px;
}
.feature-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.feature-toggle span {
  display: grid;
  gap: 4px;
}
.feature-toggle strong {
  font-size: 16px;
}
.feature-toggle small {
  color: var(--muted);
}
.feature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.feature-toggle i {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cfc7ba;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: background .2s ease;
}
.feature-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.feature-toggle input:checked + i {
  background: #4f8fd9;
}
.feature-toggle input:checked + i::after {
  transform: translateX(24px);
}
.module-control-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
  margin-bottom: 14px;
}
.module-control-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 92%, var(--paper));
}
.module-control-row i {
  grid-column: 1;
}
.module-control-row span {
  grid-column: 2;
}
.module-control-row a {
  grid-column: 3;
  justify-self: end;
}
.module-control-row input:checked + i {
  background: #4f8fd9;
}
.module-control-row input:checked + i::after {
  transform: translateX(24px);
}
.account-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 16px;
  align-items: start;
}
.slim-table .inventory-row {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.account-quick-form {
  position: sticky;
  top: 74px;
}
.secret-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.secret-grid fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.secret-grid legend {
  padding: 0 6px;
  font-weight: 700;
  color: var(--moss-dark);
}
.notice {
  display: inline-grid;
  justify-self: start;
  border: 1px solid rgba(88, 100, 58, .22);
  border-radius: 8px;
  background: #f3f8ef;
  color: var(--moss-dark);
  padding: 8px 11px;
}
.compact-button {
  width: auto;
  justify-self: start;
}
.inline-form {
  display: inline-grid !important;
  justify-self: start;
}
.product-editor { grid-row: span 3; }
.product-form, .admin-panel form {
  display: grid;
  gap: 14px;
}
.admin-panel form > .button,
.product-form > .button,
.feature-form > .button {
  justify-self: start;
  width: auto;
}
.product-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-form input, .product-form textarea, .admin-panel input, .admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.palette-editor {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.palette-editor legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.palette-editor label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.palette-editor label span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.palette-editor i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(112, 105, 95, .22);
  border-radius: 999px;
  background: var(--swatch);
}
.palette-editor input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 2px;
}
#activity-panel {
  width: min(720px, calc(100% - 40px));
  justify-self: center;
}
#trash-panel {
  width: min(840px, calc(100% - 40px));
  justify-self: center;
}
#activity-panel .inventory-filters {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.emoji-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.emoji-preview-row span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 20px;
}
.product-form textarea { resize: vertical; line-height: 1.5; }
.tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px;
}
.tag-list { display: contents; }
.tag-list button {
  border: 0;
  border-radius: 999px;
  background: #efe4d5;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.tag-editor input {
  flex: 1 1 150px;
  min-width: 120px;
  border: 0 !important;
  padding: 6px !important;
}
.stock-rule-builder {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
[data-stock-rules-input] { display: none; }
.stock-rule-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr)) minmax(80px, .8fr) minmax(64px, .6fr) minmax(120px, 1fr) 34px;
  gap: 6px;
}
.stock-rule-row input, .stock-rule-row select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 8px;
}
.stock-rule-row button, .stock-rule-builder > button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 9px 10px;
}
.upload-drop {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  border: 1px solid rgba(49, 71, 58, .28);
  border-radius: 8px;
  background: rgba(49, 71, 58, .05);
  color: var(--muted);
  text-align: center;
  padding: 0;
  cursor: pointer;
}
.upload-drop svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--moss-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload-drop strong {
  color: var(--moss-dark);
  font-weight: 600;
}
.upload-drop.dragging { border-color: var(--clay); background: rgba(166, 83, 45, .08); }
.upload-drop:focus-visible { outline: 2px solid rgba(88, 100, 58, .45); outline-offset: 3px; }
.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}
.color-editor {
  display: grid;
  grid-template-columns: 1fr 42px;
}
.color-editor .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.color-editor input[type="color"] {
  width: 42px;
  min-width: 42px;
  height: 34px;
  padding: 2px !important;
  border: 0 !important;
  background: transparent;
}
.color-dot, [data-color-dot] {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(49, 40, 28, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.select-with-swatch {
  display: grid;
  grid-template-columns: 16px minmax(104px, 1fr);
  align-items: center;
  gap: 5px;
}
.tag-list .color-dot { margin-right: 5px; vertical-align: -2px; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
body.crop-active { overflow: hidden; }
body.crop-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(29, 26, 22, .42);
}
body.crop-active .upload-preview:not(:empty) {
  position: fixed;
  inset: 6vh auto auto 50%;
  z-index: 100;
  width: min(760px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: auto;
  transform: translateX(-50%);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(29, 26, 22, .28);
  padding: 58px 18px 18px;
}
body.crop-active .upload-preview:not(:empty)::before {
  content: "Cadrer les images (ratio 4:5)";
  position: fixed;
  top: calc(6vh + 16px);
  left: calc(50% - min(380px, calc(50vw - 14px)) + 18px);
  z-index: 101;
  color: #1d1a16;
  font-weight: 650;
}
.crop-done {
  position: fixed;
  top: calc(6vh + 10px);
  left: 50%;
  z-index: 101;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: #1d1a16;
  color: white;
  padding: 9px 14px;
  cursor: pointer;
}
.upload-preview figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: grab;
  outline: 999px solid rgba(29, 26, 22, .04);
  outline-offset: -999px;
}
body.crop-active .upload-preview figure {
  overflow: visible;
  background:
    linear-gradient(#fff,#fff) padding-box,
    repeating-linear-gradient(45deg, rgba(29,26,22,.08) 0 8px, rgba(29,26,22,.14) 8px 16px) border-box;
}
body.crop-active .upload-preview figure img {
  position: relative;
  z-index: 1;
}
.upload-preview figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(29,26,22,.86);
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(29, 26, 22, .24);
  pointer-events: none;
  z-index: 2;
}
.upload-preview figure.grabbing { cursor: grabbing; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.upload-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 26, 22, .72);
  color: white;
  cursor: pointer;
}
.upload-preview input[type="range"] {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: calc(100% - 16px);
  accent-color: var(--moss);
}
.stock-alert-button {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(112,105,95,.08);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.account-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-pair.compact {
  grid-template-columns: minmax(80px, 120px) repeat(2, minmax(0, 1fr));
  align-items: end;
}
.product-form label.check, label.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 10px;
  line-height: 1.35;
}
.product-form label.check input, label.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  justify-self: center;
}
.admin-products { display: grid; gap: 10px; }
.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inventory-filters input,
.media-search input {
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 9px 10px;
}
.media-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.import-preview {
  display: grid;
  gap: 8px;
}
.import-table .inventory-head,
.import-table .inventory-row {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.autosave-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.translate-button {
  min-width: 108px;
}
.order-row {
  color: inherit;
  text-decoration: none;
}
body[data-theme="light"] {
  --paper: #ffffff;
  --panel: #fbfbf8;
  --moss: #4f6f67;
  --moss-dark: #284d45;
  --clay: #8f4f3b;
  --gold: #a67c2d;
}
body[data-theme="tisaniere"] {
  --paper: #fbf8f1;
  --panel: #fffdf8;
  --moss: #16805e;
  --moss-dark: #0f5d46;
  --clay: #9b563c;
  --gold: #b98b43;
}
body[data-theme="mineral"] {
  --paper: #f4f6f4;
  --panel: #ffffff;
  --moss: #49636b;
  --moss-dark: #2d454d;
  --clay: #7f5c4b;
  --gold: #9b7b45;
}
body[data-theme="nocturne"] {
  --ink: #f6f0e8;
  --muted: #c7baaa;
  --line: rgba(246,240,232,.18);
  --paper: #171615;
  --panel: #211f1c;
  --moss: #87955c;
  --moss-dark: #d8e2a8;
  --clay: #d18a62;
}
body[data-theme="night-auto"] {
  --ink: #f6f1ea;
  --muted: #c9bfb2;
  --line: rgba(246,241,234,.16);
  --paper: #111611;
  --panel: #1a2019;
  --moss: #9ac878;
  --moss-dark: #dce8c4;
  --clay: #e19a74;
}
body[data-theme="fascinata-prune-day"] {
  --ink: #2b2823;
  --muted: #746b5e;
  --line: rgba(43, 40, 35, .14);
  --paper: #f7f0e4;
  --panel: #fffaf0;
  --moss: #4b3f5f;
  --moss-dark: #2f2840;
  --clay: #b99b5a;
  --gold: #c5a66a;
}
body[data-theme="fascinata-prune-night"] {
  --ink: #efe6d2;
  --muted: #b8ab98;
  --line: rgba(239, 230, 210, .16);
  --paper: #14121a;
  --panel: #201c2a;
  --moss: #4e415c;
  --moss-dark: #efe6d2;
  --clay: #c0a36a;
  --gold: #c0a36a;
}
body[data-theme="fascinata-prune-night"] .button,
body[data-theme="fascinata-prune-night"] .search button,
body[data-theme="fascinata-prune-night"] .buy-row button:not(.wishlist-button) {
  background: var(--moss);
  color: white;
}
body[data-theme="fascinata-prune-night"] .button:hover,
body[data-theme="fascinata-prune-night"] .search button:hover,
body[data-theme="fascinata-prune-night"] .buy-row button:not(.wishlist-button):hover {
  background: var(--clay);
  color: #14121a;
}
body[data-theme="fascinata-prune-night"] .account-panel,
body[data-theme="fascinata-prune-night"] .feature-group,
body[data-theme="fascinata-prune-night"] .sensitive-fieldset,
body[data-theme="fascinata-prune-night"] .article-manage-list article,
body[data-theme="fascinata-prune-night"] .dating-form-intro,
body[data-theme="fascinata-prune-night"] .sensitive-consent {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--paper));
  color: var(--ink);
}
body[data-theme="fascinata-prune-night"] .account-panel input,
body[data-theme="fascinata-prune-night"] .account-panel textarea,
body[data-theme="fascinata-prune-night"] .account-panel select,
body[data-theme="fascinata-prune-night"] .privacy-controls input,
body[data-theme="fascinata-prune-night"] .privacy-controls select {
  border-color: rgba(239, 230, 210, .2);
  background: color-mix(in srgb, var(--paper) 58%, var(--panel));
  color: var(--ink);
}
body[data-theme="fascinata-prune-night"] .account-tabs button {
  background: color-mix(in srgb, var(--panel) 82%, var(--paper));
  color: var(--muted);
}
body[data-theme="fascinata-prune-night"] .account-tabs button.active {
  background: #4e415c;
  color: #fffaf0;
}
body[data-theme="fascinata-prune-night"] .notice {
  background: #2a2434;
  color: var(--ink);
}
body[data-theme="fascinata-prune-day"] .button,
body[data-theme="fascinata-prune-day"] .search button,
body[data-theme="fascinata-prune-day"] .buy-row button:not(.wishlist-button) {
  background: #2f2840;
  color: white;
}
body[data-theme="cosmogora-solar"] {
  --ink: #1e211d;
  --muted: #6e6248;
  --line: rgba(30, 33, 29, .14);
  --paper: #f7f0dc;
  --panel: #fffaf0;
  --moss: #1d1b15;
  --moss-dark: #12120f;
  --clay: #b88928;
  --gold: #e0b832;
}
body[data-theme="cosmogora-pollen"] {
  --ink: #143027;
  --muted: #6d5c2b;
  --line: rgba(20, 48, 39, .14);
  --paper: #ffe07a;
  --panel: #f7f0d0;
  --moss: #143027;
  --moss-dark: #143027;
  --clay: #c89b24;
  --gold: #ffe07a;
}
body[data-theme="cosmogora-moss"] {
  --ink: #0e221b;
  --muted: #244a35;
  --line: rgba(14, 34, 27, .16);
  --paper: #f2c84b;
  --panel: #fff0a4;
  --moss: #244a35;
  --moss-dark: #0e221b;
  --clay: #d9a83a;
  --gold: #f2c84b;
}
body[data-theme="cosmogora-ember"] {
  --ink: #16251f;
  --muted: #7a5a20;
  --line: rgba(22, 37, 31, .16);
  --paper: #dfae2f;
  --panel: #f8e7a8;
  --moss: #16251f;
  --moss-dark: #16251f;
  --clay: #7a5a20;
  --gold: #dfae2f;
}
body[data-theme="cosmogora-eclipse"] {
  --ink: #fff0b3;
  --muted: #c9bb82;
  --line: rgba(255, 240, 179, .16);
  --paper: #0d1211;
  --panel: #151b19;
  --moss: #f0c232;
  --moss-dark: #fff0b3;
  --clay: #c4942b;
  --gold: #f0c232;
}
body[data-theme="cosmogora-solar"] .button:hover,
body[data-theme="cosmogora-solar"] .search button:hover,
body[data-theme="cosmogora-solar"] .top-search button:hover,
body[data-theme="cosmogora-solar"] .buy-row button:not(.wishlist-button):hover,
body[data-theme="cosmogora-eclipse"] .button:hover,
body[data-theme="cosmogora-eclipse"] .search button:hover,
body[data-theme="cosmogora-eclipse"] .top-search button:hover,
body[data-theme="cosmogora-eclipse"] .buy-row button:not(.wishlist-button):hover {
  background: var(--clay);
  color: #15120d;
}
body[data-theme="cosmogora-eclipse"] input,
body[data-theme="cosmogora-eclipse"] select,
body[data-theme="cosmogora-eclipse"] textarea,
body[data-theme="cosmogora-eclipse"] .top-search select,
body[data-theme="cosmogora-eclipse"] .top-search input,
body[data-theme="cosmogora-eclipse"] .search input,
body[data-theme="cosmogora-eclipse"] .quick-filters select,
body[data-theme="cosmogora-eclipse"] .catalog-sort-select,
body[data-theme="cosmogora-eclipse"] .filter-accordion,
body[data-theme="cosmogora-eclipse"] .filter-checks label,
body[data-theme="cosmogora-eclipse"] .search-suggest-panel,
body[data-theme="cosmogora-eclipse"] .account-popover,
body[data-theme="cosmogora-eclipse"] .cart-popover {
  border-color: var(--line);
  background: #111816;
  color: var(--ink);
}
body[data-theme="cosmogora-eclipse"] input::placeholder,
body[data-theme="cosmogora-eclipse"] textarea::placeholder {
  color: rgba(255, 240, 179, .52);
}
body[data-theme="cosmogora-eclipse"] .cookie-consent {
  border-color: var(--line);
  background: rgba(17, 24, 22, .94);
  color: var(--ink);
}
body[data-theme="nocturne"] .topbar,
body[data-theme="night-auto"] .topbar,
body[data-theme="fascinata-prune-night"] .topbar,
body[data-theme="cosmogora-eclipse"] .topbar {
  background: rgba(17, 19, 16, .9);
  border-bottom-color: rgba(246, 241, 234, .14);
}
body[data-theme="nocturne"] .subnav,
body[data-theme="night-auto"] .subnav,
body[data-theme="fascinata-prune-night"] .subnav,
body[data-theme="cosmogora-eclipse"] .subnav {
  background: #171c16;
  border-bottom-color: rgba(246, 241, 234, .12);
}
body[data-mode="night"] .brand-mark img {
  filter: brightness(.88) contrast(1.08) saturate(.9);
}
.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: min(560px, calc(100% - 36px));
  border: 1px solid rgba(112, 105, 95, .16);
  border-radius: 8px;
  background: rgba(255, 253, 248, .86);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(29, 26, 22, .09);
  backdrop-filter: blur(14px);
  padding: 8px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.cookie-consent a { color: var(--moss-dark); font-weight: 700; font-size: 12px; }
.cookie-consent .button { padding: 6px 9px; font-size: 12px; }
.cookie-consent-actions {
  display: inline-grid;
  grid-template-columns: auto minmax(132px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 224px;
}
.cookie-consent .cookie-deny {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 11px;
  opacity: .88;
}
.cookie-consent .cookie-accept {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
}
.compact-consent {
  align-items: start;
  font-size: 12px;
  line-height: 1.35;
}
details {
  border-radius: 8px;
}
.content-body details {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 14px;
}
.content-body details + details { margin-top: 10px; }
.content-body summary {
  cursor: pointer;
  color: var(--moss-dark);
  font-weight: 750;
}
@media (max-width: 760px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .cookie-consent a {
    grid-column: 1;
  }
  .cookie-consent-actions {
    grid-column: 2;
    min-width: 190px;
  }
}

.micro-toast-stack {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
}
.micro-toast {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 84%, white);
  color: var(--ink);
  padding: 9px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  font-size: 13px;
  line-height: 1.35;
}
.micro-toast[data-kind="error"] {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}
body.shop-disabled .cart-hover,
body.shop-disabled .wishlist-count,
body.shop-disabled .promo-link {
  display: none !important;
}
.inventory-filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 7px 11px;
}
.inventory-filters a.active {
  background: var(--ink);
  color: white;
}
.inventory-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) 100px 150px 90px;
  gap: 10px;
  align-items: center;
  min-width: 720px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.inventory-head {
  background: #f7f3ea;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.inventory-row:last-child { border-bottom: 0; }
.inventory-row a { color: var(--moss-dark); font-weight: 700; }
.inventory-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-table .inventory-row,
.account-table .inventory-head {
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.1fr) minmax(120px, .7fr) minmax(110px, .6fr) minmax(170px, auto);
}
.account-table.slim-table .inventory-row,
.account-table.slim-table .inventory-head {
  min-width: 820px;
}
.account-table .inventory-row > span:first-child {
  display: grid;
  gap: 2px;
}
.account-table .inventory-row > span:first-child small {
  color: var(--muted);
}
.account-table .inventory-head a {
  color: inherit;
  text-decoration: none;
}
.account-table .inventory-head a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.row-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.row-actions form,
.account-actions form {
  margin: 0;
}
.row-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, var(--paper));
  color: var(--ink);
  padding: 5px 8px;
  cursor: pointer;
}
.inventory-search,
.bulk-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  align-items: center;
}
.inventory-search input,
.inventory-search select,
.bulk-actions select,
.content-quick-form input,
.content-quick-form select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px 8px;
}
.handle-input-wrap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  overflow: hidden;
}
.handle-input-wrap b {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.handle-input-wrap input {
  min-height: 36px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.content-table .inventory-head,
.content-table .inventory-row {
  grid-template-columns: 34px 70px minmax(150px, .8fr) minmax(280px, 1.3fr) minmax(90px, .45fr) 76px;
}
.content-row {
  padding-top: 6px;
  padding-bottom: 6px;
}
.row-check {
  display: grid;
  place-items: center;
}
.content-quick-wrap {
  display: grid;
  gap: 4px;
}
.content-quick-form {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 120px 105px minmax(90px, .8fr) minmax(90px, .8fr) auto;
  gap: 5px;
  align-items: center;
}
#activity-panel a {
  color: #174f8f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.admin-mini-list div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.65);
  padding: 9px 10px;
}
.admin-mini-list small {
  color: var(--muted);
}
.admin-product, .promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.admin-product strong, .admin-product small, .promo-row strong, .promo-row small { display: block; }
.admin-product small, .promo-row small { margin-top: 4px; color: var(--muted); }

body[data-mode] .topbar,
body[data-mode] .subnav,
body[data-mode] .account-panel,
body[data-mode] .admin-panel,
body[data-mode] .admin-login,
body[data-mode] .module-table,
body[data-mode] .module-control-list,
body[data-mode] .module-detail,
body[data-mode] .media-library figure,
body[data-mode] .media-detail-panel,
body[data-mode] .editor-preview,
body[data-mode] .notification-table,
body[data-mode] .inventory-table,
body[data-mode] .admin-product,
body[data-mode] .promo-row,
body[data-mode] .skin-select > button,
body[data-mode] .skin-select > span,
body[data-mode] .wiki-card a {
  background-color: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
body[data-mode] .subnav,
body[data-mode] .admin-subtabs a,
body[data-mode] .media-view-buttons button,
body[data-mode] .media-view-buttons select,
body[data-mode] .inventory-head,
body[data-mode] .inventory-filters a,
body[data-mode] .admin-mini-list div,
body[data-mode] .segmented-control {
  background-color: var(--tab);
  color: var(--ink);
  border-color: var(--line);
}
body[data-mode] .product-form input,
body[data-mode] .product-form textarea,
body[data-mode] .product-form select,
body[data-mode] .inventory-search input,
body[data-mode] .inventory-search select,
body[data-mode] .bulk-actions select,
body[data-mode] .content-quick-form input,
body[data-mode] .content-quick-form select,
body[data-mode] .media-search input,
body[data-mode] .top-search input,
body[data-mode] .top-search select,
body[data-mode] .chat-composer textarea,
body[data-mode] .qr-answer-form textarea {
  background-color: var(--field);
  color: var(--ink);
  border-color: var(--line);
}
body[data-mode] .button,
body[data-mode] .search button,
body[data-mode] .buy-row button:not(.wishlist-button) {
  background-color: var(--moss);
  color: var(--paper);
}
body[data-mode] .button.danger,
body[data-mode] .sidebar-count,
body[data-mode] .tab-count {
  background-color: var(--danger);
  color: var(--paper);
}
body[data-mode="night"] {
  --muted: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --heart: var(--ink);
}
body[data-mode="night"] h1,
body[data-mode="night"] h2,
body[data-mode="night"] h3,
body[data-mode="night"] h4,
body[data-mode="night"] p,
body[data-mode="night"] label,
body[data-mode="night"] legend,
body[data-mode="night"] strong,
body[data-mode="night"] small,
body[data-mode="night"] span,
body[data-mode="night"] .account-panel,
body[data-mode="night"] .admin-panel,
body[data-mode="night"] .wiki-body {
  color: inherit;
}
body[data-mode="night"] .eyebrow,
body[data-mode="night"] .category,
body[data-mode="night"] .muted,
body[data-mode="night"] .hero-copy,
body[data-mode="night"] .message-thread small,
body[data-mode="night"] .qr-question-list span {
  color: var(--muted);
}
body[data-mode="night"] ::placeholder {
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  opacity: 1;
}
body[data-mode="night"] .sensitive-consent strong,
body[data-mode="night"] .badges span,
body[data-mode="night"] .stock-badge.low {
  color: var(--ink) !important;
}
.admin-profiler {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(31,29,25,.9);
  color: #f8f0e4;
  padding: 5px 8px;
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.admin-profiler { display: none !important; }
.promo-list { display: grid; gap: 10px; }
.promo-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}
.muted-product { opacity: .55; }
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-actions a, .admin-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
}
.admin-actions a:hover, .admin-actions button:hover { background: rgba(49, 71, 58, .08); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stats-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.stats-grid strong {
  display: block;
  color: var(--moss-dark);
  font-size: 24px;
}
.stats-grid span { color: var(--muted); font-size: 12px; }
.public-comments {
  display: grid;
  gap: 16px;
  max-width: var(--blog-text-width);
  margin: 34px auto 0;
}
.public-comments h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.comment-list {
  display: grid;
  gap: 10px;
}
.comment-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}
.comment-list small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.comment-form {
  display: grid;
  gap: 12px;
}
.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px;
}
.size-guide {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.size-guide div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.admin-image-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-image-preview {
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-row {
  display: grid;
  grid-template-columns: 90px 110px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-row small { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  body.admin-shell { --admin-sidebar-width: 0px; }
  .admin-sidebar-toggle { display: none; }
  .topbar { padding: 0 18px; }
  .admin-toolbar,
  .admin-subtoolbar {
    position: fixed;
  }
  .admin-toolbar { top: 0; left: 0; right: 0; z-index: 60; }
  .admin-subtoolbar { top: var(--admin-toolbar-height); left: 0; right: 0; z-index: 44; }
  body.admin-shell main {
    padding-left: 0;
    padding-bottom: 54px;
  }
  .admin-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    min-height: 46px;
    height: 46px;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    z-index: 62;
    padding: 0 4px;
    display: flex !important;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    grid-template-columns: none;
    align-content: initial;
  }
  .admin-sidebar a {
    flex: 0 0 auto;
    font-size: 12px;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 0;
    justify-content: center;
    gap: 6px;
  }
  .admin-sidebar a > span { display: inline; }
  .sidebar-add { display: none !important; }
  body.admin-sidebar-open .admin-sidebar { display: flex !important; }
  body:not(.admin-sidebar-open) .admin-sidebar { display: flex !important; }
  body.admin-shell.admin-sidebar-open main { padding-left: 0; }
  body.admin-sidebar-open .admin-subtoolbar { left: 0; }
  .blog-card a { grid-template-columns: 1fr; }
  .blog-card img { grid-row: auto; grid-column: auto; }
  .hero, .cart-shell { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: 340px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .secret-grid { grid-template-columns: 1fr; }
  .content-admin-layout { grid-template-columns: 1fr; }
  .media-browser,
  .player-admin-grid,
  .wiki-admin-layout,
  .dating-message-panel,
  .chat-shell,
  .qr-chat,
  .fascinata-preview-grid,
  .account-admin-layout,
  .gallery-create-card {
    grid-template-columns: 1fr;
  }
  .qr-question-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .message-thread-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chat-window header {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .chat-window header a {
    grid-column: 2;
  }
  .media-detail-panel {
    position: static;
  }
  .notification-table a {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .notification-table strong,
  .notification-table span,
  .notification-table em {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }
  .module-table a {
    grid-template-columns: 1fr;
  }
  .content-settings { order: 2; }
  .product-editor { grid-row: auto; }
}

@media (max-width: 560px) {
  main { width: min(100% - 24px, 1360px); }
  .topbar { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .subnav {
    gap: 8px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; grid-template-columns: minmax(92px, 118px) 1fr 44px; }
  .top-search.article-search { grid-template-columns: 1fr 44px; }
  .top-search button { width: 44px; min-width: 44px; }
  .search-suggest-panel { right: 44px; }
  .nav { gap: 12px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-rail .product { flex-basis: min(172px, 46vw); }
  .compact-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cluster-card { flex-basis: min(300px, 84vw); grid-template-columns: minmax(0, 1fr) auto; }
  .cluster-card button { grid-column: 2; }
  .admin-grid { grid-template-columns: 1fr; }
  .filters h1, .cart-page h1, .account-page h1, .message-page h1 { font-size: 34px; }
  .section-head h2 { font-size: 22px; }
  .product-body { padding: 8px; gap: 4px; }
  .product h2 { font-size: 14px; }
  .category { font-size: 10px; }
  .card-description { display: none; }
  .buy-row { align-items: end; gap: 8px; }
  .buy-row span { gap: 4px; justify-content: flex-end; }
  .buy-row button:not(.wishlist-button) {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
  }
  .buy-row button:not(.wishlist-button) .add-word { display: none; }
  .buy-row button:not(.wishlist-button) .add-plus { display: inline; }
  .price-stack { font-size: 12px; gap: 2px; }
  .wishlist-button.compact { width: 28px; height: 28px; font-size: 22px; }
  .wishlist-button.compact:hover, .wishlist-button.compact.active { font-size: 22px; }
  .stock-badge { font-size: 9px; padding: 3px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .search { grid-template-columns: 1fr; }
  .wiki-search { grid-template-columns: 1fr; }
  .quick-filters {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-accordion { width: 100%; }
  .filter-sort { flex: 0 0 180px; }
  .options { grid-template-columns: 1fr; gap: 4px; }
  .options label { font-size: 9px; }
  .options select { min-height: 28px; font-size: 11px; padding-top: 4px; padding-bottom: 4px; }
  h1 { font-size: 36px; }
  .admin-page { padding: 46px 0; }
  .admin-page h1 { font-size: 42px; }
  .admin-head { display: grid; }
  .order-row { grid-template-columns: 1fr; gap: 4px; }
  .saved-line { grid-template-columns: 56px 1fr; }
  .saved-line img, .saved-line a > span { width: 56px; }
  .profile-form label:not(.upload-tile),
  .dating-field-row { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; }
  .dating-profile-form .feature-group { padding: 12px 10px 10px; }
  .dating-profile-form .feature-group legend { font-size: 17px; }
  .dating-field-row .privacy-controls { grid-column: 2; }
  .dating-field-row .privacy-controls select,
  .dating-field-row .privacy-controls input { max-width: 100%; }
  .dating-field-row > label { display: contents; }
  .dating-field-row > label > span,
  .dating-field-row > label > textarea { grid-column: 2; }
  .profile-actions { justify-content: stretch; }
  .profile-actions .button { width: 100%; }
  .form-pair, .form-pair.compact, .admin-product { grid-template-columns: 1fr; }
  .stock-rule-row, .promo-row { grid-template-columns: 1fr; }
  .footer-links-table .inventory-head,
  .footer-links-table .inventory-row { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
