/* ==========================================================
   V2: pagrindinė kolona (turinys ir veiksmai) + dešinė kolona (būsena).
   AI blokas be dėžučių, patikslinimas = atsakymas į AI klausimą.
   ========================================================== */
.v2 { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 40px; align-items: start; max-width: calc(760px + 40px + 280px + var(--ms-gutter) * 2); padding: 20px var(--ms-gutter) 72px; }
.v2.is-classic { grid-template-columns: minmax(0, 760px) 280px; }
.v2-main { min-width: 0; }

/* ---------- AI blokas ---------- */
.a2 { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--ms-line); }
.a2-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.a2-head > svg { flex: 0 0 auto; margin-top: 5px; color: var(--ai-accent); }
.a2-head h2 { margin: 0; color: var(--ms-ink); font-size: 20px; font-weight: 600; line-height: 1.35; }
.a2-info { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ms-muted); transition: background .15s, color .15s; }
.a2-info:hover, .a2-info:focus-visible { background: var(--ms-pill); color: var(--ms-ink); outline: none; }
.a2-tip { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 20; width: 240px; padding: 8px 10px; border-radius: 8px; background: var(--ms-ink); color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.45; text-align: left; transform: translateX(-50%); pointer-events: none; }

.a2-quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.a2-quote { padding-left: 14px; border-left: 2px solid var(--ai-line); }
.a2-quote p { margin: 0 0 6px; color: var(--ms-ink-soft); font-size: 15px; line-height: 1.65; }
.a2-src { min-width: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ms-muted); font-size: 13px; text-align: left; transition: color .15s; }
.a2-src:hover { color: var(--ms-link); }
.a2-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-src b { font-weight: 600; color: var(--ms-sub); }
.a2-src:hover b { color: inherit; }
.a2-pro { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 3px; background: #f6e3ef; color: var(--ms-pro); font-size: 10px; font-weight: 700; letter-spacing: .04em; }

/* Klausimas ir atsakymai */
.a2-ask { margin: 0 0 10px; color: var(--ms-ink); font-size: 15px; font-weight: 600; }
.a2-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.a2-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--ms-sidebar); border-radius: 16px; background: #fff; color: var(--ms-teal-dark); font-size: 14px; transition: background .15s, border-color .15s; }
.a2-chip:hover { background: var(--ms-topbar); border-color: var(--ai-accent); }
.a2-chip em { font-style: normal; color: var(--ms-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.a2-chip.is-other { border-style: dashed; color: var(--ms-sub); }
.a2-other { display: flex; align-items: center; gap: 8px; }
.a2-other-field { flex: 1; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 5px 0 14px; border: 1px solid var(--ms-field-text); border-radius: 19px; background: #fff; box-shadow: 0 0 0 3px rgba(83, 169, 177, .15); }
.a2-other-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 14px; color: var(--ms-ink); }
.a2-other-field input::placeholder { color: var(--ms-muted); }
.a2-other-field button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--ms-cta); color: #fff; transition: opacity .15s; }
.a2-other-field button:disabled { opacity: .3; cursor: default; }
.a2-cancel { padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ms-sub); font-size: 13px; transition: background .15s, color .15s; }
.a2-cancel:hover { background: var(--ms-pill); color: var(--ms-ink); }
.a2-hint { margin: 0; color: var(--ms-muted); font-size: 13px; }

.a2-foot { display: flex; align-items: flex-end; gap: 16px; }
.a2-foot > div:first-child { flex: 1; min-width: 0; }
.a2-votes { flex: 0 0 auto; display: flex; gap: 4px; }
.a2-vote { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ms-muted); transition: background .15s, color .15s; }
.a2-vote:hover { background: var(--ms-pill); color: var(--ms-ink); }
.a2-vote.is-on { background: var(--ai-quote); color: var(--ms-teal-dark); }

/* ---------- Dešinė kolona: būsena ---------- */
.v2-side { position: sticky; top: calc(var(--ms-topbar-h) + 20px); display: grid; gap: 12px; }
.v2-side-toggle { display: none; }
.sc { padding: 14px 16px; border: 1px solid var(--ms-line); border-radius: 12px; background: #fff; }
.sc h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; color: var(--ms-ink); font-size: 13px; font-weight: 600; }
.sc h3 span { color: var(--ms-muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Žingsniai vertikaliai */
.st { margin: 0; padding: 0; list-style: none; }
.st li { position: relative; padding-left: 20px; }
.st li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ms-sidebar); }
.st li:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: 18px; bottom: -4px; width: 1px; background: var(--ms-line); }
.st li.is-current::before { background: var(--ms-teal-dark); box-shadow: 0 0 0 3px var(--ai-quote); }
.st-row { display: flex; align-items: flex-start; gap: 6px; width: 100%; margin-bottom: 6px; padding: 2px 4px 2px 0; border: 0; border-radius: 6px; background: none; text-align: left; transition: background .15s; }
.st-row:hover { background: var(--ms-surface-soft); }
.st-row span { flex: 1; min-width: 0; color: var(--ms-ink-soft); font-size: 13.5px; line-height: 1.4; }
.st li.is-current .st-row span { color: var(--ms-ink); font-weight: 600; }
.st-row small { flex: 0 0 auto; padding-top: 1px; color: var(--ms-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-row i { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ms-muted); font-style: normal; transition: background .15s, color .15s; }
.st-row i:hover { background: rgba(15, 83, 84, .1); color: var(--ms-ink); }

/* Šaltiniai ir ankstesnės paieškos */
.sl { display: grid; gap: 2px; margin: 0 -8px; padding: 0; list-style: none; }
.sl button { display: grid; gap: 2px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; text-align: left; transition: background .15s; }
.sl button:hover { background: var(--ms-surface-soft); }
.sl small { display: flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 11.5px; }
.sl span { overflow: hidden; color: var(--ms-ink-soft); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sl .is-hist span { -webkit-line-clamp: 1; }
.sl-empty { margin: 0; color: var(--ms-muted); font-size: 13px; }

/* Filtrų juostos „iš 1949“ */
.fb-count small { margin-left: 4px; color: var(--ms-muted); font-size: 13px; font-weight: 400; }

/* ---------- PRO paywall panel'yje ---------- */
.pw { position: relative; margin-top: -8px; }
.pw-fade { height: 90px; margin-bottom: -90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); position: relative; z-index: 1; }
.pw-blur { color: var(--ms-muted); filter: blur(3px); user-select: none; }
.pw-card { position: relative; z-index: 2; margin-top: 8px; padding: 24px; border: 1px solid var(--ms-line); border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 8px 24px rgba(15, 40, 42, .06); }
.pw-card h3 { margin: 0 0 6px; color: var(--ms-ink); font-size: 18px; }
.pw-card p { margin: 0 auto 16px !important; max-width: 380px; color: var(--ms-sub) !important; font-size: 14px !important; }
.pw-cta { text-decoration: none; display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--ms-teal); color: #fff; font-size: 14px; font-weight: 600; }
.pw-alt { text-decoration: none; display: block; margin-top: 10px; color: var(--ms-sub); font-size: 13px; }

/* ---------- Mažesni ekranai: dešinė kolona virš turinio, suskleidžiama ---------- */
@media (max-width: 1180px) {
  .v2, .v2.is-classic { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: calc(760px + var(--ms-gutter) * 2); }
  .v2-side { position: static; order: -1; gap: 8px; }
  .v2-side-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--ms-line); border-radius: 10px; background: #fff; color: var(--ms-ink-soft); font-size: 13.5px; }
  .v2-side-toggle svg { transition: transform .2s var(--ms-ease); }
  .v2-side-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .v2-side .sc { display: none; }
  .v2-side.is-open .sc { display: block; }
}

/* ---------- Pradinė būsena (low-fi „Naujausi“) ---------- */
.home { max-width: calc(1080px + var(--ms-gutter) * 2); padding: 28px var(--ms-gutter) 72px; }
.home h1 { margin: 0 0 16px; color: var(--ms-ink-soft); font-size: 20px; font-weight: 600; }
.home-tip { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; padding: 14px 16px; border: 1px solid var(--ai-line); border-radius: 12px; background: var(--ai-bg); }
.home-tip > svg { flex: 0 0 auto; color: var(--ai-accent); }
.home-tip div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.home-tip strong { color: var(--ms-ink); font-size: 14.5px; font-weight: 600; }
.home-tip span { color: var(--ms-sub); font-size: 13.5px; }
.home-tip button { flex: 0 0 auto; height: 34px; padding: 0 16px; border: 1px solid var(--ms-sidebar); border-radius: 17px; background: #fff; color: var(--ms-teal-dark); font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s; }
.home-tip button:hover { background: var(--ms-topbar); border-color: var(--ai-accent); }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.home-card { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; border: 1px solid var(--ms-line); border-radius: 12px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: border-color .18s var(--ms-ease), box-shadow .18s var(--ms-ease), transform .18s var(--ms-ease); }
.home-card:hover { border-color: var(--ms-line-strong); box-shadow: 0 6px 18px rgba(15, 83, 84, .08); transform: translateY(-2px); }
.hc-img { display: block; margin-bottom: 10px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--ms-line); }
.hc-img { background-size: 100% 100%; }
.hc-g1 { background: linear-gradient(160deg, #dfe9e9, #d5e1e1); }
.hc-g2 { background: linear-gradient(160deg, #e2eae9, #d7e2e1); }
.hc-g3 { background: linear-gradient(160deg, #dde7e8, #d2dfe0); }
.hc-g4 { background: linear-gradient(160deg, #e3ebea, #d8e3e2); }
.hc-g5 { background: linear-gradient(160deg, #e0e8e9, #d5e0e1); }
.hc-g6 { background: linear-gradient(160deg, #e2e9e7, #d7e1df); }
.hc-meta { padding: 0 18px; color: var(--ms-muted); font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; }
.hc-title { padding: 0 18px; color: var(--ms-ink); font-size: 16px; font-weight: 600; line-height: 1.4; transition: color .15s; }
.home-card:hover .hc-title { color: var(--ms-link); }
.hc-prog { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 8px 18px 0; color: var(--ms-ink-soft); font-size: 13px; }
.hc-prog i { width: 84px; height: 4px; border-radius: 2px; background: var(--ms-mark); }
.hc-prog b { display: block; height: 100%; border-radius: 2px; background: var(--ms-teal-dark); }

/* ---------- Skeleton: įkėlimas ir tikslinimas ---------- */
.sk { display: grid; gap: 10px; margin-bottom: 28px; }
.sk.is-inline { margin-bottom: 4px; }
.sk-label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #b85399; font-size: 14px; font-weight: 600; }
.sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--ms-pill) 0%, #f7fafa 50%, var(--ms-pill) 100%); background-size: 200% 100%; animation: sk-shine 1.2s linear infinite; }
@keyframes sk-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.is-loading .v2-main > :not(.sr-modes):not(.sk) { display: none !important; }
.is-loading .v2-side { opacity: .4; pointer-events: none; }
.is-busy .sr-list, .is-busy .fb .fb-item, .is-busy .fb-end { opacity: .35; pointer-events: none; transition: opacity .2s; }

/* ---------- Ką ką tik patikslinot: priežastis → pasekmė ---------- */
.a2-answered { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; color: var(--ms-sub); font-size: 13px; }
.a2-ans { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 4px 0 11px; border: 1px solid var(--ms-sidebar); border-radius: 13px; background: var(--ms-topbar); color: var(--ms-teal-dark); font-size: 13px; font-weight: 600; }
.a2-ans button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ms-sub); font-size: 15px; line-height: 1; transition: background .15s, color .15s; }
.a2-ans button[hidden] { display: none; }
.a2-ans:has(button[hidden]) { padding-right: 11px; }
.a2-ans button:hover { background: rgba(15, 83, 84, .1); color: var(--ms-ink); }
.a2-delta { color: var(--ms-muted); font-variant-numeric: tabular-nums; }

/* ---------- Pokyčio paryškinimas ---------- */
.fb-count.is-flash { animation: fx-flash 1.6s var(--ms-ease); border-radius: 6px; }
.st li.is-new .st-row { animation: fx-flash 1.6s var(--ms-ease); }
@keyframes fx-flash { 0%, 100% { background: transparent; box-shadow: none; } 15%, 55% { background: var(--ai-quote); box-shadow: 0 0 0 4px var(--ai-quote); } }

@media (max-width: 860px) {
  .home-tip { flex-wrap: wrap; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Atsakymai sąrašu (Perplexity principu): eilutės su ↳ */
.a2-list { margin: 0; padding: 6px 0 0; list-style: none; border-top: 1px solid var(--ms-line); }
.a2-list li + li { margin-top: 2px; }
.a2-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px 10px 4px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink); font-size: 15px; text-align: left; transition: color .15s, background .15s; }
.a2-row i { flex: 0 0 auto; color: var(--ms-muted); font-style: normal; font-size: 15px; transition: color .15s, transform .2s var(--ms-ease); }
.a2-row span { flex: 1; min-width: 0; }
.a2-row em { flex: 0 0 auto; color: var(--ms-muted); font-style: normal; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.a2-row:hover { color: var(--ms-teal-dark); background: var(--ms-surface-soft); }
.a2-row:hover i { color: var(--ai-accent); transform: translateX(2px); }
.a2-row.is-other { color: var(--ms-sub); }

/* V4: be AI antraštės, tik žymė; susijusios paieškos */
.a2-head.is-label { align-items: center; gap: 8px; margin-bottom: 12px; }
.a2-head.is-label > svg { margin-top: 0; }
.a2-head.is-label .a2-info { margin-top: 0; }
.a2-label { color: var(--ms-ink); font-size: 18px; font-weight: 600; line-height: 1.35; }
.a2-rel-h { margin: 4px 0 8px; color: var(--ms-ink); font-size: 15px; font-weight: 600; }

/* V4: šaltinis citatos gale, mažas žetonas */
.a2-cite { display: inline-flex; align-items: center; height: 20px; margin-left: 4px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--ms-surface-soft); color: var(--ms-muted); font-size: 11.5px; line-height: 1; vertical-align: 2px; white-space: nowrap; transition: background .15s, color .15s; }
.a2-cite:hover, .a2-cite:focus-visible { background: var(--ms-pill); color: var(--ms-ink); outline: none; }

/* V4, plati tema: AI klausimas yra vienintelė antraštė, po ja paaiškinimas ir kryptys (artumas = viena grupė) */
.a2-head.is-ask { margin-bottom: 2px; }
.a2-head.is-ask .a2-label { font-size: 18px; line-height: 1.35; }
.a2-rel-sub { margin: 0 0 12px; color: var(--ms-sub); font-size: 14px; }
.a2-rel-sub + .a2-list { border-top: 0; padding-top: 0; }
.a2-head.is-label .a2-info { margin-left: -5px; }

/* V4: DI dalis atskira kortele, kad aiškiai skirtųsi nuo paieškos rezultatų */
.a2.is-card { margin-bottom: 36px; padding: 24px 28px 20px; border: 1px solid var(--ms-line-strong); border-bottom: 1px solid var(--ms-line-strong); border-radius: 16px; background: #fff; }
.a2.is-card .a2-row:hover { background: var(--ms-surface-soft); }
.a2.is-card .a2-cite { background: var(--ms-surface-soft); }
.a2.is-card .a2-cite:hover { background: var(--ms-pill); }
.a2.is-card + .fb .fb-count, .a2.is-card ~ .fb .fb-count { font-size: 16px; }

/* V4: klausimas ekspertui (kai neradom arba mažas panašumas) */
.ex { margin: 4px 0 20px; }
.ex form { display: grid; gap: 8px; }
.ex-label { color: var(--ms-ink); font-size: 14px; font-weight: 600; }
.ex textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--ms-line-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ms-ink); resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.ex textarea:focus { border-color: var(--ms-field-text); box-shadow: 0 0 0 3px rgba(83, 169, 177, .2); }
.ex-foot { display: flex; justify-content: flex-end; }
.ex-foot small { flex: 1; color: var(--ms-muted); font-size: 12.5px; }
.ex-btn { flex: 0 0 auto; height: 40px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--ms-cta); color: #fff; font-size: 14px; font-weight: 600; transition: opacity .15s, background .15s; }
.ex-btn:hover { background: var(--ms-cta-hover); }
.ex-btn:disabled { opacity: .35; cursor: default; }
.ex-done { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--ms-teal-dark); font-size: 14px; font-weight: 600; }

/* V4: mažas panašumas, DI bloko vietoje trumpas paaiškinimas */
.lowc { margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--ms-line); border-radius: 12px; background: var(--ms-surface-soft); }
.lowc-row { display: flex; align-items: center; gap: 12px; }
.lowc-row > svg { flex: 0 0 auto; color: var(--ms-muted); }
.lowc-row p { flex: 1; margin: 0; color: var(--ms-sub); font-size: 14px; line-height: 1.5; }
.lowc-row p b { color: var(--ms-ink); font-weight: 600; }
.lowc-btn { flex: 0 0 auto; height: 36px; padding: 0 16px; border: 1px solid var(--ms-sidebar); border-radius: 8px; background: #fff; color: var(--ms-teal-dark); font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s; }
.lowc-btn:hover { background: var(--ms-topbar); border-color: var(--ai-accent); }
.lowc .ex { margin: 14px 0 2px; }
.lowc-link { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--ms-link); font-size: 14px; }
@media (max-width: 640px) { .lowc-row { flex-wrap: wrap; } .ex-foot { flex-direction: column; align-items: stretch; } }

/* V4, plati tema: kryptys po paieškos lauku (Google „Refine“ principu) */
.rf { margin: 0 0 32px; }
.rf-q { margin: 0 0 10px; color: var(--ms-ink); font-size: 16px; font-weight: 600; }
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--ms-line-strong); border-radius: 17px; background: #fff; color: var(--ms-ink); font-size: 14px; transition: background .15s, border-color .15s, color .15s; }
.rf-chip em { color: var(--ms-muted); font-style: normal; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rf-chip:hover { border-color: var(--ai-accent); background: var(--ms-topbar); color: var(--ms-teal-dark); }

/* Klausimas lauke pasikeitė: laukas trumpam paryškinamas */
.ms-search.is-rewrite { animation: rw-flash 1.5s var(--ms-ease); }
.ms-search.is-rewrite textarea { animation: rw-text 1.5s var(--ms-ease); }
@keyframes rw-flash { 0%, 100% { box-shadow: none; } 15%, 60% { border-color: var(--ai-accent); box-shadow: 0 0 0 4px rgba(83, 169, 177, .25); } }
@keyframes rw-text { 0%, 60% { color: var(--ai-accent); } 100% { color: var(--ms-ink); } }

/* V4, admin „Baltas fonas, ryškus skirtukas“: DI dalis be fono, nuo rezultatų atskirta storesne juosta */
.a2.is-plain { position: relative; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 0; }
.a2.is-plain::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 3px; background: var(--ms-topbar); box-shadow: inset 0 0 0 1px var(--ms-line); }
.a2.is-plain ~ .fb .fb-count { font-size: 16px; }

/* Klausimas ekspertui (šoniniame panel'yje) */
.pn-title { color: var(--ms-ink); font-size: 15px; font-weight: 600; }
.a2-askex { margin-right: 6px; padding: 0; border: 0; background: none; color: var(--ms-link); font-size: 13px; white-space: nowrap; }
.a2-askex:hover { text-decoration: underline; text-underline-offset: 3px; }
.a2-votes { align-items: center; }
.ak, .ak-done { max-width: 600px; }
.ak h1, .ak-done h1 { margin: 0 0 10px; color: var(--ms-ink); font-size: 26px; font-weight: 700; line-height: 1.3; }
.ak-lead { margin: 0 0 24px; color: var(--ms-sub); font-size: 15px; line-height: 1.6; }
.ak-maybe { display: grid; gap: 4px; margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; background: var(--ms-topbar); }
.ak-maybe b { margin-bottom: 4px; color: var(--ms-ink); font-size: 14px; font-weight: 600; }
.ak-maybe button { display: grid; gap: 1px; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff; text-align: left; transition: box-shadow .15s; }
.ak-maybe button:hover { box-shadow: 0 0 0 1px var(--ai-accent); }
.ak-maybe small { color: var(--ms-muted); font-size: 12px; }
.ak-maybe span { color: var(--ms-ink); font-size: 14px; font-weight: 600; }
.ak form { display: grid; gap: 10px; }
.ak-label { color: var(--ms-ink); font-size: 16px; font-weight: 600; }
.ak-hint { margin: -6px 0 0; color: var(--ms-sub); font-size: 14px; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-chips button { height: 28px; padding: 0 11px; border: 1px dashed var(--ms-sidebar); border-radius: 14px; background: #fff; color: var(--ms-teal-dark); font-size: 13px; transition: background .15s, border-color .15s; }
.ak-chips button:hover { border-style: solid; background: var(--ms-topbar); }
.ak textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1px solid var(--ms-line-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ms-ink); resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.ak textarea:focus { border-color: var(--ms-field-text); box-shadow: 0 0 0 3px rgba(83, 169, 177, .2); }
.ak-warn { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fbf1de; color: #7a5a1c; font-size: 13.5px; }
.ak-me { margin-top: 6px; padding: 12px 14px; border: 1px solid var(--ms-line); border-radius: 10px; }
.ak-me-row { display: flex; align-items: center; gap: 12px; }
.ak-me-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ak-me-row small { color: var(--ms-muted); font-size: 12px; }
.ak-me-row span { color: var(--ms-ink); font-size: 14px; }
.ak-me-row button { flex: 0 0 auto; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--ms-link); font-size: 13.5px; }
.ak-me-row button:hover { background: var(--ms-surface-soft); }
.ak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; }
.ak-grid label { display: grid; gap: 4px; color: var(--ms-ink); font-size: 13.5px; font-weight: 600; }
.ak-grid input { height: 38px; padding: 0 12px; border: 1px solid var(--ms-line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: var(--ms-ink); outline: none; }
.ak-grid input:focus { border-color: var(--ms-field-text); box-shadow: 0 0 0 3px rgba(83, 169, 177, .2); }
.ak-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.ak-privacy { flex: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 13px; }
.ak-done > i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--ms-topbar); color: var(--ms-teal-dark); }
.ak-done p { margin: 0 0 16px; color: var(--ms-sub); font-size: 15px; line-height: 1.6; }
.ak-done p b { color: var(--ms-ink); font-weight: 600; }
.ak-done blockquote { margin: 0 0 24px; padding: 12px 14px; border-left: 2px solid var(--ai-line); background: var(--ms-surface-soft); color: var(--ms-ink-soft); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 640px) { .ak-grid { grid-template-columns: 1fr; } .ak-foot { flex-direction: column; align-items: stretch; } }

/* V4, nieko neradus: antraštė, paaiškinimas, CTA ir „Arba ieškokit plačiau“ su aiškiais tarpais */
.a2-empty { margin-bottom: 28px; }
.a2-empty .a2-rel-sub { margin-bottom: 18px; }
.a2-empty + .a2-foot .a2-rel-h { margin-top: 0; }

/* Panel'yje: grįžimas į klausimo formą */
.pn-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink); font-size: 14px; font-weight: 600; transition: background .15s; }
.pn-back:hover { background: var(--ms-surface-soft); }

/* ==========================================================
   V4 · DI chatas (simuliatorius)
   ========================================================== */
.ch { display: block; }
.ch-msg.is-user { display: flex; justify-content: flex-end; }
.ch-bubble { max-width: 78%; margin: 0; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: var(--ms-topbar); color: var(--ms-ink); font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.ch-ai { display: flex; align-items: flex-start; gap: 12px; }
.ch-av { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ms-topbar); color: var(--ai-accent); }
.ch-body { flex: 1; min-width: 0; display: grid; gap: 12px; padding-top: 4px; }
.ch-body > p { margin: 0; color: var(--ms-ink); font-size: 15.5px; line-height: 1.65; }
.ch-card { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--ms-line); border-radius: 14px; background: #fff; }
.ch-main { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; }
.ch-main small { color: var(--ms-muted); font-size: 12.5px; }
.ch-main b { color: var(--ms-ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ch-main:hover b { color: var(--ms-link); }
.ch-quote { margin: 0; padding-left: 14px; border-left: 2px solid var(--ai-line); color: var(--ms-ink-soft); font-size: 14.5px; line-height: 1.65; }
.ch-tool { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ms-line); border-radius: 10px; background: var(--ms-surface-soft); color: var(--ms-teal-dark); font-size: 14px; font-weight: 600; text-align: left; transition: border-color .15s; }
.ch-tool span { flex: 1; }
.ch-tool em { color: var(--ms-link); font-style: normal; font-weight: 400; font-size: 13px; }
.ch-tool:hover { border-color: var(--ai-accent); }
.ch-more { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--ms-line); }
.ch-more small { margin-bottom: 4px; color: var(--ms-muted); font-size: 12.5px; }
.ch-more button { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border: 0; background: none; color: var(--ms-ink); font-size: 14px; text-align: left; }
.ch-more button span { flex: 1; }
.ch-more button em { color: var(--ms-muted); font-style: normal; font-size: 12px; }
.ch-more button:hover span { color: var(--ms-link); }
.ch-ex { justify-self: start; }
.ch-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-opts button { height: 36px; padding: 0 14px; border: 1px solid var(--ms-sidebar); border-radius: 8px; background: #fff; color: var(--ms-teal-dark); font-size: 14px; transition: background .15s, border-color .15s; }
.ch-opts button:hover { background: var(--ms-topbar); border-color: var(--ai-accent); }
.ch-tools { display: flex; gap: 2px; margin-left: -6px; }
.ch-typing { margin: 5px 0 0; color: var(--ms-muted); font-size: 15px; }
.ch-msg { animation: ch-in .3s var(--ms-ease); }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px); } }

/* Įvesties laukas prilipęs prie ekrano apačios */
.ch-compose { position: sticky; bottom: 0; z-index: 5; margin-top: 6px; padding: 18px 0 16px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 28%); }
.ch-field { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--ms-line-strong); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(15, 40, 42, .08); transition: border-color .15s, box-shadow .15s; }
.ch-field:focus-within { border-color: var(--ms-field-text); box-shadow: 0 0 0 3px rgba(83, 169, 177, .2), 0 6px 24px rgba(15, 40, 42, .08); }
.ch-field textarea { flex: 1; min-width: 0; height: 36px; max-height: 160px; padding: 7px 0; border: 0; outline: none; resize: none; background: none; font: inherit; font-size: 15px; line-height: 22px; color: var(--ms-ink); }
.ch-field .ch-sendbtn { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--ms-cta); color: #fff; transition: opacity .15s; }
.ch-field .ch-sendbtn:disabled { opacity: .3; cursor: default; }
.ch-compose small { display: block; margin-top: 8px; color: var(--ms-muted); font-size: 12px; text-align: center; }

/* ==========================================================
   V4 · DI pokalbis pilname ekrane (tas pats pokalbis kaip „DI chatas“)
   ========================================================== */
body.is-chatfull { overflow: hidden; }
.chf-wrap { display: block; }
.ch.is-full { position: fixed; inset: 0; z-index: 55; display: block; min-height: 0; overflow-y: auto; background: #fff; animation: chf-in .25s var(--ms-ease); }
@keyframes chf-in { from { opacity: 0; transform: translateY(12px); } }
.chf-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--ms-line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
.chf-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ms-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.chf-brand svg { color: var(--ai-accent); }
.chf-q { flex: 1; min-width: 0; overflow: hidden; color: var(--ms-sub); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.chf-new { height: 34px; padding: 0 14px; border: 1px solid var(--ms-line-strong); border-radius: 8px; background: #fff; color: var(--ms-ink); font-size: 13.5px; white-space: nowrap; transition: background .15s; }
.chf-new:hover { background: var(--ms-surface-soft); }
.ch.is-full .chf-wrap { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: center; gap: 48px; min-height: calc(100vh - 60px); padding: 32px 24px 0; }
.ch.is-full .chf-col { display: flex; flex-direction: column; gap: 22px; min-height: calc(100vh - 92px); }
.ch:not(.is-full) .chf-col { display: flex; flex-direction: column; gap: 22px; }
.ch.is-full .ch-compose { padding-bottom: 20px; }
.chf-src { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; padding: 16px; border: 1px solid var(--ms-line); border-radius: 16px; }
.chf-src h3 { display: flex; justify-content: space-between; margin: 0 0 6px; color: var(--ms-ink); font-size: 14px; font-weight: 600; }
.chf-src h3 span { color: var(--ms-muted); font-weight: 400; }
.chf-src button { display: grid; gap: 3px; padding: 10px 8px; border: 0; border-radius: 10px; background: none; text-align: left; transition: background .15s; }
.chf-src button + button { border-top: 1px solid var(--ms-line); border-radius: 0 0 10px 10px; }
.chf-src button:hover { background: var(--ms-surface-soft); }
.chf-src small { display: flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 12px; }
.chf-src b { color: var(--ms-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.chf-snip { display: -webkit-box; overflow: hidden; color: var(--ms-sub); font-size: 12.5px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1100px) { .ch.is-full .chf-wrap { grid-template-columns: minmax(0, 720px); } .chf-src { display: none !important; } }
@media (max-width: 640px) { .chf-q, .chf-new { display: none; } .chf-bar { padding: 0 16px; } }

/* ==========================================================
   V4, admin „Viršutinė juosta: balta“. Paieška ir rezultatai
   vienoje baltoje plokštumoje (kaip Google), laukas didesnis
   su šešėliu, juosta atsiskiria tik paslinkus.
   ========================================================== */
.ms-main.is-topwhite { --ms-topbar-h: 72px; }
.ms-main.is-topwhite .ms-topbar { background: #fff; border-bottom-color: transparent; transition: border-color .2s, box-shadow .2s; }
.ms-main.is-topwhite.is-scrolled .ms-topbar { border-bottom-color: var(--ms-line); box-shadow: 0 4px 16px rgba(15, 40, 42, .06); }
.ms-main.is-topwhite .ms-search { flex-basis: 640px; min-height: 44px; margin-top: 13px; padding: 0 14px 0 20px; border-color: var(--ms-line); border-radius: 22px; box-shadow: 0 1px 6px rgba(15, 40, 42, .12); }
.ms-main.is-topwhite .ms-search:hover { box-shadow: 0 2px 10px rgba(15, 40, 42, .16); }
.ms-main.is-topwhite .ms-search:focus-within { border-color: var(--ms-line); box-shadow: 0 2px 12px rgba(15, 40, 42, .18); }
.ms-main.is-topwhite .ms-search textarea { height: 42px; max-height: 162px; padding: 11px 0; font-size: 16px; }
.ms-main.is-topwhite .ms-search-clear, .ms-main.is-topwhite .ms-search-go { margin-top: 9px; }
.ms-main.is-topwhite .ms-search .ms-suggest { top: calc(100% + 8px); }
.ms-main.is-topwhite .ms-content .v2 { padding-top: 4px; }
.ms-main.is-topwhite .ms-search { margin-left: 16.5px; } /* laukas lygiuojasi su tab'ais, kaip Google */

/* Kryptys sąrašu su paieškos ikona (kaip Google pasiūlymai) */
.rf-list { margin: 0; padding: 0; list-style: none; }
.rf-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 10px 10px 4px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink); font-size: 15px; text-align: left; transition: background .15s, color .15s; }
.rf-row svg { flex: 0 0 auto; color: var(--ms-muted); transition: color .15s; }
.rf-row span { flex: 1; min-width: 0; }
.rf-row em { flex: 0 0 auto; color: var(--ms-muted); font-style: normal; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rf-row:hover { background: var(--ms-surface-soft); color: var(--ms-teal-dark); }
.rf-row:hover svg { color: var(--ai-accent); }
.rf-q { margin-bottom: 6px; }

/* DI ikona (assets/img/ai.svg) vietoj žvaigždutės */
.ai-ic { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.a2-head > .ai-ic { margin-top: -2px; }
.sr-modes button .ai-ic { margin: -6px 0 -6px -3px; }
.ch-av .ai-ic, .chf-brand .ai-ic { margin: -6px 0; }
.fb-pill .ai-ic { margin: -4px -2px; }
.a2-head.is-label > .ai-ic { width: auto; height: 32px; margin: -7px -1px -7px -4px; }

/* DI chatas: žinutės slenkamos tik tiek, kad matytųsi virš lauko; viršutinis laukas išjungtas */
.ch-msg { scroll-margin-bottom: 130px; }
.ch.is-full .ch-msg { scroll-margin-bottom: 130px; scroll-margin-top: 80px; }
.ms-search-go:disabled { cursor: not-allowed; }

/* Generuojant animuojasi pati DI ikona (avatare ir prieš antraštę), ne atskiras elementas */
.ch-av.is-busy { background: var(--ms-topbar); }
.ch-av.is-busy .ld { display: grid; }
.sk-label { gap: 6px; color: var(--ms-ink); font-size: 18px; }
.sk-ic { display: inline-grid; place-items: center; width: 22px; height: 32px; margin: -6px 0 -6px -4px; }
/* Įkėlimas V4 toje pačioje kortelėje kaip DI atsakymas, kad ikona ir antraštė liktų vietoje */
.sk.is-card { padding: 24px 28px 22px; border: 1px solid var(--ms-line-strong); border-radius: 16px; background: #fff; }

/* „DI režimas“ tab'e DI dalis vienintelė, todėl kortelė balta, tik su rėmeliu (žalsvas fonas lieka „Viskas“ tab'e) */
.a2.is-card.is-only, .sk.is-card.is-only { background: #fff; border-color: var(--ms-line-strong); }
.a2.is-card.is-only .a2-row:hover { background: var(--ms-surface-soft); }
.a2.is-card.is-only .a2-cite { background: var(--ms-surface-soft); }
.a2.is-card.is-only .a2-cite:hover { background: var(--ms-pill); }
.sk.is-card.is-only i { background: linear-gradient(90deg, var(--ms-pill) 0%, #f7fafa 50%, var(--ms-pill) 100%); background-size: 200% 100%; }

/* V4, admin „Dešinė kolona: paslėpta“: lieka tik pagrindinė kolona */
.v2.no-side, .v2.no-side.is-classic { grid-template-columns: minmax(0, 760px); max-width: calc(760px + var(--ms-gutter) * 2); }

/* ==========================================================
   V4 tab'ų juosta: matavimas ir „Daugiau ▾“ meniu (kaip Google)
   ========================================================== */
.tb { position: relative; flex-wrap: nowrap; white-space: nowrap; }
.tb > button { flex: 0 0 auto; }
.tb-ic { display: inline-flex; align-items: center; }
.tb-measure { position: absolute; left: 0; top: 0; display: flex; gap: 28px; visibility: hidden; pointer-events: none; }
.tb-measure button { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 10px 0 12px; border: 0; background: none; font-size: 15px; font-weight: 600; }
.tb-measure .tb-ic { width: 12px; }
.tb-more { position: relative; flex: 0 0 auto; }
.tb-more > button svg { color: var(--ms-muted); }
.tb-menu { position: absolute; top: calc(100% + 4px); left: -8px; z-index: 40; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--ms-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15, 40, 42, .14); }
.sr-modes .tb-menu button { justify-content: flex-start; padding: 9px 12px; border-radius: 8px; color: var(--ms-ink-soft); font-size: 14.5px; font-weight: 400; }
.sr-modes .tb-menu button::after { display: none; }
.sr-modes .tb-menu button:hover { background: var(--ms-surface-soft); color: var(--ms-ink); }
.sr-modes .tb-menu button.is-on { color: var(--ms-ink); font-weight: 600; background: var(--ms-topbar); }

/* V4 · Kompetencijų centras */
.cc-hint { margin: 0 0 18px; color: var(--ms-sub); font-size: 14px; }
.cc-hint b { color: var(--ms-ink); font-weight: 600; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.cc-card { display: flex; flex-direction: column; align-items: center; padding: 8px 8px 22px; border: 1px solid var(--ms-line); border-radius: 12px; background: #fff; text-align: center; transition: box-shadow .2s, border-color .2s; }
.cc-card:hover { border-color: var(--ms-line-strong); box-shadow: 0 8px 24px rgba(15, 40, 42, .08); }
.cc-card.is-match { border-color: var(--ms-sidebar); }
.cc-art { position: relative; display: grid; place-items: center; align-self: stretch; height: 150px; margin-bottom: 18px; border-radius: 8px; background-color: #f3f7f7; background-image: linear-gradient(#e3ecec 1px, transparent 1px), linear-gradient(90deg, #e3ecec 1px, transparent 1px); background-size: 46px 46px; background-position: -1px -1px; }
.cc-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ms-teal-dark); font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 40, 42, .1); }
.cc-save { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--ms-line-strong); border-radius: 6px; background: #fff; color: var(--ms-teal-dark); }
.cc-card h3 { margin: 0 14px 6px; color: var(--ms-ink); font-size: 17px; font-weight: 700; line-height: 1.35; }
.cc-card p { margin: 0 14px 6px; color: var(--ms-sub); font-size: 13.5px; line-height: 1.55; }
.cc-card small { margin-bottom: 16px; color: var(--ms-muted); font-size: 12.5px; }
.cc-go { height: 40px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--ms-cta); color: #fff; font-size: 14px; font-weight: 600; transition: background .15s; }
.cc-go:hover { background: var(--ms-cta-hover); }
.cc-mods { align-self: stretch; margin: 14px 8px 0; padding: 0; list-style: none; text-align: left; }
.cc-mods li { display: flex; gap: 8px; padding: 9px 6px; border-top: 1px solid var(--ms-line); color: var(--ms-ink); font-size: 14px; }
.cc-mods li span:first-child { color: var(--ms-muted); }
.cc-mods li em { margin-left: auto; color: var(--ms-link); font-style: normal; font-size: 13px; }

/* V4 · Testai, Video, Failai: antraštė virš sąrašo */
.tl .fb-count { font-size: 16px; }
/* Papildomi filtrai (kompetencijos, failai) tuo pačiu .fb stiliumi */
.fb.xf { flex-wrap: wrap; }
.cc .fb.xf { margin-bottom: 16px; }
.sr-file { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--ms-pill); color: var(--ms-sub); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .03em; }

/* Turinys centre, ne prilipęs prie kairės */
.v2, .home { margin-left: auto; margin-right: auto; }
.v2.no-side { justify-content: center; }

/* Renginio įrašas su epizodais (playlist'as) sąraše */
.sr-item.is-pl { padding: 18px 0; }
.pl { padding: 22px 24px 8px; border: 1px solid var(--ms-line-strong); border-radius: 12px; background: #fff; }
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 200px; gap: 16px; align-items: start; }
.pl h3 { margin: 0 0 8px; }
.pl h3 button { padding: 0; border: 0; background: none; color: var(--ms-ink-soft); font-size: 18px; font-weight: 700; line-height: 1.35; text-align: left; transition: color .15s; }
.pl h3 button:hover { color: var(--ms-link); }
.pl .sr-meta { margin-bottom: 10px; }
.pl p { margin: 0; color: var(--ms-ink-soft); font-size: 15px; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.pl-save { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ms-teal-dark); }
.pl-thumb { position: relative; display: grid; place-items: center; height: 116px; padding: 0; border: 0; border-radius: 10px; background: linear-gradient(135deg, #a9d1d3, #7fb7bb); color: #fff; overflow: hidden; }
.pl-thumb b { position: absolute; left: 12px; bottom: 8px; color: rgba(255, 255, 255, .85); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.pl-thumb i { display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid #fff; border-radius: 50%; padding-left: 3px; transition: transform .2s var(--ms-ease); }
.pl-thumb:hover i { transform: scale(1.08); }
.pl-sum { display: inline-flex; align-items: center; gap: 22px; margin: 18px 0 16px; padding: 12px 26px; border: 1px solid #9fc9cc; border-radius: 6px; background: #fff; color: var(--ms-teal); font-size: 15px; font-weight: 600; transition: background .15s; }
.pl-sum:hover { background: var(--ms-surface-soft); }
.pl-sum em { display: inline-flex; align-items: center; gap: 6px; color: var(--ms-muted); font-style: normal; font-weight: 400; }
.pl-eps h4 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ms-line); color: var(--ms-ink); font-size: 14px; font-weight: 600; }
.pl-eps h4 span { color: var(--ms-muted); }
.pl-eps button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ms-line); background: none; color: var(--ms-ink); font-size: 15px; text-align: left; transition: color .15s; }
.pl-eps button:last-child { border-bottom: 0; }
.pl-eps button:hover { color: var(--ms-link); }
.pl-eps button i { display: grid; place-items: center; width: 26px; height: 18px; border-radius: 4px; background: var(--ms-sidebar-active); color: var(--ms-teal-dark); }
@media (max-width: 640px) { .pl-head { grid-template-columns: minmax(0, 1fr) auto; } .pl-thumb { grid-column: 1 / -1; grid-row: 1; } }
.tb-menu button.is-on::before { content: '✓'; margin-right: 8px; color: var(--ms-teal-dark); }
.fb.xf .fb-pop { width: max-content; min-width: 240px; max-width: 360px; }

/* ==========================================================
   DI apibendrinimas su šaltiniais (kai rezultatų normaliai)
   ========================================================== */
.a2-sum { display: grid; gap: 12px; margin-bottom: 16px; }
.a2-sum p { margin: 0; color: var(--ms-ink); font-size: 16px; line-height: 1.7; }
.a2-cite.is-src { gap: 5px; height: 22px; padding: 0 8px 0 6px; vertical-align: 1px; font-size: 12px; }
.a2-cite.is-src svg { flex: 0 0 auto; color: var(--ms-muted); }
.a2-discrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-top: 10px; border-top: 1px dashed var(--ms-line-strong); }
.a2-discrow .a2-votes { margin-left: auto; display: flex; gap: 2px; }
.a2-disc { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ms-muted); font-size: 12.5px; line-height: 1.4; }
.a2-disc .ai-ic { opacity: .8; }
.ch-tools .a2-disc { margin-right: auto; }
.ch-tools { align-items: center; gap: 4px; margin-left: 0; }

/* Nedaug ir tikslu: vienas sakinys virš rezultatų */
.few { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ms-ink); font-size: 16px; font-weight: 600; }
.few .ai-ic { margin: -4px 0; }

/* Plati tema: vieno sakinio apžvalga prieš klausimą */
.rf-ov { margin: 0 0 6px; color: var(--ms-sub); font-size: 15px; line-height: 1.6; }

/* Chat'e: tikslių rezultatų sąrašas be apibendrinimo */
.ch-list { display: grid; gap: 2px; }
.ch-list button { display: grid; gap: 1px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ms-line); background: none; text-align: left; }
.ch-list button:last-child { border-bottom: 0; }
.ch-list small { color: var(--ms-muted); font-size: 12px; }
.ch-list b { color: var(--ms-ink); font-size: 15px; font-weight: 600; }
.ch-list button:hover b { color: var(--ms-link); }

/* Kompetencijų kortelės: CTA visada apačioje, vienoje linijoje */
.cc-card small { margin-top: auto; padding-top: 4px; }
.cc-card h3 { min-height: 0; }
/* Kompetencijų medžiaga sąraše */
.cc-h { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ms-line); color: var(--ms-ink); font-size: 16px; font-weight: 600; }
.cc-h span { color: var(--ms-muted); font-weight: 400; font-size: 14px; }
.cc-tag { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; border: 1px solid var(--ms-line-strong); border-radius: 6px; overflow: hidden; font-size: 12px; line-height: 1; }
.cc-tag b { padding: 5px 8px; background: var(--ms-topbar); color: var(--ms-teal-dark); font-weight: 600; }
.cc-tag span { padding: 5px 8px; color: var(--ms-sub); }
.cc-tag.is-it b { background: #eef3fb; color: #3c5a8a; }
.cc-tag.is-ig b { background: #f6eef6; color: #8a3c7a; }
/* Chat'e atsakymo variantai sąrašu (ne pill'ai) */
.ch .a2-list.ch-opts { display: block; padding-top: 4px; }
.ch .ch-opts .a2-row { height: auto; padding: 10px 8px 10px 4px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink); font-size: 15px; }
.ch .ch-opts .a2-row:hover { background: var(--ms-surface-soft); color: var(--ms-teal-dark); border-color: transparent; }
.tb-more-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-measure button { font-weight: 400; }

/* Pokalbio metu: užuomina po viršutiniu lauku ir naujos temos pasiūlymas */
.ms-search-note { position: absolute; left: 16px; top: calc(100% + 6px); z-index: 51; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--ms-ink); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.ms-search-note:not([style*="none"]) + .ms-suggest { top: calc(100% + 40px); }
.ch-newq { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-newq .ex-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================
   Chat'o artefaktai: skaičiuoklė, failas, video
   ========================================================== */
.art { border: 1px solid var(--ms-line-strong); border-radius: 12px; background: #fff; overflow: hidden; }
.art-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--ms-line); background: var(--ms-surface-soft); }
.art-head > div { flex: 1; display: grid; gap: 1px; }
.art-head small, .art-file small, .art-vt small { color: var(--ms-muted); font-size: 11.5px; letter-spacing: .02em; }
.art-head b { color: var(--ms-ink); font-size: 15px; font-weight: 600; }
.art-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--ms-teal-dark); box-shadow: inset 0 0 0 1px var(--ms-line); }
.art-open { color: var(--ms-link); font-size: 13px; text-decoration: none; white-space: nowrap; }
.art-open:hover { text-decoration: underline; }
.calc { padding: 10px 14px 12px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 80px 70px 90px 24px; align-items: center; gap: 10px; padding: 6px 0; }
.calc-row.is-head { padding-top: 0; color: var(--ms-muted); font-size: 12px; }
.calc-row select, .calc-row input { height: 36px; padding: 0 10px; border: 1px solid var(--ms-line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ms-ink); outline: none; }
.calc-row select:focus, .calc-row input:focus { border-color: var(--ms-field-text); box-shadow: 0 0 0 3px rgba(83, 169, 177, .2); }
.calc-n { color: var(--ms-sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-row b { color: var(--ms-ink); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ms-muted); font-size: 16px; }
.calc-x:hover { background: var(--ms-pill); color: var(--ms-ink); }
.calc-add { margin: 4px 0 10px; padding: 0; border: 0; background: none; color: var(--ms-link); font-size: 14px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; border-top: 1px solid var(--ms-line); }
.calc-total span { color: var(--ms-sub); font-size: 14px; }
.calc-total b { color: var(--ms-ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { margin: 4px 0 0; color: var(--ms-muted); font-size: 12px; }
.art-file { display: flex; align-items: center; gap: 14px; padding: 14px; }
.art-file > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.art-file b, .art-vt b { color: var(--ms-ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.art-file em, .art-vt em { color: var(--ms-muted); font-size: 12.5px; font-style: normal; }
.art-doc { flex: 0 0 auto; display: grid; place-items: end center; width: 42px; height: 52px; padding-bottom: 7px; border-radius: 4px 12px 4px 4px; background: #fbe9e8; color: #b0413e; font-size: 11px; font-weight: 700; letter-spacing: .03em; box-shadow: inset 0 0 0 1px #f2cfcd; }
.art-dl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ms-sidebar); border-radius: 8px; background: #fff; color: var(--ms-teal-dark); font-size: 14px; font-weight: 600; transition: background .15s; }
.art-dl:hover { background: var(--ms-topbar); }
.art-dl.is-done { border-color: transparent; background: var(--ms-topbar); }
.art-video { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; }
.art-video:hover b { color: var(--ms-link); }
.art-thumb { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 132px; height: 76px; border-radius: 8px; background: linear-gradient(135deg, #a9d1d3, #6fa9ae); color: #fff; }
.art-thumb i { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; padding-left: 2px; }
.art-thumb em { position: absolute; right: 6px; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(15, 40, 42, .7); font-size: 11px; font-style: normal; font-weight: 600; }
.art-vt { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 640px) { .calc-row { grid-template-columns: minmax(0, 1fr) 60px 70px; } .calc-row > b, .calc-row.is-head span:nth-child(4) { display: none; } .art-thumb { width: 96px; height: 60px; } }
.home-new { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 5px; background: linear-gradient(90deg, #ff7f7d, #b85399); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.home-tip .home-new { color: #fff; }
.ch-body > .ch-after { margin-top: 20px; }

/* Šaltinio nuoroda apibendrinime: mažas numeris (kaip ChatGPT / Perplexity), užvedus pelę peržiūra, paspaudus citata */
.cite-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border: 0; border-radius: 4px; background: #d7e9e9; color: var(--ms-teal-dark); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 2px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.cite-n:hover, .cite-n:focus-visible { background: var(--ms-teal-dark); color: #fff; outline: none; }
.cite-n.is-pro { background: #f3d6e9; color: var(--ms-pro); }
.cite-n.is-pro:hover, .cite-n.is-pro:focus-visible { background: var(--ms-pro); color: #fff; }

/* Ekspertas: maža nuoroda virš pokalbio lauko, prisegti šaltiniai formoje */
.ch-exlink { margin: 0 4px 6px; color: var(--ms-muted); font-size: 13px; text-align: right; }
.ch-exlink button { padding: 0; border: 0; background: none; color: var(--ms-link); font-size: 13px; }
.ch-exlink button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ak-att { display: grid; gap: 6px; margin-top: 4px; padding: 12px 14px; border: 1px dashed var(--ms-line-strong); border-radius: 10px; }
.ak-att small { color: var(--ms-sub); font-size: 13px; }
.ak-att-i { display: flex; align-items: baseline; gap: 8px; color: var(--ms-ink); font-size: 14px; }
.ak-att-i b { flex: 0 0 auto; color: var(--ms-muted); font-size: 12px; font-weight: 600; }
.ak-att-i span { flex: 1; min-width: 0; }
.ak-att-i button { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ms-muted); font-size: 15px; }
.ak-att-i button:hover { background: var(--ms-pill); color: var(--ms-ink); }

/* „Klausti DI apie šią paiešką“: pririštas prie DI bloko apačios (sėdi ant rėmelio), ilgam blokui prilimpa prie ekrano apačios */
.ask-dock { position: sticky; bottom: 16px; z-index: 6; display: flex; justify-content: center; height: 44px; margin: 14px 0 -42px; pointer-events: none; }
.ask-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 1px solid var(--ms-line-strong); border-radius: 22px; background: #fff; color: var(--ms-ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 6px 20px rgba(15, 40, 42, .12), 0 1px 3px rgba(15, 40, 42, .06); transition: box-shadow .2s, transform .2s var(--ms-ease); }
.ask-pill:hover { box-shadow: 0 10px 28px rgba(184, 83, 153, .2), 0 0 0 1px rgba(255, 127, 125, .35); transform: translateY(-2px); }
.ask-pill .ai-ic { margin: -6px 0; }
.a2.is-card { margin-bottom: 52px; }
.a2:not(.is-card) .ask-dock { margin-bottom: -20px; }
.rf-ov { margin-bottom: 18px; }
.ms-main.is-topwhite .ms-search-go { width: 34px; height: 34px; margin-top: 4px; } /* apvalus mygtukas sucentruotas 44 px lauke */

/* ==========================================================
   Admin „Antraščių šriftas: Source Serif“. Serifinis tik antraštėms
   ir akcentams, tekstas, mygtukai ir navigacija lieka Open Sans.
   ========================================================== */
.is-serif .home h1, .is-serif .a2-label, .is-serif .rf-q, .is-serif .few, .is-serif .sr-item h3, .is-serif .pl h3 button,
.is-serif .pn-art h1, .is-serif .ak h1, .is-serif .ak-done h1, .is-serif .ch-main b, .is-serif .home-tip strong, .is-serif .a2-rel-h, .is-serif .cc-h {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-optical-sizing: auto; letter-spacing: -.005em;
}
.is-serif .a2-label { font-size: 21px; font-weight: 600; }
.is-serif .rf-q { font-size: 19px; font-weight: 600; }
.is-serif .few { font-size: 18px; }
.is-serif .sr-item h3, .is-serif .pl h3 button { font-size: 20px; font-weight: 600; line-height: 1.3; }
.is-serif .home h1, .is-serif .pn-art h1, .is-serif .ak h1, .is-serif .ak-done h1 { font-weight: 600; letter-spacing: -.01em; }
.is-serif .ch-main b { font-size: 17px; }
.is-serif .a2-rel-h { font-size: 16.5px; }
.is-serif .home-tip strong { font-size: 16px; }
.home-tip .home-new { font-family: 'Open Sans', system-ui, sans-serif; } /* žetonas visada Sans, net kai antraštės serifinės */

/* Skaičiuoklė pokalbyje: kaip SUFLERIO skaičiuoklė (žalsvas fonas, laukeliai, savas select'o rodyklės stilius) */
.art.is-calc { border-color: #a9cfd1; background: #e6f1f2; }
.art.is-calc .art-head { border-bottom-color: #c3dfe0; background: transparent; }
.art.is-calc .art-head b { color: var(--ms-teal-dark); font-size: 16px; font-weight: 700; }
.art.is-calc .calc { padding: 12px 16px 16px; }
.calc-row.is-head { color: var(--ms-teal-dark); font-size: 13px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid #a9cfd1; margin-bottom: 4px; }
.calc-row select { -webkit-appearance: none; appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='%230f5354' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; border-color: #a9cfd1; cursor: pointer; }
.calc-row input { border-color: #a9cfd1; text-align: center; }
.calc-n, .calc-row b { display: flex; align-items: center; justify-content: flex-end; height: 36px; padding: 0 10px; border: 1px solid #b9d8da; border-radius: 8px; background: #d4e7e8; color: var(--ms-teal-dark); font-size: 14px; }
.calc-row b { font-weight: 600; text-align: right; }
.calc-add { display: inline-flex; align-items: center; height: 34px; margin: 10px 0 12px; padding: 0 16px; border: 1px solid var(--ms-teal); border-radius: 17px; background: #fff; color: var(--ms-teal-dark); font-weight: 600; }
.calc-add:hover { background: #f3f9f9; }
.calc-add:focus-visible { outline: 2px solid var(--ms-teal); outline-offset: 2px; }
.calc-total { border-top-color: #a9cfd1; }
.calc-total span { color: var(--ms-teal-dark); font-weight: 600; }
.calc-total b { color: var(--ms-teal-dark); font-size: 24px; }
.calc-x { color: var(--ms-teal-dark); }
.calc-note { color: #5f8c8f; }

/* Įvertinimas: trumpam varnelė vietoj 👍/👎 */
.a2-vote { position: relative; }
.a2-vote.is-ok svg { opacity: 0; }
.a2-vote.is-ok::after { content: ''; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; background: var(--ms-teal-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' stroke='%23000' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' stroke='%23000' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: vote-ok .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vote-ok { from { transform: scale(.3); opacity: 0; } }

/* „DI trumpai“ variantas: bendra mintis + citatos */
.a2-gistq { margin-bottom: 16px; }
.a2-gist { margin: 0 0 16px; color: var(--ms-ink); font-size: 16.5px; line-height: 1.65; }
.a2-gistq .a2-quotes { margin-bottom: 0; }
/* ⋯ „Daugiau“ tab'ų juostoje (kaip Gmail / Notion) */
.sr-modes .tb-more > .tb-dots { width: 32px; height: 32px; margin: 6px 0; padding: 0; justify-content: center; border-radius: 8px; color: var(--ms-sub); }
.sr-modes .tb-more > .tb-dots::after { display: none; }
.sr-modes .tb-more > .tb-dots:hover, .sr-modes .tb-more > .tb-dots[aria-expanded="true"] { background: var(--ms-surface-soft); color: var(--ms-ink); }
.tb-more { align-self: center; }
.tb-menu { left: auto; right: -4px; }
.a2-gist + .a2-gist { margin-top: -6px; }
/* Klausimo ekspertui intro kaip SUFLERIO formoje */
.ak-lead { color: var(--ms-ink-soft); font-size: 15.5px; line-height: 1.65; }
.ak-info { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 24px; padding: 16px 18px; border-radius: 10px; background: #edf2fd; color: #5b7bc4; }
.ak-info svg { flex: 0 0 auto; margin-top: 1px; }
.ak-info p { margin: 0; color: var(--ms-ink); font-size: 15px; line-height: 1.55; }
.ak-info b { font-weight: 700; }
.ak-foot { justify-content: flex-end; }
.tb-more { margin-left: auto; } /* ⋯ visada dešiniajame krašte */
/* „DI trumpai“ antraštė 15 px, kaip „Tęskit temą“ */
.a2-head.is-label:not(.is-ask) .a2-label { font-size: 15px; }
.is-serif .a2-head.is-label:not(.is-ask) .a2-label { font-size: 17px; }
.a2-head.is-label:not(.is-ask) > .ai-ic { height: 26px; margin: -5px -2px -5px -4px; }

/* ==========================================================
   „Atsakymas su DI“ dideliame modale (Admin)
   ========================================================== */
body.is-chatmodal { overflow: hidden; }
.ch-bd { position: fixed; inset: 0; z-index: 54; background: rgba(20, 45, 48, .45); }
.ch.is-modal { position: fixed; inset: 28px; z-index: 55; display: block; overflow-y: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 64px rgba(15, 40, 42, .3); animation: chm-in .25s var(--ms-ease); }
@keyframes chm-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.chm-bar { position: sticky; top: 0; z-index: 7; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--ms-line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
.chm-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ms-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.chm-brand .ai-ic { margin: -6px 0; }
.chm-q { flex: 1; min-width: 0; overflow: hidden; color: var(--ms-sub); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ch.is-modal .chf-wrap { max-width: 760px; margin: 0 auto; padding: 28px 24px 0; }
.ch.is-modal .chf-col { min-height: calc(100vh - 56px - 60px - 28px); }
.ch.is-modal .ch-compose { margin-top: auto; padding-bottom: 20px; }
@media (max-width: 640px) { .ch.is-modal { inset: 8px; } .chm-q { display: none; } }
.cite-nw { white-space: nowrap; } /* paskutinis žodis ir šaltinio numeris visada vienoje eilutėje */
/* DI režimo modalas tokio pločio kaip turinys */
.ch.is-modal { top: 28px; bottom: 28px; left: 0; right: 0; width: min(840px, calc(100vw - 32px)); margin: 0 auto; }
.ch.is-modal .chf-wrap { max-width: none; padding: 24px 40px 0; }
@media (max-width: 640px) { .ch.is-modal { top: 8px; bottom: 8px; width: calc(100vw - 16px); } .ch.is-modal .chf-wrap { padding: 20px 16px 0; } }
/* Nukrypimas nuo temos: patarimas */
.ch-tip { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ms-surface-soft); color: var(--ms-sub); font-size: 13.5px; line-height: 1.5; }
.ch-newq .ex-btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 16px; text-align: left; }

/* DI režimas: siauras šoninis meniu „Ankstesnės paieškos“ (kaip Claude) */
.ch .chf-wrap { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 28px; align-items: start; }
.ch-rail { position: sticky; top: 76px; display: grid; gap: 1px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.ch-rail-h { margin: 2px 10px 8px; color: var(--ms-muted); font-size: 12.5px; font-weight: 600; }
.ch-rail-i { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink-soft); font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; transition: background .15s; }
.ch-rail-i span { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 78%, transparent); mask-image: linear-gradient(to right, #000 78%, transparent); }
.ch-rail-i:hover { background: var(--ms-surface-soft); }
.ch-rail-i.is-on { background: var(--ms-pill); color: var(--ms-ink); font-weight: 600; cursor: default; }
.v2:has(.ch:not(.is-modal):not([style*="none"])) { max-width: calc(760px + 224px + var(--ms-gutter) * 2); grid-template-columns: minmax(0, 984px); }
.ch.is-modal { width: min(1080px, calc(100vw - 32px)); }
.ch.is-modal .ch-rail { top: 84px; }
@media (max-width: 900px) { .ch .chf-wrap { grid-template-columns: minmax(0, 1fr); } .ch-rail { display: none; } }

/* ==========================================================
   DI atsakymo „augimas“: kol rašomas tekstas, kitos dalys nerodomos;
   kortelės turinys ir artefaktai atsiranda palaipsniui.
   ========================================================== */
.ch-body[data-stage="text"] > :not(.ch-txt) { display: none !important; }
.ch-body[data-stage="card"] > :not(.ch-txt):not(.ch-card) { display: none !important; }
.ch-body[data-stage="after"] > :not(.ch-txt):not(.ch-card):not(.ch-after) { display: none !important; }
.ch-body[data-stage="text"] > .ch-txt::after, .ch-body[data-stage="after"] > .ch-after::after { content: ''; display: inline-block; width: 7px; height: 15px; margin-left: 2px; border-radius: 2px; background: var(--ai-accent); vertical-align: -2px; animation: ch-caret .8s steps(2) infinite; }
@keyframes ch-caret { 50% { opacity: 0; } }
.ch-card { animation: ch-rv .35s var(--ms-ease) both; }
.ch-card > *, .ch-card .a2-sum > p, .ch-card .a2-gistq > * { animation: ch-rv .45s var(--ms-ease) both; }
.ch-card > :nth-child(2), .ch-card .a2-sum > p:nth-of-type(1) { animation-delay: .1s; }
.ch-card > :nth-child(3), .ch-card .a2-sum > p:nth-of-type(2) { animation-delay: .35s; }
.ch-card > :nth-child(4), .ch-card .a2-sum > p:nth-of-type(3) { animation-delay: .6s; }
.ch-card > :nth-child(5) { animation-delay: .85s; }
.ch-card > :nth-child(6) { animation-delay: 1.1s; }
.ch-card > :nth-child(n+7) { animation-delay: 1.3s; }
@keyframes ch-rv { from { opacity: 0; transform: translateY(6px); } }
/* Artefaktas pirma rodomas kaip įkeliamas (shimmer), tada atsiranda turinys */
.ch-card .art { position: relative; }
.ch-card .art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #eef4f4 0%, #f8fbfb 50%, #eef4f4 100%); background-size: 200% 100%; animation: art-load 1.5s ease forwards, sk-shine 1s linear infinite; pointer-events: none; }
@keyframes art-load { 0%, 55% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .ch-card, .ch-card *, .ch-card .art::after { animation: none !important; } .ch-card .art::after { display: none; } }
/* Ankstesnių paieškų meniu: tekstas lygiuojasi su tab'ais, nuo pokalbio atskirtas vertikalia linija */
.ch-rail { margin-left: -10px; padding-right: 14px; border-right: 1px solid var(--ms-line); min-height: 320px; align-content: start; }
.ch .chf-wrap { grid-template-columns: 206px minmax(0, 1fr); gap: 32px; }
/* Ankstesnės paieškos tik modale; puslapyje (tab'e) pokalbis be šoninio meniu */
.ch:not(.is-modal) .ch-rail { display: none; }
.ch:not(.is-modal) .chf-wrap { grid-template-columns: minmax(0, 1fr); }
.v2:has(.ch:not(.is-modal):not([style*="none"])) { max-width: calc(760px + 40px + 280px + var(--ms-gutter) * 2); grid-template-columns: minmax(0, 760px) 280px; }
.v2.no-side:has(.ch:not(.is-modal):not([style*="none"])) { max-width: calc(760px + var(--ms-gutter) * 2); grid-template-columns: minmax(0, 760px); }
/* Modale: istorija lygiuojasi su DI ikona antraštėje, vertikali linija per visą aukštį */
.ch.is-modal .chf-wrap { align-items: stretch; min-height: calc(100vh - 56px - 61px); padding: 0 40px 0 24px; }
.ch.is-modal .ch-rail { position: sticky; top: 61px; align-self: stretch; max-height: none; min-height: 0; height: calc(100vh - 56px - 61px); margin-left: -10px; padding: 24px 14px 24px 0; }
.ch.is-modal .chf-col { padding-top: 24px; }

/* Citatos numerio mini peržiūra: tik tipas, data ir pavadinimas */
.pv.is-mini { width: 300px; height: auto; display: block; }
.pv-mini { display: grid; gap: 3px; width: 100%; padding: 9px 12px 10px; border: 1px solid var(--ms-line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(15, 40, 42, .08); text-align: left; cursor: pointer; transition: border-color .15s; }
.pv-mini:hover { border-color: var(--ms-line-strong); }
.pv-mini-meta { display: flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 11.5px; }
.pv-mini-t { color: var(--ms-ink); font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv.is-mini .pv-mini { pointer-events: auto; }

/* Mini įrankių juosta po DI turiniu: kopijuoti, išsaugoti, 👍/👎 (kairėje) */
.a2-tools { display: flex; align-items: center; gap: 2px; margin: 10px 0 0 -6px; }
.a2-tools.ch-tools { margin: -4px 0 0 -6px; }
.a2-disc-under { margin: 10px 0 18px; padding-top: 10px; border-top: 1px dashed var(--ms-line-strong); }

/* DI režimo šaltinių pasirinkimas prie siuntimo mygtuko */
.ch-srcw { position: relative; flex: 0 0 auto; }
.ch-srcbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #e2efef; color: var(--ms-teal-dark); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.ch-srcbtn i { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-teal); }
.ch-srcbtn .ch-srcn { font-variant-numeric: tabular-nums; }
.ch-srcbtn svg { transition: transform .2s var(--ms-ease); }
.ch-srcbtn:hover { background: #d3e7e7; }
.ch-srcbtn.is-open { background: var(--ms-teal-dark); color: #fff; }
.ch-srcbtn.is-open i { background: #fff; }
.ch-srcbtn.is-open svg { transform: rotate(180deg); }
.ch-srcpop { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; width: 280px; padding: 6px 0; border: 1px solid var(--ms-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(15, 40, 42, .14), 0 2px 6px rgba(15, 40, 42, .05); }
.ch-srcg + .ch-srcg { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ms-line); }
.ch-srcg p { margin: 10px 16px 4px; color: var(--ms-muted); font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.ch-srco { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--ms-ink); font-size: 14.5px; cursor: pointer; transition: background .12s; }
.ch-srco:hover { background: var(--ms-surface-soft); }
.ch-srco input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; margin: 0; border: 1.5px solid #c9d6d7; border-radius: 5px; background: #fff; cursor: pointer; transition: background .12s, border-color .12s; }
.ch-srco input:checked { border-color: #6aa7b0; background: #6aa7b0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ch-srco input:focus-visible { outline: 2px solid rgba(83, 169, 177, .4); outline-offset: 2px; }


/* Eksperto klausimas: subtilus konteksto indikatorius lauko apačioje */
.ak-qwrap { position: relative; }
.ak-qwrap.has-meter textarea { padding-bottom: 38px; }
.ak-meter { position: absolute; left: 15px; right: 15px; bottom: 11px; display: flex; align-items: center; gap: 8px; color: var(--ms-muted); font-size: 12.5px; line-height: 1.3; pointer-events: none; animation: ak-meter-in .3s var(--ms-ease); }
@keyframes ak-meter-in { from { opacity: 0; transform: translateY(3px); } }
.ak-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #d8b46a; transition: background .3s; }
.ak-meter.is-low .ak-dot { background: #c9d3d4; }
.ak-meter.is-good .ak-dot { background: #6bb08c; }
.ak-bars { flex: 0 0 auto; display: inline-flex; gap: 3px; }
.ak-bars b { width: 14px; height: 3px; border-radius: 2px; background: var(--ms-mark); transition: background .3s; }
.ak-meter.is-low .ak-bars b:nth-child(1) { background: #c9d3d4; }
.ak-meter.is-mid .ak-bars b:nth-child(-n+2) { background: #d8b46a; }
.ak-meter.is-good .ak-bars b { background: #6bb08c; }
.ak-chips button.is-done { border-style: solid; border-color: var(--ms-line); background: var(--ms-surface-soft); color: var(--ms-muted); }

/* Įrankių ikonos: be naršyklės fokuso rėmelio paspaudus pele; po veiksmo hover fonas užgęsta */
.a2-vote:focus:not(:focus-visible) { outline: none; }
.a2-vote.is-on { background: none; }
.a2-vote.is-calm, .a2-vote.is-calm:hover { background: none; transition: background .4s, color .4s; }
.a2-vote.is-calm:not(.is-on) { color: var(--ms-muted); }

/* Išoriniai šaltiniai: kitos spalvos numeriai ir neryški šaltinių juosta po santrauka */
.cite-n.is-ext { background: #f6e2dd; color: #b0564c; }
.cite-n.is-ext:hover, .cite-n.is-ext:focus-visible { background: #c4675c; color: #fff; }
.src-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.src-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid var(--ms-line); border-radius: 8px; background: #fff; color: var(--ms-sub); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s; }
.src-dots { display: inline-flex; gap: 3px; }
.src-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ms-teal); }
.src-dots i.is-pro { background: #d58cbd; }
.src-dots i.is-ext { background: #d9796e; }
.src-pill svg { color: var(--ms-muted); }
a.src-pill[href]:hover { border-color: var(--ms-line-strong); color: var(--ms-ink); }
a.src-pill:not([href]) { cursor: default; }
.pv-mini-meta.is-ext { color: #b0564c; font-weight: 600; text-transform: none; }
.pv-ext-dot { width: 6px; height: 6px; border-radius: 50%; background: #d9796e; }

/* V4 tab'ų juosta: horizontalus slinkimas vietoj ⋯ meniu */
.sr-modes.tb { position: relative; display: block; gap: 0; border-bottom: 0; }
.tb-track { display: flex; gap: 28px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--ms-line); overscroll-behavior-x: contain; }
.tb-track::-webkit-scrollbar { display: none; }
.tb-track > button { flex: 0 0 auto; }
.tb-track > button::after { bottom: 0; }
.sr-modes.tb::before, .sr-modes.tb::after { content: ''; position: absolute; top: 0; bottom: 1px; z-index: 1; width: 64px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.sr-modes.tb::before { left: 0; background: linear-gradient(to right, #fff 35%, rgba(255, 255, 255, 0)); }
.sr-modes.tb::after { right: 0; background: linear-gradient(to left, #fff 35%, rgba(255, 255, 255, 0)); }
.sr-modes.tb.can-l::before, .sr-modes.tb.can-r::after { opacity: 1; }
.sr-modes .tb-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 1px solid var(--ms-line-strong); border-radius: 50%; background: #fff; color: var(--ms-ink); box-shadow: 0 2px 6px rgba(15, 40, 42, .1); transition: background .15s; }
.sr-modes .tb-arrow::after { display: none; }
.sr-modes .tb-arrow:hover { background: var(--ms-surface-soft); }
.sr-modes .tb-arrow.is-l { left: 0; }
.sr-modes .tb-arrow.is-r { right: 0; }

/* Šoninis panelis plūduriuoja: atitrauktas nuo kraštų, apvalūs kampai, minkštas šešėlis */
@media (min-width: 861px) {
  .pn { top: 12px; right: 12px; bottom: 12px; width: min(720px, calc(100vw - 24px)); overflow: hidden; border-radius: 18px; box-shadow: 0 24px 64px rgba(15, 40, 42, .22), 0 2px 8px rgba(15, 40, 42, .06); }
  .pn.pn-off { transform: translateX(calc(100% + 24px)); }
  .pn-bar { padding: 14px 20px; }
}
.pn-backdrop { background: rgba(20, 45, 48, .28); }

/* ==========================================================
   V5 · Paieška modale (kaip Clay / Inkeep)
   ========================================================== */
.k5-bd { position: fixed; inset: 0; z-index: 56; background: rgba(20, 45, 48, .4); }
.k5 { position: fixed; top: 9vh; left: 0; right: 0; z-index: 57; display: flex; flex-direction: column; width: min(760px, calc(100vw - 32px)); max-height: 80vh; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(15, 40, 42, .26), 0 2px 8px rgba(15, 40, 42, .06); }
.k5 { animation: k5-in .2s var(--ms-ease); }
.k5-bd { animation: k5-fade .15s ease; }
@keyframes k5-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes k5-fade { from { opacity: 0; } }
.k5-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--ms-line); }
.k5-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ms-muted); }
.k5-field input { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; outline: none; background: none; color: var(--ms-ink); font: inherit; font-size: 16px; }
.k5-field input::placeholder { color: var(--ms-muted); }
.k5-clear { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ms-muted); font-size: 18px; }
.k5-clear:hover { background: var(--ms-pill); color: var(--ms-ink); }
.k5-title { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ms-ink); font-size: 15px; font-weight: 700; }
.k5-title .ai-ic { margin: -4px 0; }
.k5-seg { flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ms-surface-soft); box-shadow: inset 0 0 0 1px var(--ms-line); }
.k5-seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--ms-sub); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.k5-seg button:hover { color: var(--ms-ink); }
.k5-seg button.is-on { background: #fff; color: var(--ms-ink); box-shadow: 0 1px 3px rgba(15, 40, 42, .12); }
.k5-seg .ai-ic { margin: -3px 0; }
.k5-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; }
.k5-h { margin: 8px 8px 6px; color: var(--ms-muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.k5-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ms-ink); font-size: 14.5px; text-align: left; cursor: pointer; }
.k5-row svg { flex: 0 0 auto; color: var(--ms-muted); }
.k5-row:hover { background: var(--ms-surface-soft); }
.k5-ask { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 1px solid var(--ms-line); border-radius: 10px; background: #fff; color: var(--ms-ink); font-size: 14.5px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.k5-ask .ai-ic { flex: 0 0 auto; margin: -4px 0; }
.k5-ask > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ms-sub); }
.k5-ask > span b { color: var(--ms-ink); font-weight: 600; }
.k5-ask small { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 12px; }
.k5-ask.is-sel { border-color: #e2b8d4; background: linear-gradient(90deg, #fdf3f6, #fff 60%); }
.k5 kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--ms-line); border-radius: 5px; background: #fff; color: var(--ms-sub); font: 600 11px var(--ms-font); }
.k5-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 2px 10px; }
.k5-chips button { height: 28px; padding: 0 11px; border: 1px solid var(--ms-line-strong); border-radius: 14px; background: #fff; color: var(--ms-sub); font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.k5-chips button:hover { color: var(--ms-ink); }
.k5-chips button.is-on { border-color: var(--ms-ink); background: var(--ms-ink); color: #fff; }
.k5-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.k5-res { position: relative; display: grid; gap: 3px; width: 100%; padding: 10px 40px 11px 14px; border: 1px solid var(--ms-line); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.k5-res small { display: flex; align-items: center; gap: 6px; color: var(--ms-muted); font-size: 11.5px; }
.k5-res b { color: var(--ms-ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.k5-res > span { overflow: hidden; color: var(--ms-sub); font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.k5-res mark { background: none; color: inherit; font-weight: 700; }
.k5-res em { position: absolute; top: 50%; right: 14px; margin-top: -10px; color: var(--ms-muted); font-style: normal; }
.k5-res.is-sel { border-color: var(--ms-line-strong); box-shadow: 0 2px 10px rgba(15, 40, 42, .07); }
.k5-none { margin: 16px 8px; color: var(--ms-sub); font-size: 14px; }
.k5-foot { flex: 0 0 auto; display: flex; gap: 16px; padding: 9px 18px; border-top: 1px solid var(--ms-line); background: var(--ms-surface-soft); color: var(--ms-muted); font-size: 12px; }
.k5-foot span { display: inline-flex; align-items: center; gap: 4px; }
/* „Klausti DI“ be pokalbio: pasisveikinimas, pavyzdžiai, laukas */
.k5-askb { display: flex; flex-direction: column; gap: 18px; padding: 24px 22px 20px; }
.k5-hello { display: flex; gap: 14px; }
.k5-hello .ai-ic { flex: 0 0 auto; }
.k5-hello p { margin: 0 0 4px; color: var(--ms-ink-soft); font-size: 15px; line-height: 1.55; }
.k5-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 31px; }
.k5-sugg button { padding: 7px 12px; border: 1px solid var(--ms-line-strong); border-radius: 10px; background: #fff; color: var(--ms-ink-soft); font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.k5-sugg button:hover { border-color: #e2b8d4; background: #fdf6f9; }
.k5-compose { margin-top: 6px; box-shadow: none; }
@media (max-width: 640px) { .k5 { top: 8px; max-height: calc(100vh - 16px); } .k5-seg button { padding: 0 8px; } .k5-foot { display: none; } }

/* V5: pokalbis tame pačiame centriniame modale, be šoninės istorijos; puslapis po juo lieka pradinis */
.v2.is-v5 .v2-main > :not(.ch):not(.ch-bd), .v2.is-v5 .v2-side { display: none !important; }
.ch.is-modal.is-v5 { top: 9vh; bottom: auto; height: 82vh; width: min(760px, calc(100vw - 32px)); border-radius: 16px; }
.ch.is-v5 .ch-rail { display: none !important; }
.ch.is-modal.is-v5 .chf-wrap { display: block; min-height: 0; padding: 0 28px; }
.ch.is-modal.is-v5 .chf-col { min-height: calc(82vh - 61px); padding-top: 20px; }
.ch.is-modal.is-v5 .chm-bar { justify-content: space-between; }
.ch.is-modal.is-v5 .chm-q { order: -1; color: var(--ms-ink); font-weight: 600; }
@media (max-width: 640px) { .ch.is-modal.is-v5 { top: 8px; height: calc(100vh - 16px); } .ch.is-modal.is-v5 .chf-wrap { padding: 0 16px; } }

/* V5 perėjimas paieška ⇄ DI: tas pats fonas, be įėjimo animacijų, modalas tik pakeičia aukštį */
.ch.is-modal.is-v5 { animation: k5-in .2s var(--ms-ease); }
.v2.is-v5 .ch-bd { display: none !important; }   /* V5 naudoja bendrą .k5-bd */
.k5, .ch.is-modal.is-v5 { overflow: hidden; }
.ch.is-modal.is-v5 { overflow-y: auto; }
/* Sluoksniai V5: fonas 56, DI pokalbis 57, paieška 58, citatos peržiūra 59, šoninis panelis 60–61 */
.ch.is-modal.is-v5 { z-index: 57; }
.k5 { z-index: 58; }
.pv { z-index: 59; }

/* Pradinis puslapis: kol kas dabartinio SUFLERIO puslapio paveikslėlis */
.home-shot { display: block; width: 100%; max-width: 1000px; height: auto; }

/* Našumas: viso ekrano blur (backdrop-filter) po modalu kiekvieną hover perpiešdavo iš naujo ir lėtino.
   Fonai be blur, modalo antraštė vientisa balta */
.ch.is-modal .chm-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* „Paieškoti plačiau“: tikra paieškos ikona vietoj ⌕ simbolio */
.a2-row i.is-search { display: inline-grid; place-items: center; align-self: center; }
.a2-row i.is-search svg { display: block; }

/* V4 „DI režimas puslapyje, platesnis“: puslapis prasiplečia, kairėje atsiranda ankstesnės paieškos su pilka skirtine linija */
.v2 { transition: max-width .35s var(--ms-ease); }
@media (min-width: 901px) {
  .v2:has(.ch.is-rail:not([style*="none"])), .v2.no-side:has(.ch.is-rail:not([style*="none"])) { max-width: calc(760px + 238px + var(--ms-gutter) * 2); grid-template-columns: minmax(0, 998px); }
  .ch.is-rail .chf-wrap { grid-template-columns: 206px minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .ch.is-rail .ch-rail { display: grid; position: sticky; top: calc(var(--ms-topbar-h) + 12px); align-self: start; height: calc(100vh - var(--ms-topbar-h) - 32px); min-height: 0; max-height: none; margin-left: -10px; padding: 4px 14px 16px 0; border-right: 1px solid var(--ms-line); animation: rail-in .35s var(--ms-ease); }
}
@keyframes rail-in { from { opacity: 0; transform: translateX(-10px); } }

/* V4 „DI režimas per visą turinio langą“: kaip modalas, tik užpildo baltą sritį po viršutine juosta, su „Uždaryti“ */
body.is-chatfill { overflow: hidden; }
.ch.is-fill { position: fixed; top: calc(var(--ms-frame) + var(--ms-topbar-h)); left: var(--ms-sidebar-w); right: var(--ms-frame); bottom: 0; z-index: 25; display: block; overflow-y: auto; background: #fff; animation: fill-in .28s var(--ms-ease); }
@keyframes fill-in { from { opacity: 0; transform: translateY(8px); } }
.ch.is-fill .chf-wrap { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 32px; align-items: stretch; max-width: 1240px; min-height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h) - 61px); margin: 0 auto; padding: 0 40px 0 24px; }
.ch.is-fill .ch-rail { display: grid; position: sticky; top: 61px; align-self: stretch; height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h) - 61px); min-height: 0; max-height: none; margin-left: -10px; padding: 24px 14px 24px 0; border-right: 1px solid var(--ms-line); }
.ch.is-fill .chf-col { display: flex; flex-direction: column; gap: 22px; min-height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h) - 61px); padding-top: 24px; }
.ch.is-fill .ch-compose { margin-top: auto; padding-bottom: 20px; }
.chm-close { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border: 1px solid var(--ms-line-strong); border-radius: 8px; background: #fff; color: var(--ms-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.chm-close:hover { background: var(--ms-surface-soft); border-color: var(--ms-field-text); }
.chm-close svg { color: var(--ms-sub); }
@media (max-width: 900px) { .ch.is-fill { left: 0; right: 0; } .ch.is-fill .chf-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 16px; } .ch.is-fill .ch-rail { display: none; } }

/* V4 „Per visą langą, DI juosta vietoj paieškos juostos“: pokalbis uždengia ir viršutinę juostą,
   DI juosta tampa viršumi (tokio pat aukščio), paskyros nuorodos ikonomis prieš „Uždaryti“ */
.ch.is-fill.is-filltop { top: var(--ms-frame); z-index: 35; border-radius: var(--ms-frame-radius) var(--ms-frame-radius) 0 0; }
.ch.is-filltop .chm-bar { height: var(--ms-topbar-h); padding: 0 24px 0 32px; background: var(--ms-topbar); }
.ch.is-filltop .chf-wrap { min-height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h)); }
.ch.is-filltop .ch-rail { top: var(--ms-topbar-h); height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h)); }
.ch.is-filltop .chf-col { min-height: calc(100vh - var(--ms-frame) - var(--ms-topbar-h)); }
.chm-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.chm-nav a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; transition: background .15s; }
.chm-nav a:hover { background: rgba(255, 255, 255, .7); }
.chm-nav img { opacity: .7; }
.chm-nav .ms-ico-user { opacity: 1; }
.ch.is-filltop .chm-q { flex: 1; }

/* „← Rezultatai“ kairėje: grįžimas iš DI režimo per visą langą */
.chm-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-left: -10px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ms-sub); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.chm-back:hover { background: rgba(15, 83, 84, .06); color: var(--ms-ink); }
.chm-back svg { transition: transform .2s var(--ms-ease); }
.chm-back:hover svg { transform: translateX(-2px); }
.chm-sep { flex: 0 0 auto; width: 1px; height: 20px; background: var(--ms-line-strong); }

/* Mano klausimo burbulas pokalbyje: vos ryškesnis teal atspalvis (tarp Claude ir ChatGPT intensyvumo) */
.ch-bubble { background: #e2eeef; }

/* Antraštės klausimas išnyra tik nuslinkus (Perplexity principas) */
.chm-q { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s var(--ms-ease), transform .2s var(--ms-ease); }
.chm-q.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* DI režimas per visą langą: ankstesnių paieškų blokas ~30 px platesnis */
.ch.is-fill .chf-wrap { grid-template-columns: 236px minmax(0, 1fr); }
@media (max-width: 900px) { .ch.is-fill .chf-wrap { grid-template-columns: minmax(0, 1fr); } }
/* DI režimas per visą langą: pokalbio plotis ribojamas patogiam skaitymui (~70 ženklų eilutė), centruojamas */
.ch.is-fill .chf-col { width: 100%; max-width: 760px; margin: 0 auto; }
