:root {
  --bg: #fff;
  --rail: #f7f7f9;
  --panel: #fafafb;
  --ink: #202128;
  --muted: #777984;
  --faint: #999ba5;
  --line: #e9e9ef;
  --accent: #635bdf;
  --accent-bg: #eeecfd;
  --green: #278467;
  --green-bg: #eaf6f0;
  --amber: #a87520;
  --amber-bg: #fbf3e4;
  --red: #b4565b;
  --radius: 8px;
  --shadow: 0 12px 45px #1c20401a;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 13px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  background: none;
  border: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.85px;
  line-height: 1.25;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
small {
  font-size: 11px;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #635bdf33;
  border-color: #a6a0e8;
}
kbd {
  font: 10px inherit;
  color: #92949d;
  border: 1px solid #dddde5;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.green {
  color: var(--green);
}
.amber {
  color: var(--amber);
}
.purple {
  color: var(--accent);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.25px;
  font-weight: 600;
  text-transform: uppercase;
}
.flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hidden {
  display: none !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #dedee6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 1px #20212805;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.25;
}
.btn:hover {
  background: #f8f8fb;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #554ccc;
}
.btn.soft {
  background: var(--accent-bg);
  border-color: transparent;
  color: var(--accent);
}
.btn.quiet {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
}
.btn.small {
  padding: 5px 8px;
  font-size: 11px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  color: var(--muted);
}
.icon-btn:hover {
  background: #eeeef4;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f1f1f5;
  color: #6d6e7a;
  white-space: nowrap;
}
.pill.green {
  background: var(--green-bg);
  color: var(--green);
}
.pill.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.pill.purple {
  background: var(--accent-bg);
  color: var(--accent);
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ece9f8;
  color: #6d59a4;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.large {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 15px;
}
.avatar.sojourn {
  background: #24242d;
  color: white;
}
.avatar.blue {
  background: #e7eefb;
  color: #5978ae;
}
.avatar.green {
  background: #e5f0ea;
  color: #58836c;
}
.avatar.amber {
  background: #f4ecdc;
  color: #a58852;
}
.avatar.rose {
  background: #f8e9ed;
  color: #ae6a7c;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 12px;
  overflow-y: auto;
}
.org-switch {
  padding: 3px 6px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.org-switch .orgname {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  flex: 1;
}
.org-mark {
  width: 25px;
  height: 25px;
  background: #25252e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.rail-search {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #8a8b96;
  padding: 7px 9px;
  width: 100%;
  margin: 0 0 17px;
}
.rail-search span {
  flex: 1;
}
.rail-group {
  padding: 17px 9px 8px;
  color: #8f909b;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.3px;
}
.rail-group:first-of-type {
  padding-top: 5px;
}
.rail-folder {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 8px 5px;
  color: #7c7e89;
  font-size: 11px;
}
.rail-agent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 7px 9px 7px 15px;
  border-radius: 6px;
  min-height: 36px;
  font-size: 12px;
  margin: 2px 0;
  color: #5c5d69;
}
.rail-agent .avatar {
  height: 23px;
  width: 23px;
  border-radius: 6px;
  font-size: 9px;
}
.rail-agent .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.rail-agent:hover {
  background: #efeff4;
}
.rail-agent.selected {
  background: #e9e7f6;
  color: #5148ad;
  font-weight: 500;
}
.rail-agent.main {
  padding-left: 9px;
}
.rail-agent .count {
  color: #9a7b43;
  font-size: 10px;
}
.rail-fill {
  flex: 1;
  min-height: 45px;
}
.rail-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 5px 0;
  margin-top: 12px;
  border-top: 1px solid #e4e4ec;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #666777;
}
.rail-foot-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #777984;
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
}
.rail-foot-button:hover {
  background: #eeeef4;
}
.main {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 53px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.breadcrumb {
  color: #8b8d97;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4e505c;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.demo-label {
  font-size: 10px;
  color: #8a8c98;
  display: flex;
  gap: 5px;
  align-items: center;
}
.demo-label .dot {
  background: #b2afca;
}
.agentbar {
  padding: 24px 32px 0;
  flex-shrink: 0;
}
.agent-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-title h2 {
  font-size: 20px;
}
.agent-title .subtitle {
  font-size: 11px;
  color: #8d8f99;
  margin-top: 4px;
}
.agent-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
}
.tab {
  padding: 0 0 13px;
  color: #858692;
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  position: relative;
}
.tab.active {
  color: var(--accent);
  font-weight: 500;
}
.tab.active:after {
  content: "";
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
}
.tab .tab-badge {
  padding: 1px 4px;
  background: #f2ecdd;
  border-radius: 3px;
  color: #997a47;
  font-size: 9px;
}
.view {
  flex: 1;
  overflow: auto;
}
.content {
  padding: 29px 32px 38px;
  max-width: 1440px;
  margin: auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
}
.page-intro p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0 27px;
}
.stat {
  padding: 20px 23px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-label {
  font-size: 11px;
  color: #858793;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 500;
  line-height: 1;
}
.stat-note {
  font-size: 10px;
  color: #8d8f99;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-note strong {
  font-weight: 500;
  color: var(--green);
}
.stat-chart {
  width: 70px;
  height: 28px;
}
.callout {
  border: 1px solid #e8e5f4;
  background: #fbfaff;
  border-radius: 7px;
  padding: 14px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 27px;
}
.callout .icon {
  color: var(--accent);
  margin-top: 1px;
}
.callout p {
  font-size: 12px;
  color: #777580;
  margin-top: 3px;
}
.callout .btn {
  margin-left: auto;
  align-self: center;
}
.callout strong {
  font-size: 12px;
  font-weight: 500;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 0 13px;
  gap: 14px;
}
.segmented {
  display: flex;
  align-items: center;
  gap: 3px;
}
.segmented button {
  padding: 6px 10px;
  font-size: 11px;
  color: #858794;
  border-radius: 5px;
}
.segmented button.active {
  background: #f0f0f5;
  color: #464753;
  font-weight: 500;
}
.search-small {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 5px;
}
.search-small input {
  border: 0;
  padding: 0;
  width: 135px;
  outline: 0;
  font-size: 11px;
}
.search-small .icon {
  width: 12px;
  height: 12px;
  color: #92949e;
}
.task-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.task-table th {
  font-size: 10px;
  font-weight: 500;
  color: #9597a1;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}
.task-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #f0f0f4;
  font-size: 11px;
  color: #7b7d89;
}
.task-table tbody tr {
  cursor: pointer;
}
.task-table tbody tr:hover {
  background: #faf9fd;
}
.task-table th:first-child,
.task-table td:first-child {
  padding-left: 3px;
}
.task-title {
  font-size: 12px !important;
  color: #3c3e49 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
}
.task-sub {
  font-size: 10px;
  color: #9b9da6;
  font-weight: 400;
  margin-top: 5px;
}
.task-status-icon {
  color: #afb0bb;
  width: 16px;
}
.task-status-icon.amber {
  color: #bf9958;
}
.task-status-icon.green {
  color: #73a38b;
}
.score {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  color: #717483;
  font-variant-numeric: tabular-nums;
}
.score-bar {
  width: 26px;
  height: 4px;
  background: #ececf3;
  border-radius: 3px;
  margin-right: 5px;
  overflow: hidden;
}
.score-bar span {
  display: block;
  height: 100%;
  background: #8b84ce;
}
.table-note {
  font-size: 10px;
  color: #a2a3ad;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.management-foot {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}
.mini-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px 18px;
}
.mini-panel p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0;
}
.mini-panel .bar {
  height: 5px;
  background: #f0eff8;
  border-radius: 3px;
  margin: 14px 0 8px;
  display: flex;
  overflow: hidden;
}
.mini-panel .bar span:first-child {
  background: #948cd6;
}
.mini-panel .bar span:last-child {
  background: #d6d1ef;
}
.legend {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: #90919c;
}
.chat-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 263px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-messages {
  padding: 29px 32px;
  overflow: auto;
  flex: 1;
}
.message {
  display: flex;
  gap: 12px;
  margin: 0 auto 26px;
  max-width: 740px;
}
.message .avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 10px;
  margin-top: 1px;
}
.message-body {
  flex: 1;
  font-size: 12px;
  line-height: 1.75;
  min-width: 0;
}
.message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 7px;
}
.message-head strong {
  font-weight: 600;
}
.message-head time {
  font-size: 10px;
  color: #a3a4af;
}
.message.user .avatar {
  background: #eceef2;
  color: #7d808b;
}
.message p {
  margin: 6px 0;
}
.message-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  margin: 13px 0;
  background: #fff;
}
.message-card .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 11px;
}
.message-card .item + .item {
  border-top: 1px solid #f2f2f6;
}
.composer-wrap {
  padding: 12px 30px 23px;
  max-width: 820px;
  width: 100%;
  margin: auto;
}
.composer {
  border: 1px solid #dedde9;
  border-radius: 9px;
  box-shadow: 0 2px 7px #15152a04;
  background: white;
  padding: 11px 12px;
}
.composer textarea {
  width: 100%;
  min-height: 45px;
  max-height: 180px;
  border: 0;
  resize: none;
  padding: 0;
  outline: none;
  font-size: 12px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}
.composer-footer small {
  color: #a0a0ad;
  font-size: 10px;
}
.send-btn {
  height: 28px;
  width: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.chat-aside {
  border-left: 1px solid var(--line);
  padding: 27px 22px;
  background: #fcfcfd;
  overflow: auto;
}
.aside-section {
  margin-bottom: 28px;
}
.aside-section h3 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 11px;
  color: #7a7c89;
}
.channel .icon {
  width: 13px;
  height: 13px;
  margin-right: 7px;
}
.channel .dot {
  color: #89ab97;
}
.prompt-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 7px 8px 0;
  font-size: 11px;
  color: #777388;
  background: #fff;
}
.prompt-chip:hover {
  background: #f6f4fe;
}
.empty-note {
  padding: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.coach-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 257px minmax(0, 1fr);
}
.case-list {
  border-right: 1px solid var(--line);
  padding: 21px 13px;
  background: #fcfcfd;
}
.case-list .eyebrow {
  padding: 0 9px 14px;
}
.case-item {
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.case-item.active {
  background: white;
  border-color: #e4e1f2;
  box-shadow: 0 2px 4px #1c1c3903;
}
.case-item strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin: 8px 0 5px;
  line-height: 1.5;
}
.case-item small {
  color: #9c9da6;
  font-size: 10px;
}
.coach-main {
  padding: 27px 32px;
  overflow: auto;
}
.conversation {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 21px 0;
}
.conversation-head {
  background: #fafafb;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #94949f;
  display: flex;
  justify-content: space-between;
}
.conversation-content {
  padding: 19px;
}
.thread-note {
  font-size: 10px;
  padding: 9px 14px;
  background: #f6f4fd;
  color: #837ca9;
  border-radius: 5px;
  margin: 10px 0;
}
.coaching-box {
  border: 1px solid #dcd7f0;
  background: #fcfbff;
  border-radius: 8px;
  padding: 17px;
}
.coaching-box textarea {
  width: 100%;
  min-height: 75px;
  font-size: 12px;
  background: #fff;
  margin: 14px 0 10px;
}
.scope {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #8f8b9c;
}
.scope select {
  font-size: 10px;
  padding: 5px 8px;
}
.coach-success {
  border: 1px solid #dceee3;
  background: #f5faf7;
  padding: 16px;
  border-radius: 7px;
  margin: 17px 0;
  font-size: 12px;
}
.build-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
}
.build-aside {
  border-left: 1px solid var(--line);
  background: #fcfcfd;
  padding: 22px;
  overflow: auto;
}
.config-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.config-section:first-child {
  padding-top: 0;
}
.config-section h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #8d8f9b;
  margin-bottom: 13px;
}
.config-section label {
  font-size: 11px;
  color: #70727e;
  display: block;
  margin-bottom: 7px;
}
.config-section input,
.config-section select {
  font-size: 11px;
  width: 100%;
  padding: 7px 9px;
}
.config-section p {
  font-size: 10px;
  line-height: 1.6;
  color: #9a9ba5;
  margin-top: 8px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 11px 0;
  font-size: 11px;
  color: #747683;
}
.toggle {
  height: 16px;
  width: 27px;
  border-radius: 20px;
  background: #d4d4dd;
  padding: 2px;
  display: flex;
  align-items: center;
}
.toggle:before {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 2px #0001;
}
.toggle.on {
  background: #9087d9;
  justify-content: flex-end;
}
.draft-card {
  border: 1px solid #ded9ef;
  border-radius: 7px;
  margin: 15px 0;
  background: #fdfcff;
  overflow: hidden;
}
.draft-header {
  padding: 12px 15px;
  border-bottom: 1px solid #e9e5f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.diff-row {
  padding: 11px 15px;
  border-bottom: 1px solid #f0edf7;
  display: flex;
  gap: 10px;
  font-size: 11px;
}
.diff-row .minus {
  color: #bc8282;
}
.diff-row .plus {
  color: #559475;
}
.draft-footer {
  padding: 12px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.evaluation-line {
  padding: 10px 15px;
  background: #f1f8f3;
  font-size: 11px;
  color: #618269;
  border-bottom: 1px solid #e1eee5;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #18192535;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(3px);
}
.modal {
  width: 460px;
  max-width: calc(100vw - 30px);
  background: #fff;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.modal h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.modal p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.modal label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin: 17px 0 7px;
}
.modal input,
.modal textarea,
.modal select {
  width: 100%;
}
.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 24px;
}
.modal .field-help {
  font-size: 10px;
  color: #9799a2;
  line-height: 1.6;
  margin-top: 6px;
}
.modal-close {
  float: right;
  margin-top: -10px;
  margin-right: -10px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #15162522;
  z-index: 35;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: auto;
}
.drawer h2 {
  line-height: 1.5;
  margin: 13px 0 16px;
}
.drawer .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 11px;
  margin: 25px 0;
}
.drawer .meta-grid label {
  display: block;
  font-size: 10px;
  color: #9495a2;
  margin-bottom: 6px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f4;
  font-size: 11px;
  color: #7b7e89;
}
.review-row .icon {
  color: #7aaa8c;
  width: 13px;
  height: 13px;
}
.review-row.fail .icon {
  color: #bb8a51;
}
.timeline {
  margin: 16px 0;
}
.timeline-item {
  padding: 10px 0;
  display: flex;
  gap: 12px;
  font-size: 11px;
}
.timeline-item time {
  width: 36px;
  color: #a2a4ad;
  flex-shrink: 0;
}
.drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.search-modal {
  padding: 0;
  overflow: hidden;
}
.search-modal input {
  border: 0;
  border-radius: 0;
  padding: 20px;
  width: 100%;
  outline: 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.search-results {
  max-height: 340px;
  overflow: auto;
  padding: 9px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px;
  border-radius: 6px;
  font-size: 12px;
}
.search-result:hover {
  background: #f5f4fb;
}
.search-result small {
  margin-left: auto;
  color: #999;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  z-index: 90;
  padding: 11px 16px;
  background: #252630;
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 6px 25px #12132522;
  transition: 0.2s;
  font-size: 12px;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.mobile-menu {
  display: none;
}
.guidebar {
  padding: 25px 32px 0;
  border-bottom: 1px solid var(--line);
}
.guidebar .tabs {
  margin-top: 20px;
  border: 0;
  gap: 24px;
}
.guide-layout {
  max-width: 1250px;
  margin: 0 auto;
  padding: 31px 32px 45px;
}
.guide-intro {
  max-width: 700px;
  margin-bottom: 27px;
}
.guide-intro h1 {
  margin-bottom: 10px;
}
.guide-intro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 20px;
}
.diagram-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfcfd;
  padding: 18px;
  min-width: 0;
}
.diagram-panel svg {
  display: block;
  width: 100%;
  height: auto;
}
.arch-node {
  cursor: pointer;
}
.arch-node rect {
  fill: white;
  stroke: #e3e2ed;
  stroke-width: 1;
}
.arch-node:hover rect {
  fill: #f7f5ff;
  stroke: #b8b1e5;
}
.arch-node.selected rect {
  fill: #f1eefd;
  stroke: #9b91d9;
}
.arch-node text {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  fill: #666778;
  font-size: 11px;
}
.arch-node .title {
  fill: #32323e;
  font-size: 12px;
  font-weight: 500;
}
.arch-line {
  stroke: #d0cddd;
  stroke-width: 1.3;
  fill: none;
}
.arch-detail {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.arch-detail h2 {
  margin: 12px 0;
}
.arch-detail p {
  font-size: 12px;
  color: #7a7b88;
  margin-bottom: 15px;
  line-height: 1.8;
}
.arch-detail ul {
  padding-left: 18px;
  color: #8a8b98;
  font-size: 11px;
  line-height: 1.9;
}
.tech-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f4f3fa;
  color: #8b82b0;
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 4px;
  display: inline-block;
  margin: 4px 4px 4px 0;
}
.guide-note {
  font-size: 11px;
  color: #9798a4;
  line-height: 1.8;
  margin: 18px 0;
}
.simulator {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 17px;
}
.simulator-status {
  font-size: 11px;
  color: #8e88a9;
  margin: 12px 0;
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.model-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.model-card .num {
  font-size: 10px;
  color: #aea9c1;
  font-family: ui-monospace, monospace;
  margin-bottom: 15px;
}
.model-card h2 {
  margin-bottom: 9px;
}
.model-card p {
  font-size: 12px;
  color: #82838f;
  line-height: 1.8;
}
.model-card .example {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9b96ae;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.8;
}
.compare-table td,
.compare-table th {
  padding: 15px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: #fafafb;
  font-size: 10px;
  color: #8a8b95;
  font-weight: 500;
}
.compare-table td {
  color: #7b7c8a;
}
.compare-table td:first-child {
  color: #4e4b62;
  font-weight: 500;
  min-width: 110px;
}
.compare-table strong {
  font-weight: 500;
  color: #585464;
}
.sources {
  font-size: 11px;
  line-height: 1.9;
  padding: 20px 0;
  color: #8a8b95;
}
.sources a {
  margin-right: 13px;
}
.design-principle {
  margin: 23px 0;
  padding: 19px 21px;
  background: #f8f6ff;
  border: 1px solid #e7e2f4;
  border-radius: 8px;
}
.design-principle h3 {
  font-size: 13px;
  color: #625777;
  margin-bottom: 6px;
}
.design-principle p {
  font-size: 12px;
  color: #91859e;
  line-height: 1.8;
}
.workspace-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.mode-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  text-align: left;
}
.mode-card.active {
  border-color: #a99bdb;
  background: #faf7ff;
}
.mode-card strong {
  display: block;
  margin: 9px 0;
  font-size: 12px;
  font-weight: 500;
}
.mode-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #8b8997;
}
.scope-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.scope-map > div {
  padding: 18px;
}
.scope-map > div + div {
  border-left: 1px solid var(--line);
}
.scope-map h3 {
  font-size: 12px;
  margin-bottom: 8px;
}
.scope-map p {
  font-size: 11px;
  color: #92909d;
  line-height: 1.8;
}
.demo-tour {
  position: fixed;
  bottom: 25px;
  left: 255px;
  background: #fff;
  border: 1px solid #ded8f0;
  border-radius: 9px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  z-index: 20;
  width: 330px;
}
.demo-tour .eyebrow {
  color: #9b92b6;
}
.demo-tour h3 {
  font-size: 14px;
  margin: 8px 0;
}
.demo-tour p {
  font-size: 11px;
  color: #8b869b;
  line-height: 1.8;
  margin-bottom: 14px;
}
.onboard-summary {
  background: #f7f6fc;
  padding: 15px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 2;
  color: #82788f;
}
.empty-workspace {
  margin: 35px auto;
  max-width: 700px;
}
.empty-workspace .welcome {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.empty-workspace .welcome p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 12px;
}
.model-route {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.model-route .tag {
  font-size: 10px;
  color: #8d85b5;
}
.label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.run-legend {
  font-size: 10px;
  color: #9b9ba7;
  margin-top: 12px;
}
.link-button {
  color: var(--accent);
  font-size: 11px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.loading-placeholder {
  animation: blink 1.5s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.45;
  }
}
.short-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #e2e1e8;
  margin: 0 2px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 39px;
  }
  .chat-messages {
    padding-top: 40px;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .agentbar {
    padding-top: 29px;
  }
  .page-intro h1 {
    font-size: 28px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .content {
    padding: 24px;
  }
  .agentbar {
    padding: 23px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .build-layout {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  .chat-messages {
    padding: 25px;
  }
  .coach-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .coach-main {
    padding: 24px;
  }
  .guide-layout {
    padding: 25px;
  }
  .architecture-layout {
    grid-template-columns: 1.25fr 1fr;
  }
  .task-table .channel-col {
    display: none;
  }
  .demo-tour {
    left: 225px;
  }
  .table-note {
    line-height: 1.7;
  }
  .management-foot {
    gap: 15px;
  }
  .top-right {
    gap: 7px;
  }
}
@media (max-width: 900px) {
  .chat-aside {
    display: none;
  }
  .chat-layout {
    display: flex;
    flex-direction: column;
  }
  .chat-main {
    flex: 1;
  }
  .build-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .build-aside {
    padding: 18px;
  }
  .coach-layout {
    display: block;
  }
  .case-list {
    display: flex;
    gap: 8px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .case-list .eyebrow {
    display: none;
  }
  .case-item {
    flex-shrink: 0;
    width: 195px;
    margin: 0;
    padding: 9px;
  }
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .architecture-layout {
    display: block;
  }
  .arch-detail {
    margin-top: 15px;
  }
  .mode-card {
    padding: 14px;
  }
  .scope-map {
    grid-template-columns: repeat(2, 1fr);
  }
  .scope-map > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .scope-map > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .demo-label span:last-child {
    display: none;
  }
  .topbar .breadcrumb {
    max-width: 45%;
    overflow: hidden;
    white-space: nowrap;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-chart {
    display: none;
  }
  .management-foot {
    grid-template-columns: 1fr;
  }
  .agent-actions .pill {
    display: none;
  }
}
@media (max-width: 700px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    z-index: 31;
    box-shadow: var(--shadow);
  }
  .sidebar.mobile-open {
    display: flex;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    height: 49px;
  }
  .topbar .breadcrumb {
    max-width: 62%;
    gap: 7px;
  }
  .top-right .btn {
    font-size: 10px;
    padding: 6px 8px;
  }
  .demo-label {
    display: none;
  }
  .agentbar {
    padding: 20px 18px 0;
  }
  .agent-title h2 {
    font-size: 18px;
  }
  .agent-title .avatar.large {
    width: 35px;
    height: 35px;
  }
  .agent-actions .btn {
    padding: 6px;
    font-size: 0;
  }
  .agent-actions .btn .icon {
    width: 15px;
  }
  .tabs {
    gap: 23px;
    margin-top: 21px;
  }
  .tab {
    font-size: 11px;
  }
  .tab .icon {
    width: 13px;
  }
  .content {
    padding: 24px 18px;
  }
  .page-intro h1 {
    font-size: 22px;
  }
  .page-intro p {
    font-size: 11px;
  }
  .page-intro .btn {
    font-size: 0;
    padding: 7px;
  }
  .page-intro .btn .icon {
    width: 14px;
  }
  .stats {
    margin: 20px 0;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-label {
    font-size: 10px;
    line-height: 1.6;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-note {
    font-size: 9px;
    line-height: 1.6;
    display: block;
  }
  .callout {
    padding: 13px;
    gap: 9px;
  }
  .callout p {
    font-size: 11px;
  }
  .callout .btn {
    padding: 5px;
    font-size: 10px;
    white-space: normal;
  }
  .task-table th {
    font-size: 9px;
  }
  .task-table td {
    padding: 13px 4px;
  }
  .task-title {
    font-size: 11px !important;
    gap: 7px;
  }
  .task-table .cost-col,
  .task-table .score-col {
    display: none;
  }
  .task-table .pill {
    font-size: 9px;
    padding: 3px 5px;
  }
  .task-sub {
    font-size: 9px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-small {
    width: 100%;
  }
  .search-small input {
    width: 100%;
  }
  .table-note {
    font-size: 9px;
    display: block;
  }
  .management-foot {
    margin-top: 20px;
  }
  .chat-messages {
    padding: 25px 18px;
  }
  .composer-wrap {
    padding: 10px 18px 20px;
  }
  .message-body {
    font-size: 12px;
  }
  .message {
    gap: 9px;
  }
  .build-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }
  .build-layout .chat-main {
    min-height: 530px;
  }
  .build-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 23px;
  }
  .coach-main {
    padding: 22px 18px;
  }
  .coach-main h2 {
    font-size: 16px;
  }
  .scope {
    flex-wrap: wrap;
    gap: 7px;
  }
  .guidebar {
    padding: 24px 18px 0;
  }
  .guidebar .tabs {
    gap: 17px;
    overflow: auto;
  }
  .guidebar .tab {
    white-space: nowrap;
    font-size: 11px;
  }
  .guide-layout {
    padding: 25px 18px;
  }
  .guide-intro h1 {
    font-size: 23px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .architecture-layout {
    display: block;
  }
  .arch-detail {
    padding: 21px;
  }
  .diagram-panel {
    padding: 8px;
  }
  .workspace-mode {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .scope-map {
    grid-template-columns: 1fr;
  }
  .scope-map > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .compare-wrap {
    overflow-x: auto;
  }
  .compare-table {
    min-width: 660px;
  }
  .demo-tour {
    left: 15px;
    bottom: 15px;
    width: calc(100vw - 30px);
  }
  .drawer {
    max-width: 100vw;
    width: 100%;
    padding: 24px;
  }
  .modal {
    padding: 23px;
  }
  .empty-workspace {
    margin: 20px;
  }
  .empty-workspace .welcome {
    padding: 24px;
  }
  .agent-title .subtitle {
    font-size: 10px;
  }
  .top-right .btn .icon {
    width: 12px;
  }
  .toast {
    width: max-content;
    max-width: 90vw;
    text-align: center;
  }
  .stats .stat-note strong {
    display: block;
    margin-bottom: 2px;
  }
}
.persistence-canvas {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  background: #fdfcfe;
}
.persistence-diagram {
  width: 100%;
  max-width: 780px;
  display: block;
  margin: 15px auto;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.persistence-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 17px;
}
.persistence-facts .mini-panel p {
  font-size: 11px;
  line-height: 1.8;
}
.persistence-canvas .guide-note {
  font-size: 12px;
  line-height: 1.85;
}
@media (max-width: 700px) {
  .persistence-canvas {
    padding: 16px;
  }
  .persistence-canvas .pill {
    display: none;
  }
  .persistence-facts {
    grid-template-columns: 1fr;
  }
  .persistence-diagram {
    min-width: 0;
  }
  .persistence-canvas .between h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
