:root {
  --green-950: #17231b;
  --green-800: #314731;
  --green-700: #566a43;
  --green-100: #edf4e8;
  --ink: #202622;
  --muted: #69736b;
  --line: #dde4d9;
  --surface: #ffffff;
  --surface-soft: #f8f8f3;
  --page: #f4f3ec;
  --amber: #b7821d;
  --amber-soft: #fff3d9;
  --blue: #486a8f;
  --blue-soft: #e9f0f6;
  --red: #d8453d;
  --red-soft: #fff0ef;
  --shadow: 0 12px 28px rgba(24, 35, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(rgba(244, 243, 236, 0.9), rgba(244, 243, 236, 0.92)),
    url("../解压检查/做图版/images/share-tool.jpg") center / cover;
}

.login-panel {
  width: min(460px, 100%);
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--green-700);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 26px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.login-panel h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.2;
}

.login-panel p {
  margin: 0;
  color: var(--muted);
}

.role-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin-bottom: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.role-choice button {
  height: 40px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.role-choice button.active {
  background: var(--green-800);
  color: #fff;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 650;
}

.field-block {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 650;
}

.field-label {
  display: block;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(86, 106, 67, 0.14);
}

.login-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.login-message {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #efb5a8;
  border-radius: 8px;
  background: #fff3ef;
  color: #9f3121;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

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

.sidebar {
  background: var(--green-950);
  color: #fff;
  padding: 22px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-group {
  margin: 16px 8px 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 800;
}

.nav-item {
  height: 42px;
  text-align: left;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.topbar h2 {
  margin: 0;
  font-size: 26px;
}

.topbar span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.topbar-actions span {
  margin-top: 0;
}

.source-badge {
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f0e6;
  color: #6f6655;
  font-weight: 700;
  white-space: nowrap;
}

.source-badge.cloud {
  background: #e9f5e5;
  color: #3f6d32;
}

.source-badge.error {
  background: #fff0eb;
  color: #b94731;
}

.topbar-actions,
.toolbar,
.panel-head,
.search-box,
.filter-row,
.perm-controls,
.row-actions,
.selected-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
  text-align: left;
  color: var(--ink);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 750;
}

.metric:hover {
  border-color: #c7d5bf;
  transform: translateY(-1px);
}

.metric-muted {
  background: var(--surface-soft);
}

.metric-muted strong,
.metric-muted small {
  color: var(--muted);
}

.data-note {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e6ebdf;
  border-radius: 8px;
  background: #f7faf4;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.conference-admin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.conference-admin-entry strong,
.conference-admin-entry span {
  display: block;
}

.conference-admin-entry span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.course-knowledge-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.course-knowledge-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.course-knowledge-summary div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.course-knowledge-summary span,
.course-knowledge-summary strong {
  display: block;
}

.course-knowledge-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.course-knowledge-summary strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 26px;
}

.course-knowledge-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.course-progress-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 13px;
}

.course-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.course-progress-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-progress-head strong {
  white-space: nowrap;
}

.course-progress-head strong.blue {
  color: var(--blue);
}

.course-progress-head strong.green {
  color: var(--green-700);
}

.course-progress-head strong.red {
  color: var(--red);
}

.course-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ece5;
}

.course-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--green-700);
  transition: width .2s ease;
}

.course-progress-bar.blue {
  background: var(--blue);
}

.course-progress-bar.green {
  background: var(--green-700);
}

.course-progress-bar.red {
  background: var(--red);
}

.course-progress-meta {
  color: var(--muted);
  font-size: 12px;
}

.conference-admin-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.conference-admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.conference-import-box {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.conference-import-box textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  min-height: 110px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.conference-section-highlight {
  animation: conferencePanelPulse 1.8s ease;
  border-color: var(--green-700);
}

@keyframes conferencePanelPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(86, 106, 67, 0.26);
  }
  55% {
    box-shadow: 0 0 0 8px rgba(86, 106, 67, 0.08);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

.panel {
  padding: 18px;
}

.compact-panel {
  margin-bottom: 16px;
}

.panel h3 {
  margin: 0;
  font-size: 18px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-box {
  width: min(720px, 100%);
}

.search-box input {
  flex: 1;
}

.search-box select {
  width: 150px;
}

.primary,
.ghost,
.plain,
.danger,
.text-link,
.filter-chip {
  height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 750;
  white-space: nowrap;
}

.primary {
  background: var(--green-700);
  color: #fff;
}

.danger {
  background: var(--red);
  color: #fff;
}

.ghost,
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.filter-chip.active {
  background: var(--green-100);
  border-color: #cbd9c2;
  color: var(--green-800);
}

.plain,
.text-link {
  background: transparent;
  color: var(--green-700);
}

.full {
  width: 100%;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-800) !important;
  font-size: 13px;
  font-weight: 800;
}

.role-badge.viewer {
  background: var(--blue-soft);
  color: var(--blue) !important;
}

.attention-list,
.event-list {
  display: grid;
  gap: 10px;
}

.empty-note {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
}

.attention-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #edf0e9;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.attention-row span,
.right-note small,
.event time,
.event span,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

.right-note {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 130px;
}

.event {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid #edf0e9;
}

.event-button {
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.event-button:hover,
.attention-row:hover {
  border-color: #c7d5bf;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 750;
}

.tag.green {
  background: var(--green-100);
  color: var(--green-700);
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

.tag.muted {
  background: #f0f1ee;
  color: var(--muted);
}

.selected-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.user-data-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.user-data-head strong {
  display: block;
  margin-bottom: 4px;
}

.data-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.data-summary-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-summary-grid span,
.data-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.data-summary-grid strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 24px;
}

.feature-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
  margin-bottom: 16px;
}

.pending-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 750;
}

.lead-detail {
  display: grid;
  gap: 16px;
}

.lead-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.lead-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.lead-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.lead-grid strong {
  font-size: 14px;
  line-height: 1.5;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-list {
  display: grid;
  gap: 10px;
}

.perm-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.perm-name {
  display: block;
  font-weight: 800;
}

.perm-state {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.perm-controls input {
  width: 150px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.pagination:empty {
  display: none;
}

.pagination-summary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: auto;
}

.pagination-controls select {
  flex: 0 0 112px;
  width: 112px;
  height: 36px;
  border-radius: 8px;
  padding: 0 9px;
}

.page-button {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.page-button.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.page-gap {
  padding: 0 3px;
  color: var(--muted);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

table.compact-table {
  min-width: 0;
  table-layout: fixed;
}

.activity-table th:nth-child(1),
.activity-table td:nth-child(1) {
  width: 132px;
}

.activity-table th:nth-child(2),
.activity-table td:nth-child(2) {
  width: 104px;
}

.activity-table th:nth-child(3),
.activity-table td:nth-child(3) {
  width: auto;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

td {
  font-size: 14px;
}

.need-cell {
  max-width: 280px;
  line-height: 1.5;
}

.selected-row {
  background: #fbfcf8;
}

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

.form-grid.one-column {
  grid-template-columns: 1fr;
}

.form-grid textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.course-public-link-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.course-public-link-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.course-public-link-head strong {
  color: var(--ink);
  font-size: 14px;
}

.public-file-link-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.public-file-link-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.public-file-link-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.public-file-link-item strong,
.public-file-link-item small {
  display: block;
}

.public-file-link-item strong {
  color: var(--ink);
  font-size: 13px;
}

.public-file-link-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.public-file-link-item.disabled {
  cursor: not-allowed;
  opacity: .58;
}

.empty-public-files {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.courseware-admin-panel {
  overflow: hidden;
}

.courseware-admin-panel .panel-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.courseware-admin-panel .panel-head .primary {
  height: auto;
  min-height: 40px;
  white-space: normal;
}

.courseware-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(280px, 520px);
  gap: 14px;
  align-items: end;
  max-width: 860px;
}

.courseware-admin-layout label,
.courseware-admin-layout .field-block {
  margin-bottom: 0;
}

.course-knowledge-grid .courseware-admin-layout {
  grid-template-columns: 1fr;
  max-width: none;
}

.conference-virtual-option {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: 22px minmax(0, 1fr);
  margin: 0;
  padding: 14px 16px;
}

.conference-virtual-option input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.conference-virtual-option strong,
.conference-virtual-option small {
  display: block;
}

.conference-virtual-option strong {
  color: var(--ink);
}

.conference-virtual-option small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 4px;
}

.conference-import-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}

.upload-panel {
  margin-bottom: 16px;
}

.file-picker {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-picker input[type="file"] {
  display: none;
}

.file-picker button {
  height: 32px;
}

.file-picker .file-trigger {
  height: 32px;
  min-width: 86px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.helper-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 13px;
  line-height: 1.6;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 6px;
  padding: 5px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented button {
  height: 38px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.segmented button.active {
  background: var(--green-800);
  color: #fff;
}

.qr-status-grid,
.qr-grid {
  display: grid;
  gap: 16px;
}

.qr-status-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.qr-status-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.qr-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.qr-status-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.qr-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-bottom: 16px;
}

.qr-placeholder {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px dashed #b9c7b0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(86, 106, 67, 0.14) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, rgba(86, 106, 67, 0.14) 46% 54%, transparent 54%),
    var(--surface-soft);
  color: var(--green-700);
  font-size: 54px;
  font-weight: 900;
  overflow: hidden;
}

.qr-placeholder.has-image {
  display: block;
  border-style: solid;
  background: #fff;
  padding: 6px;
}

.qr-preview-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.qr-card .row-actions {
  margin-top: 14px;
}

.save-row {
  display: flex;
  justify-content: flex-end;
}

.inline-input {
  width: min(320px, 100%);
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  background: #fff;
}

.mini-button {
  height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  background: #f3f5f1;
  color: var(--ink);
  font-weight: 750;
}

.row-actions {
  flex-wrap: wrap;
}

.mini-button.delete {
  background: var(--red-soft);
  color: var(--red);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(22, 28, 20, .42);
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0 0 4px;
}

.markdown-preview {
  min-height: 420px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: #fbfcf8;
  color: var(--ink);
  font: 13px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--green-950);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

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

  .nav-group {
    grid-column: 1 / -1;
  }

  .nav-item {
    text-align: center;
  }

  .metric-grid,
  .form-grid,
  .courseware-admin-layout,
  .lead-grid,
  .data-summary-grid,
  .qr-status-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .toolbar,
  .perm-row,
  .selected-user,
  .user-data-head,
  .attention-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .search-box,
  .perm-controls,
  .filter-row,
  .pagination {
    flex-wrap: wrap;
  }

  .pagination {
    align-items: flex-end;
    flex-direction: column;
  }

  .right-note {
    justify-items: start;
  }
}
