:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef5f6;
  --bg-2: #f8fbfb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #10212a;
  --muted: #65747a;
  --line: rgba(29, 78, 84, 0.16);
  --soft-line: rgba(29, 78, 84, 0.1);
  --hot: #0c8f8a;
  --hot-deep: #075c5a;
  --hot-2: #d98b22;
  --white-neon: #fdfefe;
  --good: #0b8d76;
  --warn: #d98b22;
  --bad: #c84c3a;
  --shadow: 0 24px 64px rgba(28, 73, 82, 0.18);
  --glow: 0 0 18px rgba(12, 143, 138, 0.24), 0 0 34px rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071416;
  --bg-2: #102529;
  --panel: rgba(13, 31, 35, 0.9);
  --panel-strong: rgba(18, 43, 48, 0.96);
  --text: #f5fbfb;
  --muted: #9fb3b8;
  --line: rgba(202, 235, 236, 0.14);
  --soft-line: rgba(202, 235, 236, 0.09);
  --hot: #24b7ad;
  --hot-deep: #0a6d68;
  --hot-2: #f0a942;
  --white-neon: #ffffff;
  --good: #40d7b8;
  --warn: #f0a942;
  --bad: #ff7668;
  --shadow: 0 22px 72px rgba(0, 0, 0, 0.42);
  --glow: 0 0 18px rgba(36, 183, 173, 0.36), 0 0 36px rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(77, 184, 197, 0.26), transparent 25rem),
    radial-gradient(circle at 10% 88%, rgba(217, 139, 34, 0.13), transparent 21rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .sidebar {
  background: rgba(5, 20, 23, 0.68);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  position: relative;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: linear-gradient(135deg, #27b8b1, var(--hot-deep));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--glow);
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  animation: earthSpin 4s linear infinite;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 8px;
  width: 30px;
  height: 8px;
  border-radius: 999px 7px 7px 999px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.98) 16% 30%, transparent 30% 42%),
    linear-gradient(90deg, #eefeff, #00e5ff 60%, #f0a942);
  box-shadow:
    -12px 0 12px rgba(0, 229, 255, 0.5),
    0 0 10px rgba(240, 169, 66, 0.42);
  animation: bulletTrainPass 2.25s ease-in-out infinite;
  z-index: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  z-index: 0;
}

.brand-mark img {
  position: relative;
  z-index: 2;
}

@keyframes earthSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand-title {
  display: block;
  max-width: 174px;
  color: #0790ff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.08;
  text-shadow:
    0 0 6px rgba(7, 144, 255, 0.48),
    0 0 12px rgba(36, 183, 173, 0.3);
}

@keyframes bulletTrainPass {
  0% {
    transform: translateX(0) scaleX(0.9);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  72% {
    transform: translateX(72px) scaleX(1.02);
    opacity: 1;
  }
  100% {
    transform: translateX(86px) scaleX(1);
    opacity: 0;
  }
}

.brand small,
.muted,
.module-card p,
.hero-copy,
.side-card p,
.metric-card small {
  color: var(--muted);
}

.nav-stack {
  display: grid;
  gap: 8px;
}

.nav-item,
.button,
.icon-button,
.send-button,
.tool-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.nav-item {
  display: block;
}

.nav-item.active,
.nav-item:hover,
.button:hover,
.tool-button:hover {
  border-color: rgba(12, 143, 138, 0.5);
  box-shadow: 0 0 0 1px rgba(12, 143, 138, 0.14), var(--glow);
}

.side-card,
.hero-panel,
.lisa-panel,
.metric-card,
.module-card,
.form-panel,
.output-panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 16px;
}

.side-card h2,
.module-card h2,
.lisa-panel h2,
.form-panel h2,
.output-panel h2,
.table-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.lisa-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lisa-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), transparent 18%),
    linear-gradient(135deg, #ff2bd6 0%, #7c3cff 46%, #12dff3 100%);
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.18),
    0 14px 28px rgba(18, 135, 255, 0.22);
}

.lisa-title {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

.lisa-title span {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  background: linear-gradient(90deg, #ff2bd6, #7c3cff, #12dff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 12px rgba(255, 43, 214, 0.28),
    0 0 18px rgba(18, 223, 243, 0.18);
}

.lisa-title small {
  display: block;
  margin-top: 8px;
  color: #0f766e;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lisa-customer-select {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(18, 135, 255, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 135, 255, 0.14), rgba(217, 139, 34, 0.1)),
    var(--panel-strong);
  color: #1287ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(18, 135, 255, 0.1), 0 12px 28px rgba(18, 135, 255, 0.12);
}

.lisa-customer-select select {
  min-height: 48px;
  border-color: rgba(18, 135, 255, 0.42);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

:root[data-theme="dark"] .lisa-customer-select select {
  background: rgba(5, 20, 23, 0.82);
}

.lisa-llm-options {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(110px, 0.45fr) minmax(120px, 0.45fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgba(18, 135, 255, 0.06);
}

.lisa-llm-options label {
  min-width: 0;
}

.lisa-llm-options select,
.lisa-llm-options input {
  min-height: 40px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 12px currentColor;
}

.dot.ok {
  background: var(--good);
}

.dot.bad {
  background: var(--bad);
}

.dot.wait {
  background: var(--warn);
}

.sidebar-stages {
  display: grid;
  gap: 12px;
}

.sidebar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(12, 143, 138, 0.45), transparent);
}

.stage-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 41, 45, 0.86);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

:root[data-theme="light"] .stage-card {
  background: rgba(255, 255, 255, 0.8);
}

.stage-card:hover,
.stage-card:focus-visible,
.stage-card.active {
  border-color: rgba(12, 143, 138, 0.55);
  box-shadow: 0 0 0 1px rgba(12, 143, 138, 0.12), var(--glow);
  transform: translateX(2px);
  outline: 0;
}

.stage-code {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(12, 143, 138, 0.18);
  color: var(--hot);
  font-size: 10px;
  font-weight: 900;
}

.stage-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-card strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
}

.stage-card p {
  margin: 3px 0 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.stage-card em {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(101, 116, 122, 0.22);
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.stage-card.complete em {
  background: rgba(11, 141, 118, 0.18);
  color: var(--good);
}

.system-status-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 41, 45, 0.72);
}

:root[data-theme="light"] .system-status-card {
  background: rgba(255, 255, 255, 0.72);
}

.system-status-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
}

.system-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text);
  font-size: 13px;
}

.system-status-row:last-child {
  border-bottom: 0;
}

.system-status-row strong {
  color: var(--hot);
}

.workspace {
  min-width: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px;
}

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

.topbar h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
}

.main-neon-title {
  color: #1287ff;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 0 5px rgba(18, 135, 255, 0.36),
    0 0 10px rgba(18, 135, 255, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--hot-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-actions,
.hero-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.send-button,
.tool-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button.hot,
.send-button {
  border-color: rgba(12, 143, 138, 0.72);
  background: linear-gradient(135deg, #29b9b1, var(--hot-deep));
  color: #fff;
  box-shadow: var(--glow);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 20px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(12, 143, 138, 0.15), transparent 45%),
    var(--panel);
}

.hero-panel h2 {
  position: relative;
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 0.98;
}

.hero-copy {
  position: relative;
  max-width: 620px;
  margin: 22px 0 26px;
  font-size: 17px;
  line-height: 1.6;
}

.neon-ring {
  position: absolute;
  right: -110px;
  top: -130px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: inset var(--glow), var(--glow);
}

.lisa-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.compact-select,
input,
select,
textarea {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 11px 12px;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .compact-select {
  background: #f4f6fb;
}

.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 8px 4px 14px;
}

.message {
  max-width: 88%;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.message.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
}

.message.user {
  align-self: flex-end;
  border-color: rgba(12, 143, 138, 0.36);
  background: rgba(12, 143, 138, 0.12);
}

.question-bank {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.question-bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.question-bank-head span {
  color: var(--text);
}

.question-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.question-chip {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: rgba(12, 143, 138, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}

.question-chip:hover {
  border-color: rgba(12, 143, 138, 0.38);
  background: rgba(12, 143, 138, 0.14);
}

.question-empty {
  color: var(--muted);
  font-size: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.voice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(12, 143, 138, 0.22);
  border-radius: 14px;
  background: rgba(12, 143, 138, 0.07);
}

.voice-control {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-control select {
  min-height: 34px;
  padding: 7px 10px;
}

.metric-grid,
.module-grid,
.credit-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.metric-card,
.module-card,
.form-panel,
.output-panel,
.table-panel {
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--white-neon);
  font-size: 32px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.38);
}

:root[data-theme="light"] .metric-card strong {
  color: var(--hot);
}

.text-link {
  color: var(--hot-2);
  font-weight: 900;
  text-decoration: none;
}

.credit-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.25fr);
  align-items: start;
}

.app-view.hidden {
  display: none !important;
}

.stage-view {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.stage-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stage-page-head h2,
.stage-panel h3 {
  margin: 0;
}

.stage-page-head h2 {
  color: #1287ff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  text-shadow: 0 0 9px rgba(18, 135, 255, 0.26);
}

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

.stage-panel {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.context-stack {
  display: grid;
  gap: 14px;
}

.context-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgba(12, 143, 138, 0.06);
}

.context-section h4 {
  margin: 0 0 4px;
  color: var(--hot-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--soft-line);
}

.context-row:last-child {
  border-bottom: 0;
}

.context-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.context-row strong {
  max-width: 62%;
  text-align: right;
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.guardrail-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 139, 34, 0.36);
  border-radius: 14px;
  background: rgba(217, 139, 34, 0.09);
  color: var(--text);
  line-height: 1.5;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.check-item .dot {
  flex: 0 0 auto;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgba(12, 143, 138, 0.06);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(12, 143, 138, 0.18);
  color: var(--hot);
  font-weight: 900;
}

.activity-item strong {
  display: block;
}

.activity-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 118px;
  border: 1px dashed rgba(12, 143, 138, 0.5);
  border-radius: 16px;
  background: rgba(12, 143, 138, 0.07);
  text-align: center;
}

.upload-picker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.auto-ingest-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  text-transform: none;
}

.source-method {
  display: grid;
  gap: 12px;
}

.connector-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(12, 143, 138, 0.26);
  border-radius: 14px;
  background: rgba(12, 143, 138, 0.06);
}

.connector-card h3 {
  margin: 0;
  color: var(--text);
}

.connector-fields {
  display: grid;
  gap: 12px;
}

.connector-doc-list {
  max-height: 190px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.connector-doc-list label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-transform: none;
}

.document-summary {
  border: 1px solid rgba(12, 143, 138, 0.26);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(12, 143, 138, 0.08);
  color: var(--text);
  line-height: 1.45;
}

.document-summary strong {
  color: var(--hot-2);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--soft-line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.output-box {
  min-height: 180px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  white-space: pre-wrap;
  line-height: 1.55;
}

.compact-output {
  min-height: 96px;
}

.policy-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.policy-tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(12, 143, 138, 0.08);
}

.policy-tile strong {
  color: var(--white-neon);
}

:root[data-theme="light"] .policy-tile strong {
  color: var(--hot-deep);
}

.policy-tile span {
  font-size: 18px;
  font-weight: 900;
}

.policy-tile small {
  color: var(--muted);
  line-height: 1.45;
}

.workflow-box {
  border-top: 1px solid var(--soft-line);
  padding-top: 14px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
}

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

  .app-shell,
  .hero-grid,
  .credit-grid,
  .metric-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .workspace {
    height: auto;
  }
}

@media (max-width: 680px) {
  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row,
  .chat-form,
  .lisa-llm-options,
  .policy-result-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding: 26px;
  }
}
