/* CheekyCheck - app-specific layout and visual polish on top of mood.css */

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.appbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.appbar .row {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 24px; max-width: 1640px; margin: 0 auto;
}
.appbar .brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  min-width: 200px;
}
.appbar .brand img {
  width: 190px;
  height: 25px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.dark-logo { display: none !important; }
html[data-theme="dark"] .light-logo { display: none !important; }
html[data-theme="dark"] .dark-logo { display: block !important; }
.appbar .brand .lg {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent-creator));
  color: var(--primary-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px -6px color-mix(in oklch, var(--primary) 60%, transparent);
}

/* Centered single nav group. Brand on far left, utilities on far right. */
.appbar nav.centered {
  display: flex; gap: 2px; flex-wrap: wrap;
  margin: 0 auto;            /* this is what pushes it to the middle */
  justify-content: center;
}
.appbar .utilities {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.appbar nav a {
  position: relative;
  padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--muted);
  border-radius: 8px;
  transition: color .12s, background .12s;
}
.appbar nav a.active,
.appbar nav a:hover { color: var(--fg); background: var(--secondary); }
.appbar nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-creator));
}

@media (max-width: 900px) {
  .appbar .row { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .appbar nav.centered { gap: 0; margin: 0; }
  .appbar nav a { padding: 6px 8px; font-size: 12px; }
}

/* Icon button used for the sun/moon theme toggle */
.icon-btn {
  appearance: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color .12s, border-color .12s, background .12s, transform .12s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-icon svg { transition: transform .25s; }
.theme-icon:hover svg { transform: rotate(15deg); }

/* ---------- Pill toggle for demo data ---------- */
.pill-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  cursor: pointer; user-select: none;
  color: var(--muted);
  transition: border-color .12s, color .12s;
}
.pill-toggle.on {
  color: var(--success);
  border-color: color-mix(in oklch, var(--success) 45%, var(--border));
  background: var(--success-soft);
}
.pill-toggle .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: currentColor;
}
.pill-toggle.on .dot { animation: pulse 1.6s ease-in-out infinite; }
.pill-toggle:hover:not([disabled]) { border-color: var(--border-2); }
.pill-toggle:disabled { opacity: .6; cursor: wait; }

/* ---------- Page container ---------- */
.page {
  max-width: 1640px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.page.narrow { max-width: 720px; }
.page.medium { max-width: 1080px; }
.page.wide   { max-width: 1480px; }

.page-head {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 {
  margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
}
.page-head .sub { color: var(--muted); font-size: 14px; }
.page-head .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.char-count {
  margin-left: auto;
  color: var(--muted);
  font: 600 11px var(--mono);
}
.char-count.below {
  display: block;
  margin: 6px 0 0;
}
.field .label {
  font-weight: 800;
}

/* ---------- Auth screens ---------- */
.auth-card {
  max-width: 460px; margin: 60px auto 80px;
  padding: 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.auth-card p.lede { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.signup-page { max-width: 980px; }
.signup-card {
  max-width: 860px;
  padding: 42px;
}
.signup-card h1 { font-size: 34px; margin-bottom: 18px; }
.signup-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.signup-role-grid .role-card {
  min-height: 360px;
  align-items: flex-start;
  padding: 34px;
  gap: 18px;
}
.signup-role-grid .role-card .body h4 {
  font-size: 20px;
  margin-bottom: 10px;
}
.signup-role-grid .role-card .body p {
  font-size: 15px;
  line-height: 1.55;
}
.signup-role-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--card-2);
}
.signup-role-icon.creator {
  background: color-mix(in oklch, var(--primary) 8%, var(--card));
}
.signup-role-icon.assistant {
  background: color-mix(in oklch, var(--fg) 5%, var(--card));
}
.signup-role-icon .verified,
.signup-role-icon .assistant-icon {
  width: 42px;
  height: 42px;
}

.role-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ---------- Layout grids ---------- */
.column { display: flex; flex-direction: column; gap: 14px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cols-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cols-2, .cols-3, .cols-4 { align-items: stretch; }
.cols-2 > .card,
.cols-3 > .card,
.cols-4 > .card,
.profile-top-grid > .card {
  margin-top: 0;
  height: auto;
}
.home-info-grid {
  grid-auto-rows: 1fr;
}
.home-info-grid > .card {
  min-height: 128px;
}
.home-preview-section {
  margin-top: 18px;
}
.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.home-preview-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-preview-tile {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.home-preview-tile.clickable { cursor: zoom-in; }
.home-preview-tile.clickable:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: var(--border-2);
  box-shadow: 0 18px 50px -32px var(--shadow);
}
.home-preview-tile.clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.home-preview-tile img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border);
}
.home-preview-tile figcaption {
  display: grid;
  gap: 6px;
  padding: 12px;
  min-height: 92px;
  background: color-mix(in oklch, var(--muted) 8%, var(--card));
  font-size: 13px;
}
.home-preview-tile figcaption strong {
  font-weight: 800;
}
.home-preview-tile figcaption span {
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Launch waitlist ---------- */
.launch-page {
  max-width: 1640px;
}
.launch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .75fr);
  gap: 28px;
  padding: 34px;
  overflow: hidden;
}
.launch-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-width: 0;
}
.launch-logo {
  display: flex;
  align-items: center;
  min-height: 72px;
}
.launch-logo img {
  width: min(460px, 80%);
  height: auto;
  display: block;
}
.launch-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--muted);
  font: 700 11px var(--mono);
  text-transform: uppercase;
}
.launch-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -0.035em;
}
.launch-lede {
  max-width: 780px;
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  color: var(--fg);
}
.launch-reason {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.launch-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.launch-point {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--success) 7%, var(--card));
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.launch-point:nth-child(1) {
  background: color-mix(in oklch, #f9cfe1 58%, var(--card));
}
.launch-point:nth-child(2) {
  background: color-mix(in oklch, #d9f1e5 58%, var(--card));
}
.launch-point:nth-child(3) {
  background: color-mix(in oklch, #e8dcff 58%, var(--card));
}
html[data-theme="dark"] .launch-point:nth-child(1) {
  background: color-mix(in oklch, #7a3655 38%, var(--card));
}
html[data-theme="dark"] .launch-point:nth-child(2) {
  background: color-mix(in oklch, #315f4a 38%, var(--card));
}
html[data-theme="dark"] .launch-point:nth-child(3) {
  background: color-mix(in oklch, #553c7a 38%, var(--card));
}
.launch-point strong {
  font-size: 13px;
}
.launch-point span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.launch-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--card) 88%, var(--success-soft));
  box-shadow: 0 28px 70px -42px var(--shadow);
}
.launch-panel-head {
  display: grid;
  gap: 6px;
}
.launch-panel-head strong {
  font-size: 22px;
}
.launch-panel-head span,
.launch-privacy {
  color: var(--muted);
  line-height: 1.45;
}
.launch-form {
  display: grid;
  gap: 14px;
}
.launch-form-grid {
  display: grid;
  gap: 12px;
}
.launch-field {
  margin: 0;
}
.launch-input {
  min-height: 46px;
}
.launch-form-footer {
  display: grid;
  gap: 12px;
}
.launch-submit {
  min-height: 48px;
  justify-content: center;
}
.launch-status {
  min-height: 18px;
}
.launch-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.launch-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.launch-preview-section {
  margin-top: 18px;
}
.launch-step {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.launch-step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-soft);
  color: var(--success);
  font: 800 13px var(--mono);
}
.launch-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .launch-hero {
    grid-template-columns: 1fr;
  }
  .launch-points,
  .launch-roadmap {
    grid-template-columns: 1fr;
  }
}
.learn-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.learn-card:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: var(--border-2);
  box-shadow: 0 18px 50px -32px var(--shadow);
}
.learn-card-art {
  height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.learn-card:nth-child(4n+1) .learn-card-art { background: #fff0f7; }
.learn-card:nth-child(4n+2) .learn-card-art { background: #f4efff; }
.learn-card:nth-child(4n+3) .learn-card-art { background: #effcff; }
.learn-card:nth-child(4n+4) .learn-card-art { background: #fff7dc; }
html[data-theme="dark"] .learn-card:nth-child(4n+1) .learn-card-art { background: #3b2430; }
html[data-theme="dark"] .learn-card:nth-child(4n+2) .learn-card-art { background: #302845; }
html[data-theme="dark"] .learn-card:nth-child(4n+3) .learn-card-art { background: #203942; }
html[data-theme="dark"] .learn-card:nth-child(4n+4) .learn-card-art { background: #3f3520; }
.learn-card-art img {
  width: min(76%, 420px);
  max-height: 140px;
  object-fit: contain;
}
.brand-logo-divider {
  display: block;
  width: min(72%, 420px);
  height: 3px;
  background: #111827;
}
html[data-theme="dark"] .brand-logo-divider {
  background: #ffffff;
}
.learn-read-more {
  width: min(72%, 420px);
  text-align: center;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}
html[data-theme="dark"] .learn-read-more {
  color: #ffffff;
}
.learn-search-card {
  margin: 0 0 18px;
  padding: 16px;
}
.learn-article {
  padding: 28px;
}
.learn-back-tab {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  color: var(--fg);
  background: var(--secondary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.learn-back-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-creator));
}
.learn-article h1 {
  margin: 14px 0 8px;
}
.learn-article p {
  line-height: 1.7;
}
.learn-highlight {
  background: #ffff00;
  color: #111827;
  border-radius: 4px;
  padding: 0 3px;
}
.home-info-preview-art {
  height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(ellipse 300px 160px at 30% 20%, color-mix(in oklch, var(--primary) 16%, transparent), transparent 70%),
    var(--card);
}
.home-info-preview-art img {
  display: block;
  width: min(76%, 420px);
  max-height: 140px;
  object-fit: contain;
}
.home-suggestion-preview > .suggestion-card {
  height: 360px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.home-suggestion-preview > .suggestion-card .suggestion-form {
  min-width: 0;
  grid-template-rows: auto 1fr auto auto;
  height: 100%;
}
.home-suggestion-preview .suggestion-input { min-height: 170px; height: 100%; }
.home-faq-card {
  margin-top: 18px;
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
}
.home-faq-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.home-faq-item {
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--muted) 7%, var(--card));
}
.home-faq-item h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
}
.home-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 28px;
  background: rgba(4, 10, 20, .72);
  display: grid;
  place-items: center;
}
.preview-lightbox-card {
  width: min(1280px, 96vw);
  max-height: 92vh;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 30px 90px -20px var(--shadow);
  display: grid;
  gap: 12px;
}
.preview-lightbox-card img {
  width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-2);
}
@media (max-width: 1100px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
  .cols-6 { grid-template-columns: repeat(3, 1fr); }
  .home-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-6 { grid-template-columns: repeat(2, 1fr); }
  .home-preview-grid { grid-template-columns: 1fr; }
  .home-faq-grid { grid-template-columns: 1fr; }
}

.empty {
  text-align: center; padding: 56px 24px;
  color: var(--muted);
  border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
  background: var(--card);
}

.copied-flash { background: var(--success) !important; color: #fff !important; border-color: var(--success) !important; }

.spinner-inline {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  color: var(--danger); font-size: 12.5px; min-height: 16px;
}

ol.steps, ul.bullets {
  margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.7;
}

/* ---------- Verified badges — using uploaded SVG art ---------- */

.verified, .verified2, .assistant-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: -3px;
  background-color: transparent;
  border-radius: 0;
  filter: none;
}
.verified-tip {
  position: relative;
  cursor: help;
  overflow: visible;
}
.verified-tip:hover::after,
.verified-tip:focus::after {
  content: attr(data-tooltip);
  display: block;
  position: absolute;
  z-index: 10000;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  box-sizing: border-box;
  width: 300px;
  max-width: min(320px, calc(100vw - 32px));
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 18px 50px -24px var(--shadow);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow: visible;
}
.profile-card,
.profile-card .name,
.trust-pill {
  overflow: visible;
}
.profile-card:hover {
  position: relative;
  z-index: 20;
}
.verified {
  background-image: url("/icons/onlyfans-check.svg");
}
.verified.lg, .verified.xs { width: 18px; height: 18px; vertical-align: -3px; }
.verified::after,
.verified2::after,
.assistant-icon::after {
  content: none;
  display: none;
  border: 0;
}

.verified2 {
  background-image: url("/icons/video-check.svg");
}
.verified2.lg, .verified2.xs { width: 18px; height: 18px; }

.assistant-icon {
  background-image: url("/icons/assistant-managed.svg");
}
.assistant-icon.lg, .assistant-icon.xs { width: 18px; height: 18px; }
html[data-theme="dark"] .assistant-icon {
  filter: none;
}

/* Big trust-pill: combines L1+L2 in a single capsule */
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px;
  background: var(--card); border: 1px solid color-mix(in oklch, var(--primary) 30%, var(--border));
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
}
.trust-pill.gold {
  border-color: color-mix(in oklch, var(--gold) 50%, var(--border));
  background: linear-gradient(180deg, color-mix(in oklch, var(--gold) 12%, var(--card)), var(--card));
}
.trust-pill.pending { border-color: color-mix(in oklch, var(--warn) 35%, var(--border)); }

/* ---------- Avatars with photo support ---------- */
.avatar.photo {
  background: none !important;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.avatar.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Profile hero (the wide page-04 vibe) ---------- */
.profile-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 800px 280px at 0% -20%, color-mix(in oklch, var(--primary) 16%, transparent), transparent 65%),
    radial-gradient(ellipse 700px 240px at 100% -20%, color-mix(in oklch, var(--violet) 14%, transparent), transparent 65%),
    var(--card);
  overflow: hidden;
}
.profile-hero .cover-strip {
  display: none;
}
.profile-hero .head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  padding: 18px 26px 22px;
  align-items: end;
  margin-top: 0;
}
.profile-hero .avatar-xxl {
  width: 132px; height: 132px;
  border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 44px;
  color: oklch(var(--avatar-text-l) 0.16 var(--h, 250));
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklch, oklch(0.85 0.14 var(--h,250)) 32%, transparent) 14px 15px),
    oklch(var(--avatar-bg-l) 0.04 var(--h, 250));
  border: 4px solid var(--card);
  box-shadow: 0 12px 30px -16px var(--shadow);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.profile-hero .avatar-xxl img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.profile-hero h1 {
  margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.profile-hero .handle {
  margin-top: 4px;
  color: var(--muted); font-family: var(--mono); font-size: 13px;
}
.profile-hero .badge-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.profile-hero .bio {
  margin-top: 14px; color: var(--muted); max-width: 700px;
  font-size: 14px; line-height: 1.55;
}
.profile-hero .actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding-bottom: 6px;
}
.admin-profile-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-profile-controls .btn { min-height: 38px; }

@media (max-width: 900px) {
  .profile-hero .head {
    grid-template-columns: auto 1fr;
    margin-top: -50px;
  }
  .profile-hero .avatar-xxl { width: 100px; height: 100px; font-size: 36px; border-radius: 18px; }
  .profile-hero .actions { grid-column: 1 / -1; }
  .profile-hero h1 { font-size: 24px; }
}

/* Followers / following / rating quick row */
.kpi-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
}
.kpi {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.kpi .v { font-size: 18px; font-weight: 600; }
.kpi .l { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Snapshot tiles ---------- */
.snap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px) { .snap-grid { grid-template-columns: repeat(2, 1fr); } }
.snap-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
  transition: border-color .12s, transform .12s;
}
.snap-tile:hover { border-color: var(--border-2); }
.snap-tile .top { display: flex; align-items: center; gap: 10px; }
.snap-tile .count { font-family: var(--mono); font-weight: 700; font-size: 24px; line-height: 1; color: var(--fg); }
.snap-tile .pname { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.snap-tile .types { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.snap-tile .types .t { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.snap-tile .types .t strong { color: var(--fg); font-family: var(--mono); font-weight: 600; }
.snap-tile.zero { opacity: .55; }
.snap-tile.of-feature {
  grid-column: span 3;
}
.snap-tile.simple {
  min-height: 78px;
  justify-content: center;
}

.linked-account-list,
.multi-link-field {
  display: grid;
  gap: 8px;
}
.profile-media-card {
  display: grid;
  gap: 12px;
}
.profile-media-card .photos-title {
  display: block;
  margin-top: 2px;
}
.linked-accounts-block {
  display: grid;
  gap: 8px;
}
.linked-accounts-block .social-row {
  margin-top: 2px;
}
.linked-account-box {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.linked-account-box:hover {
  border-color: var(--primary);
}
.linked-account-box .mono,
.linked-account-box.mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.of-account-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(96px, .7fr) minmax(96px, .7fr) minmax(92px, .6fr);
  gap: 8px;
  align-items: end;
}
.of-account-row.public {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
}
.of-account-link {
  display: grid;
  min-width: 0;
  gap: 3px;
}
@media (max-width: 720px) {
  .of-account-row,
  .of-account-row.public {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* ---------- Photo grid (3×2) with upload affordance ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in oklch, oklch(0.85 0.13 var(--h,250)) 28%, transparent) 10px 11px),
    oklch(var(--avatar-bg-l) 0.05 var(--h, 250));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: oklch(var(--avatar-text-l) 0.14 var(--h, 250));
  font-family: var(--mono); font-weight: 700; font-size: 22px;
}
.photo-tile.has-image { background: none; padding: 0; }
.photo-tile.has-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.photo-tile .tag {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--fg);
  background: color-mix(in oklch, var(--card) 90%, transparent);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 7px;
  letter-spacing: .04em;
  display: none;
}
.photo-tile .actions-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55));
}
.photo-tile:hover .actions-overlay { opacity: 1; }
.photo-tile .actions-overlay .btn { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.4); }

.photo-tile.empty {
  cursor: pointer;
  background: var(--card);
  border: 2px dashed var(--border-2);
  color: var(--muted);
  font-size: 13px;
}
.photo-tile.empty:hover { color: var(--fg); border-color: var(--primary); }
.photo-tile.empty .plus { font-size: 24px; line-height: 1; }
.photo-tile[draggable="true"] { cursor: grab; }
.photo-tile[draggable="true"]:active { cursor: grabbing; }

.profile-top-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.profile-top-grid > .card {
  min-height: 0;
  overflow: visible;
  align-self: stretch;
}
.profile-top-grid .photo-grid { gap: 8px; }
.profile-top-grid .card { min-width: 0; }
.profile-top-grid .snap-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-top-grid .snap-tile { padding: 10px; gap: 6px; }
.profile-top-grid .notice { display: none; }
@media (max-width: 920px) {
  .profile-top-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* ---------- Reviews ---------- */
.review-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
  min-height: 74px;
}
.review-row + .review-row { margin-top: 8px; }
.review-row .stars {
  display: inline-flex; gap: 2px; font-family: var(--mono); color: var(--gold); font-size: 13px;
}
.review-row .meta {
  font-size: 11.5px; color: var(--muted); font-family: var(--mono);
  margin-left: auto;
}
.review-row.clickable {
  cursor: pointer;
}
.review-row.clickable:hover {
  border-color: var(--border-2);
  background: var(--card-2);
}
.review-row .review-text {
  margin: 6px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paged-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.paged-card-body {
  display: grid;
  gap: 8px;
  grid-template-rows: repeat(var(--page-rows, 6), minmax(74px, auto));
  align-content: start;
  flex: 1;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 28px;
}
.page-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font: 700 12px var(--mono);
  cursor: pointer;
}
.page-btn:hover,
.page-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- Social icons row ---------- */
.social-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.social-row .sbtn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: border-color .12s, transform .12s;
  position: relative;
}
.social-row .sbtn:hover { border-color: var(--border-2); }
.social-row .sbtn.off { opacity: .35; }
.social-row .sbtn .brand { width: 22px; height: 22px; border-radius: 6px; }
.social-row .sbtn .brand svg { width: 14px; height: 14px; }
.brand.sc { background: #fffc00; color: #111; }

/* ---------- Profile editor ---------- */
.editor-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}
@media (max-width: 980px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-section + .editor-section { margin-top: 16px; }
.editor-section h3 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.avatar-uploader {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 44px;
  color: oklch(var(--avatar-text-l) 0.16 var(--h, 250));
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklch, oklch(0.85 0.13 var(--h,250)) 30%, transparent) 14px 15px),
    oklch(var(--avatar-bg-l) 0.04 var(--h, 250));
  border: 4px solid var(--card);
  box-shadow: 0 12px 30px -16px var(--shadow);
  overflow: hidden;
  cursor: pointer;
}
.avatar-uploader img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.avatar-uploader::after {
  content: "Change";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .15s;
}
.avatar-uploader:hover::after { opacity: 1; }

.save-row {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  position: sticky; bottom: 12px; padding: 12px;
  margin-top: 14px;
  background: color-mix(in oklch, var(--card) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.save-row .status { color: var(--muted); font-size: 12.5px; margin-right: 0; }
.save-row .status.saved { color: var(--success); }
.editor-grid > div:first-child .card.elevated > p.small.muted { display: none; }

.profile-progress {
  padding: 14px 16px;
  margin-bottom: 16px;
}
.profile-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in oklch, var(--muted) 12%, var(--card));
  margin-top: 10px;
}
.profile-progress-remaining {
  margin-top: 8px;
  line-height: 1.4;
}
.profile-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--success);
  transition: width .2s ease;
}

/* ---------- Follow button ---------- */
.btn.follow {
  display: inline-flex; align-items: center; gap: 6px;
}
.btn.follow.following {
  background: var(--success-soft);
  color: var(--success);
  border-color: color-mix(in oklch, var(--success) 45%, var(--border));
}
.btn.follow.following:hover .label-following { display: none; }
.btn.follow.following:hover .label-unfollow { display: inline; }
.btn.follow.following .label-unfollow { display: none; }

/* ---------- Search autocomplete ---------- */
.search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 6px;
  background: var(--card); border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px var(--shadow);
  max-height: 280px; overflow-y: auto;
  z-index: 20;
}
.search-results .opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
}
.search-results .opt:last-child { border: 0; }
.search-results .opt:hover, .search-results .opt.active { background: var(--secondary); }
.search-wrap { position: relative; }

/* ---------- L2 recorder simulated ---------- */
.l2-recorder {
  background: oklch(0.08 0 0);
  aspect-ratio: 9 / 16;
  max-width: 220px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #f5f5f5;
}
.l2-recorder .silhouette {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  font-family: var(--mono); font-size: 11px; text-align: center;
}
.l2-recorder .rec {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; color: #fff;
}
.l2-recorder .rec .dot { width: 8px; height: 8px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulse 1.4s ease-in-out infinite; }
.l2-recorder .script {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  background: rgba(0,0,0,.55);
  padding: 8px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.5;
  border: 1px solid rgba(255,255,255,.12);
}

/* ---------- Admin review queue ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) {
  .admin-grid { grid-template-columns: 1fr; }
}
.admin-queue {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: 90px;
}
.admin-queue-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card-2);
}
.admin-queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.admin-queue-item:last-child { border-bottom: 0; }
.admin-queue-item:hover { background: var(--card-2); }
.admin-queue-item.active {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding-left: 11px;
}
.admin-queue-item .meta { flex: 1; min-width: 0; }
.admin-queue-item .name { font-size: 13.5px; font-weight: 500; }
.admin-conversation {
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.admin-message,
.admin-event {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 10px;
}

/* ---------- Inbox (two-pane) ---------- */
.inbox-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 0;
  height: calc(100vh - 200px);
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 20px 50px -30px var(--shadow);
}
.inbox-page {
  padding-bottom: 0;
}
body:has(.inbox-page) {
  overflow: hidden;
}
@media (max-width: 880px) {
  .inbox-shell { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .inbox-list { max-height: 300px; }
  .inbox-thread { min-height: 440px; }
  .inbox-list.has-active { display: none; }
  .inbox-thread.no-active { display: none; }
}

.inbox-list {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklch, var(--primary) 8%, var(--card-2)), var(--card-2));
  display: flex; flex-direction: column;
  overflow: hidden;
}
.inbox-list-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; justify-content: space-between;
}
.inbox-search-panel {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #eef8f3;
}
html[data-theme="dark"] .inbox-search-panel {
  background: color-mix(in oklch, var(--success) 14%, var(--card));
}
.inbox-search-panel .label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.inbox-search-results {
  position: static;
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
}
.inbox-search-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.inbox-search-option .grow { flex: 1; min-width: 0; }
.search-following-chip {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: color-mix(in oklch, var(--primary) 12%, var(--card));
  border: 1px solid color-mix(in oklch, var(--primary) 28%, var(--border));
}
.inbox-list-scroll {
  overflow-y: auto;
  flex: 1;
}
.inbox-viewing-panel {
  margin: 12px;
  padding: 12px;
  border: 1px solid color-mix(in oklch, var(--primary) 24%, var(--border));
  border-radius: 10px;
  background: color-mix(in oklch, var(--primary) 10%, var(--card));
  box-shadow: inset 3px 0 0 var(--primary);
}
.inbox-section { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.inbox-section-title {
  padding: 12px 14px 7px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg);
}
.inbox-section-empty {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  background: var(--card);
}

.inbox-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.inbox-list-item:hover { background: var(--card); }
.inbox-list-item.active {
  background: var(--card);
  border-left: 3px solid var(--primary);
  padding-left: 11px;
}
.inbox-list-item.unread { background: color-mix(in oklch, var(--primary) 8%, var(--card-2)); }
.inbox-list-item .body { flex: 1; min-width: 0; }
.inbox-list-item .head {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.inbox-list-item .who { font-weight: 600; }
.inbox-list-item .time { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.inbox-list-item .snippet {
  font-size: 12.5px; color: var(--muted);
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-list-item.unread .snippet { color: var(--fg); font-weight: 500; }
.inbox-list-item .unread-pill {
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  font-family: var(--mono); line-height: 1.3;
  margin-left: 6px;
}
.deal-mini-chip {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #eab308;
  color: #2f2600;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.deal-mini-chip.neutral {
  background: color-mix(in oklch, var(--primary) 10%, var(--card));
  color: var(--primary);
  border: 1px solid color-mix(in oklch, var(--primary) 28%, var(--border));
}
.deal-work-area { display: block; }
.deal-work-card .bubble-row { margin-bottom: 0; }

.inbox-thread {
  display: flex; flex-direction: column;
  background: var(--bg);
  min-height: 0;
  position: relative;
}
.inbox-thread-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; gap: 12px;
}
.inbox-thread-head .info { flex: 1; min-width: 0; }
.inbox-thread-head .name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.inbox-thread-head .sub  { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.inbox-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  background:
    radial-gradient(ellipse 600px 200px at 50% 0%, color-mix(in oklch, var(--primary) 4%, transparent), transparent 70%),
    var(--bg);
}

.bubble-row {
  display: flex; align-items: flex-end; gap: 8px;
  margin-bottom: 12px;
}
.bubble-row.mine { flex-direction: row-reverse; }
.bubble {
  max-width: 70%;
  padding: 9px 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 2px 6px -3px var(--shadow);
}
.bubble-row.mine .bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-fg);
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
}
.bubble .meta {
  font-size: 10.5px; color: var(--muted);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
}
.bubble-row.mine .bubble .meta { color: color-mix(in oklch, white 80%, transparent); }
.bubble pre, .bubble .text { white-space: pre-wrap; margin: 0; font-family: inherit; }
.assistant-attribution {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid color-mix(in oklch, currentColor 32%, transparent);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  background: color-mix(in oklch, var(--card) 72%, transparent);
}
.bubble-row.mine .assistant-attribution {
  color: #fff;
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.14);
}
.message-media {
  display: block;
  max-width: min(360px, 100%);
  max-height: 260px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  object-fit: contain;
  background: #000;
}

.inbox-composer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 7px 14px 8px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 0 0 auto;     /* never compress */
}
.assistant-inbox-field {
  min-width: 240px;
  margin: 0 0 0 auto;
}
.assistant-inbox-field.in-list {
  min-width: 0;
  margin: 0;
  width: 100%;
}
.assistant-inbox-select {
  min-width: 230px;
}
.assistant-inbox-field.in-list .assistant-inbox-select {
  min-width: 0;
  width: 100%;
}
.assistant-inbox-switcher {
  display: grid;
  gap: 6px;
}
.assistant-inbox-actor {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  padding: 7px 9px;
  font: 600 12px var(--sans);
  text-align: left;
  cursor: pointer;
}
.assistant-inbox-actor.active {
  border-color: var(--primary);
  background: color-mix(in oklch, var(--primary) 8%, var(--card));
}
.assistant-inbox-actor .unread-pill {
  background: var(--danger);
  color: #fff;
  font: 800 11px var(--mono);
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.assistant-send-context {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
}
.assistant-profile-progress,
.assistant-creator-completion {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
  margin-top: 10px;
}
.assistant-of-editor {
  margin: 12px 0;
}
.assistant-of-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(120px, .7fr) minmax(110px, .6fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .assistant-of-row { grid-template-columns: 1fr; }
}
.inbox-composer .composer-row {
  display: flex; align-items: flex-end; gap: 8px;
}
.inbox-composer textarea {
  flex: 1; min-height: 34px; max-height: 86px;
  padding: 8px 12px; resize: none;
  font-family: var(--sans); font-size: 13px; line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .38);
}
.modal-card {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 24px 70px -28px var(--shadow);
  padding: 18px;
}
.report-modal {
  display: grid;
  gap: 12px;
}

/* Deal-from-composer chip bar */
.deal-composer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-2);
  padding: 7px 10px;
}
.deal-composer.expanded {
  position: absolute;
  inset: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px -28px var(--shadow);
}
.deal-composer.expanded .deal-composer-form {
  flex: 1;
  overflow: auto;
}
.deal-composer-form {
  margin-top: 6px;
  padding: 8px 4px 4px;
  border-top: 1px dashed var(--border);
}
.deal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
@media (max-width: 720px) { .deal-form-grid { grid-template-columns: 1fr; } }
.deal-composer .dt-pill {
  padding: 4px 9px;
  font-size: 11.5px;
}
.deal-builder { display: flex; flex-direction: column; gap: 8px; }
.deal-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.paid-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1fr); gap: 8px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-head .check-row { margin-left: auto; }
.date-click-field { cursor: pointer; }
.date-click-field .input { cursor: pointer; }
.account-picker { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, 1fr); gap: 8px; }
.deal-builder textarea { min-height: 54px; max-height: 84px; }
.deal-builder .send-row { position: sticky; bottom: 0; padding: 8px 4px 2px; background: var(--card-2); }
.media-preview { min-height: 0; }
.linklike {
  border: 0; background: transparent; color: var(--primary);
  padding: 0; font: inherit; cursor: pointer;
}
.deal-row-msg { align-items: flex-start; }
.deal-history-list {
  display: grid;
  gap: 8px;
}
.deal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, max-content);
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.deal-row .dt,
.deal-row .title,
.deal-row .sub { min-width: 0; }
.deal-row .title {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.deal-row .title .badge {
  display: flex;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-top: 4px;
  vertical-align: middle;
}
.deal-account-line {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.deal-row .when {
  grid-column: 3;
  color: var(--muted);
  font-size: 11px;
  justify-self: end;
  text-align: right;
}
.deal-outcome-badge {
  white-space: normal;
  justify-self: end;
  max-width: 150px;
  text-align: right;
}
.deal-history-box {
  padding: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, max-content) auto;
  align-items: center;
  min-height: 74px;
}
.deal-history-box .dt {
  display: grid;
  gap: 4px;
}
.deal-history-box .title {
  font-weight: 700;
}
.deal-history-box .sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.deal-history-box .deal-outcome-badge {
  justify-self: end;
  align-self: center;
}
.deal-history-box .deal-admin-remove {
  justify-self: end;
  white-space: nowrap;
}
.deal-history-box .when {
  grid-column: 4;
  justify-self: end;
  align-self: end;
}
.deal-message-card {
  width: min(560px, 86%);
  padding: 13px;
  border: 1px solid color-mix(in oklch, #eab308 58%, var(--border));
  border-left: 5px solid #eab308;
  border-radius: 10px;
  background: #fff7cc;
  color: #2f2600;
  box-shadow: 0 12px 28px -22px var(--shadow);
}
.bubble-row.mine .deal-message-card {
  border-color: color-mix(in oklch, #eab308 58%, var(--border));
  border-left-color: #eab308;
}
.deal-message-card.expired {
  filter: grayscale(.25);
  opacity: .72;
  background: color-mix(in oklch, var(--card) 82%, var(--muted));
}
.deal-message-card.accepted {
  border-color: #16a34a !important;
  border-left-color: #16a34a !important;
  background: #dcfce7 !important;
  color: #052e16;
}
.bubble-row .deal-message-card.accepted,
.bubble-row.mine .deal-message-card.accepted {
  border-color: #16a34a !important;
  border-left-color: #16a34a !important;
  background: #dcfce7 !important;
  color: #052e16 !important;
}
.deal-message-card.declined {
  filter: grayscale(.2);
  opacity: .78;
  border-color: color-mix(in oklch, var(--muted) 55%, var(--border));
  border-left-color: var(--muted);
  background: color-mix(in oklch, var(--card) 82%, var(--muted));
}
.deal-message-card.disputed {
  border-color: color-mix(in oklch, #eab308 58%, var(--border));
  border-left-color: #eab308;
  background: #fff7cc;
  color: #2f2600;
}
.deal-card-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.deal-card-head strong { font-size: 14px; }
.deal-chip {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  border-radius: 999px; padding: 3px 7px;
  background: #eab308; color: #2f2600;
}
.deal-status {
  margin-left: auto; text-transform: capitalize; font-size: 14px; font-weight: 800;
  color: var(--muted); font-family: var(--mono);
}
.deal-next-step {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklch, #eab308 42%, var(--border));
  background: color-mix(in oklch, #eab308 16%, white);
}
.deal-next-step .deal-next-label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in oklch, #2f2600 72%, white);
}
.deal-next-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.deal-next-step p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: color-mix(in oklch, #2f2600 72%, white);
}
.deal-next-step.action {
  border-color: color-mix(in oklch, var(--primary) 46%, var(--border));
  background: color-mix(in oklch, var(--primary) 9%, white);
}
.deal-next-step.waiting {
  border-color: color-mix(in oklch, #eab308 50%, var(--border));
}
.deal-next-step.done {
  border-color: color-mix(in oklch, #16a34a 45%, var(--border));
  background: color-mix(in oklch, #16a34a 13%, white);
}
.deal-next-step.closed {
  border-color: color-mix(in oklch, var(--muted) 40%, var(--border));
  background: color-mix(in oklch, var(--card) 75%, var(--muted));
}
.deal-fact {
  display: grid; grid-template-columns: minmax(128px, .55fr) 1fr;
  gap: 10px; padding: 7px 0; border-top: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  font-size: 12.5px;
}
.deal-fact span { color: var(--muted); }
.deal-fact strong { font-weight: 650; overflow-wrap: anywhere; }
.deal-message-card .deal-fact span,
.deal-message-card .deal-status,
.deal-message-card .meta { color: color-mix(in oklch, #2f2600 72%, white); }
.deal-message-card.accepted .deal-status { color: #15803d; }
.deal-message-card.accepted .deal-fact,
.deal-message-card.accepted .deal-note {
  border-color: rgba(22, 163, 74, .22);
}
.deal-message-card.accepted .deal-fact span,
.deal-message-card.accepted .deal-status,
.deal-message-card.accepted .meta {
  color: #166534;
}
.deal-message-card.disputed .deal-status { color: #854d0e; }
.deal-message-card.expired .deal-status,
.deal-message-card.declined .deal-status { color: var(--muted); }
.deal-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.deal-list-next {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 750;
}
.inbox-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5000;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklch, var(--success) 45%, var(--border));
  background: color-mix(in oklch, var(--success) 14%, var(--card));
  color: var(--ink);
  box-shadow: 0 18px 46px -26px var(--shadow);
  font-size: 13px;
  font-weight: 750;
}
.inbox-notice.error {
  border-color: color-mix(in oklch, #eab308 55%, var(--border));
  background: color-mix(in oklch, #eab308 14%, var(--card));
}
.dispute-note {
  border-color: color-mix(in oklch, #eab308 40%, var(--border));
  background: color-mix(in oklch, #eab308 12%, var(--card));
}
.deal-note {
  margin-top: 10px; padding: 10px; border-radius: 8px;
  background: color-mix(in oklch, white 54%, transparent);
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}
.deal-note p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; }
.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.deal-message-card .meta { margin-top: 10px; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.deal-message-card .meta { color: color-mix(in oklch, #2f2600 72%, white); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 18px;
  background: color-mix(in oklch, black 46%, transparent);
}
.invalid-field {
  outline: 2px solid var(--danger) !important;
  border-color: var(--danger) !important;
}
.confirm-modal {
  width: min(560px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px -32px var(--shadow);
  padding: 20px;
}
.confirm-modal h3 { margin: 0; font-size: 18px; }
.confirm-modal textarea { min-height: 110px; resize: vertical; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
}
.deal-confirm-summary { margin: 12px 0; }
.admin-deal-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.admin-party-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-party-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--card-2);
}
.dispute-chat {
  max-height: 260px;
  overflow: auto;
}
.dispute-closed-note {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in oklch, var(--muted) 35%, var(--border));
  border-radius: 8px;
  background: color-mix(in oklch, var(--card) 80%, var(--muted));
  color: var(--muted);
  font-size: 12px;
}
.dispute-chat-modal .dispute-chat { max-height: 340px; }
@media (max-width: 760px) {
  .admin-deal-terms,
  .admin-party-actions { grid-template-columns: 1fr; }
  .signup-role-grid { grid-template-columns: 1fr; }
  .signup-card { padding: 26px; }
}

/* Directory/profile preview cards */
.profile-card .cover {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}
.profile-card .cover img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: var(--card-2);
  display: block;
}
.profile-card .row-between > .badge { display: none; }
.profile-card {
  border-radius: 8px;
}
.profile-card .preview-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 0;
}
.profile-card .preview-head > .preview-main { display: none; }
.preview-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 96px;
  gap: 6px;
}
.preview-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 10px;
  font-family: var(--mono);
  color: oklch(var(--avatar-text-l) 0.14 var(--h, 250));
  background: oklch(var(--avatar-bg-l) 0.05 var(--h, 250));
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-deal-total {
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in oklch, var(--primary) 7%, var(--card));
}
.preview-deal-total strong { font-family: var(--mono); font-size: 18px; }
.preview-deal-total span { color: var(--muted); font-size: 11px; }
.profile-card .preview-main {
  min-width: 0;
  flex: 1;
}
.profile-card .body {
  padding: 8px 10px 10px;
}
.profile-card .name {
  gap: 5px;
}
.profile-card .bio-preview {
  margin: 8px 0 0;
  padding: 8px;
  border-radius: 7px;
  background: color-mix(in oklch, var(--muted) 8%, var(--card));
  line-height: 1.45;
  height: calc(2.9em + 16px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.network-assistant-card .bio-preview {
  height: calc(5.8em + 16px);
  -webkit-line-clamp: 4;
}
.mini-snapshot {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
  margin-top: 0;
  margin-left: auto;
}
.of-preview-meta {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: capitalize;
}
.of-preview-meta.stacked {
  display: grid;
  gap: 3px;
  min-height: 54px;
  align-content: start;
}
.of-preview-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.of-preview-line strong {
  color: var(--fg);
}
.mini-snap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-2);
  font-size: 11px;
  line-height: 1;
}
.mini-snap strong {
  font-family: var(--mono);
  font-weight: 700;
}
.gender-pill { text-transform: capitalize; }
.directory-filters {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.network-discovery-notice {
  background: var(--card-2);
  border-color: var(--border);
  margin-bottom: 20px;
}
.network-discovery-notice .glyph {
  background: var(--card);
  border-color: var(--border);
  color: var(--muted);
}
.directory-filters .field {
  min-width: 160px;
  margin: 0;
}
.network-card .nmeta a { color: inherit; text-decoration: none; }
.network-card .nmeta a:hover { color: var(--primary); }
.network-card .roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.network-card .network-roster-strip {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) 48px;
  align-items: stretch;
}
.network-cycle-btn {
  width: 48px;
  min-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--fg);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.network-cycle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.network-card .roster .profile-card {
  color: inherit;
  text-decoration: none;
}
.network-assistant-card .assistant-network-summary {
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in oklch, var(--violet) 8%, var(--card));
  min-width: 0;
}
.network-assistant-card .assistant-network-summary span {
  color: var(--muted);
  font-size: 12px;
}
.network-about-title {
  display: block;
  margin: 8px 0 -2px;
  font-size: 12px;
}
.verif-row.on .vstatus {
  display: none;
}
.page > .cols-3 > .card {
  min-height: 150px;
}
.suggestion-card {
  margin-top: 18px;
  border: 1px solid color-mix(in oklch, var(--primary) 42%, var(--border));
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 18px;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--primary) 10%, var(--card)), var(--card));
  box-shadow: var(--shadow);
}
.suggestion-form {
  display: grid;
  gap: 10px;
}
.suggestion-input {
  min-height: 96px;
  resize: vertical;
}
.success-text { color: var(--success); }
.error-text { color: var(--danger); }
.suggestion-admin-item {
  align-items: flex-start;
}
.assistant-dashboard-page .page-head {
  align-items: flex-start;
}
.assistant-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.assistant-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}
.assistant-control-card,
.assistant-managed-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assistant-dashboard-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
}
.assistant-network-bio {
  min-height: calc(5.8em + 16px);
}
.assistant-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.assistant-form-grid .field {
  margin: 0;
}
.assistant-compact-textarea {
  min-height: 42px;
  max-height: 74px;
  resize: vertical;
}
.assistant-creator-list {
  display: grid;
  gap: 10px;
}
.assistant-creator-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
  overflow: hidden;
}
.assistant-creator-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.assistant-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.assistant-mini-stats span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--card);
}
.assistant-creator-editor {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: grid;
  gap: 12px;
}
.profile-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  gap: 16px;
  align-items: start;
}
.assistant-creator-profile-card {
  display: grid;
  gap: 14px;
}
.assistant-profile-four-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.assistant-profile-four-grid > .card {
  min-height: 430px;
}
.assistant-profile-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.assistant-profile-avatar {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.avatar.xl {
  width: 128px;
  height: 128px;
  font-size: 34px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-slot {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
  color: var(--muted);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1100px) {
  .assistant-dashboard-grid,
  .assistant-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-edit-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .assistant-dashboard-grid,
  .assistant-kpi-grid,
  .assistant-form-grid {
    grid-template-columns: 1fr;
  }
  .assistant-profile-grid {
    grid-template-columns: 1fr;
  }
  .assistant-inbox-field {
    margin-left: 0;
    width: 100%;
  }
  .profile-card .preview-head {
    grid-template-columns: 80px minmax(150px, 1fr) 80px;
  }
  .profile-card .cover,
  .preview-deal-total { width: 80px; height: 80px; }
  .preview-photo-strip { grid-template-rows: 80px; }
  .preview-thumb { height: 80px; }
  .network-card .roster {
    grid-template-columns: 1fr;
  }
  .network-card .network-roster-strip {
    grid-template-columns: 1fr;
  }
  .network-cycle-btn {
    width: 100%;
    min-height: 44px;
  }
  .paid-row { grid-template-columns: 1fr; }
  .deal-message-card { width: 100%; }
  .deal-fact { grid-template-columns: 1fr; gap: 2px; }
  .suggestion-card { grid-template-columns: 1fr; }
}

/* Top-bar inbox link with notification badge */
.nav-inbox { position: relative; }
.nav-inbox .badge-dot {
  position: absolute; top: 2px; right: 0; z-index: 10;
  min-width: 16px; height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger); color: white;
  font-size: 10px; font-weight: 700; line-height: 16px;
  text-align: center;
  font-family: var(--mono);
  transform: translate(40%, -10%);
}

/* ---------- Sign-in admin quick-fill ---------- */
.demo-account-btn {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--card-2);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.demo-account-btn:hover { border-color: var(--primary); }
.demo-account-btn .meta { flex: 1; min-width: 0; }
.demo-account-btn .meta .who { font-weight: 600; font-size: 13px; }
.demo-account-btn .meta .creds { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.demo-account-btn .role-chip {
  font-family: var(--mono); font-size: 10px;
  background: var(--primary); color: var(--primary-fg);
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
}

/* Light-mode adjustments for some mood.css elements designed for dark */
html[data-theme="light"] .ui .topbar .lights span { background: oklch(0.86 0 0); }
html[data-theme="light"] .record-frame { background: oklch(0.18 0 0); }

/* Bumped card */
.card { border-radius: var(--radius); }
.card.elevated { box-shadow: 0 12px 30px -18px var(--shadow); border-color: var(--border); }

/* Bigger buttons */
.btn { border-radius: var(--radius); }
.btn.lg { border-radius: var(--radius); }
.btn.primary { box-shadow: 0 6px 16px -8px color-mix(in oklch, var(--primary) 55%, transparent); }
.btn.primary:hover { box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--primary) 70%, transparent); }
.btn.danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
