#chat-root{
  --ink: #072c4b;
  --ink-soft: #666666;
  --muted: #6b7e8a;
  --line: rgba(20, 24, 34, 0.09);
  --line-strong: rgba(20, 24, 34, 0.15);
  --paper: #ffffff;
  --canvas: #ffffff;
  --night: #090a0e;
  --night-soft: #11131a;
  --electric: #016bb2;
  --electric-deep: #055485;
  --cyan: #016bb2;
  --violet: #016bb2;
  --success: #4ce0ad;
  --coda-message-font-size: 14px;
  --shadow-soft: 0 18px 60px rgba(28, 34, 50, 0.08);
  --shadow-float: 0 28px 80px rgba(15, 18, 29, 0.13);
}

#chat-root *{ box-sizing: border-box; }

#chat-root,
#chat-root{ height: 100%; }

#chat-root{
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body), "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#chat-root button,
#chat-root textarea{ font: inherit; }

#chat-root button{ color: inherit; }

#chat-root button,
#chat-root a{ -webkit-tap-highlight-color: transparent; }

#chat-root button:focus-visible,
#chat-root textarea:focus-visible,
#chat-root a:focus-visible{
  outline: 2px solid rgba(111, 124, 255, 0.75);
  outline-offset: 3px;
}

#chat-root .app-shell{
  min-height: 100%;
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 79% 8%, rgba(105, 225, 239, 0.13), transparent 30%),
    radial-gradient(circle at 14% 90%, rgba(136, 116, 255, 0.1), transparent 30%),
    linear-gradient(145deg, #f3f5f9 0%, #e9edf4 100%);
}

#chat-root .ambient{
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

#chat-root .ambient-one{
  width: 420px;
  height: 420px;
  right: -130px;
  top: -170px;
  background: radial-gradient(circle, rgba(104, 227, 242, 0.16), transparent 68%);
}

#chat-root .ambient-two{
  width: 520px;
  height: 520px;
  left: 13%;
  bottom: -390px;
  background: radial-gradient(circle, rgba(131, 112, 255, 0.12), transparent 68%);
}

#chat-root .desktop-sidebar{
  width: 254px;
  flex: 0 0 254px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

#chat-root .sidebar-shell{
  width: 254px;
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 20px 15px 16px;
  color: #f9faff;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 25px;
  background:
    radial-gradient(circle at 28% -5%, rgba(111, 124, 255, 0.19), transparent 34%),
    linear-gradient(165deg, #11131a 0%, #08090d 72%);
  box-shadow: 0 28px 70px rgba(12, 15, 25, 0.22);
}

#chat-root .sidebar-shell::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 42px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

#chat-root .brand-row{
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}

#chat-root .pilot-mark{
  display: block;
  overflow: visible;
}

#chat-root .pilot-mark-stem,
#chat-root .pilot-mark-loop,
#chat-root .pilot-mark-signal{
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#chat-root .pilot-mark-stem,
#chat-root .pilot-mark-loop{ stroke-width: 4.6; }
#chat-root .pilot-mark-signal{ stroke-width: 2.4; opacity: 0.55; }
#chat-root .pilot-mark-core{ fill: var(--cyan); }

#chat-root .brand-mark{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 8px;
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(111,124,255,.92), rgba(113,79,226,.74));
  box-shadow: 0 12px 28px rgba(87, 93, 235, 0.28), inset 0 1px rgba(255,255,255,.24);
}

#chat-root .brand-copy{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#chat-root .brand-copy strong{
  font: 750 16px/1.1 var(--font-display), sans-serif;
  letter-spacing: -0.035em;
}

#chat-root .brand-copy span{
  margin-top: 4px;
  color: #818696;
  font-size: 9.5px;
  letter-spacing: 0.045em;
}

#chat-root .new-chat-button{
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  margin: 28px 0 27px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

#chat-root .new-chat-button:hover{
  transform: translateY(-1px);
  border-color: rgba(132,143,255,.52);
  background: rgba(111,124,255,.17);
}

#chat-root .history-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  padding: 0 8px 11px;
  color: #606575;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

#chat-root .history-heading span{
  display: flex;
  align-items: center;
  gap: 7px;
}

#chat-root .history-heading button{
  padding: 4px;
  border: 0;
  border-radius: 7px;
  color: #606575;
  background: transparent;
  cursor: pointer;
}

#chat-root .history-heading button:hover{
  color: #daddea;
  background: rgba(255,255,255,.06);
}

#chat-root .history-list{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding-right: 2px;
}

#chat-root .history-list::-webkit-scrollbar{ width: 4px; }
#chat-root .history-list::-webkit-scrollbar-thumb{ border-radius: 99px; background: rgba(255,255,255,.12); }

#chat-root .empty-history{
  margin: 40px 24px;
  color: #5d6270;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

#chat-root .empty-history svg{ opacity: .55; }

#chat-root .history-item{
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 8px 10px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #888d9c;
  background: transparent;
  text-align: left;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

#chat-root .history-item > span:nth-child(2){
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-root .history-item:hover{
  color: #e7e9f0;
  background: rgba(255,255,255,.045);
}

#chat-root .history-item.active{
  color: white;
  border-color: rgba(125,136,255,.18);
  background: linear-gradient(90deg, rgba(111,124,255,.18), rgba(111,124,255,.05));
}

#chat-root .history-delete{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  opacity: 0;
}

#chat-root .history-item:hover .history-delete,
#chat-root .history-item.active .history-delete{ opacity: .68; }
#chat-root .history-delete:hover{ opacity: 1 !important; color: #ff9ca7; background: rgba(255,255,255,.06); }

#chat-root .sidebar-footer{
  display: grid;
  grid-template-columns: 9px 1fr 18px;
  gap: 9px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 15px 10px 2px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #5f6574;
}

#chat-root .sidebar-footer .status-dot,
#chat-root .live-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(76,224,173,.09), 0 0 16px rgba(76,224,173,.42);
}

#chat-root .sidebar-footer div:not(.status-dot){
  display: flex;
  flex-direction: column;
}

#chat-root .sidebar-footer strong{ color: #a8adba; font-size: 10px; }
#chat-root .sidebar-footer span{ margin-top: 3px; font-size: 9px; }

#chat-root .workspace{
  min-width: 0;
  flex: 1;
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 25px;
  background: rgba(249, 250, 253, 0.77);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(17,20,28,.025);
  backdrop-filter: blur(28px) saturate(125%);
}

#chat-root .workspace::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(21,25,35,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,25,35,.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 34%, black 0%, transparent 70%);
}

#chat-root .topbar{
  height: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  backdrop-filter: blur(20px);
}

#chat-root .topbar-left{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

#chat-root .topbar-left > div{
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#chat-root .conversation-kicker{
  margin-bottom: 3px;
  color: #9a9fac;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

#chat-root .topbar-left strong{
  max-width: min(56vw, 560px);
  overflow: hidden;
  color: #20232c;
  font: 720 13px/1.3 var(--font-display), sans-serif;
  letter-spacing: -.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-root .icon-button{
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #686e7c;
  background: rgba(255,255,255,.62);
  box-shadow: 0 4px 16px rgba(20,25,38,.04);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

#chat-root .icon-button:hover{
  color: var(--electric-deep);
  border-color: rgba(111,124,255,.28);
  background: white;
}

#chat-root .ai-badge{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(25,29,39,.08);
  border-radius: 999px;
  color: #626875;
  background: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

#chat-root .chat-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  scroll-behavior: auto;
  overflow-anchor: none;
}

#chat-root .chat-scroll::-webkit-scrollbar{ width: 7px; }
#chat-root .chat-scroll::-webkit-scrollbar-thumb{ border: 2px solid transparent; border-radius: 99px; background: rgba(42,48,62,.16); background-clip: padding-box; }

#chat-root .welcome-panel{
  width: min(900px, calc(100% - 56px));
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 46px 0 58px;
  text-align: center;
}

#chat-root .welcome-orbit{
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 20px;
}

#chat-root .welcome-orbit::before{
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 23px;
  background: linear-gradient(145deg, #171a23, #090a0e);
  box-shadow: 0 18px 42px rgba(25,28,43,.16), inset 0 1px rgba(255,255,255,.12);
  transform: rotate(8deg);
}

#chat-root .welcome-logo{
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 2;
  padding: 8px;
  color: white;
  filter: drop-shadow(0 7px 18px rgba(91,103,255,.22));
}

#chat-root .orbit-ring{
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(111,124,255,.16);
  border-radius: 27px;
  transform: rotate(-8deg);
}

#chat-root .orbit-ring-one::before,
#chat-root .orbit-ring-two::before{
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(99,230,244,.68);
}

#chat-root .orbit-ring-one::before{ right: 10px; top: 2px; }
#chat-root .orbit-ring-two{
  inset: -7px;
  opacity: .52;
  border-style: dashed;
  animation: orbit 28s linear infinite;
}
#chat-root .orbit-ring-two::before{ left: 5px; bottom: 14px; }

@keyframes orbit{ to { transform: rotate(352deg); } }

#chat-root .eyebrow{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #777d8b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .17em;
}

#chat-root .eyebrow .live-dot{ width: 6px; height: 6px; }

#chat-root .welcome-panel h1{
  max-width: 640px;
  margin: 0;
  color: #161820;
  font: 680 clamp(34px, 4.1vw, 50px)/1.04 var(--font-display), sans-serif;
  letter-spacing: -.05em;
}

#chat-root .welcome-copy{
  max-width: 590px;
  margin: 11px auto 24px;
  color: #6f7582;
  font-size: 13px;
  line-height: 1.72;
}

#chat-root .prompt-grid{
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

#chat-root .prompt-card{
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(21,25,35,.085);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.6);
  box-shadow: 0 8px 30px rgba(23,28,42,.045), inset 0 1px rgba(255,255,255,.86);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 210ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#chat-root .prompt-card::before{
  display: none;
}

#chat-root .prompt-card:hover{
  transform: translateY(-2px);
  border-color: rgba(111,124,255,.28);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(29,35,54,.08), inset 0 1px white;
}

#chat-root .prompt-icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111,124,255,.13);
  border-radius: 9px;
  color: var(--electric-deep);
  background: linear-gradient(145deg, rgba(111,124,255,.13), rgba(99,230,244,.08));
}

#chat-root .prompt-label{
  color: #4f5563;
  font-size: 11px;
  font-weight: 650;
}

#chat-root .message-list{
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 38px;
}

#chat-root .message-row{
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 34px;
}

#chat-root .message-row.user{ flex-direction: row-reverse; }

#chat-root .message-avatar{
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #20232d, #0b0c10);
  box-shadow: 0 10px 25px rgba(26,30,43,.16), inset 0 1px rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 800;
}

#chat-root .message-avatar .pilot-mark{ width: 25px; height: 25px; padding: 2px; }
#chat-root .message-avatar .pilot-mark-stem,
#chat-root .message-avatar .pilot-mark-loop{ stroke-width: 5.2; }

#chat-root .message-row.user .message-avatar{
  color: #616775;
  border-color: rgba(20,24,34,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 18px rgba(29,34,48,.05);
}

#chat-root .message-column{ max-width: min(860px, calc(100% - 52px)); }
#chat-root .message-row.assistant .message-column{ width: min(860px, calc(100% - 52px)); }

#chat-root .message-row.user .message-column{
  max-width: min(680px, 76%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chat-root .message-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 3px 8px;
}

#chat-root .message-meta strong{
  color: #363b47;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
}

#chat-root .message-meta span{ color: #a0a5b0; font-size: 9px; }

#chat-root .message-bubble{
  overflow-wrap: anywhere;
  padding: 20px 22px;
  border: 1px solid rgba(21,25,35,.085);
  border-radius: 6px 19px 19px 19px;
  color: #343946;
  background: rgba(255,255,255,.78);
  box-shadow: 0 13px 42px rgba(27,33,48,.065), inset 0 1px rgba(255,255,255,.9);
  font-size: var(--coda-message-font-size);
  line-height: 1.7;
  backdrop-filter: blur(15px);
}

#chat-root .message-row.user .message-bubble{
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px 6px 18px 18px;
  color: white;
  background: linear-gradient(135deg, #222631, #111319 67%);
  box-shadow: 0 14px 32px rgba(22,26,38,.15), inset 0 1px rgba(255,255,255,.12);
}

#chat-root .message-bubble > :first-child{ margin-top: 0; }
#chat-root .message-bubble > :last-child{ margin-bottom: 0; }
#chat-root .message-bubble p{ margin: 0 0 11px; }

#chat-root .message-bubble h1,
#chat-root .message-bubble h2,
#chat-root .message-bubble h3,
#chat-root .message-bubble h4{
  margin: 21px 0 9px;
  color: #1f2430;
  font-family: var(--font-display), "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.28;
  letter-spacing: -.025em;
}

#chat-root .message-bubble h1{ font-size: 22px; }
#chat-root .message-bubble h2{ font-size: 18px; }
#chat-root .message-bubble h3{ font-size: 15px; }
#chat-root .message-bubble h4{ font-size: 14px; }

#chat-root .message-bubble ul,
#chat-root .message-bubble ol{ margin: 11px 0; padding-left: 23px; }
#chat-root .message-bubble li{ margin: 6px 0; padding-left: 2px; }

#chat-root .message-bubble a{
  color: #5361e8;
  text-decoration-color: rgba(83,97,232,.35);
  text-underline-offset: 3px;
}

#chat-root .message-bubble a:hover{ text-decoration-color: currentColor; }

#chat-root .message-bubble code{
  padding: 2px 6px;
  border: 1px solid rgba(20,24,34,.07);
  border-radius: 6px;
  color: #4d55bd;
  background: rgba(103,113,231,.08);
  font-size: .9em;
}

#chat-root .message-bubble pre{
  max-width: 100%;
  overflow-x: auto;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #eaf0ff;
  background: #11131a;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}

#chat-root .message-bubble pre code{ padding: 0; border: 0; color: inherit; background: transparent; }

#chat-root .message-bubble table{
  width: 100%;
  display: block;
  overflow-x: auto;
  margin: 14px 0;
  border-collapse: separate;
  border-spacing: 0;
}

#chat-root .message-bubble th,
#chat-root .message-bubble td{
  padding: 9px 11px;
  border-right: 1px solid rgba(20,24,34,.08);
  border-bottom: 1px solid rgba(20,24,34,.08);
  text-align: left;
}

#chat-root .message-bubble th{ color: #343a47; background: rgba(238,241,246,.9); }

#chat-root .message-bubble img{
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto;
  border: 1px solid rgba(20,24,34,.09);
  border-radius: 16px;
  background: white;
  box-shadow: 0 13px 35px rgba(27,33,48,.1);
}

#chat-root .message-bubble blockquote{
  margin: 15px 0;
  padding: 2px 0 2px 15px;
  border-left: 3px solid rgba(111,124,255,.55);
  color: #666d7b;
}

#chat-root .message-bubble hr{
  height: 1px;
  margin: 21px 0;
  border: 0;
  background: rgba(20,24,34,.09);
}

#chat-root .message-bubble .rich-action-button{
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(20,24,34,.14);
  border-radius: 10px;
  color: #4f5fe0;
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 7px rgba(20,24,34,.055);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

#chat-root .message-bubble .rich-action-button:hover{
  transform: translateY(-1px);
  border-color: rgba(111,124,255,.42);
  background: #fff;
  box-shadow: 0 5px 14px rgba(58,67,159,.12);
}

#chat-root .stream-cursor{
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  color: #7c8290;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .09em;
}

#chat-root .stream-cursor-inline{
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(20,24,34,.07);
}

#chat-root .stream-orbit{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 24px;
}

#chat-root .stream-orbit::before,
#chat-root .stream-orbit-ring{
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px solid rgba(111,124,255,.16);
  border-top-color: #6f7cff;
  border-right-color: #63e6f4;
  border-radius: 50%;
  animation: stream-spin .85s linear infinite;
}

#chat-root .stream-orbit-ring{
  inset: 5px;
  border-width: 1px;
  border-top-color: #9c7cff;
  border-right-color: transparent;
  animation-direction: reverse;
  animation-duration: .58s;
}

#chat-root .stream-orbit-core{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #63e6f4;
  box-shadow: 0 0 9px rgba(99,230,244,.9), 0 0 18px rgba(111,124,255,.45);
  animation: stream-core 1.15s ease-in-out infinite;
}

@keyframes stream-spin{ to { transform: rotate(360deg); } }

@keyframes stream-core{
  0%, 100% { opacity: .48; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.16); }
}

#chat-root .suggestion-list{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

#chat-root .suggestion-list button{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(20,24,34,.1);
  border-radius: 999px;
  color: #636977;
  background: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

#chat-root .suggestion-list button:hover{ border-color: rgba(111,124,255,.3); color: var(--electric-deep); background: white; }

#chat-root .feedback-row{
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 3px 0;
  color: #959aa6;
  font-size: 9.5px;
}

#chat-root .feedback-row button{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9298a4;
  background: transparent;
  cursor: pointer;
}

#chat-root .feedback-row button:hover{ color: #59606d; background: rgba(255,255,255,.72); }
#chat-root .feedback-row button.selected.positive{ color: #158260; border-color: #cbe9df; background: #eaf8f3; }
#chat-root .feedback-row button.selected.negative{ color: #c34f5a; border-color: #f0d4d7; background: #fff1f2; }
#chat-root .feedback-sent{ display: flex; align-items: center; gap: 3px; margin-left: 4px; color: #528c76; }

#chat-root .composer-wrap{
  position: relative;
  z-index: 4;
  padding: 14px 25px 15px;
  border-top: 1px solid rgba(20,24,34,.06);
  background: linear-gradient(to bottom, rgba(248,250,253,.57), rgba(248,250,253,.91));
  backdrop-filter: blur(22px);
}

#chat-root .composer{
  width: min(900px, 100%);
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  position: relative;
  margin: 0 auto;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(19,23,32,.12);
  border-radius: 19px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 45px rgba(24,29,43,.1), inset 0 1px white;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  backdrop-filter: blur(22px);
}

#chat-root .composer-glow{
  position: absolute;
  z-index: -1;
  inset: -1px;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(111,124,255,.32), rgba(99,230,244,.27));
  filter: blur(12px);
  transition: opacity 180ms ease;
}

#chat-root .composer:focus-within{
  transform: translateY(-1px);
  border-color: rgba(111,124,255,.4);
  box-shadow: 0 17px 50px rgba(24,29,43,.13), 0 0 0 4px rgba(111,124,255,.07), inset 0 1px white;
}

#chat-root .composer:focus-within .composer-glow{ opacity: .45; }

#chat-root .composer textarea{
  flex: 1;
  height: 40px;
  max-height: 120px;
  padding: 9px 0;
  resize: none;
  border: 0;
  outline: 0;
  color: #252934;
  background: transparent;
  font-size: 13.5px;
  line-height: 22px;
}

#chat-root .composer textarea::placeholder{ color: #a0a5b1; }

#chat-root .composer button{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #20232d, #0d0e13);
  box-shadow: 0 8px 20px rgba(22,25,37,.18), inset 0 1px rgba(255,255,255,.13);
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

#chat-root .composer button:hover:not(:disabled){
  transform: translateY(-2px);
  background: linear-gradient(145deg, #6977ff, #745be2);
  box-shadow: 0 10px 25px rgba(91,98,225,.28);
}

#chat-root .composer button:disabled{
  color: #b5bac4;
  border-color: transparent;
  background: #eef0f4;
  box-shadow: none;
  cursor: not-allowed;
}

#chat-root .composer-wrap > p{
  margin: 7px auto 0;
  color: #a5aab5;
  font-size: 8.5px;
  text-align: center;
}

#chat-root .error-banner{
  width: min(900px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 9px;
  padding: 9px 12px;
  border: 1px solid #f1cfd4;
  border-radius: 11px;
  color: #a53d49;
  background: rgba(255,242,243,.9);
  font-size: 11px;
}

#chat-root .error-banner > span{
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #d9606c;
  font-weight: 800;
}

#chat-root .mobile-only{ display: none; }

#chat-root .mobile-sidebar-layer,
#chat-root .modal-layer{
  position: absolute;
  inset: 0;
  z-index: 50;
}

#chat-root .sidebar-backdrop,
#chat-root .modal-backdrop{
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8,10,15,.48);
  backdrop-filter: blur(8px);
  cursor: default;
}

#chat-root .mobile-sidebar-layer .sidebar-shell{
  height: calc(100% - 24px);
  position: relative;
  z-index: 1;
  margin: 12px;
  box-shadow: 24px 0 65px rgba(0,0,0,.25);
}

#chat-root .modal-layer{
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 20px;
}

#chat-root .modal-card{
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(24px);
}

#chat-root .modal-icon{
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111,124,255,.12);
  border-radius: 13px;
  color: var(--electric-deep);
  background: rgba(111,124,255,.1);
}

#chat-root .modal-icon.danger{ color: #c04b58; border-color: #f0d4d7; background: #fff0f2; }

#chat-root .modal-card h2{
  margin: 18px 0 7px;
  color: #242834;
  font: 720 20px/1.3 var(--font-display), sans-serif;
  letter-spacing: -.03em;
}

#chat-root .modal-card > p{ margin: 0; color: #747b89; font-size: 13px; line-height: 1.6; }

#chat-root .modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

#chat-root .modal-actions button{
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .secondary{ border: 1px solid rgba(20,24,34,.11); color: #676e7c; background: white; }
#chat-root .danger-button{ border: 0; color: white; background: #d55360; }
#chat-root .primary-button{ border: 0; color: white; background: linear-gradient(135deg, #6f7cff, #735be1); }

#chat-root .modal-close{
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 17px;
  top: 17px;
  border: 0;
  border-radius: 9px;
  color: #818796;
  background: #f1f3f7;
  cursor: pointer;
}

#chat-root .feedback-modal textarea{
  width: 100%;
  height: 115px;
  margin-top: 18px;
  padding: 13px;
  resize: none;
  outline: 0;
  border: 1px solid rgba(20,24,34,.11);
  border-radius: 12px;
  color: #2d3340;
  background: #f7f8fa;
  font-size: 13px;
}

#chat-root .feedback-modal textarea:focus{
  border-color: rgba(111,124,255,.38);
  background: white;
  box-shadow: 0 0 0 4px rgba(111,124,255,.07);
}

@container coda (max-width: 900px){
  #chat-root .desktop-sidebar,
#chat-root .desktop-only{ display: none; }

  #chat-root .mobile-only{ display: grid; }

  #chat-root .app-shell{ padding: 0; }

  #chat-root .workspace{
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  #chat-root .topbar{
    height: 66px;
    flex-basis: 66px;
    padding: 0 16px;
  }

  #chat-root .ai-badge{ display: none; }

  #chat-root .welcome-panel{
    width: min(640px, calc(100% - 30px));
    justify-content: center;
    padding: 48px 0;
  }

  #chat-root .welcome-panel h1{ font-size: clamp(34px, 8vw, 44px); }

  #chat-root .prompt-grid{
    max-width: 540px;
  }

  #chat-root .prompt-card{
    min-height: 40px;
    padding: 6px 11px 6px 7px;
  }

  #chat-root .prompt-icon{ width: 27px; height: 27px; }

  #chat-root .message-list{
    width: calc(100% - 30px);
    padding-top: 28px;
  }

  #chat-root .composer-wrap{ padding: 10px 13px 12px; }
}

@container coda (max-width: 540px){
  #chat-root .sidebar-shell{ width: min(300px, calc(100% - 24px)); }
  #chat-root .topbar-left strong{ max-width: 65vw; }
  #chat-root .conversation-kicker{ font-size: 7.5px; }

  #chat-root .welcome-panel{ padding: 34px 0; }
  #chat-root .welcome-orbit{ width: 70px; height: 70px; margin-bottom: 18px; }
  #chat-root .welcome-orbit::before{ inset: 6px; border-radius: 21px; }
  #chat-root .welcome-logo{ width: 40px; height: 40px; }
  #chat-root .orbit-ring{ inset: -1px; border-radius: 24px; }
  #chat-root .orbit-ring-two{ inset: -6px; }

  #chat-root .welcome-panel h1{ font-size: 34px; }
  #chat-root .welcome-copy{ margin: 9px auto 20px; font-size: 12px; }
  #chat-root .prompt-grid{ width: 100%; flex-direction: column; }
  #chat-root .prompt-card{ width: 100%; min-height: 40px; white-space: normal; }

  #chat-root .message-row{ gap: 9px; margin-bottom: 26px; }
  #chat-root .message-avatar{ width: 33px; height: 33px; flex-basis: 33px; border-radius: 11px; }
  #chat-root .message-avatar .pilot-mark{ width: 22px; height: 22px; }
  #chat-root .message-column,
#chat-root .message-row.assistant .message-column{ width: calc(100% - 42px); max-width: calc(100% - 42px); }
  #chat-root .message-row.user .message-column{ width: auto; max-width: 86%; }
  #chat-root .message-row.user .message-avatar{ display: none; }
  #chat-root .message-bubble{ padding: 16px; border-radius: 5px 16px 16px 16px; font-size: 13px; }
  #chat-root .message-row.user .message-bubble{ padding: 12px 15px; }

  #chat-root .composer{ min-height: 54px; padding: 6px 6px 6px 15px; border-radius: 17px; }
  #chat-root .composer textarea{ height: 40px; font-size: 13px; }
  #chat-root .composer button{ width: 40px; height: 40px; flex-basis: 40px; }
  #chat-root .composer-wrap > p{ display: none; }

  #chat-root .modal-card{ padding: 24px; }
}

@media (prefers-reduced-motion: reduce){
  #chat-root *,
#chat-root *::before,
#chat-root *::after{
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Retained CoDA and Condair identity, embellished by the intelligence system. */
#chat-root .coda-logo-art,
#chat-root .coda-symbol-art,
#chat-root .condair-topbar-logo{
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#chat-root .brand-row{
  min-height: 58px;
  gap: 9px;
}

#chat-root .brand-logo-frame{
  width: 130px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 130px;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(124, 151, 255, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 74% 18%, rgba(85, 223, 241, .16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(236, 244, 252, .92));
  box-shadow: inset 0 1px #fff, 0 15px 34px rgba(0, 0, 0, .18);
}

#chat-root .brand-logo-frame::after{
  content: "";
  position: absolute;
  inset: 7px 13px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(118, 92, 255, .18), rgba(85, 223, 241, .13));
  filter: blur(12px);
}

#chat-root .brand-logo{
  width: 116px;
  filter: drop-shadow(0 5px 12px rgba(45, 139, 213, .25));
}

#chat-root .brand-copy{
  flex: 1;
}

#chat-root .brand-copy span{
  max-width: 76px;
  margin: 0;
  color: #8b91a3;
  font-size: 7.5px;
  font-weight: 760;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#chat-root .topbar-coda-logo{
  width: 84px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 9px rgba(37, 129, 199, .13));
}

#chat-root .topbar-conversation-copy{
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#chat-root .condair-topbar-logo{
  width: 82px;
  flex: 0 0 auto;
}

#chat-root .welcome-orbit{
  width: 270px;
  height: 122px;
  margin-bottom: 24px;
}

#chat-root .welcome-orbit::before{
  inset: 18px 20px;
  border-radius: 33px;
  transform: rotate(1.5deg);
  background:
    radial-gradient(circle at 72% 24%, rgba(85, 223, 241, .25), transparent 26%),
    radial-gradient(circle at 24% 80%, rgba(118, 92, 255, .18), transparent 34%),
    linear-gradient(145deg, #171a23, #08090d 74%);
}

#chat-root .welcome-orbit::after{
  inset: -9px 16px;
  border-radius: 46px;
}

#chat-root .welcome-logo-stage{
  width: 222px;
  height: 90px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid rgba(131, 170, 211, .23);
  border-radius: 27px;
  background:
    radial-gradient(circle at 72% 18%, rgba(104, 201, 255, .13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 246, 252, .92));
  box-shadow: inset 0 1px #fff, 0 12px 28px rgba(13, 50, 81, .14);
}

#chat-root .welcome-logo{
  width: 194px;
  height: auto;
  padding: 0;
  filter:
    drop-shadow(0 7px 16px rgba(44, 144, 219, .34))
    drop-shadow(0 0 17px rgba(118, 92, 255, .16));
}

#chat-root .welcome-orbit .orbit-ring{
  inset: 5px 10px;
  border-radius: 43px;
}

#chat-root .welcome-orbit .orbit-ring-two{
  inset: -5px 1px;
}

#chat-root .message-avatar{
  overflow: hidden;
}

#chat-root .message-row.assistant .message-avatar{
  border: 1px solid rgba(45, 135, 205, .16);
  background: #fff;
  box-shadow: 0 10px 25px rgba(27, 79, 124, .12), inset 0 1px rgba(255, 255, 255, .9);
}

#chat-root .message-avatar .coda-symbol-art{
  width: 31px;
  height: 31px;
  object-fit: contain;
}

@container coda (max-width: 900px){
  #chat-root .topbar-conversation-copy{
    display: none;
  }

  #chat-root .topbar-left{
    gap: 9px;
  }

  #chat-root .topbar-coda-logo{
    width: 78px;
  }

  #chat-root .condair-topbar-logo{
    width: 76px;
  }
}

@container coda (max-width: 540px){
  #chat-root .topbar{
    gap: 8px;
  }

  #chat-root .topbar-coda-logo{
    width: 69px;
  }

  #chat-root .condair-topbar-logo{
    width: 67px;
  }

  #chat-root .welcome-orbit{
    width: 238px;
    height: 106px;
    margin-bottom: 20px;
  }

  #chat-root .welcome-orbit::before{
    inset: 16px 20px;
    border-radius: 29px;
  }

  #chat-root .welcome-orbit::after{
    inset: -7px 12px;
  }

  #chat-root .welcome-logo-stage{
    width: 196px;
    height: 79px;
    border-radius: 24px;
  }

  #chat-root .welcome-logo{
    width: 171px;
    height: auto;
  }

  #chat-root .welcome-orbit .orbit-ring{
    inset: 4px 9px;
    border-radius: 38px;
  }

  #chat-root .welcome-orbit .orbit-ring-two{
    inset: -4px 1px;
  }
}

/* CoDA precision-intelligence adaptations */

#chat-root .topbar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

#chat-root .market-select{
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0 8px 0 9px;
  border: 1px solid rgba(20,22,31,.08);
  border-radius: 10px;
  color: #767a87;
  background: rgba(255,255,255,.54);
  transition:
    transform 180ms var(--precision-ease),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

#chat-root .market-select:hover,
#chat-root .market-select:focus-within{
  transform: translateY(-1px);
  border-color: rgba(118,92,255,.29);
  color: #5b47c8;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(53,45,102,.07);
}

#chat-root .market-select select{
  max-width: 150px;
  appearance: none;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: 9px;
  font-weight: 720;
  cursor: pointer;
}

#chat-root .market-select > svg:last-child{
  position: absolute;
  right: 8px;
  pointer-events: none;
}

#chat-root .user-name-field{
  width: min(370px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 auto 17px;
  text-align: left;
}

#chat-root .user-name-field > span{
  padding-left: 3px;
  color: #626674;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#chat-root .user-name-field > div{
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(20,22,31,.11);
  border-radius: 13px;
  color: #858997;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px #fff, 0 10px 28px rgba(32,35,49,.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--precision-ease);
}

#chat-root .user-name-field > div:focus-within{
  transform: translateY(-1px);
  border-color: rgba(4,133,208,.45);
  color: #176695;
  box-shadow: 0 0 0 4px rgba(4,133,208,.07), 0 13px 30px rgba(32,35,49,.08);
}

#chat-root .user-name-field input{
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: #292b35;
  background: transparent;
  font-size: 12px;
}

#chat-root .user-name-field input::placeholder{
  color: #a5a9b4;
}

#chat-root .user-name-field > small{
  padding-left: 3px;
  color: #979ba7;
  font-size: 8.5px;
}

#chat-root .history-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: 1px;
}

#chat-root .history-section{
  min-width: 0;
}

#chat-root .history-heading{
  margin-bottom: 7px;
}

#chat-root .history-entry{
  min-width: 0;
  position: relative;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#chat-root .history-entry:hover,
#chat-root .history-entry:focus-within{
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.035);
}

#chat-root .history-entry.active{
  border-color: rgba(151,116,255,.2);
  background: linear-gradient(90deg, rgba(118,92,255,.18), transparent);
  box-shadow: inset 2px 0 #8065ff;
}

#chat-root .history-entry .history-item{
  min-height: 41px;
  grid-template-columns: 17px minmax(0, 1fr) 24px;
  padding-right: 64px;
  border: 0;
  background: transparent;
}

#chat-root .history-entry .history-item:hover,
#chat-root .history-entry.active .history-item{
  background: transparent;
  box-shadow: none;
}

#chat-root .history-item small{
  color: #606675;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

#chat-root .history-actions{
  display: flex;
  align-items: center;
  gap: 1px;
  position: absolute;
  right: 5px;
  top: 50%;
  z-index: 2;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 170ms ease;
}

#chat-root .history-entry:hover .history-actions,
#chat-root .history-entry:focus-within .history-actions,
#chat-root .history-entry.active .history-actions{
  opacity: 1;
}

#chat-root .history-actions button{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #686d7a;
  background: transparent;
  cursor: pointer;
}

#chat-root .history-actions button:hover,
#chat-root .history-actions button:focus-visible{
  color: #e8e9f1;
  background: rgba(255,255,255,.08);
}

#chat-root .history-actions button.selected{
  color: #a98aff;
}

#chat-root .brand-copy span{
  max-width: 150px;
}

#chat-root .welcome-panel{
  justify-content: center;
}

#chat-root .welcome-copy{
  max-width: 540px;
}

#chat-root .prompt-grid{
  min-height: 82px;
  align-items: stretch;
}

#chat-root .prompt-card{
  height: 82px;
  min-height: 82px;
  grid-template-columns: auto minmax(0, 1fr) 14px;
  align-content: center;
  gap: 9px;
  padding: 10px 11px;
  border-color: rgba(20,22,31,.075);
  border-radius: 18px;
  background: rgba(255,255,255,.31);
  box-shadow: inset 0 1px rgba(255,255,255,.72);
  transition:
    opacity 110ms ease,
    filter 110ms ease,
    transform 180ms var(--precision-ease),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

#chat-root .prompt-card:hover{
  transform: translateY(-2px);
  border-color: rgba(118,92,255,.25);
  background: rgba(255,255,255,.79);
  box-shadow: 0 12px 28px rgba(34,31,66,.06), inset 0 1px white;
}

#chat-root .prompt-card:disabled{
  cursor: default;
}

#chat-root .prompt-card.is-out{
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-4px);
}

#chat-root .prompt-card.is-in{
  animation: coda-idea-enter 110ms var(--precision-ease) both;
}

@keyframes coda-idea-enter{
  from { opacity: 0; filter: blur(3px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

#chat-root .prompt-product{
  align-self: start;
  margin-top: 1px;
  padding: 4px 6px;
  border: 1px solid rgba(118,92,255,.12);
  border-radius: 999px;
  color: #6953d2;
  background: linear-gradient(135deg, rgba(118,92,255,.09), rgba(85,223,241,.055));
  font-size: 7px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

#chat-root .prompt-label{
  align-self: center;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 10.5px;
  line-height: 1.34;
}

#chat-root .prompt-arrow{
  align-self: center;
}

#chat-root .message-bubble .highlight,
#chat-root .message-bubble .highlighted,
#chat-root .message-bubble .short-answer,
#chat-root .message-bubble .additional-detail,
#chat-root .message-bubble .pro-tip,
#chat-root .message-bubble .related-questions{
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(118,92,255,.1);
  border-left: 3px solid rgba(118,92,255,.58);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(90deg, rgba(118,92,255,.06), rgba(255,255,255,.2));
}

#chat-root .message-bubble .pro-tip{
  border-left-color: rgba(85,223,241,.75);
  background: linear-gradient(90deg, rgba(85,223,241,.07), rgba(255,255,255,.2));
}

#chat-root .message-bubble table{
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
}

#chat-root .composer textarea{
  max-height: 150px;
  overflow-y: auto;
  resize: none;
}

#chat-root .shuffle-ideas:disabled{
  opacity: .45;
  cursor: default;
}

@container coda (max-width: 1120px) and (min-width: 901px){
  #chat-root .prompt-grid{
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #chat-root .idea-console-head{
    width: 100%;
  }

  #chat-root .prompt-card{
    height: 88px;
    min-height: 88px;
    padding: 9px;
  }

  #chat-root .prompt-product{
    display: none;
  }

  #chat-root .prompt-card{
    grid-template-columns: minmax(0, 1fr) 13px;
  }
}

@container coda (max-width: 900px){
  #chat-root .prompt-grid{
    min-height: 84px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  #chat-root .prompt-card{
    width: min(82vw, 330px);
    min-width: min(82vw, 330px);
    height: 78px;
    min-height: 78px;
  }
}

@container coda (max-width: 640px){
  #chat-root .topbar-actions{
    gap: 5px;
  }

  #chat-root .market-select{
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  #chat-root .market-select select{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
  }

  #chat-root .market-select > svg:last-child{
    display: none;
  }

  #chat-root .ai-badge{
    padding-inline: 8px;
  }

  #chat-root .prompt-product{
    font-size: 6.5px;
  }
}

@container coda (max-width: 390px){
  #chat-root .ai-badge{
    width: 31px;
    height: 31px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  #chat-root .live-dot{
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  #chat-root .prompt-card.is-in{
    animation: none !important;
  }

  #chat-root .prompt-card{
    transition-duration: 0ms !important;
  }
}

/* Precision intelligence interface */
#chat-root{
  --ink: #151620;
  --ink-soft: #555967;
  --muted: #8b8f9c;
  --line: rgba(16, 18, 27, 0.085);
  --line-strong: rgba(16, 18, 27, 0.16);
  --paper: #fbfbfd;
  --canvas: #07080c;
  --night: #07080c;
  --night-soft: #0e1016;
  --electric: #765cff;
  --electric-deep: #6547ed;
  --cyan: #55dff1;
  --violet: #a47cff;
  --success: #4ee6b1;
  --precision-ease: cubic-bezier(.22, 1, .36, 1);
}

#chat-root{
  background: #07080c;
}

#chat-root .app-shell{
  gap: 0;
  padding: 0;
  background:
    radial-gradient(circle at 19% 12%, rgba(118, 92, 255, .16), transparent 24%),
    radial-gradient(circle at 97% 88%, rgba(85, 223, 241, .08), transparent 24%),
    linear-gradient(145deg, #0a0b10, #06070a 68%);
}

#chat-root .app-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 20% 42%, black, transparent 68%);
}

#chat-root .ambient-one{
  width: 660px;
  height: 660px;
  top: -420px;
  right: 12%;
  background: radial-gradient(circle, rgba(102, 79, 238, .21), transparent 66%);
  filter: blur(12px);
}

#chat-root .ambient-two{
  width: 580px;
  height: 580px;
  left: 30%;
  bottom: -480px;
  background: radial-gradient(circle, rgba(62, 204, 225, .14), transparent 66%);
  filter: blur(20px);
}

#chat-root .desktop-sidebar{
  width: 272px;
  flex-basis: 272px;
}

#chat-root .sidebar-shell{
  width: 272px;
  height: 100%;
  padding: 27px 18px 21px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#chat-root .sidebar-shell::after{
  opacity: .28;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.035));
  background-size: 100% 100%;
  mask-image: linear-gradient(to bottom, black, black 82%, transparent);
}

#chat-root .brand-row{
  min-height: 50px;
  padding: 0 6px;
}

#chat-root .pilot-mark-orbit{
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  opacity: .24;
}

#chat-root .brand-mark{
  width: 43px;
  height: 43px;
  flex-basis: 43px;
  padding: 7px;
  border-color: rgba(255,255,255,.13);
  border-radius: 13px;
  background:
    radial-gradient(circle at 65% 28%, rgba(85,223,241,.2), transparent 28%),
    linear-gradient(145deg, rgba(132,103,255,.95), rgba(76,51,178,.7));
  box-shadow: 0 14px 36px rgba(102,74,238,.28), inset 0 1px rgba(255,255,255,.25);
}

#chat-root .brand-copy strong{
  font-size: 16px;
  letter-spacing: -.045em;
}

#chat-root .brand-copy span{
  color: #747987;
  font-size: 8.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#chat-root .new-chat-button{
  min-height: 43px;
  margin: 30px 3px 28px;
  border-color: rgba(164,124,255,.2);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(118,92,255,.17), rgba(85,223,241,.045));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 26px rgba(0,0,0,.12);
  letter-spacing: -.01em;
}

#chat-root .new-chat-button:hover{
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(164,124,255,.47);
  background: linear-gradient(90deg, rgba(118,92,255,.27), rgba(85,223,241,.08));
  box-shadow: 0 14px 30px rgba(77,52,181,.18), inset 0 1px rgba(255,255,255,.09);
}

#chat-root .history-heading{
  color: #555b69;
}

#chat-root .history-item{
  min-height: 41px;
  color: #7a7f8e;
}

#chat-root .history-item:hover{
  color: #f1f2f6;
  background: rgba(255,255,255,.04);
}

#chat-root .history-item.active{
  border-color: rgba(151,116,255,.2);
  background: linear-gradient(90deg, rgba(118,92,255,.18), transparent);
  box-shadow: inset 2px 0 #8065ff;
}

#chat-root .sidebar-footer{
  margin: 12px 4px 0;
  padding: 17px 6px 2px;
  border-color: rgba(255,255,255,.06);
}

#chat-root .sidebar-footer strong{ color: #b3b6c1; }
#chat-root .sidebar-footer span{ color: #5f6472; }
#chat-root .sidebar-footer > svg{ color: #656b79; }

#chat-root .status-dot,
#chat-root .live-dot{
  animation: status-breathe 3.4s ease-in-out infinite;
}

@keyframes status-breathe{
  0%, 100% { opacity: .68; box-shadow: 0 0 0 3px rgba(78,230,177,.06), 0 0 11px rgba(78,230,177,.22); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(78,230,177,.09), 0 0 18px rgba(78,230,177,.4); }
}

#chat-root .workspace{
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(circle at 51% 26%, rgba(255,255,255,.9), transparent 37%),
    linear-gradient(150deg, #fafafd 0%, #f1f2f7 100%);
  box-shadow: -28px 0 90px rgba(0,0,0,.26), inset 1px 0 rgba(255,255,255,.82);
  backdrop-filter: none;
}

#chat-root .workspace::before{
  opacity: .56;
  background-image:
    linear-gradient(rgba(25,27,37,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,27,37,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 37%, black, transparent 61%);
}

#chat-root .topbar{
  height: 67px;
  flex-basis: 67px;
  padding: 0 24px;
  border-color: rgba(17,19,28,.065);
  background: rgba(248,249,252,.62);
  backdrop-filter: blur(24px) saturate(120%);
}

#chat-root .conversation-kicker{
  margin-bottom: 4px;
  color: #a1a4af;
  font-size: 7.5px;
  letter-spacing: .18em;
}

#chat-root .topbar-left strong{
  color: #262832;
  font-size: 12px;
  letter-spacing: -.02em;
}

#chat-root .icon-button{
  width: 35px;
  height: 35px;
  border-color: rgba(19,21,30,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.48);
  box-shadow: none;
  transition: transform 180ms var(--precision-ease), color 180ms ease, border-color 180ms ease, background 180ms ease;
}

#chat-root .icon-button:hover{
  transform: translateX(1px);
  color: var(--electric-deep);
  border-color: rgba(118,92,255,.27);
  background: rgba(255,255,255,.9);
}

#chat-root .ai-badge{
  padding: 7px 11px;
  border-color: rgba(20,22,31,.075);
  color: #737783;
  background: rgba(255,255,255,.52);
  font-size: 8px;
  letter-spacing: .14em;
}

#chat-root .welcome-panel{
  width: min(1000px, calc(100% - 54px));
  padding: 32px 0 38px;
}

#chat-root .welcome-orbit{
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
}

#chat-root .welcome-orbit::before{
  inset: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 68% 27%, rgba(85,223,241,.27), transparent 27%),
    linear-gradient(145deg, #171922, #090a0f 72%);
  box-shadow:
    0 24px 54px rgba(20,20,32,.2),
    0 0 34px rgba(118,92,255,.14),
    inset 0 1px rgba(255,255,255,.16);
}

#chat-root .welcome-orbit::after{
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 42px;
  pointer-events: none;
  opacity: .62;
  background: radial-gradient(circle, rgba(118,92,255,.12), rgba(85,223,241,.035) 42%, transparent 68%);
  filter: blur(4px);
  animation: welcome-halo 3.2s ease-in-out infinite;
}

#chat-root .welcome-logo{
  width: 55px;
  height: 55px;
  padding: 8px;
  filter: drop-shadow(0 8px 22px rgba(118,92,255,.34));
}

#chat-root .orbit-ring{
  inset: 4px;
  border-width: 1.5px;
  border-color: rgba(118,92,255,.39);
  border-radius: 36px;
  box-shadow: inset 0 0 18px rgba(118,92,255,.05), 0 0 16px rgba(118,92,255,.08);
}

#chat-root .orbit-ring-one{
  border-top-color: rgba(164,124,255,.82);
  border-right-color: rgba(85,223,241,.32);
  animation: welcome-orbit-cw 10s linear infinite;
}

#chat-root .orbit-ring-two{
  inset: -6px;
  opacity: .76;
  border-width: 1px;
  border-color: rgba(85,223,241,.34);
  border-left-color: rgba(164,124,255,.52);
  animation: welcome-orbit-ccw 15s linear infinite;
}

 #chat-root .orbit-ring-one::before,
#chat-root .orbit-ring-two::before{
  width: 7px;
  height: 7px;
  box-shadow: 0 0 9px currentColor, 0 0 22px rgba(85,223,241,.72);
}

#chat-root .orbit-ring-one::before{
  background: #a98aff;
}

#chat-root .orbit-ring-two::before{
  background: #62e9f7;
}

@keyframes welcome-orbit-cw{
  from { transform: rotate(-8deg); }
  to { transform: rotate(352deg); }
}

@keyframes welcome-orbit-ccw{
  from { transform: rotate(-8deg); }
  to { transform: rotate(-368deg); }
}

@keyframes welcome-halo{
  0%, 100% { opacity: .42; transform: scale(.94); }
  50% { opacity: .74; transform: scale(1.06); }
}

#chat-root .welcome-panel h1{
  font-weight: 690;
  font-size: clamp(36px, 4.2vw, 54px);
  letter-spacing: -.064em;
}

#chat-root .welcome-copy{
  margin: 10px auto 27px;
  color: #757987;
  font-size: 13px;
  letter-spacing: -.01em;
}

#chat-root .idea-console{
  width: min(890px, 100%);
  position: relative;
}

#chat-root .idea-console-head{
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  color: #989ca8;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#chat-root .idea-console-head > span,
#chat-root .shuffle-ideas{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#chat-root .idea-console-head > span svg{ color: var(--electric); }

#chat-root .shuffle-ideas{
  min-height: 27px;
  padding: 3px 8px;
  border: 0;
  border-radius: 8px;
  color: #777b88;
  background: transparent;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--precision-ease);
}

#chat-root .shuffle-ideas:hover{
  transform: translateY(-1px);
  color: var(--electric-deep);
  background: rgba(118,92,255,.075);
}

#chat-root .shuffle-ideas:hover svg{ transform: rotate(20deg); }
#chat-root .shuffle-ideas svg{ transition: transform 240ms var(--precision-ease); }

#chat-root .prompt-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#chat-root .prompt-card{
  width: 100%;
  min-height: 55px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 14px;
  gap: 9px;
  padding: 8px 9px 8px 8px;
  border-color: rgba(20,22,31,.09);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.48);
  box-shadow: 0 10px 30px rgba(22,25,37,.035), inset 0 1px rgba(255,255,255,.85);
  white-space: normal;
  animation: idea-surface 220ms var(--precision-ease) both;
}

#chat-root .prompt-card:hover{
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(118,92,255,.28);
  background: rgba(255,255,255,.91);
  box-shadow: 0 15px 34px rgba(34,31,66,.075), inset 0 1px white;
}

#chat-root .prompt-card:active{ transform: translateY(-1px) scale(.995); }

@keyframes idea-surface{
  from { opacity: 0; filter: blur(4px); transform: translateY(5px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

#chat-root .prompt-icon{
  width: 29px;
  height: 29px;
  border-color: rgba(118,92,255,.11);
  border-radius: 9px;
  color: #765cff;
  background: linear-gradient(145deg, rgba(118,92,255,.105), rgba(85,223,241,.055));
}

#chat-root .prompt-label{
  align-self: center;
  color: #505461;
  font-size: 10.75px;
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: -.012em;
}

#chat-root .prompt-arrow{
  align-self: center;
  color: #b0b3bc;
  transition: transform 180ms var(--precision-ease), color 180ms ease;
}

#chat-root .prompt-card:hover .prompt-arrow{
  transform: translateX(2px);
  color: var(--electric);
}

#chat-root .message-list{
  width: min(calc(100% - 64px), max(930px, min(1600px, 82%)));
  padding: 42px 0 48px;
}

#chat-root .message-row{
  gap: 12px;
  margin-bottom: 37px;
  animation: message-arrive 280ms var(--precision-ease) both;
}

@keyframes message-arrive{
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#chat-root .message-avatar{
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1a1c25, #090a0e);
  box-shadow: 0 11px 25px rgba(21,23,34,.13), inset 0 1px rgba(255,255,255,.11);
}

#chat-root .message-avatar .pilot-mark{ width: 23px; height: 23px; }
#chat-root .message-row.user .message-avatar{ background: rgba(255,255,255,.6); }

#chat-root .message-meta{ margin-bottom: 7px; }
#chat-root .message-meta strong{ color: #393c47; font-size: 9.5px; }
#chat-root .message-meta span{ font-size: 8.5px; }

#chat-root .message-row.assistant .message-bubble{
  padding: 4px 7px 4px 3px;
  border: 0;
  border-radius: 0;
  color: #383c48;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.73;
  backdrop-filter: none;
}

#chat-root .message-row.user .message-bubble{
  padding: 13px 17px;
  border-radius: 16px 5px 16px 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(118,92,255,.18), transparent 34%),
    linear-gradient(135deg, #22242e, #101116 70%);
}

#chat-root .message-bubble h1,
#chat-root .message-bubble h2,
#chat-root .message-bubble h3,
#chat-root .message-bubble h4{
  position: relative;
  color: #1f212b;
  letter-spacing: -.035em;
}

#chat-root .message-bubble h2{
  margin-top: 27px;
  padding-left: 12px;
  font-size: 18px;
}

#chat-root .message-bubble h2::before{
  content: "";
  width: 3px;
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .18em;
  border-radius: 99px;
  background: linear-gradient(#765cff, #55dff1);
  box-shadow: 0 0 12px rgba(118,92,255,.22);
}

#chat-root .message-bubble h3{ margin-top: 23px; font-size: 15px; }
#chat-root .message-bubble li::marker{ color: #765cff; }

#chat-root .message-bubble blockquote{
  padding: 10px 14px;
  border: 1px solid rgba(118,92,255,.1);
  border-left: 3px solid rgba(118,92,255,.62);
  border-radius: 0 12px 12px 0;
  color: #5f6370;
  background: linear-gradient(90deg, rgba(118,92,255,.065), rgba(255,255,255,.2));
}

#chat-root .message-bubble table{
  border: 1px solid rgba(20,22,31,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.54);
}

#chat-root .message-bubble th{
  background: rgba(235,236,242,.84);
  font-size: 12px;
}

#chat-root .message-bubble img{
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(24,27,40,.1);
}

#chat-root .message-bubble .rich-action-button,
#chat-root .suggestion-list button{
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 3px 5px 3px 0;
  padding: 7px 11px;
  border: 1px solid rgba(118,92,255,.18);
  border-radius: 999px;
  color: #5d47cf;
  background: rgba(255,255,255,.7);
  box-shadow: 0 4px 13px rgba(32,34,49,.045);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.28;
  cursor: pointer;
  transition: transform 170ms var(--precision-ease), border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

#chat-root .message-bubble .rich-action-button:hover,
#chat-root .suggestion-list button:hover{
  transform: translateY(-2px);
  border-color: rgba(118,92,255,.4);
  color: #5135d7;
  background: white;
  box-shadow: 0 8px 20px rgba(73,53,164,.1);
}

#chat-root .suggestion-list{
  gap: 2px;
  margin-top: 13px;
}

#chat-root .stream-cursor{
  min-height: 54px;
  gap: 13px;
  padding: 7px 2px;
  color: #6e7280;
  text-transform: none;
  letter-spacing: 0;
}

#chat-root .stream-cursor-inline{
  margin-top: 17px;
  padding-top: 14px;
  border-top-color: rgba(20,22,31,.065);
}

#chat-root .stream-orbit{
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,92,255,.075), transparent 67%);
  filter: drop-shadow(0 0 11px rgba(118,92,255,.15));
}

#chat-root .stream-orbit::before{ display: none; }

#chat-root .stream-orbit-ring{
  position: absolute;
  border-style: solid;
  border-radius: 50%;
  animation-name: stream-spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

#chat-root .stream-orbit-outer{
  inset: 2px;
  border-width: 1.5px;
  border-color: rgba(118,92,255,.12);
  border-top-color: #8d6cff;
  border-right-color: #55dff1;
  animation-duration: 1.1s;
}

#chat-root .stream-orbit-inner{
  inset: 8px;
  border-width: 1px;
  border-color: transparent rgba(85,223,241,.75) rgba(118,92,255,.22) rgba(118,92,255,.72);
  animation-direction: reverse;
  animation-duration: .74s;
}

#chat-root .stream-scan{
  width: 30px;
  height: 1px;
  position: absolute;
  left: 4px;
  top: 19px;
  opacity: .58;
  background: linear-gradient(90deg, transparent, #55dff1, transparent);
  box-shadow: 0 0 6px rgba(85,223,241,.8);
  animation: stream-scan 1.7s ease-in-out infinite;
}

@keyframes stream-scan{
  0%, 100% { transform: translateY(-10px) scaleX(.62); opacity: .1; }
  50% { transform: translateY(10px) scaleX(1); opacity: .68; }
}

#chat-root .stream-orbit-core{
  width: 5px;
  height: 5px;
  position: relative;
  z-index: 2;
  background: #ecfbff;
  box-shadow: 0 0 8px #55dff1, 0 0 17px #765cff, 0 0 30px rgba(118,92,255,.45);
}

#chat-root .stream-label{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#chat-root .stream-label strong{
  color: #595d69;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#chat-root .stream-label small{
  color: #999da8;
  font-size: 9px;
  font-weight: 500;
}

#chat-root .feedback-row{ margin-top: 13px; }

#chat-root .composer-wrap{
  padding: 13px 25px calc(14px + env(safe-area-inset-bottom));
  border-color: rgba(20,22,31,.055);
  background: linear-gradient(to bottom, rgba(245,246,250,.5), rgba(244,245,249,.96) 38%);
  backdrop-filter: blur(24px);
}

#chat-root .composer{
  width: min(890px, 100%);
  min-height: 59px;
  padding: 8px 8px 8px 19px;
  border-color: rgba(20,22,31,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.83);
  box-shadow: 0 17px 48px rgba(27,29,42,.105), inset 0 1px white;
}

#chat-root .composer::before{
  content: "";
  width: 38%;
  height: 1px;
  position: absolute;
  left: 31%;
  top: -1px;
  opacity: .4;
  background: linear-gradient(90deg, transparent, #8065ff, #55dff1, transparent);
}

#chat-root .composer:focus-within{
  transform: translateY(-2px);
  border-color: rgba(118,92,255,.43);
  box-shadow: 0 20px 54px rgba(27,29,42,.135), 0 0 0 4px rgba(118,92,255,.065), inset 0 1px white;
}

#chat-root .composer:focus-within .composer-glow{ opacity: .6; }

#chat-root .composer textarea{
  color: #252732;
  font-size: 13.5px;
}

#chat-root .composer button{
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 22%, rgba(85,223,241,.15), transparent 31%),
    linear-gradient(145deg, #262832, #0c0d12);
}

#chat-root .composer button:hover:not(:disabled){
  transform: translateY(-2px) scale(1.025);
  background: linear-gradient(145deg, #8067ff, #6548de);
  box-shadow: 0 12px 28px rgba(91,72,211,.3);
}

#chat-root .composer-wrap > p{
  margin-top: 6px;
  color: #a6a9b3;
  font-size: 8px;
  letter-spacing: .01em;
}

#chat-root .mobile-sidebar-layer .sidebar-shell{
  margin: 0;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(118,92,255,.18), transparent 30%),
    #090a0e;
  box-shadow: 25px 0 70px rgba(0,0,0,.35);
  animation: sidebar-enter 260ms var(--precision-ease) both;
}

@keyframes sidebar-enter{
  from { transform: translateX(-22px); opacity: .4; }
  to { transform: translateX(0); opacity: 1; }
}

@container coda (max-width: 1120px) and (min-width: 901px){
  #chat-root .desktop-sidebar{ width: 240px; flex-basis: 240px; }
  #chat-root .sidebar-shell{ width: 240px; }
  #chat-root .welcome-panel{ width: min(780px, calc(100% - 42px)); }
  #chat-root .prompt-grid{ grid-template-columns: 1fr; width: min(560px, 100%); margin: 0 auto; }
  #chat-root .idea-console-head{ width: min(560px, 100%); margin: 0 auto; }
  #chat-root .prompt-card{ min-height: 45px; }
}

@container coda (max-width: 900px){
  #chat-root .workspace{
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #chat-root .welcome-panel{
    width: 100%;
    padding: 37px 15px 38px;
  }

  #chat-root .idea-console{
    width: calc(100% - 30px);
  }

  #chat-root .prompt-grid{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #chat-root .prompt-grid::-webkit-scrollbar{ display: none; }

  #chat-root .prompt-card{
    width: min(78vw, 300px);
    min-width: min(78vw, 300px);
    min-height: 52px;
    scroll-snap-align: start;
  }

  #chat-root .message-list{ width: calc(100% - 30px); }
  #chat-root .composer-wrap{ padding: 10px 13px calc(11px + env(safe-area-inset-bottom)); }
}

@container coda (max-width: 540px){
  #chat-root .topbar{ height: 62px; flex-basis: 62px; padding: 0 13px; }
  #chat-root .welcome-panel{ justify-content: center; padding-top: 29px; }
  #chat-root .welcome-orbit{ width: 92px; height: 92px; margin-bottom: 20px; }
  #chat-root .welcome-orbit::before{ inset: 16px; border-radius: 21px; }
  #chat-root .welcome-orbit::after{ inset: -9px; }
  #chat-root .welcome-logo{ width: 47px; height: 47px; }
  #chat-root .welcome-panel h1{ font-size: 36px; }
  #chat-root .welcome-copy{ margin-bottom: 22px; }
  #chat-root .idea-console-head{ padding-inline: 3px; }
  #chat-root .shuffle-ideas span{ display: none; }
  #chat-root .shuffle-ideas{ width: 29px; justify-content: center; padding: 0; }
  #chat-root .message-row.assistant .message-bubble{ padding-right: 0; font-size: 13.25px; }
  #chat-root .message-bubble h2{ font-size: 16px; }
  #chat-root .suggestion-list{
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }
  #chat-root .suggestion-list button{ flex: 0 0 auto; min-height: 38px; }
  #chat-root .composer{ padding-left: 15px; }
  #chat-root .composer-wrap > p{ display: none; }
  #chat-root .stream-label small{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  #chat-root .status-dot,
#chat-root .live-dot,
#chat-root .orbit-ring-one,
#chat-root .orbit-ring-two,
#chat-root .welcome-orbit::after,
#chat-root .stream-orbit-ring,
#chat-root .stream-scan,
#chat-root .stream-orbit-core,
#chat-root .prompt-card,
#chat-root .message-row,
#chat-root .mobile-sidebar-layer .sidebar-shell{
    animation: none !important;
  }
}

/* Final identity sizing after the inherited precision layer. */
#chat-root .brand-row{ min-height: 58px; gap: 9px; }
#chat-root .brand-copy span{
  max-width: 76px;
  margin: 0;
  color: #8b91a3;
  font-size: 7.5px;
  font-weight: 760;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#chat-root .welcome-orbit{ width: 270px; height: 122px; margin-bottom: 24px; }
#chat-root .welcome-orbit::before{
  inset: 18px 20px;
  border-radius: 33px;
  transform: rotate(1.5deg);
  background:
    radial-gradient(circle at 72% 24%, rgba(85, 223, 241, .25), transparent 26%),
    radial-gradient(circle at 24% 80%, rgba(118, 92, 255, .18), transparent 34%),
    linear-gradient(145deg, #171a23, #08090d 74%);
}
#chat-root .welcome-orbit::after{ inset: -9px 16px; border-radius: 46px; }
#chat-root .welcome-logo{ width: 194px; height: auto; padding: 0; }
#chat-root .welcome-orbit .orbit-ring{ inset: 5px 10px; border-radius: 43px; }
#chat-root .welcome-orbit .orbit-ring-two{ inset: -5px 1px; }
#chat-root .message-row.assistant .message-avatar{
  border: 1px solid rgba(45, 135, 205, .16);
  background: #fff;
  box-shadow: 0 10px 25px rgba(27, 79, 124, .12), inset 0 1px rgba(255, 255, 255, .9);
}
#chat-root .prompt-card{ grid-template-columns: auto minmax(0, 1fr) 14px; }
#chat-root .prompt-product{
  max-width: 74px;
  align-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

@container coda (max-width: 1120px) and (min-width: 901px){
  #chat-root .prompt-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #chat-root .prompt-card{ grid-template-columns: minmax(0, 1fr) 14px; }
}

@container coda (max-width: 900px){
  #chat-root .topbar-left > .topbar-conversation-copy{ display: none; }
  #chat-root .topbar-left{ gap: 9px; }
  #chat-root .topbar-coda-logo{ width: 78px; }
  #chat-root .condair-topbar-logo{ width: 76px; }
}

@container coda (max-width: 540px){
  #chat-root .topbar{ gap: 8px; }
  #chat-root .topbar-coda-logo{ width: 69px; }
  #chat-root .condair-topbar-logo{ width: 67px; }
  #chat-root .welcome-orbit{ width: 238px; height: 106px; margin-bottom: 20px; }
  #chat-root .welcome-orbit::before{ inset: 16px 20px; border-radius: 29px; }
  #chat-root .welcome-orbit::after{ inset: -7px 12px; }
  #chat-root .welcome-logo-stage{ width: 196px; height: 79px; border-radius: 24px; }
  #chat-root .welcome-logo{ width: 171px; height: auto; }
  #chat-root .welcome-orbit .orbit-ring{ inset: 4px 9px; border-radius: 38px; }
  #chat-root .welcome-orbit .orbit-ring-two{ inset: -4px 1px; }
}

/* Minimal CoDA restoration: original transparent identity and market graphics. */
#chat-root{
  background: #f3f7fa;
}

#chat-root .app-shell{
  gap: 0;
  padding: 0;
  background: #f3f7fa;
}

#chat-root .app-shell::before,
#chat-root .ambient,
#chat-root .workspace::before,
#chat-root .ai-badge{
  display: none;
}

#chat-root .desktop-sidebar{
  width: 250px;
  flex-basis: 250px;
}

#chat-root .sidebar-shell{
  width: 250px;
  height: 100%;
  padding: 20px 15px 16px;
  border: 0;
  border-right: 1px solid #dfe8ef;
  border-radius: 0;
  color: #385b73;
  background: #fbfdff;
  box-shadow: none;
}

#chat-root .sidebar-shell::after{
  display: none;
}

#chat-root .sidebar-brand{
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 0 5px;
}

#chat-root .sidebar-coda-logo{
  width: 40px;
  height: auto;
  filter: none;
}

#chat-root .sidebar-brand .icon-button{
  position: absolute;
  right: 5px;
  margin-left: 0;
}

#chat-root .new-chat-button{
  min-height: 43px;
  margin: 21px 0 24px;
  border: 1px solid #d6e2eb;
  border-radius: 8px;
  color: #234b6d;
  background: #fff;
  box-shadow: 0 3px 10px rgba(26, 66, 97, .035);
  letter-spacing: 0;
}

#chat-root .new-chat-button:hover{
  transform: none;
  border-color: #acd0e6;
  color: #0873bc;
  background: #fafdff;
  box-shadow: 0 3px 10px rgba(26, 66, 97, .05);
}

#chat-root .history-list{
  gap: 18px;
  padding-right: 0;
}

#chat-root .history-heading,
#chat-root .history-heading button{
  color: #7890a2;
}

#chat-root .history-entry{
  border-radius: 9px;
}

#chat-root .history-entry:hover,
#chat-root .history-entry:focus-within{
  border-color: #dce8f0;
  background: #f3f8fb;
}

#chat-root .history-entry.active{
  border-color: #c7dfea;
  background: #edf7fc;
  box-shadow: inset 2px 0 #0689d1;
}

#chat-root .history-item,
#chat-root .history-entry .history-item{
  color: #5f788b;
}

#chat-root .history-item small{
  width: 22px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #3f789e;
  background: #e4f3fb;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0;
}

#chat-root .history-actions button{
  color: #7890a2;
}

#chat-root .history-actions button:hover,
#chat-root .history-actions button:focus-visible{
  color: #0873bc;
  background: #e7f3fa;
}

#chat-root .history-actions button.selected{
  color: #0784c9;
}

#chat-root .empty-history{
  color: #9aaab6;
}

#chat-root .sidebar-footer{
  margin: 12px 0 0;
  padding: 15px 6px 2px;
  border-color: #e0e9ef;
  color: #8398a8;
}

#chat-root .sidebar-footer strong{
  color: #527188;
}

#chat-root .sidebar-footer span,
#chat-root .sidebar-footer > svg{
  color: #95a6b3;
}

#chat-root .workspace{
  height: 100%;
  border: 0;
  border-left: 1px solid #e1e9ef;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#chat-root .topbar{
  height: 62px;
  flex-basis: 62px;
  padding: 0 24px;
  border-color: #e5edf2;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: none;
}

#chat-root .topbar-left{
  gap: 12px;
}

#chat-root .icon-button{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #4f7c99;
  background: transparent;
  box-shadow: none;
}

#chat-root .icon-button:hover{
  transform: none;
  border-color: transparent;
  color: #0873bc;
  background: #eef7fc;
}

#chat-root .topbar-coda-logo{
  width: 40px;
  filter: none;
}

#chat-root .topbar-conversation-copy strong{
  color: #567083;
  font-size: 11px;
  font-weight: 650;
}

#chat-root .condair-topbar-logo{
  width: 94px;
}

#chat-root .topbar-actions{
  gap: 14px;
}

#chat-root .market-select{
  min-width: 225px;
  height: 38px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dae5ed;
  border-radius: 8px;
  color: #1d6391;
  background: #fbfdff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

#chat-root .market-select > svg:first-child{
  width: 17px;
  height: 17px;
}

#chat-root .market-select > svg:last-child{
  width: 15px;
  height: 15px;
}

#chat-root .market-select:hover,
#chat-root .market-select:focus-within{
  transform: none;
  border-color: #bcd8e8;
  color: #176695;
  background: #fff;
  box-shadow: none;
}

#chat-root .market-label-prefix{
  color: #678299;
  font-weight: 500;
}

#chat-root .market-select select{
  flex: 1;
  min-width: 0;
  max-width: none;
  padding-right: 18px;
  color: #176695;
  font-size: 12px;
  font-weight: 650;
}

#chat-root .chat-scroll{
  background: #fff;
}

#chat-root .welcome-panel{
  width: min(900px, calc(100% - 48px));
  padding: 36px 0 34px;
}

#chat-root .welcome-brand{
  width: min(320px, 100%);
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  margin: 0 auto 18px;
}

#chat-root .welcome-brand::before,
#chat-root .welcome-brand::after{
  content: "";
  position: absolute;
  inset: 17px 22px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(4, 133, 208, .18);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.86);
  animation: coda-water-ripple 7s cubic-bezier(.2, .62, .36, 1) infinite;
}

#chat-root .welcome-brand::after{
  border-color: rgba(65, 169, 218, .14);
  animation-delay: 3.5s;
}

#chat-root .welcome-logo{
  width: 250px;
  height: auto;
  position: relative;
  z-index: 1;
  padding: 0;
  filter: drop-shadow(0 7px 10px rgba(16, 121, 181, .11));
}

@keyframes coda-water-ripple{
  0% {
    opacity: 0;
    transform: scale(.86);
  }

  14% {
    opacity: .24;
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

#chat-root .welcome-panel h1{
  color: #244e71;
  font-size: clamp(34px, 3.7vw, 44px);
  font-weight: 680;
  letter-spacing: -.05em;
}

#chat-root .welcome-copy{
  margin: 8px auto 20px;
  color: #6f8293;
  font-size: 12.5px;
}

#chat-root .market-switch{
  max-width: 100%;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #0485d0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 117, 193, .08);
}

#chat-root .market-switch button{
  min-width: 205px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid #0485d0;
  color: #0873bc;
  background: #fff;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}

#chat-root .market-switch button:last-child{
  border-right: 0;
}

#chat-root .market-switch button:hover{
  background: #f2f9fd;
}

#chat-root .market-switch button.selected{
  color: #fff;
  background: linear-gradient(135deg, #0078c8, #008fdd);
}

#chat-root .market-switch button > svg:first-child{
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

#chat-root .market-switch .market-check{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  padding: 2px;
  border-radius: 50%;
  color: #0276bd;
  background: #fff;
}

#chat-root .idea-console{
  margin-top: 22px;
}

#chat-root .idea-console-head{
  color: #8a9ba7;
}

#chat-root .shuffle-ideas{
  color: #6c8799;
}

#chat-root .shuffle-ideas:hover{
  transform: none;
  color: #0873bc;
  background: #eef7fc;
}

#chat-root .prompt-card{
  height: 68px;
  min-height: 68px;
  padding: 9px 11px;
  border-color: #dce7ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 68, 98, .045);
}

#chat-root .prompt-card:hover{
  transform: none;
  border-color: #acd0e6;
  background: #fbfdff;
  box-shadow: 0 5px 16px rgba(29, 68, 98, .06);
}

#chat-root .prompt-product{
  border-color: #cde2ee;
  color: #0873bc;
  background: #f1f8fc;
}

#chat-root .prompt-label{
  color: #496579;
}

#chat-root .message-row.assistant .message-avatar{
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid #dce8ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 13px rgba(0, 109, 184, .08);
}

#chat-root .message-avatar .coda-symbol-art{
  width: 29px;
  height: 29px;
  object-fit: contain;
}

#chat-root .message-row.user .message-bubble{
  color: #fff;
  background: linear-gradient(135deg, #0689d1, #0872be);
  box-shadow: 0 7px 20px rgba(0, 113, 184, .13);
}

#chat-root .composer-wrap{
  border-color: #e3ebf1;
  background: rgba(249, 252, 254, .97);
  backdrop-filter: none;
}

#chat-root .composer{
  min-height: 55px;
  border-color: #d7e4ec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(29, 68, 98, .07);
}

#chat-root .composer::before{
  display: none;
}

#chat-root .composer:focus-within{
  transform: none;
  border-color: #8ec4e1;
  box-shadow: 0 7px 24px rgba(29, 68, 98, .09), 0 0 0 3px rgba(0, 133, 208, .07);
}

#chat-root .composer button,
#chat-root .composer button:hover:not(:disabled){
  border-radius: 9px;
  background: linear-gradient(135deg, #0689d1, #0872be);
}

@container coda (max-width: 1120px) and (min-width: 901px){
  #chat-root .desktop-sidebar,
#chat-root .sidebar-shell{
    width: 230px;
  }

  #chat-root .desktop-sidebar{
    flex-basis: 230px;
  }

  #chat-root .prompt-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container coda (max-width: 900px){
  #chat-root .mobile-sidebar-layer .sidebar-shell{
    border-right: 1px solid #dfe8ef;
    color: #385b73;
    background: #fbfdff;
    box-shadow: 18px 0 48px rgba(29, 68, 98, .18);
  }

  #chat-root .topbar{
    padding: 0 14px;
  }

  #chat-root .topbar-coda-logo{
    width: 38px;
  }

  #chat-root .condair-topbar-logo{
    width: 82px;
  }

  #chat-root .market-select{
    width: 176px;
    min-width: 176px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  #chat-root .market-label-prefix{
    display: none;
  }

  #chat-root .market-select select{
    width: auto;
    height: auto;
    position: static;
    inset: auto;
    opacity: 1;
  }

  #chat-root .market-select > svg:last-child{
    display: block;
  }
}

@container coda (max-width: 640px){
  #chat-root .condair-topbar-logo{
    display: none;
  }
}

@container coda (max-width: 580px){
  #chat-root .market-select{
    width: 166px;
    min-width: 166px;
    height: 35px;
    font-size: 10.5px;
  }

  #chat-root .market-select select{
    font-size: 10.5px;
  }

  #chat-root .market-switch{
    width: 100%;
    max-width: 370px;
    flex-direction: column;
    border-radius: 9px;
  }

  #chat-root .market-switch button{
    width: 100%;
    min-width: 0;
    height: 43px;
    border-right: 0;
    border-bottom: 1px solid #0785cf;
  }

  #chat-root .market-switch button:last-child{
    border-bottom: 0;
  }

  #chat-root .message-row.assistant .message-avatar{
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

@container coda (max-width: 540px){
  #chat-root .topbar-coda-logo{
    width: 34px;
  }

  #chat-root .welcome-panel{
    padding-top: 30px;
  }

  #chat-root .welcome-logo{
    width: 215px;
    height: auto;
  }

  #chat-root .welcome-brand{
    width: min(280px, 100%);
    height: 108px;
    margin-bottom: 16px;
  }

  #chat-root .welcome-brand::before,
#chat-root .welcome-brand::after{
    inset: 14px 18px;
  }

  #chat-root .welcome-panel h1{
    font-size: 34px;
  }

  #chat-root .idea-console{
    margin-top: 18px;
  }

  #chat-root .prompt-card{
    height: 68px;
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce){
  #chat-root .welcome-brand::before,
#chat-root .welcome-brand::after{
    animation: none;
    opacity: .08;
    transform: none;
  }
}

/* Rich CoDA answer rendering and strict horizontal containment. */
#chat-root .chat-scroll{
  overflow-x: hidden;
}

#chat-root .message-list,
#chat-root .message-row,
#chat-root .message-column,
#chat-root .message-bubble{
  min-width: 0;
  max-width: 100%;
}

#chat-root .message-row.assistant .message-column{
  width: auto;
  flex: 1 1 0;
}

#chat-root .message-row.user .message-column{
  min-width: 0;
}

#chat-root .message-bubble{
  overflow-wrap: break-word;
  word-break: normal;
}

#chat-root .message-row.assistant .message-bubble{
  width: 100%;
  overflow: hidden;
  padding: 14px 15px 16px;
  border: 1px solid #d8e3ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(29, 68, 98, .055);
}

#chat-root .message-row.user .message-bubble{
  max-width: 100%;
}

#chat-root .message-row.assistant .message-bubble,
#chat-root .message-row.user .message-bubble{
  font-size: var(--coda-message-font-size);
}

#chat-root .message-bubble .answer-progress{
  width: 100%;
  margin: 0 0 15px;
  padding: 9px 11px;
  border: 1px solid #cfd8de;
  border-radius: 7px;
  color: #47515b;
  background: #f6f7f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: normal;
}

#chat-root .message-bubble .answer-progress-line{
  width: 100%;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #cbd4da;
  border-bottom: 0;
  color: #47515b;
  background: #f5f6f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.25;
  opacity: .9;
}

#chat-root .message-bubble .answer-progress-connected{
  border-radius: 7px 7px 0 0;
}

#chat-root .message-bubble .answer-progress-thinking{
  margin-bottom: 15px;
  border-bottom: 1px solid #cbd4da;
  border-radius: 0 0 7px 7px;
}

#chat-root .message-bubble .answer-section-label{
  width: 100%;
  box-sizing: border-box;
  display: flex;
  clear: both;
  align-items: center;
  gap: 7px;
  margin: 22px 0 8px;
  padding: 7px 11px;
  border: 0;
  border-left: 4px solid #0785c7;
  border-radius: 7px;
  color: #075f91;
  background: #f4fafd;
  box-shadow: none;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.3;
}

#chat-root .message-bubble .answer-section-short{
  padding-top: 8px;
  padding-bottom: 8px;
  border-left-width: 5px;
  color: #045986;
  background: #e8f6fd;
}

#chat-root .message-bubble .answer-section-checked,
#chat-root .message-bubble .answer-section-problem{
  border-left-color: #dc941a;
  color: #754800;
  background: #fffaf1;
}

#chat-root .message-bubble .answer-section-checks{
  border-left-color: #27875a;
  color: #176b47;
  background: #f3faf6;
}

#chat-root .message-bubble .answer-section-tip{
  border-left-color: #d79d19;
  color: #705200;
  background: #fffcf2;
}

#chat-root .message-bubble .answer-divider{
  height: 1px;
  margin: 13px 0;
  border: 0;
  background: #e3e8ec;
}

#chat-root .message-bubble .answer-reformat-panel{
  width: 100%;
  margin: 12px 0 4px;
  padding: 10px;
  border: 1px solid #dde3e7;
  border-radius: 12px;
  background: #fafbfc;
  text-align: center;
  font-style: italic;
}

#chat-root .message-bubble .answer-reformat-title{
  margin-bottom: 7px;
  color: #66717a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

#chat-root .message-bubble .answer-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 10px 0 15px;
  border: 1px solid #cfd7dc;
  border-radius: 0;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

#chat-root .message-bubble .answer-table-wrap:focus-visible{
  outline: 2px solid rgba(0, 133, 208, .45);
  outline-offset: 2px;
}

#chat-root .message-bubble .answer-table-wrap table{
  width: 100%;
  min-width: 520px;
  display: table;
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  background: #fff;
}

#chat-root .message-bubble .answer-table-wrap th,
#chat-root .message-bubble .answer-table-wrap td{
  padding: 8px 9px;
  border: 0;
  border-right: 1px solid #cfd7dc;
  border-bottom: 1px solid #cfd7dc;
  vertical-align: top;
  line-height: 1.4;
}

#chat-root .message-bubble .answer-table-wrap tr:last-child td{
  border-bottom: 0;
}

#chat-root .message-bubble .answer-table-wrap th:last-child,
#chat-root .message-bubble .answer-table-wrap td:last-child{
  border-right: 0;
}

#chat-root .message-bubble .answer-table-wrap th{
  color: #18242d;
  background: #f7f8f9;
  font-size: 11px;
  font-weight: 750;
}

#chat-root .message-bubble .answer-table-wrap td{
  font-size: 12px;
}

@container coda (max-width: 540px){
  #chat-root .message-row.assistant .message-bubble{
    padding: 12px;
  }

  #chat-root .message-bubble .answer-table-wrap table{
    min-width: 480px;
  }
}


/* CoDA support-workbench layout. Kept separate from the legacy skin so the
   major interaction redesign has one clear, reviewable surface. */

#chat-root .app-shell{
  --left-sidebar-width: 250px;
  --right-sidebar-width: 260px;
  --coda-interface-font-size: 11px;
}

#chat-root .app-shell .desktop-sidebar{
  width: var(--left-sidebar-width);
  flex: 0 0 var(--left-sidebar-width);
}

#chat-root .app-shell .desktop-sidebar > .sidebar-shell{
  width: 100%;
}

#chat-root .app-shell .product-sidebar-desktop{
  width: var(--right-sidebar-width);
  flex: 0 0 var(--right-sidebar-width);
}

#chat-root .sidebar-resizer{
  width: 24px;
  height: 100%;
  flex: 0 0 24px;
  margin-inline: -12px;
  position: relative;
  z-index: 12;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

#chat-root .sidebar-resizer::before{
  content: "";
  width: 1px;
  position: absolute;
  inset-block: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #dfe8ef;
  transition: width 140ms ease, background-color 140ms ease;
}

#chat-root .sidebar-resizer::after{
  content: "";
  width: 4px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, #9fb8c8 1px, transparent 1.4px) center / 4px 7px;
  opacity: .65;
  transition: opacity 140ms ease, background-color 140ms ease;
}

#chat-root .sidebar-resizer:hover::before,
#chat-root .sidebar-resizer:focus-visible::before,
#chat-root .sidebar-resizer.active::before{
  width: 3px;
  background: #1694d2;
}

#chat-root .sidebar-resizer:hover::after,
#chat-root .sidebar-resizer:focus-visible::after,
#chat-root .sidebar-resizer.active::after{
  opacity: 1;
}

#chat-root .sidebar-resizer:focus-visible{
  box-shadow: inset 0 0 0 2px rgba(22, 148, 210, .28);
}

#chat-root .app-shell.sidebar-resizing,
#chat-root .app-shell.sidebar-resizing *{
  cursor: col-resize !important;
  user-select: none !important;
}

@container coda (max-width: 1220px){
  #chat-root .sidebar-resizer-right{
    display: none;
  }
}

@container coda (max-width: 900px){
  #chat-root .sidebar-resizer{
    display: none;
  }
}

#chat-root .sidebar-coda-brand{
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

#chat-root .sidebar-coda-symbol{
  width: 46px;
  height: 46px;
  object-fit: contain;
  /* Blend the original white-backed artwork into the sidebar without redrawing it. */
  mix-blend-mode: multiply;
}

#chat-root .sidebar-coda-brand .icon-button{
  position: absolute;
  right: 0;
}

#chat-root .sidebar-name-card{
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid #dce7ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 72, 101, .045);
}

#chat-root .sidebar-name-card > label{
  display: block;
  margin: 0 0 7px;
  color: #46677f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#chat-root .sidebar-name-entry{
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding-left: 10px;
  border: 1px solid #d8e3eb;
  border-radius: 8px;
  color: #7390a4;
  background: #fbfdff;
}

#chat-root .sidebar-name-entry:focus-within{
  border-color: #94c9e4;
  box-shadow: 0 0 0 3px rgba(0, 133, 208, .07);
}

#chat-root .sidebar-name-entry input{
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #284f6b;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
}

#chat-root .sidebar-name-entry input::placeholder{
  color: #9aabb8;
}

#chat-root .sidebar-name-entry button{
  align-self: stretch;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid #d8e3eb;
  color: #0875bb;
  background: #eff8fd;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .sidebar-name-entry button:hover:not(:disabled){
  background: #e3f3fb;
}

#chat-root .sidebar-name-entry button:disabled{
  color: #aebcc6;
  cursor: not-allowed;
}

#chat-root .sidebar-name-card p{
  margin: 8px 1px 0;
  color: #8297a7;
  font-size: 9px;
  line-height: 1.4;
}

#chat-root .new-chat-button{
  margin-top: 0;
}

#chat-root .history-sync-status{
  margin: auto 5px 8px;
  color: #8599a8;
  font-size: 8.5px;
  line-height: 1.4;
}

#chat-root .history-entry .history-item{
  padding-right: 8px;
  font-size: var(--coda-interface-font-size);
}

#chat-root .history-actions{
  padding-left: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(251, 253, 255, 0), #fbfdff 24%);
}

#chat-root .history-entry:hover .history-actions,
#chat-root .history-entry:focus-within .history-actions{
  background: linear-gradient(90deg, rgba(243, 248, 251, 0), #f3f8fb 24%);
}

#chat-root .history-entry.active .history-actions{
  background: linear-gradient(90deg, rgba(237, 247, 252, 0), #edf7fc 24%);
}

#chat-root .topbar{
  border-bottom: 0;
}

#chat-root .test-release-badge{
  max-width: 220px;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid #b9ddec;
  border-radius: 999px;
  color: #0874ad;
  background: #edf8fd;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-root .test-release-badge.disconnected{
  border-color: #e6c58f;
  color: #986220;
  background: #fff8ea;
}

#chat-root .fresh-session-button{
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d9e5ec;
  border-radius: 7px;
  color: #57768a;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .fresh-session-button:hover{
  border-color: #a9cfdf;
  color: #096fae;
  background: #f3fbfe;
}

#chat-root .topbar-market-toggle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#chat-root .market-toggle{
  width: 380px;
  min-width: 380px;
  height: 44px;
  flex: 0 0 380px;
  display: flex;
  overflow: hidden;
  border: 1px solid #0790d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 117, 193, .06);
}

#chat-root .market-toggle button{
  min-width: 0;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid #0790d6;
  color: #0873bc;
  background: #fff;
  font: inherit;
  font-size: var(--coda-interface-font-size);
  font-weight: 750;
  line-height: 1.15;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

#chat-root .market-toggle button:last-child{
  border-right: 0;
}

#chat-root .market-toggle button:hover:not(.selected){
  background: #eef8fd;
}

#chat-root .market-toggle button.selected{
  color: #fff;
  background: linear-gradient(135deg, #0078c8, #0095df);
}

#chat-root .market-globe{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-rendering: geometricPrecision;
}

#chat-root .market-toggle .market-check{
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  padding: 2px;
  border-radius: 50%;
  color: #0877bd;
  background: #fff;
}

#chat-root .language-select{
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0 9px;
  border: 1px solid #dae5ed;
  border-radius: 8px;
  color: #286f9f;
  background: #fbfdff;
}

#chat-root .language-select:hover,
#chat-root .language-select:focus-within{
  border-color: #bcd8e8;
  background: #fff;
}

#chat-root .language-select select{
  max-width: 92px;
  padding-right: 15px;
  border: 0;
  outline: 0;
  appearance: none;
  color: #25678f;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

#chat-root .language-select > svg:last-child{
  pointer-events: none;
}

#chat-root .sidebar-language-select{
  width: 100%;
  flex: 0 0 38px;
  margin-top: 10px;
  justify-content: flex-start;
  background: #fff;
}

#chat-root .sidebar-language-select select{
  max-width: none;
  flex: 1;
}

#chat-root .sidebar-language-select > svg:last-child{
  margin-left: auto;
}

#chat-root .coda-support-welcome{
  width: min(960px, calc(100% - 52px));
  min-height: 100%;
  justify-content: center;
  padding: 34px 0 42px;
}

#chat-root .coda-main-brand{
  width: min(370px, 100%);
  height: 140px;
  margin-bottom: 18px;
}

#chat-root .coda-main-logo{
  width: 225px;
}

#chat-root .composer-surface{
  width: 100%;
}

#chat-root .intelligence-control{
  width: clamp(112px, 15vw, 142px);
  flex: 0 0 clamp(112px, 15vw, 142px);
  align-self: center;
  padding: 1px 6px 1px 10px;
  border-left: 1px solid #e1eaf0;
}

#chat-root .intelligence-labels{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d858c;
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
}

#chat-root .intelligence-range-shell{
  --intelligence-progress: 33.333%;
  height: 20px;
  position: relative;
  margin-top: 1px;
}

#chat-root .intelligence-range-shell.intelligence-level-1{ --intelligence-progress: 0%; }
#chat-root .intelligence-range-shell.intelligence-level-2{ --intelligence-progress: 50%; }
#chat-root .intelligence-range-shell.intelligence-level-3{ --intelligence-progress: 100%; }

#chat-root .intelligence-range-shell::before{
  content: "";
  height: 7px;
  position: absolute;
  top: 6.5px;
  right: 9px;
  left: 9px;
  border: 1px solid #d9dfe3;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #118fe5 0,
    #118fe5 var(--intelligence-progress),
    #eef1f3 var(--intelligence-progress),
    #eef1f3 100%
  );
}

#chat-root .intelligence-range-dots{
  position: absolute;
  z-index: 1;
  top: 8.5px;
  right: 8px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

#chat-root .intelligence-range-dots span{
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9c0c5;
}

#chat-root .intelligence-range-dots span.active{
  background: rgba(255, 255, 255, .72);
}

#chat-root .intelligence-range-shell input{
  width: 100%;
  height: 20px;
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#chat-root .intelligence-range-shell input::-webkit-slider-runnable-track{
  height: 7px;
  border: 0;
  background: transparent;
}

#chat-root .intelligence-range-shell input::-webkit-slider-thumb{
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
  appearance: none;
  border: 1px solid #cfd6db;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 54, 68, .14);
}

#chat-root .intelligence-range-shell input::-moz-range-track{
  height: 7px;
  border: 0;
  background: transparent;
}

#chat-root .intelligence-range-shell input::-moz-range-progress{
  height: 7px;
  background: transparent;
}

#chat-root .intelligence-range-shell input::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border: 1px solid #cfd6db;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 54, 68, .14);
}

#chat-root .intelligence-range-shell input:focus-visible{
  outline: 2px solid #118fe5;
  outline-offset: 3px;
  border-radius: 999px;
}

#chat-root .sr-only{
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#chat-root .composer-surface-welcome{
  width: min(850px, 100%);
  margin: 0 auto;
}

#chat-root .composer-welcome{
  width: 100%;
  min-height: 68px;
  padding: 10px 9px 10px 18px;
  border-color: #cfdfe9;
  border-radius: 15px;
  box-shadow: 0 14px 40px rgba(29, 80, 115, .09);
}

#chat-root .composer textarea{
  min-width: 0;
}

#chat-root .composer-welcome textarea{
  height: 46px;
  max-height: 140px;
  padding: 12px 0;
  color: #294e68;
  font-size: 14px;
}

#chat-root .composer-mode-chip,
#chat-root .composer .composer-mode-chip{
  width: 36px;
  height: 30px;
  flex: 0 0 36px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 5px;
  border: 1px solid #b9dbea;
  border-radius: 8px;
  color: #096fae;
  background: #edf8fd;
  box-shadow: none;
  font-size: 9.5px;
  font-weight: 750;
}

#chat-root .composer-mode-clear{
  opacity: .72;
}

#chat-root .composer .composer-mode-chip:hover:not(:disabled){
  transform: none;
  color: #075f96;
  background: #e1f2fa;
  box-shadow: none;
}

#chat-root .composer-subjects{
  min-width: 0;
  max-width: 108px;
  flex: 0 1 108px;
  align-self: center;
  display: flex;
  gap: 4px;
}

#chat-root .composer .subject-chip{
  width: auto;
  min-width: 46px;
  max-width: 52px;
  height: 30px;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 5px;
  border: 1px solid #9dcfe4;
  border-radius: 8px;
  color: #0872ae;
  background: #eaf7fc;
  box-shadow: none;
  font-size: 9px;
  font-weight: 750;
}

#chat-root .composer .subject-chip:hover:not(:disabled){
  transform: none;
  border-color: #75bad8;
  color: #075f96;
  background: #ddf1f9;
  box-shadow: none;
}

#chat-root .composer .subject-chip:disabled{
  border-color: #c5dde8;
  color: #63899e;
  background: #edf6fa;
}

#chat-root .images-toggle{
  height: 30px;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid #d5e4ec;
  border-radius: 8px;
  color: #54788e;
  background: #fbfdff;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .images-toggle:has(input:checked){
  border-color: #9dcfe4;
  color: #0872ae;
  background: #eaf7fc;
}

#chat-root .images-toggle input{
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

#chat-root .images-toggle:focus-within{
  outline: 2px solid #118fe5;
  outline-offset: 2px;
}

#chat-root .subject-chip span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-root .subject-chip svg{
  flex: 0 0 auto;
}

#chat-root .composer-guidance{
  align-self: center;
  max-width: 210px;
  color: #a05b16;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

#chat-root .composer .composer-send{
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 10px;
}

#chat-root .composer-surface-docked .composer{
  width: min(900px, 100%);
}

#chat-root .response-type-strip{
  width: min(900px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 auto 7px;
}

#chat-root .response-type-strip button{
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #d8e5ec;
  border-radius: 7px;
  color: #648095;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 720;
  cursor: pointer;
}

#chat-root .response-type-strip button.selected{
  border-color: #8fc8e1;
  color: #0872ae;
  background: #eaf7fc;
}

#chat-root .error-banner .error-message{
  width: auto;
  height: auto;
  flex: 1;
  display: block;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-weight: 500;
}

#chat-root .error-banner button{
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e1aeb5;
  border-radius: 7px;
  color: #9b3541;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .task-mode-grid{
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px auto 0;
}

#chat-root .task-mode-grid > button{
  position: relative;
  width: auto;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #d9e6ee;
  border-radius: 9px;
  color: #42647b;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29, 68, 98, .035);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#chat-root .task-mode-grid > button > svg:first-child{
  width: 16px;
  height: 16px;
  color: #1787c6;
}

#chat-root .task-mode-label{
  min-width: 0;
  display: block;
  white-space: nowrap;
}

#chat-root .response-type-strip > button{ position: relative; }
#chat-root .task-mode-tooltip{
  position: absolute; z-index: 10001; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); width: max-content; max-width: min(260px, 80vw);
  padding: 7px 10px; border-radius: 6px; background: #23475f; color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center;
  white-space: normal; pointer-events: none;
  box-shadow: 0 3px 12px rgba(20, 40, 60, .15);
}

#chat-root .task-mode-chevron{
  width: 13px;
  height: 13px;
  display: block;
  color: #9cb0be;
}

#chat-root .task-mode-grid > button:hover,
#chat-root .task-mode-grid > button.selected{
  border-color: #9ccce3;
  color: #185f8b;
  background: #f4fbfe;
  box-shadow: 0 6px 18px rgba(18, 114, 164, .07);
}

#chat-root .local-help-actions{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

#chat-root .local-help-actions button{
  padding: 6px 10px;
  border: 0;
  color: #668399;
  background: transparent;
  font: inherit;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

#chat-root .local-help-actions button:hover{
  color: #0875bb;
  text-decoration: underline;
}

#chat-root .waiting-status{
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d8e7ef;
  border-radius: 11px;
  background: linear-gradient(135deg, #f8fcfe, #eef8fc);
}

#chat-root .waiting-visual{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: coda-wait-stage-in 1.1s cubic-bezier(.22, .61, .36, 1) both;
}

#chat-root .waiting-hybrid-spinner{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  position: relative;
}

#chat-root .waiting-hybrid-spinner::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent 0deg 52deg,
    #92d3f4 52deg 135deg,
    #009fe3 205deg,
    #0069a8 315deg,
    transparent 315deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: coda-hybrid-spin 2.2s linear infinite;
}

#chat-root .waiting-drop{
  width: 11px;
  height: 11px;
  position: relative;
  z-index: 1;
  border-radius: 72% 0 72% 72%;
  background: linear-gradient(135deg, #60c7ef, #009fe3 55%, #0069a8);
  box-shadow: 0 1px 2px rgba(0, 72, 120, .2);
  transform: rotate(-45deg);
}

#chat-root .waiting-drop::after{
  content: "";
  position: absolute;
  width: 3px;
  height: 5px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
}

#chat-root .waiting-check{
  display: inline-block;
  margin-left: 6px;
  vertical-align: -2px;
  color: #0f9a68;
  animation: coda-wait-check-in .46s cubic-bezier(.22, .72, .3, 1) both;
}

#chat-root .waiting-copy{
  min-width: 0;
  display: grid;
}

#chat-root .waiting-copy-sizer,
#chat-root .waiting-copy-current{
  grid-area: 1 / 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

#chat-root .waiting-copy-sizer{
  visibility: hidden;
  pointer-events: none;
}

#chat-root .waiting-copy-sizer strong{
  grid-area: 1 / 1;
}

#chat-root .waiting-copy-sizer .waiting-product-detail{
  grid-area: 2 / 1;
}

#chat-root .waiting-copy-current{
  animation: coda-wait-copy-in 1.05s cubic-bezier(.22, .61, .36, 1) both;
  will-change: opacity;
}

#chat-root .waiting-status-leaving .waiting-copy-current{
  animation: coda-wait-copy-out .85s cubic-bezier(.4, 0, .2, 1) both;
}

#chat-root .waiting-copy strong{
  display: block;
  color: #28617f;
  font-size: var(--coda-interface-font-size);
  font-weight: 750;
}

#chat-root .waiting-product-detail{
  overflow: hidden;
  color: #5e7c8f;
  font-size: calc(var(--coda-interface-font-size) - 1px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-root .waiting-product-placeholder,
#chat-root .waiting-stop-placeholder{
  visibility: hidden;
  pointer-events: none;
}

#chat-root .waiting-copy-sizer svg{
  display: inline-block;
  margin-left: 6px;
  vertical-align: -2px;
}

#chat-root .waiting-stop{
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d4e2ea;
  border-radius: 8px;
  color: #5e7c8f;
  background: #fff;
  font: inherit;
  font-size: var(--coda-interface-font-size);
  font-weight: 700;
  cursor: pointer;
}

#chat-root .waiting-stop:hover{
  border-color: #a9cddd;
  color: #166a99;
}

#chat-root .waiting-status + .answer-content{
  margin-top: 14px;
}

#chat-root .message-row.assistant .answer-content{
  font-size: var(--coda-interface-font-size);
  line-height: 1.6;
}

#chat-root .message-row.assistant .answer-content h1{
  font-size: 15px;
}

#chat-root .message-row.assistant .answer-content h2{
  font-size: 13px;
}

#chat-root .message-row.assistant .answer-content h3{
  font-size: 12px;
}

#chat-root .message-row.assistant .answer-content h4,
#chat-root .message-row.assistant .answer-content .answer-table-wrap th,
#chat-root .message-row.assistant .answer-content .answer-table-wrap td,
#chat-root .message-row.assistant .answer-content .rich-action-button{
  font-size: var(--coda-interface-font-size);
}

#chat-root .message-row.assistant .message-bubble,
#chat-root .answer-content,
#chat-root .answer-content picture,
#chat-root .answer-content figure{
  background-color: #fff;
}

#chat-root .message-row.assistant .message-bubble.message-bubble-waiting{
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#chat-root,
#chat-root,
#chat-root .app-shell,
#chat-root .workspace,
#chat-root .chat-scroll,
#chat-root .message-list,
#chat-root .composer-wrap{
  background: #fff;
  background-image: none;
}

#chat-root .message-row.assistant .message-bubble img,
#chat-root .answer-content img{
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
}

#chat-root .answer-content img.answer-image{
  width: auto;
  max-width: min(100%, 600px) !important;
  max-height: 450px;
  object-fit: contain;
  margin: 16px auto;
  cursor: zoom-in;
}

#chat-root .answer-content img.answer-image-wide{
  max-width: 100% !important;
  max-height: 520px;
}

#chat-root .answer-content img.answer-image-tall{
  max-width: min(100%, 480px) !important;
  max-height: 500px;
}

#chat-root .answer-content img.answer-image-small{
  max-width: min(100%, 420px) !important;
  max-height: 320px;
}

#chat-root .answer-content img.answer-image:focus-visible{
  outline: 3px solid rgba(0, 142, 214, .42);
  outline-offset: 4px;
}

#chat-root .answer-image-lightbox{
  position: absolute;
  inset: 0;
  container-type: size;
  container-name: coda-lightbox;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

#chat-root .answer-image-lightbox-backdrop{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(13, 35, 49, .76);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
}

#chat-root .answer-image-lightbox-dialog{
  max-width: 94cqw;
  max-height: 92cqh;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
}

#chat-root .answer-image-lightbox-dialog img{
  width: auto;
  max-width: 92cqw;
  max-height: 84cqh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 20, 34, .42);
}

#chat-root .answer-image-lightbox-dialog p{
  max-width: min(780px, 88cqw);
  margin: 0;
  color: #eef8fc;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#chat-root .answer-image-lightbox-close{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  top: -14px;
  right: -14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #2d607c;
  background: #fff;
  box-shadow: 0 7px 22px rgba(0, 28, 46, .22);
  cursor: pointer;
}

#chat-root .answer-image-lightbox-close:focus-visible{
  outline: 3px solid rgba(91, 211, 255, .72);
  outline-offset: 3px;
}

#chat-root .answer-content [data-condair-internal="true"]{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #c9e3ef;
  border-radius: 10px;
  color: #355f76;
  background: #f2fafd;
}

#chat-root .release-notice{
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px auto 0;
  padding: 9px 11px;
  border: 1px solid #bfe0ed;
  border-radius: 9px;
  color: #326a85;
  background: #f1fafe;
  font-size: 10px;
}

#chat-root .release-notice button{
  display: inline-grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

#chat-root .message-market-badge{
  padding: 2px 5px;
  border: 1px solid #bee1f1;
  border-radius: 999px;
  color: #0876b3 !important;
  background: #edf9fe;
  font-size: 8px !important;
  font-weight: 800;
}

#chat-root .response-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 2px 0;
}

#chat-root .answer-copy-notice{
  margin: 8px 0;
  color: #526b7a;
  font-size: 0.85em;
  line-height: 1.4;
}

#chat-root .response-actions button{
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #d8e4eb;
  border-radius: 8px;
  color: #4f7187;
  background: #fff;
  font: inherit;
  font-size: var(--coda-interface-font-size);
  font-weight: 700;
  cursor: pointer;
}

#chat-root .response-actions button:hover{
  border-color: #a8ccdd;
  color: #116c9d;
  background: #f4fbfe;
}

#chat-root .message-subject-matter{
  display: block;
  margin: 0 0 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .88);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .01em;
}

#chat-root .product-sidebar{
  width: 260px;
  height: 100%;
  min-width: 0;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 5;
  border-left: 1px solid #dfe8ef;
  color: #385b73;
  background: #fbfdff;
}

#chat-root .product-sidebar-brand{
  min-height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #fbfdff;
}

#chat-root .product-sidebar-condair-logo{
  width: 108px;
  height: auto;
}

#chat-root .product-sidebar-head{
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 16px 12px;
}

#chat-root .product-sidebar-head span{
  display: block;
  margin-bottom: 3px;
  color: #7890a2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}

#chat-root .product-sidebar-head h2{
  margin: 0;
  color: #244e6a;
  font-size: 15px;
  line-height: 1.2;
}

#chat-root .product-sidebar-head strong{
  min-width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid #c7deea;
  border-radius: 999px;
  color: #0878b7;
  background: #edf8fc;
  font-size: 9.5px;
}

#chat-root .product-sidebar-head-actions{
  display: flex;
  align-items: center;
  gap: 7px;
}

#chat-root .product-sidebar-close{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e4ec;
  border-radius: 8px;
  color: #52758b;
  background: #fff;
  cursor: pointer;
}

#chat-root .product-sidebar-close:hover{
  border-color: #a9cede;
  color: #0873ad;
  background: #f2fafe;
}

#chat-root .product-sidebar-help{
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px 13px;
  border-bottom: 1px solid #e5edf2;
  color: #7c92a2;
  font-size: 9.5px;
  line-height: 1.4;
}

#chat-root .product-sidebar-list{
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px 12px 28px 16px;
  scrollbar-color: #c7dbe6 transparent;
  scrollbar-width: thin;
}

#chat-root .product-sidebar-list::-webkit-scrollbar{
  width: 6px;
}

#chat-root .product-sidebar-list::-webkit-scrollbar-thumb{
  border-radius: 999px;
  background: #c7dbe6;
}

#chat-root .product-parent + .product-parent{
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #e4edf2;
}

#chat-root .product-parent h3,
#chat-root .product-category h4{
  margin: 0;
  color: #42647b;
  font: inherit;
  font-weight: 400;
  letter-spacing: normal;
}

#chat-root .product-parent h3{ font-size: 14px; }
#chat-root .product-category h4{ font-size: 12px; }

#chat-root .product-parent-toggle,
#chat-root .product-category-toggle{
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

#chat-root .product-parent-toggle{
  padding-inline: 4px;
  color: #016bb2;
  font-weight: 400;
}

#chat-root .product-parent-content[hidden],
#chat-root .product-options[hidden]{
  display: none;
}

#chat-root .product-parent-content{
  margin: 0 0 5px;
  padding-left: 0;
  border-left: 0;
}

#chat-root .product-category + .product-category{
  border-top: 1px solid #edf3f6;
}

#chat-root .product-category-direct .product-options{
  padding-top: 8px;
}

#chat-root .product-parent-toggle span,
#chat-root .product-category-toggle span{
  min-width: 0;
  overflow-wrap: anywhere;
}

#chat-root .product-parent-toggle:hover,
#chat-root .product-category-toggle:hover{
  background: #edf5fa;
}

#chat-root .product-parent-toggle:focus-visible,
#chat-root .product-category-toggle:focus-visible{
  outline: 2px solid #0878b4;
  outline-offset: -2px;
}

#chat-root .product-parent-toggle[aria-disabled="true"],
#chat-root .product-category-toggle[aria-disabled="true"]{
  cursor: default;
}

#chat-root .product-parent-toggle svg,
#chat-root .product-category-toggle svg{
  flex-shrink: 0;
}

#chat-root .product-parent-toggle[aria-expanded="true"] svg,
#chat-root .product-category-toggle[aria-expanded="true"] svg{
  transform: rotate(90deg);
}

#chat-root .product-options{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 12px;
}

#chat-root .product-options button{
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #d7e5ed;
  border-radius: 8px;
  color: #4d7188;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 68, 98, .025);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

#chat-root .product-options button:hover:not(:disabled){
  border-color: #9bc9dd;
  color: #0873ad;
  background: #f2fafe;
}

#chat-root .product-options button.legacy:not(.selected){
  background: #eaf2f7;
  border-style: dashed;
  color: #36576d;
}

#chat-root .product-options button.selected{
  border-color: #0878b4;
  color: #fff;
  background: #0878b4;
  box-shadow: inset 0 0 0 1px rgba(6, 137, 209, .06);
}

#chat-root .product-options button:disabled:not(.selected){
  opacity: .36;
  cursor: not-allowed;
}

#chat-root .product-options button span{
  min-width: 0;
  overflow-wrap: anywhere;
}

#chat-root .product-options button svg{
  flex: 0 0 auto;
}

#chat-root .product-menu-button{
  min-height: 36px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #d5e4ec;
  border-radius: 8px;
  color: #28617f;
  background: #fbfdff;
  font-size: 9.5px;
  font-weight: 750;
  cursor: pointer;
}

#chat-root .product-menu-button strong{
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #0787ce;
  font-size: 8px;
}

#chat-root .mobile-product-layer{
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}

#chat-root .product-backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(29, 54, 70, .24);
  cursor: pointer;
}

#chat-root .product-sidebar-mobile{
  width: min(360px, calc(100% - 24px));
  flex-basis: min(360px, calc(100% - 24px));
  z-index: 1;
  box-shadow: -18px 0 48px rgba(29, 68, 98, .18);
}

@keyframes coda-hybrid-spin{
  to { transform: rotate(360deg); }
}

@keyframes coda-wait-stage-in{
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coda-wait-copy-in{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes coda-wait-copy-out{
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes coda-wait-check-in{
  from {
    opacity: 0;
    transform: scale(.62);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@container coda (max-width: 1220px){
  #chat-root .product-sidebar-desktop{
    display: none;
  }

  #chat-root .product-menu-button{
    display: inline-flex;
  }

  #chat-root .condair-topbar-logo{
    display: none;
  }
}

@container coda (max-width: 1120px){
  #chat-root .market-toggle{
    width: 360px;
    min-width: 360px;
    flex-basis: 360px;
  }
}

@container coda (max-width: 900px){
  #chat-root .sidebar-coda-brand{
    min-height: 50px;
  }

  #chat-root .topbar{
    padding-inline: 13px;
  }

  #chat-root .market-toggle{
    width: 340px;
    min-width: 340px;
    flex-basis: 340px;
  }

  #chat-root .condair-topbar-logo{
    display: none;
  }
}

@container coda (max-width: 680px){
  #chat-root .topbar{
    height: 112px;
    flex-basis: 112px;
    position: relative;
    align-items: flex-start;
    padding: 8px 13px 60px;
  }

  #chat-root .topbar-left{
    min-height: 44px;
  }

  #chat-root .test-release-badge{
    max-width: 116px;
  }

  #chat-root .fresh-session-button{
    display: none;
  }

  #chat-root .market-toggle{
    width: auto;
    min-width: 0;
    height: 44px;
    flex-basis: auto;
    position: absolute;
    top: auto;
    right: 13px;
    bottom: 8px;
    left: 13px;
    transform: none;
  }

  #chat-root .coda-support-welcome{
    width: min(100% - 28px, 620px);
    padding: 25px 0 30px;
  }

  #chat-root .coda-main-brand{
    width: min(300px, 100%);
    height: 112px;
    margin-bottom: 13px;
  }

  #chat-root .coda-main-logo{
    width: 180px;
  }

  #chat-root .composer-welcome{
    align-items: center;
    min-height: 62px;
  }

  #chat-root .composer-mode-chip,
#chat-root .composer .composer-mode-chip{
    max-width: none;
  }

  #chat-root .composer-subjects{
    max-width: 104px;
    flex-basis: 104px;
  }

  #chat-root .composer .subject-chip{
    min-width: 44px;
    max-width: 50px;
  }

  #chat-root .composer-guidance{
    display: none;
  }

  #chat-root .task-mode-grid{
    width: min(400px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #chat-root .task-mode-grid > button{
    width: auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  #chat-root .product-category h4{
    font-size: 12px;
  }

  #chat-root .waiting-status{
    grid-template-columns: 38px minmax(0, 1fr);
  }

  #chat-root .waiting-stop{
    grid-column: 2;
    justify-self: start;
  }
}

@container coda (max-width: 430px){
  #chat-root .topbar-actions{
    gap: 6px;
  }

  #chat-root .market-toggle button{
    gap: 5px;
    padding-inline: 7px;
    font-size: var(--coda-interface-font-size);
  }

  #chat-root .task-mode-grid{
    width: min(240px, 100%);
    grid-template-columns: 1fr;
  }

  #chat-root .task-mode-grid > button{
    width: auto;
    min-height: 34px;
  }

  #chat-root .composer{
    gap: 6px;
    padding-left: 12px;
  }

  #chat-root .intelligence-control{
    width: 96px;
    flex-basis: 96px;
    padding-left: 7px;
  }

  #chat-root .composer-mode-chip,
#chat-root .composer .composer-mode-chip{
    max-width: none;
  }

  #chat-root .composer-subjects{
    max-width: 96px;
    flex-basis: 96px;
  }

  #chat-root .composer .subject-chip{
    min-width: 40px;
    max-width: 46px;
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce){
  #chat-root .task-mode-grid > button,
#chat-root .market-toggle button,
#chat-root .product-options button,
#chat-root .composer,
#chat-root .sidebar-name-entry{
    transition: none;
  }

  #chat-root .waiting-hybrid-spinner::before,
#chat-root .waiting-visual,
#chat-root .waiting-copy-current,
#chat-root .waiting-check{
    animation: none;
  }
}


#chat-root .product-preview-anchor{ display: inline-flex; max-width: 100%; }
#chat-root .product-image-preview{
  position: absolute; z-index: 10000; overflow: hidden;
  box-sizing: border-box; padding: 0; border: 0;
  border-radius: 0; background: transparent; box-shadow: none;
  mix-blend-mode: normal; opacity: 1; pointer-events: none;
}
#chat-root .product-image-preview img{
  position: absolute; display: block; max-width: none; max-height: none;
  background: transparent;
}


/* CoDA middle-section skin only. No host navigation or footer styles.
   System sans-serif typography and Condair blue follow the live corporate website.
   Compact CoDA control sizes remain unchanged. */
#chat-root .app-shell{ padding: 0; gap: 0; background: #fff; color: #072c4b; }
#chat-root .ambient,
#chat-root .app-shell::before,
#chat-root .workspace::before,
#chat-root .welcome-brand::before,
#chat-root .welcome-brand::after{ display: none; }
#chat-root .sidebar-shell,
#chat-root .workspace,
#chat-root .product-sidebar{
  height: 100%; min-height: 0; border-radius: 0;
  box-shadow: none; background: #fff; color: #072c4b;
}
#chat-root .sidebar-shell{ border: 0; border-right: 1px solid #e1e7eb; background: #f8fafb; }
#chat-root .workspace{ border: 0; }
#chat-root .product-sidebar{ border: 0; border-left: 1px solid #e1e7eb; background: #f8fafb; }
#chat-root .sidebar-resizer{ height: 100%; }
#chat-root .product-sidebar-brand{ display: none; }
#chat-root .product-sidebar-head{ padding-top: 18px; }
#chat-root .topbar{ background: #fff; border-bottom: 1px solid #edf0f2; }
#chat-root .topbar-left{ gap: 7px; }
#chat-root .test-release-badge,
#chat-root .test-release-badge.disconnected{
  max-width: 100px; background: #f2f6f8; color: #666;
  border: 0; border-radius: 4px; font-weight: 500; letter-spacing: 0;
}
#chat-root .fresh-session-button{ font-weight: 500; }
#chat-root .market-toggle{ border-color: #016bb2; border-radius: 6px; box-shadow: none; }
#chat-root .market-toggle button{ color: #055485; font-weight: 500; }
#chat-root .market-toggle button.selected{ background: #016bb2; color: #fff; }
#chat-root .new-chat-button{ background: #016bb2; color: #fff; border-color: #016bb2; border-radius: 6px; font-weight: 500; box-shadow: none; }
#chat-root .new-chat-button:hover{ background: #055485; color: #fff; border-color: #055485; }
#chat-root .coda-main-logo,
#chat-root .welcome-logo{ filter: none; }
#chat-root .coda-main-brand{ margin-bottom: 16px; }
#chat-root .composer,
#chat-root .composer:focus-within{ border-radius: 10px; box-shadow: 0 4px 16px rgba(7,44,75,.055); }
#chat-root .composer:focus-within{ border-color: #016bb2; }
#chat-root .composer button,
#chat-root .composer button:hover:not(:disabled),
#chat-root .primary-button,
#chat-root .message-row.user .message-bubble{ background: #016bb2; box-shadow: none; }
#chat-root .composer-mode-chip,
#chat-root .composer .composer-mode-chip{ font-weight: 500; }
#chat-root .task-mode-grid > button{ border-radius: 6px; font-weight: 500; box-shadow: none; }
#chat-root .task-mode-grid > button.selected,
#chat-root .task-mode-grid > button:hover{
  color: #055485; background: #edf5fa; border-color: #016bb2; box-shadow: none;
}
#chat-root .task-mode-tooltip{ background: #055485; font-weight: 400; }
#chat-root .product-sidebar-head h2{ color: #055485; font-weight: 500; }
#chat-root .product-category h4{ color: #687984; font-weight: 400; }
#chat-root .product-options button{ border-radius: 5px; font-weight: 400; color: #055485; box-shadow: none; }
#chat-root .product-options button.selected{ background: #016bb2; border-color: #016bb2; color: #fff; box-shadow: none; }
#chat-root .product-options button.legacy:not(.selected){ background: #edf1f4; color: #4f6574; }
#chat-root .product-category-toggle:hover{ background: #edf3f7; }
#chat-root .history-entry.active .history-item{ color: #055485; background: #eaf3f9; }
#chat-root .language-select,
#chat-root .language-select select{ color: #055485; font-weight: 400; }
#chat-root .sidebar-section-label,
#chat-root .history-item,
#chat-root .sidebar-footer strong{ font-weight: 500; }
#chat-root .message-row.assistant .message-bubble{ box-shadow: none; }
#chat-root .message-bubble .rich-action-button,
#chat-root .message-bubble .rich-action-button *,
#chat-root .suggestion-list button,
#chat-root .suggestion-list button *{ font-weight: 400; }
#chat-root button:focus-visible,
#chat-root textarea:focus-visible,
#chat-root a:focus-visible{ outline-color: #016bb2; }


/* Chat-only controls. Outside compact layouts, only the intelligence control changes. */
#chat-root .composer-toolbar{ display: contents; }
#chat-root .topbar-region-choice{ display: none; }
#chat-root .sidebar-release-badge{ align-self: flex-start; margin: 4px 16px; }
#chat-root .composer-choice{ flex: 0 0 42px; align-self: center; }
#chat-root .composer .composer-choice-trigger,
#chat-root .composer .composer-choice-trigger:hover:not(:disabled){
  width: 42px; height: 42px; padding: 0; border: 1px solid #c4dce9;
  border-radius: 50%; background: #fff; color: #016bb2;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: none; transform: none;
}
#chat-root .composer .composer-choice-trigger:hover:not(:disabled),
#chat-root .composer .composer-choice-trigger[aria-expanded="true"]{ background: #edf5fa; border-color: #016bb2; }
#chat-root .composer .composer-choice-trigger:focus-visible{ outline: 2px solid #016bb2; outline-offset: 3px; }
#chat-root .composer-answer-choice{ display: none; }
#chat-root .composer .follow-up-options-toggle{ display: none; }
#chat-root .composer-choice-panel{
  z-index: 75; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid #dce6ed; border-radius: 14px;
  color: #072c4b; background: #fff; box-shadow: 0 8px 32px rgba(7,44,75,.16);
}
#chat-root .composer-choice-title{ padding: 8px 10px; font-size: 13px; line-height: 20px; color: #667c8b; }
#chat-root .composer-choice-panel button{
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 0; border-radius: 8px; color: #072c4b;
  background: #fff; font: inherit; font-size: 14px; line-height: 20px; text-align: left;
}
#chat-root .composer-choice-panel button:hover,
#chat-root .composer-choice-panel button:focus-visible,
#chat-root .composer-choice-panel button[aria-checked="true"]{ color: #016bb2; background: #edf5fa; }
#chat-root .composer-choice-panel button:focus-visible{ outline: 2px solid #016bb2; outline-offset: -2px; }
#chat-root .composer-choice-panel button > svg{ flex-shrink: 0; }
#chat-root .composer-choice-check{ margin-left: auto; }

@container coda (max-width: 680px){
  #chat-root .topbar.topbar-conversation{
    height: auto; min-height: 60px; flex: 0 0 auto;
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center; gap: 8px; padding: 8px 13px;
  }
  #chat-root .topbar-conversation .topbar-left > .test-release-badge,
#chat-root .topbar-conversation .topbar-market-toggle{ display: none; }
  #chat-root .topbar-conversation .topbar-left .icon-button{
    width: 44px; height: 44px;
  }
  #chat-root .topbar-conversation .product-menu-button{ min-height: 44px; }
  #chat-root .topbar-conversation .topbar-region-choice{ display: flex; min-width: 0; }
  #chat-root .topbar-region-choice .composer-choice-trigger{
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 0; min-height: 44px; padding: 0 8px;
    border: 1px solid #d5e4ec; border-radius: 8px;
    background: #fbfdff; color: #28617f; font: inherit; font-size: 14px;
    white-space: nowrap; cursor: pointer;
  }
  #chat-root .topbar-region-choice .composer-choice-trigger:focus-visible{
    outline: 2px solid #016bb2; outline-offset: 2px;
  }
  #chat-root .composer-surface .response-type-strip,
#chat-root .task-mode-grid,
#chat-root .composer .images-toggle,
#chat-root .composer .composer-mode-chip{ display: none; }
  #chat-root .composer,
#chat-root .composer.composer-welcome,
#chat-root .composer.composer-docked{
    flex-wrap: wrap; align-items: stretch; gap: 8px;
    min-height: 134px; padding: 12px; border-radius: 20px;
  }
  #chat-root .composer textarea,
#chat-root .composer-welcome textarea{
    width: 100%; flex: 1 0 100%; min-width: 0; min-height: 64px;
    max-height: 150px; padding: 3px 2px; font-size: 16px; line-height: 23px;
  }
  #chat-root .composer .composer-subjects{
    flex: 1 0 100%; width: 100%; max-width: none; flex-wrap: wrap;
  }
  #chat-root .composer .composer-subjects .subject-chip{ flex: 0 0 auto; max-width: none; }
  #chat-root .composer-toolbar{ display: flex; flex: 1 0 100%; align-items: center; gap: 10px; min-width: 0; }
  #chat-root .composer-answer-choice{ display: flex; flex: 1 1 auto; min-width: 0; margin-right: auto; }
  #chat-root .composer .composer-answer-choice .composer-choice-trigger,
#chat-root .composer .composer-answer-choice .composer-choice-trigger:hover:not(:disabled){
    width: auto; max-width: 100%; min-width: 0; flex: 0 1 auto; gap: 8px; padding-right: 4px;
    border: 0; border-radius: 0; background: transparent; color: #667c8b;
    font-size: 13px; font-weight: 400;
  }
  #chat-root .composer-answer-choice .composer-plus-icon{
    flex: 0 0 42px; width: 42px; height: 42px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50%;
    color: #016bb2; background: #edf5fa; border: 1px solid #d1e4ef;
  }
  #chat-root .composer-answer-label{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #chat-root .composer .composer-send{ flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; }

  /* Only ongoing conversations use the compact follow-up row. Settings stay mounted. */
  #chat-root .composer.composer-docked{
    display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center; gap: 8px; min-height: 60px; padding: 8px;
    border-radius: 18px;
  }
  #chat-root .composer-docked .composer-toolbar{ display: contents; }
  #chat-root .composer-docked .follow-up-options-toggle{
    display: inline-flex; grid-column: 1; grid-row: 1;
    align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border-radius: 50%;
    color: #016bb2; background: #edf5fa; border: 1px solid #d1e4ef;
  }
  #chat-root .composer-docked textarea{
    grid-column: 2; grid-row: 1; width: 100%; height: 29px;
    min-height: 29px; max-height: 75px; margin: 0; padding: 3px 2px;
    overflow-y: auto; resize: none; align-self: center;
  }
  #chat-root .composer-docked .composer-send{ grid-column: 3; grid-row: 1; }
  #chat-root .composer-docked .composer-answer-choice,
#chat-root .composer-docked .composer-intelligence-choice,
#chat-root .composer-docked .composer-subjects{ display: none; }
  #chat-root .composer-docked.follow-up-options-open .composer-answer-choice{
    display: flex; grid-column: 1 / 3; grid-row: 2;
  }
  #chat-root .composer-docked.follow-up-options-open .composer-intelligence-choice{
    display: flex; grid-column: 3; grid-row: 2;
  }
  #chat-root .composer-docked.follow-up-options-open .composer-subjects{
    display: flex; grid-column: 1 / -1; grid-row: 3;
    max-height: 80px; overflow-y: auto;
  }
}
#chat-root .rh-model-family{ display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; max-width: 100%; }
#chat-root .product-options:has(.rh-model-family){ align-items: flex-start; }
#chat-root .rh-model-options:not([hidden]){ display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
#chat-root .rh-model-prompt{ width: 100%; font-size: inherit; color: inherit; }


/* Independent, device-local reading preferences for each CoDA panel. */
#chat-root .sidebar-shell,
#chat-root .workspace,
#chat-root .product-sidebar{
  --coda-panel-text-scale: 1;
  /* The host's normal navigation text measures 16px at 100% browser zoom. */
  --coda-interface-font-size: calc(16px * var(--coda-panel-text-scale));
  --coda-message-font-size: calc(16px * var(--coda-panel-text-scale));
}
#chat-root .workspace{ container: coda-workspace / inline-size; }

#chat-root .panel-text-size-control{
  flex: 0 0 auto;
  align-self: center;
}
#chat-root .panel-text-size-control .panel-text-size-trigger{
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #647886;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
#chat-root .panel-text-size-control .panel-text-size-trigger:hover,
#chat-root .panel-text-size-control .panel-text-size-trigger[aria-expanded="true"]{
  color: #055485;
  background: #f2f6f8;
}
#chat-root .panel-text-size-control .panel-text-size-trigger:focus-visible{
  outline: 2px solid #016bb2;
  outline-offset: 2px;
}
#chat-root .panel-text-size-control .panel-text-size-icon{
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  margin: 0;
  color: inherit;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: none;
}
#chat-root .panel-text-size-control .panel-text-size-icon > span{
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
}
#chat-root .panel-text-size-control .panel-text-size-icon > span:last-child{ font-size: 17px; }
#chat-root .panel-text-size-popover{
  z-index: 75;
  box-sizing: border-box;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  background: #fff;
  color: #055485;
  box-shadow: 0 8px 32px rgba(7,44,75,.16);
}
#chat-root .panel-text-size-slider-row{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
#chat-root .panel-text-size-slider-row > span{ flex: 0 0 auto; line-height: 1; }
#chat-root .panel-text-small{ font-size: 14px; }
#chat-root .panel-text-large{ font-size: 26px; }
#chat-root .panel-text-size-slider-row input{
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #016bb2;
  cursor: pointer;
}
#chat-root .panel-text-size-slider-row input:focus-visible{
  outline: 2px solid #016bb2;
  outline-offset: 2px;
  border-radius: 5px;
}
#chat-root .panel-text-size-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
#chat-root .panel-text-size-footer output{ font-size: 13px; line-height: 44px; font-variant-numeric: tabular-nums; }
#chat-root .panel-text-size-footer button{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e4ec;
  border-radius: 6px;
  color: #055485;
  background: #fff;
  cursor: pointer;
}
#chat-root .panel-text-size-footer button:hover{ background: #edf5fa; }
#chat-root .panel-text-size-footer button:focus-visible{ outline: 2px solid #016bb2; outline-offset: 2px; }
#chat-root .sidebar-coda-brand > .panel-text-size-control{
  position: absolute;
  left: 0;
}
#chat-root .product-sidebar-head{ gap: 8px; }
#chat-root .product-sidebar-head > div:first-child{ min-width: 0; }
#chat-root .product-sidebar-head-actions{ flex: 0 0 auto; gap: 5px; }

/* Keep the desktop market control centred independently of the tools at either side. */
#chat-root .topbar{ gap: 10px; }
#chat-root .topbar-left{ flex: 0 0 auto; }
#chat-root .topbar-tools{ display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
#chat-root .topbar .topbar-market-toggle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  min-width: 0;
  flex: 0 1 380px;
  margin-left: 0;
}
#chat-root .market-toggle button{ overflow-wrap: normal; }

#chat-root .sidebar-shell .sidebar-name-card > label{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .sidebar-name-entry input{ font-size: var(--coda-interface-font-size); }
#chat-root .sidebar-shell .sidebar-name-entry button{ font-size: calc(14px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .sidebar-name-card p{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .new-chat-button{ font-size: var(--coda-interface-font-size); min-height: 44px; height: auto; line-height: 1.35; white-space: normal; }
#chat-root .sidebar-shell .history-heading{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .history-load-earlier{
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #dce7ee;
  border-radius: 7px;
  color: #055485;
  background: transparent;
  font-size: var(--coda-interface-font-size);
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  cursor: pointer;
}
#chat-root .sidebar-shell .history-load-earlier:hover:not(:disabled){ background: #edf5fa; }
#chat-root .sidebar-shell .history-load-earlier:focus-visible{ outline: 2px solid #016bb2; outline-offset: 2px; }
#chat-root .sidebar-shell .history-load-earlier:disabled{ opacity: .6; cursor: wait; }
#chat-root .sidebar-shell .history-item small{ font-size: calc(11px * var(--coda-panel-text-scale)); width: auto; min-width: 22px; height: auto; min-height: 17px; }
#chat-root .sidebar-shell .empty-history{ font-size: var(--coda-interface-font-size); }
#chat-root .sidebar-shell .history-sync-status{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .sidebar-footer strong{ font-size: calc(14px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .sidebar-footer span{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-shell .language-select select{ font-size: var(--coda-interface-font-size); }
#chat-root .sidebar-shell .sidebar-name-card,
#chat-root .sidebar-shell .new-chat-button,
#chat-root .sidebar-shell .history-sync-status,
#chat-root .sidebar-shell .sidebar-footer{ flex-shrink: 0; }

#chat-root .product-sidebar-head > div:first-child > span{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .product-sidebar-head h2{ font-size: calc(20px * var(--coda-panel-text-scale)); overflow-wrap: anywhere; }
#chat-root .product-sidebar-head strong{ font-size: calc(13px * var(--coda-panel-text-scale)); }
#chat-root .product-sidebar-help{ font-size: calc(14px * var(--coda-panel-text-scale)); }
#chat-root .product-sidebar .product-parent h3{ font-size: calc(18px * var(--coda-panel-text-scale)); }
#chat-root .product-sidebar .product-category h4,
#chat-root .product-sidebar .product-options button{ font-size: var(--coda-interface-font-size); }

#chat-root .workspace .message-meta strong{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-row.user .message-meta strong{ min-width: 0; max-width: min(55cqw, 260px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chat-root .workspace .message-meta span{ font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-subject-matter{ font-size: calc(13px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-row.assistant .answer-content h1{ font-size: calc(24px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-row.assistant .answer-content h2{ font-size: calc(22px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-row.assistant .answer-content h3{ font-size: calc(18px * var(--coda-panel-text-scale)); }
#chat-root .workspace .message-bubble .answer-progress,
#chat-root .workspace .message-bubble .answer-progress-line,
#chat-root .workspace .message-bubble .answer-reformat-title{ font-size: var(--coda-interface-font-size); }
#chat-root .workspace .composer textarea{ font-size: var(--coda-interface-font-size); line-height: 1.45; min-height: calc(1.45em + 18px); }
#chat-root .workspace .composer-welcome textarea{ min-height: calc(1.45em + 24px); }

/* Display-only startup welcome; follows the conversation reading-size control. */
#chat-root .workspace .coda-support-welcome .coda-welcome-greeting{
  max-width: 100%;
  margin: 0 0 22px;
  color: var(--condair-blue, #006eaf);
  font-size: calc(18px * var(--coda-panel-text-scale));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Mode buttons share the conversation's reading preference, including follow-ups. */
#chat-root .workspace .response-type-strip button{ font-size: calc(14px * var(--coda-panel-text-scale)); width: max-content; flex: 0 0 auto; white-space: nowrap; }
#chat-root .workspace .task-mode-grid > button{ font-size: calc(16px * var(--coda-panel-text-scale)); }
#chat-root .workspace .task-mode-tooltip{ font-size: calc(16px * var(--coda-panel-text-scale)); }
#chat-root .workspace .task-mode-label{ white-space: nowrap; overflow-wrap: normal; }

/* Language is a primary control; session metadata belongs in the history footer. */
#chat-root .topbar-language-select{ min-width: 0; max-width: 180px; flex: 0 1 auto; }
#chat-root .topbar-language-select select{ min-width: 0; max-width: 180px; font-size: var(--coda-interface-font-size); }
#chat-root .sidebar-session-tools{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; flex-shrink: 0; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e0e9ef;
}
#chat-root .sidebar-session-tools .test-release-badge{ max-width: 100%; font-size: calc(12px * var(--coda-panel-text-scale)); }
#chat-root .sidebar-session-tools .fresh-session-button{ display: inline-flex; align-items: center; font-size: calc(14px * var(--coda-panel-text-scale)); }

@container coda (max-width: 680px){
  #chat-root .topbar.topbar-conversation{ grid-template-columns: auto minmax(0, 1fr) auto; }
  /* The language icon opens the same native picker without widening the mobile bar. */
  #chat-root .topbar-language-select{ position: relative; width: 34px; height: 44px; padding: 0; justify-content: center; flex: 0 0 34px; }
  #chat-root .topbar-language-select select{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; font-size: 16px; }
  #chat-root .topbar-language-select > svg:last-child{ display: none; }
}

/* Respond to the conversation width, as well as the overall device width. */
@container coda (min-width: 681px){
  /* Keep each label intact at larger text sizes; wrap complete buttons, not words. */
  #chat-root .workspace .task-mode-grid{ display: flex; flex-wrap: wrap; justify-content: center; width: min(900px, 100%); }
  #chat-root .workspace .task-mode-grid > button{ flex: 0 0 auto; width: max-content; min-width: 110px; grid-template-columns: auto max-content; }
  #chat-root .topbar .topbar-market-toggle{ width: max-content; min-width: 380px; flex: 0 0 auto; }
  #chat-root .topbar .topbar-market-toggle button{ flex: 1 0 auto; white-space: nowrap; }
  @container coda-workspace (max-width: 900px){
    #chat-root .topbar .topbar-market-toggle{ display: none; }
    #chat-root .topbar-region-choice{ display: flex; margin-left: auto; }
    #chat-root .topbar-region-choice .composer-choice-trigger{
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 0 8px;
      border: 1px solid #d5e4ec;
      border-radius: 7px;
      color: #055485;
      background: #fbfdff;
      font: inherit;
      font-size: 12px;
      white-space: nowrap;
      cursor: pointer;
    }
  }
  @container coda-workspace (max-width: 640px){
    #chat-root .workspace .composer-welcome textarea{ height: 4.35em; }
  }
}

@container coda (max-width: 680px){
  /* Reuse the short market picker; full labels clip at the larger baseline. */
  #chat-root .topbar,
#chat-root .topbar.topbar-conversation{
    height: auto; min-height: 60px; flex: 0 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 8px; padding: 8px 13px;
  }
  #chat-root .topbar .topbar-left{ grid-column: 1; grid-row: 1; min-width: 0; }
  #chat-root .topbar .topbar-tools{ grid-column: 2; grid-row: 1; margin-left: 0; }
  #chat-root .topbar .topbar-market-toggle{ display: none; }
  #chat-root .topbar .topbar-region-choice{ display: flex; grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; margin: 0; }
  #chat-root .topbar .topbar-region-choice .composer-choice-trigger{ width: 100%; min-height: 44px; font-size: var(--coda-interface-font-size); }
  #chat-root .topbar-conversation .topbar-left{ min-width: 0; }
  #chat-root .topbar-tools{ gap: 5px; }
  #chat-root .workspace .composer textarea{ font-size: calc(16px * var(--coda-panel-text-scale)); }
  #chat-root .workspace .composer-docked textarea{ min-height: calc(1.45em + 6px); }
}


#chat-root .local-help-actions button{ min-height: 32px; padding: 8px 14px; font-size: calc(11.5px * var(--coda-panel-text-scale, 1)); line-height: 1.4; }
#chat-root .coda-help-tour{ position: absolute; inset: 0; z-index: 220; color: #334b60; font-family: var(--font-body); font-size: calc(16px * var(--coda-help-text-scale, 1)); line-height: 1.45; overflow: hidden; isolation: isolate; }
#chat-root .coda-help-pointers{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#chat-root .coda-help-dimmer{ fill: rgb(25 52 69 / 24%); }
#chat-root .coda-help-connector{ fill: none; stroke: #0071bb; stroke-width: 1.5; }
#chat-root .coda-help-target{ fill: none; stroke: #0071bb; stroke-width: 2; }
#chat-root .coda-help-target-badge{ fill: #0071bb; stroke: white; stroke-width: 1.5; }
#chat-root .coda-help-target-number{ fill: white; text-anchor: middle; font-size: 12px; font-weight: 600; }
#chat-root .coda-help-content{ position: absolute; top: var(--coda-help-top, 92px); bottom: var(--coda-help-bottom, 110px); left: var(--coda-help-left, 20px); right: var(--coda-help-right, 20px); z-index: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; max-width: 480px; margin-inline: auto; gap: 12px; }
#chat-root .coda-help-header{ display: flex; align-items: center; flex-wrap: wrap; flex: none; gap: 10px; padding: 9px 12px; border: 1px solid #cce1ed; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgb(25 52 69 / 10%); }
#chat-root .coda-help-header h2{ flex: 1; min-width: 0; margin: 0; color: #006bb1; font-size: 1.1em; font-weight: 600; overflow-wrap: anywhere; }
#chat-root .coda-help-tour button{ min-height: 40px; padding: 7px 11px; color: #006bb1; background: #fff; border: 1px solid #cce1ed; border-radius: 7px; font: inherit; line-height: 1.3; cursor: pointer; }
#chat-root .coda-help-tour button:hover{ background: #f0f8fc; }
#chat-root .coda-help-tour button:disabled{ opacity: .5; cursor: default; }
#chat-root .coda-help-tour button:focus-visible,
#chat-root .coda-help-cards:focus-visible{ outline: 3px solid #0088dc; outline-offset: 2px; }
#chat-root .coda-help-close{ display: flex; align-items: center; justify-content: center; gap: 10px; }
#chat-root .coda-help-close span{ font-size: 1.35em; line-height: 1; }
#chat-root .coda-help-progress{ color: #617c91; white-space: nowrap; font-size: .9em; }
#chat-root .coda-help-cards{ display: block; min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px 4px 6px; scrollbar-width: thin; }
#chat-root .coda-help-card{ min-width: 0; padding: 12px 14px; border: 1px solid #1784c9; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgb(25 52 69 / 11%); }
#chat-root .coda-help-card h3{ display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: #006bb1; font-size: 1em; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
#chat-root .coda-help-card-number{ display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75em; height: 1.75em; color: #fff; background: #0071bb; border-radius: 50%; font-size: .9em; font-weight: 500; }
#chat-root .coda-help-card p{ margin: 0; font-size: 1em; overflow-wrap: anywhere; }
#chat-root .coda-help-navigation{ display: flex; flex: none; justify-content: space-between; gap: 12px; }
#chat-root .coda-help-tour .coda-help-next{ color: #fff; background: #006bb1; border-color: #006bb1; }
#chat-root .coda-help-tour .coda-help-next:hover{ background: #005992; }
#chat-root .composer-choice-panel.coda-help-menu{ z-index: 219; }
@container coda (max-width: 680px){
  #chat-root .coda-help-content{ top: var(--coda-help-top, 122px); bottom: var(--coda-help-bottom, 155px); gap: 10px; }
  #chat-root .coda-help-header{ padding: 8px 10px; gap: 7px; }
  #chat-root .coda-help-cards{ display: block; }
  #chat-root .coda-help-card{ padding: 16px; }
  #chat-root .coda-help-tour button{ min-height: 44px; }
}


#chat-root .local-help-actions{ display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
#chat-root .local-help-actions .coda-install-trigger{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #006bb1; }
#chat-root .coda-install-overlay{ position: absolute; inset: 0; z-index: 230; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(25 52 69 / 36%); }
#chat-root .coda-install-dialog{ width: min(100%, 460px); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 20px; border: 1px solid #cce1ed; border-radius: 14px; background: #fff; color: #334b60; box-shadow: 0 8px 40px rgb(25 52 69 / 22%); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
#chat-root .coda-install-heading{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#chat-root .coda-install-heading h2{ margin: 0; color: #006bb1; font-size: 20px; line-height: 1.25; font-weight: 600; }
#chat-root .coda-install-dialog button,
#chat-root .coda-install-primary{ display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid #cce1ed; border-radius: 7px; background: #fff; color: #006bb1; font: inherit; line-height: 1.3; cursor: pointer; text-decoration: none; }
#chat-root .coda-install-heading button{ flex: none; min-width: 40px; font-size: 24px; padding: 2px; line-height: 1; }
#chat-root .coda-install-dialog ol{ margin: 18px 0; padding-left: 24px; }
#chat-root .coda-install-dialog li{ padding-left: 3px; margin: 8px 0; }
#chat-root .coda-install-dialog p{ margin: 12px 0; }
#chat-root .coda-install-dialog .coda-install-primary{ color: #fff; background: #006bb1; border-color: #006bb1; }
#chat-root .coda-install-dialog button:hover{ background: #edf7fc; }
#chat-root .coda-install-dialog .coda-install-primary:hover{ color: #fff; background: #005992; }
#chat-root .coda-install-dialog button:disabled{ opacity: .6; cursor: wait; }
#chat-root .coda-install-dialog button:focus-visible,
#chat-root .coda-install-dialog a:focus-visible,
#chat-root .coda-install-url:focus{ outline: 3px solid #0088dc; outline-offset: 2px; }
#chat-root .coda-install-native,
#chat-root .coda-install-status,
#chat-root .coda-install-bookmark{ padding: 10px 12px; border-radius: 7px; background: #edf7fc; }
#chat-root .coda-install-native p{ margin-top: 0; }
#chat-root .coda-install-link-tools{ display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
#chat-root .coda-install-url{ width: 100%; min-width: 0; padding: 8px; border: 1px solid #cce1ed; border-radius: 5px; background: #f6fafc; color: #334b60; font: inherit; }
#chat-root .coda-install-dialog .coda-install-help{ width: 100%; margin-top: 4px; }
@container coda (max-width: 680px){
  #chat-root .coda-install-overlay{ padding: 12px; }
  #chat-root .coda-install-dialog{ padding: 16px; font-size: 14px; }
  #chat-root .coda-install-dialog button,
#chat-root .coda-install-primary{ min-height: 44px; }
}

#chat-root .coda-install-trigger-slot{ display: contents; }
/* CoDA v2.4 middle-section styles; host surround excluded. */
#chat-root {
  --font-body: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  display: block;
  position: relative;
  width: 100%;
  height: var(--coda-chat-height, 780px);
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  container-name: coda;
  font-family: var(--font-body);
}

#chat-root .app-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
}

