/* Evidence Library search and agent workspace */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.el-console {
  --el-ink: #122033;
  --el-teal: #087d74;
  --el-teal-dark: #05665f;
  --el-mint: #e9f5f2;
  --el-coral: #e65f4b;
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: clamp(-1.4rem, -2vw, -.8rem) auto clamp(2rem, 5vw, 4rem);
  padding: 0 clamp(1rem, 5vw, 5rem);
}
.el-console-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid #c9d8d4;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #f5faf8;
  box-shadow: 0 22px 50px rgba(18, 32, 51, .11);
}
.el-kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .65rem;
  color: var(--el-teal);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.el-kicker span { font-size: 1.1rem; }
.el-console-header h2 {
  max-width: 760px;
  margin: 0;
  color: var(--el-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.el-console-header > div > p:last-child {
  max-width: 760px;
  margin: .9rem 0 0;
  color: #526273;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}
.el-console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ccd9d6;
  border-radius: 10px;
  background: #fff;
}
.el-console-metrics span {
  min-width: 0;
  padding: .8rem .65rem;
  color: #637181;
  font-size: .7rem;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.el-console-metrics span + span { border-left: 1px solid #dbe4e2; }
.el-console-metrics strong {
  display: block;
  margin-bottom: .18rem;
  color: var(--el-ink);
  font-size: .9rem;
  text-transform: none;
}
.el-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid #c9d8d4;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(18, 32, 51, .11);
}
.el-search { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); }
.el-section-heading,
.el-section-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}
.el-section-heading { margin-bottom: 1rem; }
.el-step-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--el-ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
}
.el-section-heading h3 { margin: 0; color: var(--el-ink); font-size: 1.25rem; }
.el-section-heading kbd {
  padding: .35rem .55rem;
  border: 1px solid #d5dfdc;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f7f9f8;
  color: #61707e;
  font: inherit;
  font-size: .7rem;
}
.el-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.el-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0 .55rem 0 .85rem;
  border: 1px solid #becdca;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(18, 32, 51, .04);
}
.el-search-field:focus-within { border-color: var(--el-teal); box-shadow: 0 0 0 3px rgba(8, 125, 116, .12); }
.el-search-symbol { color: var(--el-teal); font-size: 1.35rem; }
.el-search-field input {
  width: 100%;
  min-width: 0;
  padding: .8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--el-ink);
  font: inherit;
}
.el-search-field button,
.el-filter-label button {
  border: 0;
  background: transparent;
  color: var(--el-teal);
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}
.el-primary-button,
.el-agent-send {
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1px solid var(--el-ink, #122033);
  border-radius: 10px;
  background: var(--el-ink, #122033);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.el-primary-button:hover,
.el-primary-button:focus-visible,
.el-agent-send:hover,
.el-agent-send:focus-visible { background: #20354d; outline: 3px solid rgba(8, 125, 116, .16); }
.el-family-filter { margin-top: 1rem; }
.el-filter-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; color: #5a6977; font-size: .78rem; font-weight: 800; }
.el-family-pills { display: flex; flex-wrap: wrap; gap: .42rem; }
.el-family-pill {
  min-height: 34px;
  padding: .4rem .62rem;
  border: 1px solid #d4dfdc;
  border-radius: 999px;
  background: #f7faf9;
  color: #405263;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.el-family-pill:hover,
.el-family-pill:focus-visible { border-color: var(--el-teal); outline: none; }
.el-family-pill[aria-pressed="true"] { border-color: var(--el-teal); background: var(--el-teal); color: #fff; }
.el-search-meta { min-height: 1.3rem; margin: 1rem 0 .7rem; color: #647380; font-size: .78rem; font-weight: 750; }
.el-inline-loader {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .3rem;
  border: 2px solid #bbd4cf;
  border-top-color: var(--el-teal);
  border-radius: 50%;
  animation: el-spin .8s linear infinite;
}
@keyframes el-spin { to { transform: rotate(360deg); } }

.el-search-results { display: grid; gap: .65rem; }
.el-result-card {
  padding: 1rem;
  border: 1px solid #d6e0dd;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.el-result-card:hover { border-color: #9bc5bf; box-shadow: 0 12px 28px rgba(18, 32, 51, .08); transform: translateY(-1px); }
.el-result-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--el-teal); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.el-result-topline span:last-child { color: #6a7783; }
.el-result-card h4 { margin: .55rem 0 .35rem; font-size: 1.05rem; line-height: 1.25; }
.el-result-card h4 a { color: var(--el-ink); text-decoration: none; }
.el-result-card h4 a:hover { color: var(--el-teal); }
.el-result-card p { margin: 0; color: #566675; font-size: .85rem; line-height: 1.5; }
.el-result-card mark { padding: 0 .08em; background: #fff1b9; color: inherit; }
.el-result-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .75rem; }
.el-result-actions a,
.el-result-actions button {
  border: 0;
  background: transparent;
  color: var(--el-teal);
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.el-result-actions button { color: #4d5d6d; }
.el-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1.5rem;
  border: 1px dashed #c8d6d3;
  border-radius: 10px;
  background: #f8fbfa;
  color: #526273;
  text-align: center;
}
.el-empty > span { color: var(--el-teal); font-size: 2rem; }
.el-empty strong { color: var(--el-ink); font-size: 1rem; }
.el-empty p { max-width: 540px; margin: .35rem 0 .8rem; font-size: .86rem; line-height: 1.5; }
.el-empty > button,
.el-example-queries button,
.el-load-more {
  padding: .48rem .68rem;
  border: 1px solid #cad7d4;
  border-radius: 8px;
  background: #fff;
  color: var(--el-teal);
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}
.el-example-queries { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.el-load-more { width: 100%; margin-top: .7rem; }
.el-agent-shell {
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr) auto auto auto;
  min-width: 0;
  border-left: 1px solid #d6e0dd;
  background: var(--el-ink);
  color: #fff;
}
.el-agent-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.2rem .7rem; }
.el-agent-identity { display: flex; align-items: center; gap: .7rem; }
.el-agent-identity > span,
.el-record-agent-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.09);
  color: #ffd45e;
}
.el-agent-identity p { margin: 0 0 .18rem; color: #80d7cc; font-size: .64rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.el-agent-identity h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.el-agent-header > button,
.el-dialog-close {
  padding: .4rem .6rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  color: #dce6ec;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.el-agent-capabilities { display: flex; flex-wrap: wrap; gap: .45rem .75rem; padding: 0 1.2rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #c4d1da; font-size: .68rem; }
.el-agent-capabilities span { display: flex; align-items: center; gap: .35rem; }
.el-agent-capabilities i { width: .4rem; height: .4rem; border-radius: 50%; background: #79d6ca; box-shadow: 0 0 0 3px rgba(121,214,202,.12); }
.el-agent-messages {
  display: grid;
  align-content: start;
  gap: .9rem;
  min-height: 0;
  max-height: 600px;
  overflow: auto;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.el-agent-message { display: grid; gap: .38rem; max-width: 94%; }
.el-agent-message-user { justify-self: end; }
.el-message-label { color: #98abb9; font-size: .65rem; font-weight: 850; }
.el-agent-message-user .el-message-label { text-align: right; }
.el-message-bubble { padding: .75rem .85rem; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.075); color: #edf3f5; font-size: .84rem; line-height: 1.55; white-space: pre-wrap; }
.el-agent-message-user .el-message-bubble { border-color: #198e84; background: #087d74; color: #fff; }
.el-tool-steps { display: grid; gap: .32rem; margin-top: .15rem; }
.el-tool-step { display: flex; align-items: center; gap: .55rem; padding: .48rem .55rem; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.035); }
.el-tool-state { width: .55rem; height: .55rem; flex: 0 0 auto; border: 2px solid #718493; border-radius: 50%; }
.el-tool-step.is-running .el-tool-state { border-color: #789189; border-top-color: #ffd45e; animation: el-spin .8s linear infinite; }
.el-tool-step.is-done .el-tool-state { border-color: #7ad5c9; background: #7ad5c9; box-shadow: 0 0 0 3px rgba(122,213,201,.12); }
.el-tool-step.is-error .el-tool-state { border-color: #ff8d78; background: #ff8d78; }
.el-tool-step strong { display: block; color: #e8eef2; font-size: .72rem; }
.el-tool-step small { display: block; margin-top: .08rem; color: #93a6b4; font-size: .65rem; }
.el-agent-sources { display: grid; gap: .4rem; margin-top: .15rem; }
.el-sources-heading { color: #91a4b2; font-size: .68rem; text-transform: uppercase; }
.el-agent-sources a { display: grid; gap: .15rem; padding: .58rem .65rem; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.045); color: #fff; text-decoration: none; }
.el-agent-sources a:hover { border-color: #65c7bb; background: rgba(101,199,187,.09); }
.el-agent-sources a span { color: #7ad5c9; font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.el-agent-sources a strong { font-size: .74rem; line-height: 1.3; }
.el-agent-sources a small { color: #aebdc7; font-size: .65rem; }

.el-agent-suggestions { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); }
.el-agent-suggestions button {
  flex: 0 0 auto;
  max-width: 220px;
  padding: .48rem .6rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #d9e4e9;
  font: inherit;
  font-size: .66rem;
  font-weight: 750;
  cursor: pointer;
}
.el-agent-suggestions button:hover { border-color: #73cec3; color: #fff; }
.el-agent-form { display: grid; gap: .6rem; padding: .8rem 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.el-agent-form label:not(.el-model-toggle) { display: block; }
.el-agent-form textarea {
  width: 100%;
  min-height: 68px;
  max-height: 150px;
  resize: vertical;
  padding: .7rem .8rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  outline: 0;
  background: rgba(255,255,255,.075);
  color: #fff;
  font: inherit;
  font-size: .84rem;
}
.el-agent-form textarea::placeholder { color: #92a5b2; }
.el-agent-form textarea:focus { border-color: #72cec2; box-shadow: 0 0 0 3px rgba(114,206,194,.12); }
.el-agent-form-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.el-model-toggle { display: flex; align-items: center; gap: .45rem; color: #aebdc7; font-size: .66rem; cursor: pointer; }
.el-model-toggle input { accent-color: #65c7bb; }
.el-agent-send { display: inline-flex; align-items: center; gap: .6rem; min-height: 42px; padding: .55rem .75rem; border-color: #65c7bb; background: #65c7bb; color: #102332; }
.el-agent-send:disabled { cursor: wait; opacity: .55; }
.el-agent-disclaimer { margin: 0; padding: 0 1.2rem 1rem; color: #91a4b2; font-size: .62rem; line-height: 1.45; }
.el-record-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid #bfd8d3;
  border-radius: 10px;
  background: linear-gradient(100deg, #edf7f5, #fff9e8);
}
.el-record-callout > div { display: flex; align-items: center; gap: .8rem; }
.el-record-agent-mark { border-color: rgba(8,125,116,.18); background: #087d74; }
.el-record-callout strong { display: block; color: #122033; font-size: 1rem; }
.el-record-callout p { margin: .2rem 0 0; color: #526273; font-size: .82rem; }
.el-record-callout .el-primary-button { min-height: 44px; flex: 0 0 auto; }
.el-agent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 17, 29, .66);
  backdrop-filter: blur(8px);
}
.el-agent-overlay[hidden] { display: none; }
.el-agent-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: #122033;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
  color: #fff;
}
.el-agent-dialog > [data-el-agent-root] { display: grid; grid-template-rows: auto auto minmax(260px, 1fr) auto auto auto; min-height: min(720px, calc(100svh - 2rem)); }
.el-dialog-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; }
.el-agent-dialog .el-agent-header { padding-right: 5.5rem; }
body.el-agent-open { overflow: hidden; }

@media (max-width: 1050px) {
  .el-console-header { grid-template-columns: 1fr; }
  .el-console-grid { grid-template-columns: 1fr; }
  .el-agent-shell { min-height: 680px; border-top: 1px solid #d6e0dd; border-left: 0; }
  .el-agent-messages { max-height: 520px; }
}
@media (max-width: 700px) {
  .el-console { margin-top: 0; padding: 0 .75rem; }
  .el-console-header { border-radius: 12px 12px 0 0; }
  .el-console-header h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .el-console-metrics { grid-template-columns: 1fr; }
  .el-console-metrics span + span { border-top: 1px solid #dbe4e2; border-left: 0; }
  .el-search-form { grid-template-columns: 1fr; }
  .el-primary-button { width: 100%; }
  .el-section-heading kbd { display: none; }
  .el-result-actions { align-items: flex-start; flex-direction: column; }
  .el-agent-form-row { align-items: stretch; flex-direction: column; }
  .el-agent-send { justify-content: center; width: 100%; }
  .el-record-callout { align-items: stretch; flex-direction: column; margin-right: 1rem; margin-left: 1rem; }
  .el-record-callout .el-primary-button { width: 100%; }
  .el-agent-overlay { padding: 0; }
  .el-agent-dialog { width: 100%; max-height: 100svh; border: 0; border-radius: 0; }
  .el-agent-dialog > [data-el-agent-root] { min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .el-inline-loader,
  .el-tool-step.is-running .el-tool-state { animation-duration: 1.8s; }
  .el-result-card { transition: none; }
}

.ai-home-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  margin: 0 clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(0, 122, 120, .2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 122, 120, .12), rgba(255, 212, 94, .12)),
    var(--white);
  box-shadow: 0 18px 44px rgba(20, 33, 61, .1);
}
.ai-home-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}
.ai-home-band p:not(.eyebrow) {
  max-width: 760px;
  margin: .8rem 0 0;
  color: #41536b;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}
.ai-home-prompts {
  display: grid;
  gap: .7rem;
}
.ai-home-prompts a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .84);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.ai-home-prompts a:hover,
.ai-home-prompts a:focus-visible {
  border-color: rgba(0, 122, 120, .4);
  background: var(--mist);
  outline: none;
}
.ai-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(120deg, rgba(0, 122, 120, .18), rgba(255, 212, 94, .12)),
    rgba(255, 255, 255, .72);
}
.ai-page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .95;
}
.ai-page-hero > div > p:not(.eyebrow):not(.disclosure-inline) {
  max-width: 760px;
  color: #41536b;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.ai-page-model-card {
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: .75rem;
  padding: 1.25rem;
  border: 1px solid rgba(20, 33, 61, .16);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.ai-page-model-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  color: var(--lemon);
}
.ai-page-model-card .ui-icon {
  width: 1.6rem;
  height: 1.6rem;
}
.ai-page-model-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}
.ai-page-model-card p {
  margin: 0;
  color: #d9e1ec;
}
.ai-page-image-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}
.ai-page-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-page-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 38, .05), rgba(9, 20, 38, .86));
}
.ai-page-image-card figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .75rem;
  align-self: end;
  padding: 1.25rem;
}
.ai-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
}
.ai-ops-grid article {
  min-height: 230px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.ai-ops-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(0, 122, 120, .18);
  border-radius: var(--radius);
  background: rgba(0, 122, 120, .08);
  color: var(--teal);
}
.ai-ops-grid h2 {
  margin: 1rem 0 .45rem;
  font-size: 1.45rem;
  line-height: 1.1;
}
.ai-ops-grid p {
  color: #52647a;
}
.ai-ops-grid button {
  min-height: 38px;
  padding: .55rem .72rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.ai-page-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}
.ai-page-side {
  position: sticky;
  top: 96px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.ai-page-side h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  line-height: 1.1;
}
.ai-page-side p {
  margin: 0 0 1rem;
  color: #52647a;
}
.ai-page-lab {
  display: grid;
  gap: 1.25rem;
}
.ai-page-lab section + section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sr-ai-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 54px;
  padding: .82rem 1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.sr-ai-launcher:hover,
.sr-ai-launcher:focus-visible {
  background: #1a2e62;
  outline: none;
}
.sr-ai-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 212, 94, .16);
  color: var(--lemon);
}
.sr-ai-launcher-icon .ui-icon {
  width: 1rem;
  height: 1rem;
}
.sr-ai-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 68px);
  z-index: 60;
  width: min(430px, calc(100vw - 2rem));
  max-height: min(720px, calc(100svh - 104px));
  display: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.sr-ai-widget.is-open {
  display: block;
}
.sr-ai-chat {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, .16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.sr-ai-chat-page {
  min-height: 720px;
  box-shadow: var(--shadow);
}
.sr-ai-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--white);
}
.sr-ai-title {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.sr-ai-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  color: var(--lemon);
}
.sr-ai-title-icon .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.sr-ai-title h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}
.sr-ai-title p,
.sr-ai-status {
  margin: .25rem 0 0;
  color: #d9e1ec;
  font-size: .88rem;
  line-height: 1.35;
}
.sr-ai-close {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.sr-ai-close:hover,
.sr-ai-close:focus-visible {
  background: rgba(255, 255, 255, .16);
  outline: none;
}
.sr-ai-messages {
  display: grid;
  align-content: start;
  gap: .85rem;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(237, 248, 246, .62), rgba(255, 255, 255, .9));
}
.sr-ai-message {
  display: grid;
  gap: .45rem;
  max-width: min(92%, 720px);
}
.sr-ai-message-user {
  justify-self: end;
}
.sr-ai-message-assistant {
  justify-self: start;
}
.sr-ai-bubble {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #263850;
  white-space: pre-wrap;
}
.sr-ai-message-user .sr-ai-bubble {
  border-color: rgba(0, 122, 120, .24);
  background: var(--teal);
  color: var(--white);
}
.sr-ai-suggestion-links {
  display: grid;
  gap: .45rem;
}
.sr-ai-suggestion-links a {
  display: block;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.sr-ai-suggestion-links a span {
  display: block;
  margin-bottom: .15rem;
  color: var(--coral);
  font-size: .72rem;
  text-transform: uppercase;
}
.sr-ai-suggestion-links a:hover,
.sr-ai-suggestion-links a:focus-visible {
  border-color: rgba(0, 122, 120, .36);
  background: var(--mist);
  outline: none;
}
.sr-ai-composer {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.sr-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.sr-ai-chip,
.sr-ai-product-button {
  min-height: 44px;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #f8fbfb;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}
.sr-ai-chip:hover,
.sr-ai-chip:focus-visible,
.sr-ai-product-button:hover,
.sr-ai-product-button:focus-visible {
  border-color: rgba(0, 122, 120, .36);
  background: var(--mist);
  outline: none;
}
.sr-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: end;
}
.sr-ai-input {
  min-height: 52px;
  max-height: 140px;
  resize: vertical;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.sr-ai-input:focus {
  border-color: rgba(0, 122, 120, .5);
  outline: 3px solid rgba(0, 122, 120, .12);
}
.sr-ai-send {
  min-height: 52px;
  min-width: 76px;
  padding: .75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.sr-ai-send:disabled {
  cursor: wait;
  opacity: .68;
}
.sr-ai-disclaimer {
  margin: 0;
  color: #607086;
  font-size: .8rem;
  line-height: 1.35;
}
.sr-ai-product-search {
  display: grid;
  gap: .65rem;
}
.sr-ai-product-search label {
  font-weight: 850;
}
.sr-ai-product-search input {
  min-height: 46px;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.sr-ai-product-results {
  display: grid;
  gap: .55rem;
  max-height: 560px;
  overflow: auto;
}
.sr-ai-product-result {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}
.sr-ai-product-result strong {
  line-height: 1.15;
}
.sr-ai-product-result span {
  color: #667085;
  font-size: .82rem;
  font-weight: 800;
}
.sr-ai-fit-form {
  display: grid;
  gap: .65rem;
}
.sr-ai-fit-form label {
  font-weight: 850;
}
.sr-ai-fit-form textarea,
.sr-ai-fit-form select {
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.sr-ai-fit-form textarea {
  resize: vertical;
}
.sr-ai-fit-results {
  margin-top: .8rem;
}
.sr-ai-fit-brief {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid rgba(0, 122, 120, .2);
  border-radius: var(--radius);
  background: rgba(237, 248, 246, .72);
}
.sr-ai-fit-brief > strong {
  font-size: 1rem;
  line-height: 1.1;
}
.sr-ai-fit-brief p {
  margin: 0;
  color: #52647a;
  font-size: .88rem;
}
.sr-ai-fit-list {
  display: grid;
  gap: .45rem;
}
.sr-ai-fit-list a {
  display: grid;
  gap: .15rem;
  padding: .58rem .65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--white);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}
.sr-ai-fit-list span {
  color: var(--coral);
  font-size: .72rem;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .ai-home-band,
  .ai-page-hero,
  .ai-page-workspace,
  .ai-ops-grid {
    grid-template-columns: 1fr;
  }
  .ai-page-side {
    position: static;
  }
}
@media (max-width: 760px) {
  body.is-mobile-nav-open .sr-ai-launcher,
  body.is-mobile-nav-open .sr-ai-widget {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem);
  }
  .sr-ai-launcher {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    justify-content: center;
  }
  .sr-ai-widget {
    left: max(.75rem, env(safe-area-inset-left));
    right: max(.75rem, env(safe-area-inset-right));
    bottom: calc(max(.75rem, env(safe-area-inset-bottom)) + 68px);
    width: auto;
    max-height: calc(100svh - 92px);
  }
  .sr-ai-chat {
    min-height: min(620px, calc(100svh - 92px));
  }
  .sr-ai-form {
    grid-template-columns: 1fr;
  }
  .sr-ai-send {
    width: 100%;
  }
}
