:root {
  color-scheme: light;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #1d2b3a;
  --muted: #6b7a8a;
  --line: #e1e7ee;
  --green: #0073a5;
  --green-dark: #0b4a6f;
  --brand-deep: #0b4a6f;
  --green-pale: #e4f1f8;
  --coral: #e57358;
  --coral-pale: #fff0e9;
  --yellow: #e6bb55;
  --yellow-pale: #faf2dc;
  --blue-pale: #e8f4fb;
  --sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --display: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  font-size: 15px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  z-index: 20;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100vh;
  padding: 22px 14px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 24px 5px;
}
.brand-mark {
  display: block;
  width: 40px;
  height: auto;
}
.brand-name {
  color: var(--tx-0073a5, #0073a5);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0;
}
.brand-name span {
  font-weight: 800;
}
.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.workspace-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--yellow-pale);
  color: var(--tx-7b5a17, #7b5a17);
  font-family: var(--display);
  font-size: 18px;
}
.workspace-switcher small,
.term-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.workspace-switcher strong {
  font-size: 12px;
  font-weight: 600;
}
.switcher-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 19px;
}
.nav-label {
  margin: 22px 8px 9px;
  color: #929c96;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.primary-nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--tx-59665f, #59665f);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.nav-link:hover {
  color: var(--green);
  background: var(--bg-f3f6fa, #f3f6fa);
}
.nav-link.is-active {
  color: var(--green-dark);
  background: var(--green-pale);
  font-weight: 700;
}
.nav-link.is-active::before {
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  content: "";
  background: var(--coral);
}
.nav-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 6px;
  color: #98a3ae;
  font-size: 17px;
}
.nav-link.is-active .nav-mark {
  border-color: transparent;
  background: var(--green);
  color: white;
}
.nav-count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
  font-size: 10px;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
}
.term-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 9px;
  background: var(--bg-f6f8fb, #f6f8fb);
}
.workspace-credit {
  margin: -7px 8px 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.term-card strong {
  font-size: 11px;
  font-weight: 600;
}
.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-pale);
}
.term-arrow {
  margin-left: auto;
  color: var(--muted);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 3px 2px;
  border-top: 1px solid var(--line);
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-dcebe1, #dcebe1);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.user-meta strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-meta small {
  color: var(--muted);
  font-size: 10px;
}
.user-more {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}
.sidebar-scrim {
  display: none;
}

.main-area {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(216, 224, 232, 0.85);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #98a3ae;
  font-size: 11px;
}
.breadcrumb-slash {
  color: #c1c8c2;
}
.breadcrumb strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.term-chip {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--tx-61707f, #61707f);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.term-chip span {
  padding: 0 4px;
  color: var(--coral);
}
.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-ffffff, white);
  cursor: pointer;
}
.notification-glyph {
  font-family: var(--display);
  font-size: 16px;
}
.notification-button i {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 8px;
  font-style: normal;
}
.topbar-divider {
  width: 1px;
  height: 27px;
  background: var(--line);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar-user > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.topbar-user strong {
  font-size: 10px;
}
.topbar-user small {
  color: var(--muted);
  font-size: 9px;
}
.user-avatar--small {
  width: 30px;
  height: 30px;
}
.mobile-menu-button {
  display: none;
}

.page-wrap {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px 44px 32px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.page-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}
.page-description {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: var(--green);
  color: white;
}
.button--primary:hover {
  background: var(--brand-deep);
}
.button--primary span {
  color: #d6e6f2;
  font-size: 15px;
}
.button--secondary {
  border-color: var(--line);
  background: var(--bg-ffffff, white);
  color: var(--ink);
}
.button--secondary:hover {
  border-color: var(--bd-b9c8bd, #b9c8bd);
}
.flash-message {
  margin: 0 0 17px;
  padding: 11px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.6;
}
.flash--error {
  border-left-color: var(--coral);
  background: var(--coral-pale);
  color: var(--tx-8d3f31, #8d3f31);
}
.flash-message a {
  display: inline-block;
  margin-left: 8px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.action-panel {
  margin: 0 0 17px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
}
.action-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.action-panel summary::-webkit-details-marker {
  display: none;
}
.action-panel summary::after {
  color: var(--green);
  content: "+";
  font-size: 18px;
}
.action-panel[open] summary::after {
  content: "−";
}
.action-panel summary span {
  font-size: 11px;
  font-weight: 700;
}
.action-panel summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.workspace-form {
  display: grid;
  gap: 12px;
  padding: 4px 16px 17px;
  border-top: 1px solid var(--line);
}
.form-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.workspace-form label {
  display: grid;
  gap: 6px;
  color: var(--tx-4a5866, #4a5866);
  font-size: 11px;
  font-weight: 600;
}
.workspace-form input:not([type="hidden"]),
.workspace-form select,
.workspace-form textarea,
.inline-action select,
.review-card-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: var(--bg-fbfcfe, #fbfcfe);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.workspace-form input[type="file"] {
  padding: 7px;
}
.workspace-form textarea,
.review-card-form textarea {
  min-height: 66px;
  resize: vertical;
  line-height: 1.6;
}
.workspace-form input:focus,
.workspace-form select:focus,
.workspace-form textarea:focus,
.inline-action select:focus,
.review-card-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-pale);
}
.workspace-form > .button {
  justify-self: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.inline-action {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 135px;
}
/* Nút / ô chọn trong hàng thao tác: cùng cỡ với .table-edit-button để các nút cạnh nhau đồng đều, chữ đủ lớn để đọc. */
.inline-action select {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.inline-action button,
.task-status-form button,
.review-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--bd-cad6e2, #cad6e2);
  border-radius: 4px;
  background: var(--bg-ffffff, white);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.inline-action button:hover,
.task-status-form button:hover,
.review-actions button:hover {
  background: var(--green-pale);
}
.table-action-note {
  color: #adb5af;
}
.table-download {
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}
.table-download:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.task-status-form {
  margin-top: 9px;
}
.review-card-form {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}
.review-card-form textarea {
  min-height: 50px;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.review-actions button[value="rejected"] {
  border-color: var(--bd-eed0c8, #eed0c8);
  color: var(--tx-a64f3b, #a64f3b);
}

/* Thẻ báo cáo của giảng viên: nút duyệt đủ lớn, nút AI không kéo giãn hết chiều ngang thẻ */
.opportunity-card .review-actions button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 12px;
}
/* Hàng thao tác trong bảng: ô chọn và các nút cùng chiều cao, cỡ chữ, bo góc để cân đối */
.row-actions .inline-action {
  gap: 8px;
}
.row-actions .inline-action > select,
.row-actions .inline-action > button {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}
.row-actions .inline-action > select {
  flex: 1 1 auto;
  padding: 0 10px;
}
.row-actions .inline-action > button {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 0 14px;
  white-space: nowrap;
}
.row-actions .inline-action > .ai-button {
  min-width: 76px;
  border-color: var(--bd-b5d3e6, #b5d3e6);
  background: var(--bg-eef6fb, #eef6fb);
}
.row-actions .inline-action > .ai-button--warn {
  border-color: var(--bd-e8b8aa, #e8b8aa);
  background: var(--bg-fdf0ec, #fdf0ec);
  color: var(--tx-a64f3b, #a64f3b);
}
.review-actions .ai-button {
  margin-left: auto;
  border-color: var(--bd-b5d3e6, #b5d3e6);
  background: var(--bg-eef6fb, #eef6fb);
}
.review-actions .ai-button--warn {
  border-color: var(--bd-e8b8aa, #e8b8aa);
  background: var(--bg-fdf0ec, #fdf0ec);
  color: var(--tx-a64f3b, #a64f3b);
}
.opportunity-card > .review-card-form {
  margin-top: 12px;
}
.sidebar-account {
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.sidebar-account .sidebar-user {
  border-top: 0;
}
.logout-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid var(--bd-f0d9d2, #f0d9d2);
  border-radius: 4px;
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.logout-button:hover {
  border-color: var(--bd-e8b9ac, #e8b9ac);
  background: var(--bg-ffe6de, #ffe6de);
}
.logout-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-ffffff, #fff);
  font-size: 16px;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 21px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.metric-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  min-height: 106px;
  padding: 17px 21px;
}
.metric-item + .metric-item {
  border-left: 1px solid var(--line);
}
.metric-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}
.metric-value {
  align-self: end;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
}
.metric-note {
  align-self: end;
  justify-self: end;
  max-width: 240px;
  color: #77847c;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}
.metric-item--2 .metric-value {
  color: var(--green);
}
.metric-item--3 .metric-value {
  color: #c75f47;
}

.panel {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 18px;
}
.progress-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-fffefa, #fffefa);
}
.progress-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: var(--yellow);
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.panel-heading h2,
.table-toolbar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}
.panel-heading .eyebrow,
.table-toolbar .eyebrow {
  margin-bottom: 7px;
}
.progress-number {
  color: var(--green);
  font-family: var(--display);
  font-size: 33px;
  line-height: 1;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.progress-track {
  height: 7px;
  overflow: hidden;
  background: var(--bg-ebeff4, #ebeff4);
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--green);
}
.progress-panel .progress-track {
  margin: 19px 0 9px;
}
.progress-panel .muted {
  margin-bottom: 17px;
}
.chart-area {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 108px;
  padding: 10px 2px 0;
  border-top: 1px solid var(--line);
}
.chart-column {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  height: 100%;
  gap: 8px;
}
.chart-column span {
  align-self: end;
  width: 100%;
  max-width: 25px;
  min-height: 0;
  background: var(--bg-b9d6c3, #b9d6c3);
}
.chart-column:nth-child(3n + 2) span {
  background: var(--bg-efb27f, #efb27f);
}
.chart-column:nth-child(5n) span {
  background: var(--green);
}
.chart-column small {
  color: #909a94;
  font-size: 8px;
}
.panel-index {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
  font-size: 9px;
  font-weight: 700;
}
.activity-list {
  margin-top: 15px;
}
.activity-row {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.activity-dot {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.activity-row:not(:last-child) .activity-dot::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 2px;
  height: 54px;
  content: "";
  background: var(--line);
}
.activity-copy {
  min-width: 0;
}
.activity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.activity-topline strong {
  font-size: 10px;
  line-height: 1.5;
}
.activity-copy p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.activity-copy small {
  color: #98a3ae;
  font-size: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.badge--positive {
  background: var(--green-pale);
  color: var(--tx-2e7059, #2e7059);
}
.badge--waiting {
  background: var(--yellow-pale);
  color: var(--tx-87641d, #87641d);
}
.badge--attention {
  background: var(--coral-pale);
  color: var(--tx-aa513d, #aa513d);
}
.badge--active {
  background: var(--blue-pale);
  color: var(--tx-456878, #456878);
}
.badge--neutral {
  background: var(--bg-eef1f5, #eef1f5);
  color: var(--tx-69756e, #69756e);
}

.table-panel {
  padding: 0;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(245px, 100%);
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
  color: #7d8981;
}
.search-field > span {
  font-size: 19px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}
.search-field input::placeholder {
  color: #98a3ae;
}
.opportunity-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.opportunity-toolbar .search-field {
  width: 100%;
  height: 42px;
}
.opportunity-sort {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.opportunity-sort-label {
  font-weight: 700;
}
.opportunity-sort-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-edf1f6, #edf1f6);
}
.opportunity-sort-option {
  min-width: 88px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.opportunity-sort-option:hover {
  color: var(--green);
}
.opportunity-sort-option.is-selected {
  background: var(--bg-ffffff, white);
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(29, 43, 58, 0.12);
}
.opportunity-sort-option:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.opportunity-count {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: 42px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}
thead {
  background: var(--bg-f6f8fb, #f6f8fb);
}
th {
  padding: 11px 15px;
  color: #7e8982;
  font-size: 9px;
  font-weight: 700;
}
td {
  padding: 13px 15px;
  border-top: 1px solid var(--bd-edf0ec, #edf0ec);
  color: var(--tx-4b5951, #4b5951);
  font-size: 10px;
}
td:first-child {
  color: var(--ink);
  font-weight: 600;
}
tbody tr {
  transition: background 0.14s ease;
}
tbody tr:hover {
  background: var(--bg-fbfcfe, #fbfcfe);
}
.icon-button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #738078;
  font-size: 16px;
  cursor: pointer;
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pagination button,
.pagination span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
  font-size: 10px;
}
.pagination span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.pagination button:disabled {
  color: #b7c0b9;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 13px;
}
.board-column {
  min-height: 245px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg-ecefe9, #ecefe9);
}
.board-column:nth-child(2) {
  background: var(--bg-ecf0f5, #ecf0f5);
}
.board-column:nth-child(3) {
  background: var(--bg-f2efe5, #f2efe5);
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px 1px 12px;
}
.board-heading h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}
.board-heading span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-ffffff, white);
  color: var(--muted);
  font-size: 9px;
}
.task-card {
  position: relative;
  margin-bottom: 9px;
  padding: 14px 12px 12px 15px;
  border: 1px solid var(--bd-e5e9e3, #e5e9e3);
  background: var(--bg-ffffff, white);
}
.task-marker {
  position: absolute;
  top: 15px;
  left: 0;
  width: 3px;
  height: 22px;
  background: var(--coral);
}
.task-card:nth-of-type(3n) .task-marker {
  background: var(--green);
}
.task-card h3 {
  margin: 0 25px 9px 0;
  font-size: 12.1px;
  line-height: 1.5;
}
.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.9px;
  line-height: 1.5;
}
.task-more {
  position: absolute;
  top: 7px;
  right: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: 23px;
  align-items: start;
}
.timeline-list {
  position: relative;
  padding: 4px 0 0 22px;
}
.timeline-list::before {
  position: absolute;
  top: 10px;
  bottom: 18px;
  left: 4px;
  width: 1px;
  content: "";
  background: var(--bg-d8e0e9, #d8e0e9);
}
.timeline-entry {
  position: relative;
  padding: 0 0 23px 16px;
}
.timeline-marker {
  position: absolute;
  top: 2px;
  left: -22px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
}
.timeline-entry:first-child .timeline-marker {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-pale);
}
.timeline-entry-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #919b94;
  font-size: 9px;
}
.timeline-entry h2 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}
.timeline-entry p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.side-note {
  position: sticky;
  top: 90px;
  border-top: 3px solid var(--yellow);
}
.side-note h2 {
  margin: 0 0 9px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}
.side-note .button {
  margin-top: 7px;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.content-card-grid--reports {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.opportunity-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.opportunity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 45, 70, 0.06);
}
.opportunity-card[hidden] {
  display: none;
}
.opportunity-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 15px;
}
.card-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow-pale);
}
.opportunity-card:nth-child(3n + 2) .card-mark {
  background: var(--green-pale);
}
.opportunity-card:nth-child(3n) .card-mark {
  background: var(--coral-pale);
}
.opportunity-card h2 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.opportunity-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.opportunity-card .card-meta {
  margin-bottom: 6px;
  color: var(--tx-46564d, #46564d);
  font-size: 10px;
  font-weight: 600;
}
.opportunity-company-details {
  display: grid;
  gap: 5px;
  line-height: 1.55;
}
.opportunity-company-details strong {
  color: var(--green-dark);
  font-size: 12px;
}
.opportunity-company-details span {
  color: var(--muted);
  font-weight: 400;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: auto;
  padding-top: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: start;
}
.profile-intro {
  padding: 24px;
  background: var(--brand-deep);
  color: white;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 21px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--bg-d1e3f0, #d1e3f0);
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 32px;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-intro .eyebrow {
  color: #c9dfcb;
}
.profile-intro h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
.profile-intro > p:not(.eyebrow) {
  margin-bottom: 22px;
  color: #d4e2ee;
  font-size: 10px;
  line-height: 1.7;
}
.profile-intro .button {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: white;
}
.profile-fields {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.field-row:last-child {
  border-bottom: 0;
}
.field-row span {
  color: var(--muted);
  font-size: 10px;
}
.field-row strong {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
  gap: 18px;
  align-items: start;
}
.detail-main {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
}
.detail-main h2 {
  max-width: 500px;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
}
.detail-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.detail-fields {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-fields .field-row {
  grid-template-columns: 145px minmax(0, 1fr);
}
.milestone-panel {
  border-top: 3px solid var(--coral);
}
.milestone {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.milestone:last-child {
  border-bottom: 0;
}
.milestone-state {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border: 1px solid var(--bd-cbd4cc, #cbd4cc);
  border-radius: 50%;
}
.milestone-state.is-done {
  border-color: var(--green);
  background: var(--green);
}
.milestone-state.is-current {
  border: 2px solid var(--coral);
  box-shadow: 0 0 0 3px var(--coral-pale);
}
.milestone strong,
.milestone small {
  display: block;
}
.milestone strong {
  font-size: 10px;
}
.milestone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.evaluation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
}
.criteria-panel .panel-heading {
  align-items: center;
  margin-bottom: 21px;
}
.score-total {
  color: var(--green);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}
.score-total small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
}
.criterion {
  margin-top: 16px;
}
.criterion > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
}
.criterion strong {
  color: var(--green);
}
.criterion .progress-track {
  height: 5px;
}
.quote-panel {
  position: relative;
  padding: 24px;
  background: var(--yellow-pale);
}
.quote-panel::after {
  position: absolute;
  right: 18px;
  bottom: 11px;
  color: rgba(119, 93, 36, 0.12);
  content: "“";
  font-family: var(--display);
  font-size: 100px;
  line-height: 1;
}
.quote-panel blockquote {
  position: relative;
  z-index: 1;
  margin: 22px 0;
  color: var(--tx-39463e, #39463e);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.45;
}
.quote-byline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}
.quote-byline span {
  color: #788078;
  font-weight: 400;
}

.progress-list-panel {
  padding: 0 20px;
}
.progress-list-panel .table-toolbar {
  padding-right: 0;
  padding-left: 0;
}
.member-row {
  display: grid;
  grid-template-columns: 34px minmax(130px, 1fr) minmax(110px, 0.7fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.member-row:nth-of-type(odd) .member-avatar {
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
}
.member-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.member-info strong {
  font-size: 10px;
}
.member-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
}
.member-progress-label strong {
  color: var(--ink);
}
.member-progress .progress-track {
  height: 4px;
}
.member-row .badge {
  justify-self: end;
}
.data-notice {
  margin: 18px 0 0;
  color: #8b968f;
  font-size: 9px;
  text-align: right;
}

.toast-message {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-left: 3px solid var(--coral);
  background: var(--ink);
  color: white;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-body {
  min-width: 0;
  background: var(--bg-edf1eb, #edf1eb);
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(480px, 1.06fr);
  min-height: 100svh;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: 30px clamp(28px, 5.5vw, 76px);
  background: var(--brand-deep);
  color: white;
}
.auth-aside::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, black 5%, transparent 82%);
}
.auth-aside > * {
  position: relative;
  z-index: 1;
}
.brand--light .brand-name {
  color: white;
}
.auth-aside-copy {
  margin: auto 0;
  padding: 48px 0 58px;
}
.auth-aside-copy .eyebrow {
  color: #bcd8ec;
  font-size: 10px;
}
.auth-issue {
  max-width: 560px;
  margin: 22px 0 28px;
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.12;
}
.auth-issue em {
  color: #f0bd72;
  font-weight: 400;
}
.auth-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  color: #bbd0c2;
  font-size: 9px;
  font-weight: 700;
}
.auth-rule-line {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.35);
}
.auth-caption {
  margin-top: 16px;
  color: #bed1c3;
  font-size: 12px;
}
.auth-aside-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #afc7b8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}
.auth-main {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 30px clamp(24px, 5vw, 76px);
  background-color: var(--bg-f4f6f9, #f4f6f9);
}
.auth-form-wrap {
  width: min(100%, 470px);
  padding: 34px 36px 30px;
  border: 1px solid var(--bd-e1e7df, #e1e7df);
  border-top: 3px solid var(--coral);
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(29, 43, 58, 0.08);
}
.auth-main-brand {
  display: none;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.auth-back-arrow {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-f7f9fc, #f7f9fc);
  font-size: 15px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.auth-back:hover,
.password-label a:hover {
  color: var(--green);
}
.auth-back:hover .auth-back-arrow {
  border-color: var(--bd-d1e3f0, #d1e3f0);
  background: var(--green-pale);
}
.auth-form-wrap > .eyebrow {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 10px;
}
.auth-form-wrap h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
}
.auth-description {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-form > label,
.password-label label {
  color: var(--tx-4a5866, #4a5866);
  font-size: 12px;
  font-weight: 700;
}
.password-input-wrap {
  position: relative;
}
.password-input-wrap input:not([type="hidden"]) {
  padding-right: 54px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible {
  outline: 0;
  background: var(--green-pale);
}
.password-toggle-icon {
  position: relative;
  display: block;
  font-size: 18px;
  line-height: 1;
}
.password-toggle[aria-pressed="true"] .password-toggle-icon::after {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 22px;
  height: 1.5px;
  content: "";
  background: currentColor;
  transform: rotate(-42deg);
  box-shadow: 0 0 0 1px var(--surface);
}
.password-toggle:hover .password-toggle-icon,
.password-toggle:focus-visible .password-toggle-icon {
  color: var(--green-dark);
}
.password-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.password-label label {
  color: var(--tx-4a5866, #4a5866);
  font-size: 12px;
  font-weight: 700;
}
.password-label a {
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.auth-form input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  background: var(--bg-fcfdfe, #fcfdfe);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.auth-form input[autocomplete="one-time-code"] {
  text-align: center;
  font-size: 20px;
}
.otp-digit-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.auth-form .otp-digit-group input[data-otp-digit] {
  height: 54px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.auth-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-pale);
}
.auth-form input::placeholder {
  color: #a4ada6;
}
.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 10px;
}
.remember-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}
.auth-submit {
  justify-content: space-between;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  padding: 0 17px;
  font-size: 12px;
}
.auth-inline-link {
  justify-self: start;
  margin-top: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.auth-resend-form {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
}
.auth-resend-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.auth-resend-button:disabled {
  color: #85919d;
  text-decoration: none;
  cursor: not-allowed;
}
.auth-resend-countdown {
  color: var(--muted);
  font-size: 11px;
}
.auth-footnote {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--bd-ebeff4, #ebeff4);
  color: #85919d;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }
  .topbar {
    padding-right: 25px;
    padding-left: 25px;
  }
  .page-wrap {
    padding-right: 28px;
    padding-left: 28px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .activity-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
  .activity-row:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 940px) and (min-width: 821px) {
  .auth-layout {
    grid-template-columns: minmax(285px, 0.84fr) minmax(0, 1.16fr);
  }
}
@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(270px, 86vw);
    height: 100dvh;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }
  body.sidebar-is-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: block;
    background: rgba(15, 32, 50, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.sidebar-is-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .topbar {
    height: 59px;
    padding: 0 20px;
  }
  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 1px solid var(--line);
    background: var(--bg-ffffff, white);
    cursor: pointer;
  }
  .mobile-menu-button span {
    width: 14px;
    height: 1px;
    background: var(--ink);
  }
  .breadcrumb {
    margin-right: auto;
    margin-left: 12px;
  }
  .topbar-user > span:last-child,
  .term-chip,
  .topbar-divider {
    display: none;
  }
  .topbar-actions {
    gap: 12px;
  }
  .page-wrap {
    padding: 28px 20px 24px;
  }
  .content-card-grid,
  .content-card-grid--reports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-layout {
    grid-template-columns: minmax(265px, 0.82fr) minmax(0, 1.18fr);
  }
  .auth-aside {
    padding-right: 24px;
    padding-left: 24px;
  }
  .auth-issue {
    font-size: 34px;
  }
  .auth-main {
    padding-right: 22px;
    padding-left: 22px;
  }
}
@media (max-width: 820px) {
  .auth-layout {
    display: block;
    min-height: 100svh;
  }
  .auth-aside {
    display: none;
  }
  .auth-main {
    min-height: 100svh;
    padding: 28px 20px;
  }
  .auth-form-wrap {
    width: min(100%, 470px);
  }
  .auth-main-brand {
    display: inline-flex;
    align-items: center;
    margin: 0 0 28px;
  }
}
@media (max-width: 620px) {
  .topbar {
    padding: 0 13px;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 9px;
  }
  .breadcrumb strong {
    overflow: hidden;
    max-width: 125px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .notification-button {
    width: 29px;
    height: 29px;
  }
  .page-wrap {
    padding: 23px 14px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 19px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-description {
    font-size: 12px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-item {
    grid-template-columns: 1fr auto;
    min-height: 82px;
    padding: 12px 15px;
  }
  .metric-item + .metric-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .metric-label {
    grid-column: auto;
    align-self: end;
  }
  .metric-value {
    grid-column: 1;
    grid-row: 2;
    margin-top: 4px;
    font-size: 25px;
  }
  .metric-note {
    grid-column: 2;
    grid-row: 2;
  }
  .dashboard-grid,
  .timeline-layout,
  .detail-layout,
  .evaluation-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .activity-list {
    display: block;
  }
  .activity-row:nth-child(2) {
    border-top: 0;
  }
  .panel {
    padding: 16px;
  }
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .search-field {
    width: 100%;
  }
  .opportunity-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .opportunity-toolbar > .search-field {
    grid-column: 1 / -1;
  }
  .opportunity-count {
    justify-self: end;
  }
  .table-foot {
    padding: 12px 14px;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .board-column {
    min-height: 0;
  }
  .content-card-grid,
  .content-card-grid--reports {
    grid-template-columns: 1fr;
  }
  .opportunity-card {
    min-height: 180px;
  }
  .side-note {
    position: static;
  }
  .member-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .member-progress {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .member-row .badge {
    grid-column: 3;
    grid-row: 1;
  }
  .field-row,
  .detail-fields .field-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .data-notice {
    text-align: left;
  }
  .auth-main {
    min-height: 100dvh;
    padding: 20px 15px;
  }
  .auth-form-wrap {
    padding: 27px 21px 24px;
  }
  .auth-back {
    margin-bottom: 28px;
  }
  .auth-form-wrap h1 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Biểu tượng SVG dạng đường nét dùng chung */
.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-mark .ui-icon {
  width: 18px;
  height: 18px;
}
.switcher-arrow .ui-icon,
.term-arrow .ui-icon {
  width: 16px;
  height: 16px;
}
.notification-glyph .ui-icon {
  width: 17px;
  height: 17px;
}
.logout-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.member-avatar {
  overflow: hidden;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ngày giờ cùng hàng với chip học kỳ */
.clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--tx-61707f, #61707f);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.clock-chip .ui-icon {
  width: 13px;
  height: 13px;
}
.clock-chip time {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}
.clock-sep {
  padding: 0 2px;
  color: var(--coral);
}
@media (max-width: 900px) {
  .clock-chip [data-clock-date],
  .clock-chip .clock-sep,
  .clock-chip .ui-icon:first-child {
    display: none;
  }
}

/* Thông báo: chuông tổng, bảng thả xuống và thông báo theo từng mục */
.notification-wrap {
  position: relative;
}
.notification-button i {
  min-width: 15px;
  width: auto;
  padding: 0 4px;
  box-sizing: border-box;
}
.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-ffffff, #fff);
  box-shadow: 0 18px 45px rgba(29, 43, 58, 0.16);
}
.notification-panel[hidden] {
  display: none;
}
.notification-panel-head,
.section-notices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.link-button {
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.link-button:hover {
  text-decoration: underline;
}
.notification-item {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}
.notification-item:hover {
  background: var(--bg-f3f6fa, #f3f6fa);
}
.notification-item small {
  color: var(--muted);
  font-size: 10px;
}
.notification-item span {
  color: var(--tx-55626f, #55626f);
  line-height: 1.45;
}
.notification-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
}
.section-notices {
  margin: 0 0 18px;
  border: 1px solid var(--bd-f0d3c9, #f0d3c9);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  background: var(--bg-fffaf7, #fffaf7);
}
.section-notice {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bd-f4e3dc, #f4e3dc);
}
.section-notice:last-child {
  border-bottom: 0;
}
.section-notice-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
}
.section-notice-icon .ui-icon {
  width: 15px;
  height: 15px;
}
.section-notice strong {
  font-size: 13px;
}
.section-notice p {
  margin: 3px 0;
  color: var(--tx-55626f, #55626f);
  font-size: 12px;
  line-height: 1.45;
}
.section-notice small {
  color: var(--muted);
  font-size: 10px;
}

/* "Quên mật khẩu?" nằm sau ô mật khẩu trong thứ tự Tab nhưng hiển thị cùng hàng với nhãn */
.password-field {
  position: relative;
  display: grid;
  gap: 10px;
}
.password-forgot {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.password-forgot:hover {
  text-decoration: underline;
}

/* Tab chia nhóm tài khoản ở trang quản trị */
.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line);
}
.group-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.group-tab span {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--bg-ecf0f5, #ecf0f5);
  color: var(--tx-55626f, #55626f);
  font-size: 11px;
  text-align: center;
}
.group-tab:hover {
  color: var(--green-dark);
}
.group-tab.is-active {
  border-color: var(--line);
  background: var(--bg-ffffff, #fff);
  color: var(--green-dark);
}
.group-tab.is-active span {
  background: var(--green);
  color: #fff;
}

/* Trường theo vai trò: thuộc tính hidden phải thắng kiểu hiển thị của nhãn trong form */
[data-role-field][hidden],
.workspace-form label[hidden] {
  display: none !important;
}

/* Biểu mẫu thao tác trong bảng có nhiều trường (ví dụ kỳ thực tập): xếp thành khối gọn thay vì dồn một hàng */
.inline-action--stack {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  min-width: 300px;
  padding: 4px 0;
}
.inline-action--stack select {
  flex: 1 1 140px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}
.inline-action--stack textarea {
  flex: 1 1 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: var(--bg-fbfcfe, #fbfcfe);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
.inline-action--stack textarea::placeholder {
  color: #98a3ae;
}
.inline-action--stack textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-pale);
}
.inline-action--stack button {
  min-height: 34px;
  margin-left: auto;
  padding: 0 20px;
  font-size: 12px;
}

/* Minh chứng hoàn thành nhiệm vụ */
.task-description {
  color: var(--tx-55626f, #55626f);
  line-height: 1.5;
}
.task-evidence {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--bd-cddfeb, #cddfeb);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--bg-f4f9fc, #f4f9fc);
  font-size: 12px;
}
.task-evidence strong {
  color: var(--green-dark);
  font-size: 11px;
}
.task-evidence a {
  color: var(--green);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.task-evidence p {
  margin: 0;
  color: var(--tx-55626f, #55626f);
  line-height: 1.45;
}
.task-submit {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-ffffff, #fff);
}
.task-submit summary {
  padding: 9px 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.task-submit-form {
  padding: 4px 12px 12px;
}
.task-state {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.task-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Form nổi (hộp thoại) báo cáo hoàn thành nhiệm vụ */
.task-submit-trigger {
  margin-top: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.task-submit-trigger:hover {
  background: var(--brand-deep);
}
dialog.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 12px;
  background: var(--bg-ffffff, #fff);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(12, 26, 40, 0.35);
}
dialog.modal::backdrop {
  background: rgba(15, 35, 55, 0.55);
  backdrop-filter: blur(2px);
}
dialog.modal[open] {
  animation: modal-in 0.18s ease-out;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal[open] {
    animation: none;
  }
}
.modal-form {
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 24px 24px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}
.modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-ffffff, #fff);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--bg-f3f6fa, #f3f6fa);
  color: var(--ink);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Chữ trong thẻ nhiệm vụ phóng to thêm 10% */
.task-card .task-status-form button {
  font-size: 10.9px;
}

/* Nút mở form nổi (thay cho bảng xổ xuống cũ) */
.action-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 17px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, #fff);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.action-trigger:hover {
  border-color: var(--bd-cad6e2, #cad6e2);
  background: var(--bg-f7f9fc, #f7f9fc);
}
.action-trigger span {
  font-size: 11px;
  font-weight: 700;
}
.action-trigger small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.modal-form {
  border-top: 0;
}
.modal-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .modal-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiêu đề và nút bấm trong form nổi */
dialog.modal .modal-actions {
  justify-content: flex-end;
}

/* Màn hình vừa: ô số liệu hẹp hơn nên ghi chú được phép xuống dòng sớm hơn */
@media (min-width: 621px) and (max-width: 1180px) {
  .metric-note {
    max-width: 150px;
  }
}

/* Nút mở form chỉnh sửa trong dòng của bảng */
.table-edit-button {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid var(--bd-cad6e2, #cad6e2);
  border-radius: 4px;
  background: var(--bg-ffffff, #fff);
  color: var(--green);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.table-edit-button:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

/* Ô thao tác trong bảng: các nút cùng chiều rộng, thẳng hàng giữa các dòng dù nhãn dài ngắn khác nhau */
.row-actions {
  white-space: nowrap;
}
.row-actions > .table-edit-button {
  min-width: 112px;
  margin-right: 6px;
  vertical-align: middle;
}
.modal-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Kế hoạch thực tập (chỉ xem) */
.plan-panel {
  margin: 0 0 21px;
}
.plan-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.plan-panel-head h2 {
  margin: 4px 0 0;
  font-size: 17px;
}
.plan-text {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--bg-fbfcfe, #fbfcfe);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.plan-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.plan-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.board-cards {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 2px;
}
.board-cards .task-card[hidden] {
  display: none;
}
.board-empty {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.board-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.board-filter-student,
.board-filter-attention {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.board-filter-student select {
  height: 35px;
  min-width: 190px;
  max-width: 260px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--bg-ffffff, white);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.board-filter-student select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-pale);
}
.board-filter-attention {
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
  cursor: pointer;
}
.board-filter-attention input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--green);
}
.board-filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.major-panel {
  margin-bottom: 14px;
  padding: 0;
}
.major-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.major-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}
.major-head .eyebrow {
  margin-bottom: 7px;
}
.major-list {
  max-height: 264px;
  overflow-y: auto;
}
.major-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 21px;
  border-bottom: 1px solid var(--line);
}
.major-row:last-of-type {
  border-bottom: 0;
}
.major-row[hidden] {
  display: none;
}
.major-row-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.major-row-info strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.major-row-info span {
  color: var(--muted);
  font-size: 11px;
}
.major-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.major-empty {
  margin: 0;
  padding: 16px 21px;
  color: var(--muted);
  font-size: 12px;
}

.ai-match-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 14px;
  border-left: 3px solid var(--green);
}
.ai-match-panel h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}
.ai-match-panel .eyebrow {
  margin-bottom: 7px;
}
.ai-match-panel .muted {
  margin: 0;
}
.ai-reason {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid var(--green);
  background: var(--green-pale);
  font-size: 11px;
  line-height: 1.6;
}

.ai-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.ai-chat-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2980b9, #0073a5 60%, #0b3d5c);
  color: white;
  box-shadow: 0 10px 28px rgba(0, 115, 165, 0.45);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ai-chat-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 115, 165, 0.5);
}
.ai-chat-toggle:focus-visible {
  outline: 3px solid var(--bd-9ee09e, #9ee09e);
  outline-offset: 3px;
}
.ai-chat-toggle .ai-icon-close {
  display: none;
}
.ai-chat.is-open .ai-chat-toggle .ai-icon-chat,
.ai-chat.is-open .ai-chat-toggle .ai-chat-dot {
  display: none;
}
.ai-chat.is-open .ai-chat-toggle .ai-icon-close {
  display: block;
}
.ai-chat-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--bd-ffffff, white);
  border-radius: 50%;
  background: var(--bg-f59e0b, #f59e0b);
}
.ai-chat:not(.is-open) .ai-chat-toggle::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(41, 128, 185, 0.5);
  animation: ai-chat-pulse 2.6s ease-out infinite;
  content: "";
}
@keyframes ai-chat-pulse {
  70%,
  100% {
    box-shadow: 0 0 0 16px rgba(41, 128, 185, 0);
  }
}
.ai-chat-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(0, 115, 165, 0.15);
  border-radius: 20px;
  background: var(--bg-fbfcfe, #fbfcfe);
  box-shadow: 0 24px 70px rgba(10, 40, 70, 0.28);
  transform-origin: bottom right;
  animation: ai-chat-open 0.22s ease-out;
}
.ai-chat-panel[hidden] {
  display: none;
}
@keyframes ai-chat-open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}
.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0073a5, #0b3d5c);
  color: white;
}
.ai-chat-head-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}
.ai-chat-head-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.ai-chat-head-text strong {
  font-size: 14px;
}
.ai-chat-head-text span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.85;
}
.ai-chat-head-text span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee08f;
  content: "";
}
.ai-chat-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.ai-chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  overflow-y: auto;
  background: radial-gradient(
      circle at 100% 0,
      rgba(120, 200, 240, 0.18),
      transparent 45%
    ),
    var(--bg-f3f7fb, #f3f7fb);
  scroll-behavior: smooth;
}
.ai-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: ai-chat-pop 0.2s ease-out;
}
.ai-chat-row--user {
  justify-content: flex-end;
}
@keyframes ai-chat-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.ai-chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--bd-d3e2ee, #d3e2ee);
  border-radius: 50%;
  background: var(--bg-ffffff, white);
}
.ai-chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ai-chat-msg--bot {
  border: 1px solid var(--bd-e0eae2, #e0eae2);
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-ffffff, white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 115, 165, 0.06);
}
.ai-chat-msg--user {
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, #2980b9, #0073a5);
  color: white;
}
.ai-chat-msg a {
  color: var(--tx-0073a5, #0073a5);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-chat-msg.is-error {
  border-color: var(--bd-f0c9bf, #f0c9bf);
  background: var(--bg-fdf0ec, #fdf0ec);
  color: var(--tx-a64f3b, #a64f3b);
}
.ai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 5px 0;
}
.ai-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-8fb89a, #8fb89a);
  animation: ai-chat-bounce 1.1s ease-in-out infinite;
}
.ai-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ai-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ai-chat-bounce {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.ai-chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 14px 12px;
  background: var(--bg-f3f7fb, #f3f7fb);
}
.ai-chat-suggest[hidden] {
  display: none;
}
.ai-chat-suggest button {
  padding: 7px 12px;
  border: 1px solid var(--bd-cddfeb, #cddfeb);
  border-radius: 16px;
  background: var(--bg-ffffff, white);
  color: var(--tx-0073a5, #0073a5);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.ai-chat-suggest button:hover {
  border-color: #0073a5;
  background: var(--bg-eaf5ec, #eaf5ec);
}
.ai-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid var(--bd-e3ebe5, #e3ebe5);
  background: var(--bg-ffffff, white);
}
.ai-chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bd-d9e4ee, #d9e4ee);
  border-radius: 20px;
  outline: none;
  background: var(--bg-f5f8fb, #f5f8fb);
  font: inherit;
  font-size: 13px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.ai-chat-form input:focus {
  border-color: #0073a5;
  background: var(--bg-ffffff, white);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}
.ai-chat-form button {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2980b9, #0073a5);
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.ai-chat-form button:hover:not(:disabled) {
  transform: scale(1.07);
}
.ai-chat-form button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 520px) {
  .ai-chat {
    right: 12px;
    bottom: 12px;
  }
  .ai-chat-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 96px);
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-toggle::after,
  .ai-chat-panel,
  .ai-chat-row,
  .ai-typing i {
    animation: none !important;
  }
}

.ai-button {
  border-color: var(--bd-b5d3e6, #b5d3e6);
  background: var(--bg-eef6fb, #eef6fb);
}
.ai-button--warn {
  border-color: var(--bd-e8b8aa, #e8b8aa);
  background: var(--bg-fdf0ec, #fdf0ec);
  color: var(--tx-a64f3b, #a64f3b);
}
.ai-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.ai-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-score {
  color: var(--tx-0073a5, #0073a5);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}
.ai-score small {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
}
.ai-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-summary,
.ai-note,
.ai-meta,
.ai-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.ai-note {
  padding: 8px 10px;
  border-left: 2px solid #0073a5;
  background: var(--green-pale);
}
.ai-meta,
.ai-empty {
  color: var(--muted);
  font-size: 11px;
}
.ai-original summary {
  color: var(--tx-0073a5, #0073a5);
  font-size: 12px;
  cursor: pointer;
}
.ai-original .plan-text {
  max-height: 200px;
  margin-top: 8px;
  overflow-y: auto;
}
.ai-final-text {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--bg-fbfcfe, #fbfcfe);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}
.ai-list-title {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
}
.ai-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.ai-risk-form {
  margin-left: auto;
}
.member-risk {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-f5f8fb, #f5f8fb);
  font-size: 12px;
  line-height: 1.6;
}
.member-risk--high {
  background: var(--bg-fdf0ec, #fdf0ec);
}
.member-risk--medium {
  background: var(--bg-fbf6e6, #fbf6e6);
}
.member-risk > div {
  display: grid;
  gap: 2px;
}
.member-risk em {
  color: var(--tx-0073a5, #0073a5);
  font-style: normal;
}
.member-risk small {
  color: var(--muted);
  font-size: 10px;
}
.skill-panel {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}
.skill-bars {
  display: grid;
  gap: 8px;
}
.skill-bar {
  display: grid;
  grid-template-columns: minmax(90px, 160px) 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.skill-track {
  height: 10px;
  background: var(--bg-e6efe8, #e6efe8);
}
.skill-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2980b9, #0073a5);
}
.skill-count {
  color: var(--muted);
  text-align: right;
}
.kb-delete-form {
  padding: 0 24px 20px;
}

.modal--wide {
  width: min(680px, calc(100vw - 32px));
}
.skill-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg-fbfcfe, #fbfcfe);
}
.skill-item--rejected {
  opacity: 0.6;
}
.skill-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.skill-item-head strong {
  margin-right: 4px;
  font-size: 14px;
}
.skill-evidence {
  margin: 0;
  padding: 6px 10px;
  border-left: 2px solid #0073a5;
  background: var(--green-pale);
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}
.skill-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.skill-edit summary {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--bg-ffffff, white);
  font-size: 12px;
  cursor: pointer;
}
.skill-edit-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

/* Các nút trong thẻ nhiệm vụ của doanh nghiệp cùng chiều cao, cùng cỡ chữ và thẳng hàng */
.task-company-actions {
  align-items: center;
}
.task-company-actions .task-status-form {
  margin-top: 0;
}
.task-edit-trigger,
.task-card .task-status-form button {
  min-height: 34px;
  padding: 0 12px;
}
.task-edit-trigger {
  border: 1px solid var(--bd-cad6e2, #cad6e2);
  background: var(--bg-ffffff, white);
  color: var(--green);
  font: inherit;
  font-size: 10.9px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.task-edit-trigger:hover {
  background: var(--green-pale);
}

.task-card .task-edit-trigger {
  margin-top: 8px;
}

/* ===== Nhắn tin trực tiếp (kind = messages) ===== */
.chat-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.chat-contacts {
  max-height: 640px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.chat-contact:hover {
  background: var(--bg-f7f9fc, #f7f9fc);
}
.chat-contact.is-active {
  background: var(--green-pale);
}
.chat-contact-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.chat-contact-body strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-contact-body small,
.chat-contact-body em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-contact .nav-count {
  margin-left: 0;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 640px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.chat-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 320px;
  padding: 16px;
  background: var(--bg-fbfcfe, #fbfcfe);
  overflow-y: auto;
}
.chat-day {
  margin: 8px auto 2px;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--bg-edf1f6, #edf1f6);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.chat-message {
  align-self: flex-start;
  max-width: min(70%, 520px);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--bg-ffffff, #fff);
}
.chat-message--mine {
  align-self: flex-end;
  border-color: var(--bd-cfe3d6, #cfe3d6);
  border-radius: 12px 12px 3px 12px;
  background: var(--green-pale);
}
.chat-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.chat-message time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-fbfcfe, #fbfcfe);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: none;
}
.chat-form textarea:focus {
  border-color: var(--green);
  outline: none;
}
.chat-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.chat-empty--center {
  margin: auto;
  text-align: center;
}
@media (max-width: 760px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-contacts {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chat-message {
    max-width: 88%;
  }
}

/* Tệp và ảnh đính kèm trong tin nhắn */
.chat-image {
  display: block;
  margin-bottom: 4px;
}
.chat-image img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.chat-file:hover {
  border-color: var(--green);
}
.chat-file-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.chat-file-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-attach {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-ffffff, #fff);
  color: var(--green);
  cursor: pointer;
}
.chat-attach:hover,
.chat-attach:focus-within {
  border-color: var(--green);
  background: var(--green-pale);
}
.chat-attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.chat-attach .ui-icon {
  width: 18px;
  height: 18px;
}
.chat-compose {
  display: grid;
  flex: 1;
  gap: 6px;
  min-width: 0;
}
.chat-picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
}
.chat-picked[hidden] {
  display: none;
}
.chat-picked span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-picked button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* Thương hiệu Trường Đại học Vinh: logo tròn + tên hai dòng. */
.brand-mark--seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-ffffff, #fff);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-text small {
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
}
.brand--light .brand-text strong,
.brand--light .brand-text small {
  color: #fff;
}/* =====================================================================
   Phân hệ mở rộng (đồ án, đợt, ghép cặp, thống kê...): views/layouts/screens/*.php
   ===================================================================== */
.nav-label--group {
  margin-top: 16px;
  margin-bottom: 6px;
}
.page-wrap > .panel,
.page-wrap > section,
.page-wrap > .x-split,
.page-wrap > .x-actions-row,
.page-wrap > form,
.page-wrap > div {
  margin-bottom: 18px;
}
.x-section {
  display: grid;
  gap: 14px;
}
.x-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.x-actions-row > .action-trigger {
  flex: 1 1 260px;
  width: auto;
  margin: 0;
}
.x-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.x-split > .panel {
  margin: 0;
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workspace-form--plain {
  padding: 0;
  border-top: 0;
}
.x-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
}
.workspace-form .x-check input {
  width: auto;
  min-height: 0;
}
.inline-action button.x-strong {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.inline-action button.x-strong:hover {
  background: var(--brand-deep);
}
td.x-row-actions {
  min-width: 280px;
  white-space: normal;
}
td.x-row-actions > :not(dialog) {
  display: inline-flex;
  min-width: 0;
  margin: 3px 4px 3px 0;
  vertical-align: middle;
}
td.x-row-actions > .table-edit-button {
  align-items: center;
  min-width: 0;
}
tr.is-selected {
  background: var(--green-pale);
}
.x-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.batch-switcher label,
.x-filter label {
  display: grid;
  gap: 5px;
  color: var(--tx-4a5866, #4a5866);
  font-size: 11px;
  font-weight: 600;
}
.batch-switcher select,
.x-filter select,
.x-filter input,
.x-inline-form input,
.x-inline-form select,
.x-select,
.x-small-input {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-fbfcfe, #fbfcfe);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.batch-switcher select {
  min-width: min(420px, 100%);
}
.x-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.table-panel .x-filter {
  border-width: 1px 0;
}
.x-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.x-inline-form input:not([type="hidden"]):not([type="file"]) {
  flex: 1 1 180px;
}
.x-small-input {
  width: 84px;
}
.x-select {
  width: 100%;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-f6f8fb, #f6f8fb);
  color: var(--tx-4a5866, #4a5866);
  font-size: 11px;
}
.chip--active {
  border-color: var(--bd-b5d3e6, #b5d3e6);
  background: var(--green-pale);
  color: var(--green-dark);
}
.chip--warn {
  border-color: var(--bd-f0c9bf, #f0c9bf);
  background: var(--coral-pale);
  color: var(--tx-a64f3b, #a64f3b);
}
.milestone-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 1fr 1fr;
  gap: 10px 12px;
  align-items: end;
}
.milestone-grid strong {
  align-self: center;
  font-size: 12px;
}
.x-card-list {
  display: grid;
  gap: 14px;
}
.x-card-list--grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.x-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--surface);
}
.x-card[hidden] {
  display: none;
}
.x-card-wrap {
  display: grid;
  gap: 8px;
}
.x-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.x-card-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.x-card-tools,
.x-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.x-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.x-text {
  margin: 0;
  color: var(--tx-3d4a58, #3d4a58);
  font-size: 12.5px;
  line-height: 1.65;
}
.x-kv {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 12px;
}
.x-kv dt {
  color: var(--muted);
  font-weight: 600;
}
.x-kv dd {
  margin: 0;
  color: var(--tx-3d4a58, #3d4a58);
  line-height: 1.55;
}
.x-warning {
  padding: 10px 12px;
  border: 1px solid var(--bd-f0d3c9, #f0d3c9);
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  background: var(--bg-fffaf7, #fffaf7);
  color: var(--tx-8a4636, #8a4636);
  font-size: 12px;
  line-height: 1.6;
}
.x-warning ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.x-compact td,
.x-compact th {
  padding: 8px 10px;
  font-size: 11px;
}
.x-compact {
  min-width: 480px;
}
.x-wrap {
  max-width: 360px;
  word-break: break-word;
}
.x-plain-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.x-row-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.x-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}
.x-checklist legend {
  padding: 0 6px;
  color: var(--tx-4a5866, #4a5866);
  font-size: 11px;
  font-weight: 600;
}
.x-details > summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.x-details[open] > summary {
  margin-bottom: 10px;
}
.x-block {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.x-section > .x-block:first-child,
.panel > .x-block:first-child {
  border-top: 0;
  padding-top: 0;
}
.x-block h4,
.x-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.x-submission {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-fbfcfe, #fbfcfe);
}
.x-comment {
  margin: 6px 0;
  padding: 7px 10px;
  border-left: 3px solid var(--bd-b5d3e6, #b5d3e6);
  background: var(--bg-ffffff, #fff);
  font-size: 12px;
  line-height: 1.55;
}
.x-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.x-timeline-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.x-timeline-item--open {
  border-top-color: var(--green);
  background: var(--green-pale);
}
.x-timeline-item--ended {
  border-top-color: var(--yellow);
}
.x-timeline-item .badge {
  justify-self: start;
}
.x-pref-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.x-announcement {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.x-month {
  margin: 8px 0 2px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.x-calendar-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.x-calendar-item.is-past {
  opacity: 0.55;
}
.x-calendar-date {
  display: grid;
  justify-items: center;
  padding: 6px 0;
  border-radius: 6px;
  background: var(--green-pale);
  color: var(--green-dark);
}
.x-calendar-date strong {
  font-size: 18px;
  line-height: 1;
}
.x-calendar-date small {
  font-size: 10px;
}
.x-bars {
  display: grid;
  gap: 8px;
}
.x-bar {
  display: grid;
  grid-template-columns: 130px 1fr 64px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.x-bar-label {
  color: var(--tx-4a5866, #4a5866);
}
.x-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-edf1f6, #edf1f6);
}
.x-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #009fe5);
}
.x-bar strong {
  text-align: right;
}
.x-progress {
  display: grid;
  gap: 6px;
}
.x-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.auth-grid > div {
  display: grid;
  min-width: 0;
}
.auth-register-link {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-register-link a {
  color: var(--green);
  font-weight: 700;
}
@media (max-width: 980px) {
  .x-split,
  .form-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .milestone-grid {
    grid-template-columns: 1fr 1fr;
  }
  .milestone-grid strong {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .x-kv,
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .x-bar {
    grid-template-columns: 90px 1fr 48px;
  }
  .x-pref-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .x-card-head {
    flex-direction: column;
  }
}
/* Sidebar gọn hơn: mục menu thấp hơn, khoảng cách giữa các nhóm nhỏ hơn. */
.sidebar {
  overflow-y: auto;
  padding-top: 18px;
}
.brand {
  margin-bottom: 14px;
}
.workspace-switcher {
  min-height: 48px;
  padding: 6px 9px;
}
.nav-label {
  margin: 12px 8px 4px;
}
.nav-label--group {
  margin-top: 10px;
  margin-bottom: 2px;
}
.primary-nav {
  gap: 1px;
}
.nav-link {
  min-height: 34px;
  gap: 8px;
}
.nav-mark {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.nav-link.is-active::before {
  top: 6px;
  bottom: 6px;
}
.term-card {
  margin-bottom: 10px;
  padding: 9px;
}

/* Menu tài khoản ở thanh trên: mở khi rê chuột hoặc bấm. */
.user-menu {
  position: relative;
}
.user-menu .topbar-user {
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.user-menu:hover .topbar-user,
.user-menu.is-open .topbar-user {
  border-color: var(--line);
  background: var(--surface);
}
.user-menu-caret {
  display: grid;
  color: var(--muted);
  transition: transform 0.16s ease;
}
.user-menu-caret .ui-icon {
  width: 14px;
  height: 14px;
}
.user-menu:hover .user-menu-caret,
.user-menu.is-open .user-menu-caret {
  transform: rotate(180deg);
}
.user-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  display: none;
  width: 240px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 35, 55, 0.16);
}
/* Cầu nối vô hình để chuột đi từ tên xuống menu không bị đóng. */
.user-menu-panel::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}
.user-menu:hover .user-menu-panel,
.user-menu:focus-within .user-menu-panel,
.user-menu.is-open .user-menu-panel {
  display: grid;
  gap: 2px;
}
.user-menu-head {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
}
.user-menu-head strong {
  font-size: 13px;
}
.user-menu-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-panel form {
  margin: 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.user-menu-item .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: var(--green-pale);
  color: var(--green-dark);
}
.user-menu-item--danger:hover {
  background: var(--coral-pale);
  color: #c75f47;
}

/* Form doanh nghiệp đăng ký: rộng hơn, một cột, chia nhóm. */
.auth-form-wrap--wide {
  width: min(100%, 600px);
}
.auth-form--register {
  gap: 18px;
}
.auth-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-fieldset legend {
  padding: 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-field {
  display: grid;
  gap: 6px;
}
.auth-field label {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.auth-field small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.auth-optional {
  color: var(--muted);
  font-weight: 500;
}
.auth-form--register input:not([type="hidden"]) {
  height: 46px;
}

.auth-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.auth-theme-toggle .ui-icon {
  width: 15px;
  height: 15px;
}

/* Dải thông tin đợt thực tập (trang sinh viên): tên đợt + trạng thái từng mốc. */
.batch-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
}
.batch-strip strong {
  margin-right: 4px;
  color: var(--ink);
}
.batch-strip-item {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-eef1f5, #eef1f5);
  color: var(--muted);
}
.batch-strip-item.is-open {
  background: var(--green-pale);
  color: var(--green-dark);
}
.batch-strip-item.is-not_started {
  background: var(--yellow-pale);
  color: var(--tx-87641d, #87641d);
}

/* =====================================================================
   Giao diện tối: theo hệ điều hành, hoặc người dùng chọn (html[data-theme]).
   Các biến --bg-*/--bd-*/--tx-* là phiên bản tối của màu viết cứng trong tệp này.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d151f;
  --surface: #151f2b;
  --ink: #e3eaf2;
  --muted: #8f9db0;
  --line: #263446;
  --green: #2b95cc;
  --green-dark: #8ccdf0;
  --brand-deep: #0d3a57;
  --green-pale: #12324a;
  --coral-pale: #3a231d;
  --yellow-pale: #352d1a;
  --blue-pale: #13304a;
  --bd-9ee09e: #3e683e;
  --bd-b5d3e6: #39505e;
  --bd-b9c8bd: #4d5750;
  --bd-cad6e2: #3d4852;
  --bd-cbd4cc: #474e48;
  --bd-cddfeb: #364753;
  --bd-cfe3d6: #3d4f43;
  --bd-d1e3f0: #314553;
  --bd-d3e2ee: #344451;
  --bd-d9e4ee: #34414d;
  --bd-e0eae2: #3a463c;
  --bd-e1e7df: #3f463c;
  --bd-e3ebe5: #3a443c;
  --bd-e5e9e3: #3e433c;
  --bd-e8b8aa: #644238;
  --bd-e8b9ac: #634138;
  --bd-ebeff4: #323a43;
  --bd-edf0ec: #3a3f38;
  --bd-eed0c8: #573a33;
  --bd-f0c9bf: #5d3a31;
  --bd-f0d3c9: #583b31;
  --bd-f0d9d2: #533932;
  --bd-f4e3dc: #4f382e;
  --bd-ffffff: #333333;
  --bg-7ee08f: #31643a;
  --bg-8fb89a: #475b4c;
  --bg-b9d6c3: #34463a;
  --bg-d1e3f0: #22323d;
  --bg-d8e0e9: #282f37;
  --bg-dcebe1: #27352b;
  --bg-e6efe8: #252f27;
  --bg-eaf5ec: #1f2f22;
  --bg-ebeff4: #21262d;
  --bg-ecefe9: #292d25;
  --bg-ecf0f5: #20262d;
  --bg-edf1eb: #272c24;
  --bg-edf1f6: #1f252d;
  --bg-eef1f5: #21252b;
  --bg-eef6fb: #182731;
  --bg-efb27f: #644428;
  --bg-f2efe5: #312d22;
  --bg-f3f6fa: #1b222b;
  --bg-f3f7fb: #19232d;
  --bg-f4f6f9: #1e2229;
  --bg-f4f9fc: #18252d;
  --bg-f59e0b: #977232;
  --bg-f5f8fb: #1a222b;
  --bg-f6f8fb: #1b2129;
  --bg-f7f9fc: #19202a;
  --bg-fbf6e6: #362f17;
  --bg-fbfcfe: #151c2b;
  --bg-fcfdfe: #172028;
  --bg-fdf0ec: #351c14;
  --bg-ffe6de: #3d1c12;
  --bg-fffaf7: #331c0f;
  --bg-fffefa: #322b0e;
  --bg-ffffff: #1f1f1f;
  --tx-0073a5: #8ed4f2;
  --tx-2e7059: #aed6c8;
  --tx-39463e: #c4cdc8;
  --tx-3d4a58: #bbc4cd;
  --tx-456878: #acc0ca;
  --tx-46564d: #bdc7c2;
  --tx-4a5866: #b6bec6;
  --tx-4b5951: #bcc5c0;
  --tx-55626f: #b2b9c1;
  --tx-59665f: #b7beba;
  --tx-61707f: #abb3bb;
  --tx-69756e: #b0b7b3;
  --tx-7b5a17: #e5d0a5;
  --tx-87641d: #e1cca0;
  --tx-8a4636: #d2aba2;
  --tx-8d3f31: #d5a8a0;
  --tx-a64f3b: #d0a196;
  --tx-aa513d: #cf9f94;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d151f;
    --surface: #151f2b;
    --ink: #e3eaf2;
    --muted: #8f9db0;
    --line: #263446;
    --green: #2b95cc;
    --green-dark: #8ccdf0;
    --brand-deep: #0d3a57;
    --green-pale: #12324a;
    --coral-pale: #3a231d;
    --yellow-pale: #352d1a;
    --blue-pale: #13304a;
    --bd-9ee09e: #3e683e;
    --bd-b5d3e6: #39505e;
    --bd-b9c8bd: #4d5750;
    --bd-cad6e2: #3d4852;
    --bd-cbd4cc: #474e48;
    --bd-cddfeb: #364753;
    --bd-cfe3d6: #3d4f43;
    --bd-d1e3f0: #314553;
    --bd-d3e2ee: #344451;
    --bd-d9e4ee: #34414d;
    --bd-e0eae2: #3a463c;
    --bd-e1e7df: #3f463c;
    --bd-e3ebe5: #3a443c;
    --bd-e5e9e3: #3e433c;
    --bd-e8b8aa: #644238;
    --bd-e8b9ac: #634138;
    --bd-ebeff4: #323a43;
    --bd-edf0ec: #3a3f38;
    --bd-eed0c8: #573a33;
    --bd-f0c9bf: #5d3a31;
    --bd-f0d3c9: #583b31;
    --bd-f0d9d2: #533932;
    --bd-f4e3dc: #4f382e;
    --bd-ffffff: #333333;
    --bg-7ee08f: #31643a;
    --bg-8fb89a: #475b4c;
    --bg-b9d6c3: #34463a;
    --bg-d1e3f0: #22323d;
    --bg-d8e0e9: #282f37;
    --bg-dcebe1: #27352b;
    --bg-e6efe8: #252f27;
    --bg-eaf5ec: #1f2f22;
    --bg-ebeff4: #21262d;
    --bg-ecefe9: #292d25;
    --bg-ecf0f5: #20262d;
    --bg-edf1eb: #272c24;
    --bg-edf1f6: #1f252d;
    --bg-eef1f5: #21252b;
    --bg-eef6fb: #182731;
    --bg-efb27f: #644428;
    --bg-f2efe5: #312d22;
    --bg-f3f6fa: #1b222b;
    --bg-f3f7fb: #19232d;
    --bg-f4f6f9: #1e2229;
    --bg-f4f9fc: #18252d;
    --bg-f59e0b: #977232;
    --bg-f5f8fb: #1a222b;
    --bg-f6f8fb: #1b2129;
    --bg-f7f9fc: #19202a;
    --bg-fbf6e6: #362f17;
    --bg-fbfcfe: #151c2b;
    --bg-fcfdfe: #172028;
    --bg-fdf0ec: #351c14;
    --bg-ffe6de: #3d1c12;
    --bg-fffaf7: #331c0f;
    --bg-fffefa: #322b0e;
    --bg-ffffff: #1f1f1f;
    --tx-0073a5: #8ed4f2;
    --tx-2e7059: #aed6c8;
    --tx-39463e: #c4cdc8;
    --tx-3d4a58: #bbc4cd;
    --tx-456878: #acc0ca;
    --tx-46564d: #bdc7c2;
    --tx-4a5866: #b6bec6;
    --tx-4b5951: #bcc5c0;
    --tx-55626f: #b2b9c1;
    --tx-59665f: #b7beba;
    --tx-61707f: #abb3bb;
    --tx-69756e: #b0b7b3;
    --tx-7b5a17: #e5d0a5;
    --tx-87641d: #e1cca0;
    --tx-8a4636: #d2aba2;
    --tx-8d3f31: #d5a8a0;
    --tx-a64f3b: #d0a196;
    --tx-aa513d: #cf9f94;
  }
}
:root[data-theme="dark"] .button--primary:hover,
:root[data-theme="dark"] .inline-action button.x-strong:hover {
  background: #1d7fb0;
}
:root[data-theme="dark"] img.brand-mark--seal {
  background: #fff;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #66768a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input::placeholder,
  :root:not([data-theme="light"]) textarea::placeholder {
    color: #66768a;
  }
}
.topbar-user strong,
.topbar-user small {
  white-space: nowrap;
}

.x-batch-part[hidden] {
  display: none;
}

/* Hai nút đặt cạnh nhau trong cột thao tác (Duyệt / Trả lại). */
.x-action-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.x-action-pair .inline-action {
  min-width: 0;
}
.x-action-pair > .table-edit-button {
  min-width: 0;
  margin: 0;
}

/* Chuyển vai trò (tài khoản có nhiều vai trò). */
.role-switch {
  position: relative;
}
.role-switch > summary {
  list-style: none;
  cursor: pointer;
}
.role-switch > summary::-webkit-details-marker {
  display: none;
}
.role-switch[open] .switcher-arrow {
  transform: rotate(180deg);
}
.role-switch-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 35, 55, 0.14);
}
.role-switch-menu form {
  margin: 0;
}
.role-switch-menu button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.role-switch-menu button:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* Đăng nhập bằng email trường (SSO). */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}
.auth-sso {
  justify-content: center;
  width: 100%;
}

.x-change {
  margin-top: 2px;
  font-size: 11.5px;
}
.x-change del {
  color: var(--muted);
}
.x-change ins {
  text-decoration: none;
  font-weight: 600;
}

/* Bảng kéo thả kết quả ghép cặp. */
.match-board-wrap {
  margin: 0 18px 18px;
}
.match-board {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 4px;
}
.match-column {
  flex: 0 0 210px;
  min-height: 90px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.match-column.is-over {
  border-color: var(--green);
  background: var(--green-pale);
}
.match-column h4 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
}
.match-column h4 small {
  color: var(--muted);
  font-weight: 500;
}
.match-card {
  margin-bottom: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  cursor: grab;
}
.match-card.is-dragging {
  opacity: 0.5;
}

/* Đề cương tuần và nhóm liên kết giấy tờ. */
.x-week {
  display: grid;
  grid-template-columns: 70px 1fr 1fr auto;
  gap: 8px;
  align-items: start;
  margin: 8px 0;
}
.x-week label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
@media (max-width: 720px) {
  .x-week {
    grid-template-columns: 1fr;
  }
}
.x-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Khung soạn thông báo thu gọn được. */
.x-compose > summary {
  display: grid;
  gap: 2px;
  cursor: pointer;
  list-style: none;
}
.x-compose > summary::-webkit-details-marker {
  display: none;
}
.x-compose[open] > summary {
  margin-bottom: 12px;
}

/* Lịch dạng lưới tháng. */
.x-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.x-month-nav a {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.x-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.x-cal-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.x-cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 64px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
}
.x-cal-day.is-empty {
  border-color: transparent;
}
.x-cal-day.is-today {
  border-color: var(--green);
  background: var(--green-pale);
}
.x-cal-day b {
  color: var(--muted);
  font-weight: 600;
}
.x-cal-event {
  overflow: hidden;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--blue-pale);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.x-cal-event--deadline {
  background: var(--coral-pale);
}
.x-cal-event--defense {
  background: var(--green-pale);
}
.x-cal-event--task {
  background: var(--yellow-pale);
}
@media (max-width: 720px) {
  .x-cal-day {
    min-height: 44px;
  }
  .x-cal-event {
    font-size: 0;
    height: 6px;
  }
}

.x-stack {
  display: grid;
  gap: 18px;
}
