:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #f9fbfc;
  --text: #17202a;
  --muted: #64717f;
  --line: #dfe7ef;
  --blue: #2563eb;
  --teal: #0f9f9a;
  --amber: #b7791f;
  --red: #c2410c;
  --shadow: 0 16px 40px rgba(27, 42, 68, 0.08);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

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

.topbar,
.panel,
.module-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0d9488;
  color: white;
  font-weight: 800;
}

.brand strong,
.brand span:last-child {
  display: block;
}

.brand span:last-child {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.top-login {
  display: grid;
  grid-template-columns: 128px 128px auto;
  gap: 6px;
  align-items: center;
}

.top-login input {
  min-height: 38px;
  font-size: 13px;
}

.session-strip {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.local-ai-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #eefaf7;
  border: 1px solid #b8e4dc;
  border-radius: 8px;
}

.local-ai-connect strong {
  display: block;
  font-size: 14px;
}

.local-ai-connect p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.local-ai-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.local-ai-actions input[type="file"] {
  display: none;
}

.local-ai-connect.ready {
  background: #ecfdf5;
  border-color: #86efac;
}

.local-ai-connect.warning {
  background: #fffbeb;
  border-color: #f5d48a;
}

.local-ai-connect.error {
  background: #fff7ed;
  border-color: #fdba74;
}

.local-ai-guide {
  margin: -4px 0 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.local-ai-guide summary {
  display: block;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.local-ai-guide ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.local-ai-guide p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions .admin-entry {
  display: none !important;
}

.top-actions .admin-entry.visible {
  display: inline-flex !important;
}

.hidden-panel {
  display: none;
}

.admin-backend,
.database-panel {
  display: none;
}

.admin-mode .admin-backend,
.admin-mode .database-panel {
  display: block;
}

.legacy-admin-panel {
  display: none !important;
}

.legacy-quick-panel {
  display: none;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

.admin-dashboard.locked {
  display: none;
}

.admin-page .database-panel-admin {
  grid-column: span 2;
}

.primary-button,
.ghost-button,
.icon-button,
.analyze-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.primary-button,
.analyze-button {
  color: white;
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
  grid-template-areas:
    "intake intake"
    "result ai"
    "graph graph";
}

.intake-panel {
  grid-area: intake;
}

.result-panel {
  grid-area: result;
}

.ai-output-panel {
  grid-area: ai;
  display: grid;
  gap: 14px;
}

.graph-panel {
  grid-area: graph;
}

.panel {
  padding: 16px;
}

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

.panel-heading h1,
.panel-heading h2,
.module-panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.panel-heading h1 {
  font-size: 28px;
  line-height: 1.15;
}

.panel-heading h2,
.module-panel h3 {
  font-size: 18px;
  line-height: 1.2;
}

.panel-heading p,
.module-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-dot,
.confidence {
  white-space: nowrap;
  border: 1px solid #bfe4df;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #eef3f8;
  border-radius: 8px;
  margin-bottom: 14px;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  min-height: 34px;
  cursor: pointer;
  color: var(--muted);
}

.segmented button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(40, 54, 80, 0.08);
}

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

.field-label,
.select-field span,
.text-field span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.symptom-group {
  display: grid;
  gap: 8px;
}

.symptom-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.symptom-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  padding: 4px 8px;
}

.chip.active {
  border-color: #0d9488;
  background: #ecfdf5;
  color: #0f766e;
}

.knowledge-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border: 1px solid #b8e4dc;
  border-radius: 999px;
  background: #eefaf7;
  color: #0f766e;
  cursor: pointer;
  font-size: 12px;
}

.knowledge-link:hover {
  border-color: #0d9488;
  background: #ecfdf5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
}

select,
input {
  min-height: 40px;
  padding: 0 10px;
}

textarea {
  resize: vertical;
  padding: 10px;
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 118px;
  border: 1px dashed #9ab7c7;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  padding: 14px;
}

.upload-zone input {
  display: none;
}

.upload-zone strong {
  color: var(--text);
}

.upload-zone small {
  max-width: 300px;
  line-height: 1.45;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--blue);
  font-size: 24px;
}

.analyze-button {
  width: 100%;
  min-height: 44px;
  font-weight: 700;
}

.result-panel {
  display: grid;
  gap: 14px;
}

.compact {
  margin-bottom: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-card,
.formula-box,
.evidence-table,
.graph-canvas,
.metrics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.result-card,
.formula-box {
  padding: 14px;
}

.result-card span,
.formula-box span,
.evidence-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.result-card strong,
.formula-box strong {
  display: block;
  line-height: 1.35;
}

#formulaName {
  cursor: pointer;
  color: #0f766e;
}

.result-card p,
.formula-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.formula-box {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--teal);
}

.evidence-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.evidence-table div {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.evidence-table div:last-child {
  border-right: 0;
}

.ai-model-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.ai-model-output span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.ai-model-output div {
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.graph-panel {
  display: grid;
  gap: 14px;
}

.graph-canvas {
  position: relative;
  min-height: 255px;
  overflow: hidden;
}

.node {
  position: absolute;
  min-width: 84px;
  padding: 9px 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid #b7d7eb;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.08);
  font-size: 12px;
  text-align: center;
}

.node.primary {
  border-color: #0d9488;
  background: #ecfdf5;
  color: #0f766e;
}

.edge {
  position: absolute;
  height: 2px;
  background: #95b8c9;
  transform-origin: left center;
}

.metrics {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

meter {
  width: 100%;
  height: 10px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.module-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.clinic-suite {
  margin-top: 14px;
}

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

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.ops-panel {
  min-height: 270px;
}

.admin-full {
  grid-column: 1 / -1;
  min-height: 620px;
}

.admin-db-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-db-tabs button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
}

.admin-db-tabs button.active {
  background: white;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(40, 54, 80, 0.08);
}

.admin-db-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.admin-db-toolbar span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-db-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 12px;
  min-height: 480px;
}

.admin-db-list,
.admin-db-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.admin-db-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 560px;
  overflow: auto;
  padding: 8px;
}

.admin-db-row {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px;
  cursor: pointer;
}

.admin-db-row.active {
  border-color: #0d9488;
  background: #ecfdf5;
}

.admin-db-row strong {
  font-size: 14px;
  color: var(--text);
}

.admin-db-row span,
.admin-db-row em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.admin-db-row em {
  color: var(--red);
}

.admin-db-empty,
.empty-editor {
  color: var(--muted);
  padding: 18px;
  line-height: 1.6;
}

.admin-db-editor {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 12px;
}

.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.learning-admin-panel {
  min-height: 660px;
}

.learning-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
  gap: 12px;
}

.learning-admin-sidebar,
.learning-admin-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.learning-admin-sidebar {
  padding: 10px;
}

.learning-admin-toolbar {
  grid-template-columns: minmax(160px, 1fr) auto;
  margin: 0 0 10px;
}

.learning-admin-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.learning-book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.learning-book-row > button:first-child {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px;
  cursor: pointer;
}

.learning-book-row.active > button:first-child {
  border-color: #0d9488;
  background: #ecfdf5;
}

.learning-book-row strong {
  font-size: 14px;
  color: var(--text);
}

.learning-book-row span {
  color: var(--muted);
  font-size: 12px;
}

.mini-edit-button {
  min-height: auto;
  padding: 0 10px;
}

.learning-admin-editor {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding: 12px;
}

.learning-content-field textarea {
  min-height: 320px;
  line-height: 1.65;
}

.learning-import-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
}

.learning-import-tools input {
  min-height: 38px;
  padding: 7px;
  background: var(--panel-soft);
}

.learning-import-tools small,
.encoding-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}

.editor-heading span {
  color: var(--muted);
  font-size: 12px;
}

.admin-edit-field {
  display: grid;
  gap: 5px;
}

.admin-edit-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-edit-field textarea {
  min-height: 92px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  bottom: -12px;
  background: var(--panel-soft);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.database-panel {
  grid-column: span 2;
}

.record-actions,
.role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  background: #eef3f8;
  border-radius: 8px;
}

.role-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  min-height: 34px;
  cursor: pointer;
  color: var(--muted);
}

.role-switch button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(40, 54, 80, 0.08);
}

.account-card,
.data-item,
.audit-log,
.admin-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.account-card {
  padding: 14px;
}

.account-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.account-card small {
  display: block;
  margin-top: 10px;
  color: #0f766e;
  font-size: 12px;
}

.auth-form {
  margin-bottom: 12px;
}

.auth-form .record-actions {
  margin-bottom: 0;
}

.data-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.data-item {
  padding: 10px;
  display: grid;
  gap: 5px;
}

.data-item strong {
  font-size: 14px;
}

.data-item span,
.data-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.queue-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  min-height: 28px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 12px;
}

.queue-actions button:hover:not(:disabled) {
  border-color: var(--teal);
  color: #0f766e;
}

.queue-actions .danger-action {
  color: var(--red);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.admin-stats div {
  padding: 12px;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.admin-stats strong {
  font-size: 24px;
}

.audit-log {
  min-height: 96px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.invite-admin {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.invite-admin h3 {
  margin: 0;
  font-size: 15px;
}

.delete-password {
  margin-bottom: 12px;
}

#databasePreview {
  min-height: 230px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: #0f172a;
  color: #dbeafe;
  border-color: #1e293b;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
}

.learning-list {
  display: grid;
  gap: 8px;
}

.resource-row {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  cursor: pointer;
}

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

.resource-viewer {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  line-height: 1.7;
  overflow: auto;
}

.resource-viewer h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.resource-description {
  color: var(--muted);
  margin: 0 0 12px;
}

.resource-content {
  white-space: pre-wrap;
  color: var(--text);
}

.resource-media,
.resource-frame {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.resource-media {
  max-height: 620px;
  object-fit: contain;
}

.resource-frame {
  min-height: 620px;
}

.resource-open-link {
  margin-top: 12px;
}

.knowledge-popover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.36);
  padding: 18px;
}

.knowledge-popover[hidden] {
  display: none;
}

.knowledge-card {
  width: min(620px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  padding: 18px;
}

.knowledge-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.knowledge-actions .ghost-button:only-child {
  margin-left: auto;
}

.knowledge-card h3 {
  margin: 0 0 12px;
}

.knowledge-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.knowledge-card dt {
  font-weight: 800;
}

.knowledge-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.danger {
  color: var(--red);
}

@media (max-width: 1120px) {
  .workspace,
  .lower-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .admin-db-layout,
  .learning-admin-layout {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-areas:
      "intake"
      "result"
      "ai"
      "graph";
  }

  .database-panel {
    grid-column: span 1;
  }

  .result-grid,
  .evidence-table {
    grid-template-columns: 1fr;
  }

  .evidence-table div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evidence-table div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1440px);
  }

  .topbar,
  .section-title,
  .module-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .top-login,
  .two-col,
  .diagnosis-select-grid,
  .chip-grid,
  .learning-layout,
  .admin-dashboard {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-page .database-panel-admin {
    grid-column: span 1;
  }

  .panel-heading {
    flex-direction: column;
  }

  .panel-heading h1 {
    font-size: 24px;
  }

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