/* Tema del design "Servizio AI con Pet": vetro smerigliato su gradiente
   pastello viola-azzurro. I valori (colori, raggi, ombre) vengono dal file
   del design, non sono reinterpretati. */
:root {
  --ink: #2c2550;          /* testo principale */
  --muted: #6a6499;        /* testo secondario */
  --soft: #8a83b8;         /* testo tenue: placeholder, note */
  --btn-ink: #5a5290;      /* testo dei bottoni di vetro */
  --violet: #a78bfa;
  --sky: #7cc4f2;
  --link: #7c6cf0;
  --link-hover: #4aa3e8;
  --green: #43d19b;
  --red: #e2607f;

  --accent: linear-gradient(135deg, var(--violet), var(--sky));
  --accent-shadow: 0 6px 18px rgba(124, 108, 240, .35), inset 0 1px 0 rgba(255, 255, 255, .5);

  /* vetro: tre livelli di opacità, dal più leggero al più marcato */
  --glass-1: rgba(255, 255, 255, .24);
  --glass-2: rgba(255, 255, 255, .34);
  --glass-3: rgba(255, 255, 255, .46);
  --glass-bd: rgba(255, 255, 255, .6);
  --glass-sh: 0 12px 40px rgba(96, 74, 160, .16), inset 0 1px 0 rgba(255, 255, 255, .85);

  --r-panel: 26px;
  --r-box: 22px;
  --r-btn: 14px;
  --r-item: 13px;

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--ink);
  overflow: hidden;
  background: linear-gradient(140deg, #ece0ff 0%, #dcd8ff 30%, #cfe6ff 64%, #d6f3ff 100%);
  /* iOS ingrandisce il testo in orizzontale se non glielo si vieta */
  -webkit-text-size-adjust: 100%;
  /* niente rimbalzo elastico: in app installata sembra un difetto */
  overscroll-behavior: none;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(140, 120, 210, .35); border-radius: 8px; }

/* Aloni sfocati di fondo: danno profondità al vetro */
.orb {
  position: fixed; border-radius: 50%; filter: blur(20px);
  pointer-events: none; z-index: 0;
}
.orb.violet {
  width: 520px; height: 520px; left: -120px; top: -160px;
  background: radial-gradient(circle, #c9a8ff 0%, rgba(201, 168, 255, 0) 70%);
}
.orb.sky {
  width: 560px; height: 560px; right: -160px; bottom: -200px;
  background: radial-gradient(circle, #8fd4ff 0%, rgba(143, 212, 255, 0) 70%);
}

/* ---------- Struttura ---------- */
/* 100dvh e non 100vh: su iOS Safari 100vh include la barra degli indirizzi
   e taglia il composer sotto il bordo dello schermo. Le safe area evitano che
   i controlli finiscano sotto notch, angoli tondi e barra dei gesti. */
.shell {
  position: relative; z-index: 1; display: flex;
  height: 100vh; height: 100dvh; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right))
           calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}

.glass {
  background: var(--glass-2);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--glass-sh);
}

.sidebar {
  width: 266px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 15px; border-radius: var(--r-panel);
}
.sidebar-head { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.sidebar-head strong { font-weight: 600; letter-spacing: -.2px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.logo {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px; color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(124, 108, 240, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.logo.big {
  width: 60px; height: 60px; border-radius: 18px; font-size: 28px; margin: 0 auto 20px;
  box-shadow: 0 10px 28px rgba(124, 108, 240, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.conv {
  text-align: left; padding: 10px 12px; border-radius: var(--r-item);
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit;
}
.conv:hover { background: rgba(255, 255, 255, .34); }
.conv.active {
  background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .7);
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---------- Progetti (sidebar) ---------- */
.side-section { display: flex; flex-direction: column; gap: 5px; }
.side-section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--soft); padding: 0 4px;
}
.mini-btn {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
  color: var(--btn-ink); background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .6); font-family: inherit; line-height: 1;
}
.mini-btn:hover { background: rgba(255, 255, 255, .68); color: var(--ink); }

.proj-list { display: flex; flex-direction: column; gap: 3px; max-height: 34vh; overflow-y: auto; }
.proj {
  display: flex; align-items: center; gap: 8px;
  text-align: left; padding: 8px 10px; border-radius: var(--r-item);
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; width: 100%;
}
.proj:hover { background: rgba(255, 255, 255, .34); }
.proj.active {
  background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .7);
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.proj-ico { font-size: 14px; flex-shrink: 0; }
.proj-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.project-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-item);
  background: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(124, 196, 242, .18));
  border: 1px solid rgba(255, 255, 255, .6);
}
.project-bar .proj-icon { font-size: 15px; }
.project-bar .proj-name {
  flex: 1; font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chat {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--r-panel); overflow: hidden;
  background: var(--glass-1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 12px 40px rgba(96, 74, 160, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.messages { flex: 1; overflow-y: auto; padding: 28px 22px 8px; }

/* ---------- Messaggi ---------- */
.msg { display: flex; gap: 13px; max-width: 820px; margin: 0 auto 22px; }
.avatar {
  width: 32px; height: 32px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .65);
  color: var(--btn-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.msg.assistant .avatar { background: var(--accent); color: #fff; border-color: transparent; }
.bubble { min-width: 0; flex: 1; }
.bubble-body { line-height: 1.62; font-size: 14.5px; overflow-wrap: anywhere; text-wrap: pretty; }
.bubble-body p { margin: 0 0 11px; }
.bubble-body p:last-child { margin-bottom: 0; }
.bubble-body h3 { font-size: 16px; margin: 16px 0 8px; font-weight: 600; letter-spacing: -.2px; }
.bubble-body h4 { font-size: 14.5px; margin: 14px 0 6px; font-weight: 600; }
.bubble-body ul { margin: 8px 0; padding-left: 20px; }
.bubble-body li { margin: 3px 0; }
.msg.streaming .bubble-body::after {
  content: "▍"; color: var(--violet); animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

code.inline {
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  padding: 1px 5px; border-radius: 6px; font-size: 12.8px; color: #4a4280;
}
pre.code {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; margin: 12px 0; overflow-x: auto;
}
pre.code .code-lang {
  font-size: 11px; color: var(--soft); padding: 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .7); text-transform: lowercase;
}
pre.code code {
  display: block; padding: 13px 14px; font-size: 12.9px; line-height: 1.55;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre; color: #3a3270;
}
.files { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.note-saved { color: var(--soft); font-size: 11.5px; margin: 10px 0 0; }

/* ---------- Stato vuoto ---------- */
.empty { max-width: 640px; margin: 9vh auto 0; text-align: center; }
.empty h2 { font-size: 24px; margin: 0 0 10px; font-weight: 600; letter-spacing: -.4px; }
.empty p { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; line-height: 1.6; text-wrap: pretty; }
.examples { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: rgba(255, 255, 255, .42); border: 1px solid var(--glass-bd);
  color: var(--btn-ink); padding: 9px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.chip:hover { background: rgba(255, 255, 255, .62); color: var(--ink); }

/* ---------- Composer ---------- */
.composer { padding: 12px 22px 18px; }
/* In app installata il bordo inferiore e' occupato dalla barra dei gesti */
@media (display-mode: standalone) {
  .composer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
.composer-box {
  max-width: 820px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 9px;
  padding: 10px 12px; border-radius: var(--r-box);
  background: var(--glass-3);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 8px 24px rgba(96, 74, 160, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.composer-box:focus-within { border-color: rgba(167, 139, 250, .7); }
.composer textarea {
  flex: 1; resize: none; border: none; outline: none; background: transparent;
  color: var(--ink); font-family: inherit; font-size: 14.5px; line-height: 1.5;
  padding: 8px 4px; max-height: 200px;
}
.composer textarea::placeholder { color: var(--soft); }
.hidden-input { display: none; }
.icon-btn {
  background: transparent; border: none; color: var(--soft);
  cursor: pointer; font-size: 17px; padding: 7px; border-radius: 10px;
  line-height: 1; font-family: inherit;
}
.icon-btn:hover { color: var(--btn-ink); background: rgba(255, 255, 255, .5); }
.btn.send { padding: 10px 15px; border-radius: var(--r-btn); }
.composer-note {
  max-width: 820px; margin: 10px auto 0; text-align: center;
  color: var(--soft); font-size: 11.5px;
}
.attach-row {
  max-width: 820px; margin: 0 auto 8px; display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12.5px;
}

/* ---------- Bottoni ---------- */
.btn {
  border: none; border-radius: var(--r-btn); padding: 11px 16px; cursor: pointer;
  font-size: 14px; font-family: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { color: #fff; background: var(--accent); box-shadow: var(--accent-shadow); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn.ghost {
  background: rgba(255, 255, 255, .4); color: var(--btn-ink);
  border: 1px solid rgba(255, 255, 255, .55); font-weight: 500;
  border-radius: var(--r-item);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.btn.big { padding: 13px 24px; font-size: 15px; }
.btn.small { padding: 9px 13px; font-size: 12.5px; }
.btn.block { width: 100%; justify-content: center; }

.health { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }

.error { color: var(--red); font-size: 13.5px; }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

/* ---------- Gate di accesso ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  /* opaco: finché non si è autenticati non si vede né si tocca l'app */
  background: linear-gradient(140deg, #ece0ff 0%, #dcd8ff 30%, #cfe6ff 64%, #d6f3ff 100%);
}
.login-card {
  width: 100%; max-width: 380px; position: relative; z-index: 2;
  border-radius: var(--r-panel); padding: 32px 28px;
}
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.login-brand h1 { font-size: 20px; margin: 0; font-weight: 600; letter-spacing: -.3px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login-card .field-label { margin-top: 14px; }
.login-card .btn.big { width: 100%; margin-top: 22px; justify-content: center; }
.login-card .error { margin-top: 14px; }

input[type=text], input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-item);
  background: rgba(255, 255, 255, .55); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7); font-size: 14px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
input::placeholder { color: var(--soft); }
input[type=text]:focus, input[type=password]:focus {
  outline: none; border-color: rgba(167, 139, 250, .8);
}

/* ---------- Modale (memoria) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(120, 105, 190, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.modal { width: 100%; max-width: 620px; border-radius: var(--r-panel); padding: 24px 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.modal-sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 16px; line-height: 1.55; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.memory-content {
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  border-radius: 16px; padding: 14px; max-height: 46vh; overflow-y: auto;
  font-size: 12.8px; line-height: 1.6; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #3a3270; margin: 0;
}

/* ---------- Il gatto ---------- */
/* Vive sopra l'interfaccia ma non ne intercetta i clic: solo il suo corpo
   e' cliccabile. Il fondo si ferma sopra il composer, così cammina sul
   "pavimento" della chat invece che sui controlli. */
/* Confinato all'area della conversazione: a tutta larghezza camminava sopra
   la barra laterale e copriva i pulsanti (14px padding + 266px barra + 14px gap). */
#petLayer {
  position: fixed; left: 294px; right: 14px; top: 14px; bottom: 96px;
  pointer-events: none; overflow: hidden; z-index: 50;
}

/* ---------- Barra mobile ---------- */
.topbar-mobile { display: none; }
.topbar-actions { display: flex; gap: 8px; }
.square-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px; cursor: pointer;
  color: var(--btn-ink); background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .65); font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.square-btn:active { background: rgba(255, 255, 255, .7); }

/* Sfondo dietro la sidebar a scomparsa: esiste solo su mobile */
.sidebar-backdrop { display: none; }

/* Il gatto vive al livello pagina: mentre il drawer è aperto comparirebbe
   sopra il pannello, quindi lo nascondo. */
body.drawer-open #petLayer { display: none; }

/* ---------- Tablet (iPad Air in verticale: 820px) ---------- */
@media (min-width: 761px) and (max-width: 1080px) {
  .sidebar { width: 216px; }
  #petLayer { left: 244px; }
  .messages { padding: 22px 18px 8px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .shell { padding: 10px; gap: 10px; }

  /* La sidebar scorre da SINISTRA sopra la chat. Sfondo OPACO, non vetro: da
     pannello sovrapposto il vetro trasparente rende il contenuto illeggibile
     (si mescola col gradiente della chat sotto). */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: min(84vw, 320px); border-radius: 0 22px 22px 0;
    transform: translateX(-105%); transition: transform .28s ease;
    background: linear-gradient(165deg, #efe7ff 0%, #e4ecff 55%, #e0f2ff 100%);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: none;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: translateX(0); box-shadow: 18px 0 50px rgba(96, 74, 160, .28); }
  /* "+ Nuova chat" è già nella barra in alto: qui dentro sarebbe un doppione */
  .sidebar #newChatBtn { display: none; }
  .sidebar-head { margin-bottom: 4px; }

  /* Sotto la sidebar (z 79 < 80): sfoca la chat che resta visibile a destra.
     Ora la sidebar è opaca, quindi il blur non la tocca — resta nitida sopra.
     Velo scuro leggero, giusto per staccare, senza incupire tutto. */
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 79;
    background: rgba(44, 37, 80, .16);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none; transition: opacity .28s ease;
  }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .topbar-mobile {
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; flex-shrink: 0;
  }
  .messages { padding: 8px 14px 8px; }
  .composer { padding: 10px 14px 14px; }
  .empty { margin-top: 12vh; }
  .examples { flex-direction: column; }
  .chip { text-align: left; border-radius: 16px; padding: 12px 16px; }
  .composer textarea { font-size: 16px; }  /* sotto i 16px iOS zooma al focus */
  .btn.send { padding: 12px 16px; }
  .icon-btn { padding: 10px; }
  #petLayer { left: 10px; right: 10px; bottom: 108px; }
}

/* ---------- Conoscenza del progetto ---------- */
.kb-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.kb-empty { color: var(--muted); font-size: 13px; line-height: 1.6; }
.kb-item {
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.kb-item summary {
  cursor: pointer; padding: 11px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); list-style: none;
}
.kb-item summary::-webkit-details-marker { display: none; }
.kb-item summary::before { content: "▸ "; color: var(--soft); }
.kb-item[open] summary::before { content: "▾ "; }
.kb-body {
  padding: 0 14px 12px; font-size: 13px; line-height: 1.6; color: #3a3270;
  border-top: 1px solid rgba(255, 255, 255, .6);
}
.kb-body h3, .kb-body h4 { font-size: 13.5px; margin: 10px 0 5px; }
.kb-body ul { margin: 6px 0; padding-left: 18px; }

/* ---------- File di istruzioni del progetto (modale) ---------- */
.ref-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.ref-empty { color: var(--soft); font-size: 12.5px; margin: 4px 0 8px; }
.ref-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px; padding: 8px 11px;
}
.ref-name { flex: 1; font-size: 12.8px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-del {
  border: none; background: transparent; color: var(--soft); cursor: pointer;
  font-size: 13px; padding: 3px 6px; border-radius: 6px; font-family: inherit;
}
.ref-del:hover { color: var(--red); background: rgba(226, 96, 127, .12); }
.ref-add { align-self: flex-start; cursor: pointer; }

/* ---------- Header di contesto nella chat ---------- */
.chat-context {
  flex-shrink: 0; display: flex; align-items: center; gap: 9px;
  margin: 12px 22px 0; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, .16), rgba(124, 196, 242, .16));
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: 13px; color: var(--muted);
}
.chat-context strong { color: var(--ink); }
.cc-ico { font-size: 14px; }
.cc-exit {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .5); color: var(--btn-ink);
  border-radius: 8px; padding: 5px 11px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.cc-exit:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
@media (max-width: 760px) { .chat-context { margin: 8px 14px 0; } }
