/* ===================================
   PRINTED WEAR COMMUNITY – MAIN CSS
   Modern social platform design
   =================================== */

/* ---- Custom Properties ---- */
:root {
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --bg: #f5f5f0;
  --bg-elevated: #ffffff;
  --bg-strong: #ffffff;
  --bg-subtle: #f0ede8;
  --bg-hover: rgba(0, 0, 0, 0.04);

  --text: #111110;
  --text-soft: #6b6560;
  --text-muted: #b3aea8;

  --line: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14), 0 8px 20px rgba(0,0,0,0.08);

  --primary: #d94f1e;
  --primary-hover: #c44419;
  --primary-soft: rgba(217, 79, 30, 0.1);
  --primary-text: #d94f1e;

  --success: #1f7a45;
  --success-soft: rgba(31, 122, 69, 0.1);
  --warning: #a06200;
  --warning-soft: rgba(160, 98, 0, 0.1);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.1);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --topbar-h: 60px;
  --drawer-w: 300px;
  --transition: 0.18s ease;
}

html[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-elevated: #1a1a1a;
  --bg-strong: #222222;
  --bg-subtle: #2a2a2a;
  --bg-hover: rgba(255,255,255,0.05);

  --text: #f2f0ed;
  --text-soft: #9c9690;
  --text-muted: #504c48;

  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow: 0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.65);

  --primary: #f06a38;
  --primary-hover: #e85e2c;
  --primary-soft: rgba(240, 106, 56, 0.14);
  --primary-text: #f06a38;

  --success: #3dab68;
  --success-soft: rgba(61, 171, 104, 0.12);
  --warning: #e5a020;
  --warning-soft: rgba(229, 160, 32, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-drawer-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

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

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

h1, h2, h3, h4 { line-height: 1.2; }

[hidden] {
  display: none !important;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.8rem !important;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.16rem),
    calc(100% - 0.8rem) calc(50% - 0.16rem);
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
  background-repeat: no-repeat;
}

select:hover {
  border-color: var(--line-strong);
  background-color: var(--bg-subtle);
}

select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

select::-ms-expand {
  display: none;
}

.ui-select {
  position: relative;
  width: 100%;
}

.ui-select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.ui-select__trigger {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-strong);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.ui-select__trigger:hover {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}

.ui-select__trigger:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.ui-select__trigger::after {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  margin-left: auto;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition);
}

.ui-select.is-open .ui-select__trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.ui-select.is-open .ui-select__trigger::after {
  transform: rotate(225deg) translateY(-1px);
  border-color: var(--primary);
}

.ui-select__value {
  min-width: 0;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-select__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 420;
  display: grid;
  gap: 0.2rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.ui-select__option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.ui-select__option:hover,
.ui-select__option:focus-visible {
  background: var(--bg-subtle);
  color: var(--text);
  outline: none;
}

.ui-select__option.is-selected {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.ui-select__option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.theme-switcher .ui-select,
.mobile-drawer__theme .ui-select {
  min-width: 120px;
}

.theme-switcher .ui-select__trigger,
.mobile-drawer__theme .ui-select__trigger {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
}

.inline-form .ui-select {
  min-width: 11rem;
}

.progressive-image {
  transition: filter 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.progressive-image[data-full-src] {
  filter: saturate(0.94);
}

.progressive-image.is-full-res {
  filter: none;
  transform: none;
}

/* ---- Site Shell ---- */
.site-shell { min-height: 100vh; }

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

/* ===================================
   TOPBAR / HEADER
   =================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  background: rgba(245, 245, 240, 0.92);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .topbar {
  background: rgba(14, 14, 14, 0.88);
}

.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Brand */
.topbar__brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 0;
}

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

.brand__short { display: none; }

.brand__badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary) 0%, #f08b5e 100%);
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 79, 30, 0.3);
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand small {
  display: none;
}

/* Hamburger */
.drawer-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.drawer-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.drawer-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  background: var(--bg-subtle);
  color: var(--text);
}

.desktop-nav a.is-active {
  color: var(--primary);
}

/* Topbar Actions */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.theme-switcher select {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Avatar Pill */
.avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.avatar-pill:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.avatar-pill span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.avatar-pill strong {
  font-size: 0.88rem;
  font-weight: 700;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================
   BUTTONS
   =================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform 0.1s ease, color var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.button:active { transform: scale(0.97); }

.button--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 79, 30, 0.28);
}

.button--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(217, 79, 30, 0.36);
  color: white;
}

.button--ghost {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text);
}

.button--ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
  color: var(--text);
}

.button--danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}

.button--danger:hover {
  background: var(--danger);
  color: white;
}

.button--tiny {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
}

.button--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border-color: var(--line);
}

.button--icon:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

/* ===================================
   MOBILE DRAWER
   =================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.28s cubic-bezier(0.32, 0, 0.15, 1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open { transform: translateX(0); }

/* Drawer Header */
.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-brand__badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary) 0%, #f08b5e 100%);
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.drawer-brand strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.drawer-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

/* Drawer User Card */
.drawer-user {
  margin: 0.75rem 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid rgba(217, 79, 30, 0.15);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: background var(--transition);
}

.drawer-user:hover {
  background: var(--primary-soft);
  color: var(--text);
}

.drawer-user__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.drawer-user__info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.drawer-user__info span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Account Switcher list */
.drawer-switch-list {
  display: flex;
  flex-direction: column;
  padding: 0 0.6rem;
}

.drawer-switch-list form {
  display: block;
}

.drawer-switch-list__sep {
  height: 1px;
  background: var(--line);
  margin: 0 0.2rem;
}

.drawer-switch-list__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: left;
  transition: color var(--transition);
}

.drawer-switch-list__item:hover {
  color: var(--text);
}

.drawer-switch-list__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-switch-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-switch-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Drawer Nav */
.mobile-drawer__body {
  padding: 0.75rem;
}

.drawer-section {
  margin-bottom: 1rem;
}

.drawer-section__label {
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.drawer-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.drawer-link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.drawer-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.drawer-link:hover svg,
.drawer-link.is-active svg {
  opacity: 1;
}

/* Drawer Footer */
.mobile-drawer__footer {
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer__theme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-drawer__theme label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  flex: 1;
}

.mobile-drawer__theme select {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.mobile-drawer__theme button {
  flex-shrink: 0;
}

.mobile-drawer__logout {
  width: 100%;
  justify-content: center;
}

/* ===================================
   MOBILE NAV (Bottom Bar)
   =================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  background: rgba(245, 245, 240, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  gap: 0.2rem;
}

html[data-theme="dark"] .mobile-nav {
  background: rgba(14, 14, 14, 0.95);
}

.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.45rem 0.3rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.mobile-nav a.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-nav svg {
  width: 22px;
  height: 22px;
}

/* Create button special */
.mobile-nav .nav-create {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
}

.mobile-nav .nav-create:hover {
  background: var(--primary-hover);
  color: white;
}

.mobile-nav .nav-create.is-active {
  background: var(--primary-hover);
  color: white;
}

/* ===================================
   CARDS & LAYOUT
   =================================== */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card--wide { padding: 1.75rem; }

.card h2, .card h3 { margin: 0 0 0.75rem; font-size: 1rem; }

/* Hero */
.hero {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.hero--slim {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.hero__content h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.15;
}

.hero__content p { color: var(--text-soft); margin: 0 0 1.25rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-full);
  padding: 0.28rem 0.65rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Grids */
.grid { display: grid; gap: 1rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.feed, .stack { display: grid; gap: 1rem; }

.section { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.section-grid { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.section-heading a:hover { color: var(--primary-hover); }

/* Content layout */
.content-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.content-main, .content-side { display: grid; gap: 1rem; }

/* Stats */
.stat-grid, .admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.stat-card span { font-size: 0.82rem; color: var(--text-soft); font-weight: 600; }

/* Panel note */
.hero__panel { color: var(--text-soft); }
.panel-note { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

/* ===================================
   POST CARD
   =================================== */
.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.post-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}

.post-card__media img,
.post-card__media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.post-card__media img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__media-placeholder {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.12), transparent 42%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
}

.post-card__media-placeholder strong {
  font-size: 0.9rem;
}

.post-card__media-placeholder span {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.post-card__media-placeholder.is-failed {
  background:
    radial-gradient(circle at top left, rgba(185, 28, 28, 0.12), transparent 42%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
}

.media-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post-card__content { padding: 1rem; }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.post-card__meta a,
.post-card__meta span {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}

.post-card__meta a:hover { color: var(--primary); }

.post-card__group {
  font-weight: 700 !important;
  color: var(--primary) !important;
  font-size: 0.82rem !important;
}

.post-card__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.post-card__title {
  display: block;
  margin-bottom: 0.4rem;
}

.post-card__title h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--transition);
}

.post-card__title:hover h3 { color: var(--primary); }

.post-card__text {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}

.post-stat svg { width: 14px; height: 14px; opacity: 0.65; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================================
   BADGES / CHIPS / PILLS
   =================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-strong);
  border: 1px solid var(--line);
}

.badge--media {
  background: rgba(0,0,0,0.55);
  border-color: transparent;
  color: white;
  backdrop-filter: blur(4px);
}

.badge--sensitive {
  background: var(--warning-soft);
  border-color: rgba(160, 98, 0, 0.25);
  color: var(--warning);
}

.badge--affinity {
  background: var(--success-soft);
  border-color: rgba(31, 122, 69, 0.25);
  color: var(--success);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-strong);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.8rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.chip:hover {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.3);
  color: var(--primary);
}

.chip--button {
  appearance: none;
  cursor: pointer;
}

.chip.is-selected {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.3);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(217, 79, 30, 0.12);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.pill:hover { background: var(--bg-subtle); color: var(--text); }

.pill.is-active {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.3);
  color: var(--primary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===================================
   FORMS & INPUTS
   =================================== */
.theme-switcher select,
.search-form input,
.search-form select,
.settings-form input,
.settings-form textarea,
.settings-form select,
.editor-form textarea,
.editor-form input,
.editor-form select,
.inline-form input,
.inline-form select,
.inline-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus,
.editor-form textarea:focus,
.editor-form input:focus,
.inline-form input:focus,
.inline-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.settings-form,
.editor-form { display: grid; gap: 1rem; }

.settings-form label,
.editor-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field > label {
  font-weight: 600;
  font-size: 0.9rem;
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-soft);
  font-weight: 500 !important;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checkbox-row--panel {
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.08), transparent 38%),
    var(--bg-subtle);
}

.checkbox-row__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  min-width: 1.35rem;
  padding-top: 0.1rem;
}

.checkbox-row--panel input {
  width: 18px;
  height: 18px;
}

.checkbox-row__content {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  line-height: 1.5;
}

.checkbox-row__content strong {
  color: var(--text);
  font-size: 0.92rem;
}

.checkbox-row__content span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.checkbox-row__content a {
  word-break: break-word;
}

.media-upload-preview {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.media-upload-preview[hidden] {
  display: none;
}

.media-upload-preview__list {
  margin: 0;
}

.media-upload-preview__list .media-card__preview {
  position: relative;
}

.media-upload-preview__list .media-card__preview,
.media-upload-preview__list .media-card__placeholder {
  min-height: clamp(280px, 52vw, 680px);
}

.media-upload-preview__list .media-card img,
.media-upload-preview__list .media-card__video {
  min-height: 0;
  max-height: none;
  height: auto;
}

/* ===================================
   FLASH MESSAGES
   =================================== */
.flash {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.flash--success { background: var(--success-soft); border-color: rgba(31, 122, 69, 0.25); }
.flash--success strong { color: var(--success); }
.flash--warning { background: var(--warning-soft); border-color: rgba(160, 98, 0, 0.25); }
.flash--warning strong { color: var(--warning); }
.flash--error { background: var(--danger-soft); border-color: rgba(185, 28, 28, 0.25); }
.flash--error strong { color: var(--danger); }

/* ===================================
   COMMENTS
   =================================== */
.comment-stack, .message-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.comment-card {
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.comment-children {
  margin-top: 0.75rem;
  margin-left: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.reply-form { display: grid; gap: 0.5rem; margin-top: 0.8rem; }

.comment-reply {
  margin-top: 0.8rem;
}

.comment-reply__form[hidden] {
  display: none !important;
}

.comment-editor { margin-top: 0.75rem; }
.comment-editor summary { cursor: pointer; color: var(--text-soft); font-weight: 600; font-size: 0.88rem; }

/* ===================================
   MESSAGES
   =================================== */
.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 75%;
}

.message-bubble.is-own {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.25);
  margin-left: auto;
}

.message-bubble p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.chat-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.chat-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.chat-card {
  display: grid;
  gap: 1rem;
}

.chat-card--flat {
  gap: 0;
}

.chat-list,
.chat-room-list {
  display: grid;
  gap: 0.65rem;
}

.chat-list__item,
.chat-room-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), transform 0.1s ease, box-shadow var(--transition);
}

.chat-list--compact .chat-list__item {
  grid-template-columns: auto minmax(0, 1fr);
}

.chat-list__item:hover,
.chat-room-link:hover {
  background: var(--bg-elevated);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.chat-room-link {
  grid-template-columns: minmax(0, 1fr);
}

.chat-room-link.is-active {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.3);
}

.chat-list__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), rgba(217, 79, 30, 0.62));
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(217, 79, 30, 0.16);
}

.chat-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-list__copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.chat-list__copy strong {
  font-size: 0.94rem;
}

.chat-list__copy span,
.chat-room-link span,
.chat-empty-state p {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.chat-list__copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list__meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.chat-list__meta small,
.chat-meta-note {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-thread-card {
  display: grid;
  gap: 1rem;
}

.chat-stream {
  display: grid;
  gap: 0.9rem;
}

.chat-message {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.chat-message.is-own {
  justify-items: end;
}

.chat-message__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
}

.chat-message__meta strong {
  color: var(--text);
  font-size: 0.88rem;
}

.chat-message__meta small {
  font-size: 0.76rem;
}

.chat-message__bubble {
  width: min(100%, 760px);
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}

.chat-message.is-own .chat-message__bubble {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.28);
}

.chat-message__bubble p {
  margin: 0;
  color: var(--text);
  white-space: pre-line;
}

.chat-composer {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.chat-empty-state {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.08), transparent 42%),
    var(--bg-subtle);
}

.chat-empty-state strong {
  color: var(--text);
}

/* ===================================
   MEDIA GRID
   =================================== */
.media-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1rem 0;
}

.media-grid--detail {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.media-grid--detail .media-card__preview,
.media-grid--detail .media-card__placeholder {
  min-height: clamp(320px, 58vw, 760px);
}

.media-grid--detail .media-card img,
.media-grid--detail .media-card__video {
  height: auto;
  min-height: 0;
  max-height: none;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
  margin: 0;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    width var(--transition),
    margin-left var(--transition);
}

.media-card__preview {
  background: var(--bg-subtle);
  min-height: 220px;
  transition:
    min-height var(--transition),
    background var(--transition);
}

.media-card img,
.media-card__video {
  width: 100%;
  display: block;
}

.media-card img {
  min-height: 220px;
  max-height: 480px;
  object-fit: contain;
  background: var(--bg-subtle);
}

.media-card__video {
  min-height: 220px;
  max-height: 480px;
  background: #050505;
}

.media-card__placeholder {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.1), transparent 40%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
}

.media-card__placeholder strong {
  font-size: 0.92rem;
}

.media-card__placeholder span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.media-card__placeholder--failed {
  background:
    radial-gradient(circle at top left, rgba(185, 28, 28, 0.1), transparent 40%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
}

.media-card__remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 17, 16, 0.08);
  backdrop-filter: blur(12px);
}

.media-card__remove:hover {
  background: rgba(255, 255, 255, 1);
}

html[data-theme="dark"] .media-card__remove {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .media-card__remove:hover {
  background: rgba(34, 34, 34, 0.98);
}

.media-card figcaption { padding: 0.65rem 0.8rem; color: var(--text-soft); font-size: 0.85rem; }

.media-grid--detail .media-card figcaption {
  padding: 0.85rem 1rem;
}

.media-card--inline-expandable [data-inline-media-trigger] {
  cursor: zoom-in;
  outline: none;
}

.media-card--inline-expandable [data-inline-media-trigger]:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(217, 79, 30, 0.35);
}

.media-card--inline-expandable.is-expanded {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 1rem), 1680px);
  max-width: none;
  margin-left: 50%;
  border-color: rgba(217, 79, 30, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.media-card--inline-expandable.is-expanded [data-inline-media-trigger] {
  cursor: zoom-out;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.08), transparent 38%),
    var(--bg-subtle);
}

.media-grid--detail .media-card--inline-expandable.is-expanded .media-card__preview {
  min-height: clamp(520px, 88vh, 1680px);
}

.media-grid--detail .media-card--inline-expandable.is-expanded .media-card img,
.media-grid--detail .media-card--inline-expandable.is-expanded .media-card__video {
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  object-fit: contain;
  background: var(--bg-subtle);
}

.media-grid--detail .media-card--inline-expandable.is-expanded .media-card__placeholder {
  min-height: clamp(520px, 88vh, 1680px);
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.1), transparent 40%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
}

.media-grid--detail .media-card--inline-expandable.is-expanded figcaption {
  color: var(--text);
}

.media-status-banner {
  display: grid;
  gap: 0.25rem;
  margin: 0.35rem 0 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.media-status-banner strong {
  font-size: 0.85rem;
}

.media-status-banner span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.media-status-banner--processing {
  background: rgba(217, 79, 30, 0.08);
  border-color: rgba(217, 79, 30, 0.2);
}

.media-status-banner--processing strong {
  color: var(--primary);
}

.media-status-banner--failed {
  background: var(--danger-soft);
  border-color: rgba(185, 28, 28, 0.2);
}

.media-status-banner--failed strong {
  color: var(--danger);
}

/* ===================================
   MINI LIST (Sidebar)
   =================================== */
.mini-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-list__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  transition: background var(--transition), border-color var(--transition);
  font-size: 0.88rem;
}

.mini-list__item:hover {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  color: var(--text);
}

.mini-list__item strong { font-size: 0.88rem; }
.mini-list__item span { font-size: 0.78rem; color: var(--text-soft); }

/* Clean list */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.clean-list li {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ===================================
   AUTH PAGES
   =================================== */
.auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.auth-card {
  width: min(100%, 36rem);
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ===================================
   GROUP CARDS
   =================================== */
.group-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-card h3 { margin: 0; font-size: 1rem; }

/* ===================================
   META ROWS
   =================================== */
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.inline-form, .stacked-actions, .button-row, .meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.stacked-actions { flex-direction: column; align-items: stretch; }

/* ===================================
   LANDING PAGE SPECIFICS
   =================================== */
.landing-cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 100%);
  border: 1px solid rgba(217, 79, 30, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.landing-cta h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landing-cta p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.landing-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  color: var(--text-soft);
  font-weight: 600;
}

.landing-stat strong {
  color: var(--text);
  font-weight: 700;
}

.landing-stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Feed container with sidebar */
.feed-layout {
  display: grid;
  gap: 1.25rem;
}

.feed-sidebar { display: grid; gap: 1rem; }

/* ===================================
   SORT BAR
   =================================== */
.sort-panel {
  margin-bottom: 0.75rem;
}

.sort-panel > summary {
  list-style: none;
}

.sort-panel > summary::-webkit-details-marker {
  display: none;
}

.sort-panel__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.sort-panel__toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}

.sort-panel__toggle::after {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.sort-panel[open] .sort-panel__toggle {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.sort-panel[open] .sort-panel__toggle::after {
  transform: rotate(225deg);
  border-color: var(--primary);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.sort-bar__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.sort-bar--collapsible {
  margin-top: 0.75rem;
}

/* ===================================
   ADMIN STYLES
   =================================== */
.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th { color: var(--text-soft); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-shell, .admin-body { min-height: 100vh; }
.admin-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }

/* Post Detail */
.post-detail { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.post-detail h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.post-detail__body { color: var(--text-soft); white-space: pre-line; }

.expand-panel {
  display: grid;
  gap: 0.9rem;
}

.expand-panel > summary {
  list-style: none;
}

.expand-panel > summary::-webkit-details-marker {
  display: none;
}

.expand-panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.expand-panel__toggle::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-left: auto;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
}

.expand-panel[open] .expand-panel__toggle {
  border-color: var(--primary);
  background: rgba(217, 79, 30, 0.06);
}

.expand-panel[open] .expand-panel__toggle::after {
  transform: rotate(225deg);
  border-color: var(--primary);
}

.inline-form--stacked {
  margin-top: 0.2rem;
}

@media (min-width: 900px) {
  .media-card--inline-expandable.is-expanded {
    width: min(calc(100vw - 3rem), 1800px);
  }
}

/* Comment card content */
.comment-card__content { color: var(--text-soft); white-space: pre-line; font-size: 0.9rem; }

/* ===================================
   SETTINGS / PROFILE MEDIA / 18+
   =================================== */
.avatar-pill span img,
.drawer-user__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.badge--danger {
  background: var(--danger-soft);
  border-color: rgba(185, 28, 28, 0.28);
  color: var(--danger);
}

.profile-hero {
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  --profile-avatar-size: 120px;
}

.profile-hero__banner {
  position: relative;
  height: clamp(180px, 24vw, 240px);
  min-height: clamp(180px, 24vw, 240px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 79, 30, 0.18), rgba(17, 24, 39, 0.08)),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.profile-hero__banner img {
  width: 100%;
  height: 100%;
  min-height: clamp(180px, 24vw, 240px);
  display: block;
  object-fit: cover;
}

.profile-hero .hero__content,
.profile-hero .hero__panel {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.profile-hero .hero__content {
  margin-top: 0;
}

.profile-hero__avatar {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  border-radius: 50%;
  border: 4px solid var(--bg-elevated);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  margin-top: 0;
  margin-bottom: 1rem;
}

.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-hero__actions,
.profile-hero__actions form,
.profile-hero__actions .button {
  width: 100%;
}

.settings-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.settings-grid,
.settings-stack {
  display: grid;
  gap: 1rem;
}

.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-card-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow var(--transition), border-color var(--transition);
}

.settings-card-link strong {
  font-size: 0.98rem;
}

.settings-card-link span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.settings-card-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
}

.settings-nav {
  display: grid;
  gap: 0.55rem;
}

.settings-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.1s ease;
}

.settings-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-elevated);
}

.settings-nav a.is-active {
  background: var(--primary-soft);
  border-color: rgba(217, 79, 30, 0.32);
  color: var(--primary);
}

.settings-back-link {
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.settings-form small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.settings-media-preview {
  display: grid;
  gap: 1rem;
}

.settings-media-preview__item {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.settings-media-preview__frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(217, 79, 30, 0.1), transparent 42%),
    linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.settings-media-preview__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.settings-media-preview__frame span {
  color: var(--text-soft);
  text-align: center;
  font-weight: 700;
}

.settings-media-preview__frame--avatar {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  justify-self: start;
}

.settings-media-preview__frame--banner {
  width: 100%;
  aspect-ratio: 16 / 5;
}

.legal-copy {
  display: grid;
  gap: 0.9rem;
}

.legal-copy h2 {
  margin: 0.2rem 0 0;
}

.legal-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.post-card__media-shell,
.media-card {
  position: relative;
}

.post-card__media-shell {
  overflow: hidden;
}

.media-card--adult-gated,
.post-card__media-shell--adult-gated {
  isolation: isolate;
}

.adult-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.26), rgba(5, 5, 5, 0.88));
  color: white;
}

.adult-gate__label {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(185, 28, 28, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adult-gate p {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.adult-gate--card {
  justify-items: center;
  text-align: center;
}

.adult-gate--inline {
  border-radius: inherit;
}

.adult-gate .button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.adult-gate .button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.is-adult-blurred {
  filter: blur(18px) saturate(0.72);
  transform: scale(1.04);
  transform-origin: center;
  transition: filter var(--transition), transform var(--transition);
}

.is-revealed .adult-gate {
  opacity: 0;
  pointer-events: none;
}

.is-revealed .is-adult-blurred {
  filter: none;
  transform: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 12, 18, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100%, 420px);
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.modal-card__header {
  display: grid;
  gap: 0.35rem;
}

.modal-card__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-card__actions {
  justify-content: flex-end;
}

.modal-card .button-row {
  justify-content: flex-end;
}

body.is-modal-open {
  overflow: hidden;
}

/* ===================================
   RESPONSIVE - DESKTOP
   =================================== */
@media (min-width: 880px) {
  .page-shell { padding: 1.75rem 1.5rem 2.5rem; }

  .hero { padding: 2.5rem; }

  .chat-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .chat-layout > .chat-thread-card,
  .chat-layout > .chat-card {
    min-height: 100%;
  }

  .section-grid,
  .content-grid,
  .admin-grid { grid-template-columns: 2fr 1fr; }

  .feed-layout { grid-template-columns: 1fr 280px; }

  .profile-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .profile-hero__banner {
    grid-column: 1 / -1;
    height: clamp(220px, 24vw, 280px);
    min-height: clamp(220px, 24vw, 280px);
  }

  .profile-hero .hero__content {
    padding: 1.5rem 0 2rem 2.5rem;
    margin-top: 0;
  }

  .profile-hero .hero__panel {
    padding: 1.5rem 2.5rem 2rem 0;
    align-self: end;
  }

  .settings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .settings-nav {
    position: sticky;
    top: 5.5rem;
    flex-direction: column;
  }

  .settings-nav a {
    justify-content: flex-start;
  }

  .settings-media-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav { display: none; }
  .mobile-drawer, .drawer-overlay { display: none; }

  .landing-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .landing-cta__text { max-width: 600px; }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 879px) {
  .desktop-nav { display: none; }

  .drawer-toggle { display: inline-flex; }

  .topbar__actions .button--ghost { display: none; }
  .topbar__actions .button--primary { display: none; }

  .topbar__inner { gap: 0.65rem; }

  .topbar__brand-row { flex: 1 1 auto; }

  .brand strong {
    font-size: 0.94rem;
  }
  .brand__full { display: none; }
  .brand__short { display: inline; }

  .topbar__actions { gap: 0.35rem; }

  .topbar__actions .avatar-pill {
    display: inline-flex;
    padding: 0.22rem;
  }

  .topbar__actions .avatar-pill strong { display: none; }

  .topbar__actions .avatar-pill span {
    width: 30px;
    height: 30px;
  }

  .profile-hero .hero__content,
  .profile-hero .hero__panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .profile-hero .hero__content {
    margin-top: 0;
  }

  .topbar__actions .theme-switcher { display: none; }

  .page-shell { padding: 1rem 0.85rem 5.5rem; }

  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar { display: none; }

  .landing-cta { padding: 1.25rem; }

  .settings-media-preview {
    grid-template-columns: 1fr;
  }

  .settings-media-preview__frame--avatar {
    justify-self: center;
  }
}

/* Extra small */
@media (max-width: 480px) {
  .topbar__inner { padding: 0 0.85rem; }

  .brand {
    gap: 0.55rem;
  }

  .brand__badge {
    width: 32px;
    height: 32px;
  }

  .brand strong { max-width: 38vw; }

  .post-card__footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .auth-card { padding: 1.5rem 1.1rem; }
  .adult-gate {
    padding: 0.85rem;
    justify-items: stretch;
    text-align: left;
  }

  .adult-gate .button-row {
    width: 100%;
  }

  .adult-gate .button {
    flex: 1 1 auto;
  }
}

/* ── Infinite Scroll Loader ─────────────────────────── */
.infinite-scroll-loader {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 1.5rem 0;
}

.infinite-scroll-loader span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: infinite-scroll-bounce 1s ease-in-out infinite;
}

.infinite-scroll-loader span:nth-child(2) { animation-delay: 0.15s; }
.infinite-scroll-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes infinite-scroll-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---- Site Footer ---- */
.site-footer {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-top: auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.site-footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__links a:hover {
  color: var(--text);
}

/* ---- Legal pages ---- */
.legal-copy p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

/* ---- Support tickets ---- */
.support-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-header {
  display: flex;
  justify-content: flex-end;
}

.support-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-soft);
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-ticket-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), border-color var(--transition);
  border: 1px solid var(--line);
}

.support-ticket-row:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.support-ticket-row__main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.support-ticket-row__subject {
  font-size: 0.95rem;
}

.support-ticket-row__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.support-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.support-badge--open { background: var(--primary-soft); color: var(--primary); }
.support-badge--in_progress { background: rgba(59,130,246,.12); color: #2563eb; }
.support-badge--waiting_on_user { background: rgba(234,179,8,.12); color: #b45309; }
.support-badge--resolved { background: var(--success-light); color: var(--success); }
.support-badge--closed { background: var(--bg-subtle); color: var(--text-muted); }

.support-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem;
  text-transform: capitalize;
}

.support-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Thread */
.support-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-message {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
}

.support-message--staff {
  border-color: var(--primary-soft);
  background: linear-gradient(135deg, rgba(217,79,30,.04) 0%, transparent 100%);
}

.support-message__avatar {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  color: var(--text-soft);
}

.support-message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-message__body {
  flex: 1;
  min-width: 0;
}

.support-message__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.support-message__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.support-message__body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.support-staff-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.45rem;
}

.support-reply-card,
.support-form-card {
  padding: 1.25rem;
}

.support-close-row {
  display: flex;
  justify-content: flex-end;
}

.support-closed-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.support-guest-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.support-guest-note svg { flex-shrink: 0; margin-top: 0.1rem; }
.support-guest-note strong { display: block; margin-bottom: 0.2rem; color: var(--text); }
.support-guest-note p { margin: 0; }

.support-form__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 560px) {
  .support-form__contact { grid-template-columns: 1fr; }
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
