
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --line: #e4e6ea;
  --line-strong: #d4d8df;
  --text: #050506;
  --muted: #737782;
  --faint: #a6a9b2;
  --accent: #252b36;
  --accent-dark: #111317;
  --accent-soft: #edf0f3;
  --button-bg: #050506;
  --button-bg-hover: #181818;
  --button-text: #ffffff;
  --spinner-track: rgba(255, 255, 255, .36);
  --good: #20b66c;
  --warn: #6f7b8d;
  --bad: #cf3e3e;
  --radius: 8px;
  --shadow: 0 22px 54px rgba(17, 24, 39, .10);
  --motion-instant: 90ms;
  --motion-fast: 140ms;
  --motion-ui: 180ms;
  --motion-modal: 220ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-family: var(--font);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #151820;
  --surface-soft: #1d212b;
  --line: #2b313d;
  --line-strong: #3b4351;
  --text: #f4f6f8;
  --muted: #a2a9b5;
  --faint: #77808e;
  --accent: #8d96a6;
  --accent-dark: #aab2c0;
  --accent-soft: rgba(141, 150, 166, .14);
  --button-bg: #252b36;
  --button-bg-hover: #303744;
  --button-text: #f4f6f8;
  --spinner-track: rgba(255, 255, 255, .24);
  --shadow: 0 22px 54px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.is-booting,
body.is-auth-only { overflow: hidden; }

button, input, textarea, select { font: inherit; }

strong, b { font-weight: 600; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
h1 { margin: 0; font-size: 2rem; }

button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  button:hover { background: var(--button-bg-hover); }
}

button:not(:disabled):active {
  transform: var(--press-transform, scale(.97));
  transition-duration: var(--motion-instant);
}

button:disabled { cursor: not-allowed; opacity: .55; }
button.loading,
button.loading:disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 1;
  pointer-events: none;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--spinner-track);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .75s linear infinite;
  flex: 0 0 auto;
  will-change: transform;
}

input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: color-mix(in srgb, var(--text) 34%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.hidden { display: none !important; }

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  cursor: default;
  user-select: none;
}

.brand-logo-button {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo-button:hover {
    background: transparent;
    color: var(--text);
  }
}

.brand-logo-button:not(:disabled):active {
  transform: scale(.98);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  display: inline-block;
}

.status-dot.good { background: var(--good); }
.status-dot.bad { background: var(--bad); }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483647;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--motion-ui) var(--ease-out),
    opacity var(--motion-ui) var(--ease-out);
  font-size: 13px;
  line-height: 1.45;
  will-change: transform, opacity;
}

:root[data-theme="dark"] .toast {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

:root[data-theme="dark"] select option,
:root[data-theme="dark"] select optgroup {
  background: var(--surface);
  color: var(--text);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  button,
  input,
  textarea,
  select,
  .toast {
    transition-duration: 120ms !important;
  }

  button:not(:disabled):active {
    transform: none;
  }

  .button-spinner {
    animation: none;
    border-color: rgba(255, 255, 255, .46);
    border-top-color: currentColor;
  }

  .toast,
  .toast.show {
    transform: none;
  }
}


.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, .08), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(110, 124, 145, .10), transparent 26%),
    linear-gradient(135deg, #18191c 0%, #050505 54%, #171719 100%);
  transition:
    opacity var(--motion-modal) var(--ease-out),
    visibility var(--motion-modal) var(--ease-out);
}

.boot-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 28px;
}

.boot-brand .brand-logo {
  color: #fff;
  font-size: 44px;
}

.boot-brand .brand-mark {
  color: var(--accent);
  width: 42px;
  height: 34px;
}

.boot-progress {
  width: min(400px, 72vw);
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  appearance: none;
}

.boot-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, .16);
}

.boot-progress::-webkit-progress-value,
.boot-progress::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #7b8492, #fff);
}

.boot-status {
  min-height: 18px;
  margin: -14px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  text-align: center;
}

.boot-retry {
  min-width: 132px;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.boot-retry:hover { background: rgba(255, 255, 255, .16); }

body:not(.is-booting) .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg);
  overflow: auto;
}

.not-found-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  padding: clamp(22px, 4vw, 52px);
  background:
    radial-gradient(circle at 18% 72%, rgba(110, 124, 145, .10), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(110, 124, 145, .055), transparent 24%),
    var(--bg);
  color: var(--text);
  overflow: auto;
}

.not-found-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .52;
  background-image:
    linear-gradient(rgba(115, 119, 130, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 119, 130, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.not-found-brand {
  position: relative;
  z-index: 2;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.not-found-brand .brand-logo {
  font-size: 23px;
}

.not-found-stage {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(310px, .92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding: clamp(28px, 5vh, 58px) 0 clamp(44px, 8vh, 88px);
  animation: not-found-stage-enter 420ms var(--ease-out) both;
}

.not-found-visual {
  position: relative;
  min-height: clamp(390px, 55vh, 510px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 64%, rgba(110, 124, 145, .16), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--accent) 4%), var(--surface-soft));
  box-shadow: 0 30px 80px rgba(17, 24, 39, .10);
}

.not-found-visual::after {
  content: "";
  position: absolute;
  inset: auto 7% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.not-found-code {
  position: absolute;
  top: 5%;
  left: 50%;
  color: transparent;
  font-size: clamp(150px, 23vw, 260px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1;
  transform: translateX(-52%);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 12%, transparent);
  user-select: none;
}

.not-found-route-map {
  position: absolute;
  inset: 5% 2% 0;
  width: 96%;
  height: 92%;
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

.not-found-route-map path:first-child {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .018 .026;
  opacity: .48;
}

.not-found-route-map circle {
  fill: var(--accent);
  stroke: color-mix(in srgb, var(--surface) 80%, transparent);
  stroke-width: 8;
}

.not-found-route-map .not-found-route-end {
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .8;
}

.not-found-mascot {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  width: clamp(204px, 24vw, 250px);
  aspect-ratio: 192 / 208;
  background-image: url("/assets/brand/umbra-404.webp?v=20260719-static");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 18px rgba(17, 24, 39, .15));
}

.not-found-route-chip {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
}

.not-found-route-chip i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 10%, transparent);
}

.not-found-content {
  display: grid;
  justify-items: start;
  gap: 16px;
  text-align: left;
}

.not-found-content h1 {
  max-width: 520px;
  margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.not-found-content p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.not-found-home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0 19px 0 22px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .13);
  transition:
    background-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out);
}

.not-found-home-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast) var(--ease-out);
}

.not-found-home-link:active {
  transform: scale(.97);
}

.not-found-home-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .not-found-home-link:hover {
    background: var(--button-bg-hover);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .18);
  }

  .not-found-home-link:hover svg {
    transform: translateX(2px);
  }
}

@keyframes not-found-stage-enter {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

:root[data-theme="dark"] .not-found-visual {
  box-shadow: 0 30px 88px rgba(0, 0, 0, .34);
}

:root[data-theme="dark"] .not-found-mascot {
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35));
}

.auth-logo-row {
  position: static;
  display: flex;
  justify-content: center;
  transform: translateY(-10px);
}

.auth-window {
  position: relative;
  width: min(540px, 100%);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 46px rgba(22, 27, 34, .08);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
}

.auth-form-mascot {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 2;
  display: block;
  width: 96px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 12px rgba(17, 24, 39, .13));
}

:root[data-theme="dark"] .auth-form-mascot {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .38));
}

@starting-style {
  .auth-window {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
}

.auth-window.is-register { margin-top: 0; }

.auth-form-wrap {
  padding: 42px 40px 38px;
  display: grid;
  text-align: center;
}

.auth-form-wrap h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  color: var(--text);
  font-weight: 850;
}

.auth-form-wrap > p {
  margin: 20px 0 36px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.forms {
  display: grid;
  gap: 28px;
  text-align: left;
}

.register-kind-switch {
  display: flex;
  gap: 10px;
  margin: -6px 0 12px;
}

.register-kind-switch button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.register-kind-switch button.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.register-kind-switch button:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.auth-form-wrap input {
  height: 48px;
  border-radius: 999px;
  border-color: var(--line);
  padding: 0 20px;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
}

.auth-form-wrap input::placeholder { color: #a2a3aa; }

.password-field {
  position: relative;
  display: block;
}

.password-field input { padding-right: 54px; }

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  --press-transform: translateY(-50%) scale(.97);
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    color var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    visibility 0s linear var(--motion-fast);
}

.password-field:has(input:not(:placeholder-shown)) .toggle-password {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.toggle-password:hover {
  background: transparent;
  color: var(--accent);
}

.toggle-password svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.toggle-password.active svg path:first-child {
  opacity: .35;
}

.register-kind-switch button,
.quick-register-row button,
.auth-form-wrap .form-actions button {
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-progress span,
  .auth-window,
  .register-kind-switch button,
  .quick-register-row button,
  .auth-form-wrap .form-actions button {
    transition-duration: 120ms !important;
  }

  .auth-window {
    transform: none;
  }

  .not-found-stage {
    animation: none;
  }

  .toggle-password:not(:disabled):active {
    transform: translateY(-50%);
  }
}

.auth-form-wrap .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.auth-form-wrap .form-actions button {
  min-width: 176px;
  height: 46px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.quick-register-row {
  margin-top: -12px;
  display: flex;
  justify-content: center;
}

.quick-register-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.quick-register-row button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.auth-switch {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.auth-switch button:hover {
  background: transparent;
  color: var(--accent);
}

@media (max-width: 680px) {
  .boot-brand .brand-logo { font-size: 36px; }
  .auth-screen { align-content: start; padding: 14px; place-items: start center; }
  .auth-logo-row { margin-top: 10px; transform: translateY(-6px); }
  .auth-form-mascot { right: 4px; bottom: 6px; width: clamp(52px, 14vw, 60px); }
  .auth-window { width: 100%; }
  .auth-window.is-register { margin-top: 0; }
  .auth-form-wrap { padding: 30px 20px; }
  .auth-form-wrap h2 { font-size: 26px; }
  .forms { gap: 18px; }
  .quick-register-row { margin-top: -6px; }
}

@media (max-width: 340px) {
  .auth-form-mascot { right: 3px; width: 48px; }
  .auth-switch { padding-right: 24px; }
}

@media (max-width: 820px) {
  .not-found-screen {
    padding: 20px;
  }

  .not-found-stage {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 0 56px;
  }

  .not-found-visual {
    min-height: 330px;
    border-radius: 24px;
  }

  .not-found-code {
    top: 2%;
    font-size: clamp(132px, 42vw, 210px);
  }

  .not-found-mascot {
    bottom: 12px;
    width: clamp(188px, 48vw, 225px);
  }

  .not-found-content {
    justify-items: center;
    text-align: center;
  }

  .not-found-content h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .not-found-route-chip {
    right: 14px;
    bottom: 14px;
  }
}

.two-factor-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 118, 18, .10), transparent 28%),
    linear-gradient(145deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, #fff) 100%);
}

.two-factor-shell {
  width: min(1040px, 100%);
  min-height: min(690px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(17, 24, 39, .14);
}

.two-factor-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  overflow: hidden;
  padding: 24px;
  background: #fbf8ef;
}

.two-factor-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(217, 118, 18, .20);
  border-radius: 22px;
  pointer-events: none;
}

.two-factor-art-frame {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}

.two-factor-art-frame img {
  width: min(100%, 410px);
  height: min(520px, 56svh);
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.two-factor-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px);
  text-align: left;
}

.two-factor-logo { align-self: flex-start; margin-bottom: 38px; }
.two-factor-logo .brand-logo { font-size: 24px; }

.two-factor-back svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.two-factor-card h1 {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI Variable Display", var(--font);
  font-size: clamp(32px, 3.4vw, 40px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.two-factor-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}
.two-factor-copy { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.two-factor-code-field { display: grid; gap: 6px; }
.two-factor-code-label { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; }

.two-factor-code-input {
  width: 100%;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: "Segoe UI Variable Display", var(--font);
  font-size: 25px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: .28em;
  text-align: center;
  padding: 0 14px 0 calc(14px + .32em);
  transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}

.two-factor-code-input:focus {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--line-strong));
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.two-factor-code-input.is-invalid { border-color: #d14343; box-shadow: 0 0 0 4px rgba(209, 67, 67, .10); }
.two-factor-code-input:disabled { opacity: .62; cursor: not-allowed; }

.two-factor-pgp-field,
.two-factor-pgp-response {
  display: grid;
  gap: 8px;
}

.two-factor-pgp-message {
  width: 100%;
  min-height: 154px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 13px 14px;
  font: 500 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.two-factor-pgp-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
  font: 600 13px/1 var(--font);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.two-factor-pgp-message:focus,
.two-factor-pgp-input:focus {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--line-strong));
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.two-factor-copy-button,
.two-factor-recovery-toggle {
  justify-self: start;
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 0 4px;
  font-size: 12px;
  font-weight: 650;
  transition: color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.two-factor-copy-button:hover,
.two-factor-recovery-toggle:hover { background: transparent; color: var(--text); }
.two-factor-copy-button:active,
.two-factor-recovery-toggle:active { transform: scale(.97); }
.two-factor-feedback { margin-top: 8px; }

.two-factor-attempts { min-height: 20px; display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--muted); font-size: 12px; }
.two-factor-attempt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out); }
.two-factor-attempt-dot.is-used { background: var(--line-strong); transform: scale(.82); }
.two-factor-status { min-height: 0; margin: 0; color: #c33d3d; font-size: 12px; line-height: 1.45; }
.two-factor-status:not(:empty) { margin-top: 2px; }

.two-factor-confirm {
  min-height: 50px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}
.two-factor-confirm:active { transform: scale(.98); }

.two-factor-back {
  align-self: center;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
}
.two-factor-back:hover { background: transparent; color: var(--text); }
.two-factor-back svg { width: 17px; height: 17px; }

@media (max-width: 760px) {
  .two-factor-screen { place-items: start center; padding: 12px; }
  .two-factor-shell { min-height: calc(100svh - 24px); grid-template-columns: 1fr; border-radius: 24px; }
  .two-factor-visual { min-height: 280px; max-height: 280px; padding: 10px; }
  .two-factor-visual::after { inset: 10px; border-radius: 17px; }
  .two-factor-art-frame { margin: 0; }
  .two-factor-art-frame img { width: min(215px, 58vw); height: 260px; object-position: center; }
  .two-factor-card { justify-content: flex-start; padding: 28px 22px 26px; }
  .two-factor-logo { align-self: flex-start; margin-bottom: 26px; }
  .two-factor-card h1 { font-size: 30px; }
  .two-factor-heading { gap: 6px; margin-bottom: 18px; }
  .two-factor-copy { font-size: 14px; }
  .two-factor-code-input { height: 58px; font-size: 22px; border-radius: 16px; }
  .two-factor-pgp-message { min-height: 132px; }
}

@media (max-width: 380px) {
  .two-factor-screen { padding: 0; }
  .two-factor-shell { min-height: 100svh; border: 0; border-radius: 0; }
  .two-factor-visual { min-height: 230px; max-height: 230px; padding: 8px; }
  .two-factor-art-frame { margin: 0; }
  .two-factor-art-frame img { width: min(176px, 56vw); height: 214px; }
  .two-factor-card { padding: 24px 18px; }
  .two-factor-logo { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .two-factor-code-input,
  .two-factor-confirm,
  .two-factor-attempt-dot { transition-duration: 120ms !important; }
}


.blocked-account-screen{position:fixed;inset:0;z-index:45;display:grid;place-items:center;min-height:100dvh;padding:clamp(18px,4vw,48px);overflow:auto;background:radial-gradient(circle at 20% 30%,rgba(112,124,145,.12),transparent 28%),radial-gradient(circle at 82% 76%,rgba(28,29,31,.055),transparent 25%),var(--bg)}
.blocked-account-shell{width:min(900px,100%);min-height:min(620px,calc(100dvh - 48px));display:grid;grid-template-columns:minmax(330px,.95fr) minmax(380px,1.05fr);overflow:hidden;border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:0 32px 90px rgba(17,24,39,.13);animation:blocked-account-enter 220ms var(--ease-out) both}
.blocked-account-visual{min-width:0;display:grid;place-items:center;padding:clamp(24px,4vw,38px);border-right:1px solid color-mix(in srgb,var(--line) 78%,transparent);background:#fbf7ef}
.blocked-account-art-frame{position:relative;width:min(100%,340px);aspect-ratio:2/3;margin:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface-soft)}
.blocked-account-art-frame img{width:100%;height:100%;display:block;object-fit:contain;background:#fbf7ef}
.blocked-account-art-frame figcaption{position:absolute;left:18px;bottom:18px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:9px;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--text);font-size:10px;font-weight:750;letter-spacing:.15em;box-shadow:0 8px 22px rgba(28,29,31,.08);transform:rotate(-2deg);backdrop-filter:blur(8px)}
.blocked-account-card{min-width:0;display:grid;grid-template-rows:auto 1fr auto;align-items:start;padding:clamp(34px,5vw,58px)}
.blocked-account-logo .brand-logo{width:fit-content;font-size:22px}
.blocked-account-heading{align-self:center}
.blocked-account-heading h1{max-width:380px;margin:0;font-size:clamp(36px,4vw,48px);font-weight:680;letter-spacing:-.04em;line-height:1.03;text-wrap:balance}
.blocked-account-action{justify-self:start;min-height:44px;padding:0 20px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font-size:13px;font-weight:580;transition:transform 160ms var(--ease-out),border-color 160ms var(--ease-out),background 160ms var(--ease-out)}
.blocked-account-action:active{transform:scale(.98)}
@media (hover:hover) and (pointer:fine){.blocked-account-action:hover{border-color:var(--line-strong);background:var(--surface-soft)}}
@media (max-width:720px){.blocked-account-screen{display:block;padding:0;background:var(--surface)}.blocked-account-shell{width:100%;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:minmax(280px,42dvh) 1fr;border:0;border-radius:0;box-shadow:none}.blocked-account-visual{padding:14px 24px 10px;border-right:0;border-bottom:1px solid var(--line)}.blocked-account-art-frame{width:min(100%,220px);height:100%;max-height:390px;aspect-ratio:auto;border-radius:18px}.blocked-account-art-frame figcaption{left:10px;bottom:10px;padding:6px 8px;font-size:8px}.blocked-account-card{min-height:0;grid-template-rows:auto 1fr auto;padding:22px 24px max(28px,env(safe-area-inset-bottom))}.blocked-account-logo .brand-logo{font-size:20px}.blocked-account-heading{align-self:center}.blocked-account-heading h1{font-size:34px}.blocked-account-action{min-height:44px}}
@media (max-width:380px),(max-height:720px) and (max-width:720px){.blocked-account-shell{grid-template-rows:minmax(238px,38dvh) 1fr}.blocked-account-visual{padding:12px 20px 9px}.blocked-account-art-frame{width:min(100%,184px);border-radius:16px}.blocked-account-card{padding-top:18px}.blocked-account-heading h1{font-size:31px}}
@keyframes blocked-account-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.blocked-account-shell{animation:none}.blocked-account-action{transition:none}}


.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 32, 42, .34);
  backdrop-filter: blur(7px);
  opacity: 1;
  transition: opacity var(--motion-modal) var(--ease-out);
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

@starting-style {
  .modal-backdrop:not(.hidden) {
    opacity: 0;
  }

  .modal-backdrop:not(.hidden) .modal-card {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}

.captcha-card { width: min(560px, 100%); }

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title-row h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.modal-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.icon-button:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.loading .refresh-icon { animation: spin .75s linear infinite; }

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

.captcha {
  display: grid;
  gap: 12px;
}

.captcha-prompt-canvas {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.captcha-retry-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 150px;
  margin: 12px 0 4px;
}

.captcha-tile {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border: 2px solid var(--line);
  padding: 0;
  min-height: 92px;
  aspect-ratio: 15 / 11;
  background: var(--surface-soft);
  box-shadow: none;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.captcha-tile:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.captcha-tile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 9%, transparent);
  transform: translateY(-1px);
}

.captcha-tile img.captcha-sprite-image {
  position: absolute;
  width: 300%;
  height: 300%;
  max-width: none;
  display: block;
  background: var(--surface-soft);
}

.captcha-sprite-0 { left: 0; top: 0; }
.captcha-sprite-1 { left: -100%; top: 0; }
.captcha-sprite-2 { left: -200%; top: 0; }
.captcha-sprite-3 { left: 0; top: -100%; }
.captcha-sprite-4 { left: -100%; top: -100%; }
.captcha-sprite-5 { left: -200%; top: -100%; }
.captcha-sprite-6 { left: 0; top: -200%; }
.captcha-sprite-7 { left: -100%; top: -200%; }
.captcha-sprite-8 { left: -200%; top: -200%; }

.captcha .form-actions {
  display: flex;
  justify-content: center;
}

.captcha-credentials-error {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 18px 12px;
  text-align: center;
}

.captcha-credentials-error.hidden { display: none; }

.captcha-credentials-error-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.captcha-credentials-error h3,
.captcha-credentials-error p { margin: 0; }

.captcha-credentials-error p {
  max-width: 340px;
  color: var(--muted);
}

.captcha-credentials-error button { margin-top: 10px; }

.credential-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
}

.credential-grid code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  word-break: break-all;
}

@media (hover: hover) and (pointer: fine) {
  .captcha-tile:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-card,
  .icon-button,
  .captcha-tile {
    transition-duration: 120ms !important;
  }

  .modal-card,
  .captcha-tile,
  .captcha-tile:hover,
  .captcha-tile.selected {
    transform: none;
  }

  .icon-button.loading .refresh-icon {
    animation: none;
  }
}

@media (max-width: 680px) {
  .modal-card { padding: 18px; }
  .captcha { gap: 9px; }
  .captcha-grid { gap: 7px; }
  .captcha-tile { min-height: 68px; }
}


.hidden {
  display: none !important;
}

.market-shell {
  min-height: 100vh;
  background: var(--bg);
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 230, 234, .72);
}

.market-header-inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.market-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.market-nav::-webkit-scrollbar { display: none; }

.nav-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  background: transparent;
  color: #8a8d96;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-soft);
  color: #111317;
}

.nav-link-with-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-unread-count,
.messages-list-total,
.conversation-unread-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

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

.mobile-header-forum-button,
.mobile-profile-menu {
  display: none;
}

.mobile-profile-menu-host {
  position: relative;
}

.mobile-dock {
  display: none;
}

.mobile-dock-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-radius: 22px;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 14px 42px rgba(17, 24, 39, .18), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(22px) saturate(1.35);
}

.mobile-dock-track:has(.mobile-dock-admin:not(.hidden)) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mobile-dock-track:has(.mobile-dock-admin:not(.hidden)) .mobile-dock-label {
  font-size: clamp(8.5px, 2.35vw, 9.5px);
}

.mobile-dock-item {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-rows: 25px auto;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 16px;
  padding: 5px 2px 4px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  isolation: isolate;
  transition: color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.mobile-dock-item::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  opacity: 0;
  transform: scale(.93);
  transition: opacity 180ms ease, transform 180ms var(--ease-out), border-color 180ms ease;
}

.mobile-dock-item.active {
  color: var(--text);
}

.mobile-dock-item.active::before {
  border-color: color-mix(in srgb, var(--text) 42%, var(--line));
  background: color-mix(in srgb, var(--text) 7%, var(--surface));
  opacity: 1;
  transform: scale(1);
}

.mobile-dock-item:active {
  transform: scale(.96);
}

.mobile-dock-item:focus,
.mobile-dock-item:focus-visible {
  outline: none;
}

.mobile-dock-item:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 72%, var(--line));
}

.mobile-dock-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transition: color 160ms ease, transform 180ms var(--ease-out);
}

.mobile-dock-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-dock-item.active .mobile-dock-icon {
  color: var(--text);
  transform: translateY(-1px);
}

.mobile-dock-label {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-dock-count {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  padding: 0 4px;
  font-size: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.balance-chip {
  min-width: 74px;
  height: 48px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: #111317;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}

.balance-chip:hover {
  background: var(--surface-soft);
}

.balance-chip strong {
  font-size: 14px;
  line-height: 1.1;
}

.balance-chip span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  margin-top: 3px;
}

.notification-center { position: relative; flex: 0 0 auto; }

.notification-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  transition: border-color var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}
.notification-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.notification-button:active { transform: scale(.96); }
.notification-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-unread-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 50%; background: #e53e3e; box-sizing: content-box; }

.notifications-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: min(390px, calc(100vw - 28px));
  max-height: min(600px, calc(100dvh - 88px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 24, 39, .18);
  transform-origin: top right;
  animation: notifications-enter 180ms var(--ease-out);
}
@keyframes notifications-enter { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.notifications-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 18px; }
.notifications-popover-head > div { display: grid; gap: 4px; }
.notifications-popover-head strong { color: var(--text); font-size: 16px; }
.notifications-popover-head span { color: var(--muted); font-size: 11px; }
.notifications-popover-head button { min-height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--text); font-size: 11px; font-weight: 700; white-space: nowrap; }
.notifications-popover-head button:hover { background: transparent; color: var(--text); }
.notifications-list { min-height: 0; max-height: min(480px, calc(100dvh - 176px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.notification-item { width: 100%; min-height: 0; display: grid; grid-template-columns: 38px 1fr 7px; gap: 11px; align-items: start; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); box-shadow: none; text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-soft); }
.notification-item.is-unread { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.notification-item-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text); }
.notification-item-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-admin-role .notification-item-icon { border-color: color-mix(in srgb, #19a66b 48%, var(--line)); background: color-mix(in srgb, #19a66b 10%, var(--surface)); color: color-mix(in srgb, #19a66b 86%, var(--text)); }
.notification-admin-role .notification-item-copy strong { color: color-mix(in srgb, #19a66b 82%, var(--text)); }
.notification-forum .notification-item-icon { border-color: color-mix(in srgb, #6d8cff 42%, var(--line)); background: color-mix(in srgb, #6d8cff 10%, var(--surface)); color: color-mix(in srgb, #6d8cff 82%, var(--text)); }
.notification-item-copy { min-width: 0; display: grid; gap: 5px; }
.notification-item-copy strong { font-size: 13px; line-height: 1.25; }
.notification-item-copy span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-item-copy time { color: color-mix(in srgb, var(--muted) 74%, transparent); font-size: 10px; }
.notification-item > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #e53e3e; }
.notification-staff-invite { display: block; padding: 0; }
.notification-item-main { width: 100%; display: grid; grid-template-columns: 38px 1fr 7px; gap: 11px; align-items: start; padding: 16px 18px 10px; border: 0; border-radius: 0; background: transparent; color: inherit; box-shadow: none; text-align: left; }
.notification-item-main > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #e53e3e; }
.notification-invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 15px 67px; }
.notification-invite-actions button { min-height: 34px; padding: 7px 12px; border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: none; font-size: 12px; }
.notification-invite-actions button.primary { border-color: #111317; background: #111317; color: #fff; }
.notifications-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; color: var(--muted); text-align: center; }
.notifications-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); }
.notifications-empty-icon img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1) brightness(0); }
:root[data-theme="dark"] .notifications-empty-icon img { filter: grayscale(1) brightness(0) invert(1); }
.notifications-empty strong { color: var(--text); font-size: 14px; }
.notifications-empty > span:last-child { max-width: 240px; font-size: 12px; line-height: 1.5; }
.notifications-loading { display: grid; gap: 12px; padding: 14px; }
.notification-skeleton { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: start; padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.notification-skeleton > i,
.notification-skeleton b { display: block; border-radius: 999px; background: color-mix(in srgb, var(--line-strong) 62%, var(--surface)); animation: notification-skeleton-pulse 1.2s ease-in-out infinite alternate; }
.notification-skeleton > i { width: 38px; height: 38px; border-radius: 11px; }
.notification-skeleton > span { display: grid; gap: 7px; padding-top: 2px; }
.notification-skeleton b:nth-child(1) { width: 58%; height: 10px; }
.notification-skeleton b:nth-child(2) { width: 94%; height: 8px; }
.notification-skeleton b:nth-child(3) { width: 34%; height: 7px; }
@keyframes notification-skeleton-pulse { from { opacity: .46; } to { opacity: .9; } }

.route-loading-skeleton {
  display: block;
  min-height: 420px;
  padding: 6px 0 40px;
}

.route-skeleton-screen {
  display: grid;
  gap: 18px;
}

.route-skeleton-screen i,
.route-skeleton-title span,
.wallet-history-skeleton i {
  display: block;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--surface-soft) 25%, color-mix(in srgb, var(--line) 72%, var(--surface)) 42%, var(--surface-soft) 62%);
  background-size: 240% 100%;
  animation: routeSkeletonShimmer 1.45s ease-in-out infinite;
}

.route-skeleton-title {
  display: grid;
  gap: 9px;
  width: min(340px, 72%);
}

.route-skeleton-title i,
.route-skeleton-title span {
  display: block;
  border-radius: 999px;
}

.route-skeleton-title i { width: 48%; height: 24px; }
.route-skeleton-title span { width: 76%; height: 11px; }

.route-skeleton-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
}

.route-skeleton-tabs i {
  width: 108px;
  height: 42px;
}

.route-skeleton-tabs i:nth-child(2) { width: 88px; }
.route-skeleton-tabs i:nth-child(3) { width: 96px; }

.route-skeleton-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.route-skeleton-product-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
}

.route-skeleton-product-card > i:first-child {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
}

.route-skeleton-product-card span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.route-skeleton-product-card span:nth-child(2) { width: 78%; height: 12px; }
.route-skeleton-product-card span:nth-child(3) { width: 56%; }
.route-skeleton-product-card span:nth-child(4) { width: 38%; }

.route-skeleton-wallet {
  gap: 20px;
}

.route-skeleton-wallet-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px 26px;
}

.route-skeleton-wallet-balance,
.route-skeleton-wallet-calculator {
  display: grid;
  align-content: start;
  gap: 18px;
}

.route-skeleton-wallet .skeleton-kicker {
  width: 104px;
  height: 11px;
}

.route-skeleton-wallet .skeleton-balance {
  display: flex;
  align-items: center;
  gap: 13px;
}

.route-skeleton-wallet .skeleton-balance i:first-child {
  width: 30px;
  height: 30px;
}

.route-skeleton-wallet .skeleton-balance i:last-child {
  width: min(230px, 58%);
  height: 25px;
}

.route-skeleton-wallet .skeleton-actions {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.route-skeleton-wallet .skeleton-actions i {
  width: 126px;
  height: 48px;
}

.route-skeleton-wallet .skeleton-card-title,
.route-skeleton-wallet-history > .skeleton-card-title {
  width: 138px;
  height: 16px;
}

.route-skeleton-wallet-calculator > i:not(.skeleton-card-title):not(.skeleton-note) {
  width: 100%;
  height: 50px;
}

.route-skeleton-wallet-calculator .skeleton-note {
  width: 72%;
  height: 10px;
}

.route-skeleton-wallet-history {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
}

.route-skeleton-wallet-row,
.wallet-history-skeleton > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px minmax(160px, .8fr) minmax(240px, 1.2fr);
  gap: 18px;
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
}

.route-skeleton-wallet-row i,
.wallet-history-skeleton i {
  width: 72%;
  height: 10px;
}

.route-skeleton-wallet-row i:nth-child(2),
.wallet-history-skeleton i:nth-child(2) { width: 62%; }
.route-skeleton-wallet-row i:nth-child(3),
.wallet-history-skeleton i:nth-child(3) { width: 82%; }
.route-skeleton-wallet-row i:nth-child(4),
.wallet-history-skeleton i:nth-child(4) { width: 56%; }

.wallet-route-loading {
  display: grid;
  gap: 18px;
}

.wallet-history-skeleton {
  display: grid;
  gap: 12px;
  padding: 10px 22px 22px;
}

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

.route-skeleton-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) 130px;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 18px 20px;
}

.route-skeleton-list-row > div {
  display: grid;
  gap: 10px;
}

.route-skeleton-list-row > div i:first-child { width: 72%; height: 13px; }
.route-skeleton-list-row > div i:last-child { width: 48%; height: 9px; }
.route-skeleton-list-row > i { width: 100%; height: 38px; }

.route-skeleton-message-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.route-skeleton-message-shell > aside {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 14px;
}

.route-skeleton-message-shell .skeleton-search {
  width: 100%;
  height: 42px;
  margin-bottom: 5px;
}

.route-skeleton-conversation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  border-radius: 12px;
  padding: 9px;
}

.route-skeleton-conversation > i:first-child { width: 42px; height: 42px; }
.route-skeleton-conversation > i:last-child { width: 24px; height: 8px; }
.route-skeleton-conversation > div { display: grid; gap: 8px; }
.route-skeleton-conversation > div i:first-child { width: 68%; height: 11px; }
.route-skeleton-conversation > div i:last-child { width: 92%; height: 8px; }

.route-skeleton-chat-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.route-skeleton-chat-pane > header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.route-skeleton-chat-pane > header > i { width: 44px; height: 44px; }
.route-skeleton-chat-pane > header > div { display: grid; gap: 8px; }
.route-skeleton-chat-pane > header > div i:first-child { width: 34%; height: 12px; }
.route-skeleton-chat-pane > header > div i:last-child { width: 52%; height: 8px; }
.route-skeleton-chat-pane > main { display: grid; align-content: end; gap: 14px; padding: 24px 20px; }
.route-skeleton-chat-pane > main i { width: 42%; height: 54px; border-radius: 16px; }
.route-skeleton-chat-pane > main i:nth-child(2) { width: 55%; margin-left: auto; }
.route-skeleton-chat-pane > main i:nth-child(3) { width: 34%; }
.route-skeleton-chat-pane > footer { display: grid; grid-template-columns: 1fr 44px; gap: 10px; border-top: 1px solid var(--line); padding: 14px; }
.route-skeleton-chat-pane > footer i { width: 100%; height: 44px; }

.route-skeleton-storefront {
  gap: 20px;
}

.route-skeleton-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 300;
  border-radius: 0 !important;
}

.route-skeleton-store-identity {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-top: -48px;
  padding: 0 24px;
}

.route-skeleton-store-identity .route-skeleton-avatar {
  width: 116px;
  height: 116px;
  border: 6px solid var(--surface);
  border-radius: 28px;
}

.route-skeleton-store-identity > div {
  display: grid;
  gap: 9px;
  padding-bottom: 6px;
}

.route-skeleton-store-identity > div i:nth-child(1) { width: min(260px, 48%); height: 25px; }
.route-skeleton-store-identity > div i:nth-child(2) { width: min(460px, 72%); height: 10px; }
.route-skeleton-store-identity > div i:nth-child(3) { width: min(340px, 60%); height: 10px; }

.route-skeleton-store-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.route-skeleton-store-body > aside {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 14px 0;
}

.route-skeleton-store-body > aside i:nth-child(1) { width: 74%; height: 16px; }
.route-skeleton-store-body > aside i:nth-child(2) { width: 100%; height: 52px; }
.route-skeleton-store-body > aside i:nth-child(3) { width: 88%; height: 52px; }
.route-skeleton-store-body > main { display: grid; gap: 18px; }

.route-skeleton-profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.route-skeleton-profile-layout > aside,
.route-skeleton-profile-layout > section,
.route-skeleton-admin-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}

.route-skeleton-profile-layout > aside i { width: 100%; height: 58px; border-radius: 11px; }
.route-skeleton-profile-layout > section { gap: 18px; }
.route-skeleton-profile-layout .skeleton-card-title { width: 160px; height: 18px; }

.route-skeleton-profile-identity {
  display: grid;
  grid-template-columns: 116px minmax(0, .7fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}

.route-skeleton-profile-identity > i { width: 116px; height: 116px; }
.route-skeleton-profile-identity > div { display: grid; gap: 10px; }
.route-skeleton-profile-identity > div i:first-child { width: 62%; height: 15px; }
.route-skeleton-profile-identity > div i:last-child { width: 84%; height: 42px; }

.route-skeleton-form-row {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 72px;
  border-top: 1px solid var(--line);
  padding: 12px 4px 0;
}

.route-skeleton-form-row i:first-child { width: 62%; height: 12px; }
.route-skeleton-form-row i:last-child { width: 100%; height: 46px; }

.route-skeleton-admin-panel {
  gap: 12px;
  padding: 20px;
}

.route-skeleton-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 4px;
}

.route-skeleton-admin-head i:first-child { width: 220px; height: 20px; }
.route-skeleton-admin-head i:last-child { width: 140px; height: 40px; }

body.is-authorized-hydrating #headerBtcBalance,
body.is-authorized-hydrating #headerRubBalance {
  color: transparent;
  border-radius: 999px;
  background: var(--surface-soft);
}

@keyframes routeSkeletonShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 1180px) {
  .route-skeleton-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-skeleton-wallet-overview { grid-template-columns: 1fr; }
  .route-skeleton-wallet-row,
  .wallet-history-skeleton > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-skeleton-profile-layout,
  .route-skeleton-store-body { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .route-loading-skeleton { padding: 10px 0 104px; }
  .route-skeleton-screen { gap: 14px; }
  .route-skeleton-title { width: min(260px, 72%); }
  .route-skeleton-title i { height: 20px; }
  .route-skeleton-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .route-skeleton-product-card { gap: 7px; padding: 7px; }
  .route-skeleton-product-card span:nth-child(2) { height: 10px; }
  .route-skeleton-tabs { gap: 7px; overflow: hidden; }
  .route-skeleton-tabs i { width: 92px; height: 40px; flex: 0 0 auto; }
  .route-skeleton-wallet-overview { gap: 24px; padding: 18px; }
  .route-skeleton-wallet-history { padding: 17px; }
  .route-skeleton-wallet-row,
  .wallet-history-skeleton > div {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 104px;
  }
  .wallet-history-skeleton { padding: 8px 14px 16px; }
  .route-skeleton-list-row {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 152px;
    padding: 16px;
  }
  .route-skeleton-list-row > i { width: 118px; }
  .route-skeleton-message-shell { grid-template-columns: 1fr; min-height: 520px; }
  .route-skeleton-message-shell > aside { border-right: 0; }
  .route-skeleton-chat-pane { display: none; }
  .route-skeleton-store-identity { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; margin-top: -32px; padding: 0 10px; }
  .route-skeleton-store-identity .route-skeleton-avatar { width: 82px; height: 82px; border-width: 4px; border-radius: 22px; }
  .route-skeleton-store-identity > div i:nth-child(1) { width: 68%; height: 18px; }
  .route-skeleton-store-identity > div i:nth-child(2) { width: 92%; }
  .route-skeleton-store-identity > div i:nth-child(3) { width: 72%; }
  .route-skeleton-store-body > aside { display: none; }
  .route-skeleton-profile-layout > aside { grid-template-columns: repeat(4, minmax(110px, 1fr)); overflow: hidden; padding: 10px; }
  .route-skeleton-profile-layout > aside i { height: 48px; }
  .route-skeleton-profile-layout > section { padding: 13px; }
  .route-skeleton-profile-identity { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; min-height: 132px; padding: 14px; }
  .route-skeleton-profile-identity > i { width: 82px; height: 82px; }
  .route-skeleton-profile-identity > div:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .route-skeleton-form-row { grid-template-columns: 1fr; gap: 10px; }
  .route-skeleton-admin-panel { padding: 14px; }
  .route-skeleton-admin-head i:first-child { width: 46%; }
  .route-skeleton-admin-head i:last-child { width: 28%; }
}

@media (prefers-reduced-motion: reduce) {
  .route-skeleton-screen i,
  .route-skeleton-title span,
  .wallet-history-skeleton i {
    animation-duration: 2.8s;
  }
}

.profile-button {
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .07);
  overflow: hidden;
}

.profile-button:hover {
  background: #fff;
  border-color: #d7dce4;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .10);
}

.profile-button img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.logout-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111317;
  border: 1px solid var(--line);
  box-shadow: none;
}

.logout-button:hover { background: var(--surface-soft); }

.logout-button.loading,
.logout-button.loading:disabled {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

.logout-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(1px);
}

.icon-fallback-label {
  display: none;
  white-space: nowrap;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

button.icon-fallback > img,
button.icon-fallback > svg {
  display: none !important;
}

button.icon-fallback > .icon-fallback-label {
  display: inline;
}

.logout-button.icon-fallback,
.profile-button.icon-fallback,
.icon-action.icon-fallback,
.wallet-address-copy button.icon-fallback {
  width: auto;
  min-width: 42px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0;
}

.market-main {
  width: min(1420px, calc(100% - 48px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 34px 0 54px;
}

.market-section {
  margin-top: 34px;
}

.market-section:first-child { margin-top: 0; }

.nav-link,
.balance-chip,
.logout-button,
.profile-button,
.segment,
.store-card,
.showcase-card,
.showcase-card-main,
.product-thumb-button,
.product-packaging-tabs button,
.product-packaging-card,
.ghost-button,
.manage-tab,
.admin-account-toggle button,
.icon-action,
.profile-menu-tile,
.profile-tab,
.profile-city-toggle,
.profile-city-option,
.seller-avatar-upload,
.preference-option,
.wallet-currency-tab,
.wallet-address-copy button,
.wallet-modal-close,
.product-edit-action,
.product-packaging-edit-action,
.product-photo-close,
.product-photo-nav {
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .profile-button:hover,
  .showcase-card:hover {
    transform: translateY(-1px);
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head.compact {
  align-items: center;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  line-height: 1.15;
  color: #050506;
}

.section-head h1 {
  font-size: 25px;
  font-weight: 600;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stores-section .section-head {
  margin-bottom: 16px;
}

.stores-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.stores-search {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stores-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--line-strong) 14%, transparent);
}

.stores-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.stores-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.stores-search input:focus,
.stores-search input:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.stores-search input::-webkit-search-cancel-button,
.stores-search input::-webkit-search-decoration {
  display: none;
}

.stores-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.segment-control {
  display: inline-flex;
  gap: 8px;
  padding: 0;
}

.segment {
  min-height: 46px;
  padding: 0 18px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid transparent;
  box-shadow: none;
  font-weight: 520;
}

.segment:hover,
.segment.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.stores-empty-state {
  grid-column: 1 / -1;
  min-height: clamp(300px, 44vh, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 42px;
  text-align: center;
}

.stores-empty-state img {
  display: block;
  width: clamp(200px, 22vw, 280px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.stores-empty-state p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.store-card {
  min-width: 0;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .045);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.store-card:hover {
  border-color: #cfd5dd;
  background: #fdfefe;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .12);
}

.store-card-skeleton {
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.store-card-skeleton > i,
.store-card-skeleton > span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--surface-soft) 25%, color-mix(in srgb, var(--line) 72%, var(--surface)) 42%, var(--surface-soft) 62%);
  background-size: 240% 100%;
  animation: routeSkeletonShimmer 1.45s ease-in-out infinite;
}

.store-card-skeleton > i {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.store-card-skeleton > span:nth-of-type(1) { width: 68%; height: 14px; }
.store-card-skeleton > span:nth-of-type(2) { width: 92%; height: 9px; }
.store-card-skeleton > span:nth-of-type(3) { width: 48%; height: 9px; }

.store-card[role="button"] {
  cursor: pointer;
}

.store-card[role="button"]:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
}

.store-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--surface-soft);
}

.store-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.store-cover .store-cover-backdrop {
  position: absolute;
  inset: -8%;
  z-index: 0;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(14px) saturate(.82);
  opacity: .28;
}

.store-cover .store-cover-image {
  background: transparent;
}

.store-title {
  min-width: 0;
  margin-top: 9px;
  color: #111317;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-subtitle {
  height: 34px;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.store-subtitle.is-empty {
  visibility: hidden;
}

.live-chip,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.storefront-content,
.showcase-layout {
  display: grid;
  gap: 16px;
}

.showcase-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
}

.showcase-list-panel,
.showcase-create-panel {
  min-width: 0;
}

.showcase-list-panel .role-panel-head,
.showcase-create-panel .role-panel-head {
  margin-bottom: 16px;
}

.showcase-list-panel .role-panel-head h3,
.showcase-create-panel .role-panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.showcase-list-panel .role-panel-head span,
.showcase-create-panel .role-panel-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.showcase-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.showcase-card-main {
  width: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.showcase-card-main:hover {
  background: transparent;
  color: var(--text);
}

.showcase-card-main:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 4px;
}

.listing-visibility-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(220, 122, 20, .34);
  border-radius: 999px;
  background: #fff6eb;
  color: #a75608;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
}

.showcase-card > .listing-visibility-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  color: #a75608;
  font-size: 11px;
  box-shadow: 0 4px 14px rgba(43, 31, 18, .09);
}

.showcase-card.is-hidden-listing .showcase-card-main > img {
  opacity: .72;
  filter: saturate(.62);
}

.showcase-card:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--text);
}

.showcase-card-main > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
  background: var(--surface-soft);
}

img.is-listing-image-fallback,
img[data-media-state="fallback"] {
  object-fit: contain !important;
  padding: 20%;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--line-strong) 28%, var(--surface-soft)), var(--surface-soft) 68%);
  filter: drop-shadow(0 10px 22px color-mix(in srgb, #000 18%, transparent));
}

:root[data-theme="dark"] img.is-listing-image-fallback,
:root[data-theme="dark"] img[data-media-state="fallback"] {
  filter: brightness(1.18) drop-shadow(0 12px 24px rgba(0, 0, 0, .34));
}

.showcase-card span {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-card small {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-card b {
  color: var(--text);
  font-size: 13px;
}

.showcase-create-panel {
  position: sticky;
  top: 100px;
}

.showcase-create-panel label,
.file-field {
  display: grid;
  gap: 7px;
  color: #2b2f36;
  font-size: 13px;
  font-weight: 600;
}

.showcase-create-panel input,
.showcase-create-panel textarea,
.showcase-create-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
}

.showcase-create-panel textarea {
  min-height: 112px;
  padding: 13px 15px;
  resize: vertical;
  line-height: 1.45;
}

.showcase-create-panel input:focus,
.showcase-create-panel textarea:focus,
.showcase-create-panel select:focus {
  border-color: var(--line-strong);
}

.file-field input {
  padding: 11px 14px;
}

.showcase-create-panel > button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.showcase-detail {
  margin-top: 16px;
}

.showcase-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.showcase-detail-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-soft);
}

.showcase-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.showcase-detail-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 42px;
}

.showcase-detail-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.showcase-detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.showcase-detail-body strong {
  color: var(--text);
  font-size: 16px;
}

.showcase-detail-body button {
  justify-self: start;
  min-height: 44px;
}

.storefront-head-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.storefront-head-card img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-soft);
}

.storefront-head-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.storefront-head-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.storefront-section-head {
  display: none;
}

.storefront-content {
  display: block;
}

.storefront-page {
  min-width: 0;
}

.storefront-cover {
  position: relative;
  aspect-ratio: 32 / 5;
  min-height: 160px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,0) 42%),
    linear-gradient(118deg, transparent 0 23%, rgba(0,0,0,.08) 23% 31%, transparent 31% 54%, rgba(0,0,0,.07) 54% 61%, transparent 61%),
    linear-gradient(180deg, #8b8b8b 0%, #f5f5f5 100%);
  overflow: hidden;
}

.storefront-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.storefront-banner-upload {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #17191d;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(22, 27, 36, .14);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.storefront-banner-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.storefront-banner-upload-icon,
.storefront-banner-upload-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.storefront-banner-upload-spinner {
  display: none;
}

.storefront-banner-upload.loading {
  cursor: wait;
  pointer-events: none;
}

.storefront-banner-upload.loading .storefront-banner-upload-icon {
  display: none;
}

.storefront-banner-upload.loading .storefront-banner-upload-spinner {
  display: block;
}

.storefront-banner-upload-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 64px));
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .16);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.storefront-banner-upload-tip strong {
  font-size: 13px;
  font-weight: 650;
}

.storefront-banner-upload-tip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.storefront-banner-upload:focus-within {
  outline: 2px solid rgba(241, 127, 17, .38);
  outline-offset: 3px;
}

.storefront-banner-upload:focus-within .storefront-banner-upload-tip {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .storefront-banner-upload:hover {
    transform: translateY(-1px);
    border-color: rgba(241, 127, 17, .42);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .18);
  }
  .storefront-banner-upload:hover .storefront-banner-upload-tip {
    opacity: 1;
    transform: translateY(0);
  }
}

.storefront-banner-upload:active {
  transform: scale(.97);
}

.storefront-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 24px 26px 28px;
  margin-top: 0;
}

.storefront-sidebar {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.storefront-avatar {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  object-fit: cover;
  border: 7px solid var(--surface);
  background: var(--surface-soft);
  box-shadow: 0 16px 34px rgba(17, 24, 39, .14);
}

.storefront-breadcrumb,
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.storefront-breadcrumb strong,
.product-breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}

.storefront-breadcrumb button,
.product-breadcrumb button {
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  box-shadow: none;
  font-weight: 500;
}

.storefront-breadcrumb button:hover,
.product-breadcrumb button:hover {
  color: var(--text);
  background: transparent;
}

.storefront-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.storefront-name-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1.1;
}

.storefront-name-edit,
.storefront-name-cancel {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
}

.storefront-name-edit img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

:root[data-theme="dark"] .storefront-name-edit img {
  filter: invert(1);
  opacity: .88;
}

.storefront-name-edit:hover,
.storefront-name-cancel:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.storefront-name-edit:active,
.storefront-name-cancel:active,
.storefront-name-save:active {
  transform: scale(.96);
}

.storefront-name-edit:focus-visible,
.storefront-name-cancel:focus-visible,
.storefront-name-save:focus-visible,
.storefront-name-editor input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.storefront-name-editor {
  min-width: min(360px, 100%);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 7px;
}

.storefront-name-editor input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}

.storefront-name-save {
  position: relative;
  min-width: 104px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 11px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
}

.storefront-name-save:disabled {
  opacity: 1;
  cursor: wait;
}

.storefront-name-save-text {
  display: block;
  transition: opacity var(--motion-fast) var(--ease-out);
}

.storefront-name-save[aria-busy="true"] .storefront-name-save-text {
  opacity: 0;
}

.storefront-name-save-spinner {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .72s linear infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .storefront-name-save-spinner {
    animation: none;
  }
}

.storefront-name-editor.is-busy {
  opacity: .76;
}

@media (max-width: 620px) {
  .storefront-name-row {
    gap: 7px;
  }

  .storefront-name-row h2 {
    font-size: 24px;
  }

  .storefront-name-editor {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .storefront-name-editor input {
    grid-column: 1 / -1;
    font-size: 20px;
  }
}

.storefront-description-preview {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.storefront-description-preview p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.storefront-description-preview button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.storefront-description-preview button:hover,
.storefront-description-preview button:focus-visible {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.storefront-description-backdrop {
  z-index: 225;
  padding: 20px;
}

.storefront-description-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.storefront-description-modal > .plain-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.storefront-description-modal header {
  display: grid;
  gap: 5px;
  padding-right: 42px;
}

.storefront-description-modal header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.storefront-description-modal h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
}

.storefront-description-full {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .storefront-description-backdrop {
    padding: 12px;
  }

  .storefront-description-modal {
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
    padding: 24px 20px;
  }
}

.storefront-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0 2px;
}

.storefront-stats {
  display: grid;
  gap: 24px;
  margin: 0;
}

.storefront-stats div {
  display: grid;
  gap: 5px;
}

.storefront-stats dt {
  color: var(--muted);
  font-size: 14px;
}

.storefront-stats dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.storefront-rating-star {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: #f5b51b;
  filter: drop-shadow(0 2px 5px rgba(245, 181, 27, .22));
}

@media (max-width: 720px) {
  .stores-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .stores-search {
    width: 100%;
  }

  .stores-toolbar .segment-control {
    width: 100%;
  }

  .stores-toolbar .segment {
    flex: 1 1 0;
  }
}

.storefront-stat-edit {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
}

.storefront-stat-edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-store-order-count-modal {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.admin-store-order-count-modal > h3,
.admin-store-order-count-modal > p { margin: 0; }
.admin-store-order-count-modal > p { color: var(--muted); line-height: 1.5; }
.admin-store-order-count-modal > label { display: grid; gap: 8px; }
.admin-store-order-count-modal > label span { font-weight: 700; }
.admin-store-order-count-modal > label input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 18px;
}

.storefront-chat-button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.storefront-chat-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.storefront-chat-button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .storefront-chat-button:hover { box-shadow: 0 9px 24px color-mix(in srgb, var(--text) 18%, transparent); } }

.storefront-chat-backdrop { padding: 20px; overflow-x: hidden; overflow-y: auto; }
.storefront-chat-backdrop { z-index: 430; }
.storefront-chat-modal {
  position: relative;
  width: min(calc(100vw - 40px), 590px);
  min-width: 0;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  margin: auto;
  display: grid;
  gap: 18px;
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
  padding: 26px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style { .storefront-chat-modal { opacity: 0; transform: translateY(8px) scale(.985); } }
.storefront-chat-close { position: absolute; top: 15px; right: 15px; }
.storefront-chat-modal header { padding-right: 40px; }
.storefront-chat-modal header > span { color: var(--muted); font-size: 12px; }
.storefront-chat-modal header h3 { margin: 4px 0 6px; font-size: 23px; }
.storefront-chat-modal header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.storefront-chat-recipients { min-width: 0; display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
.storefront-chat-recipients legend { margin-bottom: 8px; font-weight: 600; }
.storefront-chat-recipients select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 12px 38px 12px 13px; font: inherit; }
.storefront-chat-recipients select:focus { border-color: var(--line-strong); outline: 2px solid color-mix(in srgb, var(--text) 10%, transparent); outline-offset: 1px; }
.storefront-chat-recipient-card { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); padding: 9px 11px; }
.storefront-chat-recipient-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.storefront-chat-recipient-card > span { min-width: 0; display: grid; gap: 2px; }
.storefront-chat-recipient-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storefront-chat-recipient-card small { color: var(--muted); }
.storefront-chat-recipients > label {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  cursor: pointer;
}
.storefront-chat-recipients input { position: absolute; opacity: 0; pointer-events: none; }
.storefront-chat-recipients img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.storefront-chat-recipients label > span { min-width: 0; display: grid; gap: 2px; }
.storefront-chat-recipients strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storefront-chat-recipients small { color: var(--muted); }
.storefront-chat-recipients label > i { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; }
.storefront-chat-recipients label:has(input:checked) { border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
.storefront-chat-recipients label:has(input:checked) > i { border: 5px solid var(--text); }
.storefront-chat-loading { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.storefront-chat-field { display: grid; gap: 7px; }
.storefront-chat-field > span { font-weight: 600; }
.storefront-chat-field :is(input, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); padding: 11px 13px; font: inherit; }
.storefront-chat-field textarea { min-height: 126px; resize: vertical; }
.storefront-chat-field :is(input, textarea):focus { border-color: var(--line-strong); outline: 2px solid color-mix(in srgb, var(--text) 10%, transparent); outline-offset: 1px; }
.storefront-chat-actions { display: flex; justify-content: flex-end; gap: 9px; }
.storefront-chat-actions button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .storefront-chat-modal, .storefront-chat-button { transition: none; } }

.storefront-products {
  min-width: 0;
  display: grid;
  gap: 28px;
  padding-top: 182px;
}

.storefront-product-tabs,
.product-position-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.storefront-product-tabs button,
.product-position-tabs button,
.product-city-filter {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  font-weight: 600;
}

.storefront-product-tabs button.active,
.product-position-tabs button.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.storefront-product-tabs span,
.product-position-tabs span {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 500;
}

.storefront-add-listing {
  background: var(--button-bg) !important;
  color: var(--button-text) !important;
  border-color: var(--button-bg) !important;
}

.storefront-primary-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.store-coupon-modal {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
}

.store-coupon-modal > .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px;
  min-height: 32px !important;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 0;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.store-coupon-modal > .modal-close:hover {
  background: color-mix(in srgb, var(--text) 10%, var(--surface));
  color: var(--text);
}

.store-coupon-modal-head {
  padding-right: 44px;
  margin-bottom: 22px;
}

.store-coupon-modal-head h2 {
  margin: 0 0 8px;
}

.store-coupon-modal-head p {
  color: var(--muted);
  margin: 0;
}

.store-address-registry {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.store-address-registry-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.store-address-registry-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.store-address-registry-head h3,
.store-address-registry-head p { margin: 0; }
.store-address-registry-head h3 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.store-address-registry-head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.store-address-subtabs {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  padding: 3px;
}

.store-address-subtabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 560;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.store-address-subtabs button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 7%, transparent);
}

.store-address-subtabs button:active { transform: scale(.97); }
.store-address-subtabs button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 16%, transparent);
  outline-offset: 2px;
}

.store-address-subtabs span {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.store-address-registry-mode {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 3px;
}

.store-address-registry-mode button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  box-shadow: none;
}

.store-address-registry-mode button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 7%, transparent); }
.store-address-registry-mode span { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface-soft); font-size: 10px; }

.store-order-registry,
.store-order-list { min-width: 0; display: grid; gap: 10px; }
.store-order-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .36fr); gap: 10px; }
.store-order-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.store-order-filters input,
.store-order-filters select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 0 12px; outline: 0; font: inherit; font-size: 12px; }
.store-order-filters input:focus,
.store-order-filters select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 6%, transparent); }
.store-order-row { min-width: 0; display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(130px, .8fr) minmax(120px, .7fr) minmax(145px, .8fr) auto; align-items: center; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.store-order-row > div { min-width: 0; min-height: 72px; display: grid; align-content: center; gap: 4px; border-right: 1px solid var(--line); padding: 11px 13px; }
.store-order-row span,
.store-order-row small { color: var(--muted); font-size: 10px; }
.store-order-row strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.store-order-row button { min-height: 38px; margin: 0 12px; }

.store-order-detail-backdrop { padding: 18px; overflow: hidden; background: color-mix(in srgb, #111 45%, transparent); backdrop-filter: blur(10px) saturate(.85); }
.store-order-detail-modal { position: relative; width: min(880px, 100%); max-height: calc(100dvh - 36px); margin: auto; display: grid; gap: 16px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; box-shadow: 0 34px 100px rgba(0, 0, 0, .27); }
.store-order-detail-modal::-webkit-scrollbar { display: none; }
.store-order-detail-modal > header { display: grid; gap: 4px; padding-right: 42px; }
.store-order-detail-modal > header span { color: var(--muted); font-size: 10px; }
.store-order-detail-modal > header h3 { margin: 0; color: var(--text); font-size: 21px; }
.store-order-detail-modal > header strong { width: fit-content; margin-top: 5px; }
.store-order-detail-modal > section { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.store-order-detail-modal > section h4 { margin: 0; }
.store-order-note { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); padding: 12px; }
.store-order-note span { color: var(--muted); font-size: 10px; }
.store-order-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.store-order-detail-modal > footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.store-order-detail-modal.is-loading { min-height: min(650px, calc(100dvh - 36px)); align-content: start; }
.store-order-detail-skeleton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.store-order-detail-skeleton i { min-height: 68px; display: block; border-radius: 12px; background: linear-gradient(90deg, var(--surface-soft) 0%, color-mix(in srgb, var(--surface-soft) 50%, var(--surface)) 48%, var(--surface-soft) 100%); background-size: 220% 100%; animation: routeSkeletonShimmer 1.25s linear infinite; }
.store-order-detail-skeleton i.wide { grid-column: 1 / -1; min-height: 44px; }
.store-order-detail-skeleton i.tall { min-height: 160px; }
.store-order-detail-skeleton i.photo { grid-column: 1; min-height: 110px; }

.store-address-subtabs button.active span {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.store-address-filter-shell {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.store-address-filter-toggle {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 11px;
  box-shadow: none;
  text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.store-address-filter-toggle:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface));
}

.store-address-filter-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 18%, transparent);
  outline-offset: 2px;
}

.store-address-filter-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
}

.store-address-filter-icon svg,
.store-address-filter-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-address-filter-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.store-address-filter-toggle-copy strong { font-size: 12px; font-weight: 620; }
.store-address-filter-toggle-copy small { color: var(--muted); font-size: 10px; font-weight: 500; }

.store-address-filter-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent);
  padding: 0 6px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.store-address-filter-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 180ms var(--ease-out);
}

.store-address-filter-shell.is-open .store-address-filter-chevron { transform: rotate(180deg); }

.store-address-filter-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 220ms var(--ease-out), opacity 160ms var(--ease-out);
}

.store-address-filter-panel > div {
  min-height: 0;
  overflow: hidden;
}

.store-address-filter-shell.is-open .store-address-filter-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.store-address-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.store-address-filters label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.store-address-filters label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 530;
  letter-spacing: .015em;
}

.store-address-filters input,
.store-address-filters select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: var(--surface-soft);
  color: var(--text);
  padding: 0 10px;
  outline: 0;
  font: inherit;
  font-size: 12px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.store-address-filters input:focus,
.store-address-filters select:focus {
  border-color: var(--line-strong);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent);
}

.store-address-search { grid-column: span 2; }

.store-address-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.store-address-filter-actions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11px;
}

.store-address-batches {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.store-address-batch {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) repeat(2, minmax(92px, .72fr)) minmax(105px, .7fr) minmax(120px, 1fr) minmax(130px, .8fr) auto;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--text) 3%, transparent);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .store-address-batch:hover {
    border-color: var(--line-strong);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 6%, transparent);
  }
}

.store-address-batch > div {
  min-width: 0;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding: 11px 12px;
}

.store-address-batch > div:first-child { border-left: 0; }
.store-address-batch > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-address-batch > div > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-address-batch-main strong { font-size: 13px !important; }
.store-address-statuses {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible !important;
  white-space: normal !important;
}

.store-address-statuses i {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.store-address-statuses .is-active { background: color-mix(in srgb, var(--good) 10%, var(--surface)); color: var(--good); }
.store-address-statuses .is-pending { background: color-mix(in srgb, var(--warn) 11%, var(--surface)); color: var(--warn); }
.store-address-statuses .is-rejected { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); color: var(--bad); }

.store-address-view {
  min-height: 34px;
  margin: 0 10px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 11px;
  white-space: nowrap;
}

.store-address-skeleton {
  display: grid;
  gap: 8px;
}

.store-address-skeleton span {
  min-height: 68px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface) 45%, var(--surface-soft) 90%);
  background-size: 220% 100%;
  animation: routeSkeletonShimmer 1.25s linear infinite;
}
.store-address-load-error {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.store-address-load-error .ghost-button { flex: 0 0 auto; }

.store-address-registry-backdrop {
  padding: 18px;
  overflow: auto;
  background: color-mix(in srgb, #111 45%, transparent);
  backdrop-filter: blur(10px) saturate(.85);
}

.store-address-registry-modal {
  position: relative;
  width: min(1320px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 75%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .27);
  padding: 20px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}

@starting-style {
  .store-address-registry-modal { opacity: 0; transform: translateY(8px) scale(.985); }
}

.store-address-registry-modal > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 48px 0 2px;
}

.store-address-registry-modal > header > div { min-width: 0; display: grid; gap: 3px; }
.store-address-registry-modal > header span { color: var(--muted); font-size: 11px; }
.store-address-registry-modal > header h3 { margin: 0; overflow: hidden; font-size: 20px; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.store-address-modal-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  padding-right: 3px;
}

.store-address-record {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: default;
}

.store-address-record > input,
.store-address-record-spacer { margin: 0 0 0 12px; }
.store-address-record > input,
.store-address-record-spacer { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.store-address-record > input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.store-address-record > div {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding: 9px 10px;
}
.store-address-record > div > span { color: var(--muted); font-size: 9px; }
.store-address-record > div > strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 560; }
.store-address-record > button { grid-column: 2 / -1; justify-self: end; margin: 8px; }
.store-address-review-note {
  grid-column: 2 / -1;
  display: grid;
  gap: 3px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 9px 11px;
}
.store-address-review-note span { color: var(--muted); font-size: 9px; }
.store-address-review-note strong { font-size: 11px; font-weight: 540; line-height: 1.45; overflow-wrap: anywhere; }

.store-address-review-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.store-address-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}
.store-address-select-all input { width: 16px; height: 16px; accent-color: var(--accent); }
.store-address-review-footer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 86px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 11px;
  outline: 0;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
}
.store-address-review-footer textarea:focus { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent); }
.store-address-review-footer > div { display: flex; gap: 8px; }
.store-address-review-footer button { min-height: 38px; border-radius: 9px; padding: 0 13px; font-size: 11px; }

@media (max-width: 1120px) {
  .store-address-filters { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .store-address-batch { grid-template-columns: minmax(150px, 1.2fr) repeat(2, minmax(88px, .7fr)) minmax(100px, .7fr) minmax(120px, .9fr) auto; }
  .store-address-batch > div:nth-of-type(6) { display: none; }
  .store-address-record { grid-template-columns: 28px repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .storefront-product-tabs {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 1px 6px;
  }
  .storefront-product-tabs::-webkit-scrollbar { display: none; }
  .storefront-product-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 15px;
    scroll-snap-align: start;
  }
  .storefront-primary-action {
    justify-content: flex-end;
    margin-top: 16px;
  }
  .store-address-registry-head { display: grid; align-items: stretch; }
  .store-address-subtabs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-address-registry-mode { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-address-registry-mode button { justify-content: center; }
  .store-order-filters { grid-template-columns: 1fr; }
  .store-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
  .store-order-row > div { min-height: 56px; border: 0; border-top: 1px solid var(--line); padding: 9px; }
  .store-order-row > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .store-order-row button { grid-column: 1 / -1; width: calc(100% - 12px); margin: 5px 6px 6px; }
  .store-order-detail-backdrop { align-items: end; padding: 0; }
  .store-order-detail-modal { width: 100%; max-height: min(90dvh, 860px); margin: auto 0 0; border-radius: 20px 20px 0 0; padding: 18px 14px max(16px, env(safe-area-inset-bottom)); }
  .store-address-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .store-address-search { grid-column: 1 / -1; }
  .store-address-batch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
  }
  .store-address-batch > div,
  .store-address-batch > div:first-child {
    min-height: 54px;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 9px;
  }
  .store-address-batch > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .store-address-batch > div:nth-of-type(6) { display: grid; }
  .store-address-view { grid-column: 1 / -1; width: calc(100% - 12px); margin: 4px 6px 6px; }
  .store-address-registry-backdrop { align-items: end; padding: 0; }
  .store-address-registry-modal {
    width: 100%;
    max-height: min(88dvh, 820px);
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    padding: 18px 14px max(16px, env(safe-area-inset-bottom));
  }
  .store-address-record { grid-template-columns: 28px repeat(2, minmax(0, 1fr)); padding: 4px; }
  .store-address-record > div { min-height: 50px; border: 0; border-top: 1px solid var(--line); padding: 8px; }
  .store-address-record > div:first-of-type { grid-column: 2 / -1; border-top: 0; }
  .store-address-review-note { grid-column: 1 / -1; }
  .store-address-review-footer { grid-template-columns: 1fr; }
  .store-address-review-footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-address-review-footer button { width: 100%; }
}

@media (max-width: 430px) {
  .store-address-filters { grid-template-columns: 1fr; }
  .store-address-search { grid-column: 1; }
  .store-address-batch { grid-template-columns: 1fr; }
  .store-address-batch > div:first-child { grid-column: 1; }
  .store-address-record { grid-template-columns: 28px minmax(0, 1fr); }
  .store-address-record > div:first-of-type { grid-column: 2; }
  .store-address-record > div { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .store-address-batch,
  .store-address-subtabs button,
  .store-address-filter-panel,
  .store-address-filter-chevron,
  .store-address-registry-modal { transition: none; }
  .store-address-skeleton span { animation: none; }
}

.storefront-product-grid {
  gap: 22px;
}

.storefront-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.storefront-review-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 4%, transparent);
}

.storefront-review-card.is-audit-focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 11%, transparent), 0 12px 30px color-mix(in srgb, var(--text) 9%, transparent);
}

.storefront-review-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.storefront-review-card header > img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.storefront-review-author {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.storefront-review-card header strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-review-card time {
  color: var(--muted);
  font-size: 11px;
}

.storefront-review-score {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px 7px;
}

.storefront-review-score .order-rating {
  align-items: center;
  gap: 0;
  height: 18px;
}

.storefront-review-score .order-rating span {
  width: 15px;
  height: 18px;
  min-width: 15px;
  min-height: 18px;
  font-size: 14px;
}

.storefront-review-score > strong {
  display: inline-grid;
  place-items: center;
  height: 18px;
  color: var(--text);
  font-size: 11px !important;
  font-weight: 650;
  line-height: 18px;
}

.storefront-review-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 9px 10px;
}

.storefront-review-product span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 650;
}

.storefront-review-product strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-review-comment {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.storefront-review-reply,
.storefront-review-reply-editor {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.storefront-review-reply span,
.storefront-review-reply-editor label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.storefront-review-reply p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.storefront-review-reply time { justify-self: end; }

.storefront-review-reply-editor textarea {
  min-height: 84px;
  resize: vertical;
}

.storefront-review-reply-editor button {
  justify-self: end;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  padding: 0 16px;
  font-weight: 650;
}

.storefront-reviews-empty { grid-column: 1 / -1; }

.product-public-reviews {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  scroll-margin-top: 18px;
}

.product-reviews-panel { min-width: 0; }

.product-public-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.product-public-reviews-head > div {
  display: grid;
  gap: 3px;
}

.product-public-reviews-head > div > span {
  color: var(--muted);
  font-size: 12px;
}

.product-public-reviews-head h3 { margin: 0; font-size: 20px; }
.product-public-reviews-head > strong { font-size: 26px; line-height: 1; }
.product-public-reviews-head > strong span { margin-left: 5px; color: #d89b16; font-size: 18px; }

@media (max-width: 720px) {
  .storefront-review-list { grid-template-columns: 1fr; }
  .storefront-review-card { border-radius: 14px; padding: 14px; }
  .storefront-review-card header { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .storefront-review-card header > img { width: 40px; height: 40px; }
  .product-public-reviews { border-radius: 12px; padding: 15px; }
  .product-public-reviews-head h3 { font-size: 17px; }
  .product-public-reviews-head > strong { font-size: 22px; }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.catalog-layout:not(.is-filter-open) {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1500px) {
  .catalog-layout {
    width: min(1800px, calc(100vw - 80px));
    margin-left: calc((100% - min(1800px, calc(100vw - 80px))) / 2);
  }
}

.catalog-filter {
  position: relative;
  z-index: 22;
  min-width: 0;
  display: block;
  overflow: visible;
  background: transparent;
}

.catalog-filter:not(.is-open) { display: none; }
.catalog-filter-head { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-filter-toggle {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.catalog-filter-toggle-label { min-width: 0; display: grid; }
.catalog-filter-toggle strong { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.catalog-filter-toggle > b,
.catalog-filter-open-button > b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--button-bg); color: var(--button-text); padding: 0 6px; font-size: 10px; }
.catalog-filter-toggle-chevron { display: block; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: transform 170ms var(--ease-out); }
.catalog-filter.is-open .catalog-filter-toggle-chevron { transform: rotate(180deg); }
.catalog-filter-toggle:active { transform: scale(.98); transition: transform 120ms var(--ease-out); }
.catalog-filter-clear { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 0 2px; box-shadow: none; font-size: 11px; font-weight: 550; }
.catalog-filter-clear:disabled { opacity: .38; }
.catalog-filter-clear:active { transform: scale(.97); }

.catalog-filter-panel {
  display: none;
  gap: 0;
  overflow: visible;
  padding: 0;
}

.catalog-filter.is-open .catalog-filter-panel { display: grid; }

.catalog-filter-group { min-width: 0; display: grid; gap: 10px; margin: 0; border: 0; border-bottom: 1px solid var(--line); padding: 15px 0; }
.catalog-filter-group > legend,
.catalog-name-field > span { color: var(--text); padding: 0; font-size: 12px; font-weight: 680; letter-spacing: .005em; }
.catalog-filter-field { min-width: 0; display: grid; gap: 6px; }
.catalog-filter-field > span,
.catalog-range-fields label > span { color: var(--muted); font-size: 10px; font-weight: 550; }

.catalog-filter input,
.catalog-filter select,
.catalog-select-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  box-shadow: none;
}

.catalog-filter input:focus,
.catalog-filter select:focus,
.catalog-select-toggle:focus-visible { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent); }
.catalog-select-toggle { display: flex; align-items: center; justify-content: space-between; gap: 9px; text-align: left; }
.catalog-select-toggle > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-select-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 160ms var(--ease-out); }
.catalog-select-toggle .muted-value { color: var(--muted); }
.catalog-category-picker,
.catalog-city-picker { position: relative; min-width: 0; }
.catalog-category-picker.is-open > .catalog-select-toggle svg,
.catalog-city-picker.is-open > .catalog-select-toggle svg { transform: rotate(180deg); }

.catalog-category-menu,
.catalog-city-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 80;
  width: 100%;
  max-height: min(420px, 58dvh);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 7px;
  box-shadow: 0 22px 48px color-mix(in srgb, #000 16%, transparent);
}

.catalog-category-option,
.catalog-subcategory-option,
.catalog-category-expand,
.catalog-city-option {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  box-shadow: none;
  font-size: 12px;
  text-align: left;
}

.catalog-category-option,
.catalog-subcategory-option,
.catalog-city-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-category-option svg,
.catalog-subcategory-option svg,
.catalog-city-option svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.catalog-category-option.is-selected,
.catalog-subcategory-option.is-selected,
.catalog-city-option.is-selected { background: var(--button-bg); color: var(--button-text); font-weight: 680; }
.catalog-category-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; }
.catalog-category-expand { width: 36px; display: grid; place-items: center; padding: 0; color: var(--muted); }
.catalog-category-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; transition: transform 150ms var(--ease-out); }
.catalog-category-group.is-expanded .catalog-category-expand svg { transform: rotate(90deg); }
.catalog-subcategory-list { display: none; margin: 1px 0 5px 15px; border-left: 1px solid var(--line); padding-left: 7px; }
.catalog-category-group.is-expanded .catalog-subcategory-list { display: grid; }
.catalog-subcategory-option { min-height: 38px; color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 11px; }

.catalog-location-group { gap: 11px; }
.catalog-city-menu { display: grid; gap: 7px; }
.catalog-city-menu > label { position: relative; display: block; }
.catalog-city-menu > label svg { position: absolute; top: 50%; left: 11px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.catalog-city-menu > label input { min-height: 40px; padding-left: 34px; }
.catalog-city-menu > small { color: var(--muted); padding: 2px 5px 0; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.catalog-city-options { display: grid; gap: 2px; }
.catalog-city-option > small { min-width: 22px; height: 20px; display: grid; place-items: center; margin-left: auto; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 8px; }
.catalog-city-empty,
.catalog-city-loading { min-height: 82px; display: grid; place-items: center; color: var(--muted); padding: 12px; font-size: 10px; text-align: center; }
.catalog-filter .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.catalog-check-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.catalog-check-option { min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; padding: 5px 0; color: var(--muted); cursor: pointer; transition: color 140ms var(--ease-out), transform 120ms var(--ease-out); }
.catalog-check-option input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.catalog-check-option > span { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.catalog-check-option > span svg { width: 11px; height: 11px; fill: none; stroke: transparent; stroke-width: 2.4; }
.catalog-check-option > b { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.catalog-check-option.is-checked { color: var(--text); }
.catalog-check-option.is-checked > span { border-color: var(--line-strong); background: var(--button-bg); }
.catalog-check-option.is-checked > span svg { stroke: var(--button-text); }
.catalog-check-option:active { transform: scale(.985); }
.catalog-title-search { position: relative; min-width: 0; }
.catalog-title-search > svg { position: absolute; top: 50%; left: 12px; z-index: 1; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.catalog-title-search > input { padding-left: 38px; }
.catalog-filter-details { display: block; padding: 0; }
.catalog-filter-details > summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); cursor: pointer; list-style: none; font-size: 12px; font-weight: 680; }
.catalog-filter-details > summary::-webkit-details-marker { display: none; }
.catalog-filter-details > summary::after { width: 15px; height: 15px; content: ""; background: currentColor; clip-path: polygon(22% 36%, 50% 64%, 78% 36%, 88% 46%, 50% 84%, 12% 46%); opacity: .62; transform: rotate(0); transition: transform 160ms var(--ease-out); }
.catalog-filter-details[open] > summary::after { transform: rotate(180deg); }
.catalog-filter-details-body { display: grid; gap: 10px; padding: 0 0 15px; }
.catalog-range-group { gap: 10px; }
.catalog-range-fields { display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); align-items: end; gap: 6px; }
.catalog-range-fields label { min-width: 0; display: grid; gap: 5px; }
.catalog-range-fields i { align-self: center; height: 1px; background: var(--line-strong); }
.catalog-range-fields input { min-width: 0; }
.catalog-results { min-width: 0; }
.catalog-results-head { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.catalog-results-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.catalog-results-toolbar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.catalog-filter-open-button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 0 12px; box-shadow: none; font-size: 11px; }
.catalog-filter-open-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.catalog-filter-open-button:active { transform: scale(.97); }
.catalog-applied-summary { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.catalog-applied-summary > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.catalog-applied-summary p { margin: 0; font-size: 10px; }
.catalog-sort-control { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 650; }
.catalog-sort-control select { min-width: 180px; min-height: 38px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface); color: var(--text); padding: 0 30px 0 11px; font: inherit; font-size: 10px; }
.catalog-sort-control select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent); }
.catalog-product-grid.is-filtering { min-height: 280px; opacity: .42; pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
  .catalog-filter-toggle:hover,
  .catalog-filter-clear:hover { background: transparent; color: var(--text); }
  .catalog-filter-open-button:hover { background: var(--surface-soft); border-color: var(--line-strong); color: var(--text); }
  .catalog-category-option:not(.is-selected):hover,
  .catalog-subcategory-option:not(.is-selected):hover,
  .catalog-city-option:not(.is-selected):hover,
  .catalog-category-expand:hover { background: var(--surface-soft); }
  .catalog-check-option:hover { color: var(--text); }
}

@media (pointer: coarse) {
  .catalog-category-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .catalog-category-option,
  .catalog-subcategory-option,
  .catalog-category-expand,
  .catalog-city-option { min-height: 44px; }
  .catalog-category-expand { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filter-toggle,
  .catalog-filter-toggle-chevron,
  .catalog-filter-details > summary::after,
  .catalog-select-toggle svg,
  .catalog-category-expand svg { transition: none !important; }
  .catalog-filter-toggle:active { transform: none; }
}

@media (max-width: 900px) {
  .catalog-layout { display: block; }
  .catalog-filter { z-index: 28; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 10px 14px 14px; }
  .catalog-filter-head { margin-bottom: 2px; }
  .catalog-filter-toggle { min-height: 48px; }
  .catalog-filter-panel { overflow: visible; }
  .catalog-results-head { margin-bottom: 8px; }
  .catalog-category-menu,
  .catalog-city-menu { width: 100%; max-height: min(360px, 54dvh); }
}

@media (max-width: 520px) {
  .catalog-results-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .catalog-applied-summary { min-height: 28px; }
  .catalog-sort-control { width: 100%; justify-content: space-between; }
  .catalog-sort-control select { min-width: 0; width: min(220px, 68%); }
  .catalog-check-option { min-height: 42px; }
}

.catalog-product-grid.showcase-grid {
  grid-template-columns: repeat(auto-fill, minmax(248px, 286px));
  align-items: start;
  gap: 18px;
}

.catalog-product-grid .profile-empty {
  grid-column: 1 / -1;
}

.catalog-product-grid .showcase-card {
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
}

.catalog-product-grid .showcase-card-main {
  gap: 7px;
}

.catalog-product-grid .showcase-card-main > img {
  border-radius: 10px;
}

.catalog-product-grid .showcase-card-icons {
  gap: 4px;
  min-height: 20px;
  height: 20px;
}

.catalog-product-grid .showcase-locality-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.catalog-product-grid .showcase-locality-icon img {
  width: 12px;
  height: 12px;
}

.catalog-product-grid .showcase-card span {
  font-size: 14px;
}

.catalog-product-grid .showcase-card small {
  min-height: 30px;
  font-size: 12px;
}

.catalog-product-grid .showcase-card em {
  font-size: 12px;
}

.storefront-product-grid .profile-empty {
  grid-column: 1 / -1;
}

.showcase-card {
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
}

.showcase-card-main > img {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}

.showcase-card-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 21px;
  height: 21px;
  overflow: hidden;
}

.showcase-locality-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #d6dae0;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.showcase-locality-icon img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.showcase-locality-icon.is-active {
  border-color: #c9ced5;
}

.showcase-locality-icon.is-active img {
  opacity: .96;
}

.showcase-locality-icon.is-inactive {
  border-color: #e1e4e8;
  background: #f7f8f9;
}

.showcase-locality-icon.is-inactive img {
  filter: grayscale(1);
  opacity: .13;
}

.store-card > .showcase-card-icons {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: auto;
  overflow: visible;
}

.store-card > .showcase-card-icons .showcase-locality-icon {
  width: 21px;
  min-width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.showcase-card-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-card-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-fast) var(--ease-out);
  }

  .showcase-card:hover .showcase-card-actions,
  .showcase-card:focus-within .showcase-card-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.icon-action.product-edit-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(17, 19, 23, .14);
  background: rgba(255, 255, 255, .92);
}

.icon-action.product-edit-action img {
  width: 17px;
  height: 17px;
  display: block;
  margin: 0;
  object-fit: contain;
  opacity: .9;
}

.showcase-card em {
  color: var(--text);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.marketplace-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.store-card .marketplace-availability {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.store-card .marketplace-review-summary {
  margin-left: 1px;
}

.marketplace-status-icon,
.marketplace-status-icon img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.marketplace-status-icon.is-inactive img {
  filter: grayscale(1);
  opacity: .23;
}

.marketplace-review-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-left: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.marketplace-review-summary strong {
  color: var(--text);
  font-weight: 650;
}

.product-detail-page {
  display: grid;
  gap: 48px;
  padding: 0 26px 28px;
}

.product-detail-loading {
  pointer-events: none;
}

.product-loading-breadcrumb,
.product-loading-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-loading-breadcrumb span,
.product-loading-thumbs span,
.product-loading-photo,
.product-loading-summary span,
.product-loading-positions span,
.product-loading-positions div {
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f5f6f8 0%, #eceff3 45%, #f5f6f8 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

.product-loading-breadcrumb span {
  width: 92px;
  height: 14px;
  border: 0;
  border-radius: 999px;
}

.product-loading-breadcrumb span:nth-child(2) { width: 68px; }
.product-loading-breadcrumb span:nth-child(3) { width: 124px; }

.product-loading-gallery,
.product-loading-summary,
.product-loading-positions {
  display: grid;
  align-content: start;
}

.product-loading-gallery { gap: 12px; }

.product-loading-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  border-radius: 18px;
}

.product-loading-thumbs span {
  width: 74px;
  height: 74px;
  border-radius: 14px;
}

.product-loading-summary {
  gap: 18px;
  padding-top: 8px;
}

.product-loading-summary span,
.product-loading-positions span {
  display: block;
  height: 16px;
  border: 0;
  border-radius: 999px;
}

.product-loading-summary .wide { width: min(100%, 440px); height: 28px; }
.product-loading-summary .medium { width: min(78%, 340px); }
.product-loading-summary .short { width: min(42%, 190px); }

.product-loading-positions {
  gap: 12px;
}

.product-loading-positions .heading {
  width: 180px;
  margin-bottom: 4px;
}

.product-loading-positions div {
  width: 100%;
  height: 76px;
  border-radius: 18px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 12px;
  align-items: start;
  width: min(100%, 320px);
}

.product-thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.product-main-photo {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  border-radius: 18px;
}

.product-thumb-button {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.product-thumb-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.product-thumb-button.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 10%, transparent);
}

.product-thumb-button:hover {
  border-color: var(--line-strong);
}

.product-thumb-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.product-thumb {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--surface-soft);
}

.product-main-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52dvh, 460px);
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface-soft);
}

.showcase-create-backdrop,
.product-address-backdrop,
.product-packaging-backdrop,
.product-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity var(--motion-modal) var(--ease-out);
}

.showcase-create-backdrop,
.product-address-backdrop,
.product-packaging-backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

html.has-storefront-modal {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-storefront-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-storefront-modal-open .mobile-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.showcase-create-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, .24);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

.product-packaging-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, .24);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

.product-address-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, .24);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

.product-address-modal h3 {
  margin: 0 0 20px;
  padding: 0 0 0 2px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.product-address-form {
  display: grid;
  gap: 18px;
}

.product-address-preorder-note {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--muted);
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
}

.product-address-card {
  position: relative;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.product-address-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-address-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 32px;
}

.product-address-card-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.product-address-remove {
  position: static;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  color: var(--text);
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  transform: none !important;
}

.product-address-remove:hover,
.product-address-remove:focus-visible {
  background: transparent !important;
  color: var(--text);
  box-shadow: none !important;
  outline: 0 !important;
}

.product-address-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.product-address-city-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.product-address-city-control {
  position: relative;
  min-width: 0;
}

.product-address-form .product-address-city-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 18px 0 20px;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  --press-transform: none;
}

.product-address-city-toggle > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-address-city-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-address-form .product-address-city-toggle:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: default;
}

.product-address-form .product-address-city-toggle:focus-visible {
  border-color: var(--line-strong);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.product-address-city-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: 310px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .16);
}

.product-address-city-menu > input {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 12px;
}

.product-address-city-options {
  display: grid;
  gap: 2px;
  max-height: 244px;
  overflow: auto;
  overscroll-behavior: contain;
}

.product-address-city-option {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 8px 11px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.product-address-city-option:focus-visible,
.product-address-city-option.active {
  background: var(--surface-soft);
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .product-address-form .product-address-city-toggle:hover:not(:disabled) {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text);
  }

  .product-address-city-option:hover {
    background: var(--surface-soft);
  }
}

.product-address-city-empty {
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.product-address-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 16px 0 20px;
  font: inherit;
  outline: none;
  appearance: auto;
}

.product-address-form input,
.product-address-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 20px;
  font: inherit;
  outline: none;
}

.product-address-form textarea {
  min-height: 98px;
  resize: vertical;
  border-radius: 18px;
  padding: 14px 18px;
}

.product-address-form select:disabled {
  background-color: var(--surface-soft);
  color: var(--muted);
  opacity: 1;
}

.product-address-form input:focus,
.product-address-form textarea:focus,
.product-address-form select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.product-address-note > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-address-note small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.product-address-photos {
  display: grid;
  gap: 10px;
}

.product-address-photos > strong {
  color: var(--text);
  font-size: 16px;
}

.product-address-form .is-invalid > span,
.product-address-form label.is-invalid > span {
  color: var(--bad);
}

.product-address-form .is-invalid select,
.product-address-form .is-invalid input,
.product-address-form .is-invalid textarea,
.product-address-form .is-invalid .product-address-city-toggle,
.product-address-form [aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(218, 54, 51, .1);
}

.product-address-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-address-photo-slot {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-address-photo-slot > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.product-address-photo-box {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
}

.product-address-photo-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.product-address-photo-box em {
  color: var(--text);
  font-size: 28px;
  font-style: normal;
  line-height: 1;
}

.product-address-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-address-photo-remove {
  position: absolute;
  right: 7px;
  top: 29px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  appearance: none;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(17, 24, 39, .08);
  cursor: pointer;
}

.product-address-photo-remove:hover,
.product-address-photo-remove:focus,
.product-address-photo-remove:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(17, 24, 39, .08);
  outline: none;
  transform: none;
}

.product-address-error {
  border: 1px solid rgba(218, 54, 51, .22);
  border-radius: 12px;
  background: rgba(218, 54, 51, .06);
  color: #b42318;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.product-address-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.product-address-actions button {
  min-height: 44px;
}

.product-address-action-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.plain-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.plain-close:hover,
.plain-close:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-photo-modal {
  position: relative;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
}

.product-photo-modal img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(17, 24, 39, .28);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

@starting-style {
  .showcase-create-backdrop,
  .product-address-backdrop,
  .product-packaging-backdrop,
  .product-photo-viewer {
    opacity: 0;
  }

  .showcase-create-modal,
  .product-address-modal,
  .product-packaging-modal {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  .product-photo-modal img {
    opacity: 0;
    transform: scale(.985);
  }
}

.product-photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #15191d;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: none !important;
  padding: 0;
  text-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.product-photo-close:hover,
.product-photo-nav:hover {
  background: #0b0e11;
}

.product-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #15191d;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  --press-transform: translateY(-50%) scale(.97);
  box-shadow: none !important;
  padding: 0;
  text-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.product-photo-close:focus,
.product-photo-close:focus-visible,
.product-photo-nav:focus,
.product-photo-nav:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

.product-photo-prev {
  left: 12px;
}

.product-photo-next {
  right: 12px;
}

.product-photo-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, .64);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.product-info {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.product-info h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
}

.product-category {
  color: var(--muted);
  font-size: 14px;
}

.product-info p {
  margin: 4px 0 2px;
  max-width: 760px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.product-info p:empty {
  display: none;
}

.product-description-preview {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.product-description-preview button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-description-preview button:hover,
.product-description-preview button:focus-visible {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.product-store-line {
  color: var(--text);
  font-size: 15px;
}

.product-price {
  margin-top: 2px;
  color: var(--text);
  font-size: 19px;
}

.product-visibility-control {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-visibility-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-visibility-copy > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.product-visibility-copy strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.listing-visibility-switch {
  flex: 0 0 auto;
  width: 42px;
  height: 32px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transition: transform 140ms var(--ease-out);
}

.listing-visibility-switch:hover:not(:disabled) {
  background: transparent;
}

.listing-visibility-switch:disabled,
.listing-visibility-switch.is-busy,
.listing-visibility-switch:disabled:hover {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.listing-visibility-switch:active:not(:disabled) {
  transform: scale(.97);
}

.listing-visibility-switch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.listing-visibility-switch.is-busy {
  opacity: .55;
}

.listing-visibility-switch-track {
  width: 38px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #9aa2ae;
  transition: background-color 160ms ease;
}

.listing-visibility-switch-track i {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transform: translateX(0);
  transition: transform 160ms var(--ease-out);
}

.listing-visibility-switch[aria-checked="true"] .listing-visibility-switch-track {
  background: var(--good);
}

.listing-visibility-switch[aria-checked="true"] .listing-visibility-switch-track i {
  transform: translateX(16px);
}

.product-positions {
  display: grid;
  gap: 22px;
}

.product-city-filter {
  margin-left: auto;
  display: inline-block;
  min-width: 220px;
  position: relative;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  overflow: visible;
}

.product-city-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.product-city-filter-toggle:hover,
.product-city-filter-toggle:focus-visible {
  background: var(--surface-soft);
}

.product-city-filter.is-open,
.product-city-filter:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.product-city-filter-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: minmax(44px, auto);
  align-content: start;
  gap: 4px;
  max-height: 280px;
  padding: 6px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.product-city-filter-option {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font: inherit;
  font-weight: 560;
  line-height: 1.35;
  text-align: left;
}

.product-city-filter-option > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-city-filter-option:hover,
.product-city-filter-option:focus-visible,
.product-city-filter-option.is-selected {
  background: var(--surface-soft);
}

.product-city-filter-option svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-city-filter-chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex: 0 0 auto;
  transition: transform .16s ease;
}

.product-city-filter.is-open .product-city-filter-chevron { transform: rotate(180deg); }

.product-position-head,
.product-position-row {
  display: grid;
  grid-template-columns: 160px 170px minmax(190px, 1fr) minmax(220px, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.product-position-head.with-action,
.product-position-row.with-action {
  grid-template-columns: 160px 170px minmax(190px, 1fr) minmax(220px, 1fr) 180px 112px;
}

.product-position-head.with-action > :last-child {
  white-space: nowrap;
}

.product-address-edit-action {
  justify-self: end;
}

.product-address-edit-action svg,
.product-address-delete-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-buy-position {
  justify-self: end;
  min-width: 104px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--button-bg);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
}

.product-position-unavailable {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.purchase-modal-backdrop,
.order-detail-backdrop {
  padding: 24px;
  overflow: auto;
}

.purchase-modal,
.order-detail-modal,
.order-profile-modal {
  position: relative;
  width: min(100%, 760px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(10, 15, 25, .22);
}

.purchase-modal {
  padding: 34px;
}

.purchase-modal-close,
.order-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.purchase-modal-head {
  max-width: 580px;
  padding-right: 38px;
}

.purchase-modal-head > span,
.order-detail-head > span,
.order-profile-modal > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.purchase-modal-head h3,
.order-detail-head h3,
.order-profile-modal h3 {
  margin: 7px 0 9px;
  font-size: 25px;
  line-height: 1.2;
}

.purchase-modal-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.purchase-summary-grid,
.order-data-grid,
.order-timeline,
.order-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.purchase-summary-grid > div,
.order-fact {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background: var(--surface-soft);
}

.purchase-summary-grid span,
.order-fact span,
.purchase-balance span,
.order-card-party span,
.order-card-date span,
.order-card-total span,
.order-detail-footer span {
  color: var(--muted);
  font-size: 12px;
}

.purchase-summary-grid strong,
.order-fact strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}

.purchase-balance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-balance strong {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.purchase-balance small {
  color: #21885b;
}

.purchase-balance.is-low {
  border-color: rgba(196, 53, 53, .38);
}

.purchase-balance.is-low small {
  color: #c43535;
}

.purchase-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.purchase-modal-actions button {
  min-width: 126px;
}

.purchase-modal-actions #confirmPurchaseBtn {
  min-height: 44px;
}

.purchase-modal-actions #confirmPurchaseBtn.loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.orders-workspace {
  display: grid;
  gap: 18px;
}

.orders-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.orders-tabs button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  white-space: nowrap;
}

.orders-tabs button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.orders-tabs span {
  font-size: 12px;
  font-weight: 500;
}

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

.order-card {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(420px, 1.55fr) minmax(150px, auto);
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.order-card-main,
.order-card-facts > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.order-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 38px);
  align-items: center;
  margin: 0;
}

.order-card-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.order-card-facts dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-main p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-kind {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-card-party strong,
.order-card-date strong,
.order-card-total strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-actions {
  display: grid;
  gap: 10px;
  min-width: 150px;
  justify-items: end;
}

.order-card-actions .ghost-button {
  width: 100%;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.order-status.is-released {
  border-color: rgba(33, 136, 91, .28);
  color: #21885b;
}

.order-status.is-cancelled,
.order-status.is-disputed {
  border-color: rgba(196, 53, 53, .28);
  color: #c43535;
}

.order-status.is-preorder_pending {
  border-color: var(--line-strong);
  color: var(--muted);
}

.order-countdown {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: var(--muted);
  font-size: 11px;
}

.order-countdown strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.order-preorder-wait {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 18px;
}

.order-preorder-wait h4,
.order-preorder-wait p { margin: 0; }
.order-preorder-wait p { color: var(--muted); line-height: 1.5; }

.preorder-fulfillment-backdrop {
  z-index: 90;
  padding: 24px;
  overflow: auto;
}

.preorder-fulfillment-modal {
  position: relative;
  width: min(100%, 700px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(10, 15, 25, .28);
  padding: 30px;
}

.preorder-fulfillment-modal header { padding-right: 42px; }
.preorder-fulfillment-modal header > span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.preorder-fulfillment-modal header h3 { margin: 6px 0 8px; font-size: 24px; }
.preorder-fulfillment-modal header p { margin: 0; color: var(--muted); line-height: 1.5; }

.preorder-fulfillment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.preorder-fulfillment-form > label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.preorder-fulfillment-form input,
.preorder-fulfillment-form select,
.preorder-fulfillment-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.preorder-fulfillment-form textarea { min-height: 92px; }
.preorder-coordinates,
.preorder-note,
.preorder-photos { grid-column: 1 / -1; }
.preorder-fulfillment-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.preorder-fulfillment-actions button { min-width: 150px; }
.order-cancel-button { color: #b52222; }

.orders-empty {
  padding: 38px 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.orders-empty h3,
.orders-empty p {
  margin: 0;
}

.orders-empty p {
  margin-top: 7px;
  color: var(--muted);
}

.order-detail-modal {
  width: min(100%, 960px);
  padding: 32px;
}

.order-detail-head {
  padding-right: 42px;
}

.order-detail-head > div {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.order-detail-head > div > strong {
  font-size: 19px;
}

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

.order-timeline.is-buyer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-position-section,
.order-note,
.order-photos {
  margin-top: 26px;
}

.order-position-section h4,
.order-note h4,
.order-photos h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
}

.order-data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.order-note p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.order-photos > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.order-photos button {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}

.order-photos button:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }

.order-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.order-photo-state,
.product-address-photo-state {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-soft);
  color: var(--muted);
}

.order-photo-state::after,
.product-address-photo-state::after {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--muted) 28%, transparent);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin .72s linear infinite;
  content: "";
}

.order-photo-state.is-error::after,
.product-address-photo-state.is-error::after {
  width: auto;
  height: auto;
  border: 0;
  animation: none;
  content: "\00d7";
  font-size: 20px;
  line-height: 1;
}

.order-review {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.order-review-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.order-review h4,
.order-review p {
  margin: 0;
}

.order-review-head h4 {
  font-size: 16px;
  font-weight: 600;
}

.order-review-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.order-rating {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  color: var(--line-strong);
}

.order-rating span,
.order-rating button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  transform: scale(1);
  transition:
    color 160ms cubic-bezier(.22, 1, .36, 1),
    background-color 160ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.order-rating span {
  display: inline-grid;
  place-items: center;
}

.order-rating .active {
  color: #d89b16;
}

.order-rating .is-selected {
  transform: scale(1.12);
}

.order-rating.is-interactive button {
  cursor: pointer;
}

.order-rating.is-interactive button:focus-visible {
  background: var(--surface);
  color: #d89b16;
}

@media (hover: hover) and (pointer: fine) {
  .order-rating.is-interactive button:hover {
    background: var(--surface);
    color: #d89b16;
  }
}

.order-review-field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.order-review-field > span {
  font-size: 13px;
  font-weight: 600;
}

.order-review-field textarea {
  width: 100%;
  min-height: 104px;
  padding: 13px 14px 28px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.order-review-field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--line-strong) 12%, transparent);
}

.order-review-field small {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.order-review-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.order-review-actions button {
  min-width: 154px;
  min-height: 42px;
}

.order-review-actions button.loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.order-review-comment {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
  white-space: pre-wrap;
}

.order-review-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-publication-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.review-publication-status.is-pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.review-publication-status.is-approved { color: var(--good); background: color-mix(in srgb, var(--good) 8%, transparent); }
.review-publication-status.is-rejected { color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }

.order-detail-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.order-detail-footer > div {
  display: grid;
  gap: 3px;
  margin-right: auto;
}

.order-storefront-link {
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.order-storefront-link:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-storefront-link:focus-visible {
  background: transparent;
  color: var(--text);
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
}

.order-dispute-button {
  border-color: color-mix(in srgb, #c43535 28%, var(--line));
  background: transparent;
  color: #b52f2f;
}

@media (hover: hover) and (pointer: fine) {
  .order-dispute-button:hover {
    border-color: color-mix(in srgb, #c43535 44%, var(--line));
    background: color-mix(in srgb, #c43535 7%, var(--surface));
    color: #a52727;
  }
}

.order-photo-backdrop {
  z-index: 180;
  padding: 24px;
}

.order-photo-viewer {
  position: relative;
  display: grid;
  place-items: center;
  width: min(960px, calc(100vw - 48px));
  height: min(760px, calc(100dvh - 48px));
  margin: auto;
  padding: 48px 68px 42px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, #000);
  box-shadow: 0 28px 90px rgba(10, 15, 25, .28);
}

.order-photo-viewer > .plain-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  opacity: 1;
  font-size: 0;
  line-height: 1;
  --press-transform: scale(.96);
}

.order-photo-viewer > .plain-close::before,
.order-photo-viewer > .plain-close::after {
  grid-area: 1 / 1;
}

.order-photo-viewer > .plain-close::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #171717;
}

.order-photo-viewer > .plain-close::after {
  content: "\00d7";
  position: relative;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.order-photo-viewer > .plain-close:hover,
.order-photo-viewer > .plain-close:focus-visible {
  background: transparent;
  color: #fff;
}

.order-photo-viewer > .plain-close:hover::before,
.order-photo-viewer > .plain-close:focus-visible::before {
  background: #000;
}

.order-photo-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}
.conversation-photo-backdrop {
  cursor: zoom-out;
}
.conversation-photo-viewer {
  position: relative;
  width: fit-content;
  min-width: 96px;
  max-width: min(1120px, calc(100vw - 32px));
  height: fit-content;
  min-height: 96px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  cursor: default;
}
.conversation-photo-viewer > .plain-close {
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(9, 11, 16, .82);
}
.conversation-photo-viewer img {
  max-width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
}

.order-photo-viewer > span {
  position: absolute;
  bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.order-photo-step {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 28px;
}

.order-photo-step:hover {
  border-color: var(--line-strong);
}

.order-photo-step.is-prev { left: 14px; }
.order-photo-step.is-next { right: 14px; }

.order-profile-modal {
  width: min(100%, 880px);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: auto;
  padding: 30px;
}

.order-profile-modal.is-restricted {
  width: min(100%, 460px);
  padding: 36px;
  text-align: center;
}

.order-profile-modal.is-restricted > .buyer-profile-avatar {
  margin: 0 auto 18px;
}

.buyer-profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.buyer-profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 2px 48px 24px 0;
}

.buyer-profile-head > div {
  min-width: 0;
}

.buyer-profile-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.buyer-profile-head h3 {
  margin: 5px 0 0;
}

.buyer-profile-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.buyer-profile-tabs::-webkit-scrollbar {
  display: none;
}

.buyer-profile-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--muted);
  white-space: nowrap;
}

.buyer-profile-tab:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.buyer-profile-tab.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.buyer-profile-tab span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--line);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.buyer-profile-tab.active span {
  background: var(--text);
  color: var(--surface);
}

.buyer-profile-overview {
  min-width: 0;
}

.buyer-profile-identity,
.buyer-profile-stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.buyer-profile-identity {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.buyer-profile-stat {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  background: var(--surface-soft);
}

.buyer-profile-stat span {
  color: var(--muted);
  font-size: 12px;
}

.buyer-profile-stat strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-profile-stat small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-profile-notes {
  min-width: 0;
}

.buyer-profile-section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.buyer-profile-section-head h4,
.buyer-profile-section-head p {
  margin: 0;
}

.buyer-profile-section-head h4 {
  font-size: 17px;
}

.buyer-profile-section-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.buyer-profile-section-head > span {
  min-width: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.buyer-notes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.buyer-note {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.buyer-note.is-own {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.buyer-note header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.buyer-note header img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.buyer-note header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.buyer-note header strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-note header time {
  color: var(--muted);
  font-size: 11px;
}

.buyer-note p {
  margin: 13px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.buyer-notes-empty {
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.buyer-note-editor {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.buyer-note-editor > span {
  font-size: 13px;
  font-weight: 600;
}

.buyer-note-editor textarea {
  min-height: 108px;
  resize: none;
  padding: 14px 16px 30px;
}

.buyer-note-editor small {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.buyer-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.buyer-note-actions button {
  min-width: 164px;
}

.buyer-profile-loading {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.buyer-profile-loading > span,
.buyer-profile-loading i {
  display: block;
  border-radius: 7px;
  background: var(--surface-soft);
  animation: profileLoading 1.4s ease-in-out infinite;
}

.buyer-profile-loading > span {
  width: 260px;
  height: 88px;
}

.buyer-profile-loading > div,
.buyer-profile-loading > section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.buyer-profile-loading i {
  height: 74px;
  border-radius: 0;
}

.product-position-head {
  color: var(--muted);
  font-size: 15px;
  padding: 0 16px;
}

.product-position-empty,
.product-position-row {
  min-height: 76px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .055);
}

.product-position-empty {
  color: var(--muted);
}

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

.product-position-row strong,
.product-position-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-position-loading {
  display: grid;
  gap: 10px;
}

.product-position-loading-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: .8fr 1fr 1.8fr 1.8fr 1fr .7fr;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 20px 16px;
}

.product-position-loading-row span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-soft) 0%, color-mix(in srgb, var(--line) 60%, var(--surface)) 45%, var(--surface-soft) 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

.product-upload-address {
  justify-self: start;
  min-height: 44px;
}

.product-owner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.product-owner-actions .ghost-button {
  min-height: 44px;
}

.product-packaging-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.product-packaging-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.product-packaging-tabs button.active {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
}

.product-packaging-tabs span {
  margin-left: 8px;
  color: inherit;
  opacity: .7;
}

.product-packaging-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 14px;
}

.product-packaging-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.product-packaging-city-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.product-packaging-form input,
.product-packaging-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.product-packaging-form input:focus,
.product-packaging-form select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.product-packaging-city-control {
  position: relative;
  min-width: 0;
}

.product-packaging-city-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.product-packaging-city-toggle:focus-visible {
  border-color: var(--line-strong);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

@media (hover: hover) and (pointer: fine) {
  .product-packaging-city-toggle:hover {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text);
  }
}

.product-packaging-city-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-packaging-city-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-packaging-city-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: 310px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .14);
}

.product-packaging-city-search {
  display: grid;
  gap: 6px;
}

.product-packaging-city-search span {
  color: var(--muted);
  font-size: 11px;
}

.product-packaging-city-search input {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 10px;
}

.product-packaging-city-options {
  display: grid;
  gap: 2px;
  max-height: 226px;
  overflow: auto;
  overscroll-behavior: contain;
}

.product-packaging-city-option {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.product-packaging-city-option:hover,
.product-packaging-city-option.active {
  background: var(--surface-soft);
}

.product-packaging-city-loading {
  display: grid;
  place-items: center;
  min-height: 42px;
}

.product-packaging-city-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: profileLoading .75s linear infinite;
}

.product-packaging-form small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.product-packaging-currency {
  grid-column: 1 / span 1;
}

.product-packaging-actions {
  grid-column: 3 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: end;
}

.product-packaging-actions button {
  min-height: 44px;
}

.product-packaging-actions button:not(.ghost-button) {
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 800;
  cursor: pointer;
}

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

.product-packaging-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px;
}

.product-packaging-edit-action {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 7px;
  border-radius: 999px;
}

.product-packaging-summary-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.product-packaging-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .65fr) minmax(0, .8fr);
  gap: 16px;
  margin: 0;
}

.product-packaging-summary-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-packaging-summary-grid dt,
.product-packaging-summary-grid dd {
  margin: 0;
}

.product-packaging-summary-grid dd {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.role-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.role-panel,
.empty-flow-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .045);
}

.role-panel-head {
  margin-bottom: 14px;
}

.role-panel h3,
.empty-flow-card h2 {
  margin: 0;
  color: #111317;
  font-size: 17px;
}

.role-panel-head span,
.empty-flow-card p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.data-table tr:last-child td { border-bottom: 0; }

.data-table .row-title {
  color: #111317;
  font-weight: 700;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.danger-button {
  background: #fff1f1;
  color: var(--bad);
  border: 1px solid #f2c4c4;
}

.danger-button:hover { background: #ffe8e8; }

.empty-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wallet-asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wallet-asset-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.wallet-asset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wallet-asset-head div {
  display: grid;
  gap: 5px;
}

.wallet-asset-head span {
  color: var(--muted);
  font-size: 13px;
}

.wallet-asset-head strong {
  color: #050506;
  font-size: 24px;
  line-height: 1.12;
}

.wallet-asset-ticker {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f2f4;
  padding: 0 11px;
  color: #111317 !important;
  font-weight: 600;
}

.wallet-address-block {
  display: grid;
  gap: 8px;
  border: 1px dashed #d9dee6;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
}

.wallet-address-block span,
.wallet-address-history h3 {
  color: #2b2f36;
  font-size: 13px;
  font-weight: 600;
}

.wallet-address-block code,
.wallet-address-history-item code {
  min-width: 0;
  color: #111317;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wallet-address-block p,
.wallet-address-history p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wallet-address-block .wallet-unavailable {
  color: #777c86;
}

.wallet-asset-card > button {
  justify-self: start;
  min-height: 42px;
}

.wallet-disabled-button {
  color: #777c86;
  cursor: not-allowed;
  opacity: .82;
}

.wallet-disabled-button:hover {
  background: var(--surface-soft);
  color: var(--muted);
}

.wallet-asset-card > button.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wallet-address-history {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.wallet-address-history h3 {
  margin: 0;
}

.wallet-address-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.wallet-address-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f2f4;
  color: #777c86;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 500;
}

.wallet-address-status.active {
  background: #e9f8f0;
  color: #15824e;
}

.wallet-loading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wallet-loading div {
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f5f6f8 0%, #eceff3 45%, #f5f6f8 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

.wallet-workspace {
  display: grid;
  gap: 26px;
}

.wallet-currency-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-currency-tab {
  min-height: 48px;
  padding: 0 18px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.wallet-currency-tab:hover:not(:disabled) {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--text);
}

.wallet-currency-tab.active {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.wallet-currency-tab.is-muted,
.wallet-currency-tab:disabled {
  color: var(--muted);
  background: var(--surface-soft);
  cursor: not-allowed;
  opacity: .72;
}

.wallet-currency-tab.is-muted:hover,
.wallet-currency-tab:disabled:hover {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--line);
}

.wallet-currency-icon,
.wallet-balance-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.wallet-balance-icon {
  width: 30px;
  height: 30px;
}

.wallet-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
  padding: 24px 26px;
}

.wallet-history-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.wallet-balance-card,
.wallet-calculator-card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.wallet-overview-card .wallet-balance-card,
.wallet-overview-card .wallet-calculator-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wallet-overview-card .wallet-calculator-card {
  justify-self: stretch;
}

.wallet-card-kicker,
.wallet-muted,
.wallet-rate-note,
.wallet-confirm-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.wallet-balance-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-balance-line strong {
  font-size: 24px;
  color: #050506;
}

.wallet-balance-line span {
  color: #050506;
  font-weight: 700;
}

.wallet-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.wallet-actions button {
  min-height: 48px;
  padding: 0 22px;
}

.wallet-calculator-card h3,
.wallet-history-card h3 {
  margin: 0;
}

.wallet-calculator-card.compact { gap: 12px; }

.wallet-calculator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wallet-calc-tabs {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 3px;
}

.wallet-calc-tabs button {
  min-width: 43px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 750;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.wallet-calc-tabs button.active { background: var(--text); color: var(--surface); }
.wallet-calc-tabs button:active,
.wallet-calc-toggle:active { transform: scale(.97); }

.wallet-calc-input {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 18px;
}

.wallet-calc-input:focus-within {
  border-color: color-mix(in srgb, var(--text) 34%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent);
}

.wallet-calc-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  box-shadow: none;
  padding: 0;
}

.wallet-calc-input input:focus {
  border-color: transparent;
  box-shadow: none;
}

.wallet-calc-input span {
  color: var(--text);
  font-weight: 700;
}

.wallet-calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 10px 16px;
}

.wallet-calc-result span,
.wallet-calc-details span { color: var(--muted); font-size: 12px; font-weight: 650; }
.wallet-calc-result strong { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }

.wallet-calc-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-calc-details > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.wallet-calc-details strong { overflow: hidden; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

.wallet-calc-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  transition: color 160ms ease, transform 120ms var(--ease-out);
}

.wallet-calc-toggle:hover { background: transparent; color: var(--text); }
.wallet-calc-toggle svg { width: 16px; height: 16px; display: block; flex: 0 0 16px; overflow: visible; transition: transform 180ms var(--ease-out); }
.wallet-calc-toggle svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wallet-calc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.wallet-rate-note {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 560px) {
  .wallet-calculator-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .wallet-calc-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .wallet-calc-tabs button { min-width: 0; padding: 0 4px; }
  .wallet-calc-details { grid-template-columns: 1fr; }
}

.wallet-history-card {
  overflow-x: auto;
}

.wallet-history-card h3 {
  padding: 22px 22px 8px;
}

.wallet-history-head,
.wallet-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) 130px 160px minmax(340px, 1.35fr) minmax(280px, 1.2fr) 150px;
  gap: 16px;
  align-items: center;
  min-width: 1280px;
}

.wallet-history-head {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
}

.wallet-history-row {
  margin: 0 22px 12px;
  padding: 18px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}

.wallet-op-id,
.wallet-op-tx,
.wallet-op-date,
.wallet-op-details {
  min-width: 0;
  color: #111317;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-op-id,
.wallet-op-tx {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.35;
}

.wallet-op-details {
  line-height: 1.35;
}

.wallet-op-detail-stack {
  display: grid;
  gap: 4px;
}

.wallet-op-detail-stack strong {
  font-weight: 700;
}

.wallet-op-date {
  line-height: 1.35;
  white-space: normal;
}

.wallet-copy-value,
.wallet-copy-value:hover,
.wallet-copy-value:focus {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}

  .wallet-copy-value:hover,
  .wallet-copy-value:focus-visible {
  color: var(--accent);
}

.wallet-op-status {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
}

.wallet-op-status.success {
  background: #e8f8ef;
  color: #13a053;
}

.wallet-op-status.warning {
  background: #fff1d8;
  color: #a65b00;
}

.wallet-op-status.danger {
  background: #ffe7e7;
  color: #c92a2a;
}

.wallet-op-amount {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.wallet-op-amount small {
  color: var(--muted);
  font-weight: 500;
}

.wallet-op-amount.positive {
  color: #13a053;
}

.wallet-op-amount.negative {
  color: #111317;
}

.wallet-history-empty {
  margin: 0 22px 22px;
  border: 1px dashed #d9dee6;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
  color: var(--muted);
}

.wallet-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .48);
  padding: 24px;
  opacity: 1;
  transition: opacity var(--motion-modal) var(--ease-out);
}

.wallet-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: var(--surface);
  padding: 34px 42px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
  will-change: transform, opacity;
}

@starting-style {
  .wallet-modal-backdrop {
    opacity: 0;
  }

  .wallet-modal {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}

.wallet-modal h2 {
  margin: 0 40px 14px 0;
  text-align: center;
  font-size: 26px;
}

.wallet-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.wallet-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.wallet-modal-close:hover {
  background: transparent;
  color: var(--text);
}

.wallet-address-copy {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 20px;
}

.wallet-deposit-content {
  display: grid;
  gap: 22px;
}

.wallet-deposit-content > .wallet-address-copy,
.wallet-deposit-content > .wallet-deposit-qr,
.wallet-deposit-content > .wallet-modal-secondary,
.wallet-deposit-content > .wallet-confirm-note {
  margin-top: 0;
  margin-bottom: 0;
}

.wallet-address-copy code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wallet-address-copy button {
  min-width: 24px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border-radius: 8px;
  transform: translateX(3px);
  --press-transform: translateX(3px) scale(.97);
}

.wallet-address-copy button:hover {
  background: transparent;
}

.wallet-address-copy button img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.wallet-deposit-qr {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin: 0 auto;
}

.wallet-modal-secondary {
  display: flex;
  width: min(240px, 100%);
  min-height: 48px;
  margin: 0 auto 18px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wallet-modal-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.wallet-modal-field input,
.wallet-modal-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  background: var(--surface);
  outline: 0;
}

.wallet-withdraw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}
.wallet-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}
.wallet-method-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.wallet-method-switch button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
}
.wallet-usdt-note { margin: 0 0 16px; }
.wallet-withdraw-fallback { display: grid; gap: 14px; padding: 4px 0; }
.wallet-withdraw-fallback h2, .wallet-withdraw-fallback p { margin: 0; }
.wallet-withdraw-fallback-status { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); padding: 14px 16px; }
.wallet-withdraw-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wallet-withdraw-fallback-actions button { min-height: 42px; padding: 0 18px; }
.wallet-withdraw-fallback-actions .wallet-withdraw-support-button { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-soft); color: var(--text); font-weight: 700; cursor: pointer; }
.wallet-withdraw-fallback-actions .wallet-withdraw-support-button:hover { background: var(--surface); border-color: var(--text); }
.wallet-withdraw-note { display: flex; align-items: center; min-height: 22px; margin: 14px 0; }
.wallet-quote small:empty { display: none; }
@media (max-width: 520px) { .wallet-withdraw-fallback-actions { display: grid; } }

.wallet-security-gate {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 24px;
  text-align: center;
}

.wallet-security-gate p {
  max-width: 410px;
  margin: 0;
}

.wallet-security-gate button {
  min-height: 46px;
  margin-top: 4px;
  padding-inline: 24px;
}

.wallet-security-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
}

.wallet-security-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-quote {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.wallet-quote div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 12px 14px;
}

.wallet-quote span,
.wallet-quote small {
  color: var(--muted);
}

.wallet-modal #submitWithdrawBtn {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.wallet-withdraw-otp {
  margin-top: 2px;
}

.wallet-withdraw-otp input {
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
}

.wallet-modal .wallet-withdraw-otp-copy {
  margin: -5px 0 12px;
  text-align: left;
  font-size: 12px;
}

.wallet-fee-loading {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.wallet-modal-skeleton {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f5f6f8 0%, #eceff3 45%, #f5f6f8 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

.wallet-deposit-intro {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 12px;
}

.wallet-deposit-orbit {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 65%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.18), transparent 34%), #13161d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2), inset 0 0 0 8px rgba(255,255,255,.025);
}

.wallet-deposit-orbit::before,
.wallet-deposit-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.wallet-deposit-orbit::before {
  inset: -6px;
  border: 1px solid transparent;
  border-top-color: color-mix(in srgb, var(--text) 58%, transparent);
  animation: walletOrbit 2.8s linear infinite;
}

.wallet-deposit-orbit::after {
  width: 9px;
  height: 9px;
  top: 4px;
  right: 4px;
  background: color-mix(in srgb, var(--text) 72%, var(--surface));
  box-shadow: 0 0 14px color-mix(in srgb, var(--text) 20%, transparent);
}

@keyframes walletOrbit { to { transform: rotate(360deg); } }

.wallet-deposit-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-deposit-methods > button,
.wallet-fiat-currency {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: end;
  gap: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 18px;
  text-align: left;
  box-shadow: none;
}
.wallet-fiat-provider-list { display: grid; gap: 12px; }

.wallet-deposit-methods > button {
  align-content: start;
  padding-top: 76px;
}

.wallet-deposit-methods > button:hover:not(:disabled),
.wallet-fiat-currency:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
}

.wallet-deposit-methods > button:disabled { cursor: not-allowed; opacity: .48; }
.wallet-deposit-methods strong,
.wallet-fiat-currency strong { align-self: end; font-size: 17px; }
.wallet-fiat-currency strong { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallet-fiat-recommended { display: inline-flex; align-items: center; min-height: 20px; border: 1px solid rgba(36, 180, 126, .38); border-radius: 999px; background: rgba(36, 180, 126, .12); color: #24b47e; padding: 2px 7px; font-size: 10px; font-style: normal; font-weight: 750; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.wallet-deposit-methods small,
.wallet-fiat-currency small { grid-column: 1; color: var(--muted); line-height: 1.35; }
.wallet-deposit-methods i,
.wallet-fiat-currency i { grid-column: 2; grid-row: 2 / 4; align-self: center; color: var(--muted); font-style: normal; font-size: 20px; }

.wallet-deposit-method-icon {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.wallet-deposit-method-icon.wallet-fiat-icon {
  color: var(--text);
}
.wallet-deposit-method-icon.wallet-fiat-icon svg,
.wallet-fiat-payment-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wallet-deposit-back {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -12px 0 16px -8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0 8px;
}

.wallet-deposit-back:hover { background: transparent; color: var(--text); }

.wallet-fiat-currency {
  width: 100%;
  min-height: 82px;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  align-content: center;
}
.wallet-fiat-currency > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); font-size: 24px; font-weight: 800; }
.wallet-fiat-currency strong { grid-column: 2; }
.wallet-fiat-currency small { grid-column: 2; }
.wallet-fiat-currency i { grid-column: 3; grid-row: 1 / 3; }

.wallet-fiat-amount { display: grid; gap: 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.wallet-fiat-amount > div { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 0 16px; transition: border-color 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 160ms cubic-bezier(.23, 1, .32, 1); }
.wallet-fiat-amount > div:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.wallet-fiat-amount input,
.wallet-fiat-amount input:focus,
.wallet-fiat-amount input:focus-visible { min-width: 0; min-height: 58px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; color: var(--text); font-size: 24px; font-weight: 700; }
.wallet-fiat-amount b { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.wallet-fiat-amount small { color: var(--muted); font-weight: 500; }
.wallet-fiat-submit { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; }

.wallet-fiat-payment-head { display: flex; align-items: center; gap: 14px; margin: 2px 36px 22px 0; }
.wallet-fiat-payment-head h2,
.wallet-fiat-payment-head p { margin: 0; text-align: left; }
.wallet-fiat-payment-head h2 { font-size: 23px; }
.wallet-fiat-payment-head p { margin-top: 3px; font-size: 13px; }
.wallet-fiat-payment-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--text); font-size: 25px; font-weight: 800; }
.wallet-fiat-payment-amount,
.wallet-fiat-timer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); background: var(--surface-soft); padding: 14px 16px; }
.wallet-fiat-payment-amount { border-radius: 14px 14px 0 0; }
.wallet-fiat-payment-amount.single { border-radius: 14px; }
.wallet-fiat-timer { border-top: 0; border-radius: 0 0 14px 14px; }
.wallet-fiat-payment-amount span,
.wallet-fiat-timer span { color: var(--muted); font-size: 13px; }
.wallet-fiat-payment-amount strong { font-size: 20px; }
.wallet-fiat-timer strong { color: #f1a62d; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.wallet-fiat-requisites { display: grid; gap: 8px; margin: 16px 0; }
.wallet-fiat-requisites > div { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; }
.wallet-fiat-requisites span { color: var(--muted); font-size: 11px; }
.wallet-fiat-requisites button { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: transparent; color: var(--text); box-shadow: none; padding: 0; text-align: left; overflow-wrap: anywhere; }
.wallet-fiat-requisites button:hover { background: transparent; }
.wallet-fiat-requisites img { width: 17px; height: 17px; object-fit: contain; opacity: .72; }
.wallet-modal .wallet-fiat-note { margin: 14px 0 18px; border-left: 2px solid var(--line-strong); padding-left: 12px; text-align: left; font-size: 12px; }
.wallet-fiat-success { min-height: 340px; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 28px 12px 18px; text-align: center; }
.wallet-fiat-success-mark { display: grid; width: 92px; height: 92px; place-items: center; margin-bottom: 14px; border-radius: 50%; background: rgba(36, 180, 126, .14); color: #24b47e; animation: walletFiatSuccessEnter 240ms cubic-bezier(.23, 1, .32, 1) both; }
.wallet-fiat-success-mark svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.wallet-fiat-success h2 { margin: 0; font-size: 25px; }
.wallet-fiat-success > strong { color: var(--muted); font-size: 18px; font-variant-numeric: tabular-nums; }
@keyframes walletFiatSuccessEnter { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.wallet-fiat-wait { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.wallet-fiat-wait p { margin: 0; }
.wallet-fiat-unavailable { min-height: 144px; display: grid; grid-template-columns: 44px 1fr; align-content: center; gap: 4px 12px; margin: 16px 0; border: 1px solid rgba(224, 92, 92, .22); border-radius: 14px; background: rgba(224, 92, 92, .06); padding: 16px; }
.wallet-fiat-unavailable > span { grid-row: 1 / 3; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: rgba(224, 92, 92, .13); color: #e05c5c; }
.wallet-fiat-unavailable > span svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wallet-fiat-unavailable strong { align-self: end; }
.wallet-fiat-unavailable p { align-self: start; margin: 0; text-align: left; font-size: 12px; line-height: 1.45; }
.wallet-fiat-actions { display: grid; justify-items: center; gap: 10px; margin-top: 2px; }
.wallet-fiat-actions .wallet-modal-secondary { margin: 0; }
.wallet-fiat-retry { width: 100%; min-height: 50px; margin: 0; }
.wallet-fiat-open { display: block; width: fit-content; min-height: 30px; margin-top: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); padding: 5px 9px; box-shadow: none; font-size: 12px; }
.wallet-fiat-open:hover { background: var(--surface); color: var(--text); }

.ghost-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.ghost-button:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line-strong);
}

.manage-section {
  margin-top: 0;
  min-height: calc(100vh - 126px);
  scroll-margin-top: 96px;
}

.manage-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
  padding: 18px;
}

.manage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.manage-tab {
  min-height: 42px;
  background: #f6f6f7;
  color: #8a8d96;
  border: 1px solid transparent;
  box-shadow: none;
}

.manage-tab:hover,
.manage-tab.active {
  background: #fff;
  color: #111317;
  border-color: var(--line);
}

.manage-pane {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.manage-pane > .seller-profile-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.staff-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.staff-section-head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.staff-section-head p { max-width: 620px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.staff-count-badge { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.staff-subtabs { width: fit-content; display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.staff-subtab { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 10px; outline: 0; background: transparent; color: var(--muted); box-shadow: none; font-size: 13px; font-weight: 560; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 120ms var(--ease-out); }
.staff-subtab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .07); }
.staff-subtab:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .staff-subtab:not(.active):hover { background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--text); }
}
.staff-view { min-width: 0; }
.staff-card-list { display: grid; gap: 10px; }
.staff-member-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.staff-member-main { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.staff-member-main img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; }
.staff-member-main div { min-width: 0; display: grid; gap: 3px; }
.staff-member-main strong { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.staff-member-main span { color: var(--muted); font-size: 12px; }
.staff-member-main em { padding: 6px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.staff-rights-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.staff-rights-preview span, .staff-rights-details div span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.staff-rights-details { margin-top: 10px; }
.staff-rights-details summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 12px; }
.staff-rights-details div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.staff-card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.staff-card-actions button, .staff-form-head button { min-height: 34px; padding: 7px 12px; border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: none; font-size: 12px; }
.staff-card-actions button.danger { color: #b42318; }
.staff-empty { display: grid; gap: 5px; padding: 26px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface-soft); text-align: center; }
.staff-empty strong { font-size: 14px; font-weight: 650; }
.staff-empty span { color: var(--muted); font-size: 12px; }
.staff-loading { display: grid; gap: 9px; }
.staff-loading i { height: 72px; border-radius: 14px; background: linear-gradient(100deg, var(--surface-soft) 25%, var(--surface) 42%, var(--surface-soft) 60%); background-size: 240% 100%; animation: notificationSkeleton 1.25s ease-in-out infinite; }
.staff-logs-shell { display: grid; gap: 12px; }
.staff-log-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.staff-log-toolbar label { width: min(320px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.staff-log-toolbar select { width: 100%; height: 40px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background-color: var(--surface-soft); color: var(--text); cursor: pointer; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.staff-log-toolbar select:focus-visible { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
.staff-log-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, #22a06b 8%, var(--surface-soft)); color: color-mix(in srgb, #178757 78%, var(--text)); font-size: 11px; white-space: nowrap; }
.staff-log-live i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px color-mix(in srgb, #22a06b 12%, transparent); }
.staff-log-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.staff-log-list article { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 11px 14px; border-bottom: 1px solid var(--line); transition: background-color 160ms var(--ease-out); }
.staff-log-list article:last-child { border-bottom: 0; }
.staff-log-list article.is-unread { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%, var(--surface) 58%); }
.staff-log-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.staff-log-list article.is-unread .staff-log-mark { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.staff-log-copy { min-width: 0; display: grid; gap: 4px; }
.staff-log-copy strong { overflow: hidden; font-size: 13px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.staff-log-copy small { overflow: hidden; color: color-mix(in srgb, var(--text) 68%, var(--muted)); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.staff-log-copy span, .staff-log-list time { color: var(--muted); font-size: 11px; }
.staff-log-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.staff-log-meta em { padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 11%, var(--surface-soft)); color: color-mix(in srgb, var(--accent) 82%, var(--text)); font-size: 10px; font-style: normal; font-weight: 650; }
.staff-form-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.staff-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.staff-form-head h3, .staff-pending h3 { margin: 0; font-size: 17px; font-weight: 650; }
.staff-form-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.staff-identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.staff-identity-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.staff-identity-grid input { min-width: 0; height: 44px; border-color: var(--line); border-radius: 12px; background: var(--surface); }
.staff-permissions-head { display: grid; gap: 4px; margin-top: 20px; }
.staff-permissions-head strong { font-size: 14px; font-weight: 650; }
.staff-permissions-head span { color: var(--muted); font-size: 12px; }
.staff-permission-groups { display: grid; gap: 16px; margin-top: 14px; }
.staff-permission-group { display: grid; gap: 8px; }
.staff-permission-group > header { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.staff-permission-group > header::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.staff-permission-group .staff-permission-grid { margin-top: 0; }
.staff-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.staff-permission-row { position: relative; cursor: pointer; }
.staff-permission-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.staff-permission-row > span { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 rgba(15, 23, 42, 0); transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 120ms var(--ease-out); }
.staff-permission-row i { position: relative; width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.staff-permission-row i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border-right: 1.75px solid var(--accent); border-bottom: 1.75px solid var(--accent); opacity: 0; transform: rotate(45deg) scale(.88); transition: opacity 120ms var(--ease-out), transform 150ms var(--ease-out); }
.staff-permission-row strong { color: var(--text); font-size: 12px; font-weight: 520; line-height: 1.3; }
.staff-permission-row input:checked + span { border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); background: color-mix(in srgb, var(--accent) 3%, var(--surface)); box-shadow: 0 3px 12px rgba(15, 23, 42, .035); }
.staff-permission-row input:checked + span i { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 72%, transparent); }
.staff-permission-row input:checked + span i::after { opacity: 1; transform: rotate(45deg) scale(1); }
.staff-permission-row input:focus-visible + span { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .staff-permission-row:not(.is-disabled):hover > span { border-color: color-mix(in srgb, var(--text) 16%, var(--line)); background-color: var(--surface-soft); transform: translateY(-1px); }
}
.staff-permission-row.is-disabled { cursor: not-allowed; opacity: .48; }
.staff-financial-otp { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 13px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--accent) 3%, var(--surface-soft)); }
.staff-financial-otp > span { display: grid; gap: 3px; }
.staff-financial-otp strong { font-size: 12px; font-weight: 620; }
.staff-financial-otp small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.staff-financial-otp input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .24em; text-align: center; }
.staff-financial-otp input:focus { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.staff-submit { width: 100%; min-height: 44px; margin-top: 17px; border-color: #111317; border-radius: 13px; background: #111317; color: #fff; box-shadow: none; }
.staff-pending { display: grid; gap: 8px; margin-top: 16px; }
.staff-pending div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.staff-pending span { font-size: 13px; font-weight: 600; }
.staff-pending strong, .staff-pending time { color: var(--muted); font-size: 11px; font-weight: 400; }
.staff-pending button { min-height: 31px; padding: 6px 10px; border-color: color-mix(in srgb, #b42318 18%, var(--line)); border-radius: 9px; background: var(--surface); color: #b42318; box-shadow: none; font-size: 11px; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.staff-pending button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .staff-pending button:hover { border-color: color-mix(in srgb, #b42318 34%, var(--line)); background: color-mix(in srgb, #b42318 5%, var(--surface)); }
}
.staff-confirm-backdrop { z-index: 180; background: rgba(19, 23, 29, .42); }
.staff-confirm-card { position: relative; width: min(440px, 100%); display: grid; gap: 18px; padding: 24px; border-radius: 20px; box-shadow: 0 24px 72px rgba(15, 23, 42, .2), 0 4px 16px rgba(15, 23, 42, .08); }
.staff-confirm-card:focus { outline: none; }
.staff-confirm-close { position: absolute; top: 14px; right: 14px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); box-shadow: none; font-size: 22px; font-weight: 300; line-height: 1; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.staff-confirm-copy { display: grid; gap: 7px; padding-right: 20px; }
.staff-confirm-copy > span { color: var(--accent); font-size: 10px; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; }
.staff-confirm-copy h2 { margin: 0; font-size: 21px; font-weight: 680; line-height: 1.2; letter-spacing: -.018em; }
.staff-confirm-copy p { max-width: 39ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.staff-confirm-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.staff-confirm-person img { width: 34px; height: 34px; display: block; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); object-fit: cover; }
.staff-confirm-person strong { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.staff-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 9px; }
.staff-confirm-actions button { min-height: 43px; padding: 9px 13px; border-radius: 12px; box-shadow: none; font-size: 12px; font-weight: 580; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out), opacity 150ms var(--ease-out); }
.staff-confirm-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.staff-confirm-primary { border-color: #17191d; background: #17191d; color: #fff; }
.staff-confirm-primary.is-reject { border-color: color-mix(in srgb, #b42318 72%, #17191d); background: color-mix(in srgb, #b42318 72%, #17191d); }
.approval-decision-backdrop { z-index: 220; }
.approval-decision-card { width: min(460px, 100%); }
.approval-decision-summary { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.approval-decision-summary strong { font-size: 13px; font-weight: 620; line-height: 1.35; }
.approval-decision-summary span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.approval-decision-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 7px -5px -5px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.approval-decision-details div { min-width: 0; padding: 8px 9px; background: var(--surface); }
.approval-decision-details div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.approval-decision-details dt { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 540; line-height: 1.2; }
.approval-decision-details dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 580; line-height: 1.35; }
.approval-decision-otp { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.approval-decision-otp input { height: 46px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .3em; text-align: center; transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.approval-decision-otp input:focus { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.staff-confirm-actions button:active:not(:disabled), .staff-confirm-close:active:not(:disabled) { transform: scale(.97); }
.staff-confirm-actions button:disabled, .staff-confirm-close:disabled { cursor: wait; opacity: .58; }
@media (hover: hover) and (pointer: fine) {
  .staff-confirm-close:hover:not(:disabled) { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
  .staff-confirm-secondary:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-soft); }
  .staff-confirm-primary:hover:not(:disabled) { background: #272a30; }
  .staff-confirm-primary.is-reject:hover:not(:disabled) { background: color-mix(in srgb, #b42318 82%, #17191d); }
}
.product-position-row.is-pending-review { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.address-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.address-row-actions .icon-action:is(.product-address-edit-action, .product-address-delete-action) { border-color: transparent; box-shadow: none; }
.address-row-actions .product-address-delete-action { color: var(--bad); }
.address-service-open { min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: none; font-size: 11px; font-weight: 590; }
.address-service-open:active:not(:disabled) { transform: scale(.97); }
.address-service-summary { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin: 0 -2px -2px; padding: 13px 2px 0; border-top: 1px solid var(--line); }
.address-service-person { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 150px; }
.address-service-person > img { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; background: var(--surface-soft); }
.address-service-person > span { display: grid; grid-template-columns: minmax(0, auto) auto; align-items: baseline; gap: 1px 7px; }
.address-service-person small, .address-service-created small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 540; line-height: 1.2; }
.address-service-person strong, .address-service-created strong { color: var(--text); font-size: 11px; font-weight: 620; line-height: 1.3; }
.address-service-person em { color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.3; }
.address-service-created { display: grid; gap: 3px; margin-left: auto; }
.address-review-backdrop { z-index: 225; padding: 22px; overflow: hidden; }
.address-review-modal { position: relative; width: min(100%, 1180px); max-height: calc(100dvh - 44px); margin: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 88%, transparent); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 28px 80px rgba(10, 15, 25, .24); }
.address-review-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; padding: 26px; }
.address-review-scroll::-webkit-scrollbar { display: none; }
.address-review-close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.address-review-head { padding-right: 46px; }
.address-review-head > span { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.address-review-head h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 670; letter-spacing: -.018em; line-height: 1.15; }
.address-review-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.address-review-status { display: inline-flex; align-items: center; min-height: 28px; margin-top: 15px; padding: 5px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 620; }
.address-review-status.status-approved { background: color-mix(in srgb, #16a36a 10%, var(--surface)); color: #117a51; }
.address-review-status.status-rejected { background: color-mix(in srgb, #b42318 9%, var(--surface)); color: #9b1c13; }
.address-review-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.address-review-people .address-service-person { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.address-review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.address-review-facts > div { min-width: 0; padding: 11px 12px; background: var(--surface); }
.address-review-facts > div.wide { grid-column: span 2; }
.address-review-facts dt { margin: 0 0 4px; color: var(--muted); font-size: 9px; font-weight: 540; line-height: 1.25; }
.address-review-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 590; line-height: 1.4; }
.address-review-photos, .address-review-note { display: grid; gap: 8px; margin-top: 16px; }
.address-review-photos > span, .address-review-note > span { color: var(--muted); font-size: 10px; font-weight: 580; }
.address-review-photos > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.address-review-photos button { width: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: transparent; box-shadow: none; cursor: zoom-in; }
.address-review-photos button:hover, .address-review-photos button:focus-visible { background: transparent; box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 24%, transparent); }
.address-review-photos img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 11px; object-fit: cover; background: var(--surface-soft); }
.address-review-photo-state { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--muted); }
.address-review-photo-state::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 22%, color-mix(in srgb, var(--text) 8%, transparent) 44%, transparent 66%); background-size: 220% 100%; animation: skeleton-shimmer 1.25s ease-in-out infinite; content: ""; }
.address-review-photo-state.is-error { display: grid; place-items: center; }
.address-review-photo-state.is-error::after { position: static; inset: auto; width: auto; height: auto; border: 0; background: none; animation: none; color: var(--muted); content: "\00d7"; font-size: 18px; line-height: 1; }
.address-review-note { padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.address-review-note p { margin: 0; white-space: pre-wrap; color: var(--text); font-size: 12px; line-height: 1.5; }
.address-review-note.is-decision { border-left: 3px solid color-mix(in srgb, var(--accent) 62%, var(--line)); }
.address-review-comment { display: grid; gap: 7px; margin-top: 17px; }
.address-review-comment > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text); font-size: 11px; font-weight: 620; }
.address-review-comment > span small { color: var(--muted); font-size: 9px; font-weight: 500; }
.address-review-comment textarea { min-height: 104px; resize: vertical; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--surface); color: var(--text); font: inherit; line-height: 1.5; transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.address-review-comment textarea:focus { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent); }
.address-review-comment > em { color: var(--muted); font-size: 9px; font-style: normal; text-align: right; }
.address-review-own-note { margin-top: 17px; padding: 11px 13px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 11px; line-height: 1.45; }
.address-review-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.address-review-footer > div { display: flex; gap: 8px; }
.address-review-footer button { min-height: 40px; padding: 9px 15px; border-radius: 999px; box-shadow: none; font-size: 11px; font-weight: 620; }
.address-review-reject { border: 1px solid color-mix(in srgb, #b42318 28%, var(--line)); background: var(--surface); color: #a51f16; }
.address-review-approve { border: 1px solid #17191d; background: #17191d; color: #fff; }
.address-review-footer button:active:not(:disabled) { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .address-service-open:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-soft); }
  .address-review-reject:hover:not(:disabled) { background: color-mix(in srgb, #b42318 6%, var(--surface)); }
  .address-review-approve:hover:not(:disabled) { background: #282b31; }
}

@media (max-width: 620px) {
  .staff-section-head h2 { font-size: 19px; }
  .staff-subtabs { width: 100%; }
  .staff-subtab { flex: 1 1 0; padding-inline: 8px; }
  .staff-member-main { grid-template-columns: 40px minmax(0, 1fr); }
  .staff-member-main em { grid-column: 2; justify-self: start; }
  .staff-identity-grid, .staff-permission-grid { grid-template-columns: 1fr; }
  .staff-financial-otp { grid-template-columns: 1fr; }
  .staff-form-card { padding: 14px; }
  .staff-card-actions button { flex: 1 1 0; }
  .staff-log-toolbar { align-items: stretch; flex-direction: column; }
  .staff-log-toolbar label { width: 100%; }
  .staff-log-live { align-self: flex-start; }
  .staff-log-list article { grid-template-columns: 7px minmax(0, 1fr); }
  .staff-log-meta { grid-column: 2; justify-content: space-between; }
  .staff-pending div { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .staff-pending span, .staff-pending strong, .staff-pending time { grid-column: 1; }
  .staff-pending button { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .staff-confirm-card { width: min(390px, 100%); gap: 16px; padding: 21px; border-radius: 18px; }
  .staff-confirm-actions { grid-template-columns: 1fr; }
  .staff-confirm-primary { order: -1; }
  .notification-invite-actions { padding-left: 18px; }
  .address-service-summary { align-items: stretch; gap: 10px; }
  .address-service-person { flex: 1 1 145px; }
  .address-service-created { width: 100%; margin-left: 0; }
  .address-row-actions { justify-content: flex-start; }
  .address-review-backdrop { align-items: flex-end; padding: 0; }
  .address-review-modal { width: 100%; max-height: min(92dvh, 860px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .address-review-scroll { padding: 21px 16px; }
  .address-review-close { top: 14px; right: 14px; }
  .address-review-people { grid-template-columns: 1fr; }
  .address-review-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address-review-facts > div.wide { grid-column: 1 / -1; }
  .address-review-photos > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .address-review-footer { margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .address-review-footer > div { flex: 1; }
  .address-review-footer > div button { flex: 1 1 0; }
  }

.admin-layout .profile-workspace {
  min-height: 420px;
}

.admin-balance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-balance-main,
.admin-balance-rate,
.admin-balance-metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.admin-balance-main {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 210px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.admin-balance-main > span,
.admin-balance-rate span,
.admin-balance-metric span {
  color: var(--muted);
  font-size: 13px;
}

.admin-balance-main > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-balance-main strong {
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.admin-balance-main p,
.admin-balance-metric p {
  margin: 0;
  color: var(--muted);
}

.admin-balance-rate-grid {
  display: grid;
  gap: 10px;
}

.admin-balance-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.admin-balance-rate strong {
  color: var(--text);
  font-size: 18px;
}

.admin-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-balance-metric {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-balance-metric strong {
  color: var(--text);
  font-size: 20px;
}

.admin-balance-loading {
  grid-template-columns: 1fr;
}

.admin-profit-overview {
  display: grid;
  grid-template-columns: minmax(340px, 1.04fr) minmax(380px, .96fr);
  gap: 12px;
  margin-bottom: 12px;
}

.admin-profit-hero,
.admin-profit-ledger,
.admin-profit-sources {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

.admin-profit-hero {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 244px;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(133, 146, 166, .22), transparent 38%),
    linear-gradient(145deg, #191b1f 0%, #0d0e10 72%);
  border-color: rgba(255, 255, 255, .06);
}

.admin-profit-hero::after {
  position: absolute;
  right: -64px;
  bottom: -92px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.admin-profit-eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
}

.admin-profit-eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa6b7;
  box-shadow: 0 0 0 5px rgba(154, 166, 183, .13);
}

.admin-liquidity-list { position: relative; z-index: 1; display: grid; gap: 8px; }
.admin-liquidity-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.045); }
.admin-liquidity-row > span { display: grid; gap: 3px; min-width: 0; }
.admin-liquidity-row strong, .admin-liquidity-row b { overflow-wrap: anywhere; color: #fff; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.admin-liquidity-row small { color: rgba(255,255,255,.58); font-size: 11px; }
.admin-profit-hero > .admin-liquidity-copy { margin: 13px 0 0; font-size: 12px; }
.admin-reserve-address { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); }
.admin-reserve-address > div:first-child { display: grid; gap: 3px; }
.admin-reserve-address strong { color: #fff; font-size: 13px; }
.admin-reserve-address small { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.4; }
.admin-reserve-address > div:last-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-reserve-address code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #fff; font-size: 12px; }
.admin-reserve-address button { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.09); color: #fff; font-size: 12px; }
.admin-reserve-address button:hover { background: rgba(255,255,255,.17); }

.admin-profit-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.admin-profit-value .wallet-balance-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.admin-profit-value strong {
  min-width: 0;
  color: #fff;
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.admin-profit-hero > p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 11px 0 20px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.45;
}

.admin-profit-fiat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.admin-profit-fiat i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.admin-profit-withdraw-button {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-width: 128px;
  min-height: 40px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: #f4f5f7;
  color: #111317;
  padding: 0 20px;
  box-shadow: none;
}

.admin-profit-withdraw-button:hover { background: #fff; }

.admin-profit-withdraw-button:disabled {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  cursor: not-allowed;
}

.admin-profit-withdraw-button:disabled:hover { background: rgba(255, 255, 255, .08); }

.admin-profit-ledger {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  padding: 7px 18px;
}

.admin-profit-metric {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 16px;
  padding: 14px 4px 14px 17px;
  border-bottom: 1px solid var(--line);
}

.admin-profit-metric:last-child {
  border-bottom: 0;
}

.admin-profit-metric::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 26px;
  border-radius: 999px;
  background: #a9b0bb;
  content: "";
}

.admin-profit-metric.warning::before { background: #ef9b20; }
.admin-profit-metric.protected::before { background: #24b47e; }

.admin-profit-metric > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.admin-profit-metric > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
}

.admin-profit-metric > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-profit-sources {
  margin-bottom: 14px;
  padding: 20px;
}

.admin-profit-sources > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-profit-sources h4 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.admin-profit-sources header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-profit-sources header > strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.admin-profit-source-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-profit-source {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.admin-profit-source > div:first-child {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
}

.admin-profit-source-mark {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c96a5;
}

.admin-profit-source strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profit-source em {
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.admin-profit-source-track {
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
}

.admin-profit-source-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #8c96a5;
}

.admin-profit-source.mint .admin-profit-source-mark,
.admin-profit-source.mint .admin-profit-source-track i { background: #24b47e; }
.admin-profit-source.amber .admin-profit-source-mark,
.admin-profit-source.amber .admin-profit-source-track i { background: #ef9b20; }
.admin-profit-source.blue .admin-profit-source-mark,
.admin-profit-source.blue .admin-profit-source-track i { background: #4b84e6; }
.admin-profit-source.violet .admin-profit-source-mark,
.admin-profit-source.violet .admin-profit-source-track i { background: #8b6ad9; }

.admin-profit-refreshing {
  display: inline-block;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.025em;
}

.admin-profit-metric.received::before { background: #24b47e; }
.admin-profit-metric.withdrawn::before { background: #7d8796; }

.admin-profit-source-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-profit-source {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-content: center;
  gap: 5px 9px;
  min-height: 72px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.admin-profit-source:last-child {
  border-right: 0;
}

.admin-profit-source-mark {
  grid-row: 1 / 3;
  align-self: center;
}

.admin-profit-source strong {
  font-size: 12px;
  font-weight: 560;
}

.admin-profit-source em {
  font-size: 14px;
}

.admin-profit-protected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 15px 18px;
  border: 1px solid color-mix(in srgb, #24b47e 28%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, #24b47e 6%, var(--surface));
}

.admin-profit-protected > div {
  display: grid;
  gap: 3px;
}

.admin-profit-protected strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.admin-profit-protected span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-profit-protected b {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
}

.admin-profit-protected.is-forfeiture {
  border-color: color-mix(in srgb, #8792a2 32%, var(--line));
  background: color-mix(in srgb, #8792a2 7%, var(--surface));
}

.admin-finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.admin-finance-tabs {
  display: inline-flex;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 4px;
}
.admin-finance-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; padding: 0 16px; }
.admin-finance-tabs button:hover,
.admin-finance-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.admin-finance-withdraw-button { min-height: 42px; border-radius: 11px; padding: 0 20px; }
.admin-souz-overview { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 22px; }
.admin-souz-overview > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-souz-overview > header span { color: var(--muted); font-size: 12px; }
.admin-souz-overview > header h4 { margin: 3px 0 2px; color: var(--text); font-size: 24px; }
.admin-souz-overview > header p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-souz-accounts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.admin-souz-accounts article { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); padding: 16px; }
.admin-souz-accounts article > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.admin-souz-accounts article > label { margin-top: 5px; color: var(--muted); font-size: 11px; }
.admin-souz-accounts article strong { color: var(--text); font-size: 21px; font-variant-numeric: tabular-nums; }
.admin-souz-accounts article > section { display: grid; gap: 7px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-souz-accounts article p { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font-size: 12px; }
.admin-souz-accounts article p b { color: var(--text); font-weight: 600; }
.admin-souz-accounts .admin-processor-account-empty { align-content: center; min-height: 142px; }
.admin-souz-accounts .admin-processor-account-empty > p { margin: 4px 0 0; line-height: 1.5; }
.admin-souz-accounts .admin-processor-account-empty.is-unavailable { border-style: dashed; }
.admin-souz-overview > footer { margin: 0; color: var(--muted); font-size: 12px; }
.admin-withdrawal-history { display: grid; gap: 14px; margin-top: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 20px; }
.admin-withdrawal-history > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-withdrawal-history > header h4 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.admin-withdrawal-history > header p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-withdrawal-history > header > b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 12px; }
.admin-withdrawal-history-group { display: grid; gap: 8px; }
.admin-withdrawal-history-group h5 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.admin-withdrawal-history-group h5 span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-withdrawal-history-list { display: grid; gap: 8px; }
.admin-withdrawal-history-list > article { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 14px 16px; }
.admin-withdrawal-history-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.admin-withdrawal-history-main > div { min-width: 0; display: grid; gap: 4px; }
.admin-withdrawal-history-main b { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.admin-withdrawal-history-main small,
.admin-withdrawal-history-state time,
.admin-withdrawal-history-facts dt { color: var(--muted); font-size: 11px; }
.admin-withdrawal-history-state { justify-items: end; }
.admin-withdrawal-history-state .wallet-op-status { white-space: normal; }
.admin-withdrawal-history-facts { display: grid; gap: 8px; border-top: 1px solid var(--line); margin: 0; padding-top: 10px; }
.admin-withdrawal-history-facts > div { display: grid; grid-template-columns: minmax(100px, 135px) minmax(0, 1fr); align-items: baseline; gap: 4px 10px; }
.admin-withdrawal-history-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.admin-seller-withdrawal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-seller-withdrawal-actions label { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; }
.admin-seller-withdrawal-actions [hidden] { display: none; }
.admin-seller-withdrawal-actions input, .admin-seller-withdrawal-actions textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px 12px; }
.admin-seller-withdrawal-actions > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.admin-seller-withdrawal-actions > div[data-seller-usdt-pgp] { min-width: 0; }
@media (max-width: 680px) { .admin-seller-withdrawal-actions { grid-template-columns: minmax(0, 1fr); } }
.withdrawal-tx-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.admin-souz-reconciliation { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, #27b579 28%, var(--line)); border-radius: 14px; background: color-mix(in srgb, #27b579 6%, var(--surface)); padding: 15px 16px; }
.admin-souz-reconciliation > span { width: 9px; height: 9px; border-radius: 50%; background: #27b579; }
.admin-souz-reconciliation > div { display: grid; gap: 3px; }
.admin-souz-reconciliation strong { color: var(--text); font-size: 13px; }
.admin-souz-reconciliation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.admin-souz-reconciliation > b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-souz-reconciliation.shortage,
.admin-souz-reconciliation.unavailable { border-color: color-mix(in srgb, #dc6262 28%, var(--line)); background: color-mix(in srgb, #dc6262 6%, var(--surface)); }
.admin-souz-reconciliation.shortage > span,
.admin-souz-reconciliation.unavailable > span { background: #dc6262; }
.admin-souz-coverage-details { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.admin-souz-coverage-details summary { padding: 12px 14px; color: var(--muted); font-size: 12px; cursor: pointer; }
.admin-souz-coverage-details dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); padding: 4px 14px; }
.admin-souz-coverage-details dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.admin-souz-coverage-details dt { color: var(--muted); font-size: 12px; }
.admin-souz-coverage-details dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-souz-withdrawals { display: grid; gap: 10px; }
.admin-souz-withdrawals > header strong { color: var(--text); }
.admin-souz-withdrawals > div { display: grid; gap: 8px; }
.admin-souz-withdrawals article { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 12px 14px; }
.admin-souz-withdrawals article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-souz-withdrawals article small { color: var(--muted); }
.admin-souz-withdrawals article code { overflow: hidden; color: var(--text); font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.admin-souz-empty { display: grid; justify-items: center; border: 1px dashed var(--line); border-radius: 17px; background: var(--surface-soft); padding: 48px 24px; text-align: center; }
.admin-souz-empty > span { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--text); font-size: 27px; font-weight: 800; }
.admin-souz-empty h4 { margin: 14px 0 5px; color: var(--text); }
.admin-souz-empty p { max-width: 480px; margin: 0; color: var(--muted); }
.admin-souz-loading { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 22px; }
.admin-souz-loading-head,
.admin-souz-loading-status { display: flex; align-items: center; gap: 13px; }
.admin-souz-loading-head > i { width: 52px; height: 52px; border-radius: 14px; }
.admin-souz-loading-head > span,
.admin-souz-loading-status > span { display: grid; flex: 1; gap: 8px; }
.admin-souz-loading-head b,
.admin-souz-loading-status b,
.admin-souz-loading-status > i,
.admin-souz-loading-cards > i,
.admin-withdrawal-source-skeleton i,
.admin-withdrawal-source-skeleton b { display: block; background: color-mix(in srgb, var(--line-strong) 58%, var(--surface)); animation: notification-skeleton-pulse 1.2s ease-in-out infinite alternate; }
.admin-souz-loading-head b { width: 180px; height: 12px; border-radius: 999px; }
.admin-souz-loading-head b:last-child { width: 280px; height: 9px; }
.admin-souz-loading-status { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.admin-souz-loading-status > i { width: 9px; height: 9px; border-radius: 50%; }
.admin-souz-loading-status b { width: 35%; height: 10px; border-radius: 999px; }
.admin-souz-loading-status b:last-child { width: 72%; height: 8px; }
.admin-souz-loading-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-souz-loading-cards > i { height: 132px; border-radius: 14px; }

.admin-profit-withdrawal-backdrop { z-index: 460; padding: 16px; }
.admin-profit-withdrawal-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 15px;
  border-radius: 20px;
  padding: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-profit-withdrawal-modal > .plain-close {
  position: absolute;
  top: 13px;
  right: 13px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.admin-profit-withdrawal-modal > h3 { margin: 0; color: var(--text); font-size: 24px; }
.admin-profit-withdrawal-modal > p { margin: -7px 34px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-profit-withdrawal-modal > label { display: grid; gap: 7px; color: var(--text); font-size: 12px; font-weight: 600; }
.admin-profit-withdrawal-modal > label input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 0 12px; font: inherit; }
.admin-withdrawal-sources { display: grid; gap: 9px; }
.admin-withdrawal-source { display: flex; width: 100%; min-height: 74px; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--text); padding: 13px 15px; text-align: left; transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out); }
.admin-withdrawal-source.active { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 4%, transparent); }
.admin-withdrawal-source:focus-visible { outline: 0; border-color: color-mix(in srgb, var(--text) 38%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.admin-withdrawal-source:disabled { cursor: not-allowed; opacity: .45; }
.admin-withdrawal-source > span { display: grid; gap: 4px; }
.admin-withdrawal-source small { color: var(--muted); font-size: 11px; }
.admin-withdrawal-source b { font-size: 13px; white-space: nowrap; }
.admin-withdrawal-source-skeleton { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 74px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 13px 15px; }
.admin-withdrawal-source-skeleton > i { width: 38px; height: 38px; border-radius: 11px; }
.admin-withdrawal-source-skeleton > span { display: grid; gap: 8px; }
.admin-withdrawal-source-skeleton b { width: 62%; height: 10px; border-radius: 999px; }
.admin-withdrawal-source-skeleton b:last-child { width: 88%; height: 8px; }
.admin-withdrawal-summary { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 15px; }
.admin-withdrawal-summary span,
.admin-withdrawal-summary small { color: var(--muted); }
.admin-withdrawal-summary strong { color: var(--text); font-size: 20px; }
.admin-withdrawal-summary small { overflow-wrap: anywhere; }
.admin-profit-withdrawal-limit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 13px; }
.admin-profit-withdrawal-limit span,
.admin-profit-withdrawal-limit small { color: var(--muted); font-size: 11px; }
.admin-profit-withdrawal-limit strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.admin-profit-withdrawal-modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }

@media (hover: hover) and (pointer: fine) {
  .admin-withdrawal-source:hover:not(:disabled):not(.active) { border-color: var(--line-strong); background: var(--surface); }
}

.admin-finance-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.admin-finance-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-finance-details > summary::-webkit-details-marker {
  display: none;
}

.admin-finance-details > summary > span {
  display: grid;
  gap: 3px;
}

.admin-finance-details > summary strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.admin-finance-details > summary small {
  color: var(--muted);
  font-size: 12px;
}

.admin-finance-details > summary i {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-soft);
}

.admin-finance-details > summary i::before,
.admin-finance-details > summary i::after {
  position: absolute;
  top: 11px;
  width: 7px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transition: transform 180ms ease;
}

.admin-finance-details > summary i::before {
  left: 6px;
  transform: rotate(45deg);
}

.admin-finance-details > summary i::after {
  right: 6px;
  transform: rotate(-45deg);
}

.admin-finance-details[open] > summary i::before {
  transform: rotate(-45deg);
}

.admin-finance-details[open] > summary i::after {
  transform: rotate(45deg);
}

.admin-finance-details > summary:focus-visible {
  outline: 2px solid color-mix(in srgb, #ff9218 68%, transparent);
  outline-offset: -3px;
}

.admin-finance-details .admin-balance-grid {
  margin: 0;
  padding: 0 10px 10px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.admin-finance-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-finance-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.admin-account-toggle {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px;
}

.admin-account-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.admin-account-count {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.admin-account-count.is-loading {
  min-width: 28px;
  color: transparent;
  overflow: hidden;
  position: relative;
}

.admin-account-count.is-loading::after {
  position: absolute;
  inset: 5px 6px;
  border-radius: 999px;
  background: currentColor;
  color: var(--muted);
  opacity: .24;
  animation: admin-account-count-pulse 900ms ease-in-out infinite alternate;
  content: "";
}

@keyframes admin-account-count-pulse { to { opacity: .58; } }

.admin-account-toggle button:hover {
  background: var(--surface);
  color: var(--text);
}

.admin-account-toggle button.active {
  background: var(--text);
  color: var(--surface);
}

.admin-account-list {
  display: grid;
  gap: 12px;
  animation: admin-account-list-in 180ms var(--ease-out) both;
}

@keyframes admin-account-list-in {
  from {
    opacity: .72;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-account-search {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 0 13px;
  margin-bottom: 12px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.admin-account-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.admin-account-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
  color: var(--muted);
}

.admin-account-search input {
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 28px 0 0;
  box-shadow: none;
}

.admin-account-search-spinner {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
  transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
}

.admin-account-search-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--muted) 24%, transparent);
  border-top-color: var(--accent);
  border-right-color: color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  animation: admin-account-search-spin 680ms linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.admin-account-search-spinner.is-visible {
  opacity: 1;
  transform: scale(1);
}

.admin-account-search-spinner.is-visible::before {
  animation-play-state: running;
}

@keyframes admin-account-search-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.incremental-list-sentinel {
  grid-column: 1 / -1;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.incremental-list-sentinel span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: skeleton-pulse 900ms ease-in-out infinite alternate;
}

.incremental-list-sentinel span:nth-child(2) {
  animation-delay: 120ms;
}

.incremental-list-sentinel span:nth-child(3) {
  animation-delay: 240ms;
}

.admin-account-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 15px;
}

.admin-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.admin-account-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-account-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-account-head strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-account-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-account-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-account-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, #16a36a 8%, var(--surface));
  color: #147a52;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 560;
}

.admin-account-status.is-blocked {
  background: color-mix(in srgb, #b42318 7%, var(--surface));
  color: #a11f17;
}

.admin-account-actions-button {
  width: auto;
  min-width: 82px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  padding: 0 12px;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.admin-account-actions-button span {
  color: var(--text);
  font-size: 12px;
  font-weight: 540;
  line-height: 1;
}

.admin-account-actions-button:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .admin-account-actions-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
  }
}

.admin-account-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}

.admin-account-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 9px 11px;
}

.admin-account-meta span {
  color: var(--muted);
  font-size: 12px;
}

.admin-account-meta b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-account-meta .wallet-copy-value {
  max-width: 100%;
  text-align: left;
  white-space: normal;
}

.admin-account-details-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 10px 2px 0;
  transition: color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.admin-account-details-toggle span {
  font-size: 12px;
  font-weight: 560;
}

.admin-account-details-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease-out);
}

.admin-account-details-toggle svg,
.admin-account-details-toggle svg * {
  pointer-events: none;
}

.admin-account-card.is-expanded .admin-account-details-toggle svg {
  transform: rotate(180deg);
}

.admin-account-details-toggle:active {
  transform: scale(.99);
}

@media (hover: hover) and (pointer: fine) {
  button.admin-account-details-toggle:hover {
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }
}

button.admin-account-details-toggle:focus-visible {
  background: transparent;
  box-shadow: none;
}

.admin-account-details[hidden] {
  display: none;
}

.admin-account-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.admin-account-loading {
  grid-template-columns: 1fr;
}

.admin-account-action-backdrop {
  z-index: 185;
  background: rgba(19, 23, 29, .44);
  backdrop-filter: blur(7px);
}

.admin-account-action-modal {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(15, 23, 42, .22), 0 5px 18px rgba(15, 23, 42, .08);
  padding: 17px;
}

.admin-account-action-modal.is-user {
  width: min(450px, 100%);
}

.admin-account-action-modal.is-balance {
  width: min(610px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-account-action-modal.is-balance .admin-account-fine-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 540px) {
  .admin-account-action-modal.is-balance .admin-account-fine-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-account-action-modal:focus {
  outline: none;
}

.admin-account-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.admin-account-modal-heading {
  display: grid;
  gap: 3px;
  padding-right: 40px;
}

.admin-account-modal-heading > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-account-modal-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.018em;
}

.admin-account-modal-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 7px 9px;
}

.admin-account-modal-person img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  object-fit: cover;
}

.admin-account-modal-person > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-account-modal-person strong,
.admin-account-modal-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-modal-person strong {
  font-size: 14px;
  font-weight: 620;
}

.admin-account-modal-person span {
  color: var(--muted);
  font-size: 12px;
}

.admin-account-modal-person em {
  border-radius: 999px;
  background: color-mix(in srgb, #16a36a 8%, var(--surface));
  color: #147a52;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 560;
}

.admin-account-modal-person em.is-blocked {
  background: color-mix(in srgb, #b42318 7%, var(--surface));
  color: #a11f17;
}

.admin-account-modal-content {
  display: grid;
  gap: 9px;
}

.admin-account-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-account-modal-option {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  padding: 8px 10px;
  text-align: left;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.admin-account-modal-option:active {
  transform: scale(.985);
}

.admin-account-modal-option b {
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -.01em;
}

.admin-account-modal-option[data-admin-account-section="fine"] {
  grid-column: 1 / -1;
  min-height: 62px;
}

.admin-account-option-art {
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-account-option-art img {
  width: 40px;
  height: 36px;
  display: block;
  object-fit: contain;
  filter: none;
}

:root[data-theme="dark"] .admin-account-option-art img {
  filter: invert(1);
}

.admin-account-modal-back {
  width: fit-content;
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  --press-transform: translateX(-1px);
}

.admin-account-modal-back span {
  font-size: 15px;
  line-height: 1;
}

.admin-account-action-modal .admin-account-modal-back:focus-visible {
  outline: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.admin-account-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
}

.admin-account-confirm-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-account-confirm-head strong {
  font-size: 13px;
  font-weight: 590;
  text-align: right;
}

.admin-account-comment-field,
.admin-account-number-field,
.admin-account-select-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-account-comment-field > span,
.admin-account-number-field > span,
.admin-account-select-field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 540;
}

.admin-account-comment-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.admin-account-comment-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.admin-account-number-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding-right: 13px;
}

.admin-account-number-field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.admin-account-number-field b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.admin-account-fine-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 10px;
}

.admin-account-select-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 0 36px 0 13px;
  font: inherit;
  font-size: 14px;
}

.admin-account-access-action {
  width: 100%;
  min-height: 44px;
  border-radius: 13px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 580;
}

.admin-account-access-action.is-danger {
  border-color: color-mix(in srgb, #b42318 35%, var(--line));
  background: color-mix(in srgb, #b42318 7%, var(--surface));
  color: #a11f17;
}

.admin-account-access-action.is-restore {
  border-color: #17191d;
  background: #17191d;
  color: #fff;
}

.admin-account-access-action.is-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--text) 15%, transparent);
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 100ms var(--ease-out), opacity 140ms var(--ease-out);
}

.admin-account-access-action.is-primary:active:not(:disabled) { transform: scale(.985); }

.admin-account-access-action.is-primary:disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  cursor: wait;
  opacity: .58;
}

.admin-account-comment-field textarea:focus-visible,
.admin-account-number-field > div:focus-within,
.admin-account-select-field select:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .admin-account-access-action.is-primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--text) 88%, var(--surface));
  }
  .admin-account-modal-option:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
  }
  .admin-account-modal-close:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--text);
  }
  .admin-account-action-modal .admin-account-modal-back:hover {
    border-color: transparent;
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }
}

.profile-menu-tile[data-admin-tab="monitor"] {
  justify-content: space-between;
  gap: 12px;
}

.admin-monitor-menu-status {
  width: 14px;
  height: 3px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  box-shadow: none;
}

.admin-monitor-menu-status.is-normal {
  background: #20b978;
  box-shadow: none;
}

.admin-monitor-menu-status.is-heightened {
  background: #f29a22;
  box-shadow: none;
}

.admin-monitor-menu-status.is-emergency {
  background: #d9473f;
  box-shadow: none;
}

.admin-monitor-menu-status.is-stale {
  background: #8b93a1;
}

.admin-monitor-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.admin-monitor-pane-head > div {
  min-width: 0;
}

.admin-monitor-pane {
  font-optical-sizing: auto;
}

.admin-monitor-refresh {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(17, 19, 23, .04);
  padding: 0 13px 0 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    color 150ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.admin-monitor-refresh-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-monitor-refresh:disabled,
.admin-monitor-refresh:disabled:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  opacity: .72;
}

.admin-monitor-refresh.is-loading .admin-monitor-refresh-icon {
  animation: admin-monitor-refresh-spin 700ms linear infinite;
}

.admin-monitor-refresh:active {
  transform: scale(.97);
}

.admin-monitor-refresh:focus-visible {
  outline: 0;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .admin-monitor-refresh:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
  }
}

@keyframes admin-monitor-refresh-spin {
  to { transform: rotate(360deg); }
}

.admin-monitor-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 19, 23, .025);
  padding: 19px 20px 16px;
}

.admin-monitor-hero::before {
  content: none;
}

.admin-monitor-hero.is-heightened {
  background: var(--surface);
}

.admin-monitor-hero.is-heightened::before {
  content: none;
}

.admin-monitor-hero.is-emergency {
  background: var(--surface);
}

.admin-monitor-hero.is-emergency::before {
  content: none;
}

.admin-monitor-hero.is-stale {
  background: var(--surface);
}

.admin-monitor-hero.is-stale::before {
  content: none;
}

.admin-monitor-mode {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.admin-monitor-mode-mark {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 20px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, #20b978 12%, transparent);
}

.admin-monitor-mode-mark i {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #20b978;
  box-shadow: none;
}

.admin-monitor-hero.is-heightened .admin-monitor-mode-mark {
  border-color: transparent;
  background: color-mix(in srgb, #f29a22 13%, transparent);
}

.admin-monitor-hero.is-heightened .admin-monitor-mode-mark i {
  border-color: transparent;
  background: #f29a22;
  box-shadow: none;
}

.admin-monitor-hero.is-emergency .admin-monitor-mode-mark {
  border-color: transparent;
  background: color-mix(in srgb, #d9473f 12%, transparent);
}

.admin-monitor-hero.is-emergency .admin-monitor-mode-mark i {
  border-color: transparent;
  background: #d9473f;
  box-shadow: none;
}

.admin-monitor-hero.is-stale .admin-monitor-mode-mark {
  border-color: transparent;
  background: color-mix(in srgb, #8b93a1 14%, transparent);
}

.admin-monitor-hero.is-stale .admin-monitor-mode-mark i {
  border-color: transparent;
  background: #8b93a1;
  box-shadow: none;
}

.admin-monitor-mode > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-monitor-mode > div > span {
  color: #16845a;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.admin-monitor-hero.is-heightened .admin-monitor-mode > div > span {
  color: #bd6a0b;
}

.admin-monitor-hero.is-emergency .admin-monitor-mode > div > span {
  color: #b82f2a;
}

.admin-monitor-hero.is-stale .admin-monitor-mode > div > span {
  color: var(--muted);
}

.admin-monitor-mode strong {
  color: var(--text);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 610;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.admin-monitor-mode p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-monitor-health {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-monitor-health span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface));
  color: var(--text);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 570;
}

.admin-monitor-health span::before {
  content: none;
}

.admin-monitor-health b,
.admin-monitor-health small {
  font-size: 11px;
  line-height: 1;
}

.admin-monitor-health b {
  font-weight: 590;
}

.admin-monitor-health small {
  color: #16845a;
  font-weight: 560;
}

.admin-monitor-health span.is-bad small {
  color: #b82f2a;
}

.admin-monitor-updated {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-monitor-updated span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.admin-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-top: 12px;
}

.admin-monitor-metric {
  min-width: 0;
  display: grid;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 15px 16px 14px;
}

.admin-monitor-metric:nth-child(-n + 3) {
  border-top: 0;
}

.admin-monitor-metric:nth-child(3n + 1) {
  border-left: 0;
}

.admin-monitor-metric > div:first-child {
  display: grid;
  gap: 5px;
}

.admin-monitor-metric span,
.admin-monitor-metric p {
  color: var(--muted);
  font-size: 11px;
}

.admin-monitor-metric strong {
  color: var(--text);
  font-size: 23px;
  font-weight: 610;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.admin-monitor-metric p {
  min-height: 16px;
  margin: 0;
}

.admin-monitor-meter {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  appearance: none;
}

.admin-monitor-meter::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--surface-soft);
}

.admin-monitor-meter::-webkit-progress-value,
.admin-monitor-meter::-moz-progress-bar {
  border-radius: inherit;
  background: #20b978;
}

.admin-monitor-metric.is-warning .admin-monitor-meter::-webkit-progress-value,
.admin-monitor-metric.is-warning .admin-monitor-meter::-moz-progress-bar {
  background: #f29a22;
}

.admin-monitor-metric.is-critical .admin-monitor-meter::-webkit-progress-value,
.admin-monitor-metric.is-critical .admin-monitor-meter::-moz-progress-bar {
  background: #d9473f;
}

.admin-monitor-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: 14px;
  margin-top: 12px;
}

.admin-monitor-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 19, 23, .02);
  padding: 17px;
}

.admin-monitor-panel-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-monitor-panel-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-monitor-panel-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 610;
}

.admin-monitor-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.admin-monitor-panel-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.admin-monitor-traffic-panel .admin-monitor-panel-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: color-mix(in srgb, #20b978 22%, var(--line));
  background: color-mix(in srgb, #20b978 6%, var(--surface));
  color: color-mix(in srgb, #14875a 84%, var(--text));
}

.admin-monitor-traffic-panel .admin-monitor-panel-head > span::before {
  content: none;
}

.admin-monitor-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-monitor-sections {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  padding: 3px;
}
.admin-monitor-sections button { min-height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 0 16px; box-shadow: none; }
.admin-monitor-sections button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px color-mix(in srgb, var(--text) 9%, transparent); }
.admin-monitor-sections button:active { transform: scale(.97); }

.admin-chat-monitor-layout { display: grid; gap: 14px; }
.admin-chat-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-chat-overview.is-single { grid-template-columns: 1fr; }
.admin-chat-overview > div { min-height: 116px; display: grid; align-content: start; gap: 6px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 65%, var(--surface)), var(--surface)); padding: 18px; }
.admin-chat-overview span { color: var(--muted); font-size: 11px; }
.admin-chat-overview strong { font-size: 26px; line-height: 1; }
.admin-chat-overview p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-chat-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); align-items: start; gap: 14px; }
.admin-chat-workspace.is-single { grid-template-columns: 1fr; }
.admin-chat-sidebar { min-width: 0; display: grid; gap: 14px; position: sticky; top: 18px; }
.admin-chat-workflow { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface)); padding: 17px; }
.admin-chat-section-kicker { width: fit-content; border: 1px solid color-mix(in srgb, #14875a 38%, var(--line)); border-radius: 999px; color: color-mix(in srgb, #14875a 82%, var(--text)); padding: 3px 7px; font-size: 9px; font-weight: 720; letter-spacing: .08em; }
.admin-chat-workflow h4 { margin: 0; color: var(--text); font-size: 13px; }
.admin-chat-workflow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-chat-patterns { min-width: 0; }
.admin-chat-cases-panel { min-width: 0; }
.admin-chat-cases { display: grid; gap: 10px; margin-top: 14px; }
.admin-chat-cases article { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; }
.admin-chat-cases article.is-pending { border-color: var(--line-strong); }
.admin-chat-cases header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-chat-cases header > div { min-width: 0; display: grid; gap: 3px; }
.admin-chat-cases header span, .admin-chat-cases time, .admin-chat-case-meta { color: var(--muted); font-size: 10px; }
.admin-chat-cases blockquote { margin: 0; border-left: 2px solid var(--line-strong); background: var(--surface-soft); padding: 10px 12px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-chat-case-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.admin-chat-case-head-actions { min-width: auto !important; display: flex !important; align-items: center; justify-content: flex-end; gap: 10px !important; }
.admin-chat-case-head-actions button { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 0 10px; color: var(--text); font-size: 10px; white-space: nowrap; }
.admin-chat-case-head-actions button svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(0deg); transition: transform 180ms var(--ease-out); }
.admin-chat-cases article.is-expanded .admin-chat-case-head-actions button svg { transform: rotate(180deg); }
.admin-chat-case-details { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-chat-cases textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px 11px; font: inherit; font-size: 12px; }
.admin-chat-cases footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-chat-cases footer > span { margin-right: auto; color: var(--muted); font-size: 11px; }
.admin-chat-cases footer button { min-height: 34px; }
.admin-chat-pattern-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.admin-chat-pattern-form input { min-width: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); padding: 0 12px; font: inherit; }
.admin-chat-pattern-form input:focus { border-color: var(--line-strong); outline: 2px solid color-mix(in srgb, var(--text) 10%, transparent); outline-offset: 1px; }
.admin-chat-pattern-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.admin-chat-pattern-list > span { max-width: 100%; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); padding: 5px 6px 5px 11px; }
.admin-chat-pattern-list b { overflow: hidden; font-size: 11px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-pattern-list button { width: 24px; min-width: 24px; height: 24px; min-height: 24px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); padding: 0; box-shadow: none; }
.admin-chat-empty { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.admin-chat-incidents { display: grid; gap: 9px; margin-top: 14px; }
.admin-chat-incidents article { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.admin-chat-incidents header, .admin-chat-incidents footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-chat-incidents header > div { min-width: 0; display: grid; gap: 3px; }
.admin-chat-incidents header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-incidents header span, .admin-chat-incidents time, .admin-chat-incidents footer > span { color: var(--muted); font-size: 11px; }
.admin-chat-incidents blockquote { margin: 0; border-left: 2px solid var(--line-strong); background: var(--surface-soft); padding: 9px 11px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-chat-incidents footer b { color: var(--bad); font-size: 11px; }
.admin-chat-incidents footer button { min-height: 34px; }
@media (max-width: 980px) { .admin-chat-workspace { grid-template-columns: 1fr; } .admin-chat-sidebar { position: static; } }
@media (max-width: 620px) { .admin-chat-overview { grid-template-columns: 1fr; } .admin-chat-overview > div { min-height: 0; } .admin-chat-pattern-form { grid-template-columns: 1fr; } .admin-chat-cases header { align-items: stretch; flex-direction: column; } .admin-chat-case-head-actions { justify-content: space-between; } .admin-chat-incidents footer, .admin-chat-cases footer { align-items: stretch; flex-direction: column; } .admin-chat-cases footer button { width: 100%; } }

.admin-monitor-chart-ranges,
.admin-monitor-chart-navigation {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 3px;
}

.admin-monitor-chart-ranges button,
.admin-monitor-chart-navigation button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 560;
  white-space: nowrap;
  transition:
    background-color 140ms var(--ease-out),
    color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    transform 100ms var(--ease-out);
}

.admin-monitor-chart-ranges button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(17, 19, 23, .08);
}

.admin-monitor-chart-navigation button {
  min-width: 30px;
  padding: 0 7px;
}

.admin-monitor-chart-navigation button[data-admin-monitor-now] {
  min-width: auto;
  padding: 0 9px;
}

.admin-monitor-chart-navigation button:disabled,
.admin-monitor-chart-navigation button:disabled:hover {
  background: transparent;
  color: color-mix(in srgb, var(--muted) 45%, transparent);
  opacity: 1;
  cursor: default;
}

.admin-monitor-chart-ranges button:active,
.admin-monitor-chart-navigation button:not(:disabled):active {
  transform: scale(.96);
}

.admin-monitor-chart-ranges button:focus-visible,
.admin-monitor-chart-navigation button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .admin-monitor-chart-ranges button:hover,
  .admin-monitor-chart-navigation button:not(:disabled):hover {
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--text);
  }
}

.admin-monitor-chart-navigation svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-monitor-chart {
  min-height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 66%, var(--surface));
  padding: 10px 12px 8px;
}

.admin-monitor-chart svg {
  width: 100%;
  height: 170px;
  display: block;
  overflow: visible;
}

.admin-monitor-chart-plot {
  position: relative;
}

.admin-monitor-chart-hits {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
}

.admin-monitor-chart-hit {
  position: relative;
  z-index: 1;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  box-shadow: none;
  cursor: crosshair;
  appearance: none;
  -webkit-appearance: none;
}

.admin-monitor-chart-guide,
.admin-monitor-chart-tooltip {
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms var(--ease-out), transform 160ms var(--ease-out);
}

.admin-monitor-chart-guide {
  position: absolute;
  inset: 6px auto 4px 50%;
  width: 1px;
  background: color-mix(in srgb, var(--text) 28%, transparent);
}

.admin-monitor-chart-tooltip {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 10px;
  width: 210px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  background: #14161a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  padding: 11px 12px;
  text-align: left;
  transform: translate(-50%, -4px);
}

.admin-monitor-chart-tooltip time {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.admin-monitor-chart-tooltip > span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.admin-monitor-chart-tooltip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #758197;
}
.admin-monitor-chart-tooltip i.is-rps { background: #f08a17; }
.admin-monitor-chart-tooltip b { color: rgba(255, 255, 255, .74); font-size: 11px; font-weight: 520; }
.admin-monitor-chart-tooltip strong { color: #fff; font-size: 12px; font-weight: 680; font-variant-numeric: tabular-nums; }

.admin-monitor-chart-hit.is-start .admin-monitor-chart-tooltip { left: 0; transform: translate(0, -4px); }
.admin-monitor-chart-hit.is-end .admin-monitor-chart-tooltip { left: auto; right: 0; transform: translate(0, -4px); }

.admin-monitor-chart-hit:is(:hover, :focus, :focus-visible) { z-index: 3; background: transparent; box-shadow: none; outline: 0; }
.admin-monitor-chart-hit:is(:hover, :focus-visible) :is(.admin-monitor-chart-guide, .admin-monitor-chart-tooltip) { opacity: 1; }
.admin-monitor-chart-hit:is(:hover, :focus-visible) .admin-monitor-chart-tooltip { transform: translate(-50%, 0); }
.admin-monitor-chart-hit.is-start:is(:hover, :focus-visible) .admin-monitor-chart-tooltip,
.admin-monitor-chart-hit.is-end:is(:hover, :focus-visible) .admin-monitor-chart-tooltip { transform: translate(0, 0); }

.admin-monitor-chart-axis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  padding: 7px 2px 1px;
}

.admin-monitor-chart-axis span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-monitor-chart-axis span:nth-child(2) {
  text-align: center;
}

.admin-monitor-chart-axis span:last-child {
  text-align: right;
}

.admin-monitor-chart-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.admin-monitor-chart-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.admin-monitor-chart-area {
  fill: url(#adminMonitorRpsArea);
}

.admin-monitor-chart-line.is-rps {
  stroke: #f08a17;
}

.admin-monitor-chart-line.is-connections {
  stroke: color-mix(in srgb, var(--text) 62%, #758197);
}

.admin-monitor-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 2px 2px 0;
}

.admin-monitor-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.admin-monitor-chart-legend b {
  margin-left: 1px;
  color: var(--text);
  font-size: 10px;
  font-weight: 610;
  font-variant-numeric: tabular-nums;
}

.admin-monitor-chart-legend span::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.admin-monitor-chart-legend .is-rps {
  color: #d97706;
}

.admin-monitor-chart-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 24px;
  text-align: center;
  font-size: 12px;
}

.admin-monitor-threshold-list {
  display: grid;
}

.admin-monitor-threshold-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.admin-monitor-threshold-list > div:first-child {
  border-top: 0;
  padding-top: 3px;
}

.admin-monitor-threshold-list span {
  grid-row: 1 / span 2;
  width: 3px;
  height: 26px;
  border-radius: 3px;
}

.admin-monitor-threshold-list span.is-heightened {
  background: #f29a22;
}

.admin-monitor-threshold-list span.is-emergency {
  background: #d9473f;
}

.admin-monitor-threshold-list span.is-absolute {
  background: #17191d;
}

.admin-monitor-threshold-list b {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.admin-monitor-threshold-list small {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.admin-monitor-events-panel {
  margin-top: 12px;
}

.admin-monitor-events {
  display: grid;
}

.admin-monitor-event {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.admin-monitor-event:first-child {
  border-top: 0;
  padding-top: 2px;
}

.admin-monitor-event-level {
  width: fit-content;
  margin-top: 1px;
  border-left: 2px solid #20b978;
  color: #16845a;
  padding-left: 7px;
  font-size: 9px;
  font-weight: 640;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.admin-monitor-event.is-warning .admin-monitor-event-level {
  border-color: #f29a22;
  color: #b96608;
}

.admin-monitor-event.is-critical .admin-monitor-event-level {
  border-color: #d9473f;
  color: #b82f2a;
}

.admin-monitor-event > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-monitor-event strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 610;
}

.admin-monitor-event p,
.admin-monitor-event small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.admin-monitor-event time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-monitor-events-empty,
.admin-monitor-unavailable {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 24px;
  text-align: center;
  font-size: 12px;
}

.admin-monitor-unavailable {
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.admin-monitor-unavailable > span {
  display: none;
}

.admin-monitor-unavailable h4,
.admin-monitor-unavailable p {
  margin: 0;
}

.admin-monitor-unavailable h4 {
  color: var(--text);
  font-size: 16px;
}

.admin-monitor-unavailable p {
  max-width: 480px;
  line-height: 1.5;
}

.admin-monitor-skeleton {
  display: grid;
  gap: 12px;
}

.admin-monitor-skeleton-hero,
.admin-monitor-skeleton-grid i,
.admin-monitor-skeleton-chart {
  display: block;
  border-radius: 16px;
  background: color-mix(in srgb, var(--line-strong) 38%, var(--surface));
  animation: admin-monitor-skeleton-pulse 900ms ease-in-out infinite alternate;
}

.admin-monitor-skeleton-hero {
  height: 150px;
}

.admin-monitor-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-monitor-skeleton-grid i {
  height: 112px;
}

.admin-monitor-skeleton-chart {
  height: 250px;
}

@keyframes admin-monitor-skeleton-pulse {
  from { opacity: .42; }
  to { opacity: .78; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-monitor-refresh.is-loading .admin-monitor-refresh-icon,
  .admin-monitor-skeleton-hero,
  .admin-monitor-skeleton-grid i,
  .admin-monitor-skeleton-chart {
    animation: none;
  }

  .admin-monitor-meter i {
    transition: none;
  }
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-categories-loading {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.admin-categories-loading > span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.compact-form {
  gap: 10px;
}

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

.admin-category-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}

.admin-category-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-category-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-category-item-head strong {
  color: var(--text);
  font-size: 16px;
}

.admin-category-item-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-subcategory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.admin-subcategory-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  gap: 8px;
}

.admin-subcategory-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-subcategory-meta b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-subcategory-meta span {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 12px;
}

.admin-category-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-action {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 6px;
  box-shadow: none;
}

.icon-action:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.icon-action img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  opacity: .88;
}

.icon-action.danger:hover {
  border-color: rgba(205, 51, 51, .35);
}

.admin-category-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.admin-subcategory-chip .admin-category-edit {
  grid-column: 1 / -1;
}

.admin-category-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-category-edit input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  outline: none;
}

.admin-category-edit input:focus {
  border-color: var(--line-strong);
}

.admin-category-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-category-edit-actions button {
  min-height: 40px;
}

.ghost-button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.profile-section,
.account-section {
  margin-top: 0;
  min-height: calc(100vh - 126px);
  scroll-margin-top: 96px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-menu {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.profile-menu-tile {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 16px;
  text-align: left;
  box-shadow: none;
  font-size: 15px;
}

.profile-menu-tile:hover,
.profile-menu-tile.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.profile-menu-tile span {
  display: block;
  overflow-wrap: anywhere;
}

.profile-menu-tile[data-admin-tab="moderation"] {
  justify-content: space-between;
  gap: 12px;
}

.profile-menu-tile .admin-moderation-count {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 0 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.profile-menu-tile.active .admin-moderation-count {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.profile-card,
.profile-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.profile-card {
  padding: 24px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-avatar-wrap {
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff7ed, #ffffff 70%);
  border: 1px solid #f5d4ad;
  box-shadow: inset 0 0 0 8px #fff, 0 18px 34px rgba(17, 24, 39, .12);
  overflow: hidden;
}

.profile-avatar-wrap img {
  width: 122px;
  height: 122px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.profile-identity {
  margin-top: 18px;
}

.profile-identity h3 {
  margin: 0;
  color: #050506;
  font-size: 24px;
  line-height: 1.12;
}

.profile-identity span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile-facts {
  width: 100%;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.profile-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.profile-facts dd {
  margin: 0;
  color: #111317;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-avatar-upload-block {
  width: 100%;
  margin-top: 14px;
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.profile-avatar-upload-block .seller-avatar-upload {
  max-width: none;
}

.profile-workspace {
  min-width: 0;
  padding: 18px;
}

.profile-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  padding: 22px 24px;
  margin-bottom: 18px;
}

.profile-summary-card.seller-summary {
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto);
  grid-template-areas:
    "avatar identity upload"
    "avatar facts upload";
  align-items: center;
}

.profile-summary-card.seller-summary .profile-avatar-wrap {
  grid-area: avatar;
}

.profile-summary-card.seller-summary .profile-summary-main {
  display: contents;
}

.profile-summary-card.seller-summary .profile-identity {
  grid-area: identity;
}

.profile-summary-card.seller-summary .profile-facts {
  grid-area: facts;
}

.profile-summary-card.seller-summary .profile-avatar-upload-block {
  grid-area: upload;
}

.profile-summary-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr);
  gap: 18px 24px;
  align-items: center;
}

.profile-summary-main .profile-identity {
  margin-top: 0;
}

.profile-summary-main .profile-facts {
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.profile-summary-card.seller-summary .profile-summary-main .profile-facts {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.profile-summary-main .profile-facts div {
  min-height: 72px;
  align-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-summary-card .profile-avatar-upload-block {
  margin-top: 0;
  justify-self: end;
}

.profile-summary-card .seller-avatar-upload {
  max-width: 210px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.profile-tab {
  min-height: 42px;
  background: #f6f6f7;
  color: #8a8d96;
  border: 1px solid transparent;
  box-shadow: none;
}

.profile-tab:hover,
.profile-tab.active {
  background: #fff;
  color: #111317;
  border-color: var(--line);
}

.profile-pane {
  min-width: 0;
}

.profile-pane > .manage-workspace {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.profile-pane > .seller-profile-panel {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.profile-pane-head {
  margin-bottom: 14px;
}

.profile-pane-head h3 {
  margin: 0;
  color: #111317;
  font-size: 18px;
}

.profile-pane-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-form-row {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.profile-country-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 54px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  color: #111317;
  font: inherit;
  font-weight: 500;
}
.profile-country-control { display: block; position: relative; width: 100%; min-width: 0; color: var(--text); }
.profile-country-control > svg { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; }

.profile-city-toggle:disabled {
  cursor: not-allowed;
  opacity: .55;
  background: var(--surface-soft);
}

.profile-form-row label,
.password-change-grid label,
.profile-city-field {
  display: grid;
  gap: 7px;
  color: #2b2f36;
  font-size: 13px;
  font-weight: 600;
}

.profile-form-row > button,
.password-change-grid > button {
  min-height: 46px;
}

.profile-form-row > button {
  align-self: end;
}

.profile-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-city-control {
  position: relative;
  min-width: 0;
}

.profile-city-toggle {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #111317;
  box-shadow: none;
  text-align: left;
}

.profile-city-toggle:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.profile-city-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--motion-fast) var(--ease-out);
}

.profile-city-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.profile-city-toggle .muted-value {
  color: var(--muted);
}

.profile-city-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(420px, 100%);
  max-height: 420px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .14);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top left;
  transition:
    opacity var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
  will-change: transform, opacity;
}

@starting-style {
  .profile-city-menu {
    opacity: 0;
    transform: translateY(-4px) scale(.985);
  }
}

.profile-city-search {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-city-search input {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
}

.profile-city-country {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  background: #f0f0f1;
  padding: 0 9px;
  color: #111317;
  font-size: 14px;
  font-weight: 600;
}

.profile-city-country svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transform: rotate(90deg);
}

.profile-city-options {
  max-height: 280px;
  overflow: auto;
  display: grid;
  align-content: start;
  padding-right: 4px;
}

.admin-location-city-picker {
  position: relative;
  min-width: 0;
  display: grid;
}

.admin-location-city-picker > label { min-width: 0; }

.admin-location-city-picker .profile-city-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(280px, 42vh);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 6px;
  box-shadow: 0 16px 38px color-mix(in srgb, #000 18%, transparent);
}

.admin-location-city-picker .profile-city-option {
  min-height: 38px;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
}

.profile-city-option {
  min-height: 32px;
  justify-content: flex-start;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  background: #fff;
  color: #111317;
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.profile-city-option:hover,
.profile-city-option.active {
  background: #f0f0f1;
  color: #050506;
}

.seller-profile-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.seller-avatar-upload {
  position: relative;
  width: 100%;
  max-width: 190px;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.seller-avatar-upload.loading {
  cursor: wait;
  opacity: .82;
}

.seller-avatar-upload.loading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seller-avatar-upload:hover { background: var(--button-bg-hover); }

.seller-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.seller-avatar-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.seller-profile-fields {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.seller-profile-fields label {
  display: grid;
  gap: 7px;
  color: #2b2f36;
  font-size: 13px;
  font-weight: 600;
}

.seller-profile-fields textarea {
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  background: #fff;
  color: #111317;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.seller-profile-fields textarea:focus {
  border-color: #111317;
}

.seller-profile-card > button {
  justify-self: end;
  min-height: 46px;
}

.security-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-security-pane .security-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: grid;
  gap: 18px;
}

.security-pane-head {
  margin-bottom: 0;
}

.security-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.security-section-tab {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  text-align: left;
  box-shadow: none;
  transition: transform 120ms ease-out, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.security-section-tab > svg {
  width: 20px;
  height: 20px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-section-tab > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.security-section-tab strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-section-tab small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-section-tab.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 18px color-mix(in srgb, #111827 7%, transparent);
}

.security-section-tab:active {
  transform: scale(.985);
}

.security-subsection {
  display: grid;
  gap: 14px;
}

.security-subsection-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.security-subsection-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.security-subsection-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.security-content-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
}

.password-rule-checklist {
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.password-rule-checklist li {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.password-rule-checklist .rule-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #d23b3b;
  flex: 0 0 18px;
}

.password-rule-checklist .rule-mark svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.password-rule-checklist .rule-mark circle {
  fill: color-mix(in srgb, currentColor 13%, transparent);
  stroke: currentColor;
  stroke-width: 1.15;
}

.password-rule-checklist .rule-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-rule-checklist li.valid {
  color: #15824e;
}

.password-rule-checklist li.valid .rule-mark {
  color: #159255;
}

.password-rule-checklist li.invalid {
  color: #c44545;
}

.password-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.password-change-grid .password-current-field,
.password-change-grid .password-new-field {
  grid-column: 1;
}

.password-change-grid #passwordOtpField,
.password-change-grid .password-repeat-field {
  grid-column: 2;
}

.password-change-grid .password-field {
  width: 100%;
}

:root[data-theme="dark"] .password-change-grid .password-field input:focus,
:root[data-theme="dark"] .password-change-grid .password-field input:focus-visible {
  border-color: color-mix(in srgb, var(--muted) 52%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--muted) 9%, transparent);
}

.two-factor-panel {
  margin-top: 18px;
}

.security-content-card > .two-factor-panel,
.security-factor-grid > .two-factor-panel {
  margin-top: 0;
}

.security-factor-grid {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: start;
}

.security-factor-grid > .two-factor-panel,
.security-factor-grid > .two-factor-panel > .two-factor-card {
  min-width: 0;
}

.two-factor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}

.two-factor-card.is-disabled,
.two-factor-card.is-enabled {
  align-content: start;
}

.two-factor-card.is-disabled > *,
.two-factor-card.is-enabled > * {
  grid-column: 1;
  min-width: 0;
}

.two-factor-card.is-disabled .two-factor-grid,
.two-factor-card.is-enabled .two-factor-enable-grid {
  width: 100%;
}

.two-factor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.two-factor-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.two-factor-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: #f1f2f4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.two-factor-head span.enabled {
  background: #e9f8f0;
  color: #15824e;
}

.two-factor-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.two-factor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.two-factor-enable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.two-factor-enable-grid.compact {
  grid-template-columns: minmax(0, 1fr);
}

.security-form-actions,
.security-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.security-form-actions > button,
.security-card-actions > button {
  min-width: 180px;
  min-height: 44px;
}

.two-factor-setup-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.two-factor-qr {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
}

.two-factor-qr img {
  width: 148px;
  height: 148px;
  display: block;
}

.two-factor-setup-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.two-factor-setup-copy > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.two-factor-card label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.two-factor-card .password-field {
  width: 100%;
}

.two-factor-secret {
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.two-factor-one-time-warning {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
}

.two-factor-one-time-warning strong {
  font-size: 13px;
  font-weight: 650;
}

.pgp-two-factor-panel {
  margin-top: 14px;
}

.duress-password-panel {
  margin-top: 14px;
}

.duress-password-card .two-factor-head h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.duress-help-button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1;
}

.duress-help-button svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duress-help-button:hover,
.duress-help-button:focus-visible {
  border-color: color-mix(in srgb, var(--text) 34%, var(--line));
  background: var(--surface-soft);
  color: var(--text);
}

.duress-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.duress-summary {
  border-color: color-mix(in srgb, #a93434 35%, var(--line));
}

.duress-info-modal {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
}

.duress-info-backdrop {
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

body:has(.duress-info-backdrop) .mobile-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.duress-info-modal > .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  box-shadow: none;
  font-size: 19px;
  line-height: 1;
}

.duress-info-modal > .modal-close:hover,
.duress-info-modal > .modal-close:focus-visible {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.duress-info-modal > .modal-eyebrow,
.duress-info-modal > h3 {
  padding-right: 46px;
}

.duress-warning-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.duress-warning-list p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .duress-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .duress-info-backdrop {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .duress-info-modal {
    width: 100%;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 16px;
    padding: 22px 18px 18px;
  }

  .duress-info-modal > .modal-close {
    top: 10px;
    right: 10px;
  }

  .duress-info-modal > .modal-eyebrow,
  .duress-info-modal > h3 {
    padding-right: 40px;
  }

  .duress-info-modal > h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .duress-warning-list {
    gap: 10px;
    margin-top: 12px;
  }

  .duress-warning-list p {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
  }
}

.pgp-setup-grid,
.pgp-management-grid,
.pgp-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.pgp-public-key-label,
.pgp-proof > label:first-child {
  grid-column: 1 / -1;
}

.pgp-public-key-input,
.pgp-armored-output {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px 13px;
  font: 500 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pgp-public-key-input:focus,
.pgp-armored-output:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong));
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.pgp-fingerprint {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pgp-fingerprint span {
  color: var(--muted);
  font-size: 12px;
}

.pgp-fingerprint code {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pgp-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.pgp-management-grid .pgp-card-actions {
  grid-column: 1 / -1;
}

.pgp-recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pgp-recovery-code-grid code {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 8px 11px;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  user-select: all;
}

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

.auth-history-loading {
  display: grid;
  gap: 10px;
}

.auth-history-loading div {
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f5f6f8 0%, #eceff3 45%, #f5f6f8 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

@keyframes profileLoading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.auth-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
}

.auth-history-item strong {
  display: block;
  color: #111317;
  font-size: 14px;
}

.auth-history-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.session-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #eefaf4;
  color: #13854b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.auth-history-item > .session-status {
  display: inline-grid;
  place-items: center;
  align-self: center;
  height: 28px;
  min-height: 28px;
  margin-top: 0;
  padding: 0 10px;
  line-height: 1;
}

.session-status.expired,
.session-status.revoked {
  background: #f5f6f8;
  color: #777c86;
}

.reviews-placeholder,
.profile-empty {
  border: 1px dashed #d9dee6;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.profile-empty.compact {
  padding: 12px;
  border-radius: 10px;
}

.reviews-placeholder {
  display: grid;
  gap: 6px;
}

.reviews-placeholder strong {
  color: #111317;
  font-size: 16px;
}

.preference-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.preference-option {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
  padding: 0 18px;
  text-align: left;
  font-weight: 500;
}

.preference-option:hover,
.preference-option.active {
  background: var(--surface);
  border-color: var(--line-strong);
}

.preference-option.active {
  box-shadow: inset 0 0 0 1px #111317;
}

.preference-option strong {
  display: block;
  font-size: 15px;
  font-weight: 560;
}

.preference-save {
  margin-top: 18px;
}

.interface-preferences {
  display: grid;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.interface-preference-block {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.interface-preference-block + .interface-preference-block {
  border-top: 1px solid var(--line);
}

.interface-preference-head {
  display: grid;
  gap: 5px;
}

.interface-preference-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.interface-preference-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.interface-preferences .preference-options {
  margin-top: 0;
}

.interface-preferences .preference-option {
  min-height: 52px;
  border-radius: 11px;
  padding: 0 14px;
}

.profile-interface-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
}

.profile-interface-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 40px 0 14px;
  font: inherit;
  font-size: 14px;
}

.profile-time-zone-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.store-rental-status-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 16px;
}

.store-rental-status-card.is-active { border-left-color: var(--good); }
.store-rental-status-card.is-pending { border-left-color: var(--warn); }

.store-rental-status-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.store-rental-status-card span,
.rental-intro span,
.admin-moderation-head span {
  color: var(--muted);
  font-size: 12px;
}

.store-rental-status-card strong { overflow-wrap: anywhere; }

.manage-payment-head {
  margin-bottom: 16px;
}

.manage-payment-head h2,
.manage-payment-head p,
.manage-rental-summary h3,
.manage-rental-summary p {
  margin: 0;
}

.manage-payment-head h2,
.manage-rental-summary h3,
.profile-workspace h2,
.profile-workspace h3,
.admin-layout h2,
.admin-layout h3 {
  font-weight: 600;
}

.manage-payment-head p,
.manage-rental-summary p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.manage-rental-summary {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.manage-rental-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.manage-rental-summary-head span,
.manage-rental-facts span {
  color: var(--muted);
  font-size: 12px;
}

.manage-rental-summary-head h3 { margin-top: 4px; }

.manage-rental-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.manage-rental-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.manage-rental-facts strong { overflow-wrap: anywhere; }
.manage-rental-facts .moderation-status {
  width: fit-content;
  padding: 5px 8px;
}

.manage-rental-decision {
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-soft);
  padding: 11px 13px;
}

.manage-rental-decision span {
  color: var(--muted);
  font-size: 12px;
}

.manage-rental-decision strong {
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.manage-rental-summary > button { justify-self: start; }

.wallet-page-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.wallet-page-tabs button {
  min-height: 44px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
}

.wallet-page-tabs button:hover,
.wallet-page-tabs button.active {
  background: transparent;
  color: var(--text);
}

.wallet-page-tabs button.active { border-bottom-color: var(--text); }

.rental-workspace {
  display: grid;
  gap: 20px;
}

.rental-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.rental-intro h2,
.rental-intro p,
.rental-conditions h3,
.rental-history h3 {
  margin: 0;
}

.rental-intro h2 { margin-top: 4px; }

.rental-intro p,
.rental-conditions > p,
.rental-proof-copy {
  color: var(--muted);
  line-height: 1.55;
}

.rental-standard-price {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.rental-personal-price {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  padding: 10px 13px;
}

.rental-personal-price span {
  font-size: 11px;
}

.rental-personal-price strong {
  font-size: 14px;
  font-weight: 610;
}

.rental-personal-price em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 580;
}

.rental-admin-hidden {
  margin: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-soft));
  padding: 10px 12px;
  color: var(--text) !important;
  font-size: 12px;
}

.rental-grid {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(360px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.rental-conditions,
.rental-form,
.rental-history,
.admin-moderation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.rental-conditions,
.rental-form {
  display: grid;
  gap: 15px;
}

.rental-requirement {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.rental-requirement > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(207, 62, 62, .12);
  color: var(--bad);
}

.rental-requirement > span img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

:root[data-theme="dark"] .rental-requirement > span img {
  filter: invert(1);
  opacity: .9;
}

.rental-requirement.is-done { color: var(--text); }
.rental-requirement.is-done > span {
  background: rgba(32, 182, 108, .12);
  color: var(--good);
}

.rental-proof-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 13px 14px;
}

.rental-proof-code span { color: var(--muted); }
.rental-proof-code strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.rental-proof-copy { margin: 0; }

.rental-proof-upload {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
}

.rental-proof-upload:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}

.rental-proof-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rental-proof-upload img {
  width: min(100%, 360px);
  max-height: 260px;
  object-fit: contain;
}

.rental-proof-placeholder {
  font-size: 32px;
  font-weight: 350;
}

.form-notice,
.form-error {
  margin: 0;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.form-notice {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.form-error {
  background: rgba(207, 62, 62, .12);
  color: var(--bad);
}

.rental-history { display: grid; gap: 12px; }

.rental-history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rental-history-row > div { display: grid; gap: 4px; }
.rental-history-row span,
.rental-history-row p { color: var(--muted); font-size: 13px; }
.rental-history-row p { grid-column: 1 / -1; margin: 0; }

.rental-history-comment {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-soft);
  padding: 10px 12px;
}

.rental-history-comment strong {
  color: var(--text);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.admin-moderation-list { display: grid; gap: 14px; }
.admin-moderation-tabs { margin-bottom: 14px; }

.admin-review-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  padding: 4px;
}

.admin-review-tabs button {
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 0 4px;
  font-size: 11px;
}

.admin-review-tabs button.active {
  border: 0;
  background: var(--surface);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 6%, transparent);
}

.admin-review-tabs button span {
  min-width: 18px;
  min-height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  padding: 0 4px;
  color: var(--text);
  font-size: 10px;
}

.admin-moderation-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 4px;
}

.admin-moderation-kind-tabs button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 600;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.admin-moderation-kind-tabs button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 6%, transparent);
}

.admin-moderation-kind-tabs button:active { transform: scale(.98); }
.admin-moderation-kind-tabs b {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
}

.admin-moderation-kind-tabs button.active b { background: color-mix(in srgb, var(--text) 9%, var(--surface)); color: var(--text); }

.admin-review-list { display: grid; gap: 14px; }

.admin-review-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 17px;
}

.admin-review-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-review-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-review-author img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.admin-review-author > div { min-width: 0; display: grid; gap: 3px; }
.admin-review-author span { color: var(--muted); font-size: 11px; }
.admin-review-author strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.admin-review-rating { display: flex; align-items: center; gap: 8px; }
.admin-review-rating .order-rating span { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 17px; }
.admin-review-rating > strong { font-size: 14px; }

.admin-review-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding-block: 12px;
}

.admin-review-context > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-inline: 14px;
}

.admin-review-context > div:first-child { border-left: 0; padding-left: 0; }
.admin-review-context span { color: var(--muted); font-size: 11px; }
.admin-review-context strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.admin-review-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-review-card > footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.admin-review-card > footer > label {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.admin-review-card > footer > label > span { color: var(--muted); font-size: 11px; }
.admin-review-card > footer input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.admin-review-card > footer input:focus {
  border-color: var(--line-strong);
  outline: 2px solid color-mix(in srgb, var(--text) 10%, transparent);
  outline-offset: 1px;
}

.admin-review-card > footer > div { display: flex; gap: 8px; }
.admin-review-card > footer button { min-height: 42px; }
.admin-review-card > footer.is-resolved { align-items: center; }
.admin-review-card > footer.is-resolved > strong { color: var(--muted); font-size: 12px; font-weight: 500; }

.admin-review-decision-note {
  display: grid;
  gap: 4px;
  margin: 0;
  border-left: 2px solid var(--line-strong);
  background: var(--surface-soft);
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
}

.admin-review-decision-note span { color: var(--muted); font-size: 11px; }
.admin-moderation-card {
  display: block;
  overflow: hidden;
  padding: 0;
}

.admin-moderation-summary {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(180px, .78fr) minmax(390px, 1.6fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
}

.admin-moderation-identity { min-width: 0; }
.admin-moderation-identity > span {
  display: block;
  color: var(--text);
  font-size: 12px;
}
.admin-moderation-identity h3 {
  margin: 4px 0 3px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-moderation-identity p {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-moderation-summary-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(88px, .65fr) minmax(180px, 1.45fr) minmax(110px, .8fr);
  align-items: stretch;
}

.admin-moderation-summary-facts > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding: 2px 16px;
}
.admin-moderation-summary-facts > div:first-child { border-left: 0; padding-left: 0; }
.admin-moderation-summary-facts span {
  color: var(--text);
  font-size: 11px;
}
.admin-moderation-summary-facts b {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-moderation-summary-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.moderation-card-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 11px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 550;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .moderation-card-toggle:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
  }
}
.moderation-card-toggle:active { transform: scale(.97); }
.moderation-card-toggle:focus-visible {
  border-color: var(--line-strong);
  outline: 2px solid color-mix(in srgb, var(--text) 14%, transparent);
  outline-offset: 2px;
}
.moderation-card-toggle i {
  width: 7px;
  height: 7px;
  display: block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-ui) var(--ease-out);
}
.admin-moderation-card.is-expanded .moderation-card-toggle i {
  transform: translateY(2px) rotate(225deg);
}

.admin-moderation-details {
  display: none;
  border-top: 1px solid var(--line);
}
.admin-moderation-card.is-expanded .admin-moderation-details {
  display: block;
}
.admin-moderation-details-inner {
  min-width: 0;
}
.admin-moderation-details-content {
  display: grid;
  gap: 16px;
  padding: 17px 18px 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}
.admin-moderation-card.is-expanded .admin-moderation-details-content {
  opacity: 1;
  transform: translateY(0);
}

.moderation-status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}

.moderation-status.status-approved { color: var(--good); }
.moderation-status.status-rejected { color: var(--bad); }
.moderation-status.status-pending { color: var(--text); }

.admin-moderation-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.admin-moderation-meta .admin-account-meta {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 2px 16px;
}
.admin-moderation-meta .admin-account-meta:first-child { border-left: 0; padding-left: 0; }

.moderation-reason,
.moderation-review-comment {
  margin: 0;
  border-left: 3px solid var(--bad);
  background: rgba(207, 62, 62, .08);
  padding: 10px 12px;
}

.moderation-review-comment {
  display: grid;
  gap: 4px;
  border-left-color: var(--line-strong);
  background: var(--surface-soft);
}

.moderation-review-comment.is-internal { border-left-color: var(--line-strong); }
.moderation-review-comment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.moderation-review-comment strong {
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.moderation-review-backdrop {
  padding: 20px;
  overflow: auto;
}

.moderation-review-modal {
  position: relative;
  width: min(100%, 640px);
  margin: auto;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  padding: 26px;
}

.moderation-review-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.moderation-review-modal header { padding-right: 42px; }
.moderation-review-modal header span {
  color: var(--muted);
  font-size: 13px;
}
.moderation-review-modal header h3 {
  margin: 5px 0 0;
  font-size: 22px;
}

.moderation-review-field { display: grid; gap: 8px; }
.moderation-review-field > span { font-weight: 550; }
.moderation-review-field textarea {
  min-height: 112px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.45;
}
.moderation-review-field textarea:focus {
  border-color: var(--line-strong);
  outline: 2px solid color-mix(in srgb, var(--text) 10%, transparent);
  outline-offset: 1px;
}
.moderation-review-field textarea[aria-invalid="true"] { border-color: var(--bad); }
.moderation-review-field small { color: var(--muted); }
.moderation-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .admin-moderation-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
  }
  .admin-moderation-summary-facts { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .admin-moderation-summary {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .admin-moderation-identity,
  .admin-moderation-summary-facts,
  .admin-moderation-summary-actions { grid-column: 1; }
  .admin-moderation-summary-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
  .admin-moderation-summary-facts > div { padding: 0 10px; }
  .admin-moderation-summary-facts > div:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }
  .admin-moderation-summary-actions {
    width: 100%;
    display: flex;
    align-self: start;
    align-items: center;
    justify-content: space-between;
  }
  .moderation-status { padding: 6px 8px; }
  .moderation-card-toggle { padding: 0 9px; }
  .admin-moderation-details-content { padding: 15px 14px 16px; }
  .admin-moderation-meta { grid-template-columns: 1fr; gap: 11px; }
  .admin-moderation-meta .admin-account-meta,
  .admin-moderation-meta .admin-account-meta:first-child {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }
  .admin-moderation-meta .admin-account-meta:first-child { border-top: 0; padding-top: 0; }
  .admin-moderation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-moderation-actions button { width: 100%; }
  .admin-moderation-kind-tabs button { min-height: 40px; font-size: 12px; }
  .admin-review-card { gap: 13px; padding: 14px; }
  .admin-review-card > header { align-items: flex-start; }
  .admin-review-rating { display: grid; justify-items: end; gap: 2px; }
  .admin-review-rating .order-rating span { width: 17px; height: 17px; min-width: 17px; min-height: 17px; font-size: 14px; }
  .admin-review-context { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 0; }
  .admin-review-context > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .admin-review-card > footer { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .admin-review-card > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-review-card > footer button { width: 100%; }
}

.rental-payment-backdrop {
  padding: 20px;
  z-index: 520;
  overflow: hidden;
  overscroll-behavior: none;
}

.rental-payment-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100dvh - 40px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  padding: 24px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--motion-modal) var(--ease-out),
    transform var(--motion-modal) var(--ease-out);
}

html.has-rental-modal {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-rental-modal-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-rental-modal-open .mobile-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rental-payment-modal > h2 {
  margin: 0 44px 18px 0;
  font-size: 22px;
  line-height: 1.2;
}

.rental-payment-modal .rental-intro p {
  margin: 5px 0 0;
}

@starting-style {
  .rental-payment-modal {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
}

.rental-proof-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.rental-proof-modal h2 { margin: 0; padding-right: 44px; }
.rental-proof-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.rental-proof-loading .button-spinner {
  color: var(--text);
  --spinner-track: var(--line-strong);
}

.rental-proof-modal > img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 130px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-soft);
}

.messages-workspace {
  min-height: min(680px, calc(100dvh - 190px));
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

body.is-messages-route {
  overflow: auto;
}

body.is-messages-route .market-shell {
  min-height: 100dvh;
  height: auto;
  display: block;
  overflow: visible;
}

body.is-messages-route .market-main {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.is-messages-route #messages {
  height: auto;
  min-height: calc(100dvh - 174px);
  display: block;
}

body.is-messages-route .messages-workspace {
  height: auto;
  min-height: min(680px, calc(100dvh - 190px));
}

body.is-messages-route .messages-workspace.is-empty {
  overflow: hidden;
}

.messages-workspace.is-empty {
  min-height: 240px;
  grid-template-columns: 1fr;
}

.messages-list {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  border-right: 1px solid var(--line);
}

.chat-settings-button {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 15px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.chat-settings-button:hover { background: var(--surface-soft); }
.chat-settings-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.messages-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.conversation-list-item {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
}

.conversation-list-item:hover,
.conversation-list-item.active { background: var(--surface-soft); }
.conversation-list-item.has-unread {
  background: var(--surface-soft);
  box-shadow: none;
}
.conversation-list-item.has-unread:hover,
.conversation-list-item.has-unread.active {
  background: #f1f3f5;
}
.conversation-list-copy { min-width: 0; display: grid; gap: 4px; }
.conversation-list-item.has-unread .conversation-name-line > strong {
  font-weight: 650;
}
.conversation-list-item.has-unread .conversation-list-copy > small {
  color: var(--text);
  font-weight: 500;
}
.conversation-list-item small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-list-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.conversation-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.conversation-name-line > strong,
.conversation-name-line > button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-list-item.has-moderator .conversation-name-line > strong,
.conversation-list-item.has-moderator.active .conversation-name-line > strong,
.conversation-name-line.is-moderated > strong,
.conversation-name-line.is-moderated > button { color: #c32626; }

.conversation-list-item:is(.has-role-chief, .has-role-security) .conversation-name-line > strong { color: #c32626; }
.conversation-list-item.has-role-admin .conversation-name-line > strong { color: #6559c9; }
.conversation-list-item.has-role-senior_moderator .conversation-name-line > strong { color: #1b69ad; }
.conversation-list-item.has-role-moderator .conversation-name-line > strong { color: #147746; }
:root[data-theme="dark"] .conversation-list-item:is(.has-role-chief, .has-role-security) .conversation-name-line > strong { color: #ff8b8b; }
:root[data-theme="dark"] .conversation-list-item.has-role-admin .conversation-name-line > strong { color: #b4adff; }
:root[data-theme="dark"] .conversation-list-item.has-role-senior_moderator .conversation-name-line > strong { color: #89c3f8; }
:root[data-theme="dark"] .conversation-list-item.has-role-moderator .conversation-name-line > strong { color: #6fe0a3; }

.conversation-participants { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.conversation-participant { min-width: 0; display: inline-flex; align-items: center; gap: 5px; }
.conversation-participant > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-participant-separator { color: var(--muted); }
.conversation-participants .conversation-role-badge { min-height: 18px; padding: 2px 6px; font-size: 8px; }

.conversation-role-badge,
.conversation-pane > header .conversation-role-badge {
  flex: 0 0 auto;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.conversation-role-badge.is-chief,
.conversation-pane > header .conversation-role-badge.is-chief,
.conversation-role-badge.is-security,
.conversation-pane > header .conversation-role-badge.is-security {
  border-color: rgba(207, 45, 45, .62);
  background: rgba(207, 45, 45, .07);
  color: #b52222;
}

.conversation-role-badge.is-admin,
.conversation-pane > header .conversation-role-badge.is-admin {
  border-color: rgba(112, 103, 216, .58);
  background: rgba(112, 103, 216, .08);
  color: #6559c9;
}

.conversation-role-badge.is-moderator,
.conversation-pane > header .conversation-role-badge.is-moderator {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
}

.conversation-role-badge.is-moderator,
.conversation-pane > header .conversation-role-badge.is-moderator {
  border-color: rgba(31, 158, 93, .62);
  background: rgba(31, 158, 93, .08);
  color: #147746;
}

.conversation-role-badge.is-senior_moderator,
.conversation-pane > header .conversation-role-badge.is-senior_moderator {
  border-color: rgba(39, 130, 216, .64);
  background: rgba(39, 130, 216, .08);
  color: #1b69ad;
}

:root[data-theme="dark"] .conversation-role-badge.is-moderator,
:root[data-theme="dark"] .conversation-pane > header .conversation-role-badge.is-moderator {
  border-color: rgba(75, 211, 139, .68);
  background: rgba(48, 190, 113, .12);
  color: #6fe0a3;
}

:root[data-theme="dark"] .conversation-role-badge.is-senior_moderator,
:root[data-theme="dark"] .conversation-pane > header .conversation-role-badge.is-senior_moderator {
  border-color: rgba(91, 169, 242, .7);
  background: rgba(47, 137, 222, .13);
  color: #89c3f8;
}

:root[data-theme="dark"] .conversation-role-badge.is-chief,
:root[data-theme="dark"] .conversation-pane > header .conversation-role-badge.is-chief,
:root[data-theme="dark"] .conversation-role-badge.is-security,
:root[data-theme="dark"] .conversation-pane > header .conversation-role-badge.is-security {
  border-color: rgba(255, 104, 104, .7);
  background: rgba(255, 82, 82, .12);
  color: #ff8b8b;
}

:root[data-theme="dark"] .conversation-role-badge.is-admin,
:root[data-theme="dark"] .conversation-pane > header .conversation-role-badge.is-admin {
  border-color: rgba(155, 146, 255, .68);
  background: rgba(112, 103, 216, .14);
  color: #b4adff;
}

:root[data-theme="dark"] .conversation-list-item.has-unread:hover,
:root[data-theme="dark"] .conversation-list-item.has-unread.active {
  background: #242a34;
}

.conversation-list-item time { color: var(--muted); font-size: 10px; }

.conversation-unread-count {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
}

.conversation-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-soft);
  object-fit: cover;
}

.conversation-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.conversation-pane > header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.conversation-pane > header > div { display: grid; gap: 2px; }
.conversation-pane > header span { color: var(--muted); font-size: 12px; }
.conversation-counterparty-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.conversation-counterparty-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-counterparty-line .conversation-role-badge { min-height: 18px; padding: 2px 6px; font-size: 8px; }

.conversation-order-link {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 5px 7px;
  box-shadow: none;
  font: inherit;
  text-align: left;
  transform: scale(1);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.conversation-order-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversation-participants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.conversation-order-link > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-order-link:active { transform: scale(.985); }

@media (hover: hover) and (pointer: fine) {
  .conversation-order-link:hover { background: var(--surface-soft); }
}

.conversation-order-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 62%, var(--text));
  outline-offset: 2px;
}

.conversation-store-link,
.conversation-user-link {
  width: fit-content;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.conversation-store-link:hover,
.conversation-user-link:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.conversation-back {
  display: none;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0;
  box-shadow: none;
}

.conversation-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-back:hover {
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--line));
  color: var(--text);
}

.conversation-back:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 62%, var(--text));
  outline-offset: 2px;
}

.conversation-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  background: var(--surface-soft);
  padding: 18px;
}

.messages-loading {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
}

.messages-loading-list,
.messages-loading-pane,
.conversation-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.messages-loading-list {
  border-right: 1px solid var(--line);
}

.messages-loading span,
.conversation-loading span {
  display: block;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface) 45%, var(--surface-soft) 90%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

.messages-loading-pane span,
.conversation-loading span {
  width: min(58%, 440px);
  height: 44px;
}

.messages-loading-pane span:nth-child(even),
.conversation-loading span:nth-child(even) {
  align-self: flex-end;
  width: min(42%, 320px);
}

.order-profile-restricted {
  max-width: 420px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 13px 15px;
  line-height: 1.45;
  text-align: left;
}

.conversation-pane-empty {
  grid-template-rows: 1fr;
}

.conversation-selection-empty {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 360px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.conversation-selection-empty strong {
  color: var(--text);
  font-size: 16px;
}

.conversation-selection-empty span {
  font-size: 13px;
  line-height: 1.45;
}

.messages-empty-pane {
  position: relative;
  min-height: 0;
}

.messages-empty-state {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 420px);
  padding: clamp(28px, 6vw, 56px) 24px;
  text-align: center;
}

.messages-empty-state > img {
  display: block;
  width: clamp(150px, 19vw, 220px);
  height: auto;
  max-height: min(300px, 42dvh);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(10, 13, 18, .13));
  user-select: none;
}

:root[data-theme="dark"] .messages-empty-state > img {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .34));
}

.messages-empty-copy {
  display: grid;
  gap: 3px;
}

.messages-empty-copy strong {
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.messages-empty-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.messages-empty-settings {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.messages-empty-settings .chat-settings-button {
  position: static;
  width: auto;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}

.message-row {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: fit-content;
  max-width: min(82%, 680px);
}

.message-row.is-own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
  box-shadow: 0 2px 8px color-mix(in srgb, #000 12%, transparent);
}

.message-bubble {
  width: fit-content;
  max-width: calc(100% - 38px);
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  background: var(--surface);
  padding: 9px 11px 7px;
}

.message-bubble.is-own {
  align-self: flex-end;
  border-color: var(--line-strong);
  border-radius: 8px 8px 2px 8px;
  background: var(--accent-soft);
}

.message-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-deeplink { color: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.message-sender-prefix { display: block; margin-bottom: 4px; color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.message-bubble.is-own .message-sender-prefix { color: color-mix(in srgb, #fff 76%, transparent); }
.message-sender-identity { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-bottom: 6px; }
.message-sender-identity > strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 700; line-height: 1.2; }
.message-sender-identity .conversation-role-badge { min-height: 18px; padding: 3px 6px; font-size: 8px; }
.message-bubble.is-own .message-sender-identity > strong { color: inherit; }
.message-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 5px; margin: 2px 0 7px; }
.message-photo-grid button:first-child:nth-last-child(1) { grid-column: 1 / -1; }
.message-photo-grid button { min-width: 0; border: 0; border-radius: 7px; padding: 0; overflow: hidden; background: var(--surface-soft); cursor: zoom-in; }
.message-photo-grid button.is-loading { width: 180px; min-height: 112px; display: grid; place-items: center; cursor: default; }
.message-photo-grid img { display: block; width: 100%; max-height: 260px; border-radius: 7px; object-fit: cover; }
.order-photo-viewer > .button-spinner { position: absolute; inset: 50% auto auto 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.conversation-role-badge.is-buyer { border-color: color-mix(in srgb, var(--text) 24%, var(--line)); background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--muted); }
.conversation-role-badge.is-seller { border-color: color-mix(in srgb, var(--good) 48%, var(--line)); background: color-mix(in srgb, var(--good) 9%, transparent); color: color-mix(in srgb, var(--good) 78%, var(--text)); }
.message-bubble time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; text-align: right; }
.message-bubble.is-quarantined { border-style: dashed; opacity: .82; }
.message-bubble.is-removed { opacity: .62; }
.message-moderation-badge { display: inline-flex; margin-top: 7px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); padding: 3px 7px; font-size: 9px; font-weight: 650; }
.message-moderation-badge.is-removed { color: #a32626; }

.conversation-system-message {
  align-self: center;
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: minmax(18px, 1fr) minmax(0, auto) auto minmax(18px, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.conversation-system-message::before,
.conversation-system-message::after {
  width: 100%;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.conversation-system-message time {
  font-size: 10px;
  white-space: nowrap;
}

.conversation-composer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}
.conversation-composer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.conversation-composer-stack { min-width: 0; display: grid; gap: 8px; }
.conversation-composer-input-shell { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); overflow: hidden; }
.conversation-attach { width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-right: 1px solid var(--line); cursor: pointer; color: var(--muted); transition: color 140ms ease, background-color 140ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.conversation-attach:active { transform: scale(.96); }
.conversation-attach svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conversation-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.conversation-attach .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.conversation-photo-drafts { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.conversation-photo-drafts > span { position: relative; width: 68px; height: 68px; }
.conversation-photo-drafts img { display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.conversation-photo-drafts button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; min-width: 0; min-height: 0; display: grid; place-items: center; border: 1px solid color-mix(in srgb, #fff 24%, transparent); border-radius: 50%; padding: 0; background: color-mix(in srgb, #090b10 82%, transparent); color: #fff; font-size: 15px; line-height: 1; box-shadow: 0 2px 7px color-mix(in srgb, #000 35%, transparent); }

.conversation-composer textarea {
  min-height: 44px;
  max-height: 150px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
}

.market-shell textarea { resize: none; }

.market-shell strong,
.market-shell b {
  font-weight: 600;
}

.conversation-composer-row > button { min-width: 120px; min-height: 44px; align-self: end; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.conversation-composer-row > button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .conversation-attach:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
}
.conversation-chat-blocked { display: grid; gap: 3px; border-top: 1px solid var(--line); background: var(--surface-soft); padding: 13px 16px; }
.conversation-chat-blocked strong { font-size: 12px; }
.conversation-chat-blocked span { color: var(--muted); font-size: 11px; }

.profile-city-toggle,
.seller-profile-fields textarea,
.wallet-modal-field input,
.wallet-modal-field select,
.showcase-create-panel input,
.showcase-create-panel textarea,
.showcase-create-panel select,
.showcase-create-modal input,
.showcase-create-modal textarea,
.showcase-create-modal select,
.product-address-form input,
.product-address-form textarea,
.product-address-form select,
.product-packaging-form input,
.product-packaging-form select,
.admin-category-edit input,
.conversation-composer textarea {
  min-height: 44px;
  border-radius: 8px;
}

:root[data-theme="dark"] .market-shell {
  background: var(--bg);
}

:root[data-theme="dark"] .market-header {
  background: rgba(15, 17, 21, .92);
  border-bottom-color: rgba(43, 49, 61, .84);
}

:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .section-head h1,
:root[data-theme="dark"] .section-head h2,
:root[data-theme="dark"] .profile-identity h3,
:root[data-theme="dark"] .profile-pane-head h3,
:root[data-theme="dark"] .two-factor-head h4,
:root[data-theme="dark"] .reviews-placeholder strong,
:root[data-theme="dark"] .auth-history-item strong {
  color: var(--text);
}

:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .nav-link.active,
:root[data-theme="dark"] .balance-chip,
:root[data-theme="dark"] .logout-button,
:root[data-theme="dark"] .profile-button,
:root[data-theme="dark"] .profile-city-toggle,
:root[data-theme="dark"] .profile-city-menu,
:root[data-theme="dark"] .profile-city-option,
:root[data-theme="dark"] .two-factor-card,
:root[data-theme="dark"] .two-factor-qr,
:root[data-theme="dark"] .auth-history-item,
:root[data-theme="dark"] .live-chip,
:root[data-theme="dark"] .user-pill,
:root[data-theme="dark"] .manage-workspace,
:root[data-theme="dark"] .manage-tab.active,
:root[data-theme="dark"] .profile-tab.active,
:root[data-theme="dark"] .segment.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .site-footer-brand .brand-mark {
  filter: none;
}

:root[data-theme="dark"] .segment,
:root[data-theme="dark"] .segment:hover,
:root[data-theme="dark"] .segment.active {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: transparent;
}

:root[data-theme="dark"] .segment:hover,
:root[data-theme="dark"] .segment.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .mobile-dock-track {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
}

:root[data-theme="dark"] .mobile-dock-item::before {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

:root[data-theme="dark"] .profile-avatar-wrap {
  background: linear-gradient(180deg, #20242e, #171a22 70%);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 6px #171a22, 0 16px 28px rgba(0, 0, 0, .28);
}

:root[data-theme="dark"] .two-factor-head span {
  background: #232832;
  color: var(--muted);
  border: 1px solid var(--line);
}

:root[data-theme="dark"] .two-factor-head span.enabled {
  background: rgba(32, 182, 108, .14);
  color: #5ee29a;
  border-color: rgba(32, 182, 108, .24);
}

:root[data-theme="dark"] .profile-facts div,
:root[data-theme="dark"] .profile-city-country,
:root[data-theme="dark"] .reviews-placeholder,
:root[data-theme="dark"] .profile-empty,
:root[data-theme="dark"] .two-factor-secret {
  background: var(--surface-soft);
  color: var(--text);
}

:root[data-theme="dark"] .profile-facts dd,
:root[data-theme="dark"] .profile-city-toggle,
:root[data-theme="dark"] .profile-city-option:hover,
:root[data-theme="dark"] .profile-city-option.active,
:root[data-theme="dark"] .seller-profile-fields textarea,
:root[data-theme="dark"] .showcase-create-panel input,
:root[data-theme="dark"] .showcase-create-panel textarea,
:root[data-theme="dark"] .showcase-create-panel select,
:root[data-theme="dark"] .showcase-create-modal input,
:root[data-theme="dark"] .showcase-create-modal textarea,
:root[data-theme="dark"] .showcase-create-modal select,
:root[data-theme="dark"] .product-address-form input,
:root[data-theme="dark"] .product-address-form textarea,
:root[data-theme="dark"] .product-address-form select,
:root[data-theme="dark"] .product-packaging-form input,
:root[data-theme="dark"] .product-packaging-form select {
  color: var(--text);
}

:root[data-theme="dark"] .seller-profile-fields textarea,
:root[data-theme="dark"] .showcase-create-panel input,
:root[data-theme="dark"] .showcase-create-panel textarea,
:root[data-theme="dark"] .showcase-create-panel select,
:root[data-theme="dark"] .showcase-create-modal input,
:root[data-theme="dark"] .showcase-create-modal textarea,
:root[data-theme="dark"] .showcase-create-modal select,
:root[data-theme="dark"] .product-address-form input,
:root[data-theme="dark"] .product-address-form textarea,
:root[data-theme="dark"] .product-address-form select,
:root[data-theme="dark"] .product-packaging-form input,
:root[data-theme="dark"] .product-packaging-form select {
  background: var(--surface);
}

:root[data-theme="dark"] .product-address-form select {
  background-color: var(--surface);
  background-image: none;
  color-scheme: dark;
}

:root[data-theme="dark"] .listing-visibility-switch-track {
  background: #4b5361;
}

:root[data-theme="dark"] .listing-visibility-switch[aria-checked="true"] .listing-visibility-switch-track {
  background: var(--good);
}

:root[data-theme="dark"] .admin-account-toggle button.active {
  background: var(--button-bg);
  color: var(--button-text);
}

img[data-media-state="loading"] {
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='10' fill='none' stroke='%239aa2ae' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='39 24'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 14 14' to='360 14 14' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
}

img[data-media-state="loaded"] {
  background-image: none;
}

img[data-media-state="error"] {
  background-color: var(--surface-soft);
  background-image: none;
}

:root[data-theme="dark"] .wallet-loading div,
:root[data-theme="dark"] .product-loading-breadcrumb span,
:root[data-theme="dark"] .product-loading-thumbs span,
:root[data-theme="dark"] .product-loading-photo,
:root[data-theme="dark"] .product-loading-summary span,
:root[data-theme="dark"] .product-loading-positions span,
:root[data-theme="dark"] .product-loading-positions div,
:root[data-theme="dark"] .auth-history-loading div,
:root[data-theme="dark"] .wallet-modal-skeleton {
  border-color: var(--line);
  background: linear-gradient(90deg, #1d212b 0%, #252b36 45%, #1d212b 90%);
  background-size: 220% 100%;
}

:root[data-theme="dark"] .wallet-overview-card,
:root[data-theme="dark"] .store-card,
:root[data-theme="dark"] .wallet-asset-card,
:root[data-theme="dark"] .wallet-balance-card,
:root[data-theme="dark"] .wallet-calculator-card,
:root[data-theme="dark"] .wallet-history-card,
:root[data-theme="dark"] .wallet-history-row,
:root[data-theme="dark"] .wallet-history-empty,
:root[data-theme="dark"] .role-panel,
:root[data-theme="dark"] .showcase-card,
:root[data-theme="dark"] .showcase-detail-card,
:root[data-theme="dark"] .storefront-head-card,
:root[data-theme="dark"] .product-position-empty,
:root[data-theme="dark"] .product-position-row,
:root[data-theme="dark"] .admin-balance-main,
:root[data-theme="dark"] .admin-balance-rate,
:root[data-theme="dark"] .admin-balance-metric,
:root[data-theme="dark"] .admin-account-card,
:root[data-theme="dark"] .admin-account-meta,
:root[data-theme="dark"] .admin-account-avatar,
:root[data-theme="dark"] .admin-account-status,
:root[data-theme="dark"] .admin-category-item,
:root[data-theme="dark"] .admin-subcategory-chip,
:root[data-theme="dark"] .admin-category-edit,
:root[data-theme="dark"] .icon-action,
:root[data-theme="dark"] .empty-flow-card,
:root[data-theme="dark"] .showcase-create-modal,
:root[data-theme="dark"] .product-address-modal,
:root[data-theme="dark"] .product-packaging-modal,
:root[data-theme="dark"] .product-packaging-card,
:root[data-theme="dark"] .product-packaging-tabs button,
:root[data-theme="dark"] .wallet-modal,
:root[data-theme="dark"] .wallet-address-copy,
:root[data-theme="dark"] .wallet-address-copy button,
:root[data-theme="dark"] .wallet-modal-close,
:root[data-theme="dark"] .wallet-modal-field input,
:root[data-theme="dark"] .wallet-modal-field select,
:root[data-theme="dark"] .wallet-quote div,
:root[data-theme="dark"] .ghost-button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .store-title,
:root[data-theme="dark"] .role-panel h3,
:root[data-theme="dark"] .data-table .row-title,
:root[data-theme="dark"] .wallet-asset-head strong,
:root[data-theme="dark"] .wallet-address-block span,
:root[data-theme="dark"] .wallet-address-history h3,
:root[data-theme="dark"] .wallet-address-block code,
:root[data-theme="dark"] .wallet-address-history-item code,
:root[data-theme="dark"] .profile-form-row label,
:root[data-theme="dark"] .password-change-grid label,
:root[data-theme="dark"] .profile-city-field,
:root[data-theme="dark"] .profile-country-field,
:root[data-theme="dark"] .seller-profile-fields label,
:root[data-theme="dark"] .two-factor-card label {
  color: var(--text);
}

:root[data-theme="dark"] .store-card:hover {
  border-color: #46505f;
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .025);
}

:root[data-theme="dark"] .profile-country-field select {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .danger-button,
:root[data-theme="dark"] .product-address-error {
  background: rgba(207, 62, 62, .12);
  color: #ff8b8b;
  border-color: rgba(207, 62, 62, .34);
}

:root[data-theme="dark"] .danger-button:hover {
  background: rgba(207, 62, 62, .2);
}

:root[data-theme="dark"] .storefront-cover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%),
    linear-gradient(118deg, transparent 0 23%, rgba(255,255,255,.05) 23% 31%, transparent 31% 54%, rgba(255,255,255,.04) 54% 61%, transparent 61%),
    linear-gradient(180deg, #2a2f39 0%, #161a22 100%);
}

:root[data-theme="dark"] .storefront-banner-upload {
  color: #f4f5f7;
  background: rgba(26, 30, 38, .9);
  border-color: rgba(255, 255, 255, .16);
}

:root[data-theme="dark"] .storefront-avatar {
  border-color: var(--surface);
}

:root[data-theme="dark"] .storefront-product-tabs button,
:root[data-theme="dark"] .product-position-tabs button {
  background: var(--surface-soft);
  color: var(--muted);
}

:root[data-theme="dark"] .product-city-filter {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .storefront-product-tabs button.active,
:root[data-theme="dark"] .product-position-tabs button.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .showcase-locality-icon {
  border-color: #3c424d;
  background: #20252e;
}

:root[data-theme="dark"] .showcase-locality-icon.is-active img {
  filter: invert(1);
  opacity: .9;
}

:root[data-theme="dark"] .showcase-locality-icon.is-inactive {
  border-color: #303640;
  background: #1c2028;
}

:root[data-theme="dark"] .showcase-locality-icon.is-inactive img {
  filter: invert(1) grayscale(1);
  opacity: .15;
}

:root[data-theme="dark"] .listing-visibility-badge {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--line-strong);
}

:root[data-theme="dark"] .wallet-overview-card .wallet-balance-card,
:root[data-theme="dark"] .wallet-overview-card .wallet-calculator-card {
  background: transparent;
  border-color: transparent;
}

:root[data-theme="dark"] .wallet-currency-tab.active {
  background: var(--surface-soft);
  border-color: var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .wallet-op-status.success {
  border: 0;
  background: rgba(32, 182, 108, .13);
  color: #62d99d;
}

:root[data-theme="dark"] .wallet-op-status.warning {
  border: 0;
  background: var(--surface-soft);
  color: var(--muted);
}

:root[data-theme="dark"] .wallet-op-status.danger {
  border: 0;
  background: rgba(224, 72, 72, .14);
  color: #ff8585;
  box-shadow: none;
}

:root[data-theme="dark"] .wallet-currency-tab:hover:not(:disabled),
:root[data-theme="dark"] .wallet-address-copy button:hover,
:root[data-theme="dark"] .wallet-modal-close:hover,
:root[data-theme="dark"] .ghost-button:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line-strong);
}

:root[data-theme="dark"] .wallet-address-copy button,
:root[data-theme="dark"] .wallet-address-copy button:hover,
:root[data-theme="dark"] .wallet-modal-close,
:root[data-theme="dark"] .wallet-modal-close:hover {
  background: transparent;
  border: 0;
}

:root[data-theme="dark"] .wallet-address-copy button img {
  filter: invert(1);
}

:root[data-theme="dark"] .wallet-balance-line strong,
:root[data-theme="dark"] .wallet-balance-line span,
:root[data-theme="dark"] .empty-flow-card h2,
:root[data-theme="dark"] .wallet-op-id,
:root[data-theme="dark"] .wallet-op-tx,
:root[data-theme="dark"] .wallet-op-date,
:root[data-theme="dark"] .wallet-op-details,
:root[data-theme="dark"] .wallet-op-amount.negative,
:root[data-theme="dark"] .showcase-create-panel label,
:root[data-theme="dark"] .file-field {
  color: var(--text);
}

:root[data-theme="dark"] .icon-action img {
  filter: invert(1);
  opacity: .72;
}

:root[data-theme="dark"] .wallet-copy-value:hover,
:root[data-theme="dark"] .wallet-copy-value:focus-visible {
  color: var(--accent);
}

:root[data-theme="dark"] .session-status {
  background: rgba(32, 182, 108, .12);
  color: #6ee7a0;
  border: 1px solid rgba(32, 182, 108, .18);
}

:root[data-theme="dark"] .session-status.expired,
:root[data-theme="dark"] .session-status.revoked {
  background: #222733;
  color: var(--muted);
  border-color: var(--line);
}

:root[data-theme="dark"] .preference-option.active {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

:root[data-theme="dark"] .interface-preferences,
:root[data-theme="dark"] .profile-interface-field select {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .security-section-tab:hover:not(.active) {
    border-color: color-mix(in srgb, var(--line-strong) 64%, transparent);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .mobile-dock-item,
  .mobile-dock-item::before,
  .mobile-dock-icon,
  .balance-chip,
  .notification-button,
  .notification-item,
  .logout-button,
  .profile-button,
  .segment,
  .store-card,
  .showcase-card,
  .showcase-card-main,
  .listing-visibility-switch,
  .listing-visibility-switch-track,
  .listing-visibility-switch-track i,
  .product-thumb-button,
  .product-packaging-tabs button,
  .product-packaging-card,
  .ghost-button,
  .manage-tab,
  .admin-account-toggle button,
  .icon-action,
  .profile-menu-tile,
  .profile-tab,
  .profile-city-toggle,
  .profile-city-option,
  .security-section-tab,
  .seller-avatar-upload,
  .preference-option,
  .wallet-currency-tab,
  .wallet-address-copy button,
  .wallet-modal-close,
  .product-edit-action,
  .product-packaging-edit-action,
  .product-photo-close,
  .product-photo-nav,
  .product-address-backdrop,
  .product-packaging-backdrop,
  .product-photo-viewer,
  .product-address-modal,
  .product-packaging-modal,
  .product-photo-modal img,
  .wallet-modal-backdrop,
  .wallet-modal,
  .wallet-page-tabs button,
  .rental-proof-upload,
  .rental-proof-modal,
  .rental-payment-modal,
  .moderation-card-toggle,
  .moderation-card-toggle i,
  .admin-moderation-details,
  .admin-moderation-details-content,
  .conversation-list-item,
  .message-bubble,
  .profile-city-menu {
    transition-duration: 120ms !important;
  }

  .mobile-dock-item.active .mobile-dock-icon {
    transform: none;
  }

  .order-rating button {
    transform: none !important;
    transition-duration: 120ms !important;
  }

  .admin-account-list {
    animation: none;
  }

  .admin-account-search-spinner::before {
    animation-duration: 1.4s;
  }

  .notifications-popover {
    animation: none !important;
  }

  .profile-button:hover,
  .store-card:hover,
  .showcase-card:hover,
  .showcase-create-modal,
  .product-address-modal,
  .product-packaging-modal,
  .product-packaging-card,
  .product-photo-modal img,
  .wallet-modal,
  .rental-payment-modal,
  .admin-moderation-details-content,
  .profile-city-menu {
    transform: none;
  }

  .security-section-tab:active {
    transform: none;
  }

  .store-card:hover .store-cover img { transform: none; }

  .product-photo-nav,
  .product-photo-nav:hover,
  .product-photo-nav:not(:disabled):active {
    transform: translateY(-50%);
  }

  .product-photo-counter {
    transform: translateX(-50%);
  }

  .wallet-address-copy button,
  .wallet-address-copy button:hover,
  .wallet-address-copy button:not(:disabled):active {
    transform: translateX(3px);
  }

  .wallet-loading div,
  .auth-history-loading div,
  .wallet-modal-skeleton,
  .wallet-deposit-orbit::before,
  .wallet-fiat-success-mark,
  .buyer-profile-loading > span,
  .buyer-profile-loading i,
  .store-card-skeleton > i,
  .store-card-skeleton > span {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .role-panels { grid-template-columns: 1fr; }
  .wallet-asset-list,
  .wallet-loading { grid-template-columns: 1fr; }
  .wallet-overview-card { grid-template-columns: 1fr; }
  .admin-balance-hero,
  .admin-balance-grid { grid-template-columns: 1fr; }
  .admin-profit-overview { grid-template-columns: 1fr; }
  .admin-profit-source-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-account-card { grid-template-columns: 64px minmax(0, 1fr); }
  .admin-category-grid { grid-template-columns: 1fr; }
  .admin-category-edit { grid-template-columns: 1fr; }
  .wallet-history-head { display: none; }
  .wallet-history-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
  }
  .profile-layout { grid-template-columns: 1fr; }
  .storefront-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .storefront-products {
    padding-top: 0;
  }
  .product-hero,
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .product-thumb {
    width: 68px;
    height: 68px;
  }
  .product-position-head {
    display: none;
  }
  .product-position-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-position-row.with-action {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-position-row [data-mobile-label] {
    display: grid;
    gap: 4px;
  }
  .product-position-row [data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }
  .product-address-edit-action {
    justify-self: start;
  }
  .product-buy-position,
  .product-position-unavailable {
    justify-self: start;
  }
  .order-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
  }
  .order-card-main {
    grid-column: 1;
    grid-row: 1;
  }
  .order-card-facts {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .order-card-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .product-packaging-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-packaging-currency,
  .product-packaging-actions {
    grid-column: auto / span 1;
  }
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-create-panel { position: static; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-detail-card { grid-template-columns: 1fr; }
  .profile-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-summary-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .profile-summary-card.seller-summary,
  .profile-summary-main,
  .profile-summary-main .profile-facts {
    grid-template-columns: 1fr;
  }
  .profile-summary-card.seller-summary .profile-summary-main .profile-facts {
    grid-template-columns: 1fr;
  }
  .profile-summary-card.seller-summary {
    grid-template-areas:
      "avatar"
      "identity"
      "facts"
      "upload";
  }
  .profile-summary-card .profile-avatar-upload-block {
    justify-self: stretch;
  }
  .two-factor-grid,
  .two-factor-enable-grid,
  .two-factor-enable-grid.compact,
  .two-factor-setup-grid,
  .pgp-setup-grid,
  .pgp-management-grid,
  .pgp-proof,
  .pgp-recovery-code-grid { grid-template-columns: 1fr; }
  .pgp-public-key-label,
  .pgp-proof > label:first-child,
  .pgp-management-grid .pgp-card-actions { grid-column: 1; }
  .pgp-card-actions > button { flex: 1 1 180px; }
  .two-factor-qr { width: 156px; height: 156px; }
  .two-factor-qr img { width: 136px; height: 136px; }
  .market-header-inner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .market-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .security-factor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .security-panel {
    gap: 14px;
  }

  .security-section-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .security-section-tab {
    min-height: 52px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .security-section-tab > svg {
    width: 18px;
    height: 18px;
  }

  .security-section-tab strong {
    font-size: 12px;
  }

  .security-section-tab small {
    display: none;
  }

  .security-content-card,
  .two-factor-card {
    padding: 14px;
  }

  .password-change-grid,
  .two-factor-enable-grid,
  .duress-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .password-change-grid .password-current-field,
  .password-change-grid #passwordOtpField,
  .password-change-grid .password-new-field,
  .password-change-grid .password-repeat-field {
    grid-column: 1;
  }

  .security-form-actions,
  .security-card-actions,
  .pgp-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .security-form-actions > button,
  .security-card-actions > button,
  .pgp-card-actions > button {
    width: 100%;
    min-width: 0;
  }

  .admin-profit-hero {
    min-height: 220px;
    padding: 22px 18px;
  }

  .admin-liquidity-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-liquidity-row > span:first-child { grid-column: 1 / -1; }
  .admin-reserve-address > div:last-child { align-items: stretch; flex-direction: column; }
  .admin-reserve-address button { align-self: flex-start; }

  .admin-profit-value strong {
    font-size: clamp(25px, 8.5vw, 34px);
  }

  .admin-profit-ledger {
    padding-inline: 13px;
  }

  .admin-profit-metric {
    grid-template-columns: 1fr;
    padding-block: 14px;
  }

  .admin-profit-metric > strong {
    grid-row: auto;
    grid-column: auto;
    margin-top: 2px;
  }

  .admin-profit-sources {
    padding: 16px;
  }

  .admin-profit-sources > header {
    display: grid;
    gap: 8px;
  }

  .admin-profit-source-list {
    grid-template-columns: 1fr 1fr;
  }

  .admin-profit-source {
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-profit-source:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .admin-profit-protected {
    align-items: flex-start;
  }

  .admin-profit-protected b {
    font-size: 14px;
  }

  .admin-finance-details > summary {
    padding-inline: 15px;
  }
}

@media (max-width: 820px) {
  body.is-messages-route {
    overflow: hidden;
  }
  body.is-messages-route .market-shell {
    height: 100dvh;
    min-height: 0;
    display: block;
    overflow: hidden;
  }
  body.is-messages-route .market-header {
    position: fixed;
    inset: 0 0 auto;
    height: 70px;
  }
  body.is-messages-route .market-main {
    position: fixed;
    top: 70px;
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 14px 0 0;
    overflow: hidden;
  }
body.is-messages-route #messages {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.is-messages-route .messages-workspace {
    height: 100%;
    min-height: 0;
  }
  .market-header-inner,
  .market-main {
    width: min(100% - 28px, 1420px);
  }
  .market-header-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
    padding: 10px 0;
  }
  .brand-logo-button {
    display: none;
  }
  .market-nav {
    display: none;
  }
  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-column: 1;
    width: 100%;
  }
  .header-actions > .balance-chip { width: 100%; }
  .mobile-header-forum-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
  }
  .mobile-header-forum-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .logout-button { display: none; }
  .mobile-profile-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 460;
    width: max-content;
    min-width: 190px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 6px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .mobile-profile-menu.hidden { display: none; }
  .mobile-profile-menu button { min-height: 44px; justify-content: flex-start; border: 0; border-radius: 10px; padding: 0 13px; background: transparent; color: var(--text); box-shadow: none; text-align: left; }
  .mobile-profile-menu button:active { background: var(--surface-soft); transform: scale(.98); }
  .mobile-profile-menu button.is-danger { color: var(--bad); }
  .market-main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  .mobile-dock {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 400;
    display: block;
    width: 100%;
    height: calc(84px + env(safe-area-inset-bottom));
    min-height: calc(84px + env(safe-area-inset-bottom));
    max-height: calc(84px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow: hidden;
    background: linear-gradient(to top, var(--bg) 72%, color-mix(in srgb, var(--bg) 88%, transparent));
    contain: layout paint;
    overscroll-behavior: contain;
    touch-action: manipulation;
  }
  .mobile-dock-track { width: 100%; height: 68px; min-height: 68px; overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mobile-dock-track:has(.mobile-dock-admin:not(.hidden)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .notifications-popover { position: fixed; top: 76px; right: 14px; left: 14px; width: auto; max-height: calc(100dvh - 92px); }
  .notifications-list { max-height: calc(100dvh - 174px); }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head.compact { align-items: stretch; }
  .live-chip { align-self: flex-start; }
  .empty-flow-grid { grid-template-columns: 1fr; }
  .profile-form-row { grid-template-columns: 1fr; }
  .profile-workspace { padding: 12px; }
  .profile-summary-card,
  .profile-summary-card.seller-summary {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "avatar identity"
      "facts facts"
      "upload upload";
    gap: 12px 14px;
    align-items: center;
    justify-items: stretch;
    border-radius: 16px;
    padding: 14px;
  }
  .profile-summary-card .profile-avatar-wrap,
  .profile-summary-card.seller-summary .profile-avatar-wrap {
    grid-area: avatar;
    width: 68px;
    height: 68px;
    box-shadow: inset 0 0 0 4px var(--surface), 0 9px 20px rgba(0, 0, 0, .18);
  }
  .profile-summary-card .profile-avatar-wrap img {
    width: 60px;
    height: 60px;
  }
  .profile-summary-card .profile-summary-main,
  .profile-summary-card.seller-summary .profile-summary-main {
    display: contents;
  }
  .profile-summary-card .profile-identity,
  .profile-summary-card.seller-summary .profile-identity {
    grid-area: identity;
    min-width: 0;
    margin: 0;
  }
  .profile-summary-card .profile-identity h3 {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-summary-card .profile-identity span {
    margin-top: 5px;
    font-size: 12px;
  }
  .profile-summary-card .profile-facts,
  .profile-summary-card.seller-summary .profile-summary-main .profile-facts {
    grid-area: facts;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  .profile-summary-card .profile-facts div,
  .profile-summary-main .profile-facts div {
    min-height: 0;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px 10px;
  }
  .profile-summary-card .profile-facts dt { font-size: 11px; }
  .profile-summary-card .profile-facts dd { font-size: 13px; }
  .profile-summary-card .profile-avatar-upload-block {
    grid-area: upload;
    margin-top: 0;
  }
  .profile-menu {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .profile-menu::-webkit-scrollbar { display: none; }
  .profile-menu-tile {
    width: auto;
    min-width: max-content;
    min-height: 46px;
    flex: 0 0 auto;
  }
  .preference-options { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .catalog-product-grid.showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .storefront-product-grid.showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 10px;
  }
  .storefront-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 32 / 5;
  }
  .storefront-banner-upload {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .storefront-banner-upload-tip {
    display: none;
  }
  .storefront-body,
  .product-detail-page {
    padding-left: 0;
    padding-right: 0;
  }
  .storefront-avatar {
    width: 104px;
    height: 104px;
    border-width: 5px;
    border-radius: 24px;
  }
  .storefront-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .storefront-stats dd {
    font-size: 21px;
  }
  .product-position-tabs {
    align-items: stretch;
  }
  .product-city-filter {
    margin-left: 0;
    width: 100%;
  }
  .product-position-empty,
  .product-position-row {
    min-height: 64px;
  }
  .product-position-row,
  .product-position-row.with-action {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-position-loading-row { min-height: 180px; grid-template-columns: 1fr; gap: 10px; }
  .purchase-summary-grid,
  .order-timeline,
  .order-data-grid {
    grid-template-columns: 1fr;
  }
  .order-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .order-card-main,
  .order-card-facts,
  .order-card-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .order-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .order-card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
  }
  .order-card-actions .ghost-button {
    width: auto;
  }
  .buyer-profile-identity,
  .buyer-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .buyer-notes-list {
    grid-template-columns: 1fr;
  }
  .order-photos > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .order-detail-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .order-detail-footer > div {
    margin-right: 0;
  }
  .order-review-head {
    align-items: stretch;
    flex-direction: column;
  }
  .order-review-actions button {
    width: 100%;
  }
  .order-photo-viewer {
    width: min(920px, calc(100vw - 28px));
    height: min(84dvh, 720px);
    padding: 48px 54px 40px;
  }
  .product-packaging-modal {
    padding: 22px;
  }
  .product-packaging-form,
  .product-packaging-actions {
    grid-template-columns: 1fr;
  }
  .product-packaging-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-packaging-currency,
  .product-packaging-actions {
    grid-column: 1 / -1;
  }
  .product-address-modal {
    padding: 22px;
  }
  .product-address-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-address-actions,
  .product-address-action-end {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .product-owner-actions,
  .product-owner-actions .ghost-button {
    width: 100%;
  }
  .storefront-head-card { grid-template-columns: 1fr; }
  .storefront-head-card img { width: 82px; height: 82px; }
  .seller-profile-card > button { justify-self: stretch; }
  .wallet-balance-card,
  .wallet-calculator-card,
  .wallet-overview-card,
  .wallet-modal {
    padding: 22px;
  }
  .wallet-withdraw-grid,
  .wallet-quote div {
    grid-template-columns: 1fr;
  }
  .store-rental-status-card,
  .rental-grid,
  .manage-rental-facts,
  .admin-moderation-meta {
    grid-template-columns: 1fr;
  }
  .store-rental-status-card > button { justify-self: stretch; }
  .manage-rental-summary > button { justify-self: stretch; }
  .rental-intro { flex-direction: column; }
  .rental-standard-price,
  .rental-personal-price { width: 100%; }
  .rental-personal-price { justify-items: start; }
  .rental-history-row { grid-template-columns: 1fr auto; }
  .rental-history-row > button { grid-column: 1 / -1; }
  .messages-workspace {
    min-height: calc(100dvh - 216px - env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
  }
  .messages-loading { grid-template-columns: 1fr; }
  .messages-loading-pane { display: none; }
  .messages-workspace.is-list-only .conversation-pane { display: none; }
  .messages-workspace:not(.is-list-only) .messages-list { display: none; }
  .messages-list { border-right: 0; }
  .conversation-back { display: grid; place-items: center; }
  .admin-monitor-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-monitor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.is-messages-route #messages:has(.messages-workspace.has-selection) > .section-head {
  display: none;
}

@media (max-width: 520px) {
  .market-header-inner,
  .market-main {
    width: min(100% - 20px, 1420px);
  }
  .market-main { padding-top: 22px; }
  .buyer-profile-identity,
  .buyer-profile-stats {
    grid-template-columns: 1fr;
  }
  .order-card {
    gap: 12px;
    padding: 16px;
  }
  .order-card-facts {
    gap: 12px;
  }
  .order-card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
  }
  .order-card-actions .ghost-button {
    width: auto;
    min-width: 112px;
  }
  .buyer-note-actions button {
    width: 100%;
  }
  .buyer-profile-head {
    align-items: flex-start;
  }
  .buyer-profile-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
  .catalog-product-grid.showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .storefront-product-grid.showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 8px;
  }
  .showcase-card > .listing-visibility-badge {
    top: 10px;
    left: 10px;
    min-height: 20px;
    padding: 0 7px;
    font-size: 8.5px;
  }
  .order-review {
    padding: 16px;
  }
  .preorder-fulfillment-backdrop { padding: 10px; align-items: flex-end; }
  .preorder-fulfillment-modal {
    max-height: calc(100dvh - 10px);
    border-radius: 8px 8px 0 0;
    padding: 22px 16px 18px;
  }
  .preorder-fulfillment-form { grid-template-columns: 1fr; }
  .preorder-coordinates,
  .preorder-note,
  .preorder-photos { grid-column: auto; }
  .preorder-fulfillment-actions { flex-direction: column-reverse; }
  .preorder-fulfillment-actions button { width: 100%; }
  .order-rating span,
  .order-rating button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .order-photo-backdrop {
    padding: 10px;
  }
  .order-photo-viewer {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    padding: 48px 10px 42px;
    border-radius: 14px;
  }
  .order-photo-step {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .order-photo-step.is-prev { left: 4px; }
  .order-photo-step.is-next { right: 4px; }
  .brand-logo { font-size: 21px; }
  .header-actions { gap: 7px; }
  .profile-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .profile-button img { width: 38px; height: 38px; }
  .market-nav { gap: 4px; }
  .nav-link { padding: 0 11px; font-size: 14px; }
  .store-grid { gap: 8px; }
  .store-card { padding: 6px; border-radius: 10px; }
  .store-cover { border-radius: 8px; }
  .store-title { margin-top: 7px; font-size: 11px; font-weight: 600; }
  .store-subtitle { min-height: 24px; margin: 3px 0 8px; font-size: 9.5px; line-height: 1.28; }
  .store-card > .showcase-card-icons { margin-top: 7px; }
  .store-card > .showcase-card-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .store-card > .showcase-card-icons .showcase-locality-icon {
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    flex-basis: 16px;
    justify-self: center;
  }
  .store-card > .showcase-card-icons .showcase-locality-icon img { width: 9px; height: 9px; }
  .store-card .marketplace-availability { gap: 2px; }
  .store-card .marketplace-status-icon,
  .store-card .marketplace-status-icon img { width: 14px; height: 14px; flex-basis: 14px; }
  .store-card .marketplace-review-summary { gap: 2px; font-size: clamp(8px, 2.25vw, 9.5px); }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card { gap: 5px; padding: 6px; border-radius: 10px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card-main { gap: 5px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card-main > img { aspect-ratio: 1 / 1; border-radius: 7px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card-icons { min-height: 17px; height: 17px; gap: 3px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-locality-icon { width: 17px; height: 17px; flex-basis: 17px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-locality-icon img { width: 10px; height: 10px; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card span { font-size: 11px; font-weight: 600; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card small { min-height: 23px; font-size: 9.5px; line-height: 1.25; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card em { font-size: 9.5px; font-weight: 500; }
  :is(.catalog-product-grid, .storefront-product-grid) .showcase-card b { font-size: 10px; font-weight: 600; }
  :is(.catalog-product-grid, .storefront-product-grid) .marketplace-availability { gap: 3px; min-height: 15px; font-size: 9.5px; }
  :is(.catalog-product-grid, .storefront-product-grid) .marketplace-status-icon,
  :is(.catalog-product-grid, .storefront-product-grid) .marketplace-status-icon img { width: 15px; height: 15px; flex-basis: 15px; }
  :is(.catalog-product-grid, .storefront-product-grid) .marketplace-review-summary { gap: 3px; font-size: 9.5px; }
  .storefront-product-grid .showcase-card-actions { top: 10px; right: 10px; gap: 3px; }
  .storefront-product-grid .icon-action.product-edit-action { width: 26px; min-width: 26px; height: 26px; min-height: 26px; padding: 0; }
  .storefront-product-grid .icon-action.product-edit-action img { width: 16px; height: 16px; }
  .segment { min-height: 40px; padding: 0 14px; }
  .balance-chip { padding: 0 10px; min-width: 68px; }
  .section-head { margin-bottom: 16px; }
  .showcase-create-backdrop,
  .product-address-backdrop,
  .product-packaging-backdrop,
  .purchase-modal-backdrop,
  .order-detail-backdrop {
    place-items: end center;
    padding: 0;
  }
  .showcase-create-modal,
  .product-address-modal,
  .product-packaging-modal,
  .purchase-modal,
  .order-detail-modal,
  .order-profile-modal {
    width: 100%;
    max-height: calc(100dvh - 8px);
    border-radius: 8px 8px 0 0;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }
  .showcase-create-modal,
  .product-address-modal,
  .product-packaging-modal {
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .order-detail-backdrop {
    place-items: stretch;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: none;
  }
  .order-detail-modal {
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
    isolation: isolate;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .interface-preference-block {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }
  .interface-preferences .preference-option {
    min-height: 46px;
    padding: 0 12px;
  }
  .buyer-profile-head {
    padding-right: 42px;
  }
  .rental-payment-backdrop {
    place-items: end center;
    padding: 8px 0 0;
  }
  .rental-payment-modal {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-radius: 8px 8px 0 0;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }
  .rental-payment-modal > h2 { font-size: 20px; }
  .product-address-card-head h4,
  .product-address-modal h3 { font-size: 21px; }
  .product-packaging-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .product-packaging-tabs::-webkit-scrollbar { display: none; }
  .product-packaging-tabs button { flex: 0 0 auto; }
  .product-packaging-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .product-address-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-summary-grid,
  .order-profile-facts { grid-template-columns: 1fr; }
  .purchase-modal-actions { flex-direction: column-reverse; }
  .purchase-modal-actions button { width: 100%; }
  .purchase-balance { grid-template-columns: 1fr; }
  .purchase-balance strong { grid-row: auto; grid-column: auto; }
  .order-detail-head > div { align-items: flex-start; flex-direction: column; }
  .order-photos > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rental-conditions,
  .rental-form,
  .rental-history,
  .admin-moderation-card,
  .rental-proof-modal {
    padding: 16px;
  }
  .rental-history-row { grid-template-columns: 1fr; }
  .rental-history-row > button { grid-column: auto; width: 100%; }
  .admin-moderation-head { flex-direction: column; }
  .manage-rental-summary-head { flex-direction: column; }
  .admin-moderation-actions { display: grid; grid-template-columns: 1fr; }
  .messages-workspace { min-height: calc(100dvh - 216px - env(safe-area-inset-bottom)); }
  .conversation-body { padding: 12px; }
  .message-row { max-width: 96%; gap: 7px; }
  .message-avatar { width: 28px; height: 28px; }
  .message-bubble { max-width: calc(100% - 35px); }
  .conversation-composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .conversation-composer-row { grid-template-columns: minmax(0, 1fr); }
  .conversation-composer-row > button { grid-column: 1 / -1; width: 100%; }
  .admin-account-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }
  .admin-account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .admin-account-head {
    align-items: flex-start;
  }
  .admin-account-head-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .admin-account-status {
    padding: 5px 8px;
    font-size: 11px;
  }
  .admin-account-actions-button {
    min-width: 76px;
    min-height: 32px;
    padding: 0 10px;
  }
  .admin-account-actions-button span {
    font-size: 11px;
  }
  .admin-account-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-account-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-account-meta {
    padding: 8px 9px;
  }
  .admin-account-action-backdrop {
    place-items: end center;
    padding: 12px 0 0;
  }
  .admin-account-action-modal {
    width: 100%;
    max-height: calc(100dvh - 12px);
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    gap: 10px;
    padding: 17px 14px max(16px, env(safe-area-inset-bottom));
  }
  .admin-account-action-grid {
    grid-template-columns: 1fr;
  }
  .admin-account-modal-option[data-admin-account-section="fine"] {
    grid-column: auto;
  }
  .admin-account-modal-option {
    min-height: 60px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    padding: 7px 9px;
  }
  .admin-account-option-art {
    width: 42px;
    height: 40px;
  }
  .admin-account-option-art img {
    width: 38px;
    height: 34px;
  }
  .admin-account-fine-fields {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
  .admin-monitor-pane-head {
    align-items: center;
    gap: 12px;
    padding-bottom: 13px;
  }
  .admin-monitor-refresh {
    min-height: 36px;
    padding: 0 10px;
  }
  .admin-monitor-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px 15px 14px;
  }
  .admin-monitor-health {
    justify-content: flex-start;
  }
  .admin-monitor-updated {
    grid-column: 1;
  }
  .admin-monitor-mode {
    align-items: flex-start;
  }
  .admin-monitor-mode-mark {
    width: 18px;
    height: 18px;
    margin-top: 20px;
    border-radius: 50%;
  }
  .admin-monitor-metrics {
    gap: 0;
  }
  .admin-monitor-metric:nth-child(n) {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .admin-monitor-metric:nth-child(-n + 2) {
    border-top: 0;
  }
  .admin-monitor-metric:nth-child(2n + 1) {
    border-left: 0;
  }
  .admin-monitor-metric {
    gap: 8px;
    padding: 12px;
  }
  .admin-monitor-metric strong {
    font-size: 19px;
  }
  .admin-monitor-panel {
    padding: 13px;
  }
  .admin-monitor-chart {
    min-height: 160px;
  }
  .admin-monitor-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-monitor-chart-ranges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-monitor-chart-navigation {
    align-self: flex-end;
  }
  .admin-monitor-chart svg {
    height: 140px;
  }
  .admin-monitor-event {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .admin-monitor-event > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .admin-monitor-event time {
    grid-column: 2;
    grid-row: 1;
    white-space: normal;
  }
  .admin-monitor-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toast {
    left: 10px;
    right: 10px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-width: none;
  }
}

.admin-audit-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.admin-audit-actors {
  display: grid;
  align-content: start;
  gap: 8px;
}
.admin-audit-actor {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.admin-audit-actor.active {
  border-color: color-mix(in srgb, var(--text) 22%, var(--line));
  background: var(--soft);
}
.admin-audit-actors .admin-audit-actor:hover {
  border-color: color-mix(in srgb, var(--text) 14%, var(--line));
  background: var(--soft);
  color: var(--text);
  transform: translateY(-1px);
}
.admin-audit-actors .admin-audit-actor.active:hover {
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
}
.admin-audit-actor:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 38%, transparent);
  outline-offset: 2px;
}
.admin-audit-actor:active { transform: scale(.985); }
.admin-audit-actor img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}
.admin-audit-actor span { min-width: 0; display: grid; gap: 2px; }
.admin-audit-actor b,
.admin-audit-actor small,
.admin-audit-actor em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-audit-actor b { font-size: 14px; font-weight: 650; }
.admin-audit-actor small { color: var(--muted); font-size: 11px; }
.admin-audit-actor em { color: var(--muted); font-size: 11px; font-style: normal; }
.admin-audit-log-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.admin-audit-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.admin-audit-filters {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}
.admin-audit-date-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.admin-audit-date-field > span:first-child {
  display: block;
  min-height: 15px;
  padding-left: 2px;
}
.admin-audit-date-control {
  position: relative;
  display: block;
}
.admin-audit-date-control > input[type="text"] {
  width: 154px;
  height: 40px;
  padding: 8px 39px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.admin-audit-date-control > input[type="text"]:focus {
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent);
  background: var(--surface);
  outline: none;
}
.admin-audit-date-picker {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 5px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.admin-audit-date-picker:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}
.admin-audit-date-picker:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 30%, transparent);
  outline-offset: 0;
}
.admin-audit-date-picker:active { transform: translateY(-50%) scale(.94); }
.admin-audit-date-picker svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.admin-audit-calendar {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 286px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, var(--line));
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(20, 24, 32, .16), 0 2px 8px rgba(20, 24, 32, .08);
  color: var(--text);
}
.admin-audit-date-field:first-child .admin-audit-calendar {
  right: auto;
  left: 0;
}
.admin-audit-calendar-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.admin-audit-calendar-head strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-audit-calendar-head button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
}
.admin-audit-calendar-head button:hover:not(:disabled) {
  background: var(--soft);
  color: var(--text);
}
.admin-audit-calendar-head button:active:not(:disabled) { transform: scale(.94); }
.admin-audit-calendar-head button:disabled { color: var(--muted); opacity: .35; }
.admin-audit-calendar-head svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.admin-audit-calendar-weekdays,
.admin-audit-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.admin-audit-calendar-weekdays {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}
.admin-audit-calendar-days button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.admin-audit-calendar-days button:hover:not(:disabled) {
  background: var(--soft);
  color: var(--text);
}
.admin-audit-calendar-days button.is-outside { color: var(--muted); opacity: .48; }
.admin-audit-calendar-days button.is-today {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 28%, transparent);
}
.admin-audit-calendar-days button.is-selected {
  background: var(--text);
  box-shadow: none;
  color: var(--surface);
  font-weight: 700;
}
.admin-audit-calendar-days button:disabled {
  color: var(--muted);
  opacity: .22;
}
.admin-audit-filters .ghost-button {
  min-height: 38px;
  margin: 0;
  padding: 7px 12px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.admin-audit-timeline {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.admin-audit-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.admin-audit-event:last-child { border-bottom: 0; }
.admin-audit-event > div { min-width: 0; display: grid; gap: 5px; }
.admin-audit-event strong { font-size: 14px; font-weight: 650; }
.admin-audit-event p,
.admin-audit-event time { margin: 0; color: var(--muted); font-size: 12px; }
.admin-audit-event p {
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.admin-audit-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}
.admin-audit-event .admin-audit-store-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 3px 5px 3px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 620;
  text-align: left;
}
.admin-audit-store-link span {
  padding-bottom: 1px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 45%, transparent);
  overflow-wrap: anywhere;
  white-space: normal;
}
.admin-audit-event .admin-audit-object-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 650;
}
.admin-audit-object-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.admin-audit-object-link:hover { opacity: .86; }
.admin-audit-object-link:active { transform: scale(.98); }
.admin-audit-object-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 28%, transparent);
  outline-offset: 2px;
}
.admin-audit-event .admin-audit-store-link:hover {
  background: var(--soft);
  color: var(--text);
}
.admin-audit-event .admin-audit-store-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 28%, transparent);
  outline-offset: 2px;
}
.admin-audit-event time { white-space: nowrap; }
.admin-audit-more { display: block; margin: 14px auto; }
.admin-audit-skeleton { display: grid; gap: 10px; margin-top: 18px; }
.admin-audit-skeleton i {
  height: 68px;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--soft) 30%, var(--surface) 48%, var(--soft) 66%);
  background-size: 220% 100%;
  animation: admin-audit-pulse 1.1s ease-in-out infinite;
}
.admin-audit-skeleton-inline {
  margin: 0;
  padding: 14px;
}
.admin-audit-skeleton-inline i {
  height: 52px;
}
@keyframes admin-audit-pulse { to { background-position: -120% 0; } }
@media (max-width: 820px) {
  .admin-audit-layout { grid-template-columns: 1fr; gap: 12px; }
  .admin-audit-actors { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .admin-audit-actor { min-width: 220px; }
  .admin-audit-filter-bar { display: block; padding: 10px; }
  .admin-audit-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
  .admin-audit-date-control > input[type="text"] { width: 100%; }
  .admin-audit-calendar {
    width: min(286px, calc(100vw - 52px));
  }
  .admin-audit-filters .ghost-button { grid-column: 1 / -1; }
  .admin-audit-event { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .admin-audit-event time { grid-column: 1; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-audit-actor,
  .admin-audit-skeleton i,
  .admin-audit-object-link { animation: none; transition: none; }
}

/* Disputes */
.admin-moderation-kind-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-dispute-list { display: grid; gap: 12px; }
.admin-dispute-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
}
.admin-dispute-card > header,
.admin-dispute-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-dispute-order { min-width: 0; display: grid; gap: 4px; }
.admin-dispute-order > span,
.admin-dispute-order > p,
.admin-dispute-status time { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 11px; }
.admin-dispute-order h3 { margin: 0; font-size: 17px; font-weight: 650; }
.admin-dispute-order p { margin: 0; }
.admin-dispute-status { flex: 0 0 auto; display: grid; justify-items: end; gap: 6px; }
.admin-dispute-status strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 600;
}
.admin-dispute-status .status-new { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.admin-dispute-status .status-active { background: color-mix(in srgb, #2d7ff9 10%, var(--surface)); color: #2468c9; }
.admin-dispute-status .status-resolved { background: color-mix(in srgb, #28a46b 10%, var(--surface)); color: #18794e; }
.admin-dispute-facts,
.admin-dispute-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.admin-dispute-facts > div,
.admin-dispute-detail-stats > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 10px 12px;
}
.admin-dispute-facts span,
.admin-dispute-detail-stats span { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 10px; }
.admin-dispute-facts b,
.admin-dispute-detail-stats b { color: var(--text); overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }
.admin-dispute-card > footer { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-dispute-card > footer button { min-height: 38px; }
.admin-dispute-decision { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; border-left: 2px solid #28a46b; padding-left: 12px; }
.admin-dispute-decision span,
.admin-dispute-decision time { color: var(--muted); font-size: 10px; }
.admin-dispute-decision strong { font-size: 12px; }
.admin-dispute-decision p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; line-height: 1.45; }
.admin-dispute-details { border-top: 1px solid var(--line); padding-top: 14px; }
.admin-dispute-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-dispute-detail-grid > section { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.admin-dispute-detail-grid h4 { margin: 0; color: var(--text); font-size: 13px; }
.admin-dispute-detail-grid .admin-dispute-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-dispute-detail-grid .admin-dispute-position { grid-column: 1 / -1; }
.admin-dispute-detail-grid .admin-dispute-store { grid-column: 1 / -1; }
.admin-dispute-section-heading,
.admin-dispute-courier-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-dispute-section-heading > div,
.admin-dispute-courier-heading > div { min-width: 0; display: grid; gap: 3px; }
.admin-dispute-section-heading strong,
.admin-dispute-courier-heading strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.admin-dispute-section-heading button,
.admin-dispute-courier-heading button { min-height: 34px; flex: 0 0 auto; padding: 0 11px; font-size: 10px; }
.admin-dispute-no-courier { margin: 0; border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 12px; font-size: 12px; }
.admin-dispute-history { display: grid; gap: 7px; margin-top: 2px; }
.admin-dispute-history > span { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 10px; }
.admin-dispute-history > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.admin-dispute-history > div > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.admin-dispute-history > div span { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 10px; }
.admin-dispute-history > div b { color: var(--text); font-size: 13px; font-weight: 700; }
.admin-dispute-photos { display: grid; gap: 7px; }
.admin-dispute-photos > span { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 10px; }
.admin-dispute-photos > div { display: grid; grid-template-columns: repeat(auto-fill, 76px); gap: 8px; justify-content: start; }
.admin-dispute-photos .admin-dispute-photo-thumbnail,
.admin-dispute-photos [data-store-order-photo-index],
.admin-dispute-photos [data-dispute-photo-viewer] { width: 76px !important; height: 76px !important; min-width: 0 !important; min-height: 0 !important; display: block; overflow: hidden; border: 0 !important; border-radius: 10px !important; background: transparent !important; background-image: none !important; padding: 0 !important; box-shadow: none !important; }
.admin-dispute-photos .admin-dispute-photo-thumbnail::before,
.admin-dispute-photos .admin-dispute-photo-thumbnail::after,
.admin-dispute-photos [data-store-order-photo-index]::before,
.admin-dispute-photos [data-store-order-photo-index]::after,
.admin-dispute-photos [data-dispute-photo-viewer]::before,
.admin-dispute-photos [data-dispute-photo-viewer]::after { content: none !important; display: none !important; }
.admin-dispute-photos .admin-dispute-photo-thumbnail img,
.admin-dispute-photos [data-store-order-photo-index] img,
.admin-dispute-photos [data-dispute-photo-viewer] img,
.admin-dispute-photos .address-review-photo-state { width: 76px !important; height: 76px !important; aspect-ratio: 1; display: block; border: 0; border-radius: 10px; background: var(--surface-soft); object-fit: cover; }
.admin-dispute-participant-backdrop { z-index: 160; place-items: center; padding: 18px; }
.admin-dispute-participant-modal { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 36px); display: grid; gap: 16px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); padding: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.admin-dispute-participant-modal > .plain-close { position: absolute; top: 12px; right: 12px; }
.admin-dispute-participant-modal > header { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.admin-dispute-participant-modal > header img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.admin-dispute-participant-modal > header div { min-width: 0; display: grid; gap: 3px; }
.admin-dispute-participant-modal > header span,
.admin-dispute-participant-modal > header p { margin: 0; color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 11px; }
.admin-dispute-participant-modal > header h3 { margin: 0; font-size: 20px; }
.admin-dispute-participant-modal > footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-dispute-notes { display: grid; gap: 6px; }
.admin-dispute-notes > span { color: var(--muted); font-size: 10px; }
.admin-dispute-notes p { margin: 0; border-radius: 8px; background: var(--surface-soft); padding: 9px 10px; font-size: 11px; }
.admin-dispute-chat-blocks { display: grid; gap: 7px; margin-top: 12px; }
.admin-dispute-chat-blocks > span { color: var(--muted); font-size: 10px; }
.admin-dispute-chat-blocks article { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 9px 10px; }
.admin-dispute-chat-blocks header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.admin-dispute-chat-blocks header b { border-radius: 999px; background: var(--surface); color: var(--muted); padding: 3px 7px; font-size: 9px; }
.admin-dispute-chat-blocks header b.is-active { color: #a32626; }
.admin-dispute-chat-blocks p { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.admin-dispute-chat-blocks small { color: var(--muted); font-size: 9px; }
.admin-dispute-chat-blocks.is-empty > p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-dispute-details-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-dispute-details-skeleton span { height: 92px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-soft), var(--surface), var(--surface-soft)); background-size: 220% 100%; animation: profileLoading 1.05s linear infinite; }

.conversation-pane { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.conversation-pane-empty { grid-template-rows: 1fr; }
.conversation-action-bar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
  padding: 9px 14px;
}
.conversation-action-bar > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.conversation-action-bar > div { min-width: 0; display: flex; gap: 7px; overflow: visible; }
.conversation-action-bar > div::-webkit-scrollbar { display: none; }
.conversation-action-bar button { min-height: 34px; flex: 0 0 auto; padding: 0 12px; font-size: 11px; font-weight: 600; }
.conversation-action-bar.is-compact { justify-content: flex-end; padding-block: 6px; }
.conversation-actions-controls { position: relative; align-items: center; justify-content: flex-end; }
.conversation-actions-menu { position: relative; order: 0; }
.conversation-actions-trigger {
  min-height: 42px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  background: var(--surface) !important;
  color: var(--text) !important;
  padding: 0 15px !important;
  box-shadow: 0 8px 20px rgba(10, 12, 16, .12);
  transition: transform 150ms var(--ease-out), background-color 150ms ease;
}
.conversation-actions-trigger > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conversation-actions-trigger > svg circle { fill: currentColor; }
.conversation-actions-trigger:active { transform: scale(.97); }
.conversation-actions-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(310px, calc(100vw - 40px));
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  padding: 6px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
  transform-origin: top right;
  animation: conversationActionsIn 170ms var(--ease-out) both;
}
.conversation-action-menu-item {
  min-height: 42px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  padding: 9px 10px !important;
  box-shadow: none;
  text-align: left;
  transition: background-color 140ms ease, transform 140ms var(--ease-out);
}
.conversation-action-menu-item > span { overflow-wrap: anywhere; }
.conversation-action-menu-item > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .64; }
.conversation-action-menu-item:hover { background: var(--surface-soft); }
.conversation-action-menu-item:active { transform: scale(.985); }
.conversation-action-menu-item.is-danger { color: #a32626; }
@keyframes conversationActionsIn { from { opacity: 0; transform: translateY(-5px) scale(.97); } to { opacity: 1; transform: none; } }
.conversation-action-bar .conversation-icon-action {
  order: 1;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  box-shadow: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.conversation-action-bar .conversation-icon-action:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}
.conversation-action-bar .conversation-icon-action:active { transform: scale(.96); }
.conversation-icon-action svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.conversation-icon-action > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conversation-action-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #111 36%, transparent);
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.conversation-action-modal .modal-card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 26px 70px color-mix(in srgb, #000 22%, transparent);
  animation: conversationModalIn 190ms var(--ease-out) both;
}
@keyframes conversationModalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
body:has(.conversation-action-modal) .mobile-dock { opacity: 0; pointer-events: none; }
body:has(.purchase-modal-backdrop) .mobile-dock,
body:has(.wallet-modal-backdrop) .mobile-dock,
body:has(.storefront-chat-backdrop) .mobile-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.conversation-action-modal .modal-card h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.conversation-action-modal .modal-card > p { margin: -5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.logout-confirm-backdrop { position: fixed; inset: 0; z-index: 460; display: grid; place-items: center; overflow: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: color-mix(in srgb, #08090b 54%, transparent); backdrop-filter: blur(10px); }
.logout-confirm-modal { position: relative; width: min(100%, 420px); display: grid; justify-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); padding: 30px 28px 24px; box-shadow: 0 28px 80px rgba(0,0,0,.32); text-align: center; animation: conversationModalIn 180ms var(--ease-out) both; }
.logout-confirm-close { position: absolute; top: 12px; right: 12px; width: 36px; min-width: 36px; min-height: 36px; border: 0; border-radius: 11px; background: var(--surface-soft); color: var(--muted); padding: 0; box-shadow: none; font-size: 21px; line-height: 1; }
.logout-confirm-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--bad) 11%, var(--surface)); color: var(--bad); }
.logout-confirm-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logout-confirm-copy { display: grid; gap: 7px; }
.logout-confirm-copy h2 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.logout-confirm-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.logout-confirm-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 5px; }
.logout-confirm-actions button { min-height: 46px; border-radius: 13px; font-size: 14px; font-weight: 620; }
.logout-confirm-submit { border: 1px solid var(--text); background: var(--text); color: var(--surface); }
.logout-confirm-actions .logout-confirm-submit:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
  filter: brightness(.94);
}
body:has(.logout-confirm-backdrop:not(.hidden)) .mobile-dock { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 520px) {
  .logout-confirm-modal { border-radius: 19px; padding: 27px 18px 18px; }
  .logout-confirm-actions { grid-template-columns: 1fr; }
  .logout-confirm-submit { order: -1; }
}
.conversation-action-modal .modal-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.conversation-action-modal .modal-close { position: absolute; top: 13px; right: 13px; width: 34px; min-width: 34px; min-height: 34px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--muted); padding: 0; box-shadow: none; font-size: 19px; }
.conversation-action-modal label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.conversation-action-modal textarea,
.conversation-action-modal select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 11px 12px; font: inherit; }
.conversation-action-modal textarea { min-height: 112px; resize: vertical; }
.conversation-action-modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.conversation-spam-picker { min-width: 0; display: grid; gap: 7px; margin: 0; border: 0; padding: 0; }
.conversation-spam-picker legend { color: var(--text); font-size: 12px; font-weight: 650; }
.conversation-spam-picker > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.conversation-spam-picker > div { max-height: min(290px, 38dvh); display: grid; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
.conversation-spam-picker label { position: relative; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 10px 11px; cursor: pointer; }
.conversation-spam-picker label:has(input:checked) { border-color: color-mix(in srgb, var(--text) 48%, var(--line)); background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.conversation-spam-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.conversation-spam-picker label > span { min-width: 0; display: grid; gap: 5px; }
.conversation-spam-picker b { max-height: 4.2em; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.conversation-spam-picker time { color: var(--muted); font-size: 9px; }
.conversation-spam-picker i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.conversation-spam-picker input:checked ~ i { border-color: var(--text); background: var(--text); }
.conversation-spam-picker input:checked ~ i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: translateY(-1px) rotate(-45deg); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-inner { width: min(1420px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr); gap: 48px; padding: 42px 0 48px; }
.site-footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.site-footer-brand img { width: 38px; height: 38px; object-fit: contain; filter: none; }
.site-footer-brand div { display: grid; gap: 6px; }
.site-footer-brand strong { color: var(--text); font-size: 21px; }
.site-footer-brand span { max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.site-footer-block { display: grid; justify-items: start; gap: 5px; }
.site-footer-block > strong { margin-bottom: 8px; color: var(--text); font-size: 14px; }
.site-footer-block button { min-height: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 6px 0; box-shadow: none; text-align: left; font-size: 13px; font-weight: 500; }
.site-footer-block button:hover { background: transparent; color: var(--text); transform: translateX(2px); }
.site-footer-modal-backdrop { position: fixed; inset: 0; z-index: 440; display: grid; place-items: center; overflow: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: color-mix(in srgb, #111 38%, transparent); backdrop-filter: blur(8px); }
.site-footer-modal { position: relative; width: min(100%, 680px); max-height: calc(100dvh - 36px); display: grid; gap: 15px; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 28px; box-shadow: 0 28px 80px color-mix(in srgb, #000 24%, transparent); }
.site-footer-modal.is-wide { width: min(100%, 920px); }
.site-footer-modal > .modal-close { position: absolute; top: 14px; right: 14px; width: 36px; min-width: 36px; min-height: 36px; border: 0; border-radius: 11px; background: var(--surface-soft); color: var(--text); padding: 0; box-shadow: none; font-size: 20px; }
.site-footer-modal > .modal-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.site-footer-modal > h2 { margin: 0; padding-right: 38px; color: var(--text); font-size: clamp(22px, 3vw, 30px); }
.site-footer-modal-copy { margin: -5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-footer-modal label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.site-footer-modal select, .site-footer-modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 12px 13px; font: inherit; }
.site-footer-modal textarea { min-height: 170px; resize: vertical; }
.site-footer-modal .modal-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding-top: 15px; }
.footer-rich-text { color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-rich-text h2, .footer-rich-text h3 { margin: 18px 0 8px; }
.footer-rich-text p { margin: 0 0 10px; }
.footer-rich-text ul, .footer-rich-text ol { margin: 4px 0 14px; padding-left: 22px; }
.footer-rich-text a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.footer-team-grid article { min-width: 0; display: flex; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 15px; }
.footer-team-grid img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; }
.footer-team-grid article > div { min-width: 0; display: grid; align-content: start; gap: 4px; }
.footer-team-grid h3 { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0; color: var(--text); font-size: 14px; }
.footer-team-grid h3 span { border-radius: 999px; background: var(--text); color: var(--surface); padding: 3px 7px; font-size: 9px; }
.footer-team-grid strong { color: var(--text); font-size: 12px; }
.footer-team-grid p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-modal-loading { display: grid; gap: 10px; padding: 10px 0; }
.footer-modal-loading i { height: 52px; border-radius: 12px; background: var(--surface-soft); animation: notification-skeleton-pulse 1.2s ease-in-out infinite alternate; }

.admin-footer-tabs { display: flex; gap: 6px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 4px; }
.admin-footer-tabs button { flex: 1; min-height: 40px; border: 0; background: transparent; color: var(--muted); box-shadow: none; }
.admin-footer-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px color-mix(in srgb, #000 8%, transparent); }
.admin-footer-editor { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.admin-footer-editor label, .admin-footer-team-card label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.admin-footer-editor input, .admin-footer-editor select, .admin-footer-editor textarea, .admin-footer-team-card input, .admin-footer-team-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 11px 12px; font: inherit; }
.admin-footer-editor > label > textarea { min-height: 280px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; }
.admin-footer-format-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-footer-format-toolbar button { min-width: 36px; min-height: 36px; border-color: var(--line); background: var(--surface-soft); color: var(--text); padding: 0; box-shadow: none; }
.admin-footer-format-help { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 12px; color: var(--muted); font-size: 12px; }
.admin-footer-format-help summary { cursor: pointer; color: var(--text); font-weight: 650; }
.admin-footer-format-help div { display: grid; gap: 7px; padding-top: 10px; }
.admin-footer-format-help code { width: fit-content; border-radius: 6px; background: var(--surface); color: var(--text); padding: 4px 7px; }
.admin-footer-format-help p { margin: 4px 0 0; line-height: 1.5; }
.admin-footer-preview { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-footer-preview > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.admin-footer-preview-canvas { min-height: 150px; display: grid; align-content: start; gap: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); padding: clamp(18px, 3vw, 30px); }
.admin-footer-preview-heading { color: var(--text); font-size: clamp(24px, 3vw, 34px); font-weight: 650; line-height: 1.16; letter-spacing: -.025em; }
.admin-footer-preview-heading:empty::before { content: "—"; color: var(--muted); }
.admin-footer-preview-body:empty::before { content: "—"; color: var(--muted); }
.admin-footer-team-list { display: grid; gap: 12px; }
.admin-footer-team-card { display: grid; grid-template-columns: minmax(190px, .7fr) 1fr 1.4fr auto; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.admin-footer-team-card header { display: flex; align-items: center; gap: 10px; }
.admin-footer-team-card header img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.admin-footer-team-card h4 { margin: 0 0 3px; color: var(--text); }
.admin-footer-team-card header span { color: var(--muted); font-size: 10px; }
.admin-footer-team-card textarea { min-height: 76px; resize: vertical; }
.admin-footer-note { color: var(--muted); font-size: 12px; text-align: center; }
.admin-footer-topic-selected { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }

.admin-team-add,
.admin-allowlist-add { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.4fr); align-items: end; gap: 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 70%, var(--surface)), var(--surface)); padding: 18px; }
.admin-team-add h4,
.admin-allowlist-add h4 { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.admin-team-add p,
.admin-allowlist-add p { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-team-add-fields,
.admin-allowlist-add-fields { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, .8fr) auto; align-items: end; gap: 10px; }
.admin-allowlist-add-fields { grid-template-columns: minmax(140px, .72fr) minmax(220px, 1.28fr) auto; }
.admin-team-add-fields label,
.admin-allowlist-add-fields label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.admin-team-add-fields input,
.admin-team-add-fields select,
.admin-allowlist-add-fields input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 0 12px; font: inherit; }
.admin-team-add-fields button,
.admin-allowlist-add-fields button { min-height: 42px; white-space: nowrap; }
.admin-team-management-card { grid-template-columns: minmax(180px, .75fr) minmax(160px, .8fr) minmax(180px, .9fr) minmax(240px, 1.25fr) auto; align-items: center; }
.admin-team-role-badge { width: fit-content; border: 1px solid color-mix(in srgb, var(--bad) 48%, var(--line)); border-radius: 999px; color: var(--bad); padding: 3px 7px; font-size: 9px !important; font-weight: 680; }
.admin-team-role-badge.is-junior { border-color: color-mix(in srgb, #19a66b 55%, var(--line)); background: color-mix(in srgb, #19a66b 8%, transparent); color: color-mix(in srgb, #19a66b 88%, var(--text)); }
.admin-team-role-badge.is-senior { border-color: color-mix(in srgb, #2782d8 52%, var(--line)); background: color-mix(in srgb, #2782d8 8%, transparent); color: color-mix(in srgb, #2782d8 86%, var(--text)); }
.admin-team-role-badge.is-security { border-color: color-mix(in srgb, var(--bad) 58%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, transparent); color: color-mix(in srgb, var(--bad) 88%, var(--text)); }
.admin-team-role-badge.is-admin { border-color: color-mix(in srgb, #7067d8 56%, var(--line)); background: color-mix(in srgb, #7067d8 9%, transparent); color: color-mix(in srgb, #7067d8 88%, var(--text)); }
.admin-team-permissions { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.admin-team-permissions span { border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); padding: 5px 8px; font-size: 9px; line-height: 1.25; }
.admin-allowlist-list { display: grid; gap: 10px; }
.admin-allowlist-list article { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(220px, 1.4fr) minmax(180px, .7fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 15px; }
.admin-allowlist-user { min-width: 0; display: grid; gap: 5px; }
.admin-allowlist-user strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.admin-allowlist-user span { width: fit-content; border: 1px solid color-mix(in srgb, #19a66b 42%, var(--line)); border-radius: 999px; color: color-mix(in srgb, #19a66b 84%, var(--text)); padding: 3px 7px; font-size: 9px; }
.admin-allowlist-list p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.45; }
.admin-allowlist-list small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.admin-support-request-list { display: grid; gap: 12px; }
.admin-support-request-card { display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 17px; }
.admin-support-request-card > header { display: flex; justify-content: space-between; gap: 14px; }
.admin-support-request-card header span, .admin-support-request-card time { color: var(--muted); font-size: 10px; }
.admin-support-request-card h3 { margin: 4px 0; color: var(--text); font-size: 17px; }
.admin-support-request-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-support-request-card blockquote { margin: 0; border-left: 3px solid var(--text); background: var(--surface-soft); padding: 12px 14px; color: var(--text); font-size: 13px; line-height: 1.55; }
.admin-support-assigned { color: var(--muted); font-size: 11px; }
.admin-support-response { display: grid; gap: 5px; border-radius: 12px; background: var(--surface-soft); padding: 12px; }
.admin-support-response span { color: var(--muted); font-size: 10px; }
.admin-support-response p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.5; }
.admin-support-answer { display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 13px; }
.admin-support-answer > label:not(.admin-support-chat-check) { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.admin-support-answer textarea { min-height: 110px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 11px; font: inherit; resize: vertical; }
.admin-support-chat-check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
.admin-support-chat-check input { width: 17px; height: 17px; }
.admin-support-request-card footer, .admin-support-answer footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-moderation-card.is-urgent,
.admin-support-request-card.is-urgent,
.admin-dispute-card.is-urgent { border-color: color-mix(in srgb, var(--danger) 58%, var(--line)); box-shadow: inset 3px 0 0 var(--danger); }
.moderation-urgent-badge { display: inline-flex; align-items: center; width: fit-content; margin: 5px 0; border: 1px solid color-mix(in srgb, var(--danger) 64%, transparent); border-radius: 999px; padding: 3px 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); font-size: 10px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.moderation-assignment-deadline { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.moderation-assignment-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.moderation-assignment-controls label { display: grid; gap: 5px; min-width: min(260px, 100%); }
.moderation-assignment-controls label > span { color: var(--muted); font-size: 10px; }
.moderation-assignment-controls select { min-height: 40px; }
@media (max-width: 680px) {
  .moderation-assignment-controls { align-items: stretch; }
  .moderation-assignment-controls label,
  .moderation-assignment-controls button { width: 100%; }
}

@media (max-width: 760px) {
  .site-footer-inner { width: min(100% - 28px, 1420px); grid-template-columns: 1fr; gap: 28px; padding: 30px 0 calc(104px + env(safe-area-inset-bottom)); }
  .site-footer-modal { padding: 23px 17px 18px; border-radius: 18px; }
  .footer-team-grid { grid-template-columns: 1fr; }
  .admin-footer-team-card { grid-template-columns: 1fr; align-items: stretch; }
  .admin-footer-tabs { overflow-x: auto; }
  .admin-footer-tabs button { min-width: max-content; padding-inline: 14px; }
  .admin-team-add, .admin-allowlist-add { grid-template-columns: 1fr; gap: 14px; }
  .admin-team-add-fields, .admin-allowlist-add-fields { grid-template-columns: 1fr; }
  .admin-team-management-card, .admin-allowlist-list article { grid-template-columns: 1fr; align-items: stretch; }
  .admin-allowlist-list article > button { width: 100%; }
}

/* Compact footer and full-size information pages. */
.site-footer { flex: 0 0 auto; align-self: stretch; }
.site-footer-inner { width: min(1420px, calc(100% - 48px)); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 21px 0 23px; }
.site-footer-brand { flex: 0 0 auto; align-items: center; gap: 10px; }
.site-footer-brand img { width: 30px; height: 30px; }
.site-footer-brand strong { font-size: 18px; font-weight: 620; }
.site-footer-block { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px 18px; flex-wrap: wrap; }
.site-footer-block > strong { margin: 0 5px 0 0; font-size: 13px; }
.site-footer-block a,
.site-footer-block button { min-height: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 5px 0; box-shadow: none; text-align: left; text-decoration: none; font-size: 12px; font-weight: 500; }
.site-footer-block a:hover,
.site-footer-block button:hover { background: transparent; color: var(--text); transform: translateY(-1px); }

.information-page { width: min(1120px, 100%); min-height: 52vh; margin: 0 auto; padding: 48px 0 64px; }
.information-page-heading { max-width: 760px; display: grid; gap: 9px; margin-bottom: 28px; }
.information-page-heading > span { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.information-page-heading h1,
.information-rich-title { min-block-size: var(--pretext-reserved-height, 0); margin: 0; color: var(--text); font-size: clamp(28px, 4vw, 42px); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }
.information-rich-title > :first-child { margin-top: 0; }
.information-rich-title > :last-child { margin-bottom: 0; }
.site-footer-rich-title { margin: 0; padding-right: 38px; color: var(--text); font-size: clamp(22px, 3vw, 30px); font-weight: 650; line-height: 1.18; }
.information-page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.information-rich-text { max-width: 900px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(22px, 4vw, 44px); }
.information-support-form { max-width: 760px; display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
.information-support-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.information-support-form select, .information-support-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 12px; font: inherit; }
.information-support-form textarea { min-height: 180px; resize: vertical; }
.information-support-actions { display: flex; justify-content: flex-end; }

.information-team-tree { width: min(100%, 980px); display: grid; justify-items: center; margin-inline: auto; padding: 4px 0 24px; }
.information-team-root { position: relative; z-index: 2; min-width: min(100%, 270px); display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid color-mix(in srgb, #7067d8 38%, var(--line)); border-radius: 17px; background: var(--surface); padding: 12px 18px; box-shadow: 0 12px 30px color-mix(in srgb, #000 7%, transparent); }
.information-team-root > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: color-mix(in srgb, #7067d8 12%, var(--surface-soft)); color: color-mix(in srgb, #8e86ef 82%, var(--text)); }
.information-team-root svg { width: 22px; height: 22px; }
.information-team-root > div { display: grid; gap: 3px; }
.information-team-root strong { color: var(--text); font-size: 14px; }
.information-team-root small { color: var(--muted); font-size: 10px; }
.information-team-trunk { position: relative; width: 18px; height: 30px; }
.information-team-trunk::before { content: ""; position: absolute; left: 50%; inset-block: 0; width: 1px; background: var(--line); }
.information-team-trunk i { position: absolute; left: calc(50% - 3px); top: calc(50% - 3px); width: 6px; height: 6px; border: 1px solid color-mix(in srgb, var(--text) 28%, var(--line)); border-radius: 50%; background: var(--bg); }
.information-team-trunk.is-root { height: 28px; }
.information-team-level { width: 100%; display: grid; justify-items: center; }
.information-team-tier { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); padding: 6px 9px 6px 13px; font-size: 10px; font-weight: 650; }
.information-team-tier b { min-width: 22px; border-radius: 999px; background: var(--surface-soft); color: var(--text); padding: 3px 7px; text-align: center; font-size: 9px; }
.information-team-level.is-chief .information-team-tier,
.information-team-level.is-security .information-team-tier { border-color: color-mix(in srgb, var(--bad) 48%, var(--line)); color: color-mix(in srgb, var(--bad) 86%, var(--text)); }
.information-team-level.is-admin .information-team-tier { border-color: color-mix(in srgb, #7067d8 44%, var(--line)); color: color-mix(in srgb, #7067d8 84%, var(--text)); }
.information-team-level.is-senior .information-team-tier { border-color: color-mix(in srgb, #2782d8 42%, var(--line)); color: color-mix(in srgb, #2782d8 80%, var(--text)); }
.information-team-level.is-junior .information-team-tier { border-color: color-mix(in srgb, #19a66b 42%, var(--line)); color: color-mix(in srgb, #19a66b 80%, var(--text)); }
.information-team-branch { position: relative; width: 100%; padding-top: 31px; }
.information-team-branch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.information-team-members { position: relative; width: min(100%, 900px); display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 14px; margin-inline: auto; }
.information-team-members::before { content: ""; position: absolute; left: 142px; right: 142px; top: -16px; height: 1px; background: var(--line); }
.information-team-branch.is-single .information-team-members::before { display: none; }
.information-team-member { position: relative; z-index: 2; width: 280px; max-width: 100%; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 14px; box-shadow: 0 9px 24px color-mix(in srgb, #000 5%, transparent); }
.information-team-member::before { content: ""; position: absolute; left: 50%; top: -16px; width: 1px; height: 16px; background: var(--line); }
.information-team-member-avatar { position: relative; width: 58px; height: 58px; flex: 0 0 auto; }
.information-team-member-avatar img { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 16px; object-fit: cover; }
.information-team-member-avatar i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); }
.information-team-member.is-chief .information-team-member-avatar i,
.information-team-member.is-security .information-team-member-avatar i { background: var(--bad); }
.information-team-member.is-admin .information-team-member-avatar i { background: #7067d8; }
.information-team-member.is-senior .information-team-member-avatar i { background: #2782d8; }
.information-team-member.is-junior .information-team-member-avatar i { background: #19a66b; }
.information-team-member > div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.information-team-member h3 { margin: 2px 0 0; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.information-team-member strong { color: var(--text); font-size: 11px; font-weight: 570; }
.information-team-member p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.footer-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.footer-team-grid article { gap: 18px; border-radius: 18px; padding: 20px; }
.footer-team-grid img { width: 76px; height: 76px; border-radius: 19px; }
.footer-team-grid article > div { gap: 6px; }
.footer-team-grid h3 { font-size: 16px; font-weight: 620; }
.footer-team-grid strong { font-size: 13px; font-weight: 520; }
.footer-team-grid p { font-size: 13px; font-weight: 400; line-height: 1.55; }

.footer-rich-text .rt-font-sans { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.footer-rich-text .rt-font-serif { font-family: Georgia, "Times New Roman", serif; }
.footer-rich-text .rt-font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.footer-rich-text .rt-size-12 { font-size: 12px; }
.footer-rich-text .rt-size-14 { font-size: 14px; }
.footer-rich-text .rt-size-16 { font-size: 16px; }
.footer-rich-text .rt-size-18 { font-size: 18px; }
.footer-rich-text .rt-size-22 { font-size: 22px; }
.footer-rich-text .rt-size-28 { font-size: 28px; }
.footer-rich-text .rt-size-36 { font-size: 36px; }
.footer-rich-text .rt-color-default { color: var(--text); }
.footer-rich-text .rt-color-muted { color: var(--muted); }
.footer-rich-text .rt-color-red { color: #b42318; }
.footer-rich-text .rt-color-blue { color: #175cd3; }
.footer-rich-text .rt-color-green { color: #067647; }
.footer-rich-text .rt-color-orange { color: #0e7490; }
.footer-rich-text .rt-color-purple { color: #6941c6; }
.footer-rich-text .rt-align-left { text-align: left; }
.footer-rich-text .rt-align-center { text-align: center; }
.footer-rich-text .rt-align-right { text-align: right; }
.footer-rich-text .rt-align-justify { text-align: justify; }
.footer-rich-text .rt-image { display: inline-block; width: 100%; max-width: 100%; height: auto; margin: .55em 0; border-radius: 14px; vertical-align: middle; }
.footer-rich-text .rt-image.rt-align-left { display: block; margin: .55em auto .55em 0; }
.footer-rich-text .rt-image.rt-align-center { display: block; margin: .55em auto; }
.footer-rich-text .rt-image.rt-align-right { display: block; margin: .55em 0 .55em auto; }
.footer-rich-text .rt-image.rt-image-size-25 { width: 25%; }
.footer-rich-text .rt-image.rt-image-size-50 { width: 50%; }
.footer-rich-text .rt-image.rt-image-size-75 { width: 75%; }
.footer-rich-text .rt-image.rt-image-size-100 { width: 100%; }

.admin-footer-editor-fields { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(280px, 1.35fr); gap: 12px; }
.admin-footer-field { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 11px; }
.admin-footer-heading-editor { min-height: max(43px, var(--pretext-reserved-height, 0px)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 10px 12px; outline: none; white-space: nowrap; }
.admin-footer-heading-editor:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.admin-footer-heading-editor > * { margin-top: 0; margin-bottom: 0; }
.admin-footer-image-input { display: none !important; }
.admin-footer-format-toolbar { position: sticky; top: 0; z-index: 12; align-items: center; overflow: visible; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 95%, transparent); padding: 7px; box-shadow: 0 8px 22px color-mix(in srgb, #000 5%, transparent); backdrop-filter: blur(16px); }
.admin-footer-format-toolbar select { width: auto; min-height: 36px; padding: 6px 30px 6px 10px; }
.admin-footer-font-select { min-width: 168px; max-width: 210px; }
.admin-footer-tool-button,
.admin-footer-color-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease; }
.admin-footer-tool-button:hover,
.admin-footer-color-toggle:hover { border-color: var(--line-strong); background: var(--surface); }
.admin-footer-tool-button.is-active,
.admin-footer-tool-button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--text) 34%, var(--line)); background: var(--text); color: var(--surface); }
.admin-footer-tool-button:active,
.admin-footer-color-toggle:active { transform: scale(.96); }
.admin-footer-tool-button:focus-visible,
.admin-footer-color-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.admin-footer-tool-button svg,
.admin-footer-color-toggle svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.admin-footer-size-control { width: 72px; min-height: 36px; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 2px !important; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 8px; }
.admin-footer-size-control input { width: 42px !important; min-height: 30px; border: 0 !important; background: transparent !important; padding: 0 !important; text-align: right; box-shadow: none !important; appearance: textfield; }
.admin-footer-size-control input::-webkit-inner-spin-button,
.admin-footer-size-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.admin-footer-size-control span { color: var(--muted); font-size: 11px; }
.admin-footer-color-picker { position: relative; flex: 0 0 auto; }
.admin-footer-color-toggle { position: relative; }
.admin-footer-color-toggle i { position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border: 1px solid color-mix(in srgb, var(--surface) 65%, #000); border-radius: 50%; background: #111317; pointer-events: none; }
.admin-footer-color-panel { position: absolute; top: calc(100% + 9px); left: 0; z-index: 30; width: 286px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; box-shadow: 0 20px 52px color-mix(in srgb, #000 20%, transparent); }
.admin-footer-color-panel[hidden] { display: none; }
.admin-footer-color-spectrum { display: grid; gap: 10px; }
.admin-footer-color-field { position: relative; width: 100% !important; height: 132px !important; display: block !important; overflow: hidden; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), var(--footer-hue-color, #f00) !important; padding: 0 !important; cursor: crosshair; touch-action: none; }
.admin-footer-color-field i { position: absolute; left: 86%; top: 91%; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .24); transform: translate(-50%, -50%); pointer-events: none; }
.admin-footer-color-field:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.admin-footer-hue-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 58px; gap: 8px; align-items: center; }
.admin-footer-hue-row input[type="range"] { width: 100%; height: 18px; margin: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); padding: 0; appearance: none; cursor: pointer; }
.admin-footer-hue-row input[type="range"]::-webkit-slider-runnable-track { height: 18px; border-radius: 999px; background: transparent; }
.admin-footer-hue-row input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .52), 0 2px 4px rgba(0, 0, 0, .2); appearance: none; }
.admin-footer-hue-row input[type="range"]::-moz-range-track { height: 18px; border: 0; border-radius: 999px; background: transparent; }
.admin-footer-hue-row input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .52), 0 2px 4px rgba(0, 0, 0, .2); }
.admin-footer-hue-row > span { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #111317; }
.admin-footer-hue-row output { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.admin-footer-rgb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-footer-rgb-fields label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 0 6px; }
.admin-footer-rgb-fields label span { color: var(--muted); font-size: 10px; font-weight: 650; }
.admin-footer-rgb-fields input { width: 100% !important; min-height: 34px; border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; appearance: textfield; }
.admin-footer-rgb-fields input::-webkit-inner-spin-button,
.admin-footer-rgb-fields input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.admin-footer-popular-colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.admin-footer-popular-colors button { position: relative; width: 27px; min-width: 27px; height: 27px; min-height: 27px; border: 1px solid color-mix(in srgb, var(--line) 70%, #777); border-radius: 50%; padding: 0; }
.admin-footer-popular-colors .color-preset-0 { background: #111317 !important; }
.admin-footer-popular-colors .color-preset-1 { background: #fff !important; }
.admin-footer-popular-colors .color-preset-2 { background: #5f6673 !important; }
.admin-footer-popular-colors .color-preset-3 { background: #b42318 !important; }
.admin-footer-popular-colors .color-preset-4 { background: #e5484d !important; }
.admin-footer-popular-colors .color-preset-5 { background: #344054 !important; }
.admin-footer-popular-colors .color-preset-6 { background: #0e7490 !important; }
.admin-footer-popular-colors .color-preset-7 { background: #067647 !important; }
.admin-footer-popular-colors .color-preset-8 { background: #12b76a !important; }
.admin-footer-popular-colors .color-preset-9 { background: #175cd3 !important; }
.admin-footer-popular-colors .color-preset-10 { background: #2e90fa !important; }
.admin-footer-popular-colors .color-preset-11 { background: #6941c6 !important; }
.admin-footer-popular-colors .color-preset-12 { background: #9b51e0 !important; }
.admin-footer-popular-colors .color-preset-13 { background: #d63384 !important; }
.admin-footer-popular-colors button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 3px; border: 2px solid rgba(255, 255, 255, .92); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.admin-footer-popular-colors button:hover { transform: scale(1.08); border-color: var(--text); }
.admin-footer-color-apply { width: 100%; min-height: 38px !important; border-radius: 10px !important; background: var(--text) !important; color: var(--surface) !important; padding: 0 12px !important; }
.admin-footer-link-dialog { position: relative; width: min(460px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 26px; }
.admin-footer-link-dialog > .modal-close { position: absolute; top: 13px; right: 13px; width: 34px !important; min-width: 34px !important; height: 34px; min-height: 34px !important; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 0 !important; box-shadow: none; font-size: 19px; line-height: 1; }
.admin-footer-link-dialog > h3 { padding-right: 38px; }
.admin-footer-link-dialog h3,
.admin-footer-link-dialog p { margin: 0; }
.admin-footer-link-dialog p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-footer-link-dialog label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 600; }
.admin-footer-link-error { min-height: 18px; color: var(--bad); font-size: 12px; }
.admin-footer-toolbar-divider { width: 1px; height: 25px; background: var(--line); }
.admin-footer-rich-editor-shell { position: relative; min-width: 0; }
.admin-footer-rich-editor { min-height: 430px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px; outline: none; }
.admin-footer-rich-editor:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 9%, transparent); }
.admin-footer-rich-editor .rt-image { cursor: pointer; transition: outline-color 140ms ease, opacity 140ms ease, width 180ms var(--ease-out); }
.admin-footer-rich-editor .rt-image:hover { opacity: .94; }
.admin-footer-rich-editor .rt-image.is-selected { outline: 3px solid color-mix(in srgb, var(--text) 72%, transparent); outline-offset: 4px; }
.admin-footer-image-resize-overlay { position: absolute; z-index: 8; border: 1px solid color-mix(in srgb, var(--text) 75%, transparent); border-radius: 14px; pointer-events: none; }
.admin-footer-image-resize-overlay[hidden] { display: none; }
.admin-footer-image-resize-overlay button { position: absolute; width: 18px; min-width: 18px; height: 18px; min-height: 18px; border: 2px solid var(--surface); border-radius: 50%; background: var(--text); padding: 0; box-shadow: 0 2px 8px color-mix(in srgb, #000 30%, transparent); pointer-events: auto; touch-action: none; }
.admin-footer-image-resize-overlay button::after { content: ""; position: absolute; inset: -10px; }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="nw"] { left: 0; top: 0; cursor: nwse-resize; transform: translate(-50%, -50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="n"] { left: 50%; top: 0; cursor: ns-resize; transform: translate(-50%, -50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="ne"] { right: 0; top: 0; cursor: nesw-resize; transform: translate(50%, -50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="e"] { right: 0; top: 50%; cursor: ew-resize; transform: translate(50%, -50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="se"] { right: 0; bottom: 0; cursor: nwse-resize; transform: translate(50%, 50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="s"] { left: 50%; bottom: 0; cursor: ns-resize; transform: translate(-50%, 50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="sw"] { left: 0; bottom: 0; cursor: nesw-resize; transform: translate(-50%, 50%); }
.admin-footer-image-resize-overlay button[data-admin-footer-image-resize="w"] { left: 0; top: 50%; cursor: ew-resize; transform: translate(-50%, -50%); }
body.is-resizing-footer-image { cursor: ew-resize; user-select: none; }
body.is-resizing-footer-image .admin-footer-rich-editor .rt-image { transition: none; }
.admin-footer-team-card { grid-template-columns: minmax(210px, .8fr) minmax(220px, 1fr) minmax(280px, 1.4fr) auto; align-items: center; padding: 18px; }
.admin-footer-team-card header img { width: 62px; height: 62px; border-radius: 16px; }
.admin-footer-team-card h4 { font-size: 15px; font-weight: 620; }
.admin-footer-team-card header span { font-size: 11px; font-weight: 500; }

.support-photo-field { display: grid; gap: 8px; }
.support-photo-field > span { color: var(--text); font-size: 12px; font-weight: 600; }
.support-photo-field > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.support-photo-grid { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 8px; }
.support-photo-grid figure, .support-photo-add { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); margin: 0; }
.support-photo-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.support-photo-grid figure button { position: absolute; top: 5px; right: 5px; width: 25px; min-width: 25px; min-height: 25px; border: 0; border-radius: 50%; background: color-mix(in srgb, #000 72%, transparent); color: #fff; padding: 0; }
.support-photo-add { display: grid; place-content: center; justify-items: center; gap: 3px; cursor: pointer; color: var(--muted); }
.support-photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.support-photo-add b { color: var(--text); font-size: 23px; font-weight: 400; }
.support-photo-add small { font-size: 9px; }
.admin-support-photos { display: grid; gap: 8px; }
.admin-support-photos > span { color: var(--muted); font-size: 10px; }
.admin-support-photos > div { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-support-photos button, .admin-support-photos i { width: 104px; height: 104px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 0; }
.admin-support-photos button { cursor: zoom-in; }
.admin-support-photos button:hover { border-color: var(--line-strong); transform: scale(.985); }
.admin-support-photos img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-support-photos i { animation: notification-skeleton-pulse 1.2s ease-in-out infinite alternate; }

.support-answer-backdrop { z-index: 560; }
.support-answer-modal { position: relative; width: min(560px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 28px; }
.support-answer-modal > .modal-close { position: absolute; top: 13px; right: 13px; width: 34px !important; min-width: 34px !important; height: 34px; min-height: 34px !important; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 0 !important; box-shadow: none; font-size: 19px; line-height: 1; }
.support-answer-modal h2, .support-answer-modal p, .support-answer-modal blockquote { margin: 0; }
.support-answer-modal h2 { padding-right: 44px; font-size: 22px; }
.support-answer-topic { color: var(--muted); font-size: 13px; }
.support-answer-modal blockquote { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); padding: 18px; color: var(--text); font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.support-answer-modal small { color: var(--muted); }
.support-answer-modal > button:last-child { justify-self: end; min-width: 112px; }

@media (max-width: 760px) {
  .site-footer-inner { width: min(100% - 28px, 1420px); display: grid; gap: 18px; padding: 24px 0 calc(104px + env(safe-area-inset-bottom)); }
  .site-footer-brand { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
  .site-footer-brand img { width: 32px; height: 32px; }
  .site-footer-brand strong { font-size: 18px; }
  .site-footer-block { display: grid; grid-template-columns: 1fr; align-items: stretch; justify-items: stretch; gap: 0; }
  .site-footer-block > strong { margin: 0 0 7px; padding: 0 2px; }
  .site-footer-block a,
  .site-footer-block button { width: 100%; min-height: 42px; display: flex; align-items: center; border-top: 1px solid var(--line); padding: 10px 2px; font-size: 13px; }
  .site-footer-block a:last-child,
  .site-footer-block button:last-child { border-bottom: 1px solid var(--line); }
  .information-page { padding: 30px 0 calc(112px + env(safe-area-inset-bottom)); }
  .information-team-tree { padding-bottom: 8px; }
  .information-team-root { width: 100%; justify-content: flex-start; }
  .information-team-members { display: grid; grid-template-columns: 1fr; width: 100%; }
  .information-team-members::before { display: none; }
  .information-team-member { width: 100%; }
  .information-team-branch:has(.information-team-member + .information-team-member)::after { content: ""; position: absolute; left: 22px; top: 15px; bottom: 24px; width: 1px; background: var(--line); }
  .information-team-branch:has(.information-team-member + .information-team-member) .information-team-member::before { left: 22px; top: -7px; width: 20px; height: calc(50% + 8px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
  .footer-team-grid { grid-template-columns: 1fr; }
  .footer-team-grid img { width: 68px; height: 68px; }
  .admin-footer-editor-fields { grid-template-columns: 1fr; }
  .admin-footer-rich-editor { min-height: 360px; padding: 18px; }
  .admin-footer-format-toolbar { position: static; overflow: visible; flex-wrap: wrap; backdrop-filter: none; }
  .admin-footer-format-toolbar > * { flex: 0 0 auto; }
  .admin-footer-font-select { min-width: min(170px, 100%); flex: 1 1 165px !important; }
  .admin-footer-color-panel {
    position: fixed;
    inset: auto max(12px, env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    z-index: 420;
    width: auto;
    max-height: calc(100dvh - 116px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .admin-footer-color-field { height: min(132px, 28dvh) !important; }
  .admin-footer-rich-editor { min-height: 360px; padding: 17px; }
  .admin-footer-team-card { grid-template-columns: 1fr; align-items: stretch; }
  .support-photo-grid { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}

.chat-settings-backdrop { padding: 18px; overflow-x: hidden; overflow-y: auto; }
.chat-settings-modal {
  position: relative;
  width: min(calc(100vw - 36px), 620px);
  max-width: 100%;
  max-height: calc(100dvh - 36px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  padding: 25px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.chat-settings-modal > .modal-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chat-settings-modal > h3 { margin: 5px 38px 5px 0; font-size: 22px; }
.chat-settings-modal > p { margin: 0 38px 18px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.chat-settings-close { position: absolute; top: 14px; right: 14px; }
.chat-settings-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.chat-block-list { display: grid; gap: 9px; }
.chat-block-list article { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 11px; }
.chat-block-list img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-block-list article > div { min-width: 0; display: grid; gap: 3px; }
.chat-block-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-block-list p { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.chat-block-list small { color: var(--muted); font-size: 10px; }
.chat-block-list button { min-height: 34px; }
.conversation-employee-picker { max-height: 290px; display: grid; gap: 7px; overflow-y: auto; padding: 1px 3px 1px 1px; scrollbar-width: thin; }
.conversation-action-modal .conversation-employee-option {
  position: relative;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 11px 8px 8px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.conversation-action-modal .conversation-employee-option:hover { border-color: color-mix(in srgb, var(--text) 18%, var(--line)); background: var(--surface-soft); }
.conversation-action-modal .conversation-employee-option:active { transform: scale(.99); }
.conversation-employee-option > input { position: absolute; opacity: 0; pointer-events: none; }
.conversation-employee-option > img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--surface-soft); }
.conversation-employee-option > span { min-width: 0; display: grid; gap: 3px; }
.conversation-employee-option strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.conversation-employee-option small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-employee-option > i { width: 17px; height: 17px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface); }
.conversation-employee-option:has(input:checked) { border-color: color-mix(in srgb, var(--text) 28%, var(--line)); background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface)); }
.conversation-employee-option:has(input:checked) > i { border-color: var(--text); background: var(--text); }
.conversation-employee-skeleton { display: grid; gap: 7px; }
.conversation-employee-skeleton span {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(90deg, var(--surface-soft) 16%, color-mix(in srgb, var(--surface) 76%, var(--surface-soft)) 45%, var(--surface-soft) 72%);
  background-size: 220% 100%;
  animation: profileLoading 1.05s linear infinite;
}

@media (max-width: 720px) {
  .admin-moderation-kind-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .admin-moderation-kind-tabs button { min-width: 150px; }
  .admin-dispute-card > header { align-items: flex-start; }
  .admin-dispute-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dispute-detail-grid { grid-template-columns: 1fr; }
  .admin-dispute-detail-grid .admin-dispute-position { grid-column: auto; }
  .conversation-action-bar { align-items: flex-start; flex-direction: column; }
  .conversation-action-bar > div { width: 100%; }
  .conversation-action-bar.is-compact { align-items: flex-end; }
  .conversation-action-bar.is-compact > div { width: auto; }
  body.is-messages-route #messages:has(.messages-workspace.has-selection) { grid-template-rows: minmax(0, 1fr); }
  .conversation-action-modal { place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); }
  .conversation-action-modal .modal-card { max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 18px; padding: 22px 17px 17px; }
  .conversation-system-message { grid-template-columns: minmax(16px, 1fr) minmax(0, auto) minmax(16px, 1fr); gap: 7px; text-align: center; }
  .conversation-system-message time { grid-column: 2; }
  .conversation-system-message::after { grid-column: 3; grid-row: 1; }
}

/* Administration hierarchy and restricted-access control. */
.admin-team-tree { display: grid; justify-items: stretch; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(18px, 3vw, 28px); }
.admin-team-tree-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-team-tree-heading > svg { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 7px; }
.admin-team-tree-heading h4, .admin-access-list-heading h4 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.admin-team-tree-heading p, .admin-access-list-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-org-canvas { width: min(100%, 760px); display: grid; justify-self: center; justify-items: center; padding: 2px 8px 4px; }
.admin-org-root { position: relative; z-index: 2; min-width: min(100%, 260px); display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid color-mix(in srgb, #7067d8 34%, var(--line)); border-radius: 999px; background: var(--surface-soft); padding: 9px 18px 9px 10px; }
.admin-org-root-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: color-mix(in srgb, #7067d8 13%, var(--surface-soft)); color: color-mix(in srgb, #8e86ef 84%, var(--text)); }
.admin-org-root-mark svg { width: 21px; height: 21px; }
.admin-org-root > span:last-child { display: grid; gap: 3px; }
.admin-org-root strong { color: var(--text); font-size: 13px; }
.admin-org-root small { color: var(--muted); font-size: 9px; }
.admin-org-trunk { position: relative; width: 18px; height: 25px; }
.admin-org-trunk::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), color-mix(in srgb, var(--text) 27%, var(--line)), var(--line)); }
.admin-org-trunk i { position: absolute; left: calc(50% - 3px); top: calc(50% - 3px); width: 6px; height: 6px; border: 1px solid color-mix(in srgb, var(--text) 28%, var(--line)); border-radius: 50%; background: var(--surface); }
.admin-org-trunk.is-root { height: 25px; }
.admin-org-level { width: 100%; display: grid; justify-items: center; }
.admin-org-tier { position: relative; z-index: 2; width: fit-content; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); padding: 6px 9px 6px 13px; font-size: 10px; font-weight: 650; }
.admin-org-tier b { min-width: 22px; border-radius: 999px; background: var(--surface-soft); color: var(--text); padding: 3px 7px; text-align: center; font-size: 9px; }
.admin-org-level.is-chief .admin-org-tier,
.admin-org-level.is-security .admin-org-tier { border-color: color-mix(in srgb, var(--bad) 48%, var(--line)); color: color-mix(in srgb, var(--bad) 86%, var(--text)); }
.admin-org-level.is-admin .admin-org-tier { border-color: color-mix(in srgb, #7067d8 44%, var(--line)); color: color-mix(in srgb, #7067d8 82%, var(--text)); }
.admin-org-level.is-senior .admin-org-tier { border-color: color-mix(in srgb, #2782d8 44%, var(--line)); color: color-mix(in srgb, #2782d8 80%, var(--text)); }
.admin-org-level.is-junior .admin-org-tier { border-color: color-mix(in srgb, #19a66b 42%, var(--line)); color: color-mix(in srgb, #19a66b 78%, var(--text)); }
.admin-org-branch { position: relative; width: 100%; padding-top: 27px; }
.admin-org-branch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.admin-org-nodes { position: relative; width: min(100%, 720px); display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; margin-inline: auto; }
.admin-org-nodes::before { content: ""; position: absolute; left: 119px; right: 119px; top: -18px; height: 1px; background: var(--line); }
.admin-org-branch.is-single .admin-org-nodes::before { display: none; }
.admin-org-node { position: relative; z-index: 2; width: 238px; max-width: 100%; flex: 0 1 238px; min-height: 68px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); padding: 7px 17px 7px 7px; text-align: left; box-shadow: 0 8px 22px color-mix(in srgb, #000 5%, transparent); transition: transform 180ms cubic-bezier(.23,1,.32,1), border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease; }
.admin-org-node::before { content: ""; position: absolute; left: 50%; top: -18px; width: 1px; height: 18px; background: var(--line); }
.admin-org-node.is-selected { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent), 0 0 0 3px color-mix(in srgb, var(--text) 5%, transparent); }
.admin-org-node.is-chief.is-selected,
.admin-org-node.is-security.is-selected { border-color: color-mix(in srgb, var(--bad) 62%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent), 0 0 0 3px color-mix(in srgb, var(--bad) 10%, transparent); }
.admin-org-node.is-admin.is-selected { border-color: color-mix(in srgb, #7067d8 62%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent), 0 0 0 3px color-mix(in srgb, #7067d8 10%, transparent); }
.admin-org-node.is-senior.is-selected { border-color: color-mix(in srgb, #2782d8 60%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent), 0 0 0 3px color-mix(in srgb, #2782d8 9%, transparent); }
.admin-org-node.is-junior.is-selected { border-color: color-mix(in srgb, #19a66b 58%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent), 0 0 0 3px color-mix(in srgb, #19a66b 9%, transparent); }
@starting-style { .admin-org-node { opacity: 0; transform: translateY(7px) scale(.98); } }
.admin-org-node:active { transform: scale(.975); }
.admin-org-node-avatar { position: relative; width: 52px; height: 52px; }
.admin-org-node-avatar img { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.admin-org-node-avatar i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); }
.admin-org-node.is-chief .admin-org-node-avatar i,
.admin-org-node.is-security .admin-org-node-avatar i { background: var(--bad); }
.admin-org-node.is-admin .admin-org-node-avatar i { background: #7067d8; }
.admin-org-node.is-senior .admin-org-node-avatar i { background: #2782d8; }
.admin-org-node.is-junior .admin-org-node-avatar i { background: #19a66b; }
.admin-org-node-copy { min-width: 0; display: grid; gap: 5px; }
.admin-org-node-copy strong, .admin-org-node-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-org-node-copy strong { font-size: 13px; }
.admin-org-node-copy small { color: var(--muted); font-size: 9px; }
.admin-org-empty-label { position: relative; z-index: 2; margin: 0; border: 1px dashed var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); padding: 6px 12px; font-size: 9px; }
.admin-org-empty-label::before { content: ""; position: absolute; left: 50%; top: -18px; width: 1px; height: 18px; background: var(--line); }
.admin-team-member-modal { position: fixed; inset: 0; z-index: 520; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: color-mix(in srgb, #080a0e 48%, transparent); backdrop-filter: blur(12px) saturate(112%); opacity: 1; transition: opacity 180ms ease, backdrop-filter 180ms ease; }
body:has(.admin-team-member-modal), body:has(.admin-team-demote-confirm) { overflow: hidden; }
body:has(.admin-team-member-modal) .mobile-dock, body:has(.admin-team-demote-confirm) .mobile-dock { opacity: 0; pointer-events: none; }
.admin-team-inspector { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: grid; gap: 16px; overflow-y: auto; border: 1px solid color-mix(in srgb, var(--text) 13%, var(--line)); border-radius: 22px; background: color-mix(in srgb, var(--surface) 97%, transparent); padding: 22px; box-shadow: 0 28px 80px color-mix(in srgb, #000 32%, transparent); outline: none; transition: opacity 180ms ease, transform 220ms cubic-bezier(.23,1,.32,1); }
@starting-style { .admin-team-member-modal { opacity: 0; backdrop-filter: blur(2px); } .admin-team-inspector { opacity: 0; transform: translateY(10px) scale(.985); } }
.admin-team-member-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; min-width: 38px; min-height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--surface-soft); color: var(--muted); padding: 0; box-shadow: none; }
.admin-team-member-close svg { width: 18px; height: 18px; }
.admin-team-member-close:active { transform: scale(.94); }
.admin-team-inspector > header { display: flex; align-items: center; gap: 13px; padding-right: 44px; }
.admin-team-inspector > header > div:last-child { display: grid; justify-items: start; gap: 4px; }
.admin-team-inspector > header span:first-child { color: var(--muted); font-size: 10px; }
.admin-team-inspector h4 { margin: 0; color: var(--text); font-size: 19px; line-height: 1.2; }
.admin-team-inspector-avatar img { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 16px; object-fit: cover; }
.admin-team-inspector .admin-team-permissions { border-top: 1px solid var(--line); padding-top: 14px; }
@media (hover: hover) and (pointer: fine) {
  .admin-org-node:hover { border-color: color-mix(in srgb, var(--text) 27%, var(--line)); box-shadow: 0 14px 30px color-mix(in srgb, #000 9%, transparent); transform: translateY(-2px); }
  .admin-team-member-close:hover { background: color-mix(in srgb, var(--surface-soft) 72%, var(--line)); color: var(--text); }
}
.admin-team-role-badge.is-chief { border-color: color-mix(in srgb, var(--bad) 58%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, transparent); color: color-mix(in srgb, var(--bad) 88%, var(--text)); }
.admin-team-card-fields { display: grid; gap: 12px; }
.admin-team-card-fields label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.admin-team-card-fields input, .admin-team-card-fields select, .admin-team-card-fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 10px 11px; color-scheme: light dark; font: inherit; }
.admin-team-card-fields textarea { min-height: 96px; resize: vertical; }
.admin-team-card-fields :disabled { opacity: .72; cursor: default; }
.admin-team-capabilities { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 72%, transparent); padding: 14px; }
.admin-team-capabilities h5 { margin: 0; color: var(--text); font-size: 12px; font-weight: 680; letter-spacing: -.01em; }
.admin-team-capabilities ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.admin-team-capabilities li { min-width: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-team-capabilities svg { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; background: color-mix(in srgb, var(--text) 6%, transparent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; padding: 3px; }
.admin-team-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-team-card-actions button { min-height: 40px; transition: transform 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out; }
.admin-team-card-actions button:active { transform: scale(.97); }
.admin-team-card-actions .admin-team-demote { display: inline-flex; align-items: center; gap: 6px; border-color: color-mix(in srgb, var(--bad) 36%, var(--line)); background: transparent; color: var(--bad); }
.admin-team-demote svg { width: 15px; height: 15px; }
.admin-team-demote-confirm { position: fixed; inset: 0; z-index: 540; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: color-mix(in srgb, #080a0e 58%, transparent); backdrop-filter: blur(14px) saturate(105%); opacity: 1; transition: opacity 160ms ease-out, backdrop-filter 160ms ease-out; }
.admin-team-demote-dialog { width: min(440px, 100%); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; border: 1px solid color-mix(in srgb, var(--bad) 24%, var(--line)); border-radius: 20px; background: var(--surface); color: var(--text); padding: 22px; box-shadow: 0 28px 80px color-mix(in srgb, #000 36%, transparent); outline: none; transition: opacity 170ms ease-out, transform 200ms cubic-bezier(.23,1,.32,1); }
@starting-style { .admin-team-demote-confirm { opacity: 0; backdrop-filter: blur(2px); } .admin-team-demote-dialog { opacity: 0; transform: translateY(8px) scale(.985); } }
.admin-team-demote-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, var(--surface-soft)); color: var(--bad); }
.admin-team-demote-mark svg { width: 21px; height: 21px; }
.admin-team-demote-copy h3 { margin: 1px 0 7px; font-size: 19px; line-height: 1.25; }
.admin-team-demote-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-team-demote-subject { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); padding: 10px; }
.admin-team-demote-subject img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.admin-team-demote-subject span { min-width: 0; display: grid; gap: 3px; }
.admin-team-demote-subject strong, .admin-team-demote-subject small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-team-demote-subject strong { font-size: 13px; }
.admin-team-demote-subject small { color: var(--muted); font-size: 10px; }
.admin-team-demote-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-team-demote-actions button { min-height: 40px; transition: transform 160ms ease-out, background-color 160ms ease-out; }
.admin-team-demote-actions button:active { transform: scale(.97); }
.admin-team-demote-submit { display: inline-flex; align-items: center; gap: 7px; border-color: var(--bad); background: var(--bad); color: #fff; }
.admin-team-demote-submit svg { width: 16px; height: 16px; }
.admin-access-policy { display: grid; gap: 15px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 70%, var(--surface)), var(--surface)); padding: 19px; transition: border-color .22s ease, background-color .22s ease; }
.admin-access-policy.is-active { border-color: color-mix(in srgb, var(--bad) 42%, var(--line)); }
.admin-access-policy.is-scheduled { border-color: color-mix(in srgb, #537ad6 42%, var(--line)); }
.admin-access-policy > header, .admin-access-policy > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-access-policy > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-access-policy-status { display: flex; align-items: center; gap: 10px; }
.admin-access-policy-status > i { width: 10px; height: 10px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.admin-access-policy.is-active .admin-access-policy-status > i { background: var(--bad); }
.admin-access-policy.is-scheduled .admin-access-policy-status > i { background: #537ad6; }
.admin-access-policy-status div { display: grid; gap: 3px; }
.admin-access-policy-status span { color: var(--muted); font-size: 10px; }
.admin-access-policy-status strong { color: var(--text); font-size: 16px; }
.admin-access-switch { min-height: 40px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); padding: 6px 12px 6px 7px; }
.admin-access-switch > span { width: 34px; height: 22px; position: relative; flex: 0 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--muted) 38%, var(--surface-soft)); transition: background-color .2s ease; }
.admin-access-switch > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px color-mix(in srgb, #000 24%, transparent); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.admin-access-switch.active { color: var(--text); }
.admin-access-switch.active > span { background: #19a66b; }
.admin-access-switch.active > span::after { transform: translateX(12px); }
.admin-access-switch.compact { min-height: 32px; padding: 4px; }
.admin-access-switch.compact > span { width: 34px; }
.admin-access-policy-controls { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(240px, 1fr); align-items: end; gap: 13px 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.admin-access-mode { width: fit-content; display: flex; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 3px; }
.admin-access-mode button { min-height: 35px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 0 13px; box-shadow: none; }
.admin-access-mode button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 5px color-mix(in srgb, #000 8%, transparent); }
.admin-access-policy-controls > label, .admin-access-message { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.admin-access-policy-controls input, .admin-access-message textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); padding: 10px 12px; color-scheme: light dark; font: inherit; }
.admin-access-notification { display: flex; align-items: center; gap: 10px; }
.admin-access-notification > div { display: grid; gap: 3px; }
.admin-access-notification strong { color: var(--text); font-size: 12px; }
.admin-access-notification small { color: var(--muted); font-size: 10px; }
.admin-access-message { grid-column: 1 / -1; }
.admin-access-message textarea { min-height: 92px; resize: vertical; }
.admin-access-policy > footer { border-top: 1px solid var(--line); padding-top: 14px; }
.admin-access-policy > footer small { max-width: 600px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-access-list-heading { margin: 22px 0 12px; }
.admin-store-position-search { position: relative; display: grid; gap: 9px; margin-bottom: 22px; }
.admin-store-position-search > label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.admin-store-position-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--text); padding: 0 44px 0 14px; font: inherit; outline: none; }
.admin-store-position-search input:focus { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 5%, transparent); }
.admin-store-position-spinner { position: absolute; top: 35px; right: 15px; width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin 700ms linear infinite; }
.admin-store-position-results { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 7px; box-shadow: 0 15px 38px color-mix(in srgb, #000 12%, transparent); }
.admin-store-position-results button { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 30px; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); padding: 8px; text-align: left; }
.admin-store-position-results button:hover { background: var(--surface-soft); }
.admin-store-position-results img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.admin-store-position-results span { min-width: 0; display: grid; gap: 3px; }
.admin-store-position-results strong, .admin-store-position-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-store-position-results small, .admin-store-position-no-results { color: var(--muted); font-size: 10px; }
.admin-store-position-results b { font-size: 21px; font-weight: 400; text-align: center; }
.admin-store-position-no-results { border: 1px dashed var(--line); border-radius: 12px; padding: 13px; text-align: center; }
.admin-store-position-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.admin-store-position-heading h4 { margin: 0 0 5px; font-size: 14px; }
.admin-store-position-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-store-position-heading > span { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); padding: 6px 10px; color: var(--muted); font-size: 10px; }
.admin-store-positions-pool { display: grid; gap: 8px; }
.admin-store-position-card { position: relative; display: grid; grid-template-columns: 18px 50px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 70px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); padding: 9px 12px; cursor: grab; touch-action: pan-y; user-select: none; transform: translateZ(0); transition: transform 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out; }
.admin-store-position-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 45%, transparent); outline-offset: 2px; }
.admin-store-position-card.is-pressing { transform: scale(.992); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); background: var(--surface-soft); }
.admin-store-position-card.is-selected { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent); }
.admin-store-position-card.is-dragging { pointer-events: none; cursor: grabbing; box-shadow: 0 22px 55px color-mix(in srgb, #000 28%, transparent); transform: scale(1.012); }
.admin-store-position-card.is-ineligible { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); }
.admin-store-position-grip { display: grid; gap: 3px; opacity: .45; }
.admin-store-position-grip i { width: 15px; height: 2px; border-radius: 2px; background: currentColor; }
.admin-store-position-card > img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; pointer-events: none; }
.admin-store-position-copy { min-width: 0; display: grid; gap: 3px; }
.admin-store-position-copy strong, .admin-store-position-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-store-position-copy strong { font-size: 13px; }
.admin-store-position-copy small { color: var(--muted); font-size: 10px; }
.admin-store-position-copy em { color: var(--bad); font-size: 9px; font-style: normal; }
.admin-store-position-card > b { align-self: center; border-radius: 10px; background: var(--surface-soft); padding: 7px 9px; font-size: 11px; }
.admin-store-position-controls { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(110px, 1fr) auto auto; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-store-position-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.admin-store-position-controls input { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 0 10px; font: inherit; }
.admin-store-position-controls button { min-height: 38px; }
.admin-store-position-placeholder { border: 1px dashed color-mix(in srgb, var(--text) 24%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 60%, transparent); }
.is-admin-store-position-dragging { cursor: grabbing; user-select: none; }

@media (max-width: 760px) {
  .admin-team-tree { padding: 15px; }
  .admin-org-canvas { padding-inline: 0; }
  .admin-org-nodes { display: grid; grid-template-columns: 1fr; width: 100%; }
  .admin-org-nodes::before { display: none; }
  .admin-org-node { width: 100%; }
  .admin-org-branch:has(.admin-org-node + .admin-org-node)::after { content: ""; position: absolute; left: 50%; top: 17px; bottom: 22px; width: 1px; background: var(--line); }
  .admin-org-branch:has(.admin-org-node + .admin-org-node) .admin-org-node::before { left: 18px; top: -7px; width: 18px; height: calc(50% + 8px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
  .admin-team-member-modal { place-items: end center; padding: max(12px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .admin-team-inspector { width: 100%; max-height: calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 22px 22px 16px 16px; padding: 20px 16px 16px; }
  .admin-team-capabilities ul { grid-template-columns: 1fr; }
  .admin-team-demote-confirm { place-items: end center; padding: max(12px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .admin-team-demote-dialog { width: 100%; border-radius: 22px 22px 16px 16px; padding: 20px 16px 16px; }
  .admin-team-demote-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-team-demote-actions button { width: 100%; justify-content: center; }
  .admin-access-policy > header, .admin-access-policy > footer { align-items: stretch; flex-direction: column; }
  .admin-access-policy > header .admin-access-switch { align-self: flex-start; }
  .admin-access-policy-controls { grid-template-columns: 1fr; }
  .admin-access-mode { width: 100%; }
  .admin-access-mode button { flex: 1; }
  .admin-access-message { grid-column: auto; }
  .admin-access-policy > footer button { width: 100%; }
  .admin-store-position-controls { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .admin-store-position-controls label { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-action-bar .conversation-icon-action,
  .conversation-action-modal .conversation-employee-option,
  .conversation-actions-trigger,
  .conversation-action-menu-item { transition: none; }
  .conversation-actions-popover,
  .conversation-action-modal .modal-card { animation: none; }
  .conversation-employee-skeleton span { animation: none; }
  .admin-org-node, .admin-team-member-modal, .admin-team-inspector, .admin-team-demote-confirm, .admin-team-demote-dialog, .admin-team-demote-actions button, .admin-access-switch > span, .admin-access-switch > span::after, .admin-access-policy, .admin-store-position-card { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .admin-team-member-modal, .admin-team-demote-confirm { background: rgba(8, 10, 14, .76); backdrop-filter: none; }
  .admin-team-inspector, .admin-team-demote-dialog { background: var(--surface); }
}

/* Forum */
.order-photos button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: none;
  clip-path: inset(0 round 14px);
}
.order-photos button .progressive-image,
.order-photos button .progressive-image-frame,
.order-photos button picture { width: 100%; height: 100%; display: block; border-radius: inherit; overflow: hidden; }
.order-photos img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; object-fit: cover; }
.order-photo-viewer { width: min(1080px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); padding: 62px 24px 24px; }
.order-photo-viewer img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 14px; object-fit: contain; }

.forum-section { width: 100%; }
.forum-workspace { width: min(1120px, 100%); min-height: 520px; margin: 0 auto; padding: 34px 0 64px; }
.forum-workspace button, .forum-workspace select, .forum-workspace input, .forum-workspace textarea { font: inherit; }
.forum-workspace button { transition: transform 140ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out; }
.forum-workspace button:active { transform: scale(.97); }
.forum-workspace button:focus-visible, .forum-workspace input:focus-visible, .forum-workspace textarea:focus-visible, .forum-workspace select:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 42%, transparent); outline-offset: 3px; }
.forum-hero { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 21px; min-height: 154px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(circle at 9% 25%, color-mix(in srgb, var(--text) 7%, transparent), transparent 30%), linear-gradient(135deg, var(--surface-soft), var(--surface)); padding: 27px 29px; }
.forum-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 300px; height: 300px; border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); border-radius: 50%; box-shadow: 0 0 0 42px color-mix(in srgb, var(--text) 2.5%, transparent), 0 0 0 84px color-mix(in srgb, var(--text) 1.5%, transparent); pointer-events: none; }
.forum-hero-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--text) 14%, var(--line)); border-radius: 19px; background: var(--surface); color: var(--text); box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent); }
.forum-hero-mark svg { width: 30px; height: 30px; }
.forum-hero > div:nth-child(2) { position: relative; z-index: 1; min-width: 0; }
.forum-hero > div:nth-child(2) > span, .forum-composer > header span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.forum-hero h2 { margin: 4px 0 7px; color: var(--text); font-size: clamp(25px, 3vw, 38px); font-weight: 760; letter-spacing: -.035em; line-height: 1.05; }
.forum-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.forum-admin-create, .forum-section-head aside > button:not(.ghost-button), .forum-composer footer > button, .forum-reply-composer footer > button { position: relative; z-index: 1; min-height: 44px; border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--text) 7%, var(--surface)); color: var(--text); padding: 0 17px; font-size: 11px; font-weight: 700; box-shadow: none; }
.forum-section-list, .forum-thread-list { display: grid; gap: 9px; }
.forum-thread-row.is-section-row .forum-thread-status { color: color-mix(in srgb, var(--accent) 76%, var(--text)); }
.forum-thread-row.is-section-row .forum-thread-status.is-section-city { background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft)); }
.forum-thread-row.is-section-row .forum-thread-status.is-section-country { color: color-mix(in srgb, #5f8fd8 78%, var(--text)); }
.forum-section-row-description { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.forum-section-card { width: 100%; min-height: 116px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 24px; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--text); padding: 20px 22px; text-align: left; box-shadow: 0 1px 0 color-mix(in srgb, #000 3%, transparent); }
.forum-section-icon, .forum-thread-status { display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
.forum-section-icon { width: 54px; height: 54px; border-radius: 16px; }
.forum-section-icon svg { width: 25px; height: 25px; }
.forum-section-icon.is-official, .forum-section-heading-icon.is-official { border-color: color-mix(in srgb, #c99a3a 30%, var(--line)); background: color-mix(in srgb, #c99a3a 9%, var(--surface-soft)); color: #c99a3a; }
.forum-section-icon.is-stores, .forum-section-heading-icon.is-stores { border-color: color-mix(in srgb, #5c7bd9 28%, var(--line)); background: color-mix(in srgb, #5c7bd9 8%, var(--surface-soft)); color: #7894e8; }
.forum-section-icon.is-community, .forum-section-heading-icon.is-community { border-color: color-mix(in srgb, #8b6fcb 28%, var(--line)); background: color-mix(in srgb, #8b6fcb 8%, var(--surface-soft)); color: #a28add; }
.forum-section-icon.is-feedback, .forum-section-heading-icon.is-feedback { border-color: color-mix(in srgb, #d46464 28%, var(--line)); background: color-mix(in srgb, #d46464 8%, var(--surface-soft)); color: #dc7777; }
.forum-section-main { min-width: 0; display: grid; gap: 7px; }
.forum-section-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.forum-section-title-row strong { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 16px; letter-spacing: -.015em; }
.forum-section-title-row em, .forum-restriction-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, #b98422 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, #b98422 9%, var(--surface)); color: color-mix(in srgb, #b98422 75%, var(--text)); padding: 4px 8px; font-size: 9px; font-style: normal; font-weight: 700; }
.forum-section-main > small { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.forum-section-activity { color: color-mix(in srgb, var(--muted) 80%, transparent); font-size: 9px; }
.forum-section-metrics { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 8px; min-width: 100px; border-left: 1px solid var(--line); padding-left: 24px; }
.forum-section-metrics b { color: var(--text); font-size: 14px; }
.forum-section-metrics small { color: var(--muted); font-size: 9px; }
.forum-section-arrow, .forum-thread-arrow { color: var(--muted); }
.forum-section-arrow svg, .forum-thread-arrow svg { width: 19px; height: 19px; }
.forum-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 9px; margin: 0 0 18px; overflow: hidden; color: var(--muted); font-size: 10px; }
.forum-breadcrumb button { min-height: 32px; border: 0; background: transparent; color: var(--muted); padding: 0; box-shadow: none; }
.forum-breadcrumb strong { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.forum-section-head, .forum-topic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); padding: 22px; }
.forum-section-head > div { min-width: 0; display: flex; align-items: flex-start; gap: 15px; }
.forum-section-head > div > span { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--surface-soft); color: var(--muted); }
.forum-section-head svg { width: 22px; height: 22px; }
.forum-section-head h2, .forum-topic-head h2 { margin: 0; color: var(--text); font-size: clamp(21px, 2.4vw, 29px); letter-spacing: -.025em; }
.forum-section-head p { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.forum-section-head aside { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.forum-section-settings-trigger { width: 44px; min-width: 44px; display: grid !important; place-items: center; padding: 0 !important; line-height: 0; }
.forum-section-settings-trigger svg { width: 19px; height: 19px; display: block; margin: 0; }
.forum-workspace .ghost-button, .forum-load-more, .forum-delete-action { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--muted); padding: 0 14px; box-shadow: none; }
.forum-restriction-chip { min-height: 40px; }
.forum-restriction-chip svg { width: 14px; height: 14px; }
.forum-composer { display: grid; gap: 16px; margin: 0 0 16px; border: 1px solid color-mix(in srgb, var(--text) 18%, var(--line)); border-radius: 20px; background: linear-gradient(150deg, var(--surface-soft), var(--surface)); padding: 20px; box-shadow: 0 14px 34px color-mix(in srgb, #000 7%, transparent); }
.forum-composer > header, .forum-composer > footer, .forum-reply-composer > div, .forum-reply-composer > footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.forum-composer h3, .forum-reply-composer h3 { margin: 3px 0 0; color: var(--text); font-size: 17px; }
.forum-composer label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.forum-composer input, .forum-composer textarea, .forum-reply-composer textarea, .forum-mode-control select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); padding: 12px 13px; outline: none; color-scheme: light dark; }
.forum-composer input { min-height: 44px; }
.forum-composer textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.forum-composer label > small { justify-self: end; color: var(--muted); font-size: 9px; }
.forum-section-form { display: grid; grid-template-columns: minmax(200px, 1fr) 110px; gap: 12px; }
.forum-section-description { grid-column: 1 / -1; grid-row: 2; }
.forum-thread-row { width: 100%; min-height: 94px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 20px; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--text); padding: 15px 18px; text-align: left; }
.forum-thread-status { width: 42px; height: 42px; border-radius: 13px; }
.forum-thread-status svg { width: 19px; height: 19px; }
.forum-thread-status.is-admins_only { border-color: color-mix(in srgb, #b98422 32%, var(--line)); color: #b98422; }
.forum-thread-status.is-locked { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); color: var(--bad); }
.forum-thread-copy { min-width: 0; display: grid; gap: 8px; }
.forum-thread-copy > strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.forum-pinned-badge { display: inline-flex; align-items: center; min-height: 20px; margin-left: 9px; border: 1px solid color-mix(in srgb, #c99a3a 24%, transparent); border-radius: 999px; background: color-mix(in srgb, #b98422 11%, transparent); color: color-mix(in srgb, #d2a34a 88%, var(--text)); padding: 3px 8px; font-size: 10px; font-style: normal; font-weight: 550; line-height: 1; vertical-align: 1px; }
.forum-thread-row.is-pinned { background: color-mix(in srgb, #b98422 4%, var(--surface)); }
.forum-thread-author, .forum-topic-author { min-width: 0; display: flex; align-items: center; gap: 7px; }
.forum-thread-author > span, .forum-topic-author > span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.forum-thread-author b, .forum-topic-author b { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.forum-author-avatar { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; }
.forum-author-badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 19px; border: 1px solid color-mix(in srgb, var(--muted) 24%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--surface-soft) 72%, transparent); color: var(--muted); padding: 3px 8px; font-size: 9px; font-weight: 520; line-height: 1; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.forum-author-badge.is-admin { border-color: color-mix(in srgb, #c79a45 45%, var(--line)); background: color-mix(in srgb, #c79a45 10%, var(--surface)); color: color-mix(in srgb, #c79a45 78%, var(--text)); }
.forum-author-badge.is-chief_admin { border-color: color-mix(in srgb, #e3b341 62%, var(--line)); background: color-mix(in srgb, #e3b341 14%, var(--surface)); color: color-mix(in srgb, #e3b341 82%, var(--text)); }
.forum-author-badge.is-security { border-color: color-mix(in srgb, #d24a4a 45%, var(--line)); background: color-mix(in srgb, #d24a4a 10%, var(--surface)); color: color-mix(in srgb, #d24a4a 78%, var(--text)); }
.forum-author-badge.is-senior_moderator, .forum-author-badge.is-moderator { border-color: color-mix(in srgb, #8b6fcb 42%, var(--line)); background: color-mix(in srgb, #8b6fcb 9%, var(--surface)); color: color-mix(in srgb, #8b6fcb 76%, var(--text)); }
.forum-author-badge.is-store { border-color: color-mix(in srgb, #5c7bd9 38%, var(--line)); background: color-mix(in srgb, #5c7bd9 9%, var(--surface)); color: color-mix(in srgb, #5c7bd9 78%, var(--text)); }
.forum-thread-meta { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 6px; min-width: 118px; text-align: right; }
.forum-thread-meta b { font-size: 13px; }
.forum-thread-meta small { color: var(--muted); font-size: 9px; }
.forum-thread-meta time { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.forum-topic-head > div { min-width: 0; display: grid; gap: 10px; }
.forum-topic-mode { width: fit-content; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); padding: 5px 9px; font-size: 9px; font-weight: 700; }
.forum-topic-mode svg { width: 14px; height: 14px; }
.forum-topic-mode.is-admins_only { color: #b98422; }
.forum-topic-mode.is-locked { color: var(--bad); }
.forum-topic-author time { color: var(--muted); font-size: 9px; }
.forum-mode-control { width: 210px; display: grid; flex: 0 0 auto; gap: 7px; color: var(--muted); font-size: 9px; }
.forum-mode-control select { min-height: 42px; padding: 0 11px; }
.forum-topic-admin { width: 210px; display: grid; gap: 9px; }
.forum-delete-thread { min-height: 38px; border: 1px solid color-mix(in srgb, var(--bad) 38%, var(--line)); border-radius: 11px; background: transparent; color: var(--bad); box-shadow: none; font-size: 10px; }
.forum-post-list { display: grid; gap: 9px; }
.forum-post { display: grid; grid-template-columns: 154px minmax(0, 1fr); min-height: 154px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.forum-post > aside { display: flex; flex-direction: column; align-items: center; gap: 7px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 75%, var(--surface)); padding: 20px 13px; text-align: center; }
.forum-post > aside .forum-author-avatar { width: 54px; height: 54px; border-radius: 16px; }
.forum-post > aside > strong, .forum-post > aside > small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-post > aside > strong { font-size: 11px; }
.forum-post > aside > small { color: var(--muted); font-size: 9px; }
.forum-post-mobile-author { display: none; }
.forum-post-content { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 17px 20px 20px; }
.forum-post-content > header { display: flex; align-items: center; gap: 9px; min-height: 29px; border-bottom: 1px solid var(--line); padding-bottom: 10px; color: var(--muted); font-size: 9px; }
.forum-post-content > header time { flex: 1; }
.forum-delete-action { min-height: 29px; border-color: transparent; background: transparent; color: var(--bad); padding: 0 8px; }
.forum-post-content > p { overflow-wrap: anywhere; margin: 18px 0; color: var(--text); font-size: 12px; line-height: 1.72; white-space: normal; }
.forum-rich-body { overflow-wrap: anywhere; margin: 16px 0; color: var(--text); font-size: 12px; line-height: 1.72; }
.forum-rich-body > :first-child { margin-top: 0; }
.forum-rich-body > :last-child { margin-bottom: 0; }
.forum-post-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 190px)); gap: 9px; margin-top: 12px; }
.forum-post-photos a { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.forum-post-photos img { width: 100%; height: 100%; display: block; object-fit: cover; }
.forum-post.is-deleted { opacity: .76; }
.forum-deleted-copy { display: flex; align-items: center; gap: 8px; color: var(--muted) !important; font-style: italic; }
.forum-deleted-copy svg { width: 17px; height: 17px; }
.forum-delete-confirm { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; }
.forum-delete-confirm > span { flex: 1; color: var(--muted); font-size: 9px; }
.forum-delete-confirm button { min-height: 36px; }
.forum-delete-confirm .danger-button { border: 1px solid var(--bad); border-radius: 11px; background: var(--bad); color: #fff; padding: 0 13px; }
.forum-reply-composer { display: grid; gap: 12px; margin-top: 14px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); padding: 19px; }
.forum-reply-composer > div > span, .forum-reply-composer footer small { color: var(--muted); font-size: 9px; }
.forum-reply-composer textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.forum-rich-editor-field { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.forum-rich-editor-shell { position: relative; min-width: 0; }
.forum-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; border: 1px solid var(--line); border-bottom: 0; border-radius: 13px 13px 0 0; background: var(--surface-soft); padding: 7px; }
.forum-editor-toolbar button { min-width: 34px; min-height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text); padding: 0 8px; box-shadow: none; font-size: 11px; font-weight: 750; }
.forum-editor-toolbar button:hover { background: var(--surface); }
.forum-rich-editor { min-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 13px 13px; background: var(--surface); color: var(--text); padding: 14px; outline: none; font-size: 13px; line-height: 1.6; }
.forum-rich-editor:focus { border-color: var(--line-strong); }
.forum-rich-editor .rt-image { cursor: pointer; transition: opacity 140ms ease, width 180ms var(--ease-out); }
.forum-rich-editor .rt-image:hover { opacity: .94; }
.forum-rich-editor .rt-image.is-selected { outline: 2px solid color-mix(in srgb, var(--text) 72%, transparent); outline-offset: 3px; }
.forum-image-resize-overlay { position: absolute; z-index: 8; border: 1px solid color-mix(in srgb, var(--text) 72%, transparent); border-radius: 14px; pointer-events: none; }
.forum-image-resize-overlay[hidden] { display: none; }
.forum-image-resize-overlay button { position: absolute; width: 16px; min-width: 16px; height: 16px; min-height: 16px; border: 2px solid var(--surface); border-radius: 50%; background: var(--text); padding: 0; box-shadow: 0 2px 8px color-mix(in srgb, #000 30%, transparent); pointer-events: auto; touch-action: none; }
.forum-image-resize-overlay button::after { content: ""; position: absolute; inset: -10px; }
.forum-image-resize-overlay button[data-forum-image-resize="nw"] { left: 0; top: 0; cursor: nwse-resize; transform: translate(-50%, -50%); }
.forum-image-resize-overlay button[data-forum-image-resize="ne"] { right: 0; top: 0; cursor: nesw-resize; transform: translate(50%, -50%); }
.forum-image-resize-overlay button[data-forum-image-resize="e"] { right: 0; top: 50%; cursor: ew-resize; transform: translate(50%, -50%); }
.forum-image-resize-overlay button[data-forum-image-resize="se"] { right: 0; bottom: 0; cursor: nwse-resize; transform: translate(50%, 50%); }
.forum-image-resize-overlay button[data-forum-image-resize="sw"] { left: 0; bottom: 0; cursor: nesw-resize; transform: translate(-50%, 50%); }
.forum-image-resize-overlay button[data-forum-image-resize="w"] { left: 0; top: 50%; cursor: ew-resize; transform: translate(-50%, -50%); }
body.is-resizing-forum-image { cursor: ew-resize; user-select: none; }
body.is-resizing-forum-image .forum-rich-editor .rt-image { transition: none; }
.forum-store-identity { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; color: var(--muted); font-size: 10px !important; }
.forum-store-identity input { width: 16px !important; min-height: 16px !important; margin: 0; }
.forum-reply-photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.forum-reply-photo-row figure, .forum-reply-photo-row > label { position: relative; width: 88px; height: 72px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.forum-reply-photo-row img { width: 100%; height: 100%; object-fit: cover; }
.forum-reply-photo-row figure button { position: absolute; top: 4px; right: 4px; width: 24px; min-height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; padding: 0; }
.forum-reply-photo-row > label { display: grid; place-content: center; justify-items: center; color: var(--muted); cursor: pointer; }
.forum-reply-photo-row > label span { color: var(--text); font-size: 20px; }
.forum-reply-photo-row > label small { font-size: 9px; }
.forum-delete-modal { position: relative; width: min(430px, 100%); padding: 24px; }
.forum-delete-modal > .modal-close { position: absolute; top: 14px; right: 14px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; margin: 0; }
.forum-delete-modal > .modal-eyebrow { display: block; padding-right: 48px; }
.forum-delete-modal h3 { margin: 10px 48px 8px 0; }
.forum-delete-modal p { margin: 0; color: var(--muted); line-height: 1.55; }
.forum-delete-modal .modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.forum-delete-modal .modal-actions button { min-width: 104px; min-height: 42px; margin: 0; }
.forum-post-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.forum-edit-action { min-width: 0; min-height: 0; border: 0; background: transparent; color: var(--muted); padding: 0; font: inherit; font-size: 10px; }
.forum-edited-marker { position: relative; color: var(--muted); font-size: 10px; cursor: help; }
.forum-inline-edit { display: grid; gap: 12px; margin: 14px 0 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.forum-inline-edit > label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.forum-inline-edit input, .forum-inline-edit textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text); padding: 11px 12px; font: inherit; }
.forum-inline-edit textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.forum-inline-edit input:focus, .forum-inline-edit textarea:focus { border-color: var(--line-strong); outline: 0; }
.forum-inline-edit footer { display: flex; justify-content: flex-end; gap: 9px; }
.forum-inline-edit footer button { min-width: 108px; min-height: 40px; }
.forum-thread-restricted { display: flex; align-items: center; gap: 12px; margin-top: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); padding: 16px; }
.forum-thread-restricted > svg { width: 23px; height: 23px; color: var(--muted); }
.forum-thread-restricted > div { display: grid; gap: 3px; }
.forum-thread-restricted strong { font-size: 12px; }
.forum-thread-restricted span { color: var(--muted); font-size: 10px; }
.forum-load-more { display: block; min-width: 150px; margin: 13px auto 0; }
.forum-home-more { padding: 16px 0; text-align: center; }
.forum-home-more[hidden] { display: none; }
.forum-home-more p { color: var(--muted); font-size: 12px; }
.forum-empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px dashed var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface-soft) 54%, transparent); padding: 24px; text-align: center; }
.forum-empty.is-compact { min-height: 190px; }
.forum-empty svg { width: 34px; height: 34px; color: var(--muted); }
.forum-empty h3 { margin: 0; font-size: 15px; }
.forum-empty p { max-width: 470px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.forum-loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.forum-loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: forum-pulse 900ms ease-in-out infinite alternate; }
.forum-loading i:nth-child(2) { animation-delay: 140ms; }
.forum-loading i:nth-child(3) { animation-delay: 280ms; }
@keyframes forum-pulse { from { opacity: .28; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }
.forum-skeleton { display: grid; gap: 16px; }
.forum-skeleton [aria-hidden="true"] { pointer-events: none; }
.forum-skeleton-line, .forum-skeleton-shape { display: block; background: color-mix(in srgb, var(--muted) 14%, var(--surface-soft)); animation: forum-skeleton-pulse 1.35s ease-in-out infinite alternate; }
.forum-skeleton-line { height: 9px; border-radius: 999px; }
.forum-skeleton-line.is-heading { width: min(280px, 64%); height: 22px; }
.forum-skeleton-line.is-title { width: min(230px, 58%); height: 13px; }
.forum-skeleton-line.is-copy { width: min(480px, 82%); }
.forum-skeleton-line.is-meta { width: min(120px, 36%); height: 7px; }
.forum-skeleton-line.is-body { width: 94%; height: 11px; }
.forum-skeleton-section-card, .forum-skeleton-thread-row { display: grid; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.forum-skeleton-section-card { min-height: 116px; grid-template-columns: 54px minmax(0, 1fr) 100px; gap: 18px; border-radius: 19px; padding: 20px 22px; }
.forum-skeleton-section-card > span, .forum-skeleton-thread-row > span, .forum-skeleton-section-head > span, .forum-skeleton-topic-head > span, .forum-skeleton-post > span { min-width: 0; display: grid; gap: 10px; }
.forum-skeleton-shape.is-icon { width: 54px; height: 54px; border-radius: 16px; }
.forum-skeleton-shape.is-metric { width: 82px; height: 38px; justify-self: end; border-radius: 10px; }
.forum-skeleton-breadcrumb { min-height: 32px; display: flex; align-items: center; }
.forum-skeleton-section-head, .forum-skeleton-topic-head { min-height: 110px; display: grid; grid-template-columns: 45px minmax(0, 1fr) 132px; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); padding: 22px; }
.forum-skeleton-shape.is-head-icon { width: 45px; height: 45px; border-radius: 14px; }
.forum-skeleton-shape.is-action { width: 132px; height: 44px; justify-self: end; border-radius: 12px; }
.forum-skeleton-thread-row { min-height: 94px; grid-template-columns: 42px minmax(0, 1fr) 118px; gap: 15px; border-radius: 17px; padding: 15px 18px; }
.forum-skeleton-shape.is-thread-icon { width: 42px; height: 42px; border-radius: 13px; }
.forum-skeleton-shape.is-thread-meta { width: 92px; height: 30px; justify-self: end; border-radius: 9px; }
.forum-skeleton-topic-head { grid-template-columns: minmax(0, 1fr) 210px; }
.forum-skeleton-post { min-height: 154px; display: grid; grid-template-columns: 154px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.forum-skeleton-post > aside { display: grid; place-items: center; align-content: center; gap: 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 75%, var(--surface)); padding: 20px 13px; }
.forum-skeleton-post > span { align-content: start; padding: 27px 20px; }
.forum-skeleton-shape.is-avatar { width: 54px; height: 54px; border-radius: 16px; }
@keyframes forum-skeleton-pulse { from { opacity: .5; } to { opacity: .92; } }
html.has-forum-settings, body.has-forum-settings { overflow: hidden; }
.forum-settings-backdrop { position: fixed; inset: 0; z-index: 460; display: grid; place-items: center; overflow-y: auto; background: color-mix(in srgb, #05070b 76%, transparent); padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); backdrop-filter: blur(6px); animation: forum-settings-fade 160ms cubic-bezier(.23, 1, .32, 1) both; }
.forum-settings-modal { width: min(620px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid color-mix(in srgb, var(--text) 15%, var(--line)); border-radius: 18px; background: var(--surface); color: var(--text); padding: 0; box-shadow: 0 24px 76px rgba(0, 0, 0, .38); animation: forum-settings-enter 190ms cubic-bezier(.23, 1, .32, 1) both; }
.forum-settings-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 22px 24px 19px; }
.forum-settings-modal > header > div { min-width: 0; }
.forum-settings-modal > header small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.forum-settings-modal h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.forum-settings-modal > header p { max-width: 460px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.forum-workspace .forum-settings-modal > header > button { width: 38px; min-width: 38px; min-height: 38px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; font-size: 20px; line-height: 1; }
.forum-settings-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 24px 0; }
.forum-settings-groups fieldset { min-width: 0; display: grid; align-content: start; gap: 0; margin: 0; border: 0; padding: 19px 20px 10px 0; }
.forum-settings-groups fieldset + fieldset { border-left: 1px solid var(--line); padding-right: 0; padding-left: 20px; }
.forum-settings-groups legend { padding: 0; color: var(--text); font-size: 14px; font-weight: 750; }
.forum-settings-groups fieldset > p { min-height: 38px; margin: 7px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.forum-audience-option { position: relative; min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 9px 2px; cursor: pointer; transition: color 140ms ease, opacity 140ms ease; }
.forum-audience-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.forum-audience-option > span { min-width: 0; display: grid; gap: 3px; }
.forum-audience-option b { font-size: 13px; }
.forum-audience-option small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.forum-audience-option i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--muted) 66%, var(--line)); border-radius: 6px; background: var(--surface-soft); }
.forum-audience-option input:checked ~ i { border-color: color-mix(in srgb, var(--text) 55%, var(--line)); background: var(--text); }
.forum-audience-option input:checked ~ i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: translateY(-1px) rotate(-45deg); }
.forum-audience-option:focus-within { outline: 2px solid color-mix(in srgb, var(--text) 42%, transparent); outline-offset: 2px; }
.forum-settings-lock { min-height: 64px; display: flex; align-items: center; gap: 12px; margin: 6px 24px 0; border-top: 1px solid var(--line); background: transparent; padding: 16px 2px 15px; cursor: pointer; }
.forum-settings-lock input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--text); }
.forum-settings-lock > span { display: grid; gap: 3px; }
.forum-settings-lock b { font-size: 13px; }
.forum-settings-lock small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.forum-settings-modal > footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 0; border-top: 1px solid var(--line); padding: 15px 24px 18px; }
.forum-settings-modal > footer button { min-width: 112px; min-height: 44px; border-radius: 12px; }
.forum-settings-modal > footer button:not(.ghost-button) { border: 1px solid color-mix(in srgb, var(--text) 30%, var(--line)); background: var(--text); color: var(--surface); font-weight: 750; }
@keyframes forum-settings-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes forum-settings-enter { from { opacity: 0; transform: scale(.975) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .forum-section-card:hover, .forum-thread-row:hover { border-color: color-mix(in srgb, var(--text) 24%, var(--line)); background: color-mix(in srgb, var(--surface-soft) 40%, var(--surface)); box-shadow: 0 13px 32px color-mix(in srgb, #000 8%, transparent); transform: translateY(-2px); }
  .forum-breadcrumb button:hover, .forum-delete-action:hover { color: var(--text); }
  .forum-workspace .ghost-button:hover, .forum-load-more:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); color: var(--text); }
  .forum-admin-create:hover, .forum-section-head aside > button:not(.ghost-button):hover, .forum-composer footer > button:hover, .forum-reply-composer footer > button:hover { border-color: color-mix(in srgb, var(--text) 36%, var(--line)); background: color-mix(in srgb, var(--text) 12%, var(--surface)); color: var(--text); box-shadow: none; }
  .forum-audience-option:hover { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
}
@media (max-width: 820px) {
  .forum-workspace { min-height: 420px; padding: 6px 0 32px; }
  .forum-hero { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; min-height: 62px; margin: 0; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 8px 2px 13px; }
  .forum-hero::after { display: none; }
  .forum-hero-mark { width: 36px; height: 36px; border-color: var(--line); border-radius: 10px; background: transparent; box-shadow: none; }
  .forum-hero-mark svg { width: 19px; height: 19px; }
  .forum-hero > div:nth-child(2) > span, .forum-hero p { display: none; }
  .forum-hero h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
  .forum-admin-create { grid-column: auto; width: auto; min-height: 40px; border-radius: 10px; background: transparent; padding: 0 12px; white-space: nowrap; }
  .forum-section-list, .forum-thread-list { gap: 0; }
  .forum-section-card { min-height: 86px; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 11px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 13px 2px; box-shadow: none; }
  .forum-section-icon { width: 38px; height: 38px; border: 0; border-radius: 10px; }
  .forum-section-icon svg { width: 18px; height: 18px; }
  .forum-section-title-row strong { font-size: 14px; }
  .forum-section-main > small { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .forum-section-metrics { grid-column: 2; display: flex; min-width: 0; border: 0; padding: 0; }
  .forum-section-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .forum-breadcrumb { margin: 10px 0 8px; }
  .forum-section-head, .forum-topic-head { align-items: stretch; flex-direction: column; gap: 13px; margin-bottom: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 2px 14px; }
  .forum-section-head > div > span { width: 38px; height: 38px; border-radius: 10px; }
  .forum-section-head h2, .forum-topic-head h2 { font-size: 21px; }
  .forum-section-head aside { display: grid; grid-template-columns: 1fr 1fr; }
  .forum-section-head aside > * { width: 100%; justify-content: center; min-height: 44px; }
  .forum-section-form { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; }
  .forum-section-description { grid-column: 1 / -1; grid-row: 2; }
  .forum-composer { gap: 12px; margin: 10px 0 8px; border-color: var(--line); border-radius: 14px; background: var(--surface); padding: 14px; box-shadow: none; }
  .forum-section-composer > header > div > span { display: none; }
  .forum-composer h3 { margin: 0; font-size: 16px; }
  .forum-composer textarea { min-height: 88px; }
  .forum-composer > header { align-items: flex-start; }
  .forum-composer > footer { justify-content: flex-end; }
  .forum-composer > footer > button { width: auto; min-width: 148px; }
  .forum-thread-row { min-height: 82px; grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 2px; }
  .forum-thread-status { width: 36px; height: 36px; border: 0; border-radius: 10px; }
  .forum-thread-meta { grid-column: 2; display: flex; align-items: center; min-width: 0; text-align: left; }
  .forum-thread-meta time { margin-left: auto; }
  .forum-thread-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .forum-mode-control { width: 100%; }
  .forum-topic-admin { width: 100%; }
  .forum-post-list { gap: 0; }
  .forum-post { grid-template-columns: 1fr; min-height: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .forum-post > aside { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; justify-items: start; border-right: 0; border-bottom: 0; background: transparent; padding: 13px 2px 4px; text-align: left; }
  .forum-post > aside .forum-author-avatar { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; }
  .forum-post > aside > strong { align-self: end; }
  .forum-post > aside > .forum-author-badge { grid-column: 3; grid-row: 1 / span 2; }
  .forum-post > aside > small { align-self: start; }
  .forum-post-content { padding: 4px 2px 15px 50px; }
  .forum-post-content > header { min-height: 24px; border: 0; padding: 0; }
  .forum-post-content > p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
  .forum-rich-body { margin: 8px 0 0; }
  .forum-post-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-rich-editor { min-height: 140px; }
  .forum-editor-toolbar { overflow-x: auto; flex-wrap: nowrap; }
  .forum-reply-composer { border-radius: 14px; padding: 14px; }
  .forum-reply-composer > footer { align-items: stretch; flex-direction: column; }
  .forum-reply-composer > footer > div { display: grid; gap: 9px; }
  .forum-reply-composer > footer > button { width: 100%; }
  .forum-delete-confirm { align-items: stretch; }
  .forum-delete-confirm > span { flex-basis: 100%; }
  .forum-delete-confirm button { flex: 1; }
  .forum-empty { min-height: 132px; gap: 7px; border: 0; border-radius: 0; background: transparent; padding: 28px 16px; }
  .forum-empty svg { width: 25px; height: 25px; }
  .forum-empty h3 { font-size: 13px; font-weight: 650; }
  .forum-skeleton { gap: 8px; }
  .forum-skeleton-section-card { min-height: 86px; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 13px 2px; }
  .forum-skeleton-shape.is-icon { width: 38px; height: 38px; border-radius: 10px; }
  .forum-skeleton-shape.is-metric { display: none; }
  .forum-skeleton-breadcrumb { margin: 10px 0 8px; }
  .forum-skeleton-section-head, .forum-skeleton-topic-head { min-height: 104px; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 2px 14px; }
  .forum-skeleton-topic-head { grid-template-columns: 1fr; }
  .forum-skeleton-shape.is-head-icon { width: 38px; height: 38px; border-radius: 10px; }
  .forum-skeleton-shape.is-action { grid-column: 1 / -1; width: 100%; }
  .forum-skeleton-thread-row { min-height: 82px; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 2px; }
  .forum-skeleton-shape.is-thread-icon { width: 36px; height: 36px; border-radius: 10px; }
  .forum-skeleton-shape.is-thread-meta { display: none; }
  .forum-skeleton-post { min-height: 150px; grid-template-columns: 50px minmax(0, 1fr); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .forum-skeleton-post > aside { border: 0; background: transparent; padding: 13px 2px; }
  .forum-skeleton-post > aside .forum-skeleton-line { display: none; }
  .forum-skeleton-post > span { padding: 17px 2px 15px; }
  .forum-skeleton-shape.is-avatar { width: 38px; height: 38px; border-radius: 10px; }
  .forum-settings-backdrop { place-items: end center; padding: max(16px, env(safe-area-inset-top)) 0 0; }
  .forum-settings-modal { width: 100%; max-height: min(88dvh, 760px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 18px 18px 0 0; }
  .forum-settings-modal > header { padding: 19px 18px 16px; }
  .forum-settings-groups { grid-template-columns: 1fr; }
  .forum-settings-groups { padding: 2px 18px 0; }
  .forum-settings-groups fieldset { padding: 16px 0 5px; }
  .forum-settings-groups fieldset + fieldset { border-top: 1px solid var(--line); border-left: 0; padding: 17px 0 5px; }
  .forum-settings-groups fieldset > p { min-height: 0; }
  .forum-settings-lock { margin-right: 18px; margin-left: 18px; }
  .forum-settings-modal > footer { position: sticky; bottom: 0; background: var(--surface); padding: 12px 18px max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .mobile-dock-label { font-size: 8px; }
  .mobile-dock-track:has(.mobile-dock-my-store:not(.hidden)) .mobile-dock-label, .mobile-dock-track:has(.mobile-dock-admin:not(.hidden)) .mobile-dock-label { font-size: 7px; }
  .forum-thread-author .forum-author-badge { display: none; }
  .forum-section-head aside { grid-template-columns: 1fr; }
}

/* Dense forum layout: navigation rail + continuous discussion stream. */
.forum-workspace { width: min(1240px, 100%); padding-top: 24px; }
.forum-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: 14px; }
.forum-main-panel { min-width: 0; }
.forum-sidebar,
.forum-thread-rail { min-width: 0; }
.forum-sidebar { position: sticky; top: 92px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px; }
.forum-sidebar-create { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--text) 24%, var(--line)); border-radius: 10px; background: var(--text); color: var(--surface); padding: 0 12px; font-size: 12px; font-weight: 750; }
.forum-sidebar-search,
.forum-thread-controls > label { min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); padding: 0 10px; }
.forum-sidebar-search svg,
.forum-thread-controls svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.forum-sidebar-search input,
.forum-thread-controls input { min-width: 0; width: 100%; min-height: 38px; border: 0; background: transparent; color: var(--text); padding: 0; outline: 0; font-size: 11px; }
.forum-sidebar-nav,
.forum-sidebar-sections { display: grid; gap: 3px; }
.forum-sidebar-sections { border-top: 1px solid var(--line); padding-top: 11px; }
.forum-sidebar-sections > small { margin: 0 8px 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.forum-sidebar-nav button,
.forum-sidebar-sections button,
.forum-thread-back { width: 100%; min-width: 0; min-height: 38px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 0 9px; box-shadow: none; text-align: left; }
.forum-sidebar-nav button svg,
.forum-sidebar-sections button svg,
.forum-thread-back svg { width: 17px; height: 17px; }
.forum-sidebar-nav button span,
.forum-sidebar-sections button span,
.forum-thread-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.forum-sidebar-nav button.active,
.forum-sidebar-sections button.active { background: var(--surface-soft); color: var(--text); }
.forum-thread-rail { display: grid; gap: 10px; }
.forum-thread-back { border: 1px solid var(--line); background: var(--surface); }
.forum-breadcrumb { margin-bottom: 12px; }
.forum-section-head,
.forum-topic-head { margin: 0; border-radius: 14px 14px 0 0; padding: 20px 21px; }
.forum-section-head > div > span { width: 40px; height: 40px; border-radius: 11px; }
.forum-section-head > div > div > small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.forum-section-head h2,
.forum-topic-head h2 { font-size: clamp(21px, 2.1vw, 27px); }
.forum-section-head p { margin-top: 5px; }
.forum-thread-controls { min-height: 56px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-top: 0; background: var(--surface); padding: 9px 12px; }
.forum-thread-controls > label { flex: 1; }
.forum-thread-controls > div { display: flex; align-items: center; gap: 10px; }
.forum-thread-controls span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.forum-thread-controls select { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); padding: 0 28px 0 10px; font-size: 10px; }
.forum-thread-list { gap: 0; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface); }
.forum-thread-row { min-height: 78px; grid-template-columns: 36px minmax(0, 1fr) 150px 18px; gap: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 15px; box-shadow: none; transform: none; }
.forum-thread-row:last-child { border-bottom: 0; }
.forum-thread-status { width: 36px; height: 36px; border: 0; border-radius: 10px; }
.forum-thread-copy { gap: 6px; }
.forum-thread-copy > strong { font-size: 13px; }
.forum-thread-author .forum-author-avatar { width: 22px; height: 22px; border-radius: 7px; }
.forum-thread-author > span { flex-wrap: wrap; }
.forum-thread-author time { color: var(--muted); font-size: 8px; }
.forum-thread-meta { min-width: 0; padding-right: 10px; }
.forum-search-empty { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
.forum-search-empty[hidden] { display: none; }
.forum-thread-composer { gap: 20px; margin: 0; border-color: var(--line); border-radius: 14px; background: var(--surface); padding: 0 0 18px; box-shadow: none; }
.forum-thread-composer > header { align-items: flex-start; border-bottom: 1px solid var(--line); padding: 19px 20px 17px; }
.forum-thread-composer > header h3 { margin-top: 5px; font-size: 20px; }
.forum-thread-composer > header p { max-width: 620px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.forum-thread-composer > header .ghost-button { display: inline-flex; align-items: center; gap: 6px; }
.forum-thread-composer > header .ghost-button svg { width: 16px; height: 16px; }
.forum-topic-title-field,
.forum-thread-composer > .forum-rich-editor-field { margin: 0 20px; }
.forum-topic-title-field { display: grid; gap: 5px; }
.forum-topic-title-field label,
.forum-editor-copy strong { color: var(--text); font-size: 12px; font-weight: 750; }
.forum-topic-title-field > span,
.forum-editor-copy span { color: var(--muted); font-size: 10px; }
.forum-topic-title-field input { margin-top: 5px; border-radius: 10px; background: var(--surface-soft); }
.forum-editor-copy { display: grid; gap: 4px; }
.forum-editor-toolbar { gap: 2px; border-radius: 10px 10px 0 0; padding: 6px; }
.forum-editor-toolbar button { min-width: 32px; min-height: 30px; border-radius: 7px; }
.forum-rich-editor { min-height: 300px; border-radius: 0 0 10px 10px; background: var(--surface-soft); }
.forum-thread-composer > footer { align-items: flex-end; border-top: 1px solid var(--line); padding: 16px 20px 0; }
.forum-thread-composer > footer > div { display: grid; gap: 8px; }
.forum-thread-composer > footer > div > small { color: var(--muted); font-size: 9px; }
.forum-topic-stream { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.forum-topic-stream .forum-topic-head { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface)); }
.forum-topic-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.forum-topic-head .forum-topic-author { margin-top: 2px; }
.forum-topic-admin { width: 190px; }
.forum-mode-control { width: 190px; }
.forum-topic-stream .forum-post-list { gap: 0; }
.forum-topic-stream .forum-post { grid-template-columns: 118px minmax(0, 1fr); min-height: 138px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.forum-topic-stream .forum-post > aside { gap: 6px; border-right: 1px solid var(--line); background: transparent; padding: 18px 10px; }
.forum-topic-stream .forum-post > aside .forum-author-avatar { width: 46px; height: 46px; border-radius: 13px; }
.forum-topic-stream .forum-post-content { padding: 14px 18px 18px; }
.forum-topic-stream .forum-post-content > header { min-height: 24px; padding-bottom: 8px; }
.forum-topic-stream .forum-post-content > p,
.forum-topic-stream .forum-rich-body { margin: 13px 0 4px; font-size: 12px; line-height: 1.68; }
.forum-topic-stream .forum-post-photos a { border: 0; border-radius: 9px; }
.forum-topic-stream .forum-reply-composer,
.forum-topic-stream .forum-thread-restricted { margin: 0; border: 0; border-radius: 0; background: var(--surface); padding: 17px 18px; }
.forum-topic-stream .forum-reply-composer { border-top: 1px solid var(--line); }
.forum-topic-stream .forum-reply-composer textarea { min-height: 94px; border-radius: 10px; background: var(--surface-soft); }
@media (hover: hover) and (pointer: fine) {
  .forum-thread-row:hover { border-color: var(--line); background: var(--surface-soft); box-shadow: none; transform: none; }
  .forum-sidebar-nav button:hover,
  .forum-sidebar-sections button:hover,
  .forum-thread-back:hover { background: var(--surface-soft); color: var(--text); }
  .forum-sidebar-create:hover { background: color-mix(in srgb, var(--text) 88%, var(--surface)); color: var(--surface); }
}
@media (max-width: 820px) {
  .forum-workspace { padding-top: 4px; }
  .forum-layout { grid-template-columns: 1fr; gap: 9px; }
  .forum-sidebar { position: static; display: flex; align-items: center; gap: 7px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 7px 0 10px; scrollbar-width: none; }
  .forum-sidebar::-webkit-scrollbar { display: none; }
  .forum-sidebar-create { width: auto; min-width: max-content; min-height: 38px; }
  .forum-sidebar-search { min-width: 176px; }
  .forum-sidebar-nav,
  .forum-sidebar-sections { display: flex; min-width: max-content; border: 0; padding: 0; }
  .forum-sidebar-sections > small { display: none; }
  .forum-sidebar-nav button,
  .forum-sidebar-sections button { width: auto; min-width: max-content; min-height: 38px; }
  .forum-thread-rail { display: contents; }
  .forum-thread-back { order: -1; width: fit-content; min-height: 36px; border: 0; padding: 0 8px; }
  .forum-breadcrumb { display: none; }
  .forum-section-head,
  .forum-topic-head { flex-direction: column; gap: 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 2px; }
  .forum-section-head { position: relative; padding-right: 48px; }
  .forum-section-head aside { display: contents; }
  .forum-section-head aside > button:not(.forum-section-settings-trigger),
  .forum-section-head aside > .forum-restriction-chip { display: none; }
  .forum-section-head .forum-section-settings-trigger { position: absolute; top: 13px; right: 2px; width: 40px !important; min-width: 40px; min-height: 40px; }
  .forum-thread-controls { min-height: 0; flex-direction: column; align-items: stretch; border-right: 0; border-left: 0; padding: 10px 2px; }
  .forum-thread-controls > div { justify-content: space-between; }
  .forum-thread-list { border-right: 0; border-left: 0; border-radius: 0; }
  .forum-thread-row { min-height: 82px; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 9px; padding: 11px 2px; }
  .forum-thread-status { width: 34px; height: 34px; }
  .forum-thread-meta { grid-column: 2; display: flex; gap: 5px; padding: 0; text-align: left; }
  .forum-thread-meta time { margin-left: auto; }
  .forum-thread-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .forum-thread-author time { display: none; }
  .forum-thread-composer { border-right: 0; border-left: 0; border-radius: 0; }
  .forum-thread-composer > header { padding: 16px 2px; }
  .forum-topic-title-field,
  .forum-thread-composer > .forum-rich-editor-field { margin: 0 2px; }
  .forum-rich-editor { min-height: 220px; }
  .forum-thread-composer > footer { align-items: stretch; flex-direction: column; padding: 14px 2px 0; }
  .forum-thread-composer > footer > button { width: 100%; }
  .forum-topic-stream { border-right: 0; border-left: 0; border-radius: 0; }
  .forum-topic-stream .forum-topic-head { padding: 14px 2px; }
  .forum-topic-admin,
  .forum-mode-control { width: 100%; }
  .forum-topic-stream .forum-post { grid-template-columns: 42px minmax(0, 1fr); }
  .forum-topic-stream .forum-post > aside { display: block; border: 0; padding: 13px 4px 0 0; }
  .forum-topic-stream .forum-post > aside .forum-author-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .forum-topic-stream .forum-post > aside > :not(.forum-author-avatar) { display: none; }
  .forum-topic-stream .forum-post-content { padding: 12px 0 16px; }
  .forum-topic-stream .forum-post-content > header { flex-wrap: wrap; }
  .forum-topic-stream .forum-post-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-topic-stream .forum-reply-composer,
  .forum-topic-stream .forum-thread-restricted { padding-right: 2px; padding-left: 2px; }
  .order-photo-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 54px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .forum-workspace button { transition: none; }
  .forum-loading i { animation: none; opacity: .7; }
  .forum-skeleton-line, .forum-skeleton-shape { animation: none; opacity: .72; }
  .forum-settings-backdrop, .forum-settings-modal { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .forum-hero, .forum-composer { background: var(--surface); }
  .forum-settings-backdrop { background: rgba(5, 7, 11, .92); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .forum-section-card, .forum-thread-row, .forum-post, .forum-section-head, .forum-topic-head { border-color: var(--text); }
  .forum-author-badge { border-color: currentColor; }
}

/* Final photo geometry: fixed-size thumbnails and a viewport-safe lightbox. */
.order-photos > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.order-photos button {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  flex: 0 0 88px;
  aspect-ratio: auto;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: inset(0 round 12px);
}

/* Address photos open above their details modal and the viewer hugs the image,
   so its close control stays attached to the visible photo at every ratio. */
.address-review-photo-viewer-backdrop {
  z-index: 260;
  padding: 16px;
}
.order-photo-viewer.address-review-photo-viewer {
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
}
.address-review-photo-viewer > .plain-close {
  top: 8px;
  right: 8px;
  z-index: 3;
}
.address-review-photo-viewer > .order-photo-step {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  --press-transform: translateY(-50%);
}
.address-review-photo-viewer > .order-photo-step.is-prev { left: 3px; }
.address-review-photo-viewer > .order-photo-step.is-next { right: 3px; }
.address-review-photo-viewer > .order-photo-step::before,
.address-review-photo-viewer > .order-photo-step svg { grid-area: 1 / 1; }
.address-review-photo-viewer > .order-photo-step::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(15 17 22 / .88);
}
.address-review-photo-viewer > .order-photo-step svg {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.order-photo-viewer.address-review-photo-viewer img {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
}
.order-photos button img,
.order-photos button .progressive-image {
  display: block;
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  object-fit: cover;
  box-shadow: none;
  clip-path: inset(0 round 12px);
}
.order-photo-backdrop { padding: 16px; }
.order-photo-viewer {
  width: min(1120px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  padding: 48px 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.order-photo-viewer > .plain-close { top: 0; right: 0; }
.order-photo-viewer img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: min(800px, calc(100dvh - 96px));
  border: 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  clip-path: inset(0 round 12px);
}

/* Forum controls: one clear primary action and quiet contextual tools. */
.forum-workspace { width: min(1180px, 100%); }
.forum-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
.forum-sidebar { gap: 10px; padding: 10px; }
.forum-sidebar-create {
  min-height: 40px;
  justify-content: flex-start;
  border-color: color-mix(in srgb, var(--text) 16%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
  padding: 0 11px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent);
  font-size: 11px;
  font-weight: 680;
}
.forum-sidebar-create svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
}
.forum-section-head { align-items: center; padding: 17px 18px; }
.forum-section-head > div > span { width: 36px; height: 36px; border-radius: 9px; }
.forum-section-head aside { flex: 0 0 auto; }
.forum-section-settings-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 9px !important;
  background: transparent !important;
}
.forum-section-settings-trigger svg { width: 17px; height: 17px; }
.forum-thread-composer { gap: 18px; }
.forum-thread-composer > header .ghost-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 0 8px;
  font-size: 11px;
}
.forum-thread-composer > footer > button,
.forum-reply-composer > footer > button {
  min-width: 142px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: var(--text);
  color: var(--surface);
  padding: 0 15px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 720;
}
.forum-reply-composer > footer > button svg { width: 15px; height: 15px; }
.forum-editor-toolbar {
  flex-wrap: nowrap;
  overflow-x: auto;
  border-radius: 9px 9px 0 0;
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface));
  padding: 5px;
  scrollbar-width: none;
}
.forum-editor-toolbar::-webkit-scrollbar { display: none; }
.forum-editor-toolbar button {
  width: 32px;
  min-width: 32px;
  height: 30px;
  min-height: 30px;
  border-radius: 6px;
  padding: 0;
  font-size: 11px;
}
.forum-topic-stream { border-radius: 13px; }
.forum-topic-stream .forum-topic-head {
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--surface-soft) 32%, var(--surface));
}
.forum-topic-head h2 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; }
.forum-topic-admin { width: 220px; gap: 8px; }
.forum-mode-control { width: 220px; gap: 5px; }
.forum-mode-control select { min-height: 36px; border-radius: 9px; background: var(--surface); font-size: 10px; }
.forum-topic-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.forum-topic-actions button,
.forum-post-actions button {
  min-width: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 620;
  white-space: nowrap;
}
.forum-topic-actions button svg,
.forum-post-actions button svg { width: 14px; height: 14px; }
.forum-topic-actions .forum-delete-thread,
.forum-post-actions .forum-delete-action { color: color-mix(in srgb, var(--bad) 82%, var(--text)); }
.forum-topic-stream .forum-post { grid-template-columns: 108px minmax(0, 1fr); min-height: 126px; }
.forum-topic-stream .forum-post > aside { padding: 16px 9px; }
.forum-topic-stream .forum-post > aside > .forum-author-badge { width: auto; max-width: calc(100% - 4px); justify-content: center; overflow: hidden; padding-inline: 6px; font-size: 8px; letter-spacing: .01em; text-overflow: ellipsis; }
.forum-topic-stream .forum-post-content { padding: 13px 17px 17px; }
.forum-topic-stream .forum-post-content > header { padding-bottom: 7px; }
.forum-post-actions { gap: 1px; }
.forum-reply-composer { gap: 10px; padding: 16px 18px 18px !important; }
.forum-reply-composer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.forum-reply-composer > header > div { display: grid; gap: 3px; }
.forum-reply-composer > header h3 { margin: 0; font-size: 15px; }
.forum-reply-composer > header p { margin: 0; color: var(--muted); font-size: 9px; }
.forum-reply-composer > header > span { color: var(--muted); font-size: 9px; }
.forum-topic-stream .forum-reply-composer textarea {
  min-height: 108px;
  border-radius: 9px;
  padding: 12px 13px;
  font-size: 12px;
}
.forum-reply-photo-row { align-items: center; min-height: 36px; }
.forum-reply-photo-row figure { width: 64px; height: 52px; border-radius: 8px; }
.forum-reply-photo-row > label {
  width: auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 10px;
}
.forum-reply-photo-row > label svg { width: 15px; height: 15px; }
.forum-reply-photo-row > label span { color: inherit; font-size: 10px; font-weight: 620; }
.forum-reply-composer > footer { align-items: flex-end; }
.forum-reply-composer > footer > div { gap: 6px; }

/* Forum polish: compact typography, stable navigation and clear feedback. */
.route-skeleton-forum-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
.route-skeleton-forum-layout > aside,
.route-skeleton-forum-layout > main { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.route-skeleton-forum-layout > aside { display: grid; align-content: start; gap: 10px; padding: 10px; }
.route-skeleton-forum-layout > aside > i { width: 72%; height: 32px; }
.route-skeleton-forum-layout > aside > .route-skeleton-forum-action { width: 100%; height: 40px; }
.route-skeleton-forum-layout > main > header { min-height: 92px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 17px 18px; }
.route-skeleton-forum-layout > main > header > i { width: 40px; height: 40px; }
.route-skeleton-forum-layout > main > header > div { display: grid; gap: 9px; }
.route-skeleton-forum-layout > main > header > div i:first-child { width: 34%; height: 16px; }
.route-skeleton-forum-layout > main > header > div i:last-child { width: 58%; height: 9px; }
.route-skeleton-forum-layout > main > header > span { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-soft); }
.route-skeleton-forum-search { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 12px; }
.route-skeleton-forum-search i { height: 38px; }
.route-skeleton-forum-row { min-height: 78px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 110px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 15px; }
.route-skeleton-forum-row > i { width: 36px; height: 36px; }
.route-skeleton-forum-row > div,
.route-skeleton-forum-row > span { display: grid; gap: 8px; }
.route-skeleton-forum-row > div i:first-child { width: 52%; height: 12px; }
.route-skeleton-forum-row > div i:nth-child(2) { width: 34%; height: 9px; }
.route-skeleton-forum-row > div i:last-child { width: 68%; height: 8px; }
.route-skeleton-forum-row > span i { width: 100%; height: 9px; }

.forum-workspace h2,
.forum-workspace h3,
.forum-section-title-row strong,
.forum-thread-copy > strong { font-weight: 620; }
.forum-workspace button,
.forum-workspace strong,
.forum-workspace b { font-weight: 600; }
.forum-sidebar-create { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); background: var(--text); color: var(--surface); box-shadow: none; font-weight: 560; }
.forum-sidebar-create svg { background: transparent; color: inherit; padding: 2px; }
.forum-thread-composer > footer > button,
.forum-reply-composer > footer > button,
.forum-inline-edit footer > button,
.forum-settings-modal > footer > button { font-weight: 580; letter-spacing: 0; }
.forum-thread-controls > label { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.forum-thread-controls > label:focus-within { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.forum-thread-controls > label input { border: 0 !important; background: transparent; box-shadow: none !important; outline: 0 !important; }
.forum-thread-controls > label input:focus-visible { outline: 0 !important; }
.forum-thread-row { grid-template-columns: 36px minmax(0, 1fr) auto 112px 18px; }
.forum-thread-engagement { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.forum-thread-engagement > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.forum-thread-engagement svg { width: 14px; height: 14px; }
.forum-thread-rail { position: sticky; top: 94px; align-self: start; }
.forum-layout.is-thread .forum-sidebar { position: static; top: auto; }
.forum-topic-labels { gap: 8px; }
.forum-topic-stat,
.forum-topic-like,
.forum-topic-follow { min-height: 28px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: 0 9px; box-shadow: none; font-size: 9px; }
.forum-topic-stat svg,
.forum-topic-like svg,
.forum-topic-follow svg { width: 14px; height: 14px; }
.forum-topic-like.is-liked { border-color: color-mix(in srgb, #d06b78 42%, var(--line)); background: color-mix(in srgb, #d06b78 9%, transparent); color: #d06b78; }
.forum-topic-follow { font-weight: 560; }
.forum-topic-follow.is-following { border-color: color-mix(in srgb, #6d8cff 42%, var(--line)); background: color-mix(in srgb, #6d8cff 10%, transparent); color: color-mix(in srgb, #6d8cff 82%, var(--text)); }
.forum-topic-follow:disabled { cursor: wait; opacity: .68; }
.forum-topic-date { color: var(--muted); font-size: 9px; }
.forum-post-reply-reference,
.forum-reply-target { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--muted); padding: 8px 10px; box-shadow: none; font-size: 10px; text-align: left; }
.forum-post-reply-reference { width: fit-content; margin-top: 10px; }
.forum-post-reply-reference svg,
.forum-reply-target > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.forum-reply-target > span { flex: 1; }
.forum-reply-target > button { width: 26px; min-width: 26px; height: 26px; min-height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 0; line-height: 1; }
.forum-button-spinner { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; border-radius: 50%; animation: forum-button-spin 700ms linear infinite; }
@keyframes forum-button-spin { to { transform: rotate(360deg); } }
.forum-reply-composer > footer > button:disabled,
.forum-thread-composer > footer > button:disabled { opacity: .64; cursor: wait; }
.forum-editor-toolbar { align-items: center; gap: 3px; }
.forum-editor-toolbar select { width: auto; min-width: 104px; height: 30px; border: 0; border-radius: 6px; background: var(--surface); color: var(--text); padding: 0 24px 0 8px; font-size: 10px; }
.forum-editor-toolbar .forum-editor-size-control { width: 68px; min-height: 30px; height: 30px; border: 0; border-radius: 6px; background: var(--surface); padding: 0 7px; }
.forum-editor-toolbar .forum-editor-size-control input { width: 39px !important; min-height: 28px; font-size: 10px; }
.forum-editor-toolbar .forum-editor-size-control span { font-size: 9px; }
.forum-editor-color { position: relative; width: 30px; height: 30px; display: grid !important; place-items: center; overflow: hidden; border-radius: 6px; background: transparent; cursor: pointer; }
.forum-editor-color input { position: absolute; inset: -8px; width: 46px !important; height: 46px !important; min-height: 0 !important; padding: 0; border: 0; cursor: pointer; }
.forum-editor-color span { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; pointer-events: none; }
.forum-editor-divider { width: 1px; height: 20px; flex: 0 0 auto; background: var(--line); }
.forum-editor-tool svg { width: 15px; height: 15px; }
.forum-settings-details { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; }
.forum-settings-details label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.forum-settings-details label.is-wide { grid-column: 1 / -1; }
.forum-settings-details input,
.forum-settings-details textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); padding: 10px 11px; outline: 0; }
.forum-settings-details textarea { min-height: 74px; resize: vertical; }
.forum-settings-details input:focus,
.forum-settings-details textarea:focus { border-color: var(--line-strong); }
.forum-settings-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.forum-settings-danger > div { display: grid; gap: 3px; }
.forum-settings-danger small { color: var(--muted); font-size: 9px; }
.forum-settings-danger .danger-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 9px; padding: 0 12px; }
.forum-settings-danger svg { width: 15px; height: 15px; }
.forum-modal-close { font-size: 0 !important; display: grid !important; place-items: center !important; padding: 0 !important; line-height: 1 !important; }
.forum-modal-close::before { content: "×"; display: block; color: currentColor; font-size: 19px; font-weight: 400; line-height: 1; transform: translateY(-1px); }
.forum-modal-close:focus-visible { outline: 0 !important; border-color: var(--line-strong) !important; box-shadow: none !important; }

@media (hover: hover) and (pointer: fine) {
  .forum-sidebar-create:hover { background: color-mix(in srgb, var(--text) 88%, var(--surface)); color: var(--surface); }
  .forum-topic-actions button:hover,
  .forum-post-actions button:hover,
  .forum-thread-composer > header .ghost-button:hover { background: var(--surface-soft); color: var(--text); }
  .forum-topic-actions .forum-delete-thread:hover,
  .forum-post-actions .forum-delete-action:hover { background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); }
}

@media (max-width: 820px) {
  .route-skeleton-forum-layout { grid-template-columns: 1fr; }
  .route-skeleton-forum-layout > aside { display: none; }
  .route-skeleton-forum-search { grid-template-columns: 1fr; }
  .route-skeleton-forum-search i:last-child { display: none; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-thread-rail { position: static; top: auto; display: contents; }
  .forum-topic-admin,
  .forum-mode-control { width: 100%; }
  .forum-topic-actions { justify-content: flex-start; }
  .forum-topic-stream .forum-post { grid-template-columns: 42px minmax(0, 1fr); }
  .forum-thread-row { grid-template-columns: 34px minmax(0, 1fr) 16px; }
  .forum-thread-engagement { grid-column: 2; }
  .forum-thread-meta { grid-column: 2; }
  .forum-thread-arrow { grid-column: 3; grid-row: 1 / span 3; }
  .forum-settings-details { grid-template-columns: 1fr; }
  .forum-settings-details label.is-wide { grid-column: auto; }
  .forum-settings-danger { align-items: stretch; flex-direction: column; }
  .forum-settings-danger .danger-button { justify-content: center; }
  .forum-reply-composer { padding-right: 2px !important; padding-left: 2px !important; }
  .forum-reply-composer > footer { align-items: stretch; }
  .forum-reply-composer > footer > button { width: 100%; }
  .order-photo-backdrop { padding: 8px; }
  .order-photo-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 46px 0 0; }
  .order-photo-viewer img { max-height: calc(100dvh - 70px); border-radius: 10px; clip-path: inset(0 round 10px); }
}

/* Exact order-photo geometry: no grid cell, pseudo-element or loading background may outgrow the thumbnail. */
.order-photos > div {
  grid-template-columns: repeat(5, 88px) !important;
  justify-content: start;
  align-items: start;
}
.order-photos .order-photo-thumbnail {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  display: block !important;
  justify-self: start;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  clip-path: inset(0 round 12px) !important;
}
.order-photos .order-photo-state {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  aspect-ratio: 1 !important;
  justify-self: start;
  overflow: hidden;
  border-radius: 12px;
}
.order-photos .order-photo-thumbnail::before,
.order-photos .order-photo-thumbnail::after { content: none !important; display: none !important; }
.order-photos .order-photo-thumbnail > img,
.order-photos .order-photo-thumbnail > picture,
.order-photos .order-photo-thumbnail > .progressive-image,
.order-photos .order-photo-thumbnail > .progressive-image-frame,
.order-photos .order-photo-thumbnail .order-photo-thumbnail-image {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  object-fit: cover !important;
  clip-path: inset(0 round 12px) !important;
}
.order-coupon-total { display: grid; grid-template-columns: auto auto; justify-items: end; align-items: baseline; column-gap: 9px; row-gap: 2px; }
.order-coupon-total > span { grid-column: 1 / -1; color: #258b68; font-size: 11px; font-weight: 750; }
.order-coupon-total > del { color: var(--muted); font-size: 12px; }
.order-coupon-total > strong { font-size: 18px; }
.order-coupon-total > small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

/* Forum settings: one calm modal, aligned fields and a restrained action bar. */
.forum-settings-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  overflow-x: hidden;
}
.forum-settings-modal > header { align-items: center; padding: 20px 22px 18px; }
.forum-settings-modal h3 { font-size: 20px; font-weight: 620; }
.forum-settings-modal > header p { margin-top: 5px; font-size: 11px; }
.forum-settings-details {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}
.forum-settings-details input,
.forum-settings-details textarea { box-sizing: border-box; min-height: 40px; font-size: 12px; }
.forum-settings-details textarea { min-height: 68px; }
.forum-settings-groups { padding: 0 22px; }
.forum-settings-groups fieldset { padding-top: 17px; padding-bottom: 7px; }
.forum-settings-groups legend { font-size: 13px; font-weight: 620; }
.forum-settings-lock { margin: 2px 22px 0; padding: 14px 0; }
.forum-settings-danger { margin: 0 22px; padding: 14px 0; }
.forum-settings-danger > div b { font-size: 12px; font-weight: 580; }
.forum-settings-danger .danger-button { font-size: 10px; font-weight: 540; }
.forum-settings-modal > footer { padding: 14px 22px 17px; }
.forum-settings-modal > footer button { min-width: 104px; min-height: 40px; font-size: 12px; font-weight: 500 !important; }

/* Message actions live where the reading flow ends; likes stay separate from moderation. */
.forum-post-footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.forum-post-actions { margin-left: auto; }
.forum-post-actions button { font-weight: 500; }
.forum-post-like {
  min-width: 34px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 7px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 560;
}
.forum-post-like svg { width: 15px; height: 15px; }
.forum-post-like.is-liked { border-color: color-mix(in srgb, #d06b78 35%, var(--line)); background: color-mix(in srgb, #d06b78 8%, transparent); color: #d06b78; }
.forum-topic-like { min-width: 30px; justify-content: center; padding: 0 8px; font-weight: 560; }
@media (hover: hover) and (pointer: fine) {
  .forum-post-like:hover,
  .forum-topic-like:hover { border-color: color-mix(in srgb, #d06b78 30%, var(--line)); color: #d06b78; }
}
@media (max-width: 820px) {
  .order-photos > div { grid-template-columns: repeat(3, 88px) !important; }
  .forum-settings-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .forum-settings-details { grid-template-columns: minmax(0, 1fr) 88px; padding: 16px; }
  .forum-settings-details label.is-wide { grid-column: 1 / -1; }
  .forum-settings-groups { grid-template-columns: 1fr; padding: 0 16px; }
  .forum-settings-groups fieldset + fieldset { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .forum-settings-lock,
  .forum-settings-danger { margin-right: 16px; margin-left: 16px; }
  .forum-settings-modal > footer { padding-right: 16px; padding-left: 16px; }
  .forum-post-footer { align-items: flex-start; flex-wrap: wrap; }
  .forum-post-actions { justify-content: flex-end; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .forum-button-spinner { animation-duration: 1.4s; }
}

/* Forum reading flow: compact metadata, card-separated replies and page controls. */
.forum-thread-meta { min-width: 108px; display: grid; justify-items: end; gap: 3px; text-align: right; }
.forum-thread-post-count { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.forum-thread-meta time { grid-column: auto; }
.forum-topic-page { min-width: 0; }
.forum-topic-page > .forum-topic-stream { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.forum-topic-page .forum-topic-head { margin: 0; }
.forum-topic-page .forum-post-list { gap: 8px; padding: 10px; }
.forum-topic-page .forum-post-list .forum-post { overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--surface-soft) 28%, var(--surface)); }
.forum-topic-page .forum-post-list .forum-post:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); }
.forum-topic-page .forum-post-content > header { border-bottom: 0; padding-bottom: 2px; }
.forum-topic-page .forum-post-footer { min-height: 30px; margin-top: 10px; border-top: 0; padding-top: 0; }
.forum-topic-page > .forum-reply-composer,
.forum-topic-page > .forum-thread-restricted { width: 100%; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.forum-topic-page > .forum-reply-composer { gap: 10px; padding: 12px !important; }
.forum-reply-composer > .forum-reply-identity { display: flex; align-items: center; justify-content: flex-start; min-height: 24px; }
.forum-reply-composer > .forum-reply-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; align-items: stretch; gap: 8px; }
.forum-reply-composer.is-attachment-full > .forum-reply-input-row { grid-template-columns: minmax(0, 1fr) auto; }
.forum-reply-input-shell { position: relative; min-width: 0; }
.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea { width: 100%; min-height: 48px; height: auto; max-height: 160px; display: block; resize: none; overflow-y: hidden; scrollbar-width: none; border-radius: 10px; background: var(--surface-soft); padding: 13px 62px 10px 13px; font-size: 12px; line-height: 1.5; transition: border-color 150ms ease, box-shadow 150ms ease; }
.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea.is-scrollable { overflow-y: auto; }
.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea::-webkit-scrollbar { display: none; }
.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea:focus { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.forum-reply-count { position: absolute; right: 11px; bottom: 8px; color: var(--muted); font-size: 8px; line-height: 1; pointer-events: none; }
.forum-reply-attach,
.forum-reply-submit { height: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; transition: transform 140ms cubic-bezier(.23, 1, .32, 1), border-color 140ms ease, background-color 140ms ease; }
.forum-reply-attach { position: relative; width: 44px; min-width: 44px; overflow: hidden; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.forum-reply-attach input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.forum-reply-attach svg { width: 17px; height: 17px; pointer-events: none; }
.forum-reply-attach:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.forum-reply-submit { gap: 8px; min-width: 142px; background: var(--text); color: var(--surface); padding: 0 15px; font-size: 11px; font-weight: 480; }
.forum-reply-submit > span { font-weight: inherit; }
.forum-reply-submit svg { width: 16px; height: 16px; }
.forum-reply-submit:disabled { opacity: .64; cursor: wait; }
.forum-reply-attach:active,
.forum-reply-submit:active { transform: scale(.97); }
.forum-reply-photo-row { justify-content: flex-start !important; min-height: 0; }
.forum-topic-page > .forum-thread-restricted { padding: 14px 16px; }
.forum-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; border-top: 1px solid var(--line); padding: 12px; }
.forum-pagination button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); padding: 0; box-shadow: none; font-size: 11px; font-weight: 560; }
.forum-pagination button.is-current { border-color: var(--line-strong); background: var(--surface-soft); color: var(--text); }
.forum-pagination button:disabled { opacity: .35; cursor: default; }
.forum-pagination button svg { width: 15px; height: 15px; }
.forum-pagination-gap { width: 20px; color: var(--muted); text-align: center; }
.forum-modal-close { line-height: 0 !important; }
.forum-modal-close::before { content: none !important; display: none !important; }
.forum-modal-close svg { width: 17px; height: 17px; display: block; margin: 0; }

/* Forum list metadata stays on one visual axis; the activity stamp owns its two lines. */
.forum-thread-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.forum-thread-stats { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); white-space: nowrap; }
.forum-thread-engagement { display: inline-flex; align-items: center; gap: 10px; }
.forum-thread-engagement > span { display: inline-flex; align-items: center; gap: 4px; }
.forum-thread-engagement svg { width: 13px; height: 13px; }
.forum-thread-post-count { display: inline-flex; align-items: baseline; gap: 5px; }
.forum-thread-post-count b { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.forum-thread-post-count small { color: var(--muted); font-size: 8px; font-weight: 500; }
.forum-thread-activity { min-width: 82px; display: grid; justify-items: end; gap: 2px; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.forum-thread-activity > span,
.forum-thread-activity > b { display: block; white-space: nowrap; }
.forum-thread-activity > b { color: var(--muted); font-size: 8px; font-weight: 560; }
.forum-thread-arrow { width: 18px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; }

/* The forum editor reuses the footer's controlled palette instead of native browser UI. */
.forum-editor-toolbar { flex-wrap: wrap; overflow: visible; }
.forum-editor-toolbar .forum-editor-color-picker { position: relative; flex: 0 0 auto; }
.forum-editor-toolbar .forum-editor-color-picker > .admin-footer-color-toggle { width: 32px; min-width: 32px; height: 30px; min-height: 30px; display: grid; place-items: center; border-radius: 6px; padding: 0; }
.forum-editor-toolbar .forum-editor-color-picker > .admin-footer-color-toggle svg { width: 15px; height: 15px; }
.forum-editor-toolbar .forum-editor-color-picker .admin-footer-color-panel { width: 286px; }
.forum-editor-toolbar .forum-editor-color-picker .admin-footer-color-field { width: 100% !important; height: 132px !important; min-height: 132px !important; border-radius: 12px !important; }
.forum-editor-toolbar .forum-editor-color-picker .admin-footer-popular-colors button { width: 27px; min-width: 27px; height: 27px; min-height: 27px; border-radius: 50%; padding: 0; }
.forum-editor-toolbar .forum-editor-color-picker .admin-footer-color-apply { width: 100%; min-width: 0; height: 38px; min-height: 38px; border-radius: 10px; padding: 0 12px; font-weight: 560; }
.forum-editor-link-dialog input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 0 12px; outline: 0; }
.forum-editor-link-dialog input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.forum-editor-link-dialog .modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.forum-editor-link-dialog .modal-actions button { min-width: 104px; min-height: 42px; border-radius: 10px; font-weight: 560; }

@media (hover: hover) and (pointer: fine) {
  .forum-pagination button:not(:disabled):hover { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
}

@media (max-width: 820px) {
  .forum-thread-row { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .forum-thread-author { display: none; }
  .forum-thread-stats { grid-column: 2; justify-content: flex-start; gap: 10px; }
  .forum-thread-activity { min-width: 76px; justify-items: start; }
  .forum-thread-post-count { display: inline-flex; }
  .forum-topic-page .forum-post-list { gap: 7px; padding: 7px; }
  .forum-topic-stream .forum-post { grid-template-columns: 1fr; }
  .forum-topic-stream .forum-post > aside { display: none; }
  .forum-post-mobile-author { min-width: 0; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
  .forum-post-mobile-author .forum-author-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; }
  .forum-post-mobile-author-copy { min-width: 0; display: grid; flex: 1; gap: 3px; }
  .forum-post-mobile-author-name { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 7px; }
  .forum-post-mobile-author strong,
  .forum-post-mobile-author small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .forum-post-mobile-author strong { color: var(--text); font-size: 12px; font-weight: 600; }
  .forum-post-mobile-author small { color: var(--muted); font-size: 9px; }
  .forum-post-mobile-author .forum-author-badge { flex: 0 0 auto; width: auto; max-width: min(44vw, 164px); overflow: hidden; text-overflow: ellipsis; }
  .forum-topic-page > .forum-reply-composer,
  .forum-topic-page > .forum-thread-restricted { width: 100%; margin-top: 14px; }
  .forum-topic-page > .forum-reply-composer { padding: 12px !important; }
  .forum-pagination { padding: 10px 7px; }
}

@media (hover: hover) and (pointer: fine) {
  .forum-reply-attach:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface-soft) 72%, var(--text) 5%); color: var(--text); }
  .forum-reply-submit:hover { background: color-mix(in srgb, var(--text) 88%, var(--surface)); }
}

@media (max-width: 560px) {
  .forum-thread-stats { gap: 8px; }
  .forum-thread-engagement { gap: 7px; }
  .forum-thread-post-count small { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .forum-thread-activity { margin-left: auto; }
  .forum-reply-composer > .forum-reply-input-row { grid-template-columns: minmax(0, 1fr) 42px 42px; gap: 6px; }
  .forum-reply-composer.is-attachment-full > .forum-reply-input-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .forum-reply-attach,
  .forum-reply-submit { width: 42px; min-width: 42px; height: 46px; min-height: 46px; padding: 0; }
  .forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea { min-height: 46px; height: auto; padding-right: 54px; }
  .forum-reply-submit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .wallet-modal { padding: 30px 18px 24px; }
  .wallet-deposit-methods { grid-template-columns: 1fr; }
  .wallet-deposit-methods > button { min-height: 150px; }
  .wallet-fiat-payment-head { margin-right: 30px; }
  .wallet-fiat-payment-head h2 { font-size: 20px; }
  .wallet-fiat-payment-amount strong { font-size: 17px; }
  .admin-finance-toolbar { align-items: stretch; flex-direction: column; }
  .admin-finance-tabs { width: 100%; }
  .admin-finance-tabs button { flex: 1; }
  .admin-finance-withdraw-button { width: 100%; }
  .admin-souz-overview > header { align-items: flex-start; flex-direction: column; }
  .admin-souz-accounts,
  .admin-souz-loading-cards { grid-template-columns: 1fr; }
  .admin-souz-reconciliation { grid-template-columns: 10px minmax(0, 1fr); }
  .admin-souz-reconciliation > b { grid-column: 2; }
  .admin-withdrawal-history-state { justify-items: start; }
  .admin-withdrawal-history-facts > div { grid-template-columns: minmax(0, 1fr); }
  .admin-withdrawal-source { align-items: flex-start; flex-direction: column; }
}

/* Catalog and forum interaction polish: keep light-theme controls quiet and readable. */
.catalog-select-toggle:disabled {
  opacity: 1;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  color: color-mix(in srgb, var(--muted) 78%, var(--surface));
  cursor: not-allowed;
}
.catalog-category-picker.is-open > .catalog-select-toggle,
.catalog-city-picker.is-open > .catalog-select-toggle {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.forum-workspace { font-size: 13px; }
.forum-section-head > div > div > small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
}
.forum-section-head h2,
.forum-topic-head h2 { font-weight: 600; }
.forum-section-head p { font-size: 12px; line-height: 1.55; }
.forum-thread-copy > strong { font-size: 14px; font-weight: 560; line-height: 1.35; }
.forum-thread-author b,
.forum-topic-author b { font-size: 11px; font-weight: 520; }
.forum-thread-author .forum-author-avatar { width: 28px; height: 28px; border-radius: 8px; }
.forum-thread-author time,
.forum-topic-author time { font-size: 9px; }
.forum-thread-controls input { font-size: 12px; }
.forum-thread-controls select,
.forum-thread-controls span,
.forum-thread-engagement { font-size: 10px; }
.forum-thread-activity,
.forum-thread-activity > b { font-size: 9px; }
.forum-thread-post-count small { font-size: 9px; }
.forum-sidebar-nav button span,
.forum-sidebar-sections button span { font-size: 12px; font-weight: 560; }
.forum-sidebar-sections > small { font-size: 10px; font-weight: 600; }

.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea:focus,
.forum-topic-page > .forum-reply-composer .forum-reply-input-shell textarea:focus-visible {
  outline: 0;
  outline-offset: 0;
  border-color: color-mix(in srgb, var(--text) 38%, var(--line));
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-filter-clear:hover {
    background: transparent;
    color: var(--text);
  }
  .catalog-select-toggle:not(:disabled):hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--text);
  }
  .forum-topic-follow:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--text);
  }
  .forum-topic-follow.is-following:hover {
    border-color: color-mix(in srgb, #6d8cff 52%, var(--line));
    background: color-mix(in srgb, #6d8cff 14%, var(--surface));
    color: color-mix(in srgb, #6d8cff 82%, var(--text));
  }
  .forum-post-like:hover,
  .forum-topic-like:hover {
    border-color: color-mix(in srgb, #d06b78 38%, var(--line));
    background: color-mix(in srgb, #d06b78 8%, var(--surface));
    color: #d06b78;
  }
}

@media (max-width: 820px) {
  .forum-section-head,
  .forum-topic-head {
    align-items: flex-start;
    text-align: left;
  }
  .forum-section-head > div { width: 100%; align-items: flex-start; gap: 0; }
  .forum-section-head > div > span { display: none; }
  .forum-section-head > div > div { width: 100%; text-align: left; }
  .forum-section-head h2,
  .forum-section-head p,
  .forum-topic-head h2 { text-align: left; }
}

.coupon-section-tabs {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.coupon-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.coupon-recipient-field { grid-column: 1 / -1; min-width: 0; }
.coupon-recipient-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.coupon-recipient-search img,
.coupon-user-results img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; }
.coupon-recipient-search strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon-recipient-search input { min-width: 80px; flex: 1; padding: 7px 0; border: 0; background: transparent; box-shadow: none; }
.coupon-recipient-search input:focus { outline: 0; box-shadow: none; }
.coupon-user-results {
  display: grid;
  gap: 4px;
  max-height: 220px;
  margin-top: 6px;
  padding-right: 4px;
  overflow-y: auto;
}
.coupon-user-results:empty { display: none; }
.coupon-user-results button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: left;
}
.coupon-user-results span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-coupon-fields { margin-top: 10px; }
.purchase-coupon-fields.has-code-only { grid-template-columns: minmax(0, 1fr); }
.purchase-coupon-input-shell { position: relative; display: flex; align-items: center; }
.purchase-coupon-input-shell > input,
.purchase-coupon-input-shell > select { width: 100%; padding-right: 112px; }
.purchase-coupon-inline-apply {
  position: absolute;
  right: 6px;
  top: 50%;
  min-width: 92px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 8px;
  transform: translateY(-50%);
  font-size: 12px;
}
.purchase-gift-input-shell > select { padding-right: 126px; }
.purchase-coupon-applied { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #35c991 45%, var(--line)); border-radius: 10px; background: color-mix(in srgb, #35c991 8%, var(--surface)); font-size: 12px; }
.purchase-coupon-applied strong { color: #35a979; }
.purchase-modal-loading, .order-detail-loading { overflow: hidden; }
.purchase-modal-loading i, .purchase-modal-loading b, .order-detail-loading i, .order-detail-loading b { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-soft) 25%, color-mix(in srgb, var(--surface-soft) 72%, var(--text)) 50%, var(--surface-soft) 75%); background-size: 220% 100%; animation: skeleton-shimmer 1.25s ease-in-out infinite; }
.purchase-skeleton-head { display: grid; gap: 9px; }
.purchase-skeleton-head i:nth-child(1) { width: 86px; height: 10px; }
.purchase-skeleton-head i:nth-child(2) { width: min(310px, 58%); height: 28px; }
.purchase-skeleton-head i:nth-child(3) { width: min(430px, 78%); height: 14px; }
.purchase-skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; }
.purchase-skeleton-grid i { height: 76px; border: 1px solid var(--line); border-radius: 0; }
.purchase-skeleton-field { display: grid; gap: 8px; margin-top: 10px; }
.purchase-skeleton-field i:first-child { width: 92px; height: 12px; }
.purchase-skeleton-field i:last-child, .purchase-skeleton-balance { width: 100%; height: 46px; }
.purchase-skeleton-balance { height: 74px; }
.purchase-skeleton-actions { display: flex; justify-content: flex-end; gap: 10px; }
.purchase-skeleton-actions i { width: 126px; height: 42px; border-radius: 999px; }
.order-skeleton-head { display: grid; gap: 10px; padding-right: 48px; }
.order-skeleton-head i:nth-child(1) { width: 92px; height: 10px; }
.order-skeleton-head i:nth-child(2) { width: 44%; height: 30px; }
.order-skeleton-head i:nth-child(3) { width: 100%; height: 34px; }
.order-skeleton-timeline { display: grid; grid-template-columns: repeat(3, 1fr); }
.order-skeleton-timeline i { height: 74px; border-radius: 0; border: 1px solid var(--line); }
.order-skeleton-section { display: grid; gap: 14px; }
.order-skeleton-section > i { width: 130px; height: 16px; }
.order-skeleton-section > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.order-skeleton-section b { height: 92px; border-radius: 0; border: 1px solid var(--line); }
.order-skeleton-photo { display: grid; gap: 12px; }
.order-skeleton-photo i { width: 64px; height: 16px; }
.order-skeleton-photo b { width: 88px; height: 88px; }
@keyframes skeleton-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
#purchasePrimaryActionHost { display: contents; }
.coupon-admin-list { display: grid; gap: 10px; }
.coupon-admin-card { padding: 14px 16px; }
.coupon-card-summary { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 2fr) auto; align-items: center; gap: 18px; }
.coupon-card-summary h3 { margin: 0 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.coupon-status { color: var(--muted); font-size: 12px; }
.coupon-card-summary dl { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 14px; margin: 0; }
.coupon-card-summary dl div { min-width: 0; }
.coupon-card-summary dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.coupon-card-summary dd { margin: 0; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon-edit-toggle { min-width: 116px; }
.coupon-edit-grid { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.coupon-redemptions { margin-top: 10px; color: var(--muted); font-size: 12px; }
.coupon-redemptions summary { cursor: pointer; }
.coupon-redemptions > div { margin-top: 8px; color: var(--text); line-height: 1.7; }

@media (max-width: 700px) {
  .coupon-create-grid { grid-template-columns: 1fr; }
  .coupon-card-summary { grid-template-columns: 1fr auto; }
  .coupon-card-summary dl { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Chat media viewer follows the compact admin photo viewer geometry. Keep this
   final override after the generic order viewer's responsive rules. */
.order-photo-viewer.conversation-photo-viewer {
  position: relative;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: max-content;
  min-width: 88px;
  max-width: calc(100vw - 24px);
  height: max-content;
  min-height: 88px;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.order-photo-viewer.conversation-photo-viewer.is-loading {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.conversation-photo-loader {
  position: absolute;
  inset: 0;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  padding: 0;
  line-height: 0;
}
.conversation-photo-loader > .button-spinner {
  position: static;
  inset: auto;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  align-self: center;
  justify-self: center;
}
.order-photo-viewer.conversation-photo-viewer > .plain-close {
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 0 !important;
  outline: 0;
  border-radius: 50%;
  background: rgba(9, 11, 16, .78);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
}
.order-photo-viewer.conversation-photo-viewer > .plain-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}
.order-photo-viewer.conversation-photo-viewer > img {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
@media (max-width: 520px) {
  .admin-account-details-toggle { min-height: 44px; }
}
@media (max-width: 380px) {
  .admin-account-meta-grid,
  .admin-account-details-grid { grid-template-columns: 1fr; }
}

@font-face { font-family: 'Forum Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/vendor/manrope/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Forum Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/vendor/manrope/manrope-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
.forum-workspace { --forum-accent: #8074de; --forum-tint: color-mix(in srgb, var(--forum-accent) 10%, var(--surface)); width: min(1180px, 100%); font-family: 'Forum Manrope', system-ui, sans-serif; font-size: 14px; padding: 28px 0 52px; }
.forum-workspace button, .forum-workspace input, .forum-workspace select, .forum-workspace textarea, .forum-workspace .footer-rich-text { font-family: inherit; }
.forum-workspace .forum-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.forum-workspace .forum-layout.is-home { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.forum-home-content { min-width: 0; }
.forum-workspace .forum-sidebar { position: sticky; top: 100px; border: 0; background: transparent; padding: 8px 0; gap: 28px; }
.forum-workspace .forum-sidebar-nav button, .forum-workspace .forum-sidebar-sections button { min-height: 44px; padding: 10px 12px; border-radius: 9px; text-align: left; gap: 10px; }
.forum-workspace .forum-sidebar-nav button svg, .forum-workspace .forum-sidebar-sections button svg { width: 18px; height: 18px; color: var(--muted); }
.forum-workspace .forum-sidebar-nav button.active, .forum-workspace .forum-sidebar-sections button.active { background: var(--forum-tint); color: var(--text); }
.forum-workspace .forum-sidebar-sections > small { margin: 0 12px 12px; font-size: 10px; letter-spacing: .12em; }
.forum-workspace .forum-sidebar-nav button span, .forum-workspace .forum-sidebar-sections button span { font-size: 12px; font-weight: 600; }
.forum-workspace .forum-sidebar-create { min-height: 46px; background: var(--text); color: var(--surface); border: 0; border-radius: 10px; font-size: 13px; }
.forum-workspace .forum-hero { padding: 10px 0 28px; min-height: 0; margin: 0; background: transparent; border: 0; border-radius: 0; display: flex; align-items: center; gap: 18px; }
.forum-workspace .forum-hero-mark { display: none; }
.forum-workspace .forum-hero > div > span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.forum-workspace .forum-hero h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 750; line-height: 1.2; letter-spacing: -.045em; margin: 8px 0; }
.forum-workspace .forum-hero p { display: block; font-size: 13px; line-height: 1.7; max-width: 520px; color: var(--muted); }
.forum-home-tabs { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; margin-bottom: 8px; }
.forum-home-tabs > div { display: flex; gap: 20px; }
.forum-home-tabs button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 650; }
.forum-home-tabs button[data-active=true] { color: var(--text); border-bottom-color: var(--forum-accent); }
.forum-home-tabs svg { width: 17px; height: 17px; }
.forum-home-tabs > span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.forum-home-feed { display: grid; }
.forum-feed-entry { position: relative; padding: 20px 0 0; border-bottom: 1px solid var(--line); }
.forum-feed-category { display: inline-flex; max-width: 100%; align-items: center; padding: 4px 8px; margin-left: 54px; border: 0; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 600; box-shadow: none; }
.forum-workspace .forum-thread-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; padding: 20px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.forum-workspace .forum-feed-entry .forum-thread-row { padding: 10px 0 20px; border: 0; }
.forum-workspace .forum-thread-status { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); }
.forum-workspace .forum-thread-copy > strong { white-space: normal; overflow: visible; text-overflow: clip; font-size: 15px; line-height: 1.5; font-weight: 700; letter-spacing: -.015em; }
.forum-workspace .forum-thread-author { display: flex; margin-top: 10px; gap: 7px; }
.forum-workspace .forum-thread-author .forum-author-avatar { width: 22px; height: 22px; border-radius: 50%; }
.forum-workspace .forum-thread-author b { font-size: 10px; font-weight: 650; }
.forum-workspace .forum-thread-author time { font-size: 10px; }
.forum-workspace .forum-thread-stats { gap: 14px; }
.forum-workspace .forum-thread-engagement { display: none; }
.forum-workspace .forum-thread-post-count { display: grid; justify-items: center; gap: 3px; min-width: 36px; }
.forum-workspace .forum-thread-post-count b { font-size: 15px; }
.forum-workspace .forum-thread-post-count small { font-size: 9px; }
.forum-workspace .forum-thread-activity, .forum-workspace .forum-thread-activity > b { font-size: 10px; }
.forum-workspace .forum-thread-arrow { display: none; }
.forum-directory-head { display: flex; justify-content: flex-end; margin: 16px 0; }
.forum-directory-search { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 12px; }
.forum-directory-search svg { width: 18px; height: 18px; color: var(--muted); }
.forum-directory-search input { width: 100%; min-height: 44px; border: 0; padding: 0; color: var(--text); background: transparent; }
.forum-workspace .forum-section-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.forum-workspace .forum-section-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; box-shadow: none; }
.forum-workspace .forum-section-icon { width: 44px; height: 44px; border-radius: 12px; color: var(--forum-accent); background: var(--forum-tint); }
.forum-workspace .forum-section-title-row strong { font-size: 15px; font-weight: 750; }
.forum-workspace .forum-section-main > small { display: block; font-size: 12px; line-height: 1.7; margin-top: 4px; }
.forum-workspace .forum-section-activity { font-size: 10px; margin-top: 10px; }
.forum-workspace .forum-section-metrics b { font-size: 16px; }
.forum-workspace .forum-section-metrics small { font-size: 10px; }
.forum-workspace .forum-section-arrow { display: none; }
.forum-workspace .forum-breadcrumb { flex-wrap: wrap; font-size: 11px; padding-bottom: 20px; }
.forum-workspace .forum-section-head, .forum-workspace .forum-topic-head { padding: 26px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: var(--surface); }
.forum-workspace .forum-section-head h2, .forum-workspace .forum-topic-head h2 { font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.035em; line-height: 1.3; font-weight: 750; }
.forum-workspace .forum-section-head p { font-size: 13px; line-height: 1.7; }
.forum-workspace .forum-thread-controls { padding: 16px 18px; background: var(--surface); }
.forum-workspace .forum-thread-controls input, .forum-workspace .forum-thread-controls select { min-height: 44px; font-size: 12px; }
.forum-workspace .forum-thread-list { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; }
.forum-workspace .forum-topic-stream { background: transparent; border: 0; }
.forum-workspace .forum-topic-head { border-radius: 14px; margin-bottom: 20px; }
.forum-workspace .forum-topic-head h2 { margin-top: 18px; }
.forum-workspace .forum-topic-labels { flex-wrap: wrap; gap: 10px; }
.forum-workspace .forum-topic-page .forum-post-list { padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.forum-workspace .forum-topic-stream .forum-post { display: block; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.forum-workspace .forum-topic-page .forum-post-list .forum-post:last-child { border-bottom: 0; }
.forum-workspace .forum-topic-stream .forum-post > aside { display: none; }
.forum-workspace .forum-post-content { padding: 26px; }
.forum-workspace .forum-post-mobile-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.forum-workspace .forum-post-mobile-author .forum-author-avatar { width: 40px; height: 40px; border-radius: 50%; }
.forum-workspace .forum-post-mobile-author-copy { min-width: 0; display: grid; gap: 4px; }
.forum-workspace .forum-post-mobile-author-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.forum-workspace .forum-post-mobile-author strong { font-size: 13px; }
.forum-workspace .forum-post-content > header { justify-content: flex-start; margin: 0 0 20px 52px; font-size: 10px; gap: 10px; }
.forum-workspace .forum-post-content > p, .forum-workspace .forum-rich-body { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.forum-workspace .forum-post-footer { margin-top: 20px; padding-top: 12px; }
.forum-workspace .forum-post-footer button { min-height: 40px; }
.forum-workspace .forum-topic-page > .forum-reply-composer { padding: 20px !important; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.forum-workspace .forum-composer { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.forum-workspace .forum-rich-editor { min-height: 260px; font-size: 14px; line-height: 1.8; }
.forum-workspace .forum-pagination { border-top: 0; }
.forum-workspace .forum-pagination button { min-width: 40px; min-height: 40px; }
.forum-workspace :is(button,input,select,textarea,[contenteditable]):focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 3px; }
.forum-workspace [hidden] { display: none !important; }
@media (hover:hover) and (pointer:fine) { .forum-workspace .forum-thread-row:hover, .forum-workspace .forum-section-card:hover { background: var(--surface-soft); } }

@media (max-width:1000px) {
 .forum-workspace { padding-top: 16px; }
 .forum-workspace .forum-layout, .forum-workspace .forum-layout.is-home { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .forum-workspace .forum-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
 .forum-workspace .forum-sidebar-sections { display: flex; overflow-x: auto; width: 100%; gap: 6px; padding-bottom: 6px; }
 .forum-workspace .forum-sidebar-sections > small { display: none; }
 .forum-workspace .forum-sidebar-sections button { flex: 0 0 auto; max-width: 220px; border: 1px solid var(--line); }
 .forum-workspace .forum-sidebar-create { width: auto; margin-left: auto; padding: 0 14px; }
 .forum-workspace .forum-hero { padding: 12px 0 20px; }
 .forum-workspace .forum-hero p { display: block; font-size: 12px; }
 .forum-home-tabs > span { display: none; }
 .forum-home-tabs > div { gap: 20px; }
 .forum-workspace .forum-thread-row { grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 18px 14px; }
 .forum-workspace .forum-thread-status { width: 30px; height: 30px; }
 .forum-workspace .forum-thread-stats { grid-column: 2; justify-content: flex-start; }
 .forum-workspace .forum-thread-post-count { display: flex; }
 .forum-workspace .forum-thread-activity { margin-left: auto; }
 .forum-workspace .forum-thread-copy > strong { font-size: 14px; }
 .forum-feed-category { margin-left: 42px; }
 .forum-workspace .forum-section-card { grid-template-columns: 36px minmax(0,1fr); padding: 18px; gap: 12px; }
 .forum-workspace .forum-section-icon { width: 36px; height: 36px; }
 .forum-workspace .forum-section-metrics { grid-column: 2; display: flex; align-items: baseline; gap: 6px; }
 .forum-workspace .forum-section-metrics small { margin-right: 12px; }
 .forum-workspace .forum-post-content, .forum-workspace .forum-section-head, .forum-workspace .forum-topic-head, .forum-workspace .forum-composer { padding: 18px; }
 .forum-workspace .forum-thread-controls { flex-wrap: wrap; padding: 14px; }
 .forum-workspace .forum-topic-page > .forum-reply-composer { padding: 14px !important; }
}
@media (prefers-reduced-motion:reduce) { .forum-workspace *, .forum-workspace *::before, .forum-workspace *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


/* Quiet navigation and full-width search share the same behavior on every forum page. */
.forum-workspace .forum-hero::before, .forum-workspace .forum-hero::after { content: none; }
.forum-workspace .forum-hero > div > span { display: none; }
.forum-workspace .forum-hero { padding-bottom: 20px; }
.forum-workspace .forum-home-search { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--surface); }
.forum-workspace .forum-home-search svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--muted); }
.forum-workspace .forum-home-search input { flex: 1; min-width: 0; width: 100%; height: 48px; border: 0; padding: 0; background: transparent; color: var(--text); font-size: 14px; }
.forum-workspace .forum-thread-controls { flex-direction: column; align-items: stretch; gap: 12px; }
.forum-workspace .forum-thread-controls > label { flex: auto; width: 100%; min-height: 50px; padding: 0 14px; }
.forum-workspace .forum-thread-controls > div { width: 100%; justify-content: space-between; }
.forum-workspace .forum-thread-controls input { min-height: 48px; font-size: 14px; }
.forum-workspace .forum-directory-head { display: block; width: 100%; }
.forum-workspace .forum-directory-search { display: flex; width: 100%; min-height: 50px; }
.forum-workspace .forum-directory-search input { min-width: 0; min-height: 48px; font-size: 14px; }
.forum-workspace .forum-home-search:focus-within, .forum-workspace .forum-directory-search:focus-within { border-color: var(--forum-accent); }
.forum-workspace .forum-feed-entry { padding-top: 14px; }
.forum-workspace .forum-thread-author .forum-author-badge.is-client { display: none; }
.forum-workspace .forum-feed-entry .forum-thread-author time { display: none; }
.forum-workspace .forum-feed-category { background: transparent; padding-left: 0; }
.forum-workspace .forum-thread-status { border: 0; background: transparent; }
@media (hover:hover) and (pointer:fine) {
 .forum-workspace .forum-sidebar-nav button:hover,
 .forum-workspace .forum-sidebar-sections button:hover,
 .forum-workspace .forum-home-tabs button:hover,
 .forum-workspace .forum-feed-category:hover,
 .forum-workspace .forum-breadcrumb button:hover,
 .forum-workspace .forum-thread-back:hover,
 .forum-workspace .forum-post-actions button:hover { background: var(--surface-soft); color: var(--text); box-shadow: none; }
 .forum-workspace .forum-sidebar-nav button.active:hover,
 .forum-workspace .forum-sidebar-sections button.active:hover { background: var(--forum-tint); color: var(--text); }
 .forum-workspace .forum-thread-row:hover, .forum-workspace .forum-section-card:hover { background: var(--surface-soft); color: var(--text); box-shadow: none; }
}

/* Post metadata belongs to the quiet footer, alongside reactions. */
.forum-workspace .forum-post-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 24px; }
.forum-post-footer-start { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0; }
.forum-post-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.forum-workspace .forum-post-mobile-author { margin-bottom: 20px; }
.forum-workspace .forum-thread-status { display: none; }
.forum-workspace .forum-thread-row { grid-template-columns: minmax(0, 1fr) auto; }
.forum-workspace .forum-feed-category { margin-left: 0; }
/* One focus treatment per compound control; no overlapping inner outlines. */
.forum-workspace :is(input,select,textarea,[contenteditable]):focus-visible { outline: none; outline-offset: 0; box-shadow: none; }
.forum-workspace :is(.forum-home-search,.forum-directory-search,.forum-thread-controls > label,.forum-editor-size-control):focus-within { outline: none; border-color: var(--forum-accent); box-shadow: 0 0 0 2px var(--forum-tint); }
.forum-workspace .forum-editor-toolbar :is(select,input):focus-visible { outline: none; border-color: var(--forum-accent); box-shadow: none; }
.forum-workspace .forum-editor-toolbar .forum-editor-size-control { border: 1px solid transparent; border-radius: 8px; }
.forum-workspace :is(textarea,.forum-rich-editor):focus-visible { border-color: var(--forum-accent); box-shadow: inset 0 0 0 1px var(--forum-accent); }
.forum-workspace button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.forum-workspace .forum-post-reply-reference { border: 0; border-left: 2px solid var(--line); border-radius: 0 6px 6px 0; background: var(--surface-soft); color: var(--muted); padding: 9px 12px; }
.forum-workspace .forum-post-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.forum-workspace .forum-post-photos a { display: block; max-width: 100%; }
.forum-workspace .forum-post-photos img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.forum-workspace .forum-rich-body img { max-width: 100%; height: auto; object-fit: contain; }
.forum-workspace .forum-settings-modal { font-family: inherit; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; }
.forum-workspace .forum-settings-details :is(input,textarea), .forum-workspace .forum-mode-control select { background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); border-radius: 9px; min-height: 42px; }
.forum-workspace .forum-audience-option { border-radius: 10px; padding: 12px; }
.forum-workspace .forum-thread-restricted { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); padding: 20px; }
@media (hover:hover) and (pointer:fine) {
 .forum-workspace :is(.forum-post-reply-reference,.forum-post-like,.forum-topic-like,.forum-topic-follow,.forum-reply-action,.forum-edit-action,.forum-delete-action,.forum-editor-toolbar button,.forum-section-settings-trigger):hover { background: var(--surface-soft); color: var(--text); border-color: transparent; box-shadow: none; outline: none; }
 .forum-workspace .forum-thread-row:hover, .forum-workspace .forum-section-card:hover { border-color: var(--line); outline: none; }
}
@media (max-width:1000px) {
 .forum-workspace .forum-thread-row { grid-template-columns: minmax(0,1fr); }
 .forum-workspace .forum-thread-stats { grid-column: 1; }
 .forum-workspace .forum-post-meta { font-size: 9px; }
 .forum-workspace .forum-post-actions { margin-left: auto; }
}
@media (max-width:1000px) {
 .forum-workspace .forum-layout.is-thread { display: flex; flex-direction: column; }
 .forum-workspace .forum-thread-rail, .forum-workspace .forum-main-panel, .forum-workspace .forum-home-content { width: 100%; min-width: 0; grid-column: auto; }
 .forum-workspace .forum-thread-rail { display: flex; flex-direction: column; gap: 12px; }
 .forum-workspace .forum-sidebar { width: 100%; }
 .forum-workspace .forum-settings-modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
 .forum-workspace .forum-settings-groups { grid-template-columns: 1fr; }
}

.forum-workspace .forum-activity-row { display: grid; gap: 10px; width: 100%; padding: 12px 0 20px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; box-shadow: none; }
.forum-activity-row > strong { font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.forum-activity-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
.forum-activity-author .forum-author-avatar { width: 22px; height: 22px; border-radius: 50%; }
.forum-activity-author b { font-weight: 600; }
.forum-activity-author time { margin-left: auto; }
.forum-activity-preview { display: flex; align-items: flex-start; gap: 12px; min-width: 0; color: var(--muted); }
.forum-activity-preview > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.forum-activity-preview img { width: 76px; height: 60px; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
@media (hover:hover) and (pointer:fine) { .forum-workspace .forum-activity-row:hover { background: var(--surface-soft); color: var(--text); border-color: transparent; outline: none; box-shadow: none; } }
@media (max-width:600px) { .forum-activity-author time { margin-left: 0; } .forum-activity-preview img { width: 64px; height: 56px; } }

.forum-workspace .forum-rich-editor:focus, .forum-workspace .forum-rich-editor:focus-visible { outline: none !important; border-color: var(--line); box-shadow: none; }
.forum-workspace .forum-rich-editor-shell:focus-within { outline: none; box-shadow: none; }
.forum-workspace .forum-editor-toolbar .forum-editor-tool.is-active,
.forum-workspace .forum-editor-toolbar .forum-editor-tool.is-active:hover { background: var(--forum-tint); color: var(--text); border-color: var(--forum-accent); box-shadow: inset 0 0 0 1px var(--forum-accent); }

.forum-accessible-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.forum-directory-admin { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* Section settings: fixed header/actions, one scrolling body, readable permissions. */
.forum-workspace .forum-settings-backdrop { padding: 24px; place-items: center; background: rgba(8,10,16,.58); }
.forum-workspace .forum-settings-modal { display: flex; flex-direction: column; width: min(780px,100%); max-height: min(900px,calc(100dvh - 48px)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.forum-workspace .forum-settings-modal > header { flex: 0 0 auto; padding: 24px 28px; align-items: flex-start; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.forum-workspace .forum-settings-modal h3 { font-size: 23px; letter-spacing: -.03em; font-weight: 750; }
.forum-workspace .forum-settings-modal > header p { max-width: 530px; font-size: 12px; line-height: 1.7; margin-top: 6px; }
.forum-workspace .forum-settings-modal .forum-modal-close { flex: 0 0 auto; width: 36px; height: 36px; min-width: 36px; padding: 0; border: 0 !important; background: transparent; color: var(--muted); box-shadow: none !important; border-radius: 9px; }
.forum-settings-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; scrollbar-gutter: stable; }
.forum-workspace .forum-settings-details { padding: 0; grid-template-columns: minmax(0,1fr) 96px; gap: 16px; border: 0; }
.forum-workspace .forum-settings-details label { gap: 8px; font-size: 12px; font-weight: 600; }
.forum-workspace .forum-settings-details input, .forum-workspace .forum-settings-details textarea { font-size: 13px; line-height: 1.6; border-radius: 10px; padding: 11px 13px; min-height: 44px; }
.forum-workspace .forum-settings-details textarea { min-height: 84px; }
.forum-workspace .forum-settings-groups { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; padding: 0; }
.forum-workspace .forum-settings-groups fieldset, .forum-workspace .forum-settings-groups fieldset + fieldset { display: block; padding: 0; border: 0; }
.forum-workspace .forum-settings-groups legend { font-size: 14px; font-weight: 700; }
.forum-workspace .forum-settings-groups fieldset > p { min-height: 0; margin: 6px 0 12px; font-size: 11px; line-height: 1.6; }
.forum-permission-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.forum-workspace .forum-audience-option { min-height: 86px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 13px; gap: 10px; }
.forum-workspace .forum-audience-option:has(input:checked) { background: var(--forum-tint); border-color: color-mix(in srgb,var(--forum-accent) 45%,var(--line)); }
.forum-workspace .forum-audience-option b { font-size: 12px; font-weight: 700; }
.forum-workspace .forum-audience-option small { font-size: 10px; line-height: 1.5; }
.forum-workspace .forum-audience-option input:checked ~ i { background: var(--forum-accent); border-color: var(--forum-accent); }
.forum-workspace .forum-audience-option input:checked ~ i::after { border-color: #fff; }
.forum-workspace .forum-audience-option:focus-within { outline: 2px solid var(--forum-accent); outline-offset: 2px; }
.forum-workspace .forum-settings-lock { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.forum-workspace .forum-settings-lock input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--forum-accent); }
.forum-workspace .forum-settings-lock span { display: grid; gap: 5px; }
.forum-workspace .forum-settings-lock b { font-size: 12px; }
.forum-workspace .forum-settings-lock small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.forum-settings-danger-collapse { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.forum-settings-danger-collapse > summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 6px 0; }
.forum-workspace .forum-settings-danger { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.forum-workspace .forum-settings-modal > footer { position: static; flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 18px 28px; background: var(--surface); }
.forum-workspace .forum-settings-modal > footer button { min-height: 44px; border-radius: 10px; padding: 0 22px; font-size: 13px; }
.forum-workspace .forum-settings-modal > footer button[data-forum-section-settings-save] { background: var(--text); color: var(--surface); }
.forum-subsection-count { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; }
.forum-subsection-label { font-size: 9px; font-style: normal; font-weight: 500; color: var(--muted); background: var(--surface-soft); border-radius: 5px; padding: 4px 7px; margin-left: 8px; }
@media (hover:hover) and (pointer:fine) { .forum-workspace .forum-settings-modal .forum-modal-close:hover { background: var(--surface-soft); color: var(--text); } }
@media (max-width:600px) {
 .forum-workspace .forum-settings-backdrop { padding: 8px; }
 .forum-workspace .forum-settings-modal { width: 100%; max-height: calc(100dvh - 16px); border-radius: 16px; }
 .forum-workspace .forum-settings-modal > header { padding: 20px; }
 .forum-settings-body { padding: 20px; }
 .forum-workspace .forum-settings-modal h3 { font-size: 20px; }
 .forum-permission-options { grid-template-columns: 1fr; gap: 8px; }
 .forum-workspace .forum-audience-option { min-height: 64px; }
 .forum-workspace .forum-settings-modal > footer { padding: 14px 20px max(14px,env(safe-area-inset-bottom)); }
 .forum-workspace .forum-settings-modal > footer button { flex: 1; min-width: 0; }
 .forum-workspace .forum-settings-details { grid-template-columns: minmax(0,1fr) 76px; }
}

.forum-workspace .forum-section-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.forum-workspace .forum-subsection-count { display: inline-flex; align-items: center; flex: 0 0 auto; width: auto; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.forum-workspace .is-section-row .forum-thread-copy > strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.forum-workspace .is-section-row .forum-subsection-label { display: none; }

.forum-workspace .forum-activity-preview > .forum-activity-excerpt { display: block; -webkit-line-clamp: unset; max-height: 8.5em; overflow: hidden; line-height: 1.7; }
.forum-preview-line { display: block; }
.forum-preview-line + .forum-preview-line { margin-top: .25em; }
.forum-activity-excerpt strong { font-size: inherit; font-weight: 650; color: var(--text); }
.forum-activity-excerpt code { font-family: ui-monospace,monospace; }

.forum-workspace .forum-home-tabs button { border-radius: 8px 8px 0 0; padding: 10px 6px 12px; }
@media (hover:hover) and (pointer:fine) {
 .forum-workspace .forum-home-tabs button:hover { background: transparent; color: var(--text); box-shadow: none; }
}

/* Editorial toolbar: four visible, touch-friendly groups. */
.forum-workspace .forum-section-icon, .forum-workspace .forum-section-heading-icon { border: 0; box-shadow: none; outline: none; background: var(--forum-tint); color: var(--forum-accent); }
.forum-workspace .forum-activity-preview > .forum-activity-excerpt { max-height: none; overflow: visible; -webkit-line-clamp: unset; }
.forum-workspace .forum-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: var(--surface-soft); overflow: visible; }
.forum-editor-group { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.forum-workspace .forum-editor-toolbar .forum-editor-tool { display: grid; place-items: center; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; box-shadow: none; }
.forum-workspace .forum-editor-toolbar .forum-editor-tool svg { width: 17px; height: 17px; }
.forum-workspace .forum-editor-toolbar .forum-editor-tool.is-active { background: var(--forum-tint); border-color: transparent; color: var(--forum-accent); box-shadow: none; }
.forum-workspace .forum-editor-toolbar select { width: 124px; min-width: 0; height: 36px; font-size: 12px; background: transparent; border: 0; padding-left: 9px; }
.forum-workspace .forum-editor-toolbar .forum-editor-size-control { width: 64px; height: 36px; min-height: 36px; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 8px; background: transparent; }
.forum-workspace .forum-editor-toolbar .forum-editor-size-control input { font-size: 12px; height: 34px; }
.forum-workspace .forum-editor-toolbar .forum-editor-color-picker > .admin-footer-color-toggle { width: 36px; min-width: 36px; height: 36px; min-height: 36px; background: transparent; }
.forum-workspace .forum-rich-editor-shell { border-radius: 0 0 14px 14px; }
@media (hover:hover) and (pointer:fine) { .forum-workspace .forum-editor-toolbar .forum-editor-tool:hover { background: var(--surface-soft); color: var(--text); } .forum-workspace .forum-editor-toolbar .forum-editor-tool.is-active:hover { background: var(--forum-tint); color: var(--forum-accent); } }
@media (max-width:600px) { .forum-workspace .forum-editor-toolbar { gap: 6px; padding: 8px; } .forum-editor-group { padding: 3px; gap: 2px; } .forum-editor-group.is-type { width: 100%; } .forum-workspace .forum-editor-toolbar .is-type select { flex: 1; width: auto; } .forum-workspace .forum-editor-toolbar .forum-editor-tool { width: 38px; min-width: 38px; height: 40px; min-height: 40px; } }

/* Text links do not gain a filled hit-area on hover. Keyboard focus stays visible. */
@media (hover:hover) and (pointer:fine) {
 .forum-workspace .forum-activity-row:hover,
 .forum-workspace .forum-feed-category:hover,
 .forum-workspace .forum-breadcrumb button:hover,
 .forum-workspace .forum-thread-row:hover,
 .forum-workspace .forum-section-card:hover { background: transparent; color: var(--text); outline: none; box-shadow: none; }
 .forum-workspace .forum-section-card:hover { background: var(--surface); border-color: var(--line); }
 .forum-workspace .forum-activity-row:hover > strong { color: var(--text); }
 .forum-workspace .forum-feed-category:hover,
 .forum-workspace .forum-breadcrumb button:hover { color: var(--muted); }
}
.forum-workspace .forum-breadcrumb button { border-radius: 4px; }
.forum-feed-skeleton-row { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.forum-feed-skeleton-row .forum-skeleton-line { display: block; margin: 0; height: 12px; border-radius: 5px; }
.forum-feed-skeleton-row .is-meta { width: 22%; height: 10px; }
.forum-feed-skeleton-row .is-title { width: 58%; height: 17px; }
.forum-feed-skeleton-row .is-copy { width: 92%; }
.forum-feed-skeleton-row .is-copy:last-child { width: 70%; }

@media (hover:hover) and (pointer:fine) {
 .forum-workspace .forum-sidebar-nav button:not(.active):hover,
 .forum-workspace .forum-sidebar-sections button:not(.active):hover { background: transparent; color: var(--text); box-shadow: none; }
}

.forum-workspace .forum-post, .forum-workspace .forum-topic-stream { scroll-margin-top: 96px; }

.forum-workspace .forum-topic-origin { display: flex; align-items: center; gap: 8px; justify-self: start; min-height: 40px; margin: 0 0 12px; padding: 8px 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); box-shadow: none; font-size: 12px; }
.forum-topic-origin svg { width: 15px; height: 15px; }
.forum-workspace .forum-topic-origin:hover { background: transparent; color: var(--muted); box-shadow: none; }
.forum-topic-origin[aria-busy="true"]::after, .forum-post-reply-reference[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: currentColor; border-radius: 50%; animation: forum-button-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .forum-topic-origin[aria-busy="true"]::after, .forum-post-reply-reference[aria-busy="true"]::after { animation: none; } }

/* Messages: one workspace, independent list/history scrolling, local fonts. */
body.is-messages-route { overflow: hidden; }
body.is-messages-route .market-shell { height: 100dvh; min-height: 0; overflow: hidden; }
body.is-messages-route .market-main { width: 100%; max-width: none; height: auto; min-height: 0; margin: 0; padding: 0; overflow: hidden; }
body.is-messages-route #siteFooter { display: none; }
body.is-messages-route #messages { display: block; height: 100%; min-height: 0; }
body.is-messages-route #messages > .section-head { display: none; }
body.is-messages-route .messages-workspace { --msg-accent: var(--text); --msg-tint: var(--surface-soft); --msg-outgoing: var(--accent-soft); height: 100%; min-height: 0; grid-template-columns: clamp(300px, 24vw, 360px) minmax(0, 1fr); border: 0; border-radius: 0; font-family: 'Forum Manrope', system-ui, sans-serif; font-size: 14px; }

.messages-workspace :is(button,input,textarea,select) { font-family: inherit; }
.messages-workspace svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.messages-workspace :is(button,input,textarea):focus { box-shadow: none; }
.messages-workspace :is(button,input,textarea):focus-visible { outline: 2px solid var(--msg-accent); outline-offset: 3px; }
.messages-workspace button:active { transform: scale(.98); }
.messages-workspace .messages-list { overflow: hidden; background: var(--surface); }
.messages-workspace .messages-list-head { position: static; display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch; flex: 0 0 auto; gap: 18px; padding: 26px 22px 16px; border: 0; }
.messages-list-heading { display: flex; align-items: center; gap: 10px; }
.messages-list-heading h2 { margin: 0; color: var(--text); font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.messages-list-heading > span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 650; }
.messages-search { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; background: var(--surface-soft); color: var(--muted); }
.messages-search svg { width: 17px; height: 17px; }
.messages-workspace .messages-search input { width: 100%; min-width: 0; min-height: 40px; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 12px; outline: none; box-shadow: none; }
.messages-workspace .messages-search:focus-within { border-color: color-mix(in srgb, var(--msg-accent) 45%, var(--line)); }
.messages-workspace .messages-search input:focus-visible { outline: none; }
.messages-filters { display: flex; align-items: center; gap: 6px; }
.messages-workspace .messages-filters button { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; box-shadow: none; }
.messages-workspace .messages-filters button[aria-pressed="true"] { color: var(--msg-accent); background: var(--msg-tint); }
.messages-filters button > span { font-size: 10px; font-variant-numeric: tabular-nums; }
.messages-list-items { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 10px 12px; }
.messages-workspace .conversation-list-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 85px; padding: 14px 12px; margin: 2px 0; border: 0; border-radius: 12px; background: transparent; color: var(--text); box-shadow: none; }
.messages-workspace .conversation-list-item.active { background: var(--msg-tint); }
.messages-workspace .conversation-list-item.has-unread { background: transparent; }
.messages-workspace .conversation-list-item.active.has-unread { background: var(--msg-tint); }
.messages-workspace .conversation-avatar { width: 44px; height: 44px; border: 0; border-radius: 50%; object-fit: cover; box-shadow: none; }
.messages-workspace .conversation-list-copy { gap: 6px; }
.messages-workspace .conversation-list-copy .conversation-name-line > strong { color: var(--text); font-size: 12px; font-weight: 650; letter-spacing: -.15px; }
.messages-workspace .conversation-list-item.has-unread .conversation-name-line > strong { font-weight: 800; }
.messages-workspace .conversation-list-copy > small { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 450; }
.messages-workspace .conversation-list-meta { justify-content: center; gap: 10px; min-width: 30px; }
.messages-workspace .conversation-list-meta time { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.messages-workspace .conversation-unread-count { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 7px; background: var(--text); color: var(--surface); font-size: 9px; }
.messages-search-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 12px; color: var(--muted); }
.messages-search-empty svg { margin-bottom: 6px; }
.messages-search-empty strong { color: var(--text); font-size: 13px; }
.messages-search-empty span { max-width: 220px; font-size: 11px; line-height: 1.6; }
.messages-workspace .chat-settings-button { flex: 0 0 auto; position: static; margin-top: auto; min-height: 58px; padding: 12px 23px; border-color: var(--line); background: transparent; color: var(--muted); font-size: 11px; }
.messages-workspace .conversation-pane { grid-template-rows: auto minmax(0, 1fr) auto; background: color-mix(in srgb, var(--bg) 68%, var(--surface)); overflow: hidden; }
.messages-workspace .conversation-pane > header { position: relative; z-index: 4; display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 18px 26px; background: var(--surface); border-bottom: 1px solid var(--line); }
.messages-workspace .conversation-pane > header > .conversation-header-identity { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; }
.conversation-header-copy { display: grid; gap: 5px; min-width: 0; }
.messages-workspace .conversation-header-copy small { color: var(--muted); font-size: 11px; }
.messages-workspace .conversation-header-identity .conversation-name-line { flex-wrap: wrap; }
.messages-workspace .conversation-header-identity .conversation-name-line > :is(strong,button) { color: var(--text); font-size: 14px; font-weight: 750; }
.messages-workspace .conversation-name-line > :is(strong,button) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-workspace .conversation-order-link { padding: 0; border-radius: 0; gap: 12px; }
.messages-workspace .conversation-order-link:hover { background: transparent; }
.messages-workspace .conversation-participants { font-size: 10px; max-height: 38px; overflow: auto; }
.messages-workspace .conversation-action-bar.is-compact { flex: 0 0 auto; align-self: center; padding: 0; border: 0; background: transparent; }
.messages-workspace .conversation-actions-controls { gap: 4px; }
.messages-workspace .conversation-actions-trigger { min-height: 38px !important; padding: 0 10px !important; border: 0 !important; border-radius: 9px; background: transparent !important; color: var(--muted) !important; box-shadow: none; font-size: 10px; }
.messages-workspace .conversation-action-bar .conversation-icon-action { min-width: 38px; width: 38px; height: 38px; min-height: 38px; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; }
.messages-workspace .conversation-actions-popover { border-radius: 14px; padding: 6px; box-shadow: 0 12px 36px #0002; }
.messages-workspace .conversation-action-menu-item { min-height: 43px; border-radius: 8px; font-size: 12px; }
.conversation-timeline { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.messages-workspace .conversation-body { height: 100%; min-height: 0; padding: 22px 14px 26px; gap: 16px; background: transparent; overflow-anchor: none; }
.conversation-date-divider { align-self: center; flex: 0 0 auto; margin: 6px 0 12px; padding: 5px 12px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--muted); font-size: 10px; font-weight: 550; }
.messages-workspace .conversation-system-message { width: auto; max-width: 90%; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; font-size: 10px; text-align: center; line-height: 1.6; margin-bottom: 4px; }
.messages-workspace .conversation-system-message::before, .messages-workspace .conversation-system-message::after { display: none; }
.messages-workspace .conversation-system-message time { color: var(--muted); font-size: 9px; }
.messages-workspace .message-row { max-width: min(88%, 650px); gap: 9px; flex: 0 0 auto; }
.messages-workspace .message-avatar { width: 26px; height: 26px; border: 0; box-shadow: none; }
.messages-workspace .message-row.is-own > .message-avatar { display: none; }
.messages-workspace .message-bubble { min-width: 60px; max-width: calc(100% - 35px); border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); border-radius: 16px 16px 16px 5px; background: var(--surface); padding: 12px 15px 8px; font-size: 13px; line-height: 1.7; }
.messages-workspace .message-bubble.is-own { max-width: 100%; border-color: transparent; border-radius: 16px 16px 5px 16px; background: var(--msg-outgoing); color: var(--text); }
.messages-workspace .message-bubble time { font-size: 9px; line-height: 1.5; margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.messages-workspace .message-bubble.is-quarantined { border-style: dashed; border-color: var(--muted); }
.messages-workspace .message-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); width: 360px; max-width: 100%; gap: 5px; margin: 0 0 8px; }
.messages-workspace .message-photo-grid button { aspect-ratio: 1.6; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); box-shadow: none; }
.messages-workspace .message-photo-grid img { max-height: 280px; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.messages-workspace .message-photo-grid button.is-loading { width: auto; min-width: 70px; }
.messages-workspace .conversation-scroll-end { position: absolute; right: 22px; bottom: 16px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: 0 4px 16px #0001; }
.messages-workspace .conversation-composer { border: 0; background: transparent; padding: 12px clamp(18px, 3vw, 28px) 17px; }
.messages-workspace .conversation-composer-row { display: block; }
.messages-workspace .conversation-composer-input-shell { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: end; gap: 6px; min-height: 58px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.messages-workspace .conversation-composer textarea { width: 100%; height: auto; min-height: 42px; max-height: 132px; margin: 0; padding: 10px 2px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 13px; line-height: 22px; outline: none; box-shadow: none; resize: none; }
.messages-workspace .conversation-composer textarea:focus-visible { outline: none; }
.messages-workspace .conversation-attach { width: 42px; min-height: 42px; align-self: end; border: 0; border-radius: 10px; background: transparent; }
.messages-workspace .conversation-attach:has(input:disabled) { opacity: .4; pointer-events: none; }
.messages-workspace #sendConversationMessageBtn { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 10px; border: 0; border-radius: 11px; background: var(--button-bg); color: var(--button-text); box-shadow: none; }
.messages-workspace #sendConversationMessageBtn:disabled { background: var(--surface-soft); color: var(--muted); opacity: .55; }
.messages-workspace #sendConversationMessageBtn[aria-busy="true"] { opacity: 1; }
.messages-workspace .conversation-photo-drafts { padding: 0 0 5px; gap: 9px; }
.messages-workspace .conversation-photo-drafts > span { width: 64px; height: 64px; }
.conversation-composer-hint { display: flex; justify-content: space-between; gap: 10px; margin: 9px 6px 0; color: var(--muted); font-size: 9px; opacity: .8; }
.messages-workspace .conversation-pane-empty { grid-template-rows: 1fr; }
.messages-workspace .conversation-selection-empty { gap: 12px; max-width: 340px; padding: 24px; }
.messages-empty-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 10px; border: 1px solid color-mix(in srgb,var(--msg-accent) 15%,var(--line)); border-radius: 25px; background: var(--msg-tint); color: var(--msg-accent); }
.messages-empty-icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
.messages-workspace .conversation-selection-empty strong { font-size: 19px; font-weight: 750; letter-spacing: -.4px; }
.messages-workspace .conversation-selection-empty > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.8; }
.conversation-start { margin: auto; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.conversation-start strong { max-width: 260px; font-size: 13px; font-weight: 500; line-height: 1.8; }
.messages-workspace .conversation-chat-blocked { border: 0; background: var(--surface); padding: 18px 24px; }
.messages-workspace .messages-empty-state { align-self: center; justify-self: center; display: grid; justify-items: center; gap: 14px; padding: 30px; }
.messages-workspace .messages-empty-copy { display: grid; gap: 10px; max-width: 320px; text-align: center; }
.messages-workspace .messages-empty-copy strong { font-size: 19px; color: var(--text); }
.messages-workspace .messages-empty-copy span { font-size: 12px; color: var(--muted); line-height: 1.8; }
.messages-workspace .conversation-action-modal .modal-card { border-radius: 22px; padding: 30px; }
.messages-workspace .conversation-action-modal .modal-close { border: 0; box-shadow: none; background: transparent; color: var(--muted); }
@media (hover:hover) and (pointer:fine) {
 .messages-workspace .conversation-list-item:not(.active):hover { color: var(--text); background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface)); }
 .messages-workspace :is(.conversation-actions-trigger,.conversation-icon-action):hover { background: var(--surface-soft) !important; color: var(--text) !important; }
 .messages-workspace .message-photo-grid button:hover { background: var(--surface-soft); }
}
@media (min-width:821px) {
 body.is-messages-route .market-shell { display: flex; flex-direction: column; }
 body.is-messages-route .market-header { flex: 0 0 auto; }
 body.is-messages-route .header-actions { justify-self: end; }
 body.is-messages-route .market-main { flex: 1; }
}
@media (max-width:1100px) and (min-width:821px) {
 body.is-messages-route .messages-workspace { grid-template-columns: 290px minmax(0,1fr); }
 .messages-workspace .conversation-pane > header { padding: 15px 18px; }
 .messages-workspace .conversation-body { padding-inline: 14px; }
 .messages-workspace .conversation-actions-trigger span { display: none; }
}
@media (max-width:820px) {
 body.is-messages-route .market-main { top: 70px; right: 0; left: 0; bottom: calc(88px + env(safe-area-inset-bottom)); height: auto; padding: 0; }
 body.is-messages-route #messages { display: block; height: 100%; }
 body.is-messages-route .messages-workspace { height: 100%; min-height: 0; grid-template-columns: 1fr; border-radius: 0; }
 .messages-workspace .messages-list { border: 0; }
 .messages-workspace .messages-list-head { padding: 22px 20px 14px; }
 .messages-workspace .conversation-pane > header { min-height: 76px; padding: 12px 16px; gap: 8px; }
 .messages-workspace .conversation-back { display: grid; flex: 0 0 auto; width: 36px; min-width: 36px; height: 40px; min-height: 40px; padding: 8px; border: 0; background: transparent; color: var(--muted); box-shadow: none; }
 .messages-workspace .conversation-header-identity .conversation-name-line > :is(strong,button) { font-size: 13px; }
 .messages-workspace .conversation-header-identity .conversation-avatar { width: 36px; height: 36px; }
 .messages-workspace .conversation-actions-trigger { width: 36px; padding: 8px !important; }
 .messages-workspace .conversation-actions-trigger span { display: none; }
 .messages-workspace .conversation-body { padding: 16px; gap: 14px; }
 .messages-workspace .conversation-composer { padding: 10px 14px 12px; }
 .messages-workspace .message-row { max-width: 92%; }
 .messages-workspace .message-bubble { font-size: 13px; }
 .messages-workspace .conversation-action-modal .modal-card { padding: 25px 20px; }
}
@media (max-width:520px) {
 body.is-messages-route .market-main { right: 0; left: 0; padding: 0; bottom: calc(80px + env(safe-area-inset-bottom)); }
 body.is-messages-route .messages-workspace { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
 .messages-workspace .conversation-pane > header { gap: 3px; padding: 12px 10px 12px 5px; }
 .messages-workspace .conversation-pane > header > .conversation-header-identity { gap: 9px; }
 .messages-workspace .conversation-header-copy { gap: 3px; }
 .messages-workspace .conversation-header-copy small { font-size: 10px; }
 .messages-workspace .conversation-body { padding: 14px 12px 20px; }
 .messages-workspace .message-row { max-width: 94%; gap: 7px; }
 .messages-workspace .message-bubble { padding: 10px 12px 7px; }
 .messages-workspace .message-photo-grid { max-width: min(100%,280px); }
 .messages-workspace .conversation-composer { padding: 9px 10px 11px; }
 .messages-workspace .conversation-composer-input-shell { grid-template-columns: 36px minmax(0,1fr) 40px; gap: 3px; padding: 6px; border-radius: 14px; }
 .messages-workspace .conversation-attach { width: 36px; }
 .conversation-composer-hint { display: none; }
 .messages-workspace .conversation-actions-controls { gap: 0; }
 .messages-workspace .conversation-action-bar .conversation-icon-action { width: 34px; min-width: 34px; }
}


.messages-workspace .conversation-photo-viewer > .plain-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; box-shadow: none; background: transparent; }
.messages-workspace .conversation-photo-viewer > .plain-close::before { display: block; content: ""; grid-area: 1 / 1; width: 30px; height: 30px; border-radius: 50%; background: #171717; }
.messages-workspace .conversation-photo-viewer > .plain-close::after { display: none; }
.messages-workspace .conversation-photo-viewer > .plain-close svg { display: block; grid-area: 1 / 1; width: 18px; height: 18px; stroke-width: 2; }

body.is-messages-route .messages-workspace.is-empty { grid-template-columns: 1fr; }
.messages-workspace .messages-empty-pane { display: grid; position: relative; grid-template-rows: auto minmax(0,1fr); }
.messages-workspace .messages-empty-header { background: transparent; border: 0; padding: 26px; }
.messages-workspace .messages-empty-header h2 { margin: 0; color: var(--text); font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.messages-workspace .messages-empty-state > img { width: clamp(150px,19vw,210px); max-height: min(300px,40dvh); height: auto; object-fit: contain; }
.messages-workspace .messages-empty-settings .chat-settings-button { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }

/* Personal account identity, separate from the store profile. */
.profile-store-membership { display: flex; align-items: center; gap: 9px; margin-top: 16px; min-width: 0; }
.profile-store-membership > svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-store-membership > div { min-width: 0; display: grid; gap: 2px; }
.profile-store-membership small { font-size: 11px; line-height: 1.4; color: var(--muted); }
.profile-store-membership strong { font-size: 13px; line-height: 1.5; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.profile-store-membership-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.profile-resign-trigger { position: relative; display: inline-grid; place-items: center; width: 24px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; }
.profile-resign-trigger::after { content: ""; position: absolute; inset: -10px -8px; }
.profile-resign-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-summary-card.account-summary .profile-identity .profile-resign-tooltip { position: absolute; display: none; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 6px 9px; margin: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 11px; box-shadow: var(--shadow); pointer-events: none; z-index: 2; }
.profile-summary-card.account-summary .profile-resign-trigger:focus-visible .profile-resign-tooltip { display: block; }
.profile-resign-trigger:focus-visible { outline: none; color: var(--text); }
.profile-resign-trigger:focus-visible svg { stroke-width: 2; }
#profileStoreMembership .profile-resign-trigger:is(:hover, :focus, :active) { outline: none; border: 0; box-shadow: none; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .profile-resign-trigger:hover { background: transparent; color: var(--text); }
  .profile-summary-card.account-summary .profile-resign-trigger:hover .profile-resign-tooltip { display: block; }
}
.profile-resign-dialog { position: relative; width: min(440px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; }
.profile-resign-dialog h2 { margin: 0 36px 12px 0; font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.profile-resign-dialog p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.profile-resign-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; min-height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); box-shadow: none; font-size: 24px; }
.profile-resign-dialog .profile-resign-close:is(:hover, :focus, :focus-visible, :active) { background: transparent; border: 0; outline: none; box-shadow: none; color: var(--text); }
.profile-resign-store { margin: 20px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-soft); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.profile-resign-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.profile-resign-actions button { min-height: 44px; border-radius: 10px; padding: 10px 17px; font-size: 13px; }
.profile-resign-actions .profile-resign-confirm { background: var(--bad); color: #fff; border: 1px solid transparent; }
.profile-resign-actions .profile-resign-confirm:hover { background: color-mix(in srgb, var(--bad) 88%, #000); }
.profile-resign-otp { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.profile-resign-otp input { width: 100%; min-height: 44px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit; }
.profile-resign-dialog .profile-resign-error { color: var(--bad); margin-top: 12px; }
.profile-summary-card.account-summary {
  grid-template-columns: 96px minmax(0, 1fr); gap: 24px;
  padding: 28px; border-radius: 16px; background: var(--surface-soft);
}
.profile-summary-card.account-summary .profile-avatar-wrap {
  grid-area: auto; width: 96px; height: 96px; border: 0;
  background: transparent; box-shadow: none;
}
.profile-summary-card.account-summary .profile-avatar-wrap img { width: 96px; height: 96px; }
.profile-summary-card.account-summary .profile-summary-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; text-align: left; }
.profile-summary-card.account-summary .profile-identity { grid-area: auto; margin: 0; text-align: left; min-width: 0; }
.profile-summary-card.account-summary .profile-identity h3 { color: var(--text); font-size: clamp(23px, 2.5vw, 29px); line-height: 1.25; letter-spacing: -.6px; overflow-wrap: anywhere; }
.profile-summary-card.account-summary #profileRoles { display: flex; flex-wrap: wrap; margin-top: 9px; }
.profile-summary-card.account-summary #profileRoles .conversation-role-badge { margin: 0; min-height: 22px; font-size: 10px; padding: 4px 8px; }
.profile-summary-card.account-summary .profile-facts { grid-area: auto; display: grid; grid-template-columns: repeat(2, minmax(110px, 160px)); gap: 12px 24px; margin: 0; width: auto; }
.profile-summary-card.account-summary .profile-facts > div { display: grid; grid-template-columns: auto; gap: 5px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.profile-summary-card.account-summary .profile-facts dt { font-size: 11px; line-height: 1.4; color: var(--muted); }
.profile-summary-card.account-summary .profile-facts dd { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text); }
.account-summary ~ .profile-location-row { grid-template-columns: minmax(220px, .7fr) minmax(160px, 1fr) auto; }
.account-summary ~ .profile-location-row .profile-country-field { min-width: 0; }
.account-summary ~ .profile-location-row .profile-country-field select { padding-right: 54px; }
@media (max-width: 1100px) {
  .profile-summary-card.account-summary .profile-summary-main { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-summary-card.account-summary .profile-facts { display: flex; flex-wrap: wrap; }
  .account-summary ~ .profile-location-row { grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); }
  .account-summary ~ .profile-location-row > button { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 600px) {
  .profile-summary-card.account-summary { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .profile-summary-card.account-summary .profile-avatar-wrap,
  .profile-summary-card.account-summary .profile-avatar-wrap img { width: 64px; height: 64px; }
  .profile-summary-card.account-summary .profile-avatar-wrap { align-self: start; }
  .profile-summary-card.account-summary .profile-facts { gap: 12px 20px; }
  .account-summary ~ .profile-location-row { grid-template-columns: minmax(0, 1fr); }
  .account-summary ~ .profile-location-row > button { justify-self: stretch; }
}

/* Both boot and conversation-list loading follow the full-height messages layout. */
body.is-messages-route #authorizedHydrationSkeleton { height: 100%; min-height: 0; padding: 0; overflow: hidden; }
body.is-messages-route .messages-loading { display: block; grid-column: 1 / -1; height: 100%; }
body.is-messages-route .route-skeleton-messages { display: block; height: 100%; min-height: 0; }
body.is-messages-route .route-skeleton-message-shell {
  height: 100%; min-height: 0; border: 0; border-radius: 0;
  grid-template-columns: clamp(300px, 24vw, 360px) minmax(0, 1fr);
}
body.is-messages-route .route-skeleton-message-shell > aside { padding: 26px 20px; gap: 8px; overflow: hidden; }
.route-skeleton-message-shell .skeleton-messages-heading { display: flex; align-items: center; gap: 10px; margin: 6px 6px 24px; }
.skeleton-messages-heading i:first-child { width: 150px; height: 23px; }
.skeleton-messages-heading i:last-child { width: 24px; height: 23px; border-radius: 8px; }
.route-skeleton-message-shell .skeleton-search { border-radius: 12px; margin: 0 0 12px; }
.skeleton-messages-filters { display: flex; gap: 16px; align-items: center; height: 34px; margin-bottom: 12px; }
.skeleton-messages-filters i:first-child { width: 42px; height: 32px; border-radius: 8px; }
.skeleton-messages-filters i:last-child { width: 110px; height: 10px; }
body.is-messages-route .route-skeleton-chat-pane { min-height: 0; }
body.is-messages-route .route-skeleton-chat-pane > header { padding: 20px 26px; }
body.is-messages-route .route-skeleton-chat-pane > header > div i:first-child { width: min(160px, 65%); }
body.is-messages-route .route-skeleton-chat-pane > header > div i:last-child { width: min(110px, 50%); }
body.is-messages-route .route-skeleton-chat-pane > main { min-height: 0; overflow: hidden; padding: 22px 14px 26px; }
body.is-messages-route .route-skeleton-chat-pane > main i { max-width: 440px; }
body.is-messages-route .route-skeleton-chat-pane > footer { padding: 14px 28px 32px; border: 0; }
@media (min-width: 821px) and (max-width: 1100px) {
  body.is-messages-route .route-skeleton-message-shell { grid-template-columns: 290px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body.is-messages-route .route-skeleton-message-shell { grid-template-columns: 1fr; }
  body.is-messages-route .route-skeleton-message-shell > aside { padding: 20px 16px; border: 0; }
  body.is-messages-route .route-skeleton-chat-pane { display: none; }
}

.forum-community-action { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.forum-community-action svg { width: 20px; height: 20px; }
.forum-community-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.forum-community-prefix { color: var(--text); border-color: var(--line); background: var(--surface-soft); text-transform: none; }
.forum-community-thread-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.forum-community-dialog { width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; overflow: hidden; }
.forum-community-dialog header { position: relative; padding: 24px 60px 20px 24px; border-bottom: 1px solid var(--line); }
.forum-community-dialog h2 { font-size: 20px; line-height: 1.35; margin: 0; }
.forum-community-dialog .profile-resign-close:is(:hover,:focus,:active,:focus-visible) { background: transparent; border: 0; box-shadow: none; outline: none; color: var(--text); }
.forum-community-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; display: grid; gap: 16px; }
.forum-community-copy { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.forum-community-body > label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.forum-community-body input:not([type=checkbox]), .forum-community-body textarea { width: 100%; min-height: 44px; border-radius: 10px; padding: 11px 13px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); font: inherit; }
.forum-community-body textarea { min-height: 90px; resize: vertical; }
.forum-community-upload { display: grid; gap: 12px; }
.forum-community-upload-heading { font-size: 12px; color: var(--muted); }
.forum-community-upload-row { display: flex; align-items: center; gap: 16px; }
.forum-community-upload-preview { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; overflow: hidden; border-radius: 14px; background: var(--surface-soft); color: var(--muted); }
.forum-community-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.forum-community-upload-preview > svg { width: 28px; height: 28px; }
.forum-community-upload-actions { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.forum-community-dialog .forum-community-upload-picker { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-soft); font-size: 12px; line-height: 1.4; cursor: pointer; }
.forum-community-body .forum-community-upload-picker input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.forum-community-upload-picker:focus-within { outline: 2px solid var(--muted); outline-offset: 2px; }
.forum-community-upload-picker[aria-disabled=true] { opacity: .55; cursor: default; }
.forum-community-dialog .forum-community-image-reset { display: inline-flex; min-height: 40px; max-width: 100%; padding: 6px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--muted); text-align: left; font-size: 12px; line-height: 1.5; white-space: normal; }
.forum-community-dialog .forum-community-image-reset:is(:hover,:focus,:active) { background: transparent; border: 0; box-shadow: none; color: var(--text); }
.forum-community-members { display: grid; gap: 0; }
.forum-community-members > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.forum-community-members > div > span:first-child { min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.forum-community-members strong { font-size: 13px; }
.forum-community-members small { color: var(--muted); font-size: 11px; }
.forum-community-members button { padding: 6px 9px; font-size: 11px; }
.forum-community-members > p { margin: 0; color: var(--muted); font-size: 12px; }
.forum-community-dialog footer { display: flex; flex-shrink: 0; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); }
.forum-community-dialog footer button { min-height: 44px; border-radius: 10px; padding: 10px 16px; }
.forum-community-error, .forum-community-confirm p { margin: 0; color: var(--bad); font-size: 12px; line-height: 1.6; }
.forum-community-confirm { display: flex; flex-wrap: wrap; gap: 12px; }
.forum-community-confirm p { flex-basis: 100%; }
@media (max-width: 600px) {
 .forum-section-head > aside { flex-wrap: wrap; }
 .forum-community-dialog header { padding: 20px 56px 16px 18px; }
 .forum-community-body { padding: 16px 18px; }
 .forum-community-dialog footer { padding: 14px 18px; }
 .forum-community-members > div { align-items: flex-start; flex-direction: column; }
}

.forum-section-head .forum-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.forum-workspace :is(.forum-community-action, .forum-section-settings-trigger) {
 position: static; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
 width: 44px !important; min-width: 44px; height: 44px; min-height: 44px;
 padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important;
 color: var(--muted); box-shadow: none !important; outline: none; line-height: 0; vertical-align: middle; transform: none;
}
.forum-workspace :is(.forum-community-action, .forum-section-settings-trigger) svg { display: block; flex: none; width: 20px; height: 20px; margin: 0; stroke-width: 1.7; }
.forum-workspace :is(.forum-community-action, .forum-section-settings-trigger):is(:hover,:focus,:focus-visible,:active) { border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; color: var(--text); transform: none; }
@media (max-width: 820px) {
 .forum-section-head:has(.forum-section-actions) { padding-right: 2px; }
 .forum-section-head .forum-section-actions { position: static; display: flex; flex-wrap: wrap; align-self: stretch; justify-content: flex-start; gap: 6px; }
 .forum-workspace .forum-section-head .forum-section-actions > button { display: inline-flex; width: auto; }
 .forum-section-head .forum-section-actions > .forum-restriction-chip { display: inline-flex; width: auto; }
 .forum-section-head .forum-section-actions .forum-section-settings-trigger { position: static; }
}

.forum-community-dialog .profile-resign-close { display: grid; place-items: center; top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; line-height: 0; }
.forum-community-dialog .profile-resign-close svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.forum-community-members > div > span:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.forum-community-members button { min-height: 40px; font-size: 12px; }
.forum-sort-control { position: relative; display: block; min-width: 0; flex: 1; }
.forum-workspace .forum-thread-controls .forum-sort-control select { width: 100%; appearance: none; -webkit-appearance: none; padding-right: 48px; }
.forum-sort-control > svg { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.forum-workspace .forum-thread-row.has-community-image { grid-template-columns: 36px minmax(0, 1fr) auto; }
.forum-workspace .has-community-image .forum-thread-status { display: grid; width: 36px; height: 36px; border-radius: 10px; }
.forum-section-head > div > .forum-section-heading-icon:has(.forum-community-image) { display: grid; flex: 0 0 36px; width: 36px; height: 36px; }
body:has(.forum-community-dialog) { overflow: hidden; }

.forum-workspace .forum-community-text-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 0 !important; border-radius: 0; background: transparent !important; color: var(--muted); box-shadow: none !important; font-size: 12px; }
.forum-workspace .forum-community-text-action svg { display: block; width: 20px; height: 20px; flex: none; }
.forum-workspace .forum-community-text-action:is(:hover,:focus,:focus-visible,:active), .forum-workspace .forum-community-text-action.is-pinned { background: transparent !important; border: 0 !important; outline: none !important; box-shadow: none !important; color: var(--text); }
.forum-community-create-topic { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.forum-community-create-topic svg { width: 18px; height: 18px; flex: none; }
.forum-community-thread-tools { align-items: center; gap: 12px; flex-wrap: wrap; }

/* Shared store/user status dialog and persistent store distinction. */
.trusted-store-avatar { display: inline-grid; position: relative; flex: none; vertical-align: middle; overflow: visible; }
.trusted-store-avatar > img, .trusted-store-avatar > picture { width: 100%; height: 100%; }
.trusted-store-crown { position: absolute; z-index: 3; top: -7px; right: -7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: #c69a37; box-shadow: 0 1px 5px #0002; pointer-events: auto; }
.trusted-store-crown svg { width: 18px; height: 18px; fill: #e4bc58; stroke: #805b16; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.store-card, .store-cover, .showcase-card { position: relative; }
.store-cover > .trusted-store-crown, .showcase-card > .trusted-store-crown { top: 10px; right: 10px; width: 30px; height: 30px; }
.trusted-store-avatar:has(.forum-author-avatar) { width: 40px; height: 40px; }
.forum-activity-author .trusted-store-avatar, .forum-thread-author .trusted-store-avatar { width: 22px; height: 22px; }
.forum-activity-author .trusted-store-crown, .forum-thread-author .trusted-store-crown { width: 16px; height: 16px; top: -5px; right: -5px; }
.forum-activity-author .trusted-store-crown svg, .forum-thread-author .trusted-store-crown svg { width: 12px; height: 12px; }
.conversation-row .trusted-store-avatar { width: 44px; height: 44px; }
.trusted-store-avatar:has(.message-avatar) { width: 28px; height: 28px; }
.admin-account-action-modal.is-status { width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.admin-account-action-modal.is-status .admin-account-modal-heading { padding-right: 30px; margin-bottom: 22px; }
.admin-account-action-modal.is-status .admin-account-modal-heading > span { display: none; }
.admin-account-action-modal.is-status h2 { font-size: 22px; letter-spacing: -.4px; }
.admin-account-action-modal.is-status .admin-account-modal-close { display: grid; place-items: center; top: 16px; right: 16px; width: 40px; height: 40px; font-size: 26px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.admin-account-action-modal.is-status .admin-account-modal-person { padding: 0 0 22px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); gap: 14px; }
.admin-account-action-modal.is-status .admin-account-modal-person > img { width: 48px; height: 48px; border-radius: 14px; }
.admin-account-action-modal.is-status .admin-account-modal-content { display: grid; gap: 20px; padding-top: 16px; }
.admin-account-action-modal.is-status .admin-account-modal-back { justify-self: start; min-height: 36px; padding: 0; background: transparent; border: 0; }
.admin-account-action-modal.is-status .admin-account-confirm-head { border: 0; padding: 0; background: transparent; min-height: 28px; }
.admin-account-action-modal.is-status .admin-account-comment-field { display: grid; gap: 8px; margin: 0; }
.admin-account-action-modal.is-status textarea { min-height: 88px; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); resize: vertical; }
.admin-account-action-modal.is-status .admin-account-access-action { min-height: 46px; border-radius: 12px; margin: 0; border: 1px solid var(--line); }
.admin-account-action-modal.is-status .admin-account-access-action.is-danger { color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 20%, var(--line)); }
.admin-store-trust-panel { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.admin-store-trust-panel > div { min-width: 0; flex: 1; }
.admin-store-trust-panel strong { font-size: 14px; }
.admin-store-trust-panel p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.admin-store-trust-panel button { flex: none; min-height: 40px; padding: 8px 12px; }
@media(max-width:600px) { .admin-account-action-modal.is-status { padding: 22px 18px; } .admin-store-trust-panel { align-items: stretch; flex-direction: column; } }

.trusted-store-crown { width: 23px; height: 23px; top: -5px; right: -5px; border: 1px solid var(--surface); border-radius: 50%; background: var(--surface); box-shadow: none; }
.trusted-store-crown svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.trusted-store-crown, .trusted-store-info-symbol { color: #8c641d; }
:root[data-theme="dark"] :is(.trusted-store-crown, .trusted-store-info-symbol) { color: #e8c779; }
.trusted-store-crown { cursor: pointer; }
.trusted-store-crown:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.trusted-store-avatar:has(.message-avatar) .trusted-store-crown { width: 17px; height: 17px; top: -4px; right: -4px; border-width: 1px; border-radius: 50%; }
.trusted-store-avatar:has(.message-avatar) .trusted-store-crown svg { width: 13px; height: 13px; }
.account-status-dialog.admin-account-action-modal { display: flex; flex-direction: column; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border-radius: 22px; background: var(--surface); color: var(--text); overflow: hidden; }
.account-status-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 26px 20px; gap: 16px; }
.account-status-header > div > span { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.account-status-header h2 { font-size: 23px; letter-spacing: -.5px; margin: 6px 0 0; line-height: 1.3; }
.account-status-dialog .admin-account-modal-close { position: static; display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.account-status-dialog .admin-account-modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.account-status-person { margin: 0 26px 22px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-status-person > img, .account-status-person > .trusted-store-avatar { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.account-status-person img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.account-status-person > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.account-status-person strong { font-size: 15px; overflow-wrap: anywhere; }
.account-status-person small { font-size: 12px; color: var(--muted); }
.account-status-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; flex: none; }
.account-status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #55a68a; }
.account-status-pill.is-blocked i { background: var(--bad); }
.account-status-tabs { display: flex; gap: 20px; margin: 0 26px; border-bottom: 1px solid var(--line); }
.account-status-tabs button { min-height: 44px; padding: 8px 0 12px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--muted); font-size: 12px; }
.account-status-tabs button[aria-pressed=true] { color: var(--text); box-shadow: inset 0 -2px var(--text) !important; }
.account-status-body { padding: 24px 26px; display: grid; gap: 24px; overflow-y: auto; min-height: 0; }
.account-status-decision { display: flex; align-items: flex-start; gap: 14px; }
.account-status-symbol { position: relative; display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); }
.account-status-symbol > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.account-status-symbol .trusted-store-crown { position: static; width: 28px; height: 28px; border: 0; background: transparent; }
.account-status-symbol .trusted-store-crown svg { width: 23px; height: 23px; }
.account-status-decision h3 { margin: 1px 0 7px; font-size: 15px; line-height: 1.45; }
.account-status-decision p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.account-status-dialog .admin-account-comment-field { margin: 0; display: grid; gap: 9px; }
.account-status-dialog .admin-account-comment-field > span { font-size: 12px; color: var(--text); }
.account-status-dialog textarea { width: 100%; min-height: 92px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 13px; }
.account-status-dialog .admin-account-comment-field small { font-size: 10px; line-height: 1.5; color: var(--muted); }
.account-status-footer { display: flex; justify-content: flex-end; flex-shrink: 0; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); }
.account-status-footer button { min-height: 44px; border-radius: 11px; padding: 10px 15px; font-size: 12px; }
.account-status-submit { background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); }
.account-status-submit.is-danger { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 22%, var(--line)); }
@media(max-width:540px) { .account-status-header { padding: 22px 20px 18px; } .account-status-person { margin: 0 20px 18px; } .account-status-tabs { margin: 0 20px; gap: 16px; } .account-status-body { padding: 20px; } .account-status-footer { padding: 16px 20px; } .account-status-header h2 { font-size: 21px; } .account-status-pill { font-size: 10px; } }

.trusted-store-info-dialog { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; padding: 36px 30px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 24px 80px #0004; }
.trusted-store-info-dialog::backdrop { background: #080b1273; backdrop-filter: blur(6px); }
.trusted-store-info-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--muted); }
.trusted-store-info-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.trusted-store-info-symbol { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; background: var(--surface-soft); }
.trusted-store-info-symbol svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trusted-store-info-kicker { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.trusted-store-info-dialog h2 { margin: 9px 0 14px; font-size: 23px; letter-spacing: -.5px; line-height: 1.3; }
.trusted-store-info-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.trusted-store-info-done { width: 100%; min-height: 44px; margin-top: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text); font-size: 13px; }

.store-card > .trusted-store-crown { top: 5px; right: 5px; width: 32px; height: 32px; }
.showcase-card > .trusted-store-crown { width: 34px; height: 34px; }
:is(.store-card, .showcase-card) > .trusted-store-crown svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .store-card > .trusted-store-crown { top: 1px; right: 1px; width: 26px; height: 26px; }
  .store-card > .trusted-store-crown svg { width: 16px; height: 16px; }
}
.conversation-row .trusted-store-crown { width: 18px; height: 18px; top: -3px; right: -3px; }
.conversation-row .trusted-store-crown svg { width: 13px; height: 13px; }

/* Keep the crown's ink independent of catalog text colors. */
.trusted-store-crown { --trusted-crown-ink: #8c641d; }
:root[data-theme="dark"] .trusted-store-crown { --trusted-crown-ink: #e8c779; }
:is(.store-card, .showcase-card) > .trusted-store-crown svg path { stroke: var(--trusted-crown-ink); }
.showcase-card:has(> .trusted-store-crown) > .showcase-card-actions { top: 10px; right: 50px; }
.storefront-product-grid { --storefront-card-action-size: 30px; }
.storefront-product-grid .showcase-card > .trusted-store-crown {
  width: var(--storefront-card-action-size);
  height: var(--storefront-card-action-size);
}
.storefront-product-grid .showcase-card > .trusted-store-crown svg {
  width: 17px;
  height: 17px;
}
.storefront-product-grid .showcase-card:has(> .trusted-store-crown) > .showcase-card-actions {
  right: calc(16px + var(--storefront-card-action-size));
}
@media (max-width: 520px) {
  .storefront-product-grid { --storefront-card-action-size: 26px; }
  .storefront-product-grid .showcase-card > .trusted-store-crown svg { width: 16px; height: 16px; }
}
.showcase-edit-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.showcase-edit-actions .showcase-delete-action { margin-inline-end: auto; color: var(--bad); }

.product-address-delete-dialog {
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
}
.product-address-delete-dialog::backdrop { background: rgb(0 0 0 / .55); }
.product-address-delete-dialog h2 { margin: 0; font-size: 19px; }
.product-address-delete-dialog p { margin: 10px 0 20px; color: var(--muted); }

/* A refreshed dialog must not replay its entrance. */
.modal-backdrop, .wallet-modal-backdrop, [role="dialog"], [role="dialog"] > .modal-card {
  animation: none;
}
@media (hover: hover) and (pointer: fine) {
  [role="dialog"] button:is(.plain-close, .modal-close, .wallet-modal-close, .product-photo-close, .admin-account-modal-close, .staff-confirm-close, .logout-confirm-close, .admin-team-member-close, .forum-modal-close, .profile-resign-close):hover:not(:focus-visible) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

@media (pointer: coarse), (max-width: 820px) {
  .product-packaging-modal { touch-action: pan-y pinch-zoom; }
  .product-packaging-modal input:not([type="hidden"]),
  .product-packaging-modal select,
  .product-packaging-modal textarea { font-size: max(16px, 1rem); }
}

@media (min-width: 821px) and (max-width: 1200px) {
  .market-header-inner {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding-top: 8px;
  }
  .market-header-inner > .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .market-header-inner > .market-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}


.onboarding-active { overflow: hidden; }
.onboarding-root { position: fixed; inset: 0; z-index: 2147483000; font-family: inherit; }
.onboarding-root { --tour-panel: #fff; --tour-text: #11141c; --tour-muted: #687386; --tour-border: #dfe3ea; --tour-hover: #f0f2f6; --tour-primary: #11141c; --tour-primary-text: #fff; }
:root[data-theme="dark"] .onboarding-root { --tour-panel: #171b25; --tour-text: #f6f7fa; --tour-muted: #aab4c8; --tour-border: #3a4151; --tour-hover: #2b3241; --tour-primary: #f6f7fa; --tour-primary-text: #11141c; }
.onboarding-shade { position: absolute; inset: 0; background: rgba(5, 8, 16, .78); }
.onboarding-root:not(.is-intro) .onboarding-shade { display: none; }
.onboarding-spotlight { position: fixed; z-index: 1; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(5, 8, 16, .78), 0 0 0 2px rgba(255,255,255,.85), 0 0 32px rgba(255,255,255,.15); pointer-events: none; }
.onboarding-card { position: fixed; z-index: 3; box-sizing: border-box; padding: 24px; color: var(--tour-text); background: var(--tour-panel); border: 1px solid var(--tour-border); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.22); max-height: calc(100dvh - 32px); overflow: auto; }
.onboarding-card.is-waiting { opacity: .72; }
.onboarding-card::before { content: ""; position: absolute; top: -7px; left: 38px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--tour-panel); border-left: 1px solid var(--tour-border); border-top: 1px solid var(--tour-border); }
.onboarding-card.is-above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.onboarding-eyebrow { display: flex; justify-content: space-between; gap: 12px; color: var(--tour-muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-card h2 { margin: 16px 0 8px; color: var(--tour-text); font-size: clamp(20px, 4vw, 26px); line-height: 1.2; }
.onboarding-card p { margin: 0; color: var(--tour-muted); font-size: 14px; line-height: 1.55; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.onboarding-actions > div { display: flex; gap: 8px; }
.onboarding-actions button { min-height: 40px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--tour-border); background: transparent; color: var(--tour-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 160ms cubic-bezier(.23,1,.32,1), transform 160ms cubic-bezier(.23,1,.32,1); }
.onboarding-actions button:hover { background: var(--tour-hover); color: var(--tour-text); }
.onboarding-actions button:active { transform: scale(.97); }
.onboarding-actions .onboarding-next { background: var(--tour-primary); color: var(--tour-primary-text); border-color: var(--tour-primary); }
.onboarding-actions .onboarding-next:hover { background: var(--tour-primary); color: var(--tour-primary-text); filter: brightness(.9); }
.onboarding-actions button:focus-visible, .onboarding-demo button:focus-visible { outline: 2px solid #f5a938; outline-offset: 2px; }
.onboarding-root.is-intro .onboarding-spotlight { display: none; }
.onboarding-root.is-intro .onboarding-card { width: min(440px, calc(100vw - 32px)) !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.onboarding-root.is-intro .onboarding-card::before { display: none; }
.onboarding-demo { position: fixed; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 26px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.onboarding-demo[hidden] { display: none; }
.onboarding-root.is-demo .onboarding-spotlight { display: none; }
.onboarding-root.is-demo .onboarding-shade { display: block; }
.onboarding-root.is-demo .onboarding-card { position: static; width: 100% !important; max-height: none; overflow: visible; transform: none; padding: 0 0 16px; margin-bottom: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); box-shadow: none; }
.onboarding-root.is-demo .onboarding-card::before { display: none; }
.onboarding-root.is-demo .onboarding-card h2 { margin: 8px 0 6px; color: var(--text); font-size: 20px; }
.onboarding-root.is-demo .onboarding-card p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.onboarding-root.is-demo .onboarding-eyebrow { color: var(--muted); }
.onboarding-root.is-demo .onboarding-actions { margin-top: 12px; }
.onboarding-root.is-demo .onboarding-actions button { color: var(--text); border-color: var(--line); }
.onboarding-root.is-demo .onboarding-actions .onboarding-next { background: var(--text); border-color: var(--text); color: var(--surface); }
.onboarding-root.is-demo .onboarding-actions button:hover { background: var(--surface-soft); color: var(--text); }
.onboarding-root.is-demo .onboarding-actions .onboarding-next:hover { background: var(--text); color: var(--surface); filter: brightness(.9); }
.onboarding-demo h3 { margin: 8px 0; }
.onboarding-demo p { line-height: 1.5; }
.onboarding-demo button { min-height: 43px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.onboarding-demo #onboardingDemoAction { background: var(--button-bg); color: var(--button-text); }
.onboarding-demo #onboardingDemoAction:hover { background: var(--button-bg-hover); color: var(--button-text); }
.onboarding-demo .onboarding-demo-note { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.onboarding-sample-card { position: relative; z-index: 2147483002; }
.onboarding-sample-card .showcase-card-main > img { object-fit: contain; padding: 16%; background: var(--surface-soft); }
.onboarding-coupon-field, .onboarding-fiat-amount { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 600; }
.onboarding-coupon-field input, .onboarding-fiat-amount input { width: 100%; min-height: 43px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); box-sizing: border-box; }
.onboarding-wallet-panel h2 { margin: 0 0 12px; font-size: 23px; }
.onboarding-wallet-panel > p { color: var(--muted); }
.onboarding-wallet-method { display: flex; justify-content: space-between; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.onboarding-wallet-panel > button { width: 100%; margin-top: 16px; }
.onboarding-fiat-amount { position: relative; }
.onboarding-fiat-amount strong { position: absolute; right: 14px; bottom: 13px; }
.onboarding-btc-details { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.onboarding-btc-details > span, .onboarding-invoice-facts span { color: var(--muted); font-size: 12px; }
.onboarding-btc-details > strong { overflow-wrap: anywhere; font-size: 13px; }
.onboarding-btc-details > img { display: block; width: 156px; height: 156px; margin: 0 auto; border-radius: 8px; background: #fff; }
.onboarding-warning { margin: 14px 0 0 !important; padding: 11px 13px; border: 1px solid #d5aa53; border-radius: 10px; background: color-mix(in srgb, #f0bc5b 12%, var(--surface)); color: var(--text) !important; font-size: 13px; }
.onboarding-invoice-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, #e9aa38 17%, var(--surface)); color: var(--text); font-size: 12px; font-weight: 700; }
.onboarding-invoice-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.onboarding-invoice-facts > div { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.onboarding-invoice-facts strong { overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 600px) {
  .onboarding-card { padding: 18px; border-radius: 18px; }
  .onboarding-root:not(.is-intro) .onboarding-card { left: 12px !important; top: auto !important; bottom: 92px; width: calc(100vw - 24px) !important; max-height: min(38dvh, 280px); }
  .onboarding-root:not(.is-intro) .onboarding-card::before { display: none; }
  .onboarding-demo { left: 12px; top: 12px; transform: none; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 18px; }
  .onboarding-root.is-demo .onboarding-card { left: auto !important; right: auto; top: auto !important; bottom: auto; width: 100% !important; max-height: none; padding: 0 0 12px; margin-bottom: 12px; }
  .onboarding-root.is-demo .onboarding-actions { margin-top: 10px; }
  .onboarding-demo .purchase-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 14px; }
  .onboarding-demo .purchase-summary-grid > div { padding: 10px; }
  .onboarding-demo .purchase-balance { margin-top: 12px; padding: 11px; }
  .onboarding-demo .purchase-modal-actions { margin-top: 12px; }
  .onboarding-demo .onboarding-coupon-field { margin-top: 12px; }
  .onboarding-btc-details > img { width: 132px; height: 132px; }
  .onboarding-invoice-facts { gap: 7px; }
  .onboarding-invoice-facts > div { padding: 9px; }
  .onboarding-actions button { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .onboarding-actions button { transition: none; } }

.footer-rich-text .rt-image.rt-image-width-10{width:10%}
.footer-rich-text .rt-image.rt-image-width-11{width:11%}
.footer-rich-text .rt-image.rt-image-width-12{width:12%}
.footer-rich-text .rt-image.rt-image-width-13{width:13%}
.footer-rich-text .rt-image.rt-image-width-14{width:14%}
.footer-rich-text .rt-image.rt-image-width-15{width:15%}
.footer-rich-text .rt-image.rt-image-width-16{width:16%}
.footer-rich-text .rt-image.rt-image-width-17{width:17%}
.footer-rich-text .rt-image.rt-image-width-18{width:18%}
.footer-rich-text .rt-image.rt-image-width-19{width:19%}
.footer-rich-text .rt-image.rt-image-width-20{width:20%}
.footer-rich-text .rt-image.rt-image-width-21{width:21%}
.footer-rich-text .rt-image.rt-image-width-22{width:22%}
.footer-rich-text .rt-image.rt-image-width-23{width:23%}
.footer-rich-text .rt-image.rt-image-width-24{width:24%}
.footer-rich-text .rt-image.rt-image-width-25{width:25%}
.footer-rich-text .rt-image.rt-image-width-26{width:26%}
.footer-rich-text .rt-image.rt-image-width-27{width:27%}
.footer-rich-text .rt-image.rt-image-width-28{width:28%}
.footer-rich-text .rt-image.rt-image-width-29{width:29%}
.footer-rich-text .rt-image.rt-image-width-30{width:30%}
.footer-rich-text .rt-image.rt-image-width-31{width:31%}
.footer-rich-text .rt-image.rt-image-width-32{width:32%}
.footer-rich-text .rt-image.rt-image-width-33{width:33%}
.footer-rich-text .rt-image.rt-image-width-34{width:34%}
.footer-rich-text .rt-image.rt-image-width-35{width:35%}
.footer-rich-text .rt-image.rt-image-width-36{width:36%}
.footer-rich-text .rt-image.rt-image-width-37{width:37%}
.footer-rich-text .rt-image.rt-image-width-38{width:38%}
.footer-rich-text .rt-image.rt-image-width-39{width:39%}
.footer-rich-text .rt-image.rt-image-width-40{width:40%}
.footer-rich-text .rt-image.rt-image-width-41{width:41%}
.footer-rich-text .rt-image.rt-image-width-42{width:42%}
.footer-rich-text .rt-image.rt-image-width-43{width:43%}
.footer-rich-text .rt-image.rt-image-width-44{width:44%}
.footer-rich-text .rt-image.rt-image-width-45{width:45%}
.footer-rich-text .rt-image.rt-image-width-46{width:46%}
.footer-rich-text .rt-image.rt-image-width-47{width:47%}
.footer-rich-text .rt-image.rt-image-width-48{width:48%}
.footer-rich-text .rt-image.rt-image-width-49{width:49%}
.footer-rich-text .rt-image.rt-image-width-50{width:50%}
.footer-rich-text .rt-image.rt-image-width-51{width:51%}
.footer-rich-text .rt-image.rt-image-width-52{width:52%}
.footer-rich-text .rt-image.rt-image-width-53{width:53%}
.footer-rich-text .rt-image.rt-image-width-54{width:54%}
.footer-rich-text .rt-image.rt-image-width-55{width:55%}
.footer-rich-text .rt-image.rt-image-width-56{width:56%}
.footer-rich-text .rt-image.rt-image-width-57{width:57%}
.footer-rich-text .rt-image.rt-image-width-58{width:58%}
.footer-rich-text .rt-image.rt-image-width-59{width:59%}
.footer-rich-text .rt-image.rt-image-width-60{width:60%}
.footer-rich-text .rt-image.rt-image-width-61{width:61%}
.footer-rich-text .rt-image.rt-image-width-62{width:62%}
.footer-rich-text .rt-image.rt-image-width-63{width:63%}
.footer-rich-text .rt-image.rt-image-width-64{width:64%}
.footer-rich-text .rt-image.rt-image-width-65{width:65%}
.footer-rich-text .rt-image.rt-image-width-66{width:66%}
.footer-rich-text .rt-image.rt-image-width-67{width:67%}
.footer-rich-text .rt-image.rt-image-width-68{width:68%}
.footer-rich-text .rt-image.rt-image-width-69{width:69%}
.footer-rich-text .rt-image.rt-image-width-70{width:70%}
.footer-rich-text .rt-image.rt-image-width-71{width:71%}
.footer-rich-text .rt-image.rt-image-width-72{width:72%}
.footer-rich-text .rt-image.rt-image-width-73{width:73%}
.footer-rich-text .rt-image.rt-image-width-74{width:74%}
.footer-rich-text .rt-image.rt-image-width-75{width:75%}
.footer-rich-text .rt-image.rt-image-width-76{width:76%}
.footer-rich-text .rt-image.rt-image-width-77{width:77%}
.footer-rich-text .rt-image.rt-image-width-78{width:78%}
.footer-rich-text .rt-image.rt-image-width-79{width:79%}
.footer-rich-text .rt-image.rt-image-width-80{width:80%}
.footer-rich-text .rt-image.rt-image-width-81{width:81%}
.footer-rich-text .rt-image.rt-image-width-82{width:82%}
.footer-rich-text .rt-image.rt-image-width-83{width:83%}
.footer-rich-text .rt-image.rt-image-width-84{width:84%}
.footer-rich-text .rt-image.rt-image-width-85{width:85%}
.footer-rich-text .rt-image.rt-image-width-86{width:86%}
.footer-rich-text .rt-image.rt-image-width-87{width:87%}
.footer-rich-text .rt-image.rt-image-width-88{width:88%}
.footer-rich-text .rt-image.rt-image-width-89{width:89%}
.footer-rich-text .rt-image.rt-image-width-90{width:90%}
.footer-rich-text .rt-image.rt-image-width-91{width:91%}
.footer-rich-text .rt-image.rt-image-width-92{width:92%}
.footer-rich-text .rt-image.rt-image-width-93{width:93%}
.footer-rich-text .rt-image.rt-image-width-94{width:94%}
.footer-rich-text .rt-image.rt-image-width-95{width:95%}
.footer-rich-text .rt-image.rt-image-width-96{width:96%}
.footer-rich-text .rt-image.rt-image-width-97{width:97%}
.footer-rich-text .rt-image.rt-image-width-98{width:98%}
.footer-rich-text .rt-image.rt-image-width-99{width:99%}
.footer-rich-text .rt-image.rt-image-width-100{width:100%}