:root {
  --bg: #edf4f1;
  --bg-deep: #dbe8e2;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-soft: #f7fbf8;
  --surface-strong: #ffffff;
  --text: #183229;
  --muted: #657970;
  --line: rgba(24, 50, 41, 0.08);
  --line-strong: rgba(24, 50, 41, 0.16);
  --accent: #167c68;
  --accent-deep: #0f6353;
  --accent-soft: rgba(22, 124, 104, 0.11);
  --navy: #355b7a;
  --gold: #b7822b;
  --rose: #c05f52;
  --green: #2d8a66;
  --yellow: #9a6d17;
  --red: #9f3f3f;
  --shadow-lg: 0 22px 60px rgba(34, 67, 55, 0.09);
  --shadow-md: 0 12px 28px rgba(34, 67, 55, 0.07);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(132, 178, 162, 0.24), transparent 28%),
    radial-gradient(circle at top center, rgba(114, 153, 200, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(173, 204, 192, 0.16), transparent 24%),
    linear-gradient(180deg, #f6faf7 0%, var(--bg) 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(rgba(29, 74, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 74, 59, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}

.hero {
  position: relative;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(22, 124, 104, 0.08), rgba(255, 255, 255, 0.95) 32%, rgba(95, 128, 170, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 247, 0.94));
  border: 1px solid rgba(19, 70, 55, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-home .chip-row,
.hero-home .home-link-row {
  justify-content: center;
}

.hero-home .hero p,
.hero-home p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 920px;
}

.hero-admin-home p {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: 760px;
}

.hero-admin-home .home-link-row {
  justify-content: flex-start;
}

.hero-admin-home {
  text-align: left;
}

.hero-admin-home .home-link-row,
.hero-admin-home .hero-title-row {
  width: 100%;
}

.hero-admin-home .admin-home-grid {
  width: 100%;
}

.hero-admin-home h1 {
  margin-left: 0;
  margin-right: 0;
}

.hero-admin-home .hero-title-row {
  justify-content: flex-start;
}

.hero-home .notice,
.hero-home .warning,
.hero-home .success {
  text-align: center;
  width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(22, 124, 104, 0.1), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.hero-home h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 16px;
}

.hero-title-actions,
.modal-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-title-row h1 {
  margin: 0;
}

.hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.64;
  font-size: 14px;
}

.chip-row,
.status-row,
.member-grid,
.action-row,
.links-grid,
.exam-meta,
.home-link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-link-row {
  margin-bottom: 18px;
  gap: 12px;
}

.hero .home-link-row {
  margin-bottom: 22px;
}

.hero .chip-row {
  margin-top: 6px;
}

.home-link-row .text-action,
.home-link-row .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(53, 91, 122, 0.14);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(53, 91, 122, 0.08);
}

.home-link-row .text-action:hover,
.home-link-row .btn-ghost:hover {
  background: rgba(33, 78, 114, 0.12);
  color: var(--accent-deep);
}

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

.admin-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 18px;
  align-items: stretch;
  justify-content: center;
  justify-items: stretch;
  gap: 12px;
}

.admin-home-grid > * {
  min-height: 92px;
}

.home-entry-shell {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.home-entry-shell .home-entry-grid {
  width: min(760px, 100%);
}

.entry-card {
  display: grid;
  align-items: stretch;
  width: 100%;
  text-align: center;
  padding: 10px 16px 8px;
  border-radius: 26px;
  border: 1px solid rgba(18, 101, 84, 0.24);
  background: linear-gradient(180deg, rgba(18, 101, 84, 0.38), rgba(211, 234, 225, 0.98));
  box-shadow: 0 16px 28px rgba(18, 48, 37, 0.12);
}

.entry-card strong {
  font-size: 18px;
}

.entry-card span {
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}

.entry-card-member {
  border-color: rgba(171, 84, 72, 0.24);
  background: linear-gradient(180deg, rgba(171, 84, 72, 0.34), rgba(245, 224, 219, 0.98));
}

.entry-card-builder {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 92px;
  position: relative;
  padding-bottom: 38px;
}

.entry-card-main,
.entry-card-content {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  justify-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding-top: 8px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: center;
  justify-items: center;
  cursor: pointer;
}

.entry-card-main strong,
.entry-card-main span,
.entry-card-content strong,
.entry-card-content span,
.entry-card-member strong,
.entry-card-member span {
  width: 100%;
  text-align: center;
}

.entry-card-member {
  grid-template-rows: 1fr;
}

.entry-card-footlink {
  position: absolute;
  left: 14px;
  bottom: 8px;
  margin: 0;
}

.entry-card-footlink-mini {
  padding: 4px 9px;
  min-height: 28px;
  font-size: 11px;
}

.chip,
.status-chip,
.step-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(14, 124, 102, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.status-chip.ok {
  color: var(--green);
  border-color: rgba(45, 138, 102, 0.24);
  background: rgba(45, 138, 102, 0.09);
}

.status-chip.warn {
  color: var(--yellow);
  border-color: rgba(154, 109, 23, 0.22);
  background: rgba(154, 109, 23, 0.09);
}

.status-chip.off {
  color: var(--red);
  border-color: rgba(159, 63, 63, 0.2);
  background: rgba(159, 63, 63, 0.08);
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workflow-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(22, 124, 104, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 26px rgba(18, 48, 37, 0.08);
  cursor: pointer;
}

.workflow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 124, 102, 0.12), rgba(14, 124, 102, 0.4));
  z-index: 2;
}

.workflow-item:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -7px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(14, 124, 102, 0.34);
  border-right: 2px solid rgba(14, 124, 102, 0.34);
  transform: rotate(45deg);
  z-index: 2;
}

.workflow-item strong {
  display: block;
  margin-top: 0;
  font-size: 17px;
}

.workflow-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.workflow-active .workflow-no {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.workflow-done .workflow-no {
  color: #fff;
  background: linear-gradient(135deg, #d8963d, #c76e22);
}

.workflow-todo .workflow-no {
  color: var(--muted);
  background: rgba(94, 117, 109, 0.1);
}

.workflow-active {
  border-color: rgba(14, 124, 102, 0.34);
  background: linear-gradient(180deg, rgba(14, 124, 102, 0.18), rgba(231, 246, 242, 0.96));
}

.workflow-done {
  border-color: rgba(199, 110, 34, 0.34);
  background: linear-gradient(180deg, rgba(215, 150, 61, 0.22), rgba(248, 239, 227, 0.96));
}

.workflow-todo {
  background: linear-gradient(180deg, rgba(240, 245, 243, 0.95), rgba(255, 255, 255, 0.98));
}

.layout {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(24, 50, 41, 0.08);
  box-shadow: var(--shadow-md);
  padding: 20px;
  backdrop-filter: blur(14px);
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-collapsed {
  padding-top: 14px;
  padding-bottom: 14px;
}

.step-collapsed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.step-collapsed-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.step-collapsed-no {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #d8963d, #c76e22);
}

.step-collapsed-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.step-collapsed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-summary-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  opacity: 1;
}

.step-summary-badge:disabled {
  opacity: 1;
  cursor: default;
}

.text-action {
  padding: 9px 14px;
  border: 1px solid rgba(53, 91, 122, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(53, 91, 122, 0.08);
}

.text-action:hover {
  color: var(--accent-deep);
  background: rgba(246, 249, 252, 0.98);
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 6px;
}

.step-intake::before {
  background: linear-gradient(180deg, var(--navy), #5e9dd1);
}

.step-paper::before {
  background: linear-gradient(180deg, var(--accent), #45a68f);
}

.step-members::before {
  background: linear-gradient(180deg, var(--gold), #d6a95f);
}

.step-members {
  overflow: visible;
  z-index: 6;
}

.step-publish::before {
  background: linear-gradient(180deg, var(--rose), #d7897b);
}

.step-heading,
.question-head,
.member-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 10px;
}

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

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

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

.field {
  display: grid;
  gap: 8px;
}

.search-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.members-toolbar {
  align-items: start;
}

.search-btn {
  min-width: 88px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.draft-total-score-field input {
  background: rgba(14, 124, 102, 0.08);
  border-color: rgba(14, 124, 102, 0.18);
  color: #116653;
  font-weight: 800;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(61, 90, 80, 0.12);
  border-radius: 20px;
  background: var(--surface-strong);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(14, 124, 102, 0.22);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(14, 124, 102, 0.42);
  box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

textarea {
  min-height: 74px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 16px;
  padding: 9px 12px;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-size: 13px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d866f, #116653);
  box-shadow: 0 14px 30px rgba(17, 102, 83, 0.2);
}

button.is-loading {
  position: relative;
}

button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: currentColor;
  display: inline-block;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

.btn-secondary {
  color: var(--accent-deep);
  background: rgba(14, 124, 102, 0.1);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

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

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

.questions-grid {
  display: grid;
  gap: 10px;
}

.questions-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.question-card,
.member-card,
.history-item,
.link-card,
.result-card {
  border: 1px solid rgba(24, 50, 41, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 246, 0.86));
  padding: 12px;
}

.question-card {
  box-shadow: 0 10px 22px rgba(18, 48, 37, 0.08);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.question-card:hover {
  box-shadow: 0 14px 26px rgba(18, 48, 37, 0.12);
  border-color: rgba(14, 124, 102, 0.18);
}

.question-index {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

.option-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.option-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 8px;
  align-items: center;
}

.option-item .mini-btn {
  border-radius: 12px;
  padding: 7px 9px;
}

.answer-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.answer-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 50, 41, 0.14);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.answer-pill input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.answer-pill.selected {
  border-color: rgba(14, 124, 102, 0.28);
  background: rgba(14, 124, 102, 0.1);
  box-shadow: 0 10px 20px rgba(14, 124, 102, 0.08);
}

.answer-pill:hover {
  border-color: rgba(14, 124, 102, 0.22);
}

.helper {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.52;
}

.member-grid {
  margin-top: 10px;
  align-items: stretch;
}

.member-grid-tight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
}

.step-members .member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
}

.member-card {
  min-height: 52px;
  padding: 8px;
}

.member-grid-tight .member-card,
.step-members .member-card {
  width: 100%;
  max-width: none;
  min-height: 118px;
  padding: 12px;
  display: grid;
  grid-template-rows: minmax(52px, 1fr) auto;
  align-content: space-between;
  gap: 10px;
}

.member-card.selected {
  border-color: rgba(45, 138, 102, 0.28);
  background: linear-gradient(180deg, rgba(45, 138, 102, 0.11), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 22px rgba(45, 138, 102, 0.08);
}

.member-grid-tight .member-card .member-head,
.step-members .member-card .member-head {
  min-height: 52px;
  align-items: flex-start;
}

.member-card button {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.member-grid-tight .member-card button,
.step-members .member-card button {
  padding: 7px 10px;
  font-size: 12px;
}

.member-card .member-head strong {
  font-size: 13px;
  line-height: 1.45;
}

.member-card .helper {
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
}

.search-result-panel {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(33, 78, 114, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(19, 45, 35, 0.08);
  max-height: 260px;
  overflow: auto;
}

.org-dropdown-field {
  position: relative;
}

.org-dropdown-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(24, 58, 46, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(16, 31, 24, 0.03);
  text-align: left;
}

.org-dropdown-trigger.is-open,
.org-dropdown-trigger:hover {
  border-color: rgba(27, 127, 104, 0.28);
}

.org-dropdown-caret {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}

.org-dropdown-menu {
  position: static;
  margin-top: 8px;
  max-height: 340px;
  z-index: auto;
}

.org-dropdown-section {
  display: grid;
  gap: 8px;
}

.org-dropdown-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-dropdown-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(33, 78, 114, 0.08);
  color: #36536b;
  font-size: 11px;
  font-weight: 600;
}

.org-dropdown-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.org-dropdown-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(33, 78, 114, 0.16);
  background: rgba(244, 247, 249, 0.8);
  font-size: 12px;
  color: var(--muted);
}

.members-toolbar .search-inline input,
.members-toolbar .search-btn {
  min-height: 56px;
  border-radius: 20px;
}

.builder-member-toolbar {
  display: grid;
  gap: 14px;
  align-items: start;
}

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

.builder-member-toolbar-3 {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(260px, 0.95fr);
}

.builder-member-toolbar-left {
  min-width: 0;
}

.template-apply-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.template-apply-inline select,
.template-apply-inline .search-btn {
  min-height: 56px;
  border-radius: 20px;
}

.member-template-editor-actions {
  flex-wrap: nowrap;
}

.org-browser-shell {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.org-browser-shell-single {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
}

.org-browser-column {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.org-browser-column-head {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 30, 24, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 236, 0.92));
}

.org-browser-column-head-inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.org-browser-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-browser-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(33, 78, 114, 0.08);
  color: #36536b;
  font-size: 11px;
  font-weight: 600;
}

.org-browser-panel {
  margin-top: 0;
  min-height: 240px;
}

.org-browser-panel-nav {
  align-content: start;
}

.org-browser-panel-main {
  align-content: start;
}

.org-browser-item {
  min-height: 60px;
}

.org-browser-item-back {
  background: linear-gradient(180deg, rgba(231, 240, 247, 0.9), rgba(255, 255, 255, 0.96));
}

.org-browser-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(33, 78, 114, 0.12);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.org-browser-member-card.is-disabled {
  background: rgba(244, 246, 247, 0.88);
}

.org-browser-member-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.org-browser-member-meta strong {
  font-size: 14px;
}

.org-browser-member-meta span {
  font-size: 11px;
  color: var(--muted);
}

.org-browser-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(33, 78, 114, 0.16);
  background: rgba(244, 247, 249, 0.8);
  font-size: 12px;
  color: var(--muted);
}

.search-result-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(33, 78, 114, 0.1);
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: none;
}

.search-result-item strong {
  font-size: 14px;
}

.search-result-item span {
  font-size: 11px;
  color: var(--muted);
}

.search-result-item:hover {
  border-color: rgba(33, 78, 114, 0.22);
  background: rgba(33, 78, 114, 0.08);
}

.search-result-item.is-selected {
  border-color: rgba(14, 124, 102, 0.28);
  background: rgba(14, 124, 102, 0.1);
}

.org-browser-member-card button {
  min-width: 118px;
}

.member-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.member-template-list {
  display: grid;
  gap: 14px;
}

.member-template-card.active {
  border-color: rgba(22, 124, 104, 0.32);
  box-shadow: 0 16px 36px rgba(22, 124, 104, 0.08);
}

.member-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.publish-summary-card {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
  width: min(920px, 100%);
  padding: 22px;
  border-color: rgba(33, 78, 114, 0.16);
  box-shadow: 0 16px 36px rgba(18, 48, 37, 0.1);
  text-align: center;
}

.publish-summary-card h2,
.publish-summary-card p,
.publish-summary-card .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

.publish-summary-card .history-grid {
  margin-top: 4px;
}

.publish-summary-actions {
  justify-content: flex-end;
  align-items: center;
}

.publish-summary-actions .text-action {
  min-width: 132px;
}

.result-card-actions {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.result-card-actions .btn-ghost {
  min-width: 84px;
}

.hero-title-row .status-chip {
  flex-shrink: 0;
}

.history-card {
  padding-top: 18px;
}

.history-card-collapsed {
  min-height: 112px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.history-card-expanded {
  min-height: 0;
}

.history-collapsed-note {
  margin-top: 6px;
}

.draft-item {
  gap: 10px;
  padding: 14px 16px;
}

.draft-card-actions {
  justify-content: flex-start;
  gap: 10px;
}

.history-item {
  display: grid;
  gap: 12px;
}

.history-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

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

.result-exam-card {
  display: grid;
  gap: 14px;
}

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

.result-mini-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 50, 41, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.result-mini-score {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--accent-deep);
}

.dashboard-layout {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.dashboard-card-primary {
  grid-column: 1 / -1;
  max-width: none;
}

.dashboard-card-span-2 {
  grid-column: 1 / -1;
  min-height: 320px;
}

.chart-host {
  width: 100%;
  min-height: 320px;
  height: 320px;
}

.chart-host-lg {
  min-height: 400px;
  height: 400px;
}

.dashboard-select-field {
  width: min(280px, 100%);
}

.dashboard-select-field .field {
  gap: 4px;
}

.dashboard-select-field label {
  font-size: 11px;
}

.dashboard-select-field select {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 16px;
  min-height: 40px;
}

.toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.modal-mask {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 28, 24, 0.42);
}

.modal-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  pointer-events: none;
}

.modal-shell-compact {
  width: min(560px, calc(100vw - 32px));
}

.modal-shell-wide {
  width: min(1040px, calc(100vw - 32px));
}

.modal-shell-medium {
  width: min(760px, calc(100vw - 32px));
}

.modal-panel {
  margin: 0;
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.modal-panel-compact {
  max-width: 560px;
  margin: 0 auto;
}

.modal-heading {
  align-items: flex-start;
}

.modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(24, 50, 41, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #fff;
}

.result-modal-card {
  border-color: rgba(14, 124, 102, 0.18);
  box-shadow: 0 16px 38px rgba(18, 48, 37, 0.12);
}

.focused-card {
  border-color: rgba(14, 124, 102, 0.22);
  box-shadow: 0 16px 32px rgba(18, 48, 37, 0.12);
}

.links-grid {
  margin-top: 14px;
}

.link-card code {
  display: block;
  margin-top: 10px;
  word-break: break-all;
  padding: 12px;
  border-radius: 12px;
  background: rgba(33, 78, 114, 0.06);
}

.notice,
.warning,
.success {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.7;
  font-size: 12px;
  border: 1px solid transparent;
}

.notice {
  color: var(--navy);
  background: rgba(33, 78, 114, 0.08);
  border-color: rgba(33, 78, 114, 0.12);
}

.warning {
  color: #7c4b00;
  background: rgba(215, 168, 72, 0.14);
  border-color: rgba(154, 109, 23, 0.16);
}

.success {
  color: #0c5e50;
  background: rgba(45, 138, 102, 0.12);
  border-color: rgba(45, 138, 102, 0.14);
}

.btn-soft-warn {
  color: var(--yellow);
  border-color: rgba(154, 109, 23, 0.18);
  background: rgba(215, 168, 72, 0.14);
}

.empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(94, 117, 109, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.pre-block {
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 18px;
  background: linear-gradient(180deg, #173630, #102923);
  color: #eaf6f1;
  padding: 12px;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 12px;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.tab {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.tab.active {
  background: rgba(14, 124, 102, 0.12);
  color: var(--accent-deep);
}

.score {
  font-size: clamp(42px, 9vw, 84px);
  line-height: 1;
  margin: 0;
  color: var(--accent-deep);
}

.result-hero-card {
  display: grid;
  gap: 8px;
  padding: 24px 26px;
  min-height: 220px;
  align-content: center;
  border-radius: 26px;
  border: 1px solid rgba(14, 124, 102, 0.14);
  background: linear-gradient(135deg, rgba(230, 248, 242, 0.95), rgba(255, 255, 255, 0.96));
}

.result-hero-scoreline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.result-hero-score {
  margin: 0;
  display: inline-flex;
  align-items: flex-end;
  font-size: clamp(82px, 16vw, 136px);
  line-height: 0.88;
  font-weight: 800;
  color: #14352d;
  letter-spacing: -0.03em;
}

.result-hero-unit {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #245649;
  padding-bottom: 10px;
}

.result-summary-stack {
  display: grid;
  gap: 14px;
}

.question-card-paste-target {
  position: relative;
}

.exam-grading-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 48px 28px;
  text-align: center;
}

.exam-grading-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  color: #14352d;
}

.exam-grading-meta {
  display: grid;
  gap: 10px;
  justify-items: center;
  font-size: 18px;
  color: #214e43;
}

.exam-grading-meta strong {
  color: #0f6f5b;
  font-size: clamp(20px, 3vw, 28px);
}

.exam-grading-spinner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 6px solid rgba(14, 124, 102, 0.12);
  border-top-color: #0f7c66;
  animation: exam-grading-spin 0.85s linear infinite;
}

@keyframes exam-grading-spin {
  to {
    transform: rotate(360deg);
  }
}

.result-table-card {
  overflow: hidden;
}

.result-table-wrap {
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(24, 50, 41, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 50, 41, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.6;
}

.result-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2faf6;
  color: #1f4d41;
  font-weight: 700;
}

.result-table tbody tr:nth-child(even) td {
  background: rgba(244, 250, 247, 0.7);
}

.result-insight-grid {
  align-items: stretch;
}

.result-scroll-card {
  min-height: 220px;
}

.result-scroll-body {
  margin-top: 12px;
  max-height: 184px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  padding-right: 4px;
}

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

.export-toolbar .field {
  min-width: 240px;
  margin: 0;
}

.result-manual-editor {
  display: grid;
  gap: 14px;
}

.result-edit-table td {
  min-width: 120px;
}

.table-inline-input,
.table-inline-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(24, 50, 41, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
}

.table-inline-input {
  min-height: 40px;
  padding: 0 10px;
}

.table-inline-textarea {
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.question-bank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.question-bank-toolbar {
  margin-top: 18px;
}

.question-bank-editor {
  display: grid;
  gap: 14px;
}

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

.question-bank-list-item {
  display: grid;
  gap: 10px;
}

.question-bank-list-item.active {
  border-color: rgba(20, 93, 177, 0.18);
  box-shadow: 0 14px 30px rgba(20, 93, 177, 0.08);
}

.question-bank-summary {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.question-bank-option-row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(120px, auto) auto;
}

.question-bank-sequence-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.countdown-chip {
  background: rgba(33, 78, 114, 0.1);
  color: var(--navy);
}

.countdown-chip-danger {
  background: rgba(215, 80, 80, 0.16);
  color: #872f2f;
}

.exam-shell {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.answer-choice {
  display: grid;
  gap: 10px;
}

.choice-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 50, 41, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.choice-input-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
}

.choice-input-item input {
  margin: 3px 0 0;
}

.choice-input-item span {
  text-align: left;
  line-height: 1.55;
}

.sequence-toggle {
  margin-top: 10px;
}

.sequence-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(24, 50, 41, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.sequence-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.sequence-check span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.sequence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.sequence-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(14, 124, 102, 0.18);
  background: rgba(14, 124, 102, 0.08);
}

.sequence-actions {
  display: inline-flex;
  gap: 6px;
}

.sequence-option {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.sequence-picked {
  border-color: rgba(14, 124, 102, 0.24);
  background: rgba(14, 124, 102, 0.12);
}

.schedule-current-grid {
  margin-bottom: 12px;
}

.schedule-current-card {
  min-height: 156px;
  align-content: space-between;
}

.schedule-current-value {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #173a31;
  word-break: break-word;
}

.schedule-modal-note {
  margin-top: 0;
  margin-bottom: 16px;
}

.screenshot-uploader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

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

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.image-card {
  border: 1px solid rgba(24, 50, 41, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.image-card-preview {
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
}

.image-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(24, 50, 41, 0.08);
}

.publish-review-modal {
  display: grid;
  gap: 14px;
}

.push-history-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.push-history-title-row h2 {
  margin: 0;
}

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

.formal-paper {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: #fffefa;
  border: 1px solid rgba(20, 30, 24, 0.08);
}

.formal-paper-cover {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(20, 30, 24, 0.08);
  text-align: center;
}

.formal-paper-cover h2 {
  margin: 8px 0 0;
  color: #162d24;
  font-size: 28px;
}

.formal-paper-cover p {
  margin: 8px 0 0;
  color: #637168;
}

.formal-paper-list {
  display: grid;
  gap: 14px;
}

.formal-paper-question {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(20, 30, 24, 0.14);
}

.formal-paper-question:last-child {
  border-bottom: 0;
}

.formal-paper-question-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.formal-paper-question-head em {
  font-style: normal;
  color: #7a867c;
}

.formal-paper-question h3 {
  margin: 10px 0 0;
  color: #172d24;
  font-size: 18px;
  line-height: 1.55;
}

.formal-paper-options {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.formal-paper-options li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  line-height: 1.7;
  color: #253a31;
}

.formal-paper-options strong {
  color: #173127;
}

.formal-paper-answer-space {
  min-height: 96px;
  margin-top: 12px;
  padding-top: 8px;
  color: #637168;
  border-top: 1px solid rgba(20, 30, 24, 0.08);
}

.formal-paper-images {
  margin-top: 12px;
}

.formal-paper-correct-answer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(22, 124, 104, 0.08);
  border: 1px solid rgba(22, 124, 104, 0.14);
}

.formal-paper-answer-title {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
}

.formal-paper-answer-title-sub {
  margin-top: 4px;
}

.formal-paper-answer-text {
  color: #173127;
  line-height: 1.8;
  white-space: normal;
}

.compact-question-card {
  gap: 8px;
}

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

.member-table-list-plain {
  gap: 2px;
}

.member-table-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 50, 41, 0.08);
}

.member-table-row-actions {
  grid-template-columns: 96px minmax(0, 1fr) 116px;
}

.member-table-list-plain .member-table-row {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.member-table-list-plain .member-table-row:not(:last-child) {
  border-bottom: 0;
}

.chart-stack {
  display: grid;
  gap: 12px;
}

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

.chart-label {
  display: grid;
  gap: 4px;
}

.chart-label span {
  font-size: 11px;
  color: var(--muted);
}

.chart-bar-shell {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(24, 50, 41, 0.08);
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #4aa48b);
}

.chart-value {
  text-align: right;
  font-weight: 700;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.insight-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22, 124, 104, 0.1);
  color: var(--accent-deep);
  border: 1px solid rgba(22, 124, 104, 0.14);
}

.insight-list {
  gap: 10px;
}

.insight-item {
  gap: 8px;
}

.trend-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 90px;
}

.trend-line span {
  flex: 1;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(22, 124, 104, 0.18), rgba(22, 124, 104, 0.76));
  min-height: 14px;
}

.trend-sparkline {
  margin-top: 10px;
  height: 88px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 124, 104, 0.06), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(22, 124, 104, 0.12);
  padding: 10px 12px;
}

.trend-sparkline svg {
  width: 100%;
  height: 100%;
}

.trend-sparkline polyline {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-sparkline circle {
  fill: #fff;
  stroke: var(--accent-deep);
  stroke-width: 1.6;
}

.trend-sparkline text {
  fill: var(--accent-deep);
  font-size: 4px;
  font-weight: 700;
  text-anchor: middle;
}

.trend-point-list {
  margin-top: 10px;
}

.trend-point-tag {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.trend-filter-dropdown {
  position: relative;
}

.trend-filter-dropdown summary {
  list-style: none;
  padding: 9px 14px;
  border: 1px solid rgba(24, 50, 41, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.trend-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 48px));
  max-height: 320px;
  overflow: auto;
  z-index: 5;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 50, 41, 0.12);
  box-shadow: 0 20px 36px rgba(18, 48, 37, 0.14);
}

.trend-filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  width: 100%;
}

.trend-filter-label {
  white-space: nowrap;
  line-height: 1.5;
  text-align: left;
}

.trend-filter-clear {
  width: 100%;
}

.trend-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.accuracy-card {
  width: 100%;
  text-align: left;
}

.answer-review-board {
  display: grid;
  gap: 12px;
}

.answer-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 12px;
}

.review-field-stack {
  gap: 10px;
}

.field-result-window {
  gap: 8px;
}

.answer-block {
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  border-radius: 14px;
  background: rgba(24, 50, 41, 0.05);
  padding: 12px;
}

.log-item {
  padding: 14px 16px;
}

.log-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.unsubmitted-member-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
}

.org-browser-panel {
  margin-top: 14px;
}

.member-card-unsubmitted {
  background: linear-gradient(180deg, rgba(255, 236, 236, 0.96), rgba(255, 255, 255, 0.94));
  border-color: rgba(196, 91, 91, 0.16);
}

.footer-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

details {
  border: 1px solid rgba(24, 50, 41, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.home-preview-link-row {
  margin-top: 18px;
  margin-bottom: 6px;
}

.preview-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.preview-hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(8, 18, 37, 0.95), rgba(13, 46, 70, 0.92) 58%, rgba(173, 108, 34, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(137, 186, 255, 0.16);
  box-shadow: 0 32px 90px rgba(9, 23, 40, 0.28);
}

.preview-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.96;
}

.preview-hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 28px;
  color: #f2f6ff;
}

.preview-topbar,
.preview-topbar-actions,
.preview-hero-grid,
.preview-stat-grid,
.preview-flow-grid,
.preview-dashboard-grid,
.preview-kpi-row,
.preview-panel-head,
.preview-device-footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.preview-topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.preview-badge,
.preview-signal,
.preview-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-badge {
  color: #9de8d5;
  background: rgba(118, 229, 201, 0.12);
  border: 1px solid rgba(118, 229, 201, 0.26);
}

.preview-nav-btn,
.preview-device-footer button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.preview-nav-btn {
  color: #d8e5ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.preview-nav-btn:hover,
.preview-device-footer button:hover {
  transform: translateY(-1px);
}

.preview-nav-btn-strong,
.preview-device-footer button {
  color: #07172d;
  background: linear-gradient(135deg, #8bf4da, #f1c46b);
}

.preview-hero-grid {
  align-items: stretch;
  justify-content: space-between;
}

.preview-copy {
  flex: 1 1 540px;
  min-width: 0;
}

.preview-kicker,
.preview-section-heading p,
.preview-panel-head p,
.preview-mini-label {
  margin: 0;
  color: rgba(219, 232, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-copy h1,
.preview-section-heading h2,
.preview-panel-head h3,
.preview-device-screen strong {
  margin: 0;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
}

.preview-copy h1 {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.preview-lead,
.preview-panel-copy {
  margin: 18px 0 0;
  max-width: 720px;
  color: rgba(234, 241, 255, 0.82);
  line-height: 1.8;
  font-size: 15px;
}

.preview-stat-grid,
.preview-flow-grid,
.preview-dashboard-grid,
.preview-kpi-row {
  display: grid;
}

.preview-stat-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-stat-card,
.preview-flow-card,
.preview-panel,
.preview-kpi-card,
.preview-device-card {
  border-radius: 24px;
  backdrop-filter: blur(16px);
}

.preview-stat-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-stat-card span,
.preview-kpi-card span {
  display: block;
  font-size: 13px;
  color: rgba(218, 228, 247, 0.72);
}

.preview-stat-card strong,
.preview-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.preview-stat-card small,
.preview-kpi-card small,
.preview-device-card small {
  display: block;
  margin-top: 12px;
  color: rgba(218, 228, 247, 0.72);
  line-height: 1.6;
}

.preview-device-panel {
  flex: 0 1 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

.preview-device-frame {
  position: relative;
  width: min(330px, 100%);
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 22px 70px rgba(5, 12, 28, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.preview-device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 110px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: rgba(4, 12, 24, 0.88);
}

.preview-device-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
  padding: 34px 16px 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(107, 232, 203, 0.18), transparent 35%),
    linear-gradient(180deg, #0d1730 0%, #111f35 48%, #152848 100%);
  color: #eef4ff;
}

.preview-device-screen-top span {
  display: block;
  color: rgba(214, 226, 248, 0.72);
  font-size: 13px;
}

.preview-device-screen-top strong {
  margin-top: 8px;
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.preview-device-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-device-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.preview-device-card-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(91, 235, 202, 0.2), rgba(241, 196, 107, 0.16));
  border-color: rgba(177, 232, 205, 0.22);
}

.preview-mini-pill {
  color: #7ff3d5;
  background: rgba(7, 23, 45, 0.72);
  border: 1px solid rgba(127, 243, 213, 0.18);
}

.preview-device-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-device-footer {
  margin-top: auto;
  justify-content: space-between;
}

.preview-device-footer button {
  flex: 1 1 0;
}

.preview-device-footer .ghost {
  color: #d9e4fb;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.preview-section {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.95));
  border: 1px solid rgba(17, 56, 48, 0.08);
  box-shadow: var(--shadow-lg);
}

.preview-section-tight {
  padding-top: 24px;
}

.preview-section-heading {
  margin-bottom: 18px;
}

.preview-section-heading p,
.preview-panel-head p {
  color: rgba(15, 48, 70, 0.58);
}

.preview-section-heading h2 {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f233f;
}

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

.preview-flow-card,
.preview-panel,
.preview-kpi-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 251, 0.94)),
    linear-gradient(120deg, rgba(129, 176, 255, 0.1), rgba(255, 255, 255, 0));
  border: 1px solid rgba(27, 60, 92, 0.1);
  box-shadow: 0 16px 44px rgba(15, 35, 63, 0.08);
}

.preview-flow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #eff6ff;
  background: linear-gradient(135deg, #103561, #25708c);
  font-weight: 800;
}

.preview-flow-card h3,
.preview-panel-head h3 {
  margin: 16px 0 0;
  color: #102845;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.preview-flow-card p,
.preview-list,
.preview-panel-copy,
.preview-kpi-card small {
  margin: 12px 0 0;
  color: #4c6474;
  line-height: 1.8;
  font-size: 14px;
}

.preview-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-panel-wide {
  grid-column: span 3;
  background:
    radial-gradient(circle at top right, rgba(123, 232, 208, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(13, 28, 52, 0.96), rgba(20, 43, 70, 0.94));
  color: #f4f7ff;
  border-color: rgba(136, 184, 255, 0.14);
}

.preview-panel-wide .preview-panel-head p,
.preview-panel-wide .preview-panel-copy,
.preview-panel-wide .preview-kpi-card small,
.preview-panel-wide .preview-kpi-card span {
  color: rgba(221, 231, 248, 0.76);
}

.preview-panel-wide .preview-panel-head h3,
.preview-panel-wide .preview-kpi-card strong {
  color: #f4f8ff;
}

.preview-signal {
  color: #0a1a35;
  background: linear-gradient(135deg, #8ef5dd, #f0c46c);
}

.preview-kpi-row {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-kpi-card {
  min-height: 152px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.preview-list {
  padding-left: 18px;
}

.preview-list li + li {
  margin-top: 8px;
}

.launch-shell,
.admin-shell,
.member-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.launch-hero,
.admin-cockpit-hero,
.member-hero,
.exam-hero-upgraded {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(10, 25, 42, 0.14);
}

.launch-hero {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(143, 243, 221, 0.2), transparent 24%),
    radial-gradient(circle at bottom left, rgba(49, 112, 186, 0.16), transparent 26%),
    linear-gradient(135deg, #0f2039, #173961 48%, #1f6f70);
  color: #eef4ff;
}

.launch-grid,
.admin-action-deck,
.member-summary-grid,
.member-exam-metrics,
.exam-hero-grid,
.exam-glance-grid,
.exam-brief-grid,
.portal-grid {
  display: grid;
}

.launch-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
}

.launch-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.launch-inline-note {
  color: rgba(226, 237, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-copy {
  max-width: 760px;
  padding: 6px 0;
  text-align: center;
}

.launch-copy h1 {
  margin: 12px 0 0;
  max-width: none;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.launch-copy p {
  margin-top: 14px;
  max-width: 760px;
  color: rgba(234, 241, 255, 0.84);
  line-height: 1.72;
  font-size: 14px;
}

.launch-copy .notice,
.launch-copy .warning,
.launch-copy .success {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.launch-metric-card,
.admin-stat-card,
.member-summary-card,
.member-exam-card,
.admin-action-card,
.exam-glance-card,
.exam-brief-item {
  border-radius: 24px;
}

.launch-metric-card {
  min-height: 168px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.launch-metric-card span,
.admin-stat-card span,
.member-summary-card span,
.member-exam-metric span,
.exam-glance-grid span,
.exam-brief-item span {
  display: block;
  color: rgba(219, 229, 245, 0.72);
  font-size: 13px;
}

.launch-metric-card strong,
.admin-stat-card strong,
.member-summary-card strong,
.member-exam-metric strong,
.exam-glance-grid strong,
.exam-brief-item strong {
  display: block;
  margin-top: 8px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.launch-metric-card strong,
.admin-stat-card strong,
.member-summary-card strong {
  font-size: 22px;
}

.launch-metric-card small,
.admin-stat-card small,
.member-summary-card small {
  display: block;
  margin-top: 10px;
  color: rgba(219, 229, 245, 0.72);
  line-height: 1.62;
  font-size: 13px;
}

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

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 24px;
  border: 0;
  border-radius: 30px;
  text-align: left;
  cursor: pointer;
  color: #eef5ff;
  background:
    radial-gradient(circle at top right, rgba(132, 236, 212, 0.18), transparent 22%),
    linear-gradient(160deg, #102746, #17385f 58%, #17304d);
  box-shadow: 0 22px 60px rgba(10, 28, 50, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 72px rgba(10, 28, 50, 0.24);
}

.portal-card-member {
  background:
    radial-gradient(circle at top right, rgba(242, 198, 112, 0.24), transparent 22%),
    linear-gradient(160deg, #17304b, #224367 54%, #265f61);
}

.portal-card-kicker {
  color: rgba(219, 231, 248, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-card strong {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.portal-card span {
  color: rgba(235, 242, 255, 0.82);
  line-height: 1.78;
}

.portal-card-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.portal-card-foot em {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 242, 255, 0.78);
  font-style: normal;
  font-size: 12px;
}

.admin-cockpit-hero {
  background:
    radial-gradient(circle at top right, rgba(142, 245, 222, 0.22), transparent 18%),
    linear-gradient(145deg, rgba(10, 19, 39, 0.96), rgba(17, 47, 76, 0.9) 55%, rgba(244, 196, 108, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: #eef4ff;
}

.admin-cockpit-hero p {
  color: rgba(226, 237, 255, 0.82);
}

.admin-cockpit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-stat-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.admin-toolbar-links {
  margin-top: 16px;
}

.admin-action-deck {
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.admin-action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #17304b;
  box-shadow: 0 18px 48px rgba(6, 19, 37, 0.12);
}

.admin-action-card-primary {
  background:
    radial-gradient(circle at top right, rgba(123, 232, 208, 0.18), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.92));
}

.admin-action-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-action-card strong {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.admin-action-card span {
  color: #5f7484;
  line-height: 1.8;
}

.member-hero {
  background:
    radial-gradient(circle at top right, rgba(142, 245, 222, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}

.member-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.member-summary-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  border: 1px solid rgba(28, 68, 104, 0.08);
  box-shadow: 0 16px 42px rgba(20, 38, 70, 0.08);
}

.member-summary-card span,
.member-summary-card small,
.member-summary-card strong,
.member-exam-metric span,
.member-exam-metric strong {
  color: #18324a;
}

.member-summary-card small {
  color: #66798a;
}

.member-list-layout {
  gap: 14px;
}

.member-exam-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.95));
  border: 1px solid rgba(27, 60, 92, 0.08);
  box-shadow: 0 18px 46px rgba(16, 35, 65, 0.08);
}

.member-exam-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-exam-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.member-exam-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(237, 244, 251, 0.9);
  border: 1px solid rgba(31, 77, 113, 0.08);
}

.member-exam-metric strong {
  font-size: 18px;
}

.member-exam-actions {
  align-items: center;
}

.exam-hero-upgraded {
  background:
    radial-gradient(circle at top right, rgba(142, 245, 222, 0.2), transparent 20%),
    linear-gradient(145deg, rgba(10, 19, 39, 0.96), rgba(17, 47, 76, 0.9) 55%, rgba(244, 196, 108, 0.24));
  color: #eef4ff;
}

.exam-hero-upgraded p {
  color: rgba(228, 236, 247, 0.84);
}

.exam-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.exam-glance-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.exam-glance-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.exam-glance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.exam-glance-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(6, 16, 30, 0.22);
}

.exam-glance-grid strong {
  font-size: 16px;
  color: #f3f7ff;
}

.exam-shell-upgraded {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exam-brief-card,
.exam-answer-card {
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(16, 35, 65, 0.08);
}

.exam-brief-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.exam-brief-item {
  padding: 16px;
  background: rgba(239, 245, 251, 0.92);
  border: 1px solid rgba(24, 54, 81, 0.08);
}

.exam-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.exam-answer-progress-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 124, 104, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
  white-space: nowrap;
}

.exam-submit-row {
  justify-content: flex-end;
}

/* App-wide redesign overrides for shared surfaces so the whole product shifts together */
.hero:not(.launch-hero):not(.preview-hero):not(.admin-cockpit-hero):not(.member-hero):not(.exam-hero-upgraded) {
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.12), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
  border: 1px solid rgba(22, 56, 89, 0.08);
  box-shadow: 0 24px 64px rgba(14, 34, 60, 0.1);
}

.card,
.step-card,
.question-card,
.member-card,
.history-item,
.link-card,
.result-card,
.result-mini-card,
.dashboard-card,
.image-card,
.member-table-row,
.answer-pill,
.choice-item,
.trend-filter-menu {
  border-color: rgba(20, 51, 79, 0.08);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 250, 255, 0.95));
  box-shadow: 0 18px 44px rgba(14, 34, 60, 0.08);
}

.card,
.step-card {
  padding: 24px;
  border-radius: 28px;
}

.step-card::before {
  width: 8px;
  border-radius: 0 10px 10px 0;
  opacity: 0.92;
}

.section-kicker,
.question-index {
  color: #1f7f77;
}

.card h2,
.card h3 {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #15314b;
}

.card p,
.helper,
.history-item .helper,
.member-card .helper {
  color: #667b8c;
}

.workflow-board {
  gap: 12px;
}

.workflow-item {
  min-height: 64px;
  border-radius: 26px;
  border-color: rgba(21, 64, 94, 0.1);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
  box-shadow: 0 18px 40px rgba(14, 34, 60, 0.08);
}

.workflow-item strong {
  color: #17314a;
}

.workflow-active {
  border-color: rgba(29, 134, 111, 0.24);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(230, 248, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.workflow-done {
  border-color: rgba(214, 169, 95, 0.24);
  background:
    radial-gradient(circle at top right, rgba(242, 198, 112, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.workflow-todo {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.workflow-no,
.step-collapsed-no {
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(14, 34, 60, 0.16);
}

.text-action,
.btn-ghost,
.btn-secondary,
.btn-primary,
.tab {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-action,
.btn-ghost {
  color: #24435f;
  border: 1px solid rgba(25, 65, 97, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(14, 34, 60, 0.06);
}

.text-action:hover,
.btn-ghost:hover {
  color: #17314a;
  background: rgba(240, 247, 255, 0.96);
}

.btn-secondary {
  color: #146957;
  background: linear-gradient(135deg, rgba(29, 134, 111, 0.14), rgba(122, 227, 199, 0.18));
  box-shadow: 0 12px 28px rgba(17, 102, 83, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #0f8a73, #145db1);
  box-shadow: 0 16px 34px rgba(17, 87, 144, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #117f6a, #1d67bf);
}

.status-chip,
.chip,
.step-state,
.step-summary-badge {
  padding: 9px 14px;
  border-radius: 999px;
  border-color: rgba(25, 65, 97, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #5b7284;
  font-weight: 700;
}

.status-chip.ok {
  color: #0f7f6b;
  border-color: rgba(15, 127, 107, 0.16);
  background: rgba(15, 127, 107, 0.1);
}

.status-chip.warn {
  color: #9b6a18;
  border-color: rgba(155, 106, 24, 0.18);
  background: rgba(240, 196, 108, 0.14);
}

.status-chip.off {
  color: #a23e4b;
  border-color: rgba(162, 62, 75, 0.16);
  background: rgba(210, 102, 114, 0.12);
}

.step-summary-badge {
  color: #f2f8ff;
  background: linear-gradient(135deg, #0f8a73, #145db1);
}

.field {
  gap: 10px;
}

.field label {
  color: #567082;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

input,
textarea,
select {
  border-radius: 18px;
  border-color: rgba(21, 64, 94, 0.1);
  background: rgba(255, 255, 255, 0.96);
  padding: 13px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(20, 93, 177, 0.18);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(20, 93, 177, 0.34);
  box-shadow: 0 0 0 4px rgba(20, 93, 177, 0.1);
}

textarea {
  min-height: 86px;
}

.search-result-panel {
  border-radius: 20px;
  border-color: rgba(21, 64, 94, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 38px rgba(14, 34, 60, 0.1);
}

.search-result-item {
  padding: 10px 12px;
  border-radius: 16px;
}

.search-result-item:hover {
  border-color: rgba(20, 93, 177, 0.16);
  background: rgba(20, 93, 177, 0.08);
}

.member-card {
  border-radius: 18px;
}

.member-card.selected,
.focused-card {
  border-color: rgba(15, 127, 107, 0.22);
  box-shadow: 0 18px 40px rgba(15, 127, 107, 0.1);
}

.history-item,
.result-exam-card {
  padding: 18px;
}

.member-exam-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
  gap: 12px;
  align-items: stretch;
}

.member-exam-stats {
  width: max-content;
  max-width: 100%;
  grid-template-columns: minmax(220px, max-content) minmax(92px, 120px);
}

.member-exam-score-box {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(20, 51, 79, 0.08);
  background: linear-gradient(135deg, rgba(239, 245, 251, 0.86), rgba(255, 255, 255, 0.9));
  text-align: right;
}

.member-exam-score-box strong {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1;
  color: #145db1;
}

.member-exam-score-box.has-score {
  border-color: rgba(20, 93, 177, 0.18);
  box-shadow: 0 18px 36px rgba(20, 93, 177, 0.08);
}

.member-retake-alert {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(159, 63, 63, 0.09);
  border: 1px solid rgba(159, 63, 63, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.submission-log-item .section-kicker {
  margin-bottom: 4px;
}

.history-main,
.step-heading,
.question-head,
.member-head {
  gap: 14px;
}

.history-grid,
.result-mini-grid {
  gap: 12px;
}

.history-grid > div,
.result-mini-card,
.dashboard-card,
.log-meta-grid > div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 245, 251, 0.76);
  border: 1px solid rgba(20, 51, 79, 0.06);
}

.result-mini-card {
  box-shadow: none;
}

.result-mini-score {
  color: #145db1;
  letter-spacing: -0.03em;
}

.dashboard-card {
  min-height: 220px;
}

.dashboard-card-primary {
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 249, 255, 0.96));
}

.chart-host,
.chart-host-lg {
  border-radius: 22px;
  background: rgba(244, 248, 252, 0.92);
  border: 1px solid rgba(20, 51, 79, 0.06);
}

.notice,
.warning,
.success {
  border-radius: 18px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.72;
}

.notice {
  color: #24527a;
  background: rgba(36, 82, 122, 0.08);
  border-color: rgba(36, 82, 122, 0.1);
}

.warning {
  color: #8b6114;
  background: rgba(240, 196, 108, 0.18);
  border-color: rgba(155, 106, 24, 0.14);
}

.success {
  color: #146957;
  background: rgba(20, 105, 87, 0.12);
  border-color: rgba(20, 105, 87, 0.12);
}

.empty {
  border-radius: 20px;
  border-color: rgba(21, 64, 94, 0.14);
  background: rgba(247, 250, 254, 0.82);
}

.pre-block,
.link-card code {
  border-radius: 18px;
  background: linear-gradient(180deg, #10233d, #112c4b);
}

.tabs {
  border-radius: 18px;
  background: rgba(245, 249, 254, 0.92);
}

.tab.active {
  background: linear-gradient(135deg, rgba(20, 93, 177, 0.12), rgba(15, 127, 107, 0.12));
  color: #15314b;
}

.result-hero-card {
  border-radius: 28px;
  border-color: rgba(20, 93, 177, 0.12);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.14), transparent 18%),
    linear-gradient(135deg, rgba(240, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.result-hero-score,
.score {
  color: #145db1;
}

.result-table-wrap {
  border-radius: 20px;
}

.result-table th {
  background: #edf5fc;
  color: #1d4466;
}

.answer-choice {
  gap: 12px;
}

.choice-item {
  border-radius: 18px;
  padding: 12px 14px;
}

.choice-input-item {
  padding: 10px 12px;
}

.sequence-chip,
.insight-tag,
.trend-point-tag {
  border-radius: 16px;
}

.modal-overlay {
  backdrop-filter: blur(6px);
}

.modal-mask {
  background: rgba(7, 18, 34, 0.46);
}

.modal-shell,
.modal-shell-wide,
.modal-shell-compact {
  filter: drop-shadow(0 26px 60px rgba(7, 18, 34, 0.2));
}

.modal-panel {
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.97));
}

.modal-close {
  border-color: rgba(21, 64, 94, 0.1);
  box-shadow: 0 10px 22px rgba(14, 34, 60, 0.06);
}

.member-table-row {
  grid-template-columns: 48px minmax(0, 1fr) minmax(160px, 240px);
  min-height: 58px;
}

.answer-review-row {
  gap: 14px;
}

.answer-block {
  border-radius: 16px;
  background: rgba(239, 245, 251, 0.82);
}

.log-item {
  padding: 16px 18px;
}

.footer-note {
  color: #6e8190;
}

.builder-overview-grid,
.publish-checklist,
.dashboard-signal-grid,
.exam-nav-grid,
.exam-writing-layout {
  display: grid;
  gap: 14px;
}

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

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

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

.builder-kpi-card,
.dashboard-signal-card,
.exam-side-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(22, 59, 90, 0.08);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.96));
  box-shadow: 0 14px 34px rgba(12, 31, 54, 0.06);
}

.builder-kpi-card span,
.dashboard-signal-card span,
.exam-side-card .helper:first-child {
  display: block;
  color: #607687;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-kpi-card strong,
.dashboard-signal-card strong,
.exam-side-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #18324a;
}

.builder-kpi-card small,
.dashboard-signal-card small {
  display: block;
  margin-top: 10px;
  color: #6f8393;
  line-height: 1.7;
}

.publish-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.publish-check-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(25, 65, 97, 0.1);
  background: rgba(247, 250, 254, 0.88);
}

.publish-check-item span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.publish-check-item strong {
  display: block;
  margin-top: 12px;
  color: #18324a;
  line-height: 1.6;
}

.publish-check-item.ok {
  border-color: rgba(15, 127, 107, 0.16);
  background: linear-gradient(180deg, rgba(231, 248, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.publish-check-item.ok span {
  color: #0f7f6b;
  background: rgba(15, 127, 107, 0.1);
}

.publish-check-item.pending {
  border-color: rgba(155, 106, 24, 0.14);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 255, 255, 0.98));
}

.publish-check-item.pending span {
  color: #9b6a18;
  background: rgba(240, 196, 108, 0.18);
}

.dashboard-summary-card {
  gap: 16px;
}

.dashboard-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.dashboard-signal-card strong {
  font-size: 22px;
}

.dashboard-signal-card small {
  min-height: 46px;
}

.exam-nav-card {
  position: sticky;
  top: 12px;
  z-index: 4;
}

.exam-nav-head {
  align-items: center;
}

.exam-nav-summary {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(237, 244, 251, 0.92);
  text-align: center;
}

.exam-nav-summary strong {
  display: block;
  color: #145db1;
  font-size: 24px;
  line-height: 1;
}

.exam-nav-summary span {
  display: block;
  margin-top: 6px;
  color: #637a8c;
  font-size: 12px;
}

.exam-progress-bar {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(224, 233, 242, 0.94);
  overflow: hidden;
}

.exam-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #0f8a73, #145db1);
}

.exam-nav-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
}

.exam-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(25, 65, 97, 0.1);
  background: rgba(247, 250, 254, 0.86);
  color: #18324a;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.exam-nav-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 31, 54, 0.08);
}

.exam-nav-item strong {
  font-size: 15px;
  line-height: 1.2;
}

.exam-nav-item small {
  color: #718596;
  line-height: 1.4;
}

.exam-nav-item.done {
  border-color: rgba(15, 127, 107, 0.18);
  background: linear-gradient(180deg, rgba(232, 248, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.exam-writing-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.55fr);
  align-items: start;
  margin-top: 16px;
}

.exam-writing-main {
  min-width: 0;
}

.exam-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 108px;
}

.exam-rule-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #586f81;
  line-height: 1.8;
}

.exam-save-strip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 93, 177, 0.1);
  background: linear-gradient(135deg, rgba(20, 93, 177, 0.08), rgba(15, 138, 115, 0.08));
  color: #21415d;
  font-weight: 600;
}

.exam-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.question-card.exam-question {
  padding: 22px;
  border-radius: 24px;
}

.result-summary-page {
  gap: 16px;
}

.result-summary-header,
.result-exam-summary {
  display: grid;
  gap: 14px;
}

.result-summary-header {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

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

.result-overview-grid {
  display: grid;
  gap: 14px;
}

.result-overview-card {
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(22, 59, 90, 0.08);
  background:
    radial-gradient(circle at top right, rgba(122, 227, 199, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.96));
  box-shadow: 0 14px 34px rgba(12, 31, 54, 0.06);
}

.result-overview-card span {
  display: block;
  color: #607687;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #18324a;
}

.result-overview-card small {
  display: block;
  margin-top: 10px;
  color: #6f8393;
  line-height: 1.7;
}

.result-alert-strip {
  margin-top: 0;
}

.result-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.result-section-head strong {
  display: block;
  margin-top: 4px;
  color: #18324a;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.result-top-users {
  align-items: stretch;
}

.result-mini-rank {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 93, 177, 0.08);
  color: #145db1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.result-inline-note {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(20, 93, 177, 0.14);
  color: #5d7385;
  background: rgba(244, 248, 252, 0.9);
  font-size: 13px;
}

.result-insight-panel {
  padding: 18px;
}

.result-review-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operation-summary-grid {
  margin-top: 2px;
  width: 100%;
  margin-bottom: 26px;
}

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

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

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

.result-exam-summary.operation-summary-grid-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.operation-summary-grid-full {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.operation-log-list {
  margin-top: 28px;
}

.operation-inline-note {
  margin-top: 0;
}

.operation-member-head {
  width: 100%;
}

.member-card-unsubmitted {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.member-card-unsubmitted .btn-ghost,
.member-card-unsubmitted .btn-primary {
  width: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .launch-grid,
  .portal-grid,
  .launch-side,
  .admin-cockpit-stats,
  .admin-action-deck,
  .builder-overview-grid,
  .publish-checklist,
  .dashboard-signal-grid,
  .result-summary-header,
  .result-overview-grid,
  .result-exam-summary,
  .operation-summary-grid-2,
  .operation-summary-grid-3,
  .member-summary-grid,
  .member-exam-metrics,
  .exam-hero-grid,
  .exam-glance-grid,
  .exam-nav-grid,
  .exam-writing-layout,
  .exam-brief-grid,
  .history-grid,
  .result-mini-grid,
  .log-meta-grid {
    grid-template-columns: 1fr;
  }

  .preview-stat-grid,
  .preview-flow-grid,
  .preview-dashboard-grid,
  .preview-kpi-row {
    grid-template-columns: 1fr;
  }

  .preview-panel-wide {
    grid-column: span 1;
  }

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

  .home-entry-grid,
  .result-mini-grid,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .workflow-item:not(:last-child)::after {
    display: none;
  }

  .workflow-item:not(:last-child)::before {
    display: none;
  }

  .modal-overlay {
    padding: 16px 12px;
  }

  .modal-shell,
  .modal-shell-compact,
  .modal-shell-wide {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }

  .modal-panel {
    max-height: calc(100vh - 32px);
  }

  .questions-grid-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .launch-hero,
  .member-exam-card {
    padding: 18px;
  }

  .launch-copy {
    max-width: none;
  }

  .member-exam-card-top,
  .exam-answer-head,
  .exam-nav-head,
  .exam-question-head,
  .result-section-head,
  .result-review-title {
    flex-direction: column;
  }

  .preview-hero-content,
  .preview-section {
    padding: 18px;
  }

  .preview-topbar,
  .preview-device-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-copy h1 {
    font-size: 34px;
  }

  .preview-device-panel {
    min-width: 0;
  }

  .preview-device-screen {
    min-height: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .builder-overview-grid,
  .publish-checklist,
  .dashboard-signal-grid,
  .result-summary-header,
  .result-overview-grid,
  .result-exam-summary,
  .operation-summary-grid-2,
  .operation-summary-grid-3,
  .history-grid,
  .history-grid-3,
  .image-grid,
  .workflow-board,
  .answer-review-row,
  .log-meta-grid,
  .member-table-row,
  .exam-nav-grid,
  .exam-writing-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .step-heading,
  .question-head,
  .member-head,
  .step-collapsed-bar {
    flex-direction: column;
  }

  #app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .step-collapsed-actions {
    width: 100%;
  }

  .home-entry-shell .home-entry-grid {
    width: 100%;
  }
}

:root {
  --bg: #f3f6f1;
  --bg-deep: #e4ebe3;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f8faf6;
  --surface-strong: #ffffff;
  --text: #163126;
  --muted: #66766d;
  --line: rgba(22, 49, 38, 0.1);
  --line-strong: rgba(22, 49, 38, 0.18);
  --accent: #1b7f68;
  --accent-deep: #145a4b;
  --accent-soft: rgba(27, 127, 104, 0.11);
  --navy: #284f70;
  --gold: #9e7330;
  --rose: #b65f50;
  --green: #2b8b65;
  --yellow: #946815;
  --red: #9e4141;
  --shadow-lg: 0 24px 60px rgba(24, 54, 40, 0.09);
  --shadow-md: 0 14px 30px rgba(24, 54, 40, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(124, 169, 149, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(53, 100, 136, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbf8 0%, #edf3ee 45%, #f3f6f1 100%);
}

body::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(rgba(26, 65, 51, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 65, 51, 0.026) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

#app {
  max-width: 1240px;
  padding: 24px 18px 72px;
}

.hero,
.card,
.portal-card,
.member-exam-card,
.result-overview-card,
.result-mini-card,
.builder-kpi-card,
.question-card,
.member-card,
.history-item,
.preview-panel,
.preview-flow-card {
  backdrop-filter: blur(12px);
}

.hero,
.card {
  border: 1px solid rgba(20, 61, 47, 0.08);
  box-shadow: var(--shadow-lg);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 248, 0.95));
}

.hero {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(27, 127, 104, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(40, 79, 112, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 247, 0.96));
}

.page-hero h1,
.refresh-copy h1 {
  max-width: 880px;
}

.refresh-hero {
  padding: 40px;
}

.refresh-hero-grid,
.builder-hero-grid,
.hero-quick-stats,
.hero-signal-grid,
.landing-flow-grid {
  display: grid;
  gap: 16px;
}

.refresh-hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  align-items: stretch;
}

.hero-quick-stats,
.builder-hero-grid,
.hero-signal-grid,
.member-summary-grid,
.admin-cockpit-stats,
.member-exam-metrics,
.result-exam-summary,
.dashboard-signal-grid,
.result-overview-grid,
.history-grid,
.operation-summary-grid,
.exam-glance-grid,
.exam-brief-grid,
.landing-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-quick-card,
.hero-signal-card,
.landing-side-card,
.landing-flow-card,
.page-hero-note,
.member-card-note {
  border-radius: 20px;
  border: 1px solid rgba(21, 66, 52, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(21, 66, 52, 0.06);
}

.hero-quick-card,
.hero-signal-card,
.landing-flow-card {
  padding: 18px;
}

.hero-quick-card span,
.hero-signal-card span,
.landing-flow-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-quick-card strong,
.hero-signal-card strong,
.landing-flow-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.hero-quick-card small,
.hero-signal-card small,
.landing-flow-card p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.landing-side-panel {
  display: grid;
  gap: 16px;
}

.landing-side-card {
  padding: 20px;
}

.landing-side-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.landing-side-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.landing-side-card-accent {
  background:
    linear-gradient(180deg, rgba(23, 79, 66, 0.94), rgba(22, 63, 54, 0.95));
  color: #eff8f5;
}

.landing-side-card-accent .section-kicker,
.landing-side-card-accent p {
  color: rgba(239, 248, 245, 0.82);
}

.compact-feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.portal-grid-refresh {
  margin-top: 18px;
  align-items: stretch;
}

.portal-card-refresh {
  min-height: 240px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(26, 63, 50, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 247, 0.96));
  box-shadow: var(--shadow-md);
  text-align: left;
}

.portal-card-refresh strong {
  font-size: 28px;
  line-height: 1.15;
}

.portal-card-refresh span {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.landing-flow-grid {
  margin-top: 18px;
}

.landing-flow-card {
  padding: 20px;
}

.landing-flow-card span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(27, 127, 104, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.page-hero-compact,
.page-hero-member,
.page-hero-admin,
.builder-hero,
.exam-hero-refresh {
  margin-bottom: 18px;
}

.page-hero-note,
.member-card-note {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.capability-strip {
  gap: 8px;
}

.status-chip,
.chip,
.step-summary-badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-chip.ok,
.chip,
.step-summary-badge {
  background: rgba(27, 127, 104, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(27, 127, 104, 0.12);
}

.status-chip.warn {
  background: rgba(158, 115, 48, 0.13);
  color: #825e27;
}

.status-chip.off {
  background: rgba(159, 63, 63, 0.12);
  color: #8b3c3c;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.text-action,
.modal-close {
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.text-action {
  min-height: 42px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.text-action:hover,
.portal-card:hover,
.workflow-item:hover,
.member-exam-card:hover,
.result-mini-card:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1a7e68, #215b87);
  box-shadow: 0 14px 26px rgba(24, 78, 91, 0.18);
}

.btn-secondary {
  background: rgba(21, 59, 47, 0.08);
  border-color: rgba(21, 59, 47, 0.08);
  color: var(--accent-deep);
}

.btn-ghost,
.text-action {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 60, 46, 0.1);
  color: var(--navy);
}

.workflow-board-refresh {
  margin-bottom: 18px;
  gap: 14px;
}

.workflow-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
  border-radius: 22px;
  border: 1px solid rgba(24, 58, 46, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(22, 58, 44, 0.05);
}

.workflow-board-refresh .workflow-item::before,
.workflow-board-refresh .workflow-item::after {
  display: none;
}

.workflow-no {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(27, 127, 104, 0.1);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.workflow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(40, 79, 112, 0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.workflow-done .workflow-pill {
  background: rgba(27, 127, 104, 0.12);
  color: var(--accent-deep);
}

.workflow-active {
  border-color: rgba(27, 127, 104, 0.22);
  box-shadow: 0 16px 32px rgba(27, 127, 104, 0.1);
}

.step-card,
.result-exam-card,
.member-exam-card-refresh,
.publish-summary-card-refresh,
.dashboard-card,
.exam-nav-card,
.exam-answer-card-refresh,
.exam-brief-card-refresh,
.result-summary-page {
  border-radius: 24px;
  padding: 24px;
}

.step-heading,
.question-head,
.member-head,
.member-exam-card-top,
.result-section-head,
.exam-answer-head,
.exam-nav-head,
.modal-heading {
  gap: 14px;
}

.step-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27, 127, 104, 0.1);
  color: var(--accent-deep);
  font-weight: 700;
}

.builder-kpi-card,
.result-overview-card,
.member-summary-card,
.member-exam-metric,
.exam-brief-item,
.result-mini-card,
.exam-side-card {
  border-radius: 18px;
  border: 1px solid rgba(24, 58, 46, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(22, 58, 44, 0.04);
}

.builder-kpi-card,
.result-overview-card,
.member-summary-card,
.member-exam-metric,
.exam-brief-item {
  padding: 14px 16px;
}

.builder-kpi-card span,
.result-overview-card span,
.member-summary-card span,
.member-exam-metric span,
.exam-brief-item span {
  font-size: 12px;
  color: var(--muted);
}

.builder-kpi-card strong,
.result-overview-card strong,
.member-summary-card strong,
.member-exam-metric strong,
.exam-brief-item strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.field label,
.helper,
.section-kicker {
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea,
.search-inline input,
.search-inline textarea {
  border-radius: 14px;
  border: 1px solid rgba(24, 58, 46, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(16, 31, 24, 0.03);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-inline input:focus,
.search-inline textarea:focus {
  outline: none;
  border-color: rgba(27, 127, 104, 0.34);
  box-shadow: 0 0 0 4px rgba(27, 127, 104, 0.12);
}

.notice,
.warning,
.success {
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 14px 16px;
  line-height: 1.65;
}

.notice {
  background: rgba(40, 79, 112, 0.08);
  border-color: rgba(40, 79, 112, 0.1);
  color: #35556f;
}

.warning {
  background: rgba(182, 95, 80, 0.1);
  border-color: rgba(182, 95, 80, 0.14);
  color: #8d473e;
}

.success {
  background: rgba(43, 139, 101, 0.1);
  border-color: rgba(43, 139, 101, 0.14);
  color: #236d4f;
}

.member-exam-card-refresh {
  background:
    radial-gradient(circle at top right, rgba(27, 127, 104, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.96));
}

.member-exam-actions,
.result-card-actions,
.publish-summary-actions,
.exam-submit-row {
  gap: 10px;
}

.exam-hero-refresh .exam-hero-grid {
  align-items: stretch;
}

.exam-glance-card,
.exam-nav-card,
.exam-side-card {
  background: rgba(255, 255, 255, 0.82);
}

.exam-glance-card {
  border-radius: 24px;
  border: 1px solid rgba(26, 65, 51, 0.09);
  padding: 22px;
  box-shadow: 0 16px 30px rgba(24, 58, 46, 0.06);
}

.exam-nav-card {
  position: sticky;
  top: 18px;
}

.exam-nav-item {
  border-radius: 16px;
  border: 1px solid rgba(24, 58, 46, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.exam-nav-item.done {
  background: rgba(27, 127, 104, 0.11);
  border-color: rgba(27, 127, 104, 0.16);
}

.exam-save-strip {
  border-radius: 16px;
  background: rgba(27, 127, 104, 0.09);
  color: var(--accent-deep);
}

.exam-side-card {
  padding: 18px;
}

.exam-rule-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.question-card,
.result-card,
.result-table-wrap,
.pre-block {
  border-radius: 18px;
}

.modal-overlay {
  padding: 24px 16px;
  background: rgba(12, 24, 20, 0.42);
  backdrop-filter: blur(8px);
}

.modal-mask {
  background: transparent;
}

.modal-shell {
  width: min(1080px, 100%);
}

.modal-panel {
  max-height: calc(100vh - 48px);
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 247, 0.98));
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(24, 58, 46, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.modal-close:hover {
  background: rgba(40, 79, 112, 0.08);
}

.result-table th {
  background: rgba(27, 127, 104, 0.08);
  color: var(--accent-deep);
}

.result-table td,
.result-table th {
  border-color: rgba(24, 58, 46, 0.09);
}

.chart-host {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 251, 248, 0.94), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(24, 58, 46, 0.08);
  overflow: hidden;
}

@media (max-width: 1080px) {
  .refresh-hero-grid,
  .hero-quick-stats,
  .builder-hero-grid,
  .hero-signal-grid,
  .landing-flow-grid,
  .member-summary-grid,
  .admin-cockpit-stats,
  .member-exam-metrics,
  .result-exam-summary,
  .result-overview-grid,
  .history-grid,
  .exam-glance-grid,
  .exam-brief-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  #app {
    padding: 16px 12px 56px;
  }

  .hero,
  .card,
  .step-card,
  .member-exam-card-refresh,
  .result-exam-card,
  .exam-nav-card,
  .exam-answer-card-refresh,
  .exam-brief-card-refresh,
  .modal-panel {
    padding: 18px;
  }

  .refresh-hero-grid,
  .hero-quick-stats,
  .builder-hero-grid,
  .hero-signal-grid,
  .landing-flow-grid,
  .member-summary-grid,
  .admin-cockpit-stats,
  .member-exam-metrics,
  .result-exam-summary,
  .result-overview-grid,
  .history-grid,
  .operation-summary-grid,
  .exam-glance-grid,
  .exam-brief-grid {
    grid-template-columns: 1fr;
  }

  .workflow-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .portal-card-refresh strong,
  .hero-quick-card strong,
  .result-overview-card strong,
  .member-summary-card strong,
  .member-exam-metric strong,
  .exam-brief-item strong {
    font-size: 20px;
  }
}

body {
  background:
    linear-gradient(180deg, #edf1ec 0%, #e7ece6 100%);
}

#app {
  max-width: 1480px;
  padding: 20px;
}

.identity-shell,
.studio-shell,
.exam-workspace {
  min-height: calc(100vh - 40px);
}

.identity-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  min-height: calc(100vh - 40px);
  padding: 40px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(199, 222, 213, 0.58), transparent 22%),
    linear-gradient(135deg, #10261f 0%, #173428 44%, #f6f5ef 44%, #f6f5ef 100%);
  box-shadow: 0 28px 60px rgba(18, 33, 25, 0.12);
}

.identity-copy {
  color: #f5f5ef;
  padding: 22px 8px 22px 6px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.identity-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-copy h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.identity-stats,
.studio-metric-grid,
.studio-action-grid,
.studio-signal-grid {
  display: grid;
  gap: 16px;
}

.identity-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.identity-stats .studio-metric {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5ef;
}

.identity-stats .studio-metric span,
.identity-stats .studio-metric small {
  color: rgba(245, 245, 239, 0.68);
}

.identity-panel-grid {
  display: grid;
  gap: 18px;
  align-content: center;
}

.identity-panel {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(16, 38, 31, 0.08);
  background: #fbfaf5;
  box-shadow: 0 20px 44px rgba(22, 35, 27, 0.08);
}

.identity-panel {
  text-align: left;
}

.identity-panel span {
  display: block;
  color: #6e7d72;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identity-panel strong {
  display: block;
  margin-top: 14px;
  color: #183127;
  font-size: 34px;
  line-height: 1.05;
}

.identity-panel-admin {
  background: linear-gradient(180deg, #f7f8f2, #ebece5);
}

.identity-panel-member {
  background: linear-gradient(180deg, #f8f5ef, #ece7dd);
}

.studio-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.studio-rail {
  position: relative;
  align-self: stretch;
  height: calc(100vh - 40px);
  padding: 26px 20px;
  border-radius: 30px;
  background: linear-gradient(180deg, #16211d 0%, #1e2e28 100%);
  color: #edf1ea;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 20px;
  box-shadow: 0 22px 44px rgba(19, 32, 27, 0.2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.member-rail {
  background: linear-gradient(180deg, #20251f 0%, #2f342d 100%);
}

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

.studio-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8c296, #8aa38f);
  color: #13211c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.studio-brand strong,
.studio-brand span {
  display: block;
}

.studio-brand span,
.studio-rail-label {
  color: rgba(237, 241, 234, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-rail-user .status-chip {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6f1;
}

.studio-nav {
  display: grid;
  gap: 8px;
}

.studio-nav-group {
  display: grid;
  gap: 8px;
}

.studio-nav-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.studio-nav-item {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(237, 241, 234, 0.72);
  font-size: 15px;
  text-align: left;
  padding: 0 14px;
}

.studio-nav-toggle,
.studio-subnav-item {
  border: 0;
  border-radius: 16px;
}

.studio-nav-toggle {
  min-width: 68px;
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 241, 234, 0.78);
  font-size: 13px;
}

.studio-nav-item.active {
  background: #f5f2e8;
  color: #192b23;
  font-weight: 700;
}

.studio-subnav {
  display: grid;
  gap: 8px;
  padding-left: 12px;
}

.studio-subnav-item {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 241, 234, 0.72);
  text-align: left;
  font-size: 13px;
}

.studio-subnav-item.active {
  background: rgba(245, 242, 232, 0.92);
  color: #192b23;
  font-weight: 700;
}

.studio-rail-section {
  display: grid;
  gap: 12px;
}

.studio-rail-stats,
.studio-token-list {
  display: grid;
  gap: 10px;
}

.studio-token-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.studio-token-list .status-chip {
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(237, 241, 234, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.studio-rail-footer {
  display: grid;
  gap: 10px;
}

.studio-rail .text-action {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #edf1ea;
  border-color: rgba(255, 255, 255, 0.08);
}

.studio-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.studio-header,
.studio-metric,
.studio-action-card,
.studio-signal-card,
.studio-list-layout > .card,
.studio-list-layout > .result-exam-card,
.studio-list-layout > .member-exam-card,
.publish-summary-card,
.exam-workspace-header,
.exam-board-main > .card,
.exam-board-side > * {
  border-radius: 28px;
  border: 1px solid rgba(20, 30, 24, 0.08);
  background: #fbfaf5;
  box-shadow: 0 18px 36px rgba(20, 30, 24, 0.08);
}

.studio-header,
.exam-workspace-header {
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.studio-page-kicker {
  color: #7d887d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-header h1,
.exam-workspace-header h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #172d24;
}

.dashboard-card .step-heading {
  align-items: center;
}

.dashboard-card .step-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-card .dashboard-select-field,
.dashboard-card .trend-filter-dropdown {
  align-self: center;
}

.studio-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.studio-metric {
  padding: 20px;
  display: grid;
  gap: 6px;
}

.studio-metric span {
  color: #7a867c;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-metric strong {
  font-size: 34px;
  line-height: 1.05;
  color: #173127;
}

.studio-metric small {
  color: #637168;
  line-height: 1.6;
}

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

.studio-action-card {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.studio-action-card span,
.studio-signal-card span {
  color: #7a867c;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-action-card strong,
.studio-signal-card strong {
  font-size: 28px;
  line-height: 1.08;
  color: #163025;
}

.studio-signal-card small {
  margin: 0;
  color: #5d6d63;
  line-height: 1.75;
}

.studio-action-card-primary {
  background: linear-gradient(135deg, #183128, #243e35);
}

.studio-action-card-primary span,
.studio-action-card-primary strong,
.studio-action-card-primary p {
  color: #f4f3ec;
}

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

.studio-signal-card {
  padding: 20px;
}

.dashboard-signal-grid {
  align-items: stretch;
}

.dashboard-signal-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-signal-value {
  display: block;
  line-height: 1.3;
  white-space: nowrap;
}

.studio-dashboard-layout,
.studio-list-layout {
  display: grid;
  gap: 18px;
}

.studio-list-layout > .card,
.studio-list-layout > .result-exam-card,
.studio-list-layout > .member-exam-card,
.publish-summary-card {
  padding: 24px;
}

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

.workflow-item {
  background: #fbfaf5;
  border: 1px solid rgba(20, 30, 24, 0.08);
  box-shadow: 0 10px 20px rgba(20, 30, 24, 0.05);
}

.workflow-active {
  background: linear-gradient(135deg, #f2efe4, #ece7d8);
}

.workflow-done {
  background: linear-gradient(135deg, #edf2eb, #e3e9e0);
}

.result-exam-card,
.member-exam-card,
.step-card,
.publish-summary-card,
.dashboard-card {
  background: #fbfaf5;
}

.member-exam-card-refresh {
  border: 1px solid rgba(20, 30, 24, 0.08);
  box-shadow: 0 18px 32px rgba(20, 30, 24, 0.07);
  background: #fbfaf5;
}

.member-card-note {
  background: #f0ede3;
  border: 0;
  color: #56655b;
}

.exam-workspace {
  display: grid;
  gap: 18px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.exam-floating-status {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.exam-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  min-height: 0;
  flex: 1 1 auto;
}

.exam-board-main,
.exam-board-side {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.exam-board-side {
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.exam-board-main {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.identity-stage {
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.82fr);
  gap: 18px;
  padding: 28px 30px;
}

.identity-copy {
  padding: 8px 6px 14px 4px;
  gap: 14px;
}

.identity-copy-stacked {
  align-content: start;
}

.identity-copy-top {
  display: grid;
  gap: 12px;
  align-content: start;
}

.identity-copy h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 0.94;
}

.identity-stats {
  max-width: 500px;
  gap: 10px;
}

.identity-stats-stacked {
  grid-template-columns: 1fr;
}

.identity-stats .studio-metric {
  min-height: 86px;
  padding: 12px 14px;
}

.identity-stats .studio-metric strong {
  font-size: 22px;
}

.identity-panel-grid {
  gap: 12px;
  align-content: start;
  justify-items: stretch;
  padding: 104px 0 0;
}

.identity-panel-grid-offset .identity-panel-admin {
  margin-top: 0;
}

.identity-panel {
  width: min(100%, 460px);
  min-height: 102px;
  padding: 16px 18px;
  border-radius: 28px;
}

.identity-panel span {
  font-size: 12px;
}

.identity-panel strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.08;
}

.identity-panel-shift {
  margin-top: 0;
  margin-right: 0;
}

.dashboard-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dashboard-summary-card {
  gap: 18px;
}

.dashboard-summary-card .studio-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-host,
.chart-host-lg {
  position: relative;
  min-width: 0;
  width: 100%;
  display: block;
  border-radius: 22px;
  background: rgba(244, 248, 252, 0.92);
  border: 1px solid rgba(20, 51, 79, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}

.chart-host > .chart-canvas,
.chart-host-lg > .chart-canvas,
.chart-host > .chart-canvas canvas,
.chart-host-lg > .chart-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-canvas {
  width: 100%;
  height: 100%;
}

.chart-host {
  min-height: 200px;
  height: 200px;
}

.chart-host-lg {
  min-height: 260px;
  height: 260px;
}

.exam-side-summary {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.exam-side-summary span {
  color: #7a867c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exam-side-summary strong {
  font-size: 30px;
  line-height: 1.05;
  color: #173127;
}

.exam-side-summary small {
  color: #617066;
  line-height: 1.6;
}

.exam-nav-card,
.exam-brief-card-refresh,
.exam-answer-card-refresh {
  background: #fbfaf5;
  box-shadow: 0 18px 36px rgba(20, 30, 24, 0.08);
}

.modal-overlay {
  background: rgba(13, 19, 16, 0.56);
}

.modal-panel {
  background: #fbfaf5;
}

body,
button,
input,
select,
textarea {
  font-size: 14px;
}

#app {
  max-width: 1440px;
  padding: 16px;
}

.identity-stage {
  gap: 24px;
  padding: 30px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: start;
}

.identity-copy h1 {
  font-size: clamp(40px, 4.6vw, 70px);
}

.identity-copy-top {
  gap: 18px;
}

.identity-stats {
  width: min(100%, 420px);
  max-width: 420px;
  margin-top: 18px;
  gap: 16px;
}

.identity-stats .studio-metric {
  width: 100%;
  min-height: 104px;
  padding: 14px 16px;
  justify-self: start;
  color: #f7f7f2;
}

.identity-stats .studio-metric span,
.identity-stats .studio-metric strong,
.identity-stats .studio-metric small {
  color: #f7f7f2;
}

.identity-stats .studio-metric strong {
  font-size: 24px;
}

.identity-panel-grid {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  justify-items: end;
  align-content: start;
  gap: 16px;
  padding-top: 164px;
}

.identity-panel {
  width: 100%;
  max-width: 420px;
  min-height: 104px;
  padding: 18px 22px;
  justify-self: end;
}

.identity-panel strong {
  font-size: 25px;
}

.identity-panel-shift {
  margin-top: 0;
  margin-right: 0;
}

.studio-header,
.exam-workspace-header {
  padding: 24px 24px;
  gap: 16px;
}

.studio-header h1,
.exam-workspace-header h1 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.studio-page-kicker,
.section-kicker,
.studio-metric span,
.studio-action-card span,
.studio-signal-card span {
  font-size: 11px;
}

.studio-metric {
  padding: 17px;
}

.studio-metric strong {
  font-size: 30px;
}

.studio-action-card,
.studio-signal-card,
.dashboard-card,
.result-exam-card,
.member-exam-card,
.step-card,
.publish-summary-card {
  padding: 20px;
}

.studio-action-card strong,
.studio-signal-card strong,
.dashboard-signal-value {
  font-size: 24px;
}

.studio-nav-item {
  min-height: 44px;
  font-size: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.text-action {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.field input,
.field select,
.field textarea,
.dashboard-select-field select {
  min-height: 38px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .identity-stage,
  .studio-shell,
  .exam-board-layout {
    grid-template-columns: 1fr;
  }

  .studio-rail,
  .exam-board-side {
    position: static;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .studio-rail {
    grid-template-rows: auto;
  }

  .studio-shell,
  .exam-workspace {
    height: auto;
    overflow: visible;
  }

  .studio-main,
  .exam-board-main {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 920px) {
  #app {
    padding: 12px;
  }

  .identity-stage,
  .studio-header,
  .exam-workspace-header {
    padding: 22px;
  }

  .identity-copy h1,
  .studio-header h1,
  .exam-workspace-header h1 {
    font-size: 34px;
  }

  .identity-stats,
  .studio-metric-grid,
  .studio-action-grid,
  .studio-signal-grid,
  .workflow-board-refresh {
    grid-template-columns: 1fr;
  }

  .studio-header,
  .exam-workspace-header {
    flex-direction: column;
  }

  .identity-stage {
    min-height: auto;
  }

  .org-dropdown-actions {
    grid-template-columns: 1fr;
  }

  .builder-member-toolbar,
  .member-template-layout,
  .operation-summary-grid-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-card .studio-metric-grid,
  .template-apply-inline {
    grid-template-columns: 1fr;
  }

  .member-exam-summary,
  .member-exam-stats {
    grid-template-columns: 1fr;
  }

  .member-exam-stats {
    width: 100%;
  }

  .member-exam-score-box {
    text-align: left;
  }

  .member-template-editor-actions {
    flex-wrap: wrap;
  }

  .org-browser-shell {
    grid-template-columns: 1fr;
  }

  .org-browser-column-head-inline,
  .org-browser-member-card {
    grid-template-columns: 1fr;
  }

  .org-browser-member-card button,
  .org-browser-column-head-inline .btn-ghost {
    width: 100%;
  }

  .question-bank-layout {
    grid-template-columns: 1fr;
  }

  .question-bank-option-row {
    grid-template-columns: 1fr;
  }

  .export-toolbar {
    width: 100%;
  }

  .export-toolbar .field,
  .export-toolbar .btn-ghost {
    width: 100%;
  }

.studio-nav-parent {
    grid-template-columns: 1fr;
  }
}

.member-grid-tight .member-card .member-head strong,
.step-members .member-card .member-head strong {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.member-grid-tight .member-card .member-head .helper,
.step-members .member-card .member-head .helper {
  display: block;
  max-width: 100%;
}
