:root {
  --bg: #0c1020;
  --bg-soft: #11162a;
  --surface: #171d32;
  --surface-2: #1d243b;
  --surface-3: #252d47;
  --line: rgba(202, 211, 255, 0.11);
  --line-strong: rgba(202, 211, 255, 0.2);
  --text: #f7f8ff;
  --muted: #9ea7c3;
  --muted-2: #707b9b;
  --violet: #8a70ff;
  --violet-2: #a38fff;
  --teal: #55d8c0;
  --lime: #d6ec6e;
  --blue: #69a8ff;
  --danger: #ff8f96;
  --warning: #f6c86d;
  --success: #63d6aa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --max-width: 1220px;
  color-scheme: dark;
  font-family:
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% -5%, rgba(123, 91, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 95% 30%, rgba(66, 201, 177, 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

::selection {
  color: #fff;
  background: rgba(138, 112, 255, 0.7);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(168, 177, 210, 0.28);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(11, 14, 29, 0.78);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(174, 160, 255, 0.42);
  border-radius: 12px 12px 15px 12px;
  background:
    linear-gradient(145deg, rgba(151, 119, 255, 0.95), rgba(89, 65, 202, 0.8)),
    #6850d8;
  box-shadow:
    0 0 24px rgba(126, 93, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.brand-mark::before {
  top: 7px;
  left: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.23);
}

.brand-mark::after {
  right: 5px;
  bottom: 5px;
  width: 11px;
  height: 11px;
  background: var(--teal);
  box-shadow: 0 0 16px var(--teal);
}

.brand-shield {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 18px;
}

.brand-spark {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  letter-spacing: 0.08em;
  font-size: 16px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  font-size: 8px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  margin-right: 22px;
}

.main-nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  content: "";
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.local-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.icon-button:focus-visible,
.segmented button:focus-visible,
.nav-pill:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.button-primary {
  border-color: rgba(203, 191, 255, 0.32);
  background: linear-gradient(112deg, #8c6dff, #7652e6 50%, #4ebba7);
  box-shadow:
    0 10px 28px rgba(105, 80, 222, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button-primary:hover {
  box-shadow:
    0 13px 34px rgba(105, 80, 222, 0.29),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.button-secondary:hover {
  border-color: rgba(169, 158, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
}

.button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-button {
  display: none;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 3px 0;
  background: var(--text);
}

.mobile-nav {
  display: none;
}

.page {
  min-height: 70vh;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--teal);
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: var(--teal);
  content: "";
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 13, 30, 0.97), rgba(10, 15, 35, 0.84) 44%, rgba(12, 17, 37, 0.25)),
    url("./assets/idea-gateway.png") center / cover no-repeat;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 71% 40%, rgba(98, 173, 255, 0.17), transparent 24%),
    linear-gradient(180deg, transparent 55%, rgba(12, 16, 32, 0.78));
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 72px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 78px 0 88px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  letter-spacing: -0.045em;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 700;
  line-height: 1.08;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff, #a99dff 45%, #51d1ba 72%, #dbed7c);
  background-clip: text;
}

.hero-subtitle {
  max-width: 610px;
  margin: 22px 0 30px;
  color: #c8cee0;
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(86, 216, 192, 0.32);
  border-radius: 50%;
  color: var(--teal);
  font-style: normal;
  font-size: 9px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(211, 218, 255, 0.15);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(32, 37, 66, 0.88), rgba(20, 25, 48, 0.78)),
    rgba(16, 20, 39, 0.7);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.hero-panel::before {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(137, 107, 255, 0.16);
  filter: blur(20px);
  content: "";
}

.panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-head b {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(85, 216, 192, 0.2);
  border-radius: 999px;
  background: rgba(85, 216, 192, 0.07);
  color: var(--teal);
  font-size: 10px;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.quick-task {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-task + .quick-task {
  margin-top: 10px;
}

.quick-task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-number {
  color: var(--violet-2);
  font-family: Georgia, serif;
  font-size: 13px;
}

.quick-task h3 {
  flex: 1;
  margin: -2px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.quick-task p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.mini-arrow {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  transition: background 160ms ease;
}

.quick-task:hover .mini-arrow {
  background: rgba(85, 216, 192, 0.08);
}

.hero-panel-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 10px;
}

.hero-panel-foot::before {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.section {
  padding: 110px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-number {
  display: block;
  margin-bottom: 13px;
  color: var(--violet-2);
  font-family: Georgia, serif;
  font-size: 13px;
}

.section-heading h2 {
  max-width: 700px;
  margin: 0;
  letter-spacing: -0.025em;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.section-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 305px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(31, 37, 63, 0.9), rgba(18, 23, 42, 0.94)),
    var(--surface);
  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(150, 134, 255, 0.3);
}

.service-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 84% 22%, rgba(107, 170, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(43, 43, 83, 0.98), rgba(23, 34, 55, 0.96));
}

.service-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 12px;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(161, 149, 255, 0.2);
  border-radius: 12px;
  background: rgba(135, 112, 255, 0.09);
  color: #b9afff;
  font-size: 20px;
}

.service-card h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
}

.service-card li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7cce0;
  font-size: 10px;
}

.service-card .card-link {
  position: absolute;
  inset: 0;
}

.workflow-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.workflow-step {
  position: relative;
  min-height: 142px;
  padding: 23px 20px;
}

.workflow-step + .workflow-step {
  border-left: 1px solid var(--line);
}

.workflow-step span {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 11px;
}

.workflow-step h3 {
  margin: 15px 0 6px;
  font-size: 14px;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.workflow-step::after {
  position: absolute;
  top: 27px;
  right: -4px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
  content: "";
}

.workflow-step:last-child::after {
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}

.insight-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.insight-card.dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(79, 222, 193, 0.12), transparent 38%),
    #171c30;
}

.insight-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.08);
}

.metric b {
  display: block;
  color: var(--teal);
  font-size: 24px;
  font-weight: 500;
}

.metric span {
  color: var(--muted);
  font-size: 10px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 48px;
  overflow: hidden;
  border: 1px solid rgba(171, 157, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 30%, rgba(84, 216, 192, 0.18), transparent 30%),
    linear-gradient(120deg, rgba(115, 83, 237, 0.22), rgba(23, 28, 50, 0.9));
}

.cta-band h2 {
  margin: 0 0 8px;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(27px, 3vw, 38px);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0d1b;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 45px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer-main > div > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links b {
  margin-bottom: 4px;
  color: #dfe2ee;
  font-size: 11px;
  font-weight: 600;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

.workspace-page {
  position: relative;
  min-height: calc(100vh - 72px);
}

.workspace-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 6%, rgba(126, 96, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 28% 120%, rgba(72, 209, 182, 0.09), transparent 26rem),
    #10152a;
}

.workspace-hero::after {
  position: absolute;
  top: -110px;
  right: 6%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(170, 156, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.workspace-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.workspace-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.workspace-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(156, 139, 255, 0.26);
  border-radius: 15px;
  background: rgba(133, 104, 255, 0.12);
  color: var(--violet-2);
  font-size: 25px;
}

.workspace-hero h1 {
  margin: 0;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.workspace-hero h1 span {
  margin-left: 10px;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.workspace-hero p {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.hero-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-steps i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-style: normal;
}

.hero-steps .current i {
  border-color: rgba(85, 216, 192, 0.34);
  background: rgba(85, 216, 192, 0.08);
  color: var(--teal);
}

.hero-steps em {
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.workspace-body {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11px;
}

.crumb a {
  color: var(--muted);
}

.crumb strong {
  color: #dce0ef;
  font-weight: 500;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.save-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}

.workspace-grid.wide-left {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(26, 32, 55, 0.93), rgba(18, 23, 42, 0.92)),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.panel-header h2 i {
  display: inline-block;
  width: 4px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(var(--violet), var(--teal));
}

.panel-header small {
  color: var(--muted-2);
  font-size: 9px;
}

.panel-content {
  padding: 20px;
}

.panel-content.compact {
  padding: 16px;
}

.group-tabs,
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.group-tabs button,
.segmented button {
  flex: 1;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.group-tabs button.active,
.segmented button.active {
  background: rgba(137, 111, 255, 0.15);
  color: #eeeaff;
  box-shadow: inset 0 0 0 1px rgba(151, 129, 255, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #cbd0e0;
  font-size: 10px;
}

.field label span {
  color: var(--muted-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 10, 20, 0.3);
  color: var(--text);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.field input,
.field select {
  height: 40px;
  padding: 0 12px;
}

.field textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.7;
}

.field textarea.tall {
  min-height: 154px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #59627e;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(142, 120, 255, 0.5);
  background: rgba(7, 10, 20, 0.44);
  outline: none;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8089a8 50%),
    linear-gradient(135deg, #8089a8 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 17px,
    calc(100% - 10px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field-help {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-actions > div {
  display: flex;
  gap: 8px;
}

.hint {
  color: var(--muted-2);
  font-size: 9px;
}

.output-empty {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.empty-orbit {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(143, 122, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 122, 255, 0.12), transparent 64%);
  color: var(--violet-2);
  font-size: 28px;
}

.empty-orbit::before,
.empty-orbit::after {
  position: absolute;
  border: 1px solid rgba(85, 216, 192, 0.12);
  border-radius: 50%;
  content: "";
}

.empty-orbit::before {
  inset: -13px;
}

.empty-orbit::after {
  inset: -27px;
}

.output-empty h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.output-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
}

.result-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.result-summary {
  padding: 16px;
  border: 1px solid rgba(135, 112, 255, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0, rgba(84, 216, 192, 0.09), transparent 38%),
    rgba(133, 106, 255, 0.07);
}

.result-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-summary h3 {
  margin: 0;
  font-size: 14px;
}

.result-summary p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(85, 216, 192, 0.25);
  border-radius: 999px;
  background: rgba(85, 216, 192, 0.08);
  color: var(--teal);
  font-size: 10px;
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.recommend-item {
  position: relative;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.recommend-item.best {
  border-color: rgba(85, 216, 192, 0.23);
  background: rgba(85, 216, 192, 0.035);
}

.recommend-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.recommend-item h4 {
  margin: 0;
  color: #eceefa;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

.recommend-item p {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 8px;
}

.tag.best {
  border-color: rgba(85, 216, 192, 0.24);
  color: var(--teal);
}

.tag.warn {
  border-color: rgba(246, 200, 109, 0.24);
  color: var(--warning);
}

.tag.violet {
  border-color: rgba(151, 129, 255, 0.24);
  color: var(--violet-2);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.check-list i {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  place-items: center;
  border: 1px solid rgba(85, 216, 192, 0.23);
  border-radius: 50%;
  color: var(--teal);
  font-style: normal;
  font-size: 8px;
}

.matrix {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 10px;
}

.matrix th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: left;
  font-weight: 500;
}

.matrix td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: #c7ccdc;
  vertical-align: top;
  line-height: 1.65;
}

.matrix tr:last-child td {
  border-bottom: 0;
}

.matrix .p0 {
  color: var(--teal);
}

.matrix .p1 {
  color: var(--warning);
}

.matrix .p2 {
  color: var(--muted);
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.layer-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.024);
}

.layer-code {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 7px;
  background: rgba(139, 114, 255, 0.1);
  color: var(--violet-2);
  font-family: Georgia, serif;
  font-size: 10px;
}

.layer-item h4 {
  margin: 0;
  font-size: 11px;
}

.layer-item p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
}

.candidate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 8px;
}

.candidate h4 {
  margin: 9px 0 7px;
  font-size: 11px;
  line-height: 1.6;
}

.candidate p {
  margin: 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.65;
}

.candidate dl {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 8px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.candidate dt {
  color: var(--muted-2);
}

.candidate dd {
  margin: 0;
  color: var(--muted);
}

.chat-and-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
}

.chat-panel .panel-content {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  gap: 12px;
}

.chat-stream {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px 11px 11px 3px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd0e1;
  font-size: 10px;
  line-height: 1.75;
}

.chat-message.user {
  align-self: flex-end;
  border-color: rgba(139, 115, 255, 0.22);
  border-radius: 11px 11px 3px 11px;
  background: rgba(139, 115, 255, 0.09);
  color: #e3dfff;
}

.chat-message.thinking {
  color: var(--muted-2);
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 3px;
}

.typing-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.2s infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  70%,
  100% {
    opacity: 0.25;
  }
  35% {
    opacity: 1;
  }
}

.chat-input {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.chat-input textarea {
  min-height: 72px;
  flex: 1;
  margin: 0;
}

.brief-document {
  color: #cfd4e4;
  font-size: 11px;
}

.brief-document h1 {
  margin: 2px 0 18px;
  color: #f4f5fb;
  text-align: center;
  font-family: "STSong", "SimSun", serif;
  font-size: 20px;
  line-height: 1.5;
}

.brief-document h2 {
  margin: 23px 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--teal);
  color: #f0f2f9;
  font-size: 13px;
}

.brief-document p {
  margin: 7px 0;
  text-align: justify;
}

.brief-document ol,
.brief-document ul {
  margin: 7px 0;
  padding-left: 21px;
}

.brief-document li {
  margin: 4px 0;
}

.document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
}

.document-actions {
  display: flex;
  gap: 7px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 28px;
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg-soft);
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 1px rgba(151, 129, 255, 0.4);
  content: "";
}

.timeline-item::after {
  position: absolute;
  top: 17px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item h4 {
  margin: 0 0 5px;
  font-size: 11px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.feature-compare {
  font-size: 9px;
}

.feature-compare th,
.feature-compare td {
  padding: 9px;
}

.response-letter {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #eef0f5;
  color: #242938;
  font-family: "FangSong", "STFangsong", "SimSun", serif;
  font-size: 11px;
  line-height: 1.9;
}

.response-letter h1 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 16px;
}

.response-letter h2 {
  margin: 18px 0 6px;
  font-size: 12px;
}

.response-letter p {
  margin: 6px 0;
}

.step-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.step-card.active {
  border-color: rgba(85, 216, 192, 0.22);
  background: rgba(85, 216, 192, 0.035);
}

.step-card > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 10px;
}

.step-card.active > span {
  border-color: rgba(85, 216, 192, 0.25);
  color: var(--teal);
}

.step-card h4 {
  margin: 0 0 3px;
  font-size: 11px;
}

.step-card p {
  margin: 0;
  color: var(--muted-2);
  font-size: 9px;
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(246, 200, 109, 0.18);
  border-radius: 10px;
  background: rgba(246, 200, 109, 0.045);
  color: #d9c28c;
  font-size: 9px;
  line-height: 1.7;
}

.notice i {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(246, 200, 109, 0.3);
  border-radius: 50%;
  color: var(--warning);
  font-style: normal;
  font-size: 8px;
}

.insights-page {
  padding: 70px 0 110px;
}

.insights-title {
  max-width: 820px;
  margin-bottom: 55px;
}

.insights-title h1 {
  margin: 0 0 18px;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.15;
}

.insights-title p {
  color: var(--muted);
  font-size: 14px;
}

.insights-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.toc a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.research-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.research-section:first-child {
  padding-top: 0;
}

.research-section h2 {
  margin: 0 0 16px;
  font-family: "STSong", "SimSun", serif;
  font-size: 28px;
}

.research-section > p,
.research-section li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.research-section ul {
  margin: 9px 0;
  padding-left: 22px;
}

.source-table {
  width: 100%;
  margin-top: 16px;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 10px;
}

.source-table th,
.source-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.source-table th {
  color: var(--muted);
  font-weight: 500;
}

.source-table td {
  color: #c4cada;
}

.source-table a {
  color: var(--teal);
}

.callout {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(142, 119, 255, 0.2);
  border-radius: 12px;
  background: rgba(142, 119, 255, 0.06);
}

.callout b {
  display: block;
  margin-bottom: 6px;
  color: #e8e2ff;
  font-size: 12px;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: min(360px, calc(100% - 44px));
  padding: 11px 15px;
  border: 1px solid rgba(85, 216, 192, 0.26);
  border-radius: 10px;
  background: rgba(22, 32, 46, 0.96);
  color: #e9faf5;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.help-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #171d31;
  color: var(--text);
  box-shadow: var(--shadow);
}

.help-dialog::backdrop {
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.dialog-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(85, 216, 192, 0.25);
  border-radius: 12px;
  background: rgba(85, 216, 192, 0.08);
  color: var(--teal);
  font-family: Georgia, serif;
}

.help-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.help-dialog > p {
  color: var(--muted);
  font-size: 12px;
}

.dialog-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd0df;
  font-size: 10px;
}

.dialog-list span::before {
  margin-right: 8px;
  color: var(--teal);
  content: "·";
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .main-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .local-badge {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-panel {
    max-width: 640px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.featured {
    grid-column: span 2;
  }

  .workspace-grid,
  .workspace-grid.wide-left {
    grid-template-columns: 1fr;
  }

  .workspace-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .topbar-inner {
    width: min(calc(100% - 28px), var(--max-width));
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .topbar-actions .button {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    display: none;
    width: min(calc(100% - 28px), var(--max-width));
    margin: 0 auto;
    padding: 0 0 14px;
  }

  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .mobile-nav a {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-nav a.active {
    color: var(--text);
    border-color: rgba(146, 126, 255, 0.26);
  }

  .container,
  .hero-grid,
  .workspace-body,
  .workspace-hero-inner,
  .footer-main,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .home-hero {
    min-height: 620px;
    background:
      linear-gradient(90deg, rgba(9, 13, 30, 0.94), rgba(10, 15, 35, 0.7)),
      url("./assets/idea-gateway.png") 60% center / cover no-repeat;
  }

  .hero-grid {
    padding: 62px 0 68px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-panel {
    display: none;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .workflow-band {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
    padding: 17px 20px;
  }

  .workflow-step + .workflow-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-step::after {
    top: auto;
    right: auto;
    bottom: -4px;
    left: 25px;
  }

  .insight-grid,
  .chat-and-brief {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 26px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workspace-hero-inner {
    padding: 40px 0 32px;
  }

  .hero-steps {
    flex-wrap: wrap;
  }

  .hero-steps em {
    display: none;
  }

  .workspace-title-row {
    align-items: flex-start;
  }

  .workspace-icon {
    width: 46px;
    height: 46px;
  }

  .workspace-hero h1 span {
    display: block;
    margin: 6px 0 0;
  }

  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .insights-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    gap: 10px 16px;
  }

  .metric-row,
  .candidate-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-tabs {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions > div {
    width: 100%;
  }

  .form-actions .button {
    flex: 1;
  }

  .layer-item {
    grid-template-columns: 50px 1fr;
  }

  .layer-item .tag {
    grid-column: 2;
    justify-self: start;
  }

  .matrix {
    display: block;
    overflow-x: auto;
  }

  .response-letter {
    padding: 17px;
  }

  .toc {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enterprise agent application shell */

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 38% -20%, rgba(118, 87, 239, 0.12), transparent 35rem),
    #0b0f1d;
}

body::before {
  opacity: 0.55;
}

.agent-app {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  min-height: 100vh;
}

.agent-sidebar {
  position: relative;
  z-index: 40;
  display: flex;
  height: 100vh;
  min-height: 0;
  flex-direction: column;
  padding: 18px 13px 13px;
  overflow: hidden;
  border-right: 1px solid rgba(201, 211, 255, 0.09);
  background:
    radial-gradient(circle at 4% 0, rgba(123, 91, 255, 0.13), transparent 18rem),
    #0e1323;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 7px 16px;
}

.sidebar-close {
  display: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
}

.agent-sidebar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 12px 10px;
}

.agent-sidebar .brand-copy strong {
  font-size: 14px;
}

.agent-sidebar .brand-copy small {
  font-size: 7px;
}

.tenant-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 5px 13px;
  padding: 7px 9px;
  border: 1px solid rgba(85, 216, 192, 0.13);
  border-radius: 8px;
  background: rgba(85, 216, 192, 0.035);
  color: #90bdb4;
  font-size: 9px;
}

.tenant-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px var(--teal);
}

.new-chat {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  padding: 0 11px;
  border: 1px solid rgba(154, 136, 255, 0.27);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(137, 106, 255, 0.2), rgba(79, 192, 169, 0.07)),
    rgba(255, 255, 255, 0.035);
  color: #f0edff;
  font-size: 12px;
  font-weight: 600;
}

.new-chat > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(190, 178, 255, 0.18);
  border-radius: 6px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 400;
}

.new-chat kbd {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 8px;
}

.sidebar-label {
  display: flex;
  justify-content: space-between;
  margin: 0 9px 7px;
  color: #626d8e;
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 600;
}

.sidebar-label span {
  letter-spacing: 0;
  font-weight: 400;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9ba5c0;
  font-size: 11px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.sidebar-nav a:hover {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.035);
  color: #ebedf7;
}

.sidebar-nav a.active {
  border-color: rgba(145, 123, 255, 0.15);
  background:
    linear-gradient(90deg, rgba(134, 106, 255, 0.16), rgba(85, 216, 192, 0.035)),
    rgba(255, 255, 255, 0.025);
  color: #f3f0ff;
}

.sidebar-nav a.active .nav-icon {
  color: var(--teal);
}

.nav-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: #7b86a7;
  font-size: 13px;
}

.sidebar-divider {
  height: 1px;
  margin: 13px 7px;
  background: var(--line);
}

.recent-nav {
  min-height: 0;
  overflow-y: auto;
}

.recent-nav a {
  min-height: 31px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.session-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin: 0 7px 0 2px;
  border-radius: 50%;
  background: var(--violet);
}

.session-dot.teal {
  background: var(--teal);
}

.session-dot.amber {
  background: var(--warning);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.sidebar-utility {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.sidebar-utility:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.employee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.027);
}

.employee-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(143, 122, 255, 0.3);
  border-radius: 9px;
  background: rgba(143, 122, 255, 0.13);
  color: #dcd5ff;
  font-family: "STSong", "SimSun", serif;
  font-size: 13px;
}

.employee-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.35;
}

.employee-card b {
  font-size: 10px;
  font-weight: 600;
}

.employee-card small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.employee-card i {
  width: 6px;
  height: 6px;
  border: 2px solid #0e1323;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.sidebar-scrim {
  display: none;
}

.agent-main-shell {
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
}

.agent-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 16, 31, 0.79);
  backdrop-filter: blur(18px);
}

.agent-header-left,
.agent-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: var(--text);
}

.header-context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.header-context strong {
  color: #dce0ee;
  font-weight: 500;
}

.header-context i {
  font-style: normal;
  color: #414b68;
}

.secure-status,
.model-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9px;
}

.secure-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.model-chip {
  color: #d8d4e7;
}

.model-chip b {
  color: var(--violet-2);
  font-weight: 500;
}

.model-chip em {
  color: var(--muted-2);
  font-style: normal;
}

.header-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 11px;
}

#app {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.agent-page,
.workspace-page {
  min-height: 100%;
}

.agent-home {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 64px 34px 38px;
}

.agent-home::before {
  position: absolute;
  top: -380px;
  left: 50%;
  width: 920px;
  height: 700px;
  border: 1px solid rgba(137, 115, 255, 0.06);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(123, 94, 246, 0.13), transparent 58%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.agent-home-inner {
  position: relative;
  width: min(100%, 940px);
  margin: 0 auto;
}

.agent-welcome {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 28px;
}

.agent-avatar-large {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(158, 140, 255, 0.32);
  border-radius: 15px;
  background:
    radial-gradient(circle at 70% 20%, rgba(85, 216, 192, 0.28), transparent 36%),
    linear-gradient(145deg, #8a6bff, #5741b4);
  box-shadow: 0 12px 40px rgba(89, 62, 202, 0.22);
  color: white;
  font-size: 22px;
}

.agent-avatar-large::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #0c1020;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.agent-welcome-copy {
  padding-top: 2px;
}

.agent-welcome h1 {
  margin: 0;
  letter-spacing: -0.025em;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.3;
}

.agent-welcome h1 span {
  color: var(--violet-2);
}

.agent-welcome p {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.agent-composer {
  position: relative;
  padding: 13px 14px 11px;
  border: 1px solid rgba(166, 153, 255, 0.24);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(32, 37, 64, 0.95), rgba(20, 26, 48, 0.97)),
    var(--surface);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.agent-composer textarea {
  width: 100%;
  min-height: 72px;
  padding: 1px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  resize: none;
  font-size: 13px;
  line-height: 1.75;
}

.agent-composer textarea::placeholder {
  color: #697391;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.composer-left,
.composer-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.composer-tool {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.composer-send {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(190, 177, 255, 0.28);
  border-radius: 9px;
  background: linear-gradient(135deg, #8e70ff, #4cbca7);
  box-shadow: 0 7px 18px rgba(106, 77, 221, 0.24);
  color: white;
  cursor: pointer;
  font-size: 15px;
}

.prompt-suggestions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.prompt-suggestion {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb6cc;
  cursor: pointer;
  text-align: left;
  font-size: 9px;
  line-height: 1.55;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.prompt-suggestion:hover {
  border-color: rgba(146, 124, 255, 0.23);
  background: rgba(139, 115, 255, 0.055);
}

.agent-home-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 2px 30px;
  color: var(--muted-2);
  font-size: 8px;
}

.agent-home-meta::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.agent-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
}

.agent-module-panel,
.agent-recent-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(19, 24, 43, 0.74);
}

.agent-module-head,
.agent-recent-head {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.agent-module-head h2,
.agent-recent-head h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
}

.agent-module-head span,
.agent-recent-head span {
  color: var(--muted-2);
  font-size: 8px;
}

.agent-module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.agent-module {
  position: relative;
  display: flex;
  min-height: 100px;
  flex-direction: column;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agent-module:nth-child(3n) {
  border-right: 0;
}

.agent-module:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.agent-module-icon {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid rgba(146, 125, 255, 0.22);
  border-radius: 8px;
  background: rgba(133, 106, 255, 0.08);
  color: var(--violet-2);
  font-size: 13px;
}

.agent-module h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
}

.agent-module p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

.agent-module > a {
  position: absolute;
  inset: 0;
}

.agent-module:hover {
  background: rgba(255, 255, 255, 0.025);
}

.agent-recent-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.agent-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 9px;
  border-radius: 8px;
}

.agent-recent-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.recent-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}

.agent-recent-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.agent-recent-item b {
  overflow: hidden;
  color: #c9cddd;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 500;
}

.agent-recent-item small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 7px;
}

.workspace-hero {
  background:
    radial-gradient(circle at 82% 6%, rgba(126, 96, 255, 0.1), transparent 22rem),
    rgba(16, 21, 40, 0.7);
}

.workspace-hero::after {
  top: -185px;
  right: 7%;
  width: 380px;
  height: 380px;
}

.workspace-hero-inner {
  width: min(calc(100% - 52px), 1380px);
  padding: 30px 0 26px;
}

.workspace-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 20px;
}

.workspace-hero h1 {
  font-size: clamp(27px, 3vw, 35px);
}

.workspace-hero p {
  margin-top: 8px;
  font-size: 11px;
}

.hero-steps {
  gap: 6px;
  font-size: 8px;
}

.hero-steps i {
  width: 18px;
  height: 18px;
  font-size: 7px;
}

.workspace-body {
  width: min(calc(100% - 52px), 1380px);
  padding: 18px 0 34px;
}

.workspace-toolbar {
  margin-bottom: 12px;
}

.agent-context-bar {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(137, 116, 255, 0.13);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(126, 97, 245, 0.065), rgba(52, 177, 154, 0.02)),
    rgba(255, 255, 255, 0.018);
}

.agent-context-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(151, 131, 255, 0.25);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(139, 108, 255, 0.38), rgba(84, 194, 171, 0.15));
  color: #ddd5ff;
  font-size: 13px;
}

.agent-context-copy {
  min-width: 0;
  flex: 1;
}

.agent-context-copy b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d7d9e7;
  font-size: 9px;
  font-weight: 600;
}

.agent-context-copy b span {
  padding: 2px 5px;
  border: 1px solid rgba(85, 216, 192, 0.18);
  border-radius: 4px;
  color: var(--teal);
  font-size: 6px;
  font-weight: 500;
}

.agent-context-copy p {
  margin: 3px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.65;
}

.agent-context-action {
  align-self: center;
  flex: 0 0 auto;
}

.workspace-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.workspace-grid.wide-left {
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
}

.panel {
  border-radius: 13px;
}

.panel-header {
  min-height: 47px;
  padding: 9px 14px;
}

.panel-header h2 {
  font-size: 11px;
}

.panel-header small {
  font-size: 8px;
}

.panel-content {
  padding: 14px;
}

.field input,
.field select {
  height: 36px;
}

.field textarea {
  min-height: 84px;
}

.field textarea.tall {
  min-height: 130px;
}

.output-empty {
  min-height: 390px;
}

.chat-and-brief {
  gap: 12px;
}

.chat-panel .panel-content {
  min-height: 540px;
}

.insights-page {
  padding: 50px 0 70px;
}

.insights-title {
  margin-bottom: 38px;
}

.insights-title h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.responsive-warning {
  display: none;
}

@media (max-width: 1100px) {
  .agent-app {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .agent-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .workspace-grid,
  .workspace-grid.wide-left {
    grid-template-columns: 1fr;
  }

  .agent-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .agent-module-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .agent-app {
    display: block;
  }

  .agent-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 268px;
    max-width: calc(100vw - 42px);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .agent-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(3, 5, 12, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .sidebar-scrim.open {
    opacity: 1;
    pointer-events: auto;
  }

  .agent-main-shell {
    height: 100dvh;
  }

  .agent-header {
    min-height: 56px;
    padding: 0 15px;
  }

  .sidebar-toggle {
    display: block;
  }

  .secure-status {
    display: none;
  }

  .agent-home {
    padding: 38px 15px 30px;
  }

  .agent-welcome {
    gap: 12px;
  }

  .agent-avatar-large {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 18px;
  }

  .agent-welcome h1 {
    font-size: 30px;
  }

  .prompt-suggestions {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-home-meta {
    margin-bottom: 22px;
  }

  .workspace-hero-inner,
  .workspace-body {
    width: calc(100% - 28px);
  }

  .workspace-hero-inner {
    padding: 24px 0 20px;
  }

  .workspace-title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .workspace-icon {
    width: 38px;
    height: 38px;
  }

  .workspace-hero h1 {
    font-size: 26px;
  }

  .workspace-hero h1 span {
    margin-top: 3px;
    font-size: 9px;
  }

  .hero-steps {
    display: none;
  }

  .agent-context-action {
    display: none;
  }

  .workspace-body {
    padding-top: 14px;
  }

  .model-chip {
    font-size: 8px;
  }
}

@media (max-width: 560px) {
  .header-context > span,
  .header-context > i {
    display: none;
  }

  .model-chip {
    display: none;
  }

  .agent-home {
    padding-top: 30px;
  }

  .agent-welcome h1 {
    font-size: 27px;
  }

  .agent-welcome p {
    font-size: 11px;
  }

  .composer-left .composer-tool:nth-child(2) {
    display: none;
  }

  .prompt-suggestions,
  .agent-module-list {
    grid-template-columns: 1fr;
  }

  .agent-module {
    min-height: 74px;
    border-right: 0;
  }

  .agent-module:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .agent-module:last-child {
    border-bottom: 0;
  }

  .workspace-title-row {
    display: block;
  }

  .workspace-icon {
    margin-bottom: 12px;
  }

  .workspace-hero p {
    line-height: 1.7;
  }

  .agent-context-bar {
    padding: 10px;
  }

  .agent-context-copy p {
    font-size: 8px;
  }

  .panel-header {
    flex-direction: row;
    align-items: center;
  }

  .panel-header small {
    display: none;
  }

  .output-empty {
    min-height: 300px;
  }

  .chat-panel .panel-content {
    min-height: 440px;
  }
}

/* Patent drafting skill pipeline */

.pipeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(153, 132, 255, 0.16);
  border-radius: 11px;
  background:
    linear-gradient(100deg, rgba(130, 101, 250, 0.08), rgba(78, 196, 170, 0.025)),
    rgba(255, 255, 255, 0.018);
}

.pipeline-summary > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pipeline-summary-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(151, 131, 255, 0.25);
  border-radius: 9px;
  background: rgba(133, 106, 255, 0.1);
  color: var(--violet-2);
  font-size: 14px;
}

.pipeline-summary b,
.pipeline-summary small {
  display: block;
}

.pipeline-summary b {
  color: #dddff0;
  font-size: 10px;
  font-weight: 600;
}

.pipeline-summary small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.pipeline-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pipeline-input-panel {
  position: sticky;
  top: 12px;
}

.pipeline-input-panel .form-grid {
  gap: 11px;
}

.pipeline-input-panel .field textarea {
  min-height: 100px;
}

.pipeline-input-panel .field textarea.tall {
  min-height: 140px;
}

.pipeline-input-panel .form-actions {
  align-items: flex-start;
  flex-direction: column;
}

.pipeline-input-panel .form-actions > div {
  width: 100%;
  flex-wrap: wrap;
}

.pipeline-input-panel .form-actions .hint {
  display: none;
}

.pipeline-stage-rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
}

.pipeline-stage {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.pipeline-stage:hover:not(:disabled) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.pipeline-stage.active {
  border-color: rgba(85, 216, 192, 0.19);
  background: rgba(85, 216, 192, 0.04);
}

.pipeline-stage.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.pipeline-stage-index {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 9px;
}

.pipeline-stage.done .pipeline-stage-index {
  border-color: rgba(85, 216, 192, 0.25);
  background: rgba(85, 216, 192, 0.08);
  color: var(--teal);
}

.pipeline-stage.active .pipeline-stage-index {
  color: var(--violet-2);
}

.pipeline-stage > span:last-child {
  min-width: 0;
}

.pipeline-stage b,
.pipeline-stage small {
  display: block;
}

.pipeline-stage b {
  color: #d7dae7;
  font-size: 10px;
  font-weight: 500;
}

.pipeline-stage small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 7px;
}

.pipeline-output-panel {
  min-height: 640px;
}

.pipeline-greenroom {
  padding: 14px;
}

.pipeline-skill-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 11px;
}

.pipeline-skill-meta span {
  display: flex;
  min-height: 51px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.55;
}

.pipeline-skill-meta b {
  margin-bottom: 3px;
  color: #bfc5d6;
  font-size: 7px;
  font-weight: 600;
}

.pipeline-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 8, 17, 0.28);
}

.pipeline-document-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.pipeline-document-head > div {
  display: flex;
  flex-direction: column;
}

.pipeline-document-head span:first-child {
  color: var(--violet-2);
  letter-spacing: 0.08em;
  font-size: 7px;
}

.pipeline-document-head b {
  margin-top: 2px;
  color: #d9dcea;
  font-size: 9px;
  font-weight: 500;
}

.pipeline-document pre {
  max-height: 620px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #cbd1e2;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 10px;
  line-height: 1.85;
}

.pipeline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.pipeline-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@media (max-width: 1050px) {
  .pipeline-layout {
    grid-template-columns: 1fr;
  }

  .pipeline-input-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .pipeline-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-skill-meta {
    grid-template-columns: 1fr;
  }

  .pipeline-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Clean enterprise light theme */

:root {
  --bg: #f5f7fa;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --violet: #2563eb;
  --violet-2: #2563eb;
  --teal: #0f9f8f;
  --lime: #84cc16;
  --blue: #2563eb;
  --danger: #dc2626;
  --warning: #b7791f;
  --success: #15803d;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius-lg: 14px;
  --radius-md: 11px;
  --radius-sm: 8px;
  color-scheme: light;
  font-family:
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before {
  display: none;
}

::selection {
  color: #fff;
  background: #2563eb;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  background-clip: padding-box;
}

.agent-app {
  grid-template-columns: 228px minmax(0, 1fr);
  background: var(--bg);
}

.agent-sidebar {
  padding: 14px 10px 10px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.sidebar-brand-row {
  padding: 1px 6px 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after,
.brand-spark {
  display: none;
}

.brand-shield {
  color: #fff;
  font-size: 16px;
}

.agent-sidebar .brand-copy strong {
  color: #111827;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.agent-sidebar .brand-copy small {
  color: #8a94a6;
  letter-spacing: 0.06em;
}

.tenant-badge {
  margin: 0 5px 12px;
  border-color: #dbe7e5;
  background: #f0f9f7;
  color: #397c70;
}

.new-chat {
  margin-bottom: 15px;
  border-color: #cbd5e1;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.new-chat > span:first-child {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.new-chat kbd {
  border-color: var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.sidebar-label {
  color: #98a2b3;
}

.sidebar-nav a {
  color: #667085;
}

.sidebar-nav a:hover {
  border-color: var(--line);
  background: #fff;
  color: #1f2937;
}

.sidebar-nav a.active {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: none;
}

.sidebar-nav a.active .nav-icon {
  color: #2563eb;
}

.nav-icon {
  color: #8b95a7;
}

.sidebar-divider {
  background: var(--line);
}

.recent-nav a {
  color: #667085;
}

.employee-card {
  border-color: var(--line);
  background: #fff;
}

.employee-avatar {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.employee-card b {
  color: #1f2937;
}

.employee-card i {
  border-color: #fff;
}

.agent-main-shell {
  background: var(--bg);
}

.agent-header {
  min-height: 54px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.header-context {
  color: #98a2b3;
}

.header-context strong {
  color: #344054;
}

.secure-status,
.model-chip,
.header-icon {
  border-color: var(--line);
  background: #fff;
  color: #667085;
}

.model-chip {
  color: #344054;
}

.model-chip b {
  color: #2563eb;
}

#app {
  background: var(--bg);
}

.agent-home {
  padding: 40px 30px 34px;
  background: transparent;
}

.agent-home::before {
  display: none;
}

.agent-home-inner {
  width: min(100%, 980px);
}

.agent-welcome {
  margin-bottom: 22px;
}

.agent-avatar-large {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  box-shadow: none;
  font-size: 18px;
}

.agent-avatar-large::after {
  border-color: #fff;
}

.agent-welcome h1,
.workspace-hero h1,
.insights-title h1,
.research-section h2,
.brief-document h1 {
  font-family: inherit;
  letter-spacing: -0.02em;
}

.agent-welcome h1 {
  color: #172033;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
}

.agent-welcome h1 span {
  color: #2563eb;
}

.agent-welcome p {
  color: #667085;
  font-size: 11px;
}

.agent-composer {
  padding: 12px;
  border-color: #d7deea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.055);
}

.agent-composer textarea {
  color: #1f2937;
}

.agent-composer textarea::placeholder {
  color: #98a2b3;
}

.composer-actions {
  border-color: #edf0f5;
}

.composer-tool {
  border-color: var(--line);
  background: #f8fafc;
  color: #667085;
}

.composer-send {
  border: 0;
  background: #2563eb;
  box-shadow: none;
}

.prompt-suggestion {
  border-color: var(--line);
  background: #fff;
  color: #475467;
}

.prompt-suggestion:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.agent-home-meta {
  color: #98a2b3;
}

.agent-home-meta::after {
  background: var(--line);
}

.agent-module-panel,
.agent-recent-panel,
.panel {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035);
}

.agent-module-head,
.agent-recent-head,
.panel-header {
  border-color: var(--line);
}

.agent-module {
  border-color: #edf0f5;
}

.agent-module:hover {
  background: #f8fafc;
}

.agent-module-icon {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.agent-module h3 {
  color: #344054;
}

.agent-module p,
.agent-module-head span,
.agent-recent-head span {
  color: #98a2b3;
}

.agent-recent-item:hover {
  background: #f8fafc;
}

.recent-icon {
  border-color: var(--line);
  color: #667085;
}

.agent-recent-item b {
  color: #344054;
}

.workspace-hero {
  border-color: var(--line);
  background: #fff;
}

.workspace-hero::after {
  display: none;
}

.workspace-hero-inner {
  width: min(calc(100% - 44px), 1380px);
  padding: 20px 0 18px;
}

.workspace-icon {
  width: 38px;
  height: 38px;
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
}

.workspace-hero h1 {
  color: #172033;
  font-size: 26px;
  font-weight: 650;
}

.workspace-hero h1 span {
  color: #98a2b3;
  letter-spacing: 0.08em;
  font-size: 9px;
}

.workspace-hero p {
  color: #667085;
  font-size: 10px;
}

.hero-steps {
  color: #98a2b3;
}

.hero-steps i {
  border-color: var(--line);
  color: #667085;
}

.hero-steps .current i {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.hero-steps em {
  background: var(--line);
}

.workspace-body {
  width: min(calc(100% - 44px), 1380px);
  padding: 14px 0 26px;
}

.crumb,
.crumb a,
.save-state {
  color: #98a2b3;
}

.crumb strong {
  color: #475467;
}

.save-state i {
  background: #16a34a;
}

.agent-context-bar {
  margin-bottom: 10px;
  padding: 9px 11px;
  border-color: #dbeafe;
  background: #f8fbff;
}

.agent-context-avatar {
  width: 27px;
  height: 27px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.agent-context-copy b {
  color: #344054;
}

.agent-context-copy b span {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.agent-context-copy p {
  color: #667085;
}

.panel-header h2 {
  color: #344054;
}

.panel-header h2 i {
  background: #2563eb;
}

.panel-header small {
  color: #98a2b3;
}

.field label {
  color: #475467;
}

.field label span,
.field-help,
.hint {
  color: #98a2b3;
}

.field input,
.field textarea,
.field select {
  border-color: #d7deea;
  background: #fff;
  color: #1f2937;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a5adba;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.button-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

.button-primary:hover {
  background: #1d4ed8;
  box-shadow: none;
}

.button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #344054;
}

.button-secondary:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.button-ghost {
  color: #667085;
}

.group-tabs,
.segmented {
  border-color: var(--line);
  background: #f8fafc;
}

.group-tabs button,
.segmented button {
  color: #667085;
}

.group-tabs button.active,
.segmented button.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.output-empty {
  color: #667085;
}

.empty-orbit {
  border: 0;
  background: #eff6ff;
  color: #2563eb;
}

.empty-orbit::before,
.empty-orbit::after {
  display: none;
}

.output-empty h3 {
  color: #344054;
}

.output-empty p {
  color: #98a2b3;
}

.result-summary {
  border-color: #dbeafe;
  background: #f8fbff;
}

.score-badge {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.recommend-item,
.cite-candidate,
.step-card,
.layer-item,
.candidate {
  border-color: var(--line);
  background: #fff;
}

.recommend-item.best {
  border-color: #bbf7d0;
  background: #fbfefc;
}

.recommend-item h4,
.candidate h4 {
  color: #344054;
}

.recommend-item p,
.candidate p,
.layer-item p,
.step-card p {
  color: #98a2b3;
}

.tag {
  border-color: var(--line);
  background: #fff;
  color: #667085;
}

.tag.best {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.tag.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.tag.violet {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.check-list li {
  color: #667085;
}

.check-list i,
.notice i {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.matrix {
  border-color: var(--line);
}

.matrix th {
  border-color: var(--line);
  background: #f8fafc;
  color: #667085;
}

.matrix td {
  border-color: var(--line);
  color: #475467;
}

.notice {
  border-color: #fde68a;
  background: #fffbeb;
  color: #8a6518;
}

.chat-message {
  border-color: var(--line);
  background: #f8fafc;
  color: #475467;
}

.chat-message.user {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
}

.chat-input {
  border-color: var(--line);
}

.brief-document {
  color: #344054;
}

.brief-document h1,
.brief-document h2 {
  color: #172033;
}

.brief-document h2 {
  border-color: #2563eb;
}

.pipeline-summary {
  border-color: #dbeafe;
  background: #f8fbff;
}

.pipeline-summary-icon,
.pipeline-stage-index {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.pipeline-summary b,
.pipeline-stage b {
  color: #344054;
}

.pipeline-summary small,
.pipeline-stage small {
  color: #98a2b3;
}

.pipeline-stage-rail {
  border-color: var(--line);
  background: #fafbfc;
}

.pipeline-stage:hover:not(:disabled) {
  border-color: var(--line);
  background: #fff;
}

.pipeline-stage.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.pipeline-stage.done .pipeline-stage-index {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.pipeline-stage.active .pipeline-stage-index {
  color: #2563eb;
}

.pipeline-skill-meta span {
  border-color: var(--line);
  background: #fafbfc;
  color: #667085;
}

.pipeline-skill-meta b {
  color: #475467;
}

.pipeline-document {
  border-color: var(--line);
  background: #fff;
}

.pipeline-document-head {
  border-color: var(--line);
  background: #f8fafc;
}

.pipeline-document-head span:first-child {
  color: #2563eb;
}

.pipeline-document-head b {
  color: #344054;
}

.pipeline-document pre {
  color: #344054;
}

.pipeline-actions {
  border-color: var(--line);
}

.response-letter {
  border-color: #d7deea;
  background: #fff;
}

.timeline-item p {
  color: #667085;
}

.timeline-item::before {
  border-color: #fff;
  background: #2563eb;
  box-shadow: none;
}

.timeline-item::after {
  background: var(--line);
}

.toast {
  border-color: #bbf7d0;
  background: #1f2937;
  color: #fff;
  box-shadow: var(--shadow);
}

.help-dialog {
  border-color: var(--line);
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.help-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.dialog-close,
.header-icon {
  color: #667085;
}

.dialog-icon {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.help-dialog > p,
.dialog-list {
  color: #475467;
}

.dialog-list {
  border-color: var(--line);
  background: #f8fafc;
}

.insights-page {
  background: #fff;
}

.eyebrow {
  color: #2563eb;
}

.eyebrow::before {
  background: #2563eb;
}

.insights-title p,
.research-section > p,
.research-section li,
.callout p {
  color: #667085;
}

.toc,
.research-section,
.source-table th,
.source-table td {
  border-color: var(--line);
}

.toc {
  background: #f8fafc;
}

.toc a {
  color: #667085;
}

.toc a:hover {
  background: #fff;
  color: #172033;
}

.source-table th,
.source-table td {
  border-color: var(--line);
}

.source-table th {
  background: #f8fafc;
  color: #667085;
}

.source-table td {
  color: #475467;
}

.source-table a {
  color: #2563eb;
}

.callout {
  border-color: #dbeafe;
  background: #f8fbff;
}

.callout b {
  color: #1e3a8a;
}

@media (max-width: 820px) {
  .agent-sidebar {
    background: #f8fafc;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.1);
  }

  .sidebar-scrim {
    background: rgba(15, 23, 42, 0.28);
  }

  .agent-header {
    background: #fff;
  }

  .agent-home {
    padding: 26px 14px 24px;
  }

  .workspace-hero-inner,
  .workspace-body {
    width: calc(100% - 24px);
  }

  .workspace-hero-inner {
    padding: 16px 0 14px;
  }

  .workspace-hero h1 {
    font-size: 23px;
  }
}

@media (max-width: 560px) {
  .agent-home {
    padding-top: 22px;
  }

  .agent-welcome h1 {
    font-size: 25px;
  }

  .agent-welcome {
    gap: 10px;
  }

  .agent-avatar-large {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .workspace-icon {
    display: none;
  }

  .workspace-hero h1 span {
    margin-top: 2px;
  }

  .panel {
    border-radius: 9px;
  }
}

/* Renjie live workbench: restrained motion and real-time states */

.agent-sidebar .brand-copy {
  min-width: 0;
}

.agent-sidebar .brand-copy strong {
  white-space: nowrap;
}

.agent-sidebar .brand-copy small {
  display: block;
  max-width: 148px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.secure-status[data-mode="online"] {
  border-color: #d8eee9;
  background: #f4fbf9;
  color: #397c70;
}

.secure-status[data-mode="online"] i,
.secure-status[data-mode="connecting"] i {
  animation: runtimePulse 1.9s ease-in-out infinite;
}

.secure-status[data-mode="connecting"] i {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.secure-status[data-mode="local"] {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #2563eb;
}

.secure-status[data-mode="local"] i {
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.home-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-ambient span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: blur(1px);
  animation: ambientFloat 12s ease-in-out infinite;
}

.home-ambient span:nth-child(1) {
  top: 28px;
  left: 8%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(37, 99, 235, 0.06);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07), transparent 68%);
}

.home-ambient span:nth-child(2) {
  top: 68px;
  right: -110px;
  width: 360px;
  height: 360px;
  background:
    repeating-radial-gradient(
      circle,
      rgba(15, 159, 143, 0.055) 0 1px,
      transparent 1px 24px
    );
  animation-delay: -4s;
}

.home-ambient span:nth-child(3) {
  top: 350px;
  left: 42%;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(37, 99, 235, 0.08);
  animation-delay: -7s;
}

.agent-home-inner > * {
  animation: workbenchRise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.agent-home-inner > :nth-child(2) {
  animation-delay: 60ms;
}

.agent-home-inner > :nth-child(3) {
  animation-delay: 105ms;
}

.agent-home-inner > :nth-child(4) {
  animation-delay: 145ms;
}

.agent-home-inner > :nth-child(5) {
  animation-delay: 180ms;
}

.agent-home-inner > :nth-child(6) {
  animation-delay: 215ms;
}

.agent-home-inner > :nth-child(7) {
  animation-delay: 250ms;
}

.agent-live-kicker {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #667085;
  font-size: 8px;
  letter-spacing: 0.03em;
}

.agent-live-kicker i {
  margin-left: 3px;
  color: #b0b8c5;
  font-style: normal;
  letter-spacing: 0.12em;
  font-size: 7px;
}

.live-dot,
.meta-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
  animation: runtimePulse 1.9s ease-in-out infinite;
}

.live-dot[data-runtime-state="online"] {
  background: #0f9f8f;
  box-shadow: 0 0 0 4px rgba(15, 159, 143, 0.1);
}

.live-dot[data-runtime-state="connecting"] {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.meta-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  vertical-align: 1px;
}

.agent-avatar-live {
  isolation: isolate;
  overflow: visible;
}

.agent-avatar-live::before {
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 15px;
  content: "";
  animation: avatarHalo 3.4s ease-in-out infinite;
}

.avatar-orbit {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(15, 159, 143, 0.2);
  border-radius: 50%;
  animation: orbitSpin 16s linear infinite;
}

.avatar-orbit::after {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #55d8c0;
  box-shadow: 0 0 9px rgba(85, 216, 192, 0.8);
  content: "";
}

.avatar-core {
  animation: coreGlow 2.8s ease-in-out infinite;
}

.agent-composer {
  isolation: isolate;
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.agent-composer:focus-within {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow:
    0 14px 36px rgba(37, 99, 235, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.composer-glow {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(37, 99, 235, 0.42), rgba(15, 159, 143, 0.34), rgba(37, 99, 235, 0.42));
  opacity: 0;
  filter: blur(7px);
  transition: opacity 240ms ease;
}

.agent-composer:focus-within .composer-glow {
  opacity: 0.22;
}

.agent-composer.is-thinking .composer-glow {
  opacity: 0.44;
  animation: composerAura 1.4s ease-in-out infinite;
}

.agent-composer.is-thinking {
  border-color: rgba(37, 99, 235, 0.42);
}

.composer-live {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f6f8fc;
  color: #7b8798;
  font-size: 8px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.composer-live > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #55c7b5;
  box-shadow: 0 0 0 3px rgba(85, 199, 181, 0.1);
}

.composer-live.is-working {
  background: #eff6ff;
  color: #2563eb;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.thinking-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2563eb;
  animation: thinkingDot 900ms ease-in-out infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.composer-send {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.composer-send:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

.composer-send:disabled {
  cursor: wait;
  opacity: 0.76;
  animation: sendPulse 850ms ease-in-out infinite;
}

.prompt-suggestion {
  position: relative;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.prompt-suggestion::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: #b7c0ce;
  content: "↗";
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.prompt-suggestion:hover {
  color: #1d4ed8;
  transform: translateY(-2px);
}

.prompt-suggestion:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.agent-live-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -14px 0 13px;
  padding: 10px 14px 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(239, 246, 255, 0.72), rgba(240, 253, 250, 0.55)),
    #fff;
}

.live-strip-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.live-strip-copy > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.45;
}

.live-strip-copy b {
  color: #344054;
  font-size: 9px;
  font-weight: 600;
}

.live-strip-copy small {
  overflow: hidden;
  color: #8b96a7;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8px;
}

.live-scan {
  position: relative;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 7px;
  flex: 0 0 auto;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.live-scan::before {
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(37, 99, 235, 0.13);
  border-radius: 5px;
  content: "";
}

.live-scan i {
  position: relative;
  width: 2px;
  border-radius: 2px;
  background: #2563eb;
  animation: scanBars 1.1s ease-in-out infinite;
}

.live-scan i:nth-child(1) {
  height: 5px;
}

.live-scan i:nth-child(2) {
  height: 10px;
  animation-delay: 130ms;
}

.live-scan i:nth-child(3) {
  height: 7px;
  animation-delay: 260ms;
}

.live-strip-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
}

.live-strip-metrics span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #8b96a7;
  white-space: nowrap;
  font-size: 7px;
}

.live-strip-metrics b {
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.live-strip-metrics em {
  color: #98a2b3;
  font-style: normal;
  font-size: 8px;
}

.live-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(37, 99, 235, 0.05);
}

.live-progress i {
  display: block;
  width: var(--live-progress);
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(90deg, #2563eb, #0f9f8f);
  transition: width 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agent-module,
.agent-recent-item {
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.agent-module:hover {
  z-index: 1;
  box-shadow: inset 3px 0 0 #2563eb;
  transform: translateY(-2px);
}

.agent-module:hover .agent-module-icon {
  color: #fff;
  background: #2563eb;
  transform: rotate(-5deg) scale(1.06);
}

.agent-module-icon {
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.agent-recent-item {
  position: relative;
}

.agent-recent-item:hover {
  transform: translateX(2px);
}

.agent-recent-item em {
  margin-left: auto;
  color: #b0b8c5;
  white-space: nowrap;
  font-style: normal;
  font-size: 7px;
}

.agent-pulse-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 3px 8px 8px;
  padding: 11px;
  border: 1px solid #e7edf4;
  border-radius: 9px;
  background: #f8fafc;
}

.pulse-ring {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f8fafc 55%, transparent 57%),
    conic-gradient(#2563eb var(--pulse), #e2e8f0 0);
}

.pulse-ring::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  content: "";
  animation: runtimePulse 2.4s ease-in-out infinite;
}

.pulse-ring span {
  position: relative;
  z-index: 1;
  color: #2563eb;
  font-size: 10px;
  font-weight: 650;
}

.pulse-ring small {
  font-size: 6px;
}

.agent-pulse-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.45;
}

.agent-pulse-card > span > b {
  color: #344054;
  font-size: 9px;
}

.agent-pulse-card > span > small {
  color: #98a2b3;
  font-size: 7px;
}

.page-enter > .workspace-hero {
  animation: workbenchRise 420ms ease both;
}

.page-enter > .workspace-body {
  animation: workbenchRise 520ms 45ms ease both;
}

.workspace-hero h1 {
  animation: titleReveal 540ms ease both;
}

.panel {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.panel:hover {
  border-color: #cfd9e8;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
}

.empty-orbit,
.agent-context-avatar {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.panel:hover .empty-orbit,
.agent-context-bar:hover .agent-context-avatar {
  transform: translateY(-2px) rotate(4deg);
}

.save-state i {
  animation: runtimePulse 2.2s ease-in-out infinite;
}

@keyframes workbenchRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    letter-spacing: 0.02em;
    transform: translateX(-7px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.02em;
    transform: translateX(0);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(9px, -14px, 0) rotate(6deg);
  }
}

@keyframes runtimePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.52;
    transform: scale(0.8);
  }
}

@keyframes avatarHalo {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes coreGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
    transform: scale(1.08);
  }
}

@keyframes composerAura {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.995);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.006);
  }
}

@keyframes thinkingDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes sendPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.93);
  }
}

@keyframes scanBars {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleY(0.55);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 820px) {
  .agent-live-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .live-strip-metrics {
    justify-content: flex-start;
    padding-left: 38px;
  }

  .agent-live-kicker i {
    display: none;
  }
}

@media (max-width: 560px) {
  .agent-live-kicker {
    flex-wrap: wrap;
  }

  .agent-welcome p {
    font-size: 10px;
  }

  .composer-live {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .live-strip-copy small {
    white-space: normal;
  }

  .agent-pulse-card {
    margin-top: 5px;
  }
}

/* Production workspace refinements */

.nav-icon {
  font-size: 10px;
  font-weight: 650;
}

.agent-module-icon {
  color: #475467;
  font-size: 11px;
  font-weight: 650;
}

.sidebar-recent-empty {
  margin: 4px 8px 0;
  padding: 14px 10px;
  border: 1px dashed #dbe2eb;
  border-radius: 8px;
  color: #98a2b3;
  text-align: center;
  font-size: 8px;
}

.agent-recent-empty {
  display: flex;
  min-height: 178px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 18px;
  text-align: center;
}

.recent-empty-mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  border: 1px solid #dbe7e5;
  border-radius: 9px;
  background: #f3faf8;
  color: #337f73;
  font-size: 13px;
  font-weight: 650;
}

.agent-recent-empty > b {
  color: #344054;
  font-size: 9px;
  font-weight: 600;
}

.agent-recent-empty > p {
  max-width: 220px;
  margin: 6px 0 12px;
  color: #98a2b3;
  font-size: 8px;
  line-height: 1.65;
}

.recent-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.recent-empty-actions a {
  padding: 5px 9px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  font-size: 8px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.recent-empty-actions a:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: #2563eb;
}

.home-ambient span {
  animation: none;
  opacity: 0.42;
}

.avatar-orbit {
  display: none;
}

.agent-avatar-live::before {
  opacity: 0.38;
  animation: none;
}

.avatar-core {
  animation: none;
}

.model-chip b {
  font-size: 8px;
  font-weight: 500;
}

/* Case library */

.case-library-body {
  padding-bottom: 48px;
}

.case-library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.case-library-head .crumb {
  margin-bottom: 6px;
}

.case-library-head p {
  margin: 0;
  color: #8b96a7;
  font-size: 9px;
}

.case-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #667085;
  white-space: nowrap;
  font-size: 9px;
}

.case-total b {
  color: #172033;
  font-size: 24px;
  font-weight: 650;
}

.case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.case-search {
  display: flex;
  min-width: 270px;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.case-search > span {
  color: #98a2b3;
  font-size: 8px;
}

.case-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 9px;
}

.case-search:focus-within {
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.case-filters button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7b8798;
  cursor: pointer;
  font-size: 8px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.case-filters button:hover {
  border-color: #e1e7ef;
  background: #f8fafc;
  color: #344054;
}

.case-filters button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.case-library-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 9px 11px;
  border: 1px solid #dce9e6;
  border-radius: 8px;
  background: #f5fbf9;
  color: #667085;
  font-size: 8px;
}

.case-library-note b {
  flex: 0 0 auto;
  color: #337f73;
  font-weight: 600;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.case-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-card[hidden] {
  display: none;
}

.case-card:hover {
  border-color: #cfd9e8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  transform: translateY(-2px);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.case-category {
  padding: 3px 7px;
  border: 1px solid #dbe7e5;
  border-radius: 999px;
  background: #f4fbf9;
  color: #397c70;
  font-size: 7px;
  font-weight: 600;
}

.case-index {
  color: #c0c7d1;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.case-card h3 {
  min-height: 42px;
  margin: 0;
  color: #253047;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.case-problem {
  display: -webkit-box;
  margin: 8px 0 11px;
  overflow: hidden;
  color: #667085;
  font-size: 8px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px 0;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.case-facts span {
  overflow: hidden;
  color: #667085;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 7px;
}

.case-facts b {
  margin-right: 5px;
  color: #98a2b3;
  font-weight: 500;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.case-tags span {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f6f8fb;
  color: #7b8798;
  font-size: 7px;
}

.case-actions {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
}

.case-actions button {
  min-height: 29px;
  flex: 1;
  padding: 0 7px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font-size: 7px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.case-actions button:first-child {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #2563eb;
}

.case-actions button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.case-library-empty {
  margin-top: 12px;
  padding: 44px 20px;
  border: 1px dashed #dbe2eb;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.case-library-empty b {
  color: #344054;
  font-size: 10px;
}

.case-library-empty p {
  margin: 5px 0 0;
  color: #98a2b3;
  font-size: 8px;
}

@media (max-width: 1080px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .case-search {
    width: 100%;
  }

  .case-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .case-library-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 0;
  }

  .case-library-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

.formality-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.formality-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fff;
}

.formality-check > span {
  min-width: 44px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #667085;
  text-align: center;
  font-size: 7px;
  font-weight: 600;
}

.formality-check.error {
  border-color: #f2d7d7;
  background: #fffafa;
}

.formality-check.error > span {
  background: #fff1f1;
  color: #c24141;
}

.formality-check.warn {
  border-color: #f0e2c8;
  background: #fffdf8;
}

.formality-check.warn > span {
  background: #fff8e8;
  color: #a46a12;
}

.formality-check.pass > span {
  background: #f0faf7;
  color: #337f73;
}

.formality-check > div {
  min-width: 0;
}

.formality-check b {
  display: block;
  color: #344054;
  font-size: 9px;
  font-weight: 600;
}

.formality-check p {
  margin: 3px 0 0;
  color: #7b8798;
  font-size: 8px;
  line-height: 1.65;
}
