:root {
  --white: #ffffff;
  --ink: #051746;
  --ink-2: #0b2361;
  --rose: #f090b8;
  --rose-soft: #fde8f1;
  --mist: #f6f8fc;
  --line: #e5e9f2;
  --muted: #657085;
  --shadow: 0 18px 45px rgba(5, 23, 70, .12);
}

html { font-size: 14px; }

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fd 44%, #edf2fb 100%);
  color: #1f2937;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.global-training-progress {
  position: fixed;
  z-index: 1080;
  top: .95rem;
  right: 1.25rem;
  left: calc(292px + 1.25rem);
  pointer-events: none;
}

.global-training-progress__content {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(220px, 1.8fr) auto;
  gap: .9rem;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    linear-gradient(135deg, rgba(5, 23, 70, .12), rgba(240, 144, 184, .14));
  box-shadow: 0 20px 50px rgba(5, 23, 70, .18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.global-training-progress__copy {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.global-training-progress__copy strong {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.2;
}

.global-training-progress__copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-training-progress__track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(5, 23, 70, .1);
}

.global-training-progress__bar {
  display: flex;
  width: 0;
  min-width: 2.2rem;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  padding-right: .42rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 62%, var(--rose) 100%);
  color: var(--white);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1;
  transition: width .35s ease;
}

.global-training-progress__actions {
  display: flex;
  gap: .45rem;
  align-items: center;
  white-space: nowrap;
}

a { color: var(--ink-2); }
a:hover { color: var(--ink); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--ink);
  background-attachment: local;
  color: var(--white);
  box-shadow: 10px 0 35px rgba(5, 23, 70, .16);
}

.content-shell {
  min-width: 0;
  padding: 1.5rem;
}

.content-canvas {
  min-height: calc(100vh - 3rem);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mobile-topbar {
  display: none;
}

.side-nav {
  display: flex;
  min-height: calc(100vh - 2.5rem);
  flex-direction: column;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem .5rem 1.35rem;
  color: var(--white);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--white);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(5, 23, 70, .22);
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  letter-spacing: 0;
}

.brand-lockup strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-lockup small {
  margin-top: .18rem;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
}

.nav-section {
  margin-top: .75rem;
}

.nav-section.compact {
  margin-top: .6rem;
}

.nav-section-title {
  display: block;
  margin: 1rem .7rem .4rem;
  color: rgba(255, 255, 255, .54);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.side-link,
.side-cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: .18rem 0;
  padding: .72rem .82rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.side-link:hover,
.side-link:focus,
.side-link.active,
.side-cta:hover,
.side-cta:focus,
.side-cta.active {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transform: translateX(2px);
}

.side-link.active {
  border-color: rgba(255, 255, 255, .24);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

.side-link.active::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.side-cta {
  justify-content: center;
  margin-top: .7rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(5, 23, 70, .18);
}

.side-cta.active {
  background: var(--white);
  color: var(--ink);
}

.logout-link {
  cursor: pointer;
}

.nav-spacer {
  flex: 1;
}

.user-panel {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}

.user-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.user-copy {
  min-width: 0;
}

.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy strong {
  color: var(--white);
  font-size: .92rem;
}

.user-copy span {
  color: rgba(255, 255, 255, .66);
  font-size: .76rem;
}

.page-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.page-heading h1,
.auth-panel h1,
.surface h1,
.surface h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.page-heading h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.55rem);
  font-weight: 800;
}

.page-heading p {
  max-width: 720px;
  margin: .35rem 0 0;
}

.surface,
.auth-panel,
.action-card {
  border: 1px solid rgba(5, 23, 70, .09);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(5, 23, 70, .07);
}

.surface {
  padding: 1.15rem;
}

.auth-panel {
  max-width: 460px;
  margin: 3rem auto;
  padding: 1.5rem;
}

.auth-panel h1 {
  margin-bottom: 1.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.section-heading p {
  margin: .25rem 0 0;
}

.document-upload-progress {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.document-upload-progress strong,
.document-upload-progress span {
  display: block;
}

.document-upload-progress span {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .9rem;
}

.document-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.catalog-page-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.catalog-page-size {
  display: flex;
  flex: 0 0 auto;
  gap: .5rem;
  align-items: center;
}

.catalog-page-size label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-page-size .form-select {
  width: 86px;
}

.catalog-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 34%) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.catalog-panel {
  padding: .8rem;
}

.catalog-items {
  display: flex;
  max-height: calc(100vh - 9rem);
  min-height: 0;
  flex-direction: column;
}

.catalog-panel-header {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}

.catalog-import-button {
  margin-top: .45rem;
  width: 100%;
}

.pagination-strip {
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.pagination-strip .btn {
  min-width: 74px;
}

.catalog-import-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.catalog-panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.catalog-panel-header span {
  color: var(--muted);
  font-size: .78rem;
}

.catalog-search-form {
  margin-bottom: .55rem;
}

.catalog-search-form .input-group {
  min-width: 0;
}

.catalog-search-form .form-control {
  min-width: 0;
}

.compact-grid {
  display: grid;
  gap: .28rem;
}

.compact-grid-head,
.compact-grid-row {
  display: grid;
  gap: .45rem;
  align-items: center;
}

.compact-category-grid .compact-grid-head,
.compact-category-grid .compact-grid-row:not(.edit-row):not(.add-row) {
  grid-template-columns: 1fr auto;
}

.compact-category-grid .edit-row,
.compact-category-grid .add-row {
  grid-template-columns: 82px minmax(110px, 1fr);
}

.compact-item-grid .compact-grid-head,
.compact-item-grid .compact-grid-row {
  grid-template-columns: 94px minmax(130px, 1.05fr) minmax(130px, .8fr) minmax(160px, 1.4fr) auto;
}

.compact-grid-head {
  padding: .35rem .55rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.compact-grid-row {
  min-height: 42px;
  padding: .32rem .42rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.item-list {
  display: grid;
  gap: .42rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: .25rem;
  scrollbar-color: rgba(5, 23, 70, .42) #edf2fb;
  scrollbar-width: thin;
}

.item-list::-webkit-scrollbar {
  width: 9px;
}

.item-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2fb;
}

.item-list::-webkit-scrollbar-thumb {
  border: 2px solid #edf2fb;
  border-radius: 999px;
  background: rgba(5, 23, 70, .5);
}

.item-card {
  display: grid;
  gap: .12rem;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.item-edit-card {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(220px, 1fr);
  gap: .7rem;
  padding: .75rem;
  border: 1px solid rgba(5, 23, 70, .22);
  border-radius: 12px;
  background: #fbfcff;
  box-shadow: 0 10px 22px rgba(5, 23, 70, .08);
}

.item-edit-card label {
  display: grid;
  gap: .28rem;
  min-width: 0;
  margin: 0;
}

.item-edit-card label span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.item-edit-description,
.item-edit-actions {
  grid-column: 1 / -1;
}

.item-edit-description textarea {
  min-height: 68px;
  resize: vertical;
}

.item-main-line {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  min-width: 0;
}

.item-main-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-category-line {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta-line,
.item-detail-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
}

.item-description-line {
  min-width: 0;
  overflow: hidden;
  color: #3f4b5f;
  font-size: .84rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-card-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-grid-row.selected {
  border-color: rgba(5, 23, 70, .28);
  background: #eef3ff;
}

.catalog-row-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: .45rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.catalog-row-link:hover {
  color: inherit;
}

.compact-grid-row strong,
.compact-grid-row span {
  min-width: 0;
}

.mono {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 800;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-field,
.compact-category-grid .row-actions {
  grid-column: 1 / -1;
}

.row-actions {
  display: flex;
  gap: .35rem;
  justify-content: flex-end;
}

.catalog-add-button {
  margin-top: .55rem;
  width: 100%;
}

.form-control-sm,
.form-select-sm {
  min-height: 32px;
  padding: .35rem .52rem;
  border-radius: 9px;
  font-size: .86rem;
}

.action-card {
  position: relative;
  display: block;
  min-height: 145px;
  overflow: hidden;
  padding: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.action-card:hover {
  border-color: rgba(240, 144, 184, .72);
  color: inherit;
  transform: translateY(-2px);
}

.action-card span {
  display: block;
  margin-bottom: .55rem;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.action-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 22rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  box-shadow: 0 10px 22px rgba(5, 23, 70, .16);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--ink);
  background: linear-gradient(135deg, #031033, var(--ink));
}

.btn-outline-primary {
  border-color: rgba(5, 23, 70, .36);
  color: var(--ink);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-success {
  border-color: #176b54;
  background: #176b54;
}

.btn-outline-danger {
  border-color: rgba(240, 144, 184, .9);
  color: #a32558;
}

.btn-outline-danger:hover {
  border-color: #a32558;
  background: #a32558;
}

.form-control,
.form-select {
  border-color: #d8deea;
  border-radius: 12px;
  padding: .68rem .82rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 .22rem rgba(240, 144, 184, .22);
}

.status-check {
  display: flex;
  gap: .55rem;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: .68rem .82rem;
  border: 1px solid #d8deea;
  border-radius: 12px;
  background: #fbfcff;
  color: var(--ink);
  font-weight: 700;
}

.mapping-workspace {
  display: grid;
  gap: 1rem;
}

.mapping-tabs {
  display: flex;
  gap: .35rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mapping-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.mapping-tab:hover {
  color: var(--ink);
}

.mapping-tab.active {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.mapping-grid {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  gap: 1rem;
  min-height: 560px;
}

.mapping-selector,
.mapping-detail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.mapping-selector {
  overflow: hidden;
}

.mapping-panel-head,
.mapping-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 56px;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
}

.mapping-panel-head strong,
.mapping-detail-head h2 {
  color: var(--ink);
}

.mapping-panel-head span {
  display: inline-flex;
  min-width: 2rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}

.mapping-detail-head h2 {
  margin: .1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.mapping-detail-head span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mapping-list {
  display: grid;
  max-height: 620px;
  overflow: auto;
}

.mapping-list-row,
.mapping-assigned-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-height: 62px;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
}

.mapping-list-row {
  color: inherit;
  text-decoration: none;
}

.mapping-list-row:hover,
.mapping-list-row.active {
  background: #fdf2f7;
  color: inherit;
}

.mapping-list-row.active {
  box-shadow: inset 3px 0 0 var(--rose);
}

.mapping-list-row strong,
.mapping-assigned-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-list-row small,
.mapping-assigned-row small {
  display: block;
  overflow: hidden;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  white-space: nowrap;
}

.mapping-row-meta.wide {
  gap: .55rem;
}

.mapping-status,
.mapping-count,
.mapping-discount {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .15rem .48rem;
  font-size: .72rem;
  font-weight: 800;
}

.mapping-status.is-active {
  background: #edf8f4;
  color: #155b48;
}

.mapping-status.is-inactive {
  background: #eef2fb;
  color: var(--muted);
}

.mapping-count {
  min-width: 28px;
  background: var(--ink);
  color: var(--white);
}

.mapping-discount {
  background: var(--rose-soft);
  color: #a32558;
}

.mapping-add {
  border-bottom: 1px solid var(--line);
  background: #fff8fb;
}

.mapping-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  padding: .75rem .85rem;
}

.mapping-table {
  display: grid;
  max-height: 620px;
  overflow: auto;
}

.mapping-assigned-row form {
  margin: 0;
}

.mapping-empty {
  padding: 1.4rem .9rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.mapping-empty.compact {
  padding: .8rem;
  text-align: left;
}

.table {
  margin-bottom: 0;
}

.table td,
.table th {
  vertical-align: middle;
}

.table thead th {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.table tbody tr {
  transition: background .16s ease;
}

.table tbody tr:hover {
  background: #fbf5f9;
}

.alert {
  border-radius: 16px;
}

.alert-success {
  border-color: rgba(23, 107, 84, .22);
  background: #edf8f4;
  color: #155b48;
}

.alert-danger {
  border-color: rgba(163, 37, 88, .22);
  background: var(--rose-soft);
  color: #8b204d;
}

.alert-info {
  border-color: rgba(5, 23, 70, .16);
  background: #eff4ff;
  color: var(--ink);
}

.chat-log {
  display: grid;
  gap: .85rem;
  min-height: 320px;
  background: var(--white);
}

.chat-message {
  max-width: 78%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(5, 23, 70, .06);
}

.chat-message p {
  margin-bottom: 0;
}

.chat-message.customer {
  margin-left: auto;
  border-color: rgba(5, 23, 70, .16);
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--white);
}

.chat-message.bot {
  background: var(--white);
}

.chat-message.systemaction {
  border-color: rgba(240, 144, 184, .48);
  background: var(--rose-soft);
}

.chat-meta {
  margin-bottom: .28rem;
  color: var(--muted);
  font-size: .82rem;
}

.chat-message.customer .chat-meta {
  color: rgba(255, 255, 255, .72);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .5rem;
}

.mobile-nav-panel {
  background: var(--ink);
}

@media (max-width: 991.98px) {
  .global-training-progress {
    top: 4.15rem;
    right: .75rem;
    left: .75rem;
  }

  .global-training-progress__content {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: .8rem;
  }

  .global-training-progress__copy span {
    white-space: normal;
  }

  .global-training-progress__actions {
    justify-content: flex-end;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content-shell {
    padding: 0;
  }

  .mobile-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    background: var(--ink);
    color: var(--white);
  }

  .mobile-brand {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
  }

  .sidebar-toggle {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-weight: 700;
    padding: .45rem .7rem;
  }

  .content-canvas {
    min-height: calc(100vh - 58px);
    padding: 1rem;
    border: 0;
    border-radius: 0;
  }

  .mobile-nav-panel .offcanvas-body {
    padding: 1.25rem;
  }

  .side-nav {
    min-height: calc(100vh - 2.5rem);
  }

  .page-heading {
    display: block;
  }

  .catalog-page-heading {
    display: grid;
    gap: .85rem;
  }

  .catalog-page-size {
    justify-content: space-between;
  }

  .catalog-workspace {
    grid-template-columns: 1fr;
  }

  .mapping-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mapping-list,
  .mapping-table {
    max-height: none;
  }

  .mapping-list-row,
  .mapping-assigned-row,
  .mapping-add-form {
    grid-template-columns: 1fr;
  }

  .mapping-row-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .compact-item-grid .compact-grid-head {
    display: none;
  }

  .compact-item-grid .compact-grid-row {
    grid-template-columns: 1fr;
  }

  .item-edit-card {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 92%;
  }
}
