/* ==========================================================================
   AZ MAÇONNERIE — V7.1.1 FINAL VOICE UI — PIXEL LOCK
   Responsive conversation and contact theme lock
   Loaded last: this file is the single visual source of truth for V7.
   ========================================================================== */

:root{
  --az7-ink:#160d09;
  --az7-ink-soft:#231510;
  --az7-panel:#2b1a14;
  --az7-panel-soft:#3a231a;
  --az7-copper:#c85e45;
  --az7-copper-2:#9e382d;
  --az7-terracotta:#d67554;
  --az7-cream:#fff4e8;
  --az7-cream-soft:#ead6c7;
  --az7-line:rgba(216,117,84,.38);
  --az7-line-soft:rgba(255,244,232,.12);
  --az7-shadow:0 28px 90px rgba(25,9,4,.38);
  --az7-radius-xl:34px;
  --az7-radius-lg:24px;
  --az7-radius-md:18px;
}

/* Page gateway + form ------------------------------------------------------ */
.contact{
  position:relative;
  overflow:hidden;
  padding-block:clamp(3rem,6vw,7rem)!important;
  background:
    radial-gradient(circle at 14% 14%,rgba(189,82,46,.11),transparent 25%),
    radial-gradient(circle at 86% 72%,rgba(105,49,31,.09),transparent 28%),
    #f4efe7!important;
}
.contact::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.28;
  background-image:
    linear-gradient(30deg,rgba(92,49,33,.06) 12%,transparent 12.5%,transparent 87%,rgba(92,49,33,.06) 87.5%),
    linear-gradient(150deg,rgba(92,49,33,.05) 12%,transparent 12.5%,transparent 87%,rgba(92,49,33,.05) 87.5%);
  background-size:52px 90px;
}
.contact-grid{
  position:relative;
  z-index:1;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:clamp(1.25rem,2.4vw,2.3rem)!important;
  width:min(calc(100% - clamp(1.25rem,4vw,5rem)),1540px)!important;
  max-width:1540px!important;
}
.conversation-gateway{
  min-height:clamp(590px,72vh,820px)!important;
  display:grid!important;
  grid-template-columns:minmax(320px,42%) minmax(0,58%)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:0 clamp(1.4rem,3vw,4rem)!important;
  padding:clamp(1rem,2.4vw,2.5rem)!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-xl)!important;
  overflow:hidden!important;
  isolation:isolate;
  color:var(--az7-cream)!important;
  background:
    radial-gradient(circle at 18% 44%,rgba(197,84,48,.24),transparent 28%),
    radial-gradient(circle at 82% 18%,rgba(213,119,79,.12),transparent 22%),
    linear-gradient(112deg,#110a08 0%,#2d1913 58%,#160c09 100%)!important;
  box-shadow:var(--az7-shadow)!important;
}
.conversation-gateway::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.32;
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(226,135,90,.14) 50%,transparent 50.2%),
    radial-gradient(circle at 50% 50%,transparent 0 48%,rgba(215,118,75,.08) 48.5% 49%,transparent 49.5%);
}
.gateway-copy{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end;
  padding:clamp(.25rem,1vw,1rem) 0 clamp(.9rem,2vw,1.5rem)!important;
}
.gateway-copy .eyebrow{
  margin:0 0 .65rem!important;
  color:var(--az7-terracotta)!important;
  letter-spacing:.16em!important;
}
.gateway-copy h2{
  margin:0!important;
  max-width:12ch;
  color:var(--az7-cream)!important;
  font-size:clamp(2.6rem,5.5vw,5.6rem)!important;
  line-height:.98!important;
  text-wrap:balance;
}
.gateway-copy .power-bridge-copy{
  max-width:62ch!important;
  margin:1rem 0 0!important;
  color:var(--az7-cream-soft)!important;
  font-size:clamp(1rem,1.35vw,1.22rem)!important;
}
.gateway-stage{
  display:grid!important;
  grid-column:1/-1!important;
  grid-row:2!important;
  grid-template-columns:minmax(320px,42%) minmax(0,58%)!important;
  grid-template-rows:auto minmax(150px,1fr)!important;
  gap:clamp(1rem,2vw,1.5rem) clamp(1.4rem,3vw,4rem)!important;
  min-height:0!important;
  width:100%!important;
}
.gateway-avatar{
  position:relative!important;
  grid-column:1!important;
  grid-row:1/3!important;
  align-self:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:440px!important;
  max-height:none!important;
  overflow:hidden!important;
  border:1px solid rgba(221,132,83,.32)!important;
  border-radius:52% 52% 30px 30px!important;
  background:#1b100c!important;
  box-shadow:0 24px 64px rgba(0,0,0,.38)!important;
  filter:none!important;
}
.gateway-avatar::before{
  content:"";
  position:absolute;
  inset:14px;
  z-index:2;
  pointer-events:none;
  border:1px solid rgba(235,163,119,.22);
  border-radius:52% 52% 22px 22px;
}
.gateway-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:440px!important;
  object-fit:cover!important;
  object-position:50% 15%!important;
  border:0!important;
  border-radius:inherit!important;
  mask-image:linear-gradient(#000 0 87%,rgba(0,0,0,.82) 94%,transparent 100%)!important;
}
.gateway-avatar-glow{
  position:absolute!important;
  inset:auto 8% 3%!important;
  height:18%!important;
  border-radius:50%!important;
  background:rgba(196,80,43,.22)!important;
  filter:blur(30px)!important;
}
.gateway-speech{
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  width:100%!important;
  max-width:none!important;
  min-height:114px!important;
  margin:0!important;
  padding:1.25rem 1.35rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-md)!important;
  color:var(--az7-cream)!important;
  background:linear-gradient(135deg,rgba(75,43,32,.82),rgba(42,27,22,.92))!important;
  box-shadow:0 14px 38px rgba(0,0,0,.22)!important;
}
.gateway-speech::before{
  content:"";
  position:absolute;
  inset-inline-start:-11px;
  top:28px;
  width:20px;
  height:20px;
  border-inline-start:1px solid var(--az7-line);
  border-bottom:1px solid var(--az7-line);
  background:#3c251d;
  transform:rotate(45deg);
}
.gateway-speech span{
  display:block!important;
  margin-bottom:.35rem!important;
  color:var(--az7-terracotta)!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
}
.gateway-speech strong{
  color:var(--az7-cream)!important;
  font-size:clamp(1rem,1.3vw,1.16rem)!important;
  line-height:1.55!important;
}
.gateway-listen{
  position:relative!important;
  grid-column:2!important;
  grid-row:2!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-height:170px!important;
  margin:0!important;
  padding:1.35rem!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  justify-items:start!important;
  gap:1.15rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-lg)!important;
  color:var(--az7-cream)!important;
  background:
    radial-gradient(circle at 25% 50%,rgba(220,95,60,.22),transparent 28%),
    rgba(20,13,10,.72)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 18px 46px rgba(0,0,0,.2)!important;
}
.gateway-listen:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(225,124,83,.7)!important;
  box-shadow:0 22px 58px rgba(0,0,0,.28),0 0 0 5px rgba(198,81,52,.08)!important;
}
.fingerprint-motion{
  width:82px!important;
  height:82px!important;
  flex:0 0 82px!important;
  border:1px solid rgba(229,139,94,.52)!important;
  border-radius:50%!important;
  background:radial-gradient(circle,#d76649 0 30%,#7e2d23 31% 53%,#1d110d 54%)!important;
  box-shadow:0 0 0 8px rgba(207,85,54,.08),0 0 34px rgba(213,92,55,.32)!important;
}
.gateway-button-copy{
  display:grid!important;
  gap:.18rem!important;
  text-align:start!important;
}
.gateway-button-copy strong{
  color:var(--az7-cream)!important;
  font-size:clamp(1.15rem,2vw,1.55rem)!important;
}
.gateway-button-copy small{
  color:var(--az7-cream-soft)!important;
  font-size:.95rem!important;
}

/* Contact form follows the same material language */
.contact-card{
  width:100%!important;
  max-width:none!important;
  padding:clamp(1.15rem,2.5vw,2.35rem)!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-xl)!important;
  color:var(--az7-cream)!important;
  background:
    radial-gradient(circle at 88% 12%,rgba(205,93,57,.14),transparent 24%),
    linear-gradient(145deg,#1b100d,#342018)!important;
  box-shadow:0 22px 60px rgba(39,17,10,.22)!important;
}
.contact-card .form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:1rem 1.15rem!important;
}
.contact-card .field{
  display:grid!important;
  gap:.45rem!important;
}
.contact-card .field.full{
  grid-column:1/-1!important;
}
.contact-card label{
  color:#f4ded1!important;
  font-weight:850!important;
}
.contact-card input,
.contact-card select,
.contact-card textarea{
  width:100%!important;
  min-height:56px!important;
  border:1px solid rgba(224,132,85,.42)!important;
  border-radius:15px!important;
  padding:.85rem 1rem!important;
  color:#fff8ef!important;
  background:rgba(255,248,238,.07)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.contact-card textarea{
  min-height:150px!important;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus{
  outline:none!important;
  border-color:rgba(228,118,78,.92)!important;
  box-shadow:0 0 0 4px rgba(204,85,55,.14)!important;
}
.contact-card select option{
  color:#21140f;
  background:#fff5eb;
}
.contact-card .btn-primary{
  width:100%!important;
  min-height:58px!important;
  border:0!important;
  border-radius:16px!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--az7-terracotta),var(--az7-copper-2))!important;
  box-shadow:0 14px 34px rgba(132,43,31,.3)!important;
}

/* Full-screen dialog ------------------------------------------------------- */
.conversation-dialog,
.conversation-dialog[open]{
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  color:var(--az7-cream)!important;
  background:transparent!important;
}
.conversation-dialog::backdrop{
  background:rgba(12,6,4,.76)!important;
  backdrop-filter:blur(14px) saturate(.9)!important;
}
.conversation-shell{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  display:grid!important;
  grid-template-columns:minmax(300px,38%) minmax(0,62%)!important;
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto auto!important;
  gap:.75rem clamp(1.25rem,3vw,3.6rem)!important;
  padding:clamp(1rem,2.5vw,2.5rem)!important;
  overflow:hidden!important;
  color:var(--az7-cream)!important;
  background:
    radial-gradient(circle at 17% 44%,rgba(196,80,43,.23),transparent 29%),
    radial-gradient(circle at 82% 18%,rgba(215,111,70,.10),transparent 24%),
    linear-gradient(108deg,#100906 0%,#2a1711 56%,#140b08 100%)!important;
}
.conversation-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.25;
  background:
    linear-gradient(90deg,transparent 38%,rgba(225,135,89,.12) 38.08%,transparent 38.16%),
    radial-gradient(circle at 18% 50%,transparent 0 31%,rgba(224,127,79,.09) 31.2% 31.45%,transparent 31.7%);
}
.conversation-header{
  position:relative!important;
  grid-column:1!important;
  grid-row:1/-1!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  border:1px solid var(--az7-line)!important;
  border-radius:52% 52% 28px 28px!important;
  background:#1b0f0b!important;
  box-shadow:0 28px 80px rgba(0,0,0,.4)!important;
  isolation:isolate;
}
.conversation-header::after{
  content:"";
  position:absolute;
  inset:14px;
  z-index:3;
  pointer-events:none;
  border:1px solid rgba(235,160,116,.18);
  border-radius:52% 52% 20px 20px;
}
.conversation-identity{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  contain:none!important;
}
.avatar-disc.avatar-portrait{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:inherit!important;
  background:transparent!important;
}
.conversation-avatar-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:50% 14%!important;
  border-radius:inherit!important;
  mask-image:linear-gradient(#000 0 82%,rgba(0,0,0,.86) 90%,rgba(0,0,0,.28) 97%,transparent 100%)!important;
  filter:saturate(.95) contrast(1.02)!important;
}
.avatar-copy{
  display:grid!important;
  position:absolute!important;
  inset:auto 1.25rem 1.25rem!important;
  z-index:4!important;
  gap:.08rem!important;
  padding:1rem 1.1rem!important;
  border:1px solid rgba(234,149,101,.28)!important;
  border-radius:18px!important;
  color:var(--az7-cream)!important;
  background:rgba(20,12,9,.68)!important;
  backdrop-filter:blur(16px)!important;
}
.avatar-copy strong{
  color:#fff!important;
  font-size:1.15rem!important;
}
.avatar-copy span,
.avatar-copy small{
  color:var(--az7-cream-soft)!important;
}
.conversation-close{
  position:fixed!important;
  inset-block-start:max(1rem,env(safe-area-inset-top))!important;
  inset-inline-end:max(1rem,env(safe-area-inset-right))!important;
  z-index:100!important;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,244,232,.12)!important;
  border-radius:50%!important;
  color:#fff!important;
  background:rgba(21,13,10,.76)!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.28)!important;
}
.conversation-close:hover{
  transform:rotate(4deg) scale(1.04)!important;
  border-color:rgba(220,111,76,.6)!important;
}
.conversation-title-row{
  position:relative!important;
  z-index:2!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  margin:0!important;
  padding:0!important;
}
.conversation-title-row h2{
  margin:0!important;
  max-width:14ch!important;
  color:var(--az7-cream)!important;
  font-size:clamp(2.4rem,5vw,5.2rem)!important;
  line-height:.96!important;
  letter-spacing:-.035em!important;
  text-wrap:balance!important;
}
.conversation-lede{
  position:relative!important;
  z-index:2!important;
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  max-width:64ch!important;
  margin:0!important;
  padding:0!important;
  color:var(--az7-cream-soft)!important;
  font-size:clamp(.95rem,1.2vw,1.15rem)!important;
}
.conversation-progress{
  display:none!important;
}
.conversation-log,
.conversation-start-gate,
.conversation-state,
.voice-orb,
.conversation-compose,
.conversation-resume-actions,
.conversation-privacy,
.conversation-final-actions,
.conversation-geo-stage{
  position:relative!important;
  z-index:2!important;
  grid-column:2!important;
  min-width:0!important;
}
.conversation-log{
  grid-row:3!important;
  min-height:120px!important;
  max-height:none!important;
  overflow:auto!important;
  padding:1rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-lg)!important;
  color:var(--az7-cream)!important;
  background:rgba(22,13,10,.66)!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(209,102,68,.7) transparent;
}
.conversation-message{
  max-width:min(92%,780px)!important;
  margin:.55rem 0!important;
  padding:1rem 1.1rem!important;
  border-radius:18px!important;
  line-height:1.55!important;
  box-shadow:none!important;
}
.conversation-message.assistant{
  margin-inline-end:auto!important;
  color:#2a1811!important;
  border:1px solid #ead0bf!important;
  background:linear-gradient(135deg,#fff7ee,#f4dfd0)!important;
}
.conversation-message.user{
  margin-inline-start:auto!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:linear-gradient(135deg,#b74934,#7b2b22)!important;
}
.conversation-start-gate{
  grid-row:3!important;
  align-self:center!important;
  justify-self:center!important;
  width:min(100%,540px)!important;
  min-height:66px!important;
  border:1px solid rgba(226,128,85,.62)!important;
  border-radius:18px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#cf6248,#8e3025)!important;
}
.conversation-state{
  grid-row:4!important;
  min-height:50px!important;
  margin:0!important;
  padding:.75rem 1rem!important;
  display:flex!important;
  align-items:center!important;
  gap:.7rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:16px!important;
  color:#f4ded1!important;
  background:rgba(37,23,18,.88)!important;
}
.conversation-state-dot{
  width:10px!important;
  height:10px!important;
  flex:0 0 10px!important;
  border:0!important;
  background:var(--az7-terracotta)!important;
  box-shadow:0 0 0 6px rgba(211,93,62,.1)!important;
}
.voice-orb{
  grid-row:5!important;
  justify-self:center!important;
  align-self:center!important;
  width:84px!important;
  height:84px!important;
  margin:0!important;
  border:1px solid rgba(230,132,87,.6)!important;
  border-radius:50%!important;
  background:radial-gradient(circle,#ce6045 0 31%,#7f2d23 32% 54%,#1b0e0a 55%)!important;
  box-shadow:0 0 0 9px rgba(207,84,52,.08),0 0 36px rgba(212,89,55,.28)!important;
}
.voice-orb.listening{
  box-shadow:
    0 0 0 calc(9px + 6px * var(--voice-level,0)) rgba(207,84,52,.09),
    0 0 calc(34px + 46px * var(--voice-level,0)) rgba(218,91,57,.62)!important;
}
.conversation-compose{
  grid-row:6!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(160px,205px)!important;
  gap:.75rem!important;
  margin:0!important;
  padding:.75rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-lg)!important;
  background:rgba(19,11,8,.72)!important;
  backdrop-filter:blur(12px)!important;
}
.conversation-compose textarea,
.conversation-review{
  display:block!important;
  width:100%!important;
  border:1px solid rgba(226,133,87,.44)!important;
  border-radius:16px!important;
  padding:1rem!important;
  color:#fff9f2!important;
  background:#2c1d17!important;
  caret-color:#fff!important;
  font:inherit!important;
  line-height:1.5!important;
}
.conversation-compose textarea{
  min-height:92px!important;
  max-height:190px!important;
  resize:vertical!important;
}
.conversation-compose textarea::placeholder,
.conversation-review::placeholder{
  color:#cbb4a7!important;
  opacity:1!important;
}
.conversation-primary-action{
  min-height:100%!important;
  border:0!important;
  border-radius:16px!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--az7-terracotta),var(--az7-copper-2))!important;
  box-shadow:0 14px 34px rgba(128,39,28,.3)!important;
}
.conversation-primary-action:hover:not(:disabled){
  transform:translateY(-1px)!important;
  box-shadow:0 18px 40px rgba(128,39,28,.38)!important;
}
.conversation-resume-actions{
  grid-row:7!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:.75rem!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  position:relative!important;
}
.conversation-resume-actions[hidden]{
  display:none!important;
}
.conversation-resume-actions .btn{
  min-height:58px!important;
  border-radius:16px!important;
  font-weight:900!important;
}
.conversation-resume{
  color:#2b1912!important;
  background:#fff7ee!important;
  border-color:#fff7ee!important;
}
.conversation-complete{
  color:#fff!important;
  background:linear-gradient(135deg,#af4936,#78291f)!important;
}
.conversation-privacy{
  grid-row:8!important;
  margin:0!important;
  padding:.25rem 0!important;
  color:#cfb9ad!important;
  font-size:.9rem!important;
  text-align:center!important;
}

/* Review and geolocation stages: one scroll only */
.conversation-shell.stage-geo .conversation-log,
.conversation-shell.stage-geo .conversation-state,
.conversation-shell.stage-geo .voice-orb,
.conversation-shell.stage-geo .conversation-compose,
.conversation-shell.stage-geo .conversation-resume-actions,
.conversation-shell.stage-geo .conversation-privacy,
.conversation-shell.stage-review .conversation-log,
.conversation-shell.stage-review .conversation-state,
.conversation-shell.stage-review .voice-orb,
.conversation-shell.stage-review .conversation-compose,
.conversation-shell.stage-review .conversation-resume-actions,
.conversation-shell.stage-review .conversation-privacy{
  display:none!important;
}
.conversation-shell.stage-geo .conversation-geo-stage,
.conversation-shell.stage-review .conversation-final-actions{
  grid-column:2!important;
  grid-row:3/9!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
}
.conversation-geo-stage,
.conversation-final-actions{
  padding:clamp(1rem,2vw,1.5rem)!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-lg)!important;
  color:var(--az7-cream)!important;
  background:linear-gradient(145deg,rgba(28,17,13,.98),rgba(57,32,23,.96))!important;
  box-shadow:0 20px 60px rgba(0,0,0,.24)!important;
}
.conversation-final-actions[hidden],
.conversation-geo-stage[hidden]{
  display:none!important;
}
.conversation-final-title{
  display:block!important;
  margin:0 0 .75rem!important;
  color:var(--az7-cream)!important;
  font-size:1.08rem!important;
}
.conversation-review{
  min-height:clamp(150px,24vh,260px)!important;
  max-height:34vh!important;
  resize:vertical!important;
}
.conversation-phone-field{
  display:grid!important;
  gap:.45rem!important;
  margin-top:1rem!important;
  color:#f1d8ca!important;
}
.conversation-phone-field input{
  width:100%!important;
  min-height:54px!important;
  padding:.85rem 1rem!important;
  border:1px solid rgba(226,133,87,.44)!important;
  border-radius:15px!important;
  color:#22140f!important;
  background:#fff7ef!important;
}
.conversation-notify-choice{
  display:flex!important;
  align-items:center!important;
  gap:.65rem!important;
  margin:1rem 0!important;
  color:#edd8cd!important;
}
.conversation-review-tools{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:.75rem!important;
  margin-top:.85rem!important;
}
.conversation-review-tools .btn,
.conversation-internal-send{
  min-height:56px!important;
  border-radius:16px!important;
}
.conversation-internal-send{
  width:100%!important;
  margin-top:.8rem!important;
  border:0!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--az7-terracotta),var(--az7-copper-2))!important;
}
.conversation-delivery-note{
  margin:.8rem 0 0!important;
  color:#ccb5a8!important;
}
.conversation-send-result{
  margin-top:1rem!important;
  padding:1rem!important;
  border:1px solid rgba(101,207,143,.38)!important;
  border-radius:16px!important;
  color:#e8fff1!important;
  background:rgba(43,126,79,.22)!important;
}

/* Tablet ------------------------------------------------------------------ */
@media (min-width:701px) and (max-width:1100px){
  .conversation-gateway{
    grid-template-columns:minmax(260px,38%) minmax(0,62%)!important;
    min-height:620px!important;
  }
  .gateway-stage{
    grid-template-columns:minmax(260px,38%) minmax(0,62%)!important;
  }
  .gateway-copy h2{
    font-size:clamp(2.8rem,6vw,4.5rem)!important;
  }
  .conversation-shell{
    grid-template-columns:minmax(250px,34%) minmax(0,66%)!important;
    padding:1.25rem!important;
    gap:.65rem 1.35rem!important;
  }
  .conversation-title-row h2{
    font-size:clamp(2.2rem,4.7vw,3.6rem)!important;
  }
}

/* Mobile portrait --------------------------------------------------------- */
@media (max-width:700px){
  .contact{
    padding-block:1.2rem 2.8rem!important;
  }
  .contact-grid{
    width:min(calc(100% - 1rem),100%)!important;
    gap:1rem!important;
  }
  .conversation-gateway{
    min-height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:1rem!important;
    padding:.8rem!important;
    border-radius:26px!important;
  }
  .gateway-copy{
    order:2!important;
    padding:.1rem .45rem 0!important;
  }
  .gateway-copy h2{
    max-width:11ch!important;
    font-size:clamp(2.25rem,12vw,3.6rem)!important;
  }
  .gateway-copy .power-bridge-copy{
    font-size:.98rem!important;
  }
  .gateway-stage{
    order:1!important;
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    gap:.8rem!important;
  }
  .gateway-avatar{
    order:1!important;
    width:100%!important;
    min-height:clamp(270px,76vw,390px)!important;
    height:clamp(270px,76vw,390px)!important;
    border-radius:50% 50% 22px 22px!important;
  }
  .gateway-avatar img{
    min-height:0!important;
    height:100%!important;
    object-position:50% 10%!important;
  }
  .gateway-speech{
    order:2!important;
    min-height:0!important;
    padding:1rem!important;
  }
  .gateway-speech::before{
    display:none!important;
  }
  .gateway-listen{
    order:3!important;
    min-height:116px!important;
    padding:1rem!important;
  }
  .fingerprint-motion{
    width:66px!important;
    height:66px!important;
    flex-basis:66px!important;
  }
  .contact-card{
    padding:1rem!important;
    border-radius:26px!important;
  }
  .contact-card .form-grid{
    grid-template-columns:1fr!important;
  }
  .contact-card .field,
  .contact-card .field.full{
    grid-column:1!important;
  }

  .conversation-dialog,
  .conversation-dialog[open]{
    width:100%!important;
    height:100dvh!important;
  }
  .conversation-shell{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    gap:.65rem!important;
    padding:
      max(.65rem,env(safe-area-inset-top))
      .65rem
      max(.8rem,env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    background:
      radial-gradient(circle at 50% 10%,rgba(196,80,43,.22),transparent 24%),
      linear-gradient(180deg,#120906 0%,#24130e 58%,#120906 100%)!important;
  }
  .conversation-shell::before{
    opacity:.13!important;
    background:radial-gradient(circle at 50% 16%,transparent 0 23%,rgba(224,127,79,.12) 23.4% 23.8%,transparent 24.2%)!important;
  }
  .conversation-header{
    order:1!important;
    flex:0 0 clamp(190px,57vw,250px)!important;
    width:100%!important;
    height:clamp(190px,57vw,250px)!important;
    min-height:190px!important;
    overflow:hidden!important;
    border-radius:42% 42% 22px 22px!important;
  }
  .conversation-header .conversation-identity,
  .conversation-header .avatar-disc.avatar-portrait{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }
  .conversation-header .conversation-avatar-image{
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:50% 12%!important;
  }
  .avatar-copy{
    inset:auto .75rem .75rem!important;
    padding:.7rem .8rem!important;
    border-radius:14px!important;
  }
  .avatar-copy span,
  .avatar-copy small{
    display:none!important;
  }
  .conversation-close{
    position:fixed!important;
    width:44px!important;
    height:44px!important;
    inset-block-start:max(.65rem,env(safe-area-inset-top))!important;
    inset-inline-end:max(.65rem,env(safe-area-inset-right))!important;
  }
  .conversation-title-row{
    order:2!important;
    flex:0 0 auto!important;
    width:100%!important;
    padding:.05rem .2rem!important;
  }
  .conversation-title-row h2{
    max-width:none!important;
    font-size:clamp(2rem,10.5vw,3rem)!important;
    line-height:1.01!important;
    text-align:start!important;
  }
  .conversation-lede{
    order:3!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:0 .2rem!important;
    font-size:.94rem!important;
  }
  .conversation-log{
    order:4!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:112px!important;
    max-height:30dvh!important;
    padding:.75rem!important;
    border-radius:18px!important;
    overflow:auto!important;
  }
  .conversation-start-gate{
    order:4!important;
    flex:0 0 auto!important;
    width:100%!important;
  }
  .conversation-state{
    order:5!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:48px!important;
  }
  .voice-orb{
    order:6!important;
    flex:0 0 74px!important;
    width:74px!important;
    height:74px!important;
    align-self:center!important;
  }
  .conversation-compose{
    order:7!important;
    flex:0 0 auto!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:.65rem!important;
    padding:.65rem!important;
    border-radius:18px!important;
  }
  .conversation-compose textarea{
    min-height:108px!important;
    max-height:34dvh!important;
    resize:none!important;
    font-size:16px!important;
  }
  .conversation-primary-action{
    min-height:60px!important;
  }
  .conversation-resume-actions{
    order:8!important;
    flex:0 0 auto!important;
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .conversation-resume-actions .btn{
    min-height:62px!important;
  }
  .conversation-privacy{
    order:9!important;
    flex:0 0 auto!important;
    width:100%!important;
    padding:.2rem .3rem!important;
    font-size:.85rem!important;
  }
  .conversation-shell.stage-geo .conversation-header,
  .conversation-shell.stage-review .conversation-header{
    flex-basis:112px!important;
    height:112px!important;
    min-height:112px!important;
    border-radius:22px!important;
  }
  .conversation-shell.stage-geo .conversation-header .conversation-avatar-image,
  .conversation-shell.stage-review .conversation-header .conversation-avatar-image{
    object-position:50% 15%!important;
  }
  .conversation-shell.stage-geo .conversation-title-row,
  .conversation-shell.stage-review .conversation-title-row{
    order:2!important;
  }
  .conversation-shell.stage-geo .conversation-lede,
  .conversation-shell.stage-review .conversation-lede{
    display:none!important;
  }
  .conversation-shell.stage-geo .conversation-geo-stage,
  .conversation-shell.stage-review .conversation-final-actions{
    order:4!important;
    flex:1 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .conversation-review{
    min-height:150px!important;
    max-height:none!important;
    resize:none!important;
    font-size:16px!important;
  }
  .conversation-review-tools{
    grid-template-columns:1fr!important;
  }
  .conversation-geo-choices{
    grid-template-columns:1fr!important;
  }
  .conversation-geo-picker .geo-map{
    min-height:260px!important;
  }
  .keyboard-open .conversation-header,
  .keyboard-open .conversation-title-row,
  .keyboard-open .conversation-lede{
    display:none!important;
  }
  .keyboard-open .conversation-compose,
  .keyboard-open .conversation-final-actions{
    scroll-margin-top:.4rem!important;
  }
}

/* Mobile landscape / short viewports ------------------------------------- */
@media (max-height:520px) and (orientation:landscape){
  .conversation-shell{
    display:grid!important;
    grid-template-columns:minmax(180px,34%) minmax(0,66%)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    gap:.45rem .8rem!important;
    padding:.55rem!important;
    overflow:hidden!important;
  }
  .conversation-header{
    grid-column:1!important;
    grid-row:1/4!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    border-radius:44% 44% 18px 18px!important;
  }
  .conversation-title-row{
    grid-column:2!important;
    grid-row:1!important;
    order:initial!important;
  }
  .conversation-title-row h2{
    font-size:clamp(1.65rem,5vw,2.45rem)!important;
  }
  .conversation-lede{
    display:none!important;
  }
  .conversation-log{
    grid-column:2!important;
    grid-row:2!important;
    order:initial!important;
    min-height:0!important;
    max-height:none!important;
  }
  .conversation-state{
    grid-column:2!important;
    grid-row:3!important;
    order:initial!important;
  }
  .voice-orb,
  .conversation-compose,
  .conversation-resume-actions,
  .conversation-privacy{
    grid-column:2!important;
  }
  .conversation-compose{
    position:absolute!important;
    inset:auto .55rem .55rem calc(34% + 1.35rem)!important;
    width:auto!important;
    max-height:calc(100% - 7rem)!important;
    overflow:auto!important;
  }
  .conversation-compose textarea{
    min-height:72px!important;
    max-height:120px!important;
  }
  .conversation-primary-action{
    min-height:50px!important;
  }
  .conversation-resume-actions{
    position:absolute!important;
    inset:auto .55rem .55rem calc(34% + 1.35rem)!important;
    width:auto!important;
    grid-template-columns:1fr 1fr!important;
  }
  .conversation-privacy{
    display:none!important;
  }
  .conversation-shell.stage-geo .conversation-header,
  .conversation-shell.stage-review .conversation-header{
    display:block!important;
    height:100%!important;
    min-height:0!important;
  }
  .conversation-shell.stage-geo .conversation-geo-stage,
  .conversation-shell.stage-review .conversation-final-actions{
    grid-column:2!important;
    grid-row:2/4!important;
    order:initial!important;
    height:100%!important;
    overflow:auto!important;
  }
}

/* TV and very large screens ---------------------------------------------- */
@media (min-width:1600px){
  .conversation-gateway{
    min-height:min(820px,76vh)!important;
  }
  .gateway-copy h2{
    font-size:clamp(4.5rem,5.2vw,6.5rem)!important;
  }
  .gateway-avatar{
    min-height:560px!important;
  }
  .gateway-avatar img{
    min-height:560px!important;
  }
  .conversation-shell{
    grid-template-columns:minmax(470px,40%) minmax(0,60%)!important;
    gap:1.05rem clamp(3rem,5vw,6rem)!important;
    padding:clamp(2rem,3.2vw,4.4rem)!important;
  }
  .conversation-title-row h2{
    font-size:clamp(4rem,5vw,6.8rem)!important;
  }
  .conversation-lede{
    font-size:1.25rem!important;
  }
  .conversation-log{
    padding:1.35rem!important;
  }
  .conversation-message{
    font-size:1.08rem!important;
  }
  .conversation-state{
    min-height:58px!important;
    font-size:1.05rem!important;
  }
  .conversation-compose textarea{
    min-height:120px!important;
    font-size:1.05rem!important;
  }
  .conversation-primary-action,
  .conversation-resume-actions .btn{
    min-height:68px!important;
    font-size:1.05rem!important;
  }
}

/* RTL --------------------------------------------------------------------- */
html[dir="rtl"] .gateway-speech::before{
  inset-inline-start:auto;
  inset-inline-end:-11px;
  transform:rotate(225deg);
}
html[dir="rtl"] .conversation-message.assistant{
  margin-inline-start:auto!important;
  margin-inline-end:0!important;
}
html[dir="rtl"] .conversation-message.user{
  margin-inline-start:0!important;
  margin-inline-end:auto!important;
}

/* Accessibility and motion ----------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .gateway-listen,
  .conversation-primary-action,
  .conversation-close,
  .voice-orb{
    transition:none!important;
    animation:none!important;
  }
}
@media (forced-colors:active){
  .conversation-gateway,
  .contact-card,
  .conversation-shell,
  .conversation-header,
  .conversation-log,
  .conversation-compose{
    border:1px solid CanvasText!important;
  }
}


/* ==========================================================================
   V7.0.2 — THEMEOK ONE-SCREEN LOCK
   Compact gateway: one complete visual scene below the fixed header.
   ========================================================================== */
.contact{
  padding-block:clamp(.75rem,1.35vw,1.25rem)!important;
}
.contact-grid{
  gap:clamp(1rem,1.6vw,1.5rem)!important;
}
.conversation-gateway{
  height:clamp(560px,calc(100svh - var(--header) - 1.5rem),720px)!important;
  min-height:560px!important;
  max-height:720px!important;
  grid-template-columns:minmax(310px,40%) minmax(0,60%)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:.7rem clamp(1.25rem,2.5vw,3rem)!important;
  padding:clamp(.85rem,1.5vw,1.35rem)!important;
}
.gateway-copy{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
  padding:0!important;
}
.gateway-copy .eyebrow{
  margin:0 0 .35rem!important;
  font-size:.72rem!important;
}
.gateway-copy h2{
  max-width:none!important;
  font-size:clamp(2.45rem,4.2vw,4.55rem)!important;
  line-height:.96!important;
  white-space:normal!important;
}
.gateway-copy .power-bridge-copy{
  margin:.55rem 0 0!important;
  max-width:68ch!important;
  font-size:clamp(.92rem,1.1vw,1.08rem)!important;
  line-height:1.45!important;
}
.gateway-stage{
  grid-column:1/-1!important;
  grid-row:2!important;
  grid-template-columns:minmax(310px,40%) minmax(0,60%)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:.7rem clamp(1.25rem,2.5vw,3rem)!important;
  min-height:0!important;
}
.gateway-avatar{
  min-height:0!important;
  height:100%!important;
  border-radius:48% 48% 22px 22px!important;
}
.gateway-avatar::before{
  inset:10px!important;
  border-radius:48% 48% 16px 16px!important;
}
.gateway-avatar img{
  min-height:0!important;
  object-position:50% 12%!important;
  mask-image:linear-gradient(#000 0 91%,rgba(0,0,0,.82) 96%,transparent 100%)!important;
}
.gateway-speech{
  grid-column:2!important;
  grid-row:1!important;
  min-height:88px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:.85rem!important;
  padding:.8rem 1rem!important;
}
.gateway-speech::before{
  top:32px!important;
}
.gateway-voice-trigger{
  width:62px!important;
  height:62px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 62px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  color:inherit!important;
  background:transparent!important;
  cursor:pointer!important;
}
.gateway-voice-trigger:focus-visible,
.gateway-message-trigger:focus-visible,
.gateway-project-chip:focus-visible{
  outline:3px solid rgba(255,244,232,.92)!important;
  outline-offset:3px!important;
}
.gateway-speech .fingerprint-motion{
  width:56px!important;
  height:56px!important;
  flex-basis:56px!important;
  box-shadow:0 0 0 6px rgba(207,85,54,.08),0 0 24px rgba(213,92,55,.28)!important;
}
.gateway-speech-copy{
  display:grid!important;
  gap:.18rem!important;
  min-width:0!important;
}
.gateway-speech-copy span{
  margin:0!important;
  color:var(--az7-terracotta)!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
}
.gateway-speech-copy strong{
  color:var(--az7-cream)!important;
  font-size:clamp(.95rem,1.1vw,1.08rem)!important;
  line-height:1.45!important;
}
.gateway-quickstart{
  grid-column:2!important;
  grid-row:2!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:.75rem!important;
  padding:.85rem!important;
  border:1px solid var(--az7-line)!important;
  border-radius:var(--az7-radius-lg)!important;
  background:linear-gradient(145deg,rgba(29,17,13,.9),rgba(53,29,21,.82))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 16px 42px rgba(0,0,0,.18)!important;
}
.gateway-message-trigger{
  width:100%!important;
  min-height:66px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:.9rem!important;
  padding:.75rem .8rem .75rem 1rem!important;
  border:1px solid rgba(225,126,82,.42)!important;
  border-radius:17px!important;
  color:#dbc8bc!important;
  background:rgba(18,11,8,.72)!important;
  text-align:start!important;
  cursor:pointer!important;
}
.gateway-send-icon{
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  color:#fff!important;
  font-size:1.25rem!important;
  background:linear-gradient(135deg,var(--az7-terracotta),var(--az7-copper-2))!important;
  box-shadow:0 9px 24px rgba(133,42,30,.34)!important;
}
.gateway-project-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:.55rem!important;
}
.gateway-project-chip{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:.42rem!important;
  padding:.48rem .72rem!important;
  border:1px solid rgba(219,116,77,.34)!important;
  border-radius:999px!important;
  color:#f3dfd2!important;
  background:rgba(28,17,13,.72)!important;
  font:inherit!important;
  font-size:.83rem!important;
  cursor:pointer!important;
}
.gateway-project-chip:hover{
  border-color:rgba(225,124,83,.74)!important;
  background:rgba(105,46,33,.48)!important;
}
.gateway-trust-strip{
  grid-column:1/-1!important;
  grid-row:3!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;
  min-height:64px!important;
  padding:.5rem .75rem!important;
  border-top:1px solid rgba(224,132,86,.22)!important;
  background:rgba(16,9,7,.24)!important;
}
.gateway-trust-item{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:.65rem!important;
  padding:.15rem .75rem!important;
  border-inline-end:1px solid rgba(224,132,86,.18)!important;
}
.gateway-trust-item:last-child{
  border-inline-end:0!important;
}
.gateway-trust-icon{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(226,135,90,.48)!important;
  border-radius:50%!important;
  color:var(--az7-terracotta)!important;
  font-weight:900!important;
}
.gateway-trust-item > span:last-child{
  min-width:0!important;
  display:grid!important;
  gap:.08rem!important;
}
.gateway-trust-item strong{
  overflow:hidden!important;
  color:#f7e6dc!important;
  font-size:.82rem!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.gateway-trust-item small{
  overflow:hidden!important;
  color:#bfa99d!important;
  font-size:.7rem!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

@media (min-width:701px) and (max-width:1100px){
  .conversation-gateway{
    height:clamp(560px,calc(100svh - var(--header) - 1rem),660px)!important;
    min-height:560px!important;
    grid-template-columns:minmax(250px,36%) minmax(0,64%)!important;
  }
  .gateway-stage{
    grid-template-columns:minmax(250px,36%) minmax(0,64%)!important;
  }
  .gateway-copy h2{
    font-size:clamp(2.25rem,5vw,3.4rem)!important;
  }
  .gateway-project-chip{
    font-size:.76rem!important;
    padding:.42rem .58rem!important;
  }
  .gateway-trust-item{
    padding-inline:.45rem!important;
    gap:.45rem!important;
  }
  .gateway-trust-item small{
    display:none!important;
  }
}

@media (max-width:700px){
  .contact{
    padding-block:.55rem 1.5rem!important;
  }
  .conversation-gateway{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    gap:.6rem!important;
    padding:.65rem!important;
    border-radius:22px!important;
  }
  .gateway-copy{
    order:1!important;
    padding:.15rem .2rem!important;
  }
  .gateway-copy .eyebrow{
    margin-bottom:.25rem!important;
    font-size:.65rem!important;
  }
  .gateway-copy h2{
    max-width:15ch!important;
    font-size:clamp(1.75rem,9vw,2.3rem)!important;
    line-height:1!important;
  }
  .gateway-copy .power-bridge-copy{
    margin-top:.4rem!important;
    font-size:.83rem!important;
    line-height:1.38!important;
  }
  .gateway-stage{
    order:2!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:clamp(145px,38vw,185px) auto auto!important;
    gap:.55rem!important;
  }
  .gateway-avatar{
    grid-column:1!important;
    grid-row:1!important;
    min-height:0!important;
    height:100%!important;
    border-radius:24px!important;
  }
  .gateway-avatar::before{
    border-radius:18px!important;
  }
  .gateway-avatar img{
    object-position:50% 17%!important;
    mask-image:linear-gradient(#000 0 88%,rgba(0,0,0,.84) 95%,transparent 100%)!important;
  }
  .gateway-speech{
    grid-column:1!important;
    grid-row:2!important;
    min-height:72px!important;
    gap:.6rem!important;
    padding:.6rem .7rem!important;
    border-radius:16px!important;
  }
  .gateway-speech::before{
    display:none!important;
  }
  .gateway-voice-trigger{
    width:50px!important;
    height:50px!important;
  }
  .gateway-speech .fingerprint-motion{
    width:46px!important;
    height:46px!important;
    flex-basis:46px!important;
  }
  .gateway-speech-copy strong{
    font-size:.84rem!important;
    line-height:1.35!important;
  }
  .gateway-quickstart{
    grid-column:1!important;
    grid-row:3!important;
    gap:.55rem!important;
    padding:.6rem!important;
    border-radius:17px!important;
  }
  .gateway-message-trigger{
    min-height:56px!important;
    padding:.5rem .55rem .5rem .75rem!important;
    font-size:.82rem!important;
  }
  .gateway-send-icon{
    width:42px!important;
    height:42px!important;
  }
  .gateway-project-chips{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:.45rem!important;
  }
  .gateway-project-chip{
    min-width:0!important;
    justify-content:center!important;
    padding:.42rem .4rem!important;
    font-size:.72rem!important;
  }
  .gateway-trust-strip{
    order:3!important;
    grid-template-columns:1fr 1fr!important;
    min-height:0!important;
    gap:.35rem!important;
    padding:.45rem!important;
    border:1px solid rgba(224,132,86,.18)!important;
    border-radius:16px!important;
  }
  .gateway-trust-item{
    min-height:40px!important;
    gap:.4rem!important;
    padding:.25rem!important;
    border-inline-end:0!important;
  }
  .gateway-trust-icon{
    width:28px!important;
    height:28px!important;
    font-size:.75rem!important;
  }
  .gateway-trust-item strong{
    font-size:.7rem!important;
  }
  .gateway-trust-item small{
    display:none!important;
  }
}

@media (max-width:700px) and (max-height:700px){
  .gateway-copy .power-bridge-copy{
    display:none!important;
  }
  .gateway-stage{
    grid-template-rows:128px auto auto!important;
  }
  .gateway-project-chip{
    min-height:34px!important;
  }
  .gateway-trust-strip{
    display:none!important;
  }
}

@media (min-width:1600px){
  .conversation-gateway{
    height:clamp(680px,calc(100svh - var(--header) - 2rem),900px)!important;
    min-height:680px!important;
    max-height:900px!important;
    grid-template-columns:minmax(430px,40%) minmax(0,60%)!important;
  }
  .gateway-stage{
    grid-template-columns:minmax(430px,40%) minmax(0,60%)!important;
  }
  .gateway-copy h2{
    font-size:clamp(4rem,4.6vw,5.8rem)!important;
  }
  .gateway-speech{
    min-height:104px!important;
  }
  .gateway-quickstart{
    padding:1rem!important;
  }
  .gateway-trust-strip{
    min-height:76px!important;
  }
  .gateway-trust-item strong{
    font-size:.95rem!important;
  }
  .gateway-trust-item small{
    font-size:.78rem!important;
  }
}

html[dir="rtl"] .gateway-message-trigger{
  padding:.75rem 1rem .75rem .8rem!important;
}

/* V7.0.2 layout correction — avatar spans the full compact scene */
@media (min-width:701px){
  .conversation-gateway{
    grid-template-rows:minmax(0,1fr) auto!important;
  }
  .gateway-copy{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    z-index:4!important;
    padding:.25rem 0 0!important;
  }
  .gateway-stage{
    grid-column:1/-1!important;
    grid-row:1!important;
    align-self:stretch!important;
    height:100%!important;
    max-height:100%!important;
    overflow:hidden!important;
    grid-template-rows:clamp(132px,19vh,166px) auto minmax(0,1fr)!important;
  }
  .gateway-avatar{
    grid-row:1/4!important;
    height:100%!important;
    max-height:100%!important;
  }
  .gateway-speech{
    grid-row:2!important;
    align-self:start!important;
  }
  .gateway-quickstart{
    grid-row:3!important;
    align-self:center!important;
  }
  .gateway-trust-strip{
    grid-row:2!important;
  }
}

@media (max-width:700px) and (max-height:760px){
  .gateway-trust-strip{
    display:none!important;
  }
}

/* Compact fingerprint stays inside its trigger */
.gateway-speech .fingerprint-motion{
  overflow:hidden!important;
}
.gateway-speech .fingerprint-motion i{
  border-width:2px!important;
}
.gateway-speech .fingerprint-motion i:nth-child(1){width:42px!important;height:50px!important}
.gateway-speech .fingerprint-motion i:nth-child(2){width:32px!important;height:40px!important}
.gateway-speech .fingerprint-motion i:nth-child(3){width:22px!important;height:30px!important}
.gateway-speech .fingerprint-motion i:nth-child(4){width:12px!important;height:20px!important}


/* ========================================================================
   V7.0.2 — GEMINI DARIJA VOICE & RTL RECOVERY LOCK
   ======================================================================== */
html[dir="rtl"] .conversation-shell,
html[dir="rtl"] .conversation-shell textarea,
html[dir="rtl"] .conversation-shell input,
html[dir="rtl"] .gateway-copy,
html[dir="rtl"] .gateway-speech,
html[dir="rtl"] .gateway-quickstart{
  direction:rtl!important;
  text-align:right!important;
}
html[dir="rtl"] .conversation-title-row h2,
html[dir="rtl"] .conversation-lede{
  max-width:none!important;
  text-align:right!important;
  letter-spacing:0!important;
  text-wrap:pretty!important;
}
html[dir="rtl"] .conversation-log{
  direction:rtl!important;
  text-align:right!important;
  isolation:isolate!important;
}
html[dir="rtl"] .conversation-message{
  width:fit-content!important;
  max-width:92%!important;
  overflow-wrap:anywhere!important;
  unicode-bidi:plaintext!important;
}
html[dir="rtl"] .conversation-compose{
  grid-template-columns:minmax(150px,190px) minmax(0,1fr)!important;
}
html[dir="rtl"] .conversation-compose textarea{
  grid-column:2!important;
  unicode-bidi:plaintext!important;
}
html[dir="rtl"] .conversation-primary-action{
  grid-column:1!important;
}
html[dir="rtl"] .conversation-state{
  justify-content:flex-start!important;
  unicode-bidi:plaintext!important;
}
html[dir="rtl"] .avatar-copy{
  text-align:right!important;
}
html[dir="rtl"] .gateway-project-chips{
  justify-content:flex-start!important;
}

@media (min-width:701px){
  .conversation-shell{
    grid-template-rows:auto auto minmax(96px,1fr) 46px 70px auto auto auto!important;
    gap:.48rem clamp(1.1rem,2.1vw,2.5rem)!important;
    padding:clamp(.75rem,1.55vw,1.45rem)!important;
  }
  .conversation-title-row h2{
    font-size:clamp(2.15rem,4.05vw,4.25rem)!important;
    line-height:1.02!important;
  }
  html[dir="rtl"] .conversation-title-row h2{
    font-size:clamp(2.25rem,3.8vw,4rem)!important;
    line-height:1.08!important;
  }
  .conversation-lede{
    font-size:clamp(.88rem,1.05vw,1.05rem)!important;
    line-height:1.45!important;
  }
  .conversation-log{
    min-height:96px!important;
    max-height:24dvh!important;
    padding:.72rem!important;
  }
  .conversation-message{
    margin:.3rem 0!important;
    padding:.72rem .88rem!important;
    line-height:1.45!important;
  }
  .conversation-state{
    min-height:46px!important;
    padding:.55rem .8rem!important;
  }
  .voice-orb{
    width:68px!important;
    height:68px!important;
  }
  .conversation-compose{
    padding:.58rem!important;
    gap:.58rem!important;
  }
  .conversation-compose textarea{
    min-height:76px!important;
    max-height:126px!important;
    padding:.78rem!important;
  }
  .conversation-resume-actions .btn{
    min-height:52px!important;
  }
  html[dir="rtl"] .gateway-copy h2{
    max-width:12ch!important;
    font-size:clamp(2.45rem,4vw,4.2rem)!important;
    line-height:1.06!important;
    letter-spacing:0!important;
  }
  html[dir="rtl"] .gateway-copy .power-bridge-copy{
    max-width:54ch!important;
    font-size:clamp(.88rem,1.1vw,1.05rem)!important;
    line-height:1.55!important;
  }
  html[dir="rtl"] .gateway-stage{
    grid-template-rows:clamp(150px,21vh,188px) auto minmax(0,1fr)!important;
  }
}

@media (max-width:700px){
  .conversation-shell{
    gap:.5rem!important;
    padding:max(.5rem,env(safe-area-inset-top)) .5rem max(.65rem,env(safe-area-inset-bottom))!important;
  }
  .conversation-header{
    flex-basis:clamp(138px,42vw,180px)!important;
    height:clamp(138px,42vw,180px)!important;
    min-height:138px!important;
    border-radius:26px!important;
  }
  .conversation-header::after{border-radius:20px!important;inset:8px!important}
  .conversation-avatar-image{object-position:50% 17%!important}
  .avatar-copy{
    inset:auto .65rem .65rem!important;
    padding:.58rem .68rem!important;
    border-radius:13px!important;
  }
  .avatar-copy strong{font-size:.92rem!important}
  .avatar-copy span{font-size:.78rem!important}
  .avatar-copy small{font-size:.68rem!important}
  .conversation-title-row h2{
    font-size:clamp(1.65rem,8.2vw,2.25rem)!important;
    line-height:1.08!important;
  }
  html[dir="rtl"] .conversation-title-row h2{
    font-size:clamp(1.75rem,8vw,2.3rem)!important;
  }
  .conversation-lede{
    font-size:.82rem!important;
    line-height:1.42!important;
  }
  .conversation-log{
    min-height:88px!important;
    max-height:22dvh!important;
    padding:.58rem!important;
  }
  .conversation-message{
    max-width:96%!important;
    padding:.62rem .7rem!important;
    margin:.25rem 0!important;
    font-size:.9rem!important;
  }
  .conversation-state{
    min-height:42px!important;
    padding:.5rem .68rem!important;
    font-size:.84rem!important;
  }
  .voice-orb{
    flex-basis:58px!important;
    width:58px!important;
    height:58px!important;
  }
  .conversation-compose textarea{
    min-height:82px!important;
    max-height:24dvh!important;
  }
  .conversation-primary-action{min-height:54px!important}
  html[dir="rtl"] .conversation-compose{
    grid-template-columns:1fr!important;
  }
  html[dir="rtl"] .conversation-compose textarea,
  html[dir="rtl"] .conversation-primary-action{
    grid-column:1!important;
  }
  html[dir="rtl"] .gateway-copy h2{
    max-width:13ch!important;
    font-size:clamp(1.8rem,9vw,2.35rem)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
  }
  html[dir="rtl"] .gateway-copy .power-bridge-copy{
    font-size:.82rem!important;
    line-height:1.45!important;
  }
}

@media (max-height:520px) and (orientation:landscape){
  html[dir="rtl"] .conversation-shell{
    grid-template-columns:minmax(0,66%) minmax(180px,34%)!important;
  }
  html[dir="rtl"] .conversation-header{grid-column:2!important}
  html[dir="rtl"] .conversation-title-row,
  html[dir="rtl"] .conversation-log,
  html[dir="rtl"] .conversation-state,
  html[dir="rtl"] .conversation-compose,
  html[dir="rtl"] .conversation-resume-actions{grid-column:1!important}
  html[dir="rtl"] .conversation-compose,
  html[dir="rtl"] .conversation-resume-actions{
    inset:auto calc(34% + 1.35rem) .55rem .55rem!important;
  }
}


/* ========================================================================
   V7.1.1 — FINAL VOICE UI PIXEL LOCK
   Desktop/TV: clean two-column scene, assistant card over the lower portrait,
   one-line title, larger touch-first project editor. Mobile flow preserved.
   ======================================================================== */
.gateway-message-editor{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:stretch;
  gap:.65rem;
  width:100%;
  min-width:0;
}
.gateway-message-editor textarea{
  width:100%;
  min-width:0;
  min-height:118px;
  max-height:230px;
  margin:0;
  padding:1rem 1.1rem;
  border:1px solid rgba(225,126,82,.42);
  border-radius:18px;
  outline:none;
  resize:none;
  overflow-y:auto;
  color:var(--az7-cream);
  background:rgba(18,11,8,.76);
  font:inherit;
  font-size:clamp(.92rem,1.05vw,1.05rem);
  line-height:1.55;
  caret-color:var(--az7-terracotta);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.gateway-message-editor textarea::placeholder{color:#c5b0a4;opacity:.9}
.gateway-message-editor textarea:focus{
  border-color:rgba(230,132,90,.88);
  background:rgba(24,14,11,.9);
  box-shadow:0 0 0 4px rgba(207,85,54,.13),inset 0 1px 0 rgba(255,255,255,.04);
}
.gateway-message-editor .gateway-message-trigger{
  width:58px!important;
  min-width:58px!important;
  min-height:100%!important;
  display:grid!important;
  place-items:center!important;
  padding:.45rem!important;
  border:0!important;
  border-radius:17px!important;
  background:linear-gradient(155deg,rgba(205,76,62,.98),rgba(163,49,42,.98))!important;
  box-shadow:0 12px 30px rgba(112,28,25,.34),inset 0 1px rgba(255,255,255,.18)!important;
}
.gateway-message-editor .gateway-send-icon{
  width:46px!important;height:46px!important;
  box-shadow:none!important;background:transparent!important;
}

@media (min-width:701px){
  .conversation-gateway{
    display:grid!important;
    grid-template-columns:minmax(320px,40%) minmax(0,60%)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    column-gap:clamp(1.35rem,2.6vw,3.25rem)!important;
    row-gap:.7rem!important;
  }
  .gateway-stage{display:contents!important}
  html[dir="ltr"] .gateway-copy,
  html[dir="ltr"] .gateway-quickstart{grid-column:2!important}
  html[dir="ltr"] .gateway-avatar,
  html[dir="ltr"] .gateway-speech{grid-column:1!important}
  html[dir="rtl"] .gateway-copy,
  html[dir="rtl"] .gateway-quickstart{grid-column:2!important}
  html[dir="rtl"] .gateway-avatar,
  html[dir="rtl"] .gateway-speech{grid-column:1!important}
  .gateway-copy{
    grid-row:1!important;
    align-self:end!important;
    z-index:5!important;
    padding:.1rem 0 0!important;
  }
  .gateway-copy .eyebrow{margin:0 0 .3rem!important}
  .gateway-copy h2{
    max-width:none!important;
    margin:.2rem 0 .45rem!important;
    font-size:clamp(2.2rem,3.35vw,4.25rem)!important;
    line-height:1!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
    text-wrap:nowrap!important;
  }
  html[lang="en"] .gateway-copy h2{font-size:clamp(2rem,3.05vw,3.9rem)!important}
  html[dir="rtl"] .gateway-copy h2{
    max-width:none!important;
    font-size:clamp(2.15rem,3.2vw,4rem)!important;
    line-height:1.08!important;
    white-space:nowrap!important;
  }
  .gateway-copy .power-bridge-copy{
    max-width:68ch!important;
    margin:.25rem 0 0!important;
    font-size:clamp(.9rem,1.02vw,1.04rem)!important;
    line-height:1.45!important;
  }
  .gateway-avatar{
    grid-row:1/3!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    z-index:1!important;
  }
  .gateway-avatar img{object-position:50% 16%!important}
  .gateway-speech{
    grid-row:1/3!important;
    align-self:end!important;
    justify-self:center!important;
    width:min(calc(100% - 2rem),430px)!important;
    min-height:82px!important;
    margin:0 1rem 1rem!important;
    padding:.72rem .85rem!important;
    z-index:7!important;
    border-radius:18px!important;
    background:linear-gradient(145deg,rgba(38,19,15,.94),rgba(62,30,23,.92))!important;
    box-shadow:0 18px 42px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.04)!important;
    backdrop-filter:blur(16px) saturate(1.1)!important;
  }
  .gateway-speech::before{display:none!important}
  .gateway-speech .gateway-voice-trigger{width:54px!important;height:54px!important;min-width:54px!important}
  .gateway-speech .fingerprint-motion{width:48px!important;height:48px!important;flex-basis:48px!important}
  .gateway-speech-copy strong{font-size:clamp(.88rem,.96vw,1rem)!important;line-height:1.4!important}
  .gateway-quickstart{
    grid-row:2!important;
    align-self:stretch!important;
    justify-content:center!important;
    min-height:0!important;
    padding:clamp(.8rem,1.15vw,1.05rem)!important;
    gap:.7rem!important;
  }
  .gateway-message-editor textarea{min-height:clamp(122px,16vh,178px)!important}
  .gateway-project-chips{margin-top:.05rem!important}
  .gateway-trust-strip{grid-column:1/-1!important;grid-row:3!important}
}

@media (min-width:1600px){
  .gateway-copy h2{font-size:clamp(3.4rem,3.65vw,5rem)!important}
  html[lang="en"] .gateway-copy h2{font-size:clamp(3rem,3.25vw,4.55rem)!important}
  html[dir="rtl"] .gateway-copy h2{font-size:clamp(3.1rem,3.4vw,4.7rem)!important}
  .gateway-message-editor textarea{min-height:clamp(150px,18vh,210px)!important;font-size:1.08rem!important}
  .gateway-speech{width:min(calc(100% - 2.5rem),500px)!important;margin-bottom:1.25rem!important}
}

@media (min-width:701px) and (max-width:1180px){
  .conversation-gateway{grid-template-columns:minmax(260px,36%) minmax(0,64%)!important}
  .gateway-copy h2{font-size:clamp(2rem,4vw,3.15rem)!important;white-space:normal!important;text-wrap:balance!important}
  html[lang="en"] .gateway-copy h2{font-size:clamp(1.9rem,3.65vw,2.9rem)!important}
  html[dir="rtl"] .gateway-copy h2{font-size:clamp(2rem,3.8vw,3rem)!important;white-space:normal!important}
  .gateway-message-editor textarea{min-height:112px!important;max-height:170px!important}
  .gateway-speech{width:calc(100% - 1rem)!important;margin:.5rem!important}
}

@media (max-width:700px){
  .gateway-message-editor{grid-template-columns:minmax(0,1fr) 50px!important;gap:.45rem!important}
  .gateway-message-editor textarea{
    min-height:76px!important;
    max-height:150px!important;
    padding:.72rem .78rem!important;
    border-radius:15px!important;
    font-size:.84rem!important;
    line-height:1.42!important;
  }
  .gateway-message-editor .gateway-message-trigger{width:50px!important;min-width:50px!important;border-radius:15px!important}
  .gateway-message-editor .gateway-send-icon{width:38px!important;height:38px!important;font-size:1rem!important}
}

html[dir="rtl"] .gateway-message-editor textarea{
  direction:rtl!important;
  text-align:right!important;
  unicode-bidi:plaintext!important;
}
html[dir="rtl"] .gateway-message-editor .gateway-send-icon{transform:scaleX(-1)}

/* V7.1.1 cognitive editor expansion — use the complete available panel height. */
@media (min-width:701px){
  .gateway-quickstart{
    display:grid!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    align-content:stretch!important;
    justify-content:stretch!important;
  }
  .gateway-message-editor{height:100%!important;min-height:0!important}
  .gateway-message-editor textarea{
    height:100%!important;
    min-height:100%!important;
    max-height:none!important;
  }
}
