/* =========================================================
   Memory Avatar · 2025 Light AI UI Theme
   Vienas styles.css failas
   ========================================================= */

/* ====== 1. Tema / bendra bazė (šviesi) ====== */
:root {
  /* Backgrounds */
  --bg: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-soft: #f9fafb;

  /* Borders */
  --glass-border: rgba(148, 163, 184, 0.5);
  --glass-border-strong: rgba(148, 163, 184, 0.8);
  --glass-blur: 18px;

  /* Primary AI gradient (mėlyna–violetinė) */
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --primary-strong: #1d4ed8;

  /* Secondary (violet) */
  --secondary: #7c3aed;
  --secondary-soft: rgba(124, 58, 237, 0.15);

  /* Accent ok/warn/error */
  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.1);
  --warn: #ea580c;
  --warn-soft: rgba(234, 88, 12, 0.08);
  --err: #e11d48;
  --err-soft: rgba(225, 29, 72, 0.08);

  /* Text */
  --text: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.18);

  /* Radii */
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

    /* 🔹 Mygtukų spalvos, kurių dabar trūksta */
  --bg-btn: #f3f4f6;
  --bg-btn-hover: #e5e7eb;
  --bg-lo: #f9fafb;
  --border: rgba(209, 213, 219, 0.9);
  --accent: linear-gradient(135deg, #60a5fa, #2563eb);

  /* šitie irgi naudingi, nes vėliau CSS'e minimi */
  --bg-subtle: #f9fafb;
  --text-main: #111827;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #e5edff 0, transparent 45%),
    radial-gradient(circle at bottom right, #e0f2fe 0, transparent 55%),
    #f3f4f6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

/* ====== 2. Layout: header + app konteineris ====== */

/* Viršutinė juosta */
.bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;

  background:
    radial-gradient(circle at top left,
      rgba(59, 130, 246, 0.18),
      rgba(249, 250, 251, 0.96));
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 40;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.muted {
  color: var(--text-muted);
}

.spacer {
  flex: 1;
}

.menu-toggle {
  display: none;
}

/* Pagrindinis app konteineris */
.app {
  max-width: 980px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  padding: 12px 10px 96px; /* vieta apatiniam meniu */
}

/* Vidinis turinys */
main.content,
.main {
  width: 100%;
}

main.content > section {
  margin-bottom: 14px;
}

/* Puslapio antraštės */
.page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.page-title h1 {
  font-size: 20px;
  margin: 0;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ====== 3. Grid / kortelės / lentelės ====== */

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Kortelės – šviesus glass */
.card {
  background:
    radial-gradient(circle at top left,
      rgba(191, 219, 254, 0.65),
      transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(221, 214, 254, 0.65),
      transparent 60%),
    var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.card .value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.separator {
  height: 1px;
  background: rgba(229, 231, 235, 1);
  margin: 10px 0;
}

/* Lentelės */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 1);
  text-align: left;
}

.table th {
  background: #f3f4ff;
  color: #1e293b;
  font-weight: 600;
}

.table tr:hover td {
  background: #eff6ff;
}

.table th,
.table td {
  vertical-align: middle;
}

/* ====== 4. Buttons / inputs ====== */

.btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out,
    border-color 0.12s ease-out,
    filter 0.12s ease-out;
}

.btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn.primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: transparent;
  color: #f9fafb;
}

.btn.ghost {
  background: #f3f4f6;
}

.btn.danger {
  background: linear-gradient(135deg, #fecaca, #f97373);
  border-color: #f97373;
  color: #7f1d1d;
}

.btn.danger:hover {
  filter: brightness(1.02);
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* ====== 5. Utility layout ====== */

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.small {
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
}

.link {
  color: #2563eb;
  cursor: pointer;
}

.link.danger {
  color: #b91c1c;
  font-weight: 600;
}

.link.danger:hover {
  text-decoration: underline;
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.status.ok {
  border-color: var(--ok);
  background: var(--ok-soft);
}

.status.warn {
  border-color: var(--warn);
  background: var(--warn-soft);
}

.status.err {
  border-color: var(--err);
  background: var(--err-soft);
}

.status.warn .dot {
  background: var(--warn);
}
.status.err .dot {
  background: var(--err);
}

/* KPI */
.kpi {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.kpi .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

/* ====== 6. Modalai (sheet + confirm) ====== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 70; /* buvo 50 – turi būti didesnis už .bottom-nav (50) */
}


.modal {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 20px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
  will-change: transform, opacity;
  transform: translateY(100%);
  animation: sheet-in 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  opacity: 0.9;
  margin: 0 auto 10px auto;
}

.modal .hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.modal .hdr h2 {
  font-size: 16px;
  text-align: center;
}

/* animacija iš apačios į viršų */
@keyframes sheet-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .modal-backdrop {
    align-items: center;
  }
  .modal {
    border-radius: 18px;
    transform: none;
    animation: none;
    width: min(640px, 92vw);
  }
}

.modal .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .modal .grid2 {
    grid-template-columns: 1fr;
  }
}

.errtxt {
  color: #b91c1c;
  font-size: 12px;
}

/* Confirm modal */
.cmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

.cmodal {
  width: min(460px, 92vw);
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.2);
}

.cmodal .hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cmodal .body {
  color: #111827;
  font-size: 14px;
}

.cmodal .row-right {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ====== 7. Talk UI / chat ====== */

.log {
  height: 260px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

.typing {
  min-height: 48px;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f9fafb;
  border: 1px dashed rgba(209, 213, 219, 0.9);
  border-radius: 10px;
  padding: 10px;
}

/* chips */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  background: #f3f4f6;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #374151;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.chip.ok {
  border-color: var(--ok);
  color: #166534;
  background: var(--ok-soft);
}
.chip.warn {
  border-color: var(--warn);
  color: #9a3412;
  background: var(--warn-soft);
}

.counter {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* pill */
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin: 4px 6px 0 0;
}
.pill .btn {
  padding: 4px 8px;
  border-radius: 999px;
}

/* Chat header */
.chat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-hdr-right{
  display:flex;
  align-items:center;
  gap:6px;
}

/* Mažas apvalus mygtukas tik ikonai */
.btn-icon{
  padding:4px 6px;
  min-width:0;
}

.btn-icon .icon svg{
  width:18px;
  height:18px;
  display:block;
}


.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  background: #f9fafb;
  font-size: 12px;
}

.ws-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}
.ws-chip.ok .dot {
  background: var(--ok);
}
.ws-chip.err .dot {
  background: var(--err);
}

/* Chat korta */
.chat {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
}

.chat-summary {
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.chat-body {
  height: 420px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  overflow: auto;
  font-size: 12px;
}

/* Chat bubbles – AI vs You */
.msg {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* vardas virš burbulo */
.msg .who {
  font-size: 11px;
  color: var(--text-soft);
}

/* bazinis burbulas (AI / asistentas) */
.msg .text {
  display: inline-block;
  max-width: 82%;
  white-space: pre-wrap;
  font-size: 12px;

  padding: 7px 10px;
  border-radius: 14px 14px 14px 4px;

  background: #f3f4f6;                      /* šviesiai pilka – AI */
  color: var(--text);
  align-self: flex-start;

  box-shadow: 0 4px 10px rgba(15,23,42,0.05);
}

/* Tavo žinutės – dešinėje, mėlynas burbulas */
.msg.me {
  align-items: flex-end;
}

.msg.me .who {
  text-align: right;
  width: 100%;
}

.msg.me .text {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #f9fafb;

  border-radius: 14px 14px 4px 14px;       /* kampas apverstas */
  align-self: flex-end;
}

/* mažas pritraukimas mobile, kad burbulai nesiremtų į kraštus */
@media (max-width: 640px) {
  .chat-body .msg .text {
    max-width: 88%;
  }
}


/* Fiksuotas stiklinis input bar (Talk) */
#view-talk .chat-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  width: calc(100% - 24px);
  max-width: 960px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  z-index: 45;
}

#view-talk .chat-footer textarea#talk-msg {
  flex: 1;
  min-height: 38px;
  max-height: 100px;
  resize: vertical;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
}

.send-mic-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Send/Mic */
#view-talk #talk-send,
#view-talk #talk-mic {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  font-size: 18px;
  padding: 0;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

/* Mic */
#view-talk #talk-mic {
  background: radial-gradient(circle at 30% 0,
              rgba(248, 250, 252, 0.8),
              #e5e7eb);
}

/* Talk mic – raudona būsena, kai recording */
#view-talk #talk-mic.recording {
  background: #ffede7;
  border-color: #fed7aa;
  color: #ad5c5c;
  box-shadow: 0 10px 24px rgba(248, 113, 113, 0.45);
}

/* Talk mic SVG – dydis ir stilius */
#view-talk #talk-mic .talk-mic-icon {
  width: 18px;        /* 👈 sumažintas ikonėlės dydis */
  height: 18px;
}

/* Paverčiam ją kontūrine, o ne pilnai užpildyta */
#view-talk #talk-mic .talk-mic-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* Send */
#view-talk #talk-send {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #f9fafb;
  border-color: transparent;
}

#view-talk #talk-send:hover,
#view-talk #talk-mic:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.03);
}

#view-talk #talk-send:active,
#view-talk #talk-mic:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* Kad žinutės neužlįstų po inputu */
#chat-body {
  padding-bottom: 120px;
}

/* Įrašymo baras */
.recording-bar {
  display: none;
  flex-direction: column;          /* 👈 visa struktūra vertikali */
  align-items: stretch;
  gap: 4px;                        /* mažesnis tarpas */
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 6px;
}

/* Eilutė po juosta: tekstas kairėje, laikmatis dešinėje */
.recording-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* kairėje */
  width: 100%;
}
.recording-meta .muted.small {
  font-size: 11px;      /* mažesnis tekstas */
  white-space: nowrap;  /* kad nesilaužytų į kelias eilutes */
}



/* Laikmatis įrašymo metu */
/* Paprastas mažas laikmatis po bange */
.recording-timer {
  font-size: 10px;
  line-height: 1;
  color: #6b7280;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.recording-left {
  display: flex;
  align-items: center;
  gap: 6px;              /* nedidelis tarpas tarp teksto ir laikmačio */
  width: auto;
}

.recording-timer.show {
  opacity: 1;
}


.recording-bar.show {
  display: flex;
  animation: recFadeIn 0.25s ease-out;
}

@keyframes recFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Bendra banga Talk + Search */
#recording-canvas,
#search-recording-canvas {
  display: block;
  width: 100%;
  height: 40px;
  background: rgba(215, 197, 245, 0.15);
  border-radius: 8px;
}


.recording-bar .muted.small {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
}

/* Fiksuota pozicija */
#view-talk #recording-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 150px;
  width: calc(100% - 24px);
  max-width: 960px;
  margin-top: 0;
  z-index: 46;
}

/* ====== 8. Talk persons drawer ====== */

/* ====== 8. Talk persons drawer ====== */

.talk-persons-drawer {
  position: fixed;
  right: 16px;
  bottom: 260px;           /* virš recording bar'o */
  width: 260px;
  max-height: 60vh;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 10px;
  z-index: 54;
  min-height: 160px;

  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

.talk-persons-drawer.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.talk-persons-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* SVARBU: jokio height:100% čia nebėra */
}

.talk-persons-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

/* vienintelė .talk-persons-list versija */
.talk-persons-list {
  display: block;
  max-height: 55vh;
  overflow-y: auto;
}

/* kortelės sąraše */
.talk-persons-list .person-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.55); /* švelniai violetinis */
  background: #eef2ff;                          /* šviesiai mėlynas fonas */
  color: #111827;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
}

.talk-persons-list .person-item .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* aktyvus asmuo – kaip web'e */
.talk-persons-list .person-item.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Tuščias sąrašas – kortelė su mygtuku */
.talk-persons-list .talk-persons-empty {
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px dashed rgba(129, 140, 248, 0.6);
  font-size: 13px;
  color: #4b5563;
}

.talk-persons-list .talk-persons-empty p {
  margin: 0 0 6px;
}

.talk-persons-list .talk-persons-empty .btn {
  font-size: 13px;
  padding: 6px 10px;
}




/* ✅ mobilus išdėstymas (WebView telefone) */
/* ✅ mobilus išdėstymas (WebView telefone) */
/* ✅ mobilus išdėstymas (WebView telefone) */
/* ✅ mobilus išdėstymas (WebView telefone) */
@media (max-width: 640px) {
  .talk-persons-drawer {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 380px;
    margin: 0 auto;

    bottom: 190px;        /* virš stiklinio input bar */
    max-height:  300px;     /* fiksuota max aukščio riba */
    top: auto;

    border-radius: 18px;
    z-index: 60;          /* virš FAB mygtukų */
    overflow: hidden;     /* kad turinys neišliptų iš balto fono */
    display: flex;
    flex-direction: column;
  }

  .talk-persons-drawer-inner {
    flex: 1 1 auto;
    min-height: 0;        /* SUPER svarbu flex konteineriui */
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .talk-persons-list {
    flex: 1 1 auto;
    min-height: 0;        /* leidžia susitraukt ir scrollintis, o ne stumti dėžę */
    overflow-y: auto;
    max-height: none;     /* jokių vh/calc čia */
  }

  .talk-tts-fab {
    bottom: 140px;
  }
  .talk-persons-fab {
    bottom: 230px;
  }
  .talk-finalize-fab {
    bottom: 290px;
  }
}




/* ====== 9. FAB burbuliukai ====== */

.talk-persons-fab,
.talk-finalize-fab,
.talk-tts-fab {
  position: fixed;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: radial-gradient(circle at 30% 0,
              rgba(255, 255, 255, 0.95),
              #e5e7eb);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  z-index: 55;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

/* Klaidos burbuliukas prie FINALIZE mygtuko */
.talk-finalize-fab {
  position: fixed;          /* jei dar nėra – priversim FAB būti „ant viršaus“ */
  right: 16px;
}

.talk-finalize-fab .fab-hint {
  position: absolute;
  right: 56px;
  bottom: 0;

  width: 260px;            /* fiksuotas plotis */
  max-width: 320px;        /* jei labai siauras ekranas */
  min-width: 220px;        /* neleidžiam susitraukti į „stulpelį“ */

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--err);
  background: #fef2f2;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);

  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #991b1b;
  z-index: 80;
  opacity: 0;
  transform: translateY(4px);
  animation: fab-hint-in 0.18s ease-out forwards;

  white-space: normal;      /* leisti normaliai laužyti eilutes */
  word-break: break-word;   /* jei labai ilgi žodžiai */
}



.talk-finalize-fab .fab-hint .fab-hint-msg {
  line-height: 1.4;
}

.talk-finalize-fab .fab-hint .fab-hint-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
}

.talk-finalize-fab .fab-hint .fab-hint-close:hover {
  opacity: 1;
}

.talk-finalize-fab .fab-hint.hide {
  animation: fab-hint-out 0.15s ease-in forwards;
}

@keyframes fab-hint-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fab-hint-out {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}


.talk-persons-fab {
  bottom: 220px;
}

.talk-finalize-fab {
  bottom: 280px;
}

.talk-tts-fab {
  bottom: 160px;
}

.talk-persons-fab:hover,
.talk-finalize-fab:hover,
.talk-tts-fab:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.04);
}

.talk-persons-fab:active,
.talk-finalize-fab:active,
.talk-tts-fab:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* FAB ikonų dydis (persons, finalize, tts) */
.talk-persons-fab .fab-icon svg,
.talk-finalize-fab .fab-icon svg,
.talk-tts-fab .tts-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Siaura info juostelė šalia TTS ikonos */
#tts-status-badge.tts-status-badge {
  position: fixed;
  /* tikslią top/left koordinatę visada uždeda JS */

  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.95);
  color: #111827;
  font-size: 12px;

  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 56;
}


#tts-status-badge.tts-status-badge.show {
  opacity: 1;
  transform: translateY(0);
}


/* finalize disabled – paliekam tavo esamą logiką, tik šiek tiek prigesinam */
.talk-finalize-fab .fab-btn.disabled .fab-icon svg,
.talk-finalize-fab .fab-btn[disabled] .fab-icon svg {
  opacity: 0.6;
}


.talk-finalize-fab .fab-btn {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.talk-finalize-fab .fab-btn.disabled,
.talk-finalize-fab .fab-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.talk-tts-fab.playing {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.5);
}

/* TTS FAB – kelių būsenų ikonos */
.talk-tts-fab .tts-icon {
  display: none;
}

.talk-tts-fab .tts-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Pagal būsenos klasę rodome skirtingą ikoną */
.talk-tts-fab.state-normal .tts-icon-normal {
  display: block;
}

.talk-tts-fab.state-playing .tts-icon-playing {
  display: block;
}

.talk-tts-fab.state-muted .tts-icon-muted {
  display: block;
}


/* ====== 10. Finals (audio kortelės) ====== */

#view-finals {
  padding: 12px 12px 80px;
}

#view-finals .page-title h1 {
  font-size: 16px !important;
  text-align: center;
}

.finals-card {
  max-width: 780px;
  margin: 0 auto;
}

.finals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finals-empty-global {
  text-align: center;
  font-size: 13px;
  padding: 32px 12px;
  color: var(--text-muted);
}

/* Kortelė */

.final-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  padding: 12px 12px 10px;
  font-size: 13px;
}

.final-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.final-person {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.final-date {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Tekstinis preview */

/* Tekstinis preview */

/* pats tekstas – laužo eilutes, šiek tiek storesnis */
/* Konteineris su smooth expand/collapse ir fade efektu */
/* Tekstinis preview */

/* pats tekstas – laužo eilutes, šiek tiek storesnis */
/* Konteineris su smooth expand/collapse ir fade efektu */
/* Pagrindinis preview konteineris – be ribojimo by default */
/* Pagrindinis preview konteineris */
/* Tekstinis preview – bazinis konteineris */
.final-preview {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 2px 8px;
  line-height: 1.35;
  position: relative;
}

/* Konteineris pats nebekerpa turinio – truncate darom tik teksto span'ui */
.final-preview.is-truncated {
  max-height: none;
  overflow: visible;
}

/* Išjungiame seną gradientą konteineriui – jis dabar ant .final-preview-text */
.final-preview.is-truncated::after,
.final-preview.is-truncated.is-expanded::after {
  content: none;
}


/* Išskleista – leidžiam augti */
.final-preview.is-truncated.is-expanded .final-preview-text {
  max-height: 40rem;
}

/* Truncate darom tik TEXT span'ui, ne visam konteineriui */
.final-preview-text {
  display: block;
}
/* Mygtukas „Rodyti visą / trumpiau“ */
.final-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  font-weight: 500;         /* truputį storesnis tik mygtukas */
  color: #4b5563;           /* pilkšvas, ne mėlynas */
  cursor: pointer;
  text-decoration: none;
}

.final-preview-toggle-icon {
  font-size: 10px;
}

.final-preview-toggle:hover {
  text-decoration: none;
  color: #111827;
}

.final-preview-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Gradientą taip pat pririšam prie teksto, ne konteinerio */
.final-preview.is-truncated .final-preview-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.8em;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0),
    rgba(248, 250, 252, 1)
  );
  pointer-events: none;
}

/* Kai išskleista – gradientą nuimam */
.final-preview.is-truncated.is-expanded .final-preview-text::after {
  display: none;
}

.final-preview.is-truncated .final-preview-text {
  max-height: 3.8em;  /* ~2.5 eilutės, gali keisti */
  overflow: hidden;
}






/* Footer: tekstas + ikoninis mygtukas dešinėje */

#view-finals .final-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

#view-finals .final-share-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#view-finals .final-share-title {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

#view-finals .final-share-sub {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Apvalus „Siųsti“ burbulas su SVG ikona */

#view-finals .final-share-btn-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(248,250,252,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(148,163,184,0.35);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out,
    border-color 0.12s ease-out,
    opacity 0.12s ease-out;
}

#view-finals .final-share-btn-icon svg {
  width: 18px;
  height: 18px;
}

#view-finals .final-share-btn-icon:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(148,163,184,0.4);
  background: #ffffff;
  border-color: rgba(129,140,248,0.9);
}

#view-finals .final-share-btn-icon:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(148,163,184,0.45);
}

/* disabled būsena */

#view-finals .final-share-btn-icon[disabled] {
  background: #edf2f7;
  border-color: rgba(209,213,219,0.9);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
}

/* Wavesurfer grotuvas */

.final-player {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.final-player-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.final-play-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: radial-gradient(circle at 30% 0,
                rgba(79, 70, 229, 0.1),
                rgba(124, 58, 237, 0.9));
  color: #faf5ff;
  box-shadow:
    0 10px 24px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(17, 24, 39, 0.10);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.final-play-btn:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.05);
}

.final-play-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow:
    0 6px 16px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(17, 24, 39, 0.1);
}

.final-player-top-main {
  flex: 1;
  min-width: 0;
}

.final-wave-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(249, 250, 251, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.final-wave {
  width: 100%;
  height: 80px;
  cursor: pointer;
}

.final-player-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
  padding-right: 2px;
}

.final-time-current,
.final-time-duration {
  white-space: nowrap;
}

/* Responsive finals */

@media (max-width: 640px) {
  #view-finals {
    padding-inline: 8px;
  }

  .final-card {
    padding-inline: 10px;
  }

  .final-wave {
    height: 64px;
  }

  #view-finals .final-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  #view-finals .final-share-sub {
    white-space: normal;
  }
}

/* Footer layout */
.final-card-footer{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
}

.final-share-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:11px;
  color:#9ca3af;
  flex:1 1 auto;
}

.final-share-title{
  font-size:12px;
  font-weight:500;
  color:#4b5563;
}

.final-share-sub{
  font-size:11px;
  color:#9ca3af;
}

.final-share-status-row{
  min-height:14px;
}

.final-share-status{
  font-size:11px;
  color:#16a34a;
}

/* dešinėje – burbulas + mažas resend mygtukas vertikaliai */
.final-share-actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* pagrindinis burbulas – švelnesnė žalsvai melsva */
.final-share-btn-icon{
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.7);
  background:radial-gradient(circle at 30% 0,
            rgba(248,250,252,1),
            rgba(129,140,248,0.35));
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(148,163,184,0.3);
  transition:transform .12s, box-shadow .12s, filter .12s;
}

.final-share-btn-icon:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 6px 14px rgba(148,163,184,0.4);
}

.final-share-btn-icon.is-busy{
  opacity: 0.65;
  box-shadow: none;
  cursor: wait;
}

/* SENT būsena – tik švelniai žalsva, ne „neoninė“ */
.final-share-btn-icon.final-share-btn-sent{
  background:radial-gradient(circle at 30% 0,
            rgba(240,253,244,1),
            rgba(52,211,153,0.65));
  border-color:rgba(16,185,129,0.9);
  box-shadow:0 6px 14px rgba(16,185,129,0.35);
}

/* mažas resend mygtukas – dvigubai mažesnis */
.final-resend-btn{
  background:rgba(243,244,246,0.8);
  border:1px solid rgba(209,213,219,0.9);
  font-size:10px;
  padding:3px 8px;
  border-radius:999px;
  cursor:pointer;
  color:#374151;
  transition:all .12s ease-out;
}


.final-resend-btn:hover{
  background:#ffffff;
  border-color:rgba(156,163,175,0.9);
}

.final-resend-btn:active{
  transform:scale(0.96);
}

.final-share-error{
  margin-top: 4px;
  font-size: 11px;
  color: #ef4444;
  max-width: 260px;
}





/* ====== 11. Toast ====== */

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.toast {
  min-width: 260px;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: toast-in 0.2s ease-out forwards;
}

.toast.ok {
  border-color: var(--ok);
  background: #ecfdf3;
}
.toast.err {
  border-color: var(--err);
  background: #fef2f7;
}
.toast.warn {
  border-color: var(--warn);
  background: #fff7ed;
}

.toast .msg {
  color: #111827;
}

.toast .x {
  cursor: pointer;
  opacity: 0.7;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* nauja eilutė: jei nėra .show – nerodom */
.toast:not(.show) {
  display: none;
}

/* ====== 12. Blur / overlay ====== */

.app-blurred {
  filter: blur(6px);
  transition: filter 0.25s ease;
}

.dim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 50;
}

.dim-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ====== 13. Settings puslapis ====== */

.settings-page {
  max-width: 960px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-right {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vstack {
  display: flex;
  flex-direction: column;
}
.gap8 {
  gap: 8px;
}
.gap12 {
  gap: 12px;
}

/* Settings cards – summary + edit mode */
.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-summary {
  margin-top: 4px;
}

.settings-summary-main {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.settings-summary-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.settings-edit-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
}

/* Mažesni pill mygtukai Settings'e */
.btn-small {
  padding: 6px 10px;
  font-size: 13px;
}

/* Danger zone blokas */
.settings-danger {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(248, 113, 113, 0.7);
}

.settings-danger-title {
  margin: 0 0 4px;
  font-size: 14px;
  color: #991b1b;
}


/* ====== 14. Auth (login / register) – šviesus ====== */

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 45%),
    radial-gradient(circle at bottom right, #e0f2fe 0, transparent 55%),
    #eff6ff;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.auth-main {
  max-width: 880px;
  margin: 40px auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background:
    radial-gradient(circle at top left,
      rgba(191, 219, 254, 0.9),
      transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(221, 214, 254, 0.85),
      transparent 60%),
    #ffffff;
  box-shadow: var(--shadow-strong);
  padding: 22px 20px 20px;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.auth-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.auth-form {
  flex: 1 1 260px;
}

.auth-form h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.auth-form label {
  font-size: 13px;
}

/* „arba“ */
.auth-divider {
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(209, 213, 219, 0.9);
}

/* Google mygtukas */
.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Kalbos pasirinkimas po Google */
.auth-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.auth-lang-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-lang-select {
  max-width: 180px;
  border-radius: 999px;
}

.auth-forgot {
  margin-top: 4px;
  align-self: flex-end;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
}

.auth-forgot:hover {
  text-decoration: underline;
}


/* Social mygtukų konteineris */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Apple mygtukas – juodas, pilnas plotis */
.auth-apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;

  background: #000000;
  color: #f9fafb;

  border: 1px solid #000000;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.auth-apple-btn svg {
  width: 18px;
  height: 18px;
}

.auth-apple-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.auth-apple-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.30);
}


/* ====== 15. Bottom navigation (šviesus, icon-only) ====== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  background: rgba(249, 250, 251, 0.96);
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}

.bottom-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* bendras nav item stilius – tik ikonėlės */
.bottom-nav .nav-item {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    color 0.15s ease-out,
    background-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.12s ease-out;
}

/* paslepiam tekstines etiketes, bet paliekam DOM'e dėl i18n */
.bottom-nav .nav-item .label {
  display: none;
}

/* pačios ikonėlės – šiek tiek didesnės */
.bottom-nav .nav-item .icon {
  font-size: 24px;
  line-height: 1;
}

/* aktyvus paprastas tabas */
.bottom-nav .nav-item.active {
  background: #e5edff;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

/* švelnus hover visiems */
.bottom-nav .nav-item:hover {
  background: #edf2ff;
  color: #1f2937;
}

/* ======================= */
/* Centrinis TALK mygtukas */
/* ======================= */

.bottom-nav .nav-item.nav-center {
  width: 60px;
  height: 60px;
  border-radius: 999px;

  background: radial-gradient(circle at 30% 0,
                #eff6ff,
                #2563eb);
  color: #f9fafb;

  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.45),
    0 0 0 2px rgba(249, 250, 251, 1);

  transform: translateY(-6px);
  padding: 0;
}

/* centre užtenka tik ikonėlės – wrapper'e gali likti, vis tiek veiks */
.bottom-nav .nav-item.nav-center .icon {
  font-size: 26px;
}

/* label ir centre nereikia rodyti */
.bottom-nav .nav-item.nav-center .label {
  display: none;
}

.bottom-nav .nav-item.nav-center:hover {
  transform: translateY(-8px);
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.55),
    0 0 0 2px rgba(249, 250, 251, 1);
}

.bottom-nav .nav-item.nav-center.active {
  transform: translateY(-8px) scale(1.03);
}

/* SVG ikonų dydžiai apatiniame meniu */
.bottom-nav .nav-item .icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* centrinė TALK ikona – truputį didesnė */
.bottom-nav .nav-item.nav-center .icon svg {
  width: 28px;
  height: 28px;
}



/* ====== 16. Responsive tweaks ====== */

@media (max-width: 640px) {
  .app {
    max-width: 100%;
    margin: 0;
    padding: 8px 8px 96px;
  }

  main.content {
    padding: 0;
  }

  #view-finals {
    padding-inline: 8px;
  }

  .final-card {
    padding-inline: 10px;
  }

  .final-wave {
    height: 64px;
  }
}

/* ===== Custom tooltip for TTS FAB ===== */

.has-tts-tooltip {
  position: relative;
}

.has-tts-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;

  /* TOBULA POZICIJA ŠALIA GARSIAKALBIO */
  right: 110%;
  top: 50%;
  transform: translateY(-50%);

  /* Tooltip appearance */
  background: #ffffff;
  color: #111827;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(209,213,219,0.9);
  box-shadow: 0 6px 14px rgba(15,23,42,0.1);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.has-tts-tooltip:hover::after {
  opacity: 1;
}


/* --- Finals share footer – icon + text --- */
#view-finals .final-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

#view-finals .final-share-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

#view-finals .final-share-title{
  font-size:12px;
  font-weight:500;
  color:#4b5563; /* tamsiai pilka */
}

#view-finals .final-share-sub{
  font-size:11px;
  color:#9ca3af;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* pats apvalus mygtukas su SVG ikona */

#view-finals .final-share-btn-icon{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.7);
  background:rgba(248,250,252,0.95);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(148,163,184,0.35);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out,
    border-color 0.12s ease-out;
}

/* Burbulas po sėkmingo siuntimo */
#view-finals .final-share-btn-icon.final-share-btn-sent {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: rgba(16,185,129,0.9);
  box-shadow:
    0 10px 20px rgba(16,185,129,0.45),
    0 0 0 1px rgba(6,95,70,0.4);
  color: #ffffff !important;
}

#view-finals .final-share-btn-icon.final-share-btn-sent svg {
  fill: #ffffff;
}

/* kad disabled nebūtų išblukintas iki nematomumo */
#view-finals .final-share-btn-icon.final-share-btn-sent:disabled {
  opacity: 1;
  cursor: default;
}

/* baltos varnelės stilius */
#view-finals .final-share-btn-icon.final-share-btn-sent .final-share-check {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 0;
}

/* mažas resend mygtukas */
#view-finals .final-resend-btn {
  background: rgba(243,244,246,0.85);
  border: 1px solid rgba(209,213,219,0.9);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #374151;
  transition: all 0.12s ease-out;
  margin-left: 6px;
}

#view-finals .final-resend-btn:hover {
  background: #ffffff;
  border-color: rgba(156,163,175,0.9);
}

#view-finals .final-resend-btn:active {
  transform: scale(0.96);
}


/* mažas tekstukas „Išsiųsta“ prie footerio */
.final-sent-label {
  font-size: 11px;
  color: #10b981;
  margin-left: 4px;
}

/* Konteineris burbuliukui ir papildomai nuorodai */
#view-finals .final-share-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Paslėpta, subtili pakartotinio siuntimo nuoroda */
#view-finals .final-resend-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
  cursor: pointer;
  text-decoration: underline dotted;
}

/* Tik resend stumiam į dešinį kraštą */
.final-share-actions .final-resend-btn{
  margin-left: auto;
}

#view-finals .final-resend-link:hover {
  color: #6b7280;
}

#view-finals .final-resend-link:active {
  color: #4b5563;
}

/* ✔ Check ikonėlė burbule kai išsiųsta */
.final-share-check {
  font-size: 18px;
  font-weight: 700;
}

/* Tekstas „Išsiųsta“ po meta bloku */
.final-share-status {
  margin-top: 2px;
  font-size: 11px;
  color: #10b981; /* žalias */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}




#view-finals .final-share-btn-icon svg{
  width:18px;
  height:18px;
}

#view-finals .final-share-btn-icon:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(148,163,184,0.4);
  background:#ffffff;
  border-color:rgba(129,140,248,0.9);
}

#view-finals .final-share-btn-icon:active{
  transform:translateY(0);
  box-shadow:0 3px 8px rgba(148,163,184,0.45);
}

/* disabled būsena */

#view-finals .final-share-btn-icon.final-disabled-btn,
#view-finals .final-share-btn-icon[disabled]{
  background:#edf2f7;
  border-color:rgba(209,213,219,0.9);
  box-shadow:none;
  cursor:not-allowed;
  opacity:.55;
}

/* FINAL override, kad SENT visada būtų žalias, net jei disabled */
/* Švelnesnė žalia SENT būsena */
#view-finals .final-share-btn-icon.final-share-btn-sent,
#view-finals .final-share-btn-icon.final-share-btn-sent[disabled] {
  background: radial-gradient(circle at 30% 0,
            rgba(240,253,244,1),
            rgba(52,211,153,0.55)) !important;
  border-color: rgba(16,185,129,0.8) !important;
  box-shadow: 0 6px 14px rgba(16,185,129,0.30) !important;
  color: #047857 !important; /* tamsesnė, bet ne balta */
}




/* ====== Persons view cards ====== */

#view-persons #persons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#view-persons .person-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

#view-persons .person-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#view-persons .person-name {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

#view-persons .person-contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

#view-persons .person-status-line {
  margin-top: 4px;
  font-size: 11px;
}

#view-persons .person-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ikonų dydis, kad nemigruotų */
#view-persons .person-actions .btn.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ==== Settings font normalization ==== */
#view-settings {
  font-size: 14px;
  font-family: inherit;
}

#view-settings h1,
#view-settings h3,
#view-settings label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

#view-settings .muted,
#view-settings .settings-summary-sub {
  font-size: 12px;
}

/* ==== Settings buttons unify ==== */
#view-settings .btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid rgba(209,213,219,0.9);
}

/* primary = premium mėlyna (kaip visam apps) */
#view-settings .btn.primary {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: transparent;
  color: #fff;
}

/* ghost = švelniai pilka, vienoda visur */
#view-settings .btn.ghost {
  background: #f3f4f6;
  color: var(--text);
}

/* danger mažiau šokiruojantis */
#view-settings .btn.danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Blue verified pill */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #bfdbfe;
}
.verify-badge svg {
  width: 14px;
  height: 14px;
}

/* Settings cards look cleaner and match person cards */
.settings-card {
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  padding: 14px 16px;
}

.settings-card-header h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.settings-summary-main {
  font-size: 14px;
}
#view-settings .btn.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

/* ==== Settings language row – layout ==== */
.settings-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* dropdown gauna visą likusį plotį, mygtukas – dešinėje */
.settings-lang-dropdown {
  position: relative;
  flex: 1 1 auto;
  max-width: 260px;
}

.settings-lang-row > .btn {
  flex: 0 0 auto;
  margin-left: auto; /* stumia mygtuką į dešinį kraštą */
}

/* ==== Custom trigger (vietoj default select) ==== */
.settings-lang-trigger {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.12s ease-out,
    transform 0.12s ease-out;
}

.settings-lang-trigger:hover {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.settings-lang-trigger:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* mažas chevron */
.settings-lang-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.7;
}

/* ==== Išskleistas sąrašas (inline, be OS popup) ==== */
.settings-lang-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 4px;
  z-index: 40;
  display: none;
}

.settings-lang-dropdown.open .settings-lang-list {
  display: block;
}

.settings-lang-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-lang-item span {
  pointer-events: none;
}

.settings-lang-item:hover {
  background: #eff6ff;
}

/* aktyvi kalba */
.settings-lang-item.active {
  background: #e0edff;
  color: #1d4ed8;
  font-weight: 600;
}

/* maža aktyvumo „dot“ */
.settings-lang-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  flex-shrink: 0;
}



/* Globalus loaderis Final audio lange */
.finals-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 12px;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.finals-spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid rgba(148,163,184,0.4);
  border-top-color: #6366f1; /* švelni violet/mėlyna */
  animation: finals-spin 0.8s linear infinite;
}

@keyframes finals-spin {
  to { transform: rotate(360deg); }
}

.finals-loading-text {
  opacity: 0.9;
}


/* Sender Identity Card */
#sender-info {
  background: var(--bg-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

#sender-info-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.sender-row {
  margin-bottom: 6px;
}

.sender-label {
  font-weight: 500;
  color: var(--text-muted);
}

.sender-value {
  color: var(--text-main);
  margin-left: 4px;
}

/* Verified badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
  margin-left: 8px;
}

.badge.ok {
  background: #d9f7db;
  color: #1a7f2e;
}

.badge.no {
  background: #ffe0e0;
  color: #a12828;
}

.sender-security-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}


/* =============================== */
/* SEARCH INPUT BAR — CUSTOM STYLE */
/* =============================== */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-btn,
.search-mic {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    filter 0.12s ease-out,
    box-shadow 0.12s ease-out;
}

.search-btn:hover,
.search-mic:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.05);
}

.search-btn:active,
.search-mic:active {
  transform: translateY(0) scale(0.95);
}

/* =============================== */
/* SEARCH RECORDER VISUALIZER     */
/* =============================== */

.search-recording-bar {
  display: none;
  margin-top: 6px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 6px 12px;
}

.search-recording-bar.show {
  display: flex;
  animation: fadeInRec 0.25s ease-out;
}

@keyframes fadeInRec {
  from { opacity:0; transform:translateY(4px); }
  to   { opacity:1; transform:translateY(0); }
}



.search-recording-canvas.show {
  display: block;
}
/* ==== Search UI polish ==== */

/* smulki, ištęsta caption (naudojama ir label'ui) */
.muted.tiny {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Aktyvus asmuo eilutė */
.search-active-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.search-active-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.search-active-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 500;
  color: #1d4ed8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==== Search buttons – apvalūs kaip Talk send/mic ==== */

.search-actions .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px; /* pilnas burbulas */
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: var(--bg-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.search-actions .btn-icon .icon {
  width: 18px;
  height: 18px;
}

/* SEND – švelnesnė mėlyna, apvalus burbulas */
.search-actions .search-send {
  background: linear-gradient(135deg, #bfdbfe, #60a5fa);
  border-color: transparent;
  color: #f9fafb;
}

.search-actions .search-send:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.search-actions .search-send:active {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* MIC – švelnus „ghost“, be ryškios spalvos */
.search-actions .search-mic {
  background: radial-gradient(circle at 30% 0,
              rgba(248, 250, 252, 0.95),
              #e5e7eb);
  border-color: rgba(209, 213, 219, 0.95);
  color: #374151;
}

.search-actions .search-mic.recording {
  background: #ffede7;
  border-color: #fed7aa;
  color: #ad5c5c;
}

.search-actions .btn-icon:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.03);
}

.search-actions .btn-icon:active {
  transform: translateY(0) scale(0.94);
}

/* SEARCH mic ikona – tokia pati kaip TALK */
#view-dashboard #mem-search-mic .talk-mic-icon {
  width: 16px;
  height: 16px;
}

#view-dashboard #mem-search-mic .talk-mic-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SEARCH mic recording režimas – identiškas TALK */
#view-dashboard #mem-search-mic.recording {
  background: #ffede7;
  border-color: #fed7aa;
  color: #ad5c5c;
  box-shadow: 0 10px 24px rgba(248, 113, 113, 0.45);
}

#view-dashboard #mem-search-mic {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: radial-gradient(circle at 30% 0,
              rgba(248, 250, 252, 0.8),
              #e5e7eb);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  padding: 0;
  transition: 0.12s ease-in-out;
}





/* ===========================================================
   SEARCH RESULT TEXT — MATCH TALK STYLE
   =========================================================== */

/* Pagrindinis tekstas */
#mem-search-results {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
  font-weight: 400;
}

/* Heading'ai Search atsakymuose (pvz. "Trumpa apžvalga") */
#mem-search-results h1,
#mem-search-results h2,
#mem-search-results h3,
#mem-search-results strong {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
    margin-top: 8px;                  /* 👈 atsitraukimas nuo "Active person" */
  padding-top: 10px;                /* šiek tiek oro viršuje */
  border-top: 1px solid #e5e7eb;    /* plona linija kaip separatorius */
}

/* Sąrašo punktai */
#mem-search-results ul {
  margin-left: 1.2rem;
  margin-bottom: 12px;
  padding-left: 0;
}

#mem-search-results li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.45;
}

/* Blogai formatuoti AI blokai (pvz. ilgos pastraipos) */
#mem-search-results p {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Pavadinimas viršuje "Trumpa apžvalga" */
#mem-search-results .search-preview-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
/* ===========================================================
   SEARCH INPUT — SMALLER PLACEHOLDER FONT
   =========================================================== */
/* SEARCH INPUT — IMPROVED PLACEHOLDER STYLE */
#mem-search-q::placeholder {
  font-size: 13px;                /* aiškesnis, ne per mažas */
  font-weight: 500;               /* nebe toks plonas */
  color: #6b7280;                 /* ryškesnis pilkas (Gray-500) */
  opacity: 1;                     /* pilnas ryškumas */
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", sans-serif;
  letter-spacing: 0.1px;          /* šiek tiek solidesnis vaizdas */
}
/* =========================== */
/* SEARCH PAGE TITLE (TALK STYLE) */
/* =========================== */

.search-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px 0;
  padding: 0;
}

.search-hdr h3 {
  font-size: 14px;
  font-weight: 600;      /* 👈 DABAR BOLD kaip Talk */
  margin: 0 0 8px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.search-wrapper {
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px; /* 👈 daugiau oro tarp blokų */
}

/* =============================== */
/* SEARCH LAYOUT — MATCH TALK CHAT */
/* =============================== */

/* Visa Search korta, kaip .chat */
.search-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

/* Viršutinis blokas su įvedimu ir vizualizacija */
.search-top-block {
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Rezultatų blokas – kaip chat-body */
#mem-search-results {
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  overflow: auto;
  max-height: 420px;

  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main);
}

/* Heading'ai viduje – tokie kaip Talk */
#mem-search-results h1,
#mem-search-results h2,
#mem-search-results h3,
#mem-search-results strong {
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--text-muted);
}




.msg-warning {
  position: fixed;
  left: 50%;
  bottom: 130px;              /* truputį virš chat footer (kuris yra bottom: 80px) */
  transform: translateX(-50%);

  z-index: 9999;

  max-width: 90%;
  font-size: 11px;
  color: #b91c1c;
  padding: 6px 10px;
  border-left: 3px solid #ef4444;
  background: #fef2f2;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


/* Page title'ų suvienodinimas su Talk/Search headeriais */
/* Page title'ų suvienodinimas su Talk/Search headeriais */
#view-finals .page-title h1,
#view-persons .page-title h1,
#view-settings .page-title h1 {
  margin: 0;
  font-size: 14px !important;
  font-weight: 700 !important; /* storesnis */
  color: var(--text-muted);
  letter-spacing: 0.2px;
  text-align: left !important;
}

#view-finals,
#view-finals .finals-wrap {
  background: var(--bg-main) !important;
}



