:root {
  color-scheme: light;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --surface-muted: #edf3f1;
  --text: #18201e;
  --text-muted: #61706c;
  --line: #d7e1de;
  --accent: #087f73;
  --accent-strong: #05665d;
  --accent-soft: #dff2ee;
  --danger: #a33a3a;
  --warning: #8a5a08;
  --shadow: 0 18px 48px rgb(23 56 49 / 0.08);
  --card-radius: 16px;
  --input-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  font-family:
    "Segoe UI Variable",
    "Microsoft YaHei UI",
    "PingFang SC",
    system-ui,
    sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgb(8 127 115 / 0.055), transparent 240px),
    var(--canvas);
}

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

a {
  color: var(--accent-strong);
}

button,
.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    transform 120ms ease;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button.secondary,
.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

button.danger,
.button.danger {
  border-color: #e8c6c6;
  background: #fff5f5;
  color: var(--danger);
}

:focus-visible {
  outline: 3px solid rgb(8 127 115 / 0.3);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 780;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-muted);
}

.primary-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--text);
}

.primary-nav a.active {
  background: var(--surface);
  box-shadow: 0 3px 10px rgb(23 56 49 / 0.08);
  color: var(--accent-strong);
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 0 2px 22px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.page-header p {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-nav a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  text-decoration: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.25rem 0.68rem;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 620;
}

.tag.accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, 0.78fr);
  gap: 24px;
  margin-top: 28px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: clip;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.count {
  min-width: 28px;
  border-radius: 999px;
  padding: 0.23rem 0.5rem;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.finding-list {
  display: grid;
  gap: 0;
}

.finding {
  padding: 19px 22px;
  border-top: 1px solid var(--line);
}

.finding:first-child {
  border-top: 0;
}

.finding-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.finding h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.finding p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.severity {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.severity.high {
  background: #fff0ee;
  color: #9b2c23;
}

.severity.medium {
  background: #fff5da;
  color: var(--warning);
}

.evidence {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfa;
}

.evidence summary {
  padding: 11px 13px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.evidence-list {
  display: grid;
  gap: 10px;
  padding: 0 13px 13px;
}

.message {
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  background: var(--surface);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.message-body {
  margin-top: 7px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  min-height: 104px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.stat:nth-child(2n) {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.empty,
.error-state {
  padding: 26px 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  line-height: 1.65;
}

.error-state {
  color: var(--danger);
}

.report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.report-link {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.report-link:hover {
  border-color: rgb(8 127 115 / 0.55);
}

.report-link time {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.report-link h2 {
  margin: 28px 0 8px;
  font-size: 1.3rem;
}

.report-link p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.assistant-page-header {
  align-items: center;
}

.privacy-summary {
  display: grid;
  gap: 4px;
  min-width: 220px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
}

.privacy-summary strong {
  font-size: 0.92rem;
}

.privacy-summary span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.assistant-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

.assistant-chat,
.assistant-panel {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: clip;
}

.assistant-chat-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.agent-picker {
  display: grid;
  min-width: min(330px, 100%);
  gap: 7px;
}

.agent-picker label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.agent-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #aebfba;
  border-radius: var(--input-radius);
  padding: 0 36px 0 12px;
  background: var(--surface);
  color: var(--text);
}

.agent-picker select:disabled {
  color: var(--text-muted);
  opacity: 1;
}

.chat-scope {
  padding-bottom: 11px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
}

.example-questions {
  padding: 18px 20px;
}

.example-questions > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.prompt-actions,
.follow-up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.prompt-button {
  min-height: 36px;
  border-color: var(--line);
  padding: 0.44rem 0.72rem;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.35;
  text-align: left;
}

button.prompt-button:hover {
  border-color: rgb(8 127 115 / 0.5);
  background: var(--accent-soft);
}

.assistant-transcript {
  display: grid;
  min-height: 290px;
  align-content: start;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
  background: #f8fbfa;
}

.assistant-empty {
  display: grid;
  max-width: 430px;
  min-height: 218px;
  align-content: center;
  justify-self: center;
  text-align: center;
}

.assistant-empty strong {
  font-size: 1.08rem;
}

.assistant-empty p {
  margin: 9px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.assistant-turn {
  width: min(100%, 760px);
  border-radius: 14px;
  padding: 17px 18px;
}

.assistant-response {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(23 56 49 / 0.055);
}

.user-turn {
  width: min(88%, 620px);
  justify-self: end;
  background: var(--accent-strong);
  color: #fff;
}

.turn-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.turn-header > div {
  display: grid;
  gap: 2px;
}

.turn-header strong {
  font-size: 0.88rem;
}

.turn-header span:not(.turn-avatar) {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.turn-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 760;
}

.user-turn .turn-avatar {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

.user-turn p {
  margin: 12px 0 0 42px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.assistant-answer-text {
  margin: 16px 0 0 42px;
  line-height: 1.78;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 14px 0 0 42px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.answer-evidence {
  margin: 16px 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfa;
}

.answer-evidence summary {
  padding: 12px 13px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 680;
  cursor: pointer;
}

.answer-evidence-list {
  display: grid;
  max-height: 470px;
  gap: 10px;
  overflow: auto;
  padding: 0 13px 13px;
  overscroll-behavior: contain;
}

.answer-source {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.source-note {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.evidence-warning {
  margin: 16px 0 0 42px;
  border: 1px solid #e6cf9e;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff9e9;
  color: #715014;
}

.evidence-warning strong {
  font-size: 0.86rem;
}

.evidence-warning p {
  margin: 5px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.follow-up-group {
  display: grid;
  gap: 9px;
  margin: 16px 0 0 42px;
}

.follow-up-group > strong {
  font-size: 0.82rem;
}

.answer-skeleton {
  display: grid;
  gap: 10px;
  margin: 18px 0 4px 42px;
}

.answer-skeleton span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      var(--surface-muted) 25%,
      #f7faf9 50%,
      var(--surface-muted) 75%
    );
  background-size: 220% 100%;
  animation: assistant-skeleton 1.4s ease-in-out infinite;
}

.loading-leave-note {
  margin: 14px 0 0 42px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@keyframes assistant-skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.assistant-error-turn {
  justify-self: start;
  border: 1px solid #e8c6c6;
  background: #fff5f5;
  color: var(--danger);
}

.assistant-error-turn p {
  margin: 8px 0 14px;
  color: #7d3a3a;
  line-height: 1.6;
}

button.retry-button {
  min-height: 36px;
  font-size: 0.82rem;
}

.question-composer {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
  background: var(--surface);
}

.question-composer textarea {
  width: 100%;
  min-height: 98px;
  border: 1px solid #aebfba;
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
}

.question-composer textarea::placeholder {
  color: #6c7a76;
}

.question-composer textarea:disabled {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.character-count {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.composer-error {
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff0f0;
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.5;
}

.assistant-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 20px 15px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.access-state {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 680;
}

.access-state.warning {
  background: #fff5da;
  color: var(--warning);
}

.agent-summary,
.permission-block {
  border-top: 1px solid var(--line);
  padding: 17px 20px;
}

.agent-summary h3,
.permission-block h3 {
  margin: 0;
  font-size: 0.9rem;
}

.agent-summary > p,
.muted-copy {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.agent-facts {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
}

.agent-facts > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.8rem;
}

.agent-facts dt {
  color: var(--text-muted);
}

.agent-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.permission-list {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.permission-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.permission-indicator {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 740;
}

.boundary-note {
  margin: 0 14px 14px;
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--surface-muted);
}

.boundary-note strong {
  font-size: 0.82rem;
}

.boundary-note p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.run-list {
  max-height: 610px;
  overflow: auto;
  overscroll-behavior: contain;
}

.run-item {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}

.run-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.run-topline strong {
  font-size: 0.84rem;
}

.run-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  font-size: 0.7rem;
  font-weight: 680;
}

.run-status.success {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.run-status.pending {
  background: #fff5da;
  color: var(--warning);
}

.run-status.failed {
  background: #fff0ee;
  color: #9b2c23;
}

.run-item time {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.run-item p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.run-item p.run-error {
  color: var(--danger);
  overflow-wrap: anywhere;
}

button.run-open {
  min-height: 34px;
  margin-top: 10px;
  border-color: var(--line);
  padding: 0.36rem 0.68rem;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.76rem;
}

button.run-open:hover {
  border-color: rgb(8 127 115 / 0.5);
  background: var(--accent-soft);
}

.panel-loading,
.panel-state {
  padding: 22px 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.panel-loading::after {
  display: block;
  width: 68%;
  height: 10px;
  margin-top: 12px;
  border-radius: 5px;
  background:
    linear-gradient(
      90deg,
      var(--surface-muted) 25%,
      #f7faf9 50%,
      var(--surface-muted) 75%
    );
  background-size: 220% 100%;
  animation: assistant-skeleton 1.4s ease-in-out infinite;
  content: "";
}

.panel-state.compact {
  border-top: 1px solid var(--line);
  padding-block: 18px;
}

.panel-state strong {
  color: var(--text);
  font-size: 0.88rem;
}

.panel-state p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.panel-state.error strong,
.panel-state.error p {
  color: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.login-shell {
  display: grid;
  width: min(440px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  place-items: center;
  padding: 24px 0;
}

.login-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 18px 0 0;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.login-card p {
  margin: 10px 0 24px;
  color: var(--text-muted);
  line-height: 1.65;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b8c6c2;
  border-radius: var(--input-radius);
  padding: 0 13px;
  background: #fff;
  color: var(--text);
}

.field input::placeholder {
  color: #74817e;
}

.form-error {
  margin: 0 0 14px;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff0f0;
  color: var(--danger);
  line-height: 1.5;
}

.login-card button {
  width: 100%;
}

.loading-state,
.empty-state {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 28px;
  background: var(--surface);
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: var(--shadow);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 860px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

  .assistant-workspace {
    grid-template-columns: 1fr;
  }

  .assistant-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .run-list {
    max-height: 520px;
  }

  .side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    gap: 8px;
    min-height: 54px;
    margin-bottom: 18px;
  }

  .brand > span:last-child {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .top-actions .button,
  .top-actions button {
    padding-inline: 0.72rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .primary-nav {
    gap: 2px;
    padding: 2px;
  }

  .primary-nav a {
    min-height: 34px;
    padding-inline: 0.58rem;
    font-size: 0.8rem;
  }

  .detail-back {
    display: none;
  }

  .page-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .page-header h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .date-nav {
    justify-self: stretch;
    justify-content: space-between;
  }

  .report-grid,
  .main-column,
  .side-column {
    gap: 14px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .assistant-sidebar {
    grid-template-columns: 1fr;
  }

  .assistant-workspace {
    gap: 14px;
    margin-top: 18px;
  }

  .privacy-summary {
    width: 100%;
    min-width: 0;
  }

  .assistant-chat-head {
    display: grid;
    gap: 8px;
    padding-inline: 16px;
  }

  .agent-picker {
    min-width: 0;
  }

  .chat-scope {
    padding: 0;
    text-align: left;
  }

  .example-questions,
  .assistant-transcript,
  .question-composer {
    padding-inline: 16px;
  }

  .assistant-turn,
  .user-turn {
    width: 100%;
    padding-inline: 14px;
  }

  .user-turn p,
  .assistant-answer-text,
  .answer-meta,
  .answer-evidence,
  .evidence-warning,
  .follow-up-group,
  .answer-skeleton,
  .loading-leave-note {
    margin-left: 0;
  }

  .answer-evidence-list {
    max-height: none;
  }

  .run-list {
    max-height: none;
  }

  .report-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading,
  .finding {
    padding-inline: 16px;
  }

  .finding-topline {
    display: grid;
  }

  .severity {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .prompt-actions {
    display: grid;
  }

  button.prompt-button {
    width: 100%;
  }

  .composer-footer {
    align-items: flex-end;
  }

  .composer-footer button {
    padding-inline: 0.8rem;
  }
}

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