:root {
  --bg: #e4efe5;
  --panel: #f7fbf6;
  --panel-strong: #edf5ee;
  --reply-panel: #e3efe5;
  --text: #121826;
  --muted: #5f6b7a;
  --line: #d4e3d4;
  --accent: #2f6f52;
  --accent-soft: #e3f1e6;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    repeating-linear-gradient(135deg, rgba(47, 111, 82, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 28px),
    radial-gradient(circle at top, #f6fbf6 0, #f6fbf6 18%, transparent 52%),
    linear-gradient(180deg, #d7e6d8 0%, var(--bg) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.entry-page,
.shell-page,
.auth-page {
  min-height: 100vh;
}

.entry-layout,
.shell-layout,
.auth-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.entry-layout {
  padding-top: 88px;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 560px;
}

.entry-copy,
.shell-copy,
.frame-intro {
  max-width: 720px;
}

.entry-eyebrow,
.shell-kicker,
.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 10px 14px;
}

.entry-copy h1,
.shell-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

.entry-subtitle,
.shell-copy p,
.notice-card p,
.frame-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.entry-card {
  display: block;
  min-height: 240px;
  padding: 28px;
  text-decoration: none;
  background: rgba(249, 252, 248, 0.88);
  border: 1px solid rgba(212, 227, 212, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 82, 0.34);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
  outline: none;
}

.entry-card h2,
.notice-card h2,
.frame-intro h2 {
  margin: 20px 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.entry-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.shell-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.shell-header-topbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.shell-header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(249, 252, 248, 0.82);
  border: 1px solid var(--line);
  color: var(--muted);
}

.shell-main {
  display: grid;
  gap: 20px;
}

.notice-card,
.frame-panel {
  background: rgba(249, 252, 248, 0.9);
  border: 1px solid rgba(212, 227, 212, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}

.frame-panel {
  min-height: 520px;
}

.auth-card {
  background: rgba(249, 252, 248, 0.94);
  border: 1px solid rgba(212, 227, 212, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.auth-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 14px;
  color: var(--muted);
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.text-area {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.text-area-compact {
  min-height: 88px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-status[data-state="error"] {
  color: #b42318;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

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

.faq-scope-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.faq-scope-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(47, 111, 82, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-scope-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 111, 82, 0.16);
}

.faq-scope-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 700;
}

.faq-admin-span-two {
  grid-column: 1 / -1;
}

.faq-unresolved-header {
  margin-bottom: 18px;
}

.faq-unresolved-filter-field {
  min-width: 220px;
}

.faq-unresolved-filter-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 16px;
  margin-bottom: 18px;
}

.admin-filter-bar-groups {
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.45fr) minmax(180px, 0.45fr);
}

.admin-filter-field {
  display: grid;
  gap: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-table-panel {
  min-height: 620px;
  max-height: 620px;
  display: flex;
  flex-direction: column;
}

.admin-table-panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(212, 227, 212, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.multi-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.tag-chip span {
  color: var(--muted);
  font-size: 13px;
}

.field-help {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.field-help-inline {
  flex: 1;
  min-width: min(100%, 320px);
}

.model-platform-display {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 111, 82, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(227, 241, 230, 0.78), rgba(242, 248, 241, 0.95));
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.model-admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.model-admin-panel-header h2 {
  margin: 0;
}

.model-admin-api-key-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 8px;
}

.model-admin-api-key-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.model-admin-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

.faq-table-wrap {
  overflow-x: auto;
}

.faq-table {
  min-width: 1120px;
  table-layout: fixed;
}

.faq-entry-table th:nth-child(1),
.faq-entry-table td:nth-child(1) {
  width: 52px;
}

.faq-entry-table th:nth-child(2),
.faq-entry-table td:nth-child(2) {
  width: 22%;
}

.faq-entry-table th:nth-child(3),
.faq-entry-table td:nth-child(3) {
  width: 26%;
}

.faq-entry-table th:nth-child(4),
.faq-entry-table td:nth-child(4) {
  width: 28%;
}

.faq-entry-table th:nth-child(5),
.faq-entry-table td:nth-child(5) {
  width: 10%;
}

.faq-entry-table th:nth-child(6),
.faq-entry-table td:nth-child(6) {
  width: 14%;
}

.faq-cell-clamp {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.faq-entry-table td:nth-child(5),
.faq-entry-table td:nth-child(6),
.faq-unresolved-table td:nth-child(5),
.faq-unresolved-table td:nth-child(6),
.faq-entry-table .shell-header-actions {
  white-space: nowrap;
}

.faq-unresolved-table th:nth-child(1),
.faq-unresolved-table td:nth-child(1) {
  width: 52px;
}

.faq-unresolved-table th:nth-child(2),
.faq-unresolved-table td:nth-child(2) {
  width: 42%;
}

.faq-unresolved-table th:nth-child(3),
.faq-unresolved-table td:nth-child(3) {
  width: 10%;
}

.faq-unresolved-table th:nth-child(4),
.faq-unresolved-table td:nth-child(4) {
  width: 20%;
}

.faq-unresolved-table th:nth-child(5),
.faq-unresolved-table td:nth-child(5) {
  width: 10%;
}

.faq-unresolved-table th:nth-child(6),
.faq-unresolved-table td:nth-child(6) {
  width: 18%;
}

.faq-unresolved-table td {
  vertical-align: middle;
}

.faq-unresolved-question-cell {
  max-width: 0;
}

.faq-unresolved-question-text {
  display: block;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.batch-toolbar-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.user-table th,
.user-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.table-empty {
  color: var(--muted);
}

.table-select-cell {
  width: 52px;
  text-align: center !important;
  vertical-align: middle !important;
}

.table-muted {
  color: var(--muted);
  font-size: 14px;
}

.table-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.table-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-table th {
  font-size: 14px;
  color: var(--muted);
  background: #edf4ed;
}

.user-table tbody tr:hover {
  background: #f5faf5;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 227, 212, 0.84);
}

.table-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.user-table-compact {
  min-width: 1120px;
  table-layout: fixed;
}

.user-table-compact th,
.user-table-compact td {
  padding: 10px 12px;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
}

.user-table-compact th:nth-child(1),
.user-table-compact td:nth-child(1) {
  width: 6%;
}

.user-table-compact th:nth-child(2),
.user-table-compact td:nth-child(2) {
  width: 20%;
}

.user-table-compact th:nth-child(3),
.user-table-compact td:nth-child(3) {
  width: 10%;
}

.user-table-compact th:nth-child(4),
.user-table-compact td:nth-child(4) {
  width: 8%;
}

.user-table-compact th:nth-child(5),
.user-table-compact td:nth-child(5) {
  width: 18%;
}

.user-table-compact th:nth-child(6),
.user-table-compact td:nth-child(6) {
  width: 38%;
}

.user-table-compact .user-table-cell-username {
  overflow: visible;
  text-overflow: clip;
}

.user-table-compact .user-table-cell-permission {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-table-compact .user-table-cell-actions {
  overflow: visible;
}

.user-table-compact .table-muted {
  white-space: nowrap;
}

.modal-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-card {
  padding: 24px;
  background: var(--panel);
}

.modal-header,
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-header h2 {
  margin: 0;
}

.frame-panel-ready {
  display: grid;
  gap: 20px;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font: inherit;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.button-danger {
  color: #b42318;
  background: #fff5f4;
  border: 1px solid rgba(180, 35, 24, 0.18);
}

.button-inline {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.chat-frame {
  width: 100%;
  min-height: 420px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f7fbf6 0%, #edf4ed 100%);
}

#customer-frame-panel .chat-frame {
  display: block;
}

.chat-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.chat-messages {
  display: grid;
  gap: 14px;
  min-height: 320px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.chat-status {
  min-height: 24px;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.chat-message {
  display: grid;
  gap: 8px;
}

.chat-message-user {
  justify-items: end;
}

.chat-bubble {
  max-width: min(720px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
  background: rgba(247, 251, 246, 0.96);
  border: 1px solid var(--line);
  align-self: start;
}

.chat-message-user .chat-bubble {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
  justify-self: end;
}

.chat-sources {
  font-size: 13px;
  color: var(--muted);
}

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

.chat-input {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--reply-panel) 0%, var(--panel-strong) 100%);
  resize: vertical;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-message-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.answer-graph-canvas {
  min-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98) 0 14%, rgba(239, 247, 240, 0.74) 48%, rgba(225, 239, 228, 0.92) 100%),
    linear-gradient(180deg, rgba(247, 251, 246, 0.98), rgba(237, 244, 237, 0.92));
  box-shadow: inset 0 0 48px rgba(47, 111, 82, 0.06);
}

.answer-graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.answer-graph-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.answer-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.answer-graph-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(47, 111, 82, 0.08);
}

.answer-graph-legend-dot.answer { background: #1769d2; }
.answer-graph-legend-dot.document { background: #2b9c6d; }
.answer-graph-legend-dot.chunk { background: #e37418; }

.answer-graph-details {
  position: sticky;
  top: 18px;
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(24, 63, 45, 0.09);
}

.answer-graph-details-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.answer-graph-details h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.answer-graph-detail-type,
.answer-graph-detail-document {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.answer-graph-detail-excerpt {
  max-height: 390px;
  margin: 16px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #f5f9f5;
  color: var(--text);
  font: inherit;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.answer-graph-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  min-height: 620px;
}

.answer-graph-edge {
  stroke: rgba(47, 111, 82, 0.48);
  stroke-width: 2;
  stroke-dasharray: 7px 6px;
}

.answer-graph-arrow {
  fill: rgba(47, 111, 82, 0.66);
}

.answer-graph-relation {
  fill: #385166;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.answer-graph-relation-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(94, 126, 145, 0.22);
  stroke-width: 1;
  rx: 7px;
  filter: drop-shadow(0 3px 6px rgba(28, 57, 72, 0.1));
}

.answer-graph-node {
  cursor: pointer;
  outline: none;
}

.answer-graph-bubble {
  transform-box: fill-box;
  transform-origin: center;
  animation: answer-graph-float 5.5s ease-in-out infinite;
  transition: transform 160ms ease, filter 160ms ease;
}

.answer-graph-node circle {
  stroke: none;
  filter: drop-shadow(0 6px 10px rgba(26, 67, 72, 0.2));
  transition: filter 160ms ease;
}

.answer-graph-highlight {
  fill: rgba(255, 255, 255, 0.34);
  pointer-events: none;
  filter: blur(0.6px);
}

@keyframes answer-graph-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.answer-graph-node:hover .answer-graph-bubble,
.answer-graph-node:focus .answer-graph-bubble,
.answer-graph-node.is-selected .answer-graph-bubble {
  animation-name: answer-graph-float-selected;
}

@keyframes answer-graph-float-selected {
  0%, 100% { transform: translateY(0) scale(1.04); }
  50% { transform: translateY(-2px) scale(1.04); }
}

.answer-graph-node:hover circle,
.answer-graph-node:focus circle,
.answer-graph-node.is-selected circle {
  stroke: none;
  filter: drop-shadow(0 10px 14px rgba(26, 67, 48, 0.28));
}

.answer-graph-node text {
  fill: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.answer-graph-node-answer circle { fill: url(#answer-graph-gradient-answer); }
.answer-graph-node-document circle { fill: url(#answer-graph-gradient-document); }
.answer-graph-node-chunk circle { fill: url(#answer-graph-gradient-chunk); }
.answer-graph-node-entity circle { fill: url(#answer-graph-gradient-entity); }

.answer-graph-node:nth-of-type(3n) .answer-graph-bubble { animation-delay: -1.8s; }
.answer-graph-node:nth-of-type(3n + 1) .answer-graph-bubble { animation-delay: -3.6s; }

.answer-graph-node-answer text,
.answer-graph-node-entity text {
  fill: #ffffff;
  pointer-events: none;
}

.answer-graph-node-document text {
  fill: #082b1b;
  pointer-events: none;
}

.answer-graph-node-chunk text {
  fill: #321a05;
  pointer-events: none;
}

@media (max-width: 768px) {
  .answer-graph-layout {
    grid-template-columns: 1fr;
  }

  .answer-graph-details {
    position: static;
  }

  .entry-layout,
  .shell-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .entry-layout {
    padding-top: 56px;
  }

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

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

  .faq-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .multi-select-row {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: auto;
  }

  .shell-header-main {
    flex-direction: column;
    align-items: stretch;
  }

  .notice-card,
  .frame-panel {
    padding: 22px;
  }

  .model-admin-api-key-panel {
    width: 100%;
  }

  .model-admin-api-key-actions {
    grid-template-columns: 1fr;
  }

  .model-admin-inline-actions {
    grid-template-columns: 1fr;
  }

  .chat-frame {
    min-height: 360px;
  }

  .chat-card {
    padding: 18px;
  }

  .chat-messages {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-graph-bubble {
    animation: none;
    transition: none;
  }
}
