:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --line: #d9dee3;
  --line-soft: #edf0f2;
  --text: #172026;
  --muted: #65717b;
  --primary: #1f5f55;
  --primary-soft: #e8f2ef;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #16794c;
  --success-soft: #eaf7ef;
  --warning: #946200;
  --warning-soft: #fff7e6;
  --focus: rgba(31, 95, 85, .18);
  --radius: 8px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.48 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 22px; line-height: 1.25; }
h2 { margin-bottom: 6px; font-size: 16px; line-height: 1.3; }
h3 { margin-bottom: 4px; font-size: 14px; line-height: 1.35; }
p { margin-bottom: 8px; }
small { color: var(--muted); }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; }

.container { width: min(1120px, calc(100% - 24px)); margin-inline: auto; }
.page-shell { min-height: calc(100vh - 112px); padding: 14px 0 68px; }
.page, .table-panel, .admin-table-panel, .panel, .admin-panel, .public-table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page-head, .admin-page-head, .public-section-head, .compact-home-head, .detail-header, .mobile-simple-head {
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.page-head p, .admin-page-head p, .public-section-head p, .compact-home-head p, .detail-header p, .mobile-simple-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

/* Buttons and controls */
.btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }
.btn--primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn--secondary { border-color: #b9d5cd; background: var(--primary-soft); color: var(--primary); }
.btn--ghost { background: #fff; }
.btn--danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn--compact { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.btn--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cfd6dc;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}
textarea { min-height: 68px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: 3px solid var(--focus);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field, .line-field, .compact-line-field {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; border: 0; }
.field span, .compact-line-field span, .line-field span { color: #34434b; font-weight: 600; }
.field em, .compact-line-field em, .line-field em { color: var(--danger); font-style: normal; }
.compact-line-field b { color: var(--muted); font-weight: 400; }
.field-error { grid-column: 2 / -1; color: var(--danger); font-size: 12px; }
.field-grid, .filter-grid, .config-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.field--full, .config-form-grid__wide { grid-column: 1 / -1; }

/* Status */
.status-pill, .rule-status-chip, .warning-chip, .authority-tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill--success, .rule-status-chip--verified { background: var(--success-soft); color: var(--success); }
.status-pill--muted { background: #eef1f3; color: var(--muted); }
.status-pill--warning, .rule-status-chip--pending, .warning-chip, .status-pill--test { background: var(--warning-soft); color: var(--warning); }
.status-pill--danger, .rule-status-chip--invalid { background: var(--danger-soft); color: var(--danger); }
.rule-status-chip--system { background: var(--primary-soft); color: var(--primary); }
.authority-tag--em { background: #e8f2ef; color: #1f5f55; }
.authority-tag--con { background: #fff1d8; color: #7a5200; }
.authority-tag--se { background: #e8f0f8; color: #315f84; }

/* Tables */
.responsive-table { width: 100%; overflow-x: auto; }
.plain-table, .plain-admin-table, .summary-table, .inner-data-table, .detail-info-table, .admin-panel table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.plain-table th, .plain-table td,
.plain-admin-table th, .plain-admin-table td,
.summary-table th, .summary-table td,
.inner-data-table th, .inner-data-table td,
.detail-info-table th, .detail-info-table td,
.admin-panel table th, .admin-panel table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.plain-table th, .plain-admin-table th, .summary-table th, .inner-data-table th, .detail-info-table th, .admin-panel table th {
  background: #f7f8f9;
  color: #46535c;
  font-size: 12px;
  font-weight: 700;
}
.summary-table td strong { display: block; font-size: 20px; line-height: 1.2; }
.summary-table td small, .plain-admin-table td small { display: block; margin-top: 2px; }
.table-section-title, .panel-title, .compact-section-heading {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}
.table-section-title h2, .panel-title h2, .compact-section-heading h2 { margin: 0; }
.table-section-title span, .compact-section-heading small, .panel-title span { color: var(--muted); font-size: 12px; }
.table-empty, .empty-state, .empty-inline {
  padding: 16px;
  color: var(--muted);
  text-align: center;
}
.row-arrow { color: var(--primary); font-weight: 700; }

/* Public shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.site-brand__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}
.site-brand strong, .site-brand small { display: block; }
.site-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.site-brand small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 8px;
  border-radius: 6px;
  color: #4c5962;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a.is-active, .site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.site-footer { padding: 12px 0 22px; color: var(--muted); font-size: 12px; text-align: center; }
.mobile-bottom-nav { display: none; }

/* Home */
.home-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 10px;
  margin-bottom: 10px;
}
.home-portal-hero > div, .school-placeholder-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.home-portal-hero h1 { font-size: 22px; }
.school-placeholder-card dl { display: grid; gap: 0; margin: 0; }
.school-placeholder-card dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.school-placeholder-card dt { color: var(--muted); }
.school-placeholder-card dd { margin: 0; font-weight: 600; }
.public-entry-table .portal-row, .public-menu-row, .application-row {
  display: grid;
  grid-template-columns: 42px 110px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
}
.public-entry-table .portal-row:hover, .public-menu-row:hover, .application-row:hover { background: var(--surface-alt); text-decoration: none; }
.public-entry-table .portal-row span { color: var(--muted); font-weight: 700; }
.public-entry-table .portal-row strong { font-size: 14px; }
.public-entry-table .portal-row p, .public-menu-row small, .application-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.flow-step-strip {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.flow-step-strip span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

/* Enroll */
.compact-project-toolbar, .catalog-admin-toolbar, .filter-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.search-box, .filter-panel__search, .batch-search-box {
  position: relative;
  min-width: 180px;
  flex: 1;
}
.search-box > span, .filter-panel__search > span, .batch-search-box > span {
  position: absolute;
  top: 50%;
  left: 9px;
  transform: translateY(-50%);
  color: var(--muted);
}
.search-box input, .filter-panel__search input, .batch-search-box input { padding-left: 28px; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #eef1f3;
}
.compact-authority-tabs, .filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.compact-authority-tabs button, .filter-tabs button {
  flex: none;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #4b5962;
  font-weight: 600;
}
.compact-authority-tabs button.is-active, .filter-tabs button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.project-authority-accordion, .project-category-accordion {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}
.project-authority-accordion:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.project-authority-accordion:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.project-authority-toggle, .project-category-toggle, .compact-project-row {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
}
.project-authority-toggle, .project-category-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.accordion-color-mark, .project-row-dot { display: none; }
.accordion-title strong, .accordion-title small { display: block; }
.accordion-title small { color: var(--muted); font-weight: 400; }
.project-category-toggle { padding-left: 18px; background: #fafafa; }
.project-category-panel { border-bottom: 1px solid var(--line-soft); }
.project-direct-list { border-bottom: 1px solid var(--line-soft); }
.compact-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 64px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px 9px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.project-direct-list .compact-project-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 14px;
}
.compact-project-row:hover { background: var(--surface-alt); }
.project-row-main strong, .project-row-main small { display: block; }
.project-row-main small { color: var(--muted); font-size: 12px; }
.compact-project-row em {
  color: var(--warning);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.compact-project-row b { color: var(--primary); text-align: right; }
.project-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.project-row-actions a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
/* Apply form */
.compact-apply-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.compact-apply-header div strong, .compact-apply-header div small { display: block; }
.compact-test-note, .plain-help-card, .mobile-test-tip, .test-template-warning, .compact-success-note {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #efdba8;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #6e4b05;
  font-size: 12px;
}
.compact-form-section {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.compact-form-section > h2 {
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}
.compact-upload-grid { display: block; }
.compact-upload-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.4fr) minmax(140px, .9fr) 80px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.compact-upload-label span { font-weight: 600; }
.compact-upload-label small { display: block; color: var(--muted); font-size: 12px; }
.compact-upload-label em { color: var(--danger); font-style: normal; }
.compact-upload-label .optional-upload-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}
.compact-upload-label::before {
  content: "";
}
.compact-upload-box {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #cfd6dc;
  border-radius: var(--radius-sm);
  background: #fff;
}
.compact-upload-box strong { font-size: 12px; }
.compact-upload-box small, .compact-upload-icon, .compact-upload-box img { display: none; }
.visually-hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}
.compact-upload-meta, .compact-file-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-ocr-button {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #b9d5cd;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.compact-material-date { grid-column: 2 / -1; display: grid; grid-template-columns: 120px 160px; align-items: center; gap: 8px; }
.compact-line-fields { display: block; }
.compact-more-fields {
  border-top: 1px solid var(--line);
  background: #fff;
}
.compact-more-fields summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.compact-more-fields summary small { font-weight: 400; }
.compact-document-list { display: block; }
.compact-document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.compact-document-row > div:first-child strong, .compact-document-row > div:first-child small { display: block; }
.compact-document-row button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.document-content {
  grid-column: 1 / -1;
  max-height: 160px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
  font-size: 12px;
}
.compact-confirm {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.compact-confirm input { width: 16px; min-height: 16px; }
.signature-panel {
  margin: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.signature-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.signature-panel canvas {
  width: 100%;
  height: 120px;
  margin-top: 8px;
  border: 1px dashed #b9c3ca;
  border-radius: var(--radius-sm);
  background: #fff;
  touch-action: none;
}
.signature-placeholder { display: block; color: var(--muted); font-size: 12px; text-align: center; }
.compact-submit-spacer { height: 56px; }
.compact-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255,255,255,.96);
}
.error-summary {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #f2b8b5;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
}
.error-summary__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 100;
  display: none;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #172026;
  color: #fff;
  font-size: 13px;
}
.app-toast.is-visible { display: block; }

/* Batches, query, my, success, detail */
.batch-search-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.batch-refresh-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.batch-more-link { font-size: 12px; text-align: center; }
.mobile-batch-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.mobile-batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.batch-row-main h2 { display: flex; gap: 6px; margin: 0 0 3px; font-size: 14px; }
.batch-date-line, .batch-time-line { margin: 0; color: var(--muted); font-size: 12px; }
.batch-row-capacity { text-align: right; }
.batch-row-capacity span, .batch-row-capacity strong { display: block; }
.batch-row-capacity strong { color: var(--success); }
.load-more-button {
  width: 100%;
  min-height: 32px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.public-query-table { margin-bottom: 10px; }
.public-line-fields { padding: 0; }
.public-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.public-table-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.public-simple-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.public-menu-row { grid-template-columns: 30px minmax(0, 1fr) 44px; }
.menu-row-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
}
.compact-success-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.compact-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.compact-success-icon { display: none; }
.compact-application-no, .compact-success-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.compact-application-no button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.compact-success-list { margin: 0; }
.compact-success-list dt { color: var(--muted); }
.compact-success-list dd { margin: 0; font-weight: 600; }
.compact-success-files a, .document-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.compact-success-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.info-list > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
.content-section { margin-top: 10px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.file-tile {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.file-tile__preview {
  display: grid;
  height: 110px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line-soft);
  background: #fafafa;
  overflow: hidden;
}
.file-tile__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdf-icon {
  display: inline-grid;
  width: 32px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

/* Admin */
.admin-body { background: var(--bg); }
.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.admin-header__inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}
.admin-menu-button {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.admin-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.admin-brand span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand small { color: var(--muted); font-size: 11px; }
.admin-account { display: flex; align-items: center; gap: 8px; }
.admin-account button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.admin-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 52px);
}
.admin-sidebar {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar a, .sidebar-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #37434b;
  font-weight: 600;
  text-decoration: none;
}
.admin-sidebar a.is-active, .admin-sidebar a:hover, .sidebar-more summary:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.admin-sidebar i { display: none; }
.nav-label { padding: 4px 10px; color: var(--muted); font-size: 12px; }
.sidebar-more { margin-top: 4px; }
.sidebar-more summary { cursor: pointer; }
.sidebar-more a { margin-left: 8px; font-size: 13px; }
.sidebar-foot { margin-top: 12px; padding: 8px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-foot span, .sidebar-foot small { display: block; }
.sidebar-overlay { display: none; }
.admin-content { min-width: 0; padding: 14px; }
.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.simple-summary-bar {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.simple-summary-bar > div, .simple-summary-bar > p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.simple-summary-bar strong, .simple-summary-bar span { display: block; }
.filter-panel { align-items: stretch; }
.simple-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.simple-filter-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-grid {
  grid-column: 1 / -1;
  width: 100%;
}
.toggle-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3c4951;
  font-size: 13px;
  font-weight: 600;
}
.toggle-filter input { width: 16px; min-height: 16px; }
.batch-admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.batch-open-check { align-self: end; min-height: 34px; }
.switch-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.switch-button span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9aa5ad;
}
.switch-button.is-on span { background: var(--success); }
.project-detail-table-row td { background: #fbfbfc; }
.project-inline-notes, .variant-table-block, .source-box {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.variant-create-details { margin-top: 8px; }
.variant-form { margin-top: 8px; }
.rule-list { display: grid; gap: 8px; }
.rule-card-modern {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.rule-card-modern summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
}
.rule-card-modern summary h2, .rule-card-modern summary p { margin: 0; }
.rule-card-modern__body { padding: 0 10px 10px; }
.rule-simple-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.rule-simple-summary > div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}
.rule-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rule-columns section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rule-columns h3 {
  margin: 0;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.rule-columns ul { margin: 0; padding: 0; list-style: none; }
.rule-columns li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.rule-source-line { display: block; color: var(--muted); font-size: 11px; }
.config-form-grid { padding: 10px; }
.config-form-grid label { display: grid; gap: 4px; }
.checklist-table td { vertical-align: middle; }
.environment-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.environment-details summary { padding: 8px 10px; cursor: pointer; }
.environment-details pre, .technical-details pre {
  max-height: 360px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: #fafafa;
  white-space: pre-wrap;
  font-size: 12px;
}
.log-detail { white-space: pre-wrap; }

/* Login */
.login-layout {
  display: grid;
  max-width: 860px;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  margin: 28px auto;
}
.login-intro, .login-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.login-features { display: flex; flex-wrap: wrap; gap: 6px; }
.login-features span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.login-card__head { display: flex; gap: 8px; margin-bottom: 12px; }
.password-field { position: relative; }
.password-field button {
  position: absolute;
  top: 3px;
  right: 4px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--primary);
}
.login-card .field { margin-bottom: 10px; }
.login-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.alert {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.alert--error { border-color: #f2b8b5; background: var(--danger-soft); color: var(--danger); }
.alert--success { border-color: #b9dec8; background: var(--success-soft); color: var(--success); }

@media (max-width: 900px) {
  .container { width: min(768px, calc(100% - 20px)); }
  .home-portal-hero, .login-layout { grid-template-columns: 1fr; }
  .field-grid, .filter-grid, .config-form-grid, .rule-columns { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simple-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simple-summary-bar > p { grid-column: 1 / -1; }
  .batch-admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .site-nav { display: none; }
  .public-body .container { width: 100%; }
  .public-body .page-shell { padding: 8px 10px 64px; }
  .site-header { position: static; }
  .site-header__inner { padding: 0 10px; }
  .site-footer { display: none; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 54px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mobile-bottom-nav a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: #4b5962;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bottom-nav a span { font-size: 15px; line-height: 1; }
  .mobile-bottom-nav a.is-active { color: var(--primary); }
  .public-entry-table .portal-row {
    grid-template-columns: 28px 86px minmax(0, 1fr);
    padding: 10px 8px;
  }
  .public-entry-table .portal-row b { grid-column: 2 / -1; text-align: left; }
  .flow-step-strip { margin-inline: 0; }
  .compact-project-toolbar, .catalog-admin-toolbar, .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
  }
  .compact-project-row {
    grid-template-columns: minmax(0, 1fr) 70px 54px;
    padding-left: 12px;
  }
  .compact-upload-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .compact-material-date { grid-column: 1; grid-template-columns: 98px minmax(0, 1fr); }
  .compact-line-field, .line-field {
    grid-template-columns: 96px minmax(0, 1fr) 8px;
    padding: 7px 8px;
  }
  .compact-submit-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 54px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .info-list { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; }
  .public-table-actions, .compact-success-actions { display: grid; grid-template-columns: 1fr; }
  .plain-admin-table, .summary-table, .detail-info-table { min-width: 680px; }

  .admin-menu-button { display: inline-grid; place-items: center; }
  .admin-shell { display: block; }
  .admin-sidebar {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: 230px;
    height: auto;
    transform: translateX(-102%);
    transition: transform .18s ease;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed;
    inset: 52px 0 0;
    z-index: 65;
    display: none;
    background: rgba(0,0,0,.22);
  }
  .sidebar-overlay.is-open { display: block; }
  .admin-content { padding: 10px; }
  .admin-page-head { display: block; }
  .admin-page-head .button-row { margin-top: 8px; }
  .batch-admin-form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  body { font-size: 13px; }
  h1 { font-size: 20px; }
  .page-shell { padding-top: 8px; }
  .site-brand__mark { width: 28px; height: 28px; }
  .home-portal-hero > div, .school-placeholder-card { padding: 10px; }
  .school-placeholder-card dl > div { grid-template-columns: 76px minmax(0, 1fr); }
  .compact-authority-tabs button, .filter-tabs button { padding: 5px 8px; font-size: 12px; }
  .compact-project-row { grid-template-columns: minmax(0, 1fr) 62px 46px; gap: 6px; }
  .compact-project-row em { font-size: 11px; }
  .compact-line-field, .line-field { grid-template-columns: 86px minmax(0, 1fr) 6px; }
  .mobile-batch-row { grid-template-columns: minmax(0, 1fr) 78px; }
  .batch-row-capacity { font-size: 12px; }
  .compact-application-no, .compact-success-list > div { grid-template-columns: 86px minmax(0, 1fr); }
  .compact-application-no button { grid-column: 2; width: max-content; }
}

/* V4.9.2 mobile UI polish */
.home-service-board {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.home-service-title {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}
.home-service-title h1 { margin-bottom: 4px; font-size: 21px; }
.home-service-title p { margin: 0; color: var(--muted); font-size: 13px; }
.home-info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.home-info-table > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.home-info-table dt { color: var(--muted); }
.home-info-table dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.home-entry-list .portal-row b { color: var(--primary); font-size: 13px; }
.compact-project-row { transition: background .12s ease; }
.project-row-actions a { background: #fff; }
.project-row-actions a:hover { background: var(--primary-soft); }
.material-requirement {
  display: inline-flex;
  width: max-content;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.material-requirement.is-required { background: var(--danger-soft); color: var(--danger); }
.material-requirement.is-optional { background: #eef1f3; color: var(--muted); }
.compact-upload-box.is-ready {
  border-color: #9bc7ba;
  background: var(--primary-soft);
}
.compact-upload-item.is-uploaded .compact-upload-label span { color: var(--primary); }
.compact-upload-meta {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f9;
}
.compact-upload-meta.is-ready {
  border-color: #b9dec8;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
}
.compact-signature-panel h3 { margin-bottom: 2px; }
.compact-success-state {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}
.public-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.admin-applications-table td p,
.project-management-table td p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-applications-table td small,
.admin-batch-table td small,
.project-management-table td small { color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .home-info-table { grid-template-columns: 1fr; }
  .home-info-table > div { border-right: 0; }
  .home-service-title { padding: 10px; }
  .home-service-title h1 { font-size: 19px; }
  .home-entry-list .portal-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: start;
  }
  .home-entry-list .portal-row strong { font-size: 14px; }
  .home-entry-list .portal-row p { grid-column: 2 / -1; margin-top: -2px; }
  .home-entry-list .portal-row b { grid-column: 3; grid-row: 1; }
  .compact-project-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 9px 10px;
  }
  .compact-project-row em { width: max-content; }
  .project-row-actions {
    justify-content: flex-start;
  }
  .project-row-actions a {
    min-width: 66px;
    justify-content: center;
  }
  .compact-upload-item {
    gap: 6px;
    padding: 9px 10px;
  }
  .compact-upload-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }
  .compact-upload-label span { flex-basis: 100%; }
  .compact-upload-box {
    justify-content: space-between;
  }
  .compact-upload-meta { justify-content: flex-start; }
  .compact-ocr-button { justify-self: start; }
  .public-section-head { display: block; }
  .public-section-head .btn { margin-top: 8px; }

  .public-result-table,
  .admin-applications-table,
  .admin-batch-table,
  .project-management-table { min-width: 0 !important; }
  .public-result-table thead,
  .admin-applications-table thead,
  .admin-batch-table thead,
  .project-management-table thead { display: none; }
  .public-result-table,
  .public-result-table tbody,
  .public-result-table tr,
  .public-result-table td,
  .admin-applications-table,
  .admin-applications-table tbody,
  .admin-applications-table tr,
  .admin-applications-table td,
  .admin-batch-table,
  .admin-batch-table tbody,
  .admin-batch-table tr,
  .admin-batch-table td,
  .project-management-table,
  .project-management-table tbody,
  .project-management-table tr,
  .project-management-table td { display: block; width: 100%; }
  .public-result-table tr,
  .admin-applications-table tr,
  .admin-batch-table tr,
  .project-management-table > tbody > tr:first-child {
    margin: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
  }
  .public-result-table td,
  .admin-applications-table td,
  .admin-batch-table td,
  .project-management-table > tbody > tr:first-child > td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line-soft);
  }
  .public-result-table td::before,
  .admin-applications-table td::before,
  .admin-batch-table td::before,
  .project-management-table > tbody > tr:first-child > td::before {
    flex: 0 0 74px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .public-result-table td:nth-child(1)::before { content: '姓名'; }
  .public-result-table td:nth-child(2)::before { content: '报名编号'; }
  .public-result-table td:nth-child(3)::before { content: '项目'; }
  .public-result-table td:nth-child(4)::before { content: '类型'; }
  .public-result-table td:nth-child(5)::before { content: '提交时间'; }
  .public-result-table td:nth-child(6)::before { content: '状态'; }
  .public-result-table td:nth-child(7)::before { content: '详情'; }
  .admin-applications-table td:nth-child(1)::before { content: '报名编号'; }
  .admin-applications-table td:nth-child(2)::before { content: '学员'; }
  .admin-applications-table td:nth-child(3)::before { content: '项目'; }
  .admin-applications-table td:nth-child(4)::before { content: '类型'; }
  .admin-applications-table td:nth-child(5)::before { content: '状态'; }
  .admin-applications-table td:nth-child(6)::before { content: '提交时间'; }
  .admin-applications-table td:nth-child(7)::before { content: '详情'; }
  .admin-batch-table td:nth-child(1)::before { content: '状态'; }
  .admin-batch-table td:nth-child(2)::before { content: '班次'; }
  .admin-batch-table td:nth-child(3)::before { content: '项目'; }
  .admin-batch-table td:nth-child(4)::before { content: '类型'; }
  .admin-batch-table td:nth-child(5)::before { content: '时间'; }
  .admin-batch-table td:nth-child(6)::before { content: '名额'; }
  .admin-batch-table td:nth-child(7)::before { content: '操作'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(1)::before { content: '体系'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(2)::before { content: '代码'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(3)::before { content: '项目'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(4)::before { content: '大类'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(5)::before { content: '实施日期'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(6)::before { content: '配置'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(7)::before { content: '报名状态'; }
  .project-management-table > tbody > tr:first-child > td:nth-child(8)::before { content: '操作'; }
  .public-result-table td > *,
  .admin-applications-table td > *,
  .admin-batch-table td > *,
  .project-management-table > tbody > tr:first-child > td > * { min-width: 0; }
  .project-detail-table-row,
  .project-detail-table-row td { display: block !important; }
  .project-detail-table-row td { padding: 8px !important; }
  .project-detail-table-row td::before { content: none !important; }
  .project-management-table .table-actions { align-items: center; }
}

@media (max-width: 430px) {
  .flow-step-strip { padding: 6px; }
  .flow-step-strip span { padding: 3px 7px; }
  .compact-apply-header {
    grid-template-columns: 26px minmax(0, 1fr) 38px;
    padding: 7px 0;
  }
  .compact-line-field, .line-field {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .compact-line-field b, .line-field b { display: none; }
  .compact-submit-bar .btn { flex: 1; }
  .admin-account > span { display: none; }
  .admin-header__inner { padding: 0 8px; }
}
.home-info-caption {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* V5.0 learner mobile UI alignment, based on submitted reference screenshots. */
:root {
  --wx-blue: #1677ff;
  --wx-blue-soft: #eff6ff;
  --wx-orange: #ff8a2b;
  --wx-red: #e9402a;
  --wx-green: #20bf4b;
  --wx-page: #f3f7fa;
  --wx-text: #30363d;
  --wx-muted: #8a8f96;
  --wx-line: #e8edf2;
}

.wx-status-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid #41cc63;
  border-radius: 999px;
  color: #28b64b;
  background: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.wx-green { color: var(--wx-green); }
.wx-empty-hint {
  margin: 10px 0;
  padding: 22px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--wx-muted);
  text-align: center;
}
.wx-empty-hint h2 { color: var(--wx-text); }
.wx-empty-line { grid-column: 1 / -1; color: var(--wx-muted); }
.wx-test-note { margin: 0 0 10px; color: var(--wx-orange); }

.wx-query-toolbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 -10px 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--wx-line);
}
.wx-refresh {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--wx-blue);
  font-size: 30px;
  line-height: 1;
}
.wx-query-search {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 54px;
  gap: 0;
  align-items: stretch;
}
.wx-filter-button,
.wx-more-query {
  min-height: 38px;
  border: 0;
  background: #fff;
  color: var(--wx-blue);
  font-size: 15px;
}
.wx-filter-button {
  border: 1px solid var(--wx-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #6f747a;
}
.wx-search-input {
  position: relative;
  display: block;
  min-width: 0;
}
.wx-search-input span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b7bec7;
  font-size: 20px;
}
.wx-search-input input {
  min-height: 38px;
  padding-left: 38px;
  border: 1px solid var(--wx-line);
  border-radius: 0 10px 10px 0;
  background: #f1f5f8;
  color: var(--wx-text);
  font-size: 15px;
}
.wx-more-query {
  padding-left: 8px;
  text-align: center;
  line-height: 1.25;
}
.wx-batch-search input { border-radius: 12px; }

.wx-query-advanced {
  margin: 0 0 10px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.wx-query-advanced details { padding: 0; }
.wx-query-advanced summary {
  padding: 10px 14px;
  color: #727981;
  font-weight: 700;
  cursor: pointer;
}
.wx-query-fields { display: grid; gap: 8px; padding: 0 14px 14px; }
.wx-query-fields label { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px; }
.wx-query-fields span { color: var(--wx-muted); }

.wx-application-list { display: grid; gap: 10px; }
.wx-application-card {
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.wx-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 14px 12px;
  color: var(--wx-text);
  text-decoration: none;
}
.wx-card-head:hover { text-decoration: none; }
.wx-card-head h2 {
  margin: 0 0 8px;
  color: #303841;
  font-size: 18px;
  font-weight: 600;
}
.wx-card-head p {
  margin: 0;
  color: #959ba2;
  font-size: 14px;
}
.wx-class-box {
  padding: 12px 14px;
  border-top: 1px dotted var(--wx-line);
  border-bottom: 1px dotted var(--wx-line);
}
.wx-class-box p { margin: 0; color: var(--wx-red); font-size: 16px; }
.wx-card-meta {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px dotted var(--wx-line);
  color: #969ca3;
  font-size: 14px;
}
.wx-card-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 44px;
}
.wx-card-actions a,
.wx-card-actions button {
  border: 0;
  border-right: 1px solid var(--wx-line);
  background: transparent;
  color: var(--wx-blue);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.wx-card-actions a:last-child,
.wx-card-actions button:last-child { border-right: 0; }
.wx-card-actions .danger { color: var(--wx-red); }

.wx-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 18px;
  background: #fff;
}
.wx-detail-title h1 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: #2f363d;
  font-size: 18px;
}
.wx-detail-title h1::before,
.wx-detail-section h2::before,
.wx-join-head h1::before,
.wx-progress-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: var(--wx-blue);
}
.wx-detail-section {
  margin: 0 -10px 10px;
  padding: 16px 14px;
  background: #fff;
}
.wx-detail-section h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 12px;
  color: #2f363d;
  font-size: 18px;
  font-weight: 600;
}
.wx-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
}
.wx-material-item h3 {
  margin: 0 0 10px;
  color: #686e75;
  font-size: 17px;
  font-weight: 500;
}
.wx-material-preview {
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px dashed #cfd5dc;
  background: #fff;
  overflow: hidden;
}
.wx-material-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.wx-pdf-mark {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 800;
}
.wx-info-rows { margin: 0; }
.wx-info-rows > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  min-height: 60px;
  align-items: center;
}
.wx-info-rows dt { color: #666d75; font-size: 16px; }
.wx-info-rows dd { margin: 0; color: #2e3338; font-size: 16px; overflow-wrap: anywhere; }
.wx-promise-rows button {
  float: right;
  min-height: 34px;
  border: 1px solid #ffc276;
  border-radius: 4px;
  background: #fff;
  color: #ffa23b;
}
.wx-read-dot { color: var(--wx-blue); }
.wx-document-list { display: grid; gap: 8px; }
.wx-document-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--wx-line);
  text-decoration: none;
}
.wx-document-list span { color: var(--wx-red); font-weight: 800; }
.wx-document-list em { color: var(--wx-blue); font-style: normal; }

.wx-blue-toolbar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin: 0 -10px 12px;
  padding: 8px 12px;
  background: var(--wx-blue);
  color: #fff;
}
.wx-blue-toolbar a,
.wx-blue-toolbar button,
.wx-blue-toolbar strong {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}
.wx-blue-toolbar button { border: 0; background: transparent; font-size: 24px; }
.wx-blue-toolbar label { position: relative; }
.wx-blue-toolbar label span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #b6cfff; font-size: 20px; }
.wx-blue-toolbar input { min-height: 42px; padding-left: 44px; border: 0; border-radius: 12px; background: #fff; font-size: 16px; }
.wx-blue-toolbar--title { grid-template-columns: 72px minmax(0, 1fr) 42px; }
.wx-join-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px 14px;
  background: #fff;
}
.wx-join-head h1 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: 18px;
}
.wx-join-head span { color: var(--wx-muted); font-size: 16px; }
.wx-batch-list { display: grid; gap: 10px; }
.wx-batch-card {
  border: 1px dotted #d8dee4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.wx-batch-main { padding: 14px; }
.wx-batch-main h2,
.wx-batch-card > h2 {
  margin: 0;
  padding: 12px 14px;
  background: #fff9ee;
  color: var(--wx-orange);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}
.wx-batch-main p { margin: 8px 0; color: var(--wx-muted); }
.wx-batch-card dl { margin: 0; }
.wx-batch-card dl > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border-top: 1px solid var(--wx-line);
}
.wx-batch-card dt { color: #343b42; font-size: 16px; }
.wx-batch-card dd { margin: 0; color: #8c9299; font-size: 15px; text-align: right; }
.wx-select-batch {
  margin-left: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 5px;
  background: var(--wx-green);
  color: #fff;
}
.wx-batch-capacity { padding: 0 14px 14px; color: var(--wx-muted); text-align: right; }
.wx-batch-capacity strong { display: block; color: var(--wx-green); font-size: 20px; }

.wx-bottom-action {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 54px;
  z-index: 30;
  display: grid;
  padding: 12px 18px;
  border-top: 1px solid var(--wx-line);
  background: #fff;
}
.wx-bottom-action--split { grid-template-columns: 1fr 1fr; gap: 18px; }
.wx-outline-button,
.wx-primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 18px;
  text-decoration: none;
}
.wx-outline-button { border: 1px solid var(--wx-blue); background: #fff; color: var(--wx-blue); }
.wx-primary-button { border: 1px solid var(--wx-blue); background: var(--wx-blue); color: #fff; }

.wx-progress-list,
.wx-score-list { display: grid; gap: 10px; margin: 0 -10px; }
.wx-progress-card,
.wx-score-card { background: #fff; }
.wx-progress-card h2 {
  position: relative;
  margin: 0;
  padding: 14px 12px 14px 24px;
  border-bottom: 1px solid var(--wx-line);
  font-size: 17px;
  font-weight: 500;
}
.wx-progress-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.wx-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef4;
  color: #515961;
  font-size: 20px;
  font-weight: 700;
}
.wx-progress-body strong,
.wx-score-head strong { display: block; color: #343a40; font-size: 20px; font-weight: 500; }
.wx-progress-body p,
.wx-score-head p { margin: 2px 0 0; color: #9aa0a6; font-size: 15px; }
.wx-progress-meta { text-align: right; }
.wx-progress-meta span { display: block; margin-bottom: 8px; color: #9aa0a6; }
.wx-progress-meta em {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2a532;
  color: #fff;
  font-style: normal;
}
.wx-score-card { padding: 14px; }
.wx-score-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.wx-score-head span {
  padding: 6px 12px;
  border: 1px solid #f7b760;
  border-radius: 4px;
  color: #eda039;
}
.wx-score-project {
  margin: 14px 0 0;
  padding: 10px 0;
  border-top: 1px dotted var(--wx-line);
  border-bottom: 1px dotted var(--wx-line);
  color: #969ca3;
}
.wx-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0 0;
}
.wx-score-grid div:first-child { grid-column: 1 / -1; }
.wx-score-grid dt,
.wx-score-grid dd { display: inline; margin: 0; color: #8b9298; }
.wx-score-grid dd { color: var(--wx-green); }

@media (max-width: 800px) {
  .public-mobile-app { background: var(--wx-page); }
  .public-mobile-app .site-header { display: none; }
  .public-mobile-app .page-shell { padding: 0 10px 72px; }
  .public-mobile-app .alert { margin: 8px 0; }
}

@media (max-width: 430px) {
  .wx-query-search { grid-template-columns: 84px minmax(0, 1fr) 52px; }
  .wx-card-head h2 { font-size: 17px; }
  .wx-card-actions a,
  .wx-card-actions button { font-size: 13px; }
  .wx-info-rows > div { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
  .wx-promise-rows button { float: none; display: block; margin-top: 8px; }
  .wx-progress-body,
  .wx-score-head { grid-template-columns: 52px minmax(0, 1fr); }
  .wx-progress-meta { grid-column: 2; text-align: left; }
}

/* V5.0.4 learner cleanup: remove redundant intro, default-collapsed enrollment, compact batch list. */
.compact-registration-home .page-shell { padding-top: 0; }
.compact-registration-home .compact-project-toolbar {
  margin: 0 0 8px;
  border-radius: 8px;
}
.compact-registration-home .project-authority-toggle,
.compact-registration-home .project-category-toggle {
  min-height: 40px;
}
.compact-registration-home .accordion-title small { display: none; }
.compact-registration-home .accordion-count,
.compact-registration-home .category-count {
  color: #8a929a;
  font-size: 12px;
  font-weight: 500;
}

.v504-batch-page .page-shell { padding-top: 0; }
.batch-slim-toolbar,
.batch-slim-bluebar {
  display: grid;
  align-items: center;
  gap: 8px;
  margin: 0 -10px 8px;
  padding: 8px 10px;
}
.batch-slim-toolbar {
  grid-template-columns: 38px minmax(0, 1fr) 72px;
  border-bottom: 1px solid var(--wx-line);
  background: #fff;
}
.batch-slim-bluebar {
  grid-template-columns: 70px minmax(0, 1fr) 40px;
  background: var(--wx-blue);
}
.batch-slim-bluebar a,
.batch-slim-bluebar button { color: #fff; }
.batch-slim-refresh,
.batch-slim-bluebar button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--wx-blue);
  font-size: 26px;
  line-height: 1;
}
.batch-slim-search,
.batch-slim-bluebar label {
  position: relative;
  min-width: 0;
}
.batch-slim-search span,
.batch-slim-bluebar label span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aeb6bf;
}
.batch-slim-search input,
.batch-slim-bluebar input {
  min-height: 36px;
  padding-left: 34px;
  border: 1px solid var(--wx-line);
  border-radius: 10px;
  background: #f2f5f8;
  font-size: 14px;
}
.batch-slim-bluebar input { border: 0; background: #fff; }
.batch-slim-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  background: #f3f7ff;
  color: var(--wx-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.batch-slim-application {
  margin: 0 -10px 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--wx-line);
}
.batch-slim-application h1 {
  margin: 0 0 3px;
  padding-left: 10px;
  border-left: 5px solid var(--wx-blue);
  font-size: 17px;
}
.batch-slim-application p { margin: 0; color: var(--wx-muted); }
.batch-slim-list {
  display: grid;
  gap: 8px;
}
.batch-slim-card {
  border: 1px solid var(--wx-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.batch-slim-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px 8px;
}
.batch-slim-head h2 {
  margin: 0 0 4px;
  color: #2e363d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.batch-slim-head p {
  margin: 0;
  color: var(--wx-muted);
  font-size: 13px;
  line-height: 1.35;
}
.batch-slim-capacity {
  display: inline-grid;
  min-width: 48px;
  justify-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f0fbf3;
  color: var(--wx-green);
}
.batch-slim-capacity small { color: #54b26d; font-size: 11px; line-height: 1.1; }
.batch-slim-capacity strong { color: var(--wx-green); font-size: 18px; line-height: 1.2; }
.batch-slim-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--wx-line);
}
.batch-slim-meta > div {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid var(--wx-line);
}
.batch-slim-meta > div:last-child { border-right: 0; }
.batch-slim-meta dt { color: #6e767e; font-size: 12px; }
.batch-slim-meta dd { margin: 0; color: #3b444c; font-size: 13px; line-height: 1.25; }
.batch-slim-actions {
  padding: 8px 12px;
  border-top: 1px solid var(--wx-line);
  text-align: right;
}
.batch-slim-actions button,
.batch-slim-bottom button {
  border: 0;
  border-radius: 8px;
  background: var(--wx-blue);
  color: #fff;
  font-weight: 700;
}
.batch-slim-actions button { min-height: 32px; padding: 0 12px; }
.batch-slim-load {
  min-height: 34px;
  margin: 10px auto 0;
  padding: 0 18px;
  border-radius: 999px;
}
.batch-slim-bottom {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px -10px -10px;
  padding: 10px 16px;
  border-top: 1px solid var(--wx-line);
  background: #fff;
}
.batch-slim-bottom a,
.batch-slim-bottom button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
}
.batch-slim-bottom a { border: 1px solid var(--wx-blue); color: var(--wx-blue); }

@media (max-width: 430px) {
  .batch-slim-toolbar { grid-template-columns: 36px minmax(0, 1fr) 66px; }
  .batch-slim-head { padding: 9px 10px 7px; }
  .batch-slim-head h2 { font-size: 15px; }
  .batch-slim-meta > div { padding: 7px 10px; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* V5.0.5 backend table UI cleanup */
.admin-table-system {
  --admin-bg: #f3f5f8;
  --admin-line: #d8dee8;
  --admin-sidebar: #111827;
  --admin-sidebar-hover: #1f2937;
  --admin-primary: #1677ff;
  background: var(--admin-bg);
}
.admin-table-system .admin-header {
  border-bottom: 1px solid #d9e0ea;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.admin-table-system .admin-header__inner { min-height: 54px; padding: 0 18px; }
.admin-table-system .admin-brand span:first-child {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: #fff;
  font-weight: 800;
}
.admin-table-system .admin-brand strong { font-size: 15px; }
.admin-table-system .admin-brand small { color: #64748b; }
.admin-table-system .admin-top-link {
  padding: 5px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.admin-table-system .admin-account button {
  padding: 4px 10px;
  border-color: #dbe3ef;
  color: #334155;
}
.admin-table-system .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
.admin-table-system .admin-sidebar {
  padding: 12px 10px;
  border-right: 0;
  background: var(--admin-sidebar);
  color: #cbd5e1;
}
.admin-table-system .admin-sidebar nav { gap: 4px; }
.admin-table-system .nav-label {
  margin: 12px 8px 4px;
  padding: 0;
  color: #7b8794;
  font-size: 12px;
  font-weight: 700;
}
.admin-table-system .admin-sidebar a {
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #dbe4ef;
}
.admin-table-system .admin-sidebar a:hover,
.admin-table-system .admin-sidebar a.is-active {
  background: var(--admin-sidebar-hover);
  color: #fff;
}
.admin-table-system .admin-sidebar a.is-active { box-shadow: inset 3px 0 0 var(--admin-primary); }
.admin-table-system .admin-sidebar i {
  display: inline-flex;
  width: 22px;
  color: #93a4b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.admin-table-system .admin-content { padding: 18px; }
.admin-table-system .admin-page-head {
  margin-bottom: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--admin-line);
}
.admin-table-system .admin-page-head h1 { margin: 0 0 4px; font-size: 22px; }
.admin-table-system .admin-page-head p { margin: 0; color: #64748b; }
.admin-table-system .admin-table-panel,
.admin-table-system .panel,
.admin-table-system .admin-panel {
  margin-bottom: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.admin-table-system .table-section-title {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-line);
  background: #f8fafc;
}
.admin-table-system .table-section-title h2 { font-size: 15px; }
.admin-table-system .plain-admin-table th,
.admin-table-system .summary-table th,
.admin-table-system .inner-data-table th,
.admin-table-system .detail-info-table th,
.admin-table-system .admin-panel table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}
.admin-table-system .plain-admin-table td,
.admin-table-system .plain-admin-table th,
.admin-table-system .detail-info-table td,
.admin-table-system .detail-info-table th,
.admin-table-system .inner-data-table td,
.admin-table-system .inner-data-table th {
  padding: 9px 11px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}
.admin-table-system .plain-admin-table tr:hover td { background: #fbfdff; }
.admin-table-system .admin-stat-table td strong { display: block; color: #0f172a; font-size: 24px; line-height: 1.2; }
.admin-table-system .filter-panel,
.admin-table-system .catalog-admin-toolbar {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}
.admin-table-system .filter-panel--admin-table {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
}
.admin-table-system .filter-panel__search { position: relative; }
.admin-table-system .filter-panel__search span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}
.admin-table-system .filter-panel__search input { padding-left: 32px; }
.admin-table-system .simple-filter-row { justify-content: flex-end; }
.admin-table-system .simple-filter-row label span { color: #475569; white-space: nowrap; }
.admin-table-system .filter-grid { grid-column: 1 / -1; }
.admin-table-system .btn { border-radius: 6px; }
.admin-table-system .btn--primary { border-color: var(--admin-primary); background: var(--admin-primary); }
.admin-table-system .btn--secondary { border-color: #bfdbfe; background: #eff6ff; color: #0b63d1; }
.admin-table-system .table-link { color: #0b63d1; font-weight: 700; }
.admin-table-system .status-pill,
.admin-table-system .authority-tag { border-radius: 999px; }
.admin-table-system .switch-button { border-radius: 6px; }
.admin-table-system .switch-button b { font-size: 12px; }
.admin-table-system .table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-table-system .admin-form-table th { width: 120px; }
.admin-table-system .admin-form-table td { min-width: 220px; }
.admin-table-system .admin-inline-details {
  margin-bottom: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}
.admin-table-system .admin-inline-details summary {
  padding: 10px 12px;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}
.admin-table-system .admin-inline-details pre {
  max-height: 320px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-top: 1px solid var(--admin-line);
  background: #f8fafc;
  white-space: pre-wrap;
}
.admin-table-system .admin-inline-details--cell {
  margin: 0;
  border: 0;
  background: transparent;
}
.admin-table-system .admin-inline-details--cell summary { padding: 0; color: #0b63d1; }
.admin-table-system .rule-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  min-width: 680px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}
.admin-table-system .rule-detail-grid h3 { margin-bottom: 6px; }
.admin-table-system .rule-detail-grid ul { margin: 0; padding-left: 18px; }
.admin-table-system .rule-detail-grid li { margin-bottom: 4px; }
.admin-table-system .login-layout--table {
  max-width: 420px;
  grid-template-columns: 1fr;
  margin: 56px auto;
}
.admin-table-system .login-card { padding: 20px; }
.admin-table-system .plain-help-card,
.admin-table-system .dashboard-test-mode,
.admin-table-system .sidebar-foot { display: none !important; }

@media (max-width: 800px) {
  .admin-table-system .admin-menu-button { display: inline-grid; place-items: center; }
  .admin-table-system .admin-shell { display: block; }
  .admin-table-system .admin-sidebar {
    position: fixed;
    top: 54px;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: 220px;
    height: auto;
    transform: translateX(-102%);
    transition: transform .18s ease;
  }
  .admin-table-system .admin-sidebar.is-open { transform: translateX(0); }
  .admin-table-system .admin-content { padding: 10px; }
  .admin-table-system .admin-page-head { display: block; }
  .admin-table-system .admin-page-head .button-row { margin-top: 8px; }
  .admin-table-system .filter-panel--admin-table { grid-template-columns: 1fr; }
  .admin-table-system .simple-filter-row { justify-content: flex-start; flex-wrap: wrap; }
  .admin-table-system .responsive-table { overflow-x: auto; }
  .admin-table-system .plain-admin-table,
  .admin-table-system .admin-applications-table,
  .admin-table-system .admin-batch-table,
  .admin-table-system .project-management-table,
  .admin-table-system .rule-admin-table,
  .admin-table-system .detail-info-table,
  .admin-table-system .inner-data-table {
    display: table !important;
    width: 100% !important;
    min-width: 760px !important;
  }
  .admin-table-system .plain-admin-table thead,
  .admin-table-system .admin-applications-table thead,
  .admin-table-system .admin-batch-table thead,
  .admin-table-system .project-management-table thead,
  .admin-table-system .rule-admin-table thead,
  .admin-table-system .detail-info-table thead,
  .admin-table-system .inner-data-table thead { display: table-header-group !important; }
  .admin-table-system .plain-admin-table tbody,
  .admin-table-system .admin-applications-table tbody,
  .admin-table-system .admin-batch-table tbody,
  .admin-table-system .project-management-table tbody,
  .admin-table-system .rule-admin-table tbody,
  .admin-table-system .detail-info-table tbody,
  .admin-table-system .inner-data-table tbody { display: table-row-group !important; }
  .admin-table-system .plain-admin-table tr,
  .admin-table-system .admin-applications-table tr,
  .admin-table-system .admin-batch-table tr,
  .admin-table-system .project-management-table tr,
  .admin-table-system .rule-admin-table tr,
  .admin-table-system .detail-info-table tr,
  .admin-table-system .inner-data-table tr {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .admin-table-system .plain-admin-table td,
  .admin-table-system .plain-admin-table th,
  .admin-table-system .admin-applications-table td,
  .admin-table-system .admin-batch-table td,
  .admin-table-system .project-management-table td,
  .admin-table-system .rule-admin-table td,
  .admin-table-system .detail-info-table td,
  .admin-table-system .detail-info-table th,
  .admin-table-system .inner-data-table td,
  .admin-table-system .inner-data-table th {
    display: table-cell !important;
    width: auto !important;
  }
  .admin-table-system .plain-admin-table td::before,
  .admin-table-system .admin-applications-table td::before,
  .admin-table-system .admin-batch-table td::before,
  .admin-table-system .project-management-table td::before,
  .admin-table-system .detail-info-table td::before { content: none !important; }
}
.admin-hidden-keyword { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* V5.1.1 clean UI refactor: remove testing-heavy visual noise and normalize front/back office. */
:root {
  --clean-blue: #2563eb;
  --clean-blue-dark: #1d4ed8;
  --clean-bg: #f6f7f9;
  --clean-card: #ffffff;
  --clean-border: #e5e7eb;
  --clean-text: #111827;
  --clean-muted: #6b7280;
  --clean-soft: #f9fafb;
}
.clean-public-ui { background: var(--clean-bg); color: var(--clean-text); }
.clean-public-ui .container { max-width: 720px; }
.clean-site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--clean-border); box-shadow: none; }
.clean-site-header .site-brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--clean-blue); color: #fff; }
.clean-site-header .site-brand strong { font-size: 15px; letter-spacing: 0; }
.clean-site-header .site-brand small { color: var(--clean-muted); font-size: 11px; }
.clean-site-header .site-nav a { color: #374151; border-radius: 8px; padding: 7px 9px; }
.clean-site-header .site-nav a.is-active { background: #eff6ff; color: var(--clean-blue); }
.clean-page-shell { padding-top: 14px; padding-bottom: 86px; }
.clean-mobile-nav { background: rgba(255,255,255,.98); border-top: 1px solid var(--clean-border); box-shadow: 0 -8px 24px rgba(15,23,42,.06); }
.clean-mobile-nav a { color: #6b7280; }
.clean-mobile-nav a.is-active { color: var(--clean-blue); }
.clean-mobile-nav a span { font-size: 17px; }

.clean-home-card, .clean-entry-list, .clean-query-advanced, .clean-empty,
.compact-project-toolbar, .project-authority-accordion, .batch-slim-card, .wx-application-card,
.wx-detail-section, .compact-success-main, .wx-progress-card, .wx-score-card {
  border: 1px solid var(--clean-border) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  background: var(--clean-card) !important;
}
.clean-home-card { padding: 16px; margin-bottom: 12px; }
.clean-home-card h1 { margin: 4px 0 6px; font-size: 21px; line-height: 1.25; }
.clean-home-card p { margin: 0; color: var(--clean-muted); font-size: 13px; line-height: 1.6; }
.clean-eyebrow { display: inline-flex; color: var(--clean-blue); font-size: 12px; font-weight: 700; }
.clean-info-grid { margin: 14px 0 0; display: grid; gap: 0; border-top: 1px solid var(--clean-border); }
.clean-info-grid div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.clean-info-grid dt { color: var(--clean-muted); font-size: 12px; }
.clean-info-grid dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; }
.clean-entry-list { overflow: hidden; }
.clean-entry-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 15px 16px; color: var(--clean-text); text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.clean-entry-list a:last-child { border-bottom: 0; }
.clean-entry-list span { color: var(--clean-blue); font-size: 12px; font-weight: 800; }
.clean-entry-list strong { font-size: 15px; }
.clean-entry-list em { font-style: normal; color: var(--clean-muted); font-size: 12px; }

.compact-project-toolbar { padding: 12px !important; margin-bottom: 10px !important; }
.compact-search-box, .batch-slim-search, .wx-search-input { border: 1px solid var(--clean-border) !important; background: var(--clean-soft) !important; border-radius: 10px !important; }
.compact-authority-tabs { gap: 6px !important; overflow-x: auto; padding-bottom: 2px; }
.compact-authority-tabs button { border-radius: 999px !important; border: 1px solid var(--clean-border) !important; background: #fff !important; color: #374151 !important; padding: 7px 11px !important; }
.compact-authority-tabs button.is-active { background: #eff6ff !important; color: var(--clean-blue) !important; border-color: #bfdbfe !important; }
.project-authority-accordion { margin-bottom: 8px !important; overflow: hidden; }
.project-authority-toggle, .project-category-toggle { min-height: auto !important; padding: 12px 14px !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid #f3f4f6 !important; }
.accordion-color-mark { width: 4px !important; border-radius: 6px !important; background: var(--clean-blue) !important; }
.accordion-title small, .project-row-main small, .category-count, .accordion-count { color: var(--clean-muted) !important; }
.compact-project-row { padding: 12px 14px !important; border-bottom: 1px solid #f3f4f6 !important; }
.project-row-actions a { background: var(--clean-blue) !important; color: #fff !important; border-radius: 8px !important; padding: 7px 10px !important; }

.clean-simple-head { padding: 4px 2px 10px; }
.clean-simple-head h1 { font-size: 22px; margin: 0; }
.clean-simple-head p { margin: 4px 0 0; color: var(--clean-muted); }

.batch-slim-toolbar, .batch-slim-bluebar { margin-bottom: 10px !important; padding: 10px !important; background: #fff !important; border: 1px solid var(--clean-border) !important; border-radius: 12px !important; box-shadow: none !important; }
.batch-slim-card { padding: 12px 14px !important; margin-bottom: 8px !important; }
.batch-slim-head h2 { font-size: 14px !important; line-height: 1.35 !important; margin: 0 0 3px !important; }
.batch-slim-head p, .batch-slim-meta dt { color: var(--clean-muted) !important; }
.batch-slim-capacity { width: 54px !important; height: 48px !important; border-radius: 10px !important; background: #eff6ff !important; color: var(--clean-blue) !important; }
.batch-slim-meta { margin-top: 10px !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
.batch-slim-meta div { background: var(--clean-soft) !important; border-radius: 8px !important; padding: 8px !important; }
.batch-slim-actions button, .batch-slim-bottom button { background: var(--clean-blue) !important; border-radius: 10px !important; }

.clean-query-toolbar { background: #fff !important; border: 1px solid var(--clean-border) !important; border-radius: 12px !important; box-shadow: none !important; padding: 10px !important; }
.clean-query-toolbar .wx-more-query { min-width: 64px !important; height: 38px !important; border-radius: 9px !important; background: var(--clean-blue) !important; }
.clean-query-advanced { padding: 0 !important; margin: 10px 0 !important; overflow: hidden; }
.clean-query-advanced summary { padding: 12px 14px; color: var(--clean-muted); font-weight: 700; }
.clean-query-advanced .wx-query-fields { padding: 0 14px 14px; }
.clean-application-card { padding: 0 !important; overflow: hidden; margin-bottom: 10px !important; }
.clean-application-card .wx-card-head { padding: 14px !important; border-bottom: 1px solid #f3f4f6 !important; }
.clean-application-card h2 { font-size: 15px !important; line-height: 1.35 !important; }
.clean-application-card .wx-class-box { margin: 0 14px 10px !important; padding: 10px 12px !important; background: var(--clean-soft) !important; border: 1px solid #f3f4f6 !important; border-radius: 9px !important; }
.clean-card-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)) !important; gap: 6px !important; padding: 0 14px 14px !important; }
.clean-card-actions a { border-radius: 8px !important; background: #f3f4f6 !important; color: #374151 !important; padding: 8px 4px !important; font-size: 12px !important; text-align: center; }
.wx-status-success { background: #ecfdf5 !important; color: #047857 !important; border: 1px solid #a7f3d0 !important; }
.clean-empty { padding: 18px !important; text-align: center; }
.clean-empty h2 { margin: 0 0 6px; font-size: 17px; }
.clean-empty p { margin: 0; color: var(--clean-muted); }
.wx-detail-title { background: #fff !important; border: 1px solid var(--clean-border) !important; box-shadow: none !important; border-radius: 12px !important; padding: 14px !important; }
.wx-detail-title h1 { font-size: 17px !important; }
.wx-detail-section { padding: 14px !important; margin-bottom: 10px !important; }
.wx-detail-section h2 { font-size: 15px !important; margin-bottom: 10px !important; border-left: 3px solid var(--clean-blue); padding-left: 8px; }
.wx-info-rows div { padding: 9px 0 !important; border-bottom: 1px solid #f3f4f6 !important; }
.wx-material-grid { gap: 8px !important; }
.wx-material-item { border: 1px solid #f3f4f6 !important; border-radius: 10px !important; overflow: hidden; }
.wx-material-actions { margin: -2px 0 10px; }
.wx-material-actions .wx-outline-button { min-height: 38px; padding: 0 14px; font-size: 14px; }
.edit-material-list { display: grid; gap: 12px; }
.edit-material-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; background: #fff; }
.edit-material-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.edit-material-card__head strong { font-size: 15px; color: #111827; }
.edit-material-card__head em { color: #ef4444; font-style: normal; margin-right: 2px; }
.edit-material-card__head small { flex: 0 0 auto; color: #6b7280; }
.edit-material-current { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.edit-material-current a { max-width: 100%; border-radius: 999px; background: #eef6ff; color: #1677d2; padding: 5px 9px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-material-upload { min-height: 118px; }
.edit-material-date { margin-top: 8px; }
.compact-success-main { padding: 20px 16px !important; }
.compact-success-icon { background: #16a34a !important; box-shadow: none !important; }
.compact-success-actions { gap: 8px !important; }
.compact-success-actions .btn { border-radius: 10px !important; }

/* Back office: dense, conventional table system. */
.admin-table-system { background: #f3f4f6 !important; color: #111827; }
.admin-table-system .admin-header { height: 52px !important; background: #111827 !important; border-bottom: 0 !important; box-shadow: none !important; }
.admin-table-system .admin-header__inner { min-height: 52px !important; }
.admin-table-system .admin-brand { color: #fff !important; gap: 10px !important; }
.admin-table-system .admin-brand > span { width: 28px !important; height: 28px !important; border-radius: 7px !important; background: #2563eb !important; }
.admin-table-system .admin-brand strong { font-size: 14px !important; }
.admin-table-system .admin-brand small { color: #cbd5e1 !important; }
.admin-table-system .admin-account { color: #e5e7eb !important; }
.admin-table-system .admin-account button, .admin-table-system .admin-top-link { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; border-radius: 6px !important; }
.admin-table-system .admin-shell { display: grid !important; grid-template-columns: 210px 1fr !important; min-height: calc(100vh - 52px) !important; }
.admin-table-system .admin-sidebar { background: #fff !important; border-right: 1px solid var(--clean-border) !important; box-shadow: none !important; padding: 12px 10px !important; }
.admin-table-system .admin-nav { gap: 3px !important; }
.admin-table-system .admin-nav .nav-label { margin: 12px 8px 5px !important; font-size: 11px !important; color: #9ca3af !important; }
.admin-table-system .admin-nav a { border-radius: 8px !important; padding: 9px 10px !important; color: #374151 !important; border: 0 !important; background: transparent !important; }
.admin-table-system .admin-nav a i { width: 22px !important; height: 22px !important; border-radius: 6px !important; background: #f3f4f6 !important; color: #6b7280 !important; }
.admin-table-system .admin-nav a.is-active { background: #eff6ff !important; color: var(--clean-blue) !important; font-weight: 700 !important; }
.admin-table-system .admin-nav a.is-active i { background: var(--clean-blue) !important; color: #fff !important; }
.admin-table-system .admin-content { padding: 16px !important; max-width: none !important; }
.admin-table-system .admin-page-head { background: #fff !important; border: 1px solid var(--clean-border) !important; border-radius: 10px !important; box-shadow: none !important; padding: 14px 16px !important; margin-bottom: 12px !important; }
.admin-table-system .admin-page-head h1 { font-size: 20px !important; margin: 0 0 2px !important; }
.admin-table-system .admin-page-head p { font-size: 12px !important; color: var(--clean-muted) !important; margin: 0 !important; }
.admin-table-system .admin-table-panel, .admin-table-system .filter-panel { background: #fff !important; border: 1px solid var(--clean-border) !important; border-radius: 10px !important; box-shadow: none !important; margin-bottom: 12px !important; }
.admin-table-system .admin-table-panel { padding: 0 !important; overflow: hidden; }
.admin-table-system .filter-panel { padding: 12px !important; }
.admin-table-system .table-section-title { padding: 12px 14px !important; border-bottom: 1px solid #f3f4f6 !important; margin: 0 !important; }
.admin-table-system .table-section-title h2 { font-size: 15px !important; margin: 0 !important; }
.admin-table-system .plain-admin-table { border-collapse: collapse !important; width: 100% !important; }
.admin-table-system .plain-admin-table th { background: #f9fafb !important; color: #4b5563 !important; font-size: 12px !important; font-weight: 700 !important; padding: 10px 12px !important; border-bottom: 1px solid var(--clean-border) !important; }
.admin-table-system .plain-admin-table td { font-size: 13px !important; padding: 10px 12px !important; border-bottom: 1px solid #f3f4f6 !important; vertical-align: middle !important; }
.admin-table-system .plain-admin-table tr:hover td { background: #fafafa !important; }
.admin-table-system .btn { border-radius: 7px !important; box-shadow: none !important; }
.admin-table-system .btn--primary { background: var(--clean-blue) !important; border-color: var(--clean-blue) !important; }
.admin-table-system .btn--ghost, .admin-table-system .btn--secondary { background: #fff !important; border: 1px solid var(--clean-border) !important; color: #374151 !important; }
.admin-table-system .btn--compact { padding: 6px 9px !important; font-size: 12px !important; }
.admin-table-system .filter-panel__search, .admin-table-system input, .admin-table-system select, .admin-table-system textarea { border-radius: 7px !important; border-color: var(--clean-border) !important; box-shadow: none !important; }
.admin-table-system .status-pill, .authority-tag { border-radius: 999px !important; box-shadow: none !important; font-size: 12px !important; }
.admin-table-system .responsive-table { overflow: auto; }
.admin-table-system .pagination { padding: 12px !important; }
@media (max-width: 860px) {
  .admin-table-system .admin-shell { display: block !important; }
  .admin-table-system .admin-sidebar { position: fixed !important; top: 52px !important; left: 0 !important; bottom: 0 !important; width: 230px !important; transform: translateX(-104%); transition: transform .18s ease; z-index: 30; }
  .admin-table-system .admin-sidebar.is-open { transform: translateX(0); }
  .admin-table-system .admin-content { padding: 10px !important; }
  .admin-table-system .admin-page-head { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
}

/* V5.1.2: compact backend action area for learning card operations */
.admin-action-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
}
.admin-action-strip form { margin: 0; }

/* V5.2 real batch enrollment */
.wx-inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.wx-inline-actions form { margin: 0; }
.wx-danger-button { min-height: 40px; border: 1px solid #ef4444; background: #fff; color: #dc2626; border-radius: 12px; padding: 0 14px; font-weight: 700; }
.batch-slim-actions form { width: 100%; }
.batch-slim-actions button[disabled] { background: #e5e7eb !important; color: #9ca3af !important; cursor: not-allowed; }
.batch-slim-actions .is-muted { background: #f3f4f6 !important; color: #374151 !important; }
.admin-batch-join-strip form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-batch-join-strip select { min-width: 260px; max-width: 420px; height: 36px; border: 1px solid var(--admin-border, #d9dee8); border-radius: 8px; padding: 0 10px; background: #fff; }

/* V5.2.1: searchable project picker for backend batch creation */
.admin-project-picker { position: relative; width: 100%; }
.admin-project-picker input[type="search"] { width: 100%; }
.admin-project-picker__menu {
  display: none;
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--clean-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  padding: 4px;
}
.admin-project-picker__menu.is-open { display: block; }
.admin-project-picker__menu button {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}
.admin-project-picker__menu button:hover { background: #eff6ff; color: var(--clean-blue, #2563eb); }
.admin-project-picker__menu button[hidden] { display: none; }

/* V5.2.2: backend batch project field uses native searchable input, not an expanded option wall. */

/* V5.4.4 learner application form: match the compact WeChat material-entry layout. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.application-form-page {
  --apply-blue: #1687f3;
  --apply-muted: #8a8a8a;
  --apply-line: #e9eef3;
  background: #fff;
}
.application-form-page .site-header,
.application-form-page .mobile-bottom-nav {
  display: none !important;
}
.application-form-page .page-shell {
  width: min(480px, 100%) !important;
  min-height: 100vh;
  padding: 0 0 calc(104px + env(safe-area-inset-bottom)) !important;
  background: #fff;
}
.application-form-page .compact-apply-header {
  display: block !important;
  margin: 0 !important;
  padding: 18px 22px 12px !important;
  border: 0 !important;
  background: #fff;
}
.application-form-page .compact-apply-header div {
  position: relative;
  padding-left: 12px;
}
.application-form-page .compact-apply-header div::before,
.application-form-page .compact-form-section > h2::before,
.application-form-page .compact-section-heading h2::before,
.application-form-page .signature-section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--apply-blue);
  vertical-align: -3px;
}
.application-form-page .compact-apply-header div::before {
  position: absolute;
  left: 0;
  top: 5px;
  margin: 0;
}
.application-form-page .compact-apply-header strong {
  display: block;
  color: #303030;
  font-size: 20px;
  line-height: 1.35;
}
.application-form-page .compact-apply-header small {
  display: none;
}
.application-form-page .flow-step-strip {
  display: none !important;
}
.application-form-page .compact-enrollment-form {
  background: #fff;
}
.application-form-page .compact-form-section {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: visible !important;
}
.application-form-page .compact-form-section + .compact-form-section {
  border-top: 8px solid #f3f8fb !important;
}
.application-form-page .compact-form-section > h2,
.application-form-page .compact-section-heading {
  margin: 0 !important;
  padding: 18px 22px 8px !important;
  border: 0 !important;
  background: #fff !important;
}
.application-form-page .compact-form-section > h2,
.application-form-page .compact-section-heading h2,
.application-form-page .signature-section-head h2 {
  color: #333;
  font-size: 19px !important;
  font-weight: 500;
  line-height: 1.35;
}
.application-form-page .compact-section-heading small,
.application-form-page .material-requirement {
  display: none !important;
}
.application-form-page .compact-upload-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 10px;
  padding: 24px 12px 34px;
}
.application-form-page .compact-upload-item {
  display: block !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: #fff;
}
.application-form-page .compact-upload-label {
  min-height: 44px;
  margin-bottom: 8px;
}
.application-form-page .compact-upload-label span {
  display: block;
  color: #5f5f5f;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
.application-form-page .compact-upload-label em,
.application-form-page .compact-line-field em {
  margin-right: 5px;
  color: #d74242;
  font-style: normal;
}
.application-form-page .compact-upload-label small:not(.material-requirement) {
  margin-top: 2px;
  font-size: 11px;
}
.application-form-page .compact-upload-box {
  position: relative;
  display: flex !important;
  aspect-ratio: 1.65;
  min-height: 132px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px !important;
  border: 1px dashed #d7d7d7 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.application-form-page .compact-upload-box:hover,
.application-form-page .compact-upload-box.is-ready {
  border-color: var(--apply-blue) !important;
  background: #fbfdff !important;
}
.application-form-page .compact-upload-icon {
  display: block !important;
  color: var(--apply-blue);
  font-size: 48px;
  line-height: 1;
}
.application-form-page .compact-upload-box strong {
  display: block;
  max-width: 150px;
  color: #999;
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.application-form-page .compact-upload-box small {
  display: none !important;
}
.application-form-page .compact-upload-box img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.application-form-page .compact-upload-box.has-preview .compact-upload-icon,
.application-form-page .compact-upload-box.has-preview strong {
  display: none !important;
}
.application-form-page .compact-upload-meta {
  display: none;
  margin-top: 6px;
  white-space: normal;
}
.application-form-page .compact-upload-meta.is-ready {
  display: block;
  color: var(--apply-blue);
}
.application-form-page .compact-file-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  color: #666;
  text-align: center;
  white-space: nowrap;
}
.application-form-page .compact-ocr-button {
  display: none !important;
}
.application-form-page .compact-material-date {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.application-form-page .compact-line-fields {
  display: block !important;
  padding: 22px 0 28px;
}
.application-form-page .compact-line-field {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) 18px !important;
  min-height: 66px;
  align-items: center;
  gap: 8px;
  padding: 12px 22px !important;
  border: 0 !important;
  background: #fff;
}
.application-form-page .compact-line-field span {
  color: #5c5c5c;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}
.application-form-page .compact-line-field input,
.application-form-page .compact-line-field select,
.application-form-page .compact-line-field textarea {
  min-height: 42px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #555;
  font-size: 17px;
  box-shadow: none !important;
}
.application-form-page .compact-line-field input:focus,
.application-form-page .compact-line-field select:focus,
.application-form-page .compact-line-field textarea:focus {
  outline: 0 !important;
}
.application-form-page .compact-line-field input::placeholder,
.application-form-page .compact-line-field textarea::placeholder {
  color: #b6b6b6;
  opacity: 1;
}
.application-form-page .compact-line-field b {
  color: #c7c7c7;
  font-size: 34px;
  font-weight: 300;
}
.application-form-page .compact-more-fields {
  border: 0 !important;
}
.application-form-page .compact-more-fields summary {
  padding: 18px 22px 8px !important;
  color: #333;
  font-size: 19px;
  font-weight: 500;
}
.application-form-page .compact-document-list {
  padding: 10px 22px 24px;
}
.application-form-page .compact-document-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f1f1 !important;
}
.application-form-page .compact-confirm {
  padding-top: 8px;
}
.application-form-page .signature-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px 22px 0;
}
.application-form-page .signature-section-head button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #cf3f3f;
  font-size: 15px;
}
.application-form-page .signature-panel {
  position: relative;
  min-height: 204px;
  margin: 0 !important;
  padding: 18px 22px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.application-form-page .signature-panel canvas {
  width: 100%;
  height: 170px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.application-form-page .signature-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translate(-50%, -42%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}
.application-form-page .signature-placeholder i {
  width: 66px;
  height: 66px;
  border: 6px solid #8f8f8f;
  border-radius: 50%;
}
.application-form-page .signature-placeholder b {
  color: #999;
  font-weight: 400;
}
.application-form-page .signature-panel canvas[data-signed="1"] + .signature-placeholder {
  display: none;
}
.application-form-page .compact-submit-spacer {
  height: 104px !important;
}
.application-form-page .compact-submit-bar {
  position: fixed !important;
  left: 50%;
  bottom: 0;
  z-index: 80;
  width: min(480px, 100%);
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  justify-content: stretch;
  padding: 12px 32px calc(12px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%);
  border: 0 !important;
  border-top: 1px solid #e7e7e7 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}
.application-form-page .compact-submit-bar .btn {
  min-height: 56px !important;
  border-radius: 999px !important;
  font-size: 22px;
  font-weight: 400;
}
.application-form-page .compact-submit-bar .btn--ghost {
  border: 1px solid var(--apply-blue) !important;
  color: var(--apply-blue) !important;
  background: #fff !important;
}
.application-form-page .compact-submit-bar .btn--primary {
  border-color: var(--apply-blue) !important;
  background: var(--apply-blue) !important;
  color: #fff !important;
}
@media (max-width: 390px) {
  .application-form-page .compact-upload-grid {
    gap: 24px 8px;
    padding-inline: 10px;
  }
  .application-form-page .compact-upload-box {
    min-height: 116px !important;
  }
  .application-form-page .compact-upload-label span,
  .application-form-page .compact-upload-box strong {
    font-size: 15px !important;
  }
  .application-form-page .compact-line-field {
    grid-template-columns: 126px minmax(0, 1fr) 14px !important;
    padding-inline: 18px !important;
  }
  .application-form-page .compact-line-field span {
    font-size: 17px;
  }
  .application-form-page .compact-submit-bar {
    gap: 18px;
    padding-inline: 24px !important;
  }
}
.admin-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--clean-border, #d7dee8);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}
.admin-search-input:focus {
  outline: none;
  border-color: var(--clean-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* V5.3 admission ticket management */
.admin-ticket-upload-form{display:flex;align-items:center;gap:12px;padding:14px 16px;flex-wrap:wrap}
.admin-ticket-upload-form input[type=file]{border:1px solid #d8dee8;border-radius:8px;padding:9px;background:#fff;min-width:280px}
.admin-ticket-table td small{display:block;color:#64748b;margin-top:3px;font-size:12px;line-height:1.35}
.muted-danger{color:#dc2626!important}
.status-pill--warning{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed}
.wx-ticket-list{display:grid;gap:10px}.wx-ticket-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#0f172a;text-decoration:none}.wx-ticket-list span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:28px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px}.wx-ticket-list strong{flex:1;font-size:15px}.wx-ticket-list em{font-style:normal;color:#2563eb}

/* V5.4.0 exam result placeholder */
.admin-score-form { display: grid; gap: 12px; }
.admin-score-form .filter-grid--wide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-score-form .filter-grid--wide label,
.admin-score-form .form-wide { display: grid; gap: 6px; color: #475569; font-size: 13px; }
.admin-score-form input,
.admin-score-form select,
.admin-score-form textarea { width: 100%; border: 1px solid var(--admin-line, #dbe3ef); border-radius: 6px; padding: 8px 10px; background: #fff; }
.admin-score-table td small { display: block; margin-top: 4px; color: #64748b; }
@media (max-width: 900px){ .admin-score-form .filter-grid--wide { grid-template-columns: 1fr; } }

/* V5.4.1 exam result entry fix */
.inline-summary-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}
.inline-summary-card strong {
  color: #0f172a;
  font-size: 14px;
}
.admin-score-entry-panel {
  border-left: 3px solid #2563eb;
}

/* V5.4.5 admin bulk actions and frontend login */
.table-section-title--actions {
  align-items: center;
  gap: 12px;
}
.admin-bulk-actions,
.admin-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-check-column {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.admin-check-column input,
.admin-row-check,
.admin-select-all input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}
.admin-applications-table td small,
.project-management-table td small {
  display: block;
  margin-top: 4px;
}
.public-account-form {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}
.public-account-form button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.frontend-login-page .clean-page-shell {
  max-width: 480px;
}
.frontend-login-card {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.frontend-login-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.frontend-login-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}
.frontend-login-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
}
.frontend-login-form {
  display: grid;
  gap: 14px;
}
.frontend-login-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}
.frontend-login-form input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
}
@media (max-width: 640px) {
  .table-section-title--actions,
  .admin-page-head--table > .button-row {
    align-items: stretch;
  }
  .admin-bulk-actions,
  .admin-page-head--table > .button-row {
    width: 100%;
    flex-wrap: wrap;
  }
  .public-account-form { justify-content: flex-end; }
}

/* V5.4.7 cohesive UI polish */
:root {
  --ui-page: #f5f7fb;
  --ui-surface: #ffffff;
  --ui-soft: #f8fafc;
  --ui-border: #e2e8f0;
  --ui-border-soft: #eef2f7;
  --ui-text: #111827;
  --ui-muted: #64748b;
  --ui-blue: #2563eb;
  --ui-blue-soft: #eff6ff;
  --ui-green: #059669;
  --ui-green-soft: #ecfdf5;
  --ui-red: #dc2626;
  --ui-red-soft: #fef2f2;
  --ui-amber: #b45309;
  --ui-amber-soft: #fffbeb;
}
body.clean-public-ui {
  background: var(--ui-page) !important;
  color: var(--ui-text);
}
.clean-public-ui .container {
  width: min(1080px, calc(100% - 24px));
}
.clean-public-ui .site-header {
  border-bottom: 1px solid var(--ui-border) !important;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(10px);
}
.clean-public-ui .site-header__inner {
  min-height: 58px !important;
}
.clean-public-ui .site-brand__mark {
  border: 0 !important;
  background: var(--ui-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.clean-public-ui .site-brand strong {
  color: #0f172a;
  font-size: 15px;
}
.clean-public-ui .site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px !important;
  color: #475569 !important;
  font-weight: 700;
}
.clean-public-ui .site-nav a.is-active,
.clean-public-ui .site-nav a:hover {
  background: var(--ui-blue-soft) !important;
  color: var(--ui-blue) !important;
  text-decoration: none;
}
.clean-public-ui .page-shell {
  padding-top: 16px;
}
.public-account-form {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
}
.public-account-form span {
  max-width: 110px;
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-account-form button {
  min-height: 28px;
}
.frontend-login-page .site-header,
.frontend-login-page .mobile-bottom-nav {
  display: none !important;
}
.frontend-login-page .clean-page-shell {
  width: min(420px, calc(100% - 28px));
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px 0;
}
.frontend-login-card {
  gap: 20px !important;
  margin: 0 !important;
  padding: 26px !important;
  border-color: var(--ui-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08) !important;
}
.frontend-login-head .site-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ui-blue);
  color: #fff;
}
.frontend-login-head h1 {
  font-size: 23px !important;
  letter-spacing: 0 !important;
}
.frontend-login-form input {
  min-height: 44px;
  border-color: var(--ui-border) !important;
  border-radius: 8px !important;
}
.frontend-login-form .btn {
  min-height: 44px;
  border-radius: 8px !important;
}
.clean-home-card,
.clean-entry-list,
.compact-project-toolbar,
.project-authority-accordion,
.clean-query-toolbar,
.clean-query-advanced,
.clean-application-card,
.batch-slim-toolbar,
.batch-slim-bluebar,
.batch-slim-card,
.wx-detail-title,
.wx-detail-section,
.compact-success-main,
.public-simple-list,
.wx-progress-card,
.wx-score-card {
  border: 1px solid var(--ui-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.clean-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 22px;
  padding: 20px !important;
}
.clean-home-card h1 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: 0;
}
.clean-eyebrow {
  color: var(--ui-blue) !important;
}
.clean-info-grid {
  border-top: 0 !important;
}
.clean-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
}
.clean-entry-list a {
  min-height: 76px;
  border-right: 1px solid var(--ui-border-soft);
  border-bottom: 0 !important;
}
.clean-entry-list a:last-child {
  border-right: 0;
}
.compact-project-toolbar,
.catalog-admin-toolbar,
.filter-panel {
  gap: 10px !important;
  border-color: var(--ui-border) !important;
}
.compact-search-box,
.filter-panel__search,
.batch-slim-search,
.wx-search-input {
  min-height: 42px;
  border-color: var(--ui-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
}
.compact-authority-tabs button,
.filter-tabs button {
  min-height: 34px;
  border-color: var(--ui-border) !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.project-authority-accordion {
  overflow: hidden;
  margin-bottom: 8px;
}
.project-authority-toggle {
  min-height: 52px;
  border-bottom: 1px solid var(--ui-border-soft) !important;
  background: #fff !important;
}
.compact-project-row {
  grid-template-columns: 8px minmax(0, 1fr) auto !important;
  min-height: 54px;
  border-bottom: 1px solid var(--ui-border-soft) !important;
}
.project-row-actions {
  display: flex;
  gap: 6px;
}
.project-row-actions a {
  min-width: 50px;
  text-align: center;
}
.batch-slim-card,
.clean-application-card {
  overflow: hidden;
}
.batch-slim-meta div,
.clean-application-card .wx-class-box {
  background: var(--ui-soft) !important;
  border-color: var(--ui-border-soft) !important;
}
.wx-detail-section,
.compact-success-main {
  margin-bottom: 10px !important;
}
.wx-detail-section h2,
.compact-form-section > h2,
.compact-section-heading h2 {
  color: #0f172a;
  letter-spacing: 0;
}
.wx-info-rows > div,
.compact-success-list > div {
  border-bottom-color: var(--ui-border-soft) !important;
}
.compact-success-main {
  max-width: 560px;
  margin-inline: auto;
  padding: 22px !important;
}
.compact-success-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
}
.application-form-page {
  background: #f3f6fb !important;
}
.application-form-page .compact-apply-header,
.application-form-page .compact-form-section {
  border-radius: 0 !important;
}
.application-form-page .compact-form-section > h2,
.application-form-page .compact-section-heading {
  background: #fff !important;
}
.application-form-page .compact-upload-box {
  border-color: #d5dce6 !important;
  border-radius: 0 !important;
}
.application-form-page .compact-line-field {
  min-height: 62px;
}
.admin-table-system {
  --admin-accent: #2563eb;
  background: #f4f6fa !important;
}
.admin-table-system .admin-header {
  background: #0f172a !important;
}
.admin-table-system .admin-brand > span {
  background: var(--admin-accent) !important;
}
.admin-table-system .admin-shell {
  grid-template-columns: 220px minmax(0, 1fr) !important;
}
.admin-table-system .admin-sidebar {
  background: #fff !important;
  border-right: 1px solid var(--ui-border) !important;
}
.admin-table-system .admin-nav a {
  min-height: 38px;
}
.admin-table-system .admin-content {
  padding: 18px !important;
}
.admin-table-system .admin-page-head,
.admin-table-system .admin-table-panel,
.admin-table-system .filter-panel,
.admin-table-system .catalog-admin-toolbar,
.admin-inline-details {
  border: 1px solid var(--ui-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.admin-table-system .admin-page-head {
  min-height: 70px;
  align-items: center;
}
.admin-table-system .table-section-title {
  min-height: 46px;
  background: #fff !important;
  border-bottom-color: var(--ui-border-soft) !important;
}
.admin-table-system .plain-admin-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  white-space: nowrap;
}
.admin-table-system .plain-admin-table td {
  color: #1f2937;
}
.admin-table-system .summary-table td strong,
.admin-table-system .admin-stat-table td strong {
  color: #0f172a;
  font-size: 22px !important;
}
.admin-table-system .detail-info-table th {
  width: 128px;
  color: #64748b !important;
}
.admin-table-system .detail-info-table td {
  color: #111827;
}
.admin-table-system .admin-form-table th {
  width: 120px;
}
.admin-table-system input,
.admin-table-system select,
.admin-table-system textarea,
.admin-search-input {
  min-height: 38px;
  border-color: var(--ui-border) !important;
  border-radius: 7px !important;
}
.admin-table-system .btn {
  min-height: 34px;
  border-radius: 7px !important;
}
.admin-table-system .switch-button {
  min-width: 76px;
}
.admin-table-system .log-detail {
  display: block;
  max-width: 520px;
  overflow: hidden;
  color: #475569;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table-system .rule-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-table-system .rule-detail-grid section {
  padding: 10px;
  border: 1px solid var(--ui-border-soft);
  border-radius: 8px;
  background: var(--ui-soft);
}
.admin-table-system .rule-detail-grid ul {
  margin: 0;
  padding-left: 18px;
}
.status-pill--success,
.wx-status-success {
  background: var(--ui-green-soft) !important;
  color: var(--ui-green) !important;
  border: 1px solid #bbf7d0 !important;
}
.status-pill--muted {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}
.status-pill--warning {
  background: var(--ui-amber-soft) !important;
  color: var(--ui-amber) !important;
  border: 1px solid #fde68a !important;
}
.status-pill--danger {
  background: var(--ui-red-soft) !important;
  color: var(--ui-red) !important;
  border: 1px solid #fecaca !important;
}
@media (max-width: 900px) {
  .clean-home-card,
  .clean-entry-list {
    grid-template-columns: 1fr;
  }
  .clean-entry-list a {
    border-right: 0;
    border-bottom: 1px solid var(--ui-border-soft) !important;
  }
  .admin-table-system .admin-shell {
    display: block !important;
  }
  .admin-table-system .admin-content {
    padding: 12px !important;
  }
  .admin-table-system .rule-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .clean-public-ui .site-header__inner {
    min-height: 52px !important;
  }
  .clean-public-ui .site-brand strong {
    max-width: 170px;
  }
  .public-account-form {
    padding: 0 6px;
  }
  .public-account-form span {
    display: none;
  }
  .compact-project-row {
    grid-template-columns: 6px minmax(0, 1fr) auto !important;
    padding: 11px 10px !important;
  }
  .project-row-actions {
    flex-direction: column;
  }
  .project-row-actions a {
    min-width: 44px;
    padding: 6px 8px !important;
  }
  .compact-success-actions {
    grid-template-columns: 1fr;
  }
  .admin-table-system .admin-page-head,
  .admin-table-system .table-section-title {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-table-system .button-row,
  .admin-bulk-actions {
    width: 100%;
  }
  .admin-table-system .button-row .btn,
  .admin-bulk-actions .btn {
    flex: 1;
  }
}

/* V5.4.8 restore enrollment item layout */
.compact-registration-home .project-direct-list .compact-project-row,
.compact-registration-home .compact-project-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 12px 14px !important;
}
.compact-registration-home .project-row-dot {
  display: none !important;
}
.compact-registration-home .project-row-main {
  min-width: 0 !important;
}
.compact-registration-home .project-row-main strong {
  display: block !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}
.compact-registration-home .project-row-main small {
  display: block !important;
  margin-top: 3px !important;
  line-height: 1.35 !important;
}
.compact-registration-home .project-row-actions {
  width: auto !important;
  min-width: 112px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(50px, auto)) !important;
  gap: 6px !important;
  justify-content: end !important;
}
.compact-registration-home .project-row-actions a {
  width: auto !important;
  min-width: 50px !important;
  min-height: 30px !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
@media (max-width: 430px) {
  .compact-registration-home .project-direct-list .compact-project-row,
  .compact-registration-home .compact-project-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 11px 10px !important;
  }
  .compact-registration-home .project-row-actions {
    min-width: 98px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .compact-registration-home .project-row-actions a {
    min-width: 46px !important;
    padding: 6px 8px !important;
  }
}


/* V5.5.0 clean navigation: remove 首页/我的 visible entries and polish bottom actions */
.site-nav--compact {
  gap: 6px;
}
.site-nav--compact a {
  min-width: 58px;
  text-align: center;
}
.clean-mobile-nav.mobile-bottom-nav--three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.clean-mobile-nav a em {
  display: block;
  font-style: normal;
}
@media (max-width: 800px) {
  .clean-page-shell {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
  .clean-mobile-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    min-height: 58px !important;
    padding: 6px !important;
    border: 1px solid var(--ui-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.12) !important;
  }
  .clean-mobile-nav a {
    display: flex !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 12px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }
  .clean-mobile-nav a span {
    display: none !important;
  }
  .clean-mobile-nav a em {
    font-size: 13px !important;
    line-height: 1 !important;
  }
  .clean-mobile-nav a.is-active {
    background: var(--ui-blue-soft, #eff6ff) !important;
    color: var(--ui-blue, #2563eb) !important;
  }
  .clean-entry-list {
    grid-template-columns: 1fr !important;
  }
}

/* V5.5.1 restore 首页/我的 and simplify query/enrollment UI */
.v551-home-page .page-shell {
  background: #f3f7fb;
}
.home-showcase-hero {
  min-height: 128px;
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d63e9, #11b4f0);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}
.home-showcase-hero__content p,
.home-showcase-hero__content small {
  margin: 0;
  opacity: .88;
}
.home-showcase-hero__content h1 {
  margin: 4px 0 5px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .5px;
}
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}
.home-quick-grid a {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 4px 2px;
  color: #0f172a;
  text-decoration: none;
}
.home-quick-grid b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--ui-blue, #2563eb);
  font-size: 24px;
  font-weight: 800;
}
.home-quick-grid a:nth-child(2) b { background: #ecfdf5; color: #10b981; }
.home-quick-grid a:nth-child(3) b { background: #fff7ed; color: #fb923c; }
.home-quick-grid a:nth-child(4) b { background: #f5f3ff; color: #8b5cf6; }
.home-quick-grid strong { font-size: 14px; }
.home-quick-grid span { color: #94a3b8; font-size: 11px; }
.home-school-banner,
.home-info-card {
  margin-bottom: 10px;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}
.home-school-banner {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(90deg, #eff6ff, #ffffff);
}
.home-school-banner strong { color: #2563eb; font-size: 16px; }
.home-school-banner span { color: #64748b; font-size: 13px; }
.home-info-card { overflow: hidden; }
.home-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-border-soft, #eef2f7);
}
.home-section-title h2 { margin: 0; font-size: 16px; }
.home-section-title span { color: #94a3b8; font-size: 12px; }
.home-info-card a {
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ui-border-soft, #eef2f7);
  color: #0f172a;
  text-decoration: none;
}
.home-info-card a:last-child { border-bottom: 0; }
.home-info-card a span { color: #94a3b8; font-size: 12px; }

.v551-enroll-page .compact-project-toolbar {
  display: block !important;
  padding: 10px !important;
}
.v551-enroll-page .compact-authority-tabs {
  display: none !important;
}
.v551-enroll-page .compact-search-box {
  width: 100%;
}
.v551-enroll-page .project-authority-toggle {
  min-height: 50px;
  border-radius: 12px;
}
.v551-enroll-page .project-authority-accordion {
  border-radius: 12px !important;
  border-bottom: 1px solid var(--ui-border, #e2e8f0) !important;
}

.v551-query-page .wx-query-toolbar,
.v551-query-page .wx-query-advanced {
  display: none !important;
}
.query-simple-card {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}
.query-simple-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.query-refresh {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--ui-blue, #2563eb);
  font-size: 26px;
  line-height: 1;
}
.query-simple-title h1 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.25;
}
.query-simple-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.query-simple-form {
  display: grid;
  gap: 9px;
}
.query-simple-form label {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
}
.query-simple-form label span {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}
.query-simple-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
}
.query-simple-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}
.query-simple-actions .btn {
  min-height: 40px;
  justify-content: center;
}
.query-empty-note {
  margin-top: 10px !important;
}

.v551-my-page .page-shell {
  background: linear-gradient(#cfe8ff 0, #eef4fa 160px, #eef4fa 100%);
}
.my-profile-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 22px 16px;
}
.my-avatar {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.my-profile-card h1 { margin: 0 0 6px; font-size: 20px; }
.my-profile-card p { margin: 0; color: #475569; font-size: 13px; }
.my-menu-card {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.my-menu-card a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ui-border-soft, #eef2f7);
  color: #0f172a;
  text-decoration: none;
}
.my-menu-card a:last-child { border-bottom: 0; }
.my-menu-card a span { color: #2563eb; font-size: 20px; }
.my-menu-card a strong { font-size: 15px; }
.my-menu-card a em { color: #94a3b8; font-size: 12px; font-style: normal; }

.batch-slim-card {
  border-radius: 12px !important;
  border: 1px solid var(--ui-border, #e2e8f0) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.batch-slim-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 10px !important;
}
.batch-slim-meta div {
  min-height: 54px;
}
.batch-slim-toolbar {
  grid-template-columns: 38px minmax(0, 1fr) 72px !important;
}
.batch-slim-search input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clean-mobile-nav.mobile-bottom-nav--five {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.clean-mobile-nav.mobile-bottom-nav--five a span {
  display: block !important;
  font-size: 17px !important;
  line-height: 1 !important;
}
.clean-mobile-nav.mobile-bottom-nav--five a em {
  display: block !important;
  margin-top: 3px;
  font-size: 11px !important;
  line-height: 1 !important;
}
@media (max-width: 800px) {
  .clean-mobile-nav.mobile-bottom-nav--five {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: 58px !important;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }
  .clean-mobile-nav.mobile-bottom-nav--five a {
    min-height: 48px !important;
    border-radius: 10px !important;
  }
  .clean-page-shell {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
  .home-showcase-hero {
    margin-inline: 0;
    border-radius: 12px;
  }
  .home-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 6px;
  }
  .home-quick-grid b {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .home-quick-grid strong { font-size: 13px; }
  .home-quick-grid span { display: none; }
}
@media (max-width: 380px) {
  .query-simple-form label { grid-template-columns: 76px minmax(0, 1fr); }
  .query-simple-form label span { font-size: 12px; }
}


/* V5.5.2 mobile bottom nav + query app + my icons */
:root {
  --app-blue: #2b6de9;
  --app-blue-soft: #eaf2ff;
  --app-slate: #c8d3e1;
  --app-bg: #eef3f8;
}

.mobile-bottom-nav--app {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.mobile-bottom-nav--app .nav-item {
  position: relative;
}
.mobile-bottom-nav--app .nav-icon {
  display: flex !important;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}
.mobile-bottom-nav--app .nav-icon svg {
  width: 20px;
  height: 20px;
}
.mobile-bottom-nav--app .nav-item em {
  display: block !important;
  margin-top: 3px;
  font-style: normal;
}
.mobile-bottom-nav--app .nav-item--plus {
  padding-top: 0 !important;
}
.mobile-bottom-nav--app .nav-plus-badge {
  display: grid !important;
  width: 52px;
  height: 52px;
  margin-top: -24px;
  place-items: center;
  border: 5px solid #f2f5f9;
  border-radius: 999px;
  background: linear-gradient(180deg, #5e98ff, #2b6de9);
  box-shadow: 0 10px 18px rgba(43,109,233,.28);
  color: #fff;
  font-size: 32px !important;
  font-weight: 600;
  line-height: 1;
}
.mobile-bottom-nav--app .nav-item--plus em {
  margin-top: 6px;
}
.mobile-bottom-nav--app .nav-item.is-active {
  color: var(--app-blue) !important;
}
.mobile-bottom-nav--app .nav-item.is-active:not(.nav-item--plus) {
  background: #eff5ff !important;
}
@media (max-width: 800px) {
  .clean-mobile-nav.mobile-bottom-nav--app {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: 72px !important;
    padding: 6px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 -10px 24px rgba(15,23,42,.08) !important;
  }
  .clean-mobile-nav.mobile-bottom-nav--app .nav-item {
    min-height: 56px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8a97a8 !important;
  }
  .clean-mobile-nav.mobile-bottom-nav--app .nav-item em {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  .clean-page-shell {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}

.v552-query-page .page-shell {
  padding-top: 0;
  background: #eef3f8;
}
.v552-query-page .alert {
  margin: 10px 0 0;
}
.wx-query-app {
  min-height: calc(100vh - 90px);
  background: #eef3f8;
}
.wx-query-topbar {
  display: grid;
  grid-template-columns: 28px 76px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  padding: 10px 0 8px;
}
.wx-query-refresh {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--app-blue);
  font-size: 27px;
  line-height: 1;
}
.wx-category {
  position: relative;
}
.wx-category-trigger,
.wx-query-search-placeholder {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f8fbff;
}
.wx-category-trigger {
  width: 100%;
  justify-content: space-between;
  padding: 0 12px;
  color: #64748b;
}
.wx-category-trigger span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wx-category-trigger b {
  color: #94a3b8;
  font-size: 14px;
}
.wx-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 76px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.wx-category-menu button {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: #111827;
  font-weight: 600;
}
.wx-category-menu button:last-child { border-bottom: 0; }
.wx-query-search-placeholder {
  width: 100%;
  gap: 8px;
  padding: 0 10px;
  color: #a3afbf;
}
.wx-query-search-placeholder input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  pointer-events: none;
}
.wx-query-more {
  border: 0;
  background: transparent;
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.wx-query-panel {
  margin: 2px -10px 0;
  padding: 4px 10px 0;
  background: rgba(255,255,255,.65);
}
.wx-query-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-bottom: 0;
  background: #fff;
}
.wx-query-line:first-child {
  border-radius: 8px 8px 0 0;
}
.wx-query-line + .wx-query-line {
  border-top: 0;
}
.wx-query-line:last-of-type {
  border-bottom: 1px solid #dbe3ee;
}
.wx-query-line input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.wx-line-icon {
  color: #b0bac9;
  font-size: 15px;
}
.wx-query-line em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.wx-query-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}
.wx-query-selects label {
  display: block;
}
.wx-query-selects select {
  min-height: 38px;
  border-color: #dbe3ee;
  border-radius: 4px;
  color: #4b5563;
  background: #fff;
}
.wx-query-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 0 0;
}
.wx-query-actions .btn {
  min-width: 72px;
  min-height: 34px;
  border-radius: 6px;
}
.wx-query-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 0 0;
  color: #8f98a6;
}
.wx-query-empty__icon {
  font-size: 78px;
  line-height: 1;
  color: #9aa3af;
}
.wx-query-empty p {
  margin: 0;
  font-size: 14px;
}
.wx-empty-refresh {
  width: min(352px, calc(100% - 34px));
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1780ff, #0f72ee);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.v552-query-page .clean-application-list {
  margin-top: 10px;
}
@media (max-width: 380px) {
  .wx-query-topbar {
    grid-template-columns: 26px 70px minmax(0, 1fr) 42px;
    gap: 6px;
  }
  .wx-query-more {
    font-size: 11px;
  }
  .wx-query-selects {
    gap: 6px;
  }
}

.v552-my-page .page-shell {
  background: linear-gradient(#cfe6fd 0, #edf3f8 150px, #edf3f8 100%);
}
.my-profile-card--showcase {
  position: relative;
  min-height: 116px;
  padding: 16px 12px 22px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
}
.my-avatar--photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #182542, #0b1735);
  box-shadow: 0 10px 20px rgba(15,23,42,.14);
}
.my-profile-meta h1 {
  margin: 0 0 6px;
  color: #0f234d;
  font-size: 22px;
}
.my-profile-meta p {
  margin: 0;
  color: #52709f;
  font-size: 13px;
}
.my-menu-card--ref {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.my-menu-card--ref a {
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  min-height: 56px;
}
.my-svg-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
}
.my-svg-icon svg {
  width: 20px;
  height: 20px;
}
.my-svg-icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}
.my-svg-icon--mint {
  background: #ecfeff;
  color: #22c55e;
}
.my-menu-card--ref strong {
  font-size: 14px;
}
.my-menu-card--ref em {
  font-size: 12px;
  color: #94a3b8;
}
.my-chevron {
  color: #c1cad8;
  font-size: 18px;
  font-weight: 400;
}


/* V5.5.3 remove logout button, refine bottom nav, improve enroll scroll and apply layout */
.site-header__inner {
  justify-content: flex-start;
}
.site-brand {
  flex: 0 1 auto;
}
.site-nav {
  margin-left: auto;
}

.mobile-bottom-nav--app .nav-plus-badge--icon {
  font-size: 0 !important;
}
.mobile-bottom-nav--app .nav-plus-badge--icon svg {
  width: 24px;
  height: 24px;
}
.mobile-bottom-nav--app .nav-item--plus.is-active .nav-plus-badge {
  background: linear-gradient(180deg, #4f8cff, #1f6df2);
}

.compact-registration-home,
.compact-registration-home body {
  overscroll-behavior-y: contain;
}
.compact-registration-home .page-shell {
  padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.compact-registration-home .compact-project-accordion,
.compact-registration-home [data-project-list] {
  display: grid;
  gap: 10px;
}
.compact-registration-home .project-authority-accordion {
  overflow: hidden;
}
.compact-registration-home .project-authority-panel {
  background: #fff;
}
.compact-registration-home .project-authority-toggle {
  touch-action: manipulation;
}
.compact-registration-home .project-direct-list {
  padding-bottom: 4px;
}
.compact-registration-home .compact-project-row {
  min-height: 58px;
}

.application-form-page {
  background: #f4f7fb;
}
.application-form-page .page-shell {
  background: #f4f7fb;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.application-form-page .compact-apply-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px 10px !important;
  border-bottom: 1px solid #ecf0f4 !important;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.application-form-page .compact-apply-header strong {
  font-size: 18px;
}
.application-form-page .compact-apply-header small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}
.application-form-page .apply-header-tip {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.application-form-page .compact-enrollment-form {
  display: grid;
  gap: 10px;
  padding: 10px 10px 0;
  background: #f4f7fb;
}
.application-form-page .compact-form-section {
  border: 1px solid #e6edf5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
  overflow: hidden !important;
}
.application-form-page .compact-form-section + .compact-form-section {
  border-top: 1px solid #e6edf5 !important;
}
.application-form-page .compact-form-section > h2,
.application-form-page .compact-section-heading {
  padding: 16px 16px 6px !important;
}
.application-form-page .compact-form-section > h2,
.application-form-page .compact-section-heading h2,
.application-form-page .signature-section-head h2,
.application-form-page .compact-more-fields summary {
  font-size: 17px !important;
  font-weight: 700;
}
.application-form-page .apply-section-tip {
  margin: 0;
  padding: 0 16px 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.application-form-page .apply-section-tip em {
  color: #ef4444;
  font-style: normal;
}
.application-form-page .apply-section-tip--inside {
  padding-top: 0;
}
.application-form-page .compact-upload-grid {
  gap: 12px;
  padding: 0 12px 14px;
}
.application-form-page .compact-upload-item {
  padding: 10px !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 14px !important;
  background: #fbfdff;
}
.application-form-page .compact-upload-label {
  margin-bottom: 6px;
}
.application-form-page .compact-upload-label span {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.application-form-page .compact-upload-label small:not(.material-requirement) {
  color: #94a3b8;
}
.application-form-page .compact-upload-box {
  min-height: 114px !important;
  gap: 6px;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.application-form-page .compact-upload-icon {
  font-size: 34px;
}
.application-form-page .compact-upload-box strong {
  max-width: 130px;
  color: #94a3b8;
  font-size: 13px !important;
}
.application-form-page .compact-file-name {
  font-size: 11px;
}
.application-form-page .compact-upload-meta {
  margin-top: 4px;
  font-size: 12px;
}
.application-form-page .compact-material-date {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}
.application-form-page .compact-material-date span {
  color: #64748b;
  font-size: 12px;
}
.application-form-page .compact-material-date input {
  min-height: 36px;
  padding: 0 8px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.application-form-page .compact-line-fields {
  padding: 0 0 10px;
}
.application-form-page .compact-line-field {
  grid-template-columns: 112px minmax(0, 1fr) 12px !important;
  min-height: 54px;
  padding: 10px 16px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.application-form-page .compact-line-fields > .compact-line-field:first-of-type {
  border-top: 0 !important;
}
.application-form-page .compact-line-field span {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}
.application-form-page .compact-line-field input,
.application-form-page .compact-line-field select,
.application-form-page .compact-line-field textarea {
  min-height: 36px;
  color: #111827;
  font-size: 14px;
}
.application-form-page .compact-line-field b {
  color: #cbd5e1;
  font-size: 20px;
}
.application-form-page .compact-more-fields summary {
  padding: 16px 16px 4px !important;
}
.application-form-page .compact-more-fields summary small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}
.application-form-page .compact-document-list {
  padding: 8px 16px 14px;
}
.application-form-page .compact-document-row {
  padding: 12px 0 !important;
}
.application-form-page .signature-section-head {
  padding: 16px 16px 6px;
}
.application-form-page .signature-panel {
  min-height: 170px;
  padding: 10px 16px 18px !important;
}
.application-form-page .signature-panel canvas {
  height: 150px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.application-form-page .signature-placeholder {
  transform: translate(-50%, -36%);
}
.application-form-page .signature-placeholder i {
  width: 48px;
  height: 48px;
  border-width: 4px;
}
.application-form-page .signature-placeholder b {
  font-size: 14px;
}
.application-form-page .compact-submit-spacer {
  height: 98px !important;
}
.application-form-page .compact-submit-bar {
  width: min(480px, calc(100% - 12px));
  left: 50%;
  bottom: 6px;
  gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.application-form-page .compact-submit-bar .btn {
  min-height: 46px !important;
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 420px) {
  .application-form-page .compact-upload-grid {
    grid-template-columns: 1fr 1fr;
  }
  .application-form-page .compact-line-field {
    grid-template-columns: 96px minmax(0, 1fr) 10px !important;
    padding-inline: 14px !important;
  }
}
@media (max-width: 360px) {
  .application-form-page .compact-upload-grid {
    grid-template-columns: 1fr;
  }
}


/* V5.5.4 apply material upload preview cards: V4 approved */
.application-form-page .v554-material-section .apply-section-tip {
  padding-bottom: 8px;
}

.application-form-page .apply-material-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px 10px;
}

.application-form-page .apply-material-card {
  min-width: 0;
  padding: 8px !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

.application-form-page .apply-material-head {
  display: flex;
  min-height: 40px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.application-form-page .apply-material-title {
  min-width: 0;
}

.application-form-page .apply-material-title h3 {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  word-break: break-word;
}

.application-form-page .apply-material-title h3 em {
  margin-right: 3px;
  color: #ef4444;
  font-style: normal;
}

.application-form-page .apply-material-title p {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.25;
}

.application-form-page .apply-material-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.application-form-page .apply-material-tag--required {
  background: #fff1f2;
  color: #e11d48;
}

.application-form-page .apply-material-tag--optional {
  background: #f1f5f9;
  color: #64748b;
}

.application-form-page .apply-material-card .compact-upload-box.upload-card {
  position: relative;
  display: grid !important;
  min-height: 102px !important;
  aspect-ratio: auto !important;
  place-items: center;
  overflow: hidden;
  gap: 0 !important;
  padding: 0 !important;
  border: 1.4px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.application-form-page .apply-material-card .compact-upload-box.upload-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.65)),
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, .08), transparent 48%);
  pointer-events: none;
}

.application-form-page .apply-material-card .compact-upload-box.upload-card input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.application-form-page .upload-example-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5px;
  opacity: .76;
  pointer-events: none;
}

.application-form-page .upload-example-bg svg {
  width: 96%;
  max-width: 122px;
  height: auto;
  display: block;
  filter: saturate(.82);
}

.application-form-page .apply-material-card--id_front .upload-example-bg svg,
.application-form-page .apply-material-card--id_back .upload-example-bg svg {
  max-width: 138px;
  transform: translateY(-2px);
}

.application-form-page .apply-material-card--photo .upload-example-bg svg,
.application-form-page .apply-material-card--one_inch_photo .upload-example-bg svg {
  max-width: 92px;
  transform: translateY(-3px);
}

.application-form-page .apply-material-card--education .upload-example-bg svg,
.application-form-page .apply-material-card--education_certificate .upload-example-bg svg,
.application-form-page .apply-material-card--health_check .upload-example-bg svg,
.application-form-page .apply-material-card--medical_report .upload-example-bg svg {
  max-width: 104px;
  transform: translateY(-2px);
}

.application-form-page .apply-material-card--original_cert .upload-example-bg svg {
  max-width: 140px;
  transform: translateY(-2px);
}

.application-form-page .apply-material-card .upload-text {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 58px;
  padding: 7px;
  text-align: center;
}

.application-form-page .apply-material-card--id_front .upload-text,
.application-form-page .apply-material-card--id_back .upload-text,
.application-form-page .apply-material-card--original_cert .upload-text {
  margin-top: 60px;
}

.application-form-page .apply-material-card--photo .upload-text,
.application-form-page .apply-material-card--one_inch_photo .upload-text,
.application-form-page .apply-material-card--education .upload-text,
.application-form-page .apply-material-card--education_certificate .upload-text,
.application-form-page .apply-material-card--health_check .upload-text,
.application-form-page .apply-material-card--medical_report .upload-text {
  margin-top: 62px;
}

.application-form-page .apply-material-card .upload-text strong {
  display: block;
  max-width: none;
  color: #334155;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.25;
}

.application-form-page .apply-material-card .upload-text span {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.2;
}

.application-form-page .apply-material-card .upload-real-preview,
.application-form-page .apply-material-card [data-image-preview] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.application-form-page .apply-material-card .compact-upload-box.has-preview .upload-example-bg,
.application-form-page .apply-material-card .compact-upload-box.has-preview .upload-text,
.application-form-page .apply-material-card .compact-upload-box.has-preview .compact-file-name {
  display: none !important;
}

.application-form-page .apply-material-card .compact-file-name {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  z-index: 4;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-form-page .apply-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.application-form-page .apply-material-card .compact-upload-meta.upload-status {
  display: block !important;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-form-page .apply-material-card .compact-upload-meta.upload-status.is-ready {
  color: #16a34a;
}

.application-form-page .apply-material-card .compact-ocr-button.ocr-btn {
  display: inline-flex !important;
  flex: 0 0 auto;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.application-form-page .apply-material-date {
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.application-form-page .apply-material-date span {
  color: #64748b;
  font-size: 10px !important;
  font-weight: 600;
}

.application-form-page .apply-material-date input {
  min-height: 30px !important;
  padding: 0 6px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 12px !important;
}

@media (max-width: 360px) {
  .application-form-page .apply-material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-form-page .apply-material-card .compact-upload-box.upload-card {
    min-height: 98px !important;
  }

  .application-form-page .apply-material-card--id_front .upload-example-bg svg,
  .application-form-page .apply-material-card--id_back .upload-example-bg svg {
    max-width: 130px;
  }

  .application-form-page .apply-material-card--photo .upload-example-bg svg,
  .application-form-page .apply-material-card--one_inch_photo .upload-example-bg svg {
    max-width: 86px;
  }

  .application-form-page .apply-material-card--education .upload-example-bg svg,
  .application-form-page .apply-material-card--education_certificate .upload-example-bg svg,
  .application-form-page .apply-material-card--health_check .upload-example-bg svg,
  .application-form-page .apply-material-card--medical_report .upload-example-bg svg {
    max-width: 98px;
  }

  .application-form-page .apply-material-card--original_cert .upload-example-bg svg {
    max-width: 132px;
  }

  .application-form-page .apply-material-card .upload-text {
    margin-top: 54px;
  }
}


/* V5.5.5 fix: empty preview image must not cover SVG example background */
.application-form-page .apply-material-card .compact-upload-box:not(.has-preview) [data-image-preview],
.application-form-page .apply-material-card .compact-upload-box:not(.has-preview) img[data-image-preview],
.application-form-page .apply-material-card [data-image-preview][hidden],
.application-form-page .apply-material-card img[data-image-preview][hidden] {
  display: none !important;
  visibility: hidden !important;
}

.application-form-page .apply-material-card .compact-upload-box.has-preview [data-image-preview]:not([hidden]),
.application-form-page .apply-material-card .compact-upload-box.has-preview img[data-image-preview]:not([hidden]) {
  display: block !important;
  visibility: visible !important;
}

.application-form-page .apply-material-card .compact-upload-box:not(.has-preview) .upload-example-bg,
.application-form-page .apply-material-card .compact-upload-box:not(.has-preview) .upload-text {
  display: grid !important;
}


/* V5.5.6 edit materials follow apply upload style; detail page overlap cleanup */
.public-detail-page .wx-detail-section h2::before {
  content: none !important;
  display: none !important;
}
.public-detail-page .wx-detail-section h2 {
  position: static !important;
  margin-bottom: 10px !important;
  padding-left: 10px !important;
  border-left: 4px solid var(--clean-blue);
  font-size: 16px !important;
  font-weight: 700;
}
.public-detail-page .wx-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
}
.public-detail-page .wx-detail-title h1 {
  margin: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}
.public-detail-page .wx-status-success {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700;
}
.public-detail-page .wx-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.public-detail-page .wx-inline-actions .wx-outline-button,
.public-detail-page .wx-inline-actions .wx-danger-button,
.public-detail-page .wx-detail-section > .wx-primary-button {
  min-height: 40px !important;
  border-radius: 12px !important;
  padding-inline: 14px !important;
  font-size: 14px !important;
}
.public-detail-page .wx-batch-section,
.public-detail-page .wx-ticket-section,
.public-detail-page .wx-score-section,
.public-detail-page .wx-basic-section,
.public-detail-page .wx-promise-section,
.public-detail-page .wx-document-section {
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid #e7eef6 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}
.public-detail-page .wx-material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}
.public-detail-page .wx-material-item {
  border: 1px solid #e7eef6 !important;
  border-radius: 14px !important;
  padding: 10px;
  background: #fbfdff;
}
.public-detail-page .wx-material-item h3 {
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.public-detail-page .wx-material-preview {
  min-height: 132px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
}
.public-detail-page .wx-bottom-action .wx-outline-button,
.public-detail-page .wx-bottom-action .wx-primary-button {
  border-radius: 999px !important;
}

.edit-materials-page .wx-detail-title {
  margin-bottom: 10px;
}
.edit-materials-page .wx-edit-tip {
  margin: -2px 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.edit-materials-page .edit-material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.edit-materials-page .edit-material-card {
  min-width: 0;
}
.edit-materials-page .current-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.edit-materials-page .current-file-chips a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1677d2;
  font-size: 10px;
}
.edit-materials-page .edit-material-upload {
  min-height: 102px !important;
}
.edit-materials-page .edit-upload-footer {
  margin-top: 6px;
}
.edit-materials-page .edit-material-date {
  margin-top: 6px !important;
}
.edit-materials-page .wx-bottom-action--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 360px) {
  .public-detail-page .wx-detail-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .edit-materials-page .edit-material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* V5.5.7 edit page: show current uploaded materials and filled data; remove heavy item frames */
.edit-materials-page .wx-edit-material-section {
  padding: 14px 10px !important;
}

.edit-materials-page .wx-edit-tip {
  padding: 0 4px;
}

.edit-materials-page .edit-material-list {
  gap: 0 !important;
  border-top: 1px solid #edf2f7;
}

.edit-materials-page .edit-material-card.apply-material-card {
  padding: 12px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.edit-materials-page .edit-material-card.apply-material-card:last-child {
  border-bottom: 0 !important;
}

.edit-materials-page .apply-material-head {
  min-height: 0;
  margin-bottom: 8px;
}

.edit-materials-page .apply-material-title h3 {
  font-size: 14px;
}

.edit-materials-page .apply-material-title p {
  font-size: 11px;
}

.edit-materials-page .current-material-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.edit-materials-page .current-material-preview {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.9)),
    #f8fbff;
  text-decoration: none;
}

.edit-materials-page .current-material-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-materials-page .current-material-preview::after {
  content: "已上传";
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.edit-materials-page .current-pdf-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.edit-materials-page .current-file-chips {
  margin: 0 0 8px !important;
}

.edit-materials-page .current-file-chips a {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.edit-materials-page .edit-material-upload {
  min-height: 46px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.edit-materials-page .edit-material-upload .upload-example-bg {
  display: none !important;
}

.edit-materials-page .edit-material-upload::before {
  content: "替换上传";
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.edit-materials-page .edit-material-upload .upload-text {
  display: none !important;
}

.edit-materials-page .edit-material-upload.has-preview {
  min-height: 102px !important;
}

.edit-materials-page .edit-material-upload.has-preview::before {
  display: none;
}

.edit-materials-page .edit-material-upload.has-preview .upload-real-preview {
  display: block !important;
}

.edit-materials-page .edit-upload-footer {
  margin-top: 6px;
}

.edit-materials-page .filled-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.edit-materials-page .filled-info-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
}

.edit-materials-page .filled-info-list div:last-child {
  border-bottom: 0;
}

.edit-materials-page .filled-info-list dt {
  color: #64748b;
  font-size: 12px;
}

.edit-materials-page .filled-info-list dd {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 360px) {
  .edit-materials-page .current-material-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* V5.5.8 success page, batch cancel in batch list, cancel application action */
.v558-success-page .page-shell {
  background: #f4f7fb;
  padding-top: 10px;
}

.success-hero-card,
.success-info-card,
.success-next-card,
.success-note-card {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

.success-hero-card {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(37,99,235,.12), transparent 42%),
    #fff;
}

.success-check-ring {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 4px auto 10px;
  place-items: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  box-shadow: inset 0 0 0 8px #f0fdf4;
}

.success-check-ring span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.success-eyebrow {
  margin: 0 0 4px;
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
}

.success-hero-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.success-subtitle {
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.success-no-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  text-align: left;
}

.success-no-card span {
  color: #64748b;
  font-size: 12px;
}

.success-no-card strong {
  min-width: 0;
  overflow: hidden;
  color: #1d4ed8;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-no-card button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.success-info-card h2,
.success-next-card h2,
.success-note-card strong {
  display: block;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #2563eb;
  color: #0f172a;
  font-size: 16px;
}

.success-info-card dl {
  margin: 0;
}

.success-info-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
}

.success-info-card dl div:last-child {
  border-bottom: 0;
}

.success-info-card dt {
  color: #64748b;
  font-size: 12px;
}

.success-info-card dd {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  word-break: break-all;
}

.success-next-grid {
  display: grid;
  gap: 8px;
}

.success-next-grid a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #fbfdff;
  color: #0f172a;
  text-decoration: none;
}

.success-next-grid a span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  grid-row: span 2;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.success-next-grid strong {
  align-self: end;
}

.success-next-grid small {
  align-self: start;
  color: #64748b;
}

.success-file-list {
  display: grid;
  gap: 8px;
}

.success-file-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fbff;
  color: #0f172a;
  text-decoration: none;
}

.success-file-list span {
  display: grid;
  width: 36px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

.success-file-list em {
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.success-note-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.success-bottom-actions {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.success-bottom-actions .btn {
  min-height: 42px;
  border-radius: 999px;
}

.batch-current-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.batch-slim-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-slim-actions form {
  flex: 1 1 120px;
}

.batch-slim-actions .is-danger {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}

.clean-card-actions form {
  min-width: 0;
}

.clean-card-actions form button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
}

.wx-cancel-application-section {
  border-color: #fee2e2 !important;
  background: #fff !important;
}

.wx-cancel-application-section h2 {
  border-left-color: #e11d48 !important;
}

.wx-cancel-application-button {
  width: 100%;
  min-height: 42px !important;
  border-radius: 12px !important;
  background: #e11d48 !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
}


/* V5.5.9 query card cleanup and batch join entry */
.v559-query-clean .page-shell,
.v552-query-page .page-shell {
  background: #eef3f8;
}

.query-result-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

.query-result-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.query-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.query-person-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}

.query-person-row span {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 14px;
  font-weight: 800;
}

.query-result-main h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.query-result-main p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.query-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 12px 0 10px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #f8fbff;
}

.query-brief-grid div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
}

.query-brief-grid div:last-child {
  border-bottom: 0;
}

.query-brief-grid span {
  color: #64748b;
  font-size: 12px;
}

.query-brief-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-card-actions {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr auto;
  gap: 8px;
  align-items: center;
}

.query-card-actions a,
.query-card-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.query-card-actions .query-action-primary {
  background: #eff6ff;
  color: #2563eb;
}

.query-card-actions form {
  margin: 0;
}

.query-card-actions form button {
  background: #fff1f2;
  color: #e11d48;
}

@media (max-width: 380px) {
  .query-card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .query-card-actions form {
    grid-column: span 2;
  }
  .query-card-actions form button {
    width: 100%;
  }
}

.batch-join-context {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-join-context > div {
  min-width: 0;
}

.batch-join-context > span,
.batch-join-context span {
  color: #64748b;
  font-size: 12px;
}

.batch-join-context h1 {
  margin-top: 4px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.batch-join-context a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.batch-join-without-app {
  flex: 1 1 auto;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.batch-slim-actions form button,
.batch-slim-actions > button {
  min-height: 40px;
}


/* V5.5.10 query text cleanup and coordinated batch page */
.query-card-actions {
  grid-template-columns: 1fr 1fr auto;
}

.query-card-actions a:nth-child(2) {
  background: #f8fafc;
  color: #334155;
}

.public-batches-page .page-shell {
  background: #eef3f8;
  padding-top: 10px;
}

.batch-page-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.batch-page-head--selected {
  margin-bottom: 10px;
}

.batch-current-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

.batch-current-registration span {
  color: #64748b;
  font-size: 12px;
}

.batch-current-registration h1 {
  margin: 4px 0 4px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.batch-current-registration p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.batch-current-registration small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}

.batch-current-registration > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.batch-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

.batch-search-card label {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.batch-search-card label span {
  color: #94a3b8;
}

.batch-search-card input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.batch-search-card button,
.batch-search-card > a {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.batch-search-card > a {
  font-size: 12px;
  white-space: nowrap;
}

.batch-search-card:has(> a) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.public-batches-page .batch-slim-list {
  display: grid;
  gap: 10px;
}

.public-batches-page .batch-slim-card {
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
}

.public-batches-page .batch-slim-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: start;
}

.public-batches-page .batch-slim-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.public-batches-page .batch-slim-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.public-batches-page .batch-slim-capacity {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  align-content: center;
  border-radius: 16px;
  background: #eff6ff;
  color: #16a34a;
}

.public-batches-page .batch-slim-capacity small {
  color: #22c55e;
  font-size: 11px;
}

.public-batches-page .batch-slim-capacity strong {
  font-size: 20px;
  line-height: 1;
}

.public-batches-page .batch-slim-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}

.public-batches-page .batch-slim-meta div {
  min-width: 0;
  padding: 10px !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
}

.public-batches-page .batch-slim-meta dt {
  color: #64748b;
  font-size: 12px;
}

.public-batches-page .batch-slim-meta dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.public-batches-page .batch-slim-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.public-batches-page .batch-slim-actions form {
  margin: 0;
}

.public-batches-page .batch-slim-actions button,
.public-batches-page .batch-slim-actions a {
  width: 100%;
  min-height: 42px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 800;
}

.public-batches-page .batch-current-chip {
  min-height: 42px;
  border-radius: 999px;
}

.public-batches-page .batch-slim-actions .is-danger {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}

.batch-bottom-summary {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.batch-bottom-summary a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2563eb;
  border-radius: 999px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.batch-bottom-summary span {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-batches-page .batch-slim-load {
  border-radius: 999px !important;
}

@media (max-width: 380px) {
  .batch-current-registration {
    grid-template-columns: 1fr;
  }
  .batch-current-registration > a {
    width: 100%;
  }
  .public-batches-page .batch-slim-meta {
    grid-template-columns: 1fr;
  }
  .batch-bottom-summary {
    grid-template-columns: 1fr;
  }
}


/* V5.5.11 draft-style edit page, compact query card, no current-card batch page */
.query-card-actions--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.query-card-actions--compact a,
.query-card-actions--compact button {
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
}
.query-card-actions--compact form {
  min-width: 0;
}
.query-card-actions--compact form button {
  width: 100%;
}

.public-batches-page .batch-page-head--no-current {
  margin-bottom: 8px !important;
}
.public-batches-page .batch-page-head--no-current .batch-search-card {
  margin-bottom: 0 !important;
}
.public-batches-page .batch-current-registration {
  display: none !important;
}
.public-batches-page .batch-slim-card {
  padding: 11px !important;
  border-radius: 14px !important;
}
.public-batches-page .batch-slim-head {
  grid-template-columns: minmax(0, 1fr) 50px !important;
}
.public-batches-page .batch-slim-head h2 {
  font-size: 15px !important;
  line-height: 1.25 !important;
}
.public-batches-page .batch-slim-head p {
  margin-top: 4px !important;
  font-size: 12px !important;
}
.public-batches-page .batch-slim-capacity {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
}
.public-batches-page .batch-slim-capacity strong {
  font-size: 18px !important;
}
.public-batches-page .batch-slim-meta {
  gap: 7px !important;
  margin: 10px 0 9px !important;
}
.public-batches-page .batch-slim-meta div {
  min-height: 48px !important;
  padding: 8px !important;
  border-radius: 10px !important;
}
.public-batches-page .batch-slim-meta dt {
  font-size: 11px !important;
}
.public-batches-page .batch-slim-meta dd {
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.public-batches-page .batch-slim-actions {
  grid-template-columns: minmax(0, 1fr) 112px !important;
  gap: 8px !important;
}
.public-batches-page .batch-current-chip {
  min-height: 36px !important;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 13px !important;
}
.public-batches-page .batch-slim-actions button,
.public-batches-page .batch-slim-actions a {
  min-height: 36px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
}
.public-batches-page .batch-slim-actions form {
  margin: 0 !important;
}
.public-batches-page .batch-slim-actions form:only-child {
  grid-column: span 2;
}
.public-batches-page .batch-slim-actions form:not(:only-child) button {
  width: 100%;
}
.public-batches-page .batch-bottom-summary {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  padding: 8px !important;
  border-radius: 14px !important;
}
.public-batches-page .batch-bottom-summary a {
  min-height: 36px !important;
}
.public-batches-page .batch-bottom-summary span {
  font-size: 12px !important;
}

.edit-draft-page .page-shell {
  background: #f4f7fb;
}
.edit-draft-header {
  position: sticky;
  top: 0;
  z-index: 20;
}
.edit-draft-header strong {
  font-size: 18px;
}
.edit-draft-form {
  padding: 10px 10px 0 !important;
}
.edit-draft-material-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 8px 10px !important;
}
.edit-draft-material-card {
  min-width: 0;
}
.edit-draft-upload {
  min-height: 92px !important;
  position: relative;
}
.edit-draft-upload.has-current .upload-example-bg,
.edit-draft-upload.has-current .upload-text {
  display: none !important;
}
.edit-current-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.edit-current-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edit-current-pdf {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}
.edit-replace-overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .92);
  color: #fff;
  pointer-events: none;
}
.edit-replace-overlay strong {
  font-size: 11px;
  line-height: 1.05;
}
.edit-replace-overlay span {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.05;
  opacity: .88;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.edit-draft-upload.has-preview .edit-current-preview,
.edit-draft-upload.has-preview .edit-replace-overlay {
  display: none !important;
}
.edit-draft-page .apply-material-title h3 {
  font-size: 12px !important;
}
.edit-draft-page .apply-material-title p {
  font-size: 10px !important;
}
.edit-draft-page .apply-material-tag {
  font-size: 10px !important;
}
.edit-draft-basic-section .compact-line-field,
.edit-draft-page .compact-line-field {
  min-height: 42px !important;
  grid-template-columns: 96px minmax(0, 1fr) 10px !important;
}
.edit-draft-basic-section .compact-line-field span,
.edit-draft-page .compact-line-field span {
  font-size: 13px !important;
}
.edit-draft-basic-section .compact-line-field input,
.edit-draft-basic-section .compact-line-field select,
.edit-draft-page .compact-line-field input,
.edit-draft-page .compact-line-field select {
  min-height: 32px !important;
  font-size: 13px !important;
}
.edit-draft-submit-bar a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 380px) {
  .query-card-actions--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .query-card-actions--compact form {
    grid-column: auto !important;
  }
  .edit-draft-material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* V5.5.12 compact application detail page */
.detail-compact-page .page-shell {
  background: #eef3f8;
  padding-top: 8px !important;
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}

.detail-compact-page .wx-detail-title {
  margin-bottom: 8px !important;
  padding: 11px !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.03) !important;
}

.detail-compact-page .wx-detail-title h1 {
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.detail-compact-page .wx-status-success {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.detail-compact-page .wx-detail-section {
  margin-bottom: 8px !important;
  padding: 11px !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.03) !important;
}

.detail-compact-page .wx-detail-section h2 {
  margin-bottom: 7px !important;
  padding-left: 8px !important;
  border-left-width: 4px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.detail-compact-page .wx-info-rows {
  margin: 0 !important;
}

.detail-compact-page .wx-info-rows div {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 34px !important;
  align-items: center !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.detail-compact-page .wx-info-rows div:last-child {
  border-bottom: 0 !important;
}

.detail-compact-page .wx-info-rows dt {
  color: #64748b !important;
  font-size: 12px !important;
}

.detail-compact-page .wx-info-rows dd {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-compact-page .wx-empty-line {
  margin: 0 0 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.detail-compact-page .wx-inline-actions {
  gap: 8px !important;
  margin-top: 8px !important;
}

.detail-compact-page .wx-inline-actions .wx-outline-button,
.detail-compact-page .wx-detail-section > .wx-primary-button,
.detail-compact-page .wx-danger-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.detail-compact-page .wx-material-actions {
  margin: -2px 0 8px !important;
}

.detail-compact-page .wx-material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.detail-compact-page .wx-material-item {
  padding: 8px !important;
  border-radius: 12px !important;
}

.detail-compact-page .wx-material-item h3 {
  margin-bottom: 6px !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.detail-compact-page .wx-material-preview {
  min-height: 96px !important;
  border-radius: 10px !important;
}

.detail-compact-page .wx-material-preview img {
  width: 100%;
  height: 96px !important;
  object-fit: cover;
}

.detail-compact-page .wx-pdf-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.detail-compact-page .wx-ticket-list,
.detail-compact-page .wx-document-list {
  display: grid !important;
  gap: 7px !important;
}

.detail-compact-page .wx-ticket-list a,
.detail-compact-page .wx-document-list a {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-height: 38px !important;
  align-items: center !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
}

.detail-compact-page .wx-ticket-list a span,
.detail-compact-page .wx-document-list a span {
  width: 32px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.detail-compact-page .wx-ticket-list a strong,
.detail-compact-page .wx-document-list a strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a !important;
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-compact-page .wx-ticket-list a em,
.detail-compact-page .wx-document-list a em {
  color: #2563eb !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.detail-compact-page .wx-cancel-application-section {
  padding: 11px !important;
}

.detail-compact-page .wx-cancel-application-button {
  min-height: 38px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
}

.detail-compact-page .wx-bottom-action {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  margin-top: 8px !important;
  padding: 8px !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.08) !important;
}

.detail-compact-page .wx-bottom-action .wx-outline-button {
  width: 100%;
  min-height: 38px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-compact-page .wx-promise-section {
  display: none !important;
}

@media (max-width: 360px) {
  .detail-compact-page .wx-info-rows div {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  .detail-compact-page .wx-material-preview,
  .detail-compact-page .wx-material-preview img {
    min-height: 88px !important;
    height: 88px !important;
  }
}


/* V5.5.13 batch joined action strip */
.public-batches-page .batch-slim-actions {
  display: block !important;
}

.public-batches-page .batch-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
}

.public-batches-page .joined-state {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #047857;
  font-weight: 900;
}

.public-batches-page .joined-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.public-batches-page .joined-state span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-batches-page .batch-action-strip form {
  flex: 0 0 auto;
  margin: 0 !important;
}

.public-batches-page .batch-action-strip .cancel-link {
  width: auto !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #e11d48 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.public-batches-page .batch-single-action {
  display: block;
  margin: 0 !important;
}

.public-batches-page .batch-single-action button,
.public-batches-page .batch-join-without-app {
  width: 100% !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.public-batches-page .batch-slim-actions > button[disabled] {
  width: 100% !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
}


/* V5.5.14 admin UI v1 - modern left-nav dashboard */
.admin-v5514-shell {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(37,99,235,.09), transparent 34%),
    #f4f7fb !important;
}

.admin-v5514 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 90% 0%, rgba(37,99,235,.09), transparent 34%),
    #f4f7fb;
  color: #0f172a;
}

.admin-v5514-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid #e5edf6;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.admin-v5514-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 18px;
  border-bottom: 1px solid #e5edf6;
  color: #0f172a;
  text-decoration: none;
}

.admin-v5514-brand:hover {
  text-decoration: none;
}

.admin-v5514-brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37,99,235,.28);
}

.admin-v5514-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.admin-v5514-brand small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.admin-v5514-nav {
  padding: 14px 12px;
  overflow: auto;
}

.admin-v5514-nav-title {
  display: block;
  margin: 0 0 8px;
  padding: 0 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.admin-v5514-nav-title:not(:first-child) {
  margin-top: 18px;
}

.admin-v5514-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 4px;
  padding: 0 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
  text-decoration: none;
}

.admin-v5514-nav a:hover {
  background: #f8fafc;
  text-decoration: none;
}

.admin-v5514-nav a i {
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-v5514-nav a.is-active {
  background: #eff6ff;
  color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.admin-v5514-nav a.is-active i {
  background: #2563eb;
  color: #fff;
}

.admin-v5514-side-footer {
  padding: 12px;
  border-top: 1px solid #e5edf6;
}

.admin-v5514-side-footer > div {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.admin-v5514-side-footer strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.admin-v5514-side-footer span {
  display: block;
  margin-top: 3px;
}

.admin-v5514-main {
  min-width: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}

.admin-v5514-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #e5edf6;
  background: rgba(248,251,255,.84);
  backdrop-filter: blur(12px);
}

.admin-v5514-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-v5514-crumb .admin-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid #e5edf6;
  border-radius: 10px;
  background: #fff;
  color: #334155;
}

.admin-v5514-crumb strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.admin-v5514-crumb span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.admin-v5514-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-v5514-search {
  width: 320px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e5edf6;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
}

.admin-v5514-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.admin-v5514-top-actions > a,
.admin-v5514-top-actions > span,
.admin-v5514-top-actions form button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #e5edf6;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.admin-v5514-top-actions form {
  margin: 0;
}

.admin-v5514-top-actions form button {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.admin-v5514-content {
  min-width: 0;
  padding: 22px 24px 32px;
}

.admin-v5514-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e5edf6;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.admin-v5514-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.25;
}

.admin-v5514-hero p {
  margin: 6px 0 0;
  color: #64748b;
}

.admin-v5514-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37,99,235,.24);
}

.admin-v5514-primary:hover {
  text-decoration: none;
}

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

.admin-v5514-stats article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5edf6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.035);
}

.admin-v5514-stats span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-v5514-stats strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
}

.admin-v5514-stats em {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
}

.admin-v5514-stats .is-blue {
  background: linear-gradient(180deg, #fff, #eff6ff);
}

.admin-v5514-stats .is-green {
  background: linear-gradient(180deg, #fff, #ecfdf5);
}

.admin-v5514-stats .is-amber {
  background: linear-gradient(180deg, #fff, #fffbeb);
}

.admin-v5514-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-v5514-panel {
  border: 1px solid #e5edf6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.035);
  overflow: hidden;
}

.admin-v5514-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #e5edf6;
  background: #fff;
}

.admin-v5514-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.admin-v5514-panel-head a,
.admin-v5514-panel-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-v5514-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.admin-v5514-quick-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: 14px;
  background: #f8fbff;
  color: #0f172a;
  text-decoration: none;
}

.admin-v5514-quick-card:hover {
  border-color: #bfdbfe;
  text-decoration: none;
}

.admin-v5514-quick-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.admin-v5514-quick-card strong {
  display: block;
  font-size: 14px;
}

.admin-v5514-quick-card small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-v5514-quick-card b {
  color: #2563eb;
  font-size: 13px;
}

.admin-v5514-todo-list {
  padding: 8px 14px 14px;
}

.admin-v5514-todo-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #e5edf6;
}

.admin-v5514-todo-list > div:last-child {
  border-bottom: 0;
}

.admin-v5514-todo-list strong {
  display: block;
  font-size: 13px;
}

.admin-v5514-todo-list small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.admin-v5514-todo-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.admin-v5514-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-v5514-table th {
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #e5edf6;
  background: #f8fbff;
  color: #475569;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.admin-v5514-table td {
  height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid #e5edf6;
  color: #0f172a;
  white-space: nowrap;
}

.admin-v5514-table tr:last-child td {
  border-bottom: 0;
}

.admin-v5514-id {
  color: #2563eb;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .admin-v5514-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-v5514-grid {
    grid-template-columns: 1fr;
  }
  .admin-v5514-search {
    width: 240px;
  }
}

@media (max-width: 900px) {
  .admin-v5514 {
    grid-template-columns: 1fr;
  }
  .admin-v5514-side {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    width: 248px;
    transition: transform .2s ease;
  }
  .admin-v5514-side.is-open {
    transform: translateX(0);
  }
  .admin-v5514-main {
    grid-template-rows: 64px minmax(0, 1fr);
  }
  .admin-v5514-topbar {
    padding: 0 14px;
  }
  .admin-v5514-crumb .admin-menu-button {
    display: inline-grid;
    place-items: center;
  }
  .admin-v5514-search,
  .admin-v5514-top-actions > span {
    display: none;
  }
  .admin-v5514-content {
    padding: 14px;
  }
  .admin-v5514-hero {
    grid-template-columns: 1fr;
  }
  .admin-v5514-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-v5514-quick-grid {
    grid-template-columns: 1fr;
  }
  .admin-v5514-table {
    min-width: 760px;
  }
}


/* V5.5.15 dashboard remove quick/todo block */
.admin-v5514-recent-only {
  margin-top: 0 !important;
}

.admin-v5514-stats {
  margin-bottom: 16px !important;
}


/* V5.5.16 admin login and application uploader filter */
.admin-v5514-content:has(.admin-login-v5516) {
  min-height: 100vh;
  padding: 0 !important;
}

.admin-v5514-main:has(.admin-login-v5516) {
  grid-template-rows: minmax(0, 1fr) !important;
}

.admin-login-v5516 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding: 48px 64px;
  background:
    radial-gradient(circle at 82% 8%, rgba(37,99,235,.16), transparent 30%),
    radial-gradient(circle at 24% 82%, rgba(22,163,74,.08), transparent 26%),
    #f4f7fb;
}

.admin-login-card-v5516 {
  width: 100%;
  max-width: 390px;
  padding: 28px;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 60px rgba(15,23,42,.10);
  backdrop-filter: blur(12px);
}

.admin-login-brand-v5516 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.admin-login-brand-v5516 > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37,99,235,.26);
}

.admin-login-brand-v5516 h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.admin-login-brand-v5516 p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.admin-login-message-v5516 {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 13px;
}

.admin-login-message-v5516 p {
  margin: 0;
}

.admin-login-form-v5516 {
  display: grid;
  gap: 14px;
}

.admin-login-form-v5516 label {
  display: grid;
  gap: 7px;
}

.admin-login-form-v5516 label > span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form-v5516 input {
  min-height: 44px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 14px;
}

.admin-login-form-v5516 input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37,99,235,.14);
}

.admin-login-password-v5516 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-login-password-v5516 input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-login-password-v5516 button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form-v5516 > button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(37,99,235,.24);
}

.admin-login-foot-v5516 {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5edf6;
  color: #94a3b8;
  font-size: 12px;
}

.admin-login-side-v5516 {
  max-width: 620px;
}

.admin-login-side-v5516 h2 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.admin-login-side-v5516 p {
  max-width: 560px;
  margin: 14px 0 22px;
  color: #475569;
  font-size: 16px;
}

.admin-login-points-v5516 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-login-points-v5516 div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e5edf6;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}

.admin-login-points-v5516 strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.admin-login-points-v5516 span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.admin-filter-panel .admin-filter-toggle {
  min-width: 88px;
}

.admin-advanced-filters {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5edf6;
}

@media (max-width: 980px) {
  .admin-login-v5516 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 18px;
  }
  .admin-login-card-v5516 {
    max-width: none;
  }
  .admin-login-side-v5516 {
    display: none;
  }
}


/* V5.5.17 backend login full UI + remove invalid expand filter */
.admin-v5514-content:has(.admin-login-v5517) {
  min-height: 100vh;
  padding: 0 !important;
}

.admin-v5514-main:has(.admin-login-v5517) {
  display: block !important;
}

.admin-login-v5517 {
  min-height: 100vh;
  padding: 42px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 14% 16%, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(96,165,250,.18), transparent 34%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 46%, #eef3f8 100%);
}

.admin-login-panel-v5517 {
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.85);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 28px 80px rgba(15,23,42,.14);
  backdrop-filter: blur(18px);
}

.admin-login-left-v5517 {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.13), rgba(255,255,255,.72)),
    radial-gradient(circle at 74% 20%, rgba(37,99,235,.2), transparent 28%);
}

.admin-login-logo-v5517 {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-login-logo-v5517 > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37,99,235,.28);
}

.admin-login-logo-v5517 strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
}

.admin-login-logo-v5517 small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.admin-login-copy-v5517 {
  max-width: 560px;
}

.admin-login-copy-v5517 h1 {
  margin: 0;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.admin-login-copy-v5517 p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.7;
}

.admin-login-feature-grid-v5517 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-login-feature-grid-v5517 div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(226,232,240,.88);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
}

.admin-login-feature-grid-v5517 b {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.admin-login-feature-grid-v5517 span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.admin-login-right-v5517 {
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(255,255,255,.78);
  border-left: 1px solid rgba(226,232,240,.85);
}

.admin-login-card-v5517 {
  width: 100%;
}

.admin-login-card-head-v5517 {
  margin-bottom: 24px;
}

.admin-login-card-head-v5517 h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
}

.admin-login-card-head-v5517 p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 14px;
}

.admin-login-error-v5517 {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-error-v5517 p {
  margin: 0;
}

.admin-login-form-v5517 {
  display: grid;
  gap: 16px;
}

.admin-login-form-v5517 label {
  display: grid;
  gap: 8px;
}

.admin-login-form-v5517 label > span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form-v5517 input {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #dbe5f0;
  border-radius: 13px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 14px;
}

.admin-login-form-v5517 input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37,99,235,.14);
}

.admin-login-password-v5517 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 13px;
  background: #f8fbff;
}

.admin-login-password-v5517 input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-login-password-v5517 button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-submit-v5517 {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37,99,235,.26);
}

.admin-login-test-v5517 {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5edf6;
}

.admin-login-test-v5517 div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.admin-login-test-v5517 span {
  color: #64748b;
  font-size: 12px;
}

.admin-login-test-v5517 strong {
  color: #0f172a;
  font-size: 12px;
}

.admin-filter-panel .admin-filter-toggle {
  display: none !important;
}

.admin-advanced-filters {
  display: grid !important;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5edf6;
}

.admin-advanced-filters[hidden] {
  display: grid !important;
}

@media (max-width: 980px) {
  .admin-login-v5517 {
    padding: 20px;
  }
  .admin-login-panel-v5517 {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .admin-login-left-v5517 {
    display: none;
  }
  .admin-login-right-v5517 {
    padding: 28px;
    border-left: 0;
  }
}


/* V5.5.18 login cache/version fix and no-:has fallback */
.admin-login-body-v5518 {
  min-height: 100vh !important;
  background: #f4f7fb !important;
}

.admin-login-body-v5518 .admin-v5514 {
  display: block !important;
  min-height: 100vh !important;
  background:
    radial-gradient(circle at 14% 16%, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(96,165,250,.18), transparent 34%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 46%, #eef3f8 100%) !important;
}

.admin-login-body-v5518 .admin-v5514-main {
  display: block !important;
  min-height: 100vh !important;
}

.admin-login-body-v5518 .admin-v5514-content {
  min-height: 100vh !important;
  padding: 0 !important;
}

.admin-login-body-v5518 .admin-login-v5517 {
  min-height: 100vh !important;
  padding: 42px !important;
  display: grid !important;
  place-items: center !important;
}

.admin-login-body-v5518 .admin-login-panel-v5517 {
  width: min(1120px, 100%) !important;
  min-height: 620px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) 420px !important;
  overflow: hidden !important;
  border: 1px solid rgba(203,213,225,.85) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.76) !important;
  box-shadow: 0 28px 80px rgba(15,23,42,.14) !important;
  backdrop-filter: blur(18px) !important;
}

.admin-login-body-v5518 .admin-login-left-v5517 {
  display: grid !important;
  align-content: space-between !important;
  padding: 42px !important;
  background:
    linear-gradient(135deg, rgba(37,99,235,.13), rgba(255,255,255,.72)),
    radial-gradient(circle at 74% 20%, rgba(37,99,235,.2), transparent 28%) !important;
}

.admin-login-body-v5518 .admin-login-right-v5517 {
  display: grid !important;
  place-items: center !important;
  padding: 36px !important;
  background: rgba(255,255,255,.78) !important;
  border-left: 1px solid rgba(226,232,240,.85) !important;
}

.admin-login-body-v5518 .admin-login-card-v5517 {
  width: 100% !important;
}

.admin-login-body-v5518 .admin-login-form-v5517 input {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 13px !important;
  border: 1px solid #dbe5f0 !important;
  border-radius: 13px !important;
  background: #f8fbff !important;
}

.admin-login-body-v5518 .admin-login-submit-v5517 {
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 980px) {
  .admin-login-body-v5518 .admin-login-v5517 {
    padding: 20px !important;
  }
  .admin-login-body-v5518 .admin-login-panel-v5517 {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
  }
  .admin-login-body-v5518 .admin-login-left-v5517 {
    display: none !important;
  }
  .admin-login-body-v5518 .admin-login-right-v5517 {
    padding: 28px !important;
    border-left: 0 !important;
  }
}
