/* v1.4.71 medical college visual theme.
   This file is intentionally visual-only: no data, AI, TTS, question bank,
   case, or workflow behavior is changed here. */

:root {
  --bg: #f3f6f6;
  --card: #fffefa;
  --line: #d7e0e6;
  --text: #102f4a;
  --muted: #63788b;
  --primary: #0f766e;
  --primary-soft: #e8f5f2;
  --accent: #17496c;
  --academy-gold: #b58a3c;
  --academy-cream: #fffaf0;
  --academy-ice: #eef6f7;
  --success: #137a4a;
  --warning: #a86f1d;
  --danger: #b83a3a;
  --purple: #5f5aa2;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(16, 47, 74, 0.075);
  --shadow-soft: 0 6px 16px rgba(16, 47, 74, 0.055);
}

html {
  background: #f3f6f6;
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafb 0%, #eef5f5 54%, #f8f6ef 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

.topbar {
  border: 1px solid rgba(183, 200, 214, 0.72);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.07), transparent 36%),
    rgba(255, 254, 250, 0.97);
  box-shadow: 0 6px 22px rgba(16, 47, 74, 0.06);
}

.topbar h1,
.launch-workbench-title,
.workspace-panel-host h2,
.student-top h2,
.sidebar h2,
.sidebar h3,
.panel-header h3 {
  color: #0b2a42;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar .subtitle,
.launch-workbench-subtitle,
.role-note,
.sidebar-title span {
  color: var(--muted);
}

.brand-logo-wrap,
.launch-logo,
.login-brand img {
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #ffffff, #f4faf8);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
}

.card,
.workspace-panel-host,
.student-top,
.agent-banner,
.patient-panel,
.chat-panel,
.test-panel,
.final-panel,
.report-panel {
  border: 1px solid rgba(183, 200, 214, 0.78);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}

.sidebar {
  border-color: rgba(183, 200, 214, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(248, 252, 251, 0.96));
}

.sidebar-title strong {
  color: #0b2a42;
  font-weight: 800;
}

.tabs {
  gap: 9px;
}

.tab {
  position: relative;
  min-height: 46px;
  justify-content: flex-start;
  border: 1px solid rgba(215, 224, 230, 0.86);
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: #f7faf9;
  color: #244760;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tab::before {
  content: "";
  width: 7px;
  height: 18px;
  margin-right: 9px;
  border-radius: 999px;
  background: rgba(181, 138, 60, 0.34);
  flex: 0 0 auto;
}

.tab:hover {
  border-color: rgba(15, 118, 110, 0.32);
  background: #fff;
  color: #0f4f61;
  transform: translateY(-1px);
}

.tab.active {
  border-color: rgba(15, 118, 110, 0.42);
  border-left-color: var(--academy-gold);
  background: linear-gradient(135deg, #0f766e, #17496c);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.tab.active::before {
  background: rgba(255, 241, 204, 0.95);
}

input,
select,
textarea {
  border-color: rgba(183, 200, 214, 0.86);
  background: #fffefa;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.test-pill {
  min-height: 40px;
  border-radius: 12px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, #0f766e 0%, #145d69 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
}

.primary-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.secondary-btn {
  border: 1px solid rgba(181, 138, 60, 0.3);
  background: #fbf3df;
  color: #7a5519;
}

.ghost-btn {
  border-color: rgba(183, 200, 214, 0.88);
  background: #f8fbfa;
  color: #163b56;
}

.ghost-btn:hover,
.secondary-btn:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: #fffefa;
  transform: translateY(-1px);
}

.launch-workbench-cover {
  padding: 18px;
  border-top: 4px solid rgba(181, 138, 60, 0.72);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06), transparent 42%),
    linear-gradient(180deg, #fffefa 0%, #f8fbfb 100%);
}

.launch-workbench-cover::after {
  opacity: 0.035;
}

.launch-workbench-cover .launch-kicker {
  color: #7a6848;
  font-size: 12px;
  letter-spacing: 0;
}

.launch-workbench-cover .launch-brand-wrap {
  border-bottom: 1px solid rgba(183, 200, 214, 0.58);
  padding-bottom: 10px;
}

.launch-workbench-actions {
  gap: 12px;
}

.concept-quick-card {
  border-color: rgba(183, 200, 214, 0.84);
  border-radius: 13px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfa 100%);
  box-shadow: var(--shadow-soft);
}

.concept-quick-card::before {
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(135deg, #0f766e, #17496c);
}

.concept-quick-card:nth-child(2)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(135deg, #17496c, #31698b);
}

.concept-quick-card:nth-child(3)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(135deg, #8a5e18, #c09a4b);
}

.concept-quick-card:nth-child(4)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(135deg, #5f5aa2, #317b8f);
}

.concept-quick-card strong {
  color: #0b2a42;
}

.concept-quick-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.launch-workbench-card,
.sub-card,
.task-card,
.evaluation-card,
.student-profile-card,
.user-card,
.unit-card,
.learner-card,
.question-card,
.case-preview,
.library-item,
.report-item,
.test-result-card,
.knowledge-box,
.report-block,
.patient-card,
.metric-card {
  border-color: rgba(183, 200, 214, 0.78);
  border-radius: 13px;
  background: #fffefa;
}

.launch-workbench-card {
  border-top: 3px solid rgba(15, 118, 110, 0.24);
}

.launch-card-head h3,
.sub-card-header h3,
.question-card h4,
.learner-card h4,
.task-card h4,
.student-profile-card h4,
.user-card h4,
.unit-card h4 {
  color: #0b2a42;
  letter-spacing: 0;
}

.launch-card-head h3::before,
.sub-card-header h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--academy-gold);
  vertical-align: -2px;
}

.launch-filter-grid span,
.mini-chip,
.test-pill,
.evidence-chip,
.question-type-badge,
.knowledge-tag,
.difficulty-tag {
  border-color: rgba(15, 118, 110, 0.14);
  background: #eef8f4;
  color: #0f5f58;
}

.launch-mini-table {
  border-color: rgba(183, 200, 214, 0.82);
  background: #f8fbfa;
}

.launch-mini-table div {
  border-left: 3px solid transparent;
  background: #fffefa;
}

.launch-mini-table div:hover {
  border-left-color: var(--academy-gold);
}

.launch-mini-table em {
  color: #0f766e;
}

.launch-paper-preview {
  border-color: rgba(183, 200, 214, 0.86);
  background:
    linear-gradient(180deg, #fffefa, #f7fbfb);
}

.paper-library-card:hover,
.paper-library-card.active,
.question-card:hover,
.learner-card:hover,
.unit-card:hover,
.user-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.patient-card {
  border-top: 3px solid rgba(181, 138, 60, 0.42);
  background:
    linear-gradient(180deg, #fffefa 0%, #f6fbfa 100%);
}

.metric-card strong,
.question-analysis-card strong {
  color: #0f766e;
}

.chat-panel {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(247, 251, 250, 0.98));
}

.chat-window,
.question-practice-shell,
.question-analysis-card {
  background: #f7fbfa;
}

.message.patient .avatar {
  background: #fbf0d7;
  color: #7a5519;
}

.message.ai .avatar {
  background: #e8f5f2;
  color: #0f766e;
}

.message.user .bubble {
  background: #eaf4f2;
  color: #12314f;
}

.message.patient .bubble,
.message.ai .bubble,
.bubble {
  border-color: rgba(183, 200, 214, 0.76);
  background: #fffefa;
}

.login-view {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, #eef6f7 0%, #f8f6ef 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.login-card {
  border-top: 4px solid rgba(181, 138, 60, 0.72);
  background: rgba(255, 254, 250, 0.98);
}

@media (max-width: 900px) {
  .topbar {
    border-radius: 0 0 14px 14px;
  }

  .tab {
    justify-content: center;
    border-left-width: 1px;
  }

  .tab::before {
    display: none;
  }

  .launch-workbench-card,
  .workspace-panel-host,
  .student-top,
  .patient-panel,
  .chat-panel {
    border-radius: 12px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 12px;
  }

  body {
    background-size: 22px 22px, 22px 22px, auto;
  }

  .topbar {
    padding: 10px 12px;
  }

  .topbar h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .user-badge {
    min-height: 34px;
  }

  .sidebar {
    background: rgba(255, 254, 250, 0.97);
  }

  .launch-workbench-cover {
    padding: 12px;
    border-top-width: 3px;
  }

  .concept-quick-card {
    flex-basis: 166px;
    min-height: 66px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    min-height: 38px;
  }
}
