/* ======================================================================
   AKFA PLAST AI LABORATORY 0.7.1
   Chat-first one-screen product intelligence interface.
   No generated imagery: UI visuals are HTML, CSS and inline SVG.
   ====================================================================== */

:root {
  --v7-red: #ed1c24;
  --v7-red-deep: #c71018;
  --v7-red-soft: #fff0f1;
  --v7-ink: #171719;
  --v7-ink-2: #2b2b2f;
  --v7-muted: #73747c;
  --v7-muted-2: #9a9ba2;
  --v7-paper: #f3f4f6;
  --v7-panel: #fff;
  --v7-line: rgba(22, 22, 25, .105);
  --v7-line-strong: rgba(22, 22, 25, .17);
  --v7-dark: #1e1e21;
  --v7-dark-2: #29292d;
  --v7-success: #1fa76d;
  --v7-warning: #df9220;
  --v7-radius-xl: 26px;
  --v7-radius-lg: 20px;
  --v7-radius-md: 14px;
  --v7-shadow: 0 24px 70px rgba(26, 27, 31, .11);
  --v7-shadow-soft: 0 10px 32px rgba(26, 27, 31, .07);
  --v7-ease: cubic-bezier(.16, 1, .3, 1);
  --v7-topbar: 76px;
  --topbar: var(--v7-topbar);
}

html:has(body.v7-chat-first),
body.v7-chat-first {
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}

body.v7-chat-first {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(237, 28, 36, .065), transparent 25%),
    radial-gradient(circle at 92% 76%, rgba(33, 37, 45, .055), transparent 27%),
    #f2f3f5;
  color: var(--v7-ink);
}

body.v7-chat-first::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .68;
  background-image:
    linear-gradient(rgba(26, 27, 31, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 27, 31, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 82%);
}

body.v7-chat-first::after {
  content: "AI";
  position: fixed;
  left: -4vw;
  bottom: -12vh;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 28, 36, .04);
  font-size: min(42vw, 600px);
  font-weight: 950;
  line-height: .75;
  letter-spacing: -.12em;
  pointer-events: none;
}

body.v7-chat-first .site-grid,
body.v7-chat-first .cursor-light,
body.v7-chat-first .scroll-progress,
body.v7-chat-first .ai-floating-button,
body.v7-chat-first .mobile-dock { display: none !important; }

/* Header --------------------------------------------------------------- */
.v7-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  height: var(--v7-topbar);
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(210px, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.6vw, 44px);
  padding: 0 clamp(16px, 2.4vw, 42px);
  border-bottom: 1px solid var(--v7-line);
  background: rgba(255, 255, 255, .89);
  backdrop-filter: blur(26px) saturate(145%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .86);
}

.v7-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--v7-ink);
  text-decoration: none;
}
.v7-brand img {
  width: clamp(118px, 8.3vw, 150px);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.v7-brand > span {
  min-width: 82px;
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--v7-line-strong);
  line-height: 1;
}
.v7-brand strong { font-size: 15px; font-weight: 900; letter-spacing: -.025em; }
.v7-brand small {
  color: var(--v7-red);
  font: 850 7px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
  white-space: nowrap;
}

.v7-top-context {
  justify-self: start;
  min-width: 0;
  display: grid;
  grid-template-columns: 8px auto;
  align-items: center;
  column-gap: 9px;
  line-height: 1.1;
}
.v7-top-context strong { font-size: 11px; font-weight: 850; }
.v7-top-context small {
  grid-column: 2;
  max-width: 240px;
  overflow: hidden;
  color: var(--v7-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v7-live-dot {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v7-success);
  box-shadow: 0 0 0 5px rgba(31, 167, 109, .11), 0 0 16px rgba(31, 167, 109, .28);
  animation: v7-live 2.2s ease-in-out infinite;
}

.v7-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.v7-top-link,
.v7-command,
.v7-language,
.v7-hidden-search,
.v7-topbar .install-button {
  border: 1px solid var(--v7-line);
  background: rgba(255, 255, 255, .82);
  color: var(--v7-ink);
  box-shadow: none;
}
.v7-top-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 780;
  cursor: pointer;
  transition: transform .25s var(--v7-ease), border-color .25s ease, background .25s ease;
}
.v7-top-link:hover { transform: translateY(-1px); border-color: rgba(237, 28, 36, .3); background: #fff4f5; }
.v7-top-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-top-link b {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--v7-paper);
  color: var(--v7-muted);
  font-size: 7px;
}
.v7-product-button { border-color: rgba(237, 28, 36, .18); color: var(--v7-red-deep); }
.v7-command { min-width: 52px; height: 40px; border-radius: 12px; padding: 0 10px; }
.v7-command span { font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-language { width: 70px; height: 40px; }
.v7-language i { height: 32px; background: var(--v7-dark); }
.v7-language span:first-child { color: #fff; }
.v7-language.is-uz span:first-child { color: var(--v7-muted); }
.v7-language.is-uz span:last-child { color: #fff; }
.v7-hidden-search { display: none; }

/* One-screen shell ----------------------------------------------------- */
.v7-ai-screen {
  position: relative;
  isolation: isolate;
  width: min(100%, 1920px);
  height: calc(var(--v7-vh, 1vh) * 100);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(238px, .31fr) minmax(560px, 1fr) minmax(248px, .32fr);
  gap: clamp(10px, 1vw, 18px);
  padding: calc(var(--v7-topbar) + 14px) clamp(13px, 1.7vw, 30px) 14px;
  overflow: hidden;
}
.v7-ai-screen::before {
  content: "";
  position: absolute;
  inset: var(--v7-topbar) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,.42) 47%, transparent 66%),
    radial-gradient(circle at 54% 22%, rgba(237,28,36,.035), transparent 34%);
  animation: v7-ambient 10s ease-in-out infinite alternate;
}

.v7-knowledge-rail,
.v7-product-chat,
.v7-product-context {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--v7-line);
  border-radius: var(--v7-radius-xl);
  overflow: hidden;
  box-shadow: var(--v7-shadow-soft);
}

/* Left knowledge rail ------------------------------------------------- */
.v7-knowledge-rail {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 20px);
  padding: clamp(20px, 2vw, 30px);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}
.v7-rail-copy { display: grid; gap: 13px; }
.v7-eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.v7-eyebrow span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--v7-red);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(237, 28, 36, .2);
}
.v7-eyebrow b { color: var(--v7-muted); font-size: 8px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.v7-rail-copy h1 {
  max-width: 330px;
  margin: 0;
  color: var(--v7-ink);
  font-size: clamp(25px, 2.05vw, 38px);
  line-height: .98;
  letter-spacing: -.055em;
}
.v7-rail-copy p { margin: 0; color: var(--v7-muted); font-size: clamp(9px, .72vw, 11.5px); line-height: 1.64; }

.v7-stat-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--v7-line); border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.72); }
.v7-stat-grid article { min-height: 66px; display: grid; align-content: center; gap: 2px; padding: 11px; border-right: 1px solid var(--v7-line); border-bottom: 1px solid var(--v7-line); }
.v7-stat-grid article:nth-child(2n) { border-right: 0; }
.v7-stat-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.v7-stat-grid strong { font-size: clamp(15px, 1.4vw, 22px); line-height: 1; letter-spacing: -.04em; }
.v7-stat-grid span { color: var(--v7-muted); font-size: 6.8px; line-height: 1.3; }

.v7-category-list { display: grid; gap: 7px; }
.v7-category-list > small,
.v7-context-actions > small { color: var(--v7-muted-2); font: 850 6.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.v7-category-list button {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--v7-ease), background .25s ease, border-color .25s ease;
}
.v7-category-list button:hover { transform: translateX(3px); border-color: var(--v7-line); background: #fff; }
.v7-category-symbol { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--v7-paper); color: var(--v7-red); font-size: 13px; }
.v7-category-list b { font-size: 8.5px; }
.v7-category-list em { color: var(--v7-muted-2); font: 800 6px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }

.v7-restricted-note {
  margin-top: auto;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(237, 28, 36, .13);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}
.v7-lock { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--v7-red-soft); color: var(--v7-red); }
.v7-lock svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-restricted-note strong { display: block; color: var(--v7-ink); font-size: 7.7px; line-height: 1.25; }
.v7-restricted-note p { margin: 5px 0 0; color: var(--v7-muted); font-size: 6.5px; line-height: 1.45; }

/* Main product chat --------------------------------------------------- */
.v7-product-chat {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 30px 90px rgba(28, 29, 33, .13), 0 0 0 1px rgba(255,255,255,.8) inset;
}
.v7-product-chat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--v7-red), #ff6d73 46%, transparent 87%);
}
.v7-product-chat::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(237, 28, 36, .07), transparent 68%);
}
.v7-chat-header {
  position: relative;
  z-index: 2;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px clamp(15px, 1.45vw, 23px);
  border-bottom: 1px solid var(--v7-line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}
.v7-ai-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.v7-ai-orb {
  position: relative;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f83c43, #c90f18);
  color: #fff;
  box-shadow: 0 10px 26px rgba(237, 28, 36, .24);
  overflow: hidden;
}
.v7-ai-orb::before { content: ""; position: absolute; inset: -30%; border: 1px solid rgba(255,255,255,.36); border-radius: 45%; animation: v7-orbit 7s linear infinite; }
.v7-ai-orb i { position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; }
.v7-ai-orb b { position: relative; font-size: 11px; font-weight: 950; }
.v7-ai-identity > div { min-width: 0; display: grid; gap: 2px; }
.v7-ai-identity small { color: var(--v7-red); font: 850 6.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.v7-ai-identity h2 { margin: 0; overflow: hidden; color: var(--v7-ink); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.v7-chat-status { display: flex; align-items: center; gap: 8px; }
.v7-chat-status > span { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(31,167,109,.15); border-radius: 999px; background: #f1fbf6; color: #277b59; font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.v7-chat-status > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--v7-success); box-shadow: 0 0 0 4px rgba(31,167,109,.09); }
.v7-chat-status.is-hybrid > span { border-color: rgba(237,28,36,.14); background: var(--v7-red-soft); color: var(--v7-red-deep); }
.v7-chat-status.is-hybrid > span i { background: var(--v7-red); box-shadow: 0 0 0 4px rgba(237,28,36,.09); }
.v7-chat-status button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--v7-line);
  border-radius: 10px;
  background: #fff;
  color: var(--v7-muted);
  cursor: pointer;
}
.v7-chat-status button:hover { border-color: rgba(237,28,36,.25); color: var(--v7-red); }
.v7-chat-status button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-chat-status button b { font-size: 7px; font-weight: 800; }

.v7-chat-messages {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 2.2vh, 26px) clamp(15px, 2vw, 28px);
  scrollbar-width: thin;
  scrollbar-color: #c7c8cd transparent;
}
.v7-chat-messages::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .68;
  background-image:
    linear-gradient(rgba(29,30,33,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,30,33,.024) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(#000, transparent 93%);
}

.v7-message,
.product-message { animation: v7-message-in .5s var(--v7-ease) both; }
.v7-message-ai,
.product-message-assistant { width: min(100%, 880px); display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; }
.v7-message-avatar,
.product-message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--v7-red);
  color: #fff;
  font-size: 8px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(237,28,36,.16);
}
.product-message-avatar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.v7-message-shell,
.product-message-body { min-width: 0; }
.v7-message-meta,
.product-message-meta { min-height: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 7px; }
.v7-message-meta strong,
.product-message-meta strong { font-size: 8px; }
.v7-message-meta span,
.product-message-meta time { color: var(--v7-muted-2); font-size: 6.5px; }
.product-message-mode,
.product-message-confidence { display: inline-flex; align-items: center; min-height: 19px; padding: 0 7px; border-radius: 999px; background: var(--v7-paper); color: var(--v7-muted); font: 800 5.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.product-message-confidence.is-official { background: #edf9f3; color: #1f855a; }
.product-message-confidence.is-insufficient { background: #fff6e9; color: #9a671d; }
.v7-message-text,
.product-message-body {
  border: 1px solid var(--v7-line);
  border-radius: 4px 17px 17px 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(31,31,35,.055);
}
.v7-message-text { padding: clamp(16px, 2vw, 24px); }
.product-message-body { padding: 14px 16px; }
.v7-message-text h3 { max-width: 660px; margin: 0; color: var(--v7-ink); font-size: clamp(17px, 1.55vw, 24px); line-height: 1.12; letter-spacing: -.035em; }
.v7-message-text p,
.product-answer-text { margin: 10px 0 0; color: var(--v7-muted); font-size: clamp(9px, .75vw, 11px); line-height: 1.62; }
.product-answer-text { margin-top: 0; color: var(--v7-ink-2); font-size: 10.5px; white-space: pre-line; }
.v7-welcome-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.v7-welcome-capabilities span { min-width: 0; display: grid; gap: 4px; padding: 9px; border-radius: 10px; background: var(--v7-paper); }
.v7-welcome-capabilities i { color: var(--v7-red); font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.v7-welcome-capabilities b { overflow: hidden; font-size: 6.8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.product-message-user { width: min(82%, 620px); margin-left: auto; display: grid; justify-items: end; }
.product-message-user .product-message-meta { justify-content: flex-end; }
.product-message-user > p { margin: 0; padding: 11px 14px; border-radius: 16px 4px 16px 16px; background: var(--v7-dark); color: #fff; font-size: 10px; line-height: 1.5; box-shadow: 0 10px 24px rgba(28,28,31,.13); }
.product-message + .product-message { margin-top: 17px; }
.product-message.is-restricted .product-message-body { border-color: rgba(237,28,36,.2); background: linear-gradient(145deg, #fff7f7, #fff); }

.product-answer-bullets { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.product-answer-bullets li { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 7px; color: var(--v7-ink-2); font-size: 9px; line-height: 1.45; }
.product-answer-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--v7-red); }
.product-answer-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.product-answer-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v7-line); }
.product-answer-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.product-answer-section > header > span { color: var(--v7-muted); font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.product-answer-section > header > small { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: var(--v7-paper); color: var(--v7-muted); font-size: 6px; }
.product-answer-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.product-answer-product { position: relative; min-width: 0; display: grid; gap: 7px; padding: 11px; border: 1px solid var(--v7-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: transform .25s var(--v7-ease), border-color .25s ease, box-shadow .25s ease; }
.product-answer-product:hover { transform: translateY(-2px); border-color: rgba(237,28,36,.28); box-shadow: 0 12px 28px rgba(27,28,32,.07); }
.product-answer-product-head { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; }
.product-answer-product-head span { color: var(--v7-red); font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; }
.product-answer-product-head strong { font-size: 9px; }
.product-answer-product > p { margin: 0; color: var(--v7-muted); font-size: 7px; line-height: 1.42; }
.product-answer-product dl { display: grid; gap: 4px; margin: 0; }
.product-answer-product dl div { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--v7-line); }
.product-answer-product dt { color: var(--v7-muted); font-size: 6px; }
.product-answer-product dd { margin: 0; color: var(--v7-ink); font-size: 6px; font-weight: 800; text-align: right; }
.product-answer-product > i { position: absolute; right: 9px; top: 9px; color: var(--v7-muted-2); font-size: 10px; font-style: normal; }
.product-answer-action-list { display: flex; flex-wrap: wrap; gap: 7px; }
.product-answer-action { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(237,28,36,.17); border-radius: 10px; background: var(--v7-red-soft); color: var(--v7-red-deep); cursor: pointer; }
.product-answer-action:hover { background: var(--v7-red); color: #fff; }
.product-answer-action span:not(.product-answer-icon) { font-size: 7px; font-weight: 750; }
.product-answer-action i { font-style: normal; }
.product-answer-sources { margin-top: 12px; border: 1px solid var(--v7-line); border-radius: 11px; background: #fafafb; overflow: hidden; }
.product-answer-sources summary { min-height: 38px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; padding: 0 10px; cursor: pointer; list-style: none; }
.product-answer-sources summary::-webkit-details-marker { display: none; }
.product-answer-sources summary span:not(.product-answer-icon) { font-size: 7px; font-weight: 800; }
.product-answer-sources summary small { color: var(--v7-muted); font-size: 6px; }
.product-answer-source-list { display: grid; padding: 0 8px 8px; }
.product-answer-source { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-top: 1px solid var(--v7-line); color: inherit; text-decoration: none; }
.product-answer-source span { min-width: 0; display: grid; gap: 2px; }
.product-answer-source strong { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.product-answer-source small { color: var(--v7-muted); font-size: 5.8px; }
.product-answer-source i { color: var(--v7-red); font-style: normal; }
.product-answer-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.product-answer-policy { max-width: 72%; display: inline-flex; align-items: flex-start; gap: 5px; color: var(--v7-muted); }
.product-answer-policy b { font-size: 6px; font-weight: 650; line-height: 1.4; }
.product-answer-copy { min-height: 29px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--v7-line); border-radius: 8px; background: #fff; color: var(--v7-muted); cursor: pointer; }
.product-answer-copy:hover { color: var(--v7-red); border-color: rgba(237,28,36,.24); }
.product-answer-copy span:not(.product-answer-icon) { font-size: 6px; font-weight: 750; }

.product-message-typing .product-message-body { min-height: 65px; }
.product-typing-dots { height: 28px; display: flex; align-items: center; gap: 5px; }
.product-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--v7-red); animation: v7-dot 1.15s ease-in-out infinite; }
.product-typing-dots i:nth-child(2) { animation-delay: .14s; }
.product-typing-dots i:nth-child(3) { animation-delay: .28s; }

.v7-quick-prompts {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 7px clamp(13px, 1.6vw, 22px) 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255,255,255,.92);
}
.v7-quick-prompts::-webkit-scrollbar { display: none; }
.v7-quick-prompts button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--v7-line);
  border-radius: 999px;
  background: #fff;
  color: var(--v7-muted);
  font-size: 6.8px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.v7-quick-prompts button:hover { border-color: rgba(237,28,36,.28); background: var(--v7-red-soft); color: var(--v7-red-deep); }

.v7-product-composer { position: relative; z-index: 2; padding: 8px clamp(13px, 1.6vw, 22px) 12px; background: rgba(255,255,255,.96); }
.v7-composer-main {
  min-height: 55px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto 42px;
  align-items: end;
  gap: 8px;
  padding: 7px 7px 7px 10px;
  border: 1px solid var(--v7-line-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(29,30,34,.075), inset 0 0 0 1px rgba(255,255,255,.8);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.v7-composer-main:focus-within { border-color: rgba(237,28,36,.42); box-shadow: 0 14px 38px rgba(237,28,36,.09), 0 0 0 3px rgba(237,28,36,.06); }
.v7-composer-spark { align-self: center; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--v7-red-soft); color: var(--v7-red); }
.v7-composer-spark svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.v7-composer-main textarea { width: 100%; min-height: 27px; max-height: 128px; align-self: center; resize: none; overflow-y: auto; padding: 5px 0; border: 0; outline: 0; background: transparent; color: var(--v7-ink); font-size: clamp(9px, .78vw, 11px); line-height: 1.45; }
.v7-composer-main textarea::placeholder { color: #a0a1a7; }
.v7-input-counter { align-self: center; color: var(--v7-muted-2); font-size: 5.8px; white-space: nowrap; }
.v7-input-counter.is-near-limit { color: var(--v7-warning); }
.v7-composer-main button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 13px; background: var(--v7-red); color: #fff; cursor: pointer; box-shadow: 0 10px 25px rgba(237,28,36,.22); transition: transform .25s var(--v7-ease), background .25s ease; }
.v7-composer-main button:hover { transform: translateY(-2px); background: var(--v7-red-deep); }
.v7-composer-main button:disabled { opacity: .55; cursor: wait; transform: none; }
.v7-composer-main button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-composer-foot { min-height: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 6px 3px 0; color: var(--v7-muted-2); }
.v7-composer-foot span { display: inline-flex; align-items: center; gap: 6px; }
.v7-composer-foot i { width: 5px; height: 5px; border-radius: 50%; background: var(--v7-success); }
.v7-composer-foot b,
.v7-composer-foot em { font-size: 5.8px; font-style: normal; font-weight: 650; }
.v7-composer-foot em { color: var(--v7-red-deep); }
.v7-product-chat.is-thinking .v7-ai-orb { animation: v7-thinking 1.3s ease-in-out infinite; }

/* Right context rail -------------------------------------------------- */
.v7-product-context {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.7vw, 24px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(237,28,36,.18), transparent 29%),
    linear-gradient(155deg, #252529, #171719 70%);
  box-shadow: 0 26px 75px rgba(18,18,20,.22);
}
.v7-product-context::after { content: "AKFA"; position: absolute; right: -18px; bottom: -8px; color: rgba(255,255,255,.025); font-size: 78px; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.v7-context-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v7-context-head span { color: rgba(255,255,255,.4); font: 850 6.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.v7-context-head i { min-height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid rgba(31,167,109,.25); border-radius: 999px; background: rgba(31,167,109,.1); color: #7be1b5; font: 850 5.5px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; letter-spacing: .08em; }
.v7-product-context.is-restricted .v7-context-head i { border-color: rgba(237,28,36,.3); background: rgba(237,28,36,.12); color: #ff9094; }
.v7-profile-visual { position: relative; z-index: 1; height: clamp(130px, 21vh, 210px); margin: clamp(12px, 2vh, 20px) -8px 0; border-radius: 17px; overflow: hidden; background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.075), transparent 60%); }
.v7-profile-visual svg { width: 100%; height: 100%; }
.profile-scan-grid { opacity: .18; }
.profile-scan-grid path { fill: none; stroke: #fff; stroke-width: .6; }
.profile-body { transform-origin: 50% 55%; animation: v7-profile-float 5.5s ease-in-out infinite; }
.profile-scan-line { fill: none; stroke: #ff3f46; stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(237,28,36,.8)); animation: v7-scan 3.5s ease-in-out infinite; }
.profile-scan-point { fill: #ff4d54; filter: drop-shadow(0 0 7px #ed1c24); animation: v7-scan-point 3.5s ease-in-out infinite; }
.profile-label path { fill: none; stroke: rgba(255,255,255,.3); }
.profile-label circle { fill: #ed1c24; }
.profile-label text { fill: rgba(255,255,255,.55); font: 700 6px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.v7-context-copy { position: relative; z-index: 2; display: grid; gap: 6px; }
.v7-context-copy small { color: #ff7479; font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.v7-context-copy h3 { margin: 0; color: #fff; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.05; letter-spacing: -.035em; }
.v7-context-copy p { margin: 0; color: rgba(255,255,255,.48); font-size: 7.5px; line-height: 1.55; }
.v7-context-specs { position: relative; z-index: 2; display: grid; gap: 0; margin: 14px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.v7-context-specs div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.v7-context-specs dt { color: rgba(255,255,255,.38); font-size: 6.5px; }
.v7-context-specs dd { margin: 0; color: #fff; font-size: 7px; font-weight: 780; text-align: right; }
.v7-context-source { position: relative; z-index: 2; margin-top: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.v7-context-source span { display: flex; align-items: center; gap: 7px; }
.v7-context-source i { width: 6px; height: 6px; border-radius: 50%; background: var(--v7-success); }
.v7-context-source b { overflow: hidden; font-size: 6.8px; text-overflow: ellipsis; white-space: nowrap; }
.v7-context-source p { margin: 5px 0 0; color: rgba(255,255,255,.36); font-size: 6px; line-height: 1.45; }
.v7-context-actions { position: relative; z-index: 2; display: grid; gap: 7px; margin-top: auto; padding-top: 12px; }
.v7-context-actions > small { color: rgba(255,255,255,.3); }
.v7-context-actions button { min-height: 38px; display: grid; grid-template-columns: 27px 1fr 18px; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.045); color: #fff; text-align: left; cursor: pointer; }
.v7-context-actions button:hover { border-color: rgba(237,28,36,.45); background: rgba(237,28,36,.13); }
.v7-context-actions button span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(237,28,36,.14); color: #ff777c; font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-context-actions button b { font-size: 7px; }
.v7-context-actions button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-product-context.has-answer .v7-profile-visual { background: radial-gradient(circle at 50% 52%, rgba(237,28,36,.12), transparent 62%); }

/* Laboratory drawer --------------------------------------------------- */
.v7-lab-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  pointer-events: none;
}
.v7-lab-drawer.is-open { visibility: visible; pointer-events: auto; }
.v7-drawer-backdrop { position: absolute; inset: 0; opacity: 0; background: rgba(20,20,23,.58); backdrop-filter: blur(12px); transition: opacity .35s ease; }
.v7-lab-drawer.is-open .v7-drawer-backdrop { opacity: 1; }
.v7-drawer-panel {
  position: absolute;
  inset: clamp(12px, 2.4vh, 24px) clamp(12px, 2vw, 28px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 27px;
  background: #f4f5f7;
  box-shadow: 0 44px 130px rgba(15,15,18,.32);
  overflow: hidden;
  transform: translateY(28px) scale(.985);
  opacity: 0;
  transition: transform .48s var(--v7-ease), opacity .35s ease;
}
.v7-lab-drawer.is-open .v7-drawer-panel { transform: translateY(0) scale(1); opacity: 1; }
.v7-drawer-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(210px, .65fr) auto 42px;
  align-items: center;
  gap: 20px;
  padding: 12px 17px 12px 23px;
  border-bottom: 1px solid var(--v7-line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
}
.v7-drawer-header > div { display: grid; gap: 3px; }
.v7-drawer-header > div small { color: var(--v7-red); font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.v7-drawer-header h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.v7-drawer-tabs { display: flex; align-items: center; gap: 6px; }
.v7-drawer-tabs button { min-height: 41px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--v7-muted); cursor: pointer; }
.v7-drawer-tabs button:hover { background: var(--v7-paper); color: var(--v7-ink); }
.v7-drawer-tabs button.is-active { border-color: rgba(237,28,36,.14); background: var(--v7-red-soft); color: var(--v7-red-deep); }
.v7-drawer-tabs span { font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-drawer-tabs b { font-size: 8px; }
.v7-drawer-close { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--v7-line); border-radius: 12px; background: #fff; color: var(--v7-ink); cursor: pointer; }
.v7-drawer-close:hover { border-color: var(--v7-red); background: var(--v7-red); color: #fff; }
.v7-drawer-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.v7-drawer-body { min-height: 0; overflow: hidden; }
.v7-drawer-view { height: 100%; overflow-y: auto; padding: clamp(22px, 3vw, 46px); }
.v7-drawer-view.is-active { animation: v7-panel-in .4s var(--v7-ease) both; }
.v7-panel-intro { width: min(100%, 1480px); margin: 0 auto 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.v7-panel-intro > div { display: grid; gap: 6px; }
.v7-panel-intro small { color: var(--v7-red); font: 850 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.v7-panel-intro h3 { margin: 0; font-size: clamp(28px, 3vw, 48px); line-height: .98; letter-spacing: -.055em; }
.v7-panel-intro > p { max-width: 520px; margin: 0; color: var(--v7-muted); font-size: 10px; line-height: 1.65; }

.v7-product-knowledge-grid { width: min(100%, 1480px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.v7-product-knowledge-card { min-height: 290px; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto; gap: 10px; padding: 17px; border: 1px solid var(--v7-line); border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(29,30,34,.045); transition: transform .3s var(--v7-ease), box-shadow .3s ease, border-color .3s ease; }
.v7-product-knowledge-card:hover { transform: translateY(-4px); border-color: rgba(237,28,36,.24); box-shadow: 0 22px 48px rgba(29,30,34,.09); }
.v7-product-knowledge-card header { display: flex; align-items: center; justify-content: space-between; }
.v7-product-knowledge-card header span { color: var(--v7-red); font: 850 7px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-product-knowledge-card header b { min-height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; background: #edf9f3; color: #20875c; font: 850 5.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; }
.v7-product-knowledge-card h4 { margin: 0; font-size: 17px; line-height: 1.05; letter-spacing: -.035em; }
.v7-product-knowledge-card > p { margin: 0; color: var(--v7-muted); font-size: 8px; line-height: 1.55; }
.v7-product-knowledge-card dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--v7-line); }
.v7-product-knowledge-card dl div { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--v7-line); }
.v7-product-knowledge-card dt { color: var(--v7-muted); font-size: 6px; }
.v7-product-knowledge-card dd { margin: 0; font-size: 6.5px; font-weight: 800; text-align: right; }
.v7-product-knowledge-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v7-product-knowledge-card footer button { min-height: 35px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--v7-dark); color: #fff; cursor: pointer; }
.v7-product-knowledge-card footer button:hover { background: var(--v7-red); }
.v7-product-knowledge-card footer button span { font-size: 6.5px; font-weight: 800; }
.v7-product-knowledge-card footer button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-product-knowledge-card footer a { color: var(--v7-muted); font-size: 6px; text-decoration: none; }
.v7-knowledge-boundary { width: min(100%, 1480px); margin: 18px auto 0; display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 15px; border: 1px solid rgba(237,28,36,.13); border-radius: 15px; background: #fff8f8; }
.v7-knowledge-boundary > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--v7-red-soft); color: var(--v7-red); }
.v7-knowledge-boundary svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-knowledge-boundary strong { font-size: 9px; }
.v7-knowledge-boundary p { margin: 5px 0 0; color: var(--v7-muted); font-size: 7px; line-height: 1.5; }

.v7-journey-shell,
.v7-catalog-controls,
.v7-calculator-grid,
.v7-drawer-view .recent-tools,
.v7-drawer-view .history-toolbar,
.v7-drawer-view .history-grid,
.v7-drawer-view .history-empty { width: min(100%, 1480px); margin-left: auto; margin-right: auto; }
.v7-calculator-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Mobile dock --------------------------------------------------------- */
.v7-mobile-dock { display: none; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1460px) {
  .v7-ai-screen { grid-template-columns: minmax(220px, .29fr) minmax(540px, 1fr) minmax(225px, .29fr); }
  .v7-knowledge-rail { padding: 20px; }
  .v7-product-context { padding: 18px; }
  .v7-top-link span { display: none; }
  .v7-top-link { padding-inline: 10px; }
  .v7-product-knowledge-grid, .v7-calculator-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1180px) {
  .v7-ai-screen { grid-template-columns: minmax(220px, .31fr) minmax(0, 1fr); }
  .v7-product-context { display: none; }
  .v7-top-context { display: none; }
  .v7-topbar { grid-template-columns: auto 1fr; }
  .v7-top-actions { grid-column: 2; }
  .v7-composer-main textarea { font-size: 10px; }
}

@media (max-width: 900px) {
  :root { --v7-topbar: 66px; }
  .v7-topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 0 13px; }
  .v7-brand img { width: 112px; height: 36px; }
  .v7-brand > span { min-width: 70px; gap: 2px; padding-left: 10px; }
  .v7-brand strong { font-size: 12px; }
  .v7-brand small { font-size: 5.7px; }
  .v7-top-link, .v7-command, .v7-topbar .install-button { display: none; }
  .v7-language { width: 66px; height: 38px; }
  .v7-hidden-search { width: 38px; height: 38px; display: grid; }
  .v7-ai-screen { grid-template-columns: minmax(0,1fr); gap: 0; padding: calc(var(--v7-topbar) + 8px) 10px 74px; }
  .v7-knowledge-rail, .v7-product-context { display: none; }
  .v7-product-chat { border-radius: 21px; }
  .v7-chat-header { min-height: 57px; padding: 8px 12px; }
  .v7-ai-orb { width: 37px; height: 37px; border-radius: 11px; }
  .v7-ai-identity h2 { font-size: 13px; }
  .v7-chat-status > span { display: none; }
  .v7-chat-status button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; }
  .v7-chat-status button b { display: none; }
  .v7-chat-messages { padding: 13px 12px; }
  .v7-message-ai, .product-message-assistant { grid-template-columns: 30px minmax(0,1fr); gap: 8px; }
  .v7-message-avatar, .product-message-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .v7-message-text { padding: 14px; }
  .v7-message-text h3 { font-size: 17px; }
  .v7-welcome-capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-answer-product-grid { grid-template-columns: 1fr; }
  .v7-quick-prompts { padding: 5px 10px 0; }
  .v7-product-composer { padding: 7px 10px 9px; }
  .v7-composer-main { min-height: 51px; grid-template-columns: 25px minmax(0,1fr) 38px; padding: 6px 6px 6px 8px; }
  .v7-input-counter { display: none; }
  .v7-composer-main button { width: 38px; height: 38px; border-radius: 11px; }
  .v7-composer-foot b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v7-mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 145;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(30,30,33,.94);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 45px rgba(18,18,20,.25);
  }
  .v7-mobile-dock button { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.48); cursor: pointer; }
  .v7-mobile-dock button.is-active, .v7-mobile-dock button:hover { background: rgba(237,28,36,.15); color: #ff7d82; }
  .v7-mobile-dock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; }
  .v7-mobile-dock span { max-width: 100%; overflow: hidden; font-size: 5.6px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .v7-drawer-panel { inset: 0; border: 0; border-radius: 0; }
  .v7-drawer-header { min-height: 112px; grid-template-columns: minmax(0,1fr) 40px; grid-template-rows: auto auto; gap: 7px 10px; padding: max(11px, env(safe-area-inset-top)) 12px 9px; }
  .v7-drawer-header > div { grid-column: 1; }
  .v7-drawer-header h2 { font-size: 14px; }
  .v7-drawer-close { grid-column: 2; grid-row: 1; width: 38px; height: 38px; }
  .v7-drawer-tabs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .v7-drawer-tabs::-webkit-scrollbar { display: none; }
  .v7-drawer-tabs button { flex: 0 0 auto; min-height: 35px; padding: 0 9px; }
  .v7-drawer-view { padding: 18px 12px 86px; }
  .v7-panel-intro { display: grid; gap: 10px; margin-bottom: 18px; }
  .v7-panel-intro h3 { font-size: 28px; }
  .v7-panel-intro > p { font-size: 8px; }
  .v7-product-knowledge-grid, .v7-calculator-grid { grid-template-columns: 1fr; }
  .v7-product-knowledge-card { min-height: 0; }
}

@media (max-width: 520px) {
  .v7-brand img { width: 100px; }
  .v7-brand > span { min-width: 62px; }
  .v7-brand strong { font-size: 11px; }
  .v7-brand small { font-size: 5px; letter-spacing: .09em; }
  .v7-language { width: 61px; }
  .v7-ai-screen { padding-inline: 6px; padding-bottom: 72px; }
  .v7-product-chat { border-radius: 17px; }
  .v7-chat-header { padding-inline: 10px; }
  .v7-ai-identity small { font-size: 5.7px; }
  .v7-ai-identity h2 { max-width: 160px; }
  .v7-chat-messages { padding-inline: 9px; }
  .v7-message-ai, .product-message-assistant { width: 100%; }
  .product-message-user { width: 90%; }
  .v7-message-text, .product-message-body { border-radius: 4px 14px 14px 14px; }
  .v7-message-text h3 { font-size: 15px; }
  .v7-message-text p, .product-answer-text { font-size: 8.5px; }
  .v7-welcome-capabilities { gap: 5px; margin-top: 10px; }
  .v7-welcome-capabilities span { padding: 7px; }
  .v7-welcome-capabilities b { font-size: 6px; }
  .v7-quick-prompts button { min-height: 27px; font-size: 6.3px; }
  .v7-product-composer { padding-inline: 8px; }
  .v7-composer-main { grid-template-columns: 24px minmax(0,1fr) 38px; gap: 6px; border-radius: 14px; }
  .v7-composer-main textarea { font-size: 9px; }
  .v7-composer-foot em { display: none; }
  .product-answer-footer { align-items: flex-start; flex-direction: column; }
  .product-answer-policy { max-width: 100%; }
  .v7-mobile-dock { left: 6px; right: 6px; bottom: max(5px, env(safe-area-inset-bottom)); }
}

@media (max-height: 720px) and (min-width: 901px) {
  .v7-ai-screen { min-height: 560px; padding-top: calc(var(--v7-topbar) + 8px); padding-bottom: 8px; }
  .v7-knowledge-rail { gap: 9px; padding: 16px; }
  .v7-rail-copy { gap: 8px; }
  .v7-rail-copy h1 { font-size: 26px; }
  .v7-stat-grid article { min-height: 49px; }
  .v7-category-list { gap: 3px; }
  .v7-category-list button { min-height: 32px; padding-block: 3px; }
  .v7-restricted-note { padding: 9px; }
  .v7-profile-visual { height: 120px; margin-top: 8px; }
  .v7-context-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .v7-context-specs div { min-height: 30px; }
  .v7-context-source { margin-top: 7px; padding: 7px; }
  .v7-context-actions { padding-top: 7px; }
  .v7-context-actions button { min-height: 31px; }
  .v7-chat-header { min-height: 56px; }
  .v7-chat-messages { padding-block: 12px; }
  .v7-message-text { padding: 14px 16px; }
  .v7-welcome-capabilities { margin-top: 8px; }
  .v7-quick-prompts { padding-top: 4px; }
  .v7-product-composer { padding-top: 5px; padding-bottom: 7px; }
  .v7-composer-main { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .v7-live-dot,
  .v7-ai-orb::before,
  .profile-body,
  .profile-scan-line,
  .profile-scan-point,
  .v7-ai-screen::before,
  .product-typing-dots i,
  .v7-product-chat.is-thinking .v7-ai-orb { animation: none !important; }
  .v7-message,
  .product-message,
  .v7-drawer-view.is-active { animation-duration: .01ms !important; }
  .v7-drawer-panel,
  .v7-drawer-backdrop { transition-duration: .01ms !important; }
}

@keyframes v7-live { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .65; } }
@keyframes v7-ambient { from { transform: translate3d(-1.5%,0,0); opacity: .65; } to { transform: translate3d(1.5%,0,0); opacity: 1; } }
@keyframes v7-orbit { to { transform: rotate(360deg); } }
@keyframes v7-thinking { 50% { transform: scale(.94); filter: saturate(1.25); } }
@keyframes v7-message-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v7-dot { 0%,70%,100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-5px); opacity: 1; } }
@keyframes v7-profile-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes v7-scan { 0%,100% { transform: translateX(0); } 50% { transform: translateX(288px); } }
@keyframes v7-scan-point { 0%,100% { transform: translateX(0); } 50% { transform: translateX(288px); } }
@keyframes v7-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Product chat runtime components ------------------------------------ */
.v7-message-user {
  width: min(82%, 620px);
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) 34px;
  gap: 10px;
  align-items: start;
}
.v7-message-user .v7-message-meta { justify-content: flex-end; }
.v7-message-user .v7-message-avatar {
  order: 2;
  background: var(--v7-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(28,28,31,.15);
  font-size: 5.5px;
}
.v7-message-user .v7-message-shell { order: 1; }
.v7-message-user .v7-message-text {
  border: 0;
  border-radius: 16px 4px 16px 16px;
  background: var(--v7-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28,28,31,.13);
}
.v7-message-user .v7-message-text p { margin: 0; color: #fff; font-size: 10px; line-height: 1.52; }
.v7-message.is-restricted .v7-message-text {
  border-color: rgba(237,28,36,.22);
  background: linear-gradient(145deg, #fff7f7, #fff);
}
.v7-message.is-restricted .v7-message-avatar { background: var(--v7-red-deep); }

.v7-response-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.v7-response-badges span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--v7-paper);
  color: var(--v7-muted);
  font: 800 5.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.v7-response-badges span:first-child { background: #edf9f3; color: #20875c; }
.v7-message.is-restricted .v7-response-badges span:last-child { background: var(--v7-red-soft); color: var(--v7-red-deep); }

.v7-answer-bullets { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.v7-answer-bullets li { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: start; gap: 8px; color: var(--v7-ink-2); font-size: 9px; line-height: 1.48; }
.v7-answer-bullets li i { width: 5px; height: 5px; margin-top: 5px; border-radius: 50%; background: var(--v7-red); box-shadow: 0 0 0 4px rgba(237,28,36,.07); }
.v7-answer-section-title { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--v7-line); color: var(--v7-muted); font-size: 6.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.v7-product-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.v7-product-card { position: relative; min-width: 0; display: grid; gap: 7px; padding: 11px; border: 1px solid var(--v7-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(29,30,34,.04); }
.v7-product-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v7-product-card-head small { color: var(--v7-red); font-size: 5.8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.v7-product-card-head span { color: var(--v7-muted-2); font: 800 6px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-product-card h4 { margin: 0; color: var(--v7-ink); font-size: 10px; line-height: 1.08; letter-spacing: -.025em; }
.v7-product-card > p { margin: 0; color: var(--v7-muted); font-size: 6.8px; line-height: 1.46; }
.v7-spec-list { display: grid; gap: 0; border-top: 1px solid var(--v7-line); }
.v7-spec-list > span { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--v7-line); }
.v7-spec-list small { color: var(--v7-muted); font-size: 5.6px; }
.v7-spec-list b { color: var(--v7-ink); font-size: 5.9px; text-align: right; }
.v7-product-card-button { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; border: 0; border-radius: 9px; background: var(--v7-dark); color: #fff; cursor: pointer; }
.v7-product-card-button:hover { background: var(--v7-red); }
.v7-product-card-button span { font-size: 6px; font-weight: 800; }
.v7-product-card-button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-source-list { display: grid; gap: 5px; margin-top: 8px; }
.v7-source-list > a, .v7-source-list > span { min-height: 30px; display: grid; grid-template-columns: 6px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--v7-line); border-radius: 9px; background: #fafafb; color: inherit; text-decoration: none; }
.v7-source-list i { width: 5px; height: 5px; border-radius: 50%; background: var(--v7-success); }
.v7-source-list b { overflow: hidden; font-size: 6.5px; text-overflow: ellipsis; white-space: nowrap; }
.v7-source-list small { color: var(--v7-muted); font-size: 5.5px; }
.v7-policy-notice { display: grid; grid-template-columns: 17px minmax(0,1fr); align-items: start; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid rgba(237,28,36,.11); border-radius: 9px; background: #fff8f8; color: var(--v7-muted); font-size: 6px; line-height: 1.45; }
.v7-policy-notice svg { width: 15px; fill: none; stroke: var(--v7-red); stroke-width: 1.7; }
.v7-follow-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.v7-follow-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--v7-line); border-radius: 9px; background: #fff; color: var(--v7-muted); font-size: 6.2px; font-weight: 750; cursor: pointer; }
.v7-follow-actions button:hover { border-color: rgba(237,28,36,.28); background: var(--v7-red-soft); color: var(--v7-red-deep); }
.v7-follow-actions button.is-calculator { border-color: rgba(237,28,36,.18); background: var(--v7-red-soft); color: var(--v7-red-deep); }
.v7-message-tools { display: flex; justify-content: flex-end; gap: 4px; margin-top: 5px; }
.v7-message-tools button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--v7-muted-2); cursor: pointer; }
.v7-message-tools button:hover, .v7-message-tools button.is-selected { border-color: var(--v7-line); background: #fff; color: var(--v7-red); }
.v7-message-tools svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v7-typing { height: 28px; display: flex; align-items: center; gap: 5px; }
.v7-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--v7-red); animation: v7-dot 1.15s ease-in-out infinite; }
.v7-typing i:nth-child(2) { animation-delay: .14s; }
.v7-typing i:nth-child(3) { animation-delay: .28s; }

@media (max-width: 900px) {
  .v7-message-user { grid-template-columns: minmax(0,1fr) 30px; gap: 8px; }
  .v7-product-cards { grid-template-columns: 1fr; }
}

/* ======================================================================
   0.7.1 release polish — chat-first product intelligence cockpit
   ====================================================================== */

@media (min-width: 1181px) {
  .v7-ai-screen {
    grid-template-columns: 252px minmax(620px, 1fr) 280px;
    gap: 14px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .v7-knowledge-rail { padding: 22px; }
  .v7-product-context { padding: 21px; }
}

@media (min-width: 1281px) and (max-width: 1460px) {
  .v7-top-link span { display: inline; }
  .v7-top-link { padding-inline: 10px; }
  .v7-top-actions { gap: 5px; }
  .v7-command { min-width: 48px; }
}

.v7-rail-copy h1 {
  font-size: clamp(28px, 2.1vw, 36px);
  line-height: .96;
}
.v7-rail-copy p { font-size: clamp(10px, .76vw, 12px); line-height: 1.58; }
.v7-eyebrow b { font-size: 8.5px; }
.v7-stat-grid span { font-size: 7.5px; }
.v7-category-list b { font-size: 9.2px; }
.v7-restricted-note strong { font-size: 8.4px; }
.v7-restricted-note p { font-size: 7.2px; }

.v7-chat-header { min-height: 70px; }
.v7-ai-identity h2 { font-size: clamp(15px, 1.22vw, 18px); }
.v7-ai-identity small { font-size: 6.8px; }
.v7-chat-status button b { font-size: 7.5px; }
.v7-chat-status > span { font-size: 6.4px; }
.v7-message-meta strong, .product-message-meta strong { font-size: 9px; }
.v7-message-meta span, .product-message-meta time { font-size: 7.2px; }
.v7-message-text h3 { font-size: clamp(19px, 1.58vw, 25px); }
.v7-message-text p { font-size: clamp(10.5px, .78vw, 12px); line-height: 1.58; }
.v7-welcome-capabilities b { font-size: 7.6px; }
.v7-welcome-capabilities i { font-size: 6.5px; }
.v7-quick-prompts button { min-height: 30px; font-size: 7.5px; }
.v7-composer-main textarea { font-size: clamp(10.5px, .78vw, 12px); }
.v7-composer-foot b, .v7-composer-foot em { font-size: 6.4px; }

/* Starter board fills the initial chat state without turning it into a landing poster. */
.v7-starter-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.v7-starter-card {
  position: relative;
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 2px 10px;
  padding: 13px 13px 11px;
  overflow: hidden;
  border: 1px solid var(--v7-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,248,250,.96));
  color: var(--v7-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,27,31,.045);
  transition: transform .28s var(--v7-ease), border-color .25s ease, box-shadow .28s ease, background .28s ease;
}
.v7-starter-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(237,28,36,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(237,28,36,.025), 0 0 0 36px rgba(237,28,36,.016);
  transition: transform .35s var(--v7-ease);
}
.v7-starter-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237,28,36,.28);
  background: #fff;
  box-shadow: 0 16px 34px rgba(26,27,31,.08);
}
.v7-starter-card:hover::after { transform: scale(1.14); }
.v7-starter-card.is-featured {
  border-color: rgba(237,28,36,.2);
  background: linear-gradient(145deg, #fff2f3, #fff 74%);
}
.v7-starter-icon {
  grid-row: 1 / 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--v7-paper);
  color: var(--v7-red);
}
.v7-starter-card.is-featured .v7-starter-icon { background: var(--v7-red); color: #fff; box-shadow: 0 9px 22px rgba(237,28,36,.2); }
.v7-starter-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.v7-starter-card small {
  color: var(--v7-red);
  font: 850 6px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}
.v7-starter-card strong {
  min-width: 0;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.v7-starter-card p {
  min-width: 0;
  margin: 2px 0 0;
  color: var(--v7-muted);
  font-size: 7.4px;
  line-height: 1.42;
}
.v7-starter-card em {
  align-self: end;
  margin-top: 5px;
  color: var(--v7-muted-2);
  font: 780 5.7px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  letter-spacing: .05em;
}
.v7-welcome-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed var(--v7-line-strong);
  border-radius: 11px;
  background: rgba(249,250,251,.78);
}
.v7-welcome-scope span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.v7-welcome-scope i { width: 6px; height: 6px; border-radius: 50%; background: var(--v7-success); box-shadow: 0 0 0 4px rgba(31,167,109,.08); }
.v7-welcome-scope b { font-size: 7px; }
.v7-welcome-scope p { margin: 0; color: var(--v7-muted); font-size: 6.6px; line-height: 1.35; text-align: right; }

/* Dynamic visual states for product categories. */
.v7-context-scene {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(.98);
  transform-origin: 50% 55%;
  transition: opacity .42s ease, transform .48s var(--v7-ease), visibility .42s ease;
}
.v7-product-context:not([data-product-category]) .v7-context-scene-default,
.v7-product-context[data-product-category="pvc_system"] .v7-context-scene-pvc_system,
.v7-product-context[data-product-category="sill"] .v7-context-scene-sill,
.v7-product-context[data-product-category="lamination"] .v7-context-scene-lamination,
.v7-product-context[data-product-category="sliding"] .v7-context-scene-sliding,
.v7-product-context[data-product-category="service"] .v7-context-scene-service {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.v7-product-context[data-product-category="pvc_system"] { --v7-context-accent: #ed1c24; }
.v7-product-context[data-product-category="sill"] { --v7-context-accent: #d9e0e8; }
.v7-product-context[data-product-category="lamination"] { --v7-context-accent: #ef725d; background: radial-gradient(circle at 80% 12%, rgba(215,91,63,.22), transparent 30%), linear-gradient(155deg,#2a2426,#171719 72%); }
.v7-product-context[data-product-category="sliding"] { --v7-context-accent: #74a6c6; background: radial-gradient(circle at 80% 12%, rgba(71,139,181,.2), transparent 30%), linear-gradient(155deg,#24282d,#171719 72%); }
.v7-product-context[data-product-category="service"] { --v7-context-accent: #42c288; background: radial-gradient(circle at 80% 12%, rgba(45,176,116,.18), transparent 30%), linear-gradient(155deg,#222926,#171719 72%); }
.v7-scene-metric path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1; }
.v7-scene-metric circle { fill: var(--v7-context-accent, #ed1c24); }
.v7-scene-metric text { fill: rgba(255,255,255,.57); font: 750 6px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; }
.v7-profile-visual { height: clamp(145px, 22vh, 214px); }
.v7-context-copy small { font-size: 6.6px; }
.v7-context-copy h3 { font-size: clamp(18px, 1.45vw, 23px); }
.v7-context-copy p { font-size: 8.4px; line-height: 1.5; }
.v7-context-specs dt { font-size: 7.2px; }
.v7-context-specs dd { font-size: 7.8px; }
.v7-context-source { padding: 11px; }
.v7-context-source b { font-size: 7.4px; }
.v7-context-source p { font-size: 6.8px; }
.v7-context-source a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #ff8a8f;
  font-size: 6.4px;
  font-weight: 760;
  text-decoration: none;
}
.v7-context-source a:hover { color: #fff; }
.v7-context-actions button b { font-size: 7.7px; }
.v7-context-actions > small { font-size: 6.6px; }

/* Runtime answer typography is intentionally larger than the v0.6 calculator UI. */
.product-answer-text { font-size: 11.5px; line-height: 1.58; }
.product-answer-bullets li, .v7-answer-bullets li { font-size: 9.8px; }
.product-answer-section > header > span, .v7-answer-section-title { font-size: 7.2px; }
.product-answer-product-head strong, .v7-product-card h4 { font-size: 10.5px; }
.product-answer-product > p, .v7-product-card > p { font-size: 7.6px; }
.product-answer-product dt, .product-answer-product dd, .v7-spec-list small, .v7-spec-list b { font-size: 6.6px; }
.product-answer-source strong, .v7-source-list b { font-size: 7.2px; }
.product-answer-source small, .v7-source-list small { font-size: 6.2px; }

@media (max-width: 1280px) and (min-width: 1181px) {
  .v7-ai-screen { grid-template-columns: 232px minmax(550px,1fr) 248px; padding-left: 14px; padding-right: 14px; }
  .v7-knowledge-rail { padding: 18px; }
  .v7-product-context { padding: 17px; }
  .v7-top-link span { display: none; }
  .v7-starter-card { min-height: 104px; padding: 11px; }
  .v7-starter-card p { font-size: 7px; }
}

@media (max-width: 1180px) {
  .v7-starter-card { min-height: 104px; }
  .v7-message-ai, .product-message-assistant { width: min(100%, 940px); }
}

@media (max-width: 900px) {
  .v7-chat-header { min-height: 60px; }
  .v7-ai-identity small { font-size: 6.2px; }
  .v7-ai-identity h2 { font-size: 14px; }
  .v7-message-text h3 { font-size: 19px; }
  .v7-message-text p { font-size: 11.5px; }
  .v7-welcome-capabilities b { font-size: 8px; }
  .v7-starter-board {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 82%);
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .v7-starter-board::-webkit-scrollbar { display: none; }
  .v7-starter-card { min-height: 116px; scroll-snap-align: start; }
  .v7-starter-card strong { font-size: 11px; }
  .v7-starter-card p { font-size: 8.2px; }
  .v7-welcome-scope { align-items: flex-start; flex-direction: column; gap: 5px; }
  .v7-welcome-scope p { font-size: 7.2px; text-align: left; }
  .v7-quick-prompts button { font-size: 7.5px; }
  .v7-composer-main textarea { font-size: 12px; }
  .product-answer-text { font-size: 12px; }
  .product-answer-bullets li, .v7-answer-bullets li { font-size: 10.5px; }
}

@media (max-width: 520px) {
  .v7-chat-messages { padding: 11px 9px; }
  .v7-message-text { padding: 15px; }
  .v7-message-text h3 { font-size: 18px; line-height: 1.1; }
  .v7-message-text p { font-size: 11px; line-height: 1.52; }
  .v7-welcome-capabilities span { min-height: 36px; align-content: center; }
  .v7-welcome-capabilities b { font-size: 7.6px; }
  .v7-starter-board { grid-auto-columns: minmax(230px, 88%); }
  .v7-starter-card { min-height: 112px; }
  .v7-quick-prompts button { min-height: 30px; font-size: 7.2px; }
  .v7-product-composer { padding-bottom: 8px; }
  .v7-composer-main { min-height: 54px; }
  .v7-composer-main textarea { font-size: 11.5px; }
  .v7-composer-foot b { font-size: 6.4px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .v7-starter-card { min-height: 88px; padding: 9px 10px; }
  .v7-starter-icon { width: 32px; height: 32px; }
  .v7-starter-card p { display: none; }
  .v7-starter-card em { margin-top: 3px; }
  .v7-welcome-scope { padding-block: 7px; }
  .v7-message-text { padding: 14px 16px; }
  .v7-message-text h3 { font-size: 18px; }
  .v7-message-text p { margin-top: 7px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .v7-context-scene, .v7-starter-card, .v7-starter-card::after { transition: none !important; }
}

/* ======================================================================
   v0.7.1 completion — verified product catalog, live evidence and scenes
   ====================================================================== */

/* The center conversation remains the dominant surface on large screens. */
@media (min-width: 1181px) {
  .v7-ai-screen {
    grid-template-columns: clamp(224px, 16.2vw, 252px) minmax(640px, 1fr) clamp(254px, 18.2vw, 292px);
  }
}

/* Product drawer controls --------------------------------------------- */
.v7-products-intro { margin-bottom: 18px; }
.v7-products-toolbar {
  position: sticky;
  top: -1px;
  z-index: 8;
  width: min(100%, 1480px);
  min-height: 66px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(420px, 1.45fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--v7-line);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 10px 32px rgba(29,30,34,.06);
}
.v7-products-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--v7-line);
  border-radius: 12px;
  background: #f8f9fa;
}
.v7-products-search:focus-within { border-color: rgba(237,28,36,.36); background: #fff; box-shadow: 0 0 0 4px rgba(237,28,36,.065); }
.v7-products-search svg { width: 17px; height: 17px; fill: none; stroke: var(--v7-muted); stroke-width: 1.7; }
.v7-products-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--v7-ink); font-size: 10px; }
.v7-products-search input::placeholder { color: var(--v7-muted-2); }
.v7-products-filters { min-width: 0; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.v7-products-filters::-webkit-scrollbar { display: none; }
.v7-products-filters button {
  flex: 0 0 auto;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--v7-muted);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--v7-ease);
}
.v7-products-filters button:hover { transform: translateY(-1px); background: var(--v7-paper); color: var(--v7-ink); }
.v7-products-filters button.is-active { border-color: rgba(237,28,36,.15); background: var(--v7-red-soft); color: var(--v7-red-deep); }
.v7-products-filters span { font-size: 7.2px; font-weight: 800; }
.v7-products-filters b { min-width: 19px; height: 19px; display: grid; place-items: center; padding-inline: 5px; border-radius: 7px; background: rgba(255,255,255,.75); font: 800 5.8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.v7-products-result { min-width: 66px; display: grid; justify-items: end; gap: 2px; padding-right: 4px; }
.v7-products-result strong { font-size: 19px; line-height: 1; letter-spacing: -.04em; }
.v7-products-result small { color: var(--v7-muted); font-size: 6.2px; }

/* Every public product card has a code-built thematic visual. */
.v7-product-knowledge-card {
  grid-template-rows: 100px auto auto minmax(0,1fr) auto auto;
  overflow: hidden;
}
.v7-product-knowledge-card[hidden] { display: none !important; }
.v7-product-knowledge-visual {
  position: relative;
  min-height: 100px;
  margin: -17px -17px 2px;
  overflow: hidden;
  border-bottom: 1px solid var(--v7-line);
  background:
    linear-gradient(rgba(27,28,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,28,31,.035) 1px, transparent 1px),
    linear-gradient(145deg, #f9fafb, #eef0f3);
  background-size: 20px 20px, 20px 20px, auto;
}
.v7-product-knowledge-visual::before,
.v7-product-knowledge-visual::after,
.v7-product-knowledge-visual span,
.v7-product-knowledge-visual i { content: ""; position: absolute; display: block; }
.v7-product-knowledge-visual b {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 4;
  color: rgba(24,25,28,.34);
  font: 850 6px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
/* PVC profile section */
.v7-product-knowledge-card[data-product-category="systems"] .v7-product-knowledge-visual::before {
  left: 50%; top: 49%; width: 118px; height: 55px; transform: translate(-50%,-50%);
  border: 7px solid #45494f; border-radius: 3px;
  box-shadow: inset 0 0 0 8px #f8f9fb, inset 0 0 0 13px #aeb5bd, 0 13px 24px rgba(30,31,34,.13);
}
.v7-product-knowledge-card[data-product-category="systems"] .v7-product-knowledge-visual::after {
  left: 50%; top: 49%; width: 34px; height: 31px; transform: translate(-50%,-50%);
  border: 5px solid #24272b; background: #f7f8fa;
}
.v7-product-knowledge-card[data-product-category="systems"] .v7-product-knowledge-visual span { left: 50%; top: 18px; bottom: 18px; width: 3px; background: var(--v7-red); box-shadow: 0 0 18px rgba(237,28,36,.34); }
.v7-product-knowledge-card[data-product-category="systems"] .v7-product-knowledge-visual i { left: calc(50% - 44px); top: 50%; width: 88px; height: 2px; background: #6c737b; }
/* Sill geometry */
.v7-product-knowledge-card[data-product-category="sills"] .v7-product-knowledge-visual::before {
  left: 13%; right: 13%; top: 34px; height: 38px; transform: skewX(-13deg);
  border: 2px solid #9ca4ad; border-radius: 5px; background: linear-gradient(180deg,#fff,#dfe3e8); box-shadow: 0 14px 22px rgba(28,29,32,.12);
}
.v7-product-knowledge-card[data-product-category="sills"] .v7-product-knowledge-visual::after { left: 11%; right: 11%; top: 72px; height: 7px; background: var(--v7-red); border-radius: 4px; }
.v7-product-knowledge-card[data-product-category="sills"] .v7-product-knowledge-visual span { left: 22%; top: 40px; width: 2px; height: 27px; background: #a8afb7; box-shadow: 35px 0 #a8afb7, 70px 0 #a8afb7, 105px 0 #a8afb7; }
/* Lamination swatches */
.v7-product-knowledge-card[data-product-category="design"] .v7-product-knowledge-visual { background: radial-gradient(circle at 18% 20%, rgba(237,28,36,.13), transparent 34%), linear-gradient(145deg,#f7f4f1,#eee8e2); }
.v7-product-knowledge-card[data-product-category="design"] .v7-product-knowledge-visual::before { left: 23px; top: 22px; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg,#563725,#b7906d); box-shadow: 74px 0 0 #34363a, 148px 0 0 #e9e9e6; }
.v7-product-knowledge-card[data-product-category="design"] .v7-product-knowledge-visual::after { left: 31px; top: 30px; width: 48px; height: 48px; border-radius: 10px; opacity: .45; background: repeating-linear-gradient(105deg,rgba(255,255,255,.55) 0 1px,transparent 1px 6px); box-shadow: 74px 0 0 rgba(255,255,255,.14), 148px 0 0 rgba(62,65,69,.08); }
/* Sliding panels */
.v7-product-knowledge-card[data-product-category="sliding"] .v7-product-knowledge-visual::before { left: 42px; top: 17px; width: 78px; height: 68px; border: 5px solid #9aa4ad; border-radius: 3px; background: rgba(195,220,235,.48); box-shadow: 66px 0 0 -1px rgba(208,227,238,.62), 66px 0 0 4px #4c5259; }
.v7-product-knowledge-card[data-product-category="sliding"] .v7-product-knowledge-visual::after { left: 55px; right: 55px; bottom: 12px; height: 6px; border-radius: 4px; background: #b8bec5; box-shadow: 0 8px 0 #d7dbe0; }
.v7-product-knowledge-card[data-product-category="sliding"] .v7-product-knowledge-visual span { left: 106px; top: 50px; width: 58px; height: 2px; background: var(--v7-red); }
/* Document / source proof */
.v7-product-knowledge-card[data-product-category="documentation"] .v7-product-knowledge-visual::before { left: 50%; top: 50%; width: 72px; height: 78px; transform: translate(-50%,-50%); border: 2px solid #969ea7; border-radius: 5px; background: #fff; box-shadow: 0 15px 25px rgba(30,31,34,.12); }
.v7-product-knowledge-card[data-product-category="documentation"] .v7-product-knowledge-visual::after { left: calc(50% - 22px); top: 37px; width: 46px; height: 4px; border-radius: 3px; background: #a8afb7; box-shadow: 0 13px #a8afb7, 0 26px #d1d5da; }
.v7-product-knowledge-card[data-product-category="documentation"] .v7-product-knowledge-visual span { left: calc(50% + 21px); bottom: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--v7-dark); box-shadow: inset 0 0 0 8px var(--v7-red-soft); }
/* Graceful generic visual */
.v7-product-knowledge-card[data-product-category="other"] .v7-product-knowledge-visual::before { left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%,-50%) rotate(45deg); border: 2px solid rgba(237,28,36,.35); border-radius: 16px; box-shadow: 0 0 0 14px rgba(237,28,36,.045), 0 0 0 28px rgba(237,28,36,.025); }

.v7-products-empty {
  width: min(100%, 1480px);
  min-height: 260px;
  margin: 0 auto;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--v7-line-strong);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  text-align: center;
}
.v7-products-empty:not([hidden]) { display: grid; }
.v7-products-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--v7-paper); color: var(--v7-red); font-size: 22px; }
.v7-products-empty strong { font-size: 17px; }
.v7-products-empty p { margin: 0; color: var(--v7-muted); font-size: 9px; }

/* Right-side live evidence and category scenes ------------------------ */
.v7-context-evidence {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
}
.v7-context-evidence > span { min-width: 0; display: grid; gap: 3px; padding: 8px 7px; background: rgba(24,24,27,.72); }
.v7-context-evidence small { color: rgba(255,255,255,.30); font: 800 5px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .07em; }
.v7-context-evidence b { overflow: hidden; color: rgba(255,255,255,.82); font: 800 5.7px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.v7-product-context.is-insufficient .v7-context-evidence b { color: #ffd180; }
.v7-product-context.is-restricted .v7-context-evidence b { color: #ff979b; }

/* Override obsolete scene selectors from the earlier prototype. */
.v7-product-context .v7-context-scene { opacity: 0; visibility: hidden; transform: translateY(7px) scale(.975); }
.v7-product-context[data-context-scene="profile"] .scene-profile,
.v7-product-context[data-context-scene="sills"] .scene-sills,
.v7-product-context[data-context-scene="design"] .scene-design,
.v7-product-context[data-context-scene="sliding"] .scene-sliding,
.v7-product-context[data-context-scene="documents"] .scene-documents,
.v7-product-context[data-context-scene="policy"] .scene-policy,
.v7-product-context[data-context-scene="knowledge"] .scene-knowledge,
.v7-product-context[data-product-category="default"] .scene-knowledge {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.v7-product-context[data-context-scene="profile"] { --v7-context-accent: #ed1c24; background: radial-gradient(circle at 78% 12%,rgba(237,28,36,.17),transparent 31%),linear-gradient(155deg,#292529,#171719 72%); }
.v7-product-context[data-context-scene="sills"] { --v7-context-accent: #d6dde4; background: radial-gradient(circle at 78% 12%,rgba(210,220,230,.14),transparent 31%),linear-gradient(155deg,#24272a,#171719 72%); }
.v7-product-context[data-context-scene="design"] { --v7-context-accent: #ef725d; background: radial-gradient(circle at 78% 12%,rgba(215,91,63,.22),transparent 31%),linear-gradient(155deg,#2b2426,#171719 72%); }
.v7-product-context[data-context-scene="sliding"] { --v7-context-accent: #75add0; background: radial-gradient(circle at 78% 12%,rgba(71,139,181,.22),transparent 31%),linear-gradient(155deg,#24292e,#171719 72%); }
.v7-product-context[data-context-scene="documents"] { --v7-context-accent: #61c994; background: radial-gradient(circle at 78% 12%,rgba(45,176,116,.18),transparent 31%),linear-gradient(155deg,#222a26,#171719 72%); }
.v7-product-context[data-context-scene="policy"] { --v7-context-accent: #ed1c24; background: radial-gradient(circle at 78% 12%,rgba(237,28,36,.25),transparent 31%),linear-gradient(155deg,#2c2022,#171719 72%); }
.v7-product-context[data-context-scene="knowledge"] { --v7-context-accent: #ed1c24; background: radial-gradient(circle at 78% 12%,rgba(237,28,36,.13),transparent 31%),linear-gradient(155deg,#262629,#171719 72%); }
.profile-scan-grid path { fill: none; stroke: rgba(255,255,255,.045); stroke-width: 1; }
.profile-label path { fill: none; stroke: var(--v7-context-accent,#ed1c24); stroke-width: 1; }
.profile-label circle { fill: var(--v7-context-accent,#ed1c24); }
.profile-label text { fill: rgba(255,255,255,.52); font: 750 6px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .06em; }
.knowledge-node circle { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.16); }
.knowledge-node text { fill: rgba(255,255,255,.66); font: 800 6px ui-monospace,SFMono-Regular,Menlo,monospace; text-anchor: middle; }
.knowledge-node path { fill: none; stroke: rgba(237,28,36,.38); stroke-width: 1.2; stroke-dasharray: 4 5; animation: v7-knowledge-line 5s linear infinite; }

/* Product answer evidence and comparison ------------------------------ */
.v7-product-proof {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf9f3;
  color: #20875c !important;
  font: 800 4.8px ui-monospace,SFMono-Regular,Menlo,monospace !important;
  letter-spacing: .04em;
  white-space: nowrap;
}
.v7-product-card-head { flex-wrap: wrap; }
.v7-product-card-head .v7-product-proof { margin-left: auto; }
.v7-comparison-wrap { margin-top: 14px; padding-top: 1px; }
.v7-comparison-scroll { margin-top: 8px; overflow-x: auto; border: 1px solid var(--v7-line); border-radius: 12px; background: #fff; }
.v7-comparison-table { width: 100%; min-width: 540px; border-collapse: collapse; table-layout: fixed; }
.v7-comparison-table th, .v7-comparison-table td { padding: 9px 10px; border-right: 1px solid var(--v7-line); border-bottom: 1px solid var(--v7-line); text-align: left; vertical-align: top; }
.v7-comparison-table tr > *:last-child { border-right: 0; }
.v7-comparison-table tbody tr:last-child > * { border-bottom: 0; }
.v7-comparison-table thead th { background: #f7f8fa; color: var(--v7-ink); font-size: 6.5px; font-weight: 850; }
.v7-comparison-table tbody th { width: 28%; color: var(--v7-muted); font-size: 6px; font-weight: 700; }
.v7-comparison-table td { color: var(--v7-ink); font-size: 6.5px; font-weight: 780; }
.v7-comparison-note { margin: 7px 0 0 !important; color: var(--v7-muted-2) !important; font-size: 5.8px !important; line-height: 1.45 !important; }
.v7-product-cards.is-comparison { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v7-open-product-library {
  min-height: 34px;
  margin-top: 9px;
  padding: 0 12px;
  border: 1px solid rgba(237,28,36,.18);
  border-radius: 10px;
  background: var(--v7-red-soft);
  color: var(--v7-red-deep);
  font-size: 6.5px;
  font-weight: 850;
  cursor: pointer;
}
.v7-open-product-library:hover { border-color: var(--v7-red); background: var(--v7-red); color: #fff; }

@keyframes v7-knowledge-line { to { stroke-dashoffset: -36; } }

@media (max-width: 1180px) {
  .v7-products-toolbar { grid-template-columns: minmax(220px,.8fr) minmax(0,1.4fr) auto; }
}
@media (max-width: 900px) {
  .v7-products-toolbar { position: static; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .v7-products-search { grid-column: 1 / -1; }
  .v7-products-filters { grid-column: 1; }
  .v7-products-result { grid-column: 2; grid-row: 2; }
  .v7-product-knowledge-card { grid-template-rows: 90px auto auto minmax(0,1fr) auto auto; }
  .v7-product-knowledge-visual { min-height: 90px; }
  .v7-product-cards.is-comparison { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .v7-products-toolbar { padding: 8px; border-radius: 14px; }
  .v7-products-filters { margin-right: -58px; padding-right: 58px; }
  .v7-products-result { align-self: center; }
  .v7-comparison-scroll { margin-inline: -4px; }
  .v7-product-proof { font-size: 4.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-node path { animation: none !important; }
}

/* ======================================================================
   0.7.1 — one-screen AI knowledge workbench
   ====================================================================== */

/* Prevent the compact side rail from shrinking the KPI cells until their
   content clips. The entire rail still remains within the viewport. */
.v7-stat-grid { flex: 0 0 auto; }
.v7-stat-grid article { min-height: 48px; }

/* Initial conversation state: an actual product-knowledge cockpit rather
   than a generic landing illustration. All graphics are CSS/HTML. */
.v7-welcome-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(205px, .72fr);
  gap: 11px;
  margin-top: 13px;
}
.v7-knowledge-network,
.v7-welcome-proof {
  min-width: 0;
  border: 1px solid var(--v7-line);
  border-radius: 16px;
  overflow: hidden;
}
.v7-knowledge-network {
  position: relative;
  min-height: 270px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 51%, rgba(237,28,36,.11), transparent 29%),
    linear-gradient(rgba(27,28,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,28,31,.035) 1px, transparent 1px),
    linear-gradient(145deg,#fbfbfc,#f1f2f4);
  background-size: auto, 25px 25px, 25px 25px, auto;
}
.v7-knowledge-network::before,
.v7-knowledge-network::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.v7-knowledge-network::before {
  inset: 50% auto auto 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%,-50%);
  border: 1px dashed rgba(237,28,36,.18);
  box-shadow: 0 0 0 34px rgba(237,28,36,.018), 0 0 0 68px rgba(27,28,31,.018);
  animation: v7-network-rotate 30s linear infinite;
}
.v7-knowledge-network::after {
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%,-50%);
  background: conic-gradient(from 95deg, transparent, rgba(237,28,36,.055), transparent 28%, rgba(27,28,31,.025), transparent 61%);
  animation: v7-network-rotate-reverse 22s linear infinite;
}
.v7-network-ring,
.v7-network-line { position: absolute; z-index: 1; pointer-events: none; }
.v7-network-ring {
  left: 50%; top: 50%;
  border: 1px solid rgba(27,28,31,.07);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.v7-network-ring-one { width: 126px; height: 126px; }
.v7-network-ring-two { width: 184px; height: 184px; border-style: dashed; border-color: rgba(237,28,36,.14); }
.v7-network-line {
  left: 50%; top: 50%;
  width: 31%; height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(237,28,36,.62), rgba(237,28,36,.08), transparent);
}
.v7-network-line::after {
  content: "";
  position: absolute;
  left: 26%; top: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--v7-red);
  box-shadow: 0 0 0 4px rgba(237,28,36,.08), 0 0 13px rgba(237,28,36,.3);
  animation: v7-network-pulse 2.4s ease-in-out infinite;
}
.v7-network-line-one { transform: rotate(-148deg); }
.v7-network-line-two { transform: rotate(-31deg); }
.v7-network-line-three { transform: rotate(31deg); }
.v7-network-line-four { transform: rotate(148deg); }
.v7-network-line-two::after { animation-delay: .5s; }
.v7-network-line-three::after { animation-delay: 1s; }
.v7-network-line-four::after { animation-delay: 1.5s; }
.v7-network-core {
  position: absolute;
  z-index: 4;
  left: 50%; top: 50%;
  width: 106px; height: 106px;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(237,28,36,.24);
  border-radius: 34px;
  background: linear-gradient(145deg,#26272b,#111214);
  color: #fff;
  box-shadow: 0 24px 42px rgba(25,26,29,.2), 0 0 0 9px rgba(255,255,255,.7), 0 0 0 10px rgba(237,28,36,.08);
}
.v7-network-core::before,
.v7-network-core::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 25px;
}
.v7-network-core::before { inset: 8px; }
.v7-network-core::after { inset: 18px; border-color: rgba(237,28,36,.42); animation: v7-core-breathe 2.8s ease-in-out infinite; }
.v7-network-core > span { position: relative; z-index: 2; display: grid; justify-items: center; gap: 2px; }
.v7-network-core b { color: #ff4148; font-size: 25px; line-height: 1; letter-spacing: -.05em; }
.v7-network-core small { color: rgba(255,255,255,.68); font: 850 5.3px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
.v7-network-core > i {
  position: absolute;
  right: 15px; top: 14px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #42c78b;
  box-shadow: 0 0 0 5px rgba(66,199,139,.11), 0 0 15px rgba(66,199,139,.4);
}
.v7-network-node {
  position: absolute;
  z-index: 5;
  width: min(39%, 190px);
  min-height: 59px;
  display: grid;
  grid-template-columns: 29px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(27,28,31,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  color: var(--v7-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(27,28,31,.075);
  backdrop-filter: blur(12px);
  transition: transform .28s var(--v7-ease), border-color .24s ease, box-shadow .28s ease, background .24s ease;
}
.v7-network-node:hover,
.v7-network-node:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(237,28,36,.31);
  background: #fff;
  box-shadow: 0 17px 32px rgba(27,28,31,.12);
  outline: 0;
}
.v7-network-node > i {
  width: 29px; height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--v7-paper);
  color: var(--v7-red);
  font: 900 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  font-style: normal;
}
.v7-network-node span { min-width: 0; display: grid; gap: 3px; }
.v7-network-node b { overflow: hidden; font-size: 7.8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.v7-network-node small { overflow: hidden; color: var(--v7-muted); font-size: 5.9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.v7-network-node.is-systems { left: 12px; top: 17px; }
.v7-network-node.is-design { right: 12px; top: 17px; }
.v7-network-node.is-documents { left: 12px; bottom: 17px; }
.v7-network-node.is-calculations { right: 12px; bottom: 17px; }
.v7-network-node.is-calculations > i { background: var(--v7-dark); color: #fff; }
.v7-network-node.is-design > i { background: #fff1ec; color: #da5f3f; }
.v7-network-node.is-documents > i { background: #edf8f3; color: #23865c; }

.v7-welcome-proof {
  min-height: 270px;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 90% 3%, rgba(237,28,36,.2), transparent 31%),
    linear-gradient(152deg,#2b272a,#171719 74%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(25,25,28,.13);
}
.v7-welcome-proof > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v7-welcome-proof > header > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.v7-welcome-proof > header i { width: 6px; height: 6px; border-radius: 50%; background: #44c88c; box-shadow: 0 0 0 4px rgba(68,200,140,.1); }
.v7-welcome-proof > header b { overflow: hidden; color: rgba(255,255,255,.72); font: 850 5.8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .09em; text-overflow: ellipsis; white-space: nowrap; }
.v7-welcome-proof > header em { flex: 0 0 auto; color: #ff777c; font: 850 5.8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; font-style: normal; }
.v7-welcome-proof dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.08); }
.v7-welcome-proof dl div { min-height: 43px; display: grid; align-content: center; gap: 3px; padding: 8px; background: rgba(21,22,24,.62); }
.v7-welcome-proof dt { color: rgba(255,255,255,.37); font-size: 5.4px; }
.v7-welcome-proof dd { margin: 0; overflow: hidden; color: #fff; font-size: 7.4px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.v7-proof-actions { display: grid; align-content: start; gap: 6px; }
.v7-proof-actions button {
  min-height: 39px;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(255,255,255,.055);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .25s var(--v7-ease);
}
.v7-proof-actions button:hover { transform: translateX(2px); border-color: rgba(237,28,36,.42); background: rgba(237,28,36,.13); }
.v7-proof-actions button.is-primary { border-color: rgba(237,28,36,.34); background: linear-gradient(135deg,rgba(237,28,36,.22),rgba(237,28,36,.07)); }
.v7-proof-actions span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(237,28,36,.16); color: #ff777c; font: 900 7px ui-monospace,SFMono-Regular,Menlo,monospace; }
.v7-proof-actions b { overflow: hidden; font-size: 6.6px; text-overflow: ellipsis; white-space: nowrap; }
.v7-proof-actions i { color: rgba(255,255,255,.5); font-style: normal; }
.v7-welcome-proof > footer { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 7px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.v7-welcome-proof > footer svg { width: 16px; fill: none; stroke: #ff777c; stroke-width: 1.7; }
.v7-welcome-proof > footer p { margin: 0; color: rgba(255,255,255,.42); font-size: 5.7px; line-height: 1.4; }

/* The welcome message should start at the top. Runtime conversations are
   still automatically scrolled to the newest reply. */
.v7-chat-messages.is-welcome-state { scroll-behavior: auto; }

@keyframes v7-network-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes v7-network-rotate-reverse { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes v7-network-pulse { 0%,100% { transform: scale(.75); opacity: .45; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes v7-core-breathe { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 1460px) and (min-width: 1181px) {
  .v7-welcome-workbench { grid-template-columns: minmax(0,1.38fr) minmax(195px,.72fr); }
  .v7-network-node { width: min(42%, 175px); }
  .v7-network-core { width: 94px; height: 94px; border-radius: 29px; }
  .v7-network-core b { font-size: 22px; }
}
@media (max-width: 1180px) {
  .v7-welcome-workbench { grid-template-columns: minmax(0,1.45fr) minmax(210px,.72fr); }
}
@media (max-width: 900px) {
  .v7-welcome-workbench { grid-template-columns: 1fr; }
  .v7-knowledge-network { min-height: 248px; }
  .v7-welcome-proof { min-height: 0; }
  .v7-welcome-proof dl { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .v7-welcome-proof dl div { min-height: 40px; }
  .v7-proof-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .v7-welcome-workbench { gap: 8px; margin-top: 10px; }
  .v7-knowledge-network { min-height: 226px; border-radius: 13px; }
  .v7-network-core { width: 76px; height: 76px; border-radius: 24px; }
  .v7-network-core b { font-size: 19px; }
  .v7-network-core small { font-size: 4.3px; }
  .v7-network-node { width: calc(50% - 17px); min-height: 52px; grid-template-columns: 25px minmax(0,1fr); gap: 6px; padding: 6px 7px; }
  .v7-network-node > i { width: 25px; height: 25px; font-size: 6px; }
  .v7-network-node b { font-size: 6.7px; }
  .v7-network-node small { font-size: 5.1px; }
  .v7-network-node.is-systems, .v7-network-node.is-documents { left: 7px; }
  .v7-network-node.is-design, .v7-network-node.is-calculations { right: 7px; }
  .v7-network-node.is-systems, .v7-network-node.is-design { top: 8px; }
  .v7-network-node.is-documents, .v7-network-node.is-calculations { bottom: 8px; }
  .v7-welcome-proof { padding: 11px; border-radius: 13px; }
  .v7-welcome-proof dl { grid-template-columns: 1fr 1fr; }
  .v7-proof-actions { grid-template-columns: 1fr; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .v7-welcome-workbench { grid-template-columns: minmax(0,1.5fr) minmax(190px,.7fr); gap: 8px; margin-top: 8px; }
  .v7-knowledge-network, .v7-welcome-proof { min-height: 220px; }
  .v7-network-core { width: 82px; height: 82px; border-radius: 25px; }
  .v7-network-core b { font-size: 20px; }
  .v7-network-node { min-height: 49px; padding-block: 5px; }
  .v7-welcome-proof { gap: 6px; padding: 10px; }
  .v7-welcome-proof dl div { min-height: 35px; }
  .v7-proof-actions button { min-height: 34px; }
  .v7-welcome-proof > footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v7-knowledge-network::before,
  .v7-knowledge-network::after,
  .v7-network-line::after,
  .v7-network-core::after { animation: none !important; }
}

/* Compact the explanatory rail so all controls remain visible on a standard
   900px desktop viewport. */
@media (min-width: 901px) {
  .v7-rail-copy { gap: 10px; }
  .v7-rail-copy h1 { font-size: clamp(27px,1.95vw,34px); }
  .v7-rail-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    font-size: clamp(9.5px,.69vw,11px);
    line-height: 1.48;
  }
  .v7-category-list { gap: 5px; }
  .v7-category-list button { min-height: 36px; padding-block: 5px; }
  .v7-restricted-note { padding: 10px; }
}

/* Product comparison tray -------------------------------------------- */
.v7-product-knowledge-card.is-compare-selected {
  border-color: rgba(237,28,36,.55);
  box-shadow: 0 0 0 3px rgba(237,28,36,.08), 0 20px 46px rgba(29,30,34,.1);
}
.v7-product-knowledge-card footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
}
.v7-product-knowledge-card footer .v7-product-ask { min-width: 0; }
.v7-product-knowledge-card footer .v7-product-ask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-product-knowledge-card footer .v7-product-compare {
  min-width: 36px;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--v7-line);
  border-radius: 10px;
  background: #fff;
  color: var(--v7-muted);
  cursor: pointer;
}
.v7-product-knowledge-card footer .v7-product-compare:hover,
.v7-product-knowledge-card footer .v7-product-compare.is-active {
  border-color: rgba(237,28,36,.35);
  background: var(--v7-red-soft);
  color: var(--v7-red-deep);
}
.v7-product-knowledge-card footer .v7-product-compare svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v7-product-knowledge-card footer .v7-product-compare span { font-size: 6px; font-weight: 800; }
.v7-product-knowledge-card footer > a { grid-column: 1 / -1; justify-self: end; }

.v7-compare-tray {
  position: sticky;
  z-index: 12;
  bottom: 12px;
  width: min(100%, 1480px);
  min-height: 72px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 11px 10px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(28,28,31,.95);
  color: #fff;
  box-shadow: 0 25px 65px rgba(18,18,20,.25);
  backdrop-filter: blur(24px) saturate(140%);
}
.v7-compare-tray[hidden] { display: none !important; }
.v7-compare-tray-copy { min-width: 0; display: grid; gap: 6px; }
.v7-compare-tray-copy > small { color: rgba(255,255,255,.38); font: 850 5.7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
#productCompareSelection { min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
#productCompareSelection::-webkit-scrollbar { display: none; }
#productCompareSelection > span { flex: 0 0 auto; color: rgba(255,255,255,.46); font-size: 7px; }
#productCompareSelection button {
  flex: 0 0 auto;
  min-height: 31px;
  max-width: 250px;
  display: grid;
  grid-template-columns: 21px minmax(0,1fr) 15px;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}
#productCompareSelection button:hover { border-color: rgba(237,28,36,.5); background: rgba(237,28,36,.14); }
#productCompareSelection button i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: rgba(237,28,36,.16); color: #ff8489; font: 850 5.7px ui-monospace,SFMono-Regular,Menlo,monospace; font-style: normal; }
#productCompareSelection button b { overflow: hidden; font-size: 6.7px; text-overflow: ellipsis; white-space: nowrap; }
#productCompareSelection button span { color: rgba(255,255,255,.42); font-size: 12px; }
#productCompareSelection .v7-compare-hint { color: #ffb1b4; }
.v7-compare-tray-actions { display: flex; align-items: center; gap: 6px; }
.v7-compare-tray-actions > button {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.62);
  font-size: 6.5px;
  font-weight: 800;
  cursor: pointer;
}
.v7-compare-tray-actions > button:hover { background: rgba(255,255,255,.08); color: #fff; }
#productCompareRun {
  min-width: 154px;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  border-color: rgba(237,28,36,.36);
  background: linear-gradient(135deg,#ed1c24,#bf0e16);
  color: #fff;
}
#productCompareRun:disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.35); }
#productCompareRun span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.13); font: 900 7px ui-monospace,SFMono-Regular,Menlo,monospace; }
#productCompareRun b { overflow: hidden; font-size: 6.6px; text-overflow: ellipsis; white-space: nowrap; }
#productCompareRun i { font-style: normal; }

@media (max-width: 900px) {
  .v7-product-knowledge-card footer { grid-template-columns: minmax(0,1fr) auto; }
  .v7-product-knowledge-card footer .v7-product-compare span { display: none; }
  .v7-compare-tray { bottom: 72px; grid-template-columns: 1fr; gap: 9px; padding: 11px; }
  .v7-compare-tray-actions { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .v7-compare-tray { left: 0; right: 0; border-radius: 14px; }
  #productCompareSelection button { max-width: 190px; }
  #productCompareRun { min-width: 145px; }
}
