:root {
  --canvas: #e9eef2;
  --paper: #fbfcfd;
  --paper-strong: #ffffff;
  --ink: #142c3a;
  --muted: #60727d;
  --line: #cfdae1;
  --line-strong: #aebfc9;
  --teal: #0c7c86;
  --teal-dark: #07545e;
  --teal-soft: #e1f1f1;
  --amber: #e2a83b;
  --amber-soft: #fff4dc;
  --danger: #ae4651;
  --danger-soft: #fae9eb;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(20, 44, 58, 0.08);
  --font: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

button,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1600px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  border-inline: 1px solid var(--line);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper-strong);
  border-bottom: 4px solid var(--teal);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--ink);
  background: var(--amber);
  border: 2px solid var(--paper-strong);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.04em;
  transform: rotate(-3deg);
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

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

.brand-copy span {
  margin-top: 3px;
  color: #b7cbd4;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #d7e7ea;
  border: 1px solid #45616f;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #6ad1b5;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(106, 209, 181, 0.15);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  background: #0c202c;
  border: 1px solid #45616f;
  border-radius: 6px;
}

.language-button {
  min-width: 42px;
  padding: 5px 9px;
  color: #c8d8df;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--ink);
  background: var(--paper-strong);
}

.quiet-button,
.clear-inline {
  padding: 7px 10px;
  color: #d7e7ea;
  background: transparent;
  border: 1px solid #45616f;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.quiet-button:hover,
.language-button:hover {
  background: #1c3a49;
}

.workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 322px;
  align-items: stretch;
  height: calc(100vh - 119px);
  height: calc(100dvh - 119px);
  min-height: 0;
  overflow: hidden;
}

.index-rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 22px;
  background: #f1f5f7;
  border-right: 1px solid var(--line);
}

.rail-title,
.panel-heading,
.conversation-heading {
  min-width: 0;
}

.rail-kicker,
.section-kicker,
.panel-kicker {
  display: block;
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.rail-title h2,
.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.coverage-block {
  position: relative;
  display: grid;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.coverage-number {
  color: var(--teal-dark);
  font-size: 62px;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.coverage-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.coverage-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.coverage-rule {
  position: absolute;
  top: 18px;
  right: 0;
  width: 28px;
  height: 4px;
  background: var(--amber);
}

.category-nav {
  display: grid;
  gap: 3px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  color: #38515f;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  text-align: left;
  font-size: 12px;
}

.category-item:hover {
  background: #e4edf1;
  border-left-color: var(--teal);
}

.category-count {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rail-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.rail-note p {
  margin: 0;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 30px clamp(20px, 3vw, 42px) 22px;
  background: var(--paper);
}

.conversation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.conversation-heading h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.heading-description {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.handoff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 11px 14px;
  color: var(--paper-strong);
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.handoff-button:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.handoff-icon {
  font-size: 17px;
  line-height: 1;
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0 20px;
  border-block: 1px solid var(--line);
}

.mode-strip > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px 8px 0;
  margin-right: 14px;
  color: var(--muted);
  font-size: 11px;
}

.mode-strip b {
  color: var(--ink);
  font-size: 11px;
}

.chat-log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  min-height: 180px;
  padding: 4px 6px 18px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.guide-message,
.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-strong);
  background: var(--teal-dark);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.guide-message > div:last-child,
.message-body {
  min-width: 0;
  padding: 16px 18px;
  background: #f0f5f6;
  border: 1px solid #d7e3e7;
  border-radius: 0 8px 8px 8px;
  overflow-wrap: anywhere;
}

.message-author {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
}

.guide-message h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.guide-message p,
.message-body p {
  margin: 0;
}

.guide-warning {
  margin-top: 12px !important;
  padding-top: 10px;
  color: var(--danger);
  border-top: 1px solid #e3c8cc;
  font-size: 12px;
  font-weight: 650;
}

.message {
  animation: message-in 160ms ease-out;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user-message {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.user-message .message-body {
  width: fit-content;
  max-width: min(86%, 640px);
  justify-self: end;
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 8px 0 8px 8px;
}

.user-message .message-author {
  color: #a9c7d2;
}

.assistant-message .message-body {
  background: var(--paper-strong);
  border-color: var(--line);
  box-shadow: 0 5px 18px rgba(20, 44, 58, 0.04);
}

.refusal-message .message-body {
  background: var(--amber-soft);
  border-color: #e9cf99;
  border-left: 4px solid var(--amber);
}

.handoff-message .message-body {
  background: var(--teal-soft);
  border-color: #b6d9da;
}

.message-text {
  white-space: pre-line;
}

.citation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.citation-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #b6d9da;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.citation-button:hover,
.text-button:hover {
  text-decoration: underline;
}

.citation-context {
  color: var(--muted);
  font-size: 11px;
}

.message-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 11px;
}

.inline-handoff {
  margin-top: 12px;
  padding: 8px 11px;
  color: var(--teal-dark);
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.composer-wrap {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.suggestion-chip {
  padding: 5px 9px;
  color: #38515f;
  background: #f1f5f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}

.suggestion-chip:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: #a9ced0;
}

.input-shell {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--paper-strong);
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  transition: border-color 120ms ease;
}

.input-shell:focus-within {
  border-color: var(--teal);
}

.input-shell textarea {
  width: 100%;
  min-width: 0;
  max-height: 130px;
  padding: 9px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  line-height: 1.5;
}

.input-shell textarea::placeholder {
  color: #85959e;
}

.send-button {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: var(--paper-strong);
  background: var(--teal-dark);
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.send-button:hover {
  background: var(--teal);
}

.composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

#piiNotice.has-pii {
  color: var(--danger);
  font-weight: 750;
}

.evidence-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f1f5f7;
  border-left: 1px solid var(--line);
}

.receipt-panel,
.log-panel {
  min-width: 0;
  padding: 26px 22px;
}

.receipt-panel {
  position: relative;
  flex: 1 1 auto;
  background: var(--paper-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.receipt-panel::before,
.receipt-panel::after {
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 12px;
  content: "";
  background: #f1f5f7;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.receipt-panel::before {
  left: -7px;
}

.receipt-panel::after {
  right: -7px;
}

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

.trace-state,
.log-count {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--muted);
  background: #eef3f5;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.trace-state.is-answered {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: #b6d9da;
}

.trace-state.is-refused {
  color: #7e5715;
  background: var(--amber-soft);
  border-color: #e9cf99;
}

.trace-empty {
  margin-top: 26px;
  padding: 28px 14px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
}

.trace-empty p {
  margin: 10px 0 0;
}

.trace-glyph {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.trace-content {
  margin-top: 22px;
}

.trace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.trace-metrics div {
  min-width: 0;
  padding: 9px 8px;
  background: #f1f5f7;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.trace-metrics dt {
  color: var(--muted);
  font-size: 9px;
}

.trace-metrics dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.confidence-track {
  height: 5px;
  margin: 10px 0 18px;
  overflow: hidden;
  background: #dfe8ec;
  border-radius: 999px;
}

.confidence-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.confidence-track.is-low span {
  background: var(--amber);
}

.query-terms > span,
.source-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.query-terms p {
  margin: 5px 0 16px;
  color: #38515f;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.candidate-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.candidate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.candidate-item.is-top {
  background: var(--teal-soft);
  border-color: #b6d9da;
}

.candidate-id {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.candidate-score {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.candidate-question {
  grid-column: 1 / -1;
  color: #38515f;
  font-size: 11px;
  line-height: 1.45;
}

.source-card {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 13px 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 5px 5px 0;
}

.source-card strong {
  font-size: 13px;
}

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

.text-button {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.log-panel {
  flex: 0 0 auto;
  background: #f1f5f7;
}

.log-heading {
  align-items: center;
}

.log-count {
  color: var(--ink);
  background: var(--paper-strong);
  font-weight: 800;
}

.log-description {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.log-list {
  display: grid;
  gap: 7px;
  max-height: 180px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.log-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
}

.log-time {
  grid-row: 1 / 3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log-entry strong {
  color: var(--ink);
  font-size: 10px;
}

.log-entry span:last-child {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.log-empty {
  padding: 12px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
}

.clear-inline {
  width: 100%;
  margin-top: 12px;
  color: var(--teal-dark);
  border-color: var(--line-strong);
}

.clear-inline:hover {
  background: var(--paper-strong);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 24px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

dialog::backdrop {
  background: rgba(20, 44, 58, 0.62);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.dialog-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--muted);
  background: #f1f5f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-answer {
  margin: 22px 0;
  padding: 18px;
  background: #f1f5f7;
  border-left: 4px solid var(--teal);
  white-space: pre-line;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid #45616f;
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 204px minmax(0, 1fr) 286px;
  }

  .index-rail {
    padding-inline: 17px;
  }

  .receipt-panel,
  .log-panel {
    padding-inline: 17px;
  }

  .conversation {
    padding-inline: 24px;
  }

  .offline-pill {
    display: none;
  }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 286px;
  }

  .index-rail {
    display: none;
  }

  .conversation-heading {
    flex-direction: column;
    gap: 16px;
  }

  .handoff-button {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .app-shell {
    border-inline: 0;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .workspace {
    display: block;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .conversation {
    padding: 24px 16px 20px;
  }

  .conversation-heading h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .mode-strip {
    margin-block: 20px 16px;
  }

  .mode-strip > span {
    flex: 1 1 45%;
    margin-right: 0;
    padding-right: 6px;
  }

  .chat-log {
    min-height: 280px;
    max-height: 54vh;
    padding-right: 0;
  }

  .guide-message,
  .message {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .guide-message > div:last-child,
  .message-body {
    padding: 14px;
  }

  .user-message .message-body {
    max-width: 94%;
  }

  .composer-meta {
    flex-direction: column;
    gap: 3px;
  }

  .evidence-panel {
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .receipt-panel,
  .log-panel {
    padding: 24px 16px;
  }

  .receipt-panel::before,
  .receipt-panel::after {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
    padding-inline: 16px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

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

  .quiet-button {
    padding-inline: 8px;
  }

  .suggestion-row {
    align-items: flex-start;
  }

  .input-shell {
    padding-left: 10px;
  }

  .send-button {
    padding-inline: 13px;
  }

  .trace-metrics {
    gap: 5px;
  }

  .trace-metrics div {
    padding-inline: 6px;
  }
}

@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;
  }
}
