:root {
  --sidebar-bg: #34445d;
  --sidebar-hover: #2c3b52;
  --sidebar-active: #263549;
  --brand: #5b95f7;
  --brand-deep: #3978e6;
  --brand-soft: #eef5ff;
  --text-1: #25324a;
  --text-2: #60708a;
  --text-3: #93a0b5;
  --line: #e8edf5;
  --panel: #ffffff;
  --bg: #f3f6fb;
  --success: #36b37e;
  --warning: #ffb020;
  --danger: #e84d5b;
  --shadow: 0 12px 30px rgba(37, 50, 74, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 149, 247, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(52, 68, 93, 0.08), transparent 20%),
    var(--bg);
  color: var(--text-1);
}

button,
input {
  font: inherit;
}

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

.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #3f516d 0%, #34445d 48%, #2e3b51 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.brand__seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e6ffd2, #7ab447 58%, #4f7b24 100%);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.brand__title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.nav-group {
  margin-bottom: 12px;
}

.nav-group__title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin: 10px 10px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(91, 149, 247, 0.22), rgba(91, 149, 247, 0.08));
  color: #ffffff;
}

.nav-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.main {
  min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-4);
}

.topbar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(232, 237, 245, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-2) var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.crumbs strong {
  color: var(--text-1);
}

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

.system-link {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #d9e8ff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d6dce7, #b3c0d4);
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-deep);
  background: #f7fbff;
  border: 1px solid #d7e7ff;
  padding: var(--space-1) var(--space-2);
  border-radius: 10px;
  margin: var(--space-2) 0 var(--space-2);
}

.page-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.toolbar__title h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 var(--space-1);
}

.toolbar__title p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.role-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.role-switcher__label {
  font-size: 13px;
  color: var(--text-2);
}

.role-button {
  border: 1px solid #d7e2f4;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-2);
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.role-button.is-active,
.role-button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(57, 120, 230, 0.22);
}

.layout-stack {
  display: grid;
  gap: var(--space-3);
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 237, 245, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__head {
  padding: var(--space-3) var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.panel__title::before {
  content: "";
  width: 5px;
  height: 18px;
  background: linear-gradient(180deg, var(--brand), #8fc0ff);
  border-radius: 999px;
}

.panel__title h2,
.panel__title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.panel__desc,
.panel__link {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.panel__link {
  color: var(--brand-deep);
  font-weight: 600;
}

.user-card {
  padding: 0 var(--space-3) var(--space-3);
}

.user-card__summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  padding-top: var(--space-2);
}

.meta-box,
.status-box {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #eaf0f8;
  border-radius: 16px;
  padding: var(--space-3);
  min-height: 178px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.meta-item span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.meta-item strong {
  font-size: 16px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.mini-tag.level-1 {
  color: #22704b;
  background: #e9f8f0;
}

.mini-tag.level-2 {
  color: #947000;
  background: #fff6d8;
}

.mini-tag.level-3 {
  color: #b95e0f;
  background: #ffe7d5;
}

.mini-tag.level-4 {
  color: #c62828;
  background: #ffe2e5;
}

.mini-tag.normal {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.progress {
  margin-top: var(--space-3);
}

.progress__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.bar {
  width: 100%;
  height: 10px;
  background: #edf2fa;
  border-radius: 999px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #7eb4ff);
  border-radius: inherit;
}

.status-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi-box {
  background: #f7faff;
  border: 1px solid #e5edf8;
  border-radius: 14px;
  padding: 14px;
}

.kpi-box span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.kpi-box strong {
  font-size: 24px;
}

.kpi-box em {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
}

.status-list {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fd;
  border: 1px solid #e8eef9;
}

.status-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.status-chip.success {
  background: #e8f8f1;
  color: #18794e;
}

.status-chip.pending {
  background: #fff5dc;
  color: #9c6c00;
}

.status-chip.locked {
  background: #eef2f8;
  color: #637187;
}

.summary-tip {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(91, 149, 247, 0.1), rgba(91, 149, 247, 0.03));
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-3);
}

.stats-kpi-grid {
  padding: 0 var(--space-3) var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.stats-kpi-card {
  padding: var(--space-3);
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.stats-kpi-card span,
.stats-kpi-card em {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  font-style: normal;
}

.stats-kpi-card strong {
  display: block;
  margin: var(--space-1) 0;
  font-size: 30px;
  line-height: 1.2;
}

.stats-chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3);
}

.stats-chart-layout {
  padding: 0 var(--space-3) var(--space-3);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2);
}

.chart-box {
  min-height: 320px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.chart-box--lg {
  min-height: 360px;
}

.stats-export-card {
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stats-export-card h3 {
  margin: 0;
  font-size: 18px;
}

.stats-export-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.stats-action-list {
  display: grid;
  gap: var(--space-1);
}

.table-wrap {
  padding: 0 var(--space-3) var(--space-3);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2fa;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  color: var(--text-2);
  background: #f8fbff;
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table--compact {
  min-width: 640px;
}

.stats-double-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.feature-card {
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: var(--space-3);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.record-list,
.task-list,
.resource-list,
.exam-points {
  display: grid;
  gap: var(--space-1);
}

.record-item,
.task-item,
.resource-item,
.exam-point {
  padding: 12px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf2f7;
}

.record-item strong,
.task-item strong,
.resource-item strong,
.exam-point strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.record-item span,
.task-item span,
.resource-item span,
.exam-point span {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.meter-box {
  padding: var(--space-2);
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf2f7;
}

.meter-box strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.meter-box span {
  font-size: 13px;
  color: var(--text-2);
}

.tabs {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: 0 var(--space-3) var(--space-3);
  margin-top: var(--space-2);
}

.tab {
  border: none;
  background: #f4f7fb;
  color: var(--text-2);
  min-height: 40px;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

.tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 18px rgba(57, 120, 230, 0.2);
}

.resource-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 var(--space-3) var(--space-3);
}

.resource-column {
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fbfe);
  padding: var(--space-2);
}

.resource-column__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.resource-column__head h3 {
  margin: 0;
  font-size: 17px;
}

.resource-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid #eef3fa;
}

.resource-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-card__meta strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.resource-card__meta p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.resource-card__action {
  flex: 0 0 auto;
  align-self: center;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.video-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-3);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  border: 1px solid #d9e5f4;
  background: #fbfdff;
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
}

.video-grid {
  padding: 0 var(--space-3) var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  background: #fff;
}

.video-cover {
  height: 146px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.08), rgba(16, 24, 40, 0.58));
}

.video-cover > * {
  position: relative;
  z-index: 1;
}

.video-duration {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.video-body {
  padding: var(--space-2);
}

.video-body strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.video-body p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.pager {
  padding: 0 var(--space-3) var(--space-3);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
}

.pager button,
.ghost-button,
.primary-button {
  border-radius: 12px;
  min-height: 40px;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  transition: 0.2s ease;
}

.pager button,
.ghost-button {
  border: 1px solid #d7e2f4;
  background: #fff;
  color: var(--text-2);
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 20px rgba(57, 120, 230, 0.2);
}

.pager button:disabled,
.ghost-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(23, 31, 45, 0.44);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  z-index: 50;
}

.modal {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(18, 28, 45, 0.24);
  overflow: hidden;
}

.modal__head,
.modal__foot {
  padding: var(--space-3);
  border-bottom: 1px solid #edf2f8;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
}

.modal__head h3 {
  margin: 0;
  font-size: 24px;
}

.modal__head p {
  margin: var(--space-1) 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.modal__body {
  padding: var(--space-3);
  display: grid;
  gap: var(--space-3);
}

.close-button {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}

.form-group {
  display: grid;
  gap: var(--space-1);
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.input {
  width: 100%;
  border: 1px solid #d6e1f2;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

.lab-result,
.choice-card {
  border: 1px solid #e3eaf6;
  border-radius: 16px;
  padding: var(--space-2);
  background: #fbfdff;
}

.lab-result h4,
.choice-card h4 {
  margin: 0 0 var(--space-1);
  font-size: 17px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lab-grid div {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f8;
}

.lab-grid span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 6px;
}

.lab-list {
  display: grid;
  gap: var(--space-1);
}

.lab-option {
  width: 100%;
  text-align: left;
  border: 1px solid #e3eaf6;
  background: #fff;
  border-radius: 14px;
  padding: var(--space-2);
  cursor: pointer;
  line-height: 1.6;
}

.lab-option.is-active {
  border-color: #9cc0ff;
  background: #f3f8ff;
}

.inline-check {
  display: flex;
  gap: var(--space-1);
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.modal__foot {
  border-top: 1px solid #edf2f8;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.foot-tip {
  color: var(--text-2);
  font-size: 13px;
}

.button-row {
  display: flex;
  gap: var(--space-1);
}

.empty-state {
  padding: var(--space-4) var(--space-3) var(--space-3);
  text-align: center;
  color: var(--text-3);
}

.empty-state__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(91, 149, 247, 0.14), rgba(91, 149, 247, 0.03)),
    #f7faff;
  position: relative;
}

.empty-state__icon::before,
.empty-state__icon::after {
  content: "";
  position: absolute;
  background: #dce7f8;
}

.empty-state__icon::before {
  width: 44px;
  height: 32px;
  left: 24px;
  top: 28px;
  border-radius: 10px;
}

.empty-state__icon::after {
  width: 20px;
  height: 20px;
  left: 36px;
  top: 16px;
  transform: rotate(18deg);
  border-radius: 4px;
}

@media (max-width: 1440px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .user-card__summary {
    grid-template-columns: 1fr;
  }

  .stats-kpi-grid,
  .stats-chart-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 90px 1fr;
  }

  .brand__title,
  .nav-group__title,
  .nav-item span {
    display: none;
  }

  .brand {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
  }

  .feature-grid,
  .resource-panel,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-chart-grid,
  .stats-double-table,
  .stats-kpi-grid,
  .stats-chart-layout {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .main {
    padding: var(--space-2);
  }

  .topbar,
  .toolbar,
  .panel__head,
  .video-toolbar,
  .modal__head,
  .modal__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .resource-panel,
  .video-grid,
  .lab-grid,
  .stats-double-table,
  .stats-kpi-grid,
  .stats-chart-grid,
  .stats-chart-layout {
    grid-template-columns: 1fr;
  }

  .meta-grid,
  .status-kpi {
    grid-template-columns: 1fr;
  }

  .search-box {
    min-width: 100%;
  }

  .button-row,
  .role-switcher {
    width: 100%;
  }

  .tabs {
    padding-bottom: var(--space-2);
  }
}
