/* Review & Publish / Message Preview layout (Rule 20).
   Loaded after the monolith <style> so these selectors win.
   Preview is the majority column; nothing clips; tabs/toggle stay readable. */

.wtb-review-grid {
  display: grid;
  grid-template-columns: minmax(0, min(340px, 36%)) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.wtb-review-left,
.wtb-review-right {
  min-width: 0;
  max-width: 100%;
}
.wtb-review-left > .card,
.wtb-review-right > .card,
.ql-plat-previews.card {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.ql-plat-previews > .card-header {
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
}
.ql-plat-previews > .card-header .card-header-title {
  flex: 1 1 auto;
  min-width: 0;
}
.ql-plat-previews > .card-header .ql-device-toggle {
  margin-left: auto;
}

.ql-device-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.ql-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ql-plat-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.ql-plat-preview-tabs::-webkit-scrollbar {
  height: 6px;
  display: block;
}
.ql-plat-preview-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.ql-plat-preview-tab {
  flex: 0 0 auto !important;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: max-content;
  width: max-content;
  max-width: none;
  justify-content: flex-start;
  box-sizing: border-box;
  /* Hidden + clip (never ellipsis): the tab box is the full word, the
     strip scrolls. overflow:visible made off-screen tabs look in-view. */
  overflow: hidden;
  text-overflow: clip !important;
}
.ql-plat-preview-tab,
.ql-plat-preview-tab * {
  text-overflow: clip !important;
}
.ql-plat-preview-tab svg,
.ql-plat-preview-tab .ql-plat-mark {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ql-plat-preview-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .ql-plat-preview-tabs::-webkit-scrollbar {
    height: 6px;
    display: block;
  }
  .ql-plat-preview-tab {
    flex: 0 0 auto !important;
    padding: 10px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip !important;
    min-width: max-content;
    width: max-content;
    max-width: none;
  }
  .ql-plat-preview-tab,
  .ql-plat-preview-tab * {
    text-overflow: clip !important;
  }
}

.ql-device-stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px 12px 20px;
  overflow: visible;
}
.ql-device-stage[data-device="mobile"] .ql-device {
  width: min(303px, calc(100% - 20px));
  max-width: 100%;
  box-sizing: border-box;
}
.ql-device-stage[data-device="desktop"] .ql-device {
  width: min(640px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.ql-device-stage[data-device="desktop"] .ql-device-base {
  display: none;
}

#page-create-quick-review > .page-content,
#page-create-wtb-review > .page-content {
  width: 100%;
  max-width: min(1280px, 100%);
  box-sizing: border-box;
}

/* Rule 14: disconnected dests never look selected-ready. */
.pub-channel-row.is-offline {
  opacity: 0.7;
}
.pub-channel-row.is-offline.selected,
.pub-channel-row.is-offline:hover {
  background: transparent;
}
.pub-channel-row.is-offline .pub-channel-check {
  background: transparent !important;
  border-color: var(--border) !important;
  box-shadow: none;
}
.pub-channel-row.is-offline .pub-channel-check svg {
  display: none !important;
}

/* Rule 14: a Connect / disconnected Channels tile is never a selected publish path. */
.ql-pub-bubble.unavailable,
.ql-pub-bubble.unavailable.active,
.ql-pub-bubble.unavailable.partial,
.ql-pub-bubble.is-disconnected {
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
  box-shadow: none;
}
.ql-pub-bubble.unavailable .ql-pub-bubble-check,
.ql-pub-bubble.is-disconnected .ql-pub-bubble-check {
  display: none !important;
}
.ql-pub-bubble.unavailable .ql-pub-bubble-icon,
.ql-pub-bubble.is-disconnected .ql-pub-bubble-icon {
  box-shadow: none;
  opacity: .55;
}
.pub-surface .ql-pub-bubble.unavailable .ql-pub-bubble-icon,
.pub-surface .ql-pub-bubble.is-disconnected .ql-pub-bubble-icon {
  border-color: var(--border);
  box-shadow: none;
}

/* Frost only covers the active Message Preview tab — connected tabs stay live. */
.ql-plat-preview-panel:not(.active) .ql-preview-frost,
.ql-plat-preview-panel:not(.active) .ql-preview-example-label,
.ql-plat-preview-panel:not(.active) .ql-preview-example-dismiss {
  display: none;
}

/* Honest "See example" peek — frosted Chrono24 / Facebook / Instagram / eBay / Website.
   Tap frost or See example → unfrost with an Example label → re-frost after 2.5s. */
.ql-preview-frost-wrap[data-peek-plat] .ql-preview-frost {
  cursor: pointer;
  flex-direction: column;
  gap: 10px;
}
.ql-preview-frost-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ql-preview-frost {
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}
.ql-preview-frost span {
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
}
.ql-preview-frost-peek {
  appearance: none;
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.ql-preview-frost-peek:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.ql-preview-example-label {
  position: static;
  max-width: none;
  /* Literals only — var(--white) is dark ink on parchment / remodel-2 day. */
  background: #111111 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid #111111 !important;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  pointer-events: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.ql-preview-example-dismiss {
  position: static;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  padding: 0;
  line-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  cursor: pointer;
}
.ql-preview-example-dismiss svg {
  width: 10px;
  height: 10px;
}
.ql-preview-frost-wrap.is-peeking > .ql-preview-frost {
  display: none !important;
}

/* Official brand chips (grey, 22px). Website is a system globe, not a PNG. */
.ql-plat-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 auto;
  line-height: 0;
}
.ql-plat-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  display: block;
}
.ql-plat-mark-system svg {
  width: 18px;
  height: 18px;
  color: #555;
}
.ql-plat-preview-tab .ql-plat-mark { margin-right: 6px; }
.ql-pub-bubble-icon .ql-plat-mark img,
.ql-pub-bubble-icon .ql-plat-mark-system svg { width: 21px; height: 21px; }

/* Shared Browse tile (Rule 30) — one card for every platform grid. */
.pp-browse-grid,
.c24-grid.pp-browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ebay-preview .pp-browse-grid {
  padding: 0 var(--space-lg) var(--space-lg);
}
.pp-tile,
.c24-card,
.pp-prod {
  container-type: inline-size;
}
.pp-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pp-tile-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 72px;
  background: #f3efe6;
  overflow: hidden;
  flex: 0 0 auto;
}
.pp-tile-photo .c24-ico-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
}
/* Absolute fill beats the monolith `.page-content img { height: auto }`
   rule so EXAMPLE tiles cannot collapse to empty beige boxes. */
.pp-tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}
.pp-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}
.pp-tile-title,
.c24-card-title,
.pp-prod-title {
  font-size: clamp(11px, 8cqi, 14px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: clip;
  /* break-word keeps "Omega" / "Rolex" intact; anywhere painted "Om eg…". */
  overflow-wrap: break-word;
  word-break: normal;
  min-height: 2.7em;
}

/* A6 — preview titles / chat labels never paint an ellipsis. */
.ql-plat-previews .pp-app-title,
.ql-plat-previews .pp-chat-body b,
.ql-plat-previews .pp-chat-body small,
.ql-plat-previews .tg-msg-body,
.ql-plat-previews .ebay-name,
.ql-plat-previews .c24-foot-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* C24 / Browse sublines are not A6 titles — clip without an ellipsis. */
.ql-plat-previews .c24-card-sub,
.ql-plat-previews .c24-sub,
.ql-plat-previews .pp-tile-sub,
.ql-plat-previews .c24-btn span {
  text-overflow: clip;
}

.ebay-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #767676;
}

/*
  Phone viewport × Mobile toggle shrinks the iPhone to leftover height
  (~352px → ~172px wide, ~154px glass). 2-up cards are then ~50px and
  even 11px titles crush. Computer × Mobile glass is ~271px (~105px
  cards) and stays readable. Query the Browse pane (not the tile) and
  drop to 1-up below 240px so titles match that quality. Desktop
  MacBook 3-up / phone-width Desktop 2-up stay more specific.
*/
.c24-view-grid,
.pp-view-list {
  container-type: inline-size;
  container-name: pp-browse;
}
@container pp-browse (max-width: 240px) {
  .pp-browse-grid,
  .c24-grid,
  .c24-grid.pp-browse-grid,
  .pp-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pp-tile-sub {
  font-size: var(--text-xs);
  color: #555;
  line-height: 1.35;
  margin-top: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: clip;
}
.pp-tile-price {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #1a1a1a;
  margin-top: var(--space-sm);
}
.pp-tile-ship {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: #777;
}

/*
  Rule 31 — measured in Chrome against the real phone DOM (not guessed):

  1. .ql-device-stage is a flex column. Inner Browse content stretched the
     iPhone to 1244px (should be 620 = 10 + 600 + 10). min-height:0 on the
     device does not cap that — lock the shared device height instead.
  2. Monolith panel :has(C24/pp) is specificity 0,3,1. A shared :has(*) is
     only 0,2,1 and loses. Beat it with a doubled panel class + any
     *-preview child — still one rule for every platform.
  3. Preview roots must fill the glass (min-height/height/max-height 100%).
     min-height:0 shrivels Chrono24 Browse to ~149px.
  4. Do not overflow:hidden the stage (clips the bezel / side buttons).
*/
.ql-device-stage .ql-device {
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}
.ql-device-stage[data-device="mobile"] .ql-device {
  height: 620px;
  max-height: 620px;
  aspect-ratio: 1350 / 2760;
  background-image: url('/device-frames/iPhone-16-Pro-Black-Titanium-Portrait.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.ql-device-stage[data-device="desktop"] .ql-device {
  height: auto;
  max-height: none;
  aspect-ratio: 4260 / 2840;
  background-image: url('/device-frames/MacBook-Pro-16-Space-Black.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.ql-device-stage[data-device="mobile"] .ql-device-screen {
  position: absolute;
  left: 5.333%;
  top: 7.971%;
  width: 89.333%;
  height: 89.529%;
  max-height: 89.529%;
  min-height: 0;
  overflow: hidden;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen {
  position: absolute;
  left: 9.44%;
  top: 12.92%;
  width: 81.13%;
  height: 76.41%;
  max-height: 76.41%;
  min-height: 0;
  overflow: hidden;
}

/* Desktop glass is wide enough for a 3-up Browse grid. Phone glass stays 2-up. */
.ql-device-stage[data-device="desktop"] .pp-browse-grid,
.ql-device-stage[data-device="desktop"] .c24-grid,
.ql-device-stage[data-device="desktop"] .pp-grid2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .wa-msg-bubble {
  max-width: min(62%, 420px);
}
/* Phone-width height is the shared 768px fit below — do not lock 540px here. */

.ql-device-screen > div {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.ql-device-screen .ql-plat-preview-panel.active,
.ql-device-screen .ql-plat-preview-panel.ql-plat-preview-panel.active:has([class$="-preview"]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ql-device-screen .c24-preview,
.ql-device-screen .pp-preview,
.ql-device-screen .ebay-preview,
.ql-device-screen .ig-preview,
.ql-device-screen .fb-preview,
.ql-device-screen .web-preview,
.ql-device-screen .shopify-preview,
.ql-device-screen .wa-preview-wrap,
.ql-device-screen .tg-preview-wrap,
.ql-device-screen .tg-preview-scale,
.ql-device-screen .ql-preview-frost-wrap {
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ql-device-screen .c24-view-grid,
.ql-device-screen .pp-view-list {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Inactive Browse/Details panes must not paint or stretch the stage. */
.c24-preview[data-view="grid"] .c24-view-details,
.pp-preview[data-view="list"] .pp-view-details {
  display: none !important;
}
.c24-preview[data-view="details"] .c24-view-grid,
.pp-preview[data-view="details"] .pp-view-list {
  display: none !important;
}

@media (max-width: 960px) {
  .wtb-review-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/*
  Phone-width rebuild lives in review-publish-mobile.css (A1–A6).
  This block only keeps the shared tab-row scroll affordance so the
  layout sheet still documents Rule 32 for desktop-narrow wrap.
*/
@media (max-width: 768px) {
  /* One tab row + a visible thin scrollbar (Rule 32). Wrap is desktop-only.
     The strip — not the page — is the only horizontal scroller. */
  .ql-plat-previews,
  .ql-plat-previews.card {
    min-width: 0;
    max-width: 100%;
  }
  .ql-plat-preview-tabs,
  html[data-remodel="2"] .ql-plat-preview-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
  }
  .ql-plat-preview-tabs::-webkit-scrollbar,
  html[data-remodel="2"] .ql-plat-preview-tabs::-webkit-scrollbar {
    height: 6px;
    display: block;
  }
  .ql-plat-preview-tab,
  html[data-remodel="2"] .ql-plat-preview-tab {
    flex: 0 0 auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: max-content;
    width: max-content;
    max-width: none;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: clip !important;
  }
  .ql-plat-preview-tab,
  .ql-plat-preview-tab *,
  html[data-remodel="2"] .ql-plat-preview-tab,
  html[data-remodel="2"] .ql-plat-preview-tab * {
    text-overflow: clip !important;
  }

  #ql-review-content,
  #wtb-review-content {
    padding-bottom: 8px;
  }
  #page-create-quick-review .inv-wiz-bottom,
  #page-create-wtb-review .inv-wiz-bottom {
    flex: 0 0 auto;
    padding-bottom: 8px !important;
  }
}

/* Telegram Message Preview — Claude artifact (Hal 2026-09-07).
   Conversation view. Grey .ph PHOTO tiles are deliberate — no watch graphic.
   Logical canvases: Mobile 402×874, Desktop 1512×982.
   Fit the whole canvas into the glass (artifact .fit-ph / .fit-mac).
   scale() needs a unitless number: 100cqw / 402px — NOT 100cqw / 402
   (a length). The length form was ignored, so PHOTO filled the MacBook
   glass and the caption sat below the fold. */
.ql-device-screen:has(.tg-preview-scale) {
  background: #d9e6dc;
}
.ql-device-screen .tg-preview-scale {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d9e6dc;
  container-type: size;
  container-name: tg-glass;
  box-sizing: border-box;
}
.ql-device-screen .tg-preview-scale .tg-preview-wrap {
  --tg-logical-w: 402px;
  --tg-logical-h: 874px;
  --tg-fit: min(
    calc(100cqw / var(--tg-logical-w)),
    calc(100cqh / var(--tg-logical-h))
  );
  display: flex;
  flex-direction: row;
  padding: 0;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--tg-logical-w);
  min-width: var(--tg-logical-w);
  max-width: var(--tg-logical-w);
  height: var(--tg-logical-h);
  min-height: var(--tg-logical-h);
  max-height: var(--tg-logical-h);
  overflow: hidden;
  background: #ffffff;
  background-image: none;
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color: #222;
  transform: translateX(-50%) scale(var(--tg-fit));
  transform-origin: top center;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-scale .tg-preview-wrap,
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap {
  --tg-logical-w: 1512px;
  --tg-logical-h: 982px;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-scale {
  min-height: 280px;
}
.ql-device-screen .tg-preview-sidebar,
.ql-device-stage[data-device="mobile"] .ql-device-screen .tg-preview-sidebar {
  display: none;
  flex: 0 0 340px;
  width: 340px;
  min-width: 0;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #d8dce0;
  box-sizing: border-box;
  overflow: hidden;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-sidebar {
  display: flex;
  flex-direction: column;
  max-width: min(340px, 36%);
  flex-basis: min(340px, 36%);
}
.ql-device-screen .tg-side-search {
  flex: 0 0 auto;
  margin: 12px 12px 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f3f4;
  color: #8b9398;
  font-size: 14px;
  line-height: 20px;
}
.ql-device-screen .tg-side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 62px;
  box-sizing: border-box;
}
.ql-device-screen .tg-side-row.is-selected {
  background: #3390ec;
  color: #fff;
}
.ql-device-screen .tg-side-av {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3390ec;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}
.ql-device-screen .tg-side-row.is-selected .tg-side-av {
  background: rgba(255, 255, 255, 0.22);
}
.ql-device-screen .tg-side-body {
  flex: 1 1 auto;
  min-width: 0;
}
.ql-device-screen .tg-side-body b,
.ql-device-screen .tg-side-body small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ql-device-screen .tg-side-body b {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}
.ql-device-screen .tg-side-body small {
  margin-top: 2px;
  font-size: 13px;
  color: #8b9398;
  line-height: 16px;
}
.ql-device-screen .tg-side-row.is-selected .tg-side-body small,
.ql-device-screen .tg-side-row.is-selected .tg-side-time {
  color: rgba(255, 255, 255, 0.82);
}
.ql-device-screen .tg-side-time {
  flex: 0 0 auto;
  font-size: 12px;
  color: #8b9398;
}
.ql-device-screen .tg-preview-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #d9e6dc;
}
.ql-device-screen .tg-preview-wrap .preview-tg-header {
  flex: 0 0 56px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 10px;
  gap: 8px;
  background: #f9f9f9;
  color: #000;
  box-sizing: border-box;
  border-bottom: 1px solid #e6e6e6;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .preview-tg-header {
  background: #ffffff;
}
.ql-device-screen .tg-preview-wrap .tg-head-back,
.ql-device-screen .tg-preview-wrap .tg-head-search,
.ql-device-screen .tg-preview-wrap .tg-head-menu {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #3390ec;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ql-device-screen .tg-preview-wrap .tg-head-back svg,
.ql-device-screen .tg-preview-wrap .tg-head-search svg,
.ql-device-screen .tg-preview-wrap .tg-head-menu svg {
  width: 22px;
  height: 22px;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-head-back {
  display: none;
}
.ql-device-stage[data-device="mobile"] .ql-device-screen .tg-head-menu {
  display: none;
}
.ql-device-screen .tg-preview-wrap .preview-wa-avatar,
.ql-device-screen .tg-preview-wrap .tg-head-av {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #3390ec;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-head-av {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}
.ql-device-screen .tg-preview-head-text {
  flex: 1 1 auto;
  min-width: 0;
}
.ql-device-screen .tg-preview-wrap .preview-wa-name {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ql-device-screen .tg-preview-wrap .preview-wa-sub {
  color: #8e8e93;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .preview-wa-sub {
  color: #8b9398;
  font-size: 13px;
}
.ql-plat-previews .preview-wa-name,
.ql-plat-previews .preview-wa-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.ql-device-screen .tg-preview-wrap .tg-preview-chat-bg {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  background-color: #d9e6dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 0L48 24 24 48 0 24Z' fill='none' stroke='%23c5d4c9' stroke-width='0.7'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 8px;
  gap: 4px;
  box-sizing: border-box;
}
.ql-device-screen .tg-preview-wrap .tg-preview-bubble,
.ql-device-screen .tg-preview-wrap .tg-msg-bubble {
  margin: 0;
  border-radius: 12px;
  max-width: 78%;
  width: auto;
  background: #ffffff;
  color: #222;
  flex: 0 0 auto;
  align-self: flex-start;
  overflow: hidden;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.13);
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-msg-bubble {
  max-width: 440px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-post {
  width: 78%;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-msg-post {
  width: min(440px, 100%);
  max-width: 440px;
}
/* Grey PHOTO tiles (A5). Pixel floors — do not size with cqh.
   .tg-preview-chat-bg is container-type:size + height:auto. On the
   phone×Desktop flat thumb the block size is indefinite, so 52cqh → 0
   and height:min(296px, 52cqh) collapses the tile. */
.ql-device-screen .tg-preview-wrap .ph {
  width: 100%;
  height: 214px;
  min-height: 214px;
  border-radius: 12px 12px 0 0;
  background: radial-gradient(circle at 50% 42%, #ececee 0%, #d8d8dc 62%, #cfd0d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: #b0b0b6;
  box-sizing: border-box;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .ph {
  width: 100%;
  max-width: 440px;
  height: 296px;
  min-height: 296px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-body,
.ql-device-screen .tg-preview-wrap .wa-preview-bubble-text {
  color: #222;
  white-space: pre-wrap;
  overflow: visible;
  text-overflow: clip;
}
.ql-device-screen .tg-preview-wrap .tg-msg-text .tg-msg-body {
  padding: 8px 10px 6px;
  font-size: 16px;
  line-height: 21px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-cap {
  padding: 8px 10px 6px;
  font-size: 16px;
  line-height: 21px;
  text-align: center;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-msg-text .tg-msg-body,
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-msg-cap {
  font-size: 15px;
  line-height: 20px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-line {
  font-size: inherit;
  line-height: inherit;
}
.ql-device-screen .tg-preview-wrap .tg-msg-price b {
  font-weight: 700;
}
.ql-device-screen .tg-preview-wrap .tg-msg-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  line-height: 14px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c5c5c;
}
.ql-device-screen .tg-preview-wrap .tg-msg-footer,
.ql-device-screen .tg-preview-wrap .wa-preview-bubble-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 8px 6px;
  color: #8e8e93;
}
.ql-device-screen .tg-msg-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #8e8e93;
  font-size: 12px;
}
.ql-device-screen .tg-msg-views svg {
  width: 12px;
  height: 12px;
}
.ql-device-screen .tg-preview-wrap .tg-msg-time {
  font-size: 12px;
  color: #8e8e93;
}
.ql-device-screen .tg-preview-wrap .tg-msg-ava {
  display: none;
  width: 22px;
  height: 22px;
  margin-right: auto;
  border-radius: 50%;
  background: #3390ec;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-wrap .tg-msg-post .tg-msg-ava {
  display: flex;
}
.ql-device-screen .tg-preview-composer {
  flex: 0 0 62px;
  height: 62px;
  min-height: 62px;
  max-height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
  box-sizing: border-box;
}
.ql-device-stage[data-device="desktop"] .ql-device-screen .tg-preview-composer {
  flex-basis: 66px;
  height: 66px;
  min-height: 66px;
  max-height: 66px;
}
.ql-device-screen .tg-comp-field {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #f1f3f4;
  color: #8e8e93;
  font-size: 16px;
  line-height: 36px;
}
.ql-device-screen .tg-comp-ico {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ql-device-screen .tg-comp-ico svg {
  width: 22px;
  height: 22px;
}
.ql-device-stage[data-device="mobile"] .ql-device-screen .tg-comp-emoji {
  display: none;
}
