/* Yolly AI məsləhətçi — tam ekran söhbət tətbiqi.
 *
 * Bütün siniflər `yc-` prefikslidir: layout.html-in ana səhifə üçün yazılmış
 * .chat/.thread/.msg üslubu ilə toqquşmasın. Rəng/şrift layout.html-in :root
 * tokenlərindən gəlir, ölçü/radius/kölgə tokenləri aşağıdadır.
 *
 * Hündürlük: .yc-app 100dvh-dir; iOS-da klaviatura açılanda chat.js onu
 * VisualViewport hündürlüyünə endirir. Scroll yalnız .yc-scroll-dadır.
 */

.yc-page {
  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  /* Tipoqrafiya */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 16px; --fs-lg: 18px; --fs-xl: 22px;
  --lh-tight: 1.25; --lh-base: 1.6;
  /* Rənglər (layout.html-dəkilərin üstünə) */
  --surface: #fff; --surface-2: var(--bg-alt); --surface-3: #EDF1F8;
  --ink-2: #33405A; --line-2: #D3DAE6;
  --blue-hover: #155EE0; --blue-ring: rgba(31, 111, 255, .35);
  --danger: #D93036; --danger-bg: #FFF1F0; --danger-ink: #8A1C12;
  --success: #12A150; --success-bg: #E9F9EF; --success-ink: #0B5A2A;
  --warning: #FFB224; --warning-ink: #3D2600;
  --skeleton: #E9EDF4; --skeleton-hi: #F6F8FB;
  /* Kölgə */
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .05);
  --shadow-md: 0 10px 40px -12px rgba(20, 33, 61, .22);
  --shadow-lg: 0 24px 64px -16px rgba(10, 16, 30, .35);
  /* Ölçülər */
  --tap: 44px;
  --topbar-h: 56px;
  --sidebar-w: 280px;
  --content-w: 800px;
  --gutter: var(--sp-4);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

.yc-html, .yc-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
.yc-page { background: var(--surface); }
.yc-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.yc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yc-page svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yc-page button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .yc-page *, .yc-page *::before, .yc-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Ümumi düymələr ──────────────────────────────────────────────────────── */
.yc-icon-btn { flex: none; width: var(--tap); height: var(--tap); display: inline-grid; place-items: center;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .15s, color .15s; }
.yc-icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.yc-btn { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0 var(--sp-4); border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface);
  color: var(--ink); font-size: var(--fs-md); font-weight: 500; line-height: var(--lh-tight); text-align: center;
  cursor: pointer; transition: background .15s, border-color .15s; min-width: 0; }
.yc-btn:hover { border-color: var(--blue); }
.yc-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.yc-btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.yc-btn:disabled { opacity: .55; cursor: default; }

.yc-chip { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: var(--fs-md);
  line-height: var(--lh-tight); text-align: left; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
  transition: background .15s, border-color .15s; }
.yc-chip:hover { border-color: var(--blue); background: var(--blue-soft); }

/* ── Shell ───────────────────────────────────────────────────────────────── */
.yc-app { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-width: 0; min-height: 0;
  transition: grid-template-columns .25s var(--ease); }
.yc-app.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }

/* Sidebar */
.yc-sidebar { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface-2); border-right: 1px solid var(--line);
  padding: var(--sp-2) var(--sp-3) max(var(--sp-3), env(safe-area-inset-bottom)) max(var(--sp-3), env(safe-area-inset-left)); }
.yc-app.is-collapsed .yc-sidebar { visibility: hidden; }
.yc-sidebar > * { width: calc(var(--sidebar-w) - 2 * var(--sp-3)); } /* yığılarkən məzmun sıxılmasın */
.yc-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding-left: var(--sp-2); }
.yc-logo { display: inline-flex; align-items: center; min-height: var(--tap); }
.yc-logo img { display: block; height: 28px; width: auto; }

.yc-new-chat { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-3);
  border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600;
  font-size: var(--fs-md); cursor: pointer; transition: border-color .15s; }
.yc-new-chat:hover { border-color: var(--blue); }

/* layout.html-in qlobal `nav {display:flex}` qaydasını ləğv edirik. */
.yc-page nav.yc-history { display: block; }
.yc-history { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--sp-1)); padding: 0 var(--sp-1); }
.yc-history-title { font-family: var(--body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: var(--sp-2) var(--sp-2) var(--sp-2); }
.yc-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.yc-history-list li { display: flex; align-items: center; border-radius: var(--r-md); min-width: 0; }
.yc-history-list li:hover, .yc-history-list li:focus-within { background: var(--surface-3); }
.yc-history-list li.is-active { background: var(--blue-soft); }
.yc-history-item { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 var(--sp-2) 0 var(--sp-3); border: 0; background: none;
  text-align: left; cursor: pointer; font-size: var(--fs-md); color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-md); }
.is-active > .yc-history-item { color: var(--ink); font-weight: 600; }
.yc-history-del { opacity: 0; }
.yc-history-list li:hover .yc-history-del, .yc-history-del:focus-visible, .is-active .yc-history-del { opacity: 1; }
@media (hover: none) { .yc-history-del { opacity: 1; } }
.yc-history-del svg { width: 16px; height: 16px; }
.yc-history-empty { margin: 0 var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }
.yc-history-empty[hidden] { display: none; }

.yc-sidebar-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.yc-sidebar-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-2);
  color: var(--muted); font-size: var(--fs-sm); text-decoration: none; border-radius: var(--r-sm); }
.yc-sidebar-links a:hover { color: var(--ink); }

.yc-scrim { position: fixed; inset: 0; background: rgba(10, 16, 30, .45); z-index: 40; opacity: 0; transition: opacity .2s; }
.yc-scrim.is-visible { opacity: 1; }
.yc-scrim[hidden] { display: none; }

/* Main */
.yc-main { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

/* layout.html-in qlobal `header {position: sticky; …}` qaydasını burada ləğv edirik. */
.yc-page .yc-topbar { position: relative; z-index: 2; top: auto; display: flex; align-items: center; gap: var(--sp-1);
  height: var(--topbar-h); padding: 0 var(--sp-2) 0 max(var(--sp-2), env(safe-area-inset-left));
  background: var(--surface); border-bottom: 1px solid transparent; backdrop-filter: none; transition: border-color .2s; }
.yc-page .yc-topbar.is-scrolled { border-bottom-color: var(--line); }
.yc-topbar-title { flex: 1; min-width: 0; font-family: var(--body); font-size: var(--fs-md); font-weight: 600;
  letter-spacing: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 var(--sp-2); }
.yc-topbar-logo { display: none; padding: 0 var(--sp-1); }
.yc-topbar-logo img { height: 24px; }
#yc-sidebar-open { display: none; }
.yc-app.is-collapsed #yc-sidebar-open, .yc-app.is-collapsed .yc-topbar-logo { display: inline-grid; }
.yc-app.is-collapsed .yc-topbar-logo { display: inline-flex; }

/* Mesaj sahəsi — səhifədə yeganə scroll konteyner. */
.yc-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable;
  display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.yc-scroll.is-locked { overflow: hidden; }
.yc-thread { width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto; min-width: 0;
  padding: var(--sp-4) var(--gutter) var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-5); }
.yc-thread:empty { display: none; }
.yc-app.has-messages .yc-empty { display: none; }

/* Boş vəziyyət */
.yc-empty { flex: 1; width: 100%; max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; min-width: 0;
  padding: var(--sp-8) var(--gutter); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.yc-empty-title { font-size: clamp(26px, 5vw, 44px); font-weight: 700; overflow-wrap: anywhere; }
.yc-empty-lead { color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); margin: var(--sp-4) auto var(--sp-8); max-width: 600px; }
.yc-starters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.yc-starters li { min-width: 0; max-width: 100%; }

/* «Yeni mesajlar» */
.yc-jump { position: absolute; left: 50%; bottom: calc(var(--composer-h, 96px) + var(--sp-3)); transform: translateX(-50%);
  z-index: 3; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; min-width: var(--tap);
  justify-content: center; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); font-size: var(--fs-sm); font-weight: 600;
  white-space: nowrap; cursor: pointer; animation: yc-pop .18s var(--ease); }
.yc-jump[hidden] { display: none; }
.yc-jump svg { width: 18px; height: 18px; }
.yc-jump:not(.has-new) { padding: 0; width: 40px; }
.yc-jump:not(.has-new) .yc-jump-label { display: none; }
.yc-jump.has-new { background: var(--blue); border-color: var(--blue); color: #fff; }
@keyframes yc-pop { from { opacity: 0; transform: translate(-50%, 6px); } }

/* Composer */
.yc-composer-wrap { width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto; min-width: 0;
  padding: var(--sp-2) max(var(--gutter), env(safe-area-inset-right)) max(var(--sp-3), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--surface); }
.yc-app.kb-open .yc-composer-wrap { padding-bottom: var(--sp-2); }
.yc-composer { display: flex; align-items: flex-end; gap: var(--sp-2); min-width: 0; background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--r-xl); padding: 5px 5px 5px var(--sp-4);
  box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s; }
.yc-composer:focus-within { border-color: var(--blue); box-shadow: var(--shadow-md), 0 0 0 3px var(--blue-ring); }
.yc-composer textarea:focus-visible { outline: none; } /* fokus composer-in çərçivəsində görünür */
.yc-composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-base); line-height: 1.5; padding: 9px 0; height: 42px;
  max-height: min(200px, 30dvh); overflow-y: hidden; }
.yc-composer textarea.is-scrollable { overflow-y: auto; }
.yc-composer textarea::placeholder { color: #8A93A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yc-send { flex: none; width: var(--tap); height: var(--tap); border-radius: 14px; border: 0; background: var(--blue); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.yc-send:hover { background: var(--blue-hover); }
.yc-send:disabled { background: #B9C8E6; cursor: default; }
.yc-send .i-stop { display: none; fill: currentColor; stroke: none; }
.yc-send.is-stop { background: var(--navy); }
.yc-send.is-stop .i-send { display: none; }
.yc-send.is-stop .i-stop { display: block; }
.yc-send svg { stroke-width: 2.4; }
/* Səsli mesaj düyməsi — göndərmə düyməsinin yanında, ikinci dərəcəli görünüşdə. */
.yc-mic { flex: none; height: var(--tap); min-width: var(--tap); padding: 0 10px; border-radius: 14px; border: 0;
  background: var(--surface-2); color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; transition: background .15s, color .15s; }
.yc-mic[hidden] { display: none; }
.yc-mic:hover { background: var(--blue-soft); }
.yc-mic:disabled { opacity: .5; cursor: default; }
.yc-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yc-mic .i-rec { display: none; fill: currentColor; stroke: none; }
.yc-mic-time { display: none; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.yc-mic.is-recording { background: var(--danger); color: #fff; animation: yc-rec 1.4s infinite; }
.yc-mic.is-recording .i-mic { display: none; }
.yc-mic.is-recording .i-rec, .yc-mic.is-recording .yc-mic-time { display: block; }
.yc-mic.is-busy { pointer-events: none; }
.yc-mic.is-busy .i-mic { animation: yc-blink-mic 1s steps(2) infinite; }
@keyframes yc-rec { 0% { box-shadow: 0 0 0 0 rgba(217, 48, 54, .45); } 70% { box-shadow: 0 0 0 10px rgba(217, 48, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 48, 54, 0); } }
@keyframes yc-blink-mic { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .yc-mic.is-recording, .yc-mic.is-busy .i-mic { animation: none; } }
.yc-hint { margin: var(--sp-2) 0 0; text-align: center; color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-tight); }
@media (hover: none) { .yc-hint { display: none; } }

/* ── Mesajlar ────────────────────────────────────────────────────────────── */
.yc-row { display: flex; min-width: 0; animation: yc-in .22s var(--ease); }
@keyframes yc-in { from { opacity: 0; transform: translateY(4px); } }
.yc-row.user { justify-content: flex-end; }
.yc-bubble { max-width: min(85%, 600px); min-width: 0; padding: 10px var(--sp-4); border-radius: var(--r-xl);
  border-bottom-right-radius: 6px; background: var(--navy); color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.yc-row.bot, .yc-block { width: 100%; }

.yc-prose { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: var(--ink); }
.yc-prose > * { margin: 0 0 var(--sp-3); }
.yc-prose > :last-child { margin-bottom: 0; }
.yc-prose h3, .yc-prose h4 { font-family: var(--head); font-size: var(--fs-lg); margin-top: var(--sp-4); }
.yc-prose h4 { font-size: var(--fs-base); }
.yc-prose ul, .yc-prose ol { padding-left: 1.4em; }
.yc-prose li + li { margin-top: var(--sp-1); }
.yc-prose strong { font-weight: 600; }
.yc-prose a { color: var(--blue); text-underline-offset: 2px; word-break: break-word; }
.yc-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-3);
  padding: .1em .35em; border-radius: 6px; }
.yc-prose pre { max-width: 100%; overflow-x: auto; background: #0F1830; color: #E6ECF7; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); line-height: 1.55; }
.yc-prose pre code { background: none; padding: 0; white-space: pre; overflow-wrap: normal; }
.yc-prose hr { border: 0; border-top: 1px solid var(--line); }
.yc-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.yc-table-wrap table { border-collapse: collapse; min-width: 100%; font-size: var(--fs-md); }
.yc-table-wrap th, .yc-table-wrap td { padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); min-width: 7.5rem; overflow-wrap: normal; word-break: normal; }
.yc-table-wrap thead th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.yc-table-wrap tr:last-child td { border-bottom: 0; }

/* Axın zamanı kursor — mətnin sonuna yapışır, sətir əlavə etmir. */
.yc-prose.is-streaming > :last-child::after,
.yc-prose.is-streaming > ul:last-child > li:last-child::after,
.yc-prose.is-streaming > ol:last-child > li:last-child::after { content: ""; display: inline-block; width: .5em; height: 1.05em;
  margin-left: 2px; vertical-align: -.15em; background: var(--blue); border-radius: 2px; animation: yc-blink 1s steps(2) infinite; }
.yc-prose.is-streaming > ul:last-child::after, .yc-prose.is-streaming > ol:last-child::after,
.yc-prose.is-streaming > .yc-table-wrap:last-child::after, .yc-prose.is-streaming > pre:last-child::after { content: none; }
@keyframes yc-blink { 50% { opacity: 0; } }

/* Status / typing */
.yc-status { display: flex; align-items: center; gap: var(--sp-3); min-height: 28px; color: var(--muted); font-size: var(--fs-md); }
.yc-typing { display: inline-flex; gap: 5px; }
.yc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .3; animation: yc-dot 1.2s infinite; }
.yc-typing i:nth-child(2) { animation-delay: .2s; } .yc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes yc-dot { 50% { opacity: 1; } }

/* Xəta + retry */
.yc-error { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg); background: var(--danger-bg); color: var(--danger-ink); font-size: var(--fs-md); }
.yc-error p { flex: 1 1 220px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.yc-error .yc-btn { border-color: rgba(138, 28, 18, .25); color: var(--danger-ink); background: #fff; }

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.yc-skel { background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-hi) 40%, var(--skeleton) 80%) 0 0 / 300% 100%;
  animation: yc-shimmer 1.4s linear infinite; border-radius: var(--r-sm); }
@keyframes yc-shimmer { to { background-position: -150% 0; } }
.yc-skel-line { height: 14px; margin: 6px 0; }
.yc-skel-bubble { height: 44px; width: min(55%, 320px); margin-left: auto; border-radius: var(--r-xl); }
.yc-skeleton { display: grid; gap: var(--sp-5); }
.yc-card.is-skeleton .yc-photos { background: none; }
.yc-card.is-skeleton .yc-body { gap: var(--sp-3); }

/* ── Cavab düymələri ─────────────────────────────────────────────────────── */
.yc-replies { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.yc-replies .yc-chip { color: var(--blue); border-color: var(--blue-soft); }
.yc-replies.is-used { display: none; }

/* ── Otel kartları ───────────────────────────────────────────────────────── */
.yc-cards { display: grid; gap: var(--sp-4); min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.yc-card { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.yc-card.alt { border-style: dashed; }

.yc-photos { position: relative; aspect-ratio: 16 / 10; background: var(--skeleton); overflow: hidden; flex: none; }
.yc-photos .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.yc-photos .track::-webkit-scrollbar { display: none; }
.yc-photos .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.yc-count { position: absolute; right: var(--sp-2); bottom: var(--sp-2); background: rgba(20, 33, 61, .72); color: #fff;
  font-size: var(--fs-xs); line-height: 1; padding: 5px 8px; border-radius: var(--r-pill); pointer-events: none; }
.yc-badges { position: absolute; left: var(--sp-2); top: var(--sp-2); right: var(--sp-2); display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.yc-badge { font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-badge.urgent { background: var(--danger); color: #fff; }
.yc-badge.warning { background: var(--warning); color: var(--warning-ink); }

/* Şəkil: yer əvvəlcədən ayrılıb, yüklənəndə yumşaq görünür, xətada fallback. */
.yc-img-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.yc-img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.yc-img.is-loaded { opacity: 1; }
.yc-img-frame { position: relative; overflow: hidden; background: var(--skeleton); }
.yc-img-frame:not(.is-loaded) { background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-hi) 40%, var(--skeleton) 80%) 0 0 / 300% 100%;
  animation: yc-shimmer 1.4s linear infinite; }
.yc-wait { margin: var(--sp-2) 0; color: var(--muted); font-size: var(--fs-sm); }
.yc-wait p { margin: 0; }

.yc-img-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: var(--sp-4);
  text-align: center; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-tight); overflow-wrap: anywhere;
  background: radial-gradient(120% 90% at 100% 0%, rgba(31, 111, 255, .12) 0%, transparent 60%),
              radial-gradient(90% 80% at 0% 100%, rgba(245, 166, 35, .12) 0%, transparent 55%), var(--surface-3); }
.yc-img-fallback svg { width: 28px; height: 28px; opacity: .6; }
.yc-fallback-logo { height: 26px; width: auto; opacity: .9; margin-bottom: 2px; }
.yc-fallback-name { font-weight: 600; color: var(--navy); max-width: 90%; }
.yc-fallback-note { color: var(--muted); font-size: var(--fs-xs); }

.yc-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; min-width: 0; }
.yc-title { font-family: var(--head); font-size: 17px; font-weight: 600; line-height: var(--lh-tight); margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yc-meta { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; overflow-wrap: anywhere; }
.yc-stars { color: #F5A623; letter-spacing: 1px; }
.yc-pitch { font-size: var(--fs-md); line-height: 1.5; background: var(--blue-soft); border-radius: var(--r-md); padding: 10px var(--sp-3); margin: 0;
  overflow-wrap: anywhere; } /* server pitch-i 280 simvola kəsir */
.yc-highlights { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); display: grid; gap: var(--sp-1); }
.yc-highlights li { display: flex; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.yc-highlights li::before { content: "✓"; color: var(--success); font-weight: 700; flex: none; }
.yc-facts { margin: 0; font-size: var(--fs-sm); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px var(--sp-3);
  border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.yc-facts dt { color: var(--muted); }
.yc-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.yc-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--sp-2); margin-top: auto; min-width: 0; }
.yc-price b { font-family: var(--head); font-size: 22px; line-height: 1.2; white-space: nowrap; }
.yc-price small { color: var(--muted); font-size: var(--fs-xs); min-width: 0; overflow-wrap: anywhere; }
.yc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.yc-actions .yc-btn { flex: 1 1 110px; padding: 0 var(--sp-3); }
.yc-actions .yc-btn.primary { flex-grow: 1.4; }
@container (min-width: 340px) {
  .yc-price b { font-size: 24px; }
}

/* ── Qalereya ────────────────────────────────────────────────────────────── */
.yc-gallery-title { margin: 0 0 var(--sp-2); font-family: var(--body); font-size: var(--fs-md); color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.yc-gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.yc-gallery-grid li { min-width: 0; }
.yc-gallery-grid .yc-img-frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.yc-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(20, 33, 61, .72); color: #fff; font-size: 11px; line-height: 1.2;
  padding: 3px 7px; border-radius: var(--r-pill); max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }

/* ── Müqayisə ────────────────────────────────────────────────────────────── */
.yc-compare { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overscroll-behavior-x: contain; }
.yc-compare table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-sm);
  min-width: calc(130px + var(--cols, 2) * 170px); }
.yc-compare th, .yc-compare td { padding: 10px var(--sp-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.yc-compare thead th { font-family: var(--head); font-size: var(--fs-md); font-weight: 600; line-height: var(--lh-tight); background: var(--surface-2); }
.yc-compare thead .yc-img-frame { aspect-ratio: 16 / 10; border-radius: var(--r-sm); margin-bottom: 6px; max-width: 180px; }
.yc-compare tbody th { color: var(--muted); font-weight: 500; width: 130px; }
.yc-compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.yc-compare thead th:first-child { background: var(--surface-2); }
.yc-compare tr:last-child td, .yc-compare tr:last-child th { border-bottom: 0; }

/* ── Müraciət təsdiqi ────────────────────────────────────────────────────── */
.yc-lead { display: flex; gap: var(--sp-3); align-items: center; background: var(--success-bg); color: var(--success-ink);
  border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-md); min-width: 0; }
.yc-lead > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.yc-lead .icon { width: 32px; height: 32px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* ── Dialoqlar ───────────────────────────────────────────────────────────── */
.yc-dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; }
.yc-dialog::backdrop { background: rgba(10, 16, 30, .5); }

/* Detal paneli: desktopda sağdan, mobildə aşağıdan sheet */
.yc-panel { margin: 0 0 0 auto; width: min(520px, 100vw); height: 100dvh; }
.yc-panel[open] { animation: yc-slide-in .26s var(--ease); }
@keyframes yc-slide-in { from { transform: translateX(32px); opacity: 0; } }
.yc-panel-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface);
  box-shadow: var(--shadow-lg); min-width: 0; }
.yc-panel-head { position: relative; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--line); min-height: 60px; }
.yc-panel-title { flex: 1; min-width: 0; font-size: var(--fs-lg); line-height: var(--lh-tight); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yc-panel-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.yc-panel-body > * { flex-shrink: 0; } /* hündürlük məhduddur — uşaqlar sıxılmasın, body scroll olsun */
.yc-panel-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) max(var(--sp-3), env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface); }
.yc-panel-foot:empty { display: none; }
.yc-panel-foot .yc-btn { flex: 1 1 160px; }
.yc-panel .yc-detail-photos { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); list-style: none; margin: 0; padding: 0; }
.yc-panel .yc-detail-photos li:first-child { grid-column: 1 / -1; }
.yc-panel .yc-detail-photos .yc-img-frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.yc-panel .yc-detail-photos li:first-child .yc-img-frame { aspect-ratio: 16 / 9; }
.yc-panel .yc-facts { font-size: var(--fs-md); gap: var(--sp-2) var(--sp-4); }
.yc-panel .yc-badges { position: static; }
.yc-panel .yc-badge { background: var(--surface-3); }
.yc-panel .yc-badge.urgent { background: var(--danger); }
.yc-panel .yc-badge.warning { background: var(--warning); }
.yc-section-title { font-family: var(--body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-2); }

@media (max-width: 639.98px) {
  .yc-panel { margin: auto 0 0; width: 100vw; height: auto; max-height: calc(100dvh - var(--sp-8)); }
  .yc-panel[open] { animation-name: yc-sheet-in; }
  .yc-panel-inner { max-height: calc(100dvh - var(--sp-8)); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .yc-panel-head { padding-top: var(--sp-4); }
  .yc-panel-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: var(--r-pill); background: var(--line-2); }
  .yc-panel-body { padding: var(--sp-4); }
  .yc-panel-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}
@keyframes yc-sheet-in { from { transform: translateY(40px); opacity: 0; } }

/* Lightbox */
.yc-lightbox { width: 100vw; height: 100dvh; margin: 0; }
.yc-lightbox::backdrop { background: rgba(8, 12, 24, .94); }
.yc-lightbox-figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center;
  padding: calc(var(--tap) + var(--sp-4)) var(--sp-4) max(var(--sp-4), env(safe-area-inset-bottom)); gap: var(--sp-3); }
.yc-lightbox-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); }
.yc-lightbox-figure figcaption { color: #C9D2E3; font-size: var(--fs-sm); text-align: center; min-height: 1.2em; overflow-wrap: anywhere; }
.yc-lightbox .yc-icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); }
.yc-lightbox .yc-icon-btn:hover { background: rgba(255, 255, 255, .22); }
.yc-lightbox-close { top: max(var(--sp-3), env(safe-area-inset-top)); right: var(--sp-3); }
.yc-lightbox-nav { top: 50%; margin-top: calc(-1 * var(--tap) / 2); }
.yc-lightbox-nav.prev { left: var(--sp-3); }
.yc-lightbox-nav.next { right: var(--sp-3); }
.yc-lightbox-nav[hidden] { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 899.98px) {
  .yc-app, .yc-app.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .yc-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(320px, 86vw); visibility: hidden;
    transform: translateX(-100%); transition: transform .25s var(--ease), visibility 0s linear .25s; box-shadow: var(--shadow-lg);
    height: var(--yc-vh, 100%); }
  .yc-sidebar > * { width: auto; }
  .yc-app.is-drawer-open .yc-sidebar { visibility: visible; transform: none; transition: transform .25s var(--ease); }
  #yc-sidebar-open, .yc-app #yc-sidebar-open { display: inline-grid; }
  .yc-topbar-logo, .yc-app .yc-topbar-logo { display: inline-flex; }
  .yc-topbar-title { display: none; }
  .yc-topbar { justify-content: space-between; }
}
@media (max-width: 479.98px) {
  .yc-page { --gutter: 12px; }
  .yc-empty { justify-content: flex-start; padding-top: var(--sp-6); text-align: left; }
  .yc-empty-lead { margin: var(--sp-3) 0 var(--sp-6); }
  .yc-starters { flex-direction: column; align-items: stretch; }
  .yc-starters .yc-chip { width: 100%; }
  .yc-bubble { max-width: 90%; }
}
@media (min-width: 1440px) {
  .yc-page { --content-w: 860px; }
}

/* «Niyə sizə uyğundur» çipləri */
.yc-fit { display: flex; flex-wrap: wrap; gap: 6px; }
.yc-fit-chip { font-size: var(--fs-xs); line-height: 1.2; padding: 4px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.yc-fit-chip.good { background: var(--success-bg); color: var(--success-ink); }
.yc-fit-chip.warn { background: #FFF6E5; color: var(--warning-ink); }

/* Seçilmişlər və paylaşma */
.yc-heart { min-width: 44px; font-size: 18px; color: #D93036; }
.yc-heart.on { border-color: #F4B4B6; background: #FFF1F0; }
.yc-shortlist-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px;
  padding: 8px 12px; border-radius: var(--r-md); background: #FFF1F0; color: var(--navy); font-size: var(--fs-sm); font-weight: 600; }
.yc-shortlist-bar[hidden] { display: none; }
.yc-share { margin: var(--sp-2) 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-3); font-size: var(--fs-sm); }
.yc-share p { margin: 0 0 8px; }
.yc-share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yc-share-link { overflow-wrap: anywhere; color: var(--blue, #1F6FFF); font-weight: 600; flex: 1; min-width: 0; }

/* Şəkil düyməsi: mikrofon düyməsi ilə eyni ölçüdə, həmişə görünür */
.yc-attach[hidden] { display: none; }
.yc-attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yc-attach.is-busy { opacity: .5; cursor: progress; }

/* ── Dil seçicisi (sidebar) — əsas stil `core/layout.html`-dədir ── */
.yc-lang { align-self: flex-start; margin-top: var(--sp-2); }

/* ── «Sifariş et» pop-up-ı: desktopda mərkəzdə kart, mobildə aşağıdan sheet ── */
.yc-order { margin: auto; width: min(460px, calc(100vw - 2 * var(--gutter))); }
.yc-order[open] { animation: yc-in .2s var(--ease); }
.yc-order-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - var(--sp-10));
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.yc-order-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-5) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3); }
.yc-order-card { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--fs-md); color: var(--ink-2); }
.yc-order-card b { color: var(--ink); font-size: var(--fs-base); }
.yc-order-card .yc-order-price { color: var(--ink); font-weight: 600; margin-top: var(--sp-1); }
.yc-order-card small { color: var(--muted); font-size: var(--fs-xs); }
.yc-field { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.yc-field input, .yc-field textarea { font: inherit; font-size: var(--fs-base); font-weight: 400; color: var(--ink);
  min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); resize: vertical; }
.yc-field input:focus, .yc-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.yc-field [aria-invalid] { border-color: var(--danger); }
.yc-order-error { margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  background: var(--danger-bg); color: var(--danger-ink); font-size: var(--fs-sm); }
.yc-order-error[hidden] { display: none; }
.yc-order-hint { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.yc-order .yc-panel-foot .yc-btn { flex: 1 1 140px; }

@media (max-width: 899px) {
  .yc-order { margin: auto 0 0; width: 100vw; max-width: 100vw; }
  .yc-order[open] { animation-name: yc-sheet-in; }
  .yc-order-inner { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: calc(100dvh - var(--sp-8)); }
  .yc-order-body { padding: 0 var(--sp-4) var(--sp-4); }
}

/* ── Ana səhifə rejimi (`.yc-site`): saytın navbar-ı yuxarıda, footer aşağıda ────────────
 * Söhbət navbar-dan aşağı qalan ekranı tam tutur (mesajlar yenə yalnız .yc-scroll-da
 * sürüşür), footer səhifəni aşağı çəkəndə görünür. Mobil klaviatura açılanda (`kb-open`)
 * chat.js tətbiqi VisualViewport-a sığdırır — bunun üçün o an yenidən `fixed` olur, yoxsa
 * yazı sahəsi klaviaturanın altında qalardı. */
.yc-page.yc-site { --site-header-h: 68px; height: auto; overflow: visible; overscroll-behavior: auto; }
.yc-site .yc-app { position: relative; height: calc(100vh - var(--site-header-h));
  height: calc(100dvh - var(--site-header-h)); border-top: 1px solid var(--line); }
.yc-site .yc-app.kb-open { position: fixed; top: 0; left: 0; z-index: 30; border-top: 0; }
.yc-site .yc-sidebar-head { justify-content: flex-end; }
.yc-site .yc-topbar-logo, .yc-site .yc-app .yc-topbar-logo { display: none; }
/* chat.css-in `.yc-page button` / `svg` qaydaları saytın navbar və footer-inə toxunmasın. */
.yc-site .lang-switch button { font: 600 12px var(--body); color: var(--muted); }
.yc-site .lang-switch button.on, .yc-site .lang-switch button:hover { color: var(--ink); }
.yc-site footer .social svg { width: 18px; height: 18px; }
@media (max-width: 899.98px) {
  /* Mobil drawer navbar-ın da üstünə açılır — tam hündürlük. */
  .yc-site .yc-sidebar { z-index: 60; }
  .yc-site .yc-scrim { z-index: 55; }
}
@media (max-width: 560px) {
  .yc-page.yc-site { --site-header-h: 60px; }
}

/* ── Otelin videosu və TripAdvisor linki ─────────────────────────────────── */
/* `.yc-photos` prefiksi: `.yc-page button {color/font: inherit}` qaydasını üstələsin. */
.yc-photos .yc-video-btn { position: absolute; left: var(--sp-2); bottom: var(--sp-2); z-index: 2; display: inline-flex; align-items: center;
  gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: rgba(10, 16, 30, .72);
  color: #fff; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .15s; }
.yc-photos .yc-video-btn:hover { background: #E5252A; }
.yc-play { font-size: 11px; line-height: 1; }
.yc-ta-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: var(--fs-sm);
  font-weight: 600; color: var(--success-ink); text-decoration: none; border-bottom: 1px dashed currentColor; }
.yc-ta-link:hover { color: var(--blue); }
.yc-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: var(--sp-2) 0; }
.yc-video-inline .yc-play { color: #E5252A; }

.yc-video { margin: auto; width: min(960px, calc(100vw - 2 * var(--gutter))); }
.yc-video[open] { animation: yc-in .2s var(--ease); }
.yc-video::backdrop { background: rgba(10, 16, 30, .8); }
.yc-video-inner { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.yc-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yc-video-yt { display: block; padding: var(--sp-3) var(--sp-5); font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.yc-video-yt:hover { color: var(--ink); }
@media (max-width: 639.98px) {
  .yc-video { width: 100vw; max-width: 100vw; }
  .yc-video-inner { border-radius: 0; }
}

/* ── Paylaşılan söhbət (`/assistant/t/<token>/`, `.yc-shared`): yalnız oxumaq ─────────────
 * Söhbət tətbiq qutusunda deyil, səhifə axınındadır: başlıq + ♥ səsvermə → bütün söhbət → CTA.
 * Sidebar, üst panel, yazı sahəsi yoxdur; kartlarda yalnız «Ətraflı» qalır (chat.js `readOnly`). */
.yc-site.yc-shared .yc-app { position: static; display: block; height: auto; border-top: 0; }
.yc-shared .yc-main { display: block; }
.yc-shared .yc-scroll { overflow: visible; display: block; }
.yc-shared .yc-sidebar, .yc-shared .yc-scrim, .yc-shared .yc-topbar, .yc-shared .yc-composer-wrap,
.yc-shared .yc-jump, .yc-shared .yc-empty { display: none !important; }
.yc-shared .yc-thread { padding-top: 0; }
.yc-shared-intro, .yc-shared-cta { width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--sp-8) var(--gutter) 0; }
.yc-shared-head { padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); }
.yc-shared-kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.yc-shared-head h1 { font-size: clamp(26px, 4vw, 36px); margin: var(--sp-2) 0 var(--sp-3); }
.yc-shared-head p { color: var(--muted); margin: 0 0 var(--sp-2); }
.yc-shared-head small { color: var(--muted); font-size: var(--fs-xs); }
.yc-shared-title { font-size: var(--fs-lg); margin: 0 0 var(--sp-4); }
.yc-shared-cta { padding: var(--sp-6) var(--gutter) var(--sp-10); text-align: center; }
.yc-shared-cta .yc-btn { text-decoration: none; }

/* ♥ səsvermə kartları */
.yc-shared .st-item { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.yc-shared .st-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--surface-3); }
.yc-shared .st-name { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.yc-shared .st-meta { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 8px; line-height: 1.5; }
.yc-shared .st-price { font-weight: 700; font-size: var(--fs-lg); }
.yc-shared .st-price small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.yc-shared .st-votes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.yc-shared .st-btn { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 15px; cursor: pointer; }
.yc-shared .st-btn.on { border-color: var(--blue); background: var(--blue-soft); }
.yc-shared .st-comment { display: flex; gap: 6px; margin-top: 8px; }
.yc-shared .st-comment input, .yc-shared .st-name-row input { flex: 1; min-width: 0; border: 1px solid var(--line-2);
  border-radius: 10px; padding: 8px 10px; font: inherit; font-size: var(--fs-md); }
.yc-shared .st-comments { margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-2); }
.yc-shared .st-name-row { margin-bottom: var(--sp-4); display: flex; gap: 8px; align-items: center; max-width: 360px; }
.yc-shared .yc-shared-title + .st-name-row ~ .yc-shared-title { margin-top: var(--sp-8); }
@media (max-width: 560px) { .yc-shared .st-item { grid-template-columns: 1fr; } }

/* Sahibin «Söhbəti paylaş» düyməsi (üst panel) */
.yc-share-top[hidden] { display: none; }

/* ── Tövsiyə olunan kart (`card.recommended`) ───────────────────────────────
 * Sıra qiymətə görə qalır (münasib → premium), tövsiyə rənglə seçilir: mavi zolaq + çərçivə.
 * Qırmızı deyil — saytda qırmızı «az yer qalıb» və xəta deməkdir. */
.yc-card.is-recommended { border: 2px solid var(--blue); box-shadow: 0 0 0 4px var(--blue-ring), var(--shadow-md); }
.yc-reco { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px;
  background: linear-gradient(90deg, var(--blue), #4C8DFF); color: #fff; font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .02em; text-align: center; }
.yc-reco-inline { display: inline-flex; align-self: flex-start; margin: 0 0 var(--sp-2); padding: 4px 10px;
  border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
/* Telefonda kartlar alt-alta düzülür: tövsiyə 3-cü yerdə görünməsin — birinci gəlir. */
@media (max-width: 639.98px) { .yc-card.is-recommended { order: -1; } }
/* «Söhbəti paylaş» «Yeni söhbət»-in yanında (mobil üst panel `space-between`-dir). */
.yc-topbar .yc-share-top { margin-left: auto; }
