/* ?????? ? ?? +1?????????? */
:root {
  --ink: #132d67;
  --muted: #5a6f94;
  --blue: #526dff;
  --violet: #6856ff;
  --cyan: #35b9ff;
  --accent: #6366f1;
  --bg: #eef3ff;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(99, 102, 241, 0.14);
  --shadow: 0 18px 50px rgba(61, 80, 160, 0.12);
  --radius: 20px;
  /* ????????????????????? */
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Noto Sans SC", "Songti SC", "SimSun", serif;
  --fs-base: 19px;
  --lh-body: 1.7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.brand strong,
.plaza-hero-title,
.sect-brand-copy strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: var(--blue); }

.app {
  position: relative;
  min-height: 100vh;
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: hidden;
}

@media (min-width: 1280px) {
  .app {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1600px) {
  .app {
    padding-left: 28px;
    padding-right: 28px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px 28px;
  }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 8% -15%, rgba(82, 109, 255, 0.28), transparent 55%),
    radial-gradient(900px 580px at 92% 8%, rgba(104, 86, 255, 0.18), transparent 50%),
    radial-gradient(1100px 620px at 50% 120%, rgba(53, 185, 255, 0.12), transparent 58%),
    linear-gradient(180deg, #f7faff 0%, #eef3ff 42%, #f1f5f9 100%);
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 18%, transparent 74%);
}

.topbar, .view, .proto-footer { position: relative; z-index: 1; }

/* ?? Topbar ?? */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 8px 12px 8px 10px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 8px 20px rgba(82, 109, 255, 0.35);
  flex-shrink: 0;
}

.brand strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: 0.06em; }

.nav-pills {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-pills::-webkit-scrollbar { display: none; }

.nav-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.nav-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 8px 18px rgba(82, 109, 255, 0.3);
}

/* ?? Topbar channel tabs??? / ??? / ?? / ????? ?? */
.topbar .plaza-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar .plaza-channels::-webkit-scrollbar { display: none; }
.topbar .plaza-channels-list {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 36px);
  min-width: 0;
  flex-wrap: nowrap;
}
.topbar .plaza-channel {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 2px 12px;
  color: #5a6b88;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar .plaza-channel:hover { color: var(--ink); }
.topbar .plaza-channel-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #8a97b0;
  transition: color 0.18s ease;
}
.topbar .plaza-channel-icon svg {
  width: 20px;
  height: 20px;
}
.topbar .plaza-channel-text { line-height: 1; }
.topbar .plaza-channel-count {
  font-size: 14px;
  font-weight: 600;
  color: #9aa6bd;
  line-height: 1;
  transition: color 0.18s ease;
}
.topbar .plaza-channel.active {
  color: var(--ink);
  font-weight: 700;
}
.topbar .plaza-channel.active .plaza-channel-icon { color: var(--blue); }
.topbar .plaza-channel.active .plaza-channel-count { color: var(--blue); }
.topbar .plaza-channel.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.plaza-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--glass-border);
  transition: color 0.15s ease, background 0.15s ease;
}
.plaza-sort-btn:hover { color: var(--ink); background: #fff; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(82, 109, 255, 0.1);
  border: 1px solid rgba(82, 109, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--glass-border);
  text-align: left;
}

.avatar-dot, .big-avatar, .p-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 40%),
    linear-gradient(135deg, #7c8cff, #b07cff);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.p-avatar.tone-0 { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.p-avatar.tone-1 { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.p-avatar.tone-2 { background: linear-gradient(145deg, #fb7185, #e11d48); }
.p-avatar.tone-3 { background: linear-gradient(145deg, #34d399, #059669); }
.p-avatar.tone-4 { background: linear-gradient(145deg, #fbbf24, #d97706); }
.p-avatar.tone-5 { background: linear-gradient(145deg, #22d3ee, #0891b2); }
.p-avatar.tone-6 { background: linear-gradient(145deg, #f472b6, #db2777); }
.p-avatar.tone-7 { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.p-avatar.tone-8 { background: linear-gradient(145deg, #2dd4bf, #0f766e); }
.p-avatar.tone-9 { background: linear-gradient(145deg, #fdba74, #ea580c); }
.p-avatar.tone-10 { background: linear-gradient(145deg, #c084fc, #9333ea); }
.p-avatar.tone-11 { background: linear-gradient(145deg, #94a3b8, #334155); }
.p-avatar.p-avatar--photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  text-shadow: none !important;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.avatar-with-role {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 6px 14px rgba(61, 80, 160, 0.18);
}

.avatar-with-role .avatar-dot,
.avatar-with-role .big-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-with-role.lg {
  width: 48px;
  height: 48px;
}

.avatar-with-role.xl {
  width: 72px;
  height: 72px;
}

/* ????????????? */
.avatar-identity {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 2px 3px;
  background: linear-gradient(180deg, transparent, rgba(19, 45, 103, 0.82) 28%, rgba(19, 45, 103, 0.92));
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

.avatar-identity b {
  font-size: 11px;
  font-weight: 800;
}

.avatar-identity small {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.92;
  transform: scale(0.95);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.avatar-with-role.lg .avatar-identity b { font-size: 12px; }
.avatar-with-role.lg .avatar-identity small { font-size: 9px; }

.avatar-with-role.xl .avatar-identity {
  height: 42%;
  padding-bottom: 5px;
}
.avatar-with-role.xl .avatar-identity b { font-size: 16px; }
.avatar-with-role.xl .avatar-identity small { font-size: 11px; }

.avatar-identity[data-tone="blue"] {
  background: linear-gradient(180deg, transparent, rgba(82, 109, 255, 0.88) 30%, rgba(61, 80, 180, 0.95));
}
.avatar-identity[data-tone="cyan"] {
  background: linear-gradient(180deg, transparent, rgba(53, 185, 255, 0.9) 30%, rgba(37, 120, 200, 0.95));
}
.avatar-identity[data-tone="violet"] {
  background: linear-gradient(180deg, transparent, rgba(104, 86, 255, 0.9) 30%, rgba(88, 60, 200, 0.95));
}
.avatar-identity[data-tone="pink"] {
  background: linear-gradient(180deg, transparent, rgba(255, 93, 143, 0.9) 30%, rgba(200, 60, 120, 0.95));
}
.avatar-identity[data-tone="green"] {
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.9) 30%, rgba(8, 140, 100, 0.95));
}
.avatar-identity[data-tone="ink"] {
  background: linear-gradient(180deg, transparent, rgba(19, 45, 103, 0.92) 30%, rgba(10, 24, 60, 0.96));
}

.menu-identity-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 4px 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(82, 109, 255, 0.12), rgba(104, 86, 255, 0.08));
  border: 1px solid rgba(82, 109, 255, 0.2);
}
.menu-identity-entry span {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  padding: 3px 8px;
  border-radius: 999px;
}
.menu-identity-entry strong {
  font-size: 13px;
  color: var(--ink);
}
.menu-identity-entry i {
  color: var(--muted);
  font-style: normal;
}

.menu-identity-entry--train {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(45, 212, 191, 0.1));
  border-color: rgba(14, 165, 233, 0.22);
}
.menu-identity-entry--train span {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}
.menu-identity-entry--publish {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.1));
  border-color: rgba(245, 158, 11, 0.24);
}
.menu-identity-entry--publish span {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.my-publish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.my-publish-toolbar .seg {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.my-publish-toolbar .seg-btn {
  border: 1px solid rgba(19, 45, 103, 0.12);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.my-publish-toolbar .seg-btn.is-on {
  background: linear-gradient(135deg, rgba(82, 109, 255, 0.14), rgba(104, 86, 255, 0.1));
  border-color: rgba(82, 109, 255, 0.35);
  color: #3b4fd9;
}
.my-publish-list.card-grid,
#maker-profile-projects.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.my-publish-list .entity-card,
#maker-profile-projects .entity-card {
  width: 100%;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.my-publish-list .entity-card:focus-visible,
#maker-profile-projects .entity-card:focus-visible {
  outline: 2px solid rgba(82, 109, 255, 0.55);
  outline-offset: 2px;
}

.menu-role-name {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--violet);
}

.avatar-btn small { display: block; font-size: 10px; color: var(--muted); }
.avatar-btn strong { font-size: 13px; }

/* ?? Views ?? */
.view { display: none; animation: fadeIn 0.28s ease; }
.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ?? Plaza channel tabs?legacy block kept minimal; topbar owns the styles? ?? */
.plaza-channels {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

/* ?? Plaza masthead (???????? + ??? + ????) ?? */
.plaza-masthead {
  position: relative;
  margin: 0 0 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(19, 45, 103, 0.06);
  box-shadow: 0 10px 28px rgba(61, 80, 160, 0.06);
  overflow: hidden;
}
.plaza-masthead-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 22px 28px 20px;
  flex-wrap: wrap;
}
.plaza-masthead-main::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 45%, rgba(82, 109, 255, 0.12), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(104, 86, 255, 0.08), transparent 55%);
  border: 1px solid rgba(82, 109, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}
.plaza-masthead-brand,
.plaza-masthead-actions {
  position: relative;
  z-index: 1;
}
.plaza-masthead-brand {
  min-width: 0;
}
.plaza-masthead-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #111827;
}
.plaza-masthead-brand h1 em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plaza-masthead-sub {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: #6b7c96;
}
.plaza-masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.plaza-mast-btn[hidden] { display: none !important; }
.plaza-mast-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.plaza-mast-btn-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.plaza-mast-btn-icon svg {
  width: 20px;
  height: 20px;
}
.plaza-mast-btn--ghost {
  color: #243656;
  background: #fff;
  border: 1px solid #e5e9f2;
}
.plaza-mast-btn--ghost:hover {
  border-color: #cfd7e8;
  background: #fafbff;
}
.plaza-mast-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(82, 109, 255, 0.28);
}
.plaza-mast-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(82, 109, 255, 0.34);
}

.plaza-ticker {
  background: #f5f7fb;
  border-top: 1px solid #eef1f7;
  padding: 0;
}
.plaza-ticker-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.plaza-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 10px 20px;
  animation: plaza-ticker-scroll 120s linear infinite;
}
.plaza-ticker:hover .plaza-ticker-track {
  animation-play-state: paused;
}
.plaza-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a879e;
  white-space: nowrap;
  line-height: 1.3;
}
button.plaza-ticker-item {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button.plaza-ticker-item:hover,
button.plaza-ticker-item:focus-visible {
  color: #526dff;
  outline: none;
}
button.plaza-ticker-item:hover b,
button.plaza-ticker-item:focus-visible b {
  color: #3d56e8;
}
.plaza-ticker-item b {
  color: #4a5b78;
  font-weight: 650;
}
.plaza-ticker-dot {
  margin: 0 14px;
  color: #c5cddc;
  font-weight: 700;
  flex-shrink: 0;
}
.plaza-ticker-ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.plaza-ticker-ico--wave { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23ffe8d6'/%3E%3Cpath d='M5.2 9.2c.6 1.4 2 2.3 3.5 2.3s2.7-.8 3.3-2' fill='none' stroke='%23e67a2e' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='6.2' cy='6.4' r='.9' fill='%23e67a2e'/%3E%3Ccircle cx='9.8' cy='6.4' r='.9' fill='%23e67a2e'/%3E%3C/svg%3E"); }
.plaza-ticker-ico--rocket { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23e0e7ff'/%3E%3Cpath d='M8 3.5l1.6 4.2H13L9.7 9.8 11 14 8 11.4 5 14l1.3-4.2L3 7.7h3.4z' fill='%23526dff'/%3E%3C/svg%3E"); }
.plaza-ticker-ico--chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23dff5ff'/%3E%3Cpath d='M4.2 5.2h7.6c.6 0 1 .4 1 1v3.2c0 .6-.4 1-1 1H7.1L4.2 12.4V5.2z' fill='%231e9ed9'/%3E%3C/svg%3E"); }
.plaza-ticker-ico--hire { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23ffe4ef'/%3E%3Cpath d='M8 3.6l1.1 2.2 2.4.4-1.7 1.7.4 2.4L8 9.1l-2.2 1.2.4-2.4-1.7-1.7 2.4-.4z' fill='%23e84a8a'/%3E%3C/svg%3E"); }
.plaza-ticker-ico--idea { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23fff3d6'/%3E%3Cpath d='M8 3.4c1.7 0 3 1.3 3 2.9 0 1.2-.6 2.1-1.5 2.7-.4.3-.6.6-.6 1.1v.3H7.1v-.3c0-.7.3-1.2.8-1.6.8-.5 1.3-1.2 1.3-2.2 0-1.1-.9-1.9-2.2-1.9S5.8 5.2 5.8 6.3h-1C4.8 4.6 6.2 3.4 8 3.4zm-.9 7.8h1.8v1.2H7.1z' fill='%23d49200'/%3E%3C/svg%3E"); }
@keyframes plaza-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .plaza-masthead-main {
    padding: 18px 16px 16px;
  }
  .plaza-masthead-actions {
    margin-left: 0;
    width: 100%;
  }
  .plaza-mast-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.hero {
  text-align: center;
  padding: 28px 16px 10px;
  max-width: 760px;
  margin: 0 auto;
}

.hero.compact { padding-top: 8px; padding-bottom: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet));
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, var(--violet), transparent);
}

.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero h1 strong {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub, .muted {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 360px;
  margin: 22px auto 0;
  text-align: left;
}
.hero-action[hidden] { display: none !important; }
.hero-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 76px;
}
.hero-action:hover {
  transform: translateY(-3px);
}
.hero-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-action-icon svg {
  width: 22px;
  height: 22px;
}
.hero-action-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-action-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-action-copy small {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.82;
}
.hero-action-go {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.55;
}

.hero-action--project {
  color: #fff;
  background: linear-gradient(135deg, #526dff 0%, #7c5cff 100%);
  box-shadow: 0 14px 32px rgba(82, 109, 255, 0.34);
}
.hero-action--project:hover {
  box-shadow: 0 18px 40px rgba(82, 109, 255, 0.42);
}
.hero-action--project .hero-action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.hero-action--project .hero-action-go { color: #fff; }

.hero-action--idea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.14);
}
.hero-action--idea:hover {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
}
.hero-action--idea .hero-action-icon {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ff7a45);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}
.hero-action--idea .hero-action-copy small { color: var(--muted); opacity: 1; }
.hero-action--idea .hero-action-go { color: #d97706; opacity: 0.85; }

.hero-action--maker {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(82, 109, 255, 0.4);
  box-shadow: 0 12px 28px rgba(82, 109, 255, 0.14);
}
.hero-action--maker:hover {
  border-color: rgba(82, 109, 255, 0.7);
  box-shadow: 0 16px 36px rgba(82, 109, 255, 0.22);
}
.hero-action--maker .hero-action-icon {
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #526dff);
  box-shadow: 0 6px 14px rgba(82, 109, 255, 0.35);
}
.hero-action--maker .hero-action-copy small { color: var(--muted); opacity: 1; }
.hero-action--maker .hero-action-go { color: var(--blue); opacity: 0.85; }

@media (max-width: 560px) {
  .hero-cta { grid-template-columns: 1fr; max-width: 360px; }
}

/* ?? Buttons ?? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s ease;
}

.btn[hidden] {
  display: none !important;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(82, 109, 255, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--glass-border);
  color: #334155;
}
.btn-soft {
  background: rgba(82, 109, 255, 0.1);
  color: var(--blue);
}
.btn-sm {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #ff8a4c, #ff5d8f);
  box-shadow: 0 10px 24px rgba(255, 93, 143, 0.28);
}
.btn-block { width: 100%; margin-top: 10px; }

/* ?? Filters / cards ?? */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 14px;
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid transparent;
}
.tab.active {
  color: var(--ink);
  background: #fff;
  border-color: var(--glass-border);
  box-shadow: 0 6px 16px rgba(61, 80, 160, 0.08);
}

.search-box input {
  width: min(280px, 100%);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.85);
  outline: none;
}

.plaza-filters {
  margin: 8px 0 16px;
}
.plaza-filters .filter-row { margin: 0 0 10px; }
.filter-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(61, 80, 160, 0.08);
}
.filter-subrow[hidden] { display: none !important; }
.filter-subrow-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.filter-row-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: 0.15s ease;
}
.filter-toggle:hover,
.filter-toggle[aria-expanded="true"] {
  color: var(--blue);
  background: #fff;
  border-color: rgba(82, 109, 255, 0.28);
}
.filter-toggle.is-active {
  color: var(--blue);
  background: rgba(82, 109, 255, 0.1);
}
.filter-toggle-chevron {
  font-size: 11px;
  transition: transform 0.15s ease;
}
.filter-toggle[aria-expanded="true"] .filter-toggle-chevron {
  transform: rotate(180deg);
}
.filter-toggle-count {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.filter-advanced {
  margin-top: 4px;
  padding: 14px 16px;
  animation: fadeIn 0.2s ease;
}
.filter-advanced[hidden] { display: none !important; }
.filter-dims {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-dim {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
}
.filter-dim-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 6px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(82, 109, 255, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.filter-chip:hover {
  color: var(--blue);
  background: rgba(82, 109, 255, 0.1);
}
.filter-chip.active {
  color: var(--blue);
  background: rgba(82, 109, 255, 0.14);
  border-color: rgba(82, 109, 255, 0.28);
}
.filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(82, 109, 255, 0.18);
  font-size: 12px;
  color: var(--muted);
}
.filter-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  font-size: 14px;
}

/* ?? Forum ?? */
.forum-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.forum-hero .eyebrow { justify-content: flex-start; }
.forum-hero h1 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 6px 0 8px;
}
.forum-hero .hero-sub {
  margin: 0;
  text-align: left;
  max-width: 36em;
}
.forum-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.forum-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}
.forum-boards {
  padding: 14px;
  margin: 0;
  position: sticky;
  top: 84px;
}
.forum-boards h3 {
  font-size: 13px;
  margin: 0 0 10px;
  color: var(--muted);
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.board-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.board-item b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.board-item small {
  color: var(--muted);
  font-size: 11px;
}
.board-item:hover {
  background: rgba(82, 109, 255, 0.06);
}
.board-item.active {
  background: rgba(82, 109, 255, 0.1);
  border-color: rgba(82, 109, 255, 0.28);
}
.forum-filters { margin-top: 0; }
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-card {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 109, 255, 0.3);
}
.post-card-top {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.post-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.post-card > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.post-card-meta .tags {
  margin: 0;
}
.post-card-meta .tags i {
  font-style: normal;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(82, 109, 255, 0.08);
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.post-card-project {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.post-card-project button {
  appearance: none;
  border: 1px solid rgba(82, 109, 255, 0.22);
  background: rgba(82, 109, 255, 0.08);
  color: var(--violet);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-card-project button:hover {
  background: rgba(82, 109, 255, 0.14);
  border-color: rgba(82, 109, 255, 0.35);
}

.post-project-bind {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(82, 109, 255, 0.18);
  background: linear-gradient(120deg, rgba(82, 109, 255, 0.08), rgba(14, 165, 233, 0.08));
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.post-project-bind[hidden] { display: none !important; }
.post-project-bind:hover {
  border-color: rgba(82, 109, 255, 0.35);
  box-shadow: 0 8px 18px rgba(61, 80, 160, 0.1);
}
.post-project-bind-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--violet);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}
.post-project-bind strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-project-bind-go {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.post-idea-bind {
  border-color: rgba(180, 83, 9, 0.22);
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
}
.post-idea-bind:hover {
  border-color: rgba(180, 83, 9, 0.4);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.12);
}
.post-idea-bind .post-project-bind-label,
.post-idea-bind .post-project-bind-go {
  color: #b45309;
}

.field-optional {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.forum-post-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}
.forum-post-main h1 {
  font-size: 24px;
  margin: 8px 0 12px;
}
.forum-post-author {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.forum-post-author small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.forum-post-body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.forum-post-body p { margin: 0 0 10px; }
.forum-replies h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.forum-replies h3 small { color: var(--muted); font-weight: 600; }
.reply-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.reply-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.04);
}
.reply-item header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}
.reply-item header small { color: var(--muted); font-size: 12px; }
.reply-item p { margin: 0; font-size: 13px; line-height: 1.55; }
.reply-compose textarea {
  width: 100%;
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.entity-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.22s ease;
  text-align: left;
}
.entity-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(61, 80, 160, 0.16); }
#plaza-cards .entity-card {
  display: flex;
  flex-direction: column;
  height: 398px;
}
#plaza-cards .entity-card .card-cover {
  flex: 0 0 132px;
  height: 132px;
}
#plaza-cards .entity-card .card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
#plaza-cards .entity-card .card-body > p:not(.card-mine-tip) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 8px;
}
#plaza-cards .entity-card .card-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
#plaza-cards .entity-card .crowd-bar {
  margin-top: 8px;
}
.entity-card.is-mine {
  border-color: rgba(82, 109, 255, 0.28);
}
.badge-mine {
  background: rgba(82, 109, 255, 0.16) !important;
  color: #3b5bdb !important;
  border-color: rgba(82, 109, 255, 0.28) !important;
}
.card-mine-tip {
  margin: 8px 0 0;
  padding: 6px 8px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #3b5bdb;
  background: rgba(82, 109, 255, 0.08);
  border: 1px solid rgba(82, 109, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-mine-tip.is-placeholder {
  visibility: hidden;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.plaza-mine-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(82, 109, 255, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(82, 109, 255, 0.18);
}
.plaza-mine-banner[hidden] {
  display: none !important;
}
.plaza-mine-banner strong {
  display: block;
  font-size: 14px;
  color: #2f4ec4;
  margin-bottom: 4px;
}
.plaza-mine-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5d82;
}

.entity-card--maker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 8px 22px rgba(61, 80, 160, 0.06);
  backdrop-filter: none;
}
.entity-card--maker:hover {
  border-color: rgba(82, 109, 255, 0.22);
  box-shadow: 0 14px 32px rgba(61, 80, 160, 0.1);
}
.entity-card--maker .maker-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.maker-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.maker-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.entity-card--maker .p-avatar,
.entity-card--maker .maker-card-head .p-avatar,
.entity-card--maker .maker-card-top .p-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50% !important;
  flex-shrink: 0;
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(82, 109, 255, 0.22);
}
.maker-card-id-copy {
  min-width: 0;
}
.maker-card-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.maker-card-name-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: #1a2744;
  line-height: 1.2;
}
.maker-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  line-height: 1.3;
}
.maker-card-stats {
  margin: 5px 0 0;
  font-size: 12px;
  color: #8a97b0;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.maker-stat-sep {
  margin: 0 5px;
  color: #c5cddc;
}
.maker-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 6px 14px rgba(82, 109, 255, 0.25);
  transition: 0.15s ease;
}
.maker-follow-btn svg {
  width: 14px;
  height: 14px;
}
.maker-follow-btn em {
  font-style: normal;
}
.maker-follow-btn:hover {
  transform: translateY(-1px);
}
.maker-follow-btn.is-following {
  color: var(--blue);
  background: #eef2ff;
  box-shadow: none;
}
.maker-card-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6b88;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.maker-project-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #eef1f7;
}
.maker-project-name {
  font-size: 13px;
  font-weight: 650;
  color: #243656;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maker-project-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 650;
  color: #9aa6bd;
}
.maker-project-likes svg {
  width: 13px;
  height: 13px;
  color: #f43f5e;
}
.maker-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.entity-card--maker .tags {
  margin: 0;
  min-width: 0;
}
.entity-card--maker .tags span {
  background: #f0f3f9;
  color: #6b7a96;
  border-radius: 6px;
  font-weight: 600;
}
.maker-contact-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  padding: 0;
}
.maker-contact-link:hover {
  text-decoration: underline;
}
.maker-apply-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.maker-apply-link:hover {
  filter: brightness(1.06);
}
.maker-apply-link:disabled,
.maker-apply-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.maker-card-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.maker-open-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0b7a4b;
  background: #e8f8f0;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.maker-apply-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin: 12px 0;
}
.maker-apply-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.maker-apply-item.is-selected {
  border-color: var(--blue);
  background: #f3f7ff;
}
.maker-apply-item strong {
  display: block;
  font-size: 14px;
}
.maker-apply-item small {
  color: #6b7a96;
  font-size: 12px;
}
.pd-open-recruit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
}
.pd-open-recruit-row[hidden] {
  display: none !important;
}

.maker-plaza-tools {
  margin: 0 0 14px;
}
.maker-plaza-tools[hidden] { display: none !important; }
.maker-subtabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(82, 109, 255, 0.06);
  border: 1px solid rgba(82, 109, 255, 0.1);
  width: fit-content;
  max-width: 100%;
}
.maker-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #5b6b8c;
  cursor: pointer;
  border: none;
  background: transparent;
}
.maker-subtab:hover { color: var(--ink); }
.maker-subtab.is-on {
  background: #fff;
  color: #3b4fd9;
  box-shadow: 0 4px 14px rgba(61, 80, 160, 0.12);
}
.maker-subtab-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(82, 109, 255, 0.12);
  color: #3b4fd9;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.maker-tab-panel[hidden] { display: none !important; }
.maker-commission-panel {
  margin: 0;
  padding: 16px 18px;
}
.maker-commission-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
#view-plaza.plaza-mode-maker-commission #plaza-cards,
#view-plaza.plaza-mode-maker-commission #plaza-empty,
#view-plaza.plaza-mode-maker-commission #plaza-filters {
  display: none !important;
}
.maker-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(82, 109, 255, 0.1), rgba(104, 86, 255, 0.06));
  border: 1px solid rgba(82, 109, 255, 0.12);
}
.maker-edit-banner[hidden] { display: none !important; }
.maker-edit-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.maker-edit-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #8a97b0;
  font-size: 18px;
  line-height: 1;
}
.maker-edit-close:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

#view-plaza.plaza-mode-maker #plaza-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#view-plaza.plaza-mode-maker .plaza-filters .filter-row {
  margin-bottom: 12px;
}
#view-plaza.plaza-mode-maker .plaza-filters .search-box {
  min-width: min(360px, 48vw);
  flex: 1 1 240px;
}
@media (max-width: 1100px) {
  #view-plaza.plaza-mode-maker #plaza-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  #view-plaza.plaza-mode-maker #plaza-cards {
    grid-template-columns: 1fr;
  }
  .maker-card-top {
    flex-wrap: wrap;
  }
}

.entity-card--maker .card-body {
  padding-top: 4px;
}
.entity-card--maker .maker-card-head h3 {
  font-size: 15px;
  margin: 0 0 2px;
}
.entity-card--maker .maker-card-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.card-cover {
  height: 110px;
  position: relative;
  padding: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-cover.has-cover-img {
  background-color: #dfe6f5;
}
.card-cover.has-cover-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
  pointer-events: none;
}
.card-cover.has-cover-img .badge {
  position: relative;
  z-index: 1;
}

.cover-a { background: linear-gradient(135deg, #6a7dff, #9b7bff 60%, #c9e7ff); }
.cover-b { background: linear-gradient(135deg, #35b9ff, #6856ff 55%, #ffb4e0); }
.cover-c { background: linear-gradient(135deg, #52c6a8, #526dff 60%, #b8c4ff); }
.cover-d { background: linear-gradient(135deg, #ff9f6b, #6856ff 55%, #8ec5ff); }

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.88);
  margin-right: 4px;
}
.badge-project { color: var(--blue); }
.badge-idea { color: #c026a8; }
.badge-live { color: #059669; }
.badge-done { color: #2563eb; }
.badge-rant { color: #b45309; }
.badge-point { color: #ea580c; }
.badge-commission {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
}
.entity-card .tags .tag-commission {
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(251, 146, 60, 0.12);
  font-weight: 700;
}

.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; font-weight: 700; letter-spacing: 0.03em; }
.card-body p { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tags span {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(82, 109, 255, 0.08);
  color: var(--blue);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.flow-strip {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  border: 1px dashed rgba(99, 102, 241, 0.28);
}
.flow-strip h2 { font-size: 15px; margin-bottom: 10px; }
.flow-strip ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  counter-reset: step;
}
.flow-strip li {
  counter-increment: step;
  padding: 12px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.06);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.flow-strip li::before {
  content: "0" counter(step);
  display: block;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: 4px;
  font-size: 12px;
}
.flow-strip b { color: var(--ink); }

/* ?? Detail ?? */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 9px 14px 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(19, 45, 103, 0.14);
  background: #fff;
  box-shadow: 0 4px 14px rgba(61, 80, 160, 0.08);
  font-size: 14px;
  font-weight: 700;
  color: #3b4fd9;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.18s ease;
}
.back-link:hover {
  color: #2f3fc4;
  border-color: rgba(59, 79, 217, 0.35);
  background: #f5f7ff;
  box-shadow: 0 6px 18px rgba(61, 80, 160, 0.12);
  transform: translateY(-1px);
}
.back-link:focus-visible {
  outline: 2px solid rgba(59, 79, 217, 0.45);
  outline-offset: 2px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px 24px;
  align-items: start;
  width: 100%;
}

.detail-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

#view-project-detail.active,
#view-idea-detail.active {
  width: 100%;
  max-width: none;
}

.detail-back {
  margin: 0 0 12px;
}

#view-project-detail .detail-hero,
#view-idea-detail .detail-hero {
  border-radius: 20px;
  padding: 18px 20px 16px;
  color: #fff;
  margin-bottom: 0;
  box-shadow: var(--shadow);
}

#view-project-detail .detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#view-project-detail .pd-section {
  margin-bottom: 0;
}

#view-project-detail .pd-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8db5;
}

#view-project-detail .pd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

#view-project-detail .pd-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #1e293b;
  letter-spacing: 0.01em;
}

#view-project-detail .pd-section-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  max-width: 62ch;
}

#view-project-detail .pd-now {
  border-color: rgba(82, 109, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(82, 109, 255, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.92);
}

#view-project-detail .pd-now .pd-kicker {
  color: #526dff;
}

#view-project-detail .pd-focus-extra .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px !important;
}

#view-project-detail .pd-focus-extra .tags span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(82, 109, 255, 0.22);
}

#view-project-detail .pd-secondary {
  opacity: 0.98;
}

#view-project-detail .pd-timeline-btn {
  padding: 6px 12px;
  margin-top: 2px;
}

#view-project-detail .pd-timeline-side .pd-section-head {
  margin-bottom: 8px;
}

#view-project-detail .pd-timeline-side .update-compose textarea {
  min-height: 64px;
  font-size: 12px;
}

#view-project-detail .pd-timeline-side .timeline {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 4px;
}

#view-project-detail .pd-timeline-side .timeline li {
  grid-template-columns: 44px 1fr;
  gap: 8px;
  font-size: 12px;
}

#view-project-detail .pd-comment-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}

#view-project-detail .pd-comment-compose textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}

#view-project-detail .pd-comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#view-project-detail .pd-comment-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

#view-project-detail .pd-comment-item header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

#view-project-detail .pd-comment-item header b {
  font-size: 13px;
}

#view-project-detail .pd-comment-item header small {
  color: var(--muted);
  font-size: 11px;
}

#view-project-detail .pd-comment-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

#view-project-detail .pd-comment-empty {
  margin: 4px 0 0;
  font-size: 13px;
}

#view-project-detail #pd-comments-count {
  font-size: 12px;
}

#view-project-detail .pd-backlink-details {
  padding: 12px 16px;
}

#view-project-detail .pd-backlink-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

#view-project-detail .pd-backlink-summary::-webkit-details-marker {
  display: none;
}

#view-project-detail .pd-backlink-mini {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

#view-project-detail .pd-backlink-details[open] .pd-backlink-summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

#view-project-detail .pd-join-requests {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

#view-project-detail .pd-join-requests-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
  color: #1e293b;
}

#view-project-detail .pd-join-request-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#view-project-detail .pd-join-request-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px 10px;
  align-items: start;
}

#view-project-detail .pd-join-request-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}

#view-project-detail .pd-join-request-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

#view-project-detail .pd-join-request-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

#view-join-gate .pd-join-message-label {
  display: block;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}

#view-join-gate .pd-join-message-label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 64px;
  background: #fff;
}

#view-project-detail .pd-engage-side .engage-toolbar .btn {
  padding: 8px 12px;
  font-size: 12px;
}

#view-project-detail .pd-engage-side .engage-compose {
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

#view-project-detail .pd-engage-side .engage-convert {
  grid-template-columns: 1fr;
  gap: 6px;
}

#view-project-detail .pd-engage-side .engage-convert-card {
  padding: 8px 10px;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

#view-project-detail .pd-engage-side .engage-convert-card strong {
  font-size: 18px;
}

#view-project-detail .pd-engage-side .engage-raw-grid {
  grid-template-columns: repeat(2, 1fr);
}

#view-project-detail .pd-side-card .pd-kicker {
  margin-bottom: 2px;
}

#view-project-detail .pd-side-card h3 {
  margin-bottom: 6px;
}

.detail-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 2px;
}

.detail-hero-top .detail-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-hero-top .position-tag {
  margin: 0;
}

#view-project-detail .detail-hero h1,
#view-idea-detail .detail-hero h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  margin: 6px 0 6px;
  letter-spacing: 0.01em;
  font-weight: 750;
}

#view-project-detail .detail-hero > p#pd-desc,
#view-idea-detail .detail-hero > p#id-desc {
  opacity: 0.94;
  max-width: 72ch;
  line-height: 1.55;
  font-size: 14px;
  margin: 0;
}

.detail-hero {
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.detail-hero.has-cover-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 41, 92, 0.72), rgba(56, 48, 120, 0.66));
  pointer-events: none;
}
.detail-hero.has-cover-img > * {
  position: relative;
  z-index: 1;
}
.pp-cover-preview {
  margin-top: 8px;
  height: 96px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e5eaf3;
}
.detail-hero h1 { font-size: 28px; margin: 10px 0 8px; }
.detail-hero p { opacity: 0.92; max-width: 560px; line-height: 1.55; font-size: 14px; }
.detail-hero-tags .badge { background: rgba(255,255,255,0.95); }
.position-tag {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-hero .detail-actions {
  margin-top: 14px;
}

#view-project-detail .detail-hero .detail-actions,
#view-idea-detail .detail-hero .detail-actions {
  margin-top: 12px;
}

#view-project-detail .detail-hero .detail-actions .btn-ghost,
#view-idea-detail .detail-hero .detail-actions .btn-ghost,
#view-project-detail .detail-hero .detail-actions .btn-soft,
#view-idea-detail .detail-hero .detail-actions .btn-soft {
  background: #fff;
  color: #4338ca;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

#view-project-detail .detail-hero .detail-actions .btn-ghost:hover,
#view-idea-detail .detail-hero .detail-actions .btn-ghost:hover,
#view-project-detail .detail-hero .detail-actions .btn-soft:hover,
#view-idea-detail .detail-hero .detail-actions .btn-soft:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

#view-project-detail .detail-side,
#view-idea-detail .detail-side {
  position: sticky;
  top: 72px;
}

#view-project-detail .detail-side .panel,
#view-idea-detail .detail-side .panel {
  padding: 14px 16px;
  margin-bottom: 12px;
}

#view-project-detail .detail-side .panel h3,
#view-idea-detail .detail-side .panel h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

#view-project-detail .detail-side .hint,
#view-idea-detail .detail-side .hint {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--muted);
}

#view-project-detail .people-list li {
  padding: 7px 0;
}

#view-project-detail .people-list .empty-slot,
#view-idea-detail .people-list .empty-slot {
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  color: #4338ca;
  background: #eef2ff;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

#view-project-detail .panel,
#view-idea-detail .panel {
  padding: 16px 18px;
  margin-bottom: 14px;
}

#view-project-detail .detail-main > .panel {
  margin-bottom: 0;
}

#view-project-detail .panel h3,
#view-idea-detail .panel h3 {
  font-size: 15px;
  letter-spacing: 0.02em;
}

#view-project-detail #pd-focus-body,
#view-idea-detail #id-focus-body {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
}

#view-project-detail #pd-backlink-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 10px;
}

#view-project-detail .code-chip {
  font-size: 11px;
  padding: 8px 10px;
  margin-top: 4px;
}

#view-project-detail .timeline li {
  padding: 7px 0;
  font-size: 13px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel h3 { font-size: 15px; margin-bottom: 10px; }
.warn-panel { border-color: rgba(234, 88, 12, 0.25); background: rgba(255, 247, 237, 0.85); }

.timeline { list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  font-size: 13px;
}
.timeline time { color: var(--violet); font-weight: 700; font-size: 12px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.06);
}
.stat strong { display: block; font-size: 18px; }
.stat small { color: var(--muted); font-size: 11px; }

.code-chip {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #c7d2fe;
  overflow-x: auto;
}

.people-list { list-style: none; }
.people-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}
.people-list small { display: block; color: var(--muted); font-size: 11px; }
.p-avatar.a2 { background: linear-gradient(135deg, #35b9ff, #6856ff); }
.p-avatar.a3 { background: linear-gradient(135deg, #ff9f6b, #ff5d8f); }
.empty-slot {
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 10px !important;
  color: var(--muted);
  justify-content: center;
  margin-top: 6px;
}
.hint { font-size: 12px; color: var(--muted); margin: 8px 0; }

/* ?? Forms ?? */
.form-shell { max-width: 560px; margin: 0 auto; }
.form-shell h1 { font-size: 22px; margin-bottom: 6px; }
.publish-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
  padding: 0;
}
.publish-steps li {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}
.publish-steps li.is-active {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.publish-steps li.is-done {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.form-error {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
#pp-upload.is-uploaded {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.form-shell label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}
.form-shell input,
.form-shell textarea,
.form-shell select,
.admin-grid input,
.admin-grid select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.9);
  outline: none;
}
.form-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pi-points-wrap {
  margin-top: 4px;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #0ea5e9) 28%, transparent);
  background: color-mix(in srgb, var(--accent, #0ea5e9) 8%, #fff);
}
.pi-points-wrap .pi-points-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.pi-points-wrap label { margin-top: 0; }

/* ?? Dungeon ?? */
.dungeon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dungeon-grid--layer1,
.dungeon-grid--tier {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .dungeon-grid--layer1,
  .dungeon-grid--tier {
    grid-template-columns: 1fr;
  }
}
.dungeon-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}
.dungeon-card:hover { transform: translateY(-2px); }
.dungeon-card.locked { opacity: 0.72; cursor: default; }
.dungeon-card h3 { font-size: 15px; margin-bottom: 4px; }
.dungeon-card p { font-size: 12px; color: var(--muted); line-height: 1.45; margin-bottom: 10px; }

.dungeon-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.di-1 { background: linear-gradient(135deg, #526dff, #6856ff); }
.di-2 { background: linear-gradient(135deg, #35b9ff, #526dff); }
.di-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.di-4 { background: linear-gradient(135deg, #10b981, #526dff); }
.di-tier-beginner { background: linear-gradient(135deg, #34d399, #059669); }
.di-tier-intermediate { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.di-tier-advanced { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(82, 109, 255, 0.12);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.dungeon-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.special-channel {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(232, 236, 255, 0.9));
}

.quest-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quest {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  font-size: 14px;
}
.quest.done { color: #059669; background: rgba(16, 185, 129, 0.08); }
.quest.current {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(82, 109, 255, 0.3);
}
.quest.locked { opacity: 0.5; }
.quest.reward {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

/* ?? ???? ? ????? ?? */
.view-path.active {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
#view-dungeon-map.view-path.active {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 0%;
  min-height: 0;
  /* flex-basis 0 + grow????????????? */
  height: 0;
  max-height: none;
}
.app.app--path {
  padding-left: 12px;
  padding-right: 12px;
}
/* ?? / ????????????? */
.app.app--train-zone #plaza-channels {
  display: none !important;
}
.app.app--dungeon-map {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px 8px;
  gap: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.app.app--dungeon-map .topbar {
  flex: 0 0 auto;
  padding-top: 6px;
  padding-bottom: 6px;
  margin: 0;
}
.app.app--dungeon-map #view-dungeon-map.active {
  flex: 1 1 0% !important;
  align-self: stretch;
  min-height: 0 !important;
  height: 0 !important;
  max-height: none !important;
}
.app.app--dungeon-map .trail-map {
  flex: 1 1 0% !important;
  align-self: stretch;
  min-height: 0 !important;
  height: 100% !important;
}
.app.app--path:has(#view-dungeon-map.active) .proto-footer,
.app.app--dungeon-map .proto-footer,
.app.app--sect .proto-footer,
.app.app--path-pick .proto-footer {
  display: none !important;
}
html.app-dungeon-lock,
body.app-dungeon-lock {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
.app.app--path .bg { opacity: 0.85; }

.path-hub,
.path-map,
.trail-map {
  --path-ink: #132d67;
  --path-muted: #7085aa;
  --path-line: #b8c4ef;
  --path-teal: #526dff;
  --path-teal-deep: #4a56e8;
  --path-amber: #f59e0b;
  --path-good: #526dff;
  --path-lock: #a8b4d0;
  --path-panel: rgba(255, 255, 255, 0.92);
  --path-soft: #eef3ff;
  color: var(--path-ink);
}

.path-hub {
  position: relative;
  border-radius: 20px;
  padding: 24px 24px 28px;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(82, 109, 255, 0.14), transparent 60%),
    radial-gradient(700px 380px at 92% 18%, rgba(104, 86, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #f7faff, #eef3ff);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.path-hub-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.path-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.16);
  position: relative;
  z-index: 1;
}
.path-tab {
  border: 0;
  background: transparent;
  color: var(--path-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.path-tab:hover { color: var(--path-teal-deep); }
.path-tab.active {
  background: var(--path-teal);
  color: #fff;
  box-shadow: 0 6px 14px rgba(82, 109, 255, 0.28);
}
.path-tab-panel { display: none; position: relative; z-index: 1; }
.path-tab-panel.is-active { display: block; }

.path-alt-intro {
  margin-bottom: 14px;
}
.path-alt-intro h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}
.path-alt-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--path-muted);
  line-height: 1.5;
}
.path-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.path-alt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  background: var(--path-panel);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.path-alt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 109, 255, 0.4);
  box-shadow: 0 12px 24px rgba(26, 47, 54, 0.08);
}
.path-alt-orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #526dff, #6856ff);
}
.path-alt-orb.star {
  background: linear-gradient(135deg, #f59e0b, #7c5cff);
}
.path-alt-card strong { font-size: 16px; }
.path-alt-card small {
  font-size: 12px;
  color: var(--path-muted);
  line-height: 1.45;
}
.path-alt-cta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--path-teal);
}

@media (max-width: 700px) {
  .path-alt-grid { grid-template-columns: 1fr; }
}
.path-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--path-teal);
}
.path-hub-head h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.path-lead {
  margin: 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--path-muted);
}
.path-status {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--path-panel);
  border: 1px solid rgba(99, 102, 241, 0.16);
  backdrop-filter: blur(8px);
}
.path-status b {
  display: inline-block;
  font-size: 13px;
  color: #b45309;
  margin-right: 8px;
}
.path-status[data-tone="green"] b { color: var(--path-good); }
.path-status[data-tone="blue"] b { color: var(--path-teal); }
.path-status > span {
  font-size: 12px;
  color: var(--path-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--path-soft);
}
.path-status-meter {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 6px;
  font-size: 12px;
}
.path-status-meter em { font-style: normal; color: var(--path-muted); }
.path-bar {
  height: 8px !important;
  background: rgba(155, 196, 188, 0.45) !important;
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
}
.path-bar.wide { width: 100%; }
.path-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--path-teal-deep), var(--path-teal)) !important;
  box-shadow: none !important;
}
.path-status-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--path-muted);
}

/* ?????? */
.path-rail {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.path-milestones {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.path-milestones::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--path-good), var(--path-line) 40%, rgba(168, 181, 187, 0.55));
  z-index: 0;
}
.path-milestones li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--path-muted);
}
.path-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3ff;
  border: 3px solid #c5d9d5;
  box-shadow: 0 6px 14px rgba(26, 47, 54, 0.08);
}
.path-node b {
  font-size: 14px;
  font-weight: 800;
}
.path-node-copy strong {
  display: block;
  font-size: 13px;
  color: var(--path-ink);
}
.path-node-copy small {
  font-size: 11px;
  color: var(--path-muted);
}
.path-milestones li.done .path-node {
  background: linear-gradient(135deg, #526dff, #6856ff);
  border-color: #4a56e8;
  color: #fff;
}
.path-milestones li.done .path-node-copy strong { color: var(--path-good); }
.path-milestones li.on .path-node {
  background: var(--path-amber);
  border-color: #c9841f;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(232, 162, 58, 0.22), 0 8px 18px rgba(201, 132, 31, 0.28);
  animation: path-node-pulse 1.8s ease-in-out infinite;
}
.path-milestones li.on .path-node-copy strong { color: #c9841f; }
@keyframes path-node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes path-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

/* ??? */
.path-fork {
  margin-top: 6px;
  padding: 18px 16px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(99, 102, 241, 0.28);
}
.path-fork-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--path-teal);
  letter-spacing: 0.04em;
}
.path-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.path-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  background: var(--path-panel);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.path-branch:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(82, 109, 255, 0.45);
  box-shadow: 0 14px 28px rgba(26, 47, 54, 0.1);
}
.path-branch.active {
  border-color: var(--path-teal);
  box-shadow: 0 0 0 3px rgba(82, 109, 255, 0.16), 0 14px 28px rgba(61, 80, 160, 0.1);
}
.path-branch:disabled,
.path-branch.is-locked {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.25);
}
.path-branch-trail {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 3px;
  height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--path-line));
}
.path-branch-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #7b8cff, #526dff);
  box-shadow: 0 8px 18px rgba(82, 109, 255, 0.28);
}
.path-branch-orb.hw {
  background: linear-gradient(145deg, #8b7cff, #6856ff);
}
.path-branch-orb.biz {
  background: linear-gradient(145deg, #fbbf24, #d97706);
}
.path-branch-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.path-branch-body strong { font-size: 15px; }
.path-branch-body > small {
  font-size: 12px;
  color: var(--path-muted);
}
.path-branch-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}
.path-branch-prog .path-bar { width: 72px; }
.path-branch-prog em {
  font-style: normal;
  font-size: 12px;
  color: var(--path-muted);
  font-variant-numeric: tabular-nums;
}
.path-branch-cta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--path-teal);
}
.path-branch-cta.muted { color: var(--path-lock); }

.train-path-state {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--path-muted);
  background: #eef3ff;
}
.train-path-state.live {
  color: var(--path-good);
  background: rgba(82, 109, 255, 0.14);
}
.train-path-state.cleared {
  color: var(--path-teal-deep);
  background: rgba(104, 86, 255, 0.14);
}

/* ?? ????????????? ?? */
.trail-map {
  --trail-radius: 14px;
  --trail-border: 1px solid rgba(99, 102, 241, 0.14);
  --trail-soft: #eef3ff;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.trail-map-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 18px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  z-index: 2;
}
.trail-map-titles h1 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--path-ink);
}
.trail-dock-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.trail-map-focus-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--path-muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.trail-map-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 16px 16px;
  background: #fff;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  z-index: 2;
}
.trail-map-stage {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  gap: 0;
  padding: 0 6px;
  background: linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
}
.trail-map-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.trail-map-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 109, 255, 0.35) transparent;
}
.path-back,
.path-go-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.path-back {
  padding: 8px 12px;
  border-radius: var(--trail-radius, 14px);
  background: var(--trail-soft, #eef3ff);
  border: var(--trail-border, 1px solid rgba(99, 102, 241, 0.14));
  color: var(--path-ink);
  font-size: 13px;
  margin-top: 0;
}
.path-back:hover { background: #e4eaff; color: var(--path-teal-deep); }
.trail-map-titles { min-width: 0; }
.trail-map-focus-sub .dot { opacity: 0.5; }
.trail-map-path-note {
  display: none;
}
.trail-map-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--trail-radius, 14px);
  background: var(--trail-soft, #eef3ff);
  border: var(--trail-border, 1px solid rgba(99, 102, 241, 0.14));
  font-size: 12px;
  color: var(--path-muted);
  font-weight: 700;
}
.trail-chip strong {
  color: var(--path-ink);
  font-variant-numeric: tabular-nums;
}
.trail-chip.accent {
  background: linear-gradient(135deg, rgba(82, 109, 255, 0.12), rgba(104, 86, 255, 0.1));
  border-color: rgba(82, 109, 255, 0.28);
}
.trail-chip.accent strong {
  font-size: 15px;
  color: var(--path-teal-deep);
}
.trail-chip-bar {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(184, 196, 239, 0.55);
  overflow: hidden;
}
.trail-chip-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.trail-map-footer .path-go-btn {
  width: min(320px, 100%);
  min-width: 200px;
  padding: 12px 24px;
  border-radius: var(--trail-radius, 14px);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(82, 109, 255, 0.26);
}
.trail-map-footer .path-go-btn:hover { filter: brightness(1.05); }
.trail-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.trail-badge.here {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.trail-badge.type {
  color: #4a56e8;
  background: rgba(82, 109, 255, 0.12);
}
.trail-badge.unit {
  color: #6856ff;
  background: rgba(104, 86, 255, 0.1);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trail-map > svg,
.trail-map > #kp-focus-orb {
  display: none !important;
}

.trail-nav {
  align-self: center;
  position: relative;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin: 0;
  border: var(--trail-border, 1px solid rgba(99, 102, 241, 0.14));
  border-radius: var(--trail-radius, 14px);
  background: #fff;
  color: #132d67;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(61, 80, 160, 0.1);
  flex-shrink: 0;
}
.trail-nav:hover:not(:disabled) {
  background: #526dff;
  color: #fff;
  border-color: transparent;
}
.trail-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.trail-nav-prev,
.trail-nav-next {
  left: auto;
  right: auto;
}
.trail-legend {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--path-muted);
  background: #fff;
  border: var(--trail-border, 1px solid rgba(99, 102, 241, 0.14));
  border-radius: var(--trail-radius, 14px);
  box-shadow: 0 6px 16px rgba(61, 80, 160, 0.06);
}
.trail-legend li { display: flex; align-items: center; gap: 5px; }
.trail-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid transparent;
}
.trail-legend .done { background: var(--path-good); }
.trail-legend .now { background: var(--path-amber); }
.trail-legend .todo { background: #fff; border-color: var(--path-line); }
.trail-legend .lock { background: #edf1f8; border-color: var(--path-lock); }

.path-trail {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  height: 100%;
  min-height: 320px;
  padding: 28px 36px;
  gap: 0;
  box-sizing: border-box;
}
.path-stop {
  --dot-y: 50%;
  position: relative;
  z-index: 1;
  display: block;
  width: 148px;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex: 0 0 auto;
  align-self: center;
}
.path-stop.wave-peak { --dot-y: 28%; }
.path-stop.wave-high { --dot-y: 38%; }
.path-stop.wave-mid { --dot-y: 50%; }
.path-stop.wave-low { --dot-y: 62%; }
.path-stop.wave-valley { --dot-y: 72%; }

.path-spine {
  display: none;
}
.path-spine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.path-spine-svg .spine-glow {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.path-spine-svg .spine-line {
  stroke: url(#none);
  stroke: #8b6cec;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(120, 100, 220, 0.35));
}
.path-chapter-label {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 10px 0 4px;
}
.path-chapter-label span {
  display: inline-block;
  max-width: 8em;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--path-teal-deep);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(82, 109, 255, 0.22);
  box-shadow: 0 8px 18px rgba(61, 80, 160, 0.08);
}
.path-chapter-label.is-active span {
  color: #fff;
  background: linear-gradient(135deg, #526dff, #6856ff);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(82, 109, 255, 0.28);
}
.path-chapter-mark {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #d97706;
}

.path-stop-arm {
  position: absolute;
  left: 50%;
  width: 3px;
  height: 34px;
  background: rgba(184, 196, 239, 0.95);
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%);
}
.path-stop.side-up .path-stop-arm {
  top: calc(var(--dot-y) - 58px);
  border-radius: 999px 999px 0 0;
}
.path-stop.side-down .path-stop-arm {
  top: calc(var(--dot-y) + 24px);
  border-radius: 0 0 999px 999px;
}
.path-stop.cleared .path-stop-arm { background: rgba(82, 109, 255, 0.7); }
.path-stop.is-current .path-stop-arm { background: rgba(245, 158, 11, 0.85); }

.path-stop-card {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 140px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 10px 22px rgba(61, 80, 160, 0.08);
  transform: translateX(-50%);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.path-stop.side-up .path-stop-card {
  bottom: calc(100% - var(--dot-y) + 42px);
}
.path-stop.side-down .path-stop-card {
  top: calc(var(--dot-y) + 42px);
}
.path-stop-tag {
  display: inline-block;
  margin: 0 0 4px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--path-teal);
}
.path-stop-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--path-ink);
}
.path-stop-dot {
  position: absolute;
  left: 50%;
  top: var(--dot-y, 50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3px rgba(184, 196, 239, 0.85),
    0 8px 16px rgba(61, 80, 160, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.path-stop-dot i {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: #526dff;
}
.path-stop-card small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--path-muted);
}

.path-stop.cleared .path-stop-dot {
  background: linear-gradient(160deg, #7b8cff, #526dff);
  box-shadow: 0 10px 22px rgba(82, 109, 255, 0.32);
}
.path-stop.cleared .path-stop-dot i { color: #fff; }
.path-stop.cleared .path-stop-card {
  border-color: rgba(82, 109, 255, 0.28);
  background: rgba(247, 250, 255, 0.98);
}
.path-stop.cleared .path-stop-tag { color: var(--path-teal); }

.path-stop.available:not(.is-current) .path-stop-dot {
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(82, 109, 255, 0.45),
    0 10px 20px rgba(61, 80, 160, 0.1);
}
.path-stop.available:not(.is-current) .path-stop-dot i { color: var(--path-teal); }

.path-stop.is-current .path-stop-dot {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fbbf24, #f59e0b);
  box-shadow:
    0 0 0 6px rgba(245, 158, 11, 0.22),
    0 12px 24px rgba(245, 158, 11, 0.3);
  animation: path-pulse 1.8s ease-in-out infinite;
}
.path-stop.is-current .path-stop-dot i { color: #fff; font-size: 16px; }
.path-stop.is-current .path-stop-card {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(180deg, #fffdf8, #fff7eb);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.18);
  outline: 2px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}
.path-stop.is-current .path-stop-tag { color: #d97706; }
.path-stop.is-current .path-stop-card small {
  color: #d97706;
  font-weight: 700;
}
.path-stop-here {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.path-stop.is-reward .path-stop-dot { border-radius: 50%; }
.path-stop.is-reward .path-stop-tag { color: var(--violet); }

.path-stop.locked { cursor: not-allowed; opacity: 1; }
.path-stop.locked .path-stop-dot {
  background: linear-gradient(160deg, #e8ecf6, #c5cde0);
  box-shadow: 0 6px 14px rgba(99, 120, 160, 0.14);
}
.path-stop.locked .path-stop-dot i { color: #5a6f98; }
.path-stop.locked .path-stop-card {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  border-color: rgba(168, 180, 208, 0.45);
}
.path-stop.locked .path-stop-card strong { color: #4a5f8a; }
.path-stop.locked .path-stop-card small,
.path-stop.locked .path-stop-tag { color: #7085aa; }

.path-stop:hover:not(:disabled) .path-stop-card {
  box-shadow: 0 16px 32px rgba(61, 80, 160, 0.14);
}
.path-stop.side-up:hover:not(:disabled) .path-stop-card {
  transform: translate(-50%, -3px);
}
.path-stop.side-down:hover:not(:disabled) .path-stop-card {
  transform: translate(-50%, 3px);
}
.path-stop:hover:not(:disabled) .path-stop-dot {
  transform: translate(-50%, -50%) scale(1.04);
}
.path-stop.is-current:hover:not(:disabled) .path-stop-dot {
  transform: translate(-50%, -50%) scale(1.06);
}

.trail-dock {
  flex: 0 0 auto;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 0.9fr);
  gap: 18px 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 22px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(12px);
}
.trail-dock-info {
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trail-dock-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trail-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.trail-badge.here {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.trail-badge.type {
  color: #4a56e8;
  background: rgba(82, 109, 255, 0.12);
}
.trail-badge.unit {
  color: #6856ff;
  background: rgba(104, 86, 255, 0.1);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trail-dock-info > strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #132d67;
}
.trail-dock-hint {
  margin: 0;
  font-size: 13px;
  color: #7085aa;
  line-height: 1.5;
}
.trail-dock-note {
  margin: 0;
  font-size: 11px;
  color: #7085aa;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}
.trail-dock-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
  justify-self: end;
}
.trail-dock-sheet-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #7085aa;
  letter-spacing: 0.04em;
}
.path-go-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(82, 109, 255, 0.28);
}
.path-go-btn:hover { filter: brightness(1.05); }
.path-mini-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  max-width: 100%;
}
.path-mini-sheet.exam-sheet {
  display: flex;
  margin-top: 0;
  grid-template-columns: unset;
}
.path-mini-sheet .exam-sheet-dot {
  width: 30px;
  height: 30px;
  aspect-ratio: auto;
  flex: 0 0 auto;
  border: 1.5px solid #b8c4ef;
  background: #fff;
  color: #132d67;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.path-mini-sheet .exam-sheet-dot.todo {
  color: #4a56e8;
  border-color: #526dff;
  background: #fff;
}
.path-mini-sheet .exam-sheet-dot.done {
  background: linear-gradient(135deg, #526dff, #6856ff);
  border-color: #526dff;
  color: #fff;
}
.path-mini-sheet .exam-sheet-dot.now {
  background: #f59e0b;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.path-mini-sheet .exam-sheet-dot.lock {
  background: #edf1f8;
  border-color: #a8b4d0;
  color: #5a6f98;
}

@media (max-width: 720px) {
  .trail-map-top {
    grid-template-columns: 1fr;
  }
  .trail-map-chips { justify-content: flex-start; }
  .trail-map-footer .path-go-btn {
    width: 100%;
    min-width: 0;
  }
  .trail-legend {
    position: static;
    margin: 0 14px 4px;
    align-self: flex-start;
  }
  .path-stop { width: 132px; height: 240px; min-height: 240px; max-height: 240px; }
  .path-stop-card { width: 124px; }
  .trail-map-scroll { padding-left: 16px; padding-right: 16px; }
  .trail-map-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 0 2px;
    min-height: 220px;
  }
  .trail-nav { width: 34px; height: 34px; font-size: 22px; }
}

@media (max-width: 900px) {
  .path-milestones { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .path-milestones::before { display: none; }
  .path-branches { grid-template-columns: 1fr; }
}

/* ?? ???? ? ???????? exam ????????? ?? */
.view-exam.active {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.app.app--exam .bg {
  opacity: 0.45;
}

.exam-home,
.exam-practice,
.exam-quiz {
  --exam-blue: #2f6bff;
  --exam-blue-soft: #e8f0ff;
  --exam-ink: #1f2a44;
  --exam-muted: #7a8799;
  --exam-line: #e6ebf2;
  --exam-ok: #16a34a;
  --exam-card: #fff;
  color: var(--exam-ink);
}

.exam-home {
  background: #fff;
  border: 1px solid var(--exam-line);
  border-radius: 16px;
  padding: 22px 22px 28px;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.06);
}
.exam-home-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.exam-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--exam-blue);
  letter-spacing: 0.04em;
}
.exam-home-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
}
.exam-sub {
  margin: 0;
  font-size: 14px;
  color: var(--exam-muted);
  line-height: 1.55;
  max-width: 36em;
}
.exam-status {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--exam-blue-soft);
  border: 1px solid #d7e4ff;
}
.exam-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.exam-status-row b { color: #b45309; font-size: 13px; }
.exam-status[data-tone="green"] .exam-status-row b { color: var(--exam-ok); }
.exam-status[data-tone="blue"] .exam-status-row b { color: var(--exam-blue); }
.exam-status-row span {
  font-size: 12px;
  color: var(--exam-muted);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.exam-status-meter {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}
.exam-status-meter em { font-style: normal; color: var(--exam-muted); }
.exam-status-meter strong { font-variant-numeric: tabular-nums; }
.exam-bar {
  height: 8px !important;
  background: #dbe4f5 !important;
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
}
.exam-bar.wide { width: 100%; }
.exam-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f6bff, #5b8cff) !important;
  box-shadow: none !important;
}
.exam-status-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--exam-muted);
}

.exam-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
.exam-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--exam-muted);
  background: #f3f5f8;
}
.exam-steps li b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #d9dee8;
  color: #556;
}
.exam-steps li.done { color: var(--exam-ok); background: #eaf8ef; }
.exam-steps li.done b { background: var(--exam-ok); color: #fff; }
.exam-steps li.on { color: var(--exam-blue); background: var(--exam-blue-soft); }
.exam-steps li.on b { background: var(--exam-blue); color: #fff; }

.exam-subject-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.exam-subject {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--exam-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.exam-subject:hover:not(:disabled) {
  border-color: #b7ccff;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.08);
}
.exam-subject.active {
  border-color: var(--exam-blue);
  background: #f7faff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.12);
}
.exam-subject:disabled,
.exam-subject.is-locked {
  opacity: 0.55;
  cursor: default;
}
.exam-subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--exam-blue);
}
.exam-subject-icon.hw { background: #0ea5e9; }
.exam-subject-icon.biz { background: #f59e0b; }
.exam-subject-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exam-subject-main strong { font-size: 16px; }
.exam-subject-main small { font-size: 12px; color: var(--exam-muted); }
.exam-subject-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.exam-subject-prog .exam-bar { width: 120px; }
.exam-subject-prog em {
  font-style: normal;
  font-size: 12px;
  color: var(--exam-muted);
  font-variant-numeric: tabular-nums;
}
.exam-subject-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.exam-subject-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--exam-blue);
}
.exam-subject-cta.muted { color: var(--exam-muted); }

.exam-home .train-path-state,
.exam-practice .train-path-state {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--exam-muted);
  background: #f1f4f8;
}
.exam-home .train-path-state.live,
.exam-practice .train-path-state.live {
  color: var(--exam-ok);
  background: #eaf8ef;
}
.exam-home .train-path-state.cleared,
.exam-practice .train-path-state.cleared {
  color: var(--exam-blue);
  background: var(--exam-blue-soft);
}

.exam-extra h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}
.exam-extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exam-extra-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed #c9d4e5;
  background: #f8fafc;
  color: var(--exam-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.exam-extra-btn:hover {
  border-color: var(--exam-blue);
  color: var(--exam-blue);
  background: var(--exam-blue-soft);
}

/* ???? + ??? */
.exam-practice {
  background: #fff;
  border: 1px solid var(--exam-line);
  border-radius: 16px;
  padding: 16px 18px 22px;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.06);
}
.exam-practice-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.exam-back {
  border: 0;
  background: #f1f4f8;
  color: var(--exam-ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.exam-back:hover { background: var(--exam-blue-soft); color: var(--exam-blue); }
.exam-practice-titles { flex: 1; min-width: 200px; }
.exam-practice-titles h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.exam-practice-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--exam-muted);
}
.exam-practice-stats {
  min-width: 140px;
  font-size: 12px;
  color: var(--exam-muted);
}
.exam-practice-stats strong {
  margin-left: 6px;
  color: var(--exam-ink);
  font-variant-numeric: tabular-nums;
}
.exam-practice-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}
.exam-chapter {
  border: 1px solid var(--exam-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}
.exam-chapter-head {
  padding: 10px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--exam-line);
}
.exam-chapter-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.exam-q-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #f0f3f7;
  background: #fff;
  cursor: pointer;
}
.exam-q-row:last-child { border-bottom: 0; }
.exam-q-row:hover:not(:disabled) { background: #f7faff; }
.exam-q-row:disabled { opacity: 0.45; cursor: not-allowed; }
.exam-q-row.is-current { background: var(--exam-blue-soft); }
.exam-q-row.cleared .exam-q-idx {
  background: var(--exam-ok);
  color: #fff;
}
.exam-q-idx {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: var(--exam-muted);
}
.exam-q-row.is-current .exam-q-idx {
  background: var(--exam-blue);
  color: #fff;
}
.exam-q-main strong { display: block; font-size: 14px; }
.exam-q-main small { font-size: 12px; color: var(--exam-muted); }
.exam-q-flag {
  font-size: 12px;
  font-weight: 800;
  color: var(--exam-blue);
}

.exam-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exam-side-card {
  border: 1px solid var(--exam-line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.exam-side-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.exam-side-top h3 { margin: 0; font-size: 14px; }
.exam-side-top em {
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  color: var(--exam-blue);
}
.exam-side-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--exam-muted);
  margin-bottom: 6px;
}
.exam-side-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
}
.exam-side-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--exam-blue);
  letter-spacing: 0.06em;
}
.exam-side-card > strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.exam-side-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--exam-muted);
}
.exam-primary-btn {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--exam-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.exam-primary-btn:hover { filter: brightness(1.05); }
.exam-ghost-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--exam-line);
  background: #fff;
  color: var(--exam-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.exam-ghost-btn:hover {
  border-color: #b7ccff;
  color: var(--exam-blue);
  background: var(--exam-blue-soft);
}

.exam-sheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.exam-sheet-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #d5dbe6;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: #5f6b7a;
  cursor: pointer;
}
.exam-sheet-dot.todo {
  color: #2f6bff;
  border-color: #2f6bff;
  background: #fff;
}
.exam-sheet-dot.done {
  background: var(--exam-ok, #16a34a);
  border-color: var(--exam-ok, #16a34a);
  color: #fff;
}
.exam-sheet-dot.now {
  background: var(--exam-blue, #2f6bff);
  border-color: var(--exam-blue, #2f6bff);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}
.exam-sheet-dot.lock {
  background: #f1f4f8;
  border-color: #d5dbe6;
  color: #7a8799;
  cursor: not-allowed;
}
.exam-sheet-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 11px;
  color: var(--exam-muted);
}
.exam-sheet-legend li { display: flex; align-items: center; gap: 5px; }
.exam-sheet-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d5dbe6;
}
.exam-sheet-legend .done { background: var(--exam-ok); border-color: var(--exam-ok); }
.exam-sheet-legend .now { background: var(--exam-blue); border-color: var(--exam-blue); }
.exam-sheet-legend .todo { background: #fff; }
.exam-sheet-legend .lock { background: #f1f4f8; }

/* ??? */
.exam-quiz {
  background: #fff;
  border: 1px solid var(--exam-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.06);
}
.exam-quiz-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--exam-line);
  background: #f7f9fc;
}
.exam-quiz-meta { flex: 1; min-width: 0; }
.exam-quiz-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--exam-blue);
  background: var(--exam-blue-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 4px;
}
.exam-quiz-meta strong {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exam-quiz-layout {
  display: block;
  min-height: 0;
}
.exam-quiz-main { padding: 18px 20px 22px; }
.exam-quiz-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--exam-muted);
}
.exam-quiz-card {
  border: 1px solid var(--exam-line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin-bottom: 14px;
}
.exam-q-head { margin-bottom: 10px; }
.exam-q-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--exam-blue);
  background: var(--exam-blue-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.exam-q-text {
  display: block;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 14px;
  font-weight: 700;
}
.exam-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exam-opt {
  display: grid !important;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--exam-line) !important;
  background: #fff !important;
  cursor: pointer;
}
.exam-opt span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: #eef2f7;
  color: var(--exam-muted);
}
.exam-opt em {
  font-style: normal;
  font-size: 14px;
  color: var(--exam-ink);
}
.exam-opt:has(input:checked) {
  border-color: var(--exam-blue) !important;
  background: var(--exam-blue-soft) !important;
}
.exam-opt:has(input:checked) span {
  background: var(--exam-blue);
  color: #fff;
}
.exam-opt input { position: absolute; opacity: 0; pointer-events: none; }
.exam-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.exam-quiz-actions .exam-primary-btn { width: auto; min-width: 120px; margin-left: auto; }
.exam-quiz-actions--task-first {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.exam-quiz-actions--task-first .exam-primary-btn {
  margin-left: 0;
  min-width: 148px;
  order: -1;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.22);
}
.exam-ghost-btn--soft {
  opacity: 0.78;
  border-style: dashed !important;
  font-weight: 500 !important;
}
.exam-ghost-btn--soft:hover {
  opacity: 1;
}
.exam-explain {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d7e4ff;
  background: #f7faff;
}
.exam-explain.is-highlight {
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.2);
}

@media (max-width: 900px) {
  .exam-practice-body { grid-template-columns: 1fr; }
  .exam-quiz-actions .exam-primary-btn { margin-left: 0; width: 100%; }
}

/* ?? ??????????exam ??????? ?? */
.view-starmap.active {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 96px);
}

/* ?????????????????? */
.app.app--starmap {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  gap: 12px;
}
.app.app--starmap .topbar {
  margin: 0 28px;
}
.app.app--starmap .bg {
  opacity: 0;
}
.app.app--starmap .proto-footer {
  display: none;
}

.cf-starmap {
  --sm-ink: #f1f5ff;
  --sm-soft: #9aa8c7;
  --sm-muted: #6b7a99;
  --sm-cyan: #38bdf8;
  --sm-panel: rgba(15, 23, 48, 0.72);
  --sm-border: rgba(96, 165, 250, 0.22);
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 96px);
  border-radius: 0;
  color: var(--sm-ink);
  background:
    radial-gradient(ellipse 70% 45% at 42% 48%, rgba(56, 100, 220, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(99, 70, 200, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(30, 80, 180, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #070d22 0%, #050a1b 45%, #0a1028 100%);
  box-shadow: none;
}
.cf-starmap-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cf-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.cf-nebula.n1 {
  width: 420px; height: 200px;
  top: 22%; left: 14%;
  background: linear-gradient(120deg, rgba(59,130,246,0.5), rgba(139,92,246,0.35));
  transform: rotate(-18deg);
}
.cf-nebula.n2 {
  width: 280px; height: 140px;
  top: 58%; left: 48%;
  background: rgba(34, 211, 238, 0.2);
  transform: rotate(12deg);
}
.cf-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: cf-twinkle 3.5s ease-in-out infinite;
}
.cf-star.s1 { top: 12%; left: 18%; }
.cf-star.s2 { top: 22%; left: 72%; animation-delay: -0.8s; }
.cf-star.s3 { top: 48%; left: 8%; animation-delay: -1.4s; width: 3px; height: 3px; }
.cf-star.s4 { top: 66%; left: 88%; animation-delay: -2s; }
.cf-star.s5 { top: 78%; left: 36%; animation-delay: -2.6s; }
.cf-star.s6 { top: 34%; left: 52%; animation-delay: -1.1s; }
@keyframes cf-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

.cf-starmap-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px clamp(20px, 4vw, 48px) 8px;
}
.cf-starmap-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(255,255,255,0.06);
  color: var(--sm-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
}
.cf-starmap-back:hover { background: rgba(255,255,255,0.14); }
.cf-starmap-titles { flex: 1; min-width: 0; }
.cf-starmap-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sm-cyan);
}
.cf-starmap-titles h1 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cf-starmap-titles p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--sm-soft);
  line-height: 1.45;
}
.cf-starmap-prog-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12px;
  color: var(--sm-soft);
  white-space: nowrap;
}
.cf-starmap-prog-chip strong {
  color: #bae6fd;
  font-variant-numeric: tabular-nums;
}
.cf-starmap-mini-bar {
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 58, 100, 0.8);
  overflow: hidden;
}
.cf-starmap-mini-bar.tall {
  width: 100%;
  height: 8px;
  margin: 8px 0 10px;
}
.cf-starmap-mini-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
}

.cf-starmap-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 8px clamp(20px, 4vw, 48px) 28px;
  min-height: 520px;
  flex: 1;
}
.cf-starmap-stage {
  position: relative;
  min-height: 480px;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 71, 151, 0.22), transparent 42%),
    rgba(2, 8, 24, 0.35);
  overflow: hidden;
}
.cf-starmap-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.cf-starmap-edges path {
  fill: none;
  stroke: rgba(77, 143, 255, 0.45);
  stroke-width: 0.45;
  stroke-linecap: round;
}
.cf-starmap-edges path.is-done {
  stroke: rgba(61, 229, 188, 0.55);
}
.cf-starmap-edges path.is-locked {
  stroke: rgba(100, 116, 139, 0.35);
  stroke-dasharray: 1.2 1.2;
}
.cf-starmap-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cf-planet {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sm-ink);
  cursor: pointer;
  z-index: 5;
  animation: cf-float 5.5s ease-in-out infinite;
}
.cf-planet:nth-child(odd) { animation-delay: -1.5s; }
.cf-planet:nth-child(3n) { animation-delay: -3s; }
.cf-planet:hover:not(:disabled) { filter: brightness(1.12); z-index: 10; }
.cf-planet:disabled { cursor: not-allowed; }
@keyframes cf-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}

.cf-planet-orb {
  --pa: #58d8ff;
  --pb: #1266ee;
  --pc: #e5fbff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid rgba(223, 245, 255, 0.9);
  position: relative;
  background:
    radial-gradient(circle at 64% 68%, transparent 0 17%, rgba(255,255,255,0.42) 18% 21%, transparent 22%),
    radial-gradient(ellipse at 27% 30%, var(--pc) 0 11%, transparent 12%),
    conic-gradient(from 32deg, var(--pa), var(--pb) 21%, var(--pc) 27%, var(--pb) 40%, var(--pa) 58%, var(--pb) 73%, var(--pc) 79%, var(--pa));
  box-shadow:
    inset -10px -10px 16px rgba(0, 10, 43, 0.72),
    inset 8px 6px 12px rgba(255,255,255,0.23),
    0 0 7px 2px var(--pa),
    0 0 22px 6px color-mix(in srgb, var(--pa) 55%, transparent);
}
.cf-planet.cleared .cf-planet-orb {
  --pa: #3ee9bf; --pb: #068b91; --pc: #bfffe7;
}
.cf-planet.locked .cf-planet-orb {
  --pa: #aeb8b8; --pb: #526064; --pc: #d6dfdf;
  opacity: 0.72;
  filter: grayscale(0.25);
}
.cf-planet.is-current .cf-planet-orb {
  width: 60px;
  height: 60px;
  box-shadow:
    inset -10px -10px 16px rgba(0, 10, 43, 0.72),
    inset 8px 6px 12px rgba(255,255,255,0.23),
    0 0 0 4px rgba(56, 189, 248, 0.28),
    0 0 28px 8px rgba(56, 189, 248, 0.45);
  animation: cf-pulse 1.6s ease-in-out infinite;
}
.cf-planet.boss .cf-planet-orb {
  --pa: #ffd269; --pb: #9b5b17; --pc: #fff2bd;
}
@keyframes cf-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.cf-planet-label {
  text-align: center;
  line-height: 1.25;
  max-width: 110px;
}
.cf-planet-label strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.cf-planet-label span {
  font-size: 10px;
  font-weight: 700;
  color: var(--sm-cyan);
}
.cf-planet.locked .cf-planet-label span { color: var(--sm-muted); }
.cf-planet.cleared .cf-planet-label span { color: #6ee7b7; }
.cf-chapter-tag {
  position: absolute;
  left: 4%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(186, 230, 253, 0.7);
  text-transform: none;
  pointer-events: none;
  z-index: 1;
}

.cf-starmap-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-star-panel {
  background: var(--sm-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--sm-border);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
}
.cf-star-panel.muted { opacity: 0.92; }
.cf-star-panel h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.cf-star-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.cf-star-panel-top em {
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
}
.cf-star-panel-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sm-soft);
  font-weight: 600;
}
.cf-star-panel-note {
  margin: 0;
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
  line-height: 1.4;
}
.cf-star-panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sm-cyan);
}
.cf-focus-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cf-mini-planet {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(223, 245, 255, 0.85);
  background:
    radial-gradient(ellipse at 30% 28%, #e5fbff, transparent 40%),
    conic-gradient(from 32deg, #58d8ff, #1266ee 40%, #58d8ff);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}
.cf-mini-planet.cleared {
  background: conic-gradient(from 32deg, #3ee9bf, #068b91 40%, #3ee9bf);
  box-shadow: 0 0 16px rgba(61, 229, 188, 0.45);
}
.cf-mini-planet.boss {
  background: conic-gradient(from 32deg, #ffd269, #9b5b17 40%, #ffd269);
  box-shadow: 0 0 16px rgba(255, 210, 105, 0.45);
}
.cf-focus-row strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.cf-focus-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sm-soft);
  line-height: 1.4;
}
.cf-challenge-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(30, 58, 120, 0.9), rgba(15, 30, 70, 0.95));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cf-challenge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.cf-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--sm-soft);
}
.cf-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.cf-legend .lg.cleared { background: #3de5bc; box-shadow: 0 0 8px #3de5bc; }
.cf-legend .lg.current { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.cf-legend .lg.locked { background: #64748b; }
.cf-legend .lg.boss { background: #ffd269; box-shadow: 0 0 8px #ffd269; }

@media (max-width: 900px) {
  .cf-starmap-body { grid-template-columns: 1fr; }
  .cf-starmap-stage { min-height: 420px; }
  .app.app--starmap .topbar { margin: 0 16px; }
}

.quest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.quest-main h1 { font-size: 22px; margin: 10px 0; }
.quest-help-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.guide-head h3 { margin: 0 0 4px; }
.guide-head .muted { font-size: 12px; margin: 0 0 10px; }
.guide-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 4px;
  color: var(--blue);
  background: rgba(82, 109, 255, 0.1);
}
.quest-side.is-highlight {
  box-shadow: 0 0 0 2px rgba(82, 109, 255, 0.28), var(--shadow);
}
.quiz-item {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.05);
  font-size: 14px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.quiz-opts label {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}
.guide-list { padding-left: 18px; font-size: 13px; line-height: 1.8; }
.ai-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(82,109,255,0.08), rgba(104,86,255,0.1));
  font-size: 13px;
  line-height: 1.55;
}
.ai-box > .ai-box-title,
.ai-box > strong.ai-box-title {
  display: block;
  margin-bottom: 6px;
  color: var(--violet);
  font-weight: 700;
}
.ai-box-body {
  color: var(--ink, #1e2433);
}
.ai-box-body > p {
  margin: 0 0 8px;
}
.ai-box-body > p:last-child {
  margin-bottom: 0;
}
.ai-box-body strong {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: 700;
}
.ai-box-list {
  margin: 6px 0 10px;
  padding-left: 1.15em;
  list-style: disc;
}
.ai-box-list li {
  margin: 4px 0;
}
.rule-list { padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ?? Profile / points / admin ?? */
.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-hero-left { display: flex; gap: 14px; align-items: center; }
.big-avatar { width: 64px; height: 64px; }
.profile-hero-right { display: flex; gap: 8px; }
.section-title { font-size: 16px; margin: 8px 0 12px; }

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.identity-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.identity-card.owned {
  border-color: rgba(82, 109, 255, 0.35);
  background: linear-gradient(180deg, rgba(82,109,255,0.1), #fff);
}
.identity-card.special {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.4);
}
.identity-card.empty { opacity: 0.55; }
.id-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-weight: 800;
}
.identity-card strong { display: block; font-size: 14px; }
.identity-card small { color: var(--muted); font-size: 11px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.simple-list { list-style: none; font-size: 13px; }
.simple-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(99,102,241,0.08);
}
.linkish { color: var(--blue); font-weight: 600; font-size: 12px; }

.points-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.points-balance {
  background: linear-gradient(145deg, #526dff, #6856ff);
  color: #fff;
  border: 0;
}
.points-balance small { opacity: 0.85; }
.points-balance strong { display: block; font-size: 40px; margin: 6px 0 10px; }
.points-balance p { opacity: 0.9; font-size: 13px; margin-bottom: 14px; }

.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.buy-card {
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.buy-card.featured {
  background: linear-gradient(180deg, rgba(82,109,255,0.12), #fff);
  border-color: rgba(82, 109, 255, 0.35);
}
.buy-card b { font-size: 16px; }
.buy-card span { color: var(--muted); font-size: 12px; }
.buy-card em { font-style: normal; font-size: 10px; color: #ea580c; font-weight: 700; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.admin-grid label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.table-mock {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  font-size: 12px;
}
.tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 0.7fr;
  padding: 8px 10px;
  background: #fff;
}
.tr.head { background: rgba(82, 109, 255, 0.08); font-weight: 700; }
.tr + .tr { border-top: 1px solid rgba(99,102,241,0.08); }

.proto-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  align-items: center;
  padding: 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.crowd-bar {
  position: relative;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(82, 109, 255, 0.12);
  overflow: hidden;
}
.crowd-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.crowd-bar em {
  position: absolute;
  right: 0;
  top: -16px;
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.crowd-idea i { background: linear-gradient(90deg, #ff8a4c, #ff5d8f); }

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.panel-head-row h3 { margin: 0; }

.update-compose textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  resize: vertical;
}

.rule-banner {
  border-color: rgba(82, 109, 255, 0.28);
  background: linear-gradient(135deg, rgba(82,109,255,0.08), rgba(255,255,255,0.88));
}
.backlink-entries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.mini-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.gate-panel .gate-status {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gate-status.fail {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}
.success-panel {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), #fff);
}

.upload-zone {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(99, 102, 241, 0.35);
  background: rgba(82, 109, 255, 0.04);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}
.check-row input { width: auto !important; margin: 0 !important; }

.pbl-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .pbl-admin-grid { grid-template-columns: 1fr; }
}
/* ?????label ??????? textarea ??????? */
.pbl-admin > label,
.pbl-admin .pbl-fieldset > label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}
.pbl-admin > label.check-row,
.pbl-admin .pbl-fieldset > label.check-row {
  display: flex !important;
  width: auto;
  margin-top: 14px;
}
.pbl-admin .pbl-admin-grid > label {
  margin-top: 0;
}
.pbl-admin label:not(.check-row) > input,
.pbl-admin label:not(.check-row) > textarea,
.pbl-admin label:not(.check-row) > select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  box-sizing: border-box;
}
.pbl-admin label:not(.check-row) > textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
  font-family: ui-monospace, "Cascadia Mono", "Sarasa Mono SC", Consolas, monospace;
  font-size: 13px;
}
.pbl-fieldset {
  margin: 16px 0;
  padding: 14px 16px 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.03);
}
.pbl-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}
.pbl-hint { margin: 6px 0 12px; font-size: 14px; line-height: 1.6; }
.pbl-accept-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
}
.pbl-accept-row .check-row { margin-top: 4px; }
.upload-zone.is-done {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}
.defense-q-list { display: grid; gap: 14px; margin: 16px 0; }
.defense-q-item {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
}
.defense-q-item strong { display: block; margin-bottom: 8px; }
.quest-multi-q { display: grid; gap: 16px; }
.quest-multi-q .exam-q-block {
  padding-top: 8px;
  border-top: 1px dashed rgba(99, 102, 241, 0.18);
}
.quest-multi-q .exam-q-block:first-child { border-top: 0; padding-top: 0; }
.quest-multi-q .exam-q-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.quest-multi-q .exam-q-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  color: #1e4f8a;
  background: #e8f1fc;
  white-space: nowrap;
}
#quest-result-panel.is-fail {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, rgba(239,68,68,0.06), #fff);
}
#quest-result-panel.is-fail #quest-result-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.pick-card {
  text-align: left;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.pick-card:hover { transform: translateY(-2px); }
.pick-card h3 { margin: 12px 0 6px; font-size: 16px; }
.pick-card p { font-size: 13px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.pick-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(104, 86, 255, 0.1);
}
.muted-pick { opacity: 0.75; }
.di-5 { background: linear-gradient(135deg, #64748b, #526dff); }

.note-panel {
  border-style: dashed;
}

.creator-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
}
.creator-banner strong { color: #b45309; }
.creator-banner span { font-size: 13px; color: var(--muted); }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* ???? / ????? */
#view-admin {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.is-admin-only .app.app--path:has(#view-admin.active),
body.is-admin-only .app.app--train-zone:has(#view-admin.active) {
  padding: 0 !important;
  gap: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.is-admin-only #view-admin.active {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
body.is-admin-only #view-admin.active .admin-shell {
  flex: 1;
  min-height: 100%;
  height: 100%;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  width: 100%;
  height: 100%;
}
body.is-staff .admin-shell:has(.admin-rail:not([hidden])) {
  grid-template-columns: 232px minmax(0, 1fr);
}
.admin-rail {
  display: none;
  position: sticky;
  top: 0;
  align-self: stretch;
  height: 100dvh;
  flex-direction: column;
  gap: 2px;
  padding: 20px 14px 16px;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(82, 109, 255, 0.35), transparent 60%),
    radial-gradient(420px 240px at 100% 100%, rgba(104, 86, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #1a3d8f 0%, var(--ink) 48%, #0e2458 100%);
  color: #eef3ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
body.is-admin-only .admin-rail:not([hidden]),
.admin-rail:not([hidden]) {
  display: flex;
}
body:not(.is-admin-only):not(.is-staff) .admin-shell {
  grid-template-columns: 1fr;
}
.admin-rail-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-rail-brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.admin-rail-brand span {
  font-size: 12px;
  color: rgba(238, 243, 255, 0.62);
}
.admin-rail-label {
  margin: 14px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(238, 243, 255, 0.42);
}
.admin-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: auto;
}
.admin-rail-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 243, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.admin-rail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.admin-rail-btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 18px rgba(82, 109, 255, 0.35);
}
.admin-rail-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-rail-logout {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 243, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-rail-logout:hover {
  background: rgba(255, 93, 143, 0.18);
  border-color: rgba(255, 93, 143, 0.4);
}
.admin-main {
  min-width: 0;
  min-height: 100%;
  height: 100%;
  overflow: auto;
  padding: 16px 28px 24px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #f7faff 0%, var(--bg) 42%, #f1f5f9 100%);
}
body.is-admin-only #view-admin {
  background: var(--bg);
}
.admin-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100% - 8px);
  display: flex;
  flex-direction: column;
}
.admin-module.is-on .admin-workspace,
.admin-module:not([hidden]) .admin-workspace {
  flex: 1;
}

/* ?? ???? ? ????? ?? */
.admin-workspace--create {
  align-items: stretch;
  padding: 8px 20px 28px;
  box-sizing: border-box;
}
.admin-create-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  margin: 0 0 14px;
}
.admin-create-topnav {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 0 0;
  flex-shrink: 0;
}
.admin-create-page {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-create-page--landscape {
  width: 100%;
}
.admin-mode-bar {
  order: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.admin-mode-bar[hidden] {
  display: none !important;
}
.admin-create-hero {
  padding: 10px 18px 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 255, 0.88) 100%);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.08);
}
.admin-create-fields--landscape {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}
.admin-create-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.admin-create-col--resources {
  min-height: 100%;
}
.admin-create-col--resources .admin-resource-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
}
.admin-create-col--resources .admin-upload-zone {
  flex: 1;
  min-height: 168px;
}
.admin-create-col--resources .admin-resource-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.admin-create-hero__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.admin-create-hero__bar--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 36px;
}
.admin-create-hero__bar--compact .admin-create-hero__title {
  justify-self: auto;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.admin-create-hero__bar--compact .admin-create-hero__pill {
  position: static;
  transform: none;
  flex-shrink: 0;
}
.admin-create-hero__back {
  justify-self: start;
  margin: 0;
  font-size: 13px;
}
.admin-create-hero__title {
  justify-self: center;
  text-align: center;
  min-width: 0;
}
.admin-create-hero__title h1 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.admin-create-hero__title .admin-create-kicker {
  display: none;
}
.admin-create-hero__pill {
  justify-self: end;
}
.admin-create-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}
.admin-workspace--create .admin-create-step-hint {
  margin-bottom: 0;
  justify-content: center;
  text-align: center;
}
.admin-create-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-workspace--create .admin-create-hero__title {
  justify-self: start;
  text-align: left;
}
.admin-workspace--create .admin-create-card {
  max-width: 100%;
  width: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(61, 80, 160, 0.07);
}
.admin-create-card-head--compact {
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.admin-workspace--create .admin-create-fields--main {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.admin-workspace--create .admin-create-steps {
  max-width: none;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.07);
}
.admin-workspace--create .admin-step-btn {
  padding: 10px 12px;
  min-height: 48px;
}
.admin-workspace--create .admin-step-btn em {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.admin-workspace--create .admin-step-btn b {
  font-size: 14px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 960px) {
  .admin-create-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-create-topnav {
    padding-top: 0;
  }
  .admin-create-fields--landscape {
    grid-template-columns: 1fr;
  }
  .admin-create-col--resources .admin-upload-zone {
    min-height: 140px;
  }
}
@media (max-width: 640px) {
  .admin-workspace--create {
    padding-inline: 12px;
  }
  .admin-create-hero {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }
  .admin-create-hero__bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }
  .admin-create-hero__bar--compact {
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    align-items: flex-start;
  }
  .admin-create-hero__bar--compact .admin-create-hero__title {
    text-align: left;
    width: 100%;
  }
  .admin-create-hero__bar--compact .admin-create-hero__pill {
    align-self: flex-start;
  }
  .admin-create-topnav {
    margin-bottom: 0;
  }
  .admin-create-hero__pill {
    justify-self: center;
  }
  .admin-workspace--create .admin-create-card {
    padding: 16px;
  }
}

.admin-create-kicker {
  display: none;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
body.is-admin-only .admin-create-kicker {
  display: block;
}
.admin-module {
  display: none;
}
.admin-module.is-on,
.admin-module:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
}
.admin-module[hidden] {
  display: none !important;
}

.admin-basics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .admin-basics-grid {
    grid-template-columns: 1fr;
  }
}

.admin-subpage {
  max-width: none;
  margin: 0;
  padding: 0;
}
.admin-subbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink), #1a3d8f);
  box-shadow: var(--shadow);
}
.admin-subbar-home {
  margin-right: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.admin-subbar .admin-nav-btn {
  color: rgba(238, 243, 255, 0.8);
}
.admin-subbar .admin-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.admin-subbar .admin-nav-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: none;
}
.admin-subpage-card {
  background: #fff;
}

.work-grade-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 14px;
}
.work-grade-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.work-grade-filters label[hidden],
#work-grade-result-wrap[hidden] {
  display: none !important;
}
.work-grade-filters select {
  min-width: 180px;
}
.work-grade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.work-grade-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(19, 45, 103, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
}
.work-grade-main {
  flex: 1;
  min-width: 0;
}
.work-grade-main h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.work-grade-main p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}
.work-grade-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  max-width: 160px;
}
.work-grade-actions .btn-sm {
  white-space: nowrap;
}
.work-grade-ai {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.work-grade-ai.is-pass {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}
.work-grade-ai.is-fail {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
}
.work-grade-ai.is-pending {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}
.work-grade-ai-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.work-grade-ai-status.is-ready {
  color: #059669;
}
.work-grade-ai-status.is-off {
  color: #b45309;
}
[data-admin-module-pane='work-grade'].is-ai-busy {
  /* 后台批改：不再遮罩、不禁用整页 */
}
[data-admin-module-pane='work-grade'].is-ai-busy::after {
  content: none;
  display: none;
}
.work-grade-import-panel {
  margin-bottom: 16px;
}
.work-grade-test-context {
  margin: 0 0 10px;
  font-size: 13px;
}
.work-grade-test-context.is-warn {
  color: #b45309;
}
.work-grade-test-prompt-block {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.work-grade-test-prompt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.work-grade-test-prompt-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}
.work-grade-test-prompt-hint {
  font-size: 12px;
}
.work-grade-test-pass-preview {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
}
.work-grade-test-prompt-input {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
}
.work-grade-test-prompt-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
#btn-work-grade-test-prompt-reset {
  margin-top: 8px;
}
.work-grade-test-note-field {
  margin-top: 8px;
}
.work-grade-test-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(67, 56, 202, 0.06);
  border: 1px solid rgba(67, 56, 202, 0.18);
}
.work-grade-test-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.work-grade-test-summary {
  margin: 0 0 8px;
  line-height: 1.5;
}
.work-grade-test-checks {
  margin: 0 0 8px;
  padding-left: 1.2em;
  font-size: 13px;
}
.work-grade-test-checks .is-ok {
  color: #047857;
}
.work-grade-test-checks .is-bad {
  color: #b91c1c;
}
.work-grade-test-suggest,
.work-grade-test-foot {
  margin: 6px 0 0;
  font-size: 12px;
}
.work-import-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.work-import-format-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4338ca;
}
.work-import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
}
.work-import-field-wide {
  grid-column: 1 / -1;
}
.work-import-field-wide textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
}
.work-import-run-ai {
  grid-column: 1 / -1;
  margin: 0;
}
.work-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.work-import-hint {
  font-size: 12px;
}
.work-grade-ai__summary {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}
.work-grade-ai__checks {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}
.work-grade-ai__checks .is-ok {
  color: #059669;
}
.work-grade-ai__checks .is-bad {
  color: #b45309;
}
.work-grade-ai__note {
  margin: 8px 0 0;
  font-size: 12px;
}
.admin-create-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ??????? admin-console.css??720px? */

.admin-create-header {
  margin: 0 0 14px;
  text-align: left;
}
.admin-create-header .back-link {
  display: inline-flex;
  margin-bottom: 8px;
}
.admin-create-heading h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.admin-create-sub {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ?? ??????????? ? ??? ?? */
.admin-mode-bar__kicker {
  display: none;
}
.admin-mode-switch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.admin-mode-switch__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 72px;
  padding: 5px;
  border-radius: 16px;
  border: 2px solid rgba(99, 102, 241, 0.22);
  background: #fff;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
}
.admin-mode-switch__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 7px);
  height: calc(100% - 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, #4f7cff 0%, #7c5cff 100%);
  box-shadow: 0 6px 18px rgba(82, 109, 255, 0.38);
  transition: left 0.3s cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}
.admin-mode-switch[data-mode="manual"] .admin-mode-switch__thumb,
.admin-mode-switch.is-manual .admin-mode-switch__thumb {
  left: calc(50% + 2px);
}
.admin-mode-switch__btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 62px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.admin-mode-switch.is-locked .admin-mode-switch__btn {
  opacity: 0.72;
  cursor: not-allowed;
}
.admin-mode-switch__btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.admin-mode-switch__btn:hover:not(.is-on) {
  color: var(--ink);
}
.admin-mode-switch__btn.is-on {
  color: #fff;
}
.admin-mode-switch__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.admin-mode-switch__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}
.admin-mode-switch__label {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-mode-switch__sub {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0.88;
}
.admin-mode-switch__btn:not(.is-on) .admin-mode-switch__sub {
  color: #94a3b8;
}
.admin-mode-switch__btn.is-on .admin-mode-switch__sub {
  color: rgba(255, 255, 255, 0.92);
}
.admin-mode-switch__desc {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.admin-workspace--create .admin-mode-switch__desc {
  text-align: left;
}
@media (max-width: 560px) {
  .admin-mode-switch__track {
    min-height: 62px;
  }
  .admin-mode-switch__btn {
    flex-direction: column;
    gap: 4px;
    padding: 10px 6px;
    min-height: 52px;
  }
  .admin-mode-switch__text {
    align-items: center;
    text-align: center;
  }
  .admin-mode-switch__icon {
    font-size: 20px;
  }
  .admin-mode-switch__label {
    font-size: 13px;
  }
}

.admin-nav--seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 16px rgba(61, 80, 160, 0.05);
}
.admin-nav-btn {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: 0.15s ease;
  white-space: nowrap;
}
.admin-nav-btn:hover {
  color: var(--ink);
  background: rgba(82, 109, 255, 0.06);
}
.admin-nav-btn.is-active {
  color: var(--ink);
  background: rgba(82, 109, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(82, 109, 255, 0.18);
}
.admin-rail .admin-nav-btn {
  padding: 9px 12px;
  color: rgba(238, 243, 255, 0.82);
  background: transparent;
  box-shadow: none;
}
.admin-rail .admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.admin-rail .admin-nav-btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 18px rgba(82, 109, 255, 0.35);
}

.admin-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
  width: 100%;
}
.admin-create-layout--wizard .admin-create-card {
  min-height: auto;
}
.admin-create-card,
.admin-guide-card {
  margin-bottom: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.admin-create-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.admin-create-card-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
#btn-pbl-clear-tasks,
#btn-pbl-delete-draft {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.25);
}
#btn-pbl-delete-draft {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.25);
}
.admin-step-tag {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.admin-create-card-head h3 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.admin-create-card-lead {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
}
.admin-create-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.admin-check--inline {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ????????? */
.admin-create-steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  background: rgba(82, 109, 255, 0.06);
  border: 1px solid var(--glass-border);
}
.admin-create-step-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.admin-basics-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.admin-basics-status.is-done {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.22);
}
.admin-create-step-hint__text {
  flex: 1;
  min-width: 0;
}
.admin-create-steps > li.is-locked .admin-step-btn,
.admin-create-steps .admin-step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.admin-create-steps > li.is-locked .admin-step-btn:hover,
.admin-create-steps .admin-step-btn:disabled:hover {
  background: transparent;
}
.admin-create-fields--solo {
  max-width: none;
}
.admin-pricing-block--step {
  margin-top: 0;
  padding: 18px 20px;
}
.admin-pricing-block--inline {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.04);
}
.admin-create-fields--pricing {
  display: grid;
  grid-template-columns: minmax(140px, 200px) auto auto;
  align-items: center;
  gap: 12px 16px;
}
.admin-create-fields--pricing .admin-field--price {
  margin: 0;
}
.admin-create-fields--pricing #cur-pricing-preview {
  grid-column: 1 / -1;
  margin: 0;
}
.admin-create-fields--pricing #cur-pricing-error {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .admin-create-fields--pricing {
    grid-template-columns: 1fr;
  }
}
.admin-create-footer--step3 .admin-create-footer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .admin-create-steps {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
.admin-create-steps > li.is-done:not(.is-current) .admin-step-btn em {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
}
.admin-step-lock {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}
.admin-create-steps > li:not(.is-locked) .admin-step-lock {
  display: none;
}
.admin-step-btn {
  position: relative;
}
.admin-section-optional {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(99, 102, 241, 0.08);
}
.admin-pricing-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.admin-pricing-block__head .admin-section-title {
  margin: 0;
}
.admin-create-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.admin-create-step-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(82, 109, 255, 0.1);
}
.admin-create-footer--sticky {
  align-items: flex-end;
}
.admin-create-footer--step2 {
  margin-top: 20px;
}
.admin-pricing-block.is-disabled {
  opacity: 0.72;
}
.admin-pricing-block.is-disabled .admin-create-fields input,
.admin-pricing-block.is-disabled .admin-create-fields label {
  pointer-events: none;
}
.admin-pricing-block.is-disabled .admin-pricing-actions .btn:not(:disabled) {
  pointer-events: none;
  opacity: 0.55;
}
@media (max-width: 640px) {
  .admin-create-step-hint {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-create-footer__meta {
    width: 100%;
  }
}
.admin-panel {
  display: none;
  width: 100%;
  margin: 0 0 12px;
}
.admin-panel.is-on,
.admin-panel:not([hidden]) {
  display: block;
}
.admin-panel[hidden] {
  display: none !important;
}
.admin-create-card--full {
  width: 100%;
  max-width: none;
}
.admin-draft-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(82, 109, 255, 0.06);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  line-height: 1.45;
}
.admin-pricing-block {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 243, 255, 0.85) 100%);
}
.admin-section-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.admin-section-lead {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
}
.admin-pricing-actions {
  margin-top: 10px;
  flex-wrap: wrap;
}
.admin-create-steps > li {
  margin: 0;
}
.admin-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: 0.15s ease;
}
.admin-step-btn em {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}
.admin-step-btn span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.admin-step-btn b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-step-btn small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.admin-create-steps > li.is-current .admin-step-btn {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(61, 80, 160, 0.1);
}
.admin-create-steps > li.is-current .admin-step-btn em {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.admin-step-btn:hover {
  background: rgba(255, 255, 255, 0.55);
}
.admin-nav--staff {
  margin-bottom: 12px;
}
.admin-wizard-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-wizard-tips li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px solid #eef1f7;
}
.admin-wizard-tips li.is-on {
  background: rgba(82, 109, 255, 0.08);
  border-color: rgba(82, 109, 255, 0.18);
}
.admin-wizard-tips b {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #1a2744;
  line-height: 1.35;
  margin-bottom: 3px;
}
.admin-wizard-tips small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
@media (max-width: 900px) {
  .admin-create-steps {
    grid-template-columns: 1fr;
  }
}
.admin-create-card-desc {
  display: none;
}
.admin-create-pill {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: var(--blue);
  background: rgba(82, 109, 255, 0.1);
}

.admin-create-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-create-fields--main {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(248, 250, 255, 0.55);
}
.admin-fields-section-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 600;
}
.admin-field--price input {
  max-width: 140px;
}
.admin-field-label {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}
.admin-field input,
.admin-field textarea,
.admin-field select,
.admin-create-fields input,
.admin-create-fields textarea,
.admin-create-fields select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.45;
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: rgba(82, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(82, 109, 255, 0.14);
}
.admin-create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}
.admin-create-footer--sticky {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(61, 80, 160, 0.1);
}
.admin-create-footer--sticky .admin-create-hint {
  flex: 1;
  min-width: 0;
  color: var(--muted);
}
.admin-create-footer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.admin-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.admin-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(99, 102, 241, 0.16);
  background: #fff;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 1px 3px rgba(61, 80, 160, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-mode-card:hover {
  border-color: rgba(79, 124, 255, 0.45);
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.1);
}
.admin-mode-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 20px;
  line-height: 1;
  background: rgba(82, 109, 255, 0.1);
}
.admin-mode-card.is-on .admin-mode-card__icon {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 4px 12px rgba(82, 109, 255, 0.35);
}
.admin-mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-mode-card__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.admin-mode-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.admin-mode-card__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.admin-mode-card__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.25);
  background: #fff;
  margin-top: 2px;
  transition: 0.15s ease;
}
.admin-mode-card.is-on {
  border-color: #4f7cff;
  background: linear-gradient(135deg, rgba(244, 248, 255, 0.95) 0%, #fff 55%);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12), 0 6px 18px rgba(79, 124, 255, 0.1);
}
.admin-mode-card.is-on .admin-mode-card__check {
  border-color: #4f7cff;
  background: #4f7cff;
  box-shadow: inset 0 0 0 3px #fff;
}
.admin-mode-card em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue, #3b6cff);
}
.admin-mode-card strong {
  font-size: 15px;
}
.admin-mode-card > span:not([class]) {
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}
.admin-resource-block,
.pbl-resource-library-box {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.admin-resource-block[hidden] {
  display: none !important;
}
.admin-resource-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.admin-resource-block__head .admin-section-title {
  margin: 0;
}
.admin-resource-block__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(82, 109, 255, 0.12);
}
.admin-resource-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
  align-items: center;
}
.admin-resource-input {
  flex: 1 1 180px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-resource-input--short {
  flex: 0 1 160px;
}
.admin-resource-input:focus {
  outline: none;
  border-color: rgba(82, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(82, 109, 255, 0.14);
}
.admin-resource-link-row input:not(.admin-resource-input) {
  flex: 1 1 160px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d5deee;
}
.admin-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 18px 14px;
  margin: 8px 0;
  border-radius: 12px;
  border: 1.5px dashed rgba(79, 124, 255, 0.35);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-upload-zone:hover {
  border-color: #4f7cff;
  background: rgba(244, 248, 255, 0.85);
}
.admin-upload-zone__icon {
  font-size: 24px;
  line-height: 1;
  opacity: 0.88;
}
.admin-upload-zone strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}
.admin-resource-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-resource-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.admin-resource-list li .kind {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #3b6cff;
}
.admin-resource-list li button {
  margin-left: auto;
}
.pbl-ai-lazy-panel {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(224, 231, 255, 0.85) 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}
.pbl-manual-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 7px 12px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(248, 250, 252, 0.92);
}
.pbl-manual-tip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}
.pbl-manual-tip__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}
.pbl-manual-tip__ai {
  font-style: normal;
  font-weight: 700;
  color: #6366f1;
}
.pbl-ai-lazy-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pbl-ai-lazy-panel__head .admin-section-title {
  margin: 0;
}
.pbl-ai-lazy-result {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: #3730a3;
}
.pbl-ai-lazy-actions {
  margin: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.pbl-ai-lazy-actions .btn[hidden],
#btn-pbl-ai-regenerate[hidden] {
  display: none !important;
}
.pbl-lazy-waiting {
  margin: 0 0 16px;
}
.pbl-lazy-waiting__inner {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(248, 250, 255, 0.85);
  text-align: center;
}
.pbl-lazy-waiting__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #4338ca;
}
.pbl-lazy-waiting__lead {
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
  font-size: 13px;
  line-height: 1.55;
}
.pbl-lazy-review[hidden] {
  display: none !important;
}
.pbl-lazy-waiting[hidden] {
  display: none !important;
}
.admin-ai-job-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1200;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}
.admin-ai-job-bar__inner {
  pointer-events: auto;
  padding: 14px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.18);
  backdrop-filter: blur(8px);
}
.admin-ai-job-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.admin-ai-job-bar__head strong {
  font-size: 14px;
  color: #312e81;
}
.admin-ai-job-bar__pct {
  font-size: 13px;
  font-weight: 800;
  color: #4338ca;
}
.admin-ai-job-bar__msg {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.admin-ai-job-bar.is-clickable .admin-ai-job-bar__inner {
  cursor: pointer;
}
.admin-ai-job-bar.is-clickable .admin-ai-job-bar__inner:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.22);
}
.admin-ai-job-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-ai-job-bar__hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #6366f1;
  font-weight: 600;
}
.admin-ai-job-bar__dismiss {
  appearance: none;
  border: 0;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-ai-job-bar__cancel {
  appearance: none;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: #fff;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-ai-job-bar__cancel:hover {
  background: #fef2f2;
}
.admin-ai-job-bar__cancel:disabled {
  opacity: 0.55;
  cursor: wait;
}
.admin-ai-job-bar.is-cancelled .admin-ai-job-bar__track i {
  background: #f59e0b;
}
.admin-ai-job-bar__dismiss:hover {
  background: rgba(99, 102, 241, 0.18);
}
.admin-ai-job-bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  overflow: hidden;
}
.admin-ai-job-bar__track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  transition: width 0.35s ease;
}
.admin-ai-job-bar.is-failed .admin-ai-job-bar__track i {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}
.admin-ai-job-bar.is-done .admin-ai-job-bar__track i {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.pbl-level-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(248, 250, 255, 0.75);
}
.pbl-chapter-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
  margin: 0;
}
.pbl-chapter-pick__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.pbl-more-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
}
.pbl-defense-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-top: 8px;
}
.pbl-course-context {
  margin: 4px 0 0;
  font-size: 13px;
}
.pbl-level-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pbl-task-nodes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  background: #fff;
}
.pbl-task-nodes-bar__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  flex: 0 0 auto;
}
.pbl-task-nodes-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 1 1 200px;
  min-width: 0;
}
.pbl-task-nodes-bar__empty {
  font-size: 13px;
}
.pbl-task-node-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
}
.pbl-task-node-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
}
.pbl-task-node-chip[data-node-type="work"] {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}
.pbl-task-node-chip[data-node-type="work"] em {
  color: #059669;
}
.pbl-level-toolbar__ai {
  margin-left: auto;
}
@media (max-width: 560px) {
  .pbl-level-toolbar__ai {
    margin-left: 0;
    width: 100%;
  }
}

/* ?? ??????? ?? */
.pbl-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pbl-meta-card {
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(248, 250, 255, 0.9) 100%);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.06);
}
.pbl-meta-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pbl-meta-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #312e81;
}
.pbl-meta-card__badge {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}
.pbl-admin-grid--meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pbl-admin-grid--meta .admin-field--wide {
  grid-column: span 2;
}
@media (max-width: 1080px) {
  .pbl-admin-grid--meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pbl-admin-grid--meta .admin-field--wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .pbl-admin-grid--meta {
    grid-template-columns: 1fr;
  }
  .pbl-admin-grid--meta .admin-field--wide {
    grid-column: auto;
  }
}
.pbl-admin-grid--compact {
  margin-bottom: 12px;
}
.pbl-admin-grid--compact .pbl-inline-check {
  align-self: end;
  padding-bottom: 8px;
  margin: 0 !important;
}
.admin-field--wide {
  grid-column: 1 / -1;
}
.admin-field--narrow input {
  max-width: 120px;
}

/* ?? ??????? / ?? / ??? ?? */
.pbl-section-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: #fff;
  box-shadow: 0 1px 4px rgba(61, 80, 160, 0.05);
}
.pbl-section-card__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #312e81;
  background: rgba(248, 250, 255, 0.85);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  box-sizing: border-box;
}
.pbl-section-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  flex-shrink: 0;
}
.pbl-section-card__toggle {
  margin: 0 !important;
  font-weight: 800;
  font-size: 14px;
}
.pbl-section-card > .pbl-hint,
.pbl-section-card > .pbl-admin-grid,
.pbl-section-card > .pbl-code-panel,
.pbl-section-card > .pbl-bank-editor,
.pbl-section-card > .pbl-guide-editor,
.pbl-section-card > .pbl-work-editor,
.pbl-section-card > #pbl-unit-ai-field,
.pbl-section-card > .stub-inline-panel,
.pbl-section-card > .pbl-accept-row,
.pbl-section-card > .pbl-resource-link-row,
.pbl-section-card > .admin-resource-list,
.pbl-section-card > .pbl-library-details,
.pbl-section-card > .admin-field,
.pbl-section-card > label.check-row {
  margin-left: 16px;
  margin-right: 16px;
}
.pbl-section-card > .pbl-hint:first-of-type {
  margin-top: 12px;
}
.pbl-section-card > .pbl-code-panel:last-of-type,
.pbl-section-card > .admin-field:last-of-type,
.pbl-section-card > .pbl-library-details:last-child {
  margin-bottom: 16px;
}
/* ??? .pbl-fieldset ???????????? */
.pbl-fieldset.pbl-section-card {
  margin: 0;
  padding: 0;
}
.pbl-fieldset.pbl-section-card > legend.pbl-section-card__legend {
  padding: 12px 16px;
  float: none;
  width: 100%;
}
.pbl-section-card .pbl-admin-grid > .admin-field {
  display: flex !important;
  width: auto;
  margin-top: 0 !important;
}
.pbl-section-card > label.check-row:not(.pbl-section-card__toggle) {
  margin-top: 10px;
  margin-bottom: 4px;
}

/* ?? ?? / ?????? ?? */
.pbl-code-panel {
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(248, 250, 255, 0.5);
  overflow: hidden;
}
.pbl-code-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.06);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.pbl-code-panel__head .admin-field-label {
  margin: 0;
}
.pbl-format-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #4338ca;
  font-family: ui-monospace, "Cascadia Mono", "Sarasa Mono SC", Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pbl-code-panel__input {
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  background: #fff;
  resize: vertical;
  line-height: 1.55;
  font-family: ui-monospace, "Cascadia Mono", "Sarasa Mono SC", Consolas, monospace;
  font-size: 13px;
  color: #1e293b;
  box-sizing: border-box;
  outline: none;
}
.pbl-code-panel__input:focus {
  background: #fafbff;
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.pbl-code-panel--guide .pbl-code-panel__input {
  min-height: 90px;
}
.pbl-code-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(248, 250, 255, 0.7);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  margin: 0 !important;
}

/* ?? ???? ? ?? / ?? / ????? ?? */
.pbl-bank-editor,
.pbl-guide-editor {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(248, 250, 255, 0.55);
}
.pbl-bank-editor__head,
.pbl-guide-editor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pbl-bank-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pbl-bank-editor__lead {
  margin: 0 0 10px !important;
}
.pbl-bank-layout {
  display: grid;
  grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 4px;
}
.pbl-bank-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(480px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(99, 102, 241, 0.14);
}
.pbl-bank-tab {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #334155;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.pbl-bank-tab:hover {
  background: rgba(99, 102, 241, 0.06);
}
.pbl-bank-tab.is-active {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 2px 10px rgba(61, 80, 160, 0.08);
}
.pbl-bank-tab__num {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
}
.pbl-bank-tab.is-active .pbl-bank-tab__num {
  background: #6366f1;
  color: #fff;
}
.pbl-bank-tab__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pbl-bank-tab__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.pbl-bank-tab__kind {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.pbl-bank-stage {
  min-width: 0;
}
.pbl-bank-list {
  display: block;
}
.pbl-question-card:not(.is-active) {
  display: none;
}
.pbl-question-card__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pbl-question-card__pos {
  font-size: 13px;
  color: #4338ca;
  white-space: nowrap;
}
.pbl-question-card__head {
  flex-wrap: wrap;
}
.pbl-q-format-readonly {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  line-height: 1.4;
}
.pbl-q-guide-block {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.28);
  background: rgba(248, 250, 255, 0.75);
}
.pbl-q-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pbl-q-guide-hint {
  margin: 0 0 10px !important;
  font-size: 12px !important;
}
.pbl-q-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pbl-q-guide-grid .admin-field--wide {
  grid-column: 1 / -1;
}
.pbl-q-guide-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pbl-q-guide-doc-row input[type="text"],
.pbl-q-guide-doc-row input:not([type="file"]) {
  flex: 1 1 160px;
  min-width: 0;
}
.pbl-q-guide-upload {
  margin: 0;
  cursor: pointer;
}
@media (max-width: 760px) {
  .pbl-q-guide-grid {
    grid-template-columns: 1fr;
  }
}
.pbl-chapter-select {
  max-height: none !important;
  height: auto;
  min-height: 0;
}
.pbl-kind-readonly {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(248, 250, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  color: #4338ca;
  line-height: 1.4;
}
.pbl-q-format-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pbl-q-format-btn {
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.pbl-q-format-btn:hover {
  border-color: rgba(16, 185, 129, 0.55);
  color: #047857;
  background: rgba(16, 185, 129, 0.06);
}
.pbl-q-format-btn.is-active {
  border-color: #10b981;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}
.pbl-q-panel.is-off {
  display: none !important;
}
.pbl-q-blank-hint {
  margin: 4px 0 0;
  font-size: 12px;
}
.exam-blank {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.exam-blank__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.exam-blank-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  font: inherit;
  font-size: 14px;
}
.pbl-q-kind-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pbl-q-kind-btn {
  appearance: none;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.pbl-q-kind-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: #312e81;
  background: rgba(99, 102, 241, 0.06);
}
.pbl-q-kind-btn.is-active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.14);
  color: #312e81;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
.pbl-question-card select,
.pbl-question-card input,
.pbl-question-card textarea,
.pbl-q-kind-btn {
  pointer-events: auto;
}
.pbl-bank-stage {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .pbl-bank-layout {
    grid-template-columns: 1fr;
  }
  .pbl-bank-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 4px;
  }
  .pbl-bank-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    max-width: 200px;
  }
}
.pbl-bank-list,
.pbl-guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pbl-empty-hint {
  margin: 0;
  font-size: 13px;
}
.pbl-question-card,
.pbl-guide-card,
.pbl-work-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: #fff;
  box-shadow: 0 2px 10px rgba(61, 80, 160, 0.05);
}
.pbl-question-card__head,
.pbl-guide-card__head,
.pbl-work-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.pbl-question-card__tools,
.pbl-guide-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pbl-question-card__grid,
.pbl-guide-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pbl-question-card__grid .admin-field--wide,
.pbl-guide-card__grid .admin-field--wide {
  grid-column: 1 / -1;
}
.pbl-q-opts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pbl-q-opt {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 700;
}
.pbl-q-opt span {
  color: var(--blue);
  text-align: center;
}
.pbl-q-opt input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.pbl-q-answer {
  max-width: 160px;
}
.pbl-field-ai-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.pbl-field-ai-row textarea {
  width: 100%;
  min-height: 64px;
}
.pbl-work-editor {
  margin: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#pbl-unit-ai-field {
  margin: 0 16px 12px;
}
@media (max-width: 720px) {
  .pbl-question-card__grid,
  .pbl-guide-card__grid {
    grid-template-columns: 1fr;
  }
  .pbl-field-ai-row {
    grid-template-columns: 1fr;
  }
}

/* ?? ??? & ???? ?? */
.pbl-resource-link-row {
  margin-top: 12px !important;
}
.stub-inline-panel--muted {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(99, 102, 241, 0.22);
  background: rgba(248, 250, 255, 0.6);
}
.stub-inline-panel--muted strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #475569;
}
.stub-inline-panel--muted p {
  margin: 0 0 8px;
  font-size: 12px;
}

/* ?? ????? ?? */
.pbl-editor-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(248, 250, 255, 0.75);
}
.pbl-editor-footer__actions {
  margin-left: auto;
  margin-top: 0 !important;
}
.pbl-save-hint {
  width: 100%;
  margin: 0 !important;
  font-size: 12px;
}
@media (max-width: 560px) {
  .pbl-editor-footer__actions {
    margin-left: 0;
    width: 100%;
  }
  .pbl-editor-footer__actions .btn {
    flex: 1;
  }
}

.pbl-suggest-box {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.14);
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}
.pbl-suggest-box__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pbl-suggest-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}
.pbl-suggest-box__title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.pbl-suggest-box__source {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
}
.pbl-suggest-box__advice {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}
.pbl-suggest-box__nodes {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.pbl-suggest-box__node {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 13px;
  line-height: 1.5;
}
.pbl-suggest-box__node-name {
  font-weight: 700;
  color: #1e293b;
}
.pbl-suggest-box__node-meta {
  color: #64748b;
  font-size: 13px;
}
.pbl-suggest-box__node-reason {
  color: #64748b;
}
.pbl-suggest-box__samples-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}
.pbl-suggest-box__questions {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}
.pbl-suggest-box__question {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}
.pbl-suggest-box__q-kind {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  vertical-align: baseline;
}
.pbl-suggest-box__q-text {
  color: #334155;
}
.pbl-suggest-box__actions {
  margin-top: 4px;
}
.pbl-library-details {
  margin-top: 10px;
}
@media (max-width: 720px) {
  .admin-mode-grid {
    grid-template-columns: 1fr;
  }
}
.admin-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .admin-extra-grid {
    grid-template-columns: 1fr;
  }
}
.admin-extra-grid > .panel {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(61, 80, 160, 0.06);
}
.admin-extra-grid > .panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.admin-field-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: -2px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.admin-create-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.admin-create-cta span {
  opacity: 0.9;
}

/* ?? ???? ? ?????? ?? */
.admin-workspace--create .btn {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.admin-workspace--create .btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
}
.admin-workspace--create .btn-primary,
.admin-workspace--create .admin-create-cta {
  color: #fff;
  background: linear-gradient(135deg, #4f7cff 0%, #7c5cff 100%);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(82, 109, 255, 0.28);
}
.admin-workspace--create .btn-primary:hover,
.admin-workspace--create .admin-create-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(82, 109, 255, 0.34);
}
.admin-workspace--create .btn-primary:active,
.admin-workspace--create .admin-create-cta:active {
  transform: translateY(0);
}
.admin-workspace--create .btn-primary:disabled,
.admin-workspace--create .admin-create-cta:disabled,
.admin-workspace--create .btn-soft:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.admin-workspace--create .btn-soft,
.admin-workspace--create .btn-ghost,
.admin-workspace--create label.btn {
  color: #4338ca;
  background: #fff;
  border-color: rgba(99, 102, 241, 0.24);
  box-shadow: 0 1px 3px rgba(61, 80, 160, 0.06);
}
.admin-workspace--create .btn-soft:hover,
.admin-workspace--create .btn-ghost:hover,
.admin-workspace--create label.btn:hover {
  background: rgba(248, 250, 255, 0.98);
  border-color: rgba(99, 102, 241, 0.38);
  transform: translateY(-1px);
}
.admin-workspace--create .btn-ghost.btn-sm,
.admin-workspace--create .btn-soft.btn-sm,
.admin-workspace--create label.btn.btn-sm {
  color: #475569;
  border-color: rgba(99, 102, 241, 0.18);
}
.admin-workspace--create #btn-pbl-del-chapter {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
}
.admin-workspace--create #btn-pbl-del-chapter:hover {
  background: rgba(255, 251, 235, 0.95);
  border-color: rgba(245, 158, 11, 0.42);
}
.admin-workspace--create .back-link,
.admin-workspace--create .admin-create-hero__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(61, 80, 160, 0.05);
  transition: 0.15s ease;
}
.admin-workspace--create .back-link:hover,
.admin-workspace--create .admin-create-hero__back:hover {
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(248, 250, 255, 0.98);
}
.admin-workspace--create .admin-create-footer-actions {
  gap: 10px;
}
.admin-workspace--create .admin-create-footer-actions .btn {
  min-width: 132px;
}
.admin-workspace--create .pbl-ai-lazy-actions .btn-primary {
  min-width: 0;
}
.admin-workspace--create .form-actions .btn {
  min-width: 0;
}

.admin-create-note {
  display: none;
}
.admin-guide-next {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

/* ???????????? */
.admin-workspace .form-shell,
.admin-workspace .admin-subpage-card {
  max-width: none !important;
  width: 100%;
  margin: 0;
  flex: 1;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: #fff;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.admin-workspace .admin-create-card {
  width: 100%;
  max-width: none;
}
.admin-workspace--create .admin-create-card {
  max-width: 100%;
}
.admin-workspace .admin-create-sub {
  max-width: none;
}
.admin-workspace .admin-basics-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
}
.admin-workspace .form-shell > h1 {
  display: none;
}
.admin-workspace .form-shell > label,
.admin-workspace .admin-subpage-card > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}
.admin-workspace .form-shell input,
.admin-workspace .form-shell select,
.admin-workspace .form-shell textarea,
.admin-workspace .admin-subpage-card input,
.admin-workspace .admin-subpage-card select,
.admin-workspace .admin-subpage-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
}
.admin-workspace .form-shell .inline-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
}
.admin-workspace .form-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-workspace .pbl-admin {
  max-width: none;
}

/* ?? ??????? ?? */
.stub-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.stub-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.stub-choice {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f2;
  background: #f8faff;
  transition: 0.15s ease;
}
.stub-choice:hover {
  border-color: rgba(82, 109, 255, 0.35);
  background: #fff;
  box-shadow: 0 10px 24px rgba(61, 80, 160, 0.1);
}
.stub-choice strong { font-size: 16px; color: var(--ink); }
.stub-choice small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.stub-choice span { margin-top: 6px; font-size: 13px; font-weight: 750; color: var(--blue); }
.stub-inline-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px dashed #d5dceb;
}
.stub-inline-panel strong { display: block; font-size: 13px; margin-bottom: 4px; }
.stub-inline-panel .muted { margin: 0 0 10px; font-size: 12px; }
.stub-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(82, 109, 255, 0.08);
  border: 1px solid rgba(82, 109, 255, 0.12);
  font-size: 13px;
  font-weight: 650;
  color: #3a4a68;
}
.stub-material-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e2e8f2;
}
.stub-material-card strong { display: block; margin: 8px 0; font-size: 16px; }
.quest-material-body {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.quest-material-body p { margin: 0 0 10px; }
.quest-material-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.quest-material-frame-wrap {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f2;
  background: #0b1220;
  aspect-ratio: 16 / 9;
}
.quest-material-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.exam-explain .guide-list,
.exam-work-side .guide-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-link {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecf4;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  box-sizing: border-box;
  min-width: 0;
}
/* ????????????????? grid ????????? */
.guide-link.guide-card,
.guide-link.guide-card--hint,
.guide-link.guide-card--link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(130, 140, 200, 0.2);
  background: rgba(255, 255, 255, 0.88);
  grid-template-columns: unset;
}
.guide-link.guide-card:hover {
  border-color: rgba(103, 69, 213, 0.32);
  background: #fff;
  box-shadow: 0 4px 12px rgba(90, 70, 180, 0.08);
}
.guide-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.guide-card__tag,
.guide-link.guide-card .guide-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.guide-card__title {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  color: #1a2550;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.guide-card__body {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6796;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.guide-card__action {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #6745d5;
  letter-spacing: 0.02em;
}
.guide-tag--hint {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.guide-tag--doc {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
.guide-tag--video {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}
.guide-tag--link {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
}
.guide-link:hover {
  border-color: rgba(82, 109, 255, 0.35);
  background: #f8faff;
}
.guide-link em {
  font-style: normal;
  color: var(--blue);
  font-weight: 750;
}
.stub-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 45, 103, 0.35);
  backdrop-filter: blur(6px);
}
.stub-modal[hidden] { display: none !important; }
.stub-modal--create-mode,
#create-mode-switch-modal {
  z-index: 10050;
  pointer-events: auto;
}
.stub-modal--pbl-ai-gen,
#pbl-ai-gen-modal {
  z-index: 10060;
  pointer-events: auto;
}
#pbl-ai-gen-modal .pbl-ai-gen-modal__card {
  width: min(460px, 100%);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.pbl-ai-gen-modal__badge {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6cff;
}
.pbl-ai-gen-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 4px;
}
.pbl-ai-gen-modal__actions .admin-create-cta {
  width: 100%;
  justify-content: center;
}
.pbl-ai-gen-modal__actions .btn-ghost {
  width: 100%;
}
#create-mode-switch-modal .stub-modal-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.stub-modal-card {
  width: min(420px, 100%);
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(19, 45, 103, 0.22);
}
.stub-modal-card h2 { margin: 0 0 8px; font-size: 20px; }
.stub-modal-card .muted { margin: 0 0 16px; }
.stub-modal--app-dialog,
#app-dialog-modal {
  z-index: 30000;
  pointer-events: auto;
}
.app-dialog-card {
  width: min(440px, 100%);
}
#app-dialog-desc {
  white-space: pre-line;
  line-height: 1.55;
}
.app-dialog-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}
.app-dialog-fields .admin-field {
  margin: 0 !important;
}
.app-dialog-fields textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}
.app-dialog-actions {
  margin-top: 18px;
}
.btn-danger {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border-color: rgba(234, 88, 12, 0.35);
  color: #fff;
}
.btn-danger:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.commission-board-list {
  display: grid;
  gap: 12px;
}
.commission-offer-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(19, 45, 103, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.commission-offer-card.is-focus {
  border-color: rgba(47, 108, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 108, 246, 0.18), 0 10px 24px rgba(47, 108, 246, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
}
.commission-offer-main { flex: 1; min-width: 0; }
.commission-offer-main h3 { margin: 0 0 6px; font-size: 16px; }
.commission-offer-main .muted { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.commission-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.commission-offer-meta strong { color: var(--ink); font-size: 15px; }
.commission-offer-hint {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 108, 246, 0.08);
  color: var(--blue);
  font-size: 12px;
}
.invite-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.invite-pick-chip {
  border: 1px solid rgba(19, 45, 103, 0.14);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.invite-pick-chip:hover,
.invite-pick-chip.is-active {
  border-color: rgba(47, 108, 246, 0.45);
  background: rgba(47, 108, 246, 0.08);
  color: var(--blue);
}
.profile-invite-card,
.recruit-feed-card {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 45, 103, 0.08);
}
.profile-invite-card:last-child,
.recruit-feed-card:last-child { border-bottom: 0; }
.profile-invite-card h4,
.recruit-feed-card h4 { margin: 0 0 4px; font-size: 15px; }
.profile-invite-actions .btn,
.recruit-feed-card .btn {
  padding: 6px 12px;
  font-size: 13px;
}
.plaza-recruit-strip,
#plaza-recruit-strip {
  display: none !important;
}
.plaza-recruit-strip h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .commission-offer-card { flex-direction: column; }
  .commission-offer-card .btn { width: 100%; }
  .profile-invite-card { flex-direction: column; }
}
@media (max-width: 720px) {
  .stub-choice-grid { grid-template-columns: 1fr; }
  .admin-create-footer-actions { margin-left: 0; width: 100%; }
  .admin-create-footer-actions .btn { flex: 1; justify-content: center; }
}

.admin-guide-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}
.admin-guide-lead {
  display: none;
}
.admin-structure-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: admin-step;
}
.admin-structure-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #eef1f7;
  counter-increment: admin-step;
}
.admin-structure-steps li::before {
  content: counter(admin-step);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: none;
}
.admin-structure-steps b {
  font-size: 12px;
  font-weight: 750;
  color: #1a2744;
  line-height: 1.25;
}
.admin-structure-steps small {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.admin-extra {
  margin-top: 8px;
  padding-top: 8px;
}
.admin-extra[hidden] { display: none !important; }
.admin-extra-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.admin-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-extra-grid .panel {
  margin-bottom: 0;
}
.admin-extra-grid .btn {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .admin-create-layout {
    grid-template-columns: 1fr;
  }
  .admin-extra-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .admin-create-row {
    grid-template-columns: 1fr;
  }
  .admin-create-footer,
  .admin-create-footer--sticky {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-create-footer--sticky {
    bottom: 8px;
  }
  .admin-create-cta {
    justify-content: center;
  }
  .admin-resource-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-resource-input--short {
    flex: 1 1 auto;
  }
}

.table-mock.wide .tr.multi,
.tr.multi {
  grid-template-columns: 0.8fr 0.7fr 1fr 0.7fr 1fr 0.7fr;
}

.inline-2 {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  margin-top: 6px;
}

.checklist-panel { max-width: 860px; margin: 0 auto; }
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checklist li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(82, 109, 255, 0.05);
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
}
.checklist li:hover {
  background: rgba(82, 109, 255, 0.12);
  color: var(--blue);
}

/* ?? Auth / Onboarding ?? */
.topbar[hidden],
.app--auth .topbar[hidden],
.app.app--sect .topbar,
.app.app--path-pick .topbar {
  display: none !important;
}

/* ??????????????????? */
body.is-admin-only #main-topbar,
body.is-admin-only #plaza-channels,
body.is-admin-only #role-switch,
#role-switch[hidden] {
  display: none !important;
}

/* ?? ???????????????? ?? */
.app.app--path-pick {
  padding: 10px 12px 12px;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}
.app.app--path-pick .bg { opacity: 0.28; }

#view-dungeon.active,
#view-dungeon-tier.active {
  display: flex !important;
  flex: 1 1 0%;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
  flex-direction: column;
}

.path-pick {
  --ink: #10245f;
  --muted: #6677aa;
  --violet: #7454df;
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid rgba(49, 59, 119, 0.55);
  border-radius: 18px;
  overflow: hidden;
  background: #f7f8ff;
  box-shadow: inset 0 0 45px rgba(116, 129, 198, 0.1);
}
.path-pick-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.path-pick-land {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(247, 248, 255, 0.55) 0%, rgba(247, 248, 255, 0.18) 42%, rgba(246, 247, 255, 0.08) 100%),
    url("assets/sect-landscape.png");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.95;
}
.path-pick-mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.path-pick-mist.a {
  width: 640px;
  height: 640px;
  left: 8%;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 68%);
}
.path-pick-mist.b {
  width: 480px;
  height: 320px;
  right: -60px;
  top: 40px;
  background: radial-gradient(circle, rgba(210, 205, 255, 0.4), transparent 70%);
}
.path-spark {
  position: absolute;
  color: rgba(140, 120, 230, 0.55);
  font-style: normal;
  font-size: 14px;
  animation: pathSpark 4.8s ease-in-out infinite;
}
.path-spark.s1 { left: 18%; top: 22%; }
.path-spark.s2 { left: 42%; top: 14%; animation-delay: 0.6s; font-size: 11px; }
.path-spark.s3 { right: 28%; top: 20%; animation-delay: 1.2s; }
.path-spark.s4 { right: 14%; top: 34%; animation-delay: 1.8s; font-size: 12px; }
.path-spark.s5 { left: 62%; top: 28%; animation-delay: 2.4s; font-size: 10px; }
@keyframes pathSpark {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(1); }
  50% { opacity: 0.9; transform: translateY(-6px) scale(1.15); }
}

.path-pick-bar,
.path-pick-body {
  position: relative;
  z-index: 2;
}
.path-pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px 8px;
}
.path-pick-back {
  border: 1px solid rgba(130, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #4d5a8c;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(83, 72, 177, 0.1);
  cursor: pointer;
}
.path-pick-back:hover {
  color: #594ad5;
  background: #fff;
}
.path-pick-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.path-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(130, 140, 200, 0.28);
  box-shadow: 0 6px 14px rgba(94, 78, 185, 0.1);
}
.path-stat b {
  color: #5d6591;
  font-size: 12px;
  font-weight: 500;
}
.path-stat strong {
  font-size: 15px;
  color: #455280;
  letter-spacing: 0.02em;
}
.path-stat .gem {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 1px 3px rgba(31, 35, 101, 0.35);
  box-shadow: inset 0 0 8px white, 0 2px 5px rgba(53, 69, 150, 0.2);
}
.path-stat .gem.cyan {
  background: linear-gradient(145deg, #82f2ff, #09a6e9 62%, #1d55c7);
}
.path-stat .gem.violet {
  background: linear-gradient(145deg, #dcc9ff, #7644df 58%, #4d38bd);
}
.path-stat .gem.purple {
  border-radius: 50%;
  background: linear-gradient(145deg, #bcb6ff, #7148d7 60%, #46319c);
}
.path-pick-crumb {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.path-pick-crumb li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #7a84a8;
  background: rgba(255, 255, 255, 0.5);
}
.path-pick-crumb li.is-on {
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  box-shadow: 0 6px 14px rgba(90, 59, 190, 0.22);
}
.path-pick-crumb li[data-go] {
  cursor: pointer;
}
.path-pick-crumb li[data-go]:hover {
  filter: brightness(0.97);
}
.path-pick-crumb .path-crumb-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}
.path-pick-crumb li:not(.is-on) {
  cursor: pointer;
}
.path-pick-crumb li:not(.is-on):hover {
  color: #5a4bb8;
  background: rgba(255, 255, 255, 0.78);
}

.path-pick-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 28px 22px;
}
.path-pick-hero {
  text-align: left;
  max-width: 720px;
  margin: 8px 0 22px;
}
.path-pick-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: #6b74a3;
  font-weight: 600;
}
.path-pick-hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #08153f;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}
.path-seal {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #c45656;
  border-radius: 50%;
  color: #c45656;
  font-family: var(--font);
  font-size: 18px;
  font-style: normal;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 3px rgba(196, 86, 86, 0.15);
}
.path-pick-sub {
  margin: 12px 0 0;
  font-size: 15px;
  color: #5a6796;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.path-pick-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.path-pick-hint span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #5e48cf;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(120, 100, 220, 0.22);
}

.path-pick-grid--rich {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: auto;
}
.path-rich-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(127, 137, 193, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 255, 0.78));
  box-shadow: 0 10px 24px rgba(70, 82, 145, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.path-rich-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 100, 220, 0.45);
  box-shadow: 0 16px 34px rgba(90, 75, 180, 0.18);
}
.path-rich-card.is-locked {
  opacity: 0.72;
  cursor: default;
}
.path-rich-card.is-locked:hover {
  transform: none;
}

.path-rich-art {
  position: relative;
  width: 76px;
  height: 92px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px 14px 14px 8px;
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: 6px 6px 14px rgba(45, 57, 111, 0.16), inset 0 0 18px rgba(255, 255, 255, 0.28);
}
.path-rich-art b {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(20, 30, 80, 0.28);
}
.path-rich-art em {
  display: none;
}
.path-rich-art.art-iot { background: linear-gradient(145deg, #6ec8ff, #3a6adf 58%, #2a4db8); }
.path-rich-art.art-net { background: linear-gradient(145deg, #8ea4ef, #526dff 58%, #3d4fc4); }
.path-rich-art.art-biz { background: linear-gradient(145deg, #f0b27a, #e06a4a 58%, #b8453a); }
.path-rich-art.art-tier-beginner { background: linear-gradient(145deg, #7dd3c0, #2f9e86 58%, #217a68); }
.path-rich-art.art-tier-intermediate { background: linear-gradient(145deg, #8eb6ff, #4a6cf0 58%, #3452c4); }
.path-rich-art.art-tier-advanced { background: linear-gradient(145deg, #c4a8ff, #7b52d4 58%, #5a38b0); }
.path-rich-art::before,
.path-rich-art::after {
  content: "";
  position: absolute;
  top: -7px;
  bottom: -7px;
  width: 6px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}
.path-rich-art::before { left: -7px; }
.path-rich-art::after { right: -7px; }

.path-rich-copy h2 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #0d1b4a;
}
.path-rich-copy p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #6674a0;
  min-height: 2.5em;
}
.path-rich-meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(110, 120, 180, 0.14);
  overflow: hidden;
  margin-bottom: 8px;
}
.path-rich-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cec, #526dff);
}
.path-rich-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #6d78a4;
  margin-bottom: 14px;
}
.path-rich-card > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #8b6cec;
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 14px rgba(90, 59, 190, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.path-rich-card > button span {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1;
}
.path-rich-card.is-locked > button {
  border-color: rgba(120, 130, 170, 0.35);
  background: linear-gradient(180deg, #c5cadb, #9aa3bd);
  box-shadow: none;
}
.path-pick-motto {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #7a84a8;
}
.path-pick-motto span {
  color: #9b8ae8;
  margin: 0 6px;
}

@media (max-width: 980px) {
  .path-pick-stats { display: none; }
  .path-pick-grid--rich { grid-template-columns: 1fr; }
  .path-pick-body { overflow: auto; }
  .path-pick-hero h1 { font-size: 36px; }
}

/* ?? ????????????????????? ?? */
.app.app--dungeon-map.app--path-pick {
  padding: 12px 14px 14px;
}
.app.app--dungeon-map.app--path-pick .topbar {
  display: none !important;
}
.path-seal--sm {
  width: 30px;
  height: 30px;
  font-size: 13px;
  margin-left: 6px;
  vertical-align: middle;
}
.trail-map--sect {
  --path-ink: #10245f;
  --path-muted: #6677aa;
  --path-teal: #7454df;
  --path-teal-deep: #5e48cf;
  --path-amber: #c45656;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,247,255,.82)),
    radial-gradient(ellipse at 15% 0%, rgba(180,170,255,.22), transparent 50%);
  border: 1px solid rgba(49, 59, 119, .28);
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(116, 129, 198, .08), 0 12px 32px rgba(70, 82, 145, .1);
  color: var(--path-ink);
  font-family: var(--font);
}
.trail-map--sect .trail-map-top,
.trail-map--sect .trail-map-footer {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(126, 137, 205, 0.18);
  backdrop-filter: blur(10px);
}
.trail-map--sect .trail-map-titles h1 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #08153f;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.trail-map--sect .path-back {
  border: 1px solid rgba(130, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: #4d5a8c;
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(83, 72, 177, 0.1);
}
.trail-map--sect .path-back:hover {
  color: #594ad5;
  background: #fff;
}
.trail-map--sect .trail-map-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.trail-map--sect .trail-crumb {
  margin: 0;
}
.trail-map--sect .trail-chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(126, 137, 205, 0.22);
  color: #5a6796;
}
.trail-map--sect .trail-chip.accent {
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  border-color: transparent;
}
.trail-map--sect .trail-chip-bar {
  background: rgba(110, 120, 180, 0.16);
}
.trail-map--sect .trail-chip-bar i {
  background: linear-gradient(90deg, #8b6cec, #526dff);
}
.trail-map--sect .trail-badge {
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: rgba(140, 120, 230, 0.1);
  color: #5e48cf;
  border: 1px solid rgba(120, 100, 220, 0.2);
}
.trail-map--sect .trail-badge.unit {
  background: rgba(196, 86, 86, 0.08);
  color: #c45656;
  border-color: rgba(196, 86, 86, 0.22);
}
.trail-map--sect .trail-map-stage {
  background: transparent;
}
.trail-map--sect .path-spine {
  display: none;
}
.trail-map--sect .path-spine-svg .spine-line {
  stroke: #8b6cec;
}
.trail-map--sect .path-chapter-label span {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5e48cf;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(120, 100, 220, 0.28);
}
.trail-map--sect .path-chapter-label.is-active span {
  background: linear-gradient(135deg, #9f7bf0, #6745d5);
  color: #fff;
  border-color: transparent;
}
.trail-map--sect .path-stop-card {
  background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(247,247,255,.86));
  border: 1px solid rgba(127, 137, 193, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(70, 82, 145, 0.12);
}
.trail-map--sect .path-stop-card strong {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0d1b4a;
}
.trail-map--sect .path-stop-tag {
  color: #7454df;
  font-weight: 650;
}
.trail-map--sect .path-stop-dot {
  border: 2px solid rgba(120, 100, 220, 0.35);
  background: #fff;
  color: #5e48cf;
  box-shadow: 0 6px 14px rgba(90, 75, 180, 0.16);
}
.trail-map--sect .path-stop.cleared .path-stop-dot {
  background: linear-gradient(145deg, #8b6cec, #526dff);
  border-color: transparent;
  color: #fff;
}
.trail-map--sect .path-stop.is-current .path-stop-dot {
  background: linear-gradient(145deg, #e08a7a, #c45656);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(196, 86, 86, 0.18), 0 8px 18px rgba(196, 86, 86, 0.28);
}
.trail-map--sect .path-stop.is-current .path-stop-card {
  border-color: rgba(196, 86, 86, 0.35);
  box-shadow: 0 12px 26px rgba(196, 86, 86, 0.14);
}
.trail-map--sect .path-stop.is-current .path-stop-tag,
.trail-map--sect .path-stop.is-current .path-stop-here {
  color: #c45656;
}
.trail-map--sect .path-stop.locked .path-stop-dot {
  background: #e8ebf6;
  border-color: #c5cadb;
  color: #7a84a8;
}
.trail-map--sect .trail-nav {
  border-radius: 50%;
  border: 1px solid rgba(130, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #4d5a8c;
  box-shadow: 0 4px 12px rgba(83, 72, 177, 0.1);
}
.trail-map--sect .trail-nav:hover:not(:disabled) {
  color: #594ad5;
  background: #fff;
}
.trail-map--sect .trail-legend {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(126, 137, 205, 0.2);
  border-radius: 999px;
  color: #5a6796;
}
.trail-map--sect .trail-legend .done { background: linear-gradient(145deg, #8b6cec, #526dff); }
.trail-map--sect .trail-legend .now { background: linear-gradient(145deg, #e08a7a, #c45656); }
.trail-map--sect .path-go-btn {
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #8b6cec;
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 8px 18px rgba(90,59,190,.24);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.trail-map--sect .path-go-btn:hover {
  filter: saturate(1.08) brightness(1.04);
}

.auth-view {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}
.auth-view.active {
  display: flex !important;
}

.auth-shell {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 0 24px;
}
.auth-shell.narrow { width: min(420px, 100%); }
.auth-shell.wide { width: min(960px, 100%); align-items: stretch; }

.auth-brand {
  text-align: center;
}
.brand-mark.lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 22px;
  margin: 0 auto 12px;
}
.auth-brand h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-brand p { color: var(--muted); font-size: 14px; }

.auth-card {
  width: 100%;
  margin-bottom: 0;
}
.auth-card h1,
.auth-card h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.auth-card .field {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.auth-card .field input,
.auth-card .field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.9);
  outline: none;
  font-weight: 500;
}
.auth-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 18px;
}

.test-accounts {
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(82, 109, 255, 0.06);
  border: 1px dashed rgba(99, 102, 241, 0.28);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.test-accounts-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}
.test-accounts-head strong { color: var(--ink); }
.test-accounts-head span { color: var(--muted); }
.test-accounts-head code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: var(--violet);
  font-weight: 700;
}
.test-acc {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: 0.15s ease;
}
.test-acc:hover,
.test-acc.selected {
  border-color: rgba(82, 109, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(82, 109, 255, 0.12);
}
.test-acc b { font-size: 13px; }
.test-acc small { color: var(--muted); font-size: 11px; }

.login-error {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}

/* ?? ???????? + ???? ?? */
.role-switcher,
.account-switch {
  position: relative;
  z-index: 60;
}

.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(240px, 42vw);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(82, 109, 255, 0.28);
  box-shadow: 0 4px 14px rgba(61, 80, 160, 0.1);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.role-switch-btn:hover {
  border-color: rgba(82, 109, 255, 0.48);
  box-shadow: 0 6px 18px rgba(61, 80, 160, 0.14);
}

.role-switch-kicker {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.role-switch-btn strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 48px rgba(61, 80, 160, 0.2);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
}

.role-switch-menu[hidden] {
  display: none !important;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(82, 109, 255, 0.2);
  box-shadow: 0 4px 12px rgba(61, 80, 160, 0.08);
  text-align: left;
  max-width: 200px;
}

.account-btn:hover {
  border-color: rgba(82, 109, 255, 0.4);
}

.account-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.2;
}

.account-copy strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-copy small {
  font-size: 10px;
  font-weight: 600;
  color: var(--violet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-chevron {
  color: var(--muted);
  font-size: 11px;
  margin-right: 2px;
  flex-shrink: 0;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 48px rgba(61, 80, 160, 0.2);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
}

.account-menu[hidden] {
  display: none !important;
}

[data-perm][hidden] {
  display: none !important;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  margin-bottom: 6px;
}

.account-menu-head .avatar-with-role {
  width: 40px;
  height: 40px;
}

.account-menu-head strong {
  display: block;
  font-size: 14px;
}

.account-menu-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.account-menu-label {
  padding: 6px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.role-option {
  text-align: left;
  padding: 9px 10px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-option:hover {
  background: rgba(82, 109, 255, 0.08);
}

.role-option.active {
  background: linear-gradient(135deg, rgba(82, 109, 255, 0.14), rgba(104, 86, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(82, 109, 255, 0.28);
}

.role-option b {
  font-size: 13px;
  color: var(--ink);
}

.role-option small {
  font-size: 11px;
  color: var(--muted);
}

.account-menu-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.menu-link {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(82, 109, 255, 0.06);
  color: var(--blue);
}

.menu-link.danger {
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
}

.gate-status.ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.role-toast {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 12050;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(19, 45, 103, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(19, 45, 103, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 0.2s ease;
}
.role-toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }
  .brand { grid-area: brand; }
  .topbar .plaza-channels,
  .nav-pills { grid-area: nav; justify-content: flex-start; }
  .top-actions { grid-area: actions; }
  .account-copy { display: none; }
  .account-btn { max-width: none; padding-right: 6px; }
  .role-switch-kicker { display: none; }
  .role-switch-btn { max-width: 140px; padding: 7px 10px; }
}

@media (max-width: 860px) {
  .app { padding: 12px; }
  .app.app--dungeon-map { padding: 6px 8px; gap: 6px; }
  .detail-layout, .quest-layout { grid-template-columns: 1fr; }
  #view-project-detail .detail-side,
  #view-idea-detail .detail-side { position: static; }
  .buy-grid { grid-template-columns: 1fr; }
  .forum-layout,
  .forum-post-layout,
  .forum-hero { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .forum-boards { position: static; }
  .filter-dim { grid-template-columns: 1fr; gap: 6px; }
}
.auth-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 12px;
}
.text-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: center;
}
.auth-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.auth-steps b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 11px;
}

.onboard-head { text-align: center; margin-bottom: 8px; }
.onboard-head h1 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 8px 0;
}
.onboard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.onboard-progress span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border: 1px solid transparent;
}
.onboard-progress span.on {
  color: var(--violet);
  background: rgba(104, 86, 255, 0.1);
  border-color: rgba(104, 86, 255, 0.25);
}
.onboard-progress i {
  width: 18px;
  height: 2px;
  background: rgba(99, 102, 241, 0.25);
}

.onboard-step { display: none; }
.onboard-step.active { display: block; animation: fadeIn 0.28s ease; }

.pick-card.selected {
  border-color: rgba(82, 109, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(82, 109, 255, 0.18), var(--shadow);
  transform: translateY(-2px);
}
.pick-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.center-hint { text-align: center; margin-top: 12px; }

/* ?? ???????????????? ?? */
.train-hub {
  --sm-ink: #f1f5ff;
  --sm-soft: #9aa8c7;
  --sm-muted: #6b7a99;
  --sm-cyan: #38bdf8;
  --sm-panel: rgba(15, 23, 48, 0.72);
  --sm-border: rgba(96, 165, 250, 0.22);
  max-width: none;
  width: 100%;
  margin: 0;
  color: var(--sm-ink);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.train-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 96px);
  padding: 28px clamp(20px, 4vw, 48px) 40px;
  background:
    radial-gradient(ellipse 70% 45% at 42% 48%, rgba(56, 100, 220, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(99, 70, 200, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(30, 80, 180, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #070d22 0%, #050a1b 45%, #0a1028 100%);
  border: none;
  box-shadow: none;
}
.train-stage-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.train-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.train-nebula.n1 {
  width: 420px;
  height: 200px;
  top: 8%;
  left: 10%;
  background: linear-gradient(120deg, rgba(59,130,246,0.5), rgba(139,92,246,0.35));
  transform: rotate(-18deg);
}
.train-nebula.n2 {
  width: 280px;
  height: 140px;
  bottom: 12%;
  right: 8%;
  background: rgba(34, 211, 238, 0.2);
  transform: rotate(12deg);
}
.train-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  animation: train-float 9s ease-in-out infinite;
}
.train-orb--a {
  width: 180px;
  height: 180px;
  top: -60px;
  right: 8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}
.train-orb--b {
  width: 140px;
  height: 140px;
  bottom: 10%;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 210, 105, 0.22), transparent 70%);
  animation-delay: -3s;
}
.train-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  animation: train-twinkle 3.2s ease-in-out infinite;
}
.train-star.s1 { top: 14%; left: 42%; }
.train-star.s2 { top: 24%; right: 28%; animation-delay: -0.8s; width: 3px; height: 3px; }
.train-star.s3 { bottom: 28%; left: 22%; animation-delay: -1.6s; }
.train-star.s4 { top: 48%; right: 12%; animation-delay: -2.2s; width: 3px; height: 3px; }
.train-star.s5 { top: 68%; left: 58%; animation-delay: -1.1s; }
.train-star.s6 { top: 36%; left: 12%; animation-delay: -2.6s; }

@keyframes train-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
@keyframes train-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

.train-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 250px);
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 28px;
}
.train-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sm-cyan);
}
.train-hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 36px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--sm-ink);
}
.train-lead {
  margin: 0 0 18px;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sm-soft);
}
.train-lead strong { color: #bae6fd; }

.train-journey {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}
.train-journey li {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-right: 28px;
  margin-right: 4px;
  color: var(--sm-muted);
  font-size: 12px;
  font-weight: 600;
}
.train-journey li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(96, 165, 250, 0.25);
  transform: translateY(-50%);
}
.train-journey li b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--sm-soft);
  background: rgba(148, 163, 184, 0.16);
  border: 1.5px solid transparent;
}
.train-journey li.done {
  color: #6ee7b7;
}
.train-journey li.done b {
  color: #031016;
  background: #3de5bc;
  box-shadow: 0 0 12px rgba(61, 229, 188, 0.45);
}
.train-journey li.done:not(:last-child)::after {
  background: rgba(61, 229, 188, 0.45);
}
.train-journey li.on {
  color: var(--sm-ink);
}
.train-journey li.on b {
  color: #031016;
  background: var(--sm-cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 0 16px rgba(56, 189, 248, 0.45);
  animation: train-pulse 2s ease-in-out infinite;
}
@keyframes train-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 0 14px rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.1), 0 0 22px rgba(56, 189, 248, 0.5); }
}

.train-status-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--sm-panel);
  border: 1px solid var(--sm-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.train-status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.train-status-top b {
  font-size: 13px;
  color: #fbbf24;
}
.train-status-card[data-tone="green"] .train-status-top b { color: #6ee7b7; }
.train-status-card[data-tone="blue"] .train-status-top b { color: var(--sm-cyan); }
.train-status-top span {
  font-size: 12px;
  color: var(--sm-soft);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.train-status-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
}
.train-status-meter-head em {
  font-style: normal;
  color: var(--sm-soft);
}
.train-status-meter-head strong {
  font-weight: 800;
  color: #bae6fd;
  font-variant-numeric: tabular-nums;
}
.train-status-card .train-progress {
  width: 100%;
  margin: 0;
  height: 8px;
  background: rgba(30, 58, 100, 0.8);
  border-radius: 999px;
  overflow: hidden;
}
.train-status-card .train-progress i,
.train-path-card .progress-bar i {
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
}
.train-status-tip {
  margin: 10px 0 0;
  font-size: 11px;
  color: #fbbf24;
  line-height: 1.4;
  font-weight: 600;
}

.train-paths-section,
.train-alt {
  position: relative;
  z-index: 1;
}
.train-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.train-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--sm-ink);
}
.train-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--sm-soft);
}

.train-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  max-width: 1200px;
}
.train-path-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1.5px solid rgba(96, 165, 250, 0.18);
  border-radius: 20px;
  background: rgba(8, 16, 40, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  overflow: hidden;
  color: var(--sm-ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.train-path-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.18), 0 16px 40px rgba(0, 0, 0, 0.35);
}
.train-path-card.active {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2), 0 0 28px rgba(56, 189, 248, 0.22);
}
.train-path-card.is-locked,
.train-path-card:disabled {
  opacity: 0.58;
  cursor: default;
  filter: grayscale(0.35) brightness(0.85);
}

.train-path-card-visual {
  position: relative;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.train-path-card-visual.tone-net {
  background:
    radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.25), transparent 50%),
    linear-gradient(145deg, #0b1a3d, #122554);
}
.train-path-card-visual.tone-hw {
  background:
    radial-gradient(circle at 70% 35%, rgba(34, 211, 238, 0.35), transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(6, 139, 145, 0.3), transparent 50%),
    linear-gradient(145deg, #062232, #0a3348);
}
.train-path-card-visual.tone-biz {
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.28), transparent 55%),
    linear-gradient(145deg, #2a1c08, #3d280f);
}
.train-planet {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  border: 2.5px solid rgba(223, 245, 255, 0.85);
  background:
    radial-gradient(ellipse at 30% 28%, #e5fbff, transparent 40%),
    conic-gradient(from 32deg, #58d8ff, #1266ee 40%, #58d8ff);
  box-shadow:
    inset -10px -10px 16px rgba(0, 10, 43, 0.72),
    0 0 7px 2px #58d8ff,
    0 0 22px 6px rgba(56, 189, 248, 0.4);
  animation: train-float 7s ease-in-out infinite;
}
.tone-hw .train-planet {
  background:
    radial-gradient(ellipse at 30% 28%, #bfffe7, transparent 40%),
    conic-gradient(from 32deg, #3ee9bf, #068b91 40%, #3ee9bf);
  box-shadow:
    inset -10px -10px 16px rgba(0, 30, 30, 0.65),
    0 0 7px 2px #3ee9bf,
    0 0 22px 6px rgba(61, 229, 188, 0.35);
}
.tone-biz .train-planet {
  background:
    radial-gradient(ellipse at 30% 28%, #fff2bd, transparent 40%),
    conic-gradient(from 32deg, #ffd269, #9b5b17 40%, #ffd269);
  box-shadow:
    inset -10px -10px 16px rgba(40, 20, 0, 0.65),
    0 0 7px 2px #ffd269;
  animation: none;
}
.train-seeds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.train-seeds i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}
.train-seeds i.on {
  background: #3de5bc;
  box-shadow: 0 0 8px rgba(61, 229, 188, 0.8);
}
.tone-net .train-seeds i:nth-child(1) { top: 22%; left: 18%; }
.tone-net .train-seeds i:nth-child(2) { top: 18%; right: 22%; }
.tone-net .train-seeds i:nth-child(3) { top: 48%; left: 12%; }
.tone-net .train-seeds i:nth-child(4) { bottom: 20%; left: 28%; }
.tone-net .train-seeds i:nth-child(5) { top: 42%; right: 14%; }
.tone-net .train-seeds i:nth-child(6) { bottom: 18%; right: 26%; }
.tone-net .train-seeds i:nth-child(7) { top: 68%; left: 48%; }
.tone-net .train-seeds i:nth-child(8) { top: 30%; left: 48%; }
.tone-hw .train-seeds i:nth-child(1) { top: 20%; left: 20%; }
.tone-hw .train-seeds i:nth-child(2) { top: 22%; right: 18%; }
.tone-hw .train-seeds i:nth-child(3) { bottom: 24%; left: 22%; }
.tone-hw .train-seeds i:nth-child(4) { bottom: 20%; right: 24%; }
.tone-hw .train-seeds i:nth-child(5) { top: 48%; left: 14%; }
.tone-hw .train-seeds i:nth-child(6) { top: 52%; right: 16%; }
.tone-biz .train-seeds i:nth-child(1) { top: 24%; left: 24%; }
.tone-biz .train-seeds i:nth-child(2) { top: 24%; right: 24%; }
.tone-biz .train-seeds i:nth-child(3) { bottom: 26%; left: 30%; }
.tone-biz .train-seeds i:nth-child(4) { bottom: 26%; right: 30%; }

.train-path-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
  background: rgba(4, 10, 28, 0.35);
}
.train-path-card-body > .train-path-state {
  align-self: flex-start;
}
.train-path-card-body strong {
  font-size: 15px;
  color: var(--sm-ink);
  line-height: 1.3;
}
.train-path-card-body > small {
  font-size: 12px;
  color: var(--sm-soft);
  line-height: 1.4;
}
.train-path-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.train-row-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.train-row-progress .progress-bar {
  width: 52px;
  margin: 0;
  height: 6px;
  background: rgba(30, 58, 100, 0.8);
  border-radius: 999px;
  overflow: hidden;
}
.train-row-progress small {
  font-size: 12px;
  color: var(--sm-soft);
  font-variant-numeric: tabular-nums;
}
.train-path-cta {
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}
.train-path-cta.muted { color: var(--sm-muted); font-weight: 600; }

.cf-starmap .train-path-state {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--sm-soft);
  background: rgba(148, 163, 184, 0.14);
  white-space: nowrap;
}
.cf-starmap .train-path-state.live {
  color: #6ee7b7;
  background: rgba(61, 229, 188, 0.14);
  border: 1px solid rgba(61, 229, 188, 0.25);
}
.cf-starmap .train-path-state.cleared {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.train-alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.train-alt-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(8, 16, 40, 0.5);
  color: var(--sm-ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.train-alt-chip:hover {
  background: rgba(15, 28, 60, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
}
.train-alt-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #526dff, #6856ff);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}
.train-alt-icon.star {
  background: linear-gradient(135deg, #f59e0b, #6856ff);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}
.train-alt-chip strong {
  display: block;
  font-size: 13px;
  color: var(--sm-ink);
}
.train-alt-chip small {
  font-size: 11px;
  color: var(--sm-soft);
}

@media (max-width: 800px) {
  .train-path-grid { grid-template-columns: 1fr; }
  .train-hero { grid-template-columns: 1fr; }
  .train-status-card { max-width: 320px; }
}
@media (max-width: 560px) {
  .train-stage { padding: 20px 16px 28px; border-radius: 0; }
  .train-alt-row { grid-template-columns: 1fr; }
  .train-journey li { padding-right: 20px; }
}
/* ?? ????????? + ???? ?? */
.path-pick-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
}
.path-ornament {
  position: absolute;
  pointer-events: none;
}

/* ????????????????????? */
.theme-dao,
.theme-jie {
  background: #f5f6fc;
}

/* ???????????? */
.theme-dao .path-pick-land {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 244, 0.42) 0%, rgba(247, 248, 255, 0.22) 48%, rgba(246, 247, 255, 0.1) 100%),
    url("assets/sect-landscape.png");
  filter: saturate(1.02) hue-rotate(-4deg);
}
.theme-dao .path-pick-pattern {
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.5) 0 18%, transparent 42%),
    radial-gradient(ellipse at 70% 18%, rgba(255, 255, 255, 0.35) 0 12%, transparent 36%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(140, 120, 200, 0.045) 18px 19px);
  opacity: 0.5;
}
.theme-dao .path-pick-mist.a {
  background: radial-gradient(circle, rgba(255, 240, 224, 0.42), transparent 68%);
}
.theme-dao .o-cloud {
  width: 160px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 28px 10px 0 rgba(255, 255, 255, 0.22), -24px 14px 0 rgba(255, 255, 255, 0.18);
  filter: blur(0.2px);
}
.theme-dao .o-cloud.left { left: 6%; bottom: 18%; }
.theme-dao .o-cloud.right { right: 8%; bottom: 28%; width: 120px; }

/* ????????????????? */
.theme-jie .path-pick-land {
  background-image:
    linear-gradient(180deg, rgba(90, 80, 150, 0.12) 0%, rgba(120, 110, 190, 0.06) 38%, rgba(247, 248, 255, 0.45) 100%),
    url("assets/sect-landscape.png");
  filter: saturate(0.96) brightness(0.98) hue-rotate(10deg);
}
.theme-jie .path-pick-pattern {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(120, 100, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 100, 200, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
}
.theme-jie .path-pick-mist.a {
  background: radial-gradient(circle, rgba(190, 180, 255, 0.32), transparent 68%);
}
.theme-jie .path-pick-mist.b {
  background: radial-gradient(circle, rgba(140, 130, 210, 0.16), transparent 70%);
}
.theme-jie .o-moon {
  right: 10%;
  top: 12%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf0, #f0e0b8 55%, rgba(240, 220, 170, 0.18) 70%, transparent 72%);
  box-shadow: 0 0 22px rgba(255, 230, 180, 0.22);
  opacity: 0.85;
}
.theme-jie .o-lattice {
  left: 4%;
  top: 18%;
  width: 90px;
  height: 120px;
  opacity: 0.16;
  background:
    linear-gradient(#8a78d0 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, #8a78d0 1px, transparent 1px) 0 0 / 18px 18px;
  border: 2px solid rgba(138, 120, 208, 0.28);
  border-radius: 8px;
  transform: rotate(-6deg);
}

/* ?????????????? */
.trail-map.theme-guan {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #f6f7fc 0%, #f3f5fa 100%);
}
.trail-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
.trail-land {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(246, 247, 252, 0.72) 0%, rgba(246, 247, 252, 0.35) 42%, rgba(236, 238, 250, 0.55) 100%),
    url("assets/sect-landscape.png");
  background-size: cover;
  background-position: center 48%;
  filter: saturate(0.95) hue-rotate(2deg);
  opacity: 0.92;
}
.trail-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.45) 0 18%, transparent 42%),
    radial-gradient(ellipse at 78% 18%, rgba(210, 205, 255, 0.28) 0 14%, transparent 40%),
    repeating-linear-gradient(115deg, transparent 0 20px, rgba(120, 110, 190, 0.045) 20px 21px);
}
.trail-map.theme-guan .trail-map-top,
.trail-map.theme-guan .trail-body-grid,
.trail-map.theme-guan .trail-map-stage,
.trail-map.theme-guan .trail-map-footer {
  position: relative;
  z-index: 1;
}
.trail-map.theme-guan .trail-map-stage {
  background:
    linear-gradient(180deg, rgba(248, 249, 255, 0.28), rgba(240, 242, 252, 0.42)),
    radial-gradient(ellipse at 50% 100%, rgba(180, 170, 255, 0.12), transparent 55%);
}

.path-pick-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 8px;
}

.path-widget {
  border-radius: 18px;
  border: 1px solid rgba(127, 137, 193, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(247, 247, 255, 0.72));
  box-shadow: 0 10px 24px rgba(70, 82, 145, 0.1);
  backdrop-filter: blur(8px);
}
.path-widget-ring {
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.path-ring {
  --pct: 0;
  --circ: 263.89;
  position: relative;
  width: 156px;
  height: 156px;
}
.path-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.path-ring circle {
  fill: none;
  stroke-width: 9;
}
.path-ring .ring-bg { stroke: rgba(120, 110, 180, 0.14); }
.path-ring .ring-fg {
  stroke: url(#none);
  stroke: #8b6cec;
  stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: calc(var(--circ) * (1 - var(--pct) / 100));
  transition: stroke-dashoffset 0.45s ease;
}
.path-ring-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.path-ring-core strong {
  font-family: var(--font);
  font-size: 36px;
  color: #0d1b4a;
  line-height: 1;
}
.path-ring-core small {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #6d78a4;
}
.path-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.path-widget-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  font-size: 14px;
}
.path-widget-list b {
  font-family: var(--font);
  font-weight: 600;
  color: #2a3a6e;
}
.path-widget-list span { color: #6d78a4; font-weight: 650; }
.path-widget-list i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(110, 120, 180, 0.14);
  overflow: hidden;
}
.path-widget-list i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cec, #526dff);
}

.path-widget-ladder {
  padding: 18px 18px 16px;
}
.path-widget-ladder > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.path-widget-ladder > header b {
  font-family: var(--font);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #0d1b4a;
}
.path-widget-ladder > header small {
  font-size: 12px;
  color: #7a84a8;
  letter-spacing: 0.12em;
}
.path-ladder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ladder-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}
.ladder-row > em {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font);
  font-style: normal;
  font-size: 18px;
  color: #5d6694;
  background: rgba(130, 140, 200, 0.14);
}
.ladder-row.is-live > em {
  color: #fff;
  background: linear-gradient(145deg, #9f7bf0, #6745d5);
}
.ladder-row.is-done > em {
  color: #fff;
  background: linear-gradient(145deg, #7dd3c0, #2f9e86);
}
.ladder-row > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
}
.ladder-row b {
  font-size: 16px;
  color: #2a3a6e;
}
.ladder-row span {
  font-size: 13px;
  color: #6d78a4;
  font-weight: 650;
}
.ladder-row i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 120, 180, 0.14);
  overflow: hidden;
}
.ladder-row i em {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cec, #526dff);
}

.path-widget-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-width: 260px;
}
.path-mini-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(145deg, #9f7bf0, #526dff 55%, #3d4fc4);
  box-shadow: 0 8px 18px rgba(90, 59, 190, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.path-mini-orb strong {
  font-family: var(--font);
  font-size: 22px;
  line-height: 1;
}
.path-mini-orb small {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}
.path-mini-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: #5a6796;
}
.path-mini-copy b {
  font-family: var(--font);
  font-size: 17px;
  color: #0d1b4a;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.path-mini-copy .trail-chip-bar {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 120, 180, 0.16);
  overflow: hidden;
}
.path-mini-copy .trail-chip-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b6cec, #526dff);
}

@media (max-width: 980px) {
  .path-pick-hero-row {
    grid-template-columns: 1fr;
  }
  .path-widget-ring,
  .path-widget-ladder {
    max-width: 380px;
  }
}

/* ?? ??????????? ?? */
.path-pick-body.layer-dash {
  overflow: auto;
  gap: 12px;
}
.path-pick-body.layer-dash .path-pick-grid--rich {
  margin-top: 4px;
  flex: 0 0 auto;
}
.path-pick-body.layer-dash .path-pick-motto {
  margin: 0;
  text-align: left;
  letter-spacing: 0.12em;
}

/* ?? / ??? */
.layer-scroll {
  margin-top: 16px;
  max-width: 520px;
  padding: 12px 16px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(196, 140, 86, 0.35);
  background:
    linear-gradient(90deg, rgba(196, 86, 86, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(255, 244, 228, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 8px 18px rgba(120, 80, 40, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.layer-scroll:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 12px 24px rgba(120, 80, 40, 0.12);
}
.layer-scroll em {
  display: inline-block;
  margin-bottom: 4px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #c45656;
  font-weight: 700;
}
.layer-scroll strong {
  display: block;
  font-family: var(--font);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #3a2412;
}
.layer-scroll p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #7a6148;
  line-height: 1.5;
}

.layer-reward-strip {
  margin-top: 16px;
  max-width: 520px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(140, 120, 220, 0.28);
  background:
    linear-gradient(135deg, rgba(40, 36, 78, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 232, 255, 0.75));
  box-shadow: 0 10px 22px rgba(70, 60, 140, 0.12);
}
.layer-reward-strip .reward-seal {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #c45656;
  color: #c45656;
  font-family: var(--font);
  font-size: 18px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(-8deg);
}
.layer-reward-strip b {
  display: block;
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #1a1840;
}
.layer-reward-strip p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5d6694;
  line-height: 1.5;
}

/* ????? */
.layer-footer-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}
.layer-chip-panel {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 137, 193, 0.24);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(70, 82, 145, 0.08);
}
.layer-chip-panel > header {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #0d1b4a;
}
.layer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.id-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #c45656, #9e3434);
  box-shadow: 0 4px 10px rgba(160, 60, 60, 0.22);
}
.muted-chip {
  font-size: 12px;
  color: #7a84a8;
}
.layer-tip-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6796;
}
.layer-next-panel p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6796;
}
.layer-soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 100, 220, 0.35);
  color: #5e48cf;
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.layer-soft-btn:hover {
  background: #fff;
  color: #4a36c4;
}

/* ?? / ???????????????? */
.path-rich-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 14px;
  align-items: start;
  min-height: 0;
}
.path-rich-card > .path-rich-art {
  grid-row: 1 / 2;
  margin: 2px 0 0;
}
.path-rich-card > .path-rich-copy {
  min-width: 0;
}
.path-rich-card > button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
}
.path-rich-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.path-rich-top h2 {
  margin: 0;
}
.path-rich-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5e48cf;
  background: rgba(140, 120, 230, 0.12);
  border: 1px solid rgba(120, 100, 220, 0.2);
}
.path-rich-card.is-cleared .path-rich-badge {
  color: #1f8a72;
  background: rgba(125, 211, 192, 0.22);
  border-color: rgba(47, 158, 134, 0.28);
}
.path-rich-card.is-locked .path-rich-badge {
  color: #7a84a8;
  background: rgba(130, 140, 180, 0.12);
  border-color: rgba(130, 140, 180, 0.22);
}
.path-rich-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.path-rich-facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #5a6796;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(120, 130, 190, 0.06);
}
.path-rich-facts b {
  font-weight: 650;
  color: #3a4a7a;
}
.path-rich-facts span {
  text-align: right;
  color: #1e2a55;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}
.path-rich-copy > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5a6796;
}

/* ??????????????????? */
.theme-dao .layer-chip-panel,
.theme-dao .path-widget {
  border-color: rgba(180, 140, 160, 0.22);
  background: linear-gradient(160deg, rgba(255, 252, 248, 0.9), rgba(248, 246, 255, 0.78));
}
.theme-dao .path-ring .ring-fg {
  stroke: #9a72e0;
}
.theme-dao .layer-scroll {
  border-color: rgba(170, 130, 170, 0.28);
  background:
    linear-gradient(90deg, rgba(180, 100, 120, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(248, 244, 255, 0.88));
}
.theme-dao .layer-scroll strong { color: #2a2048; }
.theme-dao .layer-scroll p { color: #6a6288; }
.theme-dao .path-pick-hint span {
  color: #6a52b8;
  border-color: rgba(140, 120, 200, 0.22);
  background: rgba(255, 252, 248, 0.82);
}

.theme-jie .layer-chip-panel,
.theme-jie .path-widget {
  border-color: rgba(130, 120, 200, 0.26);
  background: linear-gradient(160deg, rgba(252, 252, 255, 0.92), rgba(238, 236, 252, 0.82));
}
.theme-jie .layer-reward-strip {
  border-color: rgba(140, 120, 210, 0.24);
  background:
    linear-gradient(135deg, rgba(120, 110, 190, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 238, 255, 0.8));
}
.theme-jie .path-pick-hint span {
  color: #5e48cf;
  border-color: rgba(120, 100, 220, 0.22);
  background: rgba(248, 246, 255, 0.85);
}
.theme-jie .path-rich-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 240, 255, 0.82));
  border-color: rgba(130, 120, 200, 0.28);
}

/* ???????? + ???? */
.trail-body-grid {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.trail-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 14px 14px;
  border-right: 1px solid rgba(127, 137, 193, 0.18);
  background:
    linear-gradient(180deg, rgba(250, 250, 255, 0.92), rgba(240, 242, 250, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(120, 130, 180, 0.04) 18px 19px);
  overflow: auto;
}
.trail-side-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}
.trail-side-panel > header b {
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #1a2550;
}
.trail-side-panel > header small {
  font-size: 12px;
  color: #6d78a4;
  letter-spacing: 0.08em;
}
.trail-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.trail-chapter-item {
  padding: 10px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(127, 137, 193, 0.2);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.trail-chapter-item:hover {
  transform: translateX(2px);
  border-color: rgba(120, 100, 200, 0.35);
}
.trail-chapter-item.is-active {
  border-color: rgba(140, 120, 220, 0.38);
  background: linear-gradient(135deg, rgba(248, 246, 255, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: 0 6px 14px rgba(90, 80, 160, 0.1);
}
.trail-chapter-item.is-done {
  border-color: rgba(47, 158, 134, 0.28);
}
.trail-chapter-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.trail-chapter-head b {
  font-family: var(--font);
  font-size: 14px;
  color: #1a2550;
  letter-spacing: 0.04em;
}
.trail-chapter-head span {
  font-size: 11px;
  font-weight: 700;
  color: #6d78a4;
}
.trail-chapter-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(110, 120, 180, 0.14);
  overflow: hidden;
  margin-bottom: 6px;
}
.trail-chapter-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cec, #526dff);
}
.trail-chapter-item.is-active .trail-chapter-bar em {
  background: linear-gradient(90deg, #9f7bf0, #6745d5);
}
.trail-chapter-item small {
  font-size: 11px;
  color: #7a84a8;
}
.trail-side-tip {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(127, 137, 193, 0.32);
  background: rgba(255, 255, 255, 0.55);
}
.trail-side-tip em {
  display: block;
  margin-bottom: 4px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #c45656;
  font-weight: 700;
}
.trail-side-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #5a6796;
}
.trail-body-grid .trail-map-stage {
  min-width: 0;
}
.trail-footer-rich {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  justify-content: stretch;
  padding: 12px 16px 14px;
}
.trail-focus-scroll {
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(140, 120, 200, 0.22);
  background:
    linear-gradient(90deg, rgba(140, 120, 200, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 255, 0.95), rgba(246, 246, 255, 0.9));
}
.trail-focus-scroll em {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #c45656;
  font-weight: 700;
}
.trail-focus-scroll strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #1a2550;
}
.trail-focus-scroll p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #5a6796;
  line-height: 1.45;
}
.trail-map.theme-guan .trail-map-stage {
  background:
    linear-gradient(180deg, rgba(248, 249, 255, 0.22), rgba(240, 242, 252, 0.18)),
    radial-gradient(ellipse at 50% 100%, rgba(180, 170, 255, 0.1), transparent 55%);
}
.trail-cave-glow {
  position: absolute;
  inset: 10% 18% auto;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 230, 180, 0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .layer-footer-row {
    grid-template-columns: 1fr 1fr;
  }
  .layer-footer-row .path-pick-motto {
    grid-column: 1 / -1;
    text-align: center;
  }
  .trail-body-grid {
    grid-template-columns: 1fr;
  }
  .trail-side-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(127, 137, 193, 0.18);
    max-height: 160px;
  }
  .trail-chapter-list {
    flex-direction: row;
    overflow: auto;
  }
  .trail-chapter-item {
    min-width: 160px;
  }
}
@media (max-width: 980px) {
  .path-rich-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
  }
  .path-rich-art {
    width: 72px;
    height: 96px;
  }
  .trail-footer-rich {
    grid-template-columns: 1fr;
  }
  .trail-footer-rich .path-go-btn {
    width: 100%;
  }
}

/* ?? ???????????? ?? */
/* ==== PORT: template7 student quest UI (auto) ==== */
#view-quest.active,
:is(#view-quest, #view-quest-work).active {
  display: flex !important;
  flex: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}
body.pbl-preview-active #view-quest.active,
body.pbl-preview-active :is(#view-quest, #view-quest-work).active {
  /* 预览顶栏占高，仍锁死外层滚动，避免整页出现横/竖滑条 */
  overflow: hidden;
}
.app.app--exam {
  overflow-x: hidden;
  max-width: 100%;
}
.exam-quiz--sect {
  --exam-blue: #6745d5;
  --exam-blue-soft: rgba(140, 120, 230, 0.12);
  --exam-ink: #0d1b4a;
  --exam-muted: #5a6796;
  --exam-line: rgba(127, 137, 193, 0.28);
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(49, 59, 119, 0.45);
  border-radius: 18px;
  background: #f5f6fc;
  box-shadow: inset 0 0 40px rgba(116, 129, 198, 0.08), 0 12px 28px rgba(70, 82, 145, 0.1);
}
.quest-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.quest-land {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(245, 246, 252, 0.55) 0%, rgba(245, 246, 252, 0.2) 45%, rgba(245, 246, 252, 0.1) 100%),
    url("assets/sect-landscape.png");
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.98) hue-rotate(4deg);
  opacity: 0.9;
}
.quest-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, 0.5) 0 16%, transparent 40%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(120, 110, 190, 0.05) 18px 19px);
}
.quest-mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.quest-mist.a {
  width: 520px;
  height: 520px;
  left: 6%;
  top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
}
.quest-mist.b {
  width: 420px;
  height: 280px;
  right: -40px;
  top: 30px;
  background: radial-gradient(circle, rgba(190, 180, 255, 0.28), transparent 70%);
}
.quest-scene .o-seal-ghost {
  right: 8%;
  bottom: 14%;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(196, 86, 86, 0.18);
  border-radius: 50%;
  opacity: 0.45;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 6px rgba(196, 86, 86, 0.06);
}
.quest-scene .o-seal-ghost::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 28px;
  color: rgba(196, 86, 86, 0.35);
}

.exam-quiz--sect > .exam-quiz-bar,
.exam-quiz--sect > .exam-quiz-layout {
  position: relative;
  z-index: 1;
}
.exam-quiz--sect .exam-quiz-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(126, 137, 205, 0.16);
  backdrop-filter: blur(10px);
}
.quest-top-helps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.quest-top-helps .quest-top-guide {
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 13px;
}
.exam-quiz--sect .exam-back,
.exam-quiz--sect .path-pick-back {
  border: 1px solid rgba(130, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #4d5a8c;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(83, 72, 177, 0.1);
  cursor: pointer;
}
.exam-quiz--sect .exam-back:hover {
  color: #594ad5;
  background: #fff;
}
.quest-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.exam-quiz--sect .exam-quiz-tag {
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  border: 0;
  padding: 4px 10px;
  letter-spacing: 0.06em;
}
.quest-meta-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #c45656;
  background: rgba(196, 86, 86, 0.08);
  border: 1px solid rgba(196, 86, 86, 0.22);
  letter-spacing: 0.04em;
}
.exam-quiz--sect .exam-quiz-meta strong {
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #08153f;
  white-space: normal;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.25;
}
.path-seal--sm {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border-width: 1.5px;
  box-shadow: inset 0 0 0 2px rgba(196, 86, 86, 0.12);
}
.exam-quiz--sect .quest-side-orb {
  min-width: 168px;
}
.exam-quiz--sect .exam-quiz-layout {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  padding: 0 156px 0 268px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.exam-quiz--sect .exam-quiz-layout::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.exam-quiz--sect .exam-quiz-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px 148px;
  width: 100%;
  box-sizing: border-box;
}

/* 测验关 · 素材库贴页面左侧（与右侧攻略对称） */
#quest-assets-dock-quiz.quest-assets-dock--rail {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 12;
  width: 236px;
  max-height: min(520px, calc(100vh - 200px));
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#quest-assets-dock-quiz.quest-assets-dock--rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* 测验关 · 攻略嵌在题目右缘与灵泉进度条之间 */
#guide-panel.quest-guide-slot {
  --quest-spirit-w: 132px;
  --quest-spirit-r: 14px;
  --quest-guide-gap: 14px;
  position: absolute;
  top: 50%;
  right: calc(var(--quest-spirit-r) + var(--quest-spirit-w) + var(--quest-guide-gap));
  transform: translateY(-50%);
  z-index: 12;
  width: 300px;
  max-height: min(520px, calc(100vh - 200px));
  margin: 0;
  padding: 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.95));
  box-shadow: 0 10px 24px rgba(55, 45, 120, 0.12);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#guide-panel.quest-guide-slot .guide-head {
  flex: 0 0 auto;
  margin: 0 2px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(120, 110, 200, 0.14);
}
#guide-panel.quest-guide-slot .guide-head h3 {
  font-family: var(--font);
  letter-spacing: 0.06em;
  color: #0d1b4a;
  font-size: 16px;
  margin: 0 0 6px;
}
#guide-panel.quest-guide-slot .guide-head .muted {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #6b7699;
}
#guide-panel.quest-guide-slot .guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#guide-panel.quest-guide-slot .guide-list > li {
  margin: 0;
  padding: 0;
}
#guide-panel.quest-guide-slot .guide-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#guide-panel.quest-guide-slot .guide-card--hint,
#guide-panel.quest-guide-slot .guide-card--link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(130, 140, 200, 0.2);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
#guide-panel.quest-guide-slot .guide-card--hint:hover,
#guide-panel.quest-guide-slot .guide-card--link:hover {
  border-color: rgba(103, 69, 213, 0.32);
  background: #fff;
  box-shadow: 0 4px 12px rgba(90, 70, 180, 0.08);
}
#guide-panel.quest-guide-slot .guide-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#guide-panel.quest-guide-slot .guide-card__tag,
#guide-panel.quest-guide-slot .guide-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
#guide-panel.quest-guide-slot .guide-tag--hint {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
#guide-panel.quest-guide-slot .guide-tag--doc {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
#guide-panel.quest-guide-slot .guide-tag--video {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}
#guide-panel.quest-guide-slot .guide-tag--link {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
}
#guide-panel.quest-guide-slot .guide-card__title {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  color: #1a2550;
  word-break: break-word;
}
#guide-panel.quest-guide-slot .guide-card--hint .guide-card__title {
  font-size: 15px;
}
#guide-panel.quest-guide-slot .guide-card__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6796;
  word-break: break-word;
}
#guide-panel.quest-guide-slot .guide-card__action {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #6745d5;
  letter-spacing: 0.02em;
}
#guide-panel.quest-guide-slot .ai-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
#guide-panel.quest-guide-slot .ai-box-title {
  font-size: 14px;
}
@media (max-width: 1100px) {
  #guide-panel.quest-guide-slot {
    width: 272px;
  }
  #quest-assets-dock-quiz.quest-assets-dock--rail {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 10px 12px 0;
  }
  .exam-quiz--sect .exam-quiz-layout {
    padding: 0 12px 148px;
  }
}
#guide-panel.quest-guide-slot::-webkit-scrollbar {
  display: none;
}
#guide-panel.quest-guide-slot[hidden] {
  display: none !important;
}
#guide-panel.quest-guide-slot.is-highlight {
  box-shadow: 0 10px 24px rgba(55, 45, 120, 0.12), inset 0 0 0 2px rgba(103, 69, 213, 0.28);
}
@media (max-width: 900px) {
  #guide-panel.quest-guide-slot {
    position: fixed;
    top: auto;
    bottom: 148px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-height: min(42vh, 360px);
    z-index: 220;
    border-radius: 16px;
  }
}

/* ??? ? ?????? */
.exam-quiz--sect > .quest-spirit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 6;
  padding: 0;
  pointer-events: none;
}
.quest-spirit {
  pointer-events: none;
}
.quest-spirit .spirit-well {
  pointer-events: auto;
  width: 132px;
  min-height: 360px;
  height: min(460px, calc(100vh - 220px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(140, 150, 220, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 242, 255, 0.78)),
    #eef0fb;
  box-shadow:
    0 12px 24px rgba(70, 60, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.quest-spirit .spirit-well-label {
  text-align: center;
  flex: 0 0 auto;
}
.quest-spirit .spirit-well-label em {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #6a5cbc;
  font-family: var(--font);
}
.quest-spirit .spirit-well-label strong,
.quest-spirit .spirit-well-pct {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  color: #3d2f9a;
  font-family: var(--font);
}
.quest-spirit .spirit-well-tube {
  position: relative;
  flex: 1 1 auto;
  width: 52px;
  min-height: 220px;
  border-radius: 999px;
  border: 2px solid rgba(140, 150, 220, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(200, 210, 235, 0.2)),
    rgba(120, 130, 160, 0.18);
  overflow: hidden;
  box-shadow:
    inset 0 0 18px rgba(80, 90, 140, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.quest-spirit .spirit-well-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background:
    linear-gradient(180deg, rgba(170, 210, 255, 0.95), rgba(90, 140, 230, 0.88) 45%, rgba(70, 100, 200, 0.92));
  transition: height 0.55s ease;
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.35);
}
.quest-spirit .spirit-well-waves {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 18px;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(180, 220, 255, 0.5), transparent 50%);
  transition: bottom 0.55s ease;
  animation: spirit-wave 2.8s ease-in-out infinite;
  pointer-events: none;
}
.quest-spirit .spirit-well-bead {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #9ec8ff 55%, #5a8adf);
  box-shadow: 0 0 10px rgba(120, 180, 255, 0.7);
  bottom: 4px;
  transition: bottom 0.55s ease;
  animation: spirit-bead 2.2s ease-in-out infinite;
  pointer-events: none;
}
.quest-spirit .spirit-well-caption {
  margin: 0;
  max-width: 7.5em;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #5d6b96;
  font-family: var(--font);
}
.quest-spirit .spirit-well-marks {
  display: none;
}
@keyframes spirit-wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6%); }
}
@keyframes spirit-bead {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.exam-work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exam-work-card .upload-zone {
  min-height: 140px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 14px;
  border: 1.5px dashed rgba(120, 110, 200, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: #5a6796;
  font-size: 14px;
  text-align: center;
  padding: 22px 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.exam-work-card .upload-zone.is-uploading {
  border-style: solid;
  border-color: rgba(103, 69, 213, 0.45);
  color: #5e48cf;
}
#pp-upload.is-uploading,
#pp-upload.is-done,
#pp-upload.is-uploaded {
  border-color: rgba(103, 69, 213, 0.45);
}
.exam-work-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #4d5a8c;
}
.quest-work-review {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
}
.quest-work-review strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #334575;
}
.quest-work-review ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.quest-work-review li {
  font-size: 13px;
  color: #5b6a9b;
}
.quest-work-review li.is-ok { color: #2f7d4a; }
.quest-work-review li.is-bad { color: #a14a3a; }

.exam-work-note textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(127, 137, 193, 0.28);
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
  min-height: 88px;
  background: #fff;
  color: #0d1b4a;
}
.exam-work-side {
  position: sticky;
  top: 12px;
  margin: 0;
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(245, 246, 255, 0.72));
  box-shadow: 0 10px 22px rgba(70, 60, 140, 0.1);
  backdrop-filter: blur(10px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
#guide-panel-work[hidden] {
  display: none !important;
}
#guide-panel-work .guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
#guide-panel-work .guide-list > li {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.exam-work-side.is-highlight {
  box-shadow: 0 0 0 2px rgba(103, 69, 213, 0.35), 0 10px 22px rgba(70, 60, 140, 0.12);
}
.exam-quiz--sect .quest-side-orb .path-mini-copy span {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .exam-work-side { position: static; }
}

.exam-quiz--sect .exam-quiz-desc {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7699;
  background: transparent;
  border: 0;
}
.quest-motto {
  display: none !important;
}

.exam-work-side--quiet {
  opacity: 0.92;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
}
.exam-work-side--quiet .guide-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.exam-work-side--quiet .guide-head .muted {
  font-size: 12px;
}

/* 作品关 · 任务要求主体 */
.quest-work-brief {
  margin: 0 0 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 255, 0.88));
  border: 1px solid rgba(106, 118, 196, 0.28);
  box-shadow: 0 8px 22px rgba(70, 82, 145, 0.1);
}
.quest-work-brief__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4a5ab8;
  background: rgba(106, 118, 196, 0.12);
  border-radius: 6px;
}
#view-identity-select .hub-preview-actions .hub-board-enter--soft {
  background: rgba(224, 242, 254, 0.95);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

/* 前情回顾 + 学生素材库（默认可折叠） */
.quest-assets-dock {
  position: sticky;
  top: 12px;
  margin: 0;
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: none;
  min-width: 0;
  box-sizing: border-box;
}
.quest-assets-dock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.quest-assets-dock__head strong {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}
.quest-assets-dock__count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.quest-assets-dock__toggle {
  margin-left: auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.quest-assets-dock__toggle:hover {
  color: #0f172a;
}
.quest-assets-dock.is-collapsed .quest-assets-dock__body {
  display: none;
}
.quest-assets-dock:not(.is-collapsed) .quest-assets-dock__body {
  display: block;
  margin-top: 10px;
}
.quest-assets-dock__hint {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.4;
}
.quest-assets-dock__pin {
  display: none;
}
.quest-assets-dock__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.quest-assets-dock__tab {
  appearance: none;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #0369a1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quest-assets-dock__tab em {
  font-style: normal;
  opacity: 0.75;
}
.quest-assets-dock__tab.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}
.quest-assets-dock__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(36vh, 280px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quest-assets-dock__list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.quest-assets-dock__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.quest-assets-dock__meta {
  min-width: 0;
}
.quest-assets-dock__meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
  word-break: break-word;
}
.quest-assets-dock__meta small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.quest-assets-dock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quest-assets-dock__actions .btn {
  margin: 0;
}
.quest-assets-dock__nofile {
  font-size: 11px;
  align-self: center;
}
.quest-assets-dock__empty {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
}
.quest-assets-dock__more {
  width: 100%;
  margin-top: 4px;
}
.quest-project-context {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.88);
}
.quest-project-context__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.quest-project-context__tag {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
}
.quest-project-context__assets-btn {
  appearance: none;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: #fff;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.quest-project-context__assets-btn:hover {
  background: rgba(14, 165, 233, 0.08);
}
.quest-project-context__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quest-project-context__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.quest-project-context__item strong {
  font-size: 13px;
  color: #0f172a;
}
.quest-project-context__item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.quest-project-context__item em.is-done {
  color: #047857;
  background: rgba(167, 243, 208, 0.55);
}
.quest-project-context__item em.is-todo {
  color: #b45309;
  background: rgba(254, 243, 199, 0.85);
}
.quest-project-context__item .btn {
  margin-left: auto;
}
.quest-project-context__out {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.quest-asset-drawer,
.quest-link-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.35);
}
.quest-link-modal {
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.quest-asset-drawer[hidden],
.quest-link-modal[hidden] {
  display: none !important;
}
.quest-asset-drawer__panel {
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
}
.quest-asset-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.quest-asset-drawer__head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.quest-asset-drawer__head .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.quest-asset-drawer__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.quest-asset-drawer__tab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.quest-asset-drawer__tab.is-active {
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(224, 242, 254, 0.9);
}
.quest-asset-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quest-asset-drawer__item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
}
.quest-asset-drawer__item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}
.quest-asset-drawer__item small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
}
.quest-asset-drawer__item .quest-asset-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quest-asset-drawer__empty {
  margin: 24px 8px;
  text-align: center;
  font-size: 13px;
}
.quest-link-modal__panel {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.quest-link-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.quest-link-modal__head h3 {
  margin: 0;
  font-size: 16px;
}
.quest-link-modal__body {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  min-height: 80px;
}
.quest-link-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.pbl-preview-active .quest-project-context__assets-btn,
body.pbl-preview-active .quest-project-context {
  /* 教师预览同样可用 */
}

/* 任务卡情境 · 通关标准（学生端） */
.quest-task-scenario {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: 0 8px 20px rgba(180, 120, 20, 0.1);
}
.quest-task-scenario__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b45309;
}
.quest-task-scenario__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 600;
}
.quest-task-scenario__meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}
.quest-study-guide {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.85);
}
.quest-study-guide > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  color: #64748b;
  user-select: none;
}
.quest-study-guide > summary::-webkit-details-marker {
  display: none;
}
.quest-study-guide > summary::before {
  content: '▸ ';
  color: #94a3b8;
}
.quest-study-guide[open] > summary::before {
  content: '▾ ';
}
.quest-study-guide__body {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}
.quest-study-guide__keys {
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
}
.quest-study-guide__keys span {
  font-weight: 700;
  margin-right: 4px;
}
.quest-pass-criteria {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(240, 253, 244, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.quest-pass-criteria__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}
.quest-pass-criteria__list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.quest-pass-criteria__list li + li {
  margin-top: 4px;
}
.quest-pass-criteria__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.quest-work-submit-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #6a7599;
}
.exam-quiz--sect .exam-quiz-card {
  position: relative;
  border: 1px solid rgba(127, 137, 193, 0.28);
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 255, 0.82));
  box-shadow: 0 10px 24px rgba(70, 82, 145, 0.1);
  margin-bottom: 16px;
}
.exam-quiz--sect .exam-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.exam-quiz--sect .exam-q-no {
  color: #5e48cf;
  background: rgba(140, 120, 230, 0.12);
  border: 1px solid rgba(120, 100, 220, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}
.quest-card-seal {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(196, 86, 86, 0.55);
  border: 1px solid rgba(196, 86, 86, 0.28);
  border-radius: 4px;
  padding: 2px 8px;
  transform: rotate(-6deg);
}
.exam-quiz--sect .exam-q-text {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0d1b4a;
  line-height: 1.55;
  margin-bottom: 16px;
}
.exam-quiz--sect .exam-opt {
  border-radius: 12px !important;
  border: 1px solid rgba(127, 137, 193, 0.26) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 4px 12px rgba(70, 82, 145, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.exam-quiz--sect .exam-opt:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 100, 220, 0.4) !important;
}
.exam-quiz--sect .exam-opt span {
  background: linear-gradient(145deg, #ece8ff, #d9d2ff);
  color: #5e48cf;
  border-radius: 8px;
}
.exam-quiz--sect .exam-opt:has(input:checked) {
  border-color: rgba(120, 100, 220, 0.5) !important;
  background: linear-gradient(135deg, rgba(248, 246, 255, 0.98), rgba(236, 232, 255, 0.9)) !important;
  box-shadow: 0 8px 18px rgba(90, 70, 180, 0.12);
}
.exam-quiz--sect .exam-opt:has(input:checked) span {
  background: linear-gradient(145deg, #9f7bf0, #6745d5);
  color: #fff;
}
.exam-quiz--sect .exam-ghost-btn {
  border: 1px solid rgba(130, 140, 200, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #4d5a8c;
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(83, 72, 177, 0.08);
}
.exam-quiz--sect .exam-ghost-btn:hover {
  color: #594ad5;
  background: #fff;
}
.exam-quiz--sect .exam-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #8b6cec;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(90, 59, 190, 0.22);
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 140px;
}
.exam-quiz--sect .exam-primary-btn span {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1;
}
.exam-quiz--sect .exam-explain {
  border: 1px solid rgba(140, 120, 220, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(244, 242, 255, 0.85));
  border-radius: 14px;
}
.exam-quiz--sect .exam-explain h3 {
  font-family: var(--font);
  letter-spacing: 0.08em;
  color: #0d1b4a;
}
.exam-quiz--sect .quest-motto {
  margin-top: 18px;
  text-align: center;
}

/* ??? ? ???????? */
#view-quest .exam-quiz--sect,
:is(#view-quest, #view-quest-work) {
  position: relative;
}
.quest-map-thumb {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: min(320px, 62vw);
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    10px 14px 28px rgba(40, 40, 60, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.85),
    inset -1px -1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quest-map-thumb:hover {
  transform: translateY(-3px);
  box-shadow:
    12px 18px 32px rgba(40, 40, 60, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}
.quest-map-thumb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.quest-map-thumb-head em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  border-radius: 999px;
  padding: 3px 8px;
  flex: 0 0 auto;
}
.quest-map-thumb-head strong {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quest-map-thumb-head span {
  font-size: 11px;
  font-weight: 700;
  color: #5b4cc0;
  flex: 0 0 auto;
}
.quest-map-thumb-nodes {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 148px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248, 246, 255, 0.28), rgba(236, 238, 248, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.quest-map-thumb-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.quest-map-thumb-mist {
  position: absolute;
  inset: -10% -5% auto;
  height: 70%;
  background:
    radial-gradient(60% 80% at 20% 40%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(50% 70% at 78% 30%, rgba(255, 255, 255, 0.5), transparent 68%);
}
.quest-map-thumb-mount {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2px;
  height: 42%;
  background:
    linear-gradient(160deg, transparent 0 28%, rgba(150, 140, 190, 0.16) 29% 40%, transparent 41%),
    linear-gradient(20deg, transparent 0 48%, rgba(120, 110, 170, 0.18) 49% 58%, transparent 59%),
    linear-gradient(180deg, transparent, rgba(130, 125, 170, 0.12));
  clip-path: polygon(0 70%, 12% 48%, 22% 58%, 34% 36%, 48% 52%, 62% 30%, 76% 48%, 88% 40%, 100% 58%, 100% 100%, 0 100%);
  opacity: 0.85;
}
.quest-map-thumb-spine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.quest-map-thumb-spine .spine-glow {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quest-map-thumb-spine .spine-line {
  stroke: rgba(150, 140, 200, 0.5);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quest-map-thumb-spine .spine-done {
  stroke: #7b5ce8;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(120, 100, 220, 0.35));
}
/* ??????????? + ??????? */
.quest-map-thumb-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.quest-map-thumb-stop {
  position: absolute;
  left: var(--dot-x, 50%);
  top: var(--dot-y, 50%);
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.quest-map-thumb-dot {
  position: relative;
  left: auto;
  top: auto;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transform: none;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(180, 185, 220, 0.85),
    0 4px 10px rgba(60, 55, 120, 0.12);
}
.quest-map-thumb-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #7a8296;
  font-family: var(--font);
}
.quest-map-thumb-dot i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #5c4cc8;
  line-height: 1;
}
.quest-map-thumb-arm {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 18px;
  background: rgba(170, 175, 210, 0.85);
  transform: translateX(-50%);
  z-index: 2;
}
.quest-map-thumb-stop.side-up .quest-map-thumb-arm {
  top: calc(50% - 34px);
  border-radius: 999px 999px 0 0;
}
.quest-map-thumb-stop.side-down .quest-map-thumb-arm {
  top: calc(50% + 16px);
  border-radius: 0 0 999px 999px;
}
.quest-map-thumb-card {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 56px;
  padding: 5px 6px 6px;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    4px 8px 14px rgba(40, 40, 70, 0.1),
    inset 1px 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateX(-50%);
}
.quest-map-thumb-stop.side-up .quest-map-thumb-card {
  bottom: calc(50% + 36px);
}
.quest-map-thumb-stop.side-down .quest-map-thumb-card {
  top: calc(50% + 36px);
}
.quest-map-thumb-card em,
.quest-map-thumb-here {
  display: block;
  margin: 0 0 2px;
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6a5ad4;
  line-height: 1.2;
}
.quest-map-thumb-here {
  color: #d97706;
}
.quest-map-thumb-card strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quest-map-thumb-card small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: #7a7f98;
  line-height: 1.2;
}
.quest-map-thumb-stop.is-done .quest-map-thumb-dot {
  background: linear-gradient(145deg, #b9a6f5, #6f4fd4);
  box-shadow: 0 4px 10px rgba(110, 80, 210, 0.28);
}
.quest-map-thumb-stop.is-done .quest-map-thumb-dot i { color: #fff; }
.quest-map-thumb-stop.is-done .quest-map-thumb-arm { background: rgba(123, 92, 232, 0.7); }
.quest-map-thumb-stop.is-now .quest-map-thumb-dot {
  background: linear-gradient(145deg, #ff9a78, #e4573d);
  box-shadow: 0 0 0 3px rgba(228, 87, 61, 0.2), 0 6px 12px rgba(180, 70, 50, 0.22);
}
.quest-map-thumb-stop.is-now .quest-map-thumb-dot i { color: #fff; }
.quest-map-thumb-stop.is-now .quest-map-thumb-arm { background: rgba(228, 87, 61, 0.75); }
.quest-map-thumb-stop.is-now .quest-map-thumb-card {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 16px rgba(180, 90, 40, 0.14), inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}
.quest-map-thumb-stop.is-locked {
  opacity: 0.78;
}
.quest-map-thumb-cta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5c4cc8;
  text-align: right;
}
@media (max-width: 900px) {
  .exam-quiz--sect .exam-quiz-bar {
    grid-template-columns: 1fr;
  }
  .exam-quiz--sect .quest-side-orb {
    justify-self: start;
  }
  .quest-map-thumb {
    right: 12px;
    bottom: 12px;
    width: min(280px, 72vw);
    padding: 10px;
  }
  .quest-map-thumb-nodes {
    height: 132px;
  }
  .quest-map-thumb-card {
    width: 50px;
    padding: 4px 5px;
  }
}

/* ?? ?? / ?????????? ?? */
#view-special.active,
#view-hackathon.active,
#view-special-done.active,
#view-hackathon-done.active {
  display: flex !important;
  flex: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.sect-subpage .path-pick-body {
  overflow: auto;
}
.sect-dual-grid,
.sect-solo-grid,
.sect-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.sect-solo-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
}
.sect-glass-panel,
.sect-event-card,
.sect-done-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(127, 137, 193, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 255, 0.78));
  box-shadow: 0 10px 24px rgba(70, 82, 145, 0.1);
  backdrop-filter: blur(8px);
}
.sect-glass-panel {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sect-glass-panel > header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sect-glass-panel > header h2 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0d1b4a;
}
.sect-glass-panel > header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6796;
}
.sect-panel-seal {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font);
  font-style: normal;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(145deg, #9f7bf0, #6745d5);
  box-shadow: 0 8px 16px rgba(90, 59, 190, 0.22);
}
.sect-panel-seal.alt {
  background: linear-gradient(145deg, #8eb6ff, #526dff 58%, #3452c4);
}
.sect-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #4d5a8c;
}
.sect-field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(127, 137, 193, 0.3);
  background: rgba(255, 255, 255, 0.88);
  color: #0d1b4a;
  font: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}
.sect-field textarea:focus {
  outline: none;
  border-color: rgba(120, 100, 220, 0.5);
  box-shadow: 0 0 0 3px rgba(140, 120, 230, 0.12);
}
.sect-bullet {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sect-bullet li {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #4d5a8c;
  background: rgba(120, 130, 190, 0.08);
}
.sect-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.sect-hint {
  margin: 0;
  font-size: 12px;
  color: #7a84a8;
}
.sect-subpage .sect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.sect-subpage .sect-btn span {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1;
}
.sect-subpage .sect-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}
.sect-subpage .sect-btn-primary {
  border: 1px solid #8b6cec;
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 14px rgba(90, 59, 190, 0.22);
}
.sect-subpage .sect-btn-secondary {
  border: 1px solid rgba(130, 140, 200, 0.4);
  color: #515f98;
  background: rgba(255, 255, 255, 0.72);
}
.sect-event-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 18px;
  align-items: start;
}
.sect-event-art {
  position: relative;
  width: 92px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 8px 16px 16px 8px;
  color: #fff;
  transform: rotate(-7deg);
  box-shadow: 8px 8px 16px rgba(45, 57, 111, 0.18), inset 0 0 22px rgba(255, 255, 255, 0.3);
}
.sect-event-art b {
  font-family: var(--font);
  font-size: 34px;
  font-weight: 600;
}
.sect-event-art em {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.9;
  white-space: nowrap;
}
.sect-event-art.art-scroll {
  background: linear-gradient(145deg, #c4a8ff, #7b52d4 58%, #5a38b0);
}
.sect-event-art.art-swords {
  background: linear-gradient(145deg, #8eb6ff, #4a6cf0 58%, #3452c4);
}
.sect-event-copy {
  min-width: 0;
}
.sect-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sect-event-copy h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0d1b4a;
}
.sect-event-copy > p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6796;
}
.sect-event-card.is-open {
  border-color: rgba(120, 100, 220, 0.4);
  box-shadow: 0 14px 28px rgba(90, 70, 180, 0.14);
}
.sect-done-card {
  width: min(560px, 100%);
  padding: 36px 28px 28px;
  text-align: center;
}
.sect-done-card .path-seal {
  margin: 0 auto 12px;
}
.sect-done-card .exam-quiz-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(180deg, #9f7bf0, #6745d5);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}
.sect-done-card h1 {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #08153f;
}
.sect-done-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #5a6796;
}
.sect-done-card .sect-panel-actions {
  justify-content: center;
}
@media (max-width: 980px) {
  .sect-dual-grid,
  .sect-event-grid {
    grid-template-columns: 1fr;
  }
  .sect-event-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* ?? ????????????? ?? */
.trail-map--sect .trail-map-titles h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
.trail-map--sect .trail-map-focus-sub {
  font-size: 14px;
  color: #4a5688;
  margin-top: 8px;
}
.trail-map--sect .trail-map-path-note {
  font-size: 14px;
  color: #5a6796;
}
.trail-map--sect .trail-badge {
  font-size: 13px;
  padding: 5px 12px;
}
.trail-map--sect .path-back {
  font-size: 14px;
  padding: 10px 16px;
}
.trail-map--sect .path-pick-crumb li {
  font-size: 13px;
  padding: 7px 14px;
}
.trail-map--sect .path-mini-orb {
  width: 86px;
  height: 86px;
}
.trail-map--sect .path-mini-orb strong {
  font-size: 24px;
}
.trail-map--sect .path-mini-orb small {
  font-size: 12px;
}
.trail-map--sect .path-mini-copy {
  font-size: 14px;
  color: #4a5688;
}
.trail-map--sect .path-mini-copy b {
  font-size: 18px;
}
.trail-map--sect .path-go-btn {
  font-size: 16px;
  min-width: 240px;
  padding: 14px 30px;
}

.trail-body-grid {
  grid-template-columns: 260px minmax(0, 1fr);
}
.trail-side-panel > header b {
  font-size: 22px;
}
.trail-side-panel > header small {
  font-size: 14px;
  color: #5a6796;
}
.trail-chapter-head b {
  font-size: 16px;
}
.trail-chapter-head span {
  font-size: 13px;
  color: #5a6796;
}
.trail-chapter-item small {
  font-size: 13px;
  color: #5a6796;
}
.trail-side-tip em {
  font-size: 13px;
}
.trail-side-tip p {
  font-size: 14px;
  color: #4a5688;
  line-height: 1.6;
}
.trail-focus-scroll em {
  font-size: 13px;
}
.trail-focus-scroll strong {
  font-size: 22px;
}
.trail-focus-scroll p {
  font-size: 14px;
  color: #4a5688;
}

.path-chapter-label span {
  max-width: 10em;
  font-size: 14px;
  padding: 12px 14px;
  line-height: 1.4;
}
.path-chapter-mark {
  font-size: 12px;
}
.path-stop {
  width: 168px;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
}
.path-stop-card {
  width: 158px;
  padding: 12px 14px;
}
.path-stop-tag {
  font-size: 12px;
  margin-bottom: 6px;
}
.path-stop-card strong {
  font-size: 15px;
  line-height: 1.4;
}
.path-stop-card small {
  font-size: 13px;
  margin-top: 6px;
  color: #5a6796;
}
.path-stop-dot {
  width: 50px;
  height: 50px;
}
.path-stop-dot i {
  font-size: 15px;
}
.path-stop-here {
  font-size: 12px;
}
.trail-legend {
  font-size: 13px;
  gap: 12px;
  padding: 8px 14px;
}
.trail-map--sect .path-stop-card strong {
  font-size: 16px;
}
.trail-map--sect .path-stop-tag {
  font-size: 12px;
}
.trail-map--sect .path-stop.is-current .path-stop-card small {
  font-size: 13px;
  color: #8a4a3a;
}

@media (max-width: 980px) {
  .path-stop {
    width: 148px;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
  }
  .path-stop-card {
    width: 140px;
  }
}

/* ?? ????????? ? ?????? ?? */
.path-widget-tower {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.path-widget-tower > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}
.path-widget-tower > header b {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #0d1b4a;
}
.path-widget-tower > header small {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #5e48cf;
  background: rgba(140, 120, 230, 0.12);
  border: 1px solid rgba(120, 100, 220, 0.22);
  letter-spacing: 0.02em;
}
.path-tower,
.path-tower.is-gourd,
.path-tower.is-solid {
  display: block;
  height: auto;
  min-height: 0;
}
.gourd-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 6px;
  align-items: stretch;
  min-height: 236px;
}
.gourd-svg {
  width: 100%;
  height: 236px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(120, 80, 30, 0.18));
}
.gourd-liquid {
  transition: y 0.55s ease, height 0.55s ease;
}
.gourd-legend {
  list-style: none;
  margin: 0;
  padding: 28px 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.gourd-legend li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 12px;
  background: rgba(130, 140, 200, 0.08);
  border: 1px solid rgba(130, 140, 200, 0.14);
}
.gourd-legend b {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #5d6694;
  line-height: 1;
}
.gourd-legend span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8a95b8;
}
.gourd-legend li.is-live {
  background: rgba(140, 120, 230, 0.14);
  border-color: rgba(120, 100, 220, 0.28);
  box-shadow: 0 0 0 2px rgba(159, 123, 240, 0.12);
}
.gourd-legend li.is-live b {
  color: #5e48cf;
}
.gourd-legend li.is-live span {
  color: #6745d5;
}
.gourd-legend li.is-done {
  background: rgba(125, 211, 192, 0.18);
  border-color: rgba(47, 158, 134, 0.28);
}
.gourd-legend li.is-done b {
  color: #1f8a72;
}
.gourd-legend li.is-done span {
  color: #2f9e86;
}
.path-tower-caption {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #7a84a8;
}
.path-tower-caption span {
  color: #9f7bf0;
  margin: 0 4px;
}

.theme-dao .path-widget-tower {
  border-color: rgba(180, 140, 160, 0.22);
}
.theme-jie .path-widget-tower {
  border-color: rgba(140, 150, 210, 0.28);
}

@media (max-width: 980px) {
  .path-widget-tower {
    max-width: 100%;
  }
  .gourd-stage {
    min-height: 210px;
  }
  .gourd-svg {
    height: 210px;
  }
}

/* ?? ???? / ???? / ??? ?? */
#view-identity-select .ability-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
#view-identity-select .ability-nodes .realm-node {
  pointer-events: auto;
}
.path-stop.is-challenge:not(.is-current) .path-stop-dot {
  border-color: #c47a1a;
  background: linear-gradient(145deg, #fff7e8, #fde8c0);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.path-stop.is-challenge:not(.is-current) .path-stop-dot i {
  color: #b45309;
  font-size: 13px;
}
.path-stop-challenge {
  color: #b45309 !important;
}
.quest-guard-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7c2d12;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.95), rgba(254, 215, 170, 0.95));
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}
.quest-early-chip {
  color: #b45309 !important;
  background: rgba(254, 243, 199, 0.9) !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-warn {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #f59e0b;
}

/* ?? ???????? ?? */
.project-engage-panel {
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.94);
}
.project-engage-panel .engage-head {
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.project-engage-panel .engage-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #1e293b;
}
.project-engage-panel .engage-toast-line {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}
.pd-engage-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.engage-anti-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}
.engage-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  max-width: 48ch;
}
.engage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.engage-like-btn.is-liked {
  color: #be123c;
  border-color: #fda4af;
  background: #fff1f2;
}
.engage-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}
.engage-compose textarea {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  background: #fff;
}
.engage-compose .btn {
  white-space: nowrap;
  height: 40px;
}
.pd-score-strip {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}
.pd-score-details {
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0 12px;
}
.pd-score-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  user-select: none;
}
.pd-score-details > summary::-webkit-details-marker {
  display: none;
}
.pd-score-details > summary::after {
  content: "?";
  float: right;
  opacity: 0.55;
}
.pd-score-details[open] > summary::after {
  content: "?";
}
.pd-score-details[open] > summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 10px;
}
.pd-score-details .engage-board {
  padding-bottom: 12px;
}
.engage-board {
  display: grid;
  gap: 10px;
}
.engage-raw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.engage-raw-grid .stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(82, 109, 255, 0.08);
}
.engage-raw-grid .stat strong {
  display: block;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
  line-height: 1.2;
}
.engage-raw-grid .stat small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.engage-convert {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.engage-convert-card {
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  min-height: 0;
}
.engage-convert-card small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.engage-convert-card strong {
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.engage-convert-card span {
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.78;
  margin-top: 2px;
}
.engage-convert-card.tone-spark {
  background: linear-gradient(160deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
  color: #3730a3;
}
.engage-convert-card.tone-heart {
  background: linear-gradient(160deg, #fff1f2, #ffe4e6);
  border-color: #fecdd3;
  color: #9f1239;
}
.engage-convert-card.tone-q {
  background: linear-gradient(160deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
  color: #166534;
}
.engage-rule-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.engage-rule-chips li {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.engage-toast-line {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.pd-backlink-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .engage-raw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .engage-convert {
    grid-template-columns: 1fr;
  }
  .engage-compose {
    grid-template-columns: 1fr;
  }
  .engage-compose .btn {
    width: 100%;
  }
  .pd-engage-meta {
    align-items: flex-start;
    width: 100%;
  }
  #view-project-detail .detail-hero,
  #view-idea-detail .detail-hero {
    padding: 16px;
    border-radius: 16px;
  }
}

.ability-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.ability-meter-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 255, 0.88));
  border: 1px solid rgba(139, 124, 236, 0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ability-meter-card small {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #6b7aab;
}
.ability-meter-card strong {
  font-size: 28px;
  font-weight: 700;
  color: #2a3a72;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.ability-meter-card span {
  font-size: 12px;
  color: #8a95b8;
}

.trail-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.path-go-btn--finale {
  background: linear-gradient(180deg, #fbbf24, #d97706) !important;
  color: #fff !important;
  border-color: #b45309 !important;
}


/* ???????????????????? */
.quest-map-thumb-head strong,
.quest-map-thumb-head span,
.quest-map-thumb-cta,
.quest-map-thumb-card,
.quest-map-thumb-arm {
  display: none !important;
}
.quest-map-thumb-nodes {
  height: 88px !important;
}
.quest-map-thumb-stop {
  left: var(--dot-x, 50%) !important;
  top: var(--dot-y, 50%) !important;
}
/* viewBox ? 0~100 ????????????????? */
.quest-map-thumb-spine .spine-glow {
  stroke-width: 3.4;
}
.quest-map-thumb-spine .spine-line {
  stroke-width: 1.7;
}
.quest-map-thumb-spine .spine-done {
  stroke-width: 2;
}

/* AI ????? */
.exam-explain .ai-box-status,
#guide-panel .ai-box-status,
#guide-panel-work .ai-box-status {
  margin: 6px 0 8px;
  font-size: 12px;
  opacity: 0.85;
}

/* 教师工作台 */
#view-teacher-workbench.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}

/* 修炼系统 · 独立顶栏 */
.teacher-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 10px 18px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.teacher-topbar-start {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  min-width: 0;
  justify-self: start;
}
.teacher-topbar-center {
  justify-self: center;
  min-width: 0;
  max-width: min(720px, 56vw);
  width: min(720px, 56vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-topbar-center .pbl-create-stepbar {
  padding: 0;
}
.teacher-topbar-center .pbl-create-stepbar[hidden] {
  display: none !important;
}
.teacher-topbar-center .admin-mode-bar--topbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.teacher-topbar-center .admin-mode-bar--topbar[hidden] {
  display: none !important;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__track {
  min-height: 56px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(82, 109, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(248, 250, 252, 0.92);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__thumb {
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #526dff;
  box-shadow: 0 2px 12px rgba(82, 109, 255, 0.38);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch[data-mode="manual"] .admin-mode-switch__thumb,
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch.is-manual .admin-mode-switch__thumb {
  left: calc(50% + 2px);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn {
  min-height: 52px;
  padding: 10px 20px;
  gap: 10px;
  border-radius: 999px;
  justify-content: center;
  color: #334155;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__icon {
  font-size: 22px;
  line-height: 1;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__sub {
  display: block !important;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn.is-on {
  color: #fff;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn:not(.is-on) .admin-mode-switch__sub {
  color: #64748b;
  opacity: 0.92;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn.is-on .admin-mode-switch__sub {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__desc {
  display: none !important;
}
.teacher-topbar-back {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #4338ca;
  white-space: nowrap;
}
.teacher-topbar-back:hover {
  color: #3730a3;
}
.teacher-topbar[hidden] {
  display: none !important;
}
.teacher-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0;
}
.teacher-topbar-seal {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 800 18px/1 var(--font);
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 8px 18px rgba(67, 56, 202, 0.25);
}
.teacher-topbar-copy strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.teacher-topbar-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted, #64748b);
}
.teacher-topbar-meta,
.teacher-topbar-user-meta {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3d4a6b;
}
.teacher-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: end;
}
.teacher-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(240px, 28vw);
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}
.teacher-topbar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #6d57df;
  background: linear-gradient(145deg, rgba(237, 233, 255, 0.95), rgba(219, 227, 255, 0.9));
}
.teacher-topbar-avatar svg {
  width: 18px;
  height: 18px;
}
.teacher-topbar-user-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.teacher-topbar-user-name {
  overflow: hidden;
  color: #243a78;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-topbar-user-meta {
  overflow: hidden;
  margin: 0;
  color: #7180aa;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #4a5a8a;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.teacher-topbar-logout svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.teacher-topbar-logout:hover {
  color: #5a3fd6;
  border-color: rgba(124, 96, 220, 0.35);
  background: rgba(255, 255, 255, 0.88);
}
body.is-teacher-zone #plaza-channels,
body.is-teacher-zone #role-switch {
  display: none !important;
}
.app.app--teacher-zone {
  min-height: 100dvh;
}
.app.app--teacher-zone .bg {
  opacity: 0.42;
}
.teacher-workbench-head {
  margin-bottom: 22px;
}
.teacher-workbench-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 34px);
}
.teacher-workbench-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.teacher-workbench-sub {
  margin: 0;
  color: var(--muted, #64748b);
  max-width: 56ch;
}
.teacher-workbench-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.teacher-workbench-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0f4c81;
  font-weight: 700;
  font-size: 13px;
}
.teacher-workbench-stat {
  font-size: 13px;
  color: var(--muted, #64748b);
}
.teacher-workbench-stat strong {
  color: var(--ink, #0f172a);
  font-size: 18px;
  margin-left: 4px;
}
.teacher-workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.teacher-wb-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.teacher-wb-card.is-soon {
  opacity: 0.72;
}
.teacher-wb-card-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}
.teacher-wb-card-art.art-create { background: linear-gradient(135deg, #2f6f6a, #1d4f55); }
.teacher-wb-card-art.art-library { background: linear-gradient(135deg, #6366f1, #4338ca); }
.teacher-wb-card-art.art-grade { background: linear-gradient(135deg, #f59e0b, #d97706); }
.teacher-wb-card-art.art-students { background: linear-gradient(135deg, #64748b, #475569); }
.teacher-wb-card-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.teacher-wb-card-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #64748b);
}
.teacher-wb-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.teacher-workbench-note {
  margin-top: 18px;
  font-size: 13px;
}

/* 教师 · 副本管理列表 */
#view-teacher-courses.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}
.teacher-courses-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.teacher-courses-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
}
.teacher-course-toolbar {
  margin-bottom: 14px;
}
.teacher-course-empty {
  margin: 0 0 12px;
}
#view-teacher-courses .dungeon-simple-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
#view-teacher-courses .dungeon-pick-wrap {
  position: relative;
  display: block;
  height: 100%;
}
#view-teacher-courses .dungeon-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 280px;
  padding: 22px 20px 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#view-teacher-courses .dungeon-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}
#view-teacher-courses .dungeon-pick-del {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9b1c1c;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 999px;
  cursor: pointer;
}
#view-teacher-courses .dungeon-pick-badge {
  align-self: flex-end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #5e48cf;
  background: rgba(140, 120, 230, 0.12);
}
#view-teacher-courses .dungeon-pick-seal {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
#view-teacher-courses .dungeon-pick-title {
  font-size: 18px;
  line-height: 1.35;
}
#view-teacher-courses .dungeon-pick-desc,
#view-teacher-courses .dungeon-pick-next {
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.5;
}
#view-teacher-courses .dungeon-pick-foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted, #64748b);
}
#view-teacher-courses .dungeon-pick-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
#view-teacher-courses .dungeon-pick-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
#view-teacher-courses .dungeon-course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#view-teacher-courses .dungeon-course-filter {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#view-teacher-courses .dungeon-course-filter.is-on {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-weight: 700;
}

/* 教师 · 管理学生 */
#view-teacher-students.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}
.teacher-students-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.teacher-students-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
}
.teacher-students-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.teacher-students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.teacher-students-table th,
.teacher-students-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}
.teacher-students-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.03);
}
.teacher-students-table tr:last-child td {
  border-bottom: 0;
}
.teacher-students-table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}
.teacher-students-name {
  font-weight: 700;
}
.teacher-students-role {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}
.teacher-students-progress {
  max-width: 260px;
  line-height: 1.45;
  color: var(--muted, #64748b);
}
.teacher-students-pending {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.teacher-student-detail {
  margin-top: 16px;
  padding: 16px;
}
.teacher-student-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.teacher-student-detail-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.teacher-student-detail-dl {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}
.teacher-student-detail-dl div {
  display: grid;
  gap: 4px;
}
.teacher-student-detail-dl dt {
  font-size: 12px;
  color: var(--muted, #64748b);
}
.teacher-student-detail-dl dd {
  margin: 0;
  line-height: 1.55;
}
.teacher-students-empty,
.teacher-students-loading {
  margin: 0 0 12px;
}

/* Shared spirit-well component: the hub and task workspace use this same structure. */
.cultivation-spirit-well {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #294181;
}
.cultivation-spirit-well .spirit-label {
  margin-top: clamp(20px, 3.18vh, 30px);
  color: #294781;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}
.cultivation-spirit-well > .spirit-well-pct {
  margin-top: 10px;
  color: #26447e;
  font-size: 23px;
  font-weight: 500;
}
.cultivation-spirit-well:not(#hub-spirit-well) .spirit-column {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 390px;
  margin-top: 17px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}
#view-identity-select #hub-spirit-well.cultivation-spirit-well .spirit-column {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
}
.cultivation-spirit-well .tube-glass {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 38px;
  left: 50%;
  width: clamp(22px, 1.45vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(138, 138, 242, .08) 34%, rgba(83, 70, 196, .14) 70%, rgba(255, 255, 255, .54));
  box-shadow: inset 3px 0 5px rgba(255, 255, 255, .72), inset -2px 0 5px rgba(91, 71, 202, .15), 0 0 13px rgba(102, 88, 226, .22);
  transform: translateX(-50%);
}
.cultivation-spirit-well .tube-liquid {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  min-height: 14px;
  border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #a49cff, #6448e4 50%, #3d20bd);
  box-shadow: 0 0 16px #7257ff;
  transition: height .8s cubic-bezier(.2, .8, .2, 1);
}
.cultivation-spirit-well .tube-liquid::before,
.cultivation-spirit-well .tube-liquid i {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 30px;
  height: 10px;
  border-radius: 50%;
  background: rgba(198, 203, 255, .9);
  transform: translateX(-50%);
  animation: water-wave 2.2s ease-in-out infinite;
}
.cultivation-spirit-well .tube-liquid i { top: -3px; opacity: .45; animation-delay: -1.1s; }
.cultivation-spirit-well .tube-shine {
  position: absolute;
  z-index: 3;
  top: 27px;
  bottom: 62px;
  left: 7px;
  width: 3px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), #fff 42%, rgba(255, 255, 255, .2));
  opacity: .75;
}
.cultivation-spirit-well .spirit-ripple {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 50%;
  width: 76px;
  height: 21px;
  border: 1px solid rgba(120, 105, 234, .5);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: ripple 2.7s ease-out infinite;
}
.cultivation-spirit-well .ripple-two { animation-delay: -1.35s; }
.cultivation-spirit-well .spring-count {
  min-width: 100%;
  height: 33px;
  margin-bottom: -2px;
  border: 0;
  border-radius: 11px;
  color: #17347a;
  background: rgba(255, 255, 255, .2);
  font-size: 13px;
  line-height: 33px;
  text-align: center;
  white-space: nowrap;
}

#view-identity-select #hub-spirit-well .spirit-well-caption,
#view-identity-select #hub-spirit-well .spirit-well-marks {
  display: none !important;
}


/* 实践作品提交页：独立的一屏工作台视觉层。 */
:is(#view-quest, #view-quest-work) {
  --work-ink: #17347a;
  --work-ink-soft: #5f70a9;
  --work-violet: #6e45df;
  --work-violet-deep: #4d25c3;
  --work-line: rgba(255, 255, 255, .86);
  --work-glass-a: rgba(255, 255, 255, .38);
  --work-glass-b: rgba(240, 244, 255, .19);
  position: relative;
  color: var(--work-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
}
.app.app--exam:has(:is(#view-quest, #view-quest-work).active),
.app.app--path-pick:has(:is(#view-quest, #view-quest-work).active) {
  gap: 0;
  padding: 0;
  background: #e9efff;
}
:is(#view-quest, #view-quest-work) .exam-quiz--work {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:is(#view-quest, #view-quest-work) .quest-scene {
  z-index: -1;
  border-radius: 0;
}
:is(#view-quest, #view-quest-work) .quest-land {
  background-image:
    linear-gradient(180deg, rgba(248, 249, 255, .05), rgba(235, 240, 255, .02)),
    url("assets/quest-work-mountain-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.9) contrast(.94) brightness(1.01);
  opacity: 1;
}
:is(#view-quest, #view-quest-work) .quest-pattern { opacity: .06; }
:is(#view-quest, #view-quest-work) .quest-mist { opacity: .18; }

/* 当前任务微型云径：直接复用任务地图节点与状态，整块预览跳转完整地图。 */
:is(#view-quest, #view-quest-work) .quest-work-pathbar {
  position: relative;
  z-index: 5;
  flex: 0 0 clamp(54px, 7vh, 66px);
  min-height: 0;
  padding: clamp(15px, 2vh, 22px) clamp(28px, 2.2vw, 42px) 0;
  border: 0;
  background: transparent;
}
:is(#view-quest, #view-quest-work) .quest-work-pathbar .exam-back {
  align-self: start;
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: #213995;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}
:is(#view-quest, #view-quest-work) .quest-work-pathbar .exam-back:hover {
  color: var(--work-violet-deep);
  background: transparent;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview {
  position: absolute;
  z-index: 4;
  bottom: clamp(6px, 0.8vh, 12px);
  left: 50%;
  width: min(68vw, 930px);
  height: clamp(72px, 9.5vh, 88px);
  margin: 0;
  padding: 0 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  transition: filter .2s ease;
  /* 扩大可点区域与上方题号的视觉/点击隔离带 */
  box-shadow: none;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
  pointer-events: none;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview::before {
  content: "";
  position: absolute;
  inset: 0 4% 5px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 16% 58%, rgba(255, 255, 255, .4), transparent 17%),
    radial-gradient(ellipse at 52% 38%, rgba(245, 242, 255, .24), transparent 24%),
    radial-gradient(ellipse at 86% 62%, rgba(255, 255, 255, .34), transparent 18%);
  opacity: .48;
  filter: blur(5px);
  pointer-events: none;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview:hover { filter: brightness(1.035); }
:is(#view-quest, #view-quest-work) .quest-work-path-preview__track,
:is(#view-quest, #view-quest-work) .quest-work-path-preview__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__mist {
  stroke: rgba(248, 245, 255, .32);
  stroke-width: 7;
  opacity: .5;
  filter: blur(3.5px);
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__spine {
  stroke: rgba(116, 82, 203, .3);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 2px rgba(117, 83, 205, .12));
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__focus {
  stroke: url("#quest-work-path-focus");
  stroke-width: 1.55;
  filter: drop-shadow(0 0 3px rgba(104, 66, 204, .16));
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node {
  position: absolute;
  left: var(--path-x);
  top: var(--path-y);
  display: grid;
  justify-items: center;
  width: min(14vw, 154px);
  transform: translate(-50%, -50%);
  opacity: .56;
  pointer-events: auto;
  transition: opacity .2s ease, filter .2s ease;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: rgba(45, 61, 132, .82);
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, .52), transparent 31%),
    rgba(239, 239, 255, .2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), inset 0 -5px 12px rgba(119, 102, 196, .06);
  backdrop-filter: blur(4px) saturate(1.08);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 550;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node em {
  display: block;
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #42578e;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 520;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-near { opacity: .68; }
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-far { opacity: .42; }
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-cleared i {
  border-color: rgba(198, 241, 246, .48);
  color: #5568b0;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .54), transparent 31%),
    linear-gradient(145deg, rgba(187, 234, 244, .38), rgba(173, 167, 235, .28));
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-available:not(.is-current) i {
  border-color: rgba(255, 255, 255, .37);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .5), transparent 31%),
    rgba(237, 233, 255, .22);
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-locked {
  opacity: .28;
  filter: saturate(.72);
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-locked i {
  border-color: rgba(255, 255, 255, .22);
  color: rgba(60, 75, 130, .64);
  background: rgba(236, 239, 255, .12);
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-current i {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, .66);
  color: #fff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .42), transparent 29%),
    linear-gradient(145deg, rgba(143, 99, 237, .96), rgba(84, 50, 190, .98));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 17px rgba(99, 58, 203, .2);
  font-size: 12px;
  font-weight: 650;
  animation: quest-work-path-breathe 3.8s ease-in-out infinite;
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-current { z-index: 2; opacity: 1; filter: none; }
:is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-current em {
  color: #38268f;
  font-weight: 650;
}
@keyframes quest-work-path-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .13), 0 0 14px rgba(99, 58, 203, .16); }
  50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 0 19px rgba(99, 58, 203, .23); }
}
@media (prefers-reduced-motion: reduce) {
  :is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-current i { animation: none; }
}
:is(#view-quest, #view-quest-work) .quest-work-path-preview__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--work-ink-soft);
  font-size: 13px;
}

/* 主区自身锁定在视口内；底部预留足够空隙，避免题号与地图节点叠在一起误点 */
:is(#view-quest, #view-quest-work) .exam-work-layout {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 0 clamp(148px, 18vh, 188px);
  overflow: hidden;
}
:is(#view-quest, #view-quest-work) .quest-work-stage {
  position: relative;
  z-index: 2;
  width: min(70vw, 1320px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2.1vh, 22px) 0 clamp(14px, 2vh, 22px);
}
:is(#view-quest, #view-quest-work) .quest-work-titlebar {
  margin: 0 0 clamp(12px, 1.8vh, 18px) 14px;
}
:is(#view-quest, #view-quest-work) .quest-work-titlebar .quest-meta-row:empty,
:is(#view-quest, #view-quest-work) .quest-work-titlebar .quest-meta-row:has(> [hidden]:only-child) {
  display: none;
}
:is(#view-quest, #view-quest-work) .quest-work-titlebar h1 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #10256c;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: clamp(27px, 2.05vw, 38px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .74);
  white-space: nowrap;
}
:is(#view-quest, #view-quest-work) .quest-work-titlebar p {
  margin: 9px 0 0;
  color: #5268a3;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
}

/* 首页 glass 的边、渐变、内高光、阴影与 17px blur 原值复用。 */
:is(#view-quest, #view-quest-work) .quest-work-bench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  width: 100%;
  height: clamp(458px, calc(100dvh - 310px), 680px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--work-line);
  border-radius: 26px;
  background:
    radial-gradient(300px circle at 50% 0%, rgba(255, 255, 255, .34), transparent 44%),
    linear-gradient(135deg, var(--work-glass-a), var(--work-glass-b));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .94),
    inset 0 -1px rgba(130, 139, 206, .12),
    0 14px 40px rgba(68, 77, 153, .10),
    0 2px 7px rgba(63, 73, 160, .08);
  backdrop-filter: blur(17px) saturate(1.22);
  -webkit-backdrop-filter: blur(17px) saturate(1.22);
}
:is(#view-quest, #view-quest-work) .quest-work-bench::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), transparent 23%, transparent 72%, rgba(155, 142, 255, .07));
  opacity: .78;
  pointer-events: none;
}
:is(#view-quest, #view-quest-work) .quest-work-bench > * {
  position: relative;
  z-index: 1;
}
:is(#view-quest, #view-quest-work) .quest-work-column {
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 2.1vw, 34px);
}
:is(#view-quest, #view-quest-work) .quest-work-column--main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(116, 126, 188, .13);
}
/* 作品页：左侧整列（任务说明 + 上传）一起滚动，上传区不再被压扁 */
#view-quest-work .quest-work-column--main {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 72, 205, .22) transparent;
}
#view-quest-work .quest-work-column--main::-webkit-scrollbar { width: 5px; }
#view-quest-work .quest-work-column--main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 72, 205, .22);
}
:is(#view-quest, #view-quest-work) .quest-work-column--submit {
  display: flex;
  flex-direction: column;
}
#view-quest-work .quest-task-overview {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  margin: 0 0 clamp(12px, 1.6vh, 18px);
  overflow: visible;
  color: #243a78;
}
#view-quest-work .quest-task-overview__title {
  display: block;
  margin: 0 0 10px;
  color: #263a95;
  font-size: clamp(17px, 1.28vw, 20px);
  font-weight: 800;
  letter-spacing: .03em;
}
#view-quest-work .quest-task-overview .quest-task-scenario {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#view-quest-work .quest-task-overview .quest-task-scenario__text {
  margin: 0;
  color: #243a78;
  font-size: clamp(13px, .98vw, 15px);
  line-height: 1.72;
}
#view-quest-work .quest-task-overview .quest-task-scenario__meta {
  display: block;
  margin-top: 6px;
  color: #7180aa;
  font-size: 11px;
  line-height: 1.45;
}
:is(#view-quest, #view-quest-work) .quest-work-brief {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:is(#view-quest, #view-quest-work) .quest-work-brief__tag {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  color: #263a95;
  background: transparent;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 800;
  letter-spacing: .03em;
}
#view-quest-work .quest-work-brief__label {
  flex: 0 0 auto;
  color: #263a95;
  font-size: clamp(13px, .98vw, 15px);
  font-weight: 800;
  line-height: 1.72;
}
:is(#view-quest, #view-quest-work) .quest-work-brief__text {
  min-width: 0;
  color: #243a78;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(13px, .98vw, 15px);
  line-height: 1.75;
}

/* 上传区只保留一层轻玻璃与内部虚线，不再堆叠实体白卡。 */
:is(#view-quest, #view-quest-work) .quest-work-upload-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  margin: 0;
  padding: clamp(15px, 1.35vw, 20px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(239, 241, 255, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .62);
}
#view-quest-work .quest-work-upload-card {
  max-height: none;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card h2 {
  flex: 0 0 auto;
  margin: 0 0 14px;
  color: #253990;
  font-size: 16px;
  font-weight: 800;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card h2 em,
:is(#view-quest, #view-quest-work) .quest-work-note-label em {
  color: #6976a4;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 18px;
  border: 1.5px dashed rgba(119, 83, 224, .34);
  border-radius: 17px;
  color: #4f3bc3;
  background: rgba(248, 248, 255, .16);
  font-family: "Noto Sans SC", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#view-quest-work .quest-work-upload-card .upload-zone {
  flex: 0 0 auto;
  min-height: clamp(168px, 22vh, 240px);
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone:hover,
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone:focus-visible {
  border-color: rgba(103, 69, 213, .58);
  background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 8px 24px rgba(84, 61, 175, .08);
  outline: none;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone.is-uploading {
  border-style: solid;
  border-color: rgba(103, 69, 213, .58);
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone.is-done {
  border-style: solid;
  border-color: rgba(72, 151, 131, .48);
}
:is(#view-quest, #view-quest-work) .quest-work-upload-icon {
  display: grid;
  place-items: center;
  width: clamp(48px, 3.8vw, 62px);
  height: clamp(48px, 3.8vw, 62px);
  color: #7a4ee6;
  filter: drop-shadow(0 6px 10px rgba(105, 71, 214, .16));
}
:is(#view-quest, #view-quest-work) .quest-work-upload-icon svg { width: 100%; height: 100%; }
:is(#view-quest, #view-quest-work) #quest-work-upload-label {
  color: #293b9a;
  font-size: 14px;
  font-weight: 800;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone small {
  color: #6473a4;
  font-size: 12px;
  line-height: 1.35;
}
:is(#view-quest, #view-quest-work) .quest-work-upload-size { opacity: .86; }
:is(#view-quest, #view-quest-work) #quest-work-upload-status {
  flex: 0 0 auto;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
:is(#view-quest, #view-quest-work) .quest-work-file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
:is(#view-quest, #view-quest-work) .quest-work-file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(125, 113, 204, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .22);
}
:is(#view-quest, #view-quest-work) .quest-work-file-list__item span {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}
:is(#view-quest, #view-quest-work) .quest-work-file-list__item strong {
  font-size: 13px;
  font-weight: 700;
  color: #1f2a56;
  word-break: break-all;
}
:is(#view-quest, #view-quest-work) .quest-work-file-list__tag {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #253990;
  background: rgba(37, 57, 144, .08);
  border-radius: 999px;
  padding: 2px 8px;
}

/* 右栏：有正式标准才出现；无标准时说明区自动占满。 */
:is(#view-quest, #view-quest-work) .quest-pass-criteria {
  flex: 0 0 auto;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria__tag {
  display: block;
  margin: 0 0 10px;
  color: #253990;
  font-size: 15px;
  font-weight: 800;
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria details {
  overflow: hidden;
  border: 1px solid rgba(125, 113, 204, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .17);
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #6270a7;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria summary::-webkit-details-marker { display: none; }
:is(#view-quest, #view-quest-work) .quest-pass-criteria summary::after {
  content: "⌄";
  margin-left: 16px;
  color: #3b41ad;
  font-size: 18px;
  transition: transform .18s ease;
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria details[open] summary::after { transform: rotate(180deg); }
:is(#view-quest, #view-quest-work) .quest-pass-criteria__list {
  max-height: 100px;
  margin: 0;
  padding: 10px 34px 6px;
  overflow: auto;
  color: #42568f;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
  line-height: 1.55;
}
:is(#view-quest, #view-quest-work) .quest-pass-criteria__note {
  margin: 6px 16px 12px;
  font-size: 11px;
}

:is(#view-quest, #view-quest-work) .exam-work-note {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  color: #253990;
  font-size: 15px;
  font-weight: 800;
}
:is(#view-quest, #view-quest-work) .quest-work-note-label { flex: 0 0 auto; }
:is(#view-quest, #view-quest-work) .exam-work-note textarea {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px 17px;
  resize: none;
  border: 1px solid rgba(125, 113, 204, .22);
  border-radius: 14px;
  color: #24366f;
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .6);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  outline: none;
}
:is(#view-quest, #view-quest-work) .exam-work-note textarea:focus {
  border-color: rgba(103, 69, 213, .48);
  background: rgba(255, 255, 255, .28);
}
:is(#view-quest, #view-quest-work) .quest-work-review {
  flex: 0 0 auto;
  max-height: 96px;
  margin: 12px 0 0;
  overflow: auto;
}
:is(#view-quest, #view-quest-work) .exam-quiz-actions {
  flex: 0 0 auto;
  justify-content: center;
  margin: clamp(16px, 2.2vh, 22px) 0 0;
}
:is(#view-quest, #view-quest-work) .exam-quiz-actions .exam-primary-btn {
  position: relative;
  width: min(100%, 320px);
  min-height: clamp(54px, 6.5vh, 60px);
  justify-content: center;
  border: 1px solid rgba(192, 180, 255, .8);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, rgba(155, 110, 255, .95), rgba(74, 31, 195, .98)), #6735d3;
  box-shadow: inset 0 1px rgba(255, 255, 255, .58), 0 7px 16px rgba(83, 43, 211, .34), 0 0 22px rgba(128, 87, 255, .24);
  font-size: 16px;
  font-weight: 800;
}
:is(#view-quest, #view-quest-work) .quest-work-submit-hint {
  flex: 0 0 auto;
  margin: 12px 0 0;
  color: #6676a7;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

/* 实践页一级入口：沿用正式页的轻玻璃按钮。 */
:is(#view-quest, #view-quest-work) .quest-work-quick-actions {
  position: absolute;
  z-index: 8;
  top: clamp(28px, 4vh, 42px);
  left: clamp(28px, 2.3vw, 44px);
  display: grid;
  gap: 12px;
  width: clamp(78px, 5.4vw, 90px);
}
:is(#view-quest, #view-quest-work) .quest-work-quick-action {
  min-height: clamp(92px, 11.5vh, 104px);
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 12px 7px;
  border: 1px solid var(--work-line);
  border-radius: 16px;
  color: #4e4aaa;
  background:
    radial-gradient(140px circle at 50% 0%, rgba(255, 255, 255, .34), transparent 50%),
    linear-gradient(135deg, var(--work-glass-a), var(--work-glass-b));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .94),
    inset 0 -1px rgba(130, 139, 206, .12),
    0 10px 26px rgba(68, 77, 153, .08);
  backdrop-filter: blur(17px) saturate(1.22);
  -webkit-backdrop-filter: blur(17px) saturate(1.22);
  cursor: pointer;
}
:is(#view-quest, #view-quest-work) .quest-work-quick-action span { font-size: 22px; }
:is(#view-quest, #view-quest-work) .quest-work-quick-action b { font-size: 12px; white-space: nowrap; }
:is(#view-quest, #view-quest-work) .quest-work-quick-action:hover,
:is(#view-quest, #view-quest-work) .quest-work-quick-action[aria-expanded="true"] {
  color: var(--work-violet-deep);
  background:
    radial-gradient(140px circle at 50% 0%, rgba(255, 255, 255, .46), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, .47), rgba(240, 244, 255, .25));
}
:is(#view-quest, #view-quest-work) .quest-work-quick-action.is-locked {
  opacity: .58;
  filter: grayscale(.18);
  cursor: not-allowed;
}
:is(#view-quest, #view-quest-work) .quest-work-quick-action.is-locked:hover {
  color: inherit;
  background:
    radial-gradient(140px circle at 50% 0%, rgba(255, 255, 255, .34), transparent 50%),
    linear-gradient(135deg, var(--work-glass-a), var(--work-glass-b));
}

/* 实践页灵泉：与中间工作台同高并垂直居中，避免贴底 */
:is(#view-quest, #view-quest-work) .quest-work-spirit {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: clamp(30px, 3vw, 54px);
  bottom: auto;
  left: auto;
  width: clamp(78px, 5.4vw, 92px);
  height: clamp(458px, calc(100dvh - 310px), 680px);
  max-height: calc(100% - 160px);
  min-height: 0;
  transform: translateY(-50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .38), rgba(240, 244, 255, .16));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .72),
    0 10px 28px rgba(68, 77, 153, .08);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  opacity: 1;
}
:is(#view-quest, #view-quest-work) .quest-work-spirit .spirit-label {
  margin-top: clamp(14px, 2vh, 22px);
}
:is(#view-quest, #view-quest-work) .quest-work-spirit .spirit-column {
  min-height: 0;
  margin-top: 12px;
}
:is(#view-quest, #view-quest-work) .quest-work-spirit .spring-count {
  color: #233d86;
  background: rgba(255, 255, 255, .22);
  margin-bottom: 8px;
}
:is(#view-quest, #view-quest-work) .quest-work-spirit .spirit-well-caption,
:is(#view-quest, #view-quest-work) .quest-work-spirit .spirit-well-marks {
  display: none;
}

@media (max-height: 820px) {
  :is(#view-quest, #view-quest-work) .exam-work-layout {
    padding-bottom: clamp(132px, 17vh, 168px);
  }
  :is(#view-quest, #view-quest-work) .quest-work-pathbar {
    flex-basis: 52px;
    padding-top: 10px;
  }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview { height: 70px; }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview__node i { width: 30px; height: 30px; }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview__node.is-current i { width: 36px; height: 36px; }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview__node em { margin-top: 4px; font-size: 10px; }
  :is(#view-quest, #view-quest-work) .quest-work-stage { padding-top: 10px; padding-bottom: 10px; }
  :is(#view-quest, #view-quest-work) .quest-work-titlebar { margin-bottom: 10px; }
  :is(#view-quest, #view-quest-work) .quest-work-titlebar h1 { font-size: clamp(25px, 2vw, 32px); }
  :is(#view-quest, #view-quest-work) .quest-work-titlebar p { margin-top: 5px; }
  :is(#view-quest, #view-quest-work) .quest-work-column { padding: 25px 27px; }
  #view-quest-work .quest-task-overview { margin-bottom: 15px; }
  #view-quest-work .quest-task-overview__title { margin-bottom: 6px; }
  :is(#view-quest, #view-quest-work) .quest-work-brief__tag { margin-bottom: 6px; }
  :is(#view-quest, #view-quest-work) .quest-work-brief__text { line-height: 1.6; }
  :is(#view-quest, #view-quest-work) .quest-work-upload-card { padding: 14px; }
  :is(#view-quest, #view-quest-work) .quest-work-upload-card h2 { margin-bottom: 10px; }
  :is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone { gap: 5px; padding: 12px; }
  :is(#view-quest, #view-quest-work) .quest-work-upload-icon { width: 44px; height: 44px; }
  :is(#view-quest, #view-quest-work) .exam-quiz-actions { margin-top: 14px; }
  :is(#view-quest, #view-quest-work) .quest-work-submit-hint { margin-top: 8px; }
  :is(#view-quest, #view-quest-work) .quest-work-quick-actions { top: 22px; }
  :is(#view-quest, #view-quest-work) .quest-work-quick-action { min-height: 88px; }
  :is(#view-quest, #view-quest-work) .quest-work-spirit {
    top: 50%;
    bottom: auto;
    height: clamp(400px, calc(100dvh - 280px), 620px);
    max-height: calc(100% - 140px);
    transform: translateY(-50%);
  }
  :is(#view-quest, #view-quest-work) .cultivation-spirit-well .spirit-label { margin-top: 12px; }
  :is(#view-quest, #view-quest-work) .cultivation-spirit-well .spirit-column { margin-top: 8px; }
}

@media (max-width: 1180px) {
  :is(#view-quest, #view-quest-work) .quest-work-pathbar {
    padding-right: 18px;
    padding-left: 18px;
  }
  :is(#view-quest, #view-quest-work) .quest-work-stage { width: calc(100% - 250px); }
  :is(#view-quest, #view-quest-work) .quest-work-spirit { display: none; }
}

@media (max-width: 820px) {
  :is(#view-quest, #view-quest-work) .quest-work-pathbar {
    flex-basis: 48px;
    padding: 8px 12px 0;
  }
  :is(#view-quest, #view-quest-work) .quest-work-pathbar .exam-back { margin-top: 0; }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview { width: 100%; height: 76px; }
  :is(#view-quest, #view-quest-work) .quest-work-path-preview__node { width: 19vw; }
  :is(#view-quest, #view-quest-work) .exam-work-layout { padding-bottom: 88px; overflow: auto; }
  :is(#view-quest, #view-quest-work) .quest-work-stage { width: calc(100% - 24px); height: auto; padding-bottom: 20px; }
  :is(#view-quest, #view-quest-work) .quest-work-quick-actions { position: static; display: flex; width: auto; margin: 0 0 12px; }
  :is(#view-quest, #view-quest-work) .quest-work-quick-action { min-height: 42px; display: inline-flex; padding: 8px 12px; }
  :is(#view-quest, #view-quest-work) .quest-work-bench { grid-template-columns: 1fr; height: auto; overflow: visible; }
  :is(#view-quest, #view-quest-work) .quest-work-column--main { border-right: 0; border-bottom: 1px solid rgba(116, 126, 188, .13); }
  :is(#view-quest, #view-quest-work) .quest-work-upload-card .upload-zone { min-height: 260px; }
  :is(#view-quest, #view-quest-work) .exam-work-note textarea { min-height: 210px; }
}

/* 自测过关：沿用 quest-work-shell 外围，只替换中央内容为单题工作台。 */
#view-quest .quest-quiz-stage {
  width: min(60vw, 1000px);
}
#view-quest .quest-quiz-bench {
  display: flex;
  flex-direction: column;
  /* 为底部地图预留更大空隙，题号导航不再贴地图 */
  height: clamp(420px, calc(100dvh - 340px), 640px);
  max-height: calc(100dvh - 320px);
  padding: 0;
  margin-bottom: clamp(12px, 2vh, 24px);
  font-family: "Noto Sans SC", sans-serif;
}
#view-quest [hidden] { display: none !important; }
#view-quest .quest-quiz-bench__head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px clamp(26px, 2.4vw, 38px) 14px;
  border-bottom: 1px solid rgba(116, 126, 188, .12);
}
#view-quest .quest-quiz-bench__head > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
#view-quest .quest-quiz-type {
  color: #34489a;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}
#view-quest #quest-preview-note {
  color: #7380aa;
  font-size: 11px;
  font-weight: 500;
}
#view-quest .quest-quiz-progress {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #5d6da5;
  white-space: nowrap;
}
#view-quest .quest-quiz-progress strong {
  color: #303f93;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
#view-quest .quest-quiz-progress span {
  font-size: 11px;
}
#view-quest .quest-quiz-bench__content {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  padding: clamp(24px, 3.1vh, 34px) clamp(30px, 3.4vw, 50px) 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 72, 205, .22) transparent;
}
#view-quest .quest-quiz-bench__content::-webkit-scrollbar { width: 5px; }
#view-quest .quest-quiz-bench__content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 72, 205, .22);
}
#view-quest .quest-multi-q { display: block; }
#view-quest .quest-multi-q .exam-q-block {
  padding: 0;
  border: 0;
}
#view-quest .quest-multi-q .exam-q-head-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  margin: 0 0 clamp(22px, 3vh, 30px);
}
#view-quest .quest-quiz-question-no {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid rgba(113, 86, 207, .2);
  border-radius: 10px;
  color: #6047c9;
  background: rgba(239, 235, 255, .34);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#view-quest .quest-multi-q .exam-q-text {
  margin: 0;
  color: #14285f;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.55;
}
#view-quest .exam-opts {
  display: grid;
  gap: 11px;
}
#view-quest .exam-opt {
  min-height: 56px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(116, 126, 188, .2) !important;
  border-radius: 13px !important;
  color: #24366f;
  background: rgba(255, 255, 255, .25) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .54);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
#view-quest .exam-opt:hover {
  transform: none;
  border-color: rgba(105, 70, 211, .42) !important;
  background: rgba(255, 255, 255, .34) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .68), 0 5px 16px rgba(85, 58, 172, .07);
}
#view-quest .exam-opt span {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #6650cf;
  background: rgba(222, 214, 255, .66);
}
#view-quest .exam-opt em {
  min-width: 0;
  color: #25386f;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}
#view-quest .exam-opt:has(input:checked) {
  border-color: rgba(103, 69, 213, .54) !important;
  background: rgba(238, 233, 255, .4) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 6px 18px rgba(83, 55, 173, .09);
}
#view-quest .exam-opt:has(input:checked) span {
  color: #5d42c8;
  background: rgba(210, 198, 255, .84);
}
#view-quest .exam-blank {
  display: grid;
  gap: 9px;
}
#view-quest .exam-blank__label {
  color: #6674a3;
  font-size: 12px;
}
#view-quest .exam-blank-input {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid rgba(116, 126, 188, .24);
  border-radius: 13px;
  color: #24366f;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .58);
  font: inherit;
  outline: none;
}
#view-quest .exam-blank-input:focus {
  border-color: rgba(103, 69, 213, .5);
  background: rgba(255, 255, 255, .38);
}
#view-quest .quest-quiz-bench__footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(108px, auto) minmax(0, 1fr) minmax(108px, auto);
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 13px clamp(24px, 3vw, 42px) 18px;
  border-top: 1px solid rgba(116, 126, 188, .12);
}
#view-quest .quest-quiz-step {
  min-height: 38px;
  padding: 7px 5px;
  border: 0;
  color: #4f4aa8;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#view-quest .quest-quiz-step:disabled {
  color: rgba(82, 96, 148, .42);
  cursor: default;
}
#view-quest .quest-question-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
#view-quest .quest-question-nav::-webkit-scrollbar { display: none; }
#view-quest .quest-question-nav button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(111, 96, 186, .22);
  border-radius: 50%;
  color: #6876a8;
  background: rgba(255, 255, 255, .22);
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
#view-quest .quest-question-nav button.is-answered {
  color: #5f4cc8;
  background: rgba(212, 202, 255, .58);
}
#view-quest .quest-question-nav button.is-current {
  border-color: rgba(103, 69, 213, .68);
  color: #fff;
  background: linear-gradient(145deg, #8a63e8, #5b38c8);
  box-shadow: 0 0 0 3px rgba(111, 75, 213, .1);
}
#view-quest .quest-quiz-submit {
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}
#view-quest .quest-work-drawer #guide-panel.exam-work-side {
  position: static;
  width: auto;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#view-quest .quest-work-drawer .quest-task-scenario,
#view-quest .quest-work-drawer .quest-study-guide {
  margin-bottom: 12px;
}

@media (max-height: 820px) {
  #view-quest .quest-quiz-bench__head { min-height: 58px; padding-top: 13px; padding-bottom: 10px; }
  #view-quest .quest-quiz-bench__content { padding-top: 18px; padding-bottom: 14px; }
  #view-quest .quest-multi-q .exam-q-head-row { margin-bottom: 16px; }
  #view-quest .exam-opt { min-height: 49px; padding-top: 7px; padding-bottom: 7px; }
  #view-quest .quest-quiz-bench__footer { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 1180px) {
  #view-quest .quest-quiz-stage { width: calc(100% - 250px); }
}

@media (max-width: 820px) {
  #view-quest .quest-quiz-stage { width: calc(100% - 24px); }
  #view-quest .quest-quiz-bench { height: auto; min-height: 520px; }
  #view-quest .quest-quiz-bench__footer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-right: 14px; padding-left: 14px; }
}

/* 实践关 · 三个入口共用的大型沉浸式阅读 Modal。 */
body.quest-work-modal-open { overflow: hidden; }
.quest-work-modal[hidden] { display: none; }
.quest-work-modal {
  position: fixed;
  z-index: 3200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5.8vh, 54px) clamp(20px, 4vw, 64px);
  isolation: isolate;
}
.quest-work-modal__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(223, 221, 255, .2);
  backdrop-filter: blur(18px) saturate(.76) brightness(.96);
  -webkit-backdrop-filter: blur(18px) saturate(.76) brightness(.96);
  cursor: default;
}
.quest-work-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(90vw, 1450px);
  height: min(86vh, 900px);
  max-height: calc(100dvh - 36px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 27px;
  color: #273671;
  background:
    radial-gradient(760px circle at 38% -8%, rgba(255, 255, 255, .38), transparent 56%),
    linear-gradient(135deg, rgba(246, 244, 255, .5), rgba(208, 216, 255, .36));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .92),
    inset 0 -1px rgba(118, 104, 194, .09),
    0 30px 90px rgba(50, 38, 132, .2),
    0 8px 28px rgba(71, 58, 155, .1);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
  animation: quest-work-modal-in 180ms ease-out both;
  outline: none;
}
@keyframes quest-work-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.quest-work-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 28px 15px 30px;
  border-bottom: 1px solid rgba(112, 98, 184, .13);
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent);
}
.quest-work-modal__heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quest-work-modal__heading h2 {
  margin: 0;
  color: #26347d;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 700;
  letter-spacing: .06em;
}
.quest-work-modal__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #6848d7;
  font-size: 24px;
  line-height: 1;
}
.quest-work-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(118, 96, 209, .15);
  border-radius: 50%;
  color: #5740bf;
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.quest-work-modal__close:hover { border-color: rgba(100, 73, 204, .34); background: rgba(132, 103, 229, .12); transform: rotate(3deg); }
.quest-work-modal__body {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: clamp(190px, 14vw, 220px) minmax(0, 1fr);
  min-height: 0;
}
.quest-work-modal[data-mode="guide"] .quest-work-modal__body,
.quest-work-modal[data-mode="ai"] .quest-work-modal__body,
.quest-work-modal[data-mode="materials"] .quest-work-modal__body { grid-template-columns: minmax(0, 1fr); }
.quest-work-modal__nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin: 18px 0 20px;
  padding: 0 16px 0 20px;
  border-right: 1px solid rgba(105, 92, 174, .12);
}
.quest-work-modal[data-mode="guide"] .quest-work-modal__nav,
.quest-work-modal[data-mode="ai"] .quest-work-modal__nav,
.quest-work-modal[data-mode="materials"] .quest-work-modal__nav { display: none; }
.quest-work-modal__nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 62px;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  color: #595d8e;
  background: transparent;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}
.quest-work-modal__nav-item::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -20px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: transparent;
  content: "";
}
.quest-work-modal__nav-item span { color: #8377c8; font-size: 19px; text-align: center; }
.quest-work-modal__nav-item b { font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.quest-work-modal__nav-item:hover { color: #453b95; background: rgba(255, 255, 255, .24); }
.quest-work-modal__nav-item.is-active { color: #3f318f; background: rgba(133, 107, 225, .1); }
.quest-work-modal__nav-item.is-active::before { background: linear-gradient(180deg, #7657e6, #9c83ef); }
.quest-work-modal__nav-item.is-active span { color: #694ed9; }
.quest-work-modal__nav-item.is-active b { font-weight: 800; }
.quest-work-modal__reader { min-width: 0; min-height: 0; padding: 18px 20px 20px 18px; overflow: hidden; }
.quest-work-modal__content { height: 100%; min-height: 0; }
.quest-work-modal__content[hidden] { display: none; }
.quest-work-reading {
  height: 100%;
  min-height: 0;
  padding: clamp(24px, 2.1vw, 34px) clamp(26px, 2.5vw, 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 20px;
  background:
    radial-gradient(620px circle at 18% 0%, rgba(255, 255, 255, .18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(218, 226, 255, .08));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .52),
    inset 0 -1px rgba(109, 94, 180, .06);
}
.quest-work-reading[hidden] { display: none; }
.quest-work-reading__head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 24px; }
.quest-work-reading__head > span { display: grid; width: 34px; height: 34px; place-items: center; color: #6d50df; font-size: 24px; }
.quest-work-reading__head h3 { margin: 0; color: #27347d; font-size: clamp(20px, 1.5vw, 25px); font-weight: 800; }
.quest-work-reading__head p { margin: 7px 0 0; color: #66709b; font-size: 13px; line-height: 1.65; }
.quest-work-reading__empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  margin: 0;
  border-top: 1px solid rgba(108, 94, 177, .1);
  color: #8284a4;
  font-size: 14px;
}
.quest-work-reading__empty[hidden] { display: none; }
.quest-work-modal .quest-study-guide,
.quest-work-modal .quest-pass-criteria,
.quest-work-modal .quest-project-context,
.quest-work-modal .quest-assets-dock { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.quest-work-modal .quest-study-guide__body { color: #3e4a7b; font-size: 14px; line-height: 1.9; }
.quest-work-modal .quest-study-guide__body > * + * { margin-top: 14px; }
.quest-work-modal .quest-study-guide__keys { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(102, 87, 170, .11); }
.quest-work-modal .quest-pass-criteria__list { counter-reset: work-criteria; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.quest-work-modal .quest-pass-criteria__list li {
  counter-increment: work-criteria;
  position: relative;
  min-height: 60px;
  padding: 18px 14px 18px 58px;
  border-bottom: 1px solid rgba(100, 87, 165, .11);
  color: #3c487a;
  font-size: 14px;
  line-height: 1.65;
}
.quest-work-modal .quest-pass-criteria__list li::before {
  position: absolute;
  top: 17px;
  left: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #684ed0;
  background: rgba(123, 93, 220, .11);
  content: counter(work-criteria, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
}
.quest-work-modal .quest-pass-criteria__note { margin: 18px 12px 0; color: #74789d; font-size: 12px; }
.quest-work-modal .quest-project-context__head { display: none; }
.quest-work-modal .quest-project-context__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.quest-work-modal .quest-project-context__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  min-height: 62px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(100, 87, 165, .11);
  color: #3d4777;
  background: transparent;
}
.quest-work-modal .quest-project-context__item strong { font-size: 14px; line-height: 1.55; }
.quest-work-modal .quest-project-context__item em { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-style: normal; }
.quest-work-modal .quest-project-context__item em.is-done { color: #287d73; background: rgba(197, 243, 230, .52); }
.quest-work-modal .quest-project-context__item em.is-todo { color: #91611d; background: rgba(255, 234, 190, .45); }
.quest-work-modal .quest-project-context__item .btn { grid-column: 1 / -1; justify-self: start; min-height: 0; padding: 3px 0; color: #5c48bc; background: transparent; font-size: 12px; }
.quest-work-modal .quest-project-context__reward { margin: 20px 12px 0; padding: 16px 0 0; border-top: 1px solid rgba(100, 87, 165, .11); }
.quest-work-modal .quest-project-context__reward > span { display: block; margin-bottom: 6px; color: #635d91; font-size: 12px; font-weight: 700; }
.quest-work-modal .quest-project-context__out { margin: 0; color: #46507c; font-size: 13px; }
.quest-work-modal .quest-assets-dock__head { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 12px; border-bottom: 1px solid rgba(100, 87, 165, .11); }
.quest-work-modal .quest-assets-dock__head strong { color: #414a7b; font-size: 14px; }
.quest-work-modal .quest-assets-dock__count { min-width: 24px; padding: 2px 7px; border-radius: 999px; color: #6658a4; background: rgba(112, 91, 200, .1); font-size: 11px; text-align: center; }
.quest-work-modal .quest-assets-dock__body { margin-top: 12px; }
.quest-work-modal .quest-assets-dock__tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.quest-work-modal .quest-assets-dock__list { display: grid; gap: 0; max-height: none; margin: 0; padding: 0; list-style: none; }
.quest-work-modal .quest-assets-dock__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px; border-bottom: 1px solid rgba(100, 87, 165, .11); background: transparent; }
.quest-work-modal .quest-assets-dock__meta strong { display: block; color: #3c4676; font-size: 14px; }
.quest-work-modal .quest-assets-dock__meta small { display: block; margin-top: 3px; color: #777b9f; font-size: 11px; }
.quest-work-modal .quest-assets-dock__actions { display: flex; align-items: center; gap: 7px; }
.quest-work-modal .quest-assets-dock__empty { display: grid; min-height: 180px; place-items: center; margin: 0; color: #8587a5; font-size: 14px; }
.quest-work-modal .quest-assets-dock__more { width: auto; margin: 10px 12px 0; padding: 5px 0; color: #5c48bc; background: transparent; font-size: 12px; }
.quest-work-modal__content--assist,
.quest-work-modal #guide-panel-work { min-height: 0; height: 100%; }
.quest-work-modal #guide-panel-work {
  position: static;
  width: auto;
  max-height: none;
  margin: 0;
  padding: clamp(25px, 2.2vw, 36px) clamp(28px, 2.8vw, 46px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 20px;
  background:
    radial-gradient(620px circle at 18% 0%, rgba(255, 255, 255, .18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(218, 226, 255, .08));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .52),
    inset 0 -1px rgba(109, 94, 180, .06);
}
.quest-work-modal #guide-panel-work .guide-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 24px; }
.quest-work-modal #guide-panel-work .guide-head > span { display: grid; width: 34px; height: 34px; place-items: center; color: #6d50df; font-size: 25px; }
.quest-work-modal #guide-panel-work .guide-head h3 { margin: 0; color: #27347d; font-size: clamp(21px, 1.55vw, 26px); }
.quest-work-modal #guide-panel-work .guide-head p { margin: 7px 0 0; color: #66709b; font-size: 13px; }
.quest-work-guide-back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(112, 87, 198, .18);
  border-radius: 50%;
  color: #6045c7;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .54);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.quest-work-guide-back[hidden] { display: none; }
.quest-work-modal #guide-panel-work .guide-list { counter-reset: work-guide; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.quest-work-modal #guide-panel-work .guide-list > li { counter-increment: work-guide; position: relative; min-height: 72px; margin: 0; padding: 0 0 0 50px; border-bottom: 1px solid rgba(100, 87, 165, .11); }
.quest-work-modal #guide-panel-work .guide-list > li::before { position: absolute; top: 20px; left: 4px; color: #7459db; content: counter(work-guide, decimal-leading-zero); font-size: 12px; font-weight: 800; }
.quest-work-modal #guide-panel-work .guide-card { width: 100%; min-height: 72px; padding: 14px 8px; border: 0; border-radius: 0; color: #3d4778; background: transparent; box-shadow: none; text-align: left; }
.quest-work-modal #guide-panel-work .guide-card:hover { background: rgba(255, 255, 255, .2); }
.quest-work-modal #guide-panel-work .guide-card__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.quest-work-modal #guide-panel-work .guide-card__tag { padding: 2px 8px; border-radius: 999px; color: #6551bc; background: rgba(116, 92, 205, .1); font-size: 10px; }
.quest-work-modal #guide-panel-work .guide-card__action { color: #6751c4; font-size: 11px; font-style: normal; }
.quest-work-modal #guide-panel-work .guide-card__title { color: #384273; font-size: 14px; font-weight: 700; line-height: 1.55; }
.quest-work-modal #guide-panel-work .guide-card__body { margin: 7px 0 0; color: #666d94; font-size: 13px; line-height: 1.7; }
.quest-work-modal #guide-panel-work .guide-card.is-active {
  border-radius: 12px;
  background: rgba(117, 89, 216, .1);
  box-shadow: inset 3px 0 #7659df;
}
.quest-work-modal #guide-panel-work.has-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  overflow: hidden;
  padding: 18px clamp(22px, 2vw, 32px);
}
.quest-work-modal #guide-panel-work.has-video .guide-head {
  width: min(100%, 880px);
  margin: 0 auto;
}
.quest-work-modal #guide-panel-work.has-video .quest-work-guide-default-icon,
.quest-work-modal #guide-panel-work.has-video .guide-list { display: none; }
.quest-work-modal #guide-panel-work.has-video .quest-work-guide-video {
  width: min(100%, 880px);
  height: auto;
  justify-self: center;
  align-self: start;
  overflow: visible;
  padding: 10px;
}
.quest-work-modal #guide-panel-work.has-video .quest-work-guide-video__head { display: none; }
.quest-work-modal #guide-panel-work.has-video .quest-work-guide-video__frame {
  min-height: 0;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.quest-work-modal #guide-panel-work.has-video .quest-work-guide-video__actions { margin-top: 10px; }
.quest-work-guide-video {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-self: start;
  overflow: auto;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 17px;
  background:
    radial-gradient(360px circle at 8% 0%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(215, 223, 255, .09));
  box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 12px 28px rgba(61, 48, 137, .08);
}
.quest-work-guide-video[hidden] { display: none; }
.quest-work-guide-video__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.quest-work-guide-video__head > div { min-width: 0; }
.quest-work-guide-video__head span { display: inline-flex; padding: 2px 8px; border-radius: 999px; color: #6b4ecf; background: rgba(116, 89, 211, .1); font-size: 10px; font-weight: 800; }
.quest-work-guide-video__head h4 { margin: 7px 0 0; color: #2f3b75; font-size: 16px; line-height: 1.5; }
.quest-work-guide-video__head p { margin: 4px 0 0; color: #70769a; font-size: 11px; }
.quest-work-guide-video__close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(112, 87, 198, .16);
  border-radius: 50%;
  color: #6247c9;
  background: rgba(255, 255, 255, .2);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.quest-work-guide-video__frame {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 14px;
  background: rgba(26, 25, 55, .88);
  box-shadow: 0 10px 25px rgba(37, 29, 91, .17);
  aspect-ratio: 16 / 9;
}
.quest-work-guide-video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.quest-work-guide-video__frame iframe[hidden] { display: none; }
.quest-work-guide-video__fallback { display: grid; height: 100%; place-items: center; margin: 0; padding: 24px; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.7; text-align: center; }
.quest-work-guide-video__fallback[hidden] { display: none; }
.quest-work-guide-video__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.quest-work-guide-video__actions .btn { min-height: 38px; padding: 7px 14px; border-radius: 10px; font-size: 12px; }
.quest-work-modal[data-mode="guide"] #guide-panel-work .ai-box { display: none !important; }
.quest-work-modal[data-mode="ai"] #guide-panel-work .guide-head,
.quest-work-modal[data-mode="ai"] #guide-panel-work .guide-list { display: none; }
.quest-work-modal[data-mode="ai"] #guide-panel-work .ai-box {
  display: block !important;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 4px 6px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.quest-work-modal #guide-panel-work .ai-box-title { display: block; margin: 0 0 9px; color: #27347d; font-size: clamp(21px, 1.55vw, 26px); }
.quest-work-modal #guide-panel-work .ai-box-status { margin: 0 0 18px; color: #746d9d; font-size: 12px; }
.quest-work-modal #guide-panel-work .ai-box-body { color: #3b4678; font-size: 14px; line-height: 1.9; }
.quest-work-modal #guide-panel-work .ai-box-body p { margin: 0 0 14px; }
.quest-work-modal #guide-panel-work .ai-box-list { display: grid; gap: 12px; margin: 10px 0; padding: 0 0 0 22px; }
.quest-work-modal__content--assets { height: 100%; min-height: 0; }
.quest-work-asset-library {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: clamp(24px, 2.1vw, 34px) clamp(26px, 2.5vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 20px;
  background:
    radial-gradient(620px circle at 18% 0%, rgba(255, 255, 255, .18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(218, 226, 255, .08));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .52),
    inset 0 -1px rgba(109, 94, 180, .06);
}
.quest-work-asset-library__head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(100, 87, 165, .11);
}
.quest-work-asset-library__title { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.quest-work-asset-library__title > span { display: grid; width: 34px; height: 34px; place-items: center; color: #6d50df; font-size: 24px; }
.quest-work-asset-library__title h3 { margin: 0; color: #27347d; font-size: clamp(21px, 1.55vw, 26px); }
.quest-work-asset-library__title p { margin: 7px 0 0; color: #66709b; font-size: 13px; line-height: 1.6; }
.quest-work-asset-library__count {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid rgba(116, 91, 203, .12);
  border-radius: 999px;
  color: #6551bc;
  background: rgba(126, 101, 216, .09);
  font-size: 12px;
}
.quest-work-asset-library__tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 0 14px;
}
.quest-work-asset-library__tab {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(110, 94, 187, .18);
  border-radius: 999px;
  color: #64698f;
  background: rgba(255, 255, 255, .14);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.quest-work-asset-library__tab:hover { color: #4e3ca9; background: rgba(255, 255, 255, .24); }
.quest-work-asset-library__tab.is-active { color: #5038b9; border-color: rgba(111, 82, 213, .3); background: rgba(125, 96, 219, .12); }
.quest-work-asset-library__grid {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 2px 5px 10px 1px;
  overflow: auto;
  list-style: none;
  scrollbar-color: rgba(103, 79, 196, .25) transparent;
  scrollbar-width: thin;
}
.quest-work-asset-library__grid[hidden] { display: none; }
.quest-work-asset-library__grid .quest-asset-drawer__item {
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 17px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  background:
    radial-gradient(260px circle at 8% 0%, rgba(255, 255, 255, .24), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(219, 224, 255, .1));
  box-shadow: inset 0 1px rgba(255, 255, 255, .58), 0 10px 24px rgba(69, 57, 145, .07);
}
.quest-work-asset-library__grid .quest-asset-drawer__item strong {
  margin: 0 0 7px;
  color: #324075;
  font-size: 15px;
  line-height: 1.5;
}
.quest-work-asset-library__grid .quest-asset-drawer__item small {
  margin: 0 0 18px;
  color: #6d7398;
  font-size: 11px;
  line-height: 1.65;
}
.quest-work-asset-library__grid .quest-asset-drawer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.quest-work-asset-library__grid .quest-asset-drawer__actions .btn { min-height: 34px; padding: 6px 12px; border-radius: 9px; font-size: 12px; }
.quest-work-asset-library__empty { display: grid; min-height: 220px; flex: 1 1 auto; place-items: center; margin: 0; color: #8587a5; font-size: 14px; }
.quest-work-asset-library__empty[hidden] { display: none; }
.quest-work-asset-library[aria-busy="true"] .quest-work-asset-library__count { opacity: .64; }
.quest-work-modal > .quest-link-modal {
  z-index: 20;
  background: rgba(73, 66, 145, .16);
  backdrop-filter: blur(15px) saturate(.92);
  -webkit-backdrop-filter: blur(15px) saturate(.92);
}
.quest-work-modal > .quest-link-modal .quest-link-modal__panel {
  width: min(640px, calc(100vw - 36px));
  max-height: min(76vh, 610px);
  padding: 23px 24px 21px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  color: #2e3c74;
  background:
    radial-gradient(420px circle at 15% 0%, rgba(255, 255, 255, .38), transparent 58%),
    linear-gradient(135deg, rgba(246, 244, 255, .5), rgba(208, 216, 255, .36));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .88),
    inset 0 -1px rgba(118, 104, 194, .08),
    0 26px 70px rgba(50, 38, 132, .25);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
}
.quest-work-modal > .quest-link-modal .quest-link-modal__head { margin-bottom: 8px; }
.quest-work-modal > .quest-link-modal .quest-link-modal__head h3 {
  color: #27347d;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(20px, 1.5vw, 24px);
  letter-spacing: .03em;
}
.quest-work-modal > .quest-link-modal #btn-quest-link-close {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(118, 96, 209, .18);
  border-radius: 50%;
  color: #5740bf;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .68);
  font-size: 22px;
}
.quest-work-modal > .quest-link-modal #quest-link-modal-meta { margin: 3px 0 15px; color: #67709a; font-size: 13px; }
.quest-work-modal > .quest-link-modal .quest-link-modal__body {
  min-height: 112px;
  margin: 0 0 18px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 15px;
  color: #3a4677;
  background:
    radial-gradient(300px circle at 10% 0%, rgba(255, 255, 255, .18), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(218, 226, 255, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .5);
}
.quest-work-modal > .quest-link-modal .quest-link-modal__actions { gap: 10px; }
.quest-work-modal > .quest-link-modal .quest-link-modal__actions .btn { min-height: 42px; border-radius: 11px; }
.quest-work-modal button:focus { outline: none; }
.quest-work-modal button:focus-visible { outline: 2px solid rgba(101, 75, 205, .42); outline-offset: 2px; }
.quest-work-modal__nav-item:focus-visible { outline-offset: -2px; }

@media (min-width: 981px) {
  .quest-work-modal[data-mode="guide"]:has(#guide-panel-work.has-video) .quest-work-modal__dialog {
    width: min(86vw, 1180px);
  }
}

.quest-work-modal[data-mode="guide"]:has(#guide-panel-work.has-video) .quest-work-modal__header {
  display: none;
}

@media (max-width: 980px) {
  .quest-work-modal #guide-panel-work.has-video { gap: 11px; }
  .quest-work-modal #guide-panel-work.has-video .quest-work-guide-video__frame { min-height: 0; }
  .quest-work-guide-video { padding: 12px; }
}

@media (max-width: 1366px), (max-height: 800px) {
  .quest-work-modal { padding: 12px 20px; }
  .quest-work-modal__dialog { width: min(94vw, 1450px); height: min(90vh, 900px); max-height: calc(100dvh - 24px); }
  .quest-work-modal__header { min-height: 66px; padding: 12px 22px 11px 24px; }
  .quest-work-modal__body { grid-template-columns: 184px minmax(0, 1fr); }
  .quest-work-modal__nav { margin: 13px 0 15px; padding-left: 15px; padding-right: 12px; }
  .quest-work-modal__nav-item { min-height: 53px; }
  .quest-work-modal__nav-item::before { left: -15px; }
  .quest-work-modal__reader { padding: 13px 15px 15px 13px; }
  .quest-work-reading { padding: 22px 28px; }
}
@media (max-width: 760px) {
  .quest-work-modal { padding: 8px; }
  .quest-work-modal__dialog { width: 100%; height: calc(100dvh - 16px); border-radius: 22px; }
  .quest-work-modal__header { min-height: 60px; padding: 10px 14px 9px 17px; }
  .quest-work-modal__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .quest-work-modal__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(105, 92, 174, .12); }
  .quest-work-modal__nav-item { display: flex; justify-content: center; min-width: 88px; min-height: 42px; padding: 7px; }
  .quest-work-modal__nav-item::before { top: auto; right: 12px; bottom: -8px; left: 12px; width: auto; height: 3px; border-radius: 99px 99px 0 0; }
  .quest-work-modal__nav-item span { display: none; }
  .quest-work-modal__nav-item b { font-size: 12px; }
  .quest-work-modal__reader { padding: 9px; }
  .quest-work-reading,
  .quest-work-modal #guide-panel-work { padding: 20px 17px; border-radius: 16px; }
  .quest-work-asset-library { padding: 20px 17px; border-radius: 16px; }
  .quest-work-asset-library__head { gap: 10px; }
  .quest-work-asset-library__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .quest-work-modal__dialog { animation: none; }
}

/* kept: work file preview button */
:is(#view-quest, #view-quest-work) .quest-work-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(103, 84, 186, .28);
  border-radius: 10px;
  color: #4f3fad;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
:is(#view-quest, #view-quest-work) .quest-work-preview-btn:hover {
  border-color: rgba(103, 84, 186, .42);
  background: rgba(255, 255, 255, .92);
}
:is(#view-quest, #view-quest-work) .quest-work-preview-btn:disabled,
:is(#view-quest, #view-quest-work) .quest-work-preview-btn[hidden] {
  display: none !important;
}
/* ==== /PORT: template7 student quest UI ==== */
/* AI ????? */
.exam-explain .ai-box-status,
#guide-panel .ai-box-status,
#guide-panel-work .ai-box-status {
  margin: 6px 0 8px;
  font-size: 12px;
  opacity: 0.85;
}

#view-teacher-workbench.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}

/* ???? ? ???? */
.teacher-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 10px 18px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.teacher-topbar-start {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  min-width: 0;
  justify-self: start;
}
.teacher-topbar-center {
  justify-self: center;
  min-width: 0;
  max-width: min(720px, 56vw);
  width: min(720px, 56vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-topbar-center .pbl-create-stepbar {
  padding: 0;
}
.teacher-topbar-center .pbl-create-stepbar[hidden] {
  display: none !important;
}
.teacher-topbar-center .admin-mode-bar--topbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.teacher-topbar-center .admin-mode-bar--topbar[hidden] {
  display: none !important;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__track {
  min-height: 56px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(82, 109, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(248, 250, 252, 0.92);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__thumb {
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #526dff;
  box-shadow: 0 2px 12px rgba(82, 109, 255, 0.38);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch[data-mode="manual"] .admin-mode-switch__thumb,
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch.is-manual .admin-mode-switch__thumb {
  left: calc(50% + 2px);
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn {
  min-height: 52px;
  padding: 10px 20px;
  gap: 10px;
  border-radius: 999px;
  justify-content: center;
  color: #334155;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__icon {
  font-size: 22px;
  line-height: 1;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__sub {
  display: block !important;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn.is-on {
  color: #fff;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn:not(.is-on) .admin-mode-switch__sub {
  color: #64748b;
  opacity: 0.92;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__btn.is-on .admin-mode-switch__sub {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}
.teacher-topbar-center .admin-mode-bar--topbar .admin-mode-switch__desc {
  display: none !important;
}
.teacher-topbar-back {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #4338ca;
  white-space: nowrap;
}
.teacher-topbar-back[hidden] {
  display: none !important;
}
.teacher-topbar-back:hover {
  color: #3730a3;
}
.teacher-topbar[hidden] {
  display: none !important;
}
.teacher-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0;
}
.teacher-topbar-seal {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 800 18px/1 var(--font);
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 8px 18px rgba(67, 56, 202, 0.25);
}
.teacher-topbar-copy strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.teacher-topbar-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted, #64748b);
}
.teacher-topbar-meta,
.teacher-topbar-user-meta {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3d4a6b;
}
.teacher-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: end;
}
.teacher-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(240px, 28vw);
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}
.teacher-topbar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #6d57df;
  background: linear-gradient(145deg, rgba(237, 233, 255, 0.95), rgba(219, 227, 255, 0.9));
}
.teacher-topbar-avatar svg {
  width: 18px;
  height: 18px;
}
.teacher-topbar-user-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.teacher-topbar-user-name {
  overflow: hidden;
  color: #243a78;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-topbar-user-meta {
  overflow: hidden;
  margin: 0;
  color: #7180aa;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #4a5a8a;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.teacher-topbar-logout svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.teacher-topbar-logout:hover {
  color: #5a3fd6;
  border-color: rgba(124, 96, 220, 0.35);
  background: rgba(255, 255, 255, 0.88);
}
body.is-teacher-zone #plaza-channels,
body.is-teacher-zone #role-switch {
  display: none !important;
}
.app.app--teacher-zone {
  min-height: 100dvh;
}
.app.app--teacher-zone .bg {
  opacity: 0.42;
}

body.is-teacher-zone:has(#view-teacher-workbench.active) {
  min-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #e8eaff;
}
body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) {
  width: 100%;
  min-height: 100dvh;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(238, 240, 255, .26), rgba(231, 234, 252, .84) 84%, #e1e4fa);
}
body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) .bg {
  position: fixed;
  inset: 0;
  opacity: 1;
  background: url('./assets/teacher-workbench-mountains.png') center top / cover no-repeat;
  filter: saturate(.88) brightness(1.035);
}
body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) .bg::before {
  display: none;
}
body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) .bg::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 44% at 50% 34%, rgba(255, 255, 255, .54), transparent 74%),
    linear-gradient(180deg, rgba(249, 249, 255, .13), rgba(235, 237, 255, .22));
  content: '';
}

body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar {
  height: 82px;
  min-height: 82px;
  margin: 0;
  padding: 12px clamp(30px, 2.7vw, 44px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  background: rgba(249, 249, 255, .35);
  box-shadow: 0 8px 24px rgba(83, 71, 153, .045), inset 0 -1px rgba(255, 255, 255, .35);
  backdrop-filter: blur(17px) saturate(1.05);
  -webkit-backdrop-filter: blur(17px) saturate(1.05);
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-start { gap: 24px; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-brand {
  color: #1f3174;
  padding-right: 23px;
  border-right: 1px solid rgba(84, 75, 151, .12);
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-seal {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, #8968ff, #513be2);
  box-shadow: 0 8px 18px rgba(92, 64, 221, .22), inset 0 1px rgba(255, 255, 255, .36);
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-copy strong { font-size: 19px; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-copy small { color: #61709c; letter-spacing: .08em; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-back {
  display: none !important;
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-back:hover {
  color: #432cce;
  background: transparent;
  transform: none;
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-user {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 6px 14px rgba(80, 60, 180, 0.06);
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-user-name { color: #243a78; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-user-meta { color: #7180aa; font-weight: 650; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  color: #7659ed;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 6px 14px rgba(80, 60, 180, .07);
}
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-avatar svg { width: 18px; height: 18px; }
body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-logout,
body.is-teacher-zone:has(#view-teacher-workbench.active) #btn-teacher-logout {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, .72);
  color: #374878;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 6px 16px rgba(75, 66, 143, .045), inset 0 1px rgba(255, 255, 255, .55);
}

#view-teacher-workbench.active {
  display: block !important;
  width: min(1558px, calc(100% - 60px));
  max-width: none;
  margin: 0 auto;
  padding: 26px 0 48px;
}
.teacher-workbench {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  align-items: start;
  gap: 77px;
}
.teacher-workbench-main { width: 100%; max-width: 1230px; min-width: 0; }
.teacher-workbench-tools {
  position: sticky;
  top: 101px;
  display: grid;
  gap: 13px;
  margin-top: 45px;
}
.teacher-workbench-tool {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  min-height: 112px;
  padding: 14px 9px 11px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 18px;
  color: #304477;
  background: linear-gradient(145deg, rgba(255, 255, 255, .49), rgba(244, 241, 255, .29));
  box-shadow: inset 0 1px rgba(255, 255, 255, .65), 0 9px 22px rgba(72, 63, 142, .065);
  font: inherit;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.teacher-workbench-tool__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #e5484d;
  box-shadow: 0 4px 10px rgba(229, 72, 77, .35);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  pointer-events: none;
}
.teacher-workbench-tool__badge[hidden] { display: none !important; }
.teacher-workbench-tool:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .63), rgba(239, 233, 255, .43));
  box-shadow: inset 0 1px rgba(255, 255, 255, .76), 0 13px 26px rgba(75, 62, 161, .09);
}
.teacher-workbench-tool:focus-visible,
.teacher-workbench-refresh:focus-visible,
.teacher-course-card__delete:focus-visible {
  outline: 2px solid rgba(99, 74, 232, .52);
  outline-offset: 3px;
}
.teacher-workbench-tool__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #6849ed;
  background: rgba(255, 255, 255, .37);
  box-shadow: inset 0 1px rgba(255, 255, 255, .68);
}
.teacher-workbench-tool__icon svg { width: 25px; height: 25px; }
.teacher-workbench-tool__title { font-size: 14px; font-weight: 750; letter-spacing: .01em; }
.teacher-workbench-tool small { min-height: 16px; color: #66759e; font-size: 12px; font-weight: 600; white-space: nowrap; }

.teacher-workbench-head { margin: 2px 0 12px; }
.teacher-workbench-hero h1 {
  margin: 0 0 4px;
  color: #1e3477;
  font-family: var(--font-display, 'Noto Serif SC', 'Songti SC', serif);
  font-size: clamp(27px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .025em;
}
.teacher-workbench-sub { color: #63769e; font-size: 14px; font-weight: 550; line-height: 1.35; }

.teacher-create-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(300px, 1.1fr);
  align-items: center;
  min-height: 266px;
  overflow: hidden;
  padding: 38px clamp(30px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 25px;
  background:
    radial-gradient(560px circle at 78% 108%, rgba(164, 140, 247, .11), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, .61), rgba(248, 246, 255, .35));
  box-shadow: inset 0 1px rgba(255, 255, 255, .75), 0 18px 38px rgba(75, 64, 155, .085);
  backdrop-filter: blur(17px) saturate(1.04);
  -webkit-backdrop-filter: blur(17px) saturate(1.04);
}
.teacher-create-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(113deg, rgba(255, 255, 255, .25), transparent 43%);
  content: '';
}
.teacher-create-stage__copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.teacher-create-stage__icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 50%;
  color: #6544ed;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .76), rgba(218, 210, 255, .43));
  box-shadow: inset 0 1px rgba(255, 255, 255, .76), 0 10px 22px rgba(98, 75, 219, .09);
}
.teacher-create-stage__icon svg { width: 42px; height: 42px; }
.teacher-create-stage h2 {
  margin: 2px 0 8px;
  color: #233a80;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 800;
  letter-spacing: .015em;
}
.teacher-create-stage p {
  max-width: 31em;
  margin: 0;
  color: #596d9b;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.72;
}
.teacher-create-stage__cta {
  min-height: 46px;
  margin-top: 18px;
  padding: 9px 21px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7659f2, #4c32d7);
  box-shadow: 0 10px 20px rgba(80, 53, 212, .23), inset 0 1px rgba(255, 255, 255, .28);
  font-size: 16px;
  font-weight: 750;
}
.teacher-create-stage__cta:hover { background: linear-gradient(135deg, #8066f9, #5137df); }
.teacher-create-stage__path {
  position: relative;
  z-index: 0;
  align-self: stretch;
  min-height: 180px;
}
.teacher-create-stage__path svg {
  position: absolute;
  inset: 8px 0 0;
  width: 100%;
  height: calc(100% - 8px);
  overflow: visible;
}
.teacher-route-line {
  stroke: url('#teacher-route-gradient');
  stroke-width: 3.5;
  stroke-linecap: round;
}
.teacher-route-glow {
  stroke: rgba(121, 92, 230, .2);
  stroke-width: 10;
  stroke-linecap: round;
  filter: url('#teacher-route-glow');
}
.teacher-route-point .teacher-route-node {
  fill: url('#teacher-route-node');
  stroke: rgba(255, 255, 255, .78);
  stroke-width: 1.8;
  filter: drop-shadow(0 4px 8px rgba(103, 76, 215, .2));
}
.teacher-route-point.is-primary .teacher-route-node {
  fill: url('#teacher-route-main-node');
  stroke-width: 2.2;
  filter: drop-shadow(0 0 12px rgba(103, 69, 220, .46));
}
.teacher-route-node-glow {
  fill: rgba(139, 113, 235, .14);
  filter: url('#teacher-route-glow');
}
.teacher-route-primary-halo {
  fill: rgba(118, 84, 229, .2);
  stroke: rgba(255, 255, 255, .32);
  stroke-width: 1;
  filter: url('#teacher-route-glow');
}
.teacher-route-pavilion {
  color: rgba(255, 255, 255, .93);
  filter: drop-shadow(0 1px 2px rgba(68, 44, 164, .22));
}

.teacher-workbench-courses { margin-top: 20px; }
.teacher-workbench-courses__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.teacher-workbench-courses__head h2 {
  margin: 0;
  color: #233a80;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .02em;
}
.teacher-workbench-courses__title { display: flex; align-items: baseline; }
.teacher-workbench-courses__actions { display: flex; align-items: center; gap: 13px; }
.teacher-workbench-view-all {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  color: #5f50bd;
  background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(229, 225, 255, .1));
  box-shadow: inset 0 1px rgba(255, 255, 255, .62), 0 6px 17px rgba(74, 61, 148, .05);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.teacher-workbench-view-all[hidden] { display: none !important; }
.teacher-workbench-view-all:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .78);
  background: linear-gradient(145deg, rgba(255, 255, 255, .35), rgba(229, 225, 255, .16));
}
.teacher-workbench-view-all span { font-size: 15px; line-height: 1; }
.teacher-workbench-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  color: #6348d9;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.teacher-workbench-refresh:hover { color: #4328c1; }
.teacher-workbench-refresh span { font-size: 21px; line-height: 1; }
.teacher-workbench-course-toolbar { display: none !important; }
.teacher-workbench-course-empty {
  margin: 0;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 15px;
  color: #697aa2;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 8px 18px rgba(77, 67, 147, .035);
  font-size: 13px;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.teacher-workbench-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.teacher-course-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 288px;
  flex-direction: column;
  overflow: hidden;
  padding: 13px 14px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background:
    radial-gradient(280px circle at 8% 0%, rgba(255, 255, 255, .42), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 48%, rgba(210, 220, 255, .2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    inset 0 -1px 0 rgba(130, 139, 206, .1),
    0 18px 36px rgba(50, 40, 110, .13);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.teacher-course-card::after {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), transparent 24%, transparent 72%, rgba(155, 142, 255, .08));
  content: '';
  opacity: .78;
  pointer-events: none;
}
.teacher-course-card > * { position: relative; z-index: 1; }
.teacher-course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(130, 139, 206, .12),
    0 22px 42px rgba(70, 55, 150, .17);
}
.teacher-course-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.teacher-course-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #2c8b70;
  background: rgba(202, 244, 229, .72);
  font-size: 12px;
  font-weight: 800;
}
.teacher-course-card__status.is-draft { color: #766d90; background: rgba(226, 224, 235, .78); }
.teacher-course-card__status.is-other { color: #7b668a; background: rgba(229, 221, 238, .7); }
.teacher-course-card__delete {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #9a7f92;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.teacher-course-card__delete svg {
  display: block;
  pointer-events: none;
}
.teacher-course-card__delete:hover {
  color: #c04555;
  background: rgba(221, 79, 94, .1);
}
.teacher-course-card__delete:active {
  color: #a34453;
  background: rgba(221, 79, 94, .16);
}
.teacher-course-card__body { min-width: 0; padding: 10px 2px 0; }
.teacher-course-card__body h3 {
  display: block;
  min-height: 24px;
  overflow: hidden;
  margin: 0;
  color: #233875;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.teacher-course-card__body p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #69789e;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-course-card__task-path {
  position: relative;
  min-height: 69px;
  margin-top: 8px;
  overflow: hidden;
  border-top: 1px solid rgba(116, 98, 205, .08);
}
.teacher-course-card__path-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 0;
  color: rgba(70, 79, 126, .62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.teacher-course-card__path-meta small {
  overflow: hidden;
  color: rgba(83, 76, 145, .56);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-course-card__task-track {
  position: relative;
  height: 48px;
  margin: -1px 3px 0;
}
.teacher-course-card__task-track svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.teacher-course-card__task-track path {
  fill: none;
  stroke: rgba(119, 93, 220, .38);
  stroke-linecap: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}
.teacher-course-card__task-path.is-draft .teacher-course-card__task-track path,
.teacher-course-card__task-path.is-structure .teacher-course-card__task-track path { stroke: rgba(125, 111, 188, .24); }
.teacher-course-card__task-node {
  position: absolute;
  top: var(--path-y);
  left: var(--path-x);
  display: grid;
  width: 10px;
  height: 10px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(130, 108, 222, .46);
  border-radius: 50%;
  background: rgba(252, 251, 255, .86);
  box-shadow: 0 1px 4px rgba(87, 64, 177, .12), inset 0 1px rgba(255, 255, 255, .95);
}
.teacher-course-card__task-node.is-neutral { border-color: rgba(119, 94, 218, .42); }
.teacher-course-card__task-node.is-draft {
  border-color: rgba(136, 126, 177, .26);
  background: rgba(252, 251, 255, .58);
  box-shadow: none;
}
.teacher-course-card__task-node.is-current {
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, .92);
  color: #fff;
  background: linear-gradient(145deg, #8e75f4, #5d43dc);
  box-shadow: 0 0 0 4px rgba(115, 86, 231, .1), 0 3px 9px rgba(84, 57, 195, .3), inset 0 1px rgba(255, 255, 255, .58);
}
.teacher-course-card__task-node i {
  font-size: 7px;
  font-style: normal;
  line-height: 1;
}
.teacher-course-card__task-path.is-empty p {
  margin: 14px 0 0;
  color: rgba(100, 107, 148, .58);
  font-size: 11px;
  text-align: center;
}
.teacher-course-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 13px 0 14px;
}
.teacher-course-card__stats span { position: relative; min-width: 0; text-align: center; }
.teacher-course-card__stats span:not(:last-child)::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 1px;
  height: 31px;
  background: rgba(101, 104, 158, .1);
  content: '';
}
.teacher-course-card__stats b { display: block; color: #31477f; font-size: 16px; font-weight: 800; line-height: 1.1; }
.teacher-course-card__stats small { display: block; overflow: hidden; margin-top: 4px; color: #7684a7; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.teacher-course-card__actions { display: flex; gap: 9px; margin-top: auto; }
.teacher-course-card__actions .btn { min-height: 39px; flex: 1; padding: 8px 10px; border-radius: 11px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.teacher-course-card__actions .btn-ghost {
  border-color: rgba(108, 83, 224, .25);
  color: #6248d9;
  background: rgba(255, 255, 255, .38);
}
.teacher-course-card__actions .btn-primary {
  border: 0;
  background: linear-gradient(135deg, #795bf0, #523bd9);
  box-shadow: 0 7px 15px rgba(82, 59, 211, .18);
}
.teacher-course-card.is-demo .teacher-course-card__actions .btn { cursor: default; }

body.teacher-all-courses-open { overflow: hidden !important; }
.teacher-course-library-modal {
  position: fixed;
  z-index: 8200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(45, 42, 93, .17);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}
.teacher-course-library-modal[hidden] { display: none !important; }
.teacher-course-library-modal__panel {
  position: relative;
  display: flex;
  width: min(1500px, calc(100vw - 68px));
  max-height: min(820px, calc(100dvh - 68px));
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 25px 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background:
    radial-gradient(620px circle at 8% 0%, rgba(255, 255, 255, .52), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, .46), rgba(235, 233, 255, .22) 48%, rgba(215, 223, 255, .22));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .9),
    0 28px 70px rgba(46, 35, 117, .2);
  backdrop-filter: blur(28px) saturate(1.42);
  -webkit-backdrop-filter: blur(28px) saturate(1.42);
}
.teacher-course-library-modal__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3px 18px;
}
.teacher-course-library-modal__head span {
  display: block;
  margin-bottom: 3px;
  color: rgba(91, 83, 153, .62);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
}
.teacher-course-library-modal__head h2 {
  margin: 0;
  color: #253a7c;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
}
.teacher-course-library-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #6656bd;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.teacher-course-library-modal__close:hover { background: rgba(255, 255, 255, .42); }

.teacher-share-modal {
  position: fixed;
  inset: 0;
  z-index: 8300;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(28, 34, 58, .42);
  backdrop-filter: blur(8px);
}
.teacher-share-modal[hidden] { display: none !important; }
.teacher-share-modal__panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1280px, calc(100vw - 32px));
  height: min(90vh, 920px);
  max-height: min(90vh, calc(100dvh - 40px));
  padding: 24px 26px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(252, 250, 255, .96), rgba(236, 232, 255, .92));
  box-shadow: 0 24px 60px rgba(40, 36, 88, .22);
  overflow: hidden;
}
.teacher-share-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120, 108, 190, .14);
}
.teacher-share-modal__head span {
  display: block;
  color: #7a6bc4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.teacher-share-modal__head h2 {
  margin: 4px 0 6px;
  color: #2b3560;
  font-size: 26px;
  font-weight: 780;
}
.teacher-share-modal__head p { margin: 0; max-width: 58ch; font-size: 13px; line-height: 1.5; }
.teacher-share-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #6656bd;
  background: rgba(255, 255, 255, .24);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.teacher-share-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 12px;
}
.teacher-share-tab {
  position: relative;
  border: 1px solid rgba(120, 108, 190, .18);
  border-radius: 999px;
  padding: 7px 14px;
  color: #4a587f;
  background: rgba(255, 255, 255, .45);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.teacher-share-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6d55e0, #846ef0);
  box-shadow: 0 8px 18px rgba(109, 85, 224, .25);
}
.teacher-share-tab__badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 780;
  vertical-align: middle;
}
.teacher-share-tab__badge[hidden] { display: none !important; }
.teacher-share-tab.is-active .teacher-share-tab__badge {
  background: rgba(255, 255, 255, .92);
  color: #d4383e;
}
.teacher-share-msg-tab__badge {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 780;
  vertical-align: middle;
  line-height: 1;
}
.teacher-share-msg-tab__badge[hidden] { display: none !important; }
.teacher-share-msg-tab.is-active .teacher-share-msg-tab__badge {
  background: #e5484d;
  color: #fff;
}
.teacher-share-msg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}
.teacher-share-msg-tabs[hidden] { display: none !important; }
.teacher-share-msg-tab {
  border: 0;
  border-radius: 10px;
  padding: 6px 12px;
  color: #5a6790;
  background: rgba(255, 255, 255, .4);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.teacher-share-msg-tab.is-active {
  color: #5c48c4;
  background: rgba(109, 85, 224, .12);
}
.teacher-share-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, .9fr) minmax(120px, .9fr) auto;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.teacher-share-filters input,
.teacher-share-filters select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(120, 108, 190, .18);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .72);
  color: #2f3a62;
  font: inherit;
  font-size: 13px;
}
.teacher-share-filters .btn { min-height: 36px; }
.teacher-share-plaza-meta {
  margin: 0 0 10px;
  color: #6b7698;
  font-size: 12px;
  font-weight: 650;
}
.teacher-share-plaza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.teacher-share-plaza-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
}
.teacher-share-plaza-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.teacher-share-plaza-card h3 {
  margin: 0;
  color: #2c3558;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.teacher-share-plaza-card__owner {
  margin: 0;
  color: #66759e;
  font-size: 12px;
  font-weight: 650;
}
.teacher-share-plaza-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7481a5;
  font-size: 12px;
}
.teacher-share-plaza-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 720px) {
  .teacher-share-filters { grid-template-columns: 1fr 1fr; }
  .teacher-share-filters .btn { grid-column: 1 / -1; }
}
.teacher-share-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.teacher-share-empty {
  margin: 24px 0;
  color: #6b7698;
  text-align: center;
  font-size: 14px;
}
.teacher-share-list { display: grid; gap: 10px; }
.teacher-share-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
}
.teacher-share-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: #5a6790;
  font-size: 12px;
  font-weight: 650;
}
.teacher-share-card__meta .pill,
.teacher-share-plaza-card .pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(109, 85, 224, .12);
  color: #5c48c4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.teacher-share-card h3 {
  margin: 0;
  color: #2c3558;
  font-size: 16px;
  font-weight: 750;
}
.teacher-share-card p { margin: 0; color: #66759e; font-size: 13px; line-height: 1.45; }
.teacher-share-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.teacher-share-peer {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .5);
}
.teacher-share-peer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.teacher-share-peer__who { min-width: 0; flex: 1; }
.teacher-share-peer__head h3 { margin: 0; font-size: 16px; color: #2c3558; }
.teacher-share-peer__account {
  flex: 0 0 auto;
  color: #7a86a8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.teacher-share-peer__classes {
  margin: 4px 0 0;
  max-width: 100%;
  color: #66759e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}
.teacher-share-course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 246, 255, .8);
  border: 1px solid rgba(120, 108, 190, .1);
}
.teacher-share-course-row strong { display: block; color: #2f3a62; font-size: 14px; }
.teacher-share-course-row span { color: #7481a5; font-size: 12px; }
.teacher-share-course-row__btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.teacher-course-card.is-share-locked .teacher-course-card__status { background: rgba(120, 108, 190, .14); color: #5a4cbc; }
.teacher-course-card__share-hint { margin: 0; color: #6d62b5; font-size: 12px; font-weight: 650; }

#teacher-wb-all-course-grid {
  min-height: 0;
  padding: 3px 7px 14px 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(101, 78, 201, .28) transparent;
  scrollbar-width: thin;
}
#teacher-wb-all-course-grid::-webkit-scrollbar { width: 6px; }
#teacher-wb-all-course-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(101, 78, 201, .25); }
#teacher-wb-all-course-grid::-webkit-scrollbar-track { background: transparent; }
#teacher-wb-all-course-grid .teacher-course-card { min-height: 288px; }
@media (min-width: 1051px) {
  body.is-teacher-zone:has(#view-teacher-workbench.active) { overflow: hidden; }
  body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  #view-teacher-workbench.active {
    height: calc(100dvh - 82px);
    min-height: 0;
    padding-top: clamp(20px, 3.2vh, 31px);
    padding-bottom: clamp(12px, 1.8vh, 18px);
    overflow: hidden;
  }
  .teacher-workbench { height: 100%; min-height: 0; }
  .teacher-workbench-main {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .teacher-workbench-head { flex: 0 0 auto; }
  .teacher-create-stage {
    min-height: clamp(205px, 27vh, 252px);
    flex: 0 0 auto;
    padding-top: clamp(28px, 4.1vh, 38px);
    padding-bottom: clamp(28px, 4.1vh, 38px);
  }
  .teacher-workbench-courses {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: clamp(18px, 3vh, 30px);
  }
  .teacher-workbench-courses__head {
    flex: 0 0 auto;
    margin-bottom: 12px;
  }
  .teacher-workbench-course-grid {
    min-height: 0;
    padding: 2px 3px 10px;
    overflow: hidden;
  }
  #teacher-wb-all-course-grid { overflow-x: hidden; overflow-y: auto; }
  .teacher-course-card { min-height: clamp(280px, 31vh, 306px); }
}

@media (min-width: 1280px) {
  .teacher-workbench-course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .teacher-workbench-all-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1051px) and (max-height: 820px) {
  body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar { height: 68px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
  body.is-teacher-zone:has(#view-teacher-workbench.active) .teacher-topbar-seal { width: 42px; height: 42px; border-radius: 13px; }
  #view-teacher-workbench.active { height: calc(100dvh - 68px); padding-top: 14px; padding-bottom: 10px; }
  .teacher-workbench-tools { margin-top: 36px; }
  .teacher-workbench-head { margin-bottom: 9px; }
  .teacher-workbench-hero h1 { font-size: 30px; }
  .teacher-create-stage { min-height: 195px; padding-top: 23px; padding-bottom: 23px; }
  .teacher-create-stage__icon { width: 70px; height: 70px; }
  .teacher-create-stage__icon svg { width: 37px; height: 37px; }
  .teacher-create-stage__copy { grid-template-columns: 83px minmax(0, 1fr); }
  .teacher-create-stage__cta { min-height: 42px; margin-top: 12px; }
  .teacher-workbench-courses { margin-top: 13px; }
  .teacher-workbench-courses__head { margin-bottom: 8px; }
  .teacher-course-card { min-height: 266px; }
  .teacher-course-card__body { padding-top: 9px; }
  .teacher-course-card__stats { margin-top: 9px; margin-bottom: 10px; }
}
@media (max-width: 1050px) {
  body.is-teacher-zone:has(#view-teacher-workbench.active) { overflow-y: auto; }
  body.is-teacher-zone .app.app--teacher-zone:has(#view-teacher-workbench.active) { height: auto; min-height: 100dvh; overflow: visible; }
  #view-teacher-workbench.active { width: min(100% - 32px, 1000px); }
  .teacher-workbench { grid-template-columns: 1fr; gap: 18px; }
  .teacher-workbench-tools { position: static; grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: start; }
  .teacher-workbench-tool { min-height: 92px; grid-template-columns: 42px minmax(0, 1fr); justify-items: start; column-gap: 10px; padding: 12px; text-align: left; }
  .teacher-workbench-tool__icon { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 13px; }
  .teacher-workbench-tool__icon svg { width: 24px; height: 24px; }
  .teacher-workbench-tool__title { align-self: end; }
  .teacher-workbench-tool small { align-self: start; }
  .teacher-workbench-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .teacher-topbar { padding: 9px 13px; }
  .teacher-topbar-copy, .teacher-topbar-user-text { display: none; }
  .teacher-topbar-start { gap: 10px; }
  .teacher-topbar-center { display: none; }
  .teacher-topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .teacher-topbar-actions { grid-column: 2; }
  #view-teacher-workbench.active { width: min(100% - 24px, 620px); padding-top: 18px; }
  .teacher-workbench-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .teacher-workbench-tool { min-height: 82px; }
  .teacher-workbench-hero h1 { font-size: 28px; }
  .teacher-workbench-sub { font-size: 14px; }
  .teacher-create-stage { display: block; min-height: 0; padding: 25px 22px; border-radius: 21px; }
  .teacher-create-stage__copy { grid-template-columns: 60px minmax(0, 1fr); gap: 13px; }
  .teacher-create-stage__icon { width: 55px; height: 55px; }
  .teacher-create-stage__icon svg { width: 31px; height: 31px; }
  .teacher-create-stage h2 { margin-top: 0; font-size: 21px; }
  .teacher-create-stage p { font-size: 13px; }
  .teacher-create-stage__cta { width: 100%; margin-top: 17px; font-size: 15px; }
  .teacher-create-stage__path { display: none; }
  .teacher-workbench-courses { margin-top: 25px; }
  .teacher-workbench-courses__head h2 { font-size: 22px; }
  .teacher-workbench-courses__actions { gap: 7px; }
  .teacher-workbench-view-all { min-height: 32px; padding: 5px 11px; }
  .teacher-workbench-course-grid { grid-template-columns: 1fr; }
  .teacher-course-library-modal { padding: 12px; }
  .teacher-course-library-modal__panel { width: 100%; max-height: calc(100dvh - 24px); padding: 19px 15px 16px; border-radius: 22px; }
  .teacher-course-library-modal__head { padding-bottom: 14px; }
  .teacher-course-library-modal__head h2 { font-size: 24px; }
}

/* ?? ? ?????? */
#view-teacher-courses.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}
.teacher-courses-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.teacher-courses-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
}
.teacher-course-toolbar {
  margin-bottom: 14px;
}
.teacher-course-empty {
  margin: 0 0 12px;
}
#view-teacher-courses .dungeon-simple-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
#view-teacher-courses .dungeon-pick-wrap {
  position: relative;
  display: block;
  height: 100%;
}
#view-teacher-courses .dungeon-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 280px;
  padding: 22px 20px 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#view-teacher-courses .dungeon-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}
#view-teacher-courses .dungeon-pick-del {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9b1c1c;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 999px;
  cursor: pointer;
}
#view-teacher-courses .dungeon-pick-badge {
  align-self: flex-end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #5e48cf;
  background: rgba(140, 120, 230, 0.12);
}
#view-teacher-courses .dungeon-pick-seal {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
#view-teacher-courses .dungeon-pick-title,
#view-teacher-courses .dungeon-pick-desc,
#view-teacher-courses .dungeon-pick-next,
#view-teacher-courses .dungeon-pick-foot em {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-teacher-courses .dungeon-pick-title {
  font-size: 18px;
  line-height: 1.35;
}
#view-teacher-courses .dungeon-pick-desc,
#view-teacher-courses .dungeon-pick-next {
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.45;
  min-height: 0;
}
#view-teacher-courses .dungeon-pick-foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted, #64748b);
}
#view-teacher-courses .dungeon-pick-foot em {
  flex: 1 1 auto;
  font-style: normal;
}
#view-teacher-courses .dungeon-pick-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
#view-teacher-courses .dungeon-pick-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
#view-teacher-courses .dungeon-course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#view-teacher-courses .dungeon-course-filter {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#view-teacher-courses .dungeon-course-filter.is-on {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-weight: 700;
}

/* ?? ? ???? */
#view-teacher-students.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}
.teacher-students-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.teacher-students-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
}
.teacher-students-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.teacher-students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.teacher-students-table th,
.teacher-students-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}
.teacher-students-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.03);
}
.teacher-students-table tr:last-child td {
  border-bottom: 0;
}
.teacher-students-table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}
.teacher-students-name {
  font-weight: 700;
}
.teacher-students-role {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}
.teacher-students-progress {
  max-width: 260px;
  line-height: 1.45;
  color: var(--muted, #64748b);
}
.teacher-students-pending {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.teacher-student-detail {
  margin-top: 16px;
  padding: 16px;
}
.teacher-student-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.teacher-student-detail-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.teacher-student-detail-dl {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}
.teacher-student-detail-dl div {
  display: grid;
  gap: 4px;
}
.teacher-student-detail-dl dt {
  font-size: 12px;
  color: var(--muted, #64748b);
}
.teacher-student-detail-dl dd {
  margin: 0;
  line-height: 1.55;
}
.teacher-students-empty,
.teacher-students-loading {
  margin: 0 0 12px;
}


/* ==== PORT: quest result popup (auto) ==== */

body.quest-result-modal-open { overflow: hidden; }
.quest-result-modal[hidden] { display: none !important; }
.quest-result-modal {
  position: fixed;
  inset: 0;
  z-index: 3400;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}
.quest-result-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(32, 28, 72, .28);
  backdrop-filter: blur(10px) saturate(.9);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  cursor: pointer;
}
.quest-result-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 28px 26px 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .92), rgba(245, 243, 255, .88));
  box-shadow:
    0 24px 60px rgba(64, 48, 140, .22),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  text-align: left;
  animation: quest-result-pop-in 180ms ease-out both;
}
@keyframes quest-result-pop-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.quest-result-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(112, 87, 198, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: #5b4bb8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.quest-result-modal__close:hover {
  background: rgba(132, 103, 229, .12);
}
.quest-result-modal__dialog #quest-result-badge {
  display: inline-flex;
  margin: 0 0 12px;
}
.quest-result-modal__dialog #quest-result-title {
  margin: 0 0 8px;
  color: #2f2a6a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}
.quest-result-modal__dialog #quest-result-desc {
  margin: 0;
  color: #5a5688;
  font-size: 14px;
  line-height: 1.65;
}
.quest-result-modal__reward {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.quest-result-modal__reward li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(116, 92, 205, .08);
  color: #4a3f9a;
  font-size: 13px;
  font-weight: 650;
}
.quest-result-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.quest-result-modal__actions .btn {
  min-height: 38px;
  border-radius: 12px;
  font-size: 14px;
}
#quest-result-panel.is-fail #quest-result-badge {
  background: rgba(220, 100, 80, .14);
  color: #b5472e;
}
#quest-result-panel.is-fail #quest-result-title { color: #7a2f2f; }
/* ==== /PORT: quest result popup ==== */

/* 非创建副本页：强制隐藏顶栏创建模式切换 */
body.is-teacher-zone:not(:has(#view-admin.active)) #admin-mode-bar,
body:not(:has(#view-admin.active)) #admin-mode-bar[hidden],
#admin-mode-bar[hidden] {
  display: none !important;
}

/* 用户自行修改密码 — 固定居中 */
.change-password-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  height: fit-content;
  box-shadow: 0 18px 48px rgba(20, 24, 48, 0.28);
  background: #fff;
  color: #1c2438;
  z-index: 10050;
}
.change-password-dialog::backdrop {
  background: rgba(16, 22, 40, 0.45);
}
.change-password-dialog__form {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
}
.change-password-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.change-password-dialog__head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.change-password-dialog__tip {
  margin: 0;
  font-size: 0.9rem;
}
.change-password-dialog .field {
  display: grid;
  gap: 6px;
}
.change-password-dialog .field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(40, 50, 80, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.change-password-dialog__err {
  margin: 0;
  color: #c62828;
  font-size: 0.9rem;
}
.change-password-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}


/* Social domain visibility toggles (forum reopen) */
html.forum-disabled [data-go="forum"],
html.forum-disabled [data-go="forum-post"],
html.forum-disabled [data-go="forum-compose"],
html.forum-disabled #student-train-forum-exit,
html.forum-disabled .menu-identity-entry--forum {
  display: none !important;
}
html.plaza-disabled [data-go="plaza"]:not(.brand) {
  /* plaza stays gated independently */
}
