/* ELLISA V1.6.0 — Base44 Source Fidelity
   Camada visual do App reconstruída a partir do export ellisa-style-share.
   CSS canônico: um único :root e sem blocos de hotfix empilhados. */

:root {
  --bg:#F5F1EE;
  --fg:#111111;
  --card:#FFFFFF;
  --border:#F0E9E5;
  --border-input:#E8E4DE;
  --body:#444444;
  --muted:#AAAAAA;
  --muted-dark:#888888;
  --muted-light:#CCCCCC;
  --secondary:#F0E9E5;
  --accent:#6B192A;
  --success:#00A06A;
  --success-bg:#E6FAF0;
  --success-border:#B2EDD4;
  --danger:#6B192A;
  --danger-bg:#FFF0EE;
  --danger-border:#F5B8AE;
  --info:#0070C0;
  --info-bg:#E8F0FF;
  --info-border:#C8D8FF;
  --warning:#C08000;
  --warning-bg:#FFF8E6;
  --warning-border:#FFE4A0;
  --purple:#8B4355;
  --purple-bg:#F3E8FF;
  --app-w:480px;
  --topbar-h:53px;
  --actionbar-h:49px;
  --nav-h:58px;
}

* { box-sizing:border-box; }
html,body { margin:0; padding:0; min-height:100%; }
html { background:#efefed; }
body {
  min-height:100vh;
  background:#efefed;
  color:var(--fg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
img,video { display:block; max-width:100%; }
svg.ico { display:block; flex:none; }
[hidden],.hide { display:none!important; }

.app-shell {
  width:100%;
  max-width:var(--app-w);
  min-height:100vh;
  margin:0 auto;
  position:relative;
  overflow-x:hidden;
  background:var(--bg);
  box-shadow:0 0 0 1px rgba(17,17,17,.025),0 14px 42px rgba(17,17,17,.05);
}
.app-main {
  min-height:calc(100vh - var(--topbar-h) - var(--actionbar-h));
  padding:0 16px 80px;
  background:var(--bg);
}
.app-header {
  height:var(--topbar-h);
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.brand {
  color:var(--fg);
  font-size:18px;
  line-height:1;
  font-weight:300;
  letter-spacing:.3em;
  white-space:nowrap;
}
.mode-switch {
  min-height:var(--actionbar-h);
  position:sticky;
  top:var(--topbar-h);
  z-index:20;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.mode-switch a {
  flex:1;
  min-height:33px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:9px 8px;
  border-radius:16px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:12px;
  line-height:1.1;
  font-weight:700;
  white-space:nowrap;
}
.mode-switch a.active { background:var(--fg); color:#fff; }
.mode-emoji { font-size:13px; line-height:1; }

.bottom-nav {
  position:fixed;
  z-index:30;
  left:50%;
  bottom:0;
  width:min(100%,var(--app-w));
  transform:translateX(-50%);
  background:#fff;
  border-top:1px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-nav-inner {
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-around;
  padding:8px 8px 7px;
}
.bottom-nav a {
  min-width:52px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:4px 7px;
  border-radius:12px;
  color:var(--muted-light);
  font-size:9px;
  line-height:1;
  font-weight:500;
}
.bottom-nav a .ico { width:20px; height:20px; stroke-width:1.5; }
.bottom-nav a.active { color:var(--fg); }
.bottom-nav a.active .ico { stroke-width:2.5; }

.page-head {
  margin:0 -16px;
  padding:12px 16px 8px;
  background:var(--bg);
}
.page-head h1 { margin:0; font-size:18px; line-height:1.2; font-weight:300; }
.toast {
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  line-height:1.35;
  border:1px solid transparent;
}
.toast.success { color:var(--success); background:var(--success-bg); border-color:var(--success-border); }
.toast.danger { color:var(--danger); background:var(--danger-bg); border-color:var(--danger-border); }

/* primitives */
.btn {
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
}
.btn.block { width:100%; }
.btn.primary { background:var(--fg); color:#fff; }
.btn.accent { background:var(--accent); color:#fff; }
.btn.light { background:var(--secondary); color:var(--fg); border:1px solid var(--border-input); }
.btn.success { background:var(--success); color:#fff; }
.btn.info { background:var(--info); color:#fff; }
.btn.warning { background:var(--warning-bg); color:var(--warning); border:1px solid var(--warning-border); }
.btn.danger { background:var(--danger-bg); color:var(--danger); border:1px solid var(--danger-border); }
.btn.purple { background:var(--purple-bg); color:var(--purple); }
.btn:disabled { opacity:.35; cursor:not-allowed; }

.icon-btn,.source-back,.tiny-round,.detail-round-btn,.filter-circle,.cart-trash {
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.icon-btn {
  width:36px;
  height:36px;
  border-radius:50%;
  color:var(--fg);
  background:#fff;
  border:1px solid var(--border-input);
}
.label {
  display:block;
  margin:0 0 6px;
  color:var(--muted-dark);
  font-size:10px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.input,.select,.textarea {
  width:100%;
  min-height:42px;
  appearance:none;
  border:1px solid var(--border-input);
  outline:0;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:var(--fg);
  font-size:13px;
  line-height:1.35;
}
.textarea { min-height:92px; resize:vertical; }
.input::placeholder,.textarea::placeholder { color:var(--muted); }
.input:focus,.select:focus,.textarea:focus { border-color:#bdb8af; box-shadow:0 0 0 2px rgba(17,17,17,.035); }
.form-group { margin-bottom:12px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.form-row { display:flex; gap:8px; align-items:center; }
.stack { display:grid; gap:8px; }
.grow { flex:1; min-width:0; }
.card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.description { color:var(--body); font-size:14px; line-height:1.625; }
.empty,.source-empty {
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  text-align:center;
}
.source-empty strong { color:var(--muted); font-size:14px; font-weight:500; }
.source-empty span { color:var(--muted-light); font-size:12px; }
.source-empty .btn { margin-top:8px; }
.empty-emoji { font-size:36px; line-height:1; }
.eyebrow {
  margin:0;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:3px 8px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  font-weight:700;
  background:var(--secondary);
  color:var(--muted-dark);
}
.badge.success { background:var(--success-bg); color:var(--success); }
.badge.danger { background:var(--danger-bg); color:var(--danger); }
.badge.info { background:var(--info-bg); color:var(--info); }
.badge.warning { background:var(--warning-bg); color:var(--warning); }
.badge.purple { background:var(--purple-bg); color:var(--purple); }
.badge.neutral { background:var(--secondary); color:var(--muted-dark); }
.text-link { color:var(--accent); font-size:10px; font-weight:600; }
.horizontal { display:flex; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; }
.horizontal::-webkit-scrollbar { display:none; }

/* local page headings */
.source-page { margin:0 -16px; padding:0 16px 20px; }
.source-local-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0 16px;
}
.source-local-head h2 { margin:0; color:var(--fg); font-size:18px; line-height:1.2; font-weight:300; }
.source-local-head p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.source-local-head-actions { align-items:flex-start; }
.source-pills {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:0 0 12px;
  scrollbar-width:none;
}
.source-pills::-webkit-scrollbar { display:none; }
.source-pills a {
  flex:none;
  padding:7px 12px;
  border-radius:999px;
  background:var(--secondary);
  border:1px solid var(--border-input);
  color:var(--muted-dark);
  font-size:11px;
  line-height:1;
  font-weight:600;
}
.source-pills a.active { background:var(--fg); border-color:var(--fg); color:#fff; }

/* Home */
.home-search-row { margin:0 -16px; padding:8px 16px 6px; }
.searchbar { width:100%; }
.searchbar form,.home-search-row .searchbar { display:flex; gap:8px; align-items:center; }
.search-field {
  min-width:0;
  flex:1;
  height:40px;
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid var(--border-input);
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.search-field .ico { color:var(--muted-light); }
.search-input {
  min-width:0;
  flex:1;
  height:38px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--fg);
  font-size:14px;
}
.search-input::placeholder { color:var(--muted); }
.filter-circle {
  width:40px;
  height:40px;
  flex:none;
  border-radius:50%;
  border:1px solid var(--border-input);
  background:#fff;
  color:var(--fg);
}
.home-profiles,.home-categories,.home-products { margin:0 -16px; }
.home-profiles { padding-top:2px; }
.home-directory-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:3px 16px 8px;
}
.home-directory-tabs {
  display:flex;
  align-items:center;
  gap:4px;
  padding:2px;
  border-radius:999px;
  background:var(--secondary);
}
.home-directory-tabs a {
  padding:5px 11px;
  border-radius:999px;
  color:var(--muted-dark);
  font-size:11px;
  font-weight:600;
  line-height:1;
}
.home-directory-tabs a.active { background:var(--fg); color:#fff; }
.home-see-more {
  padding:6px 12px;
  border-radius:999px;
  background:var(--fg);
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:600;
}
.wardrobe-strip {
  gap:16px;
  padding:0 16px 12px;
  min-height:160px;
}
.profile-mini {
  width:95px;
  flex:0 0 95px;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:var(--fg);
}
.profile-cover {
  width:95px;
  height:115px;
  position:relative;
  display:block;
  overflow:visible;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}
.profile-cover>img,.profile-cover-fallback {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  object-fit:cover;
  overflow:hidden;
  background:#ece9e4;
  color:var(--muted-dark);
  font-size:24px;
}
.profile-gradient {
  position:absolute;
  inset:0;
  border-radius:15px;
  background:linear-gradient(to top,rgba(0,0,0,.45) 0%,transparent 55%);
}
.profile-cover>em {
  position:absolute;
  top:5px;
  right:5px;
  z-index:2;
  min-width:20px;
  padding:3px 6px;
  border-radius:8px;
  background:#333;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-style:normal;
  font-weight:700;
  text-align:center;
}
.profile-avatar {
  width:40px;
  height:40px;
  position:absolute;
  left:50%;
  bottom:-16px;
  z-index:3;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:2px solid #fff;
  border-radius:50%;
  background:#333;
  color:#fff;
  box-shadow:0 0 0 2px rgba(107,25,42,.2);
  font-size:12px;
}
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-avatar b { font-size:12px; }
.profile-mini>strong {
  max-width:95px;
  margin-top:21px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.15;
  font-weight:600;
}
.profile-mini>small {
  max-width:95px;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted-dark);
  font-size:11px;
  line-height:1.1;
}
.home-categories { padding-top:3px; }
.home-categories>.eyebrow { padding:0 16px 8px; }
.category-strip { gap:12px; padding:0 16px 8px; }
.category-mini {
  width:76px;
  flex:0 0 76px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:var(--body);
  font-size:10px;
  line-height:1.1;
  font-weight:600;
  text-align:center;
}
.category-photo {
  width:72px;
  height:72px;
  position:relative;
  display:block;
  border-radius:50%;
}
.category-photo img { width:72px; height:72px; object-fit:cover; border-radius:50%; }
.category-photo i { position:absolute; inset:0; border-radius:50%; background:transparent; }
.category-mini.active { color:var(--accent); }
.category-mini.active .category-photo { outline:2.5px solid var(--accent); outline-offset:2px; }
.category-mini.active .category-photo i { background:rgba(107,25,42,.18); }
.subcat-chips { gap:8px; padding:8px 16px 10px; }
.subcat-chips a {
  flex:none;
  padding:7px 12px;
  border:1px solid var(--border-input);
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}
.subcat-chips a.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.seller-filter-note {
  margin:4px 0 8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:9px 11px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--muted-dark);
  font-size:11px;
}
.seller-filter-note a { color:var(--accent); font-weight:700; }
.home-products { padding:6px 16px 24px; }
.source-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
.source-section-head h3 { margin:0; color:var(--fg); font-size:14px; font-weight:600; }
.source-section-head span { color:var(--muted); font-size:10px; }
.product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-card { min-width:0; }
.product-card>a { display:block; }
.product-card .photo {
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:16px;
  background:#eeeae5;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.product-card .photo img,.product-card .photo video { width:100%; height:100%; object-fit:cover; }
.product-card .body { padding:8px 2px 0; }
.product-card h3 {
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--fg);
  font-size:12px;
  line-height:1.2;
  font-weight:500;
}
.product-card .meta {
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:10px;
  line-height:1.2;
}
.product-location {
  margin-top:4px;
  display:flex;
  align-items:center;
  gap:3px;
  color:var(--muted);
  font-size:10px;
}
.product-location .ico { color:var(--muted-light); }
.product-card .price-row {
  min-height:34px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:7px;
}
.price-block { min-width:0; display:flex; flex-direction:column; gap:2px; }
.price-block strong {
  color:var(--fg);
  font-size:14px;
  line-height:1.05;
  font-weight:700;
  white-space:nowrap;
}
.price-block strong em { color:var(--muted); font-size:9px; font-style:normal; font-weight:400; }
.price-block small {
  color:var(--muted-dark);
  font-size:9px;
  line-height:1;
  font-weight:500;
}
.price-divider { width:1px; height:26px; align-self:center; background:var(--border); }

/* Filter bottom sheet */
.filter-sheet {
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:0;
  background:rgba(0,0,0,.45);
}
.filter-sheet.open { display:flex; }
.filter-card {
  width:min(100%,480px);
  max-height:82vh;
  overflow:auto;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  background:#fff;
  box-shadow:0 -4px 30px rgba(0,0,0,.14);
}
.filter-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.filter-title { display:flex; align-items:center; gap:8px; }
.filter-title h2 { margin:0; font-size:16px; font-weight:700; }
.filter-section { padding:4px 0 14px; }
.filter-section>strong { display:block; margin-bottom:10px; color:var(--muted-dark); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.filter-search-city { position:relative; display:flex; align-items:center; margin-bottom:10px; }
.filter-search-city>.ico { position:absolute; left:12px; color:var(--muted); }
.filter-search-city .input { padding-left:36px; }
.chip-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.chip { cursor:pointer; }
.chip input { position:absolute; opacity:0; pointer-events:none; }
.chip span {
  display:block;
  padding:7px 11px;
  border:1px solid var(--border-input);
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:11px;
}
.chip input:checked+span { background:var(--fg); border-color:var(--fg); color:#fff; }
.filter-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-top:8px; }

/* Item detail */
.detail-gallery {
  position:relative;
  margin:0 -16px;
  background:#fff;
}
.detail-gallery-track {
  display:flex;
  width:100%;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.detail-gallery-track::-webkit-scrollbar { display:none; }
.detail-gallery-slide {
  flex:0 0 100%;
  width:100%;
  aspect-ratio:3/4;
  scroll-snap-align:start;
  overflow:hidden;
}
.detail-gallery-slide img,.detail-gallery-slide video { width:100%; height:100%; object-fit:cover; }
.detail-gallery-actions {
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.detail-round-btn {
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  border:1px solid var(--border-input);
  color:var(--fg);
  backdrop-filter:blur(8px);
  pointer-events:auto;
}
.gallery-dots {
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}
.gallery-dots i { width:6px; height:6px; border-radius:50%; background:rgba(0,0,0,.2); }
.gallery-dots i:first-child,.gallery-dots i.active { background:var(--fg); }
.item-source-body { padding:20px 0 26px; }
.item-source-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.detail-title { margin:0; color:var(--fg); font-size:20px; line-height:1.2; font-weight:300; }
.detail-sub { margin:4px 0 0; color:var(--muted); font-size:14px; }
.condition-pill {
  flex:none;
  padding:6px 10px;
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:10px;
  font-weight:500;
}
.detail-price { display:flex; align-items:flex-start; gap:24px; margin-top:16px; }
.detail-price>div { display:flex; flex-direction:column; }
.detail-price small { color:var(--muted-light); font-size:9px; letter-spacing:.14em; text-transform:uppercase; }
.detail-price strong { margin-top:2px; color:var(--fg); font-size:24px; line-height:1.1; font-weight:700; }
.freight-link {
  margin-top:20px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:2px;
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}
.info-pills { display:flex; gap:8px; margin-top:12px; }
.info-pill {
  flex:1;
  min-width:0;
  min-height:67px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:12px 8px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted-dark);
  text-align:center;
}
.info-pill span { font-size:10px; line-height:1.2; }
.item-description { margin-top:20px; }
.description-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.description-toolbar h3 { margin:0; color:var(--muted-dark); font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.listen-link {
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  display:flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
}
.measure-panel {
  margin-top:20px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.measure-panel summary {
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  list-style:none;
  color:var(--muted-dark);
  cursor:pointer;
}
.measure-panel summary::-webkit-details-marker { display:none; }
.measure-panel summary span { display:flex; align-items:center; gap:8px; font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.measure-panel p { margin:0; padding:0 14px 14px; color:var(--body); font-size:14px; line-height:1.625; }
.product-code {
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted-light);
  font-size:10px;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.product-code b { color:var(--muted-dark); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px; font-weight:400; letter-spacing:0; text-transform:none; }
.seller-line {
  margin-top:20px;
  min-height:66px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}
.seller-main { flex:1; min-width:0; display:flex; align-items:center; gap:11px; }
.avatar {
  width:40px;
  height:40px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:50%;
  background:var(--fg);
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.avatar img { width:100%; height:100%; object-fit:cover; }
.seller-main h3 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--fg); font-size:14px; font-weight:600; }
.seller-main p { margin:3px 0 0; font-size:10px; }
.seller-main p.outlet { color:var(--accent); }
.seller-main p.wardrobe { color:var(--info); }
.seller-chat {
  width:36px;
  height:36px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--secondary);
  color:var(--fg);
}
.owner-view-count { margin-top:10px; display:flex; align-items:center; gap:5px; color:var(--accent); font-size:10px; font-weight:600; }
.reviews-head { margin-top:20px; }
.review-card { margin-bottom:8px; }
.review-card strong { display:flex; justify-content:space-between; gap:8px; font-size:11px; }
.review-card strong span { color:var(--accent); }
.review-card p { margin:7px 0 0; color:var(--body); font-size:12px; line-height:1.45; }
.product-actions-sticky {
  position:fixed;
  z-index:25;
  left:50%;
  bottom:80px;
  width:min(calc(100% - 32px),448px);
  transform:translateX(-50%);
}
.source-cta-card {
  padding:12px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 -2px 20px rgba(0,0,0,.08);
}
.source-cta-card>p { margin:0 0 8px; color:var(--muted); font-size:10px; text-align:center; }
.source-cta-card .action-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* Checkout / payment source sections */
.product-form-section {
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
}
.product-form-section:first-child { margin-top:0; padding-top:0; border-top:0; }
.product-form-section h3 { margin:0 0 9px; color:var(--fg); font-size:12px; font-weight:600; }
.product-form-section .warning-box { margin-top:10px; }

/* Modals/payment/checkout */
.modal-sheet {
  position:fixed;
  inset:0;
  z-index:70;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(0,0,0,.45);
}
.modal-sheet.open { display:flex; }
.modal-card {
  width:min(100%,480px);
  max-height:88vh;
  overflow:auto;
  position:relative;
  padding:20px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  background:#fff;
  box-shadow:0 -4px 30px rgba(0,0,0,.15);
}
.modal-card h2 { margin:0 42px 18px 0; font-size:16px; font-weight:700; }
.modal-x {
  width:32px;
  height:32px;
  position:absolute;
  top:14px;
  right:14px;
  border:0;
  border-radius:50%;
  background:var(--bg);
  color:var(--muted-dark);
  font-size:20px;
}
.freight-result { display:none; margin:10px 0; padding:10px 12px; border-radius:12px; background:var(--bg); color:var(--body); font-size:11px; }
.freight-result.show { display:block; }
.shipping-options { display:grid; gap:8px; margin:8px 0 14px; }
.choice-card { cursor:pointer; }
.choice-card input { position:absolute; opacity:0; }
.choice-card span {
  display:block;
  padding:12px;
  border:1px solid var(--border-input);
  border-radius:14px;
  background:#fff;
  color:var(--body);
  font-size:12px;
}
.choice-card input:checked+span { border-color:var(--fg); box-shadow:0 0 0 1px var(--fg); color:var(--fg); }
.checkout-summary,.address-box,.payment-security,.pix-box {
  margin-top:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.summary-line { display:flex; justify-content:space-between; gap:10px; padding:6px 0; color:var(--muted-dark); font-size:11px; }
.summary-line.total { margin-top:5px; padding-top:10px; border-top:1px solid var(--border); color:var(--fg); font-weight:700; }
.summary-line.total strong { font-size:15px; }
.payment-tabs { display:flex; gap:4px; padding:3px; border-radius:999px; background:var(--secondary); }
.payment-tab { flex:1; border:0; border-radius:999px; padding:7px 9px; background:transparent; color:var(--muted-dark); font-size:11px; font-weight:600; cursor:pointer; }
.payment-tab.active { background:var(--fg); color:#fff; }
.payment-panel { display:none; margin-top:12px; }
.payment-panel.active { display:block; }

/* Seller dashboard */
.seller-dashboard-source { margin:0 -16px; padding:0 16px 22px; }
.source-page-title {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 0 12px;
}
.source-page-title h2,.source-page-title { color:var(--fg); font-size:16px; font-weight:600; }
.source-page-title h2 { margin:0; }
.seller-performance-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:12px;
}
.seller-performance-actions { display:flex; align-items:center; gap:6px; }
.seller-performance-actions a,.seller-performance-actions button,.seller-filter-note {
  font-size:10px;
}
.source-revenue-card {
  padding:20px;
  border-radius:16px;
  background:var(--fg);
  color:#fff;
}
.source-revenue-card small { display:block; color:rgba(255,255,255,.5); font-size:10px; letter-spacing:.14em; text-transform:uppercase; }
.source-revenue-card strong { display:block; margin-top:5px; font-size:30px; line-height:1.1; font-weight:300; }
.source-revenue-card span { display:block; margin-top:5px; color:rgba(255,255,255,.4); font-size:10px; }
.seller-compare,.seller-summary { margin-top:20px; }
.seller-compare>.eyebrow,.seller-summary>.eyebrow { margin-bottom:12px; }
.seller-ratio {
  height:12px;
  display:flex;
  overflow:hidden;
  margin-bottom:14px;
  border-radius:999px;
  background:var(--secondary);
}
.seller-ratio i { display:block; background:var(--fg); }
.seller-ratio b { display:block; background:var(--accent); }
.seller-fin-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.source-fin-card {
  min-width:0;
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.fin-label { display:flex; align-items:center; gap:7px; color:var(--muted-dark); font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.fin-label .dot { width:10px; height:10px; border-radius:50%; }
.fin-label .dot.dark { background:var(--fg); }
.fin-label .dot.coral { background:var(--accent); }
.source-fin-card>strong { display:block; margin-top:9px; color:var(--fg); font-size:20px; line-height:1.1; font-weight:700; }
.source-fin-card>strong.amber { color:#E8A020; }
.source-fin-card>strong.green { color:var(--success); }
.source-fin-card>em { display:block; margin-top:5px; color:var(--accent); font-size:10px; font-style:normal; font-weight:600; }
.source-fin-card>small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.fin-meta { display:grid; gap:3px; margin-top:9px; padding-top:9px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }

/* My Items */
.source-new-pill {
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--fg);
  color:#fff;
  font-size:12px;
  font-weight:600;
}
.seller-item-list { display:grid; gap:8px; }
.seller-item-row {
  min-height:80px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.seller-item-row>img { width:56px; height:56px; flex:none; border-radius:12px; object-fit:cover; background:var(--bg); }
.seller-item-row .grow { color:var(--fg); }
.seller-item-row h3 { margin:1px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; }
.seller-item-row p { margin:4px 0; color:var(--muted); font-size:10px; }
.seller-item-status { display:inline-block; font-size:9px; font-weight:700; }
.source-return-pill {
  align-self:flex-end;
  flex:none;
  display:flex;
  align-items:center;
  gap:4px;
  padding:5px 8px;
  border:1px solid var(--danger-border);
  border-radius:999px;
  background:var(--danger-bg);
  color:var(--danger);
  font-size:9px;
  font-weight:600;
}

/* Product create/edit */
.item-form-source { padding-bottom:28px; }
.source-form-head {
  min-height:57px;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 -16px;
  padding:12px 16px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.source-form-head h2 { margin:0; font-size:16px; font-weight:300; }
.source-back {
  width:32px;
  height:32px;
  flex:none;
  border-radius:50%;
  background:var(--bg);
  color:var(--fg);
}
.source-product-form { padding-top:16px; }
.source-form-section { margin:0 0 20px; }
.source-form-section h3,.source-form-title strong {
  display:block;
  margin:0 0 10px;
  color:var(--fg);
  font-size:12px;
  font-weight:600;
}
.source-form-title { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.source-form-title strong { margin:0; }
.source-form-title span { color:var(--muted); font-size:10px; }
.source-form-section .label { margin-top:2px; }
.media-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.media-slot {
  aspect-ratio:1/1;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
  border:1px dashed #cbc6bd;
  border-radius:12px;
  background:#fff;
  color:var(--muted);
  cursor:pointer;
}
.media-slot img,.media-slot video { width:100%; height:100%; object-fit:cover; }
.media-slot input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.media-slot small { font-size:9px; }
.media-plus { color:var(--muted-dark); }
.ai-row { display:flex; justify-content:flex-end; margin-top:10px; }
.ai-button {
  display:flex;
  align-items:center;
  gap:5px;
  padding:7px 10px;
  border:1px solid var(--border-input);
  border-radius:999px;
  background:#fff;
  color:var(--muted-dark);
  font-size:10px;
  font-weight:600;
  cursor:pointer;
}
.ai-button.loading { opacity:.5; }
.source-check { display:flex; align-items:center; gap:7px; margin:4px 0 12px; color:var(--body); font-size:11px; }
.shipping-measures { grid-template-columns:repeat(2,minmax(0,1fr)); }
.source-publish { min-height:46px; margin-top:8px; border-radius:14px; font-size:14px; }

/* Orders */
.orders-source .source-pills { padding-bottom:12px; }
.order-status-analysis {
  margin:0 0 16px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.order-status-analysis .order-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.analysis-total {
  padding:4px 8px;
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:10px;
  font-weight:700;
}
.status-line {
  display:grid;
  grid-template-columns:96px 1fr 22px;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.status-name { display:flex; align-items:center; gap:6px; color:#666; font-size:11px; white-space:nowrap; }
.status-name i { width:8px; height:8px; flex:none; border-radius:50%; }
.status-line .bar { height:16px; overflow:hidden; border-radius:999px; background:var(--secondary); }
.status-line .bar b { display:block; height:100%; border-radius:999px; }
.status-line>strong { font-size:11px; text-align:right; }
.source-order-list { display:grid; gap:12px; }
.order-card {
  display:block;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  color:var(--fg);
}
.order-card .order-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.order-card .order-top small { display:block; color:var(--muted); font-size:9px; }
.order-card .order-top h3 { margin:3px 0 0; font-size:12px; font-weight:600; }
.order-product { display:flex; align-items:center; gap:11px; margin-top:11px; padding-top:11px; border-top:1px solid var(--border); }
.order-product img { width:56px; height:56px; flex:none; border-radius:12px; object-fit:cover; }
.order-product p { margin:0; color:var(--muted-dark); font-size:10px; }
.order-product strong { display:block; margin-top:5px; font-size:14px; }

/* Cart */
.source-explore-pill {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  box-shadow:0 4px 12px rgba(107,25,42,.35);
  font-size:12px;
  font-weight:700;
}
.cart-group {
  overflow:hidden;
  margin-bottom:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.cart-group-head {
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 12px;
  background:#FAFAF9;
  border-bottom:1px solid var(--border);
  color:var(--fg);
  font-size:11px;
}
.cart-source-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px;
  border-bottom:1px solid var(--border);
}
.cart-source-row:last-child { border-bottom:0; }
.cart-source-row>img { width:56px; height:56px; flex:none; border-radius:12px; object-fit:cover; }
.cart-source-row h3 { margin:0; font-size:12px; font-weight:600; }
.cart-source-row p { margin:4px 0; color:var(--muted); font-size:10px; }
.cart-source-row strong { font-size:13px; }
.cart-trash { width:32px; height:32px; flex:none; border-radius:50%; background:var(--danger-bg); color:var(--danger); }
.cart-source-total { display:flex; justify-content:space-between; align-items:center; padding:14px 2px; color:var(--muted-dark); font-size:11px; }
.cart-source-total strong { color:var(--fg); font-size:18px; }
.cart-checkout { min-height:46px; font-size:14px; }

/* Notifications */
.coral-text { color:var(--accent)!important; }
.source-mark-read {
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:12px;
  font-weight:500;
}
.notification-list { display:grid; gap:8px; }
.notification {
  display:flex;
  align-items:flex-start;
  gap:12px;
  position:relative;
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.notification.unread { border-color:#F8D0C8; }
.notification-icon {
  width:36px;
  height:36px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:color-mix(in srgb,var(--notif-color) 9%,white);
  color:var(--notif-color);
}
.notification-type { color:var(--notif-color); font-size:10px; font-weight:600; }
.notification p { margin:3px 0 0; color:var(--fg); font-size:14px; line-height:1.55; }
.notification small { display:block; margin-top:5px; color:var(--muted-light); font-size:10px; }
.notification-dot { width:8px; height:8px; flex:none; margin-top:6px; border-radius:50%; background:var(--accent); }

/* Wardrobes / Outlet directories */
.directory-source { margin:0 -16px; min-height:calc(100vh - 182px); padding-bottom:24px; }
.directory-head {
  position:sticky;
  top:calc(var(--topbar-h) + var(--actionbar-h));
  z-index:10;
  padding:14px 16px 12px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.directory-title { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.directory-title h1 { margin:0; font-size:16px; font-weight:600; }
.directory-title>span { margin-left:auto; color:var(--muted); font-size:12px; }
.directory-search {
  min-height:42px;
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border:1px solid var(--border-input);
  border-radius:16px;
  background:var(--bg);
}
.directory-search>.ico { color:var(--muted); }
.directory-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--fg); font-size:14px; }
.directory-search input::placeholder { color:var(--muted); }
.directory-search a { color:var(--muted); }
.directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; }
.directory-card {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 1px 6px rgba(0,0,0,.05);
}
.directory-cover { height:120px; position:relative; background:#eeeae5; }
.directory-cover>img { width:100%; height:100%; object-fit:cover; }
.directory-cover-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:36px; }
.directory-cover>i { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.5) 0%,transparent 55%); }
.directory-badge {
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.6);
  color:#fff;
  font-size:9px;
  font-weight:700;
}
.directory-avatar {
  width:36px;
  height:36px;
  position:absolute;
  left:12px;
  bottom:-13px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--bg);
  color:var(--accent);
  box-shadow:0 0 0 2px rgba(107,25,42,.14);
  font-size:10px;
  font-weight:700;
}
.directory-avatar.outlet-avatar { color:var(--accent); }
.directory-avatar img { width:100%; height:100%; object-fit:cover; }
.directory-info { padding:17px 12px 12px; }
.directory-info h3 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; }
.directory-info p { margin:4px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; }
.directory-empty { grid-column:1/-1; }

/* Profile */
.profile-source { padding-top:12px; }
.profile-public-back { margin-bottom:10px; border:1px solid var(--border-input); }
.profile-source-head { display:flex; align-items:flex-start; gap:12px; }
.profile-source-avatar {
  width:64px;
  height:64px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
  background:#333;
  color:#fff;
  font-size:20px;
  font-weight:300;
}
.profile-source-avatar.store { background:var(--accent); }
.profile-source-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-source-copy { flex:1; min-width:0; }
.profile-source-name { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.profile-source-name h2 { margin:0; color:var(--fg); font-size:16px; font-weight:600; }
.profile-source-copy>p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.profile-source-copy>span { display:-webkit-box; margin-top:4px; overflow:hidden; color:var(--muted-dark); font-size:11px; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.rating-pill { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:999px; background:var(--fg); color:#fff; font-size:11px; font-weight:700; }
.verified-dot { width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:var(--info); color:#fff; font-size:10px; font-weight:700; }
.outlet-pill { padding:3px 7px; border-radius:999px; background:var(--danger-bg); color:var(--accent); font-size:9px; font-weight:700; }
.profile-source-tools { display:flex; gap:6px; flex:none; }
.tiny-round { width:24px; height:24px; border-radius:50%; background:var(--bg); border:1px solid var(--border-input); color:var(--fg); }
.profile-source-stats {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin:12px -16px 0;
  padding:0 16px 12px;
  border-bottom:1px solid var(--border);
}
.profile-source-stats div { text-align:center; }
.profile-source-stats strong { display:block; font-size:16px; }
.profile-source-stats span { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.profile-follow { margin-top:12px; }
.seller-context {
  display:flex;
  gap:4px;
  margin-top:12px;
  padding:3px;
  border-radius:999px;
  background:var(--secondary);
}
.seller-context a { flex:1; padding:7px 8px; border-radius:999px; color:var(--muted-dark); font-size:10px; font-weight:600; text-align:center; }
.seller-context a.active { background:var(--fg); color:#fff; }
.profile-tabs {
  display:flex;
  margin:12px -16px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.profile-tabs a {
  flex:1;
  position:relative;
  padding:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  text-align:center;
}
.profile-tabs a.active { color:var(--fg); }
.profile-tabs a.active:after { content:""; position:absolute; left:25%; right:25%; bottom:-1px; height:2px; border-radius:999px; background:var(--fg); }
.profile-source-content { padding-top:12px; }
.profile-rating-card {
  margin-bottom:8px;
  padding:16px;
  border-radius:16px;
  background:var(--fg);
  color:#fff;
}
.profile-rating-card small { color:rgba(255,255,255,.5); font-size:9px; }
.profile-rating-card strong { display:block; margin-top:4px; font-size:24px; font-weight:300; }
.profile-rating-card span { color:#FFD700; font-size:14px; }
.buyer-profile-source { display:grid; gap:8px; margin-top:16px; }
.buyer-profile-source a {
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.buyer-profile-source a span { flex:1; font-size:12px; font-weight:600; }

/* Feed */
.feed-filter {
  display:flex;
  gap:7px;
  overflow-x:auto;
  margin-bottom:12px;
  scrollbar-width:none;
}
.feed-filter::-webkit-scrollbar { display:none; }
.feed-filter a {
  flex:none;
  padding:7px 11px;
  border:1px solid var(--border-input);
  border-radius:999px;
  background:var(--secondary);
  color:var(--muted-dark);
  font-size:11px;
  font-weight:600;
}
.feed-filter a.active { background:var(--fg); border-color:var(--fg); color:#fff; }
.feed-post {
  overflow:hidden;
  margin:0 -16px 1px;
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.feed-head { min-height:58px; display:flex; align-items:center; gap:10px; padding:10px 16px; }
.feed-head .avatar { width:36px; height:36px; }
.feed-head strong { display:block; font-size:12px; }
.feed-head small { display:block; margin-top:2px; color:var(--muted); font-size:9px; }
.post-photo { width:100%; aspect-ratio:1/1; object-fit:cover; }
.feed-body { padding:10px 16px 12px; }
.feed-body>p { margin:8px 0 0; color:#333; font-size:14px; line-height:1.6; }
.feed-actions { display:flex; align-items:center; gap:12px; }
.feed-actions form { margin:0; }
.feed-actions button,.feed-actions a,.feed-actions span {
  display:flex;
  align-items:center;
  gap:4px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--body);
  font-size:11px!important;
}
.comments-box { padding:0 16px 12px; }
.comment { padding:7px 0; border-top:1px solid var(--border); }
.comment.reply { padding-left:20px; }
.comment strong { font-size:10px; }
.comment p { margin:3px 0; color:var(--body); font-size:11px; line-height:1.4; }
.comment small { color:var(--muted); font-size:9px; }
.replying-label { display:block; color:var(--muted); font-size:9px; }
.comment-reply { padding:0; border:0; background:transparent; color:var(--accent); font-size:9px; }
.comment-form { position:relative; display:flex; gap:7px; margin-top:6px; }
.comment-form .input { min-height:36px; border-radius:999px; font-size:11px; }
.comment-form .btn { width:36px; height:36px; min-height:36px; padding:0; border-radius:50%; }
.reply-note { color:var(--muted); font-size:9px; }

/* Chat */
.chat-list-source { padding-bottom:8px; }
.chat-list { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:#fff; }
.chat-row {
  min-height:66px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 13px;
  border-bottom:1px solid var(--border);
}
.chat-row:last-child { border-bottom:0; }
.chat-row h3 { margin:0; font-size:12px; font-weight:600; }
.chat-row p { margin:4px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; }
.mini-count {
  min-width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  background:var(--fg);
  color:#fff;
  font-size:9px;
  font-weight:700;
}
.chat-source-head {
  min-height:72px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 -16px;
  padding:14px 16px;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.chat-source-head .source-back { background:transparent; }
.chat-source-head h2 { margin:0; font-size:13px; font-weight:700; }
.chat-source-head p { margin:2px 0 0; color:var(--muted); font-size:10px; }
.chat-window {
  min-height:320px;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:14px 0;
}
.bubble {
  max-width:75%;
  padding:10px 14px;
  border-radius:16px;
  color:var(--fg);
  font-size:12px;
  line-height:1.45;
}
.bubble.mine {
  max-width:80%;
  align-self:flex-end;
  border-bottom-right-radius:4px;
  background:var(--fg);
  color:#fff;
}
.bubble.theirs {
  align-self:flex-start;
  border:1px solid var(--border);
  border-bottom-left-radius:4px;
  background:#fff;
}
.bubble small { display:block; margin-top:4px; opacity:.7; font-size:9px; text-align:right; }
.chat-compose {
  position:sticky;
  bottom:66px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 -16px;
  padding:12px 16px;
  background:#fff;
  border-top:1px solid var(--border);
}
.chat-compose .input { min-height:40px; border-radius:999px; background:var(--bg); }
.chat-compose .btn { width:32px; height:32px; min-height:32px; padding:0; border-radius:50%; }
.chat-transaction {
  margin:12px 0 0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.chat-transaction h4 { margin:0; padding:9px 12px; background:var(--fg); color:#fff; font-size:12px; }
.chat-status-actions { display:flex; flex-wrap:wrap; gap:7px; padding:10px; }
.chat-status-actions .btn { flex:1; min-width:95px; }

/* Generic listing/legacy operational pages */
.list-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.list-row:last-child { border-bottom:0; }
.list-row>img { width:56px; height:56px; flex:none; border-radius:12px; object-fit:cover; }
.list-row h3 { margin:0; font-size:12px; font-weight:600; }
.list-row p { margin:3px 0 0; color:var(--muted); font-size:10px; }
.list-row strong { font-size:12px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 10px; }
.section-title h2 { margin:0; font-size:14px; font-weight:600; }
.section-title>span { color:var(--muted); font-size:10px; }
.tabs { display:flex; gap:7px; overflow-x:auto; margin:0 0 12px; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tabs a,.tabs button { flex:none; padding:7px 11px; border:1px solid var(--border-input); border-radius:999px; background:var(--secondary); color:var(--muted-dark); font-size:11px; }
.tabs a.active,.tabs button.active { background:var(--fg); border-color:var(--fg); color:#fff; }
.stat-grid,.order-detail-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.stat-card,.order-kpi { padding:14px; border:1px solid var(--border); border-radius:16px; background:#fff; }
.stat-card span,.order-kpi small { color:var(--muted); font-size:10px; }
.stat-card strong,.order-kpi strong { display:block; margin-top:5px; font-size:18px; }
.stat-card.success strong,.positive { color:var(--success); }
.stat-card.warning strong { color:var(--warning); }
.stat-card.info strong { color:var(--info); }
.stat-card.danger strong { color:var(--danger); }
.mini-chart { margin-top:8px; padding:14px; border:1px solid var(--border); border-radius:16px; background:#fff; }
.bar-row { height:90px; display:flex; align-items:flex-end; gap:8px; }
.bar-row span { flex:1; min-height:8px; border-radius:5px 5px 0 0; background:var(--fg); }
.chart-caption { margin-top:8px; color:var(--muted); font-size:9px; text-align:center; }
.analytics-list { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:#fff; }
.analytics-row { min-height:64px; display:flex; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px solid var(--border); }
.analytics-row:last-child { border-bottom:0; }
.analytics-row img { width:48px; height:48px; border-radius:10px; object-fit:cover; }
.analytics-row .count { min-width:28px; text-align:right; font-size:12px; font-weight:700; }
.timeline { display:grid; gap:0; }
.timeline-item { position:relative; padding:0 0 16px 25px; color:var(--body); font-size:11px; }
.timeline-item:before { content:""; width:9px; height:9px; position:absolute; left:2px; top:3px; border:2px solid #fff; border-radius:50%; background:var(--success); box-shadow:0 0 0 1px var(--success); }
.timeline-item:after { content:""; width:1px; position:absolute; left:6px; top:13px; bottom:0; background:var(--border-input); }
.timeline-item:last-child:after { display:none; }

/* KYC/settings/support helpers */
.verification-intro,.info-box,.warning-box,.upload-box {
  margin-bottom:10px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.verification-title { display:flex; align-items:center; gap:8px; }
.verification-title h2 { margin:0; font-size:14px; }
.info-box { background:var(--info-bg); border-color:var(--info-border); color:var(--info); }
.warning-box { background:var(--warning-bg); border-color:var(--warning-border); color:var(--warning); }
.upload-box { position:relative; min-height:92px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-style:dashed; color:var(--muted-dark); text-align:center; }
.upload-box.done { border-color:var(--success-border); background:var(--success-bg); color:var(--success); }
.upload-box input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.upload-box strong { font-size:11px; }
.upload-box small { color:var(--muted); font-size:9px; }
.divider { height:1px; margin:12px 0; background:var(--border); }

/* Auth — Base44 LoginJourney */
.auth-screen {
  max-width:none;
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr;
  background:#111;
  box-shadow:none;
}
.auth-hero {
  min-height:30vh;
  height:34vh;
  max-height:38vh;
  position:relative;
  overflow:hidden;
  background:#111;
}
.auth-hero>img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; filter:none; }
.auth-hero:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.45) 0%,rgba(0,0,0,.15) 35%,rgba(17,17,17,.85) 80%,rgba(17,17,17,1) 100%);
}
.auth-hero .brand {
  position:absolute;
  z-index:2;
  top:20px;
  left:20px;
  color:#fff;
  font-size:16px;
  font-weight:300;
  letter-spacing:.4em;
}
.auth-copy {
  position:absolute;
  z-index:2;
  left:20px;
  right:20px;
  bottom:22px;
  color:#fff;
}
.auth-copy:before {
  content:"MARKETPLACE";
  display:block;
  margin-bottom:5px;
  color:var(--accent);
  font-size:9px;
  font-weight:700;
  letter-spacing:.4em;
}
.auth-copy h1 { margin:0; font-size:20px; line-height:1.2; font-weight:300; }
.auth-copy p { margin:7px 0 0; max-width:380px; color:rgba(255,255,255,.5); font-size:11px; line-height:1.45; }
.auth-panel {
  min-height:66vh;
  display:flex;
  flex-direction:column;
  padding:28px 20px 32px;
  background:#111;
  color:#fff;
}
.auth-panel h2 { margin:0; color:#fff; font-size:16px; font-weight:600; }
.auth-panel>p { margin:5px 0 20px; color:rgba(255,255,255,.4); font-size:11px; }
.auth-panel .label { color:rgba(255,255,255,.4); font-size:10px; }
.auth-panel .input,.auth-panel .textarea,.auth-panel .select {
  min-height:48px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:14px;
}
.auth-panel .input::placeholder { color:rgba(255,255,255,.25); }
.auth-panel .btn.accent { min-height:50px; border-radius:16px; font-size:14px; }
.auth-panel a { color:rgba(255,255,255,.7); }
.auth-panel>p:last-child { color:rgba(255,255,255,.3); font-size:12px; }
.auth-check { display:flex; gap:8px; align-items:flex-start; margin:8px 0; color:rgba(255,255,255,.45); font-size:10px; line-height:1.4; }
.auth-check input { margin-top:2px; accent-color:var(--accent); }

/* confirmation */
.confirmed-screen { margin-top:44px!important; padding:28px 20px; text-align:center; }
.confirmed-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; border-radius:50%; background:var(--success-bg); color:var(--success); }
.confirmed-screen h2 { margin:0; font-size:18px; font-weight:600; }
.confirmed-screen p { margin:8px 0 18px; color:var(--muted-dark); font-size:12px; line-height:1.5; }

/* utilities used by JS */
.ai-note { margin:-4px 0 10px; color:var(--muted-dark); font-size:9px; text-align:right; }
.direct-note { margin:5px 0 0; color:var(--muted-dark); font-size:9px; }
.listen-link.speaking { color:var(--accent); }
.sr-only { width:1px; height:1px; position:absolute; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* mobile is the source baseline */
@media (max-width:699px) {
  html,body { background:var(--bg); }
  .app-shell { max-width:none; box-shadow:none; }
  .bottom-nav { width:100%; }
  .source-explore-pill { padding:9px 12px; font-size:11px; }
  .seller-fin-grid { gap:10px; }
  .source-fin-card { padding:14px; }
}

/* Base44 desktop keeps the app card at 480px; only Landing becomes two panels. */
@media (min-width:768px) {
  .auth-screen { grid-template-columns:1fr 1fr; }
  .auth-hero,.auth-panel { min-height:100vh; height:100vh; max-height:none; }
  .auth-hero .brand { top:40px; left:40px; font-size:20px; }
  .auth-copy { left:40px; right:40px; bottom:44px; }
  .auth-copy h1 { font-size:36px; }
  .auth-copy p { font-size:14px; }
  .auth-panel { justify-content:center; padding:48px 40px; }
}

/* small phones */
@media (max-width:370px) {
  .brand { font-size:16px; letter-spacing:.27em; }
  .mode-switch a { font-size:11px; }
  .category-strip { gap:10px; }
  .profile-mini { width:92px; flex-basis:92px; }
  .profile-cover { width:92px; }
  .source-explore-pill { max-width:150px; padding:9px 10px; }
  .source-explore-pill { font-size:10px; }
  .info-pills { gap:6px; }
  .info-pill { padding:10px 5px; }
}


/* V1.6.0 — parity additions from Style Share */
.media-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.auth-switch{position:absolute;z-index:3;top:17px;right:20px;padding:8px 14px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.12);color:#fff!important;font-size:11px;font-weight:600;backdrop-filter:blur(8px)}
.settings-source{padding-bottom:12px}.settings-source .source-form-head{margin-bottom:14px}.settings-source .source-form-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.settings-card{display:grid;gap:11px;margin:0 0 12px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}.settings-section-title{display:flex;align-items:center;gap:10px;margin-bottom:2px}.settings-section-title>div{display:grid;gap:2px}.settings-section-title strong{font-size:13px}.settings-section-title small{color:var(--muted);font-size:10px}.settings-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:var(--secondary);color:var(--fg)}.settings-check{min-height:42px;margin:0!important;padding:0 2px;align-items:center}.settings-info{margin:0;font-size:11px;line-height:1.45}.bank-tabs{display:flex;gap:4px;padding:4px;border-radius:16px;background:var(--secondary)}.bank-tabs span{flex:1;padding:9px;border-radius:12px;color:var(--muted-dark);font-size:11px;font-weight:700;text-align:center}.bank-tabs span.active{background:var(--fg);color:#fff}.settings-links{padding:4px}.settings-links a{min-height:49px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border);font-size:12px;font-weight:600}.settings-links a:last-child{border-bottom:0}.settings-links a span{flex:1}.settings-links a.danger{color:var(--danger)}.settings-delete{text-align:center}.settings-delete button{border:0;background:transparent;color:var(--danger);font-size:10px;text-decoration:underline}.buyer-stats-source{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px -16px 0;padding:12px 16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:transparent}.buyer-stats-source div{text-align:center}.buyer-stats-source strong{display:block;font-size:16px}.buyer-stats-source span{display:block;margin-top:2px;color:var(--muted);font-size:10px}.member-since{display:flex;align-items:center;gap:6px;margin:0 -16px;padding:10px 16px;border-bottom:1px solid var(--border);color:var(--muted);font-size:11px}.profile-bio{margin:8px 0 0;color:var(--muted-dark);font-size:11px;line-height:1.45}.buyer-profile-source>small{display:block;margin:16px 0 8px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.12em}.source-product-form .form-grid{align-items:end}
@media(min-width:768px){.auth-switch{top:36px;right:40px}.settings-card{border-radius:18px}}

/* ============================================================
   ELLISA V2.0 — componentes portados do Style Share
   Feed, Carrinho, Checkout/Pagamento e confirmação
   ============================================================ */
.fidelity-feed{padding-bottom:16px}.fidelity-feed .source-local-head{padding:12px 16px 16px}.feed-compose-btn{width:36px;height:36px;border:0;border-radius:999px;background:#111;color:#fff;display:grid;place-items:center;cursor:pointer}
.fidelity-feed-list{display:flex;flex-direction:column;gap:4px}.fidelity-feed-post{background:#fff}.fidelity-feed-photo{aspect-ratio:1/1;overflow:hidden;background:#f7f5f2}.fidelity-feed-photo img{width:100%;height:100%;object-fit:cover;display:block}.fidelity-feed-post>p{margin:0;padding:12px 16px;font-size:14px;line-height:1.625;color:#333}.fidelity-feed-empty{padding:64px 16px}.fidelity-feed-empty .empty-emoji{font-size:40px;margin-bottom:12px}
.modal-sheet.fidelity-new-post{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.4);display:none;align-items:flex-end;justify-content:center}.modal-sheet.fidelity-new-post.open{display:flex}.fidelity-new-post-card{width:min(480px,100%);max-width:480px;border-radius:24px 24px 0 0;background:#fff;padding:20px 20px max(32px,env(safe-area-inset-bottom));margin:0;box-shadow:none}.fidelity-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.fidelity-modal-head h3{margin:0;font-size:16px;line-height:24px;font-weight:600;color:#111}.fidelity-modal-head p{margin:2px 0 0;font-size:11px;color:#aaa}.fidelity-modal-head button,.fidelity-modal-head>a{width:32px;height:32px;border:0;border-radius:999px;background:#f0eee9;color:#888;display:grid;place-items:center;text-decoration:none;font-size:20px;line-height:1}.fidelity-photo-upload{height:120px;border-radius:16px;background:#f7f5f2;border:1.5px dashed #e8e4de;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:12px;cursor:pointer}.fidelity-photo-upload input{display:none}.fidelity-photo-upload span{display:flex;flex-direction:column;align-items:center;gap:4px;color:#ccc;font-size:12px}.fidelity-photo-upload .ico{width:24px;height:24px}.fidelity-post-caption{border-radius:16px!important;background:#f7f5f2!important;border:1px solid #e8e4de!important;padding:12px 16px!important;font-size:14px!important;min-height:84px!important}.fidelity-publish-btn{margin-top:12px;padding:12px!important;border-radius:16px!important;font-size:14px!important;font-weight:700!important;background:#111!important}
.fidelity-cart{padding-bottom:16px}.fidelity-cart .source-local-head{padding:12px 16px 16px}.fidelity-cart-groups{padding:0 16px;display:flex;flex-direction:column;gap:20px}.fidelity-cart-group{border:1px solid #f0eee9;border-radius:16px;background:#fff;overflow:hidden}.fidelity-cart-group>header{padding:12px 16px;border-bottom:1px solid #f7f5f2;background:#fafaf9}.fidelity-cart-group>header strong{display:block;color:#111;font-size:12px;line-height:18px;font-weight:600}.fidelity-cart-group>header small{display:block;color:#aaa;font-size:10px;line-height:14px}.fidelity-cart-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f7f5f2}.fidelity-cart-thumb{width:56px;height:56px;border-radius:12px;overflow:hidden;flex:0 0 56px;background:#f7f5f2}.fidelity-cart-thumb img{width:100%;height:100%;object-fit:cover}.fidelity-cart-item h3{margin:0;color:#111;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fidelity-cart-item p{margin:2px 0 0;color:#aaa;font-size:10px;line-height:14px}.fidelity-cart-item strong{display:block;margin-top:4px;color:#111;font-size:14px;line-height:20px;font-weight:700}.fidelity-cart-trash{width:32px;height:32px;border-radius:999px;background:#fff0ee;color:#6B192A;display:grid;place-items:center;flex:0 0 32px}.fidelity-cart-footer{margin:0}.fidelity-shipping{padding:12px 16px;border-bottom:1px solid #f7f5f2}.fidelity-shipping>small{display:block;margin-bottom:8px;color:#aaa;font-size:10px;line-height:14px;font-weight:600;letter-spacing:.1em}.fidelity-shipping-options{display:flex;gap:8px}.fidelity-shipping-options label{flex:1;cursor:pointer}.fidelity-shipping-options input{position:absolute;opacity:0;pointer-events:none}.fidelity-shipping-options span{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e8e4de;border-radius:12px;color:#888;background:#fff;transition:.15s}.fidelity-shipping-options input:checked+span{border-color:#111;background:#111;color:#fff}.fidelity-shipping-options b{display:block;font-size:11px;line-height:15px;font-weight:600;text-align:left}.fidelity-shipping-options b small{display:block;font-size:10px;line-height:14px;font-weight:400;opacity:.7}.fidelity-cart-total-row{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.fidelity-cart-total-row>div small{display:block;color:#aaa;font-size:10px}.fidelity-cart-total-row>div strong{display:block;color:#111;font-size:16px;font-weight:700}.fidelity-cart-total-row .btn{padding:10px 20px!important;border-radius:12px!important;font-size:14px!important;background:#111!important}.fidelity-cart-empty{padding:64px 16px}.fidelity-cart-empty>.ico{color:#e8e4de;margin-bottom:12px}
.source-route-overlay{position:fixed;inset:0;z-index:75;background:rgba(0,0,0,.5);display:flex;align-items:flex-end;justify-content:center}.source-route-sheet{width:min(480px,100%);max-width:480px;max-height:90vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;margin:0;padding:0;box-shadow:none}.source-route-sheet .fidelity-modal-head{padding:20px 20px 12px;margin:0;border-bottom:1px solid #f0eee9}.fidelity-checkout-body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:20px}.fidelity-order-summary{border:1px solid #f0eee9;border-radius:16px;overflow:hidden}.fidelity-order-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f7f5f2}.fidelity-order-item:last-child{border-bottom:0}.fidelity-order-thumb{width:40px;height:40px;border-radius:12px;overflow:hidden;flex:0 0 40px;background:#f7f5f2}.fidelity-order-thumb img{width:100%;height:100%;object-fit:cover}.fidelity-order-item strong{display:block;color:#111;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fidelity-order-item small{display:block;color:#aaa;font-size:10px}.fidelity-order-item>b{font-size:12px;color:#111}.fidelity-price-breakdown{display:flex;flex-direction:column;gap:8px}.fidelity-price-breakdown>div{display:flex;justify-content:space-between;color:#888;font-size:12px}.fidelity-price-breakdown>.total{padding-top:8px;border-top:1px solid #f0eee9;color:#111;font-size:14px}.fidelity-checkout-section>small{display:block;margin-bottom:10px;color:#aaa;font-size:10px;line-height:14px;font-weight:600;letter-spacing:.1em}.fidelity-checkout-section .input{border-radius:12px!important;background:#fff!important;border-color:#e8e4de!important;font-size:13px!important}.fidelity-security-note{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:#f0fff4;color:#059669;font-size:10px}.fidelity-confirm-pay{padding:16px!important;border-radius:16px!important;background:#111!important;font-size:14px!important;font-weight:700!important}.fidelity-payment-tabs{display:flex;gap:8px;margin:0}.fidelity-payment-tabs .payment-tab{flex:1;height:auto;padding:12px!important;border:1px solid #e8e4de!important;border-radius:16px!important;background:#fff!important;color:#888!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px;font-size:12px!important;font-weight:600!important}.fidelity-payment-tabs .payment-tab.active{border-color:#111!important;background:#111!important;color:#fff!important}.fidelity-pix-panel{padding:16px;border:1px solid #e8e4de;border-radius:16px;background:#f7f5f2;text-align:center}.fidelity-pix-panel>.ico{width:54px;height:54px;color:#111;margin:0 auto}.fidelity-pix-panel p{margin:10px 0 4px;color:#555;font-size:12px}.fidelity-pix-panel span{color:#aaa;font-size:10px}.source-success-overlay{align-items:center;padding:20px}.source-success-card{width:min(360px,100%);border-radius:24px;background:#fff;padding:28px 24px;text-align:center}.source-success-icon{width:60px;height:60px;margin:0 auto 16px;border-radius:999px;background:#f7f5f2;display:grid;place-items:center;font-size:28px;color:#111}.source-success-card h2{margin:0;color:#111;font-size:20px;font-weight:600}.source-success-card p{margin:8px 0 20px;color:#888;font-size:12px;line-height:1.55}.source-success-link{display:inline-block;margin-top:14px;color:#888;font-size:12px;text-decoration:none}

/* CheckoutModal — estados literais do Style Share */
.fidelity-copy-pix{width:100%;margin-top:12px;padding:10px 12px;border:1px solid #E8E4DE;border-radius:12px;background:#fff;color:#111;font-size:12px;font-weight:600}.fidelity-copy-pix.copied{background:#D1FAE5;color:#065F46}.fidelity-payment-method .payment-panel{margin-top:16px}.fidelity-payment-method .form-group{margin-bottom:12px}

/* =========================================================
   ELLISA V2.1 — camada aditiva de funções recuperadas
   Regra: não altera a geometria-base do Style Share 2.
   ========================================================= */

/* Topbar: mesmos 53px do Style Share 2, apenas atalhos funcionais documentados. */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px;margin-left:auto}
.header-action{width:32px;height:32px;position:relative;display:grid;place-items:center;border-radius:999px;color:#111;transition:background .18s ease,transform .18s ease}
.header-action:active{transform:scale(.94);background:var(--secondary)}
.header-action .ico{width:18px;height:18px}
.mini-count{position:absolute;right:-1px;top:-2px;min-width:15px;height:15px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#111;color:#fff;border:2px solid #fff;font-size:8px;line-height:1;font-weight:800}
.mini-count.accent{background:var(--accent)}

/* Card do produto: coração sobre a foto sem alterar aspect-ratio 3:4. */
.product-card-media{position:relative;min-width:0}
.product-photo-link,.product-card-body-link{display:block}
.product-favorite-form{position:absolute;top:8px;right:8px;z-index:4;margin:0}
.product-favorite{width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(232,228,222,.9);border-radius:999px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);color:#111;box-shadow:0 2px 10px rgba(0,0,0,.07);cursor:pointer;transition:transform .16s ease,color .16s ease,background .16s ease}
.product-favorite:active{transform:scale(.9)}
.product-favorite.active{color:var(--accent);background:#fff1ee;border-color:#ffd5cc}
.product-favorite.active .ico{fill:var(--accent)}

/* Galeria do produto: preserva os botões circulares originais e acrescenta coração. */
.detail-gallery-action-group{display:flex;align-items:center;gap:8px;pointer-events:auto}
.detail-gallery-action-group form{margin:0}
.detail-favorite.active{color:var(--accent);background:#fff1ee;border-color:#ffd5cc}
.detail-favorite.active .ico{fill:var(--accent)}

/* Sacola no detalhe: CTA secundário compacto, sem crescer a largura/estrutura do sticky. */
.add-bag-link{width:100%;height:34px;margin-top:8px;border:0;border-top:1px solid var(--border);background:transparent;color:#555;display:flex;align-items:flex-end;justify-content:center;gap:6px;padding:9px 8px 0;font-size:11px;font-weight:700;cursor:pointer}
.add-bag-link .ico{color:#111}
.bag-inline-form{margin:0}
.bag-choice-card{text-align:center;border-radius:24px 24px 0 0!important;padding-top:24px!important}
.bag-choice-icon{width:46px;height:46px;margin:0 auto 10px;border-radius:16px;display:grid;place-items:center;background:var(--secondary);color:#111}
.bag-choice-card h2{margin:0;font-size:17px;font-weight:700}
.bag-choice-card>p{margin:5px 0 16px;color:var(--muted);font-size:11px}
.bag-choice-actions{display:grid;gap:8px}

/* BannerCarousel.jsx — medidas literais do Style Share 2: px-4, mt-1.5, radius 16, min-height 110. */
.hero-carousel{position:relative;margin:6px 0 0;min-height:110px;border-radius:16px;overflow:hidden;background:#111}
.hero-slide{display:none;min-height:110px;position:relative;overflow:hidden;padding:16px;color:#fff;background:#111}
.hero-slide.active{display:flex;align-items:flex-start;justify-content:space-between}
.hero-slide:before{content:"";position:absolute;inset:0;background-image:var(--hero-image);background-size:cover;background-position:center;opacity:.22}
.hero-slide.hero-coral{background:#6B192A}.hero-slide.hero-coral:before{opacity:.12}
.hero-slide.hero-night{background:#1A1A2E}.hero-slide.hero-night:before{opacity:.18}
.hero-slide>div,.hero-coupon{position:relative;z-index:2}
.hero-slide small{display:block;color:var(--accent);font-size:9px;line-height:1.1;font-weight:700;letter-spacing:.3em;text-transform:uppercase}
.hero-coral small{color:rgba(255,255,255,.82)}.hero-night small{color:#D1A1AF}
.hero-slide h2{margin:4px 0 0;color:#fff;font-size:18px;line-height:1.25;font-weight:700}
.hero-slide p{margin:4px 0 0;color:rgba(255,255,255,.55);font-size:11px}
.hero-coral p{color:rgba(255,255,255,.78)}
.hero-coupon{align-self:flex-start;margin-left:12px;padding:8px 12px;border:1.5px dashed rgba(255,255,255,.7);border-radius:12px;background:rgba(255,255,255,.18);color:#fff;font-size:14px;font-weight:900;letter-spacing:.08em;text-align:center}
.hero-coupon em{display:block;margin-bottom:2px;font-size:8px;font-style:normal;font-weight:700;letter-spacing:.18em;opacity:.82}
.hero-carousel-dots{position:absolute;z-index:4;left:16px;bottom:11px;display:flex;align-items:center;gap:6px}
.hero-carousel-dots button{width:6px;height:6px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.42);transition:width .25s ease,background .25s ease;cursor:pointer}
.hero-carousel-dots button.active{width:16px;background:#fff}

/* Feed social: PostCard + CommentSection do Style Share 2 traduzidos para o PHP existente. */
.social-post{border-bottom:1px solid var(--border);margin-bottom:4px;background:#fff}
.social-post-head{min-height:60px;padding:12px 16px;display:flex;align-items:center;gap:12px}
.social-post-head .avatar{width:36px;height:36px;border-radius:999px;overflow:hidden;background:#111;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}
.social-post-head .avatar img,.social-comment .avatar img{width:100%;height:100%;object-fit:cover}
.social-post-head strong{display:block;color:#111;font-size:14px;line-height:1.2;font-weight:600}
.social-post-head small{display:block;margin-top:3px;color:#aaa;font-size:10px}
.social-post-body{padding:12px 16px 13px}
.social-actions{display:flex;align-items:center;gap:18px;margin-bottom:10px}
.social-actions form{margin:0}
.social-action{height:26px;padding:0;border:0;background:transparent;color:#bbb;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;cursor:pointer}
.social-action .ico{width:20px;height:20px}
.social-action.active{color:var(--accent)}.social-action.active .ico{fill:var(--accent)}
.social-action.active-dark{color:#111}.social-action.active-dark .ico{fill:#111}
.social-action.share{margin-left:auto}
.social-caption{margin:0;color:#333;font-size:14px;line-height:1.625}
.comments-box{display:none;padding:12px 16px 16px;border-top:1px solid var(--border);background:var(--bg)}
.comments-box.open{display:block}
.social-comments{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.comments-empty{margin:8px 0 12px;color:#ccc;font-size:11px;text-align:center}
.social-comment{display:flex;gap:10px;align-items:flex-start}
.social-comment.nested{margin-left:36px}
.social-comment .avatar.small,.comment-compose .avatar.small{width:28px;height:28px;border-radius:999px;overflow:hidden;background:#333;color:#fff;display:grid;place-items:center;flex:none;font-size:10px;font-weight:800}
.comment-bubble{padding:9px 12px;border:1px solid var(--border);border-radius:16px;background:#fff}
.comment-bubble .reply-label{display:block;margin-bottom:4px;color:var(--accent);font-size:10px;font-weight:700}
.comment-bubble strong{display:block;color:#111;font-size:11px;font-weight:700}
.comment-bubble p{margin:3px 0 0;color:#333;font-size:13px;line-height:1.45}
.comment-meta{display:flex;align-items:center;gap:10px;margin-top:4px;padding:0 3px;color:#ccc;font-size:9px}
.comment-meta button{padding:0;border:0;background:transparent;color:#888;font-size:10px;font-weight:600;cursor:pointer}
.comment-meta form{margin:0}.comment-meta button.danger{color:var(--accent)}
.reply-note{margin:0 0 7px 38px;padding:6px 10px;border:1px solid #ffd5cc;border-radius:12px;background:#fff1ee;color:var(--accent);font-size:10px}
.comment-compose{display:flex;align-items:flex-end;gap:8px}
.comment-input{flex:1;min-height:38px;padding:4px 5px 4px 12px;border:1px solid var(--border-input);border-radius:16px;background:#fff;display:flex;align-items:center;gap:7px}
.comment-input input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#111;font-size:12px}
.comment-input button{width:29px;height:29px;border:0;border-radius:11px;background:#111;color:#fff;display:grid;place-items:center;cursor:pointer}

/* Seller dashboard — blocos funcionais adicionais usando a mesma linguagem visual. */
.seller-function-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.seller-function-card{min-height:82px;padding:12px;border:1px solid var(--border);border-radius:16px;background:#fff;display:flex;flex-direction:column;justify-content:space-between}
.seller-function-card .kpi-top{display:flex;align-items:center;justify-content:space-between;color:#aaa}
.seller-function-card .kpi-top .ico{width:16px;height:16px}
.seller-function-card strong{color:#111;font-size:20px;line-height:1;font-weight:800}
.seller-function-card span{color:#888;font-size:10px;font-weight:600}
.seller-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.seller-quick-actions a{min-height:42px;padding:9px 10px;border:1px solid var(--border);border-radius:14px;background:#fff;display:flex;align-items:center;gap:8px;color:#333;font-size:11px;font-weight:700}
.seller-recent-orders{margin-top:14px}
.seller-recent-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.seller-recent-row:last-child{border-bottom:0}
.seller-recent-row .grow h3{margin:0;color:#111;font-size:11px;font-weight:650}
.seller-recent-row .grow p{margin:3px 0 0;color:#aaa;font-size:9px}
.seller-recent-row>strong{font-size:11px}
.my-items-period{margin:10px 0 2px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#fff}
.my-items-period .form-grid{gap:7px}.my-items-period .input{height:34px;font-size:10px}.my-items-period .btn{height:34px;font-size:10px}

@media (max-width:380px){
  .brand{font-size:16px;letter-spacing:.24em}
  .header-actions{gap:0}.header-action{width:30px;height:30px}
  .hero-slide h2{font-size:16px}.hero-coupon{padding:7px 8px;font-size:12px}
}

/* Disponibilidade / avaliação no detalhe da peça. */
.rental-availability{margin-top:14px;border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden}
.rental-availability summary{min-height:42px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;color:#333;font-size:11px;font-weight:700;list-style:none}
.rental-availability summary::-webkit-details-marker{display:none}
.rental-availability summary>span{display:flex;align-items:center;gap:7px}
.rental-availability[open] summary{border-bottom:1px solid var(--border)}
.rental-availability>p{margin:10px 12px 7px;color:#888;font-size:10px}.rental-availability>small{display:block;margin:8px 12px 12px;color:#aaa;font-size:9px}
.rental-availability .available-now{color:var(--success);font-weight:700}
.blocked-rental-dates{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px}
.blocked-rental-dates span{padding:6px 8px;border-radius:999px;background:#fff1ee;color:var(--accent);font-size:9px;font-weight:700}
.item-review-form{margin-top:16px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff}
.item-review-form .textarea{margin:8px 0;min-height:74px}

/* Contexto do produto dentro do chat, mantendo o corpo de mensagens intacto. */
.chat-product-context{margin:8px 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:14px;background:#fff;display:flex;align-items:center;gap:9px}
.chat-product-context img{width:44px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.chat-product-context small{display:block;color:#aaa;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.chat-product-context strong{display:block;margin-top:2px;color:#111;font-size:11px}.chat-product-context span{display:block;margin-top:2px;color:#aaa;font-size:9px}.chat-product-context>b{margin-left:auto;color:#111;font-size:11px;white-space:nowrap}

/* Jornada de devolução — tradução compacta do ReturnJourneyModal. */
.return-journey-card{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:16px;background:#fff}
.return-journey-card .source-section-head{margin-bottom:12px}.return-journey-card .source-section-head h3{font-size:12px}.return-journey-card .source-section-head span{font-size:9px}
.return-journey-steps{display:grid;grid-template-columns:repeat(3,1fr);position:relative}
.return-journey-steps:before{content:"";position:absolute;top:13px;left:17%;right:17%;height:1px;background:var(--border)}
.return-step{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:5px;color:#bbb;font-size:9px;font-weight:600;text-align:center}
.return-step i{width:26px;height:26px;border:1px solid var(--border-input);border-radius:999px;background:#fff;display:grid;place-items:center;font-style:normal;color:#aaa;font-size:9px;font-weight:800}
.return-step.done{color:#111}.return-step.done i{background:#111;border-color:#111;color:#fff}


/* =========================================================
   ELLISA V2.2 — DISTÂNCIA / GEOLOCALIZAÇÃO
   Medidas derivadas de ItemCard.jsx + FilterSheet.jsx do Style Share 2.
   Não altera largura, aspect-ratio ou altura-base dos cards.
   ========================================================= */
.product-location{min-width:0}
.product-location-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-distance{flex:none;margin-left:1px;color:#6B192A;font-size:10px;line-height:1.2;font-weight:600;white-space:nowrap}
.product-distance[hidden]{display:none!important}
.product-detail-location .product-distance{margin-left:4px;font-size:10px}
.product-detail-location .product-location-text{max-width:180px}
.product-card[hidden]{display:none!important}

.distance-filter-section .filter-search-city{position:relative;margin-bottom:10px}
.distance-filter-section .filter-search-city>.ico{position:absolute;left:11px;top:50%;z-index:2;transform:translateY(-50%);color:#AAAAAA;pointer-events:none}
.distance-filter-section .filter-search-city .input{padding-left:31px;border-radius:16px;background:#F5F1EE;border-color:#E8E4DE;font-size:13px}
.distance-scope-chips{gap:8px}
.distance-scope-chips .chip span{padding:8px 13px;border-radius:999px;font-size:12px;font-weight:500}
.km-filter{--km-pct:100%;margin:14px 0 1px}
.km-filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.km-filter-head span{color:#AAAAAA;font-size:10px;line-height:1;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.km-filter-head b{color:#111;font-size:14px;line-height:1;font-weight:700}
.km-range{width:100%;height:20px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
.km-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(to right,#111 0 var(--km-pct),#E8E4DE var(--km-pct) 100%)}
.km-range::-webkit-slider-thumb{width:20px;height:20px;margin-top:-7px;appearance:none;-webkit-appearance:none;border:2px solid #111;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.14)}
.km-range::-moz-range-track{height:6px;border:0;border-radius:999px;background:#E8E4DE}
.km-range::-moz-range-progress{height:6px;border-radius:999px;background:#111}
.km-range::-moz-range-thumb{width:16px;height:16px;border:2px solid #111;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.14)}
.km-marks{display:flex;justify-content:space-between;margin-top:2px}
.km-marks button{min-width:20px;padding:3px 0;border:0;background:transparent;color:#CCCCCC;font-size:10px;font-weight:500;cursor:pointer}
.km-marks button:active{color:#111}
.distance-status{display:block;margin-top:8px;color:#888;font-size:10px;line-height:1.35}
.distance-status[hidden]{display:none!important}
.distance-filter-empty{grid-column:1/-1}

/* =========================================================
   ELLISA V2.4 — REVISÃO DA PROPRIETÁRIA (30/08/2026)
   Camada estritamente aditiva sobre o Style Share 2.
   ========================================================= */

/* O protótipo exibe a rolagem dentro do frame do aplicativo. */
body{overflow:hidden}
.app-shell{
  height:100dvh;
  min-height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:#BEBAB4 transparent;
}
.app-shell::-webkit-scrollbar{width:5px}
.app-shell::-webkit-scrollbar-track{background:transparent}
.app-shell::-webkit-scrollbar-thumb{background:#BEBAB4;border-radius:999px;border:1px solid transparent;background-clip:padding-box}

/* FilterSheet: opções visuais preservando o raio/spacing do Style Share 2. */
.filter-card{scrollbar-width:thin;scrollbar-color:#C8C4BE transparent}
.filter-card::-webkit-scrollbar{width:4px}
.filter-card::-webkit-scrollbar-thumb{background:#C8C4BE;border-radius:999px}
.visual-choice-grid{display:flex;flex-wrap:wrap;gap:7px}
.visual-choice{position:relative;cursor:pointer}
.visual-choice input{position:absolute;opacity:0;pointer-events:none}
.visual-choice span{min-width:36px;min-height:32px;padding:7px 10px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #E8E4DE;border-radius:999px;background:#F5F1EE;color:#666;font-size:10px;line-height:1;font-weight:600;transition:.15s ease}
.visual-choice input:checked+span{border-color:#111;background:#111;color:#fff;box-shadow:0 0 0 1px #111 inset}
.color-choice span{min-width:auto;padding-left:8px;padding-right:10px}
.color-choice i{width:13px;height:13px;border-radius:999px;display:block;border:1px solid rgba(17,17,17,.14);box-shadow:0 0 0 1px rgba(255,255,255,.45) inset}
.color-choice input:checked+span i{border-color:rgba(255,255,255,.72)}
.size-choice-grid .visual-choice span{min-width:39px}
.shoe-choice-grid .visual-choice span{min-width:37px}
.filter-section .form-grid>.select{min-width:0}
.filter-section [data-subcategory-select] option[hidden]{display:none}

/* "Ambos" e outros chips ganham o mesmo feedback visual do protótipo. */
.chip span{transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}
.chip:active span,.visual-choice:active span{transform:scale(.97)}

/* A divisória Compra | Aluguel precisa ser perceptível como na referência. */
.price-divider{height:30px;background:#E8E4DE}
.detail-price>div+div{position:relative;padding-left:18px}
.detail-price>div+div:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:1px;background:#E8E4DE}

/* Feed: filtro imediatamente após "Descubra looks e inspirações". */
.feed-filter-pills{margin:0 -16px 8px;padding:0 16px 10px;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border)}
.feed-filter-pills::-webkit-scrollbar{display:none}
.feed-filter-pills a{flex:none;padding:7px 11px;border:1px solid #E8E4DE;border-radius:999px;background:#F0E9E5;color:#888;font-size:10px;font-weight:650;white-space:nowrap}
.feed-filter-pills a.active{border-color:#111;background:#111;color:#fff}

/* Pedidos: todos os estados ficam acessíveis sem quebrar a largura mobile-first. */
.order-filter-pills{margin:0 -16px 10px;padding:0 16px 10px;display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
.order-filter-pills::-webkit-scrollbar{display:none}
.order-filter-pills a{flex:none;scroll-snap-align:start;white-space:nowrap}
.order-card-actions{display:flex;flex-wrap:wrap;gap:7px;padding:0 12px 12px}
.order-inline-action{min-height:32px;padding:7px 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #E8E4DE;border-radius:12px;background:#fff;color:#666;font-size:9px;font-weight:700}
.order-inline-action.review{border-color:#F5DDA7;background:#FFF9EA;color:#A46B00}
.order-inline-action.return{border-color:#F5B8AE;background:#FFF0EE;color:#C63F2B}
.order-status-analysis{margin:0 0 12px;padding:13px;border:1px solid var(--border);border-radius:16px;background:#fff}
.order-status-analysis .status-line{display:flex;align-items:center;gap:9px;margin-top:8px}
.order-status-analysis .status-name{width:88px;display:flex;align-items:center;gap:6px;color:#666;font-size:9px;white-space:nowrap}
.order-status-analysis .status-name i{width:7px;height:7px;border-radius:50%;flex:none}
.order-status-analysis .bar{height:9px;flex:1;overflow:hidden;border-radius:999px;background:#F0E9E5}
.order-status-analysis .bar b{display:block;height:100%;border-radius:999px}
.order-status-analysis .status-line>strong{width:17px;text-align:right;font-size:9px}
.analysis-total{padding:4px 7px;border-radius:999px;background:#F0E9E5;color:#888;font-size:8px;font-weight:700}

/* Perfil comprador: disposição solicitada Histórico | Preferências. */
.buyer-profile-tabs{margin-top:8px}
.buyer-profile-tab-content{padding:12px 0 4px}
.profile-history-list{display:grid;gap:7px}
.profile-history-row{min-height:57px;padding:9px 10px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:14px;background:#fff}
.profile-history-row .grow strong{display:block;color:#111;font-size:10px;font-weight:700}
.profile-history-row .grow span{display:block;margin-top:3px;color:#aaa;font-size:8px}
.profile-history-row>b{font-size:10px;white-space:nowrap}
.preferences-card{padding:13px;border:1px solid var(--border);border-radius:16px;background:#fff}
.preferences-head{display:grid;gap:3px;margin-bottom:12px}
.preferences-head strong{font-size:12px}.preferences-head span{color:#aaa;font-size:9px}
.preference-grid{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:13px}
.preference-chip{position:relative;cursor:pointer}
.preference-chip input{position:absolute;opacity:0;pointer-events:none}
.preference-chip span{display:block;padding:7px 10px;border:1px solid #E8E4DE;border-radius:999px;background:#F5F1EE;color:#777;font-size:10px;font-weight:600}
.preference-chip input:checked+span{border-color:#111;background:#111;color:#fff}
.buyer-profile-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.buyer-profile-quick a{min-height:38px;padding:9px 10px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:14px;background:#fff;color:#555;font-size:10px;font-weight:700}

/* Engrenagem no topo e Configurações como bottom sheet sobre o próprio perfil. */
.settings-top-icon{border:1px solid #E8E4DE;background:#fff;cursor:pointer}
.profile-settings-sheet{width:min(100%,480px);padding:0 16px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#F5F1EE}
.profile-settings-sheet-head{min-height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #F0E9E5}
.profile-settings-sheet-head strong{font-size:14px;font-weight:700}
.profile-settings-sheet-head button{width:30px;height:30px;border:0;border-radius:999px;background:#F0E9E5;color:#777;font-size:20px;line-height:1;cursor:pointer}
.profile-settings-list{display:grid;gap:7px;padding-top:12px}
.profile-settings-list a{min-height:50px;padding:9px 11px;display:flex;align-items:center;gap:10px;border:1px solid #F0E9E5;border-radius:16px;background:#fff}
.profile-settings-list a>span{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--setting-color) 10%,white);color:var(--setting-color);flex:none}
.profile-settings-list a strong{flex:1;color:#111;font-size:11px;font-weight:650}
.profile-settings-list a>.ico{color:#ccc}
.profile-settings-list a.danger strong{color:#6B192A}
.profile-view-dashboard{min-height:42px;margin:9px 0 0;padding:9px 11px;display:flex;align-items:center;gap:8px;border:1px solid #E8E4DE;border-radius:14px;background:#fff;color:#333;font-size:10px;font-weight:700}
.profile-view-dashboard span{flex:1}
.profile-view-dashboard>.ico:last-child{color:#ccc}

/* Settings secundário: mantém backend existente, mas visual de sheet/modal. */
.settings-route-overlay{min-height:calc(100dvh - var(--topbar-h) - var(--actionbar-h) - 66px);margin:0 -16px -80px;padding-top:34px;display:flex;align-items:flex-end;background:linear-gradient(to bottom,rgba(17,17,17,.12),rgba(17,17,17,.32))}
.settings-modal-source{width:100%;max-height:78dvh;overflow:auto;padding:0 16px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#F5F1EE;box-shadow:0 -12px 36px rgba(17,17,17,.12)}
.settings-modal-head{min-height:56px;position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;background:#F5F1EE;border-bottom:1px solid var(--border)}
.settings-modal-head h2{margin:0;font-size:14px}.settings-modal-head p{margin:2px 0 0;color:#aaa;font-size:9px}
.settings-modal-close{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:#F0E9E5;color:#777;font-size:20px}
.settings-menu-list{display:grid;gap:7px;padding:12px 0}
.settings-menu-list a{min-height:50px;padding:9px 11px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:16px;background:#fff}
.settings-menu-list a strong{flex:1;font-size:11px}.settings-menu-list a>.ico{color:#ccc}
.settings-menu-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--setting-color) 10%,white);color:var(--setting-color)}
.settings-panel-back{height:40px;display:flex;align-items:center;gap:6px;color:#777;font-size:10px;font-weight:650}
.settings-modal-source .settings-card.active-panel{margin-bottom:0}

/* Painel vendedor conforme a composição mostrada na revisão. */
.seller-dashboard-source{padding-bottom:10px}
.seller-greeting{padding:12px 0 8px}
.seller-greeting span{display:block;color:#aaa;font-size:9px;font-weight:600}
.seller-greeting h2{margin:2px 0 0;color:#111;font-size:17px;line-height:1.15;font-weight:500}
.seller-greeting p{margin:4px 0 0;color:#aaa;font-size:9px}
.seller-dashboard-filter{margin:10px 0 12px;border:1px solid var(--border);border-radius:15px;background:#fff;overflow:hidden}
.seller-dashboard-filter summary{min-height:42px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-size:10px;font-weight:700}
.seller-dashboard-filter summary::-webkit-details-marker{display:none}
.seller-dashboard-filter summary b{display:flex;align-items:center;gap:5px;color:#777;font-size:9px}
.seller-dashboard-filter[open] summary{border-bottom:1px solid var(--border)}
.seller-dashboard-filter form{padding:11px}
.seller-filter-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.seller-function-card .kpi-top{justify-content:flex-start;gap:7px}
.seller-function-card .kpi-top .ico{width:26px;height:26px;padding:6px;border-radius:9px}
.seller-function-card.kpi-products .kpi-top .ico{background:#E8F0FF;color:#0070C0}
.seller-function-card.kpi-orders .kpi-top .ico{background:#FFF8E6;color:#C08000}
.seller-function-card.kpi-views .kpi-top .ico{background:#F3E8FF;color:#8B4355}
.seller-function-card.kpi-rating .kpi-top .ico{background:#E6FAF0;color:#00A06A}
.seller-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.seller-primary-actions a{min-height:39px;padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #E8E4DE;border-radius:13px;background:#fff;color:#555;font-size:10px;font-weight:700}
.seller-primary-actions a.primary{border-color:#111;background:#111;color:#fff}
.seller-secondary-actions{display:flex;gap:14px;justify-content:center;margin-top:8px}
.seller-secondary-actions a{display:flex;align-items:center;gap:5px;color:#888;font-size:9px;font-weight:650}

/* Cadastro/edição: código é informativo, sem competir com os campos principais. */
.field-hint{display:block;margin-top:4px;color:#aaa;font-size:8px;line-height:1.35}

@media(max-width:380px){
  .visual-choice span{padding-left:8px;padding-right:8px}
  .seller-function-card{min-height:78px;padding:10px}
  .order-status-analysis .status-name{width:78px}
}

/* V2.4.3 — Painel Gerencial: filtro em popover fiel à referência. */
.seller-performance-head{min-height:34px;margin:5px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative}
.seller-performance-head>p{margin:0;color:#AAAAAA;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.seller-performance-tools{display:flex;align-items:center;gap:5px;position:relative}
.seller-all-pill{height:22px;padding:0 9px;border-radius:999px;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:700}
.seller-filter-popover{position:relative}
.seller-filter-popover>summary{list-style:none}
.seller-filter-popover>summary::-webkit-details-marker{display:none}
.seller-filter-trigger{width:28px;height:28px;border:1px solid #E8E4DE;border-radius:999px;background:#F0E9E5;color:#111;display:grid;place-items:center;cursor:pointer;transition:.15s ease}
.seller-filter-trigger.active,.seller-filter-popover[open] .seller-filter-trigger{border-color:#111;background:#111;color:#fff}
.seller-filter-popover-card{width:248px;max-width:calc(100vw - 38px);padding:13px;position:absolute;right:0;top:34px;z-index:30;border:1px solid #F0E9E5;border-radius:16px;background:#fff;box-shadow:0 14px 36px rgba(17,17,17,.14)}
.seller-filter-popover-card section+section{margin-top:12px;padding-top:11px;border-top:1px solid #F0E9E5}
.seller-filter-popover-card section>strong{display:block;margin-bottom:7px;color:#AAAAAA;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.seller-filter-popover-card section>label>span{display:block;margin:0 0 4px;color:#888;font-size:9px}
.seller-filter-popover-card input[type="date"]{width:100%;height:34px;margin-bottom:7px;padding:0 9px;border:1px solid #E8E4DE;border-radius:11px;background:#F5F1EE;color:#111;font:inherit;font-size:10px;outline:none}
.seller-filter-chips{display:flex;flex-wrap:wrap;gap:6px}
.seller-filter-chips label{position:relative;cursor:pointer}
.seller-filter-chips input{position:absolute;opacity:0;pointer-events:none}
.seller-filter-chips label>span{min-height:27px;padding:6px 9px;border:1px solid #E8E4DE;border-radius:999px;background:#F5F1EE;color:#777;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:650;white-space:nowrap}
.seller-filter-chips input:checked+span{border-color:#111;background:#111;color:#fff}
.seller-filter-chips.category{max-height:112px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#D8D4CE transparent}
.seller-filter-popover-card .seller-filter-buttons{margin-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:7px}
.seller-filter-popover-card .seller-filter-buttons a,.seller-filter-popover-card .seller-filter-buttons button{height:33px;border:0;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;cursor:pointer}
.seller-filter-popover-card .seller-filter-buttons a{background:#F0E9E5;color:#777}
.seller-filter-popover-card .seller-filter-buttons button{background:#111;color:#fff}

/* V2.4.3 — Avaliações recebidas: nota média + distribuição 5★→1★ como no protótipo. */
.seller-reviews-source{padding-bottom:14px}
.seller-review-summary{margin:4px 0 13px;padding:14px;border-radius:16px;background:#111;color:#fff;display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:center}
.seller-review-score{min-width:0}
.seller-review-score>strong{display:block;font-size:27px;line-height:1;font-weight:500;letter-spacing:-.03em}
.seller-review-stars{margin-top:5px;color:#6B192A;font-size:10px;letter-spacing:1px;white-space:nowrap}
.seller-review-score>span{display:block;margin-top:4px;color:rgba(255,255,255,.46);font-size:8px}
.seller-review-bars{display:grid;gap:5px}
.seller-review-bars>div{display:grid;grid-template-columns:22px minmax(0,1fr) 14px;gap:6px;align-items:center}
.seller-review-bars span,.seller-review-bars em{color:rgba(255,255,255,.55);font-size:8px;font-style:normal}
.seller-review-bars em{text-align:right}
.seller-review-bars i{height:5px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.16)}
.seller-review-bars i>b{height:100%;display:block;border-radius:999px;background:#6B192A}
.seller-review-list{display:grid;gap:7px}
.seller-review-row{padding:11px 12px;border:1px solid #F0E9E5;border-radius:14px;background:#fff}
.seller-review-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.seller-review-row-head>div{min-width:0}
.seller-review-row-head strong{display:block;color:#111;font-size:10px;font-weight:700}
.seller-review-row-head span{display:block;margin-top:2px;color:#AAAAAA;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seller-review-row-head>b{flex:none;color:#6B192A;font-size:9px;letter-spacing:.5px}
.seller-review-row p{margin:8px 0 5px;color:#555;font-size:10px;line-height:1.45}
.seller-review-row p.muted{color:#BBBBBB;font-style:italic}
.seller-review-row>small{color:#BBBBBB;font-size:8px}
.seller-review-empty span{display:block;margin-top:5px;color:#AAA;font-size:9px;line-height:1.4}
.profile-review-summary{margin-top:2px}
.review-card>strong{display:flex;align-items:center;justify-content:space-between;gap:8px}
.review-card>strong span{color:#6B192A;font-size:9px;white-space:nowrap}
.review-card>small{display:block;margin:3px 0 5px;color:#AAAAAA;font-size:8px}

@media(max-width:380px){
  .seller-filter-popover-card{width:232px}
  .seller-review-summary{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:12px}
  .seller-review-score>strong{font-size:24px}
}

/* =========================================================
   ELLISA V2.5 — CONSOLIDAÇÃO APP / REVISÃO DA PROPRIETÁRIA
   Ajustes cirúrgicos: avaliações, filtros e estabilidade visual.
   Não altera a geometria-base do Style Share 2.
   ========================================================= */

/* Avaliação pós-transação: mesma linguagem visual do protótipo. */
.review-helper{margin:-2px 0 10px;color:#888;font-size:10px;line-height:1.45}
.item-review-form,.order-review-card{scroll-margin-top:calc(var(--topbar-h) + var(--actionbar-h) + 10px)}
.item-review-form .select,.order-review-card .select{min-height:40px}
.review-card p.muted{color:#BBBBBB;font-style:italic}
.reviews-head span{display:inline-flex;align-items:center;gap:4px;color:#888;font-size:10px;font-weight:650}

/* Seller Orders: pills e cards não podem criar overflow horizontal no frame 360–430px. */
.orders-source{min-width:0}
.source-order-list,.order-card,.order-card-main,.order-product,.order-product .grow{min-width:0}
.order-card-actions{max-width:100%;overflow:hidden}
.order-inline-action{max-width:100%;white-space:normal;text-align:center;line-height:1.2}
.order-filter-pills{overscroll-behavior-x:contain}

/* Painel Gerencial: popover sempre contido dentro do app de 480px. */
.seller-performance-tools,.seller-filter-popover{min-width:0}
.seller-filter-popover-card{max-width:min(248px,calc(100vw - 32px));overflow:auto;overscroll-behavior:contain}
.seller-filter-chips.category{max-width:100%}

/* Configurações: mantém o bottom-sheet e evita que formulários longos estourem a viewport. */
.settings-route-overlay,.settings-modal-source,.profile-settings-sheet{min-width:0}
.settings-modal-source{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.settings-modal-source .form-grid>*{min-width:0}
.profile-settings-list a{min-width:0}
.profile-settings-list a strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Cards de produto: rating/filtros não devem alterar a proporção 3:4 nem a linha de distância. */
.product-card,.product-card-media,.product-card-body-link,.product-card .body{min-width:0}
.product-location{max-width:100%}

@media(max-width:380px){
  .order-card-actions{gap:6px;padding-left:10px;padding-right:10px}
  .order-inline-action{padding:7px 8px;font-size:8.5px}
  .seller-filter-popover-card{right:-2px;width:232px;max-width:calc(100vw - 28px)}
  .seller-review-summary{grid-template-columns:68px minmax(0,1fr)}
}


/* ===== HOTFIX 01 — UX, Liquid Glass e Acessibilidade ===== */
.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;padding:10px 14px;border-radius:12px;background:#111;color:#fff;font-size:13px;font-weight:700;transition:top .15s ease}.skip-link:focus{top:12px}
:focus-visible{outline:3px solid rgba(107,25,42,.38);outline-offset:2px}
body{font-size:15px}.app-main{padding-left:17px;padding-right:17px;padding-bottom:96px}
.mode-switch a{font-size:13px;min-height:38px}.brand{font-size:19px}.source-local-head h2,.directory-title h1{font-size:20px}.source-local-head p,.directory-info p{font-size:13px}
.bottom-nav{bottom:8px;width:min(calc(100% - 16px),calc(var(--app-w) - 16px));border:1px solid rgba(255,255,255,.68);border-radius:24px;background:rgba(255,255,255,.72);box-shadow:0 12px 34px rgba(17,17,17,.16),inset 0 1px 0 rgba(255,255,255,.76);-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);overflow:hidden;padding-bottom:max(0px,env(safe-area-inset-bottom))}
.bottom-nav-inner{min-height:60px;padding:7px 8px}.bottom-nav a{min-width:58px;min-height:48px;border-radius:17px;font-size:10px;font-weight:650;color:#999}.bottom-nav a .ico{width:22px;height:22px}.bottom-nav a.active{background:rgba(17,17,17,.08);color:#111}
.hero-carousel{margin-top:8px}.hero-slide{min-height:220px!important;border-radius:24px!important;padding:24px!important}.hero-slide h2{font-size:24px!important;line-height:1.16}.hero-slide p{font-size:13px!important}.hero-slide small{font-size:10px!important}
.home-profiles{margin-top:18px}.wardrobe-strip{gap:14px!important}.profile-mini{width:112px!important;flex:0 0 112px!important}.profile-cover{height:142px!important;border-radius:22px!important}.profile-avatar{width:48px!important;height:48px!important;bottom:8px!important;left:8px!important;border-width:3px!important}.profile-mini>strong{font-size:13px!important}.profile-mini>small{font-size:11px!important}.profile-cover em{font-size:11px!important}
.category-strip{gap:11px!important}.category-mini{min-width:74px!important;font-size:11px!important;gap:7px!important}.category-icon{width:58px;height:58px;border:1px solid #E8E4DE;border-radius:19px;background:#fff;display:grid;place-items:center;color:#555;box-shadow:0 6px 18px rgba(17,17,17,.045)}.category-mini.active .category-icon{border-color:rgba(107,25,42,.38);background:#FFF4F1;color:var(--accent);box-shadow:0 0 0 2px rgba(107,25,42,.09)}
.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.media-slot{min-height:0!important;aspect-ratio:4/5;border-radius:18px!important}.media-slot:first-child{grid-column:1/-1;aspect-ratio:4/3}.media-slot small{font-size:11px!important}.detail-gallery{height:auto!important;aspect-ratio:4/5;max-height:610px}.detail-gallery-slide{min-width:100%;height:100%!important;border-radius:0}.fidelity-feed-photo{aspect-ratio:4/5;overflow:hidden}.fidelity-feed-photo img,.fidelity-feed-photo video{width:100%;height:100%;object-fit:cover}
.input,.select,.textarea{font-size:14px!important;min-height:44px}.label{font-size:11px!important}.btn{font-size:13px}.social-caption{font-size:15px!important}.product-title,.product-card h3{font-size:13px!important}.price-block strong{font-size:15px!important}
.password-field{position:relative}.password-field .input{padding-right:46px}.password-toggle{position:absolute;right:5px;top:50%;width:38px;height:38px;transform:translateY(-50%);border:0;border-radius:12px;background:transparent;color:#777;display:grid;place-items:center;cursor:pointer}.password-rules{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.password-rules span{padding:5px 8px;border-radius:999px;background:#F0E9E5;color:#999;font-size:10px;font-weight:650}.password-rules span.ok{background:#E6FAF0;color:#008458}
.accessibility-card{display:grid;gap:0;margin-top:14px;padding:4px 14px 14px;border:1px solid var(--border);border-radius:20px;background:#fff}.accessibility-card label{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border)}.accessibility-card label:last-of-type{border-bottom:0}.accessibility-card strong{display:block;font-size:14px}.accessibility-card small{display:block;margin-top:3px;color:#999;font-size:11px;line-height:1.35}.accessibility-card input{width:22px;height:22px;accent-color:var(--accent)}
.a11y-large-text body{font-size:17px}.a11y-large-text .app-shell{--app-w:520px}.a11y-large-text .source-local-head h2,.a11y-large-text .page-head h1{font-size:23px}.a11y-large-text .bottom-nav a{font-size:12px}.a11y-large-text .social-caption,.a11y-large-text .description{font-size:17px}.a11y-high-contrast body{--muted:#686868;--muted-dark:#444;--muted-light:#777;--border:#D9D5CF;--border-input:#CFC9C1}.a11y-high-contrast .bottom-nav{border-color:#AAA}.a11y-reduced-motion *{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
@media(max-width:380px){.profile-mini{width:102px!important;flex-basis:102px!important}.profile-cover{height:132px!important}.hero-slide{min-height:205px!important}.hero-slide h2{font-size:21px!important}}


/* ===== HOTFIX 02 — Social, Reels, ADS e Moderação ===== */
.hero-ad{position:relative;text-decoration:none}.hero-ad .ad-badge{position:absolute;right:14px;top:14px;z-index:3;padding:4px 7px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(17,17,17,.28);backdrop-filter:blur(8px);color:#fff;font-size:8px;font-weight:800;letter-spacing:.12em}.profile-mini.has-story .profile-avatar{box-shadow:0 0 0 3px #fff,0 0 0 5px #6B192A}
.story-strip{display:flex;gap:12px;overflow-x:auto;margin:8px -17px 14px;padding:4px 17px 7px;scrollbar-width:none}.story-strip::-webkit-scrollbar{display:none}.story-chip{width:66px;flex:0 0 66px;text-align:center}.story-chip>span{width:58px;height:58px;margin:0 auto;display:grid;place-items:center;border:3px solid #fff;border-radius:999px;background:#222;color:#fff;box-shadow:0 0 0 2px var(--accent);overflow:hidden;font-size:17px;font-weight:800}.story-chip img{width:100%;height:100%;object-fit:cover}.story-chip small{display:block;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#555}
.reels-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:10px 0 8px}.reels-head strong{font-size:15px}.reels-head span{color:#aaa;font-size:10px}.reels-strip{display:flex;gap:9px;overflow-x:auto;margin:0 -17px 14px;padding:0 17px 4px;scrollbar-width:none}.reels-strip::-webkit-scrollbar{display:none}.reel-card{width:116px;aspect-ratio:9/14;flex:0 0 116px;position:relative;overflow:hidden;border-radius:18px;background:#111}.reel-card img,.reel-card video{width:100%;height:100%;object-fit:cover}.reel-card:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.65))}.reel-card i{position:absolute;z-index:2;left:9px;top:9px;width:30px;height:30px;border-radius:999px;background:rgba(0,0,0,.34);color:#fff;display:grid;place-items:center}.reel-card b{position:absolute;z-index:2;left:10px;right:8px;bottom:9px;color:#fff;font-size:10px}
.social-viewer{position:relative;margin:8px 0 16px;overflow:hidden;border-radius:24px;background:#111;min-height:420px}.social-viewer>img,.social-viewer>video{width:100%;height:min(68vh,620px);object-fit:cover}.social-viewer-close{position:absolute;right:12px;top:12px;z-index:4;width:38px;height:38px;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;display:grid;place-items:center;font-size:24px}.social-viewer-copy{position:absolute;z-index:3;left:0;right:0;bottom:0;padding:70px 16px 16px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff}.social-viewer-copy strong{font-size:15px}.social-viewer-copy p{margin:5px 0 10px;font-size:12px;line-height:1.45}.social-viewer-copy .btn{display:inline-flex;width:auto}.moderation-note{margin:9px 0 0;color:#aaa;font-size:10px;line-height:1.35}

/* ===== ELLISA HF03 — Marketplace, chat e perfis ===== */
.chat-order-event{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;margin:10px 0;padding:10px;border:1px solid rgba(17,17,17,.09);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(17,17,17,.06)}
.chat-order-event img,.chat-order-event-icon{width:58px;height:58px;border-radius:14px;object-fit:cover;background:#F0E9E5;display:grid;place-items:center}.chat-order-event small{display:block;font-size:11px;color:#7B746C}.chat-order-event strong{display:block;font-size:14px;margin:2px 0}.chat-order-event p{font-size:12px;line-height:1.35;margin:3px 0;color:#4E4944}.chat-order-event>a{font-size:11px;font-weight:700;color:#6B192A;white-space:nowrap}.chat-order-event-meta{display:flex;gap:8px;align-items:center;font-size:10px;color:#777}.chat-order-event-meta b{color:#111}.profile-source-name{flex-wrap:wrap}.verified-dot+.rating-pill{margin-left:2px}.buyer-profile-tabs{overflow-x:auto;scrollbar-width:none}.buyer-profile-tabs a{min-width:max-content}.orders-source .order-list{margin-top:10px}

/* ===== ELLISA HF04 — Gerencial e Central de Ajuda ===== */
.source-revenue-clickable{position:relative;text-decoration:none;color:inherit;display:block}.source-revenue-clickable>span{position:absolute;right:16px;bottom:14px;display:flex;gap:4px;align-items:center;font-size:11px;font-weight:700;opacity:.72}.help-center-source{padding-bottom:26px}.help-hero{padding:26px 18px 20px;border-radius:0 0 28px 28px;background:linear-gradient(145deg,#111,#332f2d);color:white;text-align:center}.help-hero>span{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;margin:0 auto 9px;background:rgba(255,255,255,.12)}.help-hero h2{margin:0;font-size:22px}.help-hero p{margin:5px 0 15px;font-size:13px;opacity:.75}.help-search{height:48px;padding:0 13px;background:#fff;border-radius:16px;display:flex;align-items:center;gap:9px;color:#777}.help-search input{border:0;outline:0;width:100%;font-size:14px}.help-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px}.help-category-grid a{min-height:76px;padding:13px;border-radius:17px;background:#fff;border:1px solid #ece8e3;display:grid;grid-template-columns:28px 1fr 15px;align-items:center;gap:7px;color:#111;text-decoration:none}.help-category-grid strong{font-size:12px;line-height:1.2}.help-results{padding:4px 14px 12px}.help-results h3{font-size:15px}.help-results>a{display:flex;justify-content:space-between;align-items:center;padding:13px 2px;border-bottom:1px solid #ece8e3;color:#111;text-decoration:none}.help-results>a span{display:grid;gap:3px}.help-results small{font-size:9px;color:#938c86}.help-results strong{font-size:13px}.help-contact-card{margin:8px 14px;padding:15px;border-radius:18px;background:#F0E9E5;display:flex;align-items:center;justify-content:space-between;gap:10px}.help-contact-card div{display:grid;gap:4px}.help-contact-card strong{font-size:13px}.help-contact-card span{font-size:10px;color:#776f69}.help-article{margin:14px;padding:18px;background:#fff;border-radius:20px}.help-article>a{font-size:11px;color:#777}.help-article>span{display:block;margin-top:18px;font-size:10px;color:#6B192A;font-weight:700}.help-article h2{font-size:21px}.help-article div{font-size:13px;line-height:1.65}.help-contact-form{margin:12px 14px}
.seller-revenue-detail{padding:0 14px 26px}.seller-revenue-hero{margin:12px 0;padding:20px;border-radius:22px;background:#111;color:#fff;display:grid;gap:4px}.seller-revenue-hero small{font-size:10px;opacity:.65}.seller-revenue-hero strong{font-size:28px}.seller-revenue-hero span{font-size:11px;opacity:.75}.seller-revenue-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.seller-revenue-kpis>div{padding:13px;border:1px solid #ece8e3;background:#fff;border-radius:16px;display:grid;gap:3px}.seller-revenue-kpis span{font-size:10px;color:#777}.seller-revenue-kpis strong{font-size:16px}.seller-revenue-kpis small{font-size:9px;color:#999}.seller-revenue-orders{display:grid;gap:7px}.seller-revenue-orders>a{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:11px;border-radius:14px;background:#fff;border:1px solid #ece8e3;color:#111;text-decoration:none}.seller-revenue-orders>a span{display:grid;gap:2px}.seller-revenue-orders small{font-size:9px;color:#8c8580}.seller-revenue-orders b{font-size:12px}


/* HF07 — restaura atalho visual de Story sem reintroduzir o runtime antigo */
.profile-source-avatar{position:relative}
.profile-story-add{position:absolute;top:-7px;right:-7px;z-index:6;width:24px;height:24px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#111;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18);text-decoration:none}
.profile-story-add .ico{width:11px;height:11px}
.story-chip-create>span{position:relative;box-shadow:0 0 0 2px #d7d7d7}
.story-chip-create .story-plus-badge{position:absolute;right:-2px;bottom:-1px;width:20px;height:20px;border:2px solid #fff;border-radius:999px;background:#111;color:#fff;display:grid;place-items:center;font-style:normal;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.story-chip-create .story-plus-badge .ico{width:10px;height:10px}


/* ELLISA HF08 — Story sempre visível no cabeçalho global do App.
   Mantém o ícone na mesma linguagem visual de Favoritos/Sacola/Notificações. */
.story-header-action{position:relative!important;color:#111!important}
.story-header-action .ico{width:18px;height:18px}
.story-header-plus{position:absolute;right:1px;top:0;width:12px;height:12px;display:grid;place-items:center;border:1.5px solid #fff;border-radius:999px;background:#6B192A;color:#fff;font-size:9px;font-weight:900;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.16);pointer-events:none}
@media(max-width:380px){.story-header-plus{right:0;top:-1px}}

/* HF10 — navegação consistente nas telas de Configurações */
.settings-page-back{
  width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;
  border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--fg);
  box-shadow:0 2px 8px rgba(17,17,17,.04);text-decoration:none;
}
.settings-page-back:active{transform:scale(.96)}
.settings-modal-head{gap:10px}
.settings-modal-title{flex:1;min-width:0;text-align:center}
.settings-head-spacer{width:36px;flex:0 0 36px}
.settings-standalone-nav{
  min-height:52px;display:flex;align-items:center;gap:10px;margin:0 0 12px;
  border-bottom:1px solid var(--border);
}
.settings-standalone-nav>span{font-size:12px;font-weight:700;color:var(--fg)}
.settings-route-head{justify-content:flex-start!important}
.settings-route-head>div{min-width:0}
.settings-panel-back{
  min-height:44px;padding:4px 0;gap:8px;color:var(--fg);font-size:11px;font-weight:700;
}
@media (max-width:420px){
  .settings-page-back{width:34px;height:34px;flex-basis:34px}
  .settings-head-spacer{width:34px;flex-basis:34px}
}

/* HF12 — acessibilidade realmente aplicada em todo o App */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Texto maior: cobre os componentes que usam tamanhos fixos em px. */
.a11y-large-text .app-main p,
.a11y-large-text .app-main small,
.a11y-large-text .app-main label,
.a11y-large-text .app-main .description,
.a11y-large-text .app-main .social-caption{font-size:max(14px,1em)!important;line-height:1.55!important}
.a11y-large-text .app-main h1{font-size:25px!important}
.a11y-large-text .app-main h2{font-size:21px!important}
.a11y-large-text .app-main h3,
.a11y-large-text .app-main strong{font-size:max(15px,1em)!important;line-height:1.35!important}
.a11y-large-text .app-main .btn,
.a11y-large-text .app-main .input,
.a11y-large-text .app-main input,
.a11y-large-text .app-main select,
.a11y-large-text .app-main textarea,
.a11y-large-text .settings-menu-list a{font-size:15px!important}
.a11y-large-text .accessibility-card label{min-height:76px}
.a11y-large-text .accessibility-card small{font-size:13px!important}
.a11y-large-text .bottom-nav a{font-size:12px!important}

/* Alto contraste: reforça inclusive componentes com cores fixas. */
.a11y-high-contrast body{--fg:#000;--body:#111;--muted:#4B4B4B;--muted-dark:#222;--muted-light:#555;--border:#B7B7B7;--border-input:#8F8F8F;--bg:#FFF;--card:#FFF;}
.a11y-high-contrast .app-shell,
.a11y-high-contrast .app-main{background:#fff!important;color:#000!important}
.a11y-high-contrast .card,
.a11y-high-contrast .accessibility-card,
.a11y-high-contrast .input,
.a11y-high-contrast input,
.a11y-high-contrast select,
.a11y-high-contrast textarea{border-color:#777!important}
.a11y-high-contrast .app-main p,
.a11y-high-contrast .app-main small,
.a11y-high-contrast .app-main label{color:#222!important}
.a11y-high-contrast a:focus-visible,
.a11y-high-contrast button:focus-visible,
.a11y-high-contrast input:focus-visible,
.a11y-high-contrast select:focus-visible,
.a11y-high-contrast textarea:focus-visible{outline:3px solid #000!important;outline-offset:2px!important}

/* Reduzir movimento: além das transições, bloqueia rolagem suave. */
.a11y-reduced-motion,
.a11y-reduced-motion *{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0ms!important}

/* HF13 — Novo Produto: seletor compacto de fotos e vídeos */
.product-media-section .source-form-title b{font:inherit;color:var(--fg);font-weight:700}
.product-media-picker{
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(104px,.75fr);
  gap:12px;
  align-items:stretch;
}
.product-media-primary,
.product-media-add{
  min-width:0;
  border:1px dashed #cbc6bd;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  position:relative;
}
.product-media-primary{
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-media-primary img,
.product-media-primary video{
  width:100%;height:100%;object-fit:cover;display:block;background:#111;
}
.product-media-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  color:var(--muted);text-align:center;padding:18px;
}
.product-media-empty strong{font-size:12px;color:var(--fg);font-weight:650}
.product-media-empty small{font-size:10px;line-height:1.3;max-width:150px}
.media-primary-badge{
  position:absolute;left:10px;bottom:10px;padding:5px 9px;border-radius:999px;
  background:rgba(17,17,17,.78);color:#fff;font-size:9px;font-weight:700;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)
}
.product-media-add{
  appearance:none;-webkit-appearance:none;cursor:pointer;color:var(--fg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:116px;padding:14px;text-align:center;
}
.product-media-add svg{width:23px;height:23px}
.product-media-add strong{font-size:12px}
.product-media-add small{font-size:9px;color:var(--muted)}
.product-media-add:not(:disabled):active{transform:scale(.98)}
.product-media-add:disabled{opacity:.4;cursor:not-allowed}
.product-media-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.product-media-strip{
  display:flex;gap:9px;overflow-x:auto;padding:10px 1px 2px;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.product-media-strip::-webkit-scrollbar{display:none}
.product-media-strip:empty{display:none}
.product-media-thumb{
  position:relative;flex:0 0 76px;aspect-ratio:1/1;border-radius:13px;overflow:hidden;
  background:#f2f0ed;border:1px solid #e5e0d9;
}
.product-media-thumb img,.product-media-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.product-media-remove{
  position:absolute;right:4px;top:4px;width:24px;height:24px;border:0;border-radius:50%;
  display:grid;place-items:center;background:rgba(17,17,17,.78);color:#fff;font-size:17px;line-height:1;
  cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.16)
}
.media-kind{
  position:absolute;left:4px;bottom:4px;padding:3px 6px;border-radius:999px;background:rgba(17,17,17,.72);
  color:#fff;font-size:8px;font-weight:700
}
.product-media-help{margin:8px 2px 0;color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:380px){
  .product-media-picker{grid-template-columns:minmax(0,1.7fr) minmax(92px,.75fr);gap:9px}
  .product-media-primary,.product-media-add{border-radius:16px}
  .product-media-add{padding:10px}
}

/* HF15 — hierarquia das notificações de jornada */
.notification-title{display:block;font-size:10px;color:#111;margin:2px 0 2px;font-weight:800}.notification p{margin:0 0 3px;line-height:1.35}


/* HF17 — upload de foto de perfil */
.profile-photo-uploader{display:flex;align-items:center;gap:12px;margin:7px 0 13px}.profile-photo-preview{width:68px;height:68px;flex:0 0 68px;border-radius:50%;overflow:hidden;background:#F1EFEB;border:1px solid #E6E1DA;display:grid;place-items:center;font-size:22px;font-weight:800}.profile-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}.profile-photo-actions{min-width:0;flex:1}.profile-photo-actions .input{width:100%;padding:9px;font-size:12px}.profile-photo-actions small{display:block;margin-top:5px;color:#8C8882;font-size:10px;line-height:1.35}
.a11y-large-text .profile-photo-actions small{font-size:12px}


/* HF18 — perfil: botão sempre acima da navegação + imagem sem escurecimento */
.settings-source{
  padding-bottom:calc(var(--nav-h) + 72px + env(safe-area-inset-bottom))!important;
  scroll-padding-bottom:calc(var(--nav-h) + 88px + env(safe-area-inset-bottom));
}
.settings-source .settings-card.active-panel{
  margin-bottom:24px;
}
.profile-source-avatar.has-image{
  background:#fff!important;
}
.profile-source-avatar.has-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#fff;
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
.profile-photo-preview{
  background:#fff;
}
.profile-photo-preview img{
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
@media (max-width:520px){
  .settings-source{
    padding-bottom:calc(var(--nav-h) + 96px + env(safe-area-inset-bottom))!important;
  }
}




/* HF20 — Configurações: rolagem natural com folga abaixo do formulário */
.settings-modal-source{
  padding-bottom:calc(var(--nav-h) + 150px + env(safe-area-inset-bottom))!important;
  scroll-padding-bottom:calc(var(--nav-h) + 170px + env(safe-area-inset-bottom));
}
.settings-modal-source .settings-card.active-panel{
  margin-bottom:calc(var(--nav-h) + 110px + env(safe-area-inset-bottom))!important;
}
.settings-modal-source .settings-card.active-panel > .btn.primary.block:last-child{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  margin-top:10px;
  box-shadow:none!important;
}
@media (max-width:520px){
  .settings-modal-source{
    padding-bottom:calc(var(--nav-h) + 180px + env(safe-area-inset-bottom))!important;
  }
  .settings-modal-source .settings-card.active-panel{
    margin-bottom:calc(var(--nav-h) + 130px + env(safe-area-inset-bottom))!important;
  }
}


/* HF21 — KYC obrigatório no primeiro aluguel + selo azul verificado */
.verified-dot{
  width:17px!important;
  height:17px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 17px;
  background:#0095F6!important;
  color:#fff!important;
  border-radius:0!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 0 0 1px rgba(0,149,246,.08);
  clip-path:polygon(50% 0%,61% 8%,74% 5%,82% 16%,95% 18%,95% 32%,100% 43%,91% 53%,94% 67%,82% 74%,80% 88%,66% 90%,55% 100%,44% 92%,31% 96%,23% 84%,9% 82%,8% 68%,0% 57%,8% 46%,5% 32%,17% 25%,20% 11%,34% 10%);
}
.seller-verified-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.rental-verification-gate{
  display:grid;
  grid-template-columns:22px 1fr auto;
  gap:9px;
  align-items:center;
  margin:10px 14px;
  padding:12px;
  border:1px solid #CBE8FF;
  border-radius:16px;
  background:#F2F9FF;
}
.rental-verification-gate>div{display:grid;gap:3px}
.rental-verification-gate strong{font-size:12px;color:#111}
.rental-verification-gate span:not(.verified-dot){font-size:10px;line-height:1.35;color:#66717A}
.rental-verification-gate .btn{width:auto;white-space:nowrap;padding:8px 10px;font-size:10px}
.verified-approved-box{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:9px;
  align-items:center;
  margin-top:8px;
  padding:12px;
  border:1px solid #BFE5FF;
  border-radius:14px;
  background:#F2FAFF;
}
.verified-approved-box>div{display:grid;gap:2px}
.verified-approved-box strong{font-size:12px;color:#087BC1}
.verified-approved-box span:not(.verified-dot){font-size:10px;line-height:1.35;color:#547181}


/* HF22 — sugestão contextual no chat de produto */
.chat-suggestions{
  position:sticky;
  bottom:118px;
  z-index:7;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 -16px;
  padding:7px 16px 8px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 45%);
  border-top:1px solid rgba(232,228,222,.75);
}
.chat-suggestions>span{
  flex:none;
  color:#9A938C;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.chat-suggestion-chip{
  appearance:none;
  border:1px solid #E8E4DE;
  background:#F5F1EE;
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  font:inherit;
  font-size:11px;
  font-weight:650;
  cursor:pointer;
  white-space:nowrap;
}
.chat-suggestion-chip:active{transform:scale(.98)}


/* HF23 — KYC com captura de câmera e revisão assistida por IA */
.kyc-form{display:grid;gap:10px}
.kyc-camera-button{width:100%;text-align:left;cursor:pointer;font:inherit}
.kyc-selfie-preview{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #DDE9E4;border-radius:12px;background:#F4FBF8}
.kyc-selfie-preview img{width:64px;height:78px;object-fit:cover;border-radius:9px;background:#fff}
.kyc-selfie-preview strong,.kyc-selfie-preview small{display:block}.kyc-selfie-preview small{margin-top:3px;color:#7F817E;font-size:7px;line-height:1.35}
.kyc-selfie-preview button{border:0;background:#fff;border-radius:999px;padding:7px 9px;font-size:8px;font-weight:700;cursor:pointer}
.kyc-ai-consent{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border:1px solid #E8E4DE;border-radius:11px;background:#fff;font-size:7px;line-height:1.45;color:#5F5B57}
.kyc-ai-consent input{margin-top:2px;accent-color:#111}
.kyc-camera-modal[hidden]{display:none!important}.kyc-camera-modal{position:fixed;inset:0;z-index:10000;background:#000;display:grid;place-items:center}
.kyc-camera-stage{position:relative;width:min(100vw,520px);height:100dvh;max-height:100dvh;background:#050505;overflow:hidden}
.kyc-camera-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.kyc-camera-guide{position:absolute;inset:0;pointer-events:none}
.kyc-face-guide{position:absolute;left:50%;top:17%;transform:translateX(-50%);width:46%;aspect-ratio:.78;border:2px solid rgba(255,255,255,.75);border-radius:48%}
.kyc-doc-guide{position:absolute;left:50%;bottom:25%;transform:translateX(-50%);width:54%;aspect-ratio:1.58;border:2px dashed rgba(255,255,255,.78);border-radius:12px;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800;letter-spacing:.08em;text-shadow:0 1px 4px #000}
.kyc-camera-copy{position:absolute;top:max(20px,env(safe-area-inset-top));left:55px;right:55px;text-align:center;color:#fff;text-shadow:0 1px 7px #000}
.kyc-camera-copy strong,.kyc-camera-copy span{display:block}.kyc-camera-copy strong{font-size:14px}.kyc-camera-copy span{font-size:8px;line-height:1.4;margin-top:4px}
.kyc-camera-close{position:absolute;top:max(18px,env(safe-area-inset-top));left:15px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.42);color:#fff;font-size:22px}
.kyc-camera-shutter{position:absolute;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);width:74px;height:74px;border:4px solid #fff;border-radius:50%;background:rgba(255,255,255,.15);display:grid;place-items:center}
.kyc-camera-shutter span{width:58px;height:58px;border-radius:50%;background:#fff;display:block}


/* HF24 — selfie exclusivamente pela câmera */
.kyc-camera-error{
  padding:9px 11px;
  border:1px solid #F2C9C0;
  border-radius:10px;
  background:#FFF5F2;
  color:#B73B27;
  font-size:8px;
  line-height:1.4;
}
.kyc-form .btn.primary.block{
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
}

/* HF25 — KYC: guias maiores e mais funcionais para selfie com documento */
.kyc-face-guide{
  top:13.5%!important;
  width:62%!important;
  max-width:330px;
  aspect-ratio:.80!important;
  border-width:2.5px!important;
}
.kyc-doc-guide{
  bottom:16.5%!important;
  width:78%!important;
  max-width:410px;
  aspect-ratio:1.58!important;
  min-height:150px;
  border-width:2.5px!important;
  border-radius:16px!important;
  font-size:10px!important;
}
@media (max-height:720px){
  .kyc-face-guide{top:14.5%!important;width:56%!important;max-width:295px}
  .kyc-doc-guide{bottom:17%!important;width:72%!important;max-width:375px;min-height:132px}
}
@media (min-height:900px){
  .kyc-face-guide{top:14%!important;width:64%!important;max-width:345px}
  .kyc-doc-guide{bottom:17.5%!important;width:80%!important;max-width:425px;min-height:160px}
}


/* =========================================================
   HF26 — Modo Escuro / Aparência
   Tema aplicado por html[data-theme="dark"].
   Claro permanece como padrão.
   ========================================================= */

html[data-theme="dark"]{
  --bg:#111214;
  --fg:#F7F7F5;
  --card:#191B1F;
  --border:#292C31;
  --border-input:#34383F;
  --body:#D4D6DA;
  --muted:#969BA4;
  --muted-dark:#B9BDC5;
  --muted-light:#777D86;
  --secondary:#22252A;
  --success:#4AD89C;
  --success-bg:#10261E;
  --success-border:#1D4D39;
  --danger:#FF725D;
  --danger-bg:#2C1715;
  --danger-border:#5C2C25;
  --info:#66B7F2;
  --info-bg:#142432;
  --info-border:#294861;
  --warning:#F3C35E;
  --warning-bg:#2E2716;
  --warning-border:#5B4B23;
  --purple:#D1A1AF;
  --purple-bg:#241C38;
}
html[data-theme="dark"],
html[data-theme="dark"] body{background:#08090B;color:var(--fg)}
html[data-theme="dark"] body{color-scheme:dark}
html[data-theme="dark"] .app-shell{
  background:var(--bg);
  box-shadow:0 0 0 1px rgba(255,255,255,.035),0 18px 50px rgba(0,0,0,.45);
}
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .page-head{background:var(--bg);color:var(--fg)}
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .mode-switch{
  background:rgba(17,18,20,.94);
  border-color:var(--border);
  backdrop-filter:saturate(140%) blur(18px);
  -webkit-backdrop-filter:saturate(140%) blur(18px);
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] .header-action{color:var(--fg)}
html[data-theme="dark"] .mode-switch a{background:var(--secondary);color:var(--muted-dark)}
html[data-theme="dark"] .mode-switch a.active{background:#F4F4F1;color:#111}
html[data-theme="dark"] .bottom-nav{
  background:rgba(20,22,25,.86)!important;
  border-color:rgba(255,255,255,.10);
  box-shadow:0 -10px 30px rgba(0,0,0,.32);
  backdrop-filter:saturate(150%) blur(22px);
  -webkit-backdrop-filter:saturate(150%) blur(22px);
}
html[data-theme="dark"] .bottom-nav a{color:#818690}
html[data-theme="dark"] .bottom-nav a.active{color:#fff;background:rgba(255,255,255,.08)}
html[data-theme="dark"] .bottom-nav .ico{color:currentColor}

/* Primitivos e formulários */
html[data-theme="dark"] .card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .seller-function-card,
html[data-theme="dark"] .seller-quick-actions a,
html[data-theme="dark"] .profile-history-row,
html[data-theme="dark"] .preferences-card,
html[data-theme="dark"] .buyer-profile-quick a,
html[data-theme="dark"] .profile-settings-list a,
html[data-theme="dark"] .profile-view-dashboard,
html[data-theme="dark"] .chat-product-context,
html[data-theme="dark"] .return-journey-card,
html[data-theme="dark"] .rental-availability,
html[data-theme="dark"] .item-review-form,
html[data-theme="dark"] .order-status-analysis,
html[data-theme="dark"] .my-items-period,
html[data-theme="dark"] .comment-bubble,
html[data-theme="dark"] .social-post,
html[data-theme="dark"] .source-card,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .detail-card{
  background:var(--card)!important;
  border-color:var(--border)!important;
  color:var(--fg);
}
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:#17191D!important;
  color:var(--fg)!important;
  border-color:var(--border-input)!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#707681!important}
html[data-theme="dark"] input[type="file"]{color:var(--muted-dark)}
html[data-theme="dark"] input[type="file"]::file-selector-button{
  background:#25282D;
  color:var(--fg);
  border:1px solid var(--border-input);
  border-radius:8px;
}
html[data-theme="dark"] .label,
html[data-theme="dark"] .settings-section-title strong,
html[data-theme="dark"] .social-post-head strong,
html[data-theme="dark"] .comment-bubble strong,
html[data-theme="dark"] .profile-history-row .grow strong,
html[data-theme="dark"] .seller-function-card strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong{color:var(--fg)}
html[data-theme="dark"] p,
html[data-theme="dark"] .body,
html[data-theme="dark"] .description{color:var(--body)}
html[data-theme="dark"] small,
html[data-theme="dark"] .muted{color:var(--muted)!important}

/* Botões */
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .btn.dark{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .btn.light{
  background:#24272C!important;
  border-color:var(--border-input)!important;
  color:var(--fg)!important;
}
html[data-theme="dark"] .btn.accent{color:#fff}
html[data-theme="dark"] .order-inline-action{
  background:#202329;
  border-color:var(--border-input);
  color:#D7DAE0;
}

/* Configurações */
html[data-theme="dark"] .settings-route-overlay{
  background:linear-gradient(to bottom,rgba(0,0,0,.36),rgba(0,0,0,.66));
}
html[data-theme="dark"] .settings-modal-source,
html[data-theme="dark"] .profile-settings-sheet{
  background:#121417!important;
  box-shadow:0 -16px 42px rgba(0,0,0,.55);
}
html[data-theme="dark"] .settings-modal-head{
  background:#121417!important;
  border-color:var(--border);
}
html[data-theme="dark"] .settings-page-back,
html[data-theme="dark"] .settings-modal-close,
html[data-theme="dark"] .settings-top-icon{
  background:#23262B!important;
  color:var(--fg)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .settings-menu-list a{
  background:var(--card)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .settings-menu-list a>.ico{color:#6F7580}
html[data-theme="dark"] .settings-menu-icon{
  background:color-mix(in srgb,var(--setting-color) 18%,#17191D)!important;
}
html[data-theme="dark"] .settings-check{color:var(--body)}
html[data-theme="dark"] .settings-delete button{color:#FF725D}

/* Chat */
html[data-theme="dark"] .chat-compose{
  background:rgba(17,18,20,.96)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .chat-compose .input,
html[data-theme="dark"] .comment-input{
  background:#202329!important;
  border-color:var(--border-input)!important;
}
html[data-theme="dark"] .bubble.theirs{background:#24272C!important;color:var(--fg)!important}
html[data-theme="dark"] .bubble.mine{background:#F1F1EE!important;color:#111!important}
html[data-theme="dark"] .chat-suggestions{
  background:linear-gradient(180deg,rgba(17,18,20,.80),#111214 48%)!important;
  border-color:var(--border)!important;
}
html[data-theme="dark"] .chat-suggestion-chip{
  background:#25282D!important;
  border-color:var(--border-input)!important;
  color:var(--fg)!important;
}

/* Feed / social / Stories */
html[data-theme="dark"] .fidelity-feed-post,
html[data-theme="dark"] .social-post{background:var(--card)!important}
html[data-theme="dark"] .feed-filter-pills,
html[data-theme="dark"] .source-pills{border-color:var(--border)}
html[data-theme="dark"] .feed-filter-pills a,
html[data-theme="dark"] .source-pills a{
  background:#22252A!important;
  color:#B7BBC3!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .feed-filter-pills a.active,
html[data-theme="dark"] .source-pills a.active{
  background:#F4F4F1!important;
  color:#111!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .comments-box,
html[data-theme="dark"] .social-comments{background:var(--bg)}
html[data-theme="dark"] .reply-note{
  background:#2C1715;
  border-color:#5C2C25;
}
html[data-theme="dark"] .social-viewer{background:#050506}
html[data-theme="dark"] .modal-sheet-card,
html[data-theme="dark"] .fidelity-new-post-card{
  background:#17191D!important;
  color:var(--fg);
}

/* Produto / marketplace */
html[data-theme="dark"] .visual-choice span,
html[data-theme="dark"] .preference-chip span{
  background:#202329!important;
  color:#B6BAC2!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .visual-choice input:checked+span,
html[data-theme="dark"] .preference-chip input:checked+span{
  background:#F4F4F1!important;
  color:#111!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .return-step i{
  background:#202329;
  border-color:#34383F;
  color:#A1A6AE;
}
html[data-theme="dark"] .return-step.done{color:var(--fg)}
html[data-theme="dark"] .return-step.done i{
  background:#F4F4F1;
  border-color:#F4F4F1;
  color:#111;
}
html[data-theme="dark"] .km-range::-webkit-slider-thumb{
  background:#F4F4F1;
  border-color:#F4F4F1;
}
html[data-theme="dark"] .km-range::-moz-range-thumb{
  background:#F4F4F1;
  border-color:#F4F4F1;
}

/* Estados coloridos */
html[data-theme="dark"] .info-box{background:var(--info-bg)!important;border-color:var(--info-border)!important;color:var(--info)!important}
html[data-theme="dark"] .warning-box{background:var(--warning-bg)!important;border-color:var(--warning-border)!important;color:var(--warning)!important}
html[data-theme="dark"] .toast.success{background:var(--success-bg);border-color:var(--success-border);color:var(--success)}
html[data-theme="dark"] .toast.danger{background:var(--danger-bg);border-color:var(--danger-border);color:var(--danger)}
html[data-theme="dark"] .status.success,
html[data-theme="dark"] .badge.success{background:var(--success-bg)!important;color:var(--success)!important}
html[data-theme="dark"] .status.warning,
html[data-theme="dark"] .badge.warning{background:var(--warning-bg)!important;color:var(--warning)!important}

/* Uploads e KYC */
html[data-theme="dark"] .upload-box,
html[data-theme="dark"] .kyc-camera-button{
  background:#181A1E!important;
  border-color:#34383F!important;
  color:var(--fg)!important;
}
html[data-theme="dark"] .upload-box small,
html[data-theme="dark"] .kyc-camera-button small{color:var(--muted)!important}
html[data-theme="dark"] .kyc-camera-error{
  background:#2C1715;
  border-color:#5C2C25;
  color:#FF8A77;
}
html[data-theme="dark"] .verified-approved-box{background:#10261E!important;border-color:#1D4D39!important}

/* Avatar/fotos: nunca aplicar filtro ou blend no dark mode */
html[data-theme="dark"] img,
html[data-theme="dark"] video{
  filter:none!important;
  mix-blend-mode:normal!important;
}
html[data-theme="dark"] .profile-source-avatar.has-image,
html[data-theme="dark"] .profile-photo-preview{
  background:#fff!important;
}

/* Elementos que possuíam branco/pretos hardcoded e poderiam desaparecer */
html[data-theme="dark"] .seller-quick-actions a,
html[data-theme="dark"] .buyer-profile-quick a,
html[data-theme="dark"] .profile-view-dashboard,
html[data-theme="dark"] .order-inline-action,
html[data-theme="dark"] .chat-product-context,
html[data-theme="dark"] .profile-history-row{
  color:var(--body)!important;
}
html[data-theme="dark"] .seller-recent-row .grow h3,
html[data-theme="dark"] .chat-product-context strong,
html[data-theme="dark"] .product-card strong,
html[data-theme="dark"] .order-card strong{color:var(--fg)!important}
html[data-theme="dark"] .order-status-analysis .bar{background:#292C31}
html[data-theme="dark"] hr{border-color:var(--border)}

/* Aparência */
.appearance-settings{padding-bottom:14px}
.theme-choice-grid{display:grid;gap:9px;margin-top:12px}
.theme-choice-card{
  position:relative;
  width:100%;
  min-height:78px;
  padding:10px 42px 10px 11px;
  display:grid;
  grid-template-columns:72px 1fr;
  grid-template-rows:auto auto;
  column-gap:11px;
  text-align:left;
  border:1px solid var(--border-input);
  border-radius:16px;
  background:var(--card);
  color:var(--fg);
  cursor:pointer;
}
.theme-choice-card>.theme-preview{grid-row:1/3}
.theme-choice-card>strong{align-self:end;font-size:12px}
.theme-choice-card>small{align-self:start;margin-top:3px;font-size:9px;color:var(--muted)}
.theme-choice-check{
  position:absolute;
  right:13px;
  top:50%;
  width:22px;height:22px;
  margin-top:-11px;
  display:none;
  place-items:center;
  border-radius:999px;
  background:var(--fg);
  color:var(--bg);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.theme-choice-card.active{border-color:var(--fg);box-shadow:0 0 0 1px var(--fg) inset}
.theme-choice-card.active .theme-choice-check{display:grid}
.theme-preview{
  width:72px;height:52px;
  position:relative;
  overflow:hidden;
  display:block;
  border-radius:11px;
  border:1px solid #D8D8D5;
}
.theme-preview i{position:absolute;left:0;right:0;top:0;height:13px}
.theme-preview b{position:absolute;left:7px;right:7px;top:19px;height:8px;border-radius:4px}
.theme-preview em{position:absolute;left:7px;right:22px;top:33px;height:6px;border-radius:3px}
.theme-preview-light{background:#F5F1EE}.theme-preview-light i{background:#fff}.theme-preview-light b{background:#111}.theme-preview-light em{background:#D8D5D0}
.theme-preview-dark{background:#111214;border-color:#34383F}.theme-preview-dark i{background:#1D1F23}.theme-preview-dark b{background:#F4F4F1}.theme-preview-dark em{background:#51565F}
.theme-preview-auto{background:linear-gradient(90deg,#F5F1EE 0 50%,#111214 50%)}.theme-preview-auto i{background:linear-gradient(90deg,#fff 0 50%,#1D1F23 50%)}.theme-preview-auto b{background:linear-gradient(90deg,#111 0 50%,#F4F4F1 50%)}.theme-preview-auto em{background:#7D828B}
.appearance-note{
  margin-top:12px;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--secondary);
}
.appearance-note strong{display:block;font-size:10px}
.appearance-note span{display:block;margin-top:3px;color:var(--muted-dark);font-size:9px;line-height:1.45}
html[data-theme="dark"] .theme-choice-card{background:#191B1F;border-color:#34383F}
html[data-theme="dark"] .theme-choice-card.active{border-color:#F4F4F1;box-shadow:0 0 0 1px #F4F4F1 inset}
html[data-theme="dark"] .theme-choice-check{background:#F4F4F1;color:#111}
html[data-theme="dark"] .appearance-note{background:#202329;border-color:#34383F}

/* Scrollbars discretas no escuro */
html[data-theme="dark"] *{scrollbar-color:#464B54 #17191D}


/* HF27 — Aparência no menu real + atalho global Lua/Sol */
.header-action.theme-quick-toggle{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;
  font:inherit;
  flex:none;
}
.theme-quick-glyph{
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  line-height:1;
}
.theme-quick-glyph::before{
  content:"☾";
  display:block;
  font-size:19px;
  font-weight:500;
  line-height:1;
  transform:translateY(-1px);
}
html[data-theme="dark"] .theme-quick-glyph::before{
  content:"☀";
  font-size:17px;
}
html[data-theme="dark"] .header-action.theme-quick-toggle{
  color:#F7F7F5;
}
.profile-settings-list a[href*="panel=appearance"] > span{
  background:rgba(139,92,246,.11);
  color:#8B5CF6;
}
html[data-theme="dark"] .profile-settings-list a[href*="panel=appearance"] > span{
  background:rgba(167,139,250,.15);
  color:#B9A6FF;
}
@media (max-width:390px){
  .header-action{width:29px;height:29px}
  .header-action .ico{width:17px;height:17px}
  .theme-quick-glyph::before{font-size:18px}
}


/* =========================================================
   HF28 — Refinamento visual do modo escuro
   Home / Chat / Minha Loja / Produto
   ========================================================= */

/* ---------- HOME ---------- */
html[data-theme="dark"] .home-search-row{
  background:var(--bg);
}
html[data-theme="dark"] .search-field{
  background:#1B1E22!important;
  border-color:#34383F!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .search-field .ico{
  color:#A9AEB7!important;
}
html[data-theme="dark"] .search-input{
  background:transparent!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .search-input::placeholder{
  color:#777D86!important;
}
html[data-theme="dark"] .filter-circle{
  background:#202329!important;
  border-color:#34383F!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .filter-circle:hover{
  background:#292D33!important;
}
html[data-theme="dark"] .home-directory-tabs{
  background:#202329!important;
}
html[data-theme="dark"] .home-directory-tabs a{
  color:#A7ACB5!important;
}
html[data-theme="dark"] .home-directory-tabs a.active{
  background:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .home-see-more{
  background:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .profile-mini>strong{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .profile-mini>small{
  color:#8D929B!important;
}

/* ---------- AVATARES SEM FOTO ---------- */
html[data-theme="dark"] .avatar{
  background:#2A2E34!important;
  color:#F7F7F5!important;
  border:1px solid #3A3F47;
}
html[data-theme="dark"] .avatar img{
  border:0;
}
html[data-theme="dark"] .profile-avatar{
  background:#2A2E34!important;
  color:#F7F7F5!important;
  border-color:#F0F0ED!important;
}

/* ---------- CHAT / LISTA DE CONVERSAS ---------- */
html[data-theme="dark"] .chat-list{
  background:#181A1E!important;
  border-color:#2C3036!important;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .chat-row{
  background:#181A1E!important;
  border-color:#2C3036!important;
  color:#F3F3F1!important;
}
html[data-theme="dark"] .chat-row:hover,
html[data-theme="dark"] .chat-row:focus-visible{
  background:#202329!important;
}
html[data-theme="dark"] .chat-row h3{
  color:#F3F3F1!important;
}
html[data-theme="dark"] .chat-row p{
  color:#9399A2!important;
}
html[data-theme="dark"] .chat-row .mini-count{
  background:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .chat-list-source .source-local-head h2{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .chat-list-source .source-local-head p{
  color:#9BA0A9!important;
}

/* ---------- MINHA LOJA / PAINEL GERENCIAL ---------- */
html[data-theme="dark"] .source-revenue-card{
  background:linear-gradient(145deg,#22252A,#181A1E)!important;
  border:1px solid #30343A;
  color:#F7F7F5!important;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
html[data-theme="dark"] .source-revenue-card small{
  color:#8F959E!important;
}
html[data-theme="dark"] .source-revenue-card strong{
  color:#F7F7F5!important;
}
html[data-theme="dark"] .source-revenue-card p{
  color:#A9AEB7!important;
}
html[data-theme="dark"] .source-revenue-card span{
  color:#A9AEB7!important;
}
html[data-theme="dark"] .seller-function-card{
  background:#1B1E22!important;
  border-color:#30343A!important;
}
html[data-theme="dark"] .seller-function-card strong{
  color:#F7F7F5!important;
}
html[data-theme="dark"] .seller-function-card span,
html[data-theme="dark"] .seller-function-card .kpi-top{
  color:#989EA8!important;
}
html[data-theme="dark"] .seller-primary-actions a{
  background:#202329!important;
  color:#D5D9DE!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .seller-primary-actions a.primary{
  background:#F4F4F1!important;
  color:#111!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .seller-secondary-actions a{
  color:#A2A7B0!important;
}
html[data-theme="dark"] .source-fin-card{
  background:#1B1E22!important;
  border-color:#30343A!important;
}
html[data-theme="dark"] .source-fin-card>strong{
  color:#F7F7F5!important;
}
html[data-theme="dark"] .source-fin-card .fin-label,
html[data-theme="dark"] .source-fin-card .fin-meta{
  color:#9BA0A9!important;
}
html[data-theme="dark"] .seller-dashboard-filter{
  background:#1B1E22!important;
  border-color:#30343A!important;
}
html[data-theme="dark"] .seller-dashboard-filter summary,
html[data-theme="dark"] .seller-dashboard-filter form{
  color:#D7DAE0!important;
}
html[data-theme="dark"] .seller-filter-popover-card{
  background:#1B1E22!important;
  border-color:#30343A!important;
  box-shadow:0 16px 40px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] .seller-filter-popover-card section+section{
  border-color:#30343A!important;
}
html[data-theme="dark"] .seller-filter-popover-card input[type="date"]{
  background:#202329!important;
  border-color:#34383F!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .seller-filter-chips label>span{
  background:#202329!important;
  border-color:#34383F!important;
  color:#AEB3BC!important;
}
html[data-theme="dark"] .seller-filter-chips input:checked+span{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
}

/* ---------- DETALHE DO PRODUTO ---------- */
html[data-theme="dark"] .item-source-body{
  background:var(--bg)!important;
}
html[data-theme="dark"] .info-pill{
  background:#1B1E22!important;
  border-color:#30343A!important;
  color:#AEB3BC!important;
}
html[data-theme="dark"] .info-pill .ico{
  color:#8E949D!important;
}
html[data-theme="dark"] .info-pill b{
  color:#FF7965!important;
}
html[data-theme="dark"] .seller-line{
  background:#1B1E22!important;
  border-color:#30343A!important;
}
html[data-theme="dark"] .seller-main h3{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .seller-chat{
  background:#292D33!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .source-cta-card{
  background:rgba(24,26,30,.96)!important;
  border:1px solid #30343A!important;
  box-shadow:0 -10px 30px rgba(0,0,0,.34)!important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
html[data-theme="dark"] .source-cta-card>p{
  color:#9BA0A9!important;
}
html[data-theme="dark"] .source-cta-card .btn.primary{
  background:#F4F4F1!important;
  color:#111!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .add-bag-link{
  color:#D9DCE1!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .add-bag-link .ico{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .freight-link{
  color:#A5AAB3!important;
}
html[data-theme="dark"] .detail-round-btn{
  background:rgba(27,30,34,.92)!important;
  color:#F4F4F2!important;
  border-color:#3A3F47!important;
}
html[data-theme="dark"] .detail-favorite.active{
  background:#3A1D1A!important;
  border-color:#6A3028!important;
  color:#FF7965!important;
}
html[data-theme="dark"] .product-code{
  color:#777D86!important;
}
html[data-theme="dark"] .item-description{
  border-color:#2C3036!important;
}
html[data-theme="dark"] .item-description .description{
  color:#D1D4D9!important;
}
html[data-theme="dark"] .listen-link{
  color:#A9AEB7!important;
}
html[data-theme="dark"] .rental-availability{
  background:#1B1E22!important;
  border-color:#30343A!important;
}
html[data-theme="dark"] .measure-panel{
  background:#1B1E22!important;
  border-color:#30343A!important;
}

/* ---------- CHECKOUT / BLOCOS INFORMATIVOS QUE AINDA ERAM BRANCOS ---------- */
html[data-theme="dark"] .checkout-summary,
html[data-theme="dark"] .address-box,
html[data-theme="dark"] .payment-security,
html[data-theme="dark"] .pix-box{
  background:#1B1E22!important;
  border-color:#30343A!important;
  color:#D7DAE0!important;
}
html[data-theme="dark"] .payment-tabs{
  background:#202329!important;
}
html[data-theme="dark"] .payment-tab{
  color:#A5AAB3!important;
}
html[data-theme="dark"] .payment-tab.active{
  background:#F4F4F1!important;
  color:#111!important;
}

/* ---------- MODAIS ---------- */
html[data-theme="dark"] .modal-card{
  background:#191B1F!important;
  border-color:#30343A!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .modal-x{
  background:#292D33!important;
  color:#F4F4F2!important;
}

/* ---------- GARANTIA DE CONTRASTE EM LINKS / ÍCONES ---------- */
html[data-theme="dark"] a{
  text-decoration-color:currentColor;
}
html[data-theme="dark"] .source-local-head h2,
html[data-theme="dark"] .item-source-head h1{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .item-source-head .detail-sub{
  color:#A5AAB3!important;
}

/* Em telas pequenas, evitar sensação de blocos "lavados". */
@media (max-width:520px){
  html[data-theme="dark"] .source-revenue-card{
    box-shadow:0 8px 22px rgba(0,0,0,.20);
  }
  html[data-theme="dark"] .chat-row{
    min-height:64px;
  }
}


/* =========================================================
   HF29 — Dark Mode: Novo Produto
   Corrige superfícies claras remanescentes no cadastro.
   ========================================================= */
html[data-theme="dark"] .source-form-head{
  background:#15171A!important;
  border-color:#2C3036!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .source-form-head h2{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .source-back{
  background:#25282D!important;
  color:#F4F4F2!important;
  border:1px solid #34383F!important;
}
html[data-theme="dark"] .source-back .ico{
  color:#F4F4F2!important;
}

html[data-theme="dark"] .product-media-primary,
html[data-theme="dark"] .product-media-add{
  background:#1B1E22!important;
  border-color:#3A3F47!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .product-media-primary:hover,
html[data-theme="dark"] .product-media-add:not(:disabled):hover{
  background:#202329!important;
  border-color:#4A5059!important;
}
html[data-theme="dark"] .product-media-empty{
  color:#9AA0AA!important;
}
html[data-theme="dark"] .product-media-empty strong{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .product-media-empty small{
  color:#8F959E!important;
}
html[data-theme="dark"] .product-media-add strong{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .product-media-add small{
  color:#8F959E!important;
}
html[data-theme="dark"] .product-media-add svg,
html[data-theme="dark"] .product-media-empty svg{
  color:#AEB4BD!important;
  stroke:currentColor!important;
}

html[data-theme="dark"] .product-media-thumb{
  background:#1B1E22!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .product-media-thumb button{
  background:rgba(17,18,20,.88)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
}
html[data-theme="dark"] .media-primary-badge{
  background:rgba(244,244,241,.90)!important;
  color:#111!important;
}

/* Botões auxiliares do formulário, como "Preencher com IA" */
html[data-theme="dark"] .source-product-form .btn.light,
html[data-theme="dark"] .product-media-section .btn.light{
  background:#24272C!important;
  color:#F4F4F2!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .source-product-form .btn.light .ico,
html[data-theme="dark"] .product-media-section .btn.light .ico{
  color:#C5CAD2!important;
}

/* Divisões e títulos do formulário */
html[data-theme="dark"] .source-form-section{
  border-color:#2C3036!important;
}
html[data-theme="dark"] .source-form-title strong,
html[data-theme="dark"] .source-form-section h3,
html[data-theme="dark"] .source-form-title b{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .source-form-title span{
  color:#858B95!important;
}
html[data-theme="dark"] .product-form-section{
  border-color:#2C3036!important;
}

/* Evita flash branco nas áreas vazias do cadastro */
html[data-theme="dark"] .item-form-source,
html[data-theme="dark"] .source-product-form{
  background:var(--bg)!important;
}

/* Hotfix 31 — refino dark mode para página de Lojas / Wardrobes */
html[data-theme="dark"] .directory-source{
  background:var(--bg);
}
html[data-theme="dark"] .directory-head{
  background:#111214!important;
  border-bottom-color:var(--border)!important;
}
html[data-theme="dark"] .directory-title h1{
  color:var(--fg)!important;
}
html[data-theme="dark"] .directory-title>span{
  color:var(--muted)!important;
}
html[data-theme="dark"] .directory-search{
  background:#17191D!important;
  border-color:var(--border-input)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .directory-search>.ico,
html[data-theme="dark"] .directory-search a{
  color:var(--muted)!important;
}
html[data-theme="dark"] .directory-search input,
html[data-theme="dark"] .directory-search input::placeholder{
  color:var(--fg)!important;
}
html[data-theme="dark"] .directory-search input::placeholder{
  color:#707681!important;
}
html[data-theme="dark"] .directory-card{
  background:var(--card)!important;
  border-color:var(--border)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .directory-cover{
  background:#202329!important;
}
html[data-theme="dark"] .directory-cover-fallback{
  color:var(--muted)!important;
}
html[data-theme="dark"] .directory-cover>i{
  background:linear-gradient(to top,rgba(0,0,0,.58) 0%,rgba(0,0,0,0) 58%)!important;
}
html[data-theme="dark"] .directory-badge{
  background:rgba(255,255,255,.10)!important;
  color:var(--fg)!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
html[data-theme="dark"] .directory-avatar{
  background:#14161A!important;
  border-color:var(--card)!important;
  box-shadow:0 0 0 2px rgba(107,25,42,.18)!important;
}
html[data-theme="dark"] .directory-avatar.outlet-avatar{
  color:#FF8A77!important;
}
html[data-theme="dark"] .directory-info{
  background:transparent!important;
}
html[data-theme="dark"] .directory-info h3{
  color:var(--fg)!important;
}
html[data-theme="dark"] .directory-info p{
  color:var(--muted)!important;
}
html[data-theme="dark"] .directory-empty,
html[data-theme="dark"] .directory-empty .card,
html[data-theme="dark"] .directory-empty .source-card{
  background:var(--card)!important;
  border-color:var(--border)!important;
  color:var(--body)!important;
}

/* =========================================================
   HF33 — Reparo do Hotfix 32
   Restaura o CSS cumulativo do dark mode e corrige apenas
   o ícone de câmera/story no cabeçalho.
   ========================================================= */
html[data-theme="dark"] .story-header-action{
  color:var(--fg)!important;
}
html[data-theme="dark"] .story-header-action:active{
  background:rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] .story-header-plus{
  border-color:#111214!important;
  box-shadow:0 1px 4px rgba(0,0,0,.34)!important;
}

/* =========================================================
   HF35 — Dark mode refinado para Carrinho / Checkout / Pagamento
   Corrige cartões claros, modal de checkout e contraste geral.
   ========================================================= */
html[data-theme="dark"] .source-page.fidelity-cart,
html[data-theme="dark"] .source-page.fidelity-cart .source-local-head,
html[data-theme="dark"] .source-page.fidelity-cart .source-local-head h2,
html[data-theme="dark"] .source-page.fidelity-cart .source-local-head p{
  color:var(--fg)!important;
}
html[data-theme="dark"] .source-explore-pill{
  background:linear-gradient(135deg,#E85E3F 0%,#FF7A4D 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 10px 26px rgba(107,25,42,.28)!important;
}
html[data-theme="dark"] .fidelity-cart-group{
  background:var(--card)!important;
  border-color:var(--border)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
html[data-theme="dark"] .fidelity-cart-group>header{
  background:#17191D!important;
  border-bottom-color:#2B2F35!important;
}
html[data-theme="dark"] .fidelity-cart-group>header strong,
html[data-theme="dark"] .fidelity-cart-item h3,
html[data-theme="dark"] .fidelity-cart-item strong,
html[data-theme="dark"] .fidelity-cart-total-row>div strong{
  color:var(--fg)!important;
}
html[data-theme="dark"] .fidelity-cart-group>header small,
html[data-theme="dark"] .fidelity-cart-item p,
html[data-theme="dark"] .fidelity-cart-total-row>div small,
html[data-theme="dark"] .fidelity-shipping>small{
  color:var(--muted)!important;
}
html[data-theme="dark"] .fidelity-cart-item,
html[data-theme="dark"] .fidelity-shipping{
  border-bottom-color:#2B2F35!important;
}
html[data-theme="dark"] .fidelity-cart-thumb,
html[data-theme="dark"] .fidelity-order-thumb{
  background:#23262C!important;
  border:1px solid #30343A!important;
}
html[data-theme="dark"] .fidelity-cart-trash{
  background:#2C1715!important;
  color:#FF816E!important;
}
html[data-theme="dark"] .fidelity-shipping-options span{
  background:#1B1E22!important;
  border-color:#34383F!important;
  color:#AEB4BD!important;
}
html[data-theme="dark"] .fidelity-shipping-options input:checked+span{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .fidelity-shipping-options input:checked+span .ico,
html[data-theme="dark"] .fidelity-shipping-options input:checked+span b,
html[data-theme="dark"] .fidelity-shipping-options input:checked+span small{
  color:#111!important;
}
html[data-theme="dark"] .fidelity-cart-total-row{
  background:rgba(255,255,255,.01)!important;
}
html[data-theme="dark"] .fidelity-cart-total-row .btn,
html[data-theme="dark"] .fidelity-confirm-pay{
  background:#F4F4F1!important;
  color:#111!important;
  border:1px solid #F4F4F1!important;
}
html[data-theme="dark"] .fidelity-cart-total-row .btn:hover,
html[data-theme="dark"] .fidelity-confirm-pay:hover{
  filter:brightness(.97);
}

html[data-theme="dark"] .source-route-overlay{
  background:rgba(0,0,0,.72)!important;
}
html[data-theme="dark"] .source-route-sheet,
html[data-theme="dark"] .fidelity-checkout-sheet,
html[data-theme="dark"] .fidelity-payment-sheet{
  background:var(--card)!important;
  color:var(--fg)!important;
  border-top:1px solid rgba(255,255,255,.06);
  box-shadow:0 -18px 46px rgba(0,0,0,.45)!important;
}
html[data-theme="dark"] .source-route-sheet .fidelity-modal-head{
  border-bottom-color:#2B2F35!important;
  background:linear-gradient(180deg,#191B1F 0%,#17191D 100%)!important;
}
html[data-theme="dark"] .fidelity-modal-head h3,
html[data-theme="dark"] .fidelity-modal-head p{
  color:var(--fg)!important;
}
html[data-theme="dark"] .fidelity-modal-head p{
  color:var(--muted)!important;
}
html[data-theme="dark"] .fidelity-modal-head button,
html[data-theme="dark"] .fidelity-modal-head>a{
  background:#25292F!important;
  color:#F4F4F1!important;
  border:1px solid #333840!important;
}
html[data-theme="dark"] .fidelity-checkout-body{
  background:var(--card)!important;
}
html[data-theme="dark"] .fidelity-order-summary{
  background:#17191D!important;
  border-color:#2D3138!important;
}
html[data-theme="dark"] .fidelity-order-item{
  border-bottom-color:#2B2F35!important;
}
html[data-theme="dark"] .fidelity-order-item strong,
html[data-theme="dark"] .fidelity-order-item>b,
html[data-theme="dark"] .fidelity-price-breakdown>.total{
  color:var(--fg)!important;
}
html[data-theme="dark"] .fidelity-order-item small,
html[data-theme="dark"] .fidelity-price-breakdown>div,
html[data-theme="dark"] .fidelity-checkout-section>small{
  color:var(--muted)!important;
}
html[data-theme="dark"] .fidelity-price-breakdown>.total{
  border-top-color:#2B2F35!important;
}
html[data-theme="dark"] .fidelity-payment-tabs .payment-tab{
  background:#1B1E22!important;
  border-color:#34383F!important;
  color:#AEB4BD!important;
}
html[data-theme="dark"] .fidelity-payment-tabs .payment-tab.active{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
}
html[data-theme="dark"] .fidelity-payment-tabs .payment-tab.active .ico,
html[data-theme="dark"] .fidelity-payment-tabs .payment-tab.active span{
  color:#111!important;
}
html[data-theme="dark"] .fidelity-pix-panel{
  background:#1B1E22!important;
  border-color:#34383F!important;
}
html[data-theme="dark"] .fidelity-pix-panel>.ico{
  color:#F4F4F1!important;
}
html[data-theme="dark"] .fidelity-pix-panel p{
  color:#D6D9DF!important;
}
html[data-theme="dark"] .fidelity-pix-panel span{
  color:#98A0AA!important;
}
html[data-theme="dark"] .fidelity-copy-pix{
  background:#24282E!important;
  border-color:#353A42!important;
  color:#F4F4F1!important;
}
html[data-theme="dark"] .fidelity-copy-pix.copied{
  background:#123224!important;
  border-color:#1F5A3F!important;
  color:#7FE3AF!important;
}
html[data-theme="dark"] .fidelity-security-note{
  background:#10261E!important;
  border:1px solid #1D4D39!important;
  color:#7FE3AF!important;
}
html[data-theme="dark"] .address-box{
  background:#1B1E22!important;
  border:1px solid #30343A!important;
  color:#D7DAE0!important;
}
html[data-theme="dark"] .address-box strong{
  color:#F4F4F1!important;
}
html[data-theme="dark"] .fidelity-checkout-section .btn.light{
  background:#23272D!important;
  border-color:#34383F!important;
  color:#F4F4F1!important;
}


/* =========================================================
   HF39 — Busca inteligente / autocomplete da Home
   ========================================================= */
.smart-search-form{position:relative}
.smart-search-wrap{position:relative;flex:1;min-width:0}
.smart-search-wrap .search-field{width:100%}
.search-suggest-panel{
  position:absolute;
  z-index:48;
  top:calc(100% + 7px);
  left:0;
  right:0;
  overflow:hidden;
  border:1px solid #E8E4DE;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 42px rgba(25,20,15,.14);
}
.search-suggest-panel[hidden]{display:none!important}
.search-suggest-row{
  min-height:52px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#111;
  text-decoration:none;
  border-bottom:1px solid #F0E9E5;
  background:#fff;
}
.search-suggest-row:last-child{border-bottom:0}
.search-suggest-row:hover,.search-suggest-row.active{background:#F5F1EE}
.search-suggest-main{display:flex;flex-direction:column;min-width:0;gap:2px}
.search-suggest-main strong{font-size:12px;line-height:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggest-main small{font-size:9px;line-height:13px;color:#96918B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggest-arrow{font-size:22px;line-height:1;color:#B8B2AC;flex:none}
html[data-theme="dark"] .search-suggest-panel{
  background:#191B1F!important;
  border-color:#30343A!important;
  box-shadow:0 18px 44px rgba(0,0,0,.42)!important;
}
html[data-theme="dark"] .search-suggest-row{
  background:#191B1F!important;
  border-bottom-color:#292D33!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .search-suggest-row:hover,
html[data-theme="dark"] .search-suggest-row.active{background:#23262C!important}
html[data-theme="dark"] .search-suggest-main strong{color:#F4F4F2!important}
html[data-theme="dark"] .search-suggest-main small{color:#969CA5!important}
html[data-theme="dark"] .search-suggest-arrow{color:#707782!important}

/* =========================================================
   HF41 — Dark Mode: FilterSheet / Filtros da Home e Explorar
   Apenas camada visual. Nenhuma regra de filtro é alterada.
   ========================================================= */
html[data-theme="dark"] .filter-sheet{
  background:rgba(0,0,0,.74)!important;
}
html[data-theme="dark"] .filter-card{
  background:#17191D!important;
  color:#F4F4F2!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  box-shadow:0 -18px 48px rgba(0,0,0,.48)!important;
  scrollbar-color:#4B515B transparent!important;
}
html[data-theme="dark"] .filter-card::-webkit-scrollbar-thumb{
  background:#4B515B!important;
}
html[data-theme="dark"] .filter-head{
  border-bottom:1px solid #292D33;
  padding-bottom:12px;
}
html[data-theme="dark"] .filter-title,
html[data-theme="dark"] .filter-title h2,
html[data-theme="dark"] .filter-head h2{
  color:#F7F7F5!important;
}
html[data-theme="dark"] .filter-title>.ico{
  color:#D9DCE2!important;
}
html[data-theme="dark"] .filter-head .icon-btn{
  background:#24272D!important;
  border:1px solid #343941!important;
  color:#F7F7F5!important;
}
html[data-theme="dark"] .filter-head .icon-btn .ico{
  color:inherit!important;
}
html[data-theme="dark"] .filter-section{
  border-color:#292D33!important;
}
html[data-theme="dark"] .filter-section>strong{
  color:#8F969F!important;
}

/* Chips */
html[data-theme="dark"] .filter-card .chip span{
  background:#202329!important;
  border-color:#343941!important;
  color:#B9BEC7!important;
}
html[data-theme="dark"] .filter-card .chip:hover span{
  background:#272B31!important;
  border-color:#424851!important;
}
html[data-theme="dark"] .filter-card .chip input:checked+span{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset!important;
}

/* Inputs, selects e busca por cidade */
html[data-theme="dark"] .filter-card .input,
html[data-theme="dark"] .filter-card .select,
html[data-theme="dark"] .filter-card input[type="number"],
html[data-theme="dark"] .filter-search-city .input,
html[data-theme="dark"] .distance-filter-section .filter-search-city .input{
  background:#202329!important;
  border-color:#343941!important;
  color:#F4F4F2!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .filter-card .input::placeholder,
html[data-theme="dark"] .filter-card input::placeholder{
  color:#737A84!important;
}
html[data-theme="dark"] .filter-card select option{
  background:#202329!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .filter-search-city>.ico,
html[data-theme="dark"] .distance-filter-section .filter-search-city>.ico{
  color:#969DA7!important;
}

/* Escolhas visuais: cores, tamanhos e calçados */
html[data-theme="dark"] .filter-card .visual-choice span{
  background:#202329!important;
  border-color:#343941!important;
  color:#B9BEC7!important;
}
html[data-theme="dark"] .filter-card .visual-choice:hover span{
  background:#272B31!important;
  border-color:#424851!important;
}
html[data-theme="dark"] .filter-card .visual-choice input:checked+span{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .filter-card .color-choice i{
  border-color:rgba(255,255,255,.20)!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.18) inset!important;
}
html[data-theme="dark"] .filter-card .color-choice input:checked+span i{
  border-color:rgba(17,17,17,.26)!important;
}

/* Raio de busca */
html[data-theme="dark"] .filter-card .km-filter-head span{
  color:#8F969F!important;
}
html[data-theme="dark"] .filter-card .km-filter-head b{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .filter-card .km-range::-webkit-slider-runnable-track{
  background:linear-gradient(to right,#F4F4F1 0 var(--km-pct),#343941 var(--km-pct) 100%)!important;
}
html[data-theme="dark"] .filter-card .km-range::-webkit-slider-thumb{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  box-shadow:0 2px 8px rgba(0,0,0,.36)!important;
}
html[data-theme="dark"] .filter-card .km-range::-moz-range-track{
  background:#343941!important;
}
html[data-theme="dark"] .filter-card .km-range::-moz-range-progress{
  background:#F4F4F1!important;
}
html[data-theme="dark"] .filter-card .km-range::-moz-range-thumb{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .filter-card .km-marks button{
  color:#6F7680!important;
}
html[data-theme="dark"] .filter-card .km-marks button:active{
  color:#F4F4F2!important;
}
html[data-theme="dark"] .filter-card .distance-status{
  color:#9AA1AB!important;
}

/* Rodapé de ações */
html[data-theme="dark"] .filter-actions{
  position:sticky;
  bottom:calc(-18px - env(safe-area-inset-bottom));
  z-index:3;
  margin:6px -16px calc(-18px - env(safe-area-inset-bottom));
  padding:12px 16px calc(14px + env(safe-area-inset-bottom));
  background:rgba(23,25,29,.96)!important;
  border-top:1px solid #292D33;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
html[data-theme="dark"] .filter-actions .btn.light{
  background:#24272D!important;
  border-color:#343941!important;
  color:#F4F4F2!important;
}
html[data-theme="dark"] .filter-actions .btn.primary{
  background:#F4F4F1!important;
  border-color:#F4F4F1!important;
  color:#111!important;
}


/* =========================================================
   HF43 — Favoritos Inteligentes
   ========================================================= */
.favorite-alert-overlay{
  position:fixed;inset:0;z-index:120;
  display:flex;align-items:flex-end;justify-content:center;
  background:rgba(0,0,0,.46);
  padding-top:36px;
}
.favorite-alert-sheet{
  position:relative;
  width:min(480px,100%);
  padding:20px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  background:#fff;
  box-shadow:0 -18px 48px rgba(0,0,0,.22);
}
.favorite-alert-close{
  position:absolute;right:14px;top:14px;
  width:32px;height:32px;border:0;border-radius:999px;
  background:#F0E9E5;color:#777;font-size:20px;line-height:1;cursor:pointer;
}
.favorite-alert-icon{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:#F5F1EE;color:#111;margin-bottom:12px;
}
.favorite-alert-sheet h3{margin:0;font-size:16px;color:#111}
.favorite-alert-sheet>p{margin:4px 38px 14px 0;font-size:10px;color:#8A8A8A}
.favorite-alert-option{
  display:block;margin:9px 0;cursor:pointer;
}
.favorite-alert-option>input{position:absolute;opacity:0;pointer-events:none}
.favorite-alert-option>span{
  position:relative;
  display:grid;grid-template-columns:28px 1fr;
  grid-template-rows:auto auto;column-gap:10px;
  padding:12px 38px 12px 12px;
  border:1px solid #E8E4DE;border-radius:16px;background:#FAF9F7;
}
.favorite-alert-option>span>.ico{grid-row:1/3;align-self:center;color:#777}
.favorite-alert-option b{font-size:11px;color:#111}
.favorite-alert-option small{font-size:9px;line-height:1.4;color:#999;margin-top:2px}
.favorite-alert-option>span::after{
  content:"";position:absolute;right:12px;top:50%;width:28px;height:17px;
  margin-top:-8.5px;border-radius:999px;background:#D7D4CF;
  transition:.18s ease;
}
.favorite-alert-option>span::before{
  content:"";position:absolute;z-index:1;right:24px;top:50%;
  width:13px;height:13px;margin-top:-6.5px;border-radius:50%;
  background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:.18s ease;
}
.favorite-alert-option>input:checked+span{
  border-color:#111;background:#F5F1EE;
}
.favorite-alert-option>input:checked+span::after{background:#111}
.favorite-alert-option>input:checked+span::before{transform:translateX(11px)}
.favorite-alert-later{
  width:100%;border:0;background:transparent;color:#888;
  padding:11px 8px 0;font:600 10px/1.2 inherit;cursor:pointer;
}

.favorite-watch-manager{
  margin:0 0 18px;
  border:1px solid var(--border);border-radius:18px;
  background:var(--card);overflow:hidden;
}
.favorite-watch-head{padding:12px 14px;border-bottom:1px solid var(--border)}
.favorite-watch-head>div{display:flex;align-items:center;gap:9px}
.favorite-watch-head span{display:flex;flex-direction:column;gap:2px}
.favorite-watch-head strong{font-size:11px}
.favorite-watch-head small{font-size:8px;color:var(--muted)}
.favorite-watch-list{display:flex;flex-direction:column}
.favorite-watch-row{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}
.favorite-watch-row:last-child{border-bottom:0}
.favorite-watch-product{
  display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;
}
.favorite-watch-product img{
  width:42px;height:42px;border-radius:11px;object-fit:cover;background:#F0E9E5;
}
.favorite-watch-product>span{min-width:0;display:flex;flex-direction:column;gap:3px}
.favorite-watch-product strong{
  display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;
}
.favorite-watch-product small{font-size:8px;font-weight:700}
.favorite-watch-product small.available{color:#159466}
.favorite-watch-product small.unavailable{color:#C9781A}
.favorite-watch-toggles{
  margin-top:9px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.favorite-watch-toggles label{cursor:pointer}
.favorite-watch-toggles label>input{position:absolute;opacity:0;pointer-events:none}
.favorite-watch-toggles label>span{
  display:flex;align-items:center;gap:5px;
  min-height:30px;padding:6px 9px;
  border:1px solid #E8E4DE;border-radius:999px;
  background:#F5F1EE;color:#8D8D8D;font-size:8px;font-weight:650;
}
.favorite-watch-toggles label>input:checked+span{
  background:#111;border-color:#111;color:#fff;
}
.favorite-watch-toggles button{
  margin-left:auto;min-height:30px;padding:6px 11px;
  border:1px solid #111;border-radius:999px;background:#fff;
  color:#111;font:700 8px/1 inherit;cursor:pointer;
}

/* Dark */
html[data-theme="dark"] .favorite-alert-overlay{background:rgba(0,0,0,.72)}
html[data-theme="dark"] .favorite-alert-sheet{
  background:#191B1F;color:var(--fg);
  box-shadow:0 -18px 48px rgba(0,0,0,.48);
}
html[data-theme="dark"] .favorite-alert-close{background:#272A30;color:#F4F4F1}
html[data-theme="dark"] .favorite-alert-icon{background:#25282D;color:#F4F4F1}
html[data-theme="dark"] .favorite-alert-sheet h3{color:#F4F4F1}
html[data-theme="dark"] .favorite-alert-sheet>p{color:#969BA4}
html[data-theme="dark"] .favorite-alert-option>span{
  background:#202329;border-color:#34383F;
}
html[data-theme="dark"] .favorite-alert-option b{color:#F4F4F1}
html[data-theme="dark"] .favorite-alert-option small{color:#969BA4}
html[data-theme="dark"] .favorite-alert-option>span>.ico{color:#AEB4BD}
html[data-theme="dark"] .favorite-alert-option>input:checked+span{
  background:#25292F;border-color:#F4F4F1;
}
html[data-theme="dark"] .favorite-alert-option>input:checked+span::after{background:#F4F4F1}
html[data-theme="dark"] .favorite-alert-option>input:checked+span::before{background:#111}
html[data-theme="dark"] .favorite-alert-later{color:#9BA0A9}
html[data-theme="dark"] .favorite-watch-manager{
  background:#191B1F;border-color:#30343A;
}
html[data-theme="dark"] .favorite-watch-head,
html[data-theme="dark"] .favorite-watch-row{border-color:#30343A}
html[data-theme="dark"] .favorite-watch-toggles label>span{
  background:#202329;border-color:#34383F;color:#AEB4BD;
}
html[data-theme="dark"] .favorite-watch-toggles label>input:checked+span{
  background:#F4F4F1;border-color:#F4F4F1;color:#111;
}
html[data-theme="dark"] .favorite-watch-toggles button{
  background:#25282D;border-color:#3A3F47;color:#F4F4F1;
}


/* =========================================================
   HF44 — Capa pelo produto mais recente + avatar centralizado
   ========================================================= */

/* O avatar deve ficar centralizado na borda inferior da capa,
   independentemente de tema claro/escuro e de overrides antigos. */
.profile-mini .profile-cover > .profile-avatar{
  left:50%!important;
  right:auto!important;
  bottom:-20px!important;
  transform:translateX(-50%)!important;
  width:48px!important;
  height:48px!important;
  border-width:3px!important;
}

/* Reserva espaço real para o avatar antes do nome do perfil. */
.profile-mini>strong{
  margin-top:28px!important;
}

/* Mantém o anel de Story centralizado e coerente. */
.profile-mini.has-story .profile-avatar{
  box-shadow:0 0 0 3px var(--card),0 0 0 5px #6B192A!important;
}

/* Dark mode: apenas compensa borda/fundo, sem alterar posição. */
html[data-theme="dark"] .profile-mini .profile-cover > .profile-avatar{
  background:#202329!important;
  border-color:#191B1F!important;
  color:#F7F7F5!important;
}
html[data-theme="dark"] .profile-mini.has-story .profile-avatar{
  box-shadow:0 0 0 3px #191B1F,0 0 0 5px #6B192A!important;
}

/* A listagem completa de Minha Loja também mantém o avatar central. */
.directory-card .directory-cover > .directory-avatar{
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
}


/* =========================================================
   HF45 — Confirmação pós-pedido
   ========================================================= */
.source-success-overlay{
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
  background:rgba(17,17,17,.46)!important;
}
.source-success-card{
  width:min(360px,100%)!important;
  padding:30px 24px 24px!important;
  border-radius:24px!important;
  background:#fff!important;
  border:1px solid rgba(17,17,17,.04);
  box-shadow:0 22px 60px rgba(0,0,0,.22);
}
.source-success-icon{
  width:58px!important;
  height:58px!important;
  margin:0 auto 16px!important;
  border-radius:999px!important;
  background:#F5F1EE!important;
  color:#111!important;
  font-size:27px!important;
}
.source-success-card h2{
  margin:0!important;
  color:#111!important;
  font-size:19px!important;
  font-weight:700!important;
}
.source-success-card p{
  max-width:285px;
  margin:8px auto 20px!important;
  color:#858585!important;
  font-size:11px!important;
  line-height:1.55!important;
}
.source-success-card .btn.primary{
  min-height:44px;
  border-radius:13px!important;
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
}
.source-success-link{
  display:inline-block!important;
  margin-top:14px!important;
  padding:5px 8px;
  color:#8A8A8A!important;
  font-size:11px!important;
  text-decoration:none!important;
}
.source-success-link:hover{text-decoration:underline!important}

/* Estado pendente mantém a estrela neutra; aprovado ganha confirmação sutil. */
.source-success-card.approved .source-success-icon{
  background:#F0F8F3!important;
  color:#159466!important;
}
.source-success-card.refunded .source-success-icon{
  background:#FFF2F0!important;
  color:#D65B49!important;
}

/* Modo escuro */
html[data-theme="dark"] .source-success-overlay{
  background:rgba(0,0,0,.72)!important;
}
html[data-theme="dark"] .source-success-card{
  background:#191B1F!important;
  border-color:#30343A!important;
  box-shadow:0 22px 64px rgba(0,0,0,.48)!important;
}
html[data-theme="dark"] .source-success-icon{
  background:#25282D!important;
  color:#F4F4F1!important;
}
html[data-theme="dark"] .source-success-card.approved .source-success-icon{
  background:#10261E!important;
  color:#66D7A2!important;
}
html[data-theme="dark"] .source-success-card.refunded .source-success-icon{
  background:#2C1715!important;
  color:#FF816E!important;
}
html[data-theme="dark"] .source-success-card h2{
  color:#F4F4F1!important;
}
html[data-theme="dark"] .source-success-card p{
  color:#9BA0A9!important;
}
html[data-theme="dark"] .source-success-card .btn.primary{
  background:#F4F4F1!important;
  color:#111!important;
  border-color:#F4F4F1!important;
}
html[data-theme="dark"] .source-success-link{
  color:#A8ADB5!important;
}


/* =========================================================
   HF46 — CTA do produto sem sobrepor vendedor/chat
   ========================================================= */

/* O bloco de compra deixa de flutuar sobre o conteúdo.
   Agora participa do fluxo natural da página. */
.product-actions-sticky{
  position:relative!important;
  z-index:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:auto!important;
  max-width:none!important;
  transform:none!important;
  margin:14px 16px calc(96px + env(safe-area-inset-bottom))!important;
  pointer-events:auto!important;
}

/* Mantém o card com aspecto de CTA, mas sem comportamento flutuante. */
.product-actions-sticky .source-cta-card{
  width:100%!important;
  box-sizing:border-box!important;
  box-shadow:0 8px 24px rgba(0,0,0,.08)!important;
}

/* O vendedor/chat nunca pode ficar sob outra camada de compra. */
.seller-line{
  position:relative!important;
  z-index:1!important;
}
.seller-chat{
  position:relative!important;
  z-index:2!important;
  pointer-events:auto!important;
}

/* Evita que a última ação seja escondida pela barra inferior. */
.item-source-body{
  padding-bottom:26px!important;
}

/* Dark mode */
html[data-theme="dark"] .product-actions-sticky .source-cta-card{
  box-shadow:0 8px 26px rgba(0,0,0,.28)!important;
}

/* Em telas baixas/iPhone, mantém folga confortável acima da bottom nav. */
@media (max-height:760px){
  .product-actions-sticky{
    margin-bottom:calc(104px + env(safe-area-inset-bottom))!important;
  }
}


/* HF47 — Recuperação de senha */
.password-recovery-screen{min-height:100vh;background:#0F1012!important}.password-recovery-panel{min-height:100vh!important;padding:46px 20px 36px!important;background:#0F1012!important;color:#fff}.recovery-brand{display:inline-block;color:#fff!important;text-decoration:none;margin-bottom:64px}.password-recovery-content{width:100%;max-width:390px;margin:0 auto}.recovery-kicker{display:block;margin-bottom:6px;color:#9EA4AD;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.password-recovery-content h2{margin:0 0 6px;color:#F7F7F5;font-size:22px;line-height:1.2}.password-recovery-content>p{margin:0 0 24px;color:#9EA4AD;font-size:12px;line-height:1.55}.recovery-request-form .label{color:#C7CBD1;margin-bottom:7px}.recovery-request-form .input{width:100%;min-height:50px;background:#1B1D21!important;color:#F7F7F5!important;border:1px solid #30343A!important;border-radius:14px!important}.recovery-request-form .input::placeholder{color:#686E78!important}.recovery-request-form .btn{margin-top:14px;min-height:48px;border-radius:14px!important}.recovery-confirm-label{margin-top:13px!important}.recovery-back-link{display:block;text-align:center;margin-top:20px;padding:8px;color:#AEB3BC!important;font-size:11px;text-decoration:none}.auth-feedback{margin:0 0 14px!important;font-size:11px!important;line-height:1.45!important}.recovery-sent-state{text-align:center;padding-top:18px}.recovery-success-icon{width:66px;height:66px;display:grid;place-items:center;margin:0 auto 20px;border-radius:22px;background:#152A22;color:#68D6A5;border:1px solid #214536}.recovery-sent-state .recovery-kicker{margin-bottom:8px}.recovery-sent-state h2{font-size:25px;margin-bottom:12px}.recovery-main-message{max-width:330px;margin:0 auto 8px!important;color:#D5D8DD!important;font-size:14px!important;line-height:1.55!important}.recovery-secondary-message{max-width:320px;margin:0 auto 24px!important;color:#89909A!important;font-size:11px!important}.recovery-login-button{background:#F4F4F1!important;color:#111!important;border-color:#F4F4F1!important}.recovery-resend-form{margin-top:12px}.recovery-resend-button{appearance:none;border:0;background:transparent;color:#B6BBC3;font:600 11px/1.3 inherit;padding:9px 12px;cursor:pointer}.recovery-resend-button:disabled{color:#646A73;cursor:default}


/* =========================================================
   HF48 — Preferência Comprar / Alugar / Ambos + Para você
   ========================================================= */
.marketplace-preference-section{margin-bottom:2px}
.marketplace-preference-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.marketplace-preference-option{
  position:relative;
  min-width:0;
  cursor:pointer;
}
.marketplace-preference-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.marketplace-preference-option>span{
  min-height:66px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  padding:10px 8px;
  border:1px solid #E8E4DE;
  border-radius:13px;
  background:#F5F1EE;
  color:#777;
  transition:.16s ease;
}
.marketplace-preference-option b{
  font-size:10px;
  color:#333;
}
.marketplace-preference-option small{
  font-size:7.5px;
  line-height:1.35;
  color:#999;
}
.marketplace-preference-option input:checked+span{
  background:#111;
  border-color:#111;
}
.marketplace-preference-option input:checked+span b,
.marketplace-preference-option input:checked+span small{
  color:#fff;
}
.preferences-divider{
  height:1px;
  margin:14px 0 12px;
  background:var(--border);
}
.home-personalized{
  margin-bottom:16px;
}
.personalized-head>div{
  min-width:0;
}
.personalized-head h3{
  margin:0;
}
.personalized-head small{
  display:block;
  margin-top:2px;
  color:#9B9B9B;
  font-size:8px;
  font-weight:500;
}

/* Dark */
html[data-theme="dark"] .marketplace-preference-option>span{
  background:#202329;
  border-color:#34383F;
  color:#AEB4BD;
}
html[data-theme="dark"] .marketplace-preference-option b{
  color:#F4F4F1;
}
html[data-theme="dark"] .marketplace-preference-option small{
  color:#8F959E;
}
html[data-theme="dark"] .marketplace-preference-option input:checked+span{
  background:#F4F4F1;
  border-color:#F4F4F1;
}
html[data-theme="dark"] .marketplace-preference-option input:checked+span b,
html[data-theme="dark"] .marketplace-preference-option input:checked+span small{
  color:#111;
}
html[data-theme="dark"] .preferences-divider{
  background:#30343A;
}
html[data-theme="dark"] .personalized-head small{
  color:#8F959E;
}

@media(max-width:360px){
  .marketplace-preference-grid{gap:5px}
  .marketplace-preference-option>span{padding:9px 6px}
}


/* =========================================================
   HF49 — 24h em caso de aluguel
   ========================================================= */
.rental-24h-pill span{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  max-width:100%;
}
.rental-24h-pill span strong{
  color:inherit;
  font-size:10px;
  line-height:1.15;
  font-weight:700;
}
.rental-24h-pill span small{
  display:block;
  max-width:76px;
  color:inherit;
  font-size:8px;
  line-height:1.2;
  font-weight:500;
  white-space:normal;
  text-align:center;
}

/* Mantém o componente legível no dark sem alterar o padrão dos demais cards. */
html[data-theme="dark"] .rental-24h-pill span strong,
html[data-theme="dark"] .rental-24h-pill span small{
  color:#AEB3BC!important;
}


/* =========================================================
   HF50 — Seguir / Seguindo + Mensagem no perfil
   ========================================================= */

.profile-social-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  position:relative;
  margin-top:12px;
}

.profile-follow-form,
.profile-follow-menu{
  min-width:0;
  margin:0;
}

.profile-social-btn{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;
  padding:0 14px;
  border:1px solid var(--border-input);
  border-radius:12px;
  font:700 11px/1 inherit;
  text-decoration:none!important;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .12s ease;
}

.profile-social-btn:active{
  transform:scale(.985);
}

/* Ainda não segue: ação principal */
.profile-social-follow{
  border-color:var(--fg);
  background:var(--fg);
  color:var(--card);
}

/* Já segue: estado neutro */
.profile-social-following{
  list-style:none;
  background:var(--secondary);
  color:var(--fg);
  user-select:none;
}
.profile-social-following::-webkit-details-marker{display:none}

/* Mensagem */
.profile-social-message{
  background:var(--secondary);
  color:var(--fg)!important;
}

.profile-follow-menu{
  position:relative;
}
.profile-follow-menu[open]{
  z-index:30;
}
.profile-follow-menu[open] .profile-social-following{
  background:var(--border);
}

.profile-follow-dropdown{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 7px);
  z-index:40;
  padding:6px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--card);
  box-shadow:0 14px 36px rgba(0,0,0,.14);
}

.profile-follow-dropdown form{
  margin:0;
}

.profile-follow-dropdown button{
  width:100%;
  min-height:39px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  padding:0 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#D84C3D;
  font:650 10px/1 inherit;
  cursor:pointer;
  text-align:left;
}
.profile-follow-dropdown button:hover{
  background:rgba(216,76,61,.08);
}

/* Neutraliza o estilo legado do botão único */
.profile-follow{
  display:none!important;
}

/* Dark */
html[data-theme="dark"] .profile-social-follow{
  border-color:#F4F4F1;
  background:#F4F4F1;
  color:#111;
}
html[data-theme="dark"] .profile-social-following,
html[data-theme="dark"] .profile-social-message{
  border-color:#34383F;
  background:#24272C;
  color:#F4F4F1!important;
}
html[data-theme="dark"] .profile-follow-menu[open] .profile-social-following{
  background:#2E3238;
}
html[data-theme="dark"] .profile-follow-dropdown{
  border-color:#34383F;
  background:#191B1F;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
html[data-theme="dark"] .profile-follow-dropdown button{
  color:#FF7B69;
}
html[data-theme="dark"] .profile-follow-dropdown button:hover{
  background:rgba(255,123,105,.09);
}

@media(max-width:350px){
  .profile-social-actions{gap:6px}
  .profile-social-btn{padding:0 10px;font-size:10px}
}


/* =========================================================
   HF52 — cálculo automático das diárias do aluguel
   ========================================================= */
.rental-line-calc{
  margin-top:2px;
  color:#8D8D8D!important;
  font-size:8.5px!important;
  line-height:1.25;
}

.rental-period-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.rental-period-grid label>span{
  color:#777;
  font-size:9px;
  font-weight:650;
}

.rental-period-feedback{
  margin-top:9px;
  padding:9px 11px;
  border:1px solid #E8E4DE;
  border-radius:10px;
  background:#F5F1EE;
  color:#777;
  font-size:9px;
  line-height:1.35;
}
.rental-period-feedback.success{
  border-color:#BCEBD2;
  background:#F0FFF7;
  color:#087A4C;
}
.rental-period-feedback.error{
  border-color:#FFD0C9;
  background:#FFF5F3;
  color:#B43D2E;
}

.fidelity-confirm-pay:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
  transform:none!important;
}

html[data-theme="dark"] .rental-line-calc{
  color:#8F959E!important;
}
html[data-theme="dark"] .rental-period-grid label>span{
  color:#AEB3BC;
}
html[data-theme="dark"] .rental-period-feedback{
  border-color:#34383F;
  background:#202329;
  color:#AEB3BC;
}
html[data-theme="dark"] .rental-period-feedback.success{
  border-color:#285B45;
  background:#14271F;
  color:#78D7AA;
}
html[data-theme="dark"] .rental-period-feedback.error{
  border-color:#66372F;
  background:#2A1B18;
  color:#FF8E7A;
}


/* =========================================================
   HF54 — Catálogo / Análise de Produtos
   Referência visual: terceira imagem da planilha
   ========================================================= */
html.catalog-analysis-open,
html.catalog-analysis-open body{
  overflow:hidden;
}

.catalog-reference-stage{
  position:relative;
  z-index:1;
  padding:10px 14px 120px;
}
.catalog-reference-preview{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.catalog-reference-revenue{
  position:relative;
  display:block;
  min-height:88px;
  padding:15px 15px 13px;
  border-radius:13px;
  background:#101010;
  color:#fff!important;
  text-decoration:none!important;
  overflow:hidden;
}
.catalog-reference-revenue small{
  display:block;
  margin-bottom:3px;
  font-size:8px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9EA1A7;
}
.catalog-reference-revenue strong{
  display:block;
  font-size:22px;
  line-height:1.05;
  font-weight:500;
}
.catalog-reference-revenue span{
  display:block;
  margin-top:3px;
  font-size:8px;
  color:#8D9198;
}
.catalog-reference-revenue em{
  position:absolute;
  right:14px;
  bottom:13px;
  font-size:8px;
  font-style:normal;
  color:#8D9198;
}
.catalog-reference-kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.catalog-reference-kpi{
  min-height:76px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:2px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.catalog-reference-kpi svg{
  margin-bottom:2px;
}
.catalog-reference-kpi strong{
  font-size:18px;
  line-height:1;
}
.catalog-reference-kpi span{
  font-size:8px;
  color:#8E8E8E;
}
.catalog-reference-kpi.pending svg{
  color:#C9972F;
}

/* Dim igual à referência: painel permanece visível atrás */
.catalog-analysis-scrim{
  position:fixed;
  inset:0;
  z-index:44;
  background:rgba(20,20,20,.42);
  backdrop-filter:saturate(.8);
  -webkit-backdrop-filter:saturate(.8);
}

/* Bottom sheet branco, dominante, fiel à hierarquia da imagem 3 */
.catalog-analysis-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  z-index:45;
  width:min(100vw,520px);
  height:min(68vh,650px);
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  border-radius:23px 23px 0 0;
  background:#fff;
  color:#161616;
  box-shadow:0 -8px 32px rgba(0,0,0,.13);
  overflow:hidden;
}
.catalog-analysis-head{
  flex:0 0 auto;
  min-height:51px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 14px 8px;
}
.catalog-analysis-title{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  white-space:nowrap;
}
.catalog-analysis-title strong{
  font-size:12px;
  font-weight:700;
}
.catalog-analysis-tabs{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:2px;
}
.catalog-analysis-tabs a{
  min-width:29px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:999px;
  background:#F0F0ED;
  color:#777!important;
  font-size:7.5px;
  font-weight:700;
  text-decoration:none!important;
}
.catalog-analysis-tabs a.active{
  background:#111;
  color:#fff!important;
}
.catalog-analysis-tabs a.icon-only{
  min-width:23px;
  width:23px;
  padding:0;
}
.catalog-analysis-tabs a.sale svg{color:#1D77D2}
.catalog-analysis-tabs a.rental svg{color:#E0A328}
.catalog-analysis-filter{
  position:relative;
  margin-left:1px;
}
.catalog-analysis-filter>summary,
.catalog-analysis-close{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#F1F1EE;
  color:#777!important;
  cursor:pointer;
  list-style:none;
  text-decoration:none!important;
}
.catalog-analysis-filter>summary::-webkit-details-marker{display:none}
.catalog-analysis-filter>summary.active{
  background:#111;
  color:#fff!important;
}
.catalog-analysis-close{
  margin-left:auto;
}
.catalog-analysis-filter-card{
  position:absolute;
  top:35px;
  right:-42px;
  z-index:60;
  width:min(290px,calc(100vw - 34px));
  padding:13px;
  border:1px solid #E4E4DF;
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
.catalog-analysis-filter-card>strong{
  display:block;
  margin-bottom:10px;
  font-size:10px;
}
.catalog-filter-dates{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.catalog-filter-dates label,
.catalog-filter-category{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.catalog-filter-dates span,
.catalog-filter-category span{
  font-size:7px;
  color:#8A8A8A;
}
.catalog-filter-dates input,
.catalog-filter-category select{
  min-width:0;
  height:34px;
  padding:0 8px;
  border:1px solid #E5E5E0;
  border-radius:9px;
  background:#FAFAF8;
  color:#222;
  font:500 9px inherit;
}
.catalog-filter-category{margin-top:8px}
.catalog-filter-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:10px;
}
.catalog-filter-actions a,
.catalog-filter-actions button{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  font:700 9px inherit;
  text-decoration:none!important;
}
.catalog-filter-actions a{
  background:#F1F1EE;
  color:#555!important;
}
.catalog-filter-actions button{
  background:#111;
  color:#fff;
}

.catalog-analysis-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:0 14px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling:touch;
}
.catalog-section-eyebrow,
.catalog-performance-title{
  font-size:7.5px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#A0A0A0;
}
.catalog-trend-card{
  position:relative;
  margin-top:8px;
  padding:13px 12px 9px;
  border:1px solid #E7E7E2;
  border-radius:12px;
  background:#fff;
}
.catalog-no-data-pill{
  width:max-content;
  max-width:86%;
  margin:0 auto 8px;
  padding:4px 9px;
  border-radius:999px;
  background:#FFF5CE;
  color:#BE9120;
  font-size:6.5px;
  font-weight:700;
  text-align:center;
}
.catalog-bars{
  height:118px;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  align-items:end;
  gap:5px;
}
.catalog-bar-col{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
}
.catalog-bar-value{
  height:14px;
  max-width:100%;
  overflow:hidden;
  font-size:5.5px;
  color:#8A8A8A;
  white-space:nowrap;
}
.catalog-bar-track{
  width:100%;
  height:83px;
  display:flex;
  align-items:flex-end;
}
.catalog-bar-track i{
  display:block;
  width:100%;
  min-height:8px;
  border-radius:3px 3px 1px 1px;
  background:#CFCFCF;
}
.catalog-bar-col span{
  margin-top:4px;
  font-size:5.5px;
  color:#C0C0C0;
}
.catalog-chart-scale{
  display:flex;
  justify-content:space-between;
  margin-top:2px;
  font-size:5.5px;
  color:#D0D0D0;
}

.catalog-performance-section{
  margin-top:17px;
}
.catalog-performance-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.catalog-performance-title i{
  width:27px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#F1F1EE;
  color:#777;
  font-style:normal;
}
.catalog-performance-table{
  margin-top:8px;
  border:1px solid #ECEBE6;
  border-radius:12px;
  overflow:hidden;
}
.catalog-performance-row{
  min-height:46px;
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(48px,.75fr) 54px 72px;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-top:1px solid #EFEFEA;
  background:#fff;
}
.catalog-performance-row:first-child{
  border-top:0;
}
.catalog-performance-row.header{
  min-height:29px;
  padding-top:5px;
  padding-bottom:5px;
  background:#F5F1EE;
  color:#9B9B9B;
  font-size:6px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.catalog-product-cell{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  color:#222!important;
  text-decoration:none!important;
}
.catalog-product-cell img{
  width:27px;
  height:27px;
  flex:0 0 27px;
  border-radius:7px;
  object-fit:cover;
  background:#EEE;
}
.catalog-product-cell>span{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.catalog-product-cell strong{
  overflow:hidden;
  font-size:8px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-product-cell small{
  margin-top:1px;
  font-size:6px;
  color:#A0A0A0;
}
.catalog-product-cell em{
  margin-top:2px;
  font-size:5.5px;
  font-style:normal;
  color:#6B192A;
}
.catalog-category-cell{
  overflow:hidden;
  font-size:6.5px;
  color:#777;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-orders-cell{
  text-align:center;
  font-size:8px;
  font-weight:700;
}
.catalog-revenue-cell{
  text-align:right;
  font-size:8px;
  color:#00A76F;
}
.catalog-analysis-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:28px 16px;
  text-align:center;
}
.catalog-analysis-empty strong{font-size:10px}
.catalog-analysis-empty span{font-size:8px;color:#999}
.catalog-analysis-footer{
  display:flex;
  justify-content:center;
  padding:14px 0 2px;
}
.catalog-analysis-footer a{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 14px;
  border-radius:999px;
  background:#111;
  color:#fff!important;
  font-size:8px;
  font-weight:700;
  text-decoration:none!important;
}

/* Dark mode completo da análise */
html[data-theme="dark"] .catalog-reference-kpi{
  background:#202329;
  border-color:#34383F;
}
html[data-theme="dark"] .catalog-analysis-scrim{
  background:rgba(0,0,0,.58);
}

@media(max-width:380px){
  .catalog-analysis-sheet{
    height:min(70vh,650px);
  }
  .catalog-analysis-head{
    gap:6px;
    padding-left:11px;
    padding-right:11px;
  }
  .catalog-analysis-title strong{font-size:11px}
  .catalog-analysis-tabs a{padding:0 6px}
  .catalog-analysis-scroll{padding-left:11px;padding-right:11px}
  .catalog-performance-row{
    grid-template-columns:minmax(0,1.8fr) 44px 44px 64px;
    gap:5px;
    padding-left:7px;
    padding-right:7px;
  }
  .catalog-category-cell{font-size:5.8px}
  .catalog-revenue-cell{font-size:7.3px}
}


/* =========================================================
   HF55 — Catálogo: dark real + correção de overflow mobile
   ========================================================= */

/* ---------- contenção horizontal ---------- */
.catalog-analysis-sheet,
.catalog-analysis-sheet *,
.catalog-analysis-filter-card,
.catalog-analysis-filter-card *{
  box-sizing:border-box;
}

.catalog-analysis-sheet{
  max-width:100%;
  overflow:hidden;
}

.catalog-analysis-head-responsive{
  width:100%;
  min-width:0;
}

.catalog-analysis-title{
  flex:0 1 auto;
  min-width:0;
}

.catalog-analysis-title strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.catalog-analysis-tabs{
  flex:0 0 auto;
  min-width:0;
}

.catalog-analysis-filter{
  flex:0 0 auto;
}

.catalog-analysis-close{
  flex:0 0 28px;
}

/* O dropdown passa a ser ancorado ao painel, não à viewport */
.catalog-analysis-filter-card{
  right:0;
  left:auto;
  width:min(292px,calc(100vw - 34px));
  max-width:calc(100vw - 34px);
  overflow:hidden;
}

.catalog-filter-dates{
  min-width:0;
}
.catalog-filter-dates label{
  min-width:0;
}
.catalog-filter-dates input,
.catalog-filter-category select{
  width:100%;
  max-width:100%;
}

/* tabela nunca ultrapassa a largura do sheet */
.catalog-performance-table{
  width:100%;
  max-width:100%;
}
.catalog-performance-row{
  width:100%;
  min-width:0;
}
.catalog-product-cell,
.catalog-product-cell>span,
.catalog-category-cell,
.catalog-orders-cell,
.catalog-revenue-cell{
  min-width:0;
}

/* ---------- dark mode completo ---------- */
html[data-theme="dark"] .catalog-analysis-sheet{
  background:#111315;
  color:#F4F4F1;
  box-shadow:0 -10px 38px rgba(0,0,0,.55);
}

html[data-theme="dark"] .catalog-analysis-head{
  background:#111315;
}

html[data-theme="dark"] .catalog-analysis-title{
  color:#F4F4F1;
}

html[data-theme="dark"] .catalog-analysis-tabs a{
  background:#23262B;
  color:#AEB3BC!important;
}

html[data-theme="dark"] .catalog-analysis-tabs a.active{
  background:#F4F4F1;
  color:#111!important;
}

html[data-theme="dark"] .catalog-analysis-filter>summary,
html[data-theme="dark"] .catalog-analysis-close,
html[data-theme="dark"] .catalog-performance-title i{
  background:#23262B;
  color:#C7CBD1!important;
}

html[data-theme="dark"] .catalog-analysis-filter>summary.active{
  background:#F4F4F1;
  color:#111!important;
}

html[data-theme="dark"] .catalog-analysis-filter-card{
  border-color:#34383F;
  background:#191B1F;
  color:#F4F4F1;
  box-shadow:0 18px 42px rgba(0,0,0,.55);
}

html[data-theme="dark"] .catalog-filter-dates span,
html[data-theme="dark"] .catalog-filter-category span{
  color:#A7ACB5;
}

html[data-theme="dark"] .catalog-filter-dates input,
html[data-theme="dark"] .catalog-filter-category select{
  border-color:#34383F;
  background:#202329;
  color:#F4F4F1;
  color-scheme:dark;
}

html[data-theme="dark"] .catalog-filter-actions a{
  background:#24272C;
  color:#D6D9DE!important;
}

html[data-theme="dark"] .catalog-filter-actions button{
  background:#F4F4F1;
  color:#111;
}

html[data-theme="dark"] .catalog-section-eyebrow,
html[data-theme="dark"] .catalog-performance-title{
  color:#8E949D;
}

html[data-theme="dark"] .catalog-trend-card{
  border-color:#34383F;
  background:#191B1F;
}

html[data-theme="dark"] .catalog-no-data-pill{
  background:#2D2818;
  color:#E5BE58;
}

html[data-theme="dark"] .catalog-bar-track i{
  background:#5D626B;
}

html[data-theme="dark"] .catalog-bar-col span,
html[data-theme="dark"] .catalog-bar-value,
html[data-theme="dark"] .catalog-chart-scale{
  color:#7E848D;
}

html[data-theme="dark"] .catalog-performance-table{
  border-color:#34383F;
  background:#191B1F;
}

html[data-theme="dark"] .catalog-performance-row{
  border-top-color:#2D3036;
  background:#191B1F;
}

html[data-theme="dark"] .catalog-performance-row.header{
  background:#202329;
  color:#8F959E;
}

html[data-theme="dark"] .catalog-product-cell{
  color:#F4F4F1!important;
}

html[data-theme="dark"] .catalog-product-cell img{
  background:#26292E;
}

html[data-theme="dark"] .catalog-product-cell small,
html[data-theme="dark"] .catalog-category-cell{
  color:#9298A2;
}

html[data-theme="dark"] .catalog-revenue-cell{
  color:#63D8A5;
}

html[data-theme="dark"] .catalog-analysis-empty span{
  color:#8E949D;
}

html[data-theme="dark"] .catalog-analysis-footer a{
  background:#F4F4F1;
  color:#111!important;
}

/* ---------- iPhone / telas estreitas ---------- */
@media(max-width:430px){
  .catalog-analysis-sheet{
    width:calc(100vw - 10px);
    height:min(69vh,650px);
    border-radius:20px 20px 0 0;
  }

  .catalog-analysis-head{
    min-height:50px;
    gap:5px;
    padding:9px 9px 7px;
  }

  .catalog-analysis-title{
    flex:1 1 auto;
  }

  .catalog-analysis-title strong{
    font-size:10px;
  }

  .catalog-analysis-tabs{
    gap:3px;
  }

  .catalog-analysis-tabs a{
    min-width:24px;
    height:21px;
    padding:0 6px;
    font-size:6.5px;
  }

  .catalog-analysis-tabs a.icon-only{
    min-width:21px;
    width:21px;
  }

  .catalog-analysis-filter>summary,
  .catalog-analysis-close{
    width:25px;
    height:25px;
  }

  .catalog-analysis-close{
    flex-basis:25px;
  }

  .catalog-analysis-filter-card{
    position:fixed;
    left:50%;
    right:auto;
    top:auto;
    bottom:calc(18px + env(safe-area-inset-bottom));
    width:calc(100vw - 34px);
    max-width:360px;
    transform:translateX(-50%);
    z-index:80;
  }

  .catalog-analysis-filter[open]::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:79;
    background:rgba(0,0,0,.18);
  }

  html[data-theme="dark"] .catalog-analysis-filter[open]::before{
    background:rgba(0,0,0,.42);
  }

  .catalog-analysis-scroll{
    padding-left:10px;
    padding-right:10px;
  }

  .catalog-trend-card{
    padding-left:8px;
    padding-right:8px;
  }

  .catalog-bars{
    gap:3px;
  }

  .catalog-performance-row{
    grid-template-columns:minmax(0,1.65fr) 42px 42px 62px;
    gap:4px;
    padding-left:6px;
    padding-right:6px;
  }

  .catalog-performance-row.header{
    font-size:5.4px;
  }

  .catalog-product-cell img{
    width:25px;
    height:25px;
    flex-basis:25px;
  }

  .catalog-product-cell strong{
    font-size:7.2px;
  }

  .catalog-category-cell{
    font-size:5.7px;
  }

  .catalog-orders-cell,
  .catalog-revenue-cell{
    font-size:7px;
  }
}

@media(max-width:350px){
  .catalog-analysis-title strong{
    max-width:92px;
  }

  .catalog-analysis-tabs a:first-child{
    min-width:21px;
    width:21px;
    overflow:hidden;
    text-indent:-999px;
    position:relative;
  }

  .catalog-analysis-tabs a:first-child::after{
    content:"•";
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    text-indent:0;
    font-size:13px;
  }

  .catalog-performance-row{
    grid-template-columns:minmax(0,1.6fr) 38px 38px 58px;
  }
}


/* =========================================================
   HF55.1 — filtro fechado por padrão + popup preso ao header
   ========================================================= */

/* Venda/Aluguel são abas, não devem abrir o painel avançado. */
.catalog-analysis-filter{
  position:relative;
  z-index:70;
}

/* Desktop e mobile: popup compacto abaixo do botão de filtro. */
.catalog-analysis-filter-card{
  position:absolute!important;
  top:34px!important;
  right:-32px!important;
  bottom:auto!important;
  left:auto!important;
  width:274px!important;
  max-width:calc(100vw - 30px)!important;
  transform:none!important;
  z-index:90!important;
  padding:11px!important;
}

/* Remove o segundo "modal" que aparecia sobre a tela. */
.catalog-analysis-filter[open]::before{
  display:none!important;
  content:none!important;
}

/* O painel só existe visualmente quando o details está realmente aberto. */
.catalog-analysis-filter:not([open]) .catalog-analysis-filter-card{
  display:none!important;
}

/* Mais contraste no dark para não parecer tudo apagado. */
html[data-theme="dark"] .catalog-analysis-sheet{
  background:#121416!important;
  color:#F7F7F4!important;
}

html[data-theme="dark"] .catalog-analysis-title strong{
  color:#F7F7F4!important;
}

html[data-theme="dark"] .catalog-section-eyebrow,
html[data-theme="dark"] .catalog-performance-title{
  color:#B0B5BE!important;
}

html[data-theme="dark"] .catalog-trend-card,
html[data-theme="dark"] .catalog-performance-table,
html[data-theme="dark"] .catalog-performance-row{
  background:#181A1E!important;
  border-color:#353941!important;
}

html[data-theme="dark"] .catalog-performance-row.header{
  background:#202329!important;
  color:#AEB4BD!important;
}

html[data-theme="dark"] .catalog-product-cell{
  color:#F5F5F2!important;
}

html[data-theme="dark"] .catalog-product-cell small,
html[data-theme="dark"] .catalog-category-cell,
html[data-theme="dark"] .catalog-bar-value,
html[data-theme="dark"] .catalog-bar-col span,
html[data-theme="dark"] .catalog-chart-scale{
  color:#9DA3AD!important;
}

html[data-theme="dark"] .catalog-bar-track i{
  background:#707680!important;
}

html[data-theme="dark"] .catalog-analysis-filter-card{
  background:#1B1E22!important;
  border-color:#3A3E46!important;
  box-shadow:0 14px 36px rgba(0,0,0,.58)!important;
}

html[data-theme="dark"] .catalog-filter-dates input,
html[data-theme="dark"] .catalog-filter-category select{
  background:#24272C!important;
  border-color:#3A3E46!important;
  color:#F4F4F1!important;
}

/* Mobile: continua preso ao cabeçalho, nunca no rodapé. */
@media(max-width:430px){
  .catalog-analysis-filter-card{
    position:absolute!important;
    top:31px!important;
    right:-31px!important;
    bottom:auto!important;
    left:auto!important;
    width:min(270px,calc(100vw - 30px))!important;
    max-width:calc(100vw - 30px)!important;
    transform:none!important;
  }

  .catalog-filter-dates{
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
  }

  .catalog-filter-dates input,
  .catalog-filter-category select{
    height:32px!important;
    font-size:8.5px!important;
  }

  .catalog-filter-actions{
    gap:6px!important;
    margin-top:8px!important;
  }

  .catalog-filter-actions a,
  .catalog-filter-actions button{
    height:32px!important;
    font-size:8.5px!important;
  }
}

@media(max-width:350px){
  .catalog-analysis-filter-card{
    right:-28px!important;
    width:min(248px,calc(100vw - 24px))!important;
  }
}


/* =========================================================
   HF56 — App Shell / cache inteligente / offline
   ========================================================= */

.ellisa-connectivity-banner{
  position:fixed;
  z-index:99999;
  top:calc(10px + env(safe-area-inset-top));
  left:50%;
  width:min(360px,calc(100vw - 28px));
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(17,17,17,.96);
  color:#fff;
  box-shadow:0 14px 38px rgba(0,0,0,.23);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  opacity:1;
  transition:opacity .18s ease,transform .18s ease;
}
.ellisa-connectivity-banner[hidden]{
  display:none!important;
}
.ellisa-connectivity-banner strong{
  font-size:10.5px;
  line-height:1.25;
  font-weight:750;
}
.ellisa-connectivity-banner span{
  font-size:8.5px;
  line-height:1.35;
  color:rgba(255,255,255,.72);
}
.ellisa-connectivity-banner.is-online{
  background:rgba(20,104,69,.96);
}
.ellisa-connectivity-banner.is-online span{
  color:rgba(255,255,255,.82);
}

/* Barrinha discreta enquanto uma navegação real está iniciando. */
.ellisa-app-loading{
  position:fixed;
  z-index:99998;
  top:0;
  left:0;
  right:0;
  height:2px;
  pointer-events:none;
  opacity:0;
  overflow:hidden;
  transition:opacity .12s ease;
}
.ellisa-app-loading.is-active{
  opacity:1;
}
.ellisa-app-loading i{
  display:block;
  width:38%;
  height:100%;
  border-radius:999px;
  background:#6B192A;
  transform:translateX(-120%);
}
.ellisa-app-loading.is-active i{
  animation:ellisa-loading-bar .85s ease-in-out infinite;
}
@keyframes ellisa-loading-bar{
  0%{transform:translateX(-120%)}
  55%{transform:translateX(130%)}
  100%{transform:translateX(300%)}
}

/* Evita seleção/flash agressivo nos itens de navegação em WebView. */
a,button,[role="button"]{
  -webkit-tap-highlight-color:transparent;
}

/* Chrome/Android modernos conseguem suavizar navegação entre documentos. */
@view-transition{
  navigation:auto;
}

/* Tema escuro mantém a mensagem coerente com o App. */
html[data-theme="dark"] .ellisa-connectivity-banner{
  border-color:#34383F;
  background:rgba(18,20,22,.97);
}
html[data-theme="dark"] .ellisa-connectivity-banner.is-online{
  background:rgba(20,104,69,.97);
}

@media(max-width:430px){
  .ellisa-connectivity-banner{
    top:calc(8px + env(safe-area-inset-top));
    width:calc(100vw - 22px);
    padding:9px 12px;
    border-radius:13px;
  }
}


/* =========================================================
   HF57 — Receita Total conforme imagem 2
   ========================================================= */

.revenue-reference-v57{
  padding-bottom:calc(96px + env(safe-area-inset-bottom));
}
.revenue-v57-head{
  margin-bottom:9px;
}

.revenue-v57-filter-row{
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
}
.revenue-v57-pills{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.revenue-v57-pills::-webkit-scrollbar{display:none}
.revenue-v57-pills a{flex:0 0 auto}

.revenue-v57-filter{
  position:relative;
  flex:0 0 auto;
}
.revenue-v57-filter>summary{
  width:31px;
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--card);
  color:var(--fg);
  cursor:pointer;
  list-style:none;
}
.revenue-v57-filter>summary::-webkit-details-marker{display:none}
.revenue-v57-filter>summary.active{
  background:var(--fg);
  color:var(--card);
}

.revenue-v57-filter-card{
  position:absolute;
  z-index:40;
  top:38px;
  right:0;
  width:min(278px,calc(100vw - 30px));
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  color:var(--fg);
  box-shadow:0 15px 38px rgba(0,0,0,.16);
}
.revenue-v57-filter:not([open]) .revenue-v57-filter-card{
  display:none!important;
}
.revenue-v57-filter-card>strong{
  display:block;
  margin-bottom:9px;
  font-size:10px;
}
.revenue-v57-filter-dates{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.revenue-v57-filter-dates label{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.revenue-v57-filter-dates span{
  font-size:7px;
  color:#999;
}
.revenue-v57-filter-dates input{
  width:100%;
  min-width:0;
  height:34px;
  padding:0 8px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--bg);
  color:var(--fg);
  font:500 8.5px inherit;
}
.revenue-v57-filter-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}
.revenue-v57-filter-actions a,
.revenue-v57-filter-actions button{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  font:700 8.5px inherit;
  text-decoration:none!important;
}
.revenue-v57-filter-actions a{
  background:var(--secondary);
  color:var(--fg)!important;
}
.revenue-v57-filter-actions button{
  background:var(--fg);
  color:var(--card);
}

.revenue-v57-hero{
  margin-bottom:20px;
}

.revenue-v57-section{
  margin-top:19px;
}
.revenue-v57-eyebrow{
  margin:0 0 10px;
  font-size:8px!important;
  letter-spacing:.13em!important;
  text-transform:uppercase;
  color:#A1A1A1!important;
}

.revenue-v57-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.revenue-v57-card{
  min-width:0;
  padding:15px 15px 14px;
  border:1px solid var(--border);
  border-radius:15px;
  background:var(--card);
  color:var(--fg);
}
.revenue-v57-card>strong{
  display:block;
  margin-top:6px;
  font-size:19px;
  line-height:1.05;
  font-weight:750;
}

.revenue-v57-label{
  display:flex;
  align-items:center;
  gap:5px;
  color:#858585;
  font-size:8px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.revenue-v57-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#111;
}
.revenue-v57-rental .revenue-v57-dot{
  background:#6B192A;
}

.revenue-v57-card em{
  display:block;
  margin-top:5px;
  color:#6B192A;
  font-size:8px;
  font-style:normal;
  font-weight:700;
}
.revenue-v57-rule{
  height:1px;
  margin:13px 0 10px;
  background:var(--border);
}
.revenue-v57-meta{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.revenue-v57-meta span{
  font-size:8px;
  color:#9A9A9A;
}

.revenue-v57-summary{
  margin-top:20px;
}
.revenue-v57-mini-title{
  display:block;
  color:#A0A0A0;
  font-size:8px;
  font-weight:750;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.revenue-v57-card strong.amber{color:#D79B1F}
.revenue-v57-card strong.green{color:#11A66A}
.revenue-v57-card>small{
  display:block;
  margin-top:7px;
  color:#9B9B9B;
  font-size:8px;
}

.revenue-v57-transactions-head{
  margin-top:24px;
}
.revenue-v57-orders{
  margin-top:7px;
}

/* Dark */
html[data-theme="dark"] .revenue-v57-filter>summary{
  border-color:#34383F;
  background:#202329;
  color:#D6DAE0;
}
html[data-theme="dark"] .revenue-v57-filter>summary.active{
  background:#F4F4F1;
  color:#111;
}
html[data-theme="dark"] .revenue-v57-filter-card{
  border-color:#34383F;
  background:#191B1F;
  color:#F4F4F1;
  box-shadow:0 17px 42px rgba(0,0,0,.50);
}
html[data-theme="dark"] .revenue-v57-filter-dates input{
  border-color:#34383F;
  background:#202329;
  color:#F4F4F1;
  color-scheme:dark;
}
html[data-theme="dark"] .revenue-v57-filter-actions a{
  background:#24272C;
  color:#D6DAE0!important;
}
html[data-theme="dark"] .revenue-v57-filter-actions button{
  background:#F4F4F1;
  color:#111;
}
html[data-theme="dark"] .revenue-v57-card{
  border-color:#34383F;
  background:#191B1F;
  color:#F4F4F1;
}
html[data-theme="dark"] .revenue-v57-label,
html[data-theme="dark"] .revenue-v57-mini-title{
  color:#AEB4BD;
}
html[data-theme="dark"] .revenue-v57-dot{
  background:#F4F4F1;
}
html[data-theme="dark"] .revenue-v57-rental .revenue-v57-dot{
  background:#6B192A;
}
html[data-theme="dark"] .revenue-v57-rule{
  background:#30343A;
}
html[data-theme="dark"] .revenue-v57-meta span,
html[data-theme="dark"] .revenue-v57-card>small{
  color:#9298A2;
}

@media(max-width:390px){
  .revenue-v57-grid{gap:7px}
  .revenue-v57-card{
    padding:12px 11px;
    border-radius:13px;
  }
  .revenue-v57-card>strong{font-size:16px}
  .revenue-v57-label{
    gap:4px;
    font-size:7px;
  }
  .revenue-v57-meta span,
  .revenue-v57-card>small{
    font-size:7px;
  }
}
@media(max-width:340px){
  .revenue-v57-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   HF58 — Interesse: produtos → visualizações → quem visualizou
   ========================================================= */

.interest-v58-stage{
  position:relative;
  min-height:calc(100vh - 135px);
  padding-bottom:calc(88px + env(safe-area-inset-bottom));
}

.interest-v58-backdrop-summary{
  padding:10px 14px 0;
}
.interest-v58-revenue-back{
  min-height:70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:12px 14px;
  border-radius:13px;
  background:#111;
  color:#fff!important;
  text-decoration:none!important;
}
.interest-v58-revenue-back small{
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#8F949C;
}
.interest-v58-revenue-back strong{
  margin-top:2px;
  font-size:20px;
  line-height:1;
}
.interest-v58-revenue-back span{
  margin-top:4px;
  font-size:7px;
  color:#8F949C;
}

/* Imagem 2 */
.interest-v58-sheet{
  position:relative;
  z-index:2;
  margin-top:-3px;
  min-height:440px;
  border-radius:21px 21px 0 0;
  background:#fff;
  color:#161616;
  overflow:hidden;
}
.interest-v58-head{
  min-height:49px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px 8px;
}
.interest-v58-title{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.interest-v58-title svg{
  color:#5CA8E9;
}
.interest-v58-title strong{
  font-size:11px;
}
.interest-v58-close{
  width:28px;
  height:28px;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#F2F1EE;
  color:#999!important;
  text-decoration:none!important;
}

.interest-v58-product-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:4px 12px 20px;
}
.interest-v58-product-row{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 8px;
  border:1px solid #E9E7E2;
  border-radius:11px;
  background:#fff;
  color:#171717!important;
  text-decoration:none!important;
  transition:transform .12s ease,border-color .12s ease;
}
.interest-v58-product-row:active{
  transform:scale(.994);
}
.interest-v58-product-row.selected{
  border-color:#B7DFFF;
}
.interest-v58-product-row>img{
  width:37px;
  height:37px;
  flex:0 0 37px;
  border-radius:8px;
  object-fit:cover;
  background:#EEE;
}
.interest-v58-product-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.interest-v58-product-copy strong{
  overflow:hidden;
  font-size:8.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v58-product-copy small{
  margin-top:2px;
  overflow:hidden;
  font-size:6.5px;
  color:#999;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v58-count{
  min-width:45px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 8px;
  border-radius:999px;
  background:#EAF5FF;
  color:#429AE7;
}
.interest-v58-count b{
  font-size:8px;
}
.interest-v58-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:52px 20px;
  text-align:center;
}
.interest-v58-empty strong{
  font-size:10px;
}
.interest-v58-empty span{
  max-width:260px;
  font-size:8px;
  line-height:1.45;
  color:#999;
}

/* Imagem 3 */
.interest-v58-scrim{
  position:fixed;
  inset:0;
  z-index:70;
  background:rgba(17,17,17,.42);
  backdrop-filter:saturate(.75);
  -webkit-backdrop-filter:saturate(.75);
}
.interest-v58-viewers-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  z-index:71;
  width:min(100vw,520px);
  max-height:min(58vh,560px);
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  border-radius:22px 22px 0 0;
  background:#fff;
  color:#151515;
  box-shadow:0 -10px 35px rgba(0,0,0,.18);
  overflow:hidden;
}
.interest-v58-viewers-head{
  flex:0 0 auto;
  min-height:61px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 13px;
  border-bottom:1px solid #EEECE7;
}
.interest-v58-back{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#F3F2EF;
  color:#777!important;
  text-decoration:none!important;
}
.interest-v58-viewers-head>img{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:9px;
  object-fit:cover;
  background:#EEE;
}
.interest-v58-viewers-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.interest-v58-viewers-head strong{
  overflow:hidden;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v58-viewers-head span{
  margin-top:2px;
  font-size:7px;
  color:#999;
}

.interest-v58-viewer-list{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:5px 12px calc(22px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling:touch;
}
.interest-v58-viewer-row{
  min-height:54px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 3px;
  border-bottom:1px solid #EFEDE8;
}
.interest-v58-viewer-row>img,
.interest-v58-avatar-fallback{
  width:35px;
  height:35px;
  flex:0 0 35px;
  border-radius:50%;
}
.interest-v58-viewer-row>img{
  object-fit:cover;
  background:#EEE;
}
.interest-v58-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#F1F0ED;
  color:#555;
  font-size:10px;
  font-weight:700;
}
.interest-v58-viewer-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.interest-v58-viewer-copy strong{
  font-size:8.5px;
}
.interest-v58-viewer-copy small{
  margin-top:1px;
  font-size:6.5px;
  color:#999;
}
.interest-v58-viewer-copy em{
  margin-top:2px;
  font-size:6px;
  font-style:normal;
  color:#5E9FD8;
}
.interest-v58-viewer-row time{
  flex:0 0 auto;
  font-size:6.5px;
  color:#AAA;
}

/* Dark */
html[data-theme="dark"] .interest-v58-sheet,
html[data-theme="dark"] .interest-v58-viewers-sheet{
  background:#121416;
  color:#F5F5F2;
}
html[data-theme="dark"] .interest-v58-product-row{
  border-color:#34383F;
  background:#191B1F;
  color:#F5F5F2!important;
}
html[data-theme="dark"] .interest-v58-product-row.selected{
  border-color:#4A83AE;
}
html[data-theme="dark"] .interest-v58-product-copy small,
html[data-theme="dark"] .interest-v58-viewers-head span,
html[data-theme="dark"] .interest-v58-viewer-copy small,
html[data-theme="dark"] .interest-v58-viewer-row time{
  color:#9298A2;
}
html[data-theme="dark"] .interest-v58-count{
  background:#172B3A;
  color:#72B9F1;
}
html[data-theme="dark"] .interest-v58-close,
html[data-theme="dark"] .interest-v58-back{
  background:#23262B;
  color:#B8BDC6!important;
}
html[data-theme="dark"] .interest-v58-viewers-head{
  border-bottom-color:#30343A;
}
html[data-theme="dark"] .interest-v58-viewer-row{
  border-bottom-color:#2C3036;
}
html[data-theme="dark"] .interest-v58-avatar-fallback{
  background:#24272C;
  color:#D8DCE2;
}
html[data-theme="dark"] .interest-v58-scrim{
  background:rgba(0,0,0,.58);
}

@media(max-width:430px){
  .interest-v58-backdrop-summary{
    padding-left:10px;
    padding-right:10px;
  }
  .interest-v58-sheet{
    border-radius:18px 18px 0 0;
  }
  .interest-v58-product-list{
    padding-left:10px;
    padding-right:10px;
  }
  .interest-v58-viewers-sheet{
    width:calc(100vw - 8px);
    max-height:61vh;
    border-radius:19px 19px 0 0;
  }
}

@media(max-width:350px){
  .interest-v58-product-row{
    gap:7px;
    padding-left:6px;
    padding-right:6px;
  }
  .interest-v58-count{
    min-width:40px;
    padding:0 6px;
  }
}


/* =========================================================
   HF58.1 — Interesse abre em modal sobre o Painel Gerencial
   ========================================================= */

.interest-v581-trigger{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  margin:0;
  text-align:left;
  font:inherit;
  cursor:pointer;
}

html.interest-v581-open,
html.interest-v581-open body{
  overflow:hidden!important;
}

.interest-v581-modal[hidden]{
  display:none!important;
}
.interest-v581-modal{
  position:fixed;
  inset:0;
  z-index:120;
}

.interest-v581-scrim{
  position:absolute;
  inset:0;
  background:rgba(22,22,22,.48);
  backdrop-filter:saturate(.78);
  -webkit-backdrop-filter:saturate(.78);
}

.interest-v581-sheet{
  position:absolute;
  left:50%;
  top:50%;
  width:min(470px,calc(100vw - 22px));
  max-height:min(72vh,650px);
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  border-radius:20px;
  background:#fff;
  color:#161616;
  box-shadow:0 22px 65px rgba(0,0,0,.24);
  overflow:hidden;
}

.interest-v581-content{
  min-height:270px;
  max-height:min(72vh,650px);
  display:flex;
  flex-direction:column;
}

.interest-v581-head,
.interest-v581-viewers-head{
  flex:0 0 auto;
  min-height:52px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px 8px;
  border-bottom:1px solid #EFEDE8;
}

.interest-v581-title{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.interest-v581-title svg{
  color:#55A5E9;
}
.interest-v581-title strong{
  font-size:11px;
}

.interest-v581-close,
.interest-v581-back{
  appearance:none;
  -webkit-appearance:none;
  width:29px;
  height:29px;
  flex:0 0 29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#F2F1EE;
  color:#8E8E8E;
  cursor:pointer;
}
.interest-v581-close{
  margin-left:auto;
}

.interest-v581-summary{
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:2px 13px 8px;
}
.interest-v581-summary strong{
  font-size:16px;
}
.interest-v581-summary span{
  font-size:7.5px;
  color:#999;
}

.interest-v581-product-list,
.interest-v581-viewer-list{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.interest-v581-product-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:4px 11px 13px;
}

.interest-v581-product-row{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:53px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 8px;
  border:1px solid #E9E7E2;
  border-radius:11px;
  background:#fff;
  color:#171717;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.interest-v581-product-row:active{
  transform:scale(.994);
}
.interest-v581-product-row>img{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:8px;
  object-fit:cover;
  background:#EEE;
}
.interest-v581-product-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.interest-v581-product-copy strong{
  overflow:hidden;
  font-size:8.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v581-product-copy small{
  margin-top:2px;
  overflow:hidden;
  color:#999;
  font-size:6.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v581-count{
  min-width:47px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 8px;
  border-radius:999px;
  background:#EAF5FF;
  color:#429AE7;
}
.interest-v581-count b{
  font-size:8px;
}

/* Segundo nível do MESMO modal */
.interest-v581-viewers-head>img{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:8px;
  object-fit:cover;
  background:#EEE;
}
.interest-v581-viewers-head>div{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.interest-v581-viewers-head strong{
  overflow:hidden;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.interest-v581-viewers-head span{
  margin-top:2px;
  color:#999;
  font-size:7px;
}

.interest-v581-viewer-list{
  padding:4px 12px 14px;
}
.interest-v581-viewer-row{
  min-height:55px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 2px;
  border-bottom:1px solid #EFEDE8;
}
.interest-v581-viewer-row>img,
.interest-v581-avatar-fallback{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:50%;
}
.interest-v581-viewer-row>img{
  object-fit:cover;
  background:#EEE;
}
.interest-v581-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#F1F0ED;
  color:#555;
  font-size:10px;
  font-weight:700;
}
.interest-v581-viewer-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.interest-v581-viewer-copy strong{
  font-size:8.5px;
}
.interest-v581-viewer-copy small{
  margin-top:1px;
  color:#999;
  font-size:6.5px;
}
.interest-v581-viewer-copy em{
  margin-top:2px;
  color:#5E9FD8;
  font-size:6px;
  font-style:normal;
}
.interest-v581-viewer-row time{
  flex:0 0 auto;
  color:#AAA;
  font-size:6.5px;
}

.interest-v581-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:44px 20px;
  text-align:center;
}
.interest-v581-empty strong{
  font-size:10px;
}
.interest-v581-empty span{
  max-width:260px;
  color:#999;
  font-size:8px;
  line-height:1.45;
}
.interest-v581-empty button{
  margin-top:8px;
  min-height:33px;
  padding:0 13px;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font:700 8px inherit;
}

.interest-v581-loading{
  flex:1 1 auto;
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#999;
  font-size:8px;
}
.interest-v581-loading i{
  width:23px;
  height:23px;
  border:2px solid #EEE;
  border-top-color:#111;
  border-radius:50%;
  animation:interest-v581-spin .7s linear infinite;
}
@keyframes interest-v581-spin{
  to{transform:rotate(360deg)}
}
.interest-v581-content.is-loading-detail{
  opacity:.72;
  pointer-events:none;
}

/* Dark */
html[data-theme="dark"] .interest-v581-scrim{
  background:rgba(0,0,0,.62);
}
html[data-theme="dark"] .interest-v581-sheet{
  background:#121416;
  color:#F5F5F2;
  box-shadow:0 22px 68px rgba(0,0,0,.58);
}
html[data-theme="dark"] .interest-v581-head,
html[data-theme="dark"] .interest-v581-viewers-head{
  border-bottom-color:#30343A;
}
html[data-theme="dark"] .interest-v581-close,
html[data-theme="dark"] .interest-v581-back{
  background:#23262B;
  color:#BBC0C8;
}
html[data-theme="dark"] .interest-v581-product-row{
  border-color:#34383F;
  background:#191B1F;
  color:#F5F5F2;
}
html[data-theme="dark"] .interest-v581-product-copy small,
html[data-theme="dark"] .interest-v581-viewers-head span,
html[data-theme="dark"] .interest-v581-viewer-copy small,
html[data-theme="dark"] .interest-v581-viewer-row time,
html[data-theme="dark"] .interest-v581-summary span,
html[data-theme="dark"] .interest-v581-empty span{
  color:#9298A2;
}
html[data-theme="dark"] .interest-v581-count{
  background:#172B3A;
  color:#72B9F1;
}
html[data-theme="dark"] .interest-v581-viewer-row{
  border-bottom-color:#2C3036;
}
html[data-theme="dark"] .interest-v581-avatar-fallback{
  background:#24272C;
  color:#D8DCE2;
}
html[data-theme="dark"] .interest-v581-empty button{
  background:#F4F4F1;
  color:#111;
}
html[data-theme="dark"] .interest-v581-loading i{
  border-color:#34383F;
  border-top-color:#F4F4F1;
}

/* Mobile / WebView */
@media(max-width:430px){
  .interest-v581-sheet{
    top:auto;
    bottom:0;
    width:calc(100vw - 8px);
    max-height:min(68vh,620px);
    transform:translateX(-50%);
    border-radius:20px 20px 0 0;
  }
  .interest-v581-content{
    max-height:min(68vh,620px);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .interest-v581-product-list{
    padding-left:9px;
    padding-right:9px;
  }
}

@media(max-width:350px){
  .interest-v581-product-row{
    gap:7px;
    padding-left:6px;
    padding-right:6px;
  }
  .interest-v581-count{
    min-width:41px;
    padding:0 6px;
  }
}


/* =========================================================
   HF58.2 — Reputação: Avaliações Recebidas em modal
   Referência visual: imagem 2 da planilha
   ========================================================= */

.reputation-v582-trigger{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  margin:0;
  text-align:left;
  font:inherit;
  cursor:pointer;
}

html.reputation-v582-open,
html.reputation-v582-open body{
  overflow:hidden!important;
}

.reputation-v582-modal[hidden]{
  display:none!important;
}

.reputation-v582-modal{
  position:fixed;
  inset:0;
  z-index:122;
}

.reputation-v582-scrim{
  position:absolute;
  inset:0;
  background:rgba(25,25,25,.50);
  backdrop-filter:saturate(.78);
  -webkit-backdrop-filter:saturate(.78);
}

.reputation-v582-sheet{
  position:absolute;
  left:50%;
  top:50%;
  width:min(475px,calc(100vw - 22px));
  max-height:min(74vh,670px);
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  border-radius:18px;
  background:#fff;
  color:#171717;
  box-shadow:0 22px 65px rgba(0,0,0,.24);
  overflow:hidden;
}

.reputation-v582-content{
  min-height:285px;
  max-height:min(74vh,670px);
  display:flex;
  flex-direction:column;
}

.reputation-v582-head{
  flex:0 0 auto;
  min-height:51px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 12px 8px;
  border-bottom:1px solid #EFEDE8;
}

.reputation-v582-title{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}

.reputation-v582-title svg{
  color:#6B192A;
}

.reputation-v582-title strong{
  font-size:11px;
  font-weight:750;
}

.reputation-v582-close{
  appearance:none;
  -webkit-appearance:none;
  width:28px;
  height:28px;
  margin-left:auto;
  flex:0 0 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#F2F1EE;
  color:#9A9A9A;
  cursor:pointer;
}

.reputation-v582-list{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  overflow:auto;
  padding:8px 11px 14px;
  -webkit-overflow-scrolling:touch;
}

.reputation-v582-review-card{
  min-width:0;
  padding:10px 11px 9px;
  border:1px solid #E9E7E2;
  border-radius:11px;
  background:#fff;
}

.reputation-v582-review-top{
  display:flex;
  align-items:flex-start;
  gap:9px;
}

.reputation-v582-review-person{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}

.reputation-v582-review-person strong{
  overflow:hidden;
  font-size:8.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reputation-v582-review-person span{
  margin-top:1px;
  overflow:hidden;
  color:#AAA;
  font-size:6.2px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reputation-v582-stars{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:1px;
  padding-top:1px;
}

.reputation-v582-stars i{
  color:#D7D7D4;
  font-size:10px;
  line-height:1;
  font-style:normal;
}

.reputation-v582-stars i.filled{
  color:#6B192A;
}

.reputation-v582-product{
  margin-top:7px;
  overflow:hidden;
  color:#777;
  font-size:6.7px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reputation-v582-review-card p{
  margin:5px 0 0;
  color:#646464;
  font-size:6.7px;
  line-height:1.4;
}

.reputation-v582-review-card time{
  display:block;
  margin-top:6px;
  color:#B0B0B0;
  font-size:6.2px;
}

.reputation-v582-empty{
  flex:1 1 auto;
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:34px 20px;
  text-align:center;
}

.reputation-v582-empty strong{
  font-size:10px;
}

.reputation-v582-empty span{
  max-width:270px;
  color:#999;
  font-size:8px;
  line-height:1.45;
}

.reputation-v582-empty button{
  margin-top:8px;
  min-height:33px;
  padding:0 13px;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font:700 8px inherit;
  cursor:pointer;
}

.reputation-v582-loading{
  flex:1 1 auto;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#999;
  font-size:8px;
}

.reputation-v582-loading i{
  width:23px;
  height:23px;
  border:2px solid #EEE;
  border-top-color:#6B192A;
  border-radius:50%;
  animation:reputation-v582-spin .7s linear infinite;
}

@keyframes reputation-v582-spin{
  to{transform:rotate(360deg)}
}

/* Dark */
html[data-theme="dark"] .reputation-v582-scrim{
  background:rgba(0,0,0,.62);
}

html[data-theme="dark"] .reputation-v582-sheet{
  background:#121416;
  color:#F5F5F2;
  box-shadow:0 22px 68px rgba(0,0,0,.58);
}

html[data-theme="dark"] .reputation-v582-head{
  border-bottom-color:#30343A;
}

html[data-theme="dark"] .reputation-v582-close{
  background:#23262B;
  color:#BBC0C8;
}

html[data-theme="dark"] .reputation-v582-review-card{
  border-color:#34383F;
  background:#191B1F;
}

html[data-theme="dark"] .reputation-v582-review-person span,
html[data-theme="dark"] .reputation-v582-product,
html[data-theme="dark"] .reputation-v582-review-card time,
html[data-theme="dark"] .reputation-v582-empty span{
  color:#9298A2;
}

html[data-theme="dark"] .reputation-v582-review-card p{
  color:#B4B9C1;
}

html[data-theme="dark"] .reputation-v582-stars i{
  color:#454A52;
}

html[data-theme="dark"] .reputation-v582-stars i.filled{
  color:#6B192A;
}

html[data-theme="dark"] .reputation-v582-empty button{
  background:#F4F4F1;
  color:#111;
}

html[data-theme="dark"] .reputation-v582-loading i{
  border-color:#34383F;
  border-top-color:#6B192A;
}

/* Mobile/WebView: modal alto como na referência, com rolagem interna. */
@media(max-width:430px){
  .reputation-v582-sheet{
    top:50%;
    width:calc(100vw - 16px);
    max-height:min(76vh,650px);
    border-radius:17px;
  }

  .reputation-v582-content{
    max-height:min(76vh,650px);
  }

  .reputation-v582-list{
    padding-left:9px;
    padding-right:9px;
  }

  .reputation-v582-review-card{
    padding:9px 9px 8px;
  }
}

@media(max-width:350px){
  .reputation-v582-stars i{
    font-size:9px;
  }

  .reputation-v582-review-person strong{
    font-size:8px;
  }
}


/* =========================================================
   HF58.3 — Acessibilidade + Dark Mode
   ========================================================= */

/* Controles mais claros e realmente perceptíveis. */
.accessibility-card input[type="checkbox"][data-a11y-setting]{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  width:42px;
  height:24px;
  flex:0 0 42px;
  margin:0;
  border:1px solid #CBC7C0;
  border-radius:999px;
  background:#E9E7E2;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease;
}
.accessibility-card input[type="checkbox"][data-a11y-setting]::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:transform .16s ease;
}
.accessibility-card input[type="checkbox"][data-a11y-setting]:checked{
  border-color:#111;
  background:#111;
}
.accessibility-card input[type="checkbox"][data-a11y-setting]:checked::after{
  transform:translateX(18px);
}
.accessibility-card input[type="checkbox"][data-a11y-setting]:focus-visible{
  outline:3px solid rgba(124,58,237,.35);
  outline-offset:3px;
}

/* Dark real: nada de card branco com letras brancas. */
html[data-theme="dark"] .accessibility-page{
  color:#F4F4F1;
}

html[data-theme="dark"] .accessibility-page .source-local-head h2,
html[data-theme="dark"] .accessibility-page .source-local-head p{
  color:#F4F4F1!important;
}

html[data-theme="dark"] .accessibility-page .source-local-head p{
  color:#AEB4BD!important;
}

html[data-theme="dark"] .accessibility-card{
  border-color:#34383F;
  background:#191B1F;
  color:#F4F4F1;
}

html[data-theme="dark"] .accessibility-card label{
  border-bottom-color:#34383F;
}

html[data-theme="dark"] .accessibility-card strong{
  color:#F4F4F1!important;
}

html[data-theme="dark"] .accessibility-card small{
  color:#AEB4BD!important;
}

html[data-theme="dark"] .accessibility-card .btn.light,
html[data-theme="dark"] .accessibility-card [data-a11y-reset]{
  border:1px solid #3A3E45!important;
  background:#24272C!important;
  color:#F4F4F1!important;
}

html[data-theme="dark"] .accessibility-card input[type="checkbox"][data-a11y-setting]{
  border-color:#4A4F58;
  background:#30343A;
}

html[data-theme="dark"] .accessibility-card input[type="checkbox"][data-a11y-setting]::after{
  background:#D9DCE1;
}

html[data-theme="dark"] .accessibility-card input[type="checkbox"][data-a11y-setting]:checked{
  border-color:#F4F4F1;
  background:#F4F4F1;
}

html[data-theme="dark"] .accessibility-card input[type="checkbox"][data-a11y-setting]:checked::after{
  background:#111315;
}

html[data-theme="dark"] .accessibility-page .card.description{
  border-color:#34383F!important;
  background:#191B1F!important;
  color:#F4F4F1!important;
}

html[data-theme="dark"] .accessibility-page .card.description h3{
  color:#F4F4F1!important;
}

html[data-theme="dark"] .accessibility-page .card.description p{
  color:#C4C8CF!important;
}

/* Alto contraste precisa respeitar o tema escolhido.
   O CSS antigo forçava fundo branco mesmo quando o tema era dark. */
html[data-theme="dark"].a11y-high-contrast body,
html[data-theme="dark"] .a11y-high-contrast body{
  --fg:#FFFFFF;
  --body:#FFFFFF;
  --muted:#D8D8D8;
  --muted-dark:#F4F4F4;
  --muted-light:#C8C8C8;
  --border:#7A7A7A;
  --border-input:#A0A0A0;
  --bg:#000000;
  --card:#090909;
}

html[data-theme="dark"].a11y-high-contrast .app-shell,
html[data-theme="dark"].a11y-high-contrast .app-main,
html[data-theme="dark"] .a11y-high-contrast .app-shell,
html[data-theme="dark"] .a11y-high-contrast .app-main{
  background:#000!important;
  color:#FFF!important;
}

html[data-theme="dark"].a11y-high-contrast .card,
html[data-theme="dark"].a11y-high-contrast .accessibility-card,
html[data-theme="dark"].a11y-high-contrast .input,
html[data-theme="dark"].a11y-high-contrast input,
html[data-theme="dark"].a11y-high-contrast select,
html[data-theme="dark"].a11y-high-contrast textarea,
html[data-theme="dark"] .a11y-high-contrast .card,
html[data-theme="dark"] .a11y-high-contrast .accessibility-card,
html[data-theme="dark"] .a11y-high-contrast .input,
html[data-theme="dark"] .a11y-high-contrast input,
html[data-theme="dark"] .a11y-high-contrast select,
html[data-theme="dark"] .a11y-high-contrast textarea{
  border-color:#A8A8A8!important;
  background:#090909!important;
  color:#FFF!important;
}

html[data-theme="dark"].a11y-high-contrast .app-main p,
html[data-theme="dark"].a11y-high-contrast .app-main small,
html[data-theme="dark"].a11y-high-contrast .app-main label,
html[data-theme="dark"] .a11y-high-contrast .app-main p,
html[data-theme="dark"] .a11y-high-contrast .app-main small,
html[data-theme="dark"] .a11y-high-contrast .app-main label{
  color:#F1F1F1!important;
}

html[data-theme="dark"].a11y-high-contrast a:focus-visible,
html[data-theme="dark"].a11y-high-contrast button:focus-visible,
html[data-theme="dark"].a11y-high-contrast input:focus-visible,
html[data-theme="dark"] .a11y-high-contrast a:focus-visible,
html[data-theme="dark"] .a11y-high-contrast button:focus-visible,
html[data-theme="dark"] .a11y-high-contrast input:focus-visible{
  outline-color:#FFF!important;
}

/* Texto maior na própria página de acessibilidade. */
.a11y-large-text .accessibility-page .source-local-head h2{
  font-size:23px!important;
}
.a11y-large-text .accessibility-card strong{
  font-size:16px!important;
}
.a11y-large-text .accessibility-card small{
  font-size:13px!important;
}
.a11y-large-text .accessibility-card label{
  min-height:82px!important;
}

/* Reduzir movimento também elimina a animação dos switches. */
.a11y-reduced-motion .accessibility-card input[type="checkbox"][data-a11y-setting],
.a11y-reduced-motion .accessibility-card input[type="checkbox"][data-a11y-setting]::after{
  transition:none!important;
}

/* Refinamento Lote 3 — acompanhamento de suporte */
.support-ticket-list{display:grid;gap:8px;padding:0 14px 18px}.support-ticket-row{text-decoration:none;color:inherit;display:flex;align-items:center;gap:10px;margin:0!important}.support-ticket-row h3{margin:0 0 4px;font-size:14px}.support-ticket-row p{margin:0;font-size:10px;color:#8a817b}.support-ticket-source{padding:14px}.support-thread-back{display:inline-flex;align-items:center;gap:5px;color:#706862;text-decoration:none;font-size:12px;font-weight:700;margin-bottom:14px}.support-thread-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border:1px solid #ece8e3;border-radius:18px;background:#fff}.support-thread-title span{font-size:10px;color:#6B192A;font-weight:800}.support-thread-title h2{font-size:20px;margin:4px 0}.support-thread-title p{font-size:11px;color:#8a817b;margin:0}.support-app-thread{display:grid;gap:10px;padding:14px 0}.support-app-message{padding:13px 14px;border-radius:17px;border:1px solid #ece8e3;background:#fff}.support-app-message.admin{background:#fff5f2;border-color:#f7d6ce}.support-app-message.user{background:#f7f6f3}.support-app-message>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.support-app-message strong{font-size:12px}.support-app-message small{font-size:9px;color:#9a928c}.support-app-message p{font-size:14px;line-height:1.58;margin:0;color:#25211f}.support-app-reply{padding:14px;border:1px solid #ece8e3;border-radius:18px;background:#fff}.support-app-reply .textarea{min-height:110px;font-size:14px;line-height:1.55;margin:6px 0 9px}.support-closed-note{padding:13px 14px;border-radius:14px;background:#f0eee9;color:#746c66;font-size:12px;line-height:1.5}@media(max-width:640px){.support-thread-title{flex-direction:column}.support-app-message>div{align-items:flex-start;flex-direction:column;gap:2px}}

/* ===== ALLUZZI Story Hotfix — experiência tipo Instagram ===== */
.profile-mini .profile-avatar{width:58px!important;height:58px!important;bottom:6px!important;left:8px!important;border-width:3px!important}
.profile-mini>strong{margin-top:10px!important}
.profile-mini.has-story .profile-avatar{box-shadow:none!important;overflow:visible;background-clip:padding-box}
.profile-mini.has-story .profile-avatar::before{content:"";position:absolute;inset:-6px;border-radius:999px;pointer-events:none}
.profile-mini.story-unseen .profile-avatar::before{background:linear-gradient(135deg,#ff7a00,#ff2d55 50%,#8a3ffc);padding:3px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.profile-mini.story-seen .profile-avatar::before{border:3px solid #777}
.profile-mini .profile-avatar img,.profile-mini .profile-avatar b{position:relative;z-index:1;border-radius:999px;overflow:hidden}
.story-chip.has-story>span{box-shadow:none;position:relative;overflow:visible;border-color:transparent}
.story-chip.has-story>span::before{content:"";position:absolute;inset:-5px;border-radius:999px;pointer-events:none}
.story-chip.story-unseen>span::before{background:linear-gradient(135deg,#ff7a00,#ff2d55 50%,#8a3ffc);padding:3px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.story-chip.story-seen>span::before{border:3px solid #777}
.story-chip.has-story>span img{border-radius:999px;position:relative;z-index:1}

.story-composer{position:fixed;inset:0;z-index:5000;background:#000;display:none;align-items:center;justify-content:center}
.story-composer.open{display:flex}.story-composer form{width:100%;height:100%;max-width:520px;margin:0;background:#000}
.story-camera-stage{position:relative;width:100%;height:100%;overflow:hidden;background:#050505}
.story-live,.story-preview-image,.story-preview-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.story-live{transform:none}.story-camera-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(0,0,0,.34),transparent 18%,transparent 68%,rgba(0,0,0,.62))}
.story-camera-top{position:absolute;z-index:8;left:0;right:0;top:0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:max(14px,env(safe-area-inset-top)) 14px 10px;color:#fff}.story-camera-top strong{text-align:center;font-size:15px}.story-close,.story-flip{width:40px;height:40px;border:0;border-radius:999px;background:rgba(0,0,0,.38);color:#fff;display:grid;place-items:center;font-size:28px;text-decoration:none}.story-flip{font-size:0}
.story-camera-controls{position:absolute;z-index:8;left:0;right:0;bottom:max(20px,env(safe-area-inset-bottom));display:grid;gap:13px;justify-items:center;color:#fff}.story-mode-switch{display:flex;gap:18px}.story-mode-switch button{border:0;background:transparent;color:rgba(255,255,255,.65);font-size:11px;font-weight:800;letter-spacing:.1em}.story-mode-switch button.active{color:#fff}.story-capture-row{width:100%;display:grid;grid-template-columns:1fr 84px 1fr;align-items:center;justify-items:center}.story-gallery,.story-retry-camera{width:46px;height:46px;border:1px solid rgba(255,255,255,.4);border-radius:14px;background:rgba(0,0,0,.3);color:#fff;display:grid;place-items:center}.story-shutter{width:78px;height:78px;border:4px solid #fff;border-radius:999px;background:transparent;padding:5px}.story-shutter span{display:block;width:100%;height:100%;border-radius:999px;background:#fff;transition:.2s}.story-shutter.recording span{border-radius:12px;transform:scale(.5);background:#ff3b30}.story-camera-controls>small{font-size:11px;color:rgba(255,255,255,.78)}
.story-camera-error{position:absolute;z-index:10;left:18px;right:18px;top:82px;padding:12px 14px;border-radius:14px;background:rgba(185,28,28,.92);color:#fff;font-size:12px;line-height:1.4;text-align:center}
.story-preview-panel{position:absolute;z-index:10;left:0;right:0;bottom:0;padding:18px 16px max(18px,env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.84) 24%,rgba(0,0,0,.96));padding-top:78px}.story-preview-fields{display:grid;gap:8px}.story-preview-panel .input,.story-preview-panel .select{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important;backdrop-filter:blur(12px)}.story-preview-panel .select option{color:#111}.story-preview-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:8px;margin-top:10px}.story-preview-actions .btn{min-height:46px}.story-text-overlay{position:absolute;z-index:7;left:50%;top:48%;transform:translate(-50%,-50%);max-width:86%;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.28);color:#fff;font-size:25px;line-height:1.15;font-weight:800;text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.75);white-space:pre-wrap;word-break:break-word}

.story-viewer-fullscreen{position:fixed;inset:0;z-index:4500;margin:auto;width:min(100%,520px);height:100dvh;background:#000;color:#fff;overflow:hidden}.story-viewer-media{position:absolute;inset:0}.story-viewer-media>img,.story-viewer-media>video{width:100%;height:100%;object-fit:contain;background:#000}.story-viewer-progress{position:absolute;z-index:8;left:10px;right:10px;top:max(8px,env(safe-area-inset-top));display:flex;gap:4px}.story-viewer-progress i{height:3px;flex:1;border-radius:99px;background:rgba(255,255,255,.35)}.story-viewer-progress i.active,.story-viewer-progress i.done{background:#fff}.story-viewer-top{position:absolute;z-index:9;top:max(16px,env(safe-area-inset-top));left:12px;right:12px;display:grid;grid-template-columns:38px auto 1fr 40px;align-items:center;gap:8px}.story-viewer-avatar{width:36px;height:36px;border:2px solid #fff;border-radius:999px;display:grid;place-items:center;overflow:hidden;background:#222}.story-viewer-avatar img{width:100%;height:100%;object-fit:cover}.story-viewer-top strong{font-size:12px}.story-viewer-top small{font-size:10px;color:rgba(255,255,255,.7)}.story-viewer-top>a{width:38px;height:38px;border-radius:999px;background:rgba(0,0,0,.3);display:grid;place-items:center;color:#fff;text-decoration:none;font-size:28px}.story-viewer-text{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);max-width:84%;padding:9px 13px;border-radius:12px;background:rgba(0,0,0,.3);font-size:24px;font-weight:800;text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.7)}.story-nav{position:absolute;z-index:6;top:70px;bottom:90px;width:38%}.story-prev{left:0}.story-next{right:0}.story-product-link{position:absolute;z-index:9;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);padding:11px 18px;border-radius:999px;background:#fff;color:#111;text-decoration:none;font-size:12px;font-weight:800}
@media(min-width:600px){.story-composer{background:rgba(0,0,0,.92)}.story-composer form,.story-viewer-fullscreen{border-radius:24px;overflow:hidden;height:min(92vh,900px)}}

/* ALLUZZI Story Viewer v3 — progresso temporal e Story no perfil público */
.story-viewer-progress i{position:relative;overflow:hidden;background:rgba(255,255,255,.34)!important}
.story-viewer-progress i b{position:absolute;inset:0 auto 0 0;width:0;background:#fff;border-radius:99px;display:block}
.story-viewer-progress i.done b{width:100%}
.story-viewer-progress i.active{background:rgba(255,255,255,.34)!important}
.profile-source-avatar.profile-has-story{position:relative;overflow:visible!important;text-decoration:none;color:inherit}
.profile-source-avatar.profile-has-story::before{content:"";position:absolute;inset:-6px;border-radius:999px;pointer-events:none}
.profile-source-avatar.profile-story-unseen::before{background:linear-gradient(135deg,#ff7a00,#ff2d55 50%,#8a3ffc);padding:3px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.profile-source-avatar.profile-story-seen::before{border:3px solid #8a8a8a}
.profile-source-avatar.profile-has-story>img{position:relative;z-index:1;border-radius:999px}
.profile-source-avatar.profile-has-story .profile-story-add{z-index:4}

/* ALLUZZI Story Interactions v4 — visualizações e resposta no chat */
.story-reply-bar{position:absolute;z-index:14;left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:center}
.story-reply-bar input[name="message"]{height:46px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:rgba(0,0,0,.28);backdrop-filter:blur(14px);color:#fff;padding:0 17px;font-size:13px;outline:none}
.story-reply-bar input[name="message"]::placeholder{color:rgba(255,255,255,.85)}
.story-reply-bar input[name="message"]:focus{border-color:#fff;background:rgba(0,0,0,.48)}
.story-reply-bar button{width:44px;height:44px;border:0;border-radius:999px;background:#fff;color:#111;display:grid;place-items:center}
.story-viewer-fullscreen:has(.story-reply-bar) .story-product-link{bottom:max(72px,calc(env(safe-area-inset-bottom) + 72px))}
.story-view-count{position:absolute;z-index:14;left:14px;bottom:max(18px,env(safe-area-inset-bottom));min-height:42px;border:0;border-radius:999px;background:rgba(0,0,0,.42);backdrop-filter:blur(12px);color:#fff;padding:0 14px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750}
.story-view-count svg{width:17px;height:17px}
.story-viewers-sheet[hidden]{display:none!important}.story-viewers-sheet{position:absolute;z-index:40;inset:0;display:flex;align-items:flex-end}.story-viewers-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.54)}
.story-viewers-sheet>section{position:relative;z-index:1;width:100%;max-height:68%;overflow:auto;background:var(--surface,#fff);color:var(--fg,#111);border-radius:24px 24px 0 0;padding:8px 14px max(18px,env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(0,0,0,.28)}
.story-viewers-sheet header{position:sticky;top:0;z-index:2;background:inherit;display:flex;align-items:center;justify-content:space-between;padding:10px 4px 12px;border-bottom:1px solid var(--border,#ececec)}.story-viewers-sheet header strong{font-size:15px}.story-viewers-sheet header button{width:36px;height:36px;border:0;border-radius:999px;background:var(--bg,#f5f5f5);font-size:24px;color:inherit}
.story-viewers-list>a{display:flex;align-items:center;gap:11px;padding:11px 4px;text-decoration:none;color:inherit;border-bottom:1px solid var(--border,#eee)}.story-viewers-list .avatar{width:44px;height:44px;overflow:hidden}.story-viewers-list .avatar img{width:100%;height:100%;object-fit:cover}.story-viewers-list a div{display:grid;gap:3px}.story-viewers-list a strong{font-size:13px}.story-viewers-list a small{font-size:10px;color:var(--muted,#888)}.story-viewers-empty{padding:24px 8px;text-align:center;color:var(--muted,#888);font-size:12px}
.chat-story-reply{margin:10px 0;display:grid;gap:6px}.chat-story-reply.mine{justify-items:end}.chat-story-reply.theirs{justify-items:start}.chat-story-ref{width:min(78%,280px);display:grid;grid-template-columns:54px 1fr;gap:9px;align-items:center;padding:7px;border:1px solid var(--border);border-radius:14px;background:var(--surface,#fff);text-decoration:none;color:inherit}.chat-story-ref img,.chat-story-ref video,.chat-story-ref>span{width:54px;height:68px;border-radius:10px;object-fit:cover;background:#111;display:grid;place-items:center}.chat-story-ref div{min-width:0;display:grid;gap:3px}.chat-story-ref small{font-size:9px;color:var(--muted);font-weight:700}.chat-story-ref strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-story-reply>.bubble{margin:0;max-width:min(78%,360px)}
html[data-theme="dark"] .story-viewers-sheet>section,html[data-theme="dark"] .chat-story-ref{background:#17181b;color:#fff}
@media(min-width:600px){.story-viewers-sheet>section{border-radius:24px 24px 0 0}.story-reply-bar{bottom:18px}}

/* ALLUZZI Story V12 — playback acessível e reversível */
.story-viewer-fullscreen .story-play-fallback{position:absolute;z-index:21;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(245,241,238,.45);border-radius:6px;background:rgba(38,6,14,.92);color:#F5F1EE;padding:13px 18px;min-height:44px;font:700 14px/1.3 Overpass,system-ui,sans-serif;white-space:nowrap;max-width:calc(100% - 32px);box-shadow:0 8px 30px rgba(0,0,0,.5)}
.story-viewer-fullscreen .story-sound-toggle{position:absolute;z-index:16;right:14px;bottom:max(76px,calc(env(safe-area-inset-bottom) + 76px));border:1px solid rgba(245,241,238,.45);border-radius:6px;background:rgba(38,6,14,.8);color:#F5F1EE;padding:9px 12px;min-height:40px;font:700 12px/1.2 Overpass,system-ui,sans-serif}
.story-viewer-fullscreen .story-media-failed{position:absolute;z-index:23;left:14px;right:14px;top:43%;padding:14px;background:rgba(38,6,14,.94);color:#F5F1EE;border:1px solid rgba(245,241,238,.35);border-radius:6px;text-align:center;font:600 13px/1.4 Overpass,system-ui,sans-serif}
.story-viewer-fullscreen .story-play-fallback[hidden],.story-viewer-fullscreen .story-sound-toggle[hidden]{display:none!important}
