:root {
  --background: #f8fafb;
  --surface: #ffffff;
  --surface-muted: #f2f4f5;
  --surface-line: #e1e3e4;
  --surface-hover: #eceeef;
  --text: #191c1d;
  --text-muted: #5f5e5e;
  --text-soft: #5c4039;
  --primary: #b02800;
  --primary-strong: #891d00;
  --primary-soft: #ffdad2;
  --primary-softer: #fff0ec;
  --error: #ba1a1a;
  --shadow: 0 16px 40px rgba(39, 22, 16, 0.08);
  --sidebar-width: 280px;
  --topbar-height: 72px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(225, 227, 228, 0.82);
  backdrop-filter: blur(18px);
}

.search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.search .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 21px;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: var(--background);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search input:focus {
  background: var(--surface);
  border-color: rgba(176, 40, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(176, 40, 0, 0.07);
}

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

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

.icon-button:active {
  transform: scale(0.96);
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--surface);
  border-radius: 999px;
  background: var(--error);
}

.profile {
  width: 40px;
  height: 40px;
  padding-left: 12px;
  border-left: 1px solid var(--surface-line);
}

.profile img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.menu-toggle {
  display: none;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 20px;
  background: var(--surface);
  border-right: 1px solid var(--surface-line);
}

.brand-title {
  display: inline-flex;
  align-items: center;
  width: 156px;
  min-height: 36px;
}

.brand-title img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.primary-action,
.planning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
}

.primary-action:hover,
.planning-button:hover {
  background: var(--primary-strong);
  box-shadow: 0 14px 28px rgba(176, 40, 0, 0.16);
}

.primary-action:active,
.planning-button:active {
  transform: scale(0.98);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.side-nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.side-nav a.active {
  background: var(--primary-softer);
  color: var(--primary);
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--primary);
}

.side-nav a.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 40px) 40px 56px;
}

.welcome-panel,
.section-block {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px;
  border: 1px solid rgba(255, 218, 210, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7f4 0%, #ffffff 54%, #f4f7fb 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-panel h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

.welcome-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.planning-button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
}

.section-block {
  margin-top: 44px;
}

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

.section-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.text-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 160ms ease;
}

.text-link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

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

.tool-card {
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(25, 28, 29, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 40, 0, 0.24);
  box-shadow: var(--shadow);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 25px;
}

.open-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 18px;
  transition: background 160ms ease, color 160ms ease;
}

.tool-card:hover .open-icon {
  background: var(--primary);
  color: #ffffff;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.activity-table {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(25, 28, 29, 0.035);
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(180px, 1.1fr) minmax(220px, 2fr) minmax(82px, 0.5fr);
  gap: 18px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(225, 227, 228, 0.72);
  font-size: 14px;
}

.activity-head {
  background: var(--background);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-list .activity-row {
  transition: background 160ms ease;
}

.activity-list .activity-row:hover {
  background: #fffaf8;
}

.activity-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.action-cell .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  color: var(--primary);
  background: var(--background);
  font-size: 18px;
}

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

.italic {
  font-style: italic;
}

.document-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(176, 40, 0, 0.25);
  text-underline-offset: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-card {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(160px, 0.9fr) minmax(240px, 1.8fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(225, 227, 228, 0.72);
  font-size: 14px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-head {
  background: var(--background);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-card a.history-row {
  transition: background 160ms ease;
}

.history-card a.history-row:hover {
  background: #fffaf8;
}

.history-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
}

.history-tool .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--primary);
  font-size: 18px;
}

.history-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-open {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.history-card a.history-row:hover .history-open {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(2px);
}

.history-page {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.history-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.history-filter-bar button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.history-filter-bar button.active {
  border-color: rgba(176, 40, 0, 0.28);
  background: var(--primary-softer);
  color: var(--primary);
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: var(--background);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.load-more:hover {
  background: #fffaf8;
  color: var(--primary);
}

.page-header {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.page-header h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.tip-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d8e3fa;
  border-radius: 999px;
  background: #f2f6ff;
  color: #515c70;
  font-size: 13px;
  font-weight: 600;
}

.tip-chip .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 20px;
}

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

.task-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.task-card.primary-tone:hover {
  border-color: rgba(176, 40, 0, 0.28);
}

.task-card.tertiary-tone:hover {
  border-color: rgba(81, 92, 112, 0.28);
}

.task-card.neutral-tone:hover {
  border-color: rgba(92, 64, 57, 0.28);
}

.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  font-size: 24px;
}

.primary-tone .task-icon,
.recent-icon.primary-tone {
  background: var(--primary-softer);
  color: var(--primary);
}

.tertiary-tone .task-icon,
.recent-icon.tertiary-tone {
  background: #eef4ff;
  color: #515c70;
}

.neutral-tone .task-icon,
.recent-icon.neutral-tone {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.task-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.task-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.task-start {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tertiary-tone .task-start {
  color: #515c70;
}

.neutral-tone .task-start {
  color: var(--text-soft);
}

.task-start .material-symbols-outlined {
  font-size: 16px;
  transition: transform 160ms ease;
}

.task-card:hover .task-start .material-symbols-outlined {
  transform: translateX(3px);
}

.recent-list {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
}

.recent-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--surface-line);
  transition: background 160ms ease;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-item:hover {
  background: #fffaf8;
}

.recent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  font-size: 24px;
}

.recent-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.recent-title-row h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.recent-item p .material-symbols-outlined {
  color: var(--primary);
  font-size: 15px;
}

.badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge.primary-tone {
  background: var(--primary-softer);
  color: var(--primary);
}

.badge.tertiary-tone {
  background: #eef4ff;
  color: #515c70;
}

.badge.neutral-tone {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.recent-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.recent-item:hover .recent-actions,
.recent-actions:focus-within {
  opacity: 1;
}

.assistant-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.assistant-button:hover {
  border-color: rgba(176, 40, 0, 0.22);
  background: var(--primary-softer);
  color: var(--primary);
}

.exam-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-line);
}

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

.exam-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.exam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-softer);
  opacity: 0;
  transition: opacity 160ms ease;
}

.exam-card:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 40, 0, 0.24);
  box-shadow: var(--shadow);
}

.exam-card:hover::before {
  opacity: 0.58;
}

.exam-card > * {
  position: relative;
  z-index: 1;
}

.exam-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 25px;
  transition: background 160ms ease;
}

.exam-card:hover .exam-icon {
  background: var(--primary-soft);
}

.exam-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.exam-card p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.exam-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 227, 228, 0.72);
}

.exam-card footer > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #515c70;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-card footer .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 14px;
}

.exam-card footer button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.exam-card:hover footer button {
  transform: translateX(3px);
}

.recent-exam-section {
  max-width: 920px;
  margin-left: max(calc((100% - 1280px) / 2), 0px);
  margin-right: auto;
}

.exam-log {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
}

.exam-log-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(150px, 0.8fr) minmax(140px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--surface-line);
  transition: background 160ms ease;
}

.exam-log-row:last-child {
  border-bottom: 0;
}

.exam-log-row:not(.exam-log-head):hover {
  background: #fffaf8;
}

.exam-log-head {
  background: var(--background);
  color: #515c70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-module {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.exam-module > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 18px;
}

.exam-module strong,
.exam-module small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-module strong {
  color: var(--text);
  font-size: 15px;
}

.exam-module small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.exam-date {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #515c70;
  font-size: 13px;
  font-weight: 600;
}

.exam-date .material-symbols-outlined {
  color: var(--primary);
  font-size: 16px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.exam-log-row:hover .exam-date .material-symbols-outlined {
  opacity: 1;
}

.research-hero {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.research-hero-copy h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.05;
}

.research-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.status-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
}

.status-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.research-search {
  position: relative;
  width: min(100%, 1280px);
  max-width: 760px;
  margin: 30px auto 0;
}

.research-search > .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 24px;
}

.research-search input {
  width: 100%;
  height: 58px;
  padding: 0 84px 0 52px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.research-search input:focus {
  border-color: rgba(176, 40, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(176, 40, 0, 0.07), 0 8px 24px rgba(25, 28, 29, 0.035);
}

.research-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.research-layout {
  width: min(100%, 1280px);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.research-categories {
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
  overflow: hidden;
  border: 1px solid rgba(225, 227, 228, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.category-title {
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(225, 227, 228, 0.72);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-categories nav {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.research-categories a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.research-categories a:hover,
.research-categories a.active {
  background: var(--primary-softer);
  color: var(--primary);
}

.research-categories a.active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 3px;
  border-radius: 999px 0 0 999px;
  background: var(--primary);
}

.research-categories .material-symbols-outlined {
  font-size: 19px;
}

.cat-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 18px;
  flex-shrink: 0;
}

.research-categories a.active .cat-count {
  background: var(--primary-soft);
  color: var(--primary);
}

.research-tool-card[hidden] {
  display: none;
}

.research-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  min-width: 0;
  gap: 16px;
}

.research-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 8px;
}

.research-empty-state .material-symbols-outlined {
  font-size: 40px;
  color: var(--surface-line);
}

.research-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(225, 227, 228, 0.84);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 100%);
  box-shadow: 0 8px 24px rgba(25, 28, 29, 0.026);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.research-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 40, 0, 0.34);
  box-shadow: var(--shadow);
}

.research-tool-card > .material-symbols-outlined {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
  font-size: 22px;
}

.research-tool-card > div {
  min-width: 0;
  flex: 1;
}

.research-tool-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.research-tool-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.research-tool-title strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-tool-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.bottom-nav {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* ── Tool Loading State ── */

/* Fade transitions between states */
#form-card,
#tool-loading,
#tool-result {
  transition: opacity 220ms ease;
}

.state-fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

.tool-loading {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--surface-line);
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.tool-loading-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e2140 0%, #3a3f6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orb-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(30, 33, 64, 0.25);
}

.tool-loading-orb .material-symbols-outlined {
  color: #fff;
  font-size: 28px;
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
  animation: star-spin 3s linear infinite;
}

@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 33, 64, 0.25); }
  50%       { box-shadow: 0 0 0 14px rgba(30, 33, 64, 0); }
}

@keyframes star-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.tool-loading-message {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  min-height: 24px;
  transition: opacity 300ms ease;
}

.tool-loading-dots {
  display: flex;
  gap: 6px;
}

.tool-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.tool-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.tool-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}

.tool-loading-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-muted);
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 300ms ease;
}

.loading-step .material-symbols-outlined {
  font-size: 17px;
  color: var(--surface-line);
  transition: color 300ms ease;
}

.loading-step.done {
  color: #2e7d52;
}

.loading-step.done .material-symbols-outlined {
  color: #2e7d52;
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.loading-step.active {
  color: var(--text);
  font-weight: 500;
}

.loading-mini-spinner {
  flex-shrink: 0;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--surface-line);
  border-top-color: #1e2140;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

/* ── Tool Result Design ── */

.result-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--surface-line);
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #2e7d52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e7d52;
  animation: dot-glow 2s ease-in-out infinite;
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 82, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(46, 125, 82, 0);  }
}

.result-action-primary {
  background: #1e2140 !important;
  color: #fff !important;
  border-color: #1e2140 !important;
}

.result-action-primary:hover {
  background: #2a2f55 !important;
  border-color: #2a2f55 !important;
  color: #fff !important;
}

.result-doc {
  padding: 28px 24px 8px;
}

.result-doc-heading {
  margin: 0 0 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.result-doc-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-option {
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-muted);
}

.result-option:last-child {
  border-bottom: none;
}

.result-option-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-option p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.result-cite {
  background: rgba(176, 40, 0, 0.1);
  color: var(--primary);
  border-radius: 4px;
  padding: 1px 5px;
  font-style: normal;
  cursor: pointer;
}

.result-info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 24px 24px;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-info-bar .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.result-info-link {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--surface-line);
  white-space: nowrap;
  transition: color 150ms ease;
}

.result-info-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* ── Tool Form Page ── */

.tool-page-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.tool-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 150ms ease;
}

.tool-back-link:hover {
  color: var(--text);
}

.tool-back-link .material-symbols-outlined {
  font-size: 18px;
}

.tool-page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.tool-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--avatar-color, #7c6f4a) 18%, white);
  color: var(--avatar-color, #7c6f4a);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.tool-page-meta h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.tool-page-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-form-card {
  background: #FBF8F7;
  border-radius: 16px;
  border: 1px solid #da3707;
  --tw-border-style:dashed;
  border-style:dashed;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  background: var(--surface);
  border-color: rgba(176, 40, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(176, 40, 0, 0.07);
}

.form-group textarea {
  min-height: 110px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.select-wrapper select:focus {
  background: var(--surface);
  border-color: rgba(176, 40, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(176, 40, 0, 0.07);
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
}

.generate-btn:hover {
  background: var(--primary-strong);
}

.generate-btn:active {
  transform: scale(0.98);
}

.generate-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.generate-btn .material-symbols-outlined {
  font-size: 18px;
}

.generate-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Tool Result ── */

.tool-result {
  margin-top: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--surface-line);
  overflow: hidden;
}

.tool-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-line);
}

.tool-result-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tool-result-actions {
  display: flex;
  gap: 8px;
}

.result-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.result-action-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--text-muted);
}

.result-action-btn .material-symbols-outlined {
  font-size: 16px;
}

.tool-result-body {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-muted);
}

.result-item:last-child {
  border-bottom: none;
}

.result-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.result-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 1040px) {
  :root {
    --sidebar-width: 248px;
  }

  .topbar {
    padding: 0 24px;
  }

  .main-content {
    padding: calc(var(--topbar-height) + 28px) 24px 40px;
  }

  .welcome-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .exam-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .recent-exam-section {
    max-width: min(100%, 1280px);
    margin-right: auto;
    margin-left: auto;
  }

  .research-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-layout {
    grid-template-columns: 1fr;
  }

  .research-categories {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    left: 0;
    gap: 12px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .search {
    max-width: none;
  }

  .search input {
    height: 40px;
    padding-right: 12px;
    font-size: 14px;
  }

  .topbar-actions .icon-button:not(.notification-button) {
    display: none;
  }

  .profile {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 200ms ease;
    box-shadow: 24px 0 40px rgba(25, 28, 29, 0.18);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 20px) 16px 32px;
  }

  .welcome-panel {
    padding: 24px;
  }

  .welcome-panel h1 {
    font-size: 36px;
  }

  .welcome-copy {
    font-size: 16px;
  }

  .planning-button {
    width: 100%;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .activity-table {
    display: grid;
    gap: 0;
  }

  .activity-head {
    display: none;
  }

  .activity-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .activity-row > span {
    white-space: normal;
  }

  .activity-row span:last-child {
    justify-self: start;
  }

  .history-row {
    grid-template-columns: 1fr 34px;
    gap: 8px 12px;
    padding: 16px;
  }

  .history-head {
    display: none;
  }

  .history-row > span:first-child {
    grid-column: 1;
    color: var(--text-muted);
    font-size: 13px;
  }

  .history-tool,
  .history-title {
    grid-column: 1;
  }

  .history-title {
    white-space: normal;
  }

  .history-open {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .page-header {
    gap: 18px;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .page-header p:not(.eyebrow) {
    font-size: 16px;
  }

  .tip-chip {
    align-items: flex-start;
    width: 100%;
    border-radius: var(--radius);
  }

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

  .recent-item {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: flex-start;
  }

  .recent-icon {
    width: 44px;
    height: 44px;
  }

  .recent-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .recent-title-row h3 {
    white-space: normal;
  }

  .recent-actions {
    grid-column: 2;
    opacity: 1;
  }

  .bottom-nav {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    border-top: 1px solid var(--surface-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
  }

  .bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .bottom-nav a.active {
    color: var(--primary);
  }

  .bottom-nav a.active .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
  }

  .bottom-nav .material-symbols-outlined {
    font-size: 23px;
  }

  .tool-page-wrapper {
    max-width: 100%;
    padding-bottom: 80px;
  }

  .tool-form-card {
    padding: 24px;
  }

  .tool-page-header {
    gap: 14px;
  }

  .tool-page-meta h1 {
    font-size: 22px;
  }
}

  .app-shell[data-page="ai-tugas"] .main-content {
    padding-bottom: 96px;
  }

  .app-shell[data-page="dashboard"] .main-content,
  .app-shell[data-page="ai-ujian"] .main-content,
  .app-shell[data-page="ai-riset"] .main-content {
    padding-bottom: 96px;
  }

  .assistant-button {
    width: 100%;
  }

  .exam-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .exam-card {
    min-height: 218px;
  }

  .exam-card footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .exam-card footer > span {
    white-space: normal;
  }

  .exam-log-head {
    display: none;
  }

  .exam-log-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .exam-date {
    justify-content: flex-start;
  }

  .exam-date .material-symbols-outlined {
    opacity: 1;
  }

  .exam-module strong,
  .exam-module small {
    white-space: normal;
  }

  .research-hero-copy h1 {
    font-size: 40px;
  }

  .research-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .status-chip {
    display: none;
  }

  .research-search {
    margin-top: 22px;
  }

  .research-search input {
    height: 52px;
    padding-right: 18px;
    font-size: 14px;
  }

  .research-search button {
    display: none;
  }

  .research-layout {
    margin-top: 24px;
  }

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

  .research-tool-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
