:root {
  --ink: #172033;
  --muted: #667085;
  --line: #dce6ef;
  --soft: #f4f8fb;
  --page: #edf5fb;
  --panel: #ffffff;
  --blue: #0799d6;
  --blue-deep: #075da8;
  --orange: #f2573f;
  --green: #1a9f72;
  --shadow: 0 1rem 2.4rem rgba(7, 54, 90, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 251, 0.96)),
    radial-gradient(circle at 18% 8%, rgba(7, 153, 214, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 16%, rgba(242, 87, 63, 0.1), transparent 16rem);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 2.75rem;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  outline: none;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(7, 153, 214, 0.13);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 0.45rem;
  font-weight: 800;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.btn.ghost {
  color: var(--blue-deep);
  background: #e9f7ff;
}

.btn.line {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.btn.danger {
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #ffd0c9;
}

.btn.small {
  min-height: 2.35rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.9rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
}

.login-brand {
  display: none;
}

.login-card,
.panel-lite,
.filter-panel,
.content-panel,
.course-card,
.resource-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 27rem);
  margin: 0 auto;
  padding: 1.5rem;
}

.logo-mark {
  width: 11rem;
  padding: 0.45rem;
  background: #07111f;
  border-radius: 0.45rem;
}

.login-card h1,
.page-title h1 {
  margin: 1rem 0 0.45rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.login-card p,
.page-title p,
.empty,
.hint {
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.85rem;
}

.field span {
  color: #405167;
  font-size: 0.92rem;
  font-weight: 800;
}

.field.wide {
  grid-column: 1 / -1;
}

.error {
  min-height: 1.5rem;
  color: #c93522;
  font-weight: 800;
}

.hint {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f4f9fc;
  border: 1px dashed #c6d9e8;
  border-radius: 0.45rem;
}

.security-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #fff8e6;
  border: 1px solid #f7d98c;
  border-radius: 0.5rem;
}

.security-notice strong {
  display: block;
  color: #8a5a00;
}

.security-notice p {
  margin: 0.25rem 0 0;
  color: #755a1e;
  line-height: 1.5;
}

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 900;
}

.brand-lockup img {
  width: 8rem;
  padding: 0.3rem;
  background: #07111f;
  border-radius: 0.4rem;
}

.brand-lockup span {
  font-size: 1.05rem;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.main-nav button,
.segmented button,
.filter-block button {
  color: #41536a;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-weight: 800;
}

.main-nav button.active,
.segmented button.active,
.filter-block button.active {
  color: #fff;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.global-search {
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  min-width: 2.75rem;
  color: #fff;
  background: var(--orange);
  border-radius: 0.45rem;
  font-weight: 900;
}

.account-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page {
  width: min(100%, 86rem);
  margin: 0 auto;
  padding: 1rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.6rem 0 1rem;
}

.feature-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 93, 168, 0.96), rgba(7, 153, 214, 0.9)),
    #075da8;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.feature-hero::after {
  content: "";
  position: absolute;
  inset: auto -5rem -7rem auto;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.feature-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0.45rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.feature-hero p {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0;
  color: #ddf6ff;
  line-height: 1.65;
}

.feature-hero img {
  position: relative;
  z-index: 1;
  width: min(100%, 15rem);
  justify-self: center;
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.22));
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.16rem 0.55rem;
  color: #075da8;
  background: #fff;
  border-radius: 999rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.layout-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.filter-panel,
.content-panel,
.panel-lite {
  padding: 1rem;
}

.filter-block {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.filter-block h3,
.panel-lite h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.segmented button,
.filter-block button {
  padding: 0.62rem 0.75rem;
  text-align: left;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.5rem;
  color: #355069;
  background: #eef6fb;
  border: 1px solid #d5e6f3;
  border-radius: 999rem;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.published {
  color: #087443;
  background: #ebfbf3;
  border-color: #b8ecd1;
}

.status-badge.draft,
.status-badge.warn {
  color: #9a6700;
  background: #fff8e6;
  border-color: #f8dda2;
}

.status-badge.danger {
  color: #b42318;
  background: #fff4f2;
  border-color: #ffd0c9;
}

.status-badge.featured {
  color: #8a3ffc;
  background: #f5f0ff;
  border-color: #dfd0ff;
}

.course-list {
  display: grid;
  gap: 0.8rem;
}

.course-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover,
.resource-card:hover {
  transform: translateY(-0.12rem);
  box-shadow: 0 1.1rem 2.4rem rgba(7, 54, 90, 0.16);
}

.highlight-new {
  animation: highlightPulse 2.2s ease;
  border-color: rgba(242, 87, 63, 0.75) !important;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 87, 63, 0.36), var(--shadow);
  }
  55% {
    box-shadow: 0 0 0 0.5rem rgba(242, 87, 63, 0), var(--shadow);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

.recent-strip {
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.recent-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.recent-strip-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.recent-strip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.recent-strip-list button {
  display: grid;
  gap: 0.2rem;
  min-height: 4rem;
  padding: 0.65rem;
  text-align: left;
  color: var(--ink);
  background: #f7fbfe;
  border: 1px solid #e1edf5;
  border-radius: 0.45rem;
}

.recent-strip-list button span {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.recent-strip-list button strong {
  line-height: 1.35;
}

.recent-strip-list button em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.course-badge {
  display: grid;
  place-items: center;
  min-height: 4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-size: 1.15rem;
  font-weight: 900;
}

.course-badge::before {
  content: "";
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 0.45rem;
}

.course-body {
  min-width: 0;
  padding: 1rem;
}

.course-head,
.resource-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.course-card h2,
.resource-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.meta,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.course-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.course-info div {
  padding: 0.62rem;
  background: #f7fbfe;
  border: 1px solid #e3edf5;
  border-radius: 0.45rem;
}

.course-info dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.course-info dd {
  margin: 0;
  line-height: 1.45;
}

.stars {
  color: #f5ad22;
  font-weight: 900;
  letter-spacing: 0;
}

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

.favorite {
  min-width: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  color: #a9b4c1;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 1.1rem;
}

.favorite.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  color: #355069;
  background: #eef6fb;
  border: 1px solid #d5e6f3;
  border-radius: 999rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.resource-card {
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-card p {
  color: var(--muted);
  line-height: 1.6;
}

.resource-icon {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.4rem;
  color: #fff;
  background: var(--green);
  border-radius: 0.45rem;
  font-weight: 900;
}

.profile-grid,
.upload-grid,
.account-grid,
.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.manage-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.manage-stats div {
  padding: 1rem;
  background: linear-gradient(180deg, #f8fcff, #eef7fd);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.manage-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--blue-deep);
}

.manage-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.manager-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toolbar-actions,
.manage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: #eef6fb;
  border: 1px solid #d9e8f3;
  border-radius: 0.5rem;
}

.admin-tabs button {
  flex: 1 1 8rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  color: #41536a;
  background: transparent;
  border-radius: 0.45rem;
  font-weight: 900;
}

.admin-tabs button.active {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 0.45rem 1rem rgba(7, 93, 168, 0.18);
}

.handoff-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #075da8, #0799d6);
  border-radius: 0.5rem;
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.handoff-actions .btn {
  flex: 1 1 11rem;
}

.handoff-hero h2 {
  margin: 0.4rem 0;
  font-size: 1.45rem;
}

.handoff-hero p {
  margin: 0;
  color: #e0f7ff;
  line-height: 1.6;
}

.handoff-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.handoff-stat {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.handoff-stat span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.handoff-stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.15;
}

.handoff-stat p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.handoff-stat.ok {
  border-color: #bfead5;
  background: #f1fbf6;
}

.handoff-stat.todo {
  border-color: #ffe2a8;
  background: #fff9ec;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.delivery-check {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.delivery-check span {
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.delivery-check.ok span {
  color: #087443;
  background: #ebfbf3;
}

.delivery-check.todo span {
  color: #9a6700;
  background: #fff8e6;
}

.delivery-check strong {
  font-size: 1rem;
}

.delivery-check p,
.delivery-check em {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.delivery-check em {
  font-style: normal;
}

.handoff-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.handoff-section {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.handoff-environment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.env-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  background: #f7fbfe;
  border: 1px solid #dbeaf4;
  border-radius: 0.5rem;
}

.env-card span,
.check-detail-list span {
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: 999rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.env-card.ok span,
.check-detail-list .ok span {
  color: #087443;
  background: #ebfbf3;
}

.env-card.todo span,
.check-detail-list .todo span {
  color: #9a6700;
  background: #fff8e6;
}

.env-card strong {
  font-size: 0.98rem;
}

.env-card p,
.env-card em {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.env-card em {
  font-style: normal;
}

.check-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.check-detail-list article {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  background: #f9fcfe;
  border: 1px solid #dbeaf4;
  border-radius: 0.5rem;
}

.check-detail-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.check-detail-list ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.handoff-guide > div {
  padding: 1rem;
  background: #f7fbfe;
  border: 1px solid #dbeaf4;
  border-radius: 0.5rem;
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.handoff-guide ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.handoff-guide p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.manage-filters {
  margin-bottom: 1rem;
}

.manage-filters button {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  color: #41536a;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-weight: 800;
}

.manage-filters button.active {
  color: #fff;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.quick-filters button {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  color: #41536a;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-weight: 800;
}

.quick-filters button.active {
  color: #fff;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.ops-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1rem 0;
}

.ops-panel {
  padding: 1rem;
  background:
    linear-gradient(180deg, #ffffff, #f7fbfe);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.ops-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ops-head strong {
  font-size: 1rem;
}

.ops-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.ops-meters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.ops-meters div {
  padding: 0.75rem;
  background: #eef7fd;
  border: 1px solid #d7e8f4;
  border-radius: 0.45rem;
}

.ops-meters span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ops-meters strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--blue-deep);
  font-size: 1.35rem;
  line-height: 1;
}

.ops-list,
.recent-list {
  display: grid;
  gap: 0.45rem;
}

.ops-list button,
.recent-list button {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.ops-list button:hover,
.recent-list button:hover {
  border-color: var(--blue);
  box-shadow: 0 0.5rem 1rem rgba(7, 54, 90, 0.08);
}

.ops-list span,
.recent-list span {
  font-weight: 900;
}

.ops-list em,
.recent-list em,
.ops-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
}

.ops-empty {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px dashed #c9dbe8;
  border-radius: 0.45rem;
}

.manager-toolbar strong {
  display: block;
  font-size: 1.1rem;
}

.manager-toolbar p,
.manage-table p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.manage-table td:first-child {
  min-width: 16rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.row-check {
  width: 1.1rem;
  min-height: 1.1rem;
  padding: 0;
}

.empty-state {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f7fbfe;
  border: 1px dashed #bfd5e7;
  border-radius: 0.5rem;
}

.empty-state img {
  width: min(100%, 13rem);
  justify-self: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.upload-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.upload-guide {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #075da8, #0799d6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.upload-guide img {
  width: min(100%, 14rem);
  justify-self: center;
  filter: drop-shadow(0 0.8rem 1.2rem rgba(0, 0, 0, 0.2));
}

.upload-guide strong {
  font-size: 1.15rem;
}

.upload-guide p {
  margin: 0;
  color: #e0f7ff;
  line-height: 1.65;
}

.upload-progress {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.upload-progress div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 800;
}

.upload-progress progress {
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  accent-color: var(--blue);
}

.replace-file-box {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: #f7fbfe;
  border: 1px solid #dbeaf4;
  border-radius: 0.5rem;
}

.replace-file-box > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.replace-file-box p {
  margin: 0;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
}

.check input {
  width: 1rem;
  min-height: 1rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f5f9fc;
  color: #405167;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 17, 31, 0.58);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 68rem);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.modal-head strong {
  display: block;
}

.modal-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.viewer {
  min-height: 22rem;
  padding: 1rem;
  overflow: auto;
  background: #f4f8fb;
}

.viewer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.viewer-side {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.viewer-side img {
  width: min(100%, 12rem);
  max-height: 10rem;
  object-fit: contain;
  justify-self: center;
}

.viewer-side dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.viewer-side dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eef3f7;
}

.viewer-side dt {
  color: var(--muted);
  font-weight: 800;
}

.viewer-side dd {
  margin: 0;
  text-align: right;
}

.viewer-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  background: #f7fbfe;
  border: 1px solid #dbeaf4;
  border-radius: 0.45rem;
}

.viewer-summary strong {
  font-size: 0.92rem;
}

.viewer-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.slide-view {
  min-height: 24rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.viewer iframe,
.viewer video {
  width: 100%;
  min-height: 28rem;
  border: 0;
  background: #111;
}

.doc-view,
.image-view {
  display: grid;
  gap: 0.85rem;
}

.image-view {
  min-height: 24rem;
  align-content: start;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.image-view img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  cursor: zoom-in;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(5, 17, 31, 0.88);
}

.image-zoom button {
  justify-self: end;
}

.image-zoom img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.video-shell {
  display: grid;
  gap: 0.85rem;
}

.video-poster {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.video-poster img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.video-poster strong {
  display: block;
  margin-bottom: 0.3rem;
}

.video-poster p,
.video-error {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.video-error {
  padding: 0.75rem;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #ffd0c9;
  border-radius: 0.45rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(26rem, calc(100vw - 2rem));
  display: none;
  padding: 0.85rem 1rem;
  color: #fff;
  background: #071f35;
  border-radius: 0.45rem;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

@media (min-width: 640px) {
  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-card {
    grid-template-columns: 5rem 1fr;
  }

  .course-info,
  .resource-grid,
  .checks,
  .profile-grid,
  .empty-state {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .course-info .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr 28rem;
    padding: 2rem 5vw;
  }

  .login-brand {
    display: grid;
    gap: 1.5rem;
    align-content: center;
    color: #fff;
    background: linear-gradient(135deg, #075da8, #0799d6);
    border-radius: 0.5rem;
    padding: 2rem;
    overflow: hidden;
  }

  .login-brand img:last-child {
    width: min(100%, 34rem);
    justify-self: center;
  }

  .login-brand h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .login-brand p {
    max-width: 42rem;
    color: #ddf5ff;
  }

  .site-header {
    grid-template-columns: auto 1fr minmax(16rem, 22rem) auto;
    align-items: center;
    padding: 0.8rem 1.25rem;
  }

  .main-nav {
    display: flex;
    justify-content: center;
  }

  .layout-two {
    grid-template-columns: 16rem 1fr;
  }

  .filter-panel {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }

  .course-card {
    grid-template-columns: 6rem 1fr;
  }

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

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

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

  .ops-board {
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  }

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

  .handoff-hero {
    grid-template-columns: 1fr auto;
    padding: 1.25rem;
  }

  .handoff-actions {
    max-width: 30rem;
    justify-content: flex-end;
  }

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

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

  .handoff-guide {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

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

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

  .feature-hero {
    grid-template-columns: 1fr 17rem;
    min-height: 12rem;
    padding: 1.25rem 1.5rem;
  }

  .feature-hero h2 {
    font-size: 1.75rem;
  }

  .upload-shell {
    grid-template-columns: 18rem 1fr;
  }

  .viewer-grid {
    grid-template-columns: 16rem 1fr;
  }
}
