:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --line: #e5eaf2;
  --text: #172033;
  --muted: #667085;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

[hidden] {
  display: none !important;
}

.questionnaire-default-preview {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 14px;
}

.questionnaire-default-preview strong {
  color: var(--text);
}

.questionnaire-check-form {
  display: grid;
  gap: 14px;
}

.questionnaire-check-form select {
  width: 100%;
}

.questionnaire-upload-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1.5px dashed #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.questionnaire-upload-dropzone:hover,
.questionnaire-upload-dropzone.is-dragging {
  border-color: var(--primary);
  background: #dbeafe;
  transform: translateY(-1px);
}

.questionnaire-upload-dropzone span {
  color: var(--text);
  font-weight: 900;
}

.questionnaire-upload-dropzone strong {
  color: var(--primary-strong);
}

.questionnaire-upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.questionnaire-form-hint {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.questionnaire-checker-page .push-dashboard-shell {
  width: min(1180px, calc(100% - 32px));
}

.questionnaire-checker-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
}

.questionnaire-checker-card {
  gap: 18px;
  padding: clamp(28px, 4vw, 58px);
}

.questionnaire-checker-card h2 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.06em;
}

.questionnaire-checker-card p {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.8;
}

.questionnaire-checker-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 4px;
}

.questionnaire-checker-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.questionnaire-checker-steps strong {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  font-size: 12px;
}

.questionnaire-checker-field {
  display: grid;
  gap: 8px;
}

.questionnaire-checker-field label {
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 900;
}

.questionnaire-checker-field select {
  min-height: 54px;
  border: 1px solid rgba(147, 197, 253, 0.38);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}

.questionnaire-checker-page .questionnaire-upload-dropzone {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 14px;
  min-height: 152px;
  padding: 24px;
  border-color: rgba(191, 219, 254, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94)),
    #eff6ff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.questionnaire-checker-page .questionnaire-upload-dropzone:hover,
.questionnaire-checker-page .questionnaire-upload-dropzone.is-dragging {
  border-color: #60a5fa;
  background: #dbeafe;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.24);
}

.questionnaire-checker-page .questionnaire-upload-dropzone span:not(.questionnaire-upload-icon),
.questionnaire-checker-page .questionnaire-upload-dropzone strong,
.questionnaire-checker-page .questionnaire-upload-dropzone small {
  grid-column: 2;
}

.questionnaire-upload-icon {
  grid-row: 1 / span 3;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.questionnaire-checker-submit {
  min-height: 64px;
  border-radius: 18px;
  font-size: 17px;
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.28);
}

.questionnaire-checker-side {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.56)),
    rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
}

.questionnaire-checker-side .push-status-list {
  gap: 12px;
}

.questionnaire-checker-side .push-status-item {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.questionnaire-checker-side .push-status-item strong {
  color: #f8fafc;
}

.questionnaire-checker-side .push-status-item span {
  color: rgba(226, 232, 240, 0.72);
}

.questionnaire-shell {
  display: grid;
  gap: 18px;
}

.questionnaire-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.questionnaire-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
}

.questionnaire-summary-grid article {
  min-height: 118px;
  padding: 22px;
}

.questionnaire-summary-grid article strong {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
}

.questionnaire-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 1000;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.questionnaire-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.questionnaire-toast.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.questionnaire-log-card {
  padding: 0;
  overflow: hidden;
}

.questionnaire-log-card details {
  padding: 18px;
}

.questionnaire-log-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.questionnaire-log-summary::-webkit-details-marker {
  display: none;
}

.questionnaire-log-summary strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
}

.questionnaire-log-card .structured-log-list {
  max-height: 260px;
  margin-top: 14px;
  overflow: auto;
}

.questionnaire-config-card {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.questionnaire-config-card.is-config-saved {
  border-color: rgba(203, 213, 225, 0.88);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92)),
    #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.questionnaire-config-card.is-config-saved .card-title::after {
  content: "已保存";
  display: inline-flex;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.questionnaire-config-card.is-config-saved input:not([type="hidden"]),
.questionnaire-config-card.is-config-saved textarea,
.questionnaire-config-card.is-config-saved select {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}

.questionnaire-config-card.is-config-saved .hint,
.questionnaire-config-card.is-config-saved .card-subtitle,
.questionnaire-config-card.is-config-saved table,
.questionnaire-config-card.is-config-saved .questionnaire-default-preview {
  opacity: 0.72;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 38%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.app-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #344054;
  font-size: 14px;
  text-decoration: none;
}

.nav-link.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eff6ff;
  color: var(--primary-strong);
  font-weight: 700;
}

.nav-link.user-pill {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

button.nav-link {
  cursor: pointer;
  font-family: inherit;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

.system-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.system-status-label {
  color: #667085;
  font-weight: 650;
}

.system-status-pill.is-running {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.system-status-pill.is-running .system-status-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.system-status-pill.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.system-status-pill.is-error .system-status-dot {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

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

.hero-card,
.card,
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 234, 242, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.flash {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
}

.flash.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.flash.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.config-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 140;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.config-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.config-toast.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.config-toast.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
}

.stack {
  display: grid;
  gap: 16px;
}

.sidebar-fill {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-fill .log-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 520px;
}

.sidebar-fill .log-box {
  flex: 1;
  max-height: none;
  min-height: 420px;
}

.card {
  padding: 18px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-title {
  margin: 0;
  font-size: 18px;
}

.card-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.action-grid {
  display: grid;
  grid-template-columns: 180px minmax(170px, 220px) repeat(3, auto);
  gap: 12px;
  align-items: center;
}

label {
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn.primary:hover {
  background: var(--primary-strong);
}

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

.btn.success {
  background: var(--success);
  color: #fff;
}

.btn.warn {
  background: var(--warning);
  color: #fff;
}

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

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

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

tr:last-child td {
  border-bottom: 0;
}

.mini-table th,
.mini-table td {
  font-size: 13px;
}

.xinren-schedule-table {
  width: max-content;
  table-layout: fixed;
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10pt;
}

.xinren-schedule-table th,
.xinren-schedule-table td {
  min-width: 78px;
  border: 1px solid #d9dee7;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

.xinren-schedule-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #4472c4;
  color: #fff;
}

.xinren-schedule-table .xinren-name-col {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.xinren-schedule-table .xinren-pattern-col {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
}

.xinren-schedule-table .xinren-day-col {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
}

.xinren-schedule-table .xinren-shift-work {
  background: #e8f4f8;
}

.xinren-schedule-table .xinren-shift-rest {
  background: #fff2cc;
}

.xinren-schedule-table .xinren-shift-leave {
  background: #e6e6fa;
}

.xinren-schedule-table .xinren-shift-adjust {
  background: #d9f2d9;
}

.xinren-schedule-table .xinren-editable-cell {
  position: relative;
  cursor: pointer;
}

.xinren-schedule-table .xinren-editable-cell.has-mood::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.xinren-schedule-table .xinren-editable-cell:hover {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: -2px;
}

.xinren-shift-select {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  border: 1px solid #4472c4;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10pt;
  text-align: center;
  padding: 3px 4px;
}

.xinren-shift-floating-select {
  position: absolute;
  z-index: 100;
  display: none;
  height: 28px;
  margin: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.xinren-shift-floating-select.is-visible {
  display: block;
}

.xinren-mood-editor {
  position: absolute;
  z-index: 100;
  display: none;
  width: 260px;
  padding: 14px 12px 12px;
  border: 1px solid #d9dee7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.xinren-mood-editor.is-visible {
  display: grid;
  gap: 8px;
}

.xinren-mood-editor-title {
  padding-right: 26px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.xinren-mood-editor-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.xinren-mood-editor-close:hover {
  background: #f2f4f7;
  color: #172033;
}

.xinren-mood-editor label {
  font-size: 12px;
}

.xinren-mood-editor .xinren-shift-select {
  width: 100%;
  max-width: none;
}

.xinren-mood-editor textarea {
  min-height: 78px;
  font-size: 13px;
  resize: none;
}

.xinren-mood-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.xinren-overview-actions {
  justify-content: flex-end;
}

.xinren-save-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 120;
  min-width: 190px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(22, 101, 52, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.xinren-save-toast.error {
  background: rgba(153, 27, 27, 0.96);
}

.xinren-save-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 8px));
}

.xinren-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.xinren-drawer.is-open {
  display: block;
}

.xinren-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  cursor: pointer;
}

.xinren-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(420px, 92vw);
  height: 100%;
  flex-direction: column;
  padding: 22px;
  border-left: 1px solid rgba(229, 234, 242, 0.9);
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.18);
}

.xinren-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.xinren-drawer-header h2 {
  margin: 0;
  font-size: 20px;
}

.xinren-drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.xinren-drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.xinren-drawer-close:hover {
  background: #f8fafc;
  color: #172033;
}

.xinren-batch-form {
  display: grid;
  gap: 10px;
}

.xinren-batch-form input,
.xinren-batch-form select {
  width: 100%;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xinren-batch-form input:focus,
.xinren-batch-form select:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.xinren-batch-warning {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}

.xinren-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.btn:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.xinren-mood-marquee {
  position: fixed;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 30;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
}

.xinren-mood-track {
  position: relative;
  height: 100%;
}

.xinren-mood-bubble {
  position: absolute;
  top: calc(8px + (var(--bubble-index) % 2) * 64px);
  right: -360px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 48px;
  max-width: min(420px, 82vw);
  padding: 8px 16px;
  border: 1px solid var(--bubble-border, rgba(68, 114, 196, 0.28));
  border-radius: var(--bubble-radius, 10px);
  background: var(--bubble-bg, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #172033;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: auto;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  animation: xinrenMoodFloat 18s linear infinite;
  animation-delay: calc(var(--bubble-index) * -2.4s);
}

.xinren-mood-bubble:hover {
  border-color: var(--bubble-hover-border, rgba(68, 114, 196, 0.52));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  filter: brightness(0.995);
}

.xinren-mood-bubble.mood-rest {
  --bubble-bg: #fff2cc;
}

.xinren-mood-bubble.mood-happy {
  --bubble-bg: #eef9ef;
}

.xinren-mood-bubble.mood-normal {
  --bubble-bg: #fff;
}

.xinren-mood-bubble.bubble-1 {
  --bubble-border: #4472c4;
  --bubble-hover-border: #315a9c;
  --bubble-radius: 10px;
  --bubble-icon-bg: #4472c4;
}

.xinren-mood-bubble.bubble-2 {
  --bubble-border: #6f9ed8;
  --bubble-hover-border: #4f83bd;
  --bubble-radius: 12px;
  --bubble-icon-bg: #6f9ed8;
}

.xinren-mood-bubble.bubble-3 {
  --bubble-border: #7aa9bc;
  --bubble-hover-border: #5b8fa5;
  --bubble-radius: 12px;
  --bubble-icon-bg: #7aa9bc;
}

.xinren-mood-bubble.bubble-4 {
  --bubble-border: #9db7d5;
  --bubble-hover-border: #7499c4;
  --bubble-radius: 8px;
  --bubble-icon-bg: #4472c4;
}

.xinren-mood-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--bubble-icon-bg, #4472c4);
  color: #fff;
  font-size: 13px;
}

.xinren-mood-content {
  display: grid;
  gap: 2px;
  overflow: hidden;
  max-width: 360px;
}

.xinren-mood-content strong {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.xinren-mood-content span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

@keyframes xinrenMoodFloat {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100vw - 420px));
  }
}

@media (max-width: 760px) {
  .xinren-drawer-panel {
    width: 100%;
    padding: 18px;
  }

  .xinren-drawer-actions {
    display: grid;
  }

  .xinren-mood-editor {
    position: fixed;
    right: 14px;
    bottom: 76px;
    left: 14px !important;
    top: auto !important;
    width: auto;
  }

  .xinren-mood-marquee {
    bottom: 12px;
    height: 112px;
  }

  .xinren-mood-bubble {
    top: calc(6px + (var(--bubble-index) % 2) * 58px);
    max-width: 82vw;
    animation-duration: 14s;
  }

  .xinren-mood-content {
    max-width: 68vw;
  }
}

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

.file-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.analysis-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.analysis-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
}

.log-box {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #101828;
  color: #d1e0ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.placeholder-card {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.teaching-weekly-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.1), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 46%, #f4f7fb 100%);
}

.teaching-weekly-shell {
  max-width: 1180px;
}

.teaching-weekly-panel {
  padding: 26px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.teaching-weekly-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.teaching-weekly-panel-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.teaching-weekly-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.teaching-weekly-form {
  display: grid;
  gap: 16px;
}

.teaching-weekly-upload {
  display: grid;
  min-height: 255px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed #d7deea;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.64);
  color: #344054;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.teaching-weekly-upload:hover,
.teaching-weekly-upload.is-dragging {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  transform: translateY(-1px);
}

.teaching-weekly-upload.has-file {
  border-color: rgba(22, 163, 74, 0.32);
  background: #f7fef9;
}

.teaching-weekly-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.teaching-weekly-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(245, 239, 255, 0.96));
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

.teaching-weekly-upload strong {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.teaching-weekly-upload small {
  color: #98a2b3;
  font-size: 13px;
}

.teaching-weekly-actions {
  display: flex;
  justify-content: center;
}

.teaching-weekly-actions .btn {
  min-width: 150px;
}

.custom-interaction-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.1), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 46%, #f4f7fb 100%);
}

.custom-interaction-shell {
  max-width: 1280px;
}

.custom-interaction-topbar {
  align-items: flex-start;
}

.custom-interaction-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.custom-interaction-type-panel,
.custom-interaction-config-panel,
.custom-interaction-note {
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.custom-interaction-type-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  align-content: start;
}

.custom-interaction-config-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 24px;
}

.custom-interaction-section-title {
  margin-bottom: 14px;
}

.custom-interaction-section-title h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.custom-interaction-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.custom-interaction-type-card {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.custom-interaction-type-card.is-active {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
}

.custom-interaction-type-card:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.custom-interaction-type-card strong {
  font-size: 15px;
}

.custom-interaction-type-card span {
  color: var(--muted);
  font-size: 13px;
}

.custom-interaction-type-card em {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.custom-interaction-type-card.is-active em {
  background: #dbeafe;
  color: var(--primary-strong);
}

.custom-interaction-field,
.custom-interaction-question-card label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.custom-interaction-field {
  margin-bottom: 16px;
}

.custom-interaction-draft-board {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 16px;
  background: #f8fafc;
}

.custom-interaction-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.custom-interaction-list-head .custom-interaction-section-title {
  margin-bottom: 0;
}

.custom-interaction-list-head .btn {
  flex: 0 0 auto;
}

.custom-interaction-list-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.custom-interaction-type-filter {
  display: grid;
  align-items: center;
  flex: 0 0 180px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 14px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.custom-interaction-type-filter select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding-right: 24px;
}

.custom-interaction-draft-search {
  flex: 1 1 360px;
  width: min(430px, 100%);
}

.custom-interaction-new-menu {
  position: relative;
  flex: 0 0 auto;
}

.custom-interaction-new-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 178px;
  padding: 8px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.custom-interaction-new-options[hidden] {
  display: none;
}

.custom-interaction-new-options a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.custom-interaction-new-options a:hover {
  background: #eff6ff;
  color: var(--primary-strong);
}

.custom-interaction-draft-board strong {
  color: var(--text);
  font-size: 15px;
}

.custom-interaction-draft-board span {
  color: var(--muted);
  font-size: 13px;
}

.custom-interaction-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  max-height: 100%;
  overflow: auto;
}

.custom-interaction-draft-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.custom-interaction-draft-card[hidden] {
  display: none;
}

.custom-interaction-draft-card:hover,
.custom-interaction-draft-card.is-active {
  border-color: rgba(37, 99, 235, 0.38);
  background: #eff6ff;
}

.custom-interaction-draft-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-interaction-draft-card span,
.custom-interaction-draft-empty {
  color: #667085;
  font-size: 12px;
}

.custom-interaction-draft-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px dashed #d7deea;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.custom-interaction-draft-actions {
  display: flex;
  justify-content: flex-end;
}

.custom-interaction-edit-shell {
  max-width: 1120px;
}

.custom-interaction-edit-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.custom-interaction-editor {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(229, 234, 242, 0.92);
}

.custom-interaction-editor[hidden] {
  display: none;
}

.custom-interaction-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.custom-interaction-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.custom-interaction-editor-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.custom-interaction-editor-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.custom-interaction-field input,
.custom-interaction-question-card input,
.custom-interaction-question-card select,
.custom-interaction-question-card textarea {
  width: 100%;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-interaction-field input:focus,
.custom-interaction-question-card input:focus,
.custom-interaction-question-card select:focus,
.custom-interaction-question-card textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.custom-interaction-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-interaction-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.custom-interaction-color-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 14px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.custom-interaction-color-grid input {
  width: 58px;
  height: 38px;
  padding: 0;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.custom-interaction-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.custom-interaction-image-upload {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px dashed #d7deea;
  border-radius: 16px;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.custom-interaction-image-upload:hover,
.custom-interaction-image-upload.has-file {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  transform: translateY(-1px);
}

.custom-interaction-image-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.custom-interaction-image-upload strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(245, 239, 255, 0.96));
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.custom-interaction-image-upload.has-file strong {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
}

.custom-interaction-image-upload small {
  max-width: 260px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}

.custom-interaction-question-list {
  display: grid;
  gap: 14px;
}

.custom-interaction-question-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 18px;
  background: #f8fafc;
}

.custom-interaction-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-interaction-question-head strong {
  font-size: 16px;
}

.custom-interaction-question-card textarea {
  min-height: 76px;
  resize: vertical;
}

.custom-interaction-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-interaction-options label {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
}

.custom-interaction-options label span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
}

.custom-interaction-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.custom-interaction-toolbar .btn {
  min-width: 130px;
}

.custom-interaction-note {
  margin-top: 18px;
  padding: 18px 20px;
}

.custom-interaction-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.custom-interaction-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.custom-interaction-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.custom-interaction-preview-modal.is-open {
  display: block;
}

.custom-interaction-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
  cursor: pointer;
}

.custom-interaction-preview-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1040px, 96vw);
  padding: 16px;
  border: 1px solid rgba(229, 234, 242, 0.9);
  border-radius: 22px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.custom-interaction-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.custom-interaction-preview-head strong {
  font-size: 18px;
}

.custom-interaction-preview-panel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 16px;
  background: #edf4ff;
}

@media (max-width: 920px) {
  .custom-interaction-layout {
    grid-template-columns: 1fr;
  }

  .custom-interaction-options {
    grid-template-columns: 1fr;
  }

  .custom-interaction-asset-grid {
    grid-template-columns: 1fr;
  }

  .custom-interaction-color-grid {
    grid-template-columns: 1fr;
  }

  .custom-interaction-inline-fields {
    grid-template-columns: 1fr;
  }

  .custom-interaction-draft-list {
    grid-template-columns: 1fr;
  }

  .custom-interaction-list-head {
    display: grid;
  }

  .custom-interaction-list-actions {
    display: grid;
  }

  .custom-interaction-draft-search {
    width: 100%;
  }

  .custom-interaction-toolbar {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .custom-interaction-editor-head,
  .custom-interaction-editor-actions,
  .custom-interaction-draft-actions {
    display: grid;
  }

  .custom-interaction-toolbar .btn {
    flex: 1;
  }
}

.download-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.jinshuju-files-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(64, 128, 224, 0.1), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fa 42%, #f5f7fa 100%);
}

.jinshuju-files-shell {
  max-width: 1320px;
}

.jinshuju-files-shell .brand-mark {
  background: #4080e0;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.24);
}

.files-card {
  overflow: hidden;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.files-card .card-title {
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
}

.files-card .card-subtitle {
  color: #86909c;
  font-size: 13px;
}

.files-table-wrap {
  overflow: auto;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fff;
}

.files-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
}

.files-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 48px;
  padding: 0 18px;
  background: #f7f8fa;
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.files-table tbody tr {
  height: 56px;
  transition: background 0.16s ease;
}

.files-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.files-table tbody tr:hover {
  background: #f0f6ff;
}

.files-table td {
  padding: 10px 18px;
  border-top: 1px solid #eef1f6;
  color: #1d2129;
  font-size: 14px;
  vertical-align: middle;
}

.file-name-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-name-cell strong,
.file-name-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-cell strong {
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
}

.file-name-cell small {
  margin-top: 4px;
  color: #86909c;
  font-size: 12px;
}

.file-type-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eef2f7;
  color: #4e5969;
  font-size: 11px;
  font-weight: 800;
}

.file-type-icon.excel {
  background: rgba(54, 179, 126, 0.12);
  color: #16885b;
}

.file-type-icon.markdown {
  background: rgba(64, 128, 224, 0.12);
  color: #2568c7;
}

.file-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
}

.file-type-pill.excel {
  background: rgba(54, 179, 126, 0.12);
  color: #16885b;
}

.file-type-pill.markdown {
  background: rgba(64, 128, 224, 0.12);
  color: #2568c7;
}

.file-date {
  color: #4e5969;
  font-weight: 600;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.file-download-button,
.file-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.file-download-button {
  background: #4080e0;
  color: #fff;
}

.file-download-button:hover {
  background: #2f6fd6;
  box-shadow: 0 10px 22px rgba(64, 128, 224, 0.22);
  transform: translateY(-1px);
}

.file-delete-button {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.file-delete-button:hover {
  background: #fee2e2;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.12);
  transform: translateY(-1px);
}

.file-download-button.is-loading,
.file-delete-button:disabled {
  pointer-events: none;
  opacity: 0.78;
}

.files-empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #86909c;
  font-size: 14px;
}

.files-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 100;
  min-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.files-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.status-badge.running {
  background: #dcfce7;
  color: #166534;
}

.c1-home-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(37, 99, 235, 0.11), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(14, 165, 233, 0.08), transparent 22rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 46%, #eef3f8 100%);
}

.c1-home-shell {
  display: grid;
  max-width: 1120px;
  min-height: 100vh;
  align-content: center;
  gap: 18px;
  padding-block: 34px;
}

.c1-home-topbar {
  margin-bottom: 4px;
}

.c1-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.78)),
    #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.09);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.c1-home-hero:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.c1-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c1-home-hero h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.c1-home-hero p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.c1-hero-status {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  background: rgba(239, 246, 255, 0.92);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.c1-hero-status span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.c1-hero-status.is-running {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.94);
}

.c1-hero-status.is-running span {
  background: #dcfce7;
  color: #166534;
}

.c1-hero-status.is-ended {
  border-color: rgba(234, 88, 12, 0.22);
  background: rgba(255, 247, 237, 0.96);
}

.c1-hero-status.is-ended span {
  background: #ffedd5;
  color: #9a3412;
}

.c1-hero-status.is-closed {
  border-color: rgba(102, 112, 133, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

.c1-hero-status.is-closed span {
  background: #f2f4f7;
  color: #475467;
}

.c1-hero-status strong {
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.c1-hero-status em {
  color: #667085;
  font-size: 13px;
  font-style: normal;
}

.c1-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.c1-metric-card {
  display: grid;
  gap: 9px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.c1-metric-card:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.c1-metric-card:active {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
}

.c1-metric-icon,
.c1-action-icon {
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.c1-metric-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.c1-metric-icon.success {
  background: #ecfdf3;
  color: #16a34a;
}

.c1-metric-icon.warning {
  background: #fff7ed;
  color: #ea580c;
}

.c1-metric-icon.info {
  background: #ecfeff;
  color: #0ea5e9;
}

.c1-metric-icon svg,
.c1-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.16s ease;
}

.c1-home-hero:hover .c1-hero-status,
.c1-metric-card:hover .c1-metric-icon,
.c1-action-card:hover .c1-action-icon {
  transform: translateY(-1px);
}

.c1-metric-card:hover .c1-metric-icon svg,
.c1-action-card:hover .c1-action-icon svg {
  transform: scale(1.05);
}

.c1-metric-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.c1-metric-card strong {
  overflow: hidden;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.c1-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px;
}

.c1-action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  color: #111827;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.c1-action-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.c1-action-card:active {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  transform: translateY(0);
}

.c1-action-primary {
  min-height: 196px;
  border-color: rgba(37, 99, 235, 0.32);
  background:
    radial-gradient(circle at top right, rgba(147, 197, 253, 0.45), transparent 18rem),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}

.c1-action-primary:hover {
  border-color: rgba(191, 219, 254, 0.74);
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.26);
}

.c1-action-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
}

.c1-action-icon svg {
  width: 28px;
  height: 28px;
}

.c1-action-icon.secondary {
  background: #eff6ff;
  color: #2563eb;
}

.c1-action-kicker {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.76;
  text-transform: uppercase;
}

.c1-action-card h3 {
  margin: 8px 0 8px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.c1-action-card p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.78;
}

.c1-action-button {
  align-self: end;
  justify-self: start;
  margin-top: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
}

.c1-action-button.secondary {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
}

.c1-action-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.c1-action-card.is-disabled:hover {
  border-color: rgba(229, 234, 242, 0.92);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transform: none;
}

.jinshuju-home-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(79, 70, 229, 0.11), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.09), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 48%, #eef3f8 100%);
}

.jinshuju-home-shell {
  display: grid;
  max-width: 1400px;
  min-height: 100vh;
  align-content: start;
  gap: 0;
  padding-block: 24px 42px;
}

.jinshuju-home-shell .topbar {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(229, 234, 242, 0.9);
  margin-bottom: 0;
}

.jinshuju-home-shell #report-form {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-block: clamp(56px, 10vh, 120px) 0;
}

.jinshuju-action-grid {
  width: min(100%, 1200px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 24px;
}

.jinshuju-action-button-card {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.jinshuju-action-grid .c1-action-card {
  min-height: 280px;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
  padding: 30px;
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.jinshuju-action-grid .c1-action-primary {
  min-height: 280px;
}

.jinshuju-action-grid .jinshuju-action-card-primary {
  border-color: rgba(199, 210, 254, 0.58);
  background:
    radial-gradient(circle at 88% 8%, rgba(191, 219, 254, 0.42), transparent 16rem),
    linear-gradient(135deg, #2563eb 0%, #4f46e5 58%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 28px 66px rgba(79, 70, 229, 0.26);
}

.jinshuju-action-grid .jinshuju-action-card-secondary {
  border: 1px solid rgba(37, 99, 235, 0.32);
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.45), transparent 16rem),
    rgba(255, 255, 255, 0.98);
}

.jinshuju-action-grid .jinshuju-action-card-tertiary {
  border-color: rgba(229, 234, 242, 0.96);
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.6), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
}

.jinshuju-home-shell .layout-grid {
  margin-top: 0;
}

.jinshuju-main-layout {
  grid-template-columns: 390px minmax(0, 1fr);
}

.jinshuju-action-grid .c1-action-card > div:last-child {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.jinshuju-action-grid .c1-action-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.jinshuju-action-grid .jinshuju-action-card-primary .c1-action-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.jinshuju-action-grid .jinshuju-action-card-secondary .c1-action-icon {
  background: #eff6ff;
  color: #2563eb;
}

.jinshuju-action-grid .jinshuju-action-card-tertiary .c1-action-icon {
  background: #eef2f7;
  color: #475467;
}

.jinshuju-action-grid .c1-action-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.jinshuju-action-grid .c1-action-card h3 {
  margin: 10px 0 12px;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.15;
}

.jinshuju-action-grid .c1-action-card p {
  margin-bottom: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.85;
  opacity: 0.74;
}

.jinshuju-action-grid .c1-action-button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.jinshuju-action-grid .jinshuju-action-card-primary .c1-action-button {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.jinshuju-action-grid .jinshuju-action-card-secondary .c1-action-button,
.jinshuju-action-grid .jinshuju-action-card-tertiary .c1-action-button {
  border: 1px solid rgba(229, 234, 242, 0.96);
  background: #f8fafc;
  color: #344054;
}

.jinshuju-action-grid .c1-action-card:hover {
  transform: translateY(-4px);
}

.jinshuju-action-grid .jinshuju-action-card-primary:hover {
  box-shadow: 0 34px 76px rgba(79, 70, 229, 0.32);
}

.jinshuju-action-grid .jinshuju-action-card-secondary:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 26px 62px rgba(37, 99, 235, 0.15);
}

.jinshuju-action-grid .jinshuju-action-card-tertiary:hover {
  border-color: rgba(203, 213, 225, 0.96);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
}

.jinshuju-home-shell .card {
  border-color: rgba(229, 234, 242, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.jinshuju-home-shell .table-wrap {
  background: #fff;
}

.jinshuju-overlay-open {
  overflow: hidden;
}

.jinshuju-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.jinshuju-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jinshuju-layer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.36);
  cursor: pointer;
}

.jinshuju-export-modal {
  display: grid;
  padding: 24px;
  place-items: center;
}

.jinshuju-modal-panel,
.jinshuju-drawer-panel {
  position: relative;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.jinshuju-modal-panel {
  display: grid;
  width: min(860px, 94vw);
  max-height: min(720px, 92vh);
  gap: 16px;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(229, 234, 242, 0.92);
  border-radius: 24px;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.18s ease;
}

.jinshuju-layer.is-open .jinshuju-modal-panel {
  transform: translateY(0) scale(1);
}

.jinshuju-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(760px, 100vw);
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 24px;
  overflow: hidden;
  transform: translateX(24px);
  transition: transform 0.18s ease;
}

.jinshuju-layer.is-open .jinshuju-drawer-panel {
  transform: translateX(0);
}

.jinshuju-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.jinshuju-panel-header h2 {
  margin: 6px 0 6px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.jinshuju-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.jinshuju-panel-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.jinshuju-panel-close:hover {
  background: #f8fafc;
  color: #172033;
}

.jinshuju-panel-card {
  box-shadow: none;
}

#export-modal .jinshuju-export-panel {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

#export-modal .jinshuju-panel-header {
  padding-bottom: 16px;
}

#export-modal .jinshuju-panel-header h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

#export-modal .jinshuju-panel-header p {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.jinshuju-export-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.jinshuju-export-card .card-header {
  margin-bottom: 0;
}

.jinshuju-export-card .card-title {
  font-size: 20px;
  font-weight: 600;
}

.jinshuju-export-card .card-subtitle {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.jinshuju-export-form,
.jinshuju-export-field {
  display: grid;
  gap: 8px;
}

.jinshuju-export-field label {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.jinshuju-export-field input {
  height: 44px;
  border-radius: 10px;
}

.jinshuju-export-field input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.field-error {
  display: none;
  margin: -2px 0 0;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
}

.jinshuju-export-field.has-error .field-error {
  display: block;
}

.jinshuju-export-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.jinshuju-export-primary,
.jinshuju-export-secondary,
.jinshuju-text-action {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.jinshuju-export-primary {
  min-width: 180px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.jinshuju-export-helper {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.jinshuju-export-primary:hover {
  background: var(--primary-strong);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.jinshuju-text-action {
  display: inline-flex;
  align-items: center;
  color: #475467;
  text-decoration: none;
}

.jinshuju-text-action:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.jinshuju-inspect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.jinshuju-export-secondary {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.jinshuju-export-secondary:hover {
  border-color: #fdba74;
  background: #ffedd5;
}

.jinshuju-log-panel {
  width: min(760px, 92vw);
}

.jinshuju-log-panel .log-box {
  min-height: min(52vh, 460px);
  max-height: min(60vh, 560px);
}

.jinshuju-drawer-body {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding-top: 16px;
  padding-right: 4px;
}

.jinshuju-config-drawer .jinshuju-drawer-panel {
  border-radius: 16px 0 0 16px;
}

.jinshuju-config-drawer .jinshuju-panel-header {
  padding-bottom: 18px;
}

.jinshuju-config-drawer .jinshuju-panel-header h2,
.jinshuju-config-drawer .card-title {
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.jinshuju-config-drawer .jinshuju-panel-header p,
.jinshuju-config-drawer input,
.jinshuju-config-drawer textarea,
.jinshuju-config-drawer table,
.jinshuju-config-drawer .btn {
  font-size: 14px;
  font-weight: 400;
}

.jinshuju-config-drawer label {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.jinshuju-config-drawer .card-subtitle,
.jinshuju-config-drawer .hint {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.jinshuju-config-drawer .card {
  border: 1px solid rgba(229, 234, 242, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.jinshuju-config-drawer .card.is-config-saved {
  border-color: rgba(203, 213, 225, 0.88);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9)),
    #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.jinshuju-config-drawer .card.is-config-saved .card-title::after {
  content: "已保存";
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 8px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.jinshuju-config-drawer .card.is-config-saved input:not([type="hidden"]),
.jinshuju-config-drawer .card.is-config-saved textarea,
.jinshuju-config-drawer .card.is-config-saved select {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}

.jinshuju-config-drawer .card.is-config-saved .hint,
.jinshuju-config-drawer .card.is-config-saved .card-subtitle,
.jinshuju-config-drawer .card.is-config-saved table {
  opacity: 0.72;
}

.jinshuju-config-drawer .table-wrap {
  border-radius: 16px;
}

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

.structured-log-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #f8fafc;
}

.structured-log-item span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.structured-log-item strong {
  color: #172033;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.structured-log-item.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.structured-log-item.warning {
  border-color: #fed7aa;
  background: #fff7ed;
}

.structured-log-item.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.structured-log-item.success strong {
  color: #166534;
}

.structured-log-item.warning strong {
  color: #c2410c;
}

.structured-log-item.error strong {
  color: #b91c1c;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
}

.login-card .brand {
  margin-bottom: 18px;
}

.login-title {
  margin: 0 0 20px;
  color: #172033;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.caps-lock-hint {
  display: none;
  margin-top: 8px;
  color: #dc2626;
  font-weight: 700;
}

.caps-lock-hint.visible {
  display: block;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.portal-shell {
  max-width: 1280px;
  min-height: 100vh;
  background: #f7f8fc;
}

.portal-topbar {
  width: min(100%, calc(5 * 150px + 4 * 18px));
  margin-inline: auto;
  margin-bottom: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.portal-home-mark {
  width: 34px;
  height: 30px;
}

.portal-home-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-user,
.portal-login-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.portal-user {
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #344054;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.portal-login-link {
  padding: 0 14px;
  background: #172033;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.portal-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tool-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.portal-tool-board {
  width: min(100%, calc(5 * 150px + 4 * 18px));
  grid-template-columns: repeat(5, minmax(0, 150px));
  margin-inline: auto;
  justify-content: center;
  justify-items: center;
}

.portal-tool-tile {
  width: 100%;
  max-width: 150px;
  padding: 24px 12px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.c1-paper-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(64, 128, 224, 0.1), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f7fa 48%, #eef2f7 100%);
}

.c1-list-shell {
  display: grid;
  max-width: 1200px;
  min-height: 100vh;
  align-content: center;
  gap: 20px;
  padding-block: 34px;
}

.c1-admin-shell {
  display: grid;
  max-width: 1200px;
  gap: 18px;
  padding-block: 24px 56px;
}

.c1-page-topbar {
  margin-bottom: 0;
}

.c1-panel {
  padding: 22px;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(29, 33, 41, 0.07);
}

.c1-panel-header {
  align-items: center;
  margin-bottom: 20px;
}

.c1-panel-header .card-title {
  color: #1d2129;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.c1-panel-header .card-subtitle {
  color: #86909c;
  font-size: 14px;
  font-weight: 400;
}

.c1-panel-actions {
  gap: 10px;
}

.c1-primary-action {
  min-height: 42px;
  background: #4080e0 !important;
  color: #fff;
  box-shadow: 0 10px 22px rgba(64, 128, 224, 0.2);
}

.c1-secondary-action {
  min-height: 42px;
  color: #4e5969;
}

.c1-paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.c1-paper-card {
  position: relative;
  display: grid;
  min-height: 184px;
  padding: 18px;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  background: #fff;
  color: #1d2129;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 33, 41, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.c1-paper-card--admin.is-open {
  border-color: rgba(64, 128, 224, 0.38);
  background:
    linear-gradient(180deg, rgba(240, 246, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
}

.c1-paper-card:hover,
.c1-paper-card--admin:hover {
  border-color: rgba(64, 128, 224, 0.58);
  box-shadow: 0 18px 36px rgba(29, 33, 41, 0.11);
  transform: translateY(-2px);
}

.c1-paper-card-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.c1-paper-settings-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eef4ff;
  color: #4080e0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.c1-paper-settings-button:hover {
  background: #dbeafe;
  box-shadow: 0 8px 18px rgba(64, 128, 224, 0.16);
  transform: translateY(-1px);
}

.c1-paper-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #f2f7ff;
  color: #4080e0;
}

.c1-paper-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c1-paper-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding-right: 54px;
}

.c1-paper-content h3 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.c1-paper-status {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 600;
}

.c1-paper-status.is-open {
  background: #e8f7ef;
  color: #1f9d5a;
}

.c1-paper-status.is-disabled {
  background: #f2f3f5;
  color: #86909c;
}

.c1-paper-meta {
  display: grid;
  gap: 7px;
  color: #86909c;
  font-size: 13px;
  line-height: 1.5;
}

.c1-empty-card {
  border: 1px dashed #d9dee8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.c1-settings-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.c1-settings-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.c1-settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  cursor: pointer;
}

.c1-settings-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(460px, 100vw);
  height: 100%;
  align-content: start;
  gap: 20px;
  padding: 26px;
  background: #fff;
  box-shadow: -24px 0 44px rgba(15, 23, 42, 0.14);
  transform: translateX(18px);
  transition: transform 0.18s ease;
}

.c1-settings-drawer.is-open .c1-settings-panel {
  transform: translateX(0);
}

.c1-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e6eb;
}

.c1-settings-header h2 {
  margin: 0;
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
}

.c1-settings-header p {
  margin: 6px 0 0;
  color: #86909c;
  font-size: 13px;
}

.c1-settings-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e6eb;
  border-radius: 999px;
  background: #fff;
  color: #4e5969;
  cursor: pointer;
  font-size: 20px;
}

.c1-settings-form {
  display: grid;
  gap: 10px;
}

.c1-settings-form label {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
}

.c1-settings-form input,
.c1-settings-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  color: #1d2129;
  font: inherit;
}

.c1-settings-form textarea {
  min-height: 150px;
  resize: vertical;
}

.c1-settings-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.c1-settings-check input {
  width: auto;
}

.c1-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}

.c1-wait-shell {
  display: grid;
  width: min(100%, 1320px);
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 18px 24px 72px;
}

.c1-wait-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: end;
  align-self: center;
  gap: 24px;
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 36px 38px 18px;
  border: 1px solid rgba(229, 230, 235, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 42px rgba(64, 128, 224, 0.12);
}

.c1-wait-card h2 {
  margin: 0 0 12px;
  color: #1d2129;
  font-size: 20px;
  font-weight: 700;
}

.c1-wait-card p {
  margin: 0;
  color: #4e5969;
  font-size: 13px;
  line-height: 1.7;
}

.c1-wait-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #3f6df6;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.c1-wait-button.is-disabled {
  background: #cfd8e6;
}

.c1-wait-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.c1-wait-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.c1-exam-shell {
  max-width: none;
  padding: 14px 18px 72px;
}

.c1-exam-shell .c1-page-topbar {
  max-width: 1480px;
  margin: 0 auto 12px;
}

.c1-exam-layout {
  display: grid;
  width: min(100%, 1480px);
  grid-template-columns: 148px minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: start;
  margin: 0 auto;
}

.c1-exam-sidebar,
.c1-question-card,
.c1-exam-paper-head {
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(29, 33, 41, 0.06);
}

.c1-exam-sidebar {
  position: sticky;
  top: 14px;
  padding: 16px;
}

.c1-exam-answer-card {
  min-height: 230px;
}

.c1-exam-side-title {
  color: #1d2129;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.c1-exam-side-subtitle {
  margin-top: 6px;
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.c1-answer-type-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.c1-answer-type-title {
  color: #4e5969;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.c1-exam-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.c1-exam-paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 22px;
}

.c1-exam-paper-head h2 {
  margin: 0;
  color: #1d2129;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.c1-exam-paper-head p {
  margin: 10px 0 0;
  color: #4e5969;
  font-size: 14px;
  line-height: 1.6;
}

.c1-exam-candidate {
  display: grid;
  min-width: 210px;
  gap: 8px;
}

.c1-exam-candidate label {
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
}

.c1-exam-candidate input {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  font: inherit;
}

.c1-question-card {
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  overflow: hidden;
}

.c1-question-title {
  display: grid;
  gap: 12px;
}

.c1-question-title span {
  color: #4e5969;
  font-size: 14px;
  font-weight: 600;
}

.c1-question-title h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.c1-question-meta {
  margin: 0;
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
}

.c1-question-image {
  display: block;
  width: min(100%, 680px);
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  background: #f8fafc;
}

.c1-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.c1-answer-index {
  height: 30px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #4e5969;
  cursor: pointer;
}

.c1-answer-index.is-current {
  border-color: #4080e0;
  background: #eef4ff;
  color: #4080e0;
}

.c1-answer-index.is-answered {
  background: #e8f7ef;
  border-color: #9fd9b7;
  color: #1f9d5a;
}

.c1-answer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
  color: #4e5969;
  font-size: 12px;
  font-weight: 600;
}

.c1-answer-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.c1-answer-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #c9d1dd;
  background: #fff;
}

.c1-answer-legend .is-current {
  border-color: #4080e0;
  background: #4080e0;
}

.c1-answer-legend .is-answered {
  border-color: #1f9d5a;
  background: #1f9d5a;
}

.c1-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.c1-choice-list-inline {
  grid-template-columns: repeat(2, minmax(0, 180px));
}

.c1-choice-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  color: #1d2129;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.c1-choice-option input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.c1-choice-option span {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.5;
}

.c1-choice-option:hover {
  border-color: rgba(64, 128, 224, 0.38);
  background: #f8fbff;
}

.c1-code-answer {
  width: 100%;
  min-height: 150px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  font: inherit;
}

.c1-exam-status-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.c1-timer-card,
.c1-progress-card,
.c1-font-tools {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e6eb;
}

.c1-timer-card span,
.c1-progress-card span {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
}

.c1-timer-card strong,
.c1-progress-card strong {
  color: #1d2129;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.c1-progress-card em {
  color: #4080e0;
  font-style: normal;
}

.c1-font-tools {
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  border-bottom: 0;
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.c1-font-tools button {
  width: 30px;
  height: 30px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #4080e0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.c1-exam-submit-bar {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
}

.c1-exam-submit {
  min-width: 72px;
  min-height: 42px;
  border-radius: 12px;
  background: #4080e0 !important;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.22);
}

.c1-exam-layout.font-large {
  font-size: 17px;
}

.c1-exam-layout.font-large .c1-question-title h3 {
  font-size: 20px;
}

.c1-exam-layout.font-small {
  font-size: 13px;
}

.c1-exam-layout.font-small .c1-question-title h3 {
  font-size: 16px;
}

.c1-builder {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.c1-builder-sidebar,
.c1-builder-main,
.c1-config-compact-card,
.c1-builder-question {
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(29, 33, 41, 0.06);
}

.c1-builder-sidebar {
  position: sticky;
  top: 18px;
  padding: 16px;
  min-height: 210px;
}

.c1-builder-add {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eef4ff;
  color: #4080e0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.c1-builder-add:hover {
  background: #dbeafe;
  box-shadow: 0 8px 18px rgba(64, 128, 224, 0.14);
  transform: translateY(-1px);
}

.c1-builder-side-title {
  margin-top: 12px;
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.c1-builder-side-hint {
  margin: 16px 0 0;
  color: #4e5969;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.c1-builder-nav {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.c1-builder-type-group {
  display: grid;
  gap: 8px;
}

.c1-builder-type-title {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.c1-builder-type-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.c1-builder-nav-item {
  height: 30px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #4e5969;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.c1-builder-nav-item:hover {
  border-color: #4080e0;
  background: #f2f7ff;
  color: #4080e0;
}

.c1-builder-main {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.c1-config-compact-card,
.c1-builder-question {
  padding: 18px;
}

.c1-config-compact-card {
  margin-bottom: 0;
}

.c1-config-compact-card .card-header {
  align-items: flex-start;
  margin-bottom: 18px;
}

.c1-config-compact-card .toolbar {
  align-items: center;
  gap: 10px;
}

.c1-config-compact-grid {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

.c1-config-compact-grid,
.c1-builder-fields {
  display: grid;
  gap: 12px;
}

.c1-config-compact-grid label,
.c1-builder-fields > label {
  color: #1d2129;
  font-size: 13px;
  font-weight: 700;
}

.c1-builder-fields input,
.c1-builder-fields select,
.c1-builder-fields textarea,
.c1-config-compact-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  font: inherit;
}

.c1-builder-main .stack {
  display: grid;
  gap: 14px;
}

.c1-builder-question {
  display: grid;
  gap: 16px;
}

.c1-builder-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f4;
}

.c1-builder-question-head h3 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.c1-builder-question-head p {
  margin: 6px 0 0;
  color: #86909c;
  font-size: 13px;
  line-height: 1.5;
}

.c1-builder-fields {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
}

.c1-builder-stem {
  min-height: 120px;
  resize: vertical;
}

.c1-builder-options {
  min-height: 112px;
  resize: vertical;
}

.c1-builder-image {
  display: block;
  max-width: 260px;
  max-height: 160px;
  margin-bottom: 10px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  object-fit: contain;
}

.c1-builder-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4e5969;
  font-size: 14px;
}

.c1-builder-check input {
  width: auto;
}

.c1-builder-question .btn.small {
  min-height: 32px;
  padding: 0 12px;
}

.python-skeleton-shell {
  max-width: 1200px;
  padding-top: 28px;
  padding-bottom: 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 4%, rgba(64, 128, 224, 0.12) 0 80px, transparent 82px),
    radial-gradient(circle at 92% 10%, rgba(22, 93, 255, 0.1) 0 110px, transparent 112px),
    linear-gradient(180deg, #f3f8ff 0%, #f8fbff 48%, #ffffff 100%);
  color: #172033;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.python-skeleton-topbar {
  margin-bottom: 18px;
}

.python-learning-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 0 18px;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(90deg, #176bdb 0%, #2884ff 72%, #46a6ff 100%);
  box-shadow: 0 16px 34px rgba(23, 107, 219, 0.2);
}

.python-learning-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.python-learning-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.python-learning-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.python-learning-brand span {
  display: grid;
  gap: 2px;
}

.python-learning-brand strong {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.python-learning-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.python-learning-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.python-learning-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.python-learning-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.86);
}

.python-learning-nav a[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.python-learning-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.python-learning-coin,
.python-learning-profile,
.python-learning-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.python-learning-coin {
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.python-learning-coin img {
  width: 18px;
  height: 18px;
}

.python-learning-profile {
  gap: 8px;
  padding: 0 12px 0 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.python-learning-home-link {
  padding: 0 14px;
  background: #fff;
  color: #176bdb;
}

.python-skeleton-topbar .tool-tile-icon {
  border-radius: 24px;
  background: #fff7c7;
  box-shadow: 0 8px 18px rgba(78, 171, 216, 0.18);
}

.python-school-brand {
  color: #24506d;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.82), 0 10px 18px rgba(78, 171, 216, 0.18);
  white-space: nowrap;
}

.python-skeleton-topbar .nav-link {
  border-color: rgba(78, 171, 216, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #2c79a3;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(78, 171, 216, 0.12);
}

.python-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #d9f8e6;
  color: #22875b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(56, 189, 140, 0.14);
}

.python-profile-entry {
  text-decoration: none;
}

.python-profile-avatar,
.python-profile-round-entry {
  display: inline-grid;
  overflow: hidden;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7c7, #d9f8e6);
  color: #2c79a3;
  font-size: 14px;
  font-weight: 900;
}

.python-profile-avatar img,
.python-profile-round-entry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.python-profile-round-entry {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(78, 171, 216, 0.14);
}

.python-skeleton-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 0.95fr);
  gap: 18px;
  margin-bottom: 30px;
}

.python-image-slot {
  background:
    var(--slot-image, linear-gradient(135deg, rgba(232, 244, 248, 0.92), rgba(255, 255, 255, 0.96))) center / cover no-repeat;
}

.python-skeleton-feature-card,
.python-skeleton-side-card,
.python-skeleton-course-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(23, 107, 219, 0.08);
}

.python-skeleton-feature-card {
  position: relative;
  min-height: 318px;
  background-color: #1b6fe5;
}

.python-hero-carousel {
  cursor: default;
  isolation: isolate;
}

.python-hero-slide {
  display: grid;
  position: absolute;
  inset: 0;
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
  background:
    var(--slot-image, radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24) 0 90px, transparent 91px),
    radial-gradient(circle at 83% 78%, rgba(255, 255, 255, 0.72) 0 72px, transparent 73px),
    linear-gradient(135deg, #65b7ff 0%, #82d7ff 62%, #b9f5d0 100%)) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.python-hero-slide::after {
  display: none;
}

.python-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.python-hero-slide.is-soft {
  background:
    radial-gradient(circle at 16% 26%, rgba(255, 255, 255, 0.72) 0 56px, transparent 57px),
    radial-gradient(circle at 80% 28%, rgba(255, 241, 171, 0.56) 0 82px, transparent 83px),
    linear-gradient(135deg, #a9e7ff 0%, #bda7ff 54%, #ffd6e7 100%);
}

.python-hero-slide.is-warm {
  background:
    radial-gradient(circle at 18% 76%, rgba(255, 255, 255, 0.72) 0 72px, transparent 73px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.54) 0 58px, transparent 59px),
    linear-gradient(135deg, #ffe07d 0%, #ffb7d5 48%, #9de8ff 100%);
}

.python-hero-dots {
  display: inline-flex;
  position: absolute;
  left: 42px;
  bottom: 18px;
  z-index: 2;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.python-hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.python-hero-dots button.is-active {
  width: 24px;
  background: #fff;
}

.python-hero-content {
  display: grid;
  position: relative;
  z-index: 2;
  max-width: 410px;
  gap: 12px;
  padding: 42px;
  color: #fff;
}

.python-hero-kicker {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #dcecff;
  font-size: 13px;
  font-weight: 800;
}

.python-hero-content strong {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.12;
}

.python-hero-content small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.python-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #176bdb;
  font-size: 14px;
  font-weight: 900;
}

.python-skeleton-side-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 10px;
  min-height: 318px;
  padding: 14px;
  background: #fff;
}

.python-quick-entry {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 16px;
  background: #f7faff;
  color: #172033;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.python-quick-entry.is-primary {
  background: linear-gradient(135deg, #176bdb 0%, #46a6ff 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(23, 107, 219, 0.18);
}

.python-quick-entry[disabled] {
  cursor: default;
  opacity: 0.78;
}

.python-quick-entry span {
  color: #6b7a90;
  font-size: 12px;
  font-weight: 800;
}

.python-quick-entry.is-primary span,
.python-quick-entry.is-primary small {
  color: rgba(255, 255, 255, 0.78);
}

.python-quick-entry strong {
  font-size: 17px;
  font-weight: 950;
}

.python-quick-entry small {
  color: #86909c;
  font-size: 12px;
}

.python-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.python-quick-stats div {
  display: grid;
  gap: 3px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: #f4f7fb;
}

.python-quick-stats strong {
  color: #176bdb;
  font-size: 18px;
  font-weight: 950;
}

.python-quick-stats span {
  color: #86909c;
  font-size: 12px;
  font-weight: 800;
}

.python-skeleton-stat {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 138px;
  padding: 13px 8px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  color: #26779c;
  text-align: center;
  box-shadow: 0 10px 20px rgba(78, 171, 216, 0.13);
}

.python-skeleton-stat .python-skeleton-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 18px;
  background: #fff5bb;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(255, 197, 74, 0.24);
}

.python-skeleton-stat .python-skeleton-stat-icon.is-coin {
  background: transparent;
  box-shadow: none;
}

.python-skeleton-stat .python-skeleton-stat-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.python-skeleton-stat strong {
  color: #ff9f1c;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.python-skeleton-stat span {
  font-size: 13px;
  font-weight: 900;
}

.python-chapter-pager {
  display: grid;
  position: relative;
  align-items: center;
  gap: 18px;
}

.python-section-heading {
  display: grid;
  gap: 6px;
}

.python-section-heading span {
  color: #176bdb;
  font-size: 13px;
  font-weight: 900;
}

.python-section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  font-weight: 950;
}

.python-chapter-page-arrow {
  display: grid;
  position: absolute;
  top: calc(50% + 34px);
  z-index: 3;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #176bdb;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(23, 107, 219, 0.12);
  transform: translateY(-50%);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.python-chapter-page-arrow:hover {
  box-shadow: 0 16px 28px rgba(23, 107, 219, 0.16);
  transform: translateY(-50%) scale(1.04);
}

.python-chapter-page-arrow[hidden] {
  display: none;
}

.python-chapter-page-arrow.is-prev {
  left: -26px;
}

.python-chapter-page-arrow.is-next {
  right: -26px;
}

.python-profile-shell {
  max-width: 920px;
  padding-top: 28px;
  padding-bottom: 46px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 224, 125, 0.34) 0 46px, transparent 47px),
    radial-gradient(circle at 92% 10%, rgba(157, 232, 255, 0.44) 0 72px, transparent 73px),
    linear-gradient(180deg, #eef9ff 0%, #f7fff7 100%);
  color: #24506d;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-profile-toast {
  width: max-content;
  max-width: min(92vw, 720px);
  margin: 0 auto 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #d9f8e6;
  color: #22875b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(56, 189, 140, 0.14);
}

.python-profile-toast.is-error {
  background: #fff1f0;
  color: #f53f3f;
  box-shadow: 0 8px 18px rgba(245, 63, 63, 0.12);
}

.python-profile-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(78, 171, 216, 0.16);
}

.python-profile-hero {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, #effbff, #fffaf0);
}

.python-profile-avatar-uploader {
  display: grid;
  justify-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}

.python-profile-avatar-uploader input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.python-profile-avatar-preview {
  display: grid;
  overflow: hidden;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7c7, #d9f8e6);
  color: #2c79a3;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(78, 171, 216, 0.18);
}

.python-profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.python-profile-avatar-uploader strong {
  color: #1d4260;
  font-size: 18px;
}

.python-profile-avatar-uploader small {
  color: #86909c;
  font-size: 13px;
}

.python-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.python-profile-form-grid label {
  display: grid;
  gap: 8px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 900;
}

.python-profile-form-grid input,
.python-profile-form-grid select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(78, 171, 216, 0.22);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: #1d2129;
  font: 700 14px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-profile-form-grid input:focus,
.python-profile-form-grid select:focus {
  border-color: #4080e0;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.12);
}

.python-profile-region-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.python-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 2px;
}

.python-profile-button {
  display: inline-flex;
  min-width: 128px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.python-profile-button:hover {
  transform: translateY(-1px);
}

.python-profile-button.is-secondary {
  border: 1px solid rgba(64, 128, 224, 0.16);
  background: #fff;
  color: #4080e0;
  box-shadow: 0 10px 22px rgba(78, 171, 216, 0.1);
}

.python-profile-button.is-primary {
  background: linear-gradient(135deg, #2f6bff, #5e8df5);
  color: #fff;
  box-shadow: 0 14px 28px rgba(64, 128, 224, 0.24);
}

.python-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.python-skeleton-course-card {
  position: relative;
  min-height: 286px;
  background: #fff;
  color: #172033;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.python-skeleton-course-card.is-locked {
  background: #f5f7fa;
  border-color: rgba(218, 225, 235, 0.92);
  box-shadow: 0 10px 24px rgba(122, 139, 160, 0.11);
  filter: grayscale(0.12);
}

.python-skeleton-course-card:hover {
  box-shadow: 0 18px 34px rgba(23, 107, 219, 0.14);
  transform: translateY(-3px);
}

.python-skeleton-course-cover {
  display: block;
  position: relative;
  overflow: hidden;
  height: 170px;
  background-color: #e7f1ff;
}

.python-skeleton-course-card:nth-child(4n + 1) .python-skeleton-course-cover {
  background:
    var(--slot-image, radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.8) 0 24px, transparent 25px),
    linear-gradient(135deg, #176bdb 0%, #5bb7ff 100%)) center / cover no-repeat;
}

.python-skeleton-course-card:nth-child(4n + 2) .python-skeleton-course-cover {
  background:
    var(--slot-image, radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.8) 0 28px, transparent 29px),
    linear-gradient(135deg, #1d5fd6 0%, #7aa7ff 100%)) center / cover no-repeat;
}

.python-skeleton-course-card:nth-child(4n + 3) .python-skeleton-course-cover {
  background:
    var(--slot-image, radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.76) 0 22px, transparent 23px),
    linear-gradient(135deg, #2563eb 0%, #80d8ff 100%)) center / cover no-repeat;
}

.python-skeleton-course-card:nth-child(4n) .python-skeleton-course-cover {
  background:
    var(--slot-image, radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.78) 0 24px, transparent 25px),
    linear-gradient(135deg, #0f58c7 0%, #46a6ff 100%)) center / cover no-repeat;
}

.python-skeleton-course-cover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 76px;
  height: 66px;
  border-radius: 24px 24px 18px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(78, 171, 216, 0.16);
  transform: translateX(-50%);
}

.python-skeleton-course-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 46px;
  height: 11px;
  border-radius: 999px;
  background: #4080e0;
  box-shadow: -10px 25px 0 -3px #dff3f8, 8px 43px 0 -2px #dff3f8;
  transform: translateX(-50%);
}

.python-skeleton-course-card.is-unlocked .python-skeleton-course-cover::before,
.python-skeleton-course-card.is-unlocked .python-skeleton-course-cover::after {
  display: none;
}

.python-skeleton-course-card.is-locked .python-skeleton-course-cover {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.72) 0 28px, transparent 29px),
    linear-gradient(135deg, #edf2f7 0%, #f8fafc 100%) !important;
}

.python-skeleton-course-body {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 12px;
  padding: 20px 20px 18px;
  background: #fff;
}

.python-skeleton-course-card.is-locked .python-skeleton-course-body {
  background: #f8fafc;
  color: #98a2b3;
}

.python-skeleton-course-body strong {
  font-size: 22px;
  line-height: 1.1;
}

.python-level-chip {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #176bdb;
  font-size: 13px;
  font-weight: 900;
}

.python-level-chip.is-locked {
  background: #edf2f7;
  color: #98a2b3;
}

.python-snake-progress {
  display: block;
  padding-top: 2px;
}

.python-snake-track {
  display: block;
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #e8f2ff;
  box-shadow: inset 0 2px 4px rgba(23, 107, 219, 0.1);
}

.python-snake-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #176bdb, #5bb7ff);
}

.python-snake-head {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #176bdb;
  box-shadow: 0 5px 12px rgba(23, 107, 219, 0.24);
  transform: translate(-50%, -50%);
  animation: pythonSnakeWiggle 1.2s ease-in-out infinite;
}

.python-snake-head::before,
.python-snake-head::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.python-snake-head::before {
  left: 6px;
}

.python-snake-head::after {
  right: 6px;
}

@keyframes pythonSnakeWiggle {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-5deg);
  }
  50% {
    transform: translate(-50%, -58%) rotate(6deg);
  }
}

/* Play Python homepage: child-friendly unified visual system. */
.python-home-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.2)),
    #8bdcff;
}

.python-skeleton-shell {
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  padding: 0 24px 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 13%, rgba(255, 209, 102, 0.2) 0 52px, transparent 53px),
    radial-gradient(circle at 90% 9%, rgba(64, 128, 224, 0.1) 0 82px, transparent 83px),
    rgba(255, 255, 255, 0.5);
  color: #1d2129;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  backdrop-filter: blur(3px);
}

.python-skeleton-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.python-skeleton-shell::before {
  top: 90px;
  right: 36px;
  width: 88px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22px 30px, rgba(255, 255, 255, 0.92) 0 22px, transparent 23px),
    radial-gradient(circle at 50px 22px, rgba(255, 255, 255, 0.9) 0 28px, transparent 29px),
    radial-gradient(circle at 72px 34px, rgba(255, 255, 255, 0.88) 0 20px, transparent 21px);
  opacity: 0.9;
}

.python-learning-topbar,
.python-skeleton-hero,
.python-chapter-pager {
  position: relative;
  z-index: 1;
}

.python-learning-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 85px;
  gap: 24px;
  width: calc(100vw - 32px);
  margin: 0 0 26px 50%;
  padding: 0 max(22px, calc((100vw - 1400px) / 2 + 24px));
  border: 0;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(64, 128, 224, 0.86), rgba(91, 124, 240, 0.78));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 10px 24px rgba(64, 128, 224, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(2px);
}

.python-learning-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(29, 33, 41, 0.12);
}

.python-learning-logo img {
  width: 34px;
  height: 34px;
}

.python-learning-brand strong {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-shadow: none;
}

.python-learning-brand small {
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 400;
}

.python-learning-nav {
  justify-content: center;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.python-learning-nav a,
.python-learning-coin,
.python-learning-profile,
.python-learning-home-link,
.python-hero-button {
  min-height: 48px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.python-learning-nav a {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.python-learning-nav a.is-active {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(29, 33, 41, 0.1);
}

.python-learning-nav a:not([aria-disabled="true"]):hover,
.python-learning-profile:hover,
.python-learning-home-link:hover,
.python-hero-button:hover,
.python-quick-entry:hover,
.python-skeleton-course-card:hover {
  transform: translateY(-2px) scale(1.01);
}

.python-learning-nav a[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
}

.python-learning-actions {
  gap: 12px;
}

.python-learning-coin {
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  background: linear-gradient(135deg, #fff5d6 0%, #ffd166 100%);
  color: #1d2129;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(29, 33, 41, 0.12);
}

.python-learning-coin img {
  width: 24px;
  height: 24px;
}

.python-learning-profile {
  gap: 10px;
  min-height: 52px;
  padding: 0 16px 0 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.python-learning-profile .python-profile-avatar {
  width: 38px;
  height: 38px;
}

.python-learning-home-link {
  min-height: 52px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.python-skeleton-hero {
  grid-template-columns: minmax(0, 2.45fr) minmax(300px, 0.95fr);
  gap: 16px;
  margin-bottom: 28px;
}

.python-skeleton-feature-card,
.python-skeleton-side-card,
.python-skeleton-course-card {
  border: 1px solid rgba(64, 128, 224, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(29, 33, 41, 0.06);
}

.python-skeleton-feature-card {
  min-height: 330px;
  background: #4080e0;
}

.python-hero-slide::after {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.36) 0 44px, transparent 45px),
    linear-gradient(90deg, rgba(64, 128, 224, 0.7) 0%, rgba(64, 128, 224, 0.3) 48%, rgba(64, 128, 224, 0.02) 100%);
}

.python-hero-content {
  gap: 12px;
  max-width: 430px;
  padding: 44px;
}

.python-hero-kicker {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.92);
  color: #1d2129;
  font-size: 14px;
  font-weight: 500;
}

.python-hero-content strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.python-hero-content small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.python-hero-button {
  width: fit-content;
  padding: 0 22px;
  background: #fff;
  color: #4080e0;
  box-shadow: 0 8px 16px rgba(29, 33, 41, 0.1);
}

.python-hero-dots {
  left: 44px;
  bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.python-hero-dots button.is-active {
  background: #ffd166;
}

.python-skeleton-side-card {
  min-height: 330px;
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.python-quick-entry {
  min-height: 72px;
  padding: 14px;
  border-color: rgba(64, 128, 224, 0.1);
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: 0 6px 14px rgba(29, 33, 41, 0.04);
}

.python-quick-entry.is-primary {
  background: linear-gradient(135deg, #4080e0 0%, #6aa6ff 100%);
  box-shadow: 0 8px 18px rgba(64, 128, 224, 0.18);
}

.python-quick-entry span,
.python-quick-entry small,
.python-quick-stats span {
  color: #86909c;
  font-size: 14px;
  font-weight: 400;
}

.python-quick-entry strong {
  color: #1d2129;
  font-size: 16px;
  font-weight: 500;
}

.python-quick-entry.is-primary strong {
  color: #fff;
}

.python-quick-stats {
  gap: 8px;
}

.python-quick-stats div {
  border-radius: 16px;
  background: #f5f7fa;
}

.python-quick-stats strong {
  color: #4080e0;
  font-size: 24px;
  font-weight: 700;
}

.python-quick-stats div:last-child strong {
  color: #d89000;
}

.python-section-heading {
  gap: 6px;
}

.python-section-heading span {
  color: #4080e0;
  font-size: 14px;
  font-weight: 500;
}

.python-section-heading h2 {
  color: #1d2129;
  font-size: 24px;
  font-weight: 700;
}

.python-chapter-page-arrow {
  width: 48px;
  height: 48px;
  border-color: rgba(64, 128, 224, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #4080e0;
  box-shadow: 0 8px 20px rgba(29, 33, 41, 0.06);
}

.python-skeleton-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.python-skeleton-course-card {
  min-height: 278px;
  color: #1d2129;
}

.python-skeleton-course-card:hover {
  box-shadow: 0 10px 24px rgba(64, 128, 224, 0.12);
}

.python-skeleton-course-cover {
  height: 166px;
  background-color: #eaf2ff;
}

.python-skeleton-course-body {
  gap: 10px;
  min-height: 112px;
  padding: 18px;
}

.python-skeleton-course-body strong {
  color: #1d2129;
  font-size: 24px;
  font-weight: 700;
}

.python-level-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(54, 179, 126, 0.12);
  color: #36b37e;
  font-size: 14px;
  font-weight: 500;
}

.python-level-chip.is-locked {
  background: rgba(134, 144, 156, 0.12);
  color: #86909c;
}

.python-snake-track {
  height: 12px;
  background: #edf2f7;
}

.python-snake-fill {
  background: linear-gradient(90deg, #36b37e, #ffd166);
}

.python-snake-head {
  background: #36b37e;
  box-shadow: 0 5px 12px rgba(54, 179, 126, 0.22);
}

@media (max-width: 1080px) {
  .python-learning-topbar,
  .python-skeleton-hero {
    grid-template-columns: 1fr;
  }

  .python-learning-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .python-learning-actions {
    justify-content: space-between;
    width: 100%;
  }

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

@media (max-width: 760px) {
  .python-skeleton-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .python-learning-topbar {
    gap: 12px;
    padding: 12px;
  }

  .python-learning-brand strong {
    font-size: 20px;
  }

  .python-learning-nav a {
    min-height: 48px;
    padding: 0 14px;
  }

  .python-learning-profile span:last-child {
    display: none;
  }

  .python-skeleton-hero {
    gap: 14px;
  }

  .python-skeleton-feature-card {
    min-height: 260px;
  }

  .python-hero-content {
    padding: 28px 22px 62px;
  }

  .python-hero-content small {
    font-size: 14px;
    font-weight: 400;
  }

  .python-skeleton-side-card {
    min-height: auto;
  }

  .python-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .python-skeleton-course-card {
    min-height: 232px;
  }

  .python-event-card {
    grid-template-columns: 1fr;
  }

  .python-event-cover {
    min-height: 180px;
  }

  .python-event-body {
    padding: 28px 22px;
  }
}

.python-chapter-shell {
  max-width: 1180px;
  padding-top: 28px;
  padding-bottom: 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 224, 125, 0.38) 0 46px, transparent 47px),
    radial-gradient(circle at 92% 8%, rgba(157, 232, 255, 0.5) 0 82px, transparent 83px),
    linear-gradient(180deg, #effbff 0%, #f6fff7 100%);
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-chapter-map-card {
  position: relative;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 36px;
  background: #bdeeff;
  box-shadow: 0 22px 44px rgba(78, 171, 216, 0.2);
}

.python-chapter-map-bg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.python-chapter-empty-map {
  display: grid;
  min-height: min(560px, 58vw);
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 48px;
  background: linear-gradient(180deg, #effbff 0%, #f6fff7 100%);
  color: #4e5969;
  text-align: center;
}

.python-chapter-empty-map strong {
  color: #1d4260;
  font-size: clamp(24px, 4vw, 42px);
}

.python-chapter-empty-map span {
  color: #86909c;
  font-size: clamp(14px, 1.8vw, 18px);
}

.python-chapter-guide {
  position: absolute;
  top: 7%;
  left: 5%;
  width: clamp(92px, 13vw, 154px);
  filter: drop-shadow(0 12px 18px rgba(55, 89, 64, 0.24));
  animation: pythonGuideFloat 2.4s ease-in-out infinite;
  pointer-events: none;
}

.python-map-arrow {
  display: grid;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: clamp(42px, 5.6vw, 64px);
  height: clamp(42px, 5.6vw, 64px);
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 245, 187, 0.94);
  color: #24506d;
  cursor: pointer;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(36, 80, 109, 0.18);
  transform: translateY(-50%);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.python-map-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.python-map-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.python-map-arrow-prev {
  left: 2.4%;
}

.python-map-arrow-next {
  right: 2.4%;
}

.python-map-page-pill {
  position: absolute;
  top: 5%;
  right: 5%;
  z-index: 2;
  padding: 9px 14px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #24506d;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(78, 171, 216, 0.16);
}

.python-map-node {
  appearance: none;
  display: grid;
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: clamp(44px, 6.2vw, 72px);
  height: clamp(44px, 6.2vw, 72px);
  padding: 0;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.python-map-node[hidden] {
  display: none;
}

.python-map-node span {
  display: grid;
  width: 72%;
  height: 72%;
  place-items: center;
  border-radius: inherit;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 900;
}

.python-map-node.is-current {
  background: rgba(255, 240, 166, 0.96);
  box-shadow: 0 0 0 0 rgba(255, 224, 125, 0.7), 0 12px 24px rgba(255, 159, 28, 0.24);
  cursor: pointer;
  animation: pythonNodePulse 1.6s ease-in-out infinite;
}

.python-map-node.is-current span {
  background: #ff9f1c;
  color: #fff;
}

.python-map-node.is-complete {
  background: rgba(152, 240, 194, 0.96);
  box-shadow: 0 12px 24px rgba(56, 189, 140, 0.2);
  cursor: pointer;
}

.python-map-node.is-complete span {
  background: #4dd392;
  color: #fff;
}

.python-map-node.is-locked {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(245, 247, 250, 0.9);
  color: #98a2b3;
  box-shadow: 0 10px 20px rgba(122, 139, 160, 0.16);
  cursor: not-allowed;
}

.python-map-node.is-locked span {
  width: 74%;
  height: 74%;
  background: rgba(255, 255, 255, 0.64);
}

.python-map-node.is-locked img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(122, 139, 160, 0.22));
}

.python-chapter-tip {
  display: grid;
  position: absolute;
  left: 5%;
  bottom: 6%;
  gap: 4px;
  padding: 12px 16px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #24506d;
  box-shadow: 0 12px 24px rgba(78, 171, 216, 0.16);
}

.python-chapter-tip strong {
  font-size: 18px;
}

.python-chapter-tip span {
  color: #47728b;
  font-size: 13px;
  font-weight: 800;
}

.python-chapter-progress {
  display: block;
  width: min(190px, 42vw);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 80, 109, 0.14);
}

.python-chapter-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4dd392, #ffdf70);
}

.python-current-course {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 18px;
  margin-bottom: 34px;
}

.python-learning-dashboard {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 0.82fr);
  gap: 18px;
  margin-bottom: 34px;
}

.python-learning-calendar-card,
.python-side-info-card {
  border: 1px solid rgba(64, 128, 224, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(64, 128, 224, 0.12);
  backdrop-filter: blur(10px);
}

.python-learning-calendar-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.python-calendar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.python-calendar-heading span {
  color: #1d2129;
  font-size: 24px;
  font-weight: 900;
}

.python-calendar-heading strong {
  color: #4e5969;
  font-size: 16px;
  font-weight: 900;
}

.python-calendar-strip-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 247, 250, 0.8);
}

.python-calendar-nav {
  display: grid;
  width: 44px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #86909c;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.python-calendar-nav:hover {
  background: rgba(64, 128, 224, 0.1);
  color: #4080e0;
  transform: translateY(-1px);
}

.python-calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.python-calendar-day {
  position: relative;
  display: grid;
  min-height: 68px;
  padding: 8px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #86909c;
  cursor: pointer;
  font: inherit;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.python-calendar-day:hover {
  background: rgba(64, 128, 224, 0.08);
  transform: translateY(-1px);
}

.python-calendar-day span {
  font-size: 14px;
  font-weight: 800;
}

.python-calendar-day strong {
  font-size: 22px;
  font-weight: 900;
}

.python-calendar-day.is-active {
  background: #4080e0;
  color: #fff;
  box-shadow: 0 10px 20px rgba(64, 128, 224, 0.18);
}

.python-calendar-day.is-planned::after,
.python-calendar-day.is-locked::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.python-calendar-day.is-active::after {
  background: #fff;
}

.python-calendar-day.is-planned:not(.is-active) {
  background: rgba(54, 179, 126, 0.12);
  color: #36b37e;
}

.python-calendar-day.is-locked:not(.is-active) {
  background: rgba(134, 144, 156, 0.12);
  color: #86909c;
}

.python-calendar-plan {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.python-calendar-plan[hidden],
.python-calendar-empty[hidden] {
  display: none;
}

.python-calendar-map-stage {
  min-height: 370px;
  border-radius: 16px;
}

.python-calendar-map-stage .python-chapter-map-bg {
  min-height: 370px;
}

.python-calendar-empty {
  display: grid;
  min-height: 370px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(64, 128, 224, 0.08), transparent 32%),
    #fff;
  color: #4e5969;
  text-align: center;
}

.python-calendar-empty img {
  width: min(150px, 38vw);
  opacity: 0.62;
}

.python-calendar-empty strong {
  color: #1d2129;
  font-size: 22px;
  font-weight: 900;
}

.python-calendar-empty span {
  color: #86909c;
  font-size: 15px;
  font-weight: 700;
}

.python-learning-side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}

.python-side-info-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.python-side-info-card:first-child {
  align-content: start;
  min-height: 0;
}

.python-leftover-card {
  align-content: stretch;
}

.python-leftover-empty {
  display: grid;
  height: 100%;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #86909c;
  text-align: center;
}

.python-leftover-empty img {
  width: min(160px, 58%);
  opacity: 0.28;
  filter: grayscale(1);
}

.python-leftover-empty strong {
  color: #86909c;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.python-leftover-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.python-leftover-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.16);
  color: #1d2129;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.python-leftover-list a:hover {
  background: rgba(255, 209, 102, 0.24);
  transform: translateY(-1px);
}

.python-leftover-list span,
.python-leftover-list small {
  color: #86909c;
  font-size: 12px;
  font-weight: 800;
}

.python-leftover-list strong {
  font-size: 16px;
  font-weight: 900;
}

.python-side-card-title {
  display: grid;
  gap: 5px;
}

.python-side-card-title span {
  color: #86909c;
  font-size: 14px;
  font-weight: 800;
}

.python-side-card-title strong {
  color: #1d2129;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.python-side-info-card p {
  margin: 0;
  color: #4e5969;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.python-side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.python-side-stats div {
  display: grid;
  min-height: 78px;
  place-items: center;
  border-radius: 14px;
  background: #f5f7fa;
}

.python-side-stats strong {
  color: #4080e0;
  font-size: 24px;
  font-weight: 900;
}

.python-side-stats div:last-child strong {
  color: #d99000;
}

.python-side-stats span {
  color: #86909c;
  font-size: 12px;
  font-weight: 800;
}

.python-courses-page {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 18px;
  margin-bottom: 34px;
}

.python-events-page {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 18px;
  margin-bottom: 34px;
}

.python-event-list {
  display: grid;
  gap: 22px;
}

.python-event-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  overflow: hidden;
  min-height: 226px;
  border: 1px solid rgba(64, 128, 224, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(64, 128, 224, 0.1);
}

.python-event-cover {
  display: grid;
  min-height: 226px;
  place-items: center;
  background:
    radial-gradient(circle at 20% 68%, rgba(255, 255, 255, 0.48) 0 34px, transparent 35px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.32) 0 44px, transparent 45px),
    linear-gradient(135deg, #176bdb 0%, #4f8df7 48%, #70d7ff 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.python-event-body {
  display: grid;
  position: relative;
  align-content: center;
  gap: 14px;
  padding: 34px 42px;
}

.python-event-body h3 {
  margin: 0;
  color: #1d2129;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.3;
}

.python-event-body p {
  max-width: 580px;
  margin: 0;
  color: #4e5969;
  font-size: 16px;
  line-height: 1.75;
}

.python-event-meta {
  display: grid;
  gap: 8px;
  color: #1d2129;
  font-size: 15px;
  font-weight: 700;
}

.python-event-status {
  position: absolute;
  top: 24px;
  right: 0;
  padding: 6px 18px 6px 22px;
  background: linear-gradient(90deg, #d7dce5, #c3cad4);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.python-event-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: -16px;
  border-top: 14px solid transparent;
  border-right: 16px solid #d7dce5;
  border-bottom: 14px solid transparent;
}

.python-current-map-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(64, 128, 224, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #1d2129;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(64, 128, 224, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.python-current-map-card:hover {
  box-shadow: 0 18px 34px rgba(64, 128, 224, 0.16);
  transform: translateY(-2px);
}

.python-current-map-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 209, 102, 0.34) 0 42px, transparent 43px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.78));
}

.python-current-map-copy > span {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(64, 128, 224, 0.12);
  color: #4080e0;
  font-size: 14px;
  font-weight: 800;
}

.python-current-map-copy strong {
  color: #1d2129;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.python-current-map-copy small {
  color: #4e5969;
  font-size: 14px;
  line-height: 1.7;
}

.python-current-map-stage {
  display: block;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #bdeeff;
}

.python-hero-map-card {
  color: inherit;
  text-decoration: none;
}

.python-hero-map-card .python-current-map-stage {
  min-height: 318px;
  height: 100%;
}

.python-hero-map-stage .python-chapter-map-bg {
  min-height: 318px;
}

.python-hero-map-copy {
  display: grid;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  gap: 6px;
  max-width: min(330px, calc(100% - 48px));
  padding: 14px 16px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #1d2129;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.14);
  backdrop-filter: blur(8px);
}

.python-hero-map-copy > span {
  color: #4080e0;
  font-size: 13px;
  font-weight: 800;
}

.python-hero-map-copy strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.python-hero-map-copy small {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
}

.python-map-daimao-marker {
  position: absolute;
  top: var(--guide-y);
  left: var(--guide-x);
  z-index: 2;
  width: clamp(68px, 8vw, 112px);
  filter: drop-shadow(0 12px 18px rgba(55, 89, 64, 0.24));
  pointer-events: none;
  transform: translate(-50%, -92%);
}

.python-home-map-node {
  display: grid;
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: clamp(34px, 4.6vw, 58px);
  height: clamp(34px, 4.6vw, 58px);
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font: inherit;
  transform: translate(-50%, -50%);
}

.python-home-map-node > span {
  display: grid;
  width: 72%;
  height: 72%;
  place-items: center;
  border-radius: inherit;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
}

.python-home-map-node.is-current {
  background: rgba(255, 240, 166, 0.96);
  box-shadow: 0 0 0 0 rgba(255, 224, 125, 0.7), 0 12px 24px rgba(255, 159, 28, 0.24);
  animation: pythonNodePulse 1.6s ease-in-out infinite;
}

.python-home-map-node.is-current > span {
  background: #ff9f1c;
  color: #fff;
}

.python-home-map-node.is-complete {
  background: rgba(152, 240, 194, 0.96);
  box-shadow: 0 12px 24px rgba(56, 189, 140, 0.2);
}

.python-home-map-node.is-complete > span {
  background: #4dd392;
  color: #fff;
}

.python-home-map-node.is-locked {
  background: rgba(245, 247, 250, 0.9);
  color: #98a2b3;
  box-shadow: 0 10px 20px rgba(122, 139, 160, 0.16);
}

.python-home-map-node.is-locked > span {
  width: 74%;
  height: 74%;
  background: rgba(255, 255, 255, 0.64);
}

.python-home-map-node.is-locked img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(122, 139, 160, 0.22));
}

.word-checkin-topbar {
  background: linear-gradient(90deg, #2f7cf6 0%, #5b8cff 52%, #8a6dff 100%);
}

.word-checkin-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.word-checkin-dashboard {
  align-items: stretch;
}

.word-checkin-map-card {
  gap: 18px;
}

.word-checkin-heading strong {
  max-width: 360px;
  text-align: right;
  line-height: 1.5;
}

.word-checkin-map-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("/tools/word-checkin/static/map.png") center / cover no-repeat,
    linear-gradient(180deg, #bdeeff 0%, #dff7ff 48%, #c9f2d2 49%, #8ddf97 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.68);
}

.word-checkin-map-sky {
  position: absolute;
  inset: 0;
  display: none;
  background:
    radial-gradient(circle at 14% 78%, rgba(255, 221, 88, 0.8) 0 7%, transparent 8%),
    radial-gradient(circle at 88% 70%, rgba(64, 128, 224, 0.16) 0 14%, transparent 15%),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.42) 0 12%, transparent 13%);
}

.word-checkin-map-path {
  position: absolute;
  inset: 18% 8% 15%;
  display: none;
  border-bottom: 16px dashed rgba(255, 255, 255, 0.92);
  border-radius: 45% 48% 40% 52%;
  transform: rotate(-7deg);
  filter: drop-shadow(0 12px 0 rgba(70, 142, 85, 0.16));
}

.word-checkin-map-node {
  z-index: 4;
  text-decoration: none;
}

.word-checkin-map-node.is-available {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.word-checkin-map-node.is-available > span {
  background: transparent;
  color: #fff;
}

.word-checkin-map-node.is-upcoming {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.word-checkin-map-node.is-upcoming > span {
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.word-checkin-map-copy {
  max-width: min(370px, calc(100% - 48px));
}

.word-checkin-map-tip {
  z-index: 5;
}

.word-checkin-side-panel {
  grid-template-rows: auto auto;
}

.word-checkin-stat-card {
  align-content: start;
}

.word-checkin-side-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.word-checkin-side-stats div {
  min-height: 116px;
}

.word-checkin-side-stats strong {
  color: #2f7cf6;
  font-size: 40px;
}

.word-checkin-feature-list {
  display: grid;
  gap: 10px;
}

.word-checkin-feature-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(64, 128, 224, 0.08);
}

.word-checkin-feature-list strong {
  color: #1d2129;
  font-size: 15px;
  font-weight: 900;
}

.word-checkin-feature-list span {
  color: #4e5969;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.word-checkin-admin-node-list,
.word-checkin-admin-word-list {
  display: grid;
  gap: 16px;
}

.word-checkin-admin-node-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.word-checkin-admin-node-card.is-locked {
  background: #fbfcfe;
}

.word-checkin-admin-node-card.is-locked .word-checkin-admin-section {
  opacity: 0.56;
}

.word-checkin-admin-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e6eb;
  border-radius: 16px;
  background: #f7f8fa;
}

.word-checkin-admin-section-head {
  display: block;
}

.word-checkin-admin-section-head h3 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  font-weight: 900;
}

.word-checkin-admin-section p {
  margin: 0;
  color: #86909c;
  font-size: 13px;
  font-weight: 700;
}

.word-checkin-admin-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.word-checkin-admin-subcard {
  padding: 0;
  border: 0;
  background: transparent;
}

.word-checkin-admin-game-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: end;
}

.word-checkin-admin-word-list {
  margin-top: 16px;
}

.word-checkin-admin-word-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 16px;
  background: #fff;
}

.word-checkin-admin-word-row-fields {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.word-checkin-admin-node-card.is-template-neo .word-checkin-admin-word-row-fields {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.15fr) minmax(180px, 1.15fr) auto;
}

.word-checkin-admin-node-card.is-template-brutal .word-checkin-admin-word-row-fields {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(220px, 1.2fr) auto;
}

.word-checkin-admin-audio-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(29, 33, 41, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d2129;
  cursor: pointer;
}

.word-checkin-admin-audio-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.word-checkin-admin-audio-control input[type="file"]:disabled {
  cursor: not-allowed;
}

.word-checkin-admin-audio-button {
  margin-right: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 33, 41, 0.3);
  border-radius: 6px;
  background: #f7f8fa;
  color: #1d2129;
  font-weight: 500;
}

.word-checkin-admin-audio-name {
  overflow: hidden;
  color: #4e5969;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.python-admin-danger-button {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff5f5;
  color: #dc2626;
}

.python-admin-danger-confirm-button {
  background: #dc2626;
  color: #fff;
}

.word-checkin-admin-delete-dialog {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 80;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.word-checkin-admin-delete-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.word-checkin-admin-delete-panel {
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.word-checkin-admin-delete-dialog.is-open .word-checkin-admin-delete-panel {
  transform: translateY(0) scale(1);
}

.word-checkin-admin-delete-panel h3,
.word-checkin-admin-delete-panel p {
  margin: 0;
}

.word-checkin-admin-delete-panel p {
  color: #4e5969;
  line-height: 1.7;
}

.word-checkin-admin-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.word-checkin-admin-word-row textarea {
  min-height: 94px;
  resize: vertical;
}

.word-checkin-admin-coordinate-stage {
  cursor: crosshair;
}

.word-checkin-admin-preview-stage {
  min-height: 460px;
}

.word-card-page {
  min-height: 100vh;
  color: #000;
  background-color: #93c5fd;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
}

.word-card-shell {
  display: grid;
  gap: 20px;
  width: min(1000px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.word-card-page .neo-box {
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.word-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: #ffdc58 !important;
}

.word-card-header h1,
.word-card-header p {
  margin: 0;
}

.word-card-header h1 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.word-card-back {
  display: inline-flex;
  margin-bottom: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.word-card-count {
  display: grid;
  place-items: center;
  min-width: 96px;
  border: 3px solid #000;
  border-radius: 12px;
  background: #4ade80;
}

.word-card-count strong {
  font-size: 36px;
  line-height: 1;
}

.word-card-tabs {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.word-card-tabs button,
.word-card-actions button,
.word-card-word button,
.word-card-options button,
.word-card-primary {
  min-height: 44px;
  padding: 10px 16px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.word-card-tabs button.is-active,
.word-card-primary {
  background: #ff90e8;
}

.word-card-panel {
  padding: 22px;
}

.word-card-section-title h2,
.word-card-game-head h2,
.word-card-preview h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.word-card-section-title p,
.word-card-game-head p,
.word-card-preview p {
  margin: 0;
  font-weight: 700;
}

.word-card-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.word-card-word {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.word-card-word div {
  display: grid;
  gap: 4px;
}

.word-card-word small,
.word-card-preview span {
  font-weight: 900;
  color: #2f7cf6;
}

.word-card-word strong {
  font-size: 30px;
  font-weight: 900;
}

.word-card-word span {
  font-weight: 800;
}

.word-card-preview {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.word-card-game-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.word-card-game-score {
  display: grid;
  min-width: 110px;
  padding: 12px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #c084fc;
  text-align: center;
}

.word-card-game-score strong {
  font-size: 32px;
}

.word-card-question {
  margin: 22px 0;
  padding: 24px;
  border: 3px dashed #000;
  border-radius: 14px;
  background: #fffdf5;
  font-size: clamp(32px, 8vw, 70px);
  font-weight: 900;
  text-align: center;
}

.word-card-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.word-card-options button.is-correct {
  background: #4ade80;
}

.word-card-options button.is-wrong {
  background: #f87171;
}

.word-card-feedback {
  margin: 18px 0;
  font-weight: 900;
}

.word-card-actions {
  display: flex;
  gap: 12px;
}

.word-card-modal-open {
  overflow: hidden;
}

.word-card-modal {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 24px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.word-card-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.word-card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.word-card-modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(1000px, 96vw);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 22px;
  border: 4px solid #000;
  border-radius: 24px;
  background-color: #93c5fd;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.78);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.word-card-modal.is-open .word-card-modal-panel {
  transform: translateY(0) scale(1);
}

.word-card-modal .neo-box {
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.word-card-modal .word-card-header {
  margin-right: 44px;
}

.word-card-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}

@media (max-width: 900px) {
  .python-learning-dashboard {
    grid-template-columns: 1fr;
  }

  .python-calendar-map-stage,
  .python-calendar-map-stage .python-chapter-map-bg,
  .python-calendar-empty {
    min-height: 260px;
  }

  .word-checkin-map-stage {
    min-height: 330px;
  }

  .word-checkin-heading {
    align-items: start;
    flex-direction: column;
  }

  .word-checkin-heading strong {
    max-width: none;
    text-align: left;
  }

  .python-calendar-strip {
    gap: 6px;
  }

  .python-calendar-strip-wrap {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
    padding: 8px;
  }

  .python-calendar-nav {
    width: 34px;
    height: 52px;
    font-size: 28px;
  }

  .python-calendar-day {
    min-height: 58px;
  }

  .python-current-map-card {
    grid-template-columns: 1fr;
  }

  .python-current-map-copy {
    padding: 24px;
  }

  .python-current-map-stage {
    min-height: 260px;
  }

  .python-hero-map-card .python-current-map-stage,
  .python-hero-map-stage .python-chapter-map-bg {
    min-height: 260px;
  }

  .python-hero-map-copy {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .python-map-daimao-marker {
    width: 68px;
  }

  .word-card-modal {
    padding: 0;
  }

  .word-card-modal-panel {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
  }

  .word-card-modal .word-card-header,
  .word-card-header,
  .word-card-game-head {
    flex-direction: column;
  }

  .word-card-tabs,
  .word-card-actions {
    flex-wrap: wrap;
  }

  .word-card-tabs button,
  .word-card-actions button {
    flex: 1;
  }

  .word-checkin-admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .word-card-options,
  .word-checkin-admin-word-row-fields,
  .word-checkin-admin-game-row,
  .word-checkin-admin-node-grid {
    grid-template-columns: 1fr;
  }

  .word-card-word {
    align-items: stretch;
    flex-direction: column;
  }
}

.python-modal-open {
  overflow: hidden;
}

.python-game-modal {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  place-items: center;
  background: rgba(36, 80, 109, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.python-game-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-game-modal-panel {
  position: relative;
  width: min(1040px, 96vw);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.18s ease;
}

.python-game-modal.is-open .python-game-modal-panel {
  transform: translateY(0) scale(1);
}

.python-game-modal-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: min(72vh, 680px);
  border: 0;
}

.python-sublevel-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: min(72vh, 680px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(125, 211, 252, 0.22), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(255, 224, 125, 0.16), transparent 32%),
    #0f172a;
}

.python-sublevel-header {
  display: grid;
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  gap: 4px;
  width: min(680px, calc(100% - 150px));
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.58);
  transform: translateX(-50%);
}

.python-sublevel-header strong {
  font-size: 20px;
  font-weight: 900;
}

.python-sublevel-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.python-sublevel-body {
  display: grid;
  position: absolute;
  inset: 0;
  min-height: 0;
  gap: 14px;
  align-content: end;
  padding: 96px 26px 28px;
  background: transparent;
}

.python-sublevel-body.is-hidden,
.python-game-modal-frame.is-hidden {
  display: none;
}

.python-video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f172a;
}

.python-sublevel-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  background: #0f172a;
  object-fit: contain;
}

.python-video-overlay {
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 1;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.68);
  transition: opacity 0.18s ease;
}

.python-video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.python-video-overlay.is-ended {
  align-content: center;
  gap: 18px;
}

.python-video-play-button {
  display: grid;
  width: clamp(82px, 10vw, 118px);
  height: clamp(82px, 10vw, 118px);
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 245, 187, 0.94);
  color: #24506d;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.python-video-play-button:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px) scale(1.03);
}

.python-video-play-button span {
  margin-left: 8px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.python-video-actions {
  display: flex;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.python-video-actions[hidden],
.python-sublevel-help[hidden],
.python-video-play-button.is-hidden {
  display: none;
}

.python-sublevel-help {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: min(760px, 100%);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

#python-video-panel .btn {
  min-width: 150px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.python-placeholder-card {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 10px;
  width: min(520px, 100%);
  justify-self: center;
  padding: 28px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  color: #24506d;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.python-placeholder-card strong {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
}

.python-placeholder-card p {
  margin: 0;
  color: #47728b;
  font-size: 16px;
  font-weight: 800;
}

.python-placeholder-card .btn {
  justify-self: center;
  margin-top: 8px;
  border-radius: 999px;
}

.python-placeholder-card .btn[hidden] {
  display: none;
}

.python-game-modal-close {
  display: grid;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: #fff5bb;
  color: #24506d;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.python-game-modal-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #24506d;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.python-game-modal-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pythonNodePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 224, 125, 0.7), 0 12px 24px rgba(255, 159, 28, 0.24);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 224, 125, 0), 0 12px 24px rgba(255, 159, 28, 0.24);
  }
}

@keyframes pythonGuideFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.python-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: #fff8e6;
  color: #92400e;
  font-size: 14px;
}

.python-coin-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tool-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 150px;
  min-height: 142px;
  padding: 22px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tool-tile:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.tool-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.tool-tile.is-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.tool-tile-icon {
  display: grid;
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  min-height: 64px;
  max-height: 64px;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.tool-tile-icon img {
  display: block;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain;
}

.tool-tile-name {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.python-ide-page {
  min-height: 100vh;
  overflow: hidden;
  background: #d7edff;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-ide-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 80px minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.6) 0 96px, transparent 97px),
    linear-gradient(180deg, #60b5ff 0%, #78c5ff 72px, #d7edff 73px, #d7edff 100%);
  color: #24506d;
}

.python-ide-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 14px;
  background: linear-gradient(135deg, #4fc0ff 0%, #447cff 72%, #6761f4 100%);
  box-shadow: 0 10px 24px rgba(56, 117, 216, 0.2);
}

.python-ide-back {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #4385e8;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(39, 101, 193, 0.18);
}

.python-ide-file-picker {
  position: relative;
}

.python-ide-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 154px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(30, 141, 244, 0.56);
  color: #fff;
  font: 900 15px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(34, 90, 207, 0.16);
}

.python-ide-file-icon {
  display: grid;
  position: relative;
  width: 28px;
  height: 28px;
  place-items: center;
}

.python-ide-file-icon img {
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 0 rgba(23, 32, 51, 0.22));
  object-fit: contain;
}

.python-ide-file-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: none;
  width: 236px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(39, 101, 193, 0.22);
}

.python-ide-file-picker.is-open .python-ide-file-menu {
  display: block;
}

.python-ide-file-list {
  display: grid;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  gap: 6px;
}

.python-ide-file-option,
.python-ide-new-file {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #24506d;
  font: 900 14px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
}

.python-ide-file-option {
  padding: 0 12px;
}

.python-ide-file-option:hover,
.python-ide-file-option.is-active {
  background: #e8f4ff;
  color: #4d8fff;
}

.python-ide-new-file {
  padding: 0 16px;
  border-top: 1px solid rgba(77, 143, 255, 0.14);
  border-radius: 0;
  background: #f6fbff;
  color: #4d8fff;
}

.python-ide-workspace {
  display: grid;
  position: relative;
  min-height: 0;
  grid-template-columns: minmax(360px, 2fr) minmax(280px, 1.08fr);
}

.python-ide-editor-panel,
.python-ide-output-panel {
  min-width: 0;
  min-height: 0;
}

.python-ide-editor-panel {
  display: grid;
  position: relative;
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 82% 82%, rgba(255, 255, 255, 0.22) 0 30px, transparent 31px),
    #eef5ff;
}

.python-ide-editor-scroll {
  display: grid;
  min-height: 0;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
}

.python-ide-line-numbers {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 18px 0 80px;
  overflow: hidden;
  background: #dff1ff;
  color: #4d8fff;
  font: 900 19px/1.65 "SFMono-Regular", Consolas, monospace;
  text-align: center;
  user-select: none;
}

.python-ide-line-numbers span {
  display: block;
  min-height: 31px;
}

.python-ide-line-numbers span.is-active {
  background: #4d8fff;
  color: #fff;
}

.python-ide-code {
  width: 100%;
  min-height: 0;
  padding: 18px 20px 92px;
  border: 0;
  outline: 0;
  resize: none;
  background:
    radial-gradient(circle at 76% 76%, rgba(255, 255, 255, 0.52) 0 32px, transparent 33px),
    #f3f7ff;
  color: #24506d;
  font: 600 18px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  tab-size: 4;
}

.python-ide-code::selection {
  background: rgba(79, 192, 255, 0.32);
}

.python-ide-run {
  display: inline-flex;
  position: absolute;
  right: 22px;
  bottom: 22px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f36 0%, #ff7a1c 100%);
  color: #fff;
  font: 900 16px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 122, 28, 0.3);
}

.python-ide-run span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
}

.python-ide-run:disabled {
  cursor: wait;
  opacity: 0.72;
}

.python-ide-resizer {
  display: grid;
  position: absolute;
  top: calc(50% - 28px);
  left: calc(100% * 2 / 3 - 28px);
  z-index: 3;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f8de7;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(67, 133, 232, 0.18);
}

.python-ide-resizer-arrows {
  display: grid;
  gap: 1px;
  color: #4d8fff;
  font: 900 19px/0.9 "SFMono-Regular", Consolas, monospace;
  text-align: center;
}

.python-ide-resizer-arrows span {
  display: block;
}

.python-ide-output-panel {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  border-left: 1px solid rgba(93, 147, 206, 0.12);
  background: #dff1ff;
}

.python-ide-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid rgba(98, 154, 214, 0.12);
  color: #2977a7;
}

.python-ide-output-header strong {
  font-size: 16px;
  font-weight: 900;
}

.python-ide-output-tools {
  display: inline-flex;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(47, 56, 69, 0.58);
  box-shadow: 0 8px 18px rgba(47, 56, 69, 0.16);
}

.python-ide-output-tools button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: 900 17px/1 "SFMono-Regular", Consolas, monospace;
  cursor: pointer;
}

.python-ide-output-tools button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.python-ide-output {
  min-height: 0;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #2b6184;
  font: 700 16px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.python-ide-input-form {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(98, 154, 214, 0.16);
  background: rgba(255, 255, 255, 0.34);
}

.python-ide-shell.is-awaiting-input .python-ide-input-form {
  display: grid;
}

.python-ide-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(77, 143, 255, 0.24);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #24506d;
  font: 800 15px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-ide-input:focus {
  border-color: rgba(77, 143, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(77, 143, 255, 0.12);
}

.python-ide-input-submit {
  min-width: 72px;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: #4d8fff;
  color: #fff;
  font: 900 14px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(77, 143, 255, 0.18);
}

.python-ide-shell[data-state="running"] .python-ide-output-header strong::after {
  content: " · 运行中";
  color: #ff8a1f;
}

.python-ide-shell[data-state="input"] .python-ide-output-header strong::after {
  content: " · 等待输入";
  color: #4d8fff;
}

.python-ide-shell[data-state="success"] .python-ide-output-header strong::after {
  content: " · 已完成";
  color: #16a34a;
}

.python-ide-shell[data-state="error"] .python-ide-output-header strong::after {
  content: " · 有错误";
  color: #dc2626;
}

.python-ide-shell.is-output-collapsed .python-ide-workspace {
  grid-template-columns: minmax(0, 1fr) 0;
}

.python-ide-shell.is-output-collapsed .python-ide-output-panel {
  overflow: hidden;
}

.python-ide-shell.is-output-collapsed .python-ide-resizer {
  left: auto;
  right: 12px;
}

.python-ide-confirm {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 80;
  place-items: center;
  padding: 20px;
  background: rgba(29, 33, 41, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.python-ide-confirm.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-ide-confirm-panel {
  width: min(480px, 92vw);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.72) 0 56px, transparent 57px),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  color: #1d2129;
  box-shadow:
    0 24px 54px rgba(64, 128, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 18px rgba(255, 255, 255, 0.56);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}

.python-ide-confirm.is-open .python-ide-confirm-panel {
  transform: translateY(0) scale(1);
}

.python-ide-confirm-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.python-ide-confirm-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.13);
  font-size: 22px;
}

.python-ide-confirm-panel p {
  margin: 0 0 8px;
  color: #4e5969;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.python-ide-confirm-tip {
  display: block;
  color: #86909c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.python-ide-confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.python-ide-confirm-actions button {
  flex: 1;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  font: 700 16px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.python-ide-confirm-actions button:hover {
  transform: scale(1.03);
}

.python-ide-confirm-cancel {
  border-color: #4080e0 !important;
  color: #4080e0;
  box-shadow: 0 8px 18px rgba(64, 128, 224, 0.12);
}

.python-ide-confirm-cancel:hover {
  background: #f0f7ff;
}

.python-ide-confirm-ok {
  border-color: #f87171 !important;
  color: #f87171;
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.14);
}

.python-ide-confirm-ok:hover {
  background: #fff7f7;
}

.python-practice-page {
  overflow: hidden;
}

.python-practice-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 9% 82%, rgba(255, 255, 255, 0.42) 0 54px, transparent 55px),
    linear-gradient(180deg, #e8f6ff 0%, #f7fbff 100%);
  color: #24506d;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-practice-brief {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(64, 128, 224, 0.12);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.48) 0 42px, transparent 43px),
    linear-gradient(135deg, #dff4ff 0%, #f0f7ff 100%);
  box-shadow: 0 10px 24px rgba(64, 128, 224, 0.08);
}

.python-practice-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-practice-brief-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.python-practice-brief h1 {
  margin: 0;
  color: #1d4260;
  font-size: 24px;
  line-height: 1.25;
}

.python-practice-brief p {
  margin: 6px 0 0;
  color: #4e5969;
  font-size: 15px;
  font-weight: 700;
}

.python-practice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.python-practice-info-button {
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid rgba(64, 128, 224, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4080e0;
  font: 900 14px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(64, 128, 224, 0.1);
}

.python-practice-info-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.python-practice-submit {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f36 0%, #ff7a1c 100%);
  color: #fff;
  font: 900 15px/1 "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 122, 28, 0.24);
}

.python-practice-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.python-practice-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(360px, 1.45fr) minmax(280px, 1fr);
}

.python-practice-output-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 58px minmax(0, 1fr);
  border-left: 1px solid rgba(93, 147, 206, 0.12);
  background: #dff1ff;
}

.python-practice-check-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-practice-check-status[data-state="running"] {
  color: #ff8a1f;
}

.python-practice-check-status[data-state="success"] {
  color: #16a34a;
}

.python-practice-check-status[data-state="error"] {
  color: #dc2626;
}

.python-practice-dialog {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 90;
  place-items: center;
  padding: 20px;
  background: rgba(29, 33, 41, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.python-practice-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-practice-dialog-panel {
  position: relative;
  width: min(480px, 92vw);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.72) 0 56px, transparent 57px),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  color: #1d2129;
  box-shadow:
    0 24px 54px rgba(64, 128, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 18px rgba(255, 255, 255, 0.56);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}

.python-practice-dialog.is-open .python-practice-dialog-panel {
  transform: translateY(0) scale(1);
}

.python-practice-dialog-close {
  display: grid;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(64, 128, 224, 0.1);
  color: #4080e0;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.python-practice-dialog-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-practice-dialog-panel h2 {
  margin: 0 0 12px;
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.python-practice-dialog-panel p,
.python-practice-dialog-panel li {
  color: #4e5969;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.python-practice-dialog-panel p {
  margin: 0;
}

.python-practice-dialog-panel ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.python-admin-shell {
  max-width: 1400px;
  padding-bottom: 56px;
}

.python-admin-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.python-admin-user-nav {
  justify-content: flex-end;
}

.python-admin-menu {
  position: relative;
}

.python-admin-menu-button {
  min-width: 72px;
  justify-content: center;
  padding-inline: 14px;
  color: #4080e0;
  font-size: 14px;
  font-weight: 900;
}

.python-admin-menu-dropdown {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 148px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(64, 128, 224, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(29, 33, 41, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.python-admin-menu.is-open .python-admin-menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.python-admin-menu-dropdown a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.python-admin-menu-dropdown a:hover {
  background: rgba(64, 128, 224, 0.08);
  color: #2368d8;
}

.python-admin-menu-dropdown a.is-active {
  background: rgba(64, 128, 224, 0.12);
  color: #2368d8;
}

.python-admin-placeholder-panel {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(64, 128, 224, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  color: #86909c;
  text-align: center;
}

.python-admin-placeholder-panel strong {
  color: #1d2129;
  font-size: 22px;
  font-weight: 900;
}

.python-admin-placeholder-panel p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .python-admin-topbar {
    grid-template-columns: 1fr;
  }

  .python-admin-user-nav {
    justify-content: flex-start;
  }
}

.python-admin-folder-page {
  background: #f5f7fa;
}

.python-admin-folder-board {
  min-height: calc(100vh - 130px);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
}

.python-admin-folder-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.python-admin-folder-toolbar h2 {
  margin: 0;
  color: #1d2129;
  font-size: 24px;
  line-height: 1.2;
}

.python-admin-folder-toolbar p {
  margin: 8px 0 0;
  color: #4e5969;
  font-size: 14px;
}

.python-admin-folder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.python-admin-folder-search {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  flex: 1 1 430px;
  width: 430px;
  max-width: 520px;
  min-height: 44px;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(64, 128, 224, 0.14);
  border-radius: 14px;
  background: #fff;
  color: #86909c;
  box-shadow: 0 8px 20px rgba(29, 33, 41, 0.04);
}

.python-admin-folder-search span {
  display: grid;
  width: 22px;
  place-items: center;
  color: #4e5969;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.python-admin-folder-search input {
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.python-admin-folder-search input:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.python-admin-folder-actions select {
  flex: 0 0 128px;
  width: 128px;
  min-height: 44px;
  padding-right: 32px;
  border-radius: 14px;
  background: #fff;
}

.python-admin-folder-actions form,
.python-admin-folder-actions .btn {
  min-height: 44px;
}

.python-admin-folder-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.python-admin-folder-notice {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 180, 42, 0.16);
  border-radius: 14px;
  background: #f0fff4;
  color: #168a35;
  font-size: 14px;
  font-weight: 700;
}

.python-admin-secondary-button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.python-admin-folder-recycle-entry {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.python-admin-folder-recycle-entry button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 125, 0, 0.2);
  border-radius: 999px;
  background: #fffaf2;
  color: #ad5b00;
   font: 700 13px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.python-admin-folder-recycle-entry span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ff7d00;
  color: #fff;
  font-size: 11px;
}

.python-admin-recycle-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.python-admin-recycle-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 33, 41, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.python-admin-recycle-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  padding: 24px;
  background: #fff;
  box-shadow: -18px 0 42px rgba(29, 33, 41, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.python-admin-recycle-drawer.is-open {
  pointer-events: auto;
}

.python-admin-recycle-drawer.is-open .python-admin-recycle-backdrop {
  opacity: 1;
}

.python-admin-recycle-drawer.is-open .python-admin-recycle-panel {
  transform: translateX(0);
}

.python-admin-recycle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.python-admin-recycle-header strong {
  color: #1d2129;
  font-size: 22px;
}

.python-admin-recycle-header p,
.python-admin-recycle-help {
  margin: 8px 0 0;
  color: #4e5969;
  font-size: 13px;
  line-height: 1.7;
}

.python-admin-recycle-header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  color: #4e5969;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.python-admin-recycle-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.python-admin-recycle-stats span {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  background: #f7f8fa;
  color: #86909c;
  text-align: center;
  font-size: 12px;
}

.python-admin-recycle-stats strong {
  color: #1d2129;
  font-size: 18px;
}

.python-admin-recycle-actions {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0;
}

.python-admin-recycle-actions .python-admin-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-color: transparent;
  border-radius: 999px;
  background: #4080e0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(64, 128, 224, 0.2);
}

.python-admin-recycle-actions .python-admin-secondary-button:hover {
  background: #266fe8;
}

.python-admin-recycle-clear-form .python-admin-map-delete {
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.python-admin-recycle-clear-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf1f7;
}

.python-admin-folder-bulk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 33, 41, 0.05);
}

.python-admin-folder-bulk label {
  display: inline-flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 8px;
  white-space: nowrap;
}

.python-admin-folder-bulk input {
  width: auto;
  min-height: auto;
}

.python-admin-folder-bulk strong {
  color: #1d2129;
  font-size: 13px;
  font-weight: 500;
}

.python-admin-folder-bulk button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 10px;
  background: #f5f7fa;
  color: #4e5969;
  font: 500 13px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.python-admin-folder-skeleton {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.python-admin-folder-skeleton div {
  height: 210px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: pythonAdminSkeleton 1.1s ease-in-out infinite;
}

.python-admin-folder-page.is-loading .python-admin-folder-skeleton {
  display: grid;
}

.python-admin-folder-page.is-loading .python-admin-folder-grid {
  display: none;
}

@keyframes pythonAdminSkeleton {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.python-admin-folder-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.python-admin-folder-card {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 33, 41, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.python-admin-folder-card:hover {
  border-color: rgba(64, 128, 224, 0.22);
  box-shadow: 0 18px 42px rgba(29, 33, 41, 0.1);
  transform: translateY(-3px);
}

.python-admin-folder-card.is-disabled {
  background: #fbfcfe;
}

.python-admin-folder-quick {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.python-admin-folder-check,
.python-admin-folder-quick-actions {
  pointer-events: auto;
}

.python-admin-folder-check {
  display: inline-flex !important;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 14px rgba(29, 33, 41, 0.08);
}

.python-admin-folder-check input {
  width: 14px;
  min-height: auto;
  margin: 0;
}

.python-admin-folder-quick-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.python-admin-folder-card:hover .python-admin-folder-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.python-admin-folder-quick-actions.is-pinned {
  opacity: 1;
  transform: none;
}

.python-admin-folder-quick-actions button,
.python-admin-folder-quick-actions a {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(64, 128, 224, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #4080e0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.python-admin-folder-quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.python-admin-folder-quick-actions form {
  margin: 0;
}

.python-admin-folder-quick-actions form button {
  color: #f5222d;
}

.python-admin-folder-delete-confirm {
  text-align: left;
}

.python-admin-folder-delete-confirm input {
  margin-top: 8px;
}

.python-admin-publish-dialog-panel {
  text-align: left;
}

.python-admin-publish-field,
.python-admin-publish-check {
  display: grid;
  gap: 8px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 800;
}

.python-admin-publish-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 12px;
  color: #1d2129;
  font: inherit;
}

.python-admin-publish-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.python-admin-publish-check input {
  width: 16px;
  min-height: auto;
  margin: 0;
}

.python-admin-folder-main {
  display: grid;
  height: 100%;
  min-height: 218px;
  grid-template-rows: 112px minmax(0, 1fr);
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.python-admin-folder-icon {
  display: grid;
  place-items: center;
}

.python-admin-folder-icon span {
  position: relative;
  width: 78px;
  height: 58px;
  border-radius: 12px;
  background: #4080e0;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.22);
}

.python-admin-folder-icon span::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 8px;
  width: 34px;
  height: 18px;
  border-radius: 10px 10px 0 0;
  background: #6da1ec;
}

.python-admin-folder-card.is-disabled .python-admin-folder-icon span,
.python-admin-folder-card.is-disabled .python-admin-folder-icon span::before {
  background: #c9d0da;
  box-shadow: none;
}

.python-admin-folder-body {
  display: grid;
  align-content: end;
  gap: 8px;
}

.python-admin-folder-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.python-admin-folder-title-row strong {
  overflow: hidden;
  color: #1d2129;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.python-admin-folder-title-row em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(54, 179, 126, 0.12);
  color: #36b37e;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.python-admin-folder-card.is-disabled .python-admin-folder-title-row em {
  background: rgba(134, 144, 156, 0.12);
  color: #86909c;
}

.python-admin-folder-body p,
.python-admin-folder-body small {
  margin: 0;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.python-admin-folder-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 72px 24px;
  color: #4e5969;
  text-align: center;
}

.python-admin-folder-empty-art {
  width: 96px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dbe9ff, #f5f7fa);
  box-shadow: inset 0 0 0 2px #fff;
}

.python-admin-folder-empty strong {
  color: #1d2129;
  font-size: 18px;
  font-weight: 500;
}

.python-admin-folder-empty p {
  margin: 0;
  color: #86909c;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .python-admin-folder-grid,
  .python-admin-folder-skeleton {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .python-admin-folder-grid,
  .python-admin-folder-skeleton {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .python-admin-folder-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .python-admin-folder-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

}

@media (max-width: 640px) {
  .python-admin-folder-board {
    padding: 16px;
  }

  .python-admin-folder-actions,
  .python-admin-folder-search,
  .python-admin-folder-actions select,
  .python-admin-folder-actions form,
  .python-admin-folder-actions .btn {
    width: 100%;
  }

  .python-admin-folder-bulk {
    align-items: stretch;
    flex-direction: column;
  }

  .python-admin-cover-uploader {
    grid-template-columns: 1fr;
  }
}

.python-admin-detail-page {
  background: #f5f7fa;
}

.python-admin-detail-shell {
  padding-bottom: 56px;
}

.python-admin-card {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 33, 41, 0.05);
}

.python-admin-card.is-locked {
  background: #fbfcfe;
}

.python-admin-card.is-locked .python-admin-card-body {
  opacity: 0.48;
  pointer-events: none;
  filter: grayscale(0.12);
}

.python-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

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

.python-admin-card-header h2 {
  margin: 0;
  color: #1d2129;
  font-size: 22px;
  font-weight: 700;
}

.python-admin-card-header p {
  margin: 6px 0 0;
  color: #86909c;
  font-size: 14px;
}

.python-admin-chapter-list {
  display: grid;
  gap: 12px;
}

.python-admin-chapter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #24506d;
  text-decoration: none;
}

.python-admin-chapter-item strong {
  font-size: 18px;
}

.python-admin-chapter-item span {
  color: #667085;
  font-size: 14px;
}

.python-admin-chapter-item em {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #4080e0;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.python-admin-grid,
.python-admin-map-row,
.python-admin-node-grid,
.python-admin-ide-fields {
  display: grid;
  gap: 16px;
}

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

.python-admin-map-list {
  display: grid;
  gap: 14px;
}

.python-admin-map-row {
  position: relative;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 16px;
  background: #f9fbff;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.python-admin-map-row:hover {
  box-shadow: 0 12px 28px rgba(29, 33, 41, 0.06);
  transform: translateY(-1px);
}

.python-admin-input-with-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
}

.python-admin-map-upload {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.python-admin-map-upload > span:first-child {
  grid-column: auto;
}

.python-admin-map-upload-box {
  display: grid;
  position: relative;
  min-height: 286px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px 24px;
  border: 1px dashed rgba(134, 144, 156, 0.35);
  border-radius: 18px;
  background: #fff;
  color: #86909c;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.python-admin-map-upload-box:hover,
.python-admin-map-upload-box.is-dragover {
  border-color: #4080e0;
  background: #f8fbff;
}

.python-admin-map-upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.python-admin-map-upload-box strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 100%);
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef6ff 0%, #f1eaff 100%);
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
}

.python-admin-map-upload-box strong::before {
  content: "⊕";
  margin-right: 6px;
  color: #4080e0;
}

.python-admin-map-upload-box small {
  max-width: 520px;
  overflow: visible;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  white-space: normal;
}

.python-admin-map-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 12px;
}

.python-admin-secondary-button,
.python-admin-map-delete {
  min-height: 44px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #4080e0;
  font: 700 14px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.python-admin-secondary-button:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
}

.python-admin-map-delete {
  color: #f5222d;
  opacity: 1;
}

.python-admin-map-delete:hover {
  background: #fff1f0;
  transform: translateY(-1px);
}

.python-admin-node-list {
  display: grid;
  gap: 18px;
}

.python-admin-node-card {
  padding: 16px;
  border: 1px solid rgba(64, 128, 224, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.python-admin-node-card.is-ide-practice {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 33, 41, 0.05);
}

.python-admin-node-card.is-new {
  border-style: dashed;
}

.python-admin-node-card.is-collapsed .python-admin-node-grid,
.python-admin-node-card.is-collapsed .python-admin-ide-fields,
.python-admin-node-card.is-collapsed .python-admin-ide-config-drawer {
  display: none !important;
}

.python-admin-node-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.python-admin-node-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.python-admin-node-title strong {
  color: #1d4260;
  font-size: 17px;
}

.python-admin-node-title span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0f7ff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-admin-node-preview-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}

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

.python-admin-node-card.is-ide-practice .python-admin-node-grid,
.python-admin-node-card.is-ide-practice .python-admin-ide-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.python-admin-node-card.is-new.is-ide-practice .python-admin-node-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.python-admin-node-card.is-ide-practice:not(.is-new) .python-admin-node-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.python-admin-node-card.is-ide-practice .python-admin-ide-code-section {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.python-admin-node-card.is-ide-practice .python-admin-ide-code-section .python-admin-code-label {
  grid-column: 1 / -1;
}

.python-admin-node-card.is-ide-practice [data-node-field="video"],
.python-admin-node-card.is-ide-practice [data-node-field="game"],
.python-admin-node-card.is-ide-practice [data-node-field="placeholder"] {
  display: none !important;
}

.python-admin-node-card.is-ide-practice .python-admin-ide-description,
.python-admin-node-card.is-ide-practice .python-admin-code-label {
  grid-column: span 2;
}

.python-admin-ide-config-drawer {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(64, 128, 224, 0.14);
  border-radius: 16px;
  background: #f8fbff;
}

.python-admin-ide-config-drawer.is-open {
  display: grid;
  gap: 16px;
}

.python-admin-ide-config-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.python-admin-ide-config-drawer-header strong {
  color: #1d2129;
  font-size: 16px;
}

.python-admin-ide-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.python-admin-ide-config-grid .python-admin-ide-description,
.python-admin-ide-config-grid .python-admin-regex-label,
.python-admin-ide-config-grid .python-admin-ide-hint-label {
  grid-column: 1 / -1;
}

.python-admin-node-card.is-ide-practice .python-admin-regex-label {
  grid-column: 1 / -1;
}

.python-admin-node-card.is-ide-practice .python-admin-ide-description textarea,
.python-admin-node-card.is-ide-practice textarea[name="node_hint[]"] {
  min-height: 132px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.python-admin-code-editor {
  display: grid;
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 232px;
  overflow: hidden;
  border: 1px solid rgba(29, 33, 41, 0.1);
  border-radius: 16px;
  background: #101828;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.python-admin-code-lines,
.python-admin-code-highlight,
.python-admin-code-editor textarea {
  min-height: 232px;
  margin: 0;
  border: 0;
  font: 500 13px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.python-admin-code-lines {
  padding: 16px 12px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #667085;
  text-align: right;
  user-select: none;
}

.python-admin-code-highlight {
  grid-column: 2;
  grid-row: 1;
  padding: 16px;
  overflow: auto;
  color: #e4e7ec;
  pointer-events: none;
}

.python-admin-code-editor textarea {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 232px;
  padding: 16px;
  resize: vertical;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: #fff;
}

.python-admin-code-editor:focus-within {
  border-color: #4080e0;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.16);
}

.python-admin-code-highlight .token-keyword {
  color: #7dd3fc;
}

.python-admin-code-highlight .token-string {
  color: #86efac;
}

.python-admin-code-highlight .token-number {
  color: #fbbf24;
}

.python-admin-code-highlight .token-comment {
  color: #98a2b3;
}

.python-admin-node-card.is-new .python-admin-node-field.is-hidden {
  display: none !important;
}

.python-admin-node-video-upload,
.python-admin-node-game-upload {
  grid-column: 1 / -1;
}

.python-admin-node-video-upload-box,
.python-admin-node-game-upload-box {
  display: grid;
  position: relative;
  width: 100%;
  min-height: 172px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 30px 24px;
  border: 1px dashed rgba(134, 144, 156, 0.35);
  border-radius: 16px;
  background: #fff;
  color: #86909c;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.python-admin-node-video-upload-box:hover,
.python-admin-node-video-upload-box.is-dragover,
.python-admin-node-game-upload-box:hover,
.python-admin-node-game-upload-box.is-dragover {
  border-color: #4080e0;
  background: #f8fbff;
}

.python-admin-node-video-upload-box input,
.python-admin-node-game-upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.python-admin-node-video-upload-box strong,
.python-admin-node-game-upload-box strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef6ff 0%, #f1eaff 100%);
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
}

.python-admin-node-video-upload-box strong::before,
.python-admin-node-game-upload-box strong::before {
  margin-right: 6px;
  color: #4080e0;
  content: "⊕";
}

.python-admin-node-video-upload-box small,
.python-admin-node-game-upload-box small {
  max-width: 520px;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.python-admin-upload-path {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8ff;
  color: #4080e0;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  word-break: break-all;
}

.python-admin-upload-path.is-empty {
  color: #86909c;
}

.python-admin-node-picker-panel,
.python-admin-node-preview-panel {
  width: min(960px, 94vw);
}

.python-admin-real-preview {
  display: grid;
  gap: 16px;
  padding: 8px;
}

.python-admin-real-preview-header {
  display: grid;
  gap: 8px;
}

.python-admin-real-preview-header span {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-admin-real-preview-header h2,
.python-admin-real-preview-header p {
  margin: 0;
}

.python-admin-real-preview-header h2 {
  color: #1d4260;
  font-size: 24px;
}

.python-admin-real-preview-header p {
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.python-admin-real-video-preview,
.python-admin-real-game-preview,
.python-admin-real-ide-preview,
.python-admin-real-placeholder-preview {
  overflow: hidden;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 22px;
  background: #f8fbff;
}

.python-admin-real-video-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.python-admin-real-video-preview video {
  display: block;
  width: 100%;
  max-height: 58vh;
  border-radius: 16px;
  background: #101828;
}

.python-admin-real-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.python-admin-real-game-preview {
  min-height: 520px;
}

.python-admin-real-game-preview iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}

.python-admin-real-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  color: #86909c;
  text-align: center;
}

.python-admin-real-ide-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.python-admin-real-ide-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.python-admin-real-ide-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #4080e0;
  font-weight: 800;
}

.python-admin-real-ide-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 14px;
}

.python-admin-real-ide-workspace pre,
.python-admin-real-ide-workspace aside {
  min-height: 300px;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
}

.python-admin-real-ide-workspace pre {
  overflow: auto;
  background: #101828;
  color: #e4e7ec;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.python-admin-real-ide-workspace aside {
  background: #fff;
  color: #667085;
}

.python-admin-real-ide-workspace aside strong {
  margin: 0 0 12px;
  color: #1d4260;
}

.python-admin-real-placeholder-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.python-admin-node-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.python-admin-node-type-grid button {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(64, 128, 224, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #1d4260;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.python-admin-node-type-grid button:hover {
  border-color: rgba(64, 128, 224, 0.42);
  box-shadow: 0 14px 34px rgba(64, 128, 224, 0.12);
  transform: translateY(-2px);
}

.python-admin-node-type-grid strong {
  font-size: 17px;
}

.python-admin-node-type-grid span {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.python-admin-node-preview-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(64, 128, 224, 0.14);
  border-radius: 20px;
  background: #f8fbff;
}

.python-admin-node-preview-card > span {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #4080e0;
  font-size: 12px;
  font-weight: 900;
}

.python-admin-node-preview-card h3,
.python-admin-node-preview-card p {
  margin: 0;
}

.python-admin-node-preview-card h3 {
  color: #1d4260;
  font-size: 20px;
}

.python-admin-node-preview-card p {
  color: #667085;
  line-height: 1.7;
}

.python-admin-node-preview-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.python-admin-node-preview-card dl div {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.python-admin-node-preview-card dt {
  color: #86909c;
  font-size: 12px;
}

.python-admin-node-preview-card dd {
  margin: 6px 0 0;
  color: #1d2129;
  font-weight: 800;
}

.python-admin-node-preview-extra {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
}

.python-admin-node-preview-extra strong {
  color: #1d4260;
}

.python-admin-node-preview-extra pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #101828;
  color: #e4e7ec;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.python-admin-ide-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.python-admin-shell label {
  display: grid;
  gap: 8px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 500;
}

.python-admin-shell input,
.python-admin-shell select,
.python-admin-shell textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 33, 41, 0.1);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #1d2129;
  font: 400 14px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.python-admin-shell textarea {
  resize: vertical;
}

.python-admin-shell input:focus,
.python-admin-shell select:focus,
.python-admin-shell textarea:focus {
  border-color: #4080e0;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.12);
}

.python-admin-shell .python-admin-code-editor textarea,
.python-admin-shell .python-admin-code-editor textarea:focus {
  min-height: 232px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  caret-color: #fff;
  font: 500 13px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .python-admin-node-card.is-ide-practice .python-admin-node-grid,
  .python-admin-node-card.is-ide-practice .python-admin-ide-fields {
    grid-template-columns: 1fr;
  }

  .python-admin-code-editor {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .python-admin-code-lines,
  .python-admin-code-highlight,
  .python-admin-shell .python-admin-code-editor textarea {
    font-size: 12px;
  }
}

.python-admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
}

.python-admin-open-check {
  width: max-content;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(54, 179, 126, 0.18);
  border-radius: 14px;
  background: rgba(54, 179, 126, 0.06);
}

.python-admin-check input {
  width: auto;
  min-height: auto;
}

.python-admin-cover-uploader {
  display: grid;
  position: relative;
  min-height: 286px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 32px 24px;
  border: 1px dashed rgba(134, 144, 156, 0.35);
  border-radius: 18px;
  background: #fff;
  color: #86909c;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.python-admin-cover-uploader:hover,
.python-admin-cover-uploader.is-dragover {
  border-color: rgba(64, 128, 224, 0.55);
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(64, 128, 224, 0.08);
}

.python-admin-cover-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.python-admin-cover-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #e5e6eb;
  border-radius: 18px;
  color: #c9cdd4;
}

.python-admin-cover-icon::before {
  content: "▧";
  font-size: 42px;
  line-height: 1;
}

.python-admin-cover-icon:has(img)::before {
  display: none;
}

.python-admin-cover-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.python-admin-cover-uploader strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 100%);
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef6ff 0%, #f1eaff 100%);
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
}

.python-admin-cover-uploader strong::before {
  content: "⊕";
  margin-right: 6px;
  color: #4080e0;
}

.python-admin-cover-uploader small {
  max-width: 520px;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.python-admin-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 120;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #36b37e;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(29, 33, 41, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.python-admin-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.python-admin-toast.is-error {
  color: #f53f3f;
}

.python-admin-save-button {
  display: grid;
  min-width: 132px;
  min-height: 52px;
  padding: 0 22px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: #4080e0;
  color: #fff;
  font: 700 16px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(64, 128, 224, 0.22);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.python-admin-save-button:hover {
  box-shadow: 0 16px 30px rgba(64, 128, 224, 0.28);
  transform: translateY(-1px);
}

.python-admin-save-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.python-admin-save-button.is-saved {
  background: #eef2f7;
  color: #86909c;
  box-shadow: none;
}

.python-admin-save-button.is-saved:hover {
  box-shadow: none;
  transform: none;
}

.python-admin-save-loading {
  display: none;
}

.python-admin-save-button.is-loading .python-admin-save-text {
  display: none;
}

.python-admin-save-button.is-loading .python-admin-save-loading {
  display: inline;
}

.python-admin-map-preview {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  padding: 24px;
  background: rgba(29, 33, 41, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.python-admin-map-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-admin-dialog {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 120;
  place-items: center;
  padding: 24px;
  background: rgba(29, 33, 41, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.python-admin-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-admin-dialog-panel {
  display: grid;
  width: min(420px, 92vw);
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(29, 33, 41, 0.18);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}

.python-admin-dialog.is-open .python-admin-dialog-panel {
  transform: translateY(0) scale(1);
}

.python-admin-dialog-panel strong {
  color: #1d2129;
  font-size: 18px;
}

.python-admin-dialog-panel p {
  margin: 0;
  color: #4e5969;
  font-size: 14px;
  line-height: 1.7;
}

.python-admin-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.python-admin-map-preview-panel {
  position: relative;
  width: min(920px, 94vw);
  padding: 24px;
  border: 1px solid rgba(29, 33, 41, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(29, 33, 41, 0.18);
}

.python-admin-map-preview-panel strong {
  display: block;
  margin-bottom: 14px;
  color: #1d2129;
  font-size: 18px;
}

.python-admin-map-preview-panel img {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  background: #f5f7fa;
  object-fit: contain;
}

.python-admin-coordinate-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f7fa;
  cursor: crosshair;
}

.python-admin-coordinate-stage img {
  border-radius: 0;
}

.python-admin-coordinate-marker,
.python-admin-coordinate-readout {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.python-admin-coordinate-marker {
  width: 18px;
  height: 18px;
  border: 2px solid #4080e0;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.18);
  transform: translate(-50%, -50%);
}

.python-admin-coordinate-marker::before,
.python-admin-coordinate-marker::after {
  position: absolute;
  background: rgba(64, 128, 224, 0.7);
  content: "";
}

.python-admin-coordinate-marker::before {
  top: 50%;
  left: -999px;
  width: 2000px;
  height: 1px;
}

.python-admin-coordinate-marker::after {
  top: -999px;
  left: 50%;
  width: 1px;
  height: 2000px;
}

.python-admin-coordinate-readout {
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(29, 33, 41, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transform: translate(10px, -120%);
  white-space: nowrap;
}

.python-admin-coordinate-marker.is-visible,
.python-admin-coordinate-readout.is-visible {
  opacity: 1;
}

.python-admin-map-preview-panel p {
  margin: 12px 0 0;
  color: #86909c;
  font-size: 13px;
}

.python-admin-chapter-preview-panel {
  width: min(480px, 94vw);
}

.python-admin-student-card-preview {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(78, 171, 216, 0.16);
}

.python-admin-student-card-cover {
  height: 176px;
  background:
    radial-gradient(circle at 18% 24%, #ffe07d 0 24px, transparent 25px),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.82) 0 26px, transparent 27px),
    linear-gradient(180deg, #9de8ff 0 62%, #98f0c2 63% 100%);
  background-position: center;
  background-size: cover;
}

.python-admin-student-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 118px;
  padding: 20px;
  background:
    radial-gradient(circle at 18px 24px, #fff5bb 0 8px, transparent 9px),
    radial-gradient(circle at calc(100% - 22px) 28px, #d9f8e6 0 10px, transparent 11px),
    #fff;
}

.python-admin-student-card-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff5bb;
}

.python-admin-student-card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #24506d;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.python-admin-student-card-status {
  padding: 6px 12px;
  border-radius: 999px;
  background: #d9f8e6;
  color: #22875b;
  font-size: 13px;
  font-weight: 900;
}

.python-admin-map-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f5f7fa;
  color: #4080e0;
  font-size: 22px;
  cursor: pointer;
}

.python-admin-backtop {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 60;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(64, 128, 224, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #4080e0;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 24px rgba(29, 33, 41, 0.08);
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.python-admin-backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .python-ide-shell {
    grid-template-rows: 68px minmax(0, 1fr);
  }

  .python-ide-topbar {
    padding: 8px 12px 12px;
  }

  .python-ide-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 1fr) minmax(220px, 0.72fr);
  }

  .python-ide-output-panel {
    border-top: 1px solid rgba(93, 147, 206, 0.12);
    border-left: 0;
  }

  .python-ide-resizer {
    display: none;
  }

  .python-ide-editor-scroll {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .python-ide-line-numbers {
    padding-top: 14px;
    font-size: 16px;
  }

  .python-ide-code {
    padding: 14px 14px 86px;
    font-size: 15px;
  }

  .python-ide-run {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
  }

  .python-practice-brief-main {
    align-items: stretch;
    flex-direction: column;
  }

  .python-practice-actions,
  .python-practice-submit {
    width: 100%;
  }

  .python-practice-actions {
    justify-content: stretch;
  }

  .python-practice-info-button {
    flex: 1;
  }

  .python-practice-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(320px, 1fr) minmax(220px, 0.72fr);
  }

  .python-practice-output-panel {
    border-top: 1px solid rgba(93, 147, 206, 0.12);
    border-left: 0;
  }
}

@media (max-width: 1080px) {
  .hero,
  .layout-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .c1-exam-layout {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .c1-exam-status-panel {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .c1-timer-card,
  .c1-progress-card {
    border-right: 1px solid #e5e6eb;
    border-bottom: 0;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .c1-home-shell {
    gap: 14px;
    padding-block: 24px;
  }

  .c1-home-hero {
    padding: 20px;
  }

  .c1-metric-card {
    min-height: 124px;
    padding: 16px;
  }

  .c1-action-card {
    min-height: 160px;
  }

  .c1-action-primary {
    min-height: 176px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 21px;
  }

  .brand p {
    font-size: 12px;
    line-height: 1.5;
  }

  .nav {
    width: 100%;
    gap: 8px;
  }

  .nav-link,
  button.nav-link,
  .system-status-pill {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .c1-home-shell {
    min-height: 100vh;
    align-content: start;
    gap: 14px;
    padding-block: 18px;
  }

  .c1-home-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 20px;
  }

  .c1-home-hero h2 {
    font-size: 25px;
  }

  .c1-hero-status {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .c1-hero-status span,
  .c1-hero-status em {
    grid-column: 1 / -1;
  }

  .c1-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .c1-metric-card {
    min-height: 128px;
    padding: 15px;
    border-radius: 18px;
  }

  .c1-metric-card strong {
    font-size: 19px;
  }

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

  .c1-action-card,
  .c1-action-primary {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .c1-action-card h3 {
    font-size: 21px;
  }

  .jinshuju-home-shell {
    gap: 14px;
    padding-block: 18px 24px;
  }

  .jinshuju-home-shell .brand {
    width: 100%;
  }

  .jinshuju-action-grid .c1-action-card,
  .jinshuju-action-grid .c1-action-primary {
    min-height: auto;
  }

  .jinshuju-home-shell .topbar {
    gap: 14px;
    padding-bottom: 16px;
  }

  .jinshuju-home-shell #report-form {
    justify-items: stretch;
    padding-block: 24px;
  }

  .jinshuju-action-grid .c1-action-card {
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
  }

  .jinshuju-action-grid .c1-action-card h3 {
    font-size: 23px;
  }

  .jinshuju-action-grid .c1-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .jinshuju-layer {
    padding: 10px;
  }

  .jinshuju-config-drawer {
    display: none;
  }

  .jinshuju-config-drawer.is-open {
    display: block;
  }

  .jinshuju-config-drawer .jinshuju-drawer-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 18px;
  }

  .jinshuju-drawer-body {
    max-height: calc(100vh - 130px);
  }

  .jinshuju-config-drawer .card {
    padding: 16px;
  }

  .jinshuju-config-drawer .toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .jinshuju-config-drawer .table-wrap {
    overflow-x: auto;
  }

  .jinshuju-config-drawer table {
    min-width: 620px;
  }

  .jinshuju-home-shell .action-grid {
    grid-template-columns: 1fr;
  }

  #export-modal .jinshuju-export-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .jinshuju-export-card {
    padding: 16px;
  }

  .jinshuju-export-actions,
  .jinshuju-inspect-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jinshuju-export-primary,
  .jinshuju-export-secondary,
  .jinshuju-text-action {
    width: 100%;
  }

  .jinshuju-dark-log-modal .push-log-modal-panel {
    width: 100%;
  }

  .c1-exam-shell {
    padding: 16px 16px 76px;
  }

  .c1-exam-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .c1-exam-sidebar {
    position: static;
  }

  .c1-exam-answer-card {
    min-height: auto;
  }

  .c1-answer-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .c1-exam-paper-head {
    display: grid;
    padding: 18px;
  }

  .c1-exam-candidate {
    min-width: 0;
  }

  .c1-question-card {
    padding: 18px;
  }

  .c1-choice-list-inline {
    grid-template-columns: 1fr;
  }

  .c1-exam-status-panel {
    grid-template-columns: 1fr;
  }

  .c1-timer-card,
  .c1-progress-card {
    border-right: 0;
    border-bottom: 1px solid #e5e6eb;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar.portal-topbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-card h2 {
    font-size: 23px;
  }

  .status-strip,
  .status-grid,
  .form-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .xinren-overview-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .xinren-overview-actions #xinren-month-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .xinren-overview-actions #xinren-month-form label {
    color: #344054;
    font-weight: 800;
    text-align: center;
  }

  .xinren-overview-actions #xinren-month-form input {
    width: 100% !important;
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
  }

  .xinren-overview-actions > .btn {
    min-height: 54px;
    padding: 12px;
    border-radius: 16px;
    font-size: 15px;
  }

  .xinren-overview-actions > .btn.success {
    grid-column: auto;
  }

  .portal-tool-board {
    width: min(100%, calc(2 * 150px + 18px));
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: center;
  }

  .portal-topbar {
    width: min(100%, calc(2 * 150px + 18px));
    margin-bottom: 28px;
  }

  .python-skeleton-shell {
    padding: 14px;
  }

  .python-learning-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .python-learning-brand {
    justify-content: space-between;
    width: 100%;
  }

  .python-learning-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding: 4px;
  }

  .python-learning-actions {
    width: 100%;
    justify-content: space-between;
  }

  .python-learning-profile span:last-child {
    display: none;
  }

  .python-skeleton-topbar {
    align-items: center;
    flex-direction: row;
  }

  .python-skeleton-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .python-skeleton-feature-card,
  .python-skeleton-side-card {
    min-height: 220px;
  }

  .python-hero-content {
    padding: 28px 22px 58px;
  }

  .python-hero-content strong {
    font-size: 28px;
  }

  .python-skeleton-side-card {
    min-height: auto;
    padding: 12px;
  }

  .python-skeleton-stat strong {
    font-size: 23px;
  }

  .python-skeleton-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .python-skeleton-course-card {
    min-height: 218px;
  }

  .python-skeleton-course-cover {
    height: 132px;
  }

  .python-chapter-shell {
    padding: 14px;
  }

  .python-chapter-shell .brand {
    align-items: center;
  }

  .python-chapter-shell .brand h1 {
    font-size: 20px;
  }

  .python-chapter-shell .brand p {
    font-size: 12px;
  }

  .python-chapter-map-card {
    border-width: 4px;
    border-radius: 24px;
  }

  .python-chapter-map-bg {
    min-height: 360px;
    object-position: center;
  }

  .python-chapter-guide {
    top: 8%;
    left: 5%;
    width: 86px;
  }

  .python-chapter-tip {
    left: 4%;
    bottom: 4%;
    padding: 9px 12px;
    border-width: 3px;
    border-radius: 18px;
  }

  .python-chapter-tip strong {
    font-size: 14px;
  }

  .python-chapter-tip span {
    font-size: 11px;
  }

  .python-game-modal {
    padding: 10px;
  }

  .python-game-modal-panel {
    width: 100%;
    border-width: 4px;
    border-radius: 24px;
  }

  .python-game-modal-frame {
    min-height: 72vh;
  }

}

@media (max-width: 360px) {
  .c1-metrics {
    grid-template-columns: 1fr;
  }

  .portal-tool-board {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
  }

  .portal-tool-tile {
    width: 100%;
  }
}

.push-dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.24), transparent 28rem),
    radial-gradient(circle at 78% 6%, rgba(124, 58, 237, 0.2), transparent 24rem),
    linear-gradient(135deg, #061226 0%, #0b1730 48%, #0e1f3f 100%);
  color: #eaf2ff;
  overflow-x: hidden;
}

.push-dashboard-shell {
  width: min(100%, 1500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.push-dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -24px -24px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 18, 38, 0.78);
  backdrop-filter: blur(18px);
}

.push-dashboard-topbar .brand p,
.push-dashboard-topbar .nav-link.user-pill {
  color: rgba(226, 232, 240, 0.68);
}

.push-dashboard-topbar .nav-link {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
}

.push-dashboard-topbar .nav-link.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.26);
  color: #bfdbfe;
}

.push-dashboard-topbar button.nav-link {
  cursor: pointer;
  font: inherit;
}

.push-brand-mark {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.36);
}

.push-page-toast {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 80;
  width: min(520px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #eaf2ff;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transform: translate(-50%, 0);
  animation: push-toast-in 0.24s ease both;
}

.push-page-toast.success {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(20, 83, 45, 0.9);
  color: #dcfce7;
}

.push-page-toast.error {
  border-color: rgba(252, 165, 165, 0.46);
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
}

.push-page-toast.is-hiding {
  animation: push-toast-out 0.24s ease both;
}

.push-backend-panel,
.push-control-stage,
.push-log-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.42)),
    rgba(15, 23, 42, 0.56);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.34);
}

.push-backend-panel {
  padding: 22px;
}

.push-section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.push-kicker {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.push-section-heading h2,
.push-command-card h2,
.push-side-header h3 {
  margin: 0;
  color: #f8fbff;
  line-height: 1.2;
}

.push-section-heading h2,
.push-command-card h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.push-section-heading p,
.push-command-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.75;
}

.push-backend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.push-metric-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 0.34)),
    rgba(15, 23, 42, 0.58);
}

.push-metric-card span {
  display: block;
  margin-bottom: 12px;
  color: rgba(191, 219, 254, 0.74);
  font-size: 13px;
}

.push-metric-card strong {
  display: block;
  color: #f8fbff;
  font-size: 22px;
  line-height: 1.35;
  word-break: break-word;
}

.push-metric-card-wide strong {
  color: #fecaca;
  font-size: 15px;
}

.push-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 15px;
}

.push-status-pill.running {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.2);
}

.push-control-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 520px;
  margin-top: 20px;
  padding: 34px;
  gap: 26px;
}

.push-control-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  pointer-events: none;
}

.push-orbit,
.push-radar,
.push-floating-feed {
  position: absolute;
  pointer-events: none;
}

.push-orbit {
  inset: 14%;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 50%;
  animation: push-orbit-rotate 18s linear infinite;
}

.push-orbit-two {
  inset: 25% 18%;
  animation-duration: 26s;
  animation-direction: reverse;
}

.push-radar {
  width: 280px;
  height: 280px;
  left: 23%;
  top: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(56, 189, 248, 0.4), transparent 38%, transparent),
    radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 62%);
  opacity: 0.76;
  animation: push-radar-spin 4.8s linear infinite;
}

.push-command-card {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  max-width: 640px;
  min-height: 430px;
  padding: clamp(26px, 4vw, 54px);
}

.push-command-card h2 {
  margin-top: 12px;
  margin-bottom: 14px;
}

.push-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.push-command-button {
  min-width: 150px;
  height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.push-command-button:hover {
  transform: translateY(-2px);
}

.push-command-button.start {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.push-command-button.stop {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.34);
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.2);
}

.push-side-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(14px);
}

.push-side-header {
  display: grid;
  gap: 6px;
}

.push-side-header h3 {
  font-size: 20px;
}

.push-status-list {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

.push-status-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.push-status-item strong {
  color: #f8fbff;
  font-size: 15px;
}

.push-status-item span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
}

.push-stream-message {
  padding: 0 2px;
  color: rgba(224, 242, 254, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  animation: push-stream-message-in 0.24s ease both;
}

.push-stream-message.success {
  color: #bbf7d0;
}

.push-stream-message.warning {
  color: #fde68a;
}

.push-stream-message.error {
  color: #fecaca;
}

.push-stream-message.is-leaving {
  animation: push-stream-message-out 0.6s ease both;
}

.push-floating-feed {
  inset: 0;
  z-index: 3;
}

.push-floating-chip {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 14px;
  background: rgba(8, 47, 73, 0.76);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.24);
  animation: push-chip-float 4.2s ease forwards;
}

.push-floating-chip strong {
  color: #e0f2fe;
  font-size: 13px;
}

.push-floating-chip span,
.push-floating-chip small {
  color: rgba(224, 242, 254, 0.78);
  font-size: 11px;
}

.push-floating-chip.success {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(20, 83, 45, 0.72);
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.24);
}

.push-log-panel {
  margin-top: 20px;
  padding: 20px;
}

.push-log-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 28px;
}

.push-log-modal.is-open {
  display: grid;
  place-items: center;
}

.push-log-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.push-log-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92));
  box-shadow: 0 30px 100px rgba(2, 6, 23, 0.52);
}

.push-log-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.push-log-modal-header h2 {
  margin: 6px 0 8px;
  color: #f8fbff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.push-log-modal-header p {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.7;
}

.push-log-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  color: #eaf2ff;
  font-size: 24px;
  cursor: pointer;
}

.push-log-accordion {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.push-log-section {
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.push-log-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  color: #f8fbff;
  cursor: pointer;
  list-style: none;
}

.push-log-section summary::-webkit-details-marker {
  display: none;
}

.push-log-section summary::after {
  content: "展开";
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.push-log-section[open] summary::after {
  content: "收起";
}

.push-log-section summary span {
  font-size: 16px;
  font-weight: 800;
}

.push-log-section summary strong {
  color: rgba(191, 219, 254, 0.8);
  font-size: 12px;
}

.push-log-section-body {
  max-height: 340px;
  overflow: auto;
  padding: 0 16px 16px;
}

body.push-log-open {
  overflow: hidden;
}

.jinshuju-dark-log-modal {
  place-items: center;
}

.jinshuju-dark-log-modal .push-log-modal-panel {
  width: min(920px, 100%);
}

.jinshuju-dark-log-modal .push-log-section {
  display: block;
}

.push-summary-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(30, 41, 59, 0.34)),
    rgba(15, 23, 42, 0.5);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
}

.push-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.push-summary-grid article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.44);
}

.push-summary-grid article.wide {
  grid-column: span 2;
}

.push-summary-grid span {
  display: block;
  margin-bottom: 10px;
  color: rgba(191, 219, 254, 0.74);
  font-size: 12px;
}

.push-summary-grid strong {
  color: #f8fbff;
  font-size: 18px;
  line-height: 1.4;
}

.push-log-box {
  min-height: 160px;
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  color: rgba(226, 232, 240, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.push-structured-log-list .structured-log-item {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.32);
}

.push-structured-log-list .structured-log-item span {
  color: rgba(191, 219, 254, 0.7);
}

.push-structured-log-list .structured-log-item strong {
  color: rgba(226, 232, 240, 0.86);
}

.push-structured-log-list .structured-log-item.success {
  border-color: rgba(134, 239, 172, 0.34);
  background: rgba(20, 83, 45, 0.32);
}

.push-structured-log-list .structured-log-item.warning {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 53, 15, 0.32);
}

.push-structured-log-list .structured-log-item.error {
  border-color: rgba(252, 165, 165, 0.34);
  background: rgba(127, 29, 29, 0.32);
}

.questionnaire-dashboard-shell {
  display: grid;
  gap: 20px;
}

.questionnaire-dashboard-page .questionnaire-toast {
  top: 82px;
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(20, 83, 45, 0.9);
  color: #dcfce7;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(16px);
}

.questionnaire-dashboard-page .questionnaire-toast.error {
  border-color: rgba(252, 165, 165, 0.46);
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
}

.questionnaire-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.questionnaire-menu-button span {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.questionnaire-menu-button span::before,
.questionnaire-menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: inherit;
  background: currentColor;
}

.questionnaire-menu-button span::before {
  top: -5px;
}

.questionnaire-menu-button span::after {
  top: 5px;
}

.questionnaire-config-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
}

.questionnaire-config-drawer.is-open {
  display: block;
}

.questionnaire-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.questionnaire-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  width: min(760px, 100vw);
  height: 100%;
  padding: 24px;
  border-left: 1px solid rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.95));
  box-shadow: -28px 0 80px rgba(2, 6, 23, 0.48);
  animation: questionnaire-drawer-in 0.22s ease both;
}

.questionnaire-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.questionnaire-drawer-header h2 {
  margin: 6px 0 8px;
  color: #f8fbff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.questionnaire-drawer-header p {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.7;
}

.questionnaire-config-stack {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.questionnaire-drawer-card {
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.questionnaire-drawer-card .card-header {
  align-items: flex-start;
  gap: 14px;
}

.questionnaire-drawer-card .card-title {
  margin: 0;
  color: #f8fbff;
}

.questionnaire-drawer-card .card-subtitle,
.questionnaire-drawer-card label {
  color: rgba(226, 232, 240, 0.68);
}

.questionnaire-drawer-card .table-wrap {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.2);
}

.questionnaire-drawer-card table {
  color: rgba(226, 232, 240, 0.86);
}

.questionnaire-drawer-card th {
  color: rgba(191, 219, 254, 0.86);
  background: rgba(15, 23, 42, 0.68);
}

.questionnaire-drawer-card td {
  border-color: rgba(148, 163, 184, 0.12);
}

.questionnaire-drawer-card input,
.questionnaire-report-form input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.42);
  color: #eaf2ff;
}

.questionnaire-drawer-card input::placeholder {
  color: rgba(148, 163, 184, 0.78);
}

.questionnaire-drawer-card.is-config-saved {
  border-color: rgba(96, 165, 250, 0.16);
  background: rgba(15, 23, 42, 0.34);
  box-shadow: none;
}

.questionnaire-drawer-card.is-config-saved .card-title::after {
  background: rgba(56, 189, 248, 0.14);
  color: #67e8f9;
}

.questionnaire-drawer-card.is-config-saved input:not([type="hidden"]),
.questionnaire-drawer-card.is-config-saved textarea,
.questionnaire-drawer-card.is-config-saved select {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.48);
  color: rgba(226, 232, 240, 0.58);
}

.questionnaire-drawer-card .btn {
  border-color: rgba(148, 163, 184, 0.24);
}

.questionnaire-drawer-card .btn.secondary {
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
}

.questionnaire-drawer-card .btn.success {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(22, 163, 74, 0.24);
  color: #bbf7d0;
}

.questionnaire-dashboard-page .questionnaire-default-preview {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(2, 6, 23, 0.28);
  color: rgba(226, 232, 240, 0.68);
}

.questionnaire-dashboard-page .questionnaire-default-preview strong {
  color: #eaf2ff;
}

.questionnaire-report-modal .push-log-modal-panel {
  width: min(640px, 100%);
}

.questionnaire-report-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.questionnaire-report-form label {
  color: rgba(191, 219, 254, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.questionnaire-report-form .push-command-button {
  margin-top: 6px;
  width: fit-content;
}

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

.questionnaire-control-stage {
  margin-top: 0;
}

.questionnaire-empty-state {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.66);
  line-height: 1.6;
}

.questionnaire-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.questionnaire-quick-actions button {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.34)),
    rgba(15, 23, 42, 0.56);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
}

.questionnaire-quick-actions button:hover {
  border-color: rgba(96, 165, 250, 0.42);
  transform: translateY(-2px);
}

.questionnaire-quick-actions span {
  color: rgba(191, 219, 254, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.questionnaire-quick-actions strong {
  color: #f8fbff;
  font-size: 17px;
  line-height: 1.35;
}

body.questionnaire-drawer-open {
  overflow: hidden;
}

@keyframes questionnaire-drawer-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes push-radar-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes push-orbit-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes push-chip-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.94);
  }

  16%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(36px, -54px, 0) scale(1.02);
  }
}

@keyframes push-stream-message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes push-stream-message-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes push-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes push-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

@media (max-width: 1100px) {
  .push-backend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .push-control-stage {
    grid-template-columns: 1fr;
  }

  .push-side-panel {
    min-height: auto;
  }

  .questionnaire-backend-grid,
  .questionnaire-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .push-dashboard-shell {
    padding: 16px;
  }

  .push-dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin: -16px -16px 16px;
    padding: 14px 16px;
  }

  .push-dashboard-topbar .brand {
    width: 100%;
  }

  .push-dashboard-topbar .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .push-dashboard-topbar .nav {
    width: 100%;
  }

  .push-dashboard-topbar .nav-link {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .push-log-modal {
    padding: 12px;
  }

  .push-log-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 16px;
    border-radius: 20px;
  }

  .push-log-modal-header {
    display: grid;
    align-items: flex-start;
  }

  .push-log-modal-header h2 {
    font-size: 28px;
  }

  .push-log-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .push-log-accordion {
    max-height: calc(92vh - 150px);
  }

  .questionnaire-drawer-panel {
    width: 100vw;
    padding: 16px;
  }

  .questionnaire-drawer-header {
    display: grid;
  }

  .questionnaire-drawer-card .card-header,
  .questionnaire-drawer-card .toolbar {
    display: grid;
    width: 100%;
  }

  .questionnaire-backend-grid,
  .questionnaire-quick-actions {
    grid-template-columns: 1fr;
  }

  .questionnaire-report-form .push-command-button {
    width: 100%;
  }

  .push-log-section summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .push-log-section-body {
    max-height: 300px;
  }

  .push-backend-grid {
    grid-template-columns: 1fr;
  }

  .push-backend-panel,
  .push-control-stage,
  .push-summary-panel,
  .push-log-panel {
    border-radius: 20px;
  }

  .push-summary-grid,
  .push-summary-grid article.wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .push-control-stage {
    min-height: auto;
    padding: 20px;
  }

  .push-radar {
    left: 50%;
    top: 28%;
    width: 220px;
    height: 220px;
    opacity: 0.42;
  }

  .push-command-card {
    min-height: auto;
    padding: 22px 0;
  }

  .push-command-card h2 {
    font-size: 30px;
  }

  .push-side-panel {
    padding: 15px;
  }

  .push-command-actions {
    display: grid;
  }

  .push-command-button {
    width: 100%;
  }

  .structured-log-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .nav-link,
  button.nav-link,
  .system-status-pill,
  .push-dashboard-topbar .nav-link {
    width: calc(50% - 4px);
    justify-content: center;
  }

  .nav-link.user-pill {
    width: 100%;
  }

  .system-status-pill {
    width: 100%;
  }

  .jinshuju-action-grid .c1-action-card {
    padding: 18px;
  }

  .push-backend-panel,
  .push-control-stage,
  .push-summary-panel,
  .push-log-panel {
    padding: 16px;
  }

  .push-metric-card {
    min-height: 96px;
    padding: 15px;
  }

  .push-status-list {
    max-height: 320px;
  }
}

/* Final Play Python homepage responsive guard. */
@media (max-width: 1080px) {
  .python-learning-topbar,
  .python-skeleton-hero {
    grid-template-columns: 1fr;
  }

  .python-learning-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .python-learning-actions {
    justify-content: space-between;
    width: 100%;
  }

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

@media (max-width: 760px) {
  .python-skeleton-shell {
    max-width: 1400px;
    padding: 14px;
    border-radius: 16px;
  }

  .python-learning-topbar {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .python-learning-brand {
    justify-content: flex-start;
  }

  .python-learning-brand strong {
    font-size: 20px;
  }

  .python-learning-nav {
    padding: 0;
  }

  .python-learning-nav a {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .python-learning-profile span:last-child {
    display: none;
  }

  .python-skeleton-hero {
    gap: 14px;
  }

  .python-skeleton-feature-card {
    min-height: 260px;
    padding: 0;
  }

  .python-skeleton-side-card {
    min-height: auto;
    padding: 12px;
  }

  .python-hero-content {
    padding: 28px 22px 62px;
  }

  .python-hero-content strong,
  .python-section-heading h2,
  .python-skeleton-course-body strong {
    font-size: 24px;
    font-weight: 700;
  }

  .python-hero-content small {
    font-size: 14px;
    font-weight: 400;
  }

  .python-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .python-skeleton-course-card {
    min-height: 232px;
  }

  .python-skeleton-course-cover {
    height: 132px;
  }
}

/* Final topbar guard: premium child-friendly Play Python navigation. */
.python-learning-topbar {
  min-height: 85px;
  width: calc(100vw - 32px);
  margin: 0 0 26px 50%;
  padding: 0 max(22px, calc((100vw - 1400px) / 2 + 24px));
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(64, 128, 224, 0.86), rgba(91, 124, 240, 0.78));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 24px rgba(64, 128, 224, 0.18);
  z-index: 50;
  transform: translateX(-50%);
  backdrop-filter: blur(2px);
}

.python-learning-nav a {
  min-height: 85px;
  padding: 0 22px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.python-learning-nav a.is-active {
  background: rgba(47, 111, 208, 0.6);
  box-shadow: none;
}

.python-learning-nav a[aria-disabled="true"] {
  background: transparent;
}

.python-learning-coin {
  min-height: 52px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: none;
}

.python-learning-coin img {
  width: 28px;
  height: 28px;
}

.python-learning-profile,
.python-learning-home-link {
  min-height: 52px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.python-learning-profile .python-profile-avatar {
  width: 42px;
  height: 42px;
}

.python-user-menu {
  position: relative;
  z-index: 60;
}

.python-user-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

.python-user-dropdown {
  display: grid;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 136px;
  padding: 8px;
  border: 1px solid rgba(64, 128, 224, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(29, 33, 41, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.python-user-menu.is-open .python-user-dropdown,
.python-user-menu:hover .python-user-dropdown,
.python-user-menu:focus-within .python-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

button.python-learning-profile {
  border: 0;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.python-user-dropdown a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.python-user-dropdown a:hover {
  background: #f5f7fa;
  color: #4080e0;
}

.python-learning-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.python-login-cat-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #ffd166;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(29, 33, 41, 0.12);
}

.python-login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.python-login-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.python-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 33, 41, 0.32);
  backdrop-filter: blur(5px);
}

.python-login-panel {
  position: relative;
  overflow: hidden;
  width: min(560px, calc(100vw - 34px));
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(29, 33, 41, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.python-login-modal.is-open .python-login-panel {
  transform: translateY(0) scale(1);
}

.python-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 33, 41, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.python-login-cover {
  height: 210px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.python-login-body {
  display: grid;
  gap: 22px;
  padding: 34px 52px 36px;
}

.python-login-body h2 {
  margin: 0;
  color: #e7894d;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.python-login-form {
  display: grid;
  gap: 18px;
}

.python-login-field {
  display: grid;
  gap: 8px;
}

.python-login-field label {
  color: #e7894d;
  font-size: 14px;
  font-weight: 700;
}

.python-login-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid #f0a06f;
  border-radius: 12px;
  background: #fff;
  color: #1d2129;
  font-size: 16px;
  outline: 0;
}

.python-login-field input::placeholder {
  color: #c9b8ae;
}

.python-login-field input:focus {
  border-color: #4080e0;
  box-shadow: 0 0 0 4px rgba(64, 128, 224, 0.12);
}

.python-login-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f0;
  color: #c7352f;
  font-size: 14px;
}

.python-login-caps-hint {
  color: #c7352f;
  font-size: 13px;
  font-weight: 700;
}

.python-login-submit {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: #4080e0;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.python-login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.python-login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #e7894d;
  font-size: 16px;
  font-weight: 700;
}

.python-login-links a,
.python-login-links button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.python-login-links-divider {
  color: #f0c7a8;
  font-weight: 700;
}

.python-login-links a.is-register,
.auth-register-footer a.is-register {
  color: #4080e0;
  font-weight: 800;
}

.python-login-default-hint {
  margin: 8px 0 0;
  color: #a8b3c4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.auth-register-page {
  background: #74c2f9 url("auth/register-bg.png") center center / cover no-repeat;
}

.auth-register-card {
  width: min(560px, calc(100vw - 34px));
  padding: 34px 52px 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(29, 33, 41, 0.14);
}

.auth-register-title {
  margin: 0;
  color: #e7894d;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.auth-register-subtitle {
  margin: 8px 0 0;
  color: #8a94a8;
  font-size: 14px;
  text-align: center;
}

.auth-register-form {
  margin-top: 22px;
}

.auth-register-flash {
  margin-top: 18px;
}

.auth-register-hint {
  color: #8a94a8;
  font-size: 13px;
  line-height: 1.5;
}

.auth-register-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: #e7894d;
  font-size: 16px;
  font-weight: 700;
}

.python-learning-home-link {
  padding-inline: 10px 0;
}

.site-icp-beian {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 4;
  font-size: 12px;
  color: #94a3b8;
  pointer-events: auto;
}

body:has(.word-checkin-mobile-tabbar) .site-icp-beian {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

.site-icp-beian a {
  color: inherit;
  text-decoration: none;
}

.site-icp-beian a:hover {
  color: #64748b;
  text-decoration: underline;
}
