:root{
  --ink:#1a130e;
  --paper:#f8f6f2;
  --cream:#f2ebe1;
  --gold:#c99b62;
  --gold-soft:#d8b17a;
  --brown:#241b15;
  --brown-2:#33251b;
  --text:#f7f1e9;
  --muted:#cdb797;
  --shadow:0 22px 70px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#0d0907;color:var(--text);font-family:Arial,Helvetica,sans-serif;min-height:100svh}
button,textarea,input,select{font:inherit}
button{touch-action:manipulation}
[hidden]{display:none!important}
.visually-hidden{position:fixed!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

/* --------------------------------------------------------------------------
   HOME — GRAFICA BLOCCATA
   Il PNG approvato resta il riferimento immutabile. Il frame rimane 3:2 e
   viene mostrato integralmente, evitando crop e disallineamenti su Android.
   -------------------------------------------------------------------------- */
.menu-hotspot {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
}

.menu-hotspot::before {
  content: "";
  width: clamp(13px, 1.8vw, 27px);
  height: 2px;
  background: #f8f6f2;
  border-radius: 2px;
  box-shadow: 0 -6px #f8f6f2, 0 6px #f8f6f2;
}
.landing{position:relative;min-height:100svh;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;background:#0d0907;isolation:isolate}
.landing::before{content:"";position:absolute;inset:-18px;z-index:-2;background:url("assets/GRAPHICS_LOCKED_REFERENCE_optimized.webp") center center/cover no-repeat;filter:blur(12px);transform:scale(1.04);opacity:.34}
.landing::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,7,5,.03),rgba(10,7,5,.44) 74%,rgba(10,7,5,.76))}
.hero-frame{position:relative;flex:0 0 auto;width:min(100vw,150svh);aspect-ratio:3/2;background:#0d0907 url("assets/GRAPHICS_LOCKED_REFERENCE_optimized.webp") center center/100% 100% no-repeat;overflow:hidden;box-shadow:0 18px 70px rgba(0,0,0,.26)}
.hotspot{position:absolute;border:0;background:transparent;cursor:pointer;z-index:8}
.menu-hotspot{left:1.8%;top:2.8%;width:4.2%;height:6%}
.access-hotspot{right:2.6%;top:2.2%;width:11.5%;height:7%}
.hotspot:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:8px}

.central-search{position:absolute;z-index:7;left:18.55%;top:41.9%;width:62.65%;height:9.72%;display:flex;align-items:center;gap:1.35%;padding:0 1.25% 0 2.15%;border-radius:999px;background:#f8f6f2;box-shadow:0 9px 30px rgba(0,0,0,.24);margin:0}
.central-search textarea{flex:1;min-width:0;resize:none;overflow:hidden;border:0;outline:0;background:transparent;color:#28221e;font-size:clamp(10px,1.16vw,18px);line-height:1.3;height:74%;padding:.55em 0 .35em}
.central-search textarea::placeholder{color:#4d4843;opacity:1}
.search-icon{width:2.15%;min-width:14px;aspect-ratio:1;border:clamp(1.5px,.17vw,3px) solid #17120f;border-radius:50%;position:relative;flex:0 0 auto}
.search-icon::after{content:"";position:absolute;width:48%;height:clamp(1.5px,.15vw,3px);background:#17120f;right:-37%;bottom:-18%;transform:rotate(45deg);border-radius:3px}
.send-circle{height:68%;aspect-ratio:1;border-radius:50%;border:0;background:#241b15;color:white;display:grid;place-items:center;font-size:clamp(12px,1.65vw,26px);cursor:pointer;transform:rotate(-12deg);flex:0 0 auto;padding:0}
.send-circle:disabled{opacity:.55;cursor:wait}

.voice-inbar{border:0;background:transparent;color:#241b15;display:grid;place-items:center;width:clamp(28px,3.1vw,42px);height:clamp(28px,3.1vw,42px);border-radius:50%;padding:0;cursor:pointer;flex:0 0 auto}
.voice-inbar:hover,.voice-inbar:focus-visible{background:rgba(36,27,21,.08);outline:none}
.voice-inbar.listening{background:#241b15;color:#fff;box-shadow:0 0 0 4px rgba(201,155,98,.25)}
.mic-glyph{position:relative;width:38%;height:52%;border:2px solid currentColor;border-radius:999px}
.mic-glyph::before{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-46%;width:92%;height:62%;border:2px solid currentColor;border-top:0;border-radius:0 0 999px 999px}
.mic-glyph::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-67%;width:2px;height:27%;background:currentColor;box-shadow:-4px 5px 0 -1px currentColor,4px 5px 0 -1px currentColor}

/* Sulla home i comandi Foto/Video compaiono solo nel layout mobile, come richiesto. */
.home-media-toolbar{display:flex;position:absolute;z-index:7;left:18.55%;top:52.3%;width:62.65%;justify-content:center}
.central-search>#voiceBtn{display:none}
.media-toolbar{align-items:center;gap:8px;flex-wrap:wrap}
.media-tool{border:1px solid rgba(245,234,218,.48);background:rgba(24,16,11,.74);color:#f7f0e7;border-radius:999px;padding:8px 13px;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.16);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.media-tool:hover,.media-tool:focus-visible{border-color:rgba(216,177,122,.95);outline:none}
.media-status{font-size:11px;color:#f2e5d2;text-shadow:0 1px 4px #000;min-height:1em}

/* --------------------------------------------------------------------------
   CHAT — CONTINUAZIONE PERFETTA DELLA HOME
   Stesso identico file fotografico, nessun riquadro laterale, nessuna pagina
   grafica alternativa. Solo messaggi centrali e controlli sovrapposti.
   -------------------------------------------------------------------------- */
body.chat-mode{overflow:hidden}
/* In modalità chat la HOME resta esclusivamente come fondale fotografico.
   Tutti i controlli della landing vengono nascosti: la conversazione occupa
   davvero l’intero viewport senza creare un secondo sfondo o uno stacco visivo. */
body.chat-mode #home{pointer-events:none}
body.chat-mode #home .hotspot,
body.chat-mode #home .central-search,
body.chat-mode #home .home-media-toolbar{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.conversation-panel{position:fixed;inset:0;z-index:20;height:100dvh;max-height:100dvh;max-width:none;margin:0;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:transparent;color:var(--text)}
/* La chat NON disegna un secondo sfondo: resta trasparente sopra la home reale.
   In questo modo fotografia, crop, tonalità e contrasto sono pixel-per-pixel
   gli stessi della pagina iniziale su desktop e Android. */
.conversation-panel::before,.conversation-panel::after{content:none!important;display:none!important}

.chat-top-actions{position:relative;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 18px 8px;background:rgba(13,9,7,.28);border-bottom:1px solid rgba(216,177,122,.14)}
.chat-brand{justify-self:center;font-family:Georgia,"Times New Roman",serif;font-size:clamp(14px,1.6vw,22px);font-weight:700;letter-spacing:.13em;color:#f3eadf;text-shadow:0 2px 8px rgba(0,0,0,.82)}
.chat-nav-btn{border:1px solid rgba(255,255,255,.66);background:rgba(15,10,7,.42);color:#fff;border-radius:9px;padding:9px 13px;cursor:pointer;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-shadow:0 5px 18px rgba(0,0,0,.13)}
.chat-nav-btn:hover,.chat-nav-btn:focus-visible{border-color:#d8b17a;outline:none}
.chat-home-btn{justify-self:start;display:inline-flex;align-items:center;gap:7px}
.chat-home-icon{font-size:20px;line-height:1}
.chat-top-right{justify-self:end;display:flex;align-items:center;gap:8px}
.status-badge{font-size:10px;color:#ead6b9;text-transform:uppercase;letter-spacing:.08em;text-shadow:0 1px 4px #000}

.messages{position:relative;z-index:2;width:min(900px,calc(100vw - 36px));min-height:0;justify-self:center;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:18px;padding:20px 8px 22px;scrollbar-color:#8b6a49 transparent;scroll-padding-bottom:28px}
.messages::before{content:"";margin-top:auto;flex:0 0 auto}
.message-row{width:100%;display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start}
.message-role{font-size:10px;letter-spacing:.11em;color:#e2bd86;padding-top:13px;text-shadow:0 2px 6px #000;font-weight:700}
.message-card{border:1px solid rgba(207,167,112,.42);border-radius:16px;padding:15px 17px;line-height:1.55;white-space:pre-wrap;box-shadow:0 9px 24px rgba(0,0,0,.18);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.assistant-row .message-card{background:rgba(247,242,233,.94);color:#241a13;border-color:rgba(80,54,35,.28)}
.user-row .message-card{background:rgba(35,25,18,.88);color:#f8f1e7;border-color:rgba(229,196,149,.40)}
.human-card{background:rgba(49,33,21,.90)!important;color:#fff4e6!important;border-color:rgba(216,177,122,.72)!important}
.human-origin{display:block;margin-top:12px;color:#e4bd84}
.message-extra{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.message-extra:empty{display:none}
.chip,.pay-chip,.human-chip{border:1px solid rgba(54,38,26,.28);background:#2a1e16;color:#fff;padding:9px 13px;border-radius:999px;cursor:pointer}
.pay-chip{border-color:#c99b62}.human-chip{border-color:#a99072}

.chat-composer-shell{position:relative;z-index:4;width:min(900px,calc(100vw - 24px));justify-self:center;margin:0 auto max(10px,env(safe-area-inset-bottom));display:grid;gap:7px}
.followup-form{display:flex;gap:7px;align-items:center;background:#f8f6f2;padding:8px 9px 8px 15px;border:1px solid rgba(255,255,255,.66);border-radius:999px;box-shadow:0 10px 32px rgba(0,0,0,.32);margin:0}
.followup-form textarea{flex:1;min-width:0;resize:none;border:0;outline:0;background:transparent;color:#28221e;min-height:38px;max-height:118px;padding:8px 4px;line-height:1.35}
.followup-form textarea::placeholder{color:#5d544d}
.followup-form .voice-inbar{color:#241b15}
.followup-form>#followupSendBtn{width:44px;height:44px;border:0;border-radius:50%;background:#241b15;color:#fff;cursor:pointer;flex:0 0 auto;transform:rotate(-12deg)}
.chat-media-toolbar{display:flex;justify-content:center;min-height:34px}
.chat-media-toolbar .media-tool{padding:6px 11px;font-size:12px;background:rgba(24,16,11,.66)}

/* Drawer e dialog restano funzionali ma non fanno parte della pagina chat. */
.drawer{position:fixed;inset:0 auto 0 0;width:min(340px,86vw);background:#160f0b;z-index:30;transform:translateX(-105%);transition:transform .22s ease;padding:70px 25px 30px;box-shadow:30px 0 80px rgba(0,0,0,.45)}
.drawer.open{transform:translateX(0)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:29}
.drawer-close{position:absolute;right:18px;top:18px;border:0!important;font-size:28px}
.drawer-brand{font-family:Georgia,serif;font-weight:700;font-size:25px;letter-spacing:.1em;margin-bottom:28px}
.drawer button{border:1px solid rgba(255,255,255,.25);background:rgba(15,11,8,.38);color:#fff;border-radius:999px;padding:10px 15px;cursor:pointer}
.drawer button:not(.drawer-close){display:block;width:100%;margin:10px 0;text-align:left}
.drawer-note{font-size:13px;color:#ad9d8b;margin-top:24px}

.modal{width:min(610px,calc(100vw - 28px));border:1px solid rgba(201,155,98,.48);border-radius:22px;padding:28px;background:#17110d;color:#fff;box-shadow:var(--shadow)}
.modal::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.modal h2{font-family:Georgia,serif;margin:0 35px 12px 0}
.modal-lead{font-size:19px;line-height:1.5;color:#f1e5d4}
.modal-reason{color:#c9b79f;line-height:1.5}
.modal-close{position:absolute;top:16px;right:17px;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}
.access-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}
.modal button,.modal input,.modal textarea{border-radius:12px}
.modal button{border:1px solid rgba(255,255,255,.25);background:#241b15;color:#fff;padding:12px 15px;cursor:pointer}
.modal button.primary{background:#eee4d5;color:#17110d;border-color:#eee4d5;font-weight:700}
.modal textarea,.modal input{width:100%;border:1px solid rgba(255,255,255,.15);background:#0f0b08;color:#fff;padding:12px;margin:6px 0}
.login-form{display:grid;gap:6px}.login-form h3{margin:0 0 4px}.form-status{min-height:20px;color:#c9b79f}
.modal hr{border:0;border-top:1px solid rgba(255,255,255,.12);margin:25px 0}

/* Database-first catalog elements: solo dentro la conversazione. */
.catalog-list{width:100%;display:grid;gap:12px;margin-top:10px}
.catalog-card{display:grid;grid-template-columns:96px 1fr;gap:14px;width:100%;padding:12px;border:1px solid rgba(92,62,40,.25);border-radius:14px;background:rgba(247,242,233,.76);color:#241a13}
.catalog-card>img{width:96px;height:96px;object-fit:cover;border-radius:10px}
.catalog-body{min-width:0}.catalog-body strong{display:block;font-size:16px}.catalog-body p{margin:6px 0 8px;color:#59493b;font-size:13px}.catalog-body small{color:#6f573d}
.fitment-form{display:grid;gap:9px;margin-top:12px}.fitment-form label{display:grid;gap:5px;font-size:12px;color:#5d4b3b}
.fitment-form input,.fitment-form select{min-height:38px;border-radius:9px;border:1px solid rgba(63,43,29,.26);background:#fffaf1;color:#241a13;padding:7px 10px}
.fitment-form em{font-size:11px;font-style:normal;color:#7c6246}.photo-request-chip{border-color:#c99b62}

@media(min-aspect-ratio:3/2){.landing{align-items:center}}

@media(max-width:900px){
  .central-search{gap:1.1%;padding-left:2%}
  .messages{padding-top:14px}
  .message-row{grid-template-columns:78px minmax(0,1fr)}
}

@media(max-width:650px){
  .hero-frame{width:100vw}
  .central-search textarea{font-size:clamp(9px,2.15vw,12px)}
  .search-icon{min-width:10px}
  .central-search .voice-inbar{width:23px;height:23px}
  .central-search .mic-glyph{border-width:1.5px}
  .central-search .mic-glyph::before{border-width:1.5px}
  .central-search>#voiceBtn{display:grid}
  .home-media-toolbar{display:flex;top:52.55%;gap:5px}
  .home-media-toolbar .media-tool{padding:4px 8px;font-size:clamp(8px,2vw,11px);background:rgba(24,16,11,.64)}
  .home-media-toolbar .media-status{font-size:8px;width:100%;text-align:center}

  .chat-top-actions{padding:max(9px,env(safe-area-inset-top)) 10px 5px;grid-template-columns:auto 1fr auto}
  .chat-brand{font-size:13px}
  .chat-nav-btn{padding:7px 9px;border-radius:8px;font-size:12px}
  .chat-home-label{display:none}
  .status-badge{display:none!important}
  .messages{width:calc(100vw - 18px);padding:8px 2px 12px;gap:12px}
  .message-row{grid-template-columns:1fr;gap:4px}
  .message-role{padding:0 4px;font-size:9px}
  .message-card{padding:12px 14px;border-radius:14px}
  .chat-composer-shell{width:calc(100vw - 16px);margin-bottom:max(7px,env(safe-area-inset-bottom))}
  .followup-form{padding:6px 7px 6px 12px}
  .followup-form textarea{font-size:15px;min-height:36px;padding:7px 2px}
  .followup-form .voice-inbar{width:36px;height:36px}
  .followup-form>#followupSendBtn{width:40px;height:40px}
  /* Mobile: microfono DENTRO la barra; sotto restano Foto e Video. */
  .voice-toolbar-tool{display:none}
  .chat-media-toolbar{gap:6px}
  .chat-media-toolbar .media-tool{font-size:11px;padding:5px 10px}

  .access-actions{grid-template-columns:1fr}
  .modal{padding:24px 20px}.modal-lead{font-size:17px}
  .catalog-card{grid-template-columns:72px 1fr}.catalog-card>img{width:72px;height:72px}
}

@media(max-width:430px){
  .central-search{left:18.45%;width:62.9%;top:41.85%;padding-right:1.05%;padding-left:1.65%;gap:.7%}
  .central-search textarea{font-size:8.8px}
  .search-icon{min-width:8px}
  .send-circle{font-size:11px}
  .central-search .voice-inbar{width:20px;height:20px}
  .home-media-toolbar{left:18.45%;width:62.9%;top:52.45%}
  .chat-brand{display:none}
  .chat-top-actions{grid-template-columns:auto 1fr auto}
  .chat-home-btn{width:38px;height:34px;padding:0!important;justify-content:center}
  .chat-top-right #newChatBtn{font-size:0;width:38px;height:34px;padding:0}
  .chat-top-right #newChatBtn::after{content:"+";font-size:21px}
  .messages{padding-left:3px;padding-right:3px}
  .message-card{padding:11px 12px}
}

/* --------------------------------------------------------------------------
   CHAT FULLSCREEN — CONTINUITA GRAFICA DEFINITIVA (2026-08-25)
   Usa ESATTAMENTE lo stesso PNG della home. In chat lo stesso fotogramma viene
   avvicinato e ancorato in basso: titolo, ACCEDI e barra incorporati nel PNG
   escono dall'inquadratura, mentre restano sidecar/officina senza seconda scena.
   -------------------------------------------------------------------------- */
.hero-frame{transition:opacity .18s ease,visibility .18s ease}
body.chat-mode #home{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;display:block!important;overflow:hidden!important;background:#0d0907!important;pointer-events:none!important}
body.chat-mode #home::before{content:""!important;position:absolute!important;inset:0!important;z-index:0!important;background:url("assets/GRAPHICS_LOCKED_REFERENCE_optimized.webp") center bottom/auto 220% no-repeat!important;filter:brightness(.62) saturate(.90)!important;transform:none!important;opacity:1!important}
body.chat-mode #home::after{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(180deg,rgba(8,6,4,.30),rgba(8,6,4,.18) 45%,rgba(8,6,4,.36))!important}
body.chat-mode #home .hero-frame{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
body.chat-mode #conversationPanel{background:transparent!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important}


/* BEGIN URAL_CHAT_THEME_REFERENCE_FINAL_20261007 */
:root{
  --ref-user-1:#2e1b11;
  --ref-user-2:#20130d;
  --ref-ai-1:#4a2c19;
  --ref-ai-2:#2d1a10;
  --ref-tech-1:#51301c;
  --ref-tech-2:#321d12;
  --ref-gold:#d7a460;
  --ref-gold-soft:#e5bd80;
  --ref-text:#fff7ec;
  --ref-shadow:rgba(0,0,0,.28);
}

#messages.messages{
  width:min(930px,calc(100vw - 18px))!important;
  gap:12px!important;
  padding:12px 4px 14px!important;
}

#messages .message-row{
  width:100%!important;
  display:grid!important;
  grid-template-columns:128px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  grid-auto-rows:max-content!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;flex:0 0 auto!important;flex-shrink:0!important;}

#messages .message-role{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  padding:14px 0 0!important;
  margin:0!important;
  color:var(--ref-gold-soft)!important;
  font-size:10px!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:.11em!important;
  text-shadow:0 1px 4px rgba(0,0,0,.85)!important;
  white-space:normal!important;
}
#messages .message-role .role-name{display:block!important}
#messages .message-role .role-time{
  display:block!important;
  font-size:10px!important;
  letter-spacing:0!important;
  font-weight:500!important;
  color:#cda76f!important;
  opacity:.92!important;
}

#messages .message-card,
#messages .assistant-card,
#messages .human-card{
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  border-radius:18px!important;
  color:var(--ref-text)!important;
  border:1px solid rgba(215,164,96,.66)!important;
  box-shadow:0 8px 22px var(--ref-shadow), inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(5px)!important;
  -webkit-backdrop-filter:blur(5px)!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}

/* TU: rettangolo semplice e basso */
#messages .user-row .message-card{
  min-height:50px!important;
  padding:13px 22px!important;
  display:flex!important;
  align-items:center!important;
  line-height:1.32!important;
  font-size:17px!important;
  white-space:pre-wrap!important;
  background:linear-gradient(135deg,rgba(47,28,18,.97),rgba(30,18,12,.97))!important;
  border-color:rgba(215,164,96,.52)!important;
}

/* URAL SOURCE + TECNICO: icona circolare interna */
#messages .assistant-row .message-card,
#messages .human-row .message-card{
  min-height:76px!important;
  padding:14px 20px 14px 92px!important;
  font-size:17px!important;
  line-height:1.32!important;
}

#messages .assistant-row .message-card{
  background:linear-gradient(135deg,rgba(74,44,25,.98),rgba(43,25,15,.98))!important;
  border-color:rgba(215,164,96,.78)!important;
}

#messages .human-row .message-card{
  background:linear-gradient(135deg,rgba(81,48,28,.98),rgba(50,29,18,.98))!important;
  border-color:rgba(229,189,128,.90)!important;
}

#messages .assistant-row .message-card::before,
#messages .human-row .message-card::before{
  content:""!important;
  position:absolute!important;
  left:22px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  border:2px solid rgba(229,189,128,.90)!important;
  background-color:rgba(31,18,11,.50)!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:70% 70%!important;
  box-shadow:0 0 0 4px rgba(215,164,96,.04)!important;
}

/* icona URAL SOURCE astratta */
#messages .assistant-row .message-card::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e5bd80' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M20 17c7-7 18-6 24 1 6 7 4 16-1 21-5 5-12 6-17 3-5-3-7-9-5-14 2-5 8-8 13-6 5 2 7 8 5 13'/%3E%3Cpath d='M44 47c-7 7-18 6-24-1-6-7-4-16 1-21'/%3E%3C/g%3E%3C/svg%3E")!important;
}

/* icona chiave inglese */
#messages .human-row .message-card::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23e5bd80' d='M42 8a15 15 0 0 0-18 19L9 42a7 7 0 1 0 10 10l15-15A15 15 0 0 0 53 19l-9 9-8-8 9-9a15 15 0 0 0-3-3ZM14 50a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E")!important;
}

#messages .message-text{
  display:block!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  line-height:inherit!important;
  white-space:pre-wrap!important;
}
#messages .message-text:empty{display:none!important}

#messages .message-extra{
  min-height:0!important;
  margin:7px 0 0!important;
  gap:7px!important;
}
#messages .message-extra:empty{display:none!important}

#messages .human-origin{
  display:block!important;
  min-height:0!important;
  margin:8px 0 0!important;
  padding:0!important;
  color:var(--ref-gold-soft)!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:normal!important;
}

#messages .assistant-row:has(.message-text:empty):has(.message-extra:empty){display:none!important}

#messages .human-card img,#messages .human-card video,
#messages .assistant-card img,#messages .assistant-card video{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(100%,480px)!important;
  max-height:44vh!important;
  object-fit:contain!important;
  border-radius:12px!important;
  border:1px solid rgba(229,189,128,.40)!important;
  margin:10px 0 0!important;
  background:rgba(15,9,5,.45)!important;
}

/* barra di digitazione: bronzo, rettangolare e bassa */
.chat-composer-shell{
  width:min(930px,calc(100vw - 24px))!important;
  margin:0 auto max(10px,env(safe-area-inset-bottom))!important;
  gap:7px!important;
}
.chat-composer-shell .followup-form{
  min-height:52px!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:5px 7px 5px 16px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,rgba(70,43,27,.98),rgba(43,27,17,.98))!important;
  border:1px solid rgba(215,164,96,.80)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.34)!important;
}
.chat-composer-shell .followup-form textarea{
  flex:1!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  resize:none!important;
  overflow-y:auto!important;
  padding:9px 4px 6px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--ref-text)!important;
  font-size:16px!important;
  line-height:1.2!important;
}
.chat-composer-shell .followup-form textarea::placeholder{
  color:#e1c9aa!important;
  opacity:.92!important;
}
.chat-composer-shell .followup-form .voice-inbar{
  width:34px!important;
  height:34px!important;
  color:#fff0da!important;
}
.chat-composer-shell .followup-form>#followupSendBtn{
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  background:#24150d!important;
  color:#fff8ed!important;
  border:1px solid rgba(229,189,128,.88)!important;
}
.chat-media-toolbar .media-tool{
  color:#fff6e8!important;
  background:rgba(37,23,15,.88)!important;
  border:1px solid rgba(185,130,69,.62)!important;
}

/* mobile */
@media(max-width:650px){
  #messages.messages{width:calc(100vw - 10px)!important;gap:9px!important;padding:8px 2px 10px!important}
  #messages .message-row{grid-template-columns:78px minmax(0,1fr)!important;gap:6px!important}
  #messages .message-role{padding-top:9px!important;font-size:8px!important;gap:3px!important}
  #messages .message-role .role-time{font-size:8px!important}
  #messages .user-row .message-card{
    min-height:42px!important;
    padding:10px 13px!important;
    border-radius:13px!important;
    font-size:13.5px!important;
  }
  #messages .assistant-row .message-card,
  #messages .human-row .message-card{
    min-height:58px!important;
    padding:10px 12px 10px 58px!important;
    border-radius:13px!important;
    font-size:13.5px!important;
    line-height:1.30!important;
  }
  #messages .assistant-row .message-card::before,
  #messages .human-row .message-card::before{
    left:12px!important;
    width:34px!important;
    height:34px!important;
  }
  #messages .human-origin{margin-top:5px!important;font-size:10px!important}
  .chat-composer-shell{width:calc(100vw - 16px)!important}
  .chat-composer-shell .followup-form{
    height:48px!important;
    min-height:48px!important;
    padding:4px 6px 4px 13px!important;
    border-radius:16px!important;
  }
  .chat-composer-shell .followup-form textarea{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    font-size:15px!important;
    padding:8px 3px 5px!important;
  }
  .chat-composer-shell .followup-form .voice-inbar{width:32px!important;height:32px!important}
  .chat-composer-shell .followup-form>#followupSendBtn{width:34px!important;height:34px!important}
}
/* END URAL_CHAT_THEME_REFERENCE_FINAL_20261007 */


/* URAL_CHAT_STACK_FIX_20261008 */

/* URAL_DYNAMIC_ACCESS_LABEL_20261008 */
.access-hotspot.dynamic-access-label{display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(18,12,8,.94)!important;color:#f4e4cb!important;border:1px solid rgba(215,164,96,.68)!important;border-radius:10px!important;font-size:clamp(9px,1.05vw,16px)!important;font-weight:700!important;letter-spacing:.04em!important;text-shadow:0 1px 3px rgba(0,0,0,.9)!important;box-shadow:0 4px 14px rgba(0,0,0,.24)!important;padding:0 .35em!important;white-space:nowrap!important;overflow:hidden!important;z-index:9!important;}

/* URAL_STATIC_ENGLISH_UI_20261008 */
.central-prompt-hint{position:absolute!important;left:6.9%!important;right:12.8%!important;top:50%!important;transform:translateY(-50%)!important;pointer-events:none!important;z-index:9!important;color:#4d4843!important;font-size:clamp(9px,1.06vw,17px)!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:400!important;}
.central-prompt-hint strong{font-weight:800!important;color:#221913!important;}
.central-prompt-hint[hidden]{display:none!important;}
.central-search textarea{position:relative!important;z-index:10!important;}
@media(max-width:650px){.central-prompt-hint{left:8.5%!important;right:15.5%!important;font-size:clamp(7.7px,2.05vw,10px)!important;}}

/* URAL_CENTRAL_PROMPT_FINAL_4X_20261008 */
#messageInput::placeholder{color:transparent!important;opacity:0!important;}
#centralPromptHint.central-prompt-hint{position:absolute!important;left:6.8%!important;right:12.5%!important;top:50%!important;transform:translateY(-50%)!important;pointer-events:none!important;z-index:11!important;color:#4d4843!important;font-size:clamp(8px,1.00vw,16px)!important;line-height:1.08!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-weight:400!important;text-align:left!important;}
#centralPromptHint.central-prompt-hint strong{font-weight:900!important;color:#1f1712!important;}
#centralPromptHint.central-prompt-hint[hidden]{display:none!important;}
.central-search #messageInput{position:relative!important;z-index:10!important;}
@media(max-width:650px){#centralPromptHint.central-prompt-hint{left:8.3%!important;right:15.2%!important;font-size:clamp(7px,1.82vw,9.2px)!important;line-height:1.05!important;}}

/* URAL_HOME_ENGLISH_TAGLINE_20261009 */
.hero-frame::after{
  content:"COLLECTIVE INTELLIGENCE FOR URAL AND DNEPR SIDECARS";
  position:absolute;
  z-index:5;
  left:30.3%;
  top:26.15%;
  width:39.4%;
  height:4.9%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:0 1.2%;
  background:linear-gradient(90deg,rgba(12,9,6,.10) 0%,rgba(12,9,6,.93) 7%,rgba(12,9,6,.96) 93%,rgba(12,9,6,.10) 100%);
  color:#d4a564;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(7px,1.12vw,18px);
  font-weight:700;
  letter-spacing:.035em;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  pointer-events:none;
  text-shadow:0 1px 2px rgba(0,0,0,.88);
}
@media(max-width:650px){
  .hero-frame::after{font-size:clamp(6.4px,1.45vw,8.5px);left:29.7%;width:40.6%;top:26.2%;}
}

/* URAL_FREE_REGISTRATION_20261009 */
.free-account-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:#c8aa82;font-size:12px;text-transform:uppercase;letter-spacing:.12em;}
.free-account-divider::before,.free-account-divider::after{content:"";height:1px;flex:1;background:rgba(214,170,111,.28);}
.free-register-form{margin-top:0!important;}
.free-register-form h3{margin-bottom:5px!important;}
.free-register-note{margin:0 0 12px;color:#d7c4aa;font-size:12px;line-height:1.35;}
.free-register-form .primary{width:100%;}

/* URAL_AUTH_FIX_20261017 */
.ural-auth-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ural-auth-tools button{background:transparent;border:1px solid rgba(214,170,111,.5);border-radius:7px;color:#e5c291;padding:9px 11px;cursor:pointer;font:inherit;font-size:12px}.ural-auth-tools button:disabled{opacity:.55;cursor:wait}

/* URALSOURCE ACCESSIBILITY: mobile touch targets in central search.
   Keep the same background photo, position & dimensions of the frame. */
@media (max-width:650px) {
  .central-search {
    top:46.70%!important;
    transform:translateY(-50%);
    height:36px!important;
    min-height:36px!important;
    gap:5px!important;
  }
  .central-search #messageInput {
    height:30px!important;
    min-height:30px!important;
  }
  .central-search #voiceBtn {
    width:26px!important;
    min-width:26px!important;
    height:26px!important;
    min-height:26px!important;
    flex:0 0 26px!important;
  }
  .central-search #sendBtn {
    width:26px!important;
    min-width:26px!important;
    height:26px!important;
    min-height:26px!important;
    flex:0 0 26px!important;
  }
  .home-media-toolbar {top:56%!important;}
}
