@charset "UTF-8";
:root {
  --paper: #f6f6f4;
  --white: #fff;
  --ink: #262625;
  --muted: #7d7d7c;
  --line: #e6e6e5;
  --accent: #b8202b;
  --accent-dark: #971a23;
  --tint: #faeff0;
  --soft: #f0f0ef;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(28, 35, 29, 0.065);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 32, 43, 0.34);
  outline-offset: 4px;
}
::selection {
  background: #efd8da;
}
button,
input,
textarea {
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s,
    transform 0.2s;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.small {
  width: 16px;
  height: 16px;
}
.skip-link {
  position: fixed;
  top: 16px;
  clip-path: inset(100%);
  left: 16px;
  background: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  clip-path: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  background: #fcfcfa;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 20px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 0;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 3px 9px #b8202b10;
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.brand-copy strong {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  display: block;
}
.brand-copy span {
  font-size: 9px;
  color: #8e8e8d;
  letter-spacing: 0;
  display: block;
  margin-top: 4px;
}
.sidebar-nav {
  display: grid;
  gap: 7px;
  margin-top: 55px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  color: #6c6c6b;
  font-size: 13px;
  position: relative;
}
.nav-item:hover {
  background: #f1f1f0;
  color: var(--ink);
}
.nav-item.active {
  background: #f5e9e9;
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 3px;
  height: 21px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.sidebar-note {
  margin-top: auto;
  padding: 16px 14px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #949493;
  line-height: 1.8;
}
.workspace-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #70706f;
  font-size: 12px;
  margin-bottom: 7px;
}
.workspace-dot {
  width: 6px;
  height: 6px;
  background: #acacab;
  border-radius: 50%;
}
.main {
  min-width: 0;
}
.topbar {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid #e9e9e8;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #9a9a99;
}
.breadcrumbs b {
  font-weight: 500;
  color: #616160;
}
.proto-badge {
  font-size: 10px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ececeb;
  color: #787877;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.proto-badge .icon {
  width: 12px;
  height: 12px;
}
.workspace-content {
  max-width: 1440px;
  margin: auto;
  padding: 36px 48px 38px;
}
.hero {
  margin-bottom: 31px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b8b8a;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.eyebrow:before {
  content: "";
  width: 18px;
  height: 1px;
  background: #a8a8a7;
}
.hero h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.8;
}
.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.config-panel {
  min-width: 0;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.step-number {
  font-size: 10px;
  line-height: 20px;
  width: 23px;
  border: 1px solid #dededd;
  color: #979796;
  border-radius: 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.section-head .section-hint {
  font-size: 10px;
  color: #919190;
  margin-left: auto;
}
.config-section + .config-section {
  margin-top: 28px;
}
.runtime-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
}
.runtime-icon {
  background: #f0f0ef;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #777776;
}
.runtime-title {
  font-weight: 550;
  font-size: 12px;
}
.runtime-title small {
  font-weight: 400;
  font-size: 10px;
  color: #969695;
  margin-left: 6px;
}
.runtime-caption {
  font-size: 10px;
  color: #999998;
  margin-top: 1px;
}
.runtime-row .icon-button {
  margin-left: auto;
}
.icon-button {
  padding: 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #90908f;
}
.icon-button:hover {
  background: #ededec;
  color: #464645;
}
.template-label {
  font-size: 10px;
  color: #949493;
  margin: 0 0 9px 1px;
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.template-card {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 15px 13px;
  gap: 11px;
  background: transparent;
  border: 1px solid #dededd;
  border-radius: 12px;
  min-height: 76px;
}
.template-card:hover {
  background: #ffffff80;
  border-color: #cacac9;
}
.template-card.selected {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #b8202b0b;
}
.template-visual {
  color: #8f8f8e;
  background: #ededec;
  border-radius: 8px;
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
}
.template-card.selected .template-visual {
  color: var(--accent);
  background: var(--tint);
}
.template-card strong {
  font-weight: 550;
  font-size: 12px;
  display: block;
}
.template-card small {
  display: block;
  font-size: 10px;
  color: #949493;
  margin-top: 2px;
}
.radio-dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1px solid #cbcbca;
  border-radius: 50%;
  margin-left: auto;
}
.selected .radio-dot {
  border: 4px solid var(--accent);
  background: #fff;
}
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.capability-card {
  position: relative;
  text-align: left;
  padding: 17px 15px 15px;
  border: 1px solid #dededd;
  background: #ffffff60;
  border-radius: 13px;
  min-height: 153px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.capability-card:hover {
  background: #fff;
  transform: translateY(-2px);
}
.capability-card.selected {
  background: #fff;
  border-color: #d5aaa9;
}
.capability-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cap-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  color: #797978;
  background: #f2f2f1;
  display: grid;
  place-items: center;
}
.capability-card.selected .cap-icon {
  color: #9f2530;
  background: #fbf0ef;
}
.check-box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #cbcbca;
  border-radius: 5px;
  background: #fff;
}
.selected .check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.check-box .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.capability-card h3 {
  font-size: 13px;
  font-weight: 600;
}
.capability-card p {
  font-size: 10px;
  color: #949493;
  margin-top: 5px;
  line-height: 1.75;
}
.capability-card .cap-tag {
  font-size: 9px;
  color: #9c9c9b;
  margin-top: 10px;
  letter-spacing: 0;
}
.guardrails {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  color: #828281;
  margin-top: 14px;
  padding: 0 2px;
}
.guardrail {
  display: flex;
  align-items: center;
  gap: 5px;
}
.guardrail .icon {
  width: 13px;
  height: 13px;
  color: #8e8e8d;
}
.guardrails > span:last-child {
  margin-left: auto;
  font-size: 9px;
  color: #a4a4a3;
}
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.connection-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 9px;
  min-width: 0;
  width: 100%;
  background: #ededec50;
  border: 1px solid #dfdfde;
  border-radius: 11px;
  padding: 12px 11px;
}
.connection-button:hover {
  background: #fff;
  border-color: #cbcbca;
}
.connection-button > .icon {
  width: 17px;
  height: 17px;
  color: #90908f;
}
.connection-button .connection-text {
  min-width: 0;
  flex: 1;
}
.connection-button strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.connection-button small {
  font-size: 9px;
  color: #9b9b9a;
  display: block;
  margin-top: 1px;
}
.connection-button > .chevron {
  width: 12px;
  height: 12px;
  color: #9f9f9e;
}
.connection-button.missing {
  border-color: #dabbb9;
  background: #f8f0ee;
}
.connection-button.missing strong {
  color: #a54646;
}
.build-footer {
  border-top: 1px solid #dededd;
  margin-top: 27px;
  padding-top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.selection-summary strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.selection-summary span {
  font-size: 10px;
  color: #9e9e9d;
  display: block;
  margin-top: 3px;
}
.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  border-radius: 10px;
  min-height: 43px;
  padding: 0 19px;
  font-weight: 550;
}
.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 5px 13px #b8202b12;
}
.primary-button:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px #b8202b25;
}
.primary-button:disabled {
  background: #e1e1e0;
  color: #a4a4a3;
  box-shadow: none;
}
.primary-button .icon {
  width: 15px;
  height: 15px;
}
.secondary-button {
  background: #fff;
  border: 1px solid #dededd;
  color: #70706f;
}
.secondary-button:hover {
  border-color: #b2b2b1;
  background: #fbfbfa;
}
.text-button {
  min-height: 32px;
  padding: 0 5px;
  color: #828281;
  font-size: 11px;
}
.text-button:hover {
  color: var(--accent);
}
.build-unavailable {
  font-size: 10px;
  color: #a55758;
  margin-top: 10px;
  min-height: 16px;
}
.preview-panel {
  padding-top: 1px;
  min-width: 0;
}
.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #939392;
  margin: 0 8px 15px;
  letter-spacing: 0;
}
.preview-label span {
  font-size: 9px;
  letter-spacing: 0;
  color: #9f9f9e;
}
.preview-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 582px;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 43%, #eaeae9 0, transparent 68%);
}
.preview-device {
  width: 290px;
  height: 552px;
  border-radius: 36px;
  background: #fff;
  border: 6px solid #fefefd;
  box-shadow:
    0 0 0 1px #e2e2e1,
    0 18px 44px #34343310,
    0 3px 8px #2d2d2c07;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    width 0.4s,
    height 0.4s,
    border-radius 0.4s;
}
.phone-status {
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 17px 0;
  font-size: 9px;
  color: #5e5e5d;
  font-weight: 600;
}
.phone-signal {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-signal svg {
  width: 11px;
  height: 11px;
}
.phone-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 14px;
  border-radius: 12px;
  background: #282827;
}
.preview-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 17px 15px;
  border-bottom: 1px solid #f1f1f0;
}
.preview-app-header strong {
  font-size: 11px;
  font-weight: 600;
}
.mini-fh {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f6e6e7;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: 0;
  font-weight: 650;
}
.preview-app-body {
  padding: 24px 17px 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(#fbfbfa, #fff 65%);
}
.preview-greeting small {
  display: block;
  font-size: 9px;
  color: #a0a09f;
}
.preview-greeting h3 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-top: 5px;
  font-weight: 550;
}
.preview-greeting p {
  font-size: 9px;
  color: #9e9e9d;
  margin: 7px 0 19px;
}
.preview-fact {
  border: 1px solid #eaeae9;
  border-radius: 12px;
  padding: 15px 14px;
  margin-top: 10px;
  background: #fff;
  position: relative;
}
.preview-fact .fact-label {
  font-size: 9px;
  color: #949493;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-fact .fact-label svg {
  width: 13px;
  height: 13px;
  color: #aaaaa9;
}
.preview-balance {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  margin: 5px 0 3px;
  font-variant-numeric: tabular-nums;
  color: #3c3c3b;
}
.preview-balance span {
  font-size: 11px;
  color: #70706f;
  margin-left: 4px;
  letter-spacing: 0;
}
.preview-fact small {
  font-size: 8px;
  color: #aaaaa9;
}
.preview-risk-row {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 9px;
}
.risk-symbol {
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 600;
  color: #717170;
}
.preview-risk-row p {
  font-size: 9px;
  line-height: 1.7;
  color: #9d9d9c;
}
.preview-fact.minimal {
  padding: 13px 14px;
}
.preview-composer {
  margin: 16px 15px 11px;
  border: 1px solid #e6e6e5;
  border-radius: 11px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #b0b0af;
}
.preview-send {
  background: #b8202b;
  color: white;
  border-radius: 6px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.preview-send .icon {
  width: 12px;
  height: 12px;
}
.phone-home {
  margin: 0 auto 7px;
  width: 77px;
  height: 3px;
  background: #d8d8d7;
  border-radius: 5px;
}
.preview-caption {
  text-align: center;
  font-size: 9px;
  color: #a4a4a3;
  margin-top: 13px;
  line-height: 1.85;
}
.preview-caption strong {
  display: block;
  font-weight: 400;
  color: #848483;
}
.preview-empty {
  border: 1px dashed #dfdfde;
  border-radius: 11px;
  margin-top: 25px;
  padding: 23px 12px;
  text-align: center;
  color: #aaaaa9;
  font-size: 10px;
}
.preview-device.desktop {
  width: 336px;
  height: 392px;
  border-radius: 14px;
  border-width: 5px;
}
.desktop .phone-status {
  height: 25px;
  background: #f1f1f0;
  padding: 0 9px;
  font-size: 8px;
  justify-content: start;
  gap: 4px;
}
.window-dot {
  width: 4px;
  height: 4px;
  border: 1px solid #bfbfbe;
  border-radius: 50%;
}
.window-title {
  margin: auto;
  font-size: 8px;
  font-weight: 400;
  color: #9b9b9a;
  padding-right: 23px;
}
.desktop .phone-island,
.desktop .phone-home {
  display: none;
}
.desktop .preview-app-header {
  padding: 12px 15px;
}
.desktop .preview-app-body {
  padding-top: 15px;
}
.desktop .preview-greeting h3 {
  font-size: 17px;
}
.desktop .preview-greeting p {
  margin-bottom: 13px;
}
.desktop .preview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.desktop .preview-fact {
  padding: 11px 9px;
  margin-top: 0;
}
.desktop .preview-balance {
  font-size: 17px;
  letter-spacing: 0;
  margin-top: 9px;
}
.desktop .preview-balance span {
  font-size: 8px;
  display: block;
}
.desktop .preview-risk-row {
  gap: 6px;
  align-items: flex-start;
}
.desktop .risk-symbol {
  font-size: 17px;
}
.desktop .preview-risk-row p {
  font-size: 8px;
}
.desktop .preview-composer {
  margin: 12px 15px 10px;
}
.desktop .preview-fact small {
  font-size: 7px;
}
.desktop .preview-fact .fact-label {
  font-size: 8px;
}
.desktop .preview-greeting small {
  font-size: 8px;
}
.desktop .preview-greeting p {
  font-size: 8px;
}
.prototype-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #a5a5a4;
  margin-top: 23px;
}
.prototype-note .icon {
  width: 13px;
  height: 13px;
}
/* The injection scene */
.build-page {
  max-width: 1070px;
  margin: auto;
  padding: 40px 45px 35px;
}
.build-page .hero {
  text-align: center;
  margin-bottom: 20px;
}
.build-page .eyebrow {
  justify-content: center;
}
.build-page .eyebrow:before {
  display: none;
}
.build-page .hero h1 {
  font-size: 30px;
}
.build-page .hero p {
  max-width: 540px;
  margin: 11px auto 0;
}
.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 35px;
  align-items: center;
  min-height: 415px;
}
.injection-scene {
  height: 365px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 25px;
  background: radial-gradient(
    ellipse at center,
    #f2e8e6 0,
    #f3f1ec 39%,
    transparent 69%
  );
}
.orbit {
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid #e6dad7;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit.small {
  width: 216px;
  height: 216px;
  border-style: dashed;
  border-color: #decdca;
  animation: orbit-spin 35s linear infinite;
}
.orbit:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #d9b1b0;
  border-radius: 50%;
  top: 41px;
  left: 41px;
}
.injection-core {
  z-index: 3;
  position: relative;
  width: 124px;
  height: 145px;
  transform: rotate(-8deg);
  animation: core-float 3.8s ease-in-out infinite;
}
.core-shadow {
  position: absolute;
  inset: 0;
  border: 1px solid #decac5;
  border-radius: 17px;
  background: #f5e8e3;
  transform: translate(15px, 8px) rotate(12deg);
}
.core-shadow.second {
  transform: translate(-10px, -5px) rotate(-7deg);
  background: #fcf6f0;
  border-color: #e6d9d0;
}
.core-front {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  background: #fffcf9;
  border: 1px solid #e0cecc;
  box-shadow: 0 20px 35px #7f263616;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.core-front .brand-mark {
  width: 49px;
  height: 49px;
  border-radius: 14px;
  box-shadow: 0 7px 16px #b8202b25;
}
.core-front small {
  font-size: 9px;
  letter-spacing: 0;
  color: #916e68;
  font-weight: 600;
}
.injection-node {
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid #e2d5d0;
  padding: 9px 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 18px #43312208;
  font-size: 10px;
  color: #88736b;
  animation: node-float 4s ease-in-out infinite;
}
.injection-node .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.injection-node.top {
  top: 44px;
  left: 50%;
  margin-left: -61px;
  animation-delay: -1s;
}
.injection-node.left {
  left: 14px;
  top: 205px;
  animation-delay: -2s;
}
.injection-node.right {
  right: 10px;
  top: 215px;
  animation-delay: -3s;
}
.scene-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  color: #d4b9b3;
}
.scene-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.scene-lines .lit-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 160;
  animation: flow-line 3s linear infinite;
  opacity: 0.55;
}
.scene-subtitle {
  position: absolute;
  bottom: 10px;
  font-size: 9px;
  color: #a48d82;
  letter-spacing: 0;
}
.build-stages {
  display: grid;
  gap: 0;
  padding-top: 15px;
}
.build-stage {
  position: relative;
  display: flex;
  gap: 13px;
  padding-bottom: 24px;
  color: #aaaaa9;
}
.build-stage:not(:last-child):before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 4px;
  width: 1px;
  left: 11px;
  background: #e0e0df;
}
.stage-marker {
  width: 23px;
  height: 23px;
  border: 1px solid #dcdcdb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
  background: var(--paper);
}
.stage-marker .icon {
  width: 12px;
  height: 12px;
}
.build-stage.current {
  color: #7f302f;
}
.current .stage-marker {
  border-color: #c87775;
  color: var(--accent);
  box-shadow: 0 0 0 5px #b8202b06;
}
.current .stage-marker:after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
.build-stage.done .stage-marker {
  background: #f4e7e4;
  color: #b15451;
  border-color: #eacfcc;
}
.build-stage strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.build-stage p {
  font-size: 9px;
  color: #a4a4a3;
  margin-top: 3px;
  max-width: 205px;
  line-height: 1.8;
}
.build-stage:not(.current) p {
  visibility: hidden;
}
.build-bottom {
  border-top: 1px solid #e1e1e0;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.build-bottom p {
  font-size: 11px;
  color: #989897;
}
.build-bottom small {
  display: block;
  font-size: 9px;
  color: #a7a7a6;
  margin-top: 4px;
}
.build-bottom .secondary-button {
  font-size: 11px;
}
.build-complete {
  text-align: center;
  max-width: 720px;
  margin: 35px auto 0;
}
.complete-mark {
  width: 77px;
  height: 77px;
  background: #f8eaea;
  color: var(--accent);
  border: 1px solid #f0d6d6;
  border-radius: 23px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  transform: rotate(-6deg);
}
.complete-mark svg {
  width: 33px;
  height: 33px;
  transform: rotate(6deg);
}
.build-complete h1 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: 0;
}
.build-complete > p {
  font-size: 12px;
  color: #979796;
  margin: 12px 0 30px;
}
.completed-agent {
  max-width: 410px;
  margin: 0 auto 27px;
  padding: 20px;
  text-align: left;
  background: white;
  border: 1px solid #e4e4e3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.completed-agent .agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.completed-agent strong {
  font-size: 14px;
  font-weight: 550;
  display: block;
}
.completed-agent span {
  font-size: 11px;
  color: #959594;
}
.complete-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.build-complete .completion-footnote {
  font-size: 10px;
  color: #a3a3a2;
  margin-top: 25px;
}
.record-label {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  color: #989897;
  border: 1px solid #dfdfde;
  padding: 2px 6px;
  border-radius: 4px;
}
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title-row h1 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: 0;
}
.page-title-row p {
  font-size: 11px;
  color: #959594;
  margin-top: 7px;
}
.empty-state {
  padding: 78px 25px;
  text-align: center;
  border: 1px dashed #dbdbda;
  border-radius: 18px;
  background: #fbfbfa60;
}
.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  background: #ebebea;
  border-radius: 17px;
  color: #9c9c9b;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.empty-state .empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty-state h2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 11px;
  color: #979796;
  margin-bottom: 23px;
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.agent-card {
  background: white;
  border: 1px solid #e2e2e1;
  border-radius: 17px;
  padding: 23px;
  box-shadow: 0 6px 18px #35353403;
  min-width: 0;
}
.agent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-avatar {
  width: 40px;
  height: 40px;
  background: #f8ecea;
  color: var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.agent-avatar svg {
  width: 20px;
  height: 20px;
}
.agent-card h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0;
  margin: 19px 0 5px;
}
.agent-card > p {
  font-size: 11px;
  color: #9a9a99;
}
.agent-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chip {
  font-size: 9px;
  padding: 3px 7px;
  background: #f3f3f2;
  color: #8f8f8e;
  border-radius: 5px;
}
.agent-card-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eeeeed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.agent-card-footer .primary-button {
  min-height: 34px;
  font-size: 10px;
  padding: 0 13px;
  border-radius: 8px;
}
.agent-card-footer .text-button {
  font-size: 10px;
}
.record-time {
  font-size: 9px;
  color: #afafae;
  margin-top: 14px;
}
.connection-list {
  border: 1px solid #e2e2e1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.connection-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 26px 25px;
}
.connection-row + .connection-row {
  border-top: 1px solid #ebebea;
}
.connection-row .connection-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f1f1f0;
  color: #878786;
  display: grid;
  place-items: center;
}
.connection-row .connection-row-main {
  flex: 1;
  min-width: 0;
}
.connection-row h2 {
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 4px;
}
.connection-row p {
  font-size: 11px;
  color: #989897;
}
.connection-row .record-label {
  margin-right: 20px;
}
.connection-page-note {
  font-size: 11px;
  color: #949493;
  margin-top: 19px;
  line-height: 1.9;
  max-width: 600px;
}
/* Agent experience */
.agent-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f3f2;
  padding: 0 30px 26px;
}
.agent-topbar {
  max-width: 1450px;
  margin: auto;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 21px;
  justify-content: space-between;
}
.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8a8a89;
  padding: 7px 0;
}
.back-button:hover {
  color: var(--accent);
}
.back-button .icon {
  width: 16px;
  height: 16px;
}
.agent-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.agent-top-actions .text-button {
  font-size: 10px;
}
.agent-top-title {
  font-size: 11px;
  color: #9f9f9e;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.agent-top-title:before {
  content: "";
  height: 14px;
  width: 1px;
  background: #d9d9d8;
}
.agent-shell {
  display: grid;
  background: #fff;
  border: 1px solid #e2e2e1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 45px #40403f08;
  margin: 0 auto;
  min-height: 0;
  transition: max-width 0.3s;
}
.agent-shell.mobile {
  max-width: 430px;
  height: calc(100dvh - 120px);
  min-height: 650px;
  max-height: 860px;
  position: relative;
  border: 6px solid #fff;
  border-radius: 31px;
  box-shadow:
    0 0 0 1px #e0e0df,
    0 18px 50px #3f3f3e0c;
}
.agent-shell.desktop {
  max-width: 1170px;
  height: calc(100dvh - 120px);
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) 285px;
}
.agent-shell.desktop.detail-hidden {
  grid-template-columns: minmax(0, 1fr);
}
.chat-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eeeeed;
  background: #fff;
  flex-shrink: 0;
}
.chat-header .agent-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.chat-header .agent-avatar .icon {
  width: 18px;
  height: 18px;
}
.chat-header h1 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: 0;
}
.chat-header p {
  font-size: 9px;
  color: #a6a6a5;
  margin-top: 2px;
}
.chat-header .icon-button {
  margin-left: auto;
}
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 26px 24px 20px;
  scroll-behavior: smooth;
  background: linear-gradient(#fcfcfb, #fff 40%);
  scrollbar-width: thin;
  scrollbar-color: #e0e0df transparent;
}
.chat-welcome {
  margin-bottom: 28px;
}
.chat-welcome .welcome-kicker {
  color: #a6a6a5;
  font-size: 10px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.chat-welcome h2 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.45;
  margin-bottom: 10px;
}
.chat-welcome p {
  font-size: 11px;
  color: #9c9c9b;
  max-width: 430px;
  line-height: 1.9;
}
.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
}
.suggestion {
  font-size: 10px;
  background: #fff;
  border: 1px solid #e0e0df;
  border-radius: 9px;
  color: #7f7f7e;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}
.suggestion:hover {
  background: #f9efea;
  border-color: #dec3b9;
  color: #a44b3d;
}
.suggestion .icon {
  width: 14px;
  height: 14px;
}
.message {
  margin-top: 21px;
  animation: message-enter 0.22s ease-out;
}
.message.user {
  display: flex;
  justify-content: flex-end;
}
.user-bubble {
  max-width: 83%;
  background: #f1f1f0;
  color: #646463;
  font-size: 12px;
  line-height: 1.9;
  padding: 11px 15px;
  border-radius: 14px 14px 3px 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.assistant-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #989897;
  font-size: 9px;
  margin-bottom: 8px;
}
.assistant-label .mini-fh {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  font-size: 7px;
}
.assistant-label span:last-child {
  font-size: 8px;
  color: #b4b4b3;
  margin-left: 3px;
}
.assistant-content {
  font-size: 12px;
  line-height: 1.95;
  color: #666665;
  max-width: 680px;
  overflow-wrap: anywhere;
}
.assistant-content p + p {
  margin-top: 9px;
}
.answer-card {
  border: 1px solid #e3e3e2;
  border-radius: 12px;
  background: #fff;
  padding: 16px 17px;
  margin: 12px 0 10px;
  box-shadow: 0 3px 12px #33333203;
}
.answer-label {
  font-size: 10px;
  color: #9e9e9d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.answer-label span {
  font-size: 8px;
  background: #f3f3f2;
  padding: 1px 5px;
  border-radius: 4px;
  color: #a1a1a0;
}
.answer-number {
  font-size: 30px;
  letter-spacing: 0;
  font-weight: 600;
  color: #40403f;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  margin: 5px 0;
}
.answer-number small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
  color: #959594;
  letter-spacing: 0;
}
.answer-card > p {
  font-size: 9px;
  color: #a3a3a2;
  margin-top: 5px;
  line-height: 1.8;
}
.answer-fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
  color: #979796;
}
.answer-fact-row + .answer-fact-row {
  border-top: 1px solid #f0f0ef;
}
.answer-fact-row strong {
  font-weight: 500;
  color: #60605f;
  text-align: right;
}
.answer-note {
  font-size: 10px !important;
  color: #9e9e9d !important;
  line-height: 1.85 !important;
  padding-top: 8px;
  border-top: 1px solid #efefee;
  margin-top: 10px !important;
}
.source-link {
  font-size: 9px;
  color: #a55b55;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
}
.source-link .icon {
  width: 12px;
  height: 12px;
}
.source-link:hover {
  color: var(--accent);
}
.response-footnote {
  font-size: 9px;
  color: #a2a2a1;
  margin: 7px 0;
}
.unavailable-note {
  background: #f7f4eb;
  border: 1px solid #e9e2ce;
  padding: 12px 14px;
  border-radius: 10px;
  color: #98875e;
  font-size: 11px;
  margin: 11px 0;
}
.typing {
  display: flex;
  gap: 4px;
  padding: 10px 0;
}
.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b1b1b0;
  animation: dot-pulse 1s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.16s;
}
.typing span:nth-child(3) {
  animation-delay: 0.32s;
}
.chat-composer-area {
  padding: 13px 19px 12px;
  border-top: 1px solid #f2f2f1;
  flex-shrink: 0;
  background: #fff;
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid #e0e0df;
  background: #fff;
  border-radius: 13px;
  padding: 8px 9px 8px 13px;
}
.chat-composer:focus-within {
  border-color: #c79a8d;
  box-shadow: 0 0 0 3px #b8202b04;
}
.chat-composer textarea {
  width: 100%;
  min-height: 30px;
  max-height: 105px;
  resize: none;
  border: 0;
  outline: none !important;
  padding: 5px 0;
  color: #5a5a59;
  background: transparent;
  font-size: 11px;
  line-height: 1.8;
}
.chat-composer textarea::placeholder {
  color: #b1b1b0;
}
.send-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  flex-shrink: 0;
}
.send-button .icon {
  width: 16px;
  height: 16px;
}
.send-button:disabled {
  background: #e7e7e6;
  color: #b3b3b2;
}
.composer-caption {
  text-align: center;
  font-size: 8px;
  color: #b3b3b2;
  margin-top: 8px;
  line-height: 1.8;
}
.source-aside {
  padding: 24px 21px;
  border-left: 1px solid #eaeae9;
  background: #fcfcfb;
  overflow: auto;
}
.source-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.source-aside h2 {
  font-size: 12px;
  font-weight: 550;
  color: #6b6b6a;
}
.source-empty {
  font-size: 10px;
  line-height: 1.95;
  color: #a7a7a6;
  padding: 0 1px;
}
.source-empty > .icon {
  width: 28px;
  height: 28px;
  color: #babab9;
  margin-bottom: 16px;
}
.detail-section {
  margin-bottom: 24px;
}
.detail-section h3 {
  font-size: 9px;
  font-weight: 500;
  color: #a8a8a7;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.detail-section p,
.detail-section dd {
  font-size: 10px;
  line-height: 1.95;
  color: #818180;
  overflow-wrap: anywhere;
}
.detail-section .tool-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #7d7d7c;
  padding: 7px 9px;
  background: #f0f0ef;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.detail-section dl {
  margin: 0;
}
.detail-section dt {
  font-size: 9px;
  color: #aaaaa9;
  margin-top: 11px;
}
.detail-section dd {
  margin: 1px 0 0;
}
.detail-note {
  font-size: 9px;
  line-height: 1.95;
  color: #a1a1a0;
  background: #f1f1f0;
  border-radius: 9px;
  padding: 12px;
}
/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #26262540;
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  animation: overlay-in 0.18s ease-out;
}
.drawer {
  width: 440px;
  max-width: 100%;
  height: 100dvh;
  background: #fcfcfb;
  box-shadow: -20px 0 70px #1f1f1e18;
  display: flex;
  flex-direction: column;
  animation: drawer-in 0.25s ease-out;
}
.drawer-header {
  padding: 27px 28px 23px;
  border-bottom: 1px solid #e5e5e4;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.drawer-header h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: 0;
}
.drawer-header p {
  font-size: 10px;
  color: #9f9f9e;
  margin-top: 6px;
}
.drawer-header .icon-button {
  margin-left: auto;
  margin-top: 0;
}
.drawer-body {
  padding: 27px 28px;
  overflow: auto;
  flex: 1;
}
.drawer-intro {
  font-size: 11px;
  line-height: 1.95;
  color: #959594;
  margin-bottom: 22px;
}
.drawer-section-title {
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 12px;
  color: #777776;
}
.setting-choice {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dededd;
  background: white;
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 11px;
}
.setting-choice.selected {
  border-color: #bb7c71;
  background: #fffaf7;
}
.setting-choice .radio-dot {
  margin-left: 0;
  margin-top: 4px;
  width: 14px;
  height: 14px;
}
.setting-choice strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  color: #5e5e5d;
}
.setting-choice p {
  font-size: 10px;
  color: #a1a1a0;
  line-height: 1.85;
  margin-top: 5px;
}
.settings-metadata {
  margin-top: 26px;
  border-top: 1px solid #e5e5e4;
  padding-top: 21px;
}
.settings-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  line-height: 1.9;
  padding: 6px 0;
  color: #a6a6a5;
}
.settings-meta-row strong {
  font-weight: 450;
  color: #7e7e7d;
  text-align: right;
  overflow-wrap: anywhere;
}
.settings-callout {
  background: #f0f0ef;
  border-radius: 10px;
  padding: 14px 15px;
  font-size: 10px;
  line-height: 1.95;
  color: #9d9d9c;
  margin-top: 21px;
  display: flex;
  gap: 9px;
}
.settings-callout .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid #e6e6e5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fcfcfb;
}
.drawer-footer .primary-button {
  font-size: 11px;
}
.drawer-body .detail-section p,
.drawer-body .detail-section dd {
  font-size: 12px;
}
.drawer-body .detail-section h3 {
  font-size: 10px;
}
.drawer-body .detail-note {
  font-size: 10px;
}
.drawer-body .detail-section dt {
  font-size: 10px;
}
.drawer-body .detail-section .tool-name {
  font-size: 12px;
}
.dialog-overlay {
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.dialog {
  background: #fcfcfb;
  border-radius: 19px;
  padding: 28px;
  width: 405px;
  max-width: 100%;
  box-shadow: 0 20px 60px #1e1e1d20;
  animation: message-enter 0.2s ease-out;
}
.dialog h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: 0;
  margin: 0 0 11px;
}
.dialog p {
  font-size: 11px;
  line-height: 1.95;
  color: #9d9d9c;
}
.delete-review {
  margin: 18px 0;
  padding: 14px 15px;
  background: #f1f1f0;
  border-radius: 10px;
  font-size: 11px;
  color: #828281;
}
.delete-review strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  color: #656564;
}
.delete-review small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
.dialog-actions .primary-button,
.dialog-actions .secondary-button {
  font-size: 10px;
  min-height: 39px;
  padding: 0 14px;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 100;
  background: #3c3c3b;
  color: #fcfcfb;
  font-size: 11px;
  padding: 11px 17px;
  border-radius: 10px;
  box-shadow: 0 8px 25px #2c2c2b18;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes core-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-9px) rotate(-3deg);
  }
}
@keyframes node-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes flow-line {
  to {
    stroke-dashoffset: -330;
  }
}
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(28px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes message-enter {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .workspace-content {
    padding-top: 46px;
  }
  .hero {
    margin-bottom: 38px;
  }
  .create-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 60px;
  }
  .config-section + .config-section {
    margin-top: 32px;
  }
  .preview-device {
    width: 310px;
    height: 573px;
  }
  .preview-stage {
    min-height: 600px;
  }
  .preview-app-body {
    padding: 25px 21px 0;
  }
  .preview-app-header {
    padding-left: 21px;
    padding-right: 21px;
  }
  .capability-card {
    min-height: 158px;
  }
}
@media (max-width: 1230px) {
  .app-shell {
    grid-template-columns: 182px minmax(0, 1fr);
  }
  .sidebar {
    padding: 29px 16px 22px;
  }
  .nav-item {
    padding: 12px 11px;
  }
  .nav-item.active:before {
    left: -16px;
  }
  .brand-copy strong {
    font-size: 11px;
  }
  .brand-copy span {
    font-size: 8px;
    letter-spacing: 0;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .topbar {
    padding: 0 32px;
  }
  .workspace-content {
    padding: 31px 32px;
  }
  .create-grid {
    gap: 27px;
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .template-card {
    padding: 13px 10px;
    gap: 8px;
  }
  .template-visual {
    width: 27px;
    height: 32px;
  }
  .template-visual .icon {
    width: 18px;
    height: 18px;
  }
  .template-card strong {
    font-size: 11px;
  }
  .template-card small {
    font-size: 9px;
  }
  .guardrails {
    gap: 11px;
  }
  .guardrails > span:last-child {
    display: none;
  }
  .preview-device {
    width: 270px;
    height: 536px;
  }
  .preview-stage {
    min-height: 565px;
  }
  .preview-device.desktop {
    width: 285px;
    height: 391px;
  }
  .desktop .preview-facts {
    grid-template-columns: 1fr;
  }
  .desktop .preview-fact {
    padding: 10px 12px;
  }
  .desktop .preview-fact.minimal {
    margin-top: 0;
  }
  .desktop .preview-balance {
    font-size: 18px;
    line-height: 1.3;
  }
  .desktop .preview-balance span {
    display: inline;
    font-size: 9px;
  }
  .desktop .preview-risk-row {
    margin-top: 3px;
  }
  .desktop .preview-risk-row p {
    font-size: 8px;
  }
  .desktop .preview-fact > small {
    display: none;
  }
  .build-layout {
    gap: 23px;
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  .build-page {
    padding-left: 29px;
    padding-right: 29px;
  }
  .injection-node.left {
    left: 0;
  }
  .injection-node.right {
    right: 0;
  }
  .orbit {
    width: 270px;
    height: 270px;
  }
  .injection-scene {
    height: 340px;
  }
  .injection-node {
    font-size: 9px;
    padding: 8px 10px;
  }
}
@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .sidebar .brand-copy {
    display: none;
  }
  .sidebar-nav {
    margin-top: 50px;
  }
  .nav-item {
    justify-content: center;
    padding: 13px 8px;
  }
  .nav-item > span {
    display: none;
  }
  .nav-item.active:before {
    left: -12px;
  }
  .sidebar-note {
    padding: 16px 0 0;
    text-align: center;
  }
  .sidebar-note p,
  .workspace-name span {
    display: none;
  }
  .workspace-name {
    justify-content: center;
  }
  .create-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .preview-device {
    width: 279px;
  }
  .preview-device.desktop {
    width: 310px;
  }
  .template-card {
    padding: 14px 12px;
  }
  .template-card strong {
    font-size: 12px;
  }
  .guardrails > span:last-child {
    display: block;
  }
  .hero h1 {
    font-size: 30px;
  }
}
@media (max-width: 850px) {
  .create-grid {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #e0e0df;
  }
  .preview-label {
    max-width: 330px;
    margin: 0 auto 10px;
  }
  .preview-stage {
    min-height: 557px;
  }
  .preview-device {
    width: 290px;
    height: 536px;
  }
  .preview-device.desktop {
    width: 360px;
    height: 380px;
  }
  .desktop .preview-facts {
    grid-template-columns: 1fr 1fr;
  }
  .desktop .preview-fact > small {
    display: block;
  }
  .desktop .preview-risk-row {
    margin-top: 9px;
    gap: 9px;
  }
  .desktop .preview-balance span {
    display: block;
  }
  .desktop .preview-fact {
    padding: 12px;
  }
  .desktop .preview-greeting h3 {
    font-size: 19px;
  }
  .desktop .preview-greeting p {
    font-size: 9px;
    margin-bottom: 17px;
  }
  .desktop .preview-app-body {
    padding: 19px 17px 0;
  }
  .config-section + .config-section {
    margin-top: 29px;
  }
  .hero {
    margin-bottom: 30px;
  }
  .build-layout {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .build-page {
    padding-top: 25px;
  }
  .build-page .hero h1 {
    font-size: 26px;
  }
  .injection-scene {
    max-width: 470px;
    width: 100%;
    margin: auto;
    height: 315px;
  }
  .injection-node.top {
    top: 24px;
  }
  .injection-node.left {
    left: 10px;
    top: 185px;
  }
  .injection-node.right {
    right: 10px;
    top: 195px;
  }
  .build-stages {
    grid-template-columns: repeat(5, 1fr);
    padding: 20px 0;
  }
  .build-stage {
    display: block;
    text-align: center;
    padding: 0 3px;
  }
  .stage-marker {
    margin: 0 auto 10px;
  }
  .build-stage:not(:last-child):before {
    top: 11px;
    left: 65%;
    right: -35%;
    width: auto;
    height: 1px;
    bottom: auto;
  }
  .build-stage strong {
    font-size: 10px;
  }
  .build-stage p {
    display: none;
  }
  .build-bottom {
    margin-top: 16px;
  }
  .agent-shell.desktop {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .agent-top-actions {
    gap: 8px;
  }
  .source-aside {
    padding: 23px 17px;
  }
  .agent-top-title {
    display: none;
  }
}
@media (max-width: 640px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid #e4e4e3;
    display: block;
    background: #fcfcfa;
  }
  .sidebar .brand {
    justify-content: flex-start;
    width: max-content;
  }
  .sidebar .brand-copy {
    display: block;
  }
  .brand-copy strong {
    font-size: 12px;
  }
  .brand-copy span {
    font-size: 8px;
    letter-spacing: 0;
  }
  .sidebar-nav {
    margin-top: 18px;
    display: flex;
    gap: 6px;
  }
  .nav-item {
    flex: 1;
    padding: 9px 6px;
    gap: 6px;
    font-size: 11px;
    border-radius: 8px;
  }
  .nav-item > span {
    display: inline;
  }
  .nav-item > .icon {
    width: 15px;
    height: 15px;
  }
  .nav-item.active:before {
    display: none;
  }
  .sidebar-note {
    display: none;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
    border-bottom: 0;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 8px;
  }
  .proto-badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .proto-badge .icon {
    width: 10px;
    height: 10px;
  }
  .workspace-content {
    padding: 12px 20px 30px;
  }
  .hero {
    margin-bottom: 26px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 26px;
    letter-spacing: 0;
    line-height: 1.5;
  }
  .hero p {
    font-size: 10px;
    margin-top: 9px;
    line-height: 1.9;
    max-width: 310px;
  }
  .section-head {
    gap: 9px;
    margin-bottom: 13px;
  }
  .section-head h2 {
    font-size: 13px;
  }
  .section-head .section-hint {
    font-size: 8px;
  }
  .step-number {
    font-size: 8px;
    width: 20px;
    line-height: 18px;
  }
  .runtime-row {
    padding: 12px;
  }
  .runtime-title {
    font-size: 11px;
  }
  .runtime-title small {
    font-size: 9px;
  }
  .runtime-caption {
    font-size: 9px;
  }
  .runtime-icon {
    width: 30px;
    height: 30px;
  }
  .template-grid,
  .capability-grid,
  .connection-grid {
    gap: 9px;
  }
  .template-card {
    padding: 13px 10px;
    gap: 8px;
    min-height: 78px;
    flex-wrap: wrap;
  }
  .template-visual {
    width: 28px;
    height: 30px;
  }
  .template-card strong {
    font-size: 10px;
  }
  .template-card small {
    font-size: 8px;
  }
  .radio-dot {
    width: 11px;
    height: 11px;
  }
  .selected .radio-dot {
    border-width: 3px;
  }
  .template-card .radio-dot {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .template-card > div:not(.template-visual) {
    padding-right: 6px;
  }
  .capability-card {
    padding: 15px 13px;
    min-height: 151px;
  }
  .capability-card h3 {
    font-size: 12px;
  }
  .capability-card p {
    font-size: 9px;
  }
  .capability-card .cap-tag {
    font-size: 8px;
  }
  .capability-top {
    margin-bottom: 12px;
  }
  .cap-icon {
    width: 31px;
    height: 31px;
  }
  .check-box {
    width: 15px;
    height: 15px;
  }
  .guardrails {
    font-size: 9px;
    gap: 15px;
  }
  .guardrails > span:last-child {
    display: none;
  }
  .connection-button {
    padding: 11px 9px;
    gap: 7px;
    align-items: center;
    min-height: 58px;
  }
  .connection-button > .icon {
    width: 15px;
    height: 15px;
  }
  .connection-button strong {
    font-size: 10px;
  }
  .connection-button small {
    font-size: 8px;
  }
  .connection-button > .chevron {
    width: 10px;
    height: 10px;
  }
  .build-footer {
    align-items: flex-start;
    gap: 14px;
    margin-top: 23px;
    padding-top: 19px;
    flex-wrap: wrap;
  }
  .selection-summary strong {
    font-size: 11px;
  }
  .selection-summary span {
    font-size: 9px;
  }
  .build-footer .primary-button {
    width: 100%;
    min-height: 45px;
    font-size: 12px;
  }
  .build-unavailable {
    font-size: 9px;
  }
  .preview-panel {
    margin-top: 15px;
    padding-top: 20px;
  }
  .preview-stage {
    min-height: 542px;
  }
  .preview-device {
    width: 281px;
    height: 523px;
  }
  .preview-device.desktop {
    width: min(335px, 100%);
    height: 380px;
  }
  .desktop .preview-fact {
    padding: 9px;
  }
  .desktop .preview-balance {
    font-size: 16px;
  }
  .desktop .preview-risk-row {
    gap: 5px;
  }
  .desktop .risk-symbol {
    font-size: 16px;
  }
  .preview-caption {
    font-size: 8px;
  }
  .prototype-note {
    font-size: 8px;
    align-items: flex-start;
    line-height: 1.8;
    gap: 6px;
    margin-top: 21px;
  }
  .prototype-note .icon {
    margin-top: 2px;
    flex-shrink: 0;
  }
  .build-page {
    padding: 16px 20px 25px;
  }
  .build-page .hero h1 {
    font-size: 25px;
    letter-spacing: 0;
  }
  .build-page .hero p {
    font-size: 10px;
  }
  .build-page .hero {
    margin-bottom: 5px;
  }
  .injection-scene {
    height: 300px;
  }
  .injection-core {
    width: 108px;
    height: 130px;
  }
  .orbit {
    width: 247px;
    height: 247px;
  }
  .orbit.small {
    width: 173px;
    height: 173px;
  }
  .injection-node.top {
    top: 20px;
    left: 50%;
    margin-left: -55px;
  }
  .injection-node.left {
    left: 0;
    top: 179px;
  }
  .injection-node.right {
    right: 0;
    top: 191px;
  }
  .injection-node {
    padding: 7px 9px;
    font-size: 8px;
    gap: 5px;
    border-radius: 9px;
  }
  .injection-node .icon {
    width: 13px;
    height: 13px;
  }
  .core-front .brand-mark {
    width: 41px;
    height: 41px;
    border-radius: 11px;
  }
  .core-front small {
    font-size: 8px;
    letter-spacing: 0;
  }
  .scene-subtitle {
    font-size: 8px;
    bottom: 3px;
  }
  .build-stages {
    padding-top: 20px;
  }
  .build-stage strong {
    font-size: 8px;
  }
  .stage-marker {
    width: 21px;
    height: 21px;
    font-size: 8px;
  }
  .build-stage:not(:last-child):before {
    top: 10px;
  }
  .build-bottom {
    display: block;
    text-align: center;
    padding-top: 17px;
    margin-top: 8px;
  }
  .build-bottom p {
    font-size: 10px;
  }
  .build-bottom small {
    font-size: 8px;
  }
  .build-bottom .secondary-button {
    margin-top: 16px;
    font-size: 10px;
    min-height: 37px;
  }
  .build-complete {
    margin-top: 45px;
  }
  .build-complete h1 {
    font-size: 25px;
  }
  .build-complete > p {
    font-size: 10px;
    line-height: 1.9;
  }
  .completed-agent {
    padding: 17px;
  }
  .completed-agent strong {
    font-size: 13px;
  }
  .completed-agent span {
    font-size: 10px;
  }
  .complete-actions .primary-button,
  .complete-actions .secondary-button {
    font-size: 11px;
    padding: 0 14px;
  }
  .build-complete .completion-footnote {
    font-size: 9px;
  }
  .page-title-row {
    margin-bottom: 21px;
    align-items: flex-start;
  }
  .page-title-row h1 {
    font-size: 25px;
  }
  .page-title-row p {
    font-size: 10px;
    max-width: 220px;
    line-height: 1.9;
  }
  .page-title-row .primary-button {
    font-size: 10px;
    min-height: 36px;
    padding: 0 11px;
    margin-top: 5px;
  }
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .agent-card {
    padding: 20px;
  }
  .connection-row {
    padding: 22px 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .connection-row .connection-row-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .connection-row h2 {
    font-size: 13px;
  }
  .connection-row p {
    font-size: 10px;
  }
  .connection-row .record-label {
    margin-right: 0;
    font-size: 8px;
  }
  .connection-row .secondary-button {
    margin-left: 49px;
    min-height: 33px;
    font-size: 10px;
    padding: 0 12px;
  }
  .connection-page-note {
    font-size: 10px;
  }
  .empty-state {
    padding: 60px 20px;
  }
  .empty-state p {
    font-size: 10px;
  }
  .agent-page {
    padding: 0 11px 17px;
  }
  .agent-topbar {
    height: auto;
    min-height: 76px;
    padding: 15px 6px 12px;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .back-button {
    font-size: 10px;
    padding: 2px 0;
  }
  .agent-top-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }
  .agent-top-actions .text-button {
    font-size: 9px;
    min-height: 20px;
  }
  .agent-top-actions .proto-badge {
    font-size: 7px;
  }
  .agent-shell.mobile,
  .agent-shell.desktop {
    height: calc(100dvh - 102px);
    min-height: 570px;
    max-height: none;
    max-width: none;
    border-width: 4px;
    border-radius: 23px;
    display: flex;
    flex-direction: column;
  }
  .agent-shell.desktop {
    border: 1px solid #e2e2e1;
  }
  .source-aside {
    display: none;
  }
  .chat-column {
    flex: 1;
  }
  .chat-header {
    padding: 15px 17px;
    gap: 10px;
  }
  .chat-header h1 {
    font-size: 13px;
  }
  .chat-header p {
    font-size: 8px;
  }
  .chat-header .agent-avatar {
    width: 31px;
    height: 31px;
  }
  .chat-messages {
    padding: 22px 17px 17px;
  }
  .chat-welcome h2 {
    font-size: 24px;
  }
  .chat-welcome p {
    font-size: 10px;
    line-height: 1.9;
  }
  .chat-welcome .welcome-kicker {
    font-size: 9px;
  }
  .suggestion {
    font-size: 9px;
    padding: 8px 9px;
  }
  .suggestion-list {
    gap: 7px;
    margin-top: 20px;
  }
  .assistant-content,
  .user-bubble {
    font-size: 11px;
  }
  .answer-card {
    padding: 13px 14px;
  }
  .answer-number {
    font-size: 27px;
  }
  .answer-label {
    font-size: 9px;
  }
  .answer-number small {
    font-size: 10px;
  }
  .answer-fact-row {
    font-size: 10px;
  }
  .answer-note {
    font-size: 9px !important;
  }
  .chat-composer-area {
    padding: 12px 12px 10px;
  }
  .chat-composer textarea {
    font-size: 10px;
  }
  .composer-caption {
    font-size: 7px;
  }
  .drawer-header {
    padding: 23px 22px 20px;
  }
  .drawer-header h2 {
    font-size: 20px;
  }
  .drawer-header p {
    font-size: 9px;
  }
  .drawer-body {
    padding: 23px 22px;
  }
  .drawer-footer {
    padding: 17px 22px;
  }
  .drawer-body .detail-section p,
  .drawer-body .detail-section dd {
    font-size: 11px;
  }
  .settings-meta-row {
    font-size: 10px;
  }
  .dialog {
    padding: 24px;
  }
  .dialog h2 {
    font-size: 19px;
  }
  .dialog p {
    font-size: 10px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    font-size: 9px;
    padding: 0 12px;
  }
  .toast {
    font-size: 10px;
    bottom: 20px;
  }
}
/* Product typography stays readable; only the illustrative device uses miniature type. */
:root {
  --muted: #747471;
}
.brand-copy strong {
  font-size: 14px;
}
.brand-copy span {
  font-size: 10px;
}
.nav-item {
  font-size: 14px;
  min-height: 44px;
}
.sidebar-note,
.workspace-name,
.breadcrumbs {
  font-size: 12px;
}
.proto-badge {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
}
.hero p {
  font-size: 14px;
  color: #747471;
}
.section-head h2 {
  font-size: 16px;
}
.section-head .section-hint,
.step-number {
  font-size: 12px;
}
.runtime-title {
  font-size: 14px;
}
.runtime-title small,
.runtime-caption,
.template-label {
  font-size: 12px;
  color: #777773;
}
.runtime-caption {
  margin-top: 3px;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
}
.template-card {
  min-height: 90px;
}
.template-card strong {
  font-size: 14px;
}
.template-card small {
  font-size: 12px;
  color: #747471;
}
.capability-card {
  min-height: 177px;
}
.capability-card h3 {
  font-size: 15px;
}
.capability-card p {
  font-size: 12px;
  color: #747471;
}
.capability-card .cap-tag {
  font-size: 11px;
  color: #7d7d78;
}
.guardrails {
  font-size: 12px;
  color: #747471;
}
.guardrails > span:last-child {
  font-size: 11px;
  color: #797975;
}
.connection-button {
  min-height: 70px;
}
.connection-button strong {
  font-size: 14px;
}
.connection-button small {
  font-size: 12px;
  color: #777773;
}
.selection-summary strong {
  font-size: 14px;
}
.selection-summary span {
  font-size: 12px;
  color: #777773;
}
.primary-button,
.secondary-button,
.text-button {
  font-size: 14px;
  min-height: 44px;
}
.build-unavailable {
  font-size: 12px;
  color: #985355;
}
.preview-label {
  font-size: 12px;
}
.preview-label span,
.preview-caption,
.prototype-note {
  font-size: 12px;
  color: #777773;
}
.prototype-note {
  line-height: 1.8;
}
.preview-caption strong {
  color: #686864;
}
.build-stage strong {
  font-size: 14px;
}
.build-stage p {
  font-size: 12px;
  color: #747471;
}
.build-stage {
  padding-bottom: 25px;
}
.build-bottom p {
  font-size: 14px;
  color: #747471;
}
.build-bottom small {
  font-size: 12px;
  color: #777773;
}
.build-bottom .secondary-button {
  font-size: 14px;
}
.build-complete > p {
  font-size: 14px;
  color: #747471;
}
.completed-agent strong {
  font-size: 16px;
}
.completed-agent span {
  font-size: 12px;
  color: #747471;
}
.build-complete .completion-footnote {
  font-size: 12px;
  color: #777773;
}
.record-label {
  font-size: 12px;
  color: #747471;
}
.page-title-row p {
  font-size: 14px;
  color: #747471;
}
.agent-card p {
  font-size: 13px;
  color: #747471;
}
.agent-card h2 {
  font-size: 17px;
}
.agent-meta,
.agent-card-footnote {
  font-size: 12px;
  color: #777773;
}
.agent-card .text-button {
  font-size: 13px;
}
.agent-card .secondary-button {
  font-size: 14px;
}
.connection-row h2 {
  font-size: 16px;
}
.connection-row p,
.connection-page-note {
  font-size: 14px;
  color: #747471;
}
.empty-state p {
  font-size: 14px;
  color: #747471;
}
.back-button {
  font-size: 14px;
  min-height: 44px;
}
.agent-top-actions .text-button {
  font-size: 13px;
  min-height: 44px;
}
.agent-top-title {
  font-size: 12px;
}
.chat-header h1 {
  font-size: 16px;
}
.chat-header p {
  font-size: 12px;
  color: #747471;
}
.chat-welcome p {
  font-size: 14px;
  color: #747471;
}
.chat-welcome .welcome-kicker {
  font-size: 12px;
  color: #777773;
}
.suggestion {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 13px;
  color: #73736f;
}
.assistant-label {
  font-size: 12px;
  color: #747471;
}
.assistant-label span:last-child {
  font-size: 11px;
  color: #7d7d78;
}
.assistant-content,
.user-bubble {
  font-size: 14px;
}
.answer-label {
  font-size: 12px;
  color: #747471;
}
.answer-label span {
  font-size: 11px;
  color: #747471;
}
.answer-number small {
  font-size: 13px;
}
.answer-card > p {
  font-size: 12px;
  color: #747471;
}
.answer-fact-row {
  font-size: 13px;
  color: #747471;
}
.answer-note {
  font-size: 12px !important;
  color: #777773 !important;
}
.source-link {
  font-size: 12px;
  min-height: 44px;
}
.response-footnote {
  font-size: 12px;
  color: #777773;
}
.unavailable-note {
  font-size: 14px;
}
.chat-composer textarea {
  font-size: 16px;
  line-height: 1.6;
  min-height: 35px;
}
.send-button {
  width: 44px;
  height: 44px;
}
.composer-caption {
  font-size: 12px;
  color: #777773;
}
.source-aside h2 {
  font-size: 14px;
}
.source-empty {
  font-size: 13px;
  color: #747471;
}
.detail-section h3,
.detail-section dt {
  font-size: 12px;
  color: #777773;
}
.detail-section p,
.detail-section dd {
  font-size: 13px;
  color: #73736f;
}
.detail-section .tool-name {
  font-size: 12px;
}
.detail-note {
  font-size: 12px;
  color: #747471;
}
.drawer-header p {
  font-size: 12px;
  color: #777773;
}
.drawer-intro {
  font-size: 14px;
  color: #747471;
}
.drawer-section-title {
  font-size: 14px;
}
.setting-choice strong {
  font-size: 14px;
}
.setting-choice p,
.settings-meta-row,
.settings-callout {
  font-size: 12px;
  color: #777773;
}
.drawer-footer .primary-button {
  font-size: 14px;
}
.drawer-body .detail-section p,
.drawer-body .detail-section dd {
  font-size: 14px;
}
.drawer-body .detail-section h3,
.drawer-body .detail-section dt,
.drawer-body .detail-note,
.drawer-body .detail-section .tool-name {
  font-size: 12px;
}
.dialog p {
  font-size: 14px;
  color: #747471;
}
.delete-review {
  font-size: 14px;
}
.delete-review strong {
  font-size: 14px;
}
.delete-review small {
  font-size: 12px;
}
.dialog-actions .primary-button,
.dialog-actions .secondary-button {
  font-size: 14px;
  min-height: 44px;
}
.toast {
  font-size: 13px;
}
.connection-row .secondary-button {
  font-size: 14px;
  min-height: 44px;
}
@media (max-width: 1060px) and (min-width: 641px) {
  .nav-item > span {
    display: none;
  }
  .section-head .section-hint {
    font-size: 11px;
  }
  .guardrails {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .guardrails > span:last-child {
    display: none;
  }
}
@media (max-width: 640px) {
  .brand-copy strong {
    font-size: 14px;
  }
  .brand-copy span {
    font-size: 10px;
  }
  .sidebar {
    padding: 18px 20px 12px;
  }
  .sidebar-nav {
    gap: 5px;
  }
  .nav-item {
    font-size: 13px;
    min-height: 44px;
    gap: 5px;
  }
  .topbar {
    height: 62px;
    gap: 10px;
  }
  .breadcrumbs {
    font-size: 12px;
    gap: 6px;
  }
  .proto-badge {
    font-size: 12px;
    letter-spacing: 0;
    padding: 4px 7px;
    gap: 4px;
  }
  .proto-badge .icon {
    width: 12px;
    height: 12px;
  }
  .hero p {
    font-size: 14px;
    max-width: none;
  }
  .eyebrow {
    font-size: 11px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .section-head h2 {
    font-size: 16px;
  }
  .section-head .section-hint {
    font-size: 12px;
  }
  .step-number {
    font-size: 12px;
    line-height: 22px;
    width: 25px;
  }
  .runtime-row {
    padding: 12px;
    gap: 10px;
  }
  .runtime-title {
    font-size: 14px;
  }
  .runtime-title small,
  .runtime-caption,
  .template-label {
    font-size: 12px;
  }
  .runtime-title small {
    margin-left: 3px;
  }
  .runtime-row .runtime-icon {
    display: none;
  }
  .runtime-row .icon-button {
    margin-left: auto;
  }
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
  .template-card {
    padding: 15px 12px;
    min-height: 112px;
    display: block;
  }
  .template-visual {
    margin-bottom: 9px;
    width: 30px;
    height: 32px;
  }
  .template-card strong {
    font-size: 14px;
  }
  .template-card small {
    font-size: 12px;
  }
  .template-card .radio-dot {
    top: 16px;
    right: 13px;
    width: 14px;
    height: 14px;
  }
  .template-card > div:not(.template-visual) {
    padding-right: 0;
  }
  .capability-card {
    padding: 16px 13px;
    min-height: 190px;
  }
  .capability-card h3 {
    font-size: 15px;
  }
  .capability-card p {
    font-size: 12px;
  }
  .capability-card .cap-tag {
    font-size: 11px;
  }
  .guardrails {
    font-size: 12px;
    gap: 8px 14px;
    flex-wrap: wrap;
    line-height: 1.8;
  }
  .guardrails > span:last-child {
    display: none;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-button {
    min-height: 70px;
    padding: 12px 14px;
    gap: 12px;
  }
  .connection-button strong {
    font-size: 14px;
  }
  .connection-button small {
    font-size: 12px;
  }
  .connection-button > .icon {
    width: 19px;
    height: 19px;
  }
  .connection-button > .chevron {
    width: 15px;
    height: 15px;
  }
  .selection-summary strong {
    font-size: 14px;
  }
  .selection-summary span {
    font-size: 12px;
  }
  .build-footer .primary-button {
    font-size: 15px;
    min-height: 48px;
  }
  .build-unavailable {
    font-size: 12px;
  }
  .preview-caption,
  .prototype-note {
    font-size: 12px;
  }
  .build-page .hero p {
    font-size: 14px;
  }
  .build-stages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 300px;
    margin: auto;
    padding: 20px 0 0;
  }
  .build-stage {
    display: flex;
    gap: 14px;
    text-align: left;
    padding: 0 0 22px;
  }
  .stage-marker {
    margin: 0;
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .build-stage strong {
    font-size: 14px;
  }
  .build-stage p {
    display: block;
    font-size: 12px;
    max-width: none;
  }
  .build-stage:not(:last-child):before {
    left: 12px;
    top: 28px;
    bottom: 4px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .build-stage:not(.current) p {
    visibility: visible;
    color: #90908a;
  }
  .build-bottom p {
    font-size: 14px;
  }
  .build-bottom small {
    font-size: 12px;
  }
  .build-bottom .secondary-button {
    font-size: 14px;
    min-height: 44px;
  }
  .build-complete > p {
    font-size: 14px;
  }
  .completed-agent strong {
    font-size: 16px;
  }
  .completed-agent span {
    font-size: 12px;
  }
  .complete-actions {
    flex-wrap: wrap;
  }
  .complete-actions .primary-button,
  .complete-actions .secondary-button {
    font-size: 14px;
    min-height: 44px;
  }
  .build-complete .completion-footnote {
    font-size: 12px;
  }
  .page-title-row {
    display: block;
  }
  .page-title-row p {
    font-size: 14px;
    max-width: none;
  }
  .page-title-row .primary-button {
    font-size: 14px;
    min-height: 44px;
    margin-top: 17px;
  }
  .connection-row {
    gap: 12px;
  }
  .connection-row h2 {
    font-size: 16px;
  }
  .connection-row p {
    font-size: 14px;
  }
  .connection-row .record-label {
    font-size: 12px;
  }
  .connection-row .secondary-button {
    font-size: 14px;
    min-height: 44px;
  }
  .connection-page-note,
  .empty-state p {
    font-size: 14px;
  }
  .agent-page {
    padding: 0 10px 16px;
  }
  .agent-topbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 5px 12px;
    gap: 0;
  }
  .back-button {
    font-size: 14px;
    min-height: 44px;
    width: max-content;
  }
  .agent-top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .agent-top-actions .text-button {
    font-size: 13px;
    min-height: 44px;
  }
  .agent-top-actions .proto-badge {
    font-size: 12px;
  }
  .agent-shell.mobile,
  .agent-shell.desktop {
    height: calc(100dvh - 130px);
    min-height: 590px;
  }
  .chat-header h1 {
    font-size: 16px;
  }
  .chat-header p {
    font-size: 12px;
  }
  .chat-header {
    padding: 16px 15px;
  }
  .chat-header .agent-avatar {
    width: 34px;
    height: 34px;
  }
  .chat-header .icon-button {
    min-width: 44px;
    min-height: 44px;
    padding: 7px;
  }
  .chat-welcome p {
    font-size: 14px;
  }
  .chat-welcome .welcome-kicker {
    font-size: 12px;
  }
  .suggestion {
    font-size: 13px;
    min-height: 44px;
    padding: 10px 11px;
  }
  .assistant-content,
  .user-bubble {
    font-size: 14px;
  }
  .answer-label {
    font-size: 12px;
  }
  .answer-number small {
    font-size: 13px;
  }
  .answer-fact-row {
    font-size: 13px;
  }
  .answer-note {
    font-size: 12px !important;
  }
  .chat-composer textarea {
    font-size: 16px;
  }
  .composer-caption {
    font-size: 12px;
  }
  .drawer-header p {
    font-size: 12px;
  }
  .drawer-intro {
    font-size: 14px;
  }
  .drawer-body .detail-section p,
  .drawer-body .detail-section dd {
    font-size: 14px;
  }
  .settings-meta-row {
    font-size: 12px;
  }
  .dialog p {
    font-size: 14px;
  }
  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    font-size: 14px;
    padding: 0 13px;
  }
  .toast {
    font-size: 13px;
  }
}
.agent-card-footer .primary-button {
  font-size: 14px;
  min-height: 44px;
}
.chip {
  font-size: 12px;
  color: #747471;
}
.conversation-context {
  font-size: 12px;
  color: #777773;
  border-bottom: 1px solid #eaeae7;
  padding-bottom: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
}
.conversation-context span {
  color: #85857f;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* FEAT-008: verified Evaluation and optimization facts on the actual workbench. */
.optimization-workbench {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid #d9dfdc;
  border-radius: 20px;
  background: #fbfcfa;
  box-shadow: 0 18px 46px rgba(28, 58, 48, 0.07);
}
.optimization-workbench > header,
.optimization-section .section-head,
.optimization-next {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.optimization-workbench > header h2,
.optimization-section h3,
.optimization-next h3 {
  margin: 5px 0 8px;
  color: #142a34;
}
.optimization-workbench > header p,
.optimization-section p,
.optimization-next p {
  max-width: 820px;
  margin: 0;
  color: #66736f;
  line-height: 1.65;
}
.optimization-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.optimization-summary article {
  padding: 15px;
  border: 1px solid #e0e6e3;
  border-radius: 12px;
  background: white;
}
.optimization-summary span,
.optimization-summary strong,
.optimization-summary small { display: block; }
.optimization-summary span,
.optimization-summary small { color: #6a7873; }
.optimization-summary strong { margin: 6px 0; color: #173b34; font-size: 18px; }
.workbench-state {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.workbench-state.success { color: #176349; background: #e1f3eb; }
.workbench-state.running { color: #8a6015; background: #fff0c9; }
.workbench-state.neutral { color: #56625f; background: #e9eeec; }
.workbench-state.danger { color: #982f34; background: #fae4e5; }
.optimization-storyline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 10px;
  margin: 26px 0 16px;
  padding-bottom: 8px;
  overflow-x: auto;
}
.optimization-node {
  min-height: 94px;
  padding: 15px;
  border: 1px solid #dfe5e2;
  border-radius: 14px;
  background: #f4f7f5;
  color: #1c343d;
  text-align: left;
  cursor: pointer;
}
.optimization-node:hover,
.optimization-node.selected {
  border-color: #5c9d88;
  background: #e9f4ef;
  box-shadow: inset 0 0 0 1px #5c9d88;
}
.optimization-node > span,
.optimization-node > strong,
.optimization-node > small { display: block; }
.optimization-node > span {
  color: #4f8f79;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.optimization-node > strong { margin: 7px 0 5px; }
.optimization-node > small { color: #71807b; }
.optimization-node-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 24px;
  padding: 22px;
  border-radius: 15px;
  background: #143843;
  color: #e9f3ef;
}
.optimization-node-detail h3 { margin: 5px 0 8px; color: white; }
.optimization-node-detail p { margin: 0; color: #c7d8d2; line-height: 1.6; }
.optimization-node-detail > div > small { display: block; margin-top: 12px; color: #91aaa2; }
.optimization-node-detail span { color: #83c9b1; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.optimization-node-detail dl { margin: 0; }
.optimization-node-detail dl > div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; margin-bottom: 8px; }
.optimization-node-detail dt { color: #91aaa2; }
.optimization-node-detail dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.optimization-node-detail code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: #d7f0e7; }
.optimization-section {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #e1e6e3;
  border-radius: 15px;
  background: white;
}
.optimization-section progress { width: 100%; height: 8px; margin: 12px 0 18px; accent-color: #4c8e78; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.metric-strip article { padding: 14px; border-radius: 12px; background: #f0f5f2; }
.metric-strip span,
.metric-strip small,
.metric-strip strong { display: block; }
.metric-strip span,
.metric-strip small { color: #6d7a76; }
.metric-strip strong { margin: 5px 0; color: #173b34; font-size: 22px; }
.sample-log {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e2e6e4;
  border-radius: 12px;
  background: #fafbf9;
}
.sample-log > div {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) minmax(120px, .8fr) minmax(170px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #eaedeb;
}
.sample-log > div:last-child { border-bottom: 0; }
.sample-log span,
.sample-log small { color: #687570; }
.sample-state { font-weight: 900; }
.sample-state.passed { color: #26805f; }
.sample-state.failed { color: #b33d42; }
.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.round-grid article { padding: 16px; border: 1px solid #e1e6e3; border-radius: 12px; background: #f8faf8; }
.round-grid header { display: flex; justify-content: space-between; color: #5f766e; font-size: 11px; letter-spacing: .08em; }
.round-grid h4 { margin: 12px 0 6px; color: #203a42; }
.round-explanation {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: #eef4f1;
}
.round-explanation p { display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
.round-explanation strong { color: #315f52; }
.round-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.round-metrics span { padding: 5px 8px; border-radius: 8px; color: #286c57; background: #e3f1eb; font-size: 12px; font-weight: 700; }
.round-grid dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 14px 0 0; }
.round-grid dt { color: #75827e; font-size: 11px; }
.round-grid dd { margin: 4px 0 0; }
.proposal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.proposal-grid article { padding: 15px; border: 1px solid #e2d8bb; border-radius: 12px; background: #fffaf0; }
.proposal-grid header { display: flex; justify-content: space-between; gap: 12px; color: #725d22; }
.proposal-grid p { margin: 9px 0; }
.proposal-grid small { color: #7c7869; }
.proposal-grid article > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proposal-grid code { padding: 4px 7px; border-radius: 7px; background: #f2ead7; }
.optimization-next {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #e7f1ed;
}
.optimization-next > span { color: #397b67; }
.optimization-issues { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.optimization-issues code { padding: 7px 10px; border-radius: 8px; color: #8b3034; background: #faeeee; }
.optimization-loading { color: #63736e; }
@media (max-width: 1100px) {
  .optimization-summary { grid-template-columns: 1fr; }
  .optimization-node-detail { grid-template-columns: 1fr; }
  .sample-log > div { grid-template-columns: 28px 1fr; }
  .sample-log > div small { grid-column: 2; }
}
.controlled-scenarios {
  border-color: rgba(20, 95, 83, 0.28);
  background: linear-gradient(135deg, rgba(232, 246, 241, 0.92), rgba(255, 255, 255, 0.96));
}

.controlled-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.controlled-scenario-grid article {
  padding: 20px;
  border: 1px solid rgba(20, 95, 83, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.controlled-scenario-grid dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin: 16px 0;
}

.controlled-scenario-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.controlled-scenario-grid dd {
  margin: 0;
}

.sandbox-evaluation {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(20, 95, 83, 0.22);
  border-radius: 18px;
  background: #f7fbf9;
}

.evaluation-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.evaluation-case-grid article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.evaluation-case-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.case-running {
  border-color: #d4a847 !important;
}

.evaluation-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.evaluation-metrics span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6f3ee;
}
