:root {
  --font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --color-bg-desktop: #fbf6f4;
  --color-bg-mobile: #fcf7f5;
  --color-surface: #fffdfc;
  --color-surface-strong: #ffffff;
  --color-text: #241f1f;
  --color-text-secondary: #514848;
  --color-text-muted: #7b7070;
  --color-text-weak: #a09494;
  --color-border: #eedfd9;
  --color-divider: #f4e8e3;
  --color-brand: #c07a86;
  --color-brand-soft: #e8c7c0;
  --color-brand-soft-alt: #f1ddd2;
  --color-success: #7fa27d;
  --color-success-soft: #edf5eb;
  --color-warning: #c9965a;
  --color-warning-soft: #fcf4ea;
  --color-danger: #c56b6b;
  --color-danger-soft: #fff1f1;
  --color-info: #c07a86;
  --color-info-soft: #f8edef;
  --color-neutral: #a09494;
  --shadow-card: 0 8px 20px rgba(192, 122, 134, 0.08);
  --shadow-popup: 0 12px 24px rgba(192, 122, 134, 0.12);
  --radius-input: 10px;
  --radius-card: 14px;
  --radius-panel: 16px;
  --radius-pill: 999px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-bg-desktop);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: var(--color-text);
}

button,
.button-link,
.ghost-button,
.mobile-card-link--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 var(--space-16);
  border-radius: var(--radius-input);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button,
.button-link {
  cursor: pointer;
  background: var(--color-brand);
  color: #fffdfc;
  border-color: var(--color-brand);
  box-shadow: none;
}

button:hover,
.button-link:hover {
  background: #b06c78;
  border-color: #b06c78;
}

button:disabled,
.button-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

.ghost-button,
.mobile-card-link--ghost {
  background: var(--color-surface-strong);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.ghost-button:hover,
.mobile-card-link--ghost:hover {
  border-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.ghost-button.is-active {
  position: relative;
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.ghost-button.is-active::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
}

.action-prompt {
  position: fixed;
  z-index: 1600;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(255, 253, 252, 0.98);
  box-shadow: var(--shadow-popup);
}

.action-prompt__message {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.action-prompt__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.action-prompt__button {
  min-width: 72px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface-strong);
  padding: 0 var(--space-12);
  height: 36px;
}

select[multiple] {
  height: auto;
  min-height: 128px;
  padding-top: 8px;
  padding-bottom: 8px;
}

input[type="file"][accept*="image"],
input[type="file"][accept*="video"] {
  padding: 6px 8px;
  height: auto;
  min-height: 36px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-muted);
}

input[type="file"][accept*="image"]::file-selector-button,
input[type="file"][accept*="video"]::file-selector-button {
  margin-right: 10px;
  padding: 0 12px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f7efeb;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

input[type="file"][accept*="image"]::-webkit-file-upload-button,
input[type="file"][accept*="video"]::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 0 12px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f7efeb;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

input[type="file"][accept*="image"]:hover::file-selector-button,
input[type="file"][accept*="video"]:hover::file-selector-button,
input[type="file"][accept*="image"]:hover::-webkit-file-upload-button,
input[type="file"][accept*="video"]:hover::-webkit-file-upload-button {
  border-color: var(--color-brand-soft);
  color: var(--color-brand);
  background: #fbf3f0;
}

.file-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
}

.file-picker-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-control__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 92px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #f7efeb;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.file-picker-control__text {
  min-width: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.upload-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}

.upload-media-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.upload-media-card__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.upload-preview-window {
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fdf7f5;
  overflow: hidden;
}

.upload-preview-window__placeholder {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed #e6d1cb;
  border-radius: 10px;
  background: #fffaf8;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}

.upload-preview-list {
  display: grid;
  gap: 8px;
}

.upload-preview-list--image {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-preview-list--video {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-preview-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-preview-item img,
.upload-preview-item video {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1e5e1;
}

.upload-preview-item video {
  height: 94px;
}

.upload-preview-item span {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-window__more {
  font-size: 11px;
  color: var(--color-text-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  font-size: 12px;
  opacity: 1;
}

select.is-placeholder {
  color: var(--color-text-muted);
  font-size: 12px;
}

select:not(.is-placeholder) {
  color: var(--color-text-secondary);
}

textarea {
  min-height: 88px;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(192, 122, 134, 0.12);
}

label {
  color: var(--color-text-secondary);
}

label > span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: var(--space-24);
}

.page-shell--front,
.page-shell--admin {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-24);
  align-items: start;
}

.page-shell--admin {
  grid-template-columns: 120px minmax(0, 1fr);
}

.page-shell--front > .page-header,
.page-shell--admin > .admin-header {
  position: sticky;
  top: var(--space-24);
  z-index: 20;
  align-self: start;
  display: grid;
  gap: var(--space-24);
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.page-shell--front > :not(.page-header),
.page-shell--admin > :not(.admin-header) {
  grid-column: 2;
}

.page-shell--mobile,
.page-shell--plain {
  max-width: 1120px;
}

.page-shell--mobile {
  width: 100%;
  max-width: none;
  padding: clamp(10px, 2vw, 24px);
}

.page-shell--mobile .mobile-header,
.page-shell--mobile .page-content {
  width: 100%;
  min-width: 0;
}

.page-shell--mobile .page-content > *,
.page-shell--mobile .mobile-section,
.page-shell--mobile .list-stack,
.page-shell--mobile .stack-form,
.page-shell--mobile .table-wrap {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.page-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-shell--front > .page-content,
.page-shell--admin > .page-content {
  grid-column: 2;
}

.page-header,
.admin-header,
.mobile-header {
  margin-bottom: 12px;
}

.mobile-header {
  display: grid;
  gap: var(--space-16);
  padding: var(--space-20);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.brand-block {
  display: grid;
  gap: var(--space-8);
}

.mobile-header .brand-block {
  justify-items: center;
  text-align: center;
}

.brand-block h1,
.brand-block h2,
.brand-block p {
  margin: 0;
}

.brand-text--locked {
  display: inline-block;
  white-space: nowrap;
  unicode-bidi: isolate;
  letter-spacing: 0.04em;
}

.brand-block h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
  letter-spacing: 0.02em;
}

.brand-block h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
}

.brand-block p {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.page-shell--admin .admin-header {
  gap: var(--space-16);
  padding: var(--space-16) var(--space-12);
}

.page-shell--admin .brand-block h1 {
  font-size: 18px;
  line-height: 1.15;
}

.page-shell--admin .brand-block p {
  font-size: 13px;
}

.page-shell--admin .brand-block {
  text-align: center;
}

.front-nav,
.admin-nav {
  display: grid;
  gap: var(--space-8);
}

.front-nav > a,
.admin-nav > a,
.front-nav > form,
.admin-nav > form {
  width: 100%;
}

.front-nav .ghost-button,
.admin-nav .ghost-button,
.front-nav form button,
.admin-nav form button {
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  font-size: 13px;
}

.admin-nav__label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.front-nav form button,
.admin-nav form button {
  background: var(--color-surface-strong);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.front-nav form button:hover,
.admin-nav form button:hover {
  color: var(--color-brand);
  border-color: var(--color-brand-soft);
  background: var(--color-surface-strong);
}

.page-shell--admin .admin-nav .ghost-button,
.page-shell--admin .admin-nav form button {
  min-width: 0;
  height: 34px;
  padding: 0 var(--space-8);
  font-size: 12px;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
  transform: none;
}

.page-shell--admin .admin-nav .ghost-button.is-active::before {
  left: 10px;
}

.page-shell--admin .admin-nav .ghost-button:active,
.page-shell--admin .admin-nav form button:active {
  transform: none;
}

.page-shell--admin .admin-nav .ghost-button.is-pending {
  opacity: 0.9;
}

.page-shell--admin {
  gap: var(--space-16);
}

.page-shell--admin > .admin-header {
  top: var(--space-16);
  gap: var(--space-12);
  padding: 14px 12px;
  border-radius: 14px;
}

.page-shell--admin .page-content {
  gap: var(--space-12);
  transition: opacity 0.12s ease;
}

.page-shell--admin .notice-banner {
  margin-bottom: var(--space-12);
  padding: 8px 12px;
  border-radius: 12px;
}

.page-shell--admin .hero-block,
.page-shell--admin .panel,
.page-shell--admin .admin-card {
  box-shadow: 0 4px 12px rgba(192, 122, 134, 0.05);
}

html.page-is-navigating,
body.page-is-navigating {
  background: var(--color-bg-desktop);
}

html.page-is-navigating .page-shell--admin,
body.page-is-navigating .page-shell--admin {
  background: transparent;
}

body.page-is-navigating .page-shell--admin > .admin-header,
body.page-is-navigating .page-shell--admin .page-content,
body.page-is-navigating .page-shell--admin .panel,
body.page-is-navigating .page-shell--admin .hero-block,
body.page-is-navigating .page-shell--admin .admin-card {
  visibility: visible;
}

body.page-is-navigating .page-shell--admin .page-content {
  opacity: 0.96;
}

.page-shell--admin .hero-block {
  margin-bottom: 0;
  padding: 12px 14px;
  gap: 8px;
  border-radius: 14px;
}

.page-shell--admin .hero-block h2 {
  font-size: 18px;
  line-height: 1.25;
}

.page-shell--admin .hero-block p:not(.page-eyebrow) {
  font-size: 12px;
  line-height: 1.4;
}

.page-shell--admin .hero-actions {
  gap: 8px;
}

.page-shell--admin .hero-actions .ghost-button {
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.page-shell--admin .page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-shell--admin .panel {
  padding: 14px;
  border-radius: 14px;
}

.page-shell--admin .admin-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
}

.page-shell--admin .section-title {
  gap: 2px;
  margin-bottom: 10px;
}

.page-shell--admin .section-title h3 {
  font-size: 14px;
  line-height: 1.3;
}

.page-shell--admin .section-title p,
.page-shell--admin .muted,
.page-shell--admin .helper-text,
.page-shell--admin .admin-card p,
.page-shell--admin .course-meta {
  font-size: 11px;
  line-height: 1.4;
}

.page-shell--admin .inline-actions,
.page-shell--admin .form-actions,
.page-shell--admin .course-meta,
.page-shell--admin .status-inline,
.page-shell--admin .front-home-stats-inline {
  gap: 8px;
}

.page-shell--admin .front-home-stats-inline span {
  min-height: 24px;
  padding: 0 8px;
  gap: 6px;
  font-size: 11px;
}

.page-shell--admin .front-home-stats-inline strong {
  font-size: 15px;
  line-height: 1;
}

.page-shell--admin .stats-grid,
.page-shell--admin .course-grid,
.page-shell--admin .homework-grid,
.page-shell--admin .two-column {
  gap: 12px;
}

.page-shell--admin .dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.page-shell--admin section.dashboard-three-column {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.page-shell--admin section.dashboard-three-column > article {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.page-shell--admin .two-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.page-shell--admin .two-column > * {
  align-self: start;
}

.page-shell--admin .stat-panel {
  gap: 4px;
}

.page-shell--admin .dashboard-stat-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

.page-shell--admin .dashboard-stat-card .stat-card__label,
.page-shell--admin .dashboard-stat-card .stat-card__value,
.page-shell--admin .dashboard-stat-card .stat-card__hint {
  margin: 0;
}

.page-shell--admin .dashboard-stat-card .stat-card__label {
  flex: 0 0 auto;
}

.page-shell--admin .dashboard-stat-card .stat-card__value {
  flex: 0 0 auto;
}

.page-shell--admin .dashboard-stat-card .stat-card__hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-shell--admin .dashboard-stat-card .ghost-button {
  margin-left: auto;
  min-width: 0;
  padding: 0 8px;
}

.page-shell--admin .stat-card__label,
.page-shell--admin .stat-card__hint {
  font-size: 11px;
}

.page-shell--admin .stat-card__value {
  font-size: 16px;
  line-height: 1.1;
}

.page-shell--admin .list-stack,
.page-shell--admin .stack-form {
  gap: 10px;
}

.page-shell--admin .form-grid,
.page-shell--admin .filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.page-shell--admin .filter-grid--toolbar {
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, 1fr)) auto;
}

.page-shell--admin .filter-grid--toolbar--single {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.page-shell--admin label > span {
  font-size: 11px;
}

.page-shell--admin input:not([type="checkbox"]),
.page-shell--admin select,
.page-shell--admin textarea,
.page-shell--admin button,
.page-shell--admin .button-link,
.page-shell--admin .ghost-button {
  font-size: 12px;
}

.page-shell--admin input:not([type="checkbox"]),
.page-shell--admin select,
.page-shell--admin button,
.page-shell--admin .button-link,
.page-shell--admin .ghost-button {
  height: 36px;
}

.page-shell--admin select[multiple] {
  height: 96px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-shell--admin .admin-form-grid select[multiple],
.page-shell--admin .form-grid select[multiple] {
  min-height: 96px;
}

.page-shell--admin textarea {
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-shell--admin .table-wrap {
  border-radius: 12px;
}

.page-shell--admin th,
.page-shell--admin td {
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
}

.page-shell--admin th {
  height: 42px;
}

.page-shell--admin td {
  min-height: 44px;
}

.page-shell--admin .table-wrap button,
.page-shell--admin .table-wrap .ghost-button,
.page-shell--admin td button,
.page-shell--admin td .ghost-button {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.page-shell--admin .table-wrap input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0 auto;
  display: block;
}

.page-shell--admin .table-wrap td .inline-actions,
.page-shell--admin .table-wrap th .inline-actions {
  justify-content: center;
}

.page-shell--admin .filter-grid,
.page-shell--admin .form-grid {
  gap: 12px;
}

.page-shell--admin .form-actions.full-span,
.page-shell--admin .inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-shell--admin .form-actions.full-span {
  justify-content: flex-start;
}

.page-shell--admin .inline-actions--manager {
  justify-content: flex-start;
}

.page-shell--admin .inline-actions--manager select {
  min-width: 220px;
}

.page-shell--admin .admin-action-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(520px, 100%);
  align-items: center;
}

.page-shell--admin .admin-action-pair > * {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.page-shell--admin .admin-action-pair select,
.page-shell--admin .admin-action-pair button,
.page-shell--admin .admin-action-pair .ghost-button {
  width: 100%;
  min-width: 0;
}

.page-shell--admin .form-actions.full-span .ghost-button,
.page-shell--admin .form-actions.full-span button,
.page-shell--admin .inline-actions .ghost-button,
.page-shell--admin .inline-actions button,
.page-shell--admin .inline-actions select {
  width: auto;
  min-width: 112px;
}

.page-shell--admin .pagination-bar {
  margin-top: 12px;
  gap: 10px;
}

.page-shell--admin .empty-block {
  padding: 14px;
  border-radius: 12px;
  font-size: 11px;
}

.page-shell--admin .dashboard-scroll-list {
  height: 212px;
  overflow-y: scroll;
  padding-right: 6px;
  align-content: start;
  scrollbar-gutter: stable;
}

.page-shell--admin .dashboard-scroll-list__item {
  min-height: 64px;
  gap: 4px;
}

.page-shell--admin .dashboard-scroll-list__item strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.3;
}

.page-shell--admin .dashboard-scroll-list__item .course-meta,
.page-shell--admin .dashboard-scroll-list__item .muted {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1.25;
}

.page-shell--admin .dashboard-scroll-list::-webkit-scrollbar {
  width: 8px;
}

.page-shell--admin .dashboard-scroll-list::-webkit-scrollbar-track {
  background: #f8f1ee;
  border-radius: 999px;
}

.page-shell--admin .dashboard-scroll-list::-webkit-scrollbar-thumb {
  background: #dfc2bc;
  border-radius: 999px;
}

.page-shell--admin .dashboard-scroll-list::-webkit-scrollbar-thumb:hover {
  background: #cfa69d;
}

.page-shell--admin .publish-hub-intro {
  padding: 14px 16px;
}

.page-shell--admin .publish-hub-stack {
  display: grid;
  gap: 12px;
}

.page-shell--admin .publish-module {
  display: grid;
  gap: 10px;
}

.page-shell--admin .publish-module__header {
  display: grid;
  gap: 8px;
}

.page-shell--admin .publish-module__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.page-shell--admin .publish-module__title-row h3,
.page-shell--admin .publish-module__title-row .publish-module__summary,
.page-shell--admin .publish-module__title-row .publish-module__meta {
  margin: 0;
}

.page-shell--admin .publish-module__title-row h3 {
  font-size: 16px;
  color: var(--color-brand);
}

.page-shell--admin .publish-module__summary,
.page-shell--admin .publish-module__meta {
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.page-shell--admin .publish-module__meta strong {
  color: var(--color-text);
}

.page-shell--admin .publish-module__actions {
  gap: 8px;
}

.page-shell--admin .publish-module__detail-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.page-shell--admin .publish-module__detail-list {
  height: 184px;
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
  scrollbar-gutter: stable;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 8px;
  background: #fffdfc;
}

.page-shell--admin .publish-module__detail-list .admin-card {
  gap: 4px;
}

.page-shell--admin .publish-module__detail-list .admin-card strong,
.page-shell--admin .publish-module__detail-list .admin-card .muted {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-shell--admin .admin-edit-form {
  gap: 16px;
  margin-top: 14px;
}

.page-shell--admin .admin-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.96) 0%, #fff 100%);
}

.page-shell--admin .admin-form-section__header {
  display: grid;
  gap: 4px;
}

.page-shell--admin .admin-form-section__header h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.page-shell--admin .admin-form-section__header p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.page-shell--admin .admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.page-shell--admin .admin-form-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell--admin .admin-form-grid label {
  display: grid;
  gap: 8px;
}

.page-shell--admin .admin-form-grid label > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.page-shell--admin .admin-form-grid textarea {
  min-height: 96px;
}

.page-shell--admin .admin-form-grid .admin-textarea--compact {
  min-height: 32px;
  height: 32px;
  padding-top: 7px;
  padding-bottom: 7px;
  resize: none;
}

.page-shell--admin .admin-form-note {
  margin: 0;
}

.page-shell--admin .admin-checkbox-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.page-shell--admin .admin-checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.page-shell--admin .admin-checkbox-inline span {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.page-shell--admin .admin-form-actions {
  margin-top: 4px;
}

.page-shell--admin .publish-module__detail-list .admin-card strong {
  font-size: 12px;
}

.page-shell--admin .publish-module__detail-list .admin-card .muted {
  font-size: 11px;
}

.page-shell--admin .publish-module__detail-list::-webkit-scrollbar {
  width: 8px;
}

.page-shell--admin .publish-module__detail-list::-webkit-scrollbar-track {
  background: #f8f1ee;
  border-radius: 999px;
}

.page-shell--admin .publish-module__detail-list::-webkit-scrollbar-thumb {
  background: #dfc2bc;
  border-radius: 999px;
}

.page-shell--admin .publish-module__detail-list::-webkit-scrollbar-thumb:hover {
  background: #cfa69d;
}

.page-shell--admin .admin-project-switcher {
  padding: 12px 14px;
}

.page-shell--admin .admin-project-switcher--compact {
  padding: 10px 12px;
}

.page-shell--admin .panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-shell--admin .panel-toolbar__main {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.page-shell--admin .panel-toolbar__actions {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.page-shell--admin .panel-toolbar__actions .ghost-button,
.page-shell--admin .panel-toolbar__actions button {
  min-width: 112px;
}

.page-shell--admin .admin-edit-toolbar__stats {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.page-shell--admin .admin-edit-toolbar--single-line {
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-shell--admin .admin-edit-toolbar__line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.page-shell--admin .admin-edit-toolbar__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.page-shell--admin .admin-edit-toolbar__summary {
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-shell--admin .admin-edit-toolbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #f3e8e4;
  border: 1px solid #ead8d2;
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.page-shell--admin .admin-edit-toolbar__meta strong {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--color-text);
}

@media (max-width: 1080px) {
  .page-shell--admin .panel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell--admin .panel-toolbar__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-shell--admin .admin-edit-toolbar__stats {
    justify-content: flex-start;
  }

  .page-shell--admin .admin-edit-toolbar__line {
    gap: 10px;
  }

  .page-shell--admin .admin-action-pair {
    width: 100%;
  }
}

.page-shell--admin .admin-project-switcher__subtabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-shell--admin .admin-project-switcher__subtabs .ghost-button {
  min-width: 92px;
  min-height: 34px;
  font-size: 12px;
}

.page-shell--admin .platform-settings-hero {
  display: grid;
  gap: 10px;
}

.page-shell--admin .platform-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.page-shell--admin .platform-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: stretch;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.98) 0%, #fff 100%);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(192, 122, 134, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-shell--admin .platform-settings-card:hover {
  transform: translateY(-1px);
  border-color: var(--color-brand-soft);
  box-shadow: 0 8px 18px rgba(192, 122, 134, 0.08);
}

.page-shell--admin .platform-settings-card--accent {
  background: linear-gradient(180deg, rgba(248, 237, 239, 0.88) 0%, #fff 100%);
}

.page-shell--admin .platform-settings-card__main {
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-shell--admin .platform-settings-card__eyebrow {
  font-size: 11px;
  line-height: 1.2;
  color: var(--color-brand);
  letter-spacing: 0.04em;
}

.page-shell--admin .platform-settings-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.page-shell--admin .platform-settings-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.page-shell--admin .platform-settings-card__side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-left: 1px solid var(--color-divider);
}

.page-shell--admin .platform-settings-card__side strong {
  font-size: 24px;
  line-height: 1;
  color: var(--color-text);
  font-weight: 700;
}

.page-shell--admin .platform-settings-card__side span {
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-muted);
  text-align: center;
}

.page-shell--admin .platform-settings-card__side em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: #f7eeea;
  color: var(--color-brand);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .page-shell--admin .platform-settings-card {
    grid-template-columns: 1fr;
  }

  .page-shell--admin .platform-settings-card__side {
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    border-left: 0;
    border-top: 1px solid var(--color-divider);
    padding: 10px 0 0;
  }
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: stretch;
}

.mobile-nav .ghost-button,
.mobile-nav form,
.mobile-nav form button {
  min-width: 0;
  width: 100%;
}

.mobile-nav .ghost-button,
.mobile-nav form button {
  height: 40px;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0;
}

.mobile-nav .ghost-button.is-active::before {
  display: none;
}

.mobile-nav form button {
  width: 100%;
  background: var(--color-surface-strong);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.notice-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: 0 0 var(--space-20);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-panel);
  border: 1px solid var(--color-border);
  background: var(--color-info-soft);
  color: var(--color-text-secondary);
}

.notice-banner strong {
  font-size: 12px;
  font-weight: 600;
}

.notice-banner--success {
  border-color: rgba(127, 162, 125, 0.28);
  background: var(--color-success-soft);
  color: #4f674d;
}

.notice-banner--warning {
  border-color: rgba(201, 150, 90, 0.3);
  background: var(--color-warning-soft);
  color: #7f5b30;
}

.notice-banner--error {
  border-color: rgba(197, 107, 107, 0.3);
  background: var(--color-danger-soft);
  color: #8a5555;
}

.hero-block,
.mobile-hero {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
  padding: var(--space-24);
  background:
    radial-gradient(circle at top right, rgba(232, 199, 192, 0.45), transparent 32%),
    linear-gradient(180deg, #fffdfc 0%, #fdf6f3 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.hero-block--compact {
  padding: var(--space-16);
  gap: var(--space-8);
}

.hero-block--micro {
  padding: 12px 16px;
  gap: 4px;
}

.hero-block--micro .page-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-block--micro h2 {
  font-size: 14px;
  line-height: 1.25;
}

.hero-block--homeworks {
  padding: 10px 14px;
  gap: 6px;
}

.hero-block--homeworks p:not(.page-eyebrow) {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.hero-block--homeworks .hero-actions {
  gap: 8px;
}

.hero-block--homeworks .ghost-button {
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.hero-block--homeworks h2,
.hero-block--my-learning h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-block--admin-summary {
  padding: 12px 16px;
  gap: 8px;
}

.hero-block--admin-summary p:not(.page-eyebrow) {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.hero-block--admin-summary .hero-actions {
  gap: 8px;
}

.hero-block--admin-summary .ghost-button {
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.hero-block--front-home {
  padding: 10px 14px;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-block--front-home p:not(.page-eyebrow) {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.hero-block--front-home .hero-actions {
  gap: 8px;
}

.hero-block--front-home .ghost-button {
  min-width: 64px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.hero-block--course-detail {
  padding: 8px 14px;
  gap: 2px;
  min-height: 0;
}

.hero-block--course-detail h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.hero-block--course-detail .course-detail-summary {
  margin: 0;
  gap: 2px 10px;
  font-size: 13px;
  line-height: 1.35;
}

.hero-block--course-detail .course-detail-summary span {
  font-size: 13px;
}

.hero-block--learning-featured,
.mobile-hero--learning-featured {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 8px 14px;
  gap: 0;
}

.hero-block--learning-featured h2,
.mobile-hero--learning-featured h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.hero-block h2,
.panel h2,
.mobile-hero h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.section-title h2,
.section-title h3,
.section-title p {
  margin: 0;
}

.section-title h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.section-title--brand h3 {
  color: var(--color-brand);
}

.section-title p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.page-eyebrow,
.mobile-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--color-brand);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.text-danger {
  color: #c96a72;
}

.panel,
.mobile-section,
.course-card,
.mobile-course-card,
.homework-card,
.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.panel,
.mobile-section {
  padding: 14px;
}

.course-card,
.homework-card,
.admin-card {
  padding: var(--space-16);
  border-radius: var(--radius-card);
}

.mobile-course-card {
  padding: var(--space-16);
  border-radius: 12px;
}

.course-grid,
.homework-grid,
.two-column {
  display: grid;
  gap: var(--space-16);
}

.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.homework-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.front-task-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.front-task-table {
  width: 100%;
  border-collapse: collapse;
}

.front-task-table th,
.front-task-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-divider);
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
}

.front-task-table th {
  background: rgba(247, 238, 234, 0.7);
  color: var(--color-text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.front-task-table tbody tr:last-child td {
  border-bottom: 0;
}

.front-task-table td:first-child {
  min-width: 240px;
  text-align: left;
}

.front-task-table td strong,
.front-task-table td span {
  display: block;
}

.front-task-table td span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.mobile-task-record {
  gap: 6px;
  padding: 8px 10px;
}

.mobile-task-record__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-task-record h3 {
  font-size: 13px;
}

.mobile-task-record .mobile-meta-line,
.mobile-task-record .mobile-card-actions {
  font-size: 11px;
  line-height: 1.3;
}

.mobile-task-record .mobile-card-actions {
  margin-top: 0;
}

.mobile-course-card--recommended {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}

.mobile-course-card--recommended h3 {
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.mobile-course-card--recommended .mobile-meta-line,
.mobile-course-card--recommended p,
.mobile-course-card--recommended .mobile-card-actions {
  font-size: 11px;
  line-height: 1.3;
}

.mobile-course-card--recommended .mobile-meta-line--recommended {
  gap: 6px;
}

.mobile-course-card--recommended .mobile-card-actions--recommended-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-course-card--recommended .mobile-card-actions {
  justify-content: flex-end;
  gap: 0;
}

.mobile-course-card--recommended .mobile-card-actions--recommended-main h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-course-card--recommended .mobile-card-actions--recommended {
  align-items: center;
}

.mobile-course-card--recommended .ghost-button {
  min-width: 60px;
  height: 26px;
  padding: 0 7px;
  font-size: 10px;
}

.ghost-button--mini {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.two-column--compact {
  gap: var(--space-8);
}

.panel--tight {
  padding: 10px 12px;
}

.course-card,
.homework-card,
.mobile-course-card {
  display: grid;
  gap: var(--space-12);
}

.course-card h3,
.homework-card h3,
.mobile-course-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.course-card p,
.homework-card p,
.mobile-course-card p,
.panel p,
.mobile-section p,
.admin-card p {
  margin: 0;
}

.hero-block p,
.mobile-hero p {
  font-size: 14px;
  line-height: 1.5;
}

.course-card-top,
.course-footer,
.course-meta,
.mobile-meta-line,
.mobile-course-badges,
.inline-actions,
.form-actions,
.mobile-card-actions,
.mobile-filter-summary,
.front-home-stats-inline,
.mobile-summary-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.course-meta,
.mobile-meta-line,
.mobile-card-actions {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.course-footer,
.form-actions,
.mobile-card-actions {
  justify-content: space-between;
}

.front-home-stats-inline span,
.mobile-summary-inline span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 32px;
  padding: 0 var(--space-12);
  border-radius: var(--radius-pill);
  background: #f7eeea;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.front-home-stats-inline strong,
.mobile-summary-inline strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.mobile-hero--summary {
  padding: 10px 12px;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-hero--summary h2 {
  font-size: 16px;
  line-height: 1.25;
}

.mobile-hero--summary p.muted,
.mobile-hero--summary p:not(.mobile-kicker) {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.mobile-hero--summary .mobile-action-row {
  gap: 8px;
}

.mobile-summary-inline--uniform {
  gap: 6px;
}

.mobile-summary-inline--uniform span {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  gap: 4px;
  color: #8f7f7c;
}

.mobile-summary-inline--uniform strong {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: inherit;
}

.mobile-section--summary-compact {
  padding: 12px 14px;
}

.mobile-section--summary-compact .section-title {
  gap: 2px;
  margin-bottom: 10px;
}

.mobile-section--summary-compact .section-title h3 {
  font-size: 13px;
  line-height: 1.25;
}

.mobile-section--summary-compact .section-title p {
  font-size: 10px;
  line-height: 1.35;
}

.mobile-section--summary-compact .mobile-summary-inline--uniform {
  gap: 5px;
}

.mobile-section--summary-compact .mobile-summary-inline--uniform span {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10px;
  gap: 3px;
  color: #8f7f7c;
}

.mobile-section--summary-compact .mobile-summary-inline--uniform strong {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: inherit;
}

.mobile-section--latest-compact {
  padding: 12px 14px;
}

.mobile-section--latest-compact .section-title {
  gap: 2px;
  margin-bottom: 10px;
}

.mobile-section--latest-compact .section-title h3 {
  font-size: 13px;
  line-height: 1.25;
}

.mobile-section--latest-compact .section-title p {
  font-size: 10px;
  line-height: 1.35;
}

.mobile-course-card--latest {
  gap: 6px;
  padding: 10px 12px;
}

.mobile-course-card--latest .mobile-course-badges {
  gap: 10px;
}

.mobile-course-card--latest h3 {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.mobile-course-card--latest .mobile-meta-line,
.mobile-course-card--latest .mobile-card-actions {
  font-size: 10px;
  line-height: 1.3;
  gap: 8px;
}

.mobile-course-card--latest .mobile-meta-line {
  flex-wrap: nowrap;
}

.mobile-course-card--latest .mobile-card-actions {
  margin-top: 0;
}

.mobile-course-card--latest .mobile-card-link--ghost {
  min-width: 64px;
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.list-stack--mobile-latest-courses {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.front-home-stats-inline--compact {
  gap: var(--space-8);
}

.front-home-stats-inline--compact span {
  min-height: 24px;
  padding: 0 10px;
  gap: 6px;
  font-size: 11px;
}

.front-home-stats-inline--compact strong {
  font-size: 18px;
  line-height: 1;
}

.front-home-stats-inline--uniform {
  gap: 6px;
}

.front-home-stats-inline--uniform span {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  gap: 4px;
}

.front-home-stats-inline--uniform strong {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.front-home-stats-inline--dark span {
  background: #f3e8e4;
  border: 1px solid #ead8d2;
  color: var(--color-text-secondary);
}

.front-home-stats-inline--dark strong {
  color: var(--color-text);
}

.stat-chip--danger,
.stat-chip--danger strong {
  color: var(--color-danger) !important;
}

.front-home-stats-inline--dense {
  gap: var(--space-8);
}

.front-home-stats-inline--dense span {
  min-height: 24px;
  padding: 0 8px;
  gap: 6px;
  font-size: 11px;
}

.front-home-stats-inline--dense strong {
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.panel--compact-overview,
.panel--compact-records {
  padding: var(--space-16);
}

.front-home-header-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.2fr);
  gap: var(--space-16);
  align-items: stretch;
  margin-bottom: var(--space-16);
}

.front-home-header-grid__notice,
.front-home-header-grid__summary {
  height: 100%;
}

.front-home-header-grid__notice {
  display: grid;
  align-content: start;
  gap: var(--space-12);
}

.front-home-header-grid .section-title {
  margin-bottom: 14px;
}

.front-home-header-grid .section-title h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.front-home-header-grid .section-title p {
  font-size: 13px;
  line-height: 1.6;
  color: #9c8d8a;
}

.front-home-header-grid__notice > strong {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--color-text);
}

.front-home-header-grid__notice > p {
  font-size: 15px;
  line-height: 1.7;
  color: #9c8d8a;
}

.panel--latest-courses {
  padding: 10px 12px;
}

.latest-course-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.latest-course-card {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 0;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #fdf5f2 0%, #f8ece7 100%);
}

.latest-course-card__lead,
.latest-course-card__meta {
  min-width: 0;
}

.latest-course-card__lead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.latest-course-card .course-card-top {
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.latest-course-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.latest-course-card p {
  margin: 0;
  font-size: 11px;
  color: #9c8d8a;
  line-height: 1.35;
}

.latest-course-card .course-meta,
.latest-course-card .course-footer {
  color: #9c8d8a;
}

.latest-course-card .course-meta {
  margin-top: 0;
  gap: 6px;
  flex-wrap: nowrap;
}

.latest-course-card .course-footer span,
.latest-course-card .course-meta span:not(.badge) {
  color: #9c8d8a;
}

.latest-course-card .course-footer {
  margin-top: 0;
  padding-top: 0;
  align-self: auto;
}

.latest-course-card__footer {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.latest-course-card .ghost-button--mini {
  min-width: 88px;
  height: 30px;
  padding: 0 12px;
}

.latest-course-strip--recommended {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.latest-course-card--recommended {
  gap: 12px;
}

.latest-course-card__tags,
.badge-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.latest-course-card__submeta,
.latest-course-card__hint {
  color: var(--color-text-muted);
}

.course-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.course-detail-summary span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.course-detail-summary--mobile {
  gap: 8px 14px;
}

.latest-course-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--color-text-muted);
}

.latest-course-card__divider {
  color: #cbb8b3;
}

.badge--link {
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  color: var(--color-text-secondary);
}

.badge--link:hover {
  border-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.compact-summary-note {
  margin: var(--space-8) 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.compact-summary-note strong {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.mobile-summary-inline strong {
  font-size: 17px;
}

.badge,
.homework-recent-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge.accent {
  background: var(--color-brand-soft-alt);
  color: var(--color-brand);
}

.badge.draft {
  background: #f5efef;
  color: var(--color-neutral);
}

.badge.published {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.badge.scheduled {
  background: var(--color-info-soft);
  color: var(--color-info);
}

.badge.success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.badge.danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.empty-block {
  padding: var(--space-20);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  background: #fffaf8;
  font-size: 12px;
  color: var(--color-text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-16);
}

.stat-card,
.stat-panel {
  display: grid;
  gap: var(--space-8);
  align-content: start;
}

.stat-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.stat-card__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

.stat-card__value--text {
  font-size: 14px;
  line-height: 1.35;
}

.stat-card__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.card-list {
  margin-top: var(--space-20);
}

.card-list--compact {
  margin-top: 0;
}

.card-list--compact .admin-card {
  gap: var(--space-4);
  padding: var(--space-12) var(--space-16);
}

.card-list--compact .admin-card h4 {
  margin: 0;
  font-size: 14px;
}

.card-list--compact .admin-card .muted,
.card-list--compact .admin-card .course-meta {
  font-size: 12px;
}

.notice-spotlight {
  background:
    linear-gradient(180deg, rgba(241, 221, 210, 0.4) 0%, rgba(255, 253, 252, 0.96) 100%);
}

.section-title--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-16);
}

.section-title--split > div {
  min-width: 0;
}

@media (max-width: 980px) {
  .front-home-header-grid {
    grid-template-columns: 1fr;
  }
}

.status-inline {
  gap: var(--space-8);
}

.panel--sort-compact {
  padding: 12px 16px;
}

.panel--sort-compact .section-title {
  margin-bottom: var(--space-8);
}

.sort-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: nowrap;
}

.sort-toolbar__field {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex: 1;
  min-width: 0;
}

.sort-toolbar__field > span {
  font-size: 12px;
  white-space: nowrap;
  color: var(--color-text-muted);
}

.sort-toolbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  justify-content: flex-start;
  flex-shrink: 0;
}

.sort-toolbar--inline {
  flex: 0 0 auto;
}

.sort-toolbar select {
  width: min(100%, 420px);
}

.form-grid,
.filter-grid,
.stack-form,
.list-stack {
  display: grid;
}

.form-grid,
.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-16);
}

.filter-grid--toolbar {
  grid-template-columns: minmax(260px, 1.25fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
}

.filter-grid--toolbar--single {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.form-actions--toolbar {
  height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-8);
  white-space: nowrap;
}

.stack-form,
.list-stack {
  gap: 10px;
}

.list-stack--compact {
  gap: var(--space-8);
}

.list-stack--locked-comments {
  max-height: 456px;
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
  scrollbar-gutter: stable;
}

.panel--tight .section-title {
  margin-bottom: var(--space-8);
}

.panel--tight .admin-card {
  padding: 10px 12px;
}

.admin-card--note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.page-shell--admin .admin-quiz-question-title {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-grid label,
.filter-grid label,
.stack-form label {
  display: grid;
  gap: 6px;
}

.member-picker {
  display: grid;
  gap: 10px;
}

.member-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.member-picker__summary {
  font-weight: 500;
  color: var(--color-text-muted);
}

.member-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  scrollbar-gutter: stable;
}

.member-picker__option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.member-picker__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.member-picker__check {
  display: none;
}

.member-picker__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-picker__text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.member-picker__text small {
  font-size: 12px;
  color: var(--color-text-muted);
}

.member-picker--table {
  gap: 12px;
}

.member-picker__toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.member-picker__toolbar-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.member-picker__toolbar-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.member-picker__toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.member-picker__toolbar-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.member-picker__table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  max-height: 726px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.member-picker__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.member-picker__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.member-picker__table th,
.member-picker__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.member-picker__table tbody tr:last-child td {
  border-bottom: none;
}

.member-picker__table td:first-child,
.member-picker__table th:first-child {
  width: 72px;
  text-align: center;
}

.member-picker__table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.member-picker__table td strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.stack-form .textarea--compact {
  min-height: 56px;
  height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.full-span {
  grid-column: 1 / -1;
}

.mobile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
}

.mobile-action-row--course {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-action-row--course .ghost-button,
.mobile-action-row--course button {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.csv-template {
  min-height: 220px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-strong);
}

.table-wrap--locked {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: auto;
}

.table-wrap--locked thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #faf1ee;
}

.table-wrap--learning-records table {
  min-width: 760px;
}

.table-wrap--subject-list {
  max-height: 340px;
  scrollbar-gutter: stable;
}

.table-wrap--subject-list table {
  min-width: 940px;
}

.table-wrap--learning-records td:first-child,
.table-wrap--learning-records th:first-child {
  width: 34%;
  text-align: center;
}

.table-wrap--learning-records td:nth-child(2),
.table-wrap--learning-records th:nth-child(2),
.table-wrap--learning-records td:nth-child(3),
.table-wrap--learning-records th:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--learning-records td:nth-child(4),
.table-wrap--learning-records th:nth-child(4),
.table-wrap--learning-records td:nth-child(5),
.table-wrap--learning-records th:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--recent-learning {
  height: 176px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.list-stack--submission-gallery {
  gap: var(--space-16);
}

.learning-submission-card {
  gap: 16px;
}

.learning-submission-card__summary {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.learning-submission-card__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f9f1ee;
}

.learning-submission-card__gallery {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.learning-submission-card__reply,
.mobile-course-card__reply {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-divider);
  border-radius: 12px;
  background: #fff8f5;
}

.learning-submission-card__reply strong,
.mobile-course-card__reply strong {
  font-size: 13px;
}

.learning-submission-card__reply p,
.mobile-course-card__reply p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.table-wrap--recent-learning table {
  min-width: 680px;
}

.table-wrap--recent-learning {
  max-height: 292px;
}

.table-wrap--recent-learning th,
.table-wrap--recent-learning td {
  height: 44px;
}

.table-wrap--recent-learning td:first-child,
.table-wrap--recent-learning th:first-child {
  width: 36%;
  text-align: center;
}

.table-wrap--recent-learning td:nth-child(2),
.table-wrap--recent-learning th:nth-child(2) {
  width: 28%;
  text-align: center;
}

.table-wrap--recent-learning td:nth-child(3),
.table-wrap--recent-learning th:nth-child(3),
.table-wrap--recent-learning td:nth-child(4),
.table-wrap--recent-learning th:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--course-list {
  max-height: 420px;
}

.table-wrap--course-list table {
  min-width: 860px;
}

.table-wrap--course-list td:first-child,
.table-wrap--course-list th:first-child {
  width: 28%;
  text-align: center;
}

.table-wrap--course-list td:nth-child(2),
.table-wrap--course-list th:nth-child(2),
.table-wrap--course-list td:nth-child(3),
.table-wrap--course-list th:nth-child(3),
.table-wrap--course-list td:nth-child(4),
.table-wrap--course-list th:nth-child(4),
.table-wrap--course-list td:nth-child(5),
.table-wrap--course-list th:nth-child(5),
.table-wrap--course-list td:nth-child(6),
.table-wrap--course-list th:nth-child(6) {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--course-list-mobile table {
  width: 100%;
  min-width: 560px;
}

.table-wrap--course-list-mobile td,
.table-wrap--course-list-mobile th {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--course-list-mobile td:first-child,
.table-wrap--course-list-mobile th:first-child {
  min-width: 240px;
}

.table-wrap--dashboard-analytics {
  height: 306px;
}

.table-wrap--stats-five {
  height: 324px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.table-wrap--stats-five table {
  min-width: 760px;
  table-layout: fixed;
}

.table-wrap--stats-five th,
.table-wrap--stats-five td {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--stats-five td:first-child,
.table-wrap--stats-five th:first-child {
  text-align: center;
}

.table-wrap--employee-learning {
  height: 230px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.table-wrap--employee-learning table {
  min-width: 760px;
  table-layout: fixed;
}

.table-wrap--employee-learning th,
.table-wrap--employee-learning td {
  text-align: center;
}

.table-wrap--employee-learning td:first-child,
.table-wrap--employee-learning th:first-child {
  width: 28%;
}

.table-wrap--dashboard-analytics table {
  min-width: 760px;
  table-layout: fixed;
}

.table-wrap--dashboard-analytics th,
.table-wrap--dashboard-analytics td {
  text-align: center;
  white-space: nowrap;
}

.table-wrap--dashboard-analytics td:first-child,
.table-wrap--dashboard-analytics th:first-child {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead tr {
  background: #faf1ee;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text-secondary);
  vertical-align: middle;
}

th {
  height: 40px;
  font-weight: 500;
  color: var(--color-text-muted);
}

td {
  min-height: 40px;
}

tbody tr:hover {
  background: #fff8f6;
}

td strong,
th strong,
.panel strong,
.admin-card strong {
  color: var(--color-text);
}

td:last-child,
th:last-child {
  text-align: center;
}

.table-wrap button,
.table-wrap .ghost-button,
td button,
td .ghost-button {
  min-width: auto;
  height: 28px;
  padding: 0 var(--space-12);
  font-size: 12px;
}

.course-footer a,
.mobile-card-actions a,
.inline-actions a {
  font-size: 12px;
  font-weight: 500;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-top: var(--space-16);
}

.article-body {
  display: grid;
  gap: var(--space-12);
}

.preview-video,
.preview-image {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #f4e7e3;
}

.preview-video {
  width: 100%;
  max-height: 420px;
}

.video-player-block {
  display: grid;
  gap: var(--space-10);
}

.video-support-note {
  margin: 0;
}

.media-fallback-links {
  flex-wrap: wrap;
  gap: var(--space-10);
}

.mobile-course-list--task-scroller {
  max-height: 296px;
  overflow-y: auto;
  padding-right: var(--space-4);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-32);
  background:
    radial-gradient(circle at top right, rgba(232, 199, 192, 0.5), transparent 28%),
    linear-gradient(180deg, var(--color-bg-desktop) 0%, #fffaf8 100%);
}

.auth-card,
.error-panel {
  width: min(480px, 100%);
  display: grid;
  gap: var(--space-16);
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-popup);
}

.auth-card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
}

.error-text {
  margin-top: var(--space-4);
  color: var(--color-danger);
  font-size: 12px;
}

.error-panel {
  max-width: 720px;
  margin: var(--space-32) auto 0;
}

.error-panel__code {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-weak);
}

.error-panel h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.error-panel__message,
.error-panel__hint {
  margin: 0;
}

.error-panel__message {
  color: var(--color-text-secondary);
}

.error-panel__hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.error-panel__actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.admin-card {
  background: #fffaf8;
}

form[action*="/delete"] button,
button[data-danger="true"] {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid rgba(197, 107, 107, 0.3);
}

form[action*="/delete"] button:hover,
button[data-danger="true"]:hover {
  background: #fde5e5;
  border-color: rgba(197, 107, 107, 0.42);
}

::selection {
  background: rgba(192, 122, 134, 0.18);
}

@media (max-width: 1080px) {
  .page-shell--front,
  .page-shell--admin {
    grid-template-columns: 1fr;
  }

  .page-shell--front > .page-header,
  .page-shell--admin > .admin-header {
    position: static;
    gap: var(--space-16);
  }

  .page-shell--front > :not(.page-header),
  .page-shell--admin > :not(.admin-header) {
    grid-column: auto;
  }

  .front-nav,
  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .front-nav .ghost-button,
  .admin-nav .ghost-button,
  .front-nav form button,
  .admin-nav form button {
    justify-content: center;
  }

  .page-shell--admin .publish-module {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--color-bg-mobile);
  }

  html {
    font-size: 13px;
  }

  .page-shell,
  .page-shell--mobile,
  .page-shell--plain {
    padding: var(--space-16);
  }

  .mobile-header,
  .hero-block,
  .mobile-hero,
  .panel,
  .mobile-section,
  .auth-card,
  .error-panel {
    padding: 10px;
  }

  .brand-block h1,
  .auth-card h1 {
    font-size: 18px;
  }

  .brand-block p {
    font-size: 14px;
  }

  .hero-block h2,
  .mobile-hero h2,
  .error-panel h1 {
    font-size: 16px;
  }

  .hero-block--course-detail {
    padding: 8px 10px;
    gap: 4px;
  }

  .hero-block--learning-featured,
  .mobile-hero--learning-featured {
    padding: 8px 10px;
  }

  .hero-block--learning-featured h2,
  .mobile-hero--learning-featured h2 {
    font-size: 13px;
  }

  .hero-block--course-detail .course-detail-summary,
  .hero-block--course-detail .course-detail-summary span {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-block p,
  .mobile-hero p {
    font-size: 13px;
  }

  .section-title h3,
  .course-card h3,
  .homework-card h3,
  .mobile-course-card h3 {
    font-size: 13px;
  }

  .section-title {
    margin-bottom: 8px;
  }

  .mobile-section .section-title {
    margin-bottom: 6px;
  }

  .video-player-block {
    gap: 6px;
  }

  .video-support-note {
    font-size: 10px;
    line-height: 1.35;
  }

  .upload-media-grid {
    gap: 12px;
  }

  .upload-preview-window {
    min-height: 112px;
    padding: 8px;
  }

  .upload-preview-window__placeholder {
    min-height: 94px;
  }

  .upload-preview-list--image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-preview-item img,
  .upload-preview-item video {
    height: 72px;
  }

  .upload-preview-item video {
    height: 82px;
  }

  .mobile-action-row {
    gap: 8px;
  }

  .stack-form,
  .list-stack {
    gap: 8px;
  }

  .stack-form .textarea--compact {
    min-height: 44px;
    height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .list-stack--locked-comments {
    max-height: 296px;
    padding-right: 4px;
  }

  .page-eyebrow,
  .mobile-kicker,
  label > span,
  .notice-banner strong,
  .error-text,
  .error-panel__code,
  .error-panel__hint,
  .muted,
  .helper-text {
    font-size: 12px;
  }

  button,
  .button-link,
  .ghost-button,
  .mobile-card-link--ghost,
  input,
  select {
    min-width: 64px;
    height: 40px;
    font-size: 12px;
  }

  input[type="file"][accept*="image"],
  input[type="file"][accept*="video"] {
    min-height: 40px;
    font-size: 11px;
  }

  input[type="file"][accept*="image"]::file-selector-button,
  input[type="file"][accept*="video"]::file-selector-button,
  input[type="file"][accept*="image"]::-webkit-file-upload-button,
  input[type="file"][accept*="video"]::-webkit-file-upload-button {
    height: 30px;
    font-size: 11px;
  }

  input::placeholder,
  textarea::placeholder,
  select.is-placeholder {
    font-size: 11px;
  }

  textarea {
    min-height: 96px;
  }

  .table-wrap button,
  .table-wrap .ghost-button,
  td button,
  td .ghost-button {
    height: 32px;
    font-size: 11px;
  }

  th {
    height: 36px;
    font-size: 11px;
  }

  .table-wrap--locked {
    max-height: 280px;
  }

  .table-wrap--learning-records table {
    min-width: 640px;
  }

  .table-wrap--recent-learning {
    max-height: 292px;
  }

  .table-wrap--employee-learning {
    height: 204px;
  }

  .table-wrap--stats-five {
    height: 292px;
  }

  .table-wrap--stats-five table {
    min-width: 680px;
  }

  .table-wrap--employee-learning table {
    min-width: 680px;
  }

  .table-wrap--recent-learning table {
    min-width: 620px;
  }

  .sort-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .sort-toolbar__field {
    width: 100%;
  }

  .section-title--split {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-grid--toolbar {
    grid-template-columns: 1fr;
  }

  .form-actions--toolbar {
    height: auto;
  }

  td {
    padding: var(--space-8);
    font-size: 12px;
  }

  .badge,
  .homework-recent-chip {
    min-height: 20px;
    font-size: 10px;
    padding: 0 7px;
  }

  h4 {
    font-size: 13px;
  }

  .hero-actions {
    gap: var(--space-8);
  }

  .hero-block--compact {
    padding: var(--space-12);
  }

  .hero-block--micro {
    padding: 10px 12px;
    gap: 4px;
  }

  .hero-block--admin-summary {
    padding: 10px 12px;
    gap: 6px;
  }

  .mobile-hero--summary {
    padding: 10px 12px;
    gap: 6px;
  }

  .mobile-hero--summary h2 {
    font-size: 15px;
  }

  .hero-block--micro .page-eyebrow {
    font-size: 12px;
  }

  .hero-block--micro h2 {
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12);
  }

  .stat-card__value {
    font-size: 17px;
  }

  .stat-card__value--text {
    font-size: 13px;
  }

  .front-home-stats-inline--compact span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .front-home-stats-inline--compact strong {
    font-size: 15px;
  }

  .front-home-stats-inline--uniform span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .mobile-summary-inline--uniform span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .front-home-stats-inline--dense span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .front-home-stats-inline--dense strong {
    font-size: 13px;
  }

  .mobile-action-row {
    grid-template-columns: 1fr;
  }

  .mobile-action-row--course {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-action-row--course .ghost-button,
  .mobile-action-row--course button {
    height: 38px;
    padding: 0 6px;
    font-size: 11px;
  }

  .sort-toolbar {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .sort-toolbar--inline {
    width: 100%;
  }

  .sort-toolbar__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12);
  }

  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .upload-media-grid {
    grid-template-columns: 1fr;
  }

  .stack-form,
  .list-stack {
    gap: var(--space-12);
  }

  .form-grid label,
  .filter-grid label,
  .stack-form label {
    gap: var(--space-4);
  }

  .course-grid,
  .homework-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .front-home-stats-inline strong,
  .mobile-summary-inline strong {
    font-size: 18px;
  }

  .front-home-stats-inline span,
  .mobile-summary-inline span {
    min-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell--admin .admin-nav .ghost-button,
  .page-shell--admin .admin-nav form button,
  .page-shell--admin .page-content {
    transition: none;
  }
}
