:root {
  /* 丝滑运动曲线（贝塞尔）：smooth=顺滑过渡 / spring=轻微回弹 / out=先快后慢出场 */
  --ease-smooth: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #d8dee8;
  --line-strong: #b8c2d1;
  --text: #172033;
  --muted: #667085;
  --muted-2: #8a95a6;
  --accent: #0f766e;
  --accent-2: #155e75;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --blue: #2563eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 39, 0.78);
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  padding: 24px;
}

.auth-card .brand-mark {
  margin-bottom: 14px;
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
}

.auth-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.auth-card input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 16px;
}

.auth-message {
  min-height: 20px;
  color: var(--bad) !important;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}

/* 非「生产工作台」：收起左侧 case 侧栏，同时把 grid 改单列，避免 workspace 塌进第1列只剩窄条。
   !important 覆盖 web-design 增强插件的 .app-shell(336px...) 更高优先级规则。 */
.app-shell.no-sidebar { grid-template-columns: 1fr !important; background: none !important; }
.app-shell.no-sidebar .sidebar { display: none !important; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #101827;
  color: #eef4ff;
  padding: 18px;
}

.brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-weight: 760;
  font-size: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand p {
  margin: 5px 0 0;
  color: #aeb9ca;
  font-size: 12px;
  word-break: break-all;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 4px;
  margin-bottom: 12px;
}

.search-row input,
.split-controls input,
.split-controls select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-row input {
  background: #182235;
  border-color: #2d3a50;
  color: #f6f8fb;
}

.search-row input::placeholder {
  color: #95a3b7;
}

.icon-button,
.secondary,
.primary {
  min-height: 36px;
  border-radius: 7px;
  padding: 0 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid #2d3a50;
  background: #1c273a;
  color: #e7eefc;
}

.secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.secondary:hover {
  background: var(--surface-2);
}

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

.primary:hover {
  background: #115e59;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
}

.summary-pill {
  border: 1px solid #2d3a50;
  border-radius: 7px;
  padding: 8px 10px;
  background: #151f31;
}

.summary-pill strong {
  display: block;
  font-size: 18px;
}

.summary-pill span {
  display: block;
  color: #aeb9ca;
  font-size: 12px;
}

.case-list {
  display: grid;
  gap: 4px;
}

.case-item {
  width: 100%;
  text-align: left;
  border: 1px solid #2d3a50;
  border-radius: 8px;
  background: #151f31;
  color: #f6f8fb;
  padding: 11px;
}

.case-item:hover,
.case-item.active {
  border-color: #4db6ac;
  background: #1b2a40;
}

.case-name {
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  margin-bottom: 8px;
}

.case-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #aeb9ca;
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 18px 14px 28px;
}

.topbar {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
}

.eyeline {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 4px;
}

.topbar h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar p {
  margin: 7px 0 0;
  color: var(--muted);
}

.topbar-actions,
.command-row,
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  margin: 0 0 6px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-nav .admin-nav-item[data-admin-view="production"] {
  grid-column: 1;
}

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}

.admin-nav-item.active {
  background: #e8f4f3;
  color: var(--accent);
}

.admin-nav-item.nav-forbidden {
  opacity: .5;
  cursor: not-allowed;
  color: var(--muted-2);
}

.admin-nav-item.nav-forbidden::after {
  content: "🔒";
  margin-left: 4px;
  font-size: 11px;
}

/* 「管理」收纳按钮：管理员可展开/收起专属模块；非管理员点开提示权限不足 */
.admin-nav-item.admin-nav-manage { color: #b45309; cursor: pointer; }
.admin-nav-item.admin-nav-manage::before { content: "▸ "; }
.admin-nav.open-manage .admin-nav-item.admin-nav-manage::before { content: "▾ "; }

.as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-decoration: none;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-panel-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-panel-head h3,
.permission-card h4,
.permission-note h4,
.student-profile-schema h4 {
  margin: 0;
  font-size: 17px;
}

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

.permission-card-head h4 {
  margin: 0;
}

.homepage-account-manage {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.homepage-account-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.homepage-account-toolbar input {
  min-width: 140px;
}

.admin-panel-head p,
.student-profile-schema p {
  margin: 5px 0 0;
  color: var(--muted);
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 4px;
  min-width: 420px;
}

.readiness-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
}

.readiness-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.readiness-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mode-card-wrap {
  min-height: 0;
}

.mode-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mode-card.safe {
  border-color: #9bd8bd;
  background: #f2fbf6;
}

.mode-card.caution {
  border-color: #f0d58b;
  background: #fff9e8;
}

.mode-card.danger {
  border-color: #f0a0a0;
  background: #fff1f1;
}

.mode-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.mode-card strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.mode-card p {
  margin: 5px 0 8px;
  color: var(--text);
}

.mode-card code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.progress-dashboard-card {
  display: grid;
  gap: 12px;
}

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

.progress-stat-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #f8fafc;
}

.progress-stat-grid strong {
  display: block;
  font-size: 18px;
}

.progress-stat-grid span,
.progress-case span,
.progress-action span,
.progress-blockers span {
  color: var(--muted);
  font-size: 12px;
}

.progress-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.progress-dashboard-grid section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.progress-dashboard-grid h5 {
  margin: 0;
  font-size: 13px;
}

.progress-action,
.progress-case {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
}

.progress-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px;
}

.progress-action b {
  color: var(--accent);
}

.progress-case strong,
.progress-case span {
  display: block;
  overflow-wrap: anywhere;
}

.progress-blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.progress-blockers span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #ecfdf5;
  color: #166534;
}

.progress-blockers.has-blockers span {
  background: #fff7ed;
  color: #9a3412;
}

.system-layout,
.ability-layout,
.workflow-layout,
.service-layout,
.quality-release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.ops-card-head h4 {
  margin: 0;
  font-size: 16px;
}

.ops-card-head span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

/* 测评报告区块：可折叠(默认收起，点标题展开/收起) */
.ops-card.collapsible summary.ops-card-head{display:flex;align-items:center;gap:12px;margin:0;cursor:pointer;list-style:none}
.ops-card.collapsible summary.ops-card-head::-webkit-details-marker{display:none}
.ops-card.collapsible summary.ops-card-head::marker{content:none}
.ops-card.collapsible summary.ops-card-head span{margin-left:auto}
.ops-card.collapsible summary.ops-card-head::after{content:"▸ 展开";color:#4a55ff;font-size:12px;font-weight:700;white-space:nowrap;flex:none;margin-left:8px}
.ops-card.collapsible[open] summary.ops-card-head::after{content:"▾ 收起"}

/* ===== 综评档案 ===== */
.dangan-grid{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}
.dangan-create-card{position:sticky;top:16px}
.dangan-field{margin-bottom:12px}
.dangan-field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px;font-weight:600}
.dangan-field input[type="text"],.dangan-field select{width:100%;padding:9px 10px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--text);font-size:13px;outline:none}
.dangan-field input[type="text"]:focus,.dangan-field select:focus{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.dangan-field input[type="file"]{width:100%;padding:9px;border:1px dashed var(--line-strong);border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:12px;box-sizing:border-box}
.dangan-submit{width:100%}
.dangan-status{font-size:12px;color:var(--muted);margin:8px 0 0}
.dangan-main{display:grid;gap:16px;min-width:0}
.dangan-badge{display:inline-grid;place-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:#eef2f7;color:#475569;font-size:12px;font-weight:720;white-space:nowrap}
.dangan-project-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);margin-bottom:10px;flex-wrap:wrap}
.dangan-project-main{flex:1;min-width:180px}
.dangan-project-main{cursor:pointer}
.dangan-project-name{font-size:15px;font-weight:700;color:var(--text)}
.dangan-project-sub{font-size:12px;color:var(--muted);margin-top:3px}
.dangan-status-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:650}
.dangan-status-pill.ok{background:#ecfdf5;color:#047857}
.dangan-status-pill.warn{background:#fffbeb;color:#b45309}
.dangan-analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dangan-block-title{font-size:13px;font-weight:700;color:var(--text);margin:0 0 8px}
.dangan-field-row{font-size:12px;color:var(--muted);margin:3px 0;line-height:1.5}
.dangan-section-title{font-size:13px;font-weight:700;color:var(--text);margin:12px 0 4px}
.dangan-attachment-row{font-size:12px;color:var(--muted);margin:3px 0}
.dangan-issue{font-size:13px;color:#dc2626;margin:4px 0}
.dangan-issue.ok{color:#047857}
.dangan-manual-wrap{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.dangan-manual-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.dangan-manual-hint{font-size:12px;color:var(--muted);margin:2px 0 0}
.dangan-manual-toolbar{display:flex;gap:8px}
.dangan-manual-layout{display:grid;grid-template-columns:280px 1fr;gap:14px;align-items:start}
.dangan-manual-attachments,.dangan-manual-fields{min-width:0}
#danganAttachmentTray{display:flex;flex-wrap:wrap;gap:6px}
.dangan-drag-chip{display:inline-flex;align-items:center;max-width:100%;padding:7px 10px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--text);font-size:12px;cursor:grab;box-sizing:border-box}
.dangan-drag-chip:active{cursor:grabbing}
.dangan-manual-section{margin-bottom:12px}
.dangan-drop-zone{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border:1px dashed var(--line-strong);border-radius:7px;background:var(--surface-2);margin-bottom:6px;transition:background .2s var(--ease-smooth),border-color .2s var(--ease-smooth)}
.dangan-drop-zone.dragover{border-color:#2563eb;background:#eff6ff}
.dangan-section-zone{flex-direction:column;gap:8px;padding:14px}
.dangan-section-zone .dangan-drop-label{flex:none;font-size:14px;font-weight:700;padding:0}
.dangan-drop-label{flex:0 0 180px;font-size:12px;font-weight:650;color:var(--text);padding-top:4px}
.dangan-drop-targets{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;align-items:center}
.dangan-drop-empty{font-size:11px;color:var(--muted)}
.dangan-mapped-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px;color:var(--text)}
.dangan-mapped-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dangan-unmap{width:18px;height:18px;border:none;border-radius:50%;background:#fee2e2;color:#b91c1c;font-size:13px;line-height:1;cursor:pointer}
@media(max-width:1100px){.dangan-grid{grid-template-columns:1fr}.dangan-create-card{position:static}}
@media(max-width:900px){.dangan-manual-layout{grid-template-columns:1fr}.dangan-drop-zone{flex-direction:column}.dangan-drop-label{flex:none}}

.layer-grid,
.stakeholder-grid,
.backlog-grid,
.profile-level-grid,
.ability-grid,
.subject-grid,
.workflow-list,
.stage-grid,
.cadence-grid,
.output-grid,
.quality-gate-grid,
.release-grid {
  display: grid;
  gap: 10px;
}

.layer-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.layer-card.ready,
.stakeholder-card.ready,
.workflow-module.ready {
  border-left-color: var(--accent);
}

.layer-card.pending,
.stakeholder-card.pending,
.workflow-module.pending {
  border-left-color: var(--warn);
}

.layer-card.building,
.stakeholder-card.building,
.workflow-module.building {
  border-left-color: var(--blue);
}

.layer-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e8f4f3;
  color: var(--accent);
  font-weight: 780;
}

.layer-card h5,
.layer-card strong,
.stakeholder-card strong,
.profile-level-card strong,
.ability-card strong,
.subject-card strong,
.workflow-module strong,
.workflow-stage-card strong,
.cadence-card strong,
.output-card strong,
.quality-release-card strong,
.release-card strong,
.backlog-card strong {
  display: block;
  margin: 0;
  line-height: 1.25;
}

.layer-card h5 {
  font-size: 15px;
}

.layer-card strong {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.layer-card p,
.stakeholder-card p,
.profile-level-card p,
.ability-card p,
.subject-card p,
.workflow-module p,
.workflow-stage-card p,
.cadence-card p,
.output-card p,
.quality-release-card p,
.release-card p,
.backlog-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.layer-card > span,
.stakeholder-card span,
.ability-card span,
.subject-card span,
.subject-card em,
.output-card span,
.workflow-module > span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.ability-card span,
.subject-card span,
.subject-card em,
.output-card span {
  margin-top: 8px;
  place-items: center start;
  white-space: normal;
  text-align: left;
}

.stakeholder-grid,
.profile-level-grid,
.cadence-grid,
.output-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stakeholder-card,
.profile-level-card,
.ability-card,
.subject-card,
.workflow-module,
.workflow-stage-card,
.cadence-card,
.output-card,
.quality-release-card,
.release-card {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.ability-grid,
.subject-grid,
.quality-gate-grid,
.release-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ability-card,
.subject-card {
  border-left-color: var(--accent-2);
}

.type-deepening-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.type-deepening-row {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.type-deepening-row b {
  color: var(--accent);
  font-size: 12px;
}

.type-deepening-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

.type-deepening-row span,
.type-deepening-row em {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
  white-space: normal;
}

.type-deepening-coach-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.type-deepening-coach-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.type-deepening-coach-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.type-deepening-coach-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.type-deepening-coach-card span,
.type-deepening-coach-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.subject-training-coach-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.subject-training-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.subject-training-summary span {
  color: var(--muted);
  font-size: 12px;
}

.subject-training-list {
  display: grid;
  gap: 4px;
}

.subject-training-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.subject-training-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.subject-training-title b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  border-radius: 6px;
  background: #e8f4f3;
  color: var(--accent);
  font-size: 12px;
}

.subject-training-title strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.subject-training-title p {
  margin: 3px 0 0;
  color: var(--muted);
}

.subject-training-card span,
.subject-training-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.workflow-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.workflow-module b,
.backlog-card b,
.workflow-stage-card b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  border-radius: 6px;
  background: #e8f4f3;
  color: var(--accent);
  font-size: 12px;
}

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

.workflow-stage-card {
  border-left-color: var(--blue);
}

.cadence-card {
  border-left-color: var(--accent);
}

.output-card {
  border-left-color: var(--accent-2);
}

.parent-report-grid,
.evidence-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.parent-report-grid span,
.evidence-grid span {
  min-height: 30px;
  display: inline-grid;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 680;
}

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

.parent-method-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.parent-method-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.parent-method-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.parent-method-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.parent-method-card em {
  margin-top: 2px;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.service-plan-card {
  display: grid;
  gap: 12px;
}

.service-plan-head {
  align-items: center;
}

.service-plan-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.service-plan-actions select {
  min-width: 260px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

#servicePlanSaveState.dirty {
  border-color: rgba(173, 95, 0, 0.28);
  background: #fff7eb;
  color: var(--warn);
}

.service-plan-form,
.service-plan-form-body,
.service-subsection {
  display: grid;
  gap: 12px;
}

.service-plan-grid,
.service-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.coach-plan-fields > div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.coach-plan-fields strong {
  color: #334155;
  font-size: 13px;
}

.coach-plan-fields p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.service-plan-grid label,
.service-review-grid label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-weight: 680;
}

.service-plan-grid input,
.service-plan-grid textarea,
.service-review-grid input,
.service-review-grid textarea,
.service-table input,
.service-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 9px;
  background: #fff;
  color: var(--text);
  font-weight: 520;
}

.service-plan-grid textarea,
.service-review-grid textarea {
  min-height: 76px;
  resize: vertical;
}

.service-subsection h5 {
  margin: 0;
  font-size: 15px;
}

.service-subsection-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.service-subsection-head h5 {
  margin: 0;
}

.subsection-head-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.service-evidence-quality {
  display: grid;
  gap: 10px;
}

.service-evidence-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.service-evidence-summary.ready {
  border-left-color: var(--accent);
}

.service-evidence-summary strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.service-evidence-summary span,
.service-evidence-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-evidence-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-evidence-checklist span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.service-evidence-checklist span.ok {
  border-color: rgba(23, 121, 111, 0.22);
  background: #eefaf8;
  color: var(--accent);
}

.service-evidence-checklist span.needs {
  border-color: rgba(173, 95, 0, 0.24);
  background: #fff7eb;
  color: var(--warn);
}

.service-evidence-issues {
  display: grid;
  gap: 4px;
}

.service-evidence-issue {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.service-evidence-issue.high {
  border-left-color: #b42318;
}

.service-evidence-issue.medium {
  border-left-color: var(--warn);
}

.service-evidence-issue.low {
  border-left-color: var(--blue);
}

.service-evidence-issue strong {
  color: var(--ink);
  font-size: 13px;
}

.service-evidence-issue p,
.service-evidence-issue em,
.service-evidence-ok {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.service-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-table-head,
.service-task-row,
.service-daily-row {
  display: grid;
  gap: 4px;
  align-items: center;
  min-width: 820px;
  padding: 8px 10px;
}

.service-table-head {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 760;
}

.service-task-row,
.service-daily-row {
  border-top: 1px solid var(--line);
  background: #fff;
}

.service-table.weekly .service-table-head,
.service-table.weekly .service-task-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(90px, 0.6fr) minmax(260px, 1.5fr) minmax(110px, 0.7fr) minmax(150px, 1fr);
  min-width: 980px;
}

.service-table.daily .service-table-head,
.service-table.daily .service-daily-row {
  grid-template-columns: minmax(132px, 0.7fr) minmax(100px, 0.6fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
}

.task-period-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.task-period-range input {
  min-width: 0;
}

.task-evidence-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px;
  min-width: 0;
}

.task-evidence-upload {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.task-evidence-file {
  display: none !important;
}

.task-evidence-files {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.task-evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 6px 3px 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
}

.task-evidence-chip a {
  color: var(--accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-evidence-remove {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.quality-release-card {
  border-left-color: var(--warn);
}

.release-card {
  border-left-color: var(--accent);
}

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

.backlog-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.admin-panel-tools,
.permission-current-role {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-panel-tools input,
.permission-current-role select {
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.wrong-date-filter {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wrong-date-filter .wrong-date-input {
  min-width: 168px;
  width: 168px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

.wrong-date-filter .wrong-date-clear {
  height: 38px;
  white-space: nowrap;
}

.permission-current-role span {
  color: var(--muted);
  font-size: 12px;
}

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

.student-stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--surface);
}

.student-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.student-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.student-layout,
.student-master-layout,
.permission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.student-master-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.student-roster,
.staff-list {
  display: grid;
  gap: 10px;
}

.student-roster {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 4px;
}

.student-roster-card .ops-card-head h4 {
  white-space: nowrap;
}

.student-grade-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.student-grade-filter button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #626276;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.student-roster-card .ops-card-head {
  flex-wrap: nowrap;
}

.student-grade-filter button.active {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 800;
}

.student-card[data-profile],
.student-card[data-pending-edit] {
  cursor: pointer;
}

.staff-list {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.staff-account-form {
  display: grid;
  gap: 10px;
}

#wrongQuestionList {
  gap: 6px;
}

#wrongQuestionList .wrong-question-item .staff-row {
  padding: 7px 10px;
}

#wrongQuestionList .wrong-subject-group {
  margin: 0;
}

.staff-account-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.quota-picker {
  display: flex;
  gap: 6px;
  align-items: center;
}

.quota-picker input {
  min-width: 90px;
}

.staff-account-form input,
.staff-account-form select,
.staff-account-form textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.staff-account-form textarea {
  min-height: 76px;
  resize: vertical;
}

.staff-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.student-card,
.student-profile-schema,
.permission-card,
.permission-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.student-card,
.student-profile-schema,
.permission-card,
.permission-note {
  padding: 14px;
}

.student-card { padding: 10px; }

.student-card.selected {
  border-color: rgba(15, 118, 110, 0.5);
  background: #f0fdfa;
}

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

.student-card h4 {
  margin: 0;
  font-size: 15px;
}

.student-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.student-status {
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}

.student-status.needs {
  background: #fff7ed;
  color: var(--warn);
}

.student-status.done {
  background: #f0fdf4;
  color: var(--ok);
}

.student-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.student-card-grid span,
.profile-field-grid span {
  min-height: 22px;
  display: inline-grid;
  align-items: center;
  border-radius: 6px;
  padding: 0 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.student-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}

.student-profile-form {
  display: grid;
  gap: 14px;
}

#studentProfileSaveState.dirty {
  border-color: rgba(173, 95, 0, 0.28);
  background: #fff7eb;
  color: var(--warn);
}

.profile-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-section h5 {
  margin: 0;
  font-size: 15px;
}

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

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

.profile-form-grid label,
.archive-grid label,
.parent-report-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
}

.profile-form-grid .field-label,
.archive-grid .field-label,
.parent-report-form .field-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #475569;
  font-weight: 600;
}

.req-star {
  color: #dc2626;
  font-weight: 700;
  margin-left: 0;
  font-size: 15px;
  line-height: 1;
}

.profile-form-grid input,
.profile-form-grid select,
.profile-form-grid textarea,
.archive-grid select,
.score-table input,
.score-table select,
.parent-report-form input,
.parent-report-form select,
.parent-report-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text);
  font-weight: 480;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-form-grid input:focus,
.profile-form-grid select:focus,
.profile-form-grid textarea:focus,
.archive-grid select:focus,
.parent-report-form input:focus,
.parent-report-form select:focus,
.parent-report-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
  background: #fff;
}

.profile-form-grid input:hover,
.profile-form-grid select:hover {
  border-color: #b8c2d0;
}

.profile-form-grid textarea,
.parent-report-form textarea {
  min-height: 72px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.parent-summary-hint {
  grid-column: span 2;
  color: #64748b;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.5;
}
.profile-section-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.btn-secondary {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 620;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.score-block {
  display: grid;
  gap: 4px;
}

.score-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-block-title strong {
  font-size: 14px;
}

.score-block-title span {
  color: var(--warn);
  font-size: 12px;
}

.score-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-table-head,
.score-table-row {
  display: grid;
  grid-template-columns: 86px 54px minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 620px;
  padding: 8px 10px;
}

.score-table-head {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 760;
}

.score-table-row {
  border-top: 1px solid var(--line);
  background: #fff;
}

.score-table.simple .score-table-head,
.score-table.simple .score-table-row {
  grid-template-columns: 86px minmax(90px, 1fr) minmax(90px, 1fr);
  min-width: 360px;
}

.score-table-row strong {
  font-size: 13px;
}

.score-enabled {
  width: 18px !important;
  min-height: 18px !important;
}

.student-backup-card {
  display: grid;
  gap: 12px;
}

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

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

.student-backup-list {
  display: grid;
  gap: 4px;
}

.student-dictionary-card {
  display: grid;
  gap: 12px;
}

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

.student-dictionary-summary span {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.student-dictionary-summary strong {
  color: var(--text);
  font-size: 18px;
}

.student-dictionary-summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.student-dictionary-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-dictionary-table {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.student-dictionary-table div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.student-dictionary-table strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.student-dictionary-table span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.student-dictionary-table p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.backup-empty,
.student-backup-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

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

.student-backup-row div {
  display: grid;
  gap: 3px;
}

.student-backup-row strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.student-backup-row span,
.backup-empty {
  color: var(--muted);
  font-size: 13px;
}

.parent-report-builder {
  display: grid;
  gap: 12px;
}

.parent-report-history-card {
  display: grid;
  gap: 12px;
}

.parent-report-history {
  display: grid;
  gap: 10px;
}

.parent-report-empty,
.parent-report-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.parent-report-empty {
  color: var(--muted);
  background: #f8fafc;
}

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

.parent-report-row div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.parent-report-row strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.parent-report-row span,
.parent-report-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.parent-report-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.parent-report-row-actions a {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.report-missing {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  padding: 0 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
}

.parent-report-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.parent-report-form button {
  min-height: 38px;
}

.parent-report-preview {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #101827;
  color: #e5e7eb;
  white-space: pre-wrap;
}

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

.ability-database-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.ability-database-card h5 {
  margin: 0;
  font-size: 15px;
}

.ability-database-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.ability-database-grid span {
  min-height: 30px;
  display: inline-grid;
  align-items: center;
  border-radius: 7px;
  padding: 0 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.permission-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
}

.staff-row.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.staff-row strong,
.staff-row em {
  display: block;
}

.staff-row em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.staff-row b {
  color: var(--accent);
  font-size: 12px;
}

.homepage-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

.homepage-account-user {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.homepage-account-role {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}

.homepage-account-tokens {
  flex: none;
  font-size: 11px;
  color: var(--muted);
}

.permission-matrix-wrap {
  overflow: auto;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

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

.permission-matrix th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
}

.permission-dot {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
}

.permission-dot.on {
  background: #dcfce7;
  color: #166534;
}

.permission-dot.off {
  background: #f1f5f9;
  color: #64748b;
}

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

.security-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fff7ed;
  color: #7c2d12;
}

.audit-log-list {
  display: grid;
  gap: 4px;
}

.audit-log-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.audit-log-row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.audit-log-row strong {
  font-size: 13px;
}

.audit-log-row span,
.audit-log-row p {
  color: var(--muted);
  font-size: 12px;
}

.audit-log-row p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.production-console {
  display: grid;
  gap: 12px;
  margin: 0 0 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  box-shadow: var(--shadow);
}

.production-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.production-head h3 {
  margin: 0;
  font-size: 17px;
}

.production-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.production-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

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

.production-stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--surface);
}

.production-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.production-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.production-stat.auto {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f0fdfa;
}

.production-stat.manual {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff7ed;
}

.production-stat.blocked {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fff1f2;
}

.production-stat.done {
  border-color: rgba(21, 128, 61, 0.22);
  background: #f0fdf4;
}

.production-queue {
  display: grid;
  gap: 4px;
}

.production-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}

.production-row.auto {
  border-left-color: var(--accent);
}

.production-row.manual {
  border-left-color: var(--warn);
}

.production-row.blocked {
  border-left-color: var(--bad);
}

.production-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.production-row-title strong {
  font-size: 14px;
}

.production-row-title span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef6ff;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 760;
}

.production-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.production-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.production-row-meta span,
.production-row-actions > span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  padding: 0 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.production-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.production-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.coach-analysis-panel{margin-top:12px}.coach-analysis-panel small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.coach-analysis-list{display:grid;gap:10px}.coach-analysis-empty{padding:18px;border:1px dashed var(--line-strong);border-radius:8px;color:var(--muted);text-align:center}.coach-question{border:1px solid var(--line);border-radius:9px;padding:12px;background:#fbfdff}.coach-question-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.coach-question-head span{font-size:11px;color:var(--muted)}.coach-step-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.coach-step{padding:9px;border:1px solid #e5edf7;border-radius:7px;background:#fff}.coach-step b{font-size:12px;color:var(--accent-2)}.coach-step p{margin:5px 0 0;font-size:12px;line-height:1.55;color:#475569;white-space:pre-wrap}@media(max-width:760px){.coach-step-grid{grid-template-columns:1fr}}

body[data-has-current-case="true"] .production-console {
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

body[data-has-current-case="true"] .production-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

body[data-has-current-case="true"] .production-head p,
body[data-has-current-case="true"] .production-queue {
  display: none;
}

body[data-has-current-case="true"] .production-stats {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
}

body[data-has-current-case="true"] .production-stat {
  min-height: 38px;
  padding: 7px 10px;
}

body[data-has-current-case="true"] .production-stat strong,
body[data-has-current-case="true"] .production-stat span {
  display: inline;
}

body[data-has-current-case="true"] .production-stat strong {
  margin-right: 6px;
  font-size: 18px;
}

body[data-has-current-case="true"] .production-stat span {
  margin-top: 0;
}

.batch-progress {
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #eff6ff;
}

.batch-progress-head,
.batch-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #1e3a8a;
}

.batch-progress-head span,
.batch-progress-foot {
  font-size: 12px;
}

.batch-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin: 9px 0;
  background: rgba(37, 99, 235, 0.16);
}

.batch-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 240ms var(--ease-smooth);
}

.empty-state {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-inner {
  max-width: 480px;
  text-align: center;
  color: var(--muted);
}

.empty-inner h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
}

.hidden {
  display: none !important;
}

.ai-nav-item {
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.ai-assistant-head {
  border-top: 3px solid #0f766e;
}

.ai-assistant-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.ai-assistant-status div {
  display: grid;
  gap: 2px;
}

.ai-assistant-status strong,
.ai-assistant-status span {
  font-size: 12px;
}

.ai-assistant-status div span {
  color: var(--muted);
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.ai-status-dot.ready {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.ai-status-dot.offline {
  background: #d97706;
}

.ai-assistant-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ai-control-panel {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(180px, 1fr);
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.ai-control-panel > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.ai-control-panel select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  color: var(--text);
}

.ai-control-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}

.ai-context-section,
.ai-access-section,
.ai-risk-section,
.ai-history-section {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ai-consent-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.ai-consent-check input {
  margin-top: 2px;
}

.ai-access-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ai-access-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.ai-access-actions input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}

.ai-access-list,
.ai-risk-list {
  display: grid;
  gap: 6px;
}

.ai-latest-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  padding: 8px;
  border: 1px solid #a9d5d1;
  border-radius: 6px;
  background: #eaf6f4;
}

.ai-latest-invite label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.ai-latest-invite input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  background: #fff;
  font-size: 10px;
}

.ai-latest-invite button {
  min-height: 31px;
  border: 1px solid var(--teal, #0f766e);
  border-radius: 5px;
  background: #fff;
  color: #115e59;
  font-size: 11px;
}

.ai-access-item,
.ai-risk-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.ai-access-item div,
.ai-risk-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ai-access-item strong,
.ai-risk-item strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-access-item span,
.ai-risk-item span {
  color: var(--muted);
  font-size: 10px;
}

.ai-access-item button,
.ai-risk-item button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
}

.ai-risk-item {
  border-color: #fecdd3;
  background: #fff7f8;
}

.ai-context-list {
  display: grid;
  gap: 7px;
}

.ai-context-list > div {
  display: grid;
  gap: 2px;
}

.ai-context-list span,
.ai-conversation-item small {
  color: var(--muted);
  font-size: 11px;
}

.ai-context-list strong {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ai-conversation-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
}

.ai-conversation-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.ai-conversation-item:hover,
.ai-conversation-item.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: #ecfdf5;
}

.ai-conversation-item span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 760;
}

.ai-conversation-item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 680px;
  background: #fff;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.ai-chat-header div {
  display: grid;
  gap: 3px;
}

.ai-chat-header span {
  color: var(--muted);
  font-size: 12px;
}

.ai-risk-badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c !important;
  font-weight: 760;
}

.ai-risk-badge.critical,
.ai-risk-badge.high {
  background: #fff1f2;
  color: #be123c !important;
}

.ai-message-list {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px clamp(16px, 5vw, 70px);
  overflow: auto;
  background: #fbfcfd;
}

.ai-message {
  display: grid;
  gap: 5px;
  max-width: min(760px, 88%);
}

.ai-message.user {
  justify-self: end;
}

.ai-message-role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.ai-message.user .ai-message-role,
.ai-message.user time {
  text-align: right;
}

.ai-message-content {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ai-message.user .ai-message-content {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.ai-message time {
  color: var(--muted);
  font-size: 10px;
}

.ai-welcome {
  align-self: center;
  justify-self: center;
  width: min(620px, 100%);
  text-align: center;
}

.ai-welcome > strong {
  font-size: 20px;
}

.ai-welcome > p {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.ai-starter-grid button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  color: var(--text);
}

.ai-starter-grid button:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.ai-composer {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ai-composer textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  color: var(--text);
  line-height: 1.5;
}

.ai-composer textarea:focus {
  border-color: #0f766e;
  outline: 2px solid rgba(15, 118, 110, 0.12);
}

.ai-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-composer-footer span,
.ai-empty-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.icon-text-button {
  padding: 4px 6px;
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}

@media (max-width: 980px) {
  .ai-assistant-layout {
    grid-template-columns: 1fr;
  }

  .ai-control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ai-context-section,
  .ai-history-section {
    grid-column: 1 / -1;
  }

  .ai-chat-panel {
    min-height: 620px;
  }
}

@media (max-width: 720px) {
  .ai-control-panel,
  .ai-starter-grid {
    grid-template-columns: 1fr;
  }

  .ai-assistant-status {
    min-width: 0;
  }

  .ai-message-list {
    padding: 16px 12px;
  }

  .ai-message {
    max-width: 94%;
  }

  .ai-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.case-workspace {
  display: grid;
  gap: 12px;
}

.case-detail-back {
  display: flex;
  justify-content: flex-start;
}

.case-detail-back button {
  min-height: 38px;
  padding: 0 16px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 4px;
}

.stage {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 9px 10px;
}

.stage.done {
  border-color: rgba(21, 128, 61, 0.45);
  background: #f1fbf5;
}

.stage.current {
  border-color: rgba(37, 99, 235, 0.55);
  background: #eff6ff;
}

.stage strong {
  display: block;
  font-size: 13px;
}

.stage span {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-top: 4px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.overview-grid,
.actions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.kv-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  margin: 0;
  padding: 4px 14px 14px;
}

.kv-grid dt,
.kv-grid dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
}

.kv-grid dt {
  color: var(--muted);
}

.kv-grid dd {
  word-break: break-all;
}

.next-action {
  padding: 14px;
  min-height: 86px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.command-row {
  padding: 0 14px 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.status-badge.needs,
.status-badge.blocked {
  background: var(--warn);
}

.status-badge.ready {
  background: var(--accent);
}

.status-badge.done {
  background: var(--ok);
}

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

.text-preview,
.log-view {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 14px;
  color: #273142;
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  max-height: 320px;
  overflow: auto;
}

.text-preview.small {
  max-height: 420px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
}

.material-tile {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
}

.material-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #edf1f6;
}

.material-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e7edf5;
  color: var(--muted);
  font-weight: 760;
  text-transform: uppercase;
}

.material-info {
  padding: 9px;
}

.material-info strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.material-info a {
  color: var(--accent-2);
  font-size: 12px;
  text-decoration: none;
}

.split-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  padding: 14px;
  align-items: end;
}

.split-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.split-controls .checkbox-label {
  align-items: center;
  grid-template-columns: auto 1fr;
  min-height: 42px;
}

.split-controls .checkbox-label input {
  width: auto;
}

.ocr-quality-panel {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.quality-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.quality-heading h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.quality-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quality-heading > span {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 760;
}

.quality-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}

.quality-stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--surface-2);
}

.quality-stat strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.quality-stat span {
  color: var(--muted);
  font-size: 12px;
}

.quality-list {
  display: grid;
  gap: 4px;
}

.quality-item,
.quality-empty,
.quality-ok {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfe;
}

.quality-empty {
  display: grid;
  gap: 3px;
}

.quality-empty span,
.quality-ok {
  color: var(--muted);
  font-size: 12px;
}

.quality-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quality-item-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quality-item-main span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.quality-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.quality-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quality-flags span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f3f5f8;
  color: #3d4656;
  font-size: 12px;
}

.quality-green {
  border-color: rgba(21, 128, 61, 0.32);
  background: #f2fbf5;
}

.quality-yellow {
  border-color: rgba(180, 83, 9, 0.36);
  background: #fff8ed;
}

.quality-red {
  border-color: rgba(185, 28, 28, 0.35);
  background: #fff3f3;
}

.quality-green .quality-item-main span {
  background: #dcfce7;
  color: var(--ok);
}

.quality-yellow .quality-item-main span {
  background: #ffedd5;
  color: var(--warn);
}

.quality-red .quality-item-main span {
  background: #fee2e2;
  color: var(--bad);
}

.ocr-review-panel {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.ocr-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ocr-review-heading h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.ocr-review-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.ocr-review-heading code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef2f7;
  color: #304158;
}

.ocr-review-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

.ocr-review-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.ocr-review-image {
  min-width: 0;
}

.ocr-review-image img,
.ocr-review-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background: #fff;
}

.ocr-review-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.ocr-review-fields {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.ocr-review-card-head,
.ocr-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ocr-review-card-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ocr-review-card-head span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.ocr-review-card-head span.quality-green {
  background: #dcfce7;
  color: var(--ok);
}

.ocr-review-card-head span.quality-yellow {
  background: #ffedd5;
  color: var(--warn);
}

.ocr-review-card-head span.quality-red {
  background: #fee2e2;
  color: var(--bad);
}

.ocr-review-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.ocr-review-fields input,
.ocr-review-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.ocr-review-fields textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.ocr-review-row {
  color: var(--muted);
  font-size: 12px;
}

.ocr-review-row .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.ocr-review-row input {
  width: auto;
}

.two-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 14px;
}

.preview-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.health-list,
.question-list {
  padding: 14px;
}

.health-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf1f6;
  padding: 9px 0;
}

.health-item span:last-child {
  font-weight: 760;
}

.question-list {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.question-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: var(--surface-2);
}

.question-row strong {
  display: block;
  margin-bottom: 4px;
}

.question-row span {
  color: var(--muted);
  font-size: 12px;
}

.spec-editor textarea {
  width: 100%;
  height: calc(100vh - 265px);
  min-height: 520px;
  resize: vertical;
  border: 0;
  outline: none;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #182033;
  background: #fbfcfe;
}

.delivery-links {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.delivery-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 14px;
}

.delivery-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfe;
}

.delivery-gate strong,
.delivery-gate span {
  display: block;
}

.delivery-gate span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.delivery-gate em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 760;
}

.delivery-gate.ok {
  border-color: rgba(21, 128, 61, 0.24);
  background: #f0fdf4;
}

.delivery-gate.ok em {
  background: #dcfce7;
  color: var(--ok);
}

.delivery-gate.warn {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff7ed;
}

.delivery-gate.warn em {
  background: #ffedd5;
  color: var(--warn);
}

.delivery-gate.bad {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff1f2;
}

.delivery-gate.bad em {
  background: #ffe4e6;
  color: var(--bad);
}

.wrong-question-diagnosis {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.wrong-question-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 14px;
  background: #fbfcfe;
}

.wrong-question-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wrong-question-summary {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: 10px;
  align-items: stretch;
}

.wrong-question-summary > div,
.wrong-question-summary > p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfe;
}

.wrong-question-summary strong,
.wrong-question-summary span {
  display: block;
}

.wrong-question-summary strong {
  color: #182033;
  font-size: 20px;
}

.wrong-question-summary span,
.wrong-question-summary p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.wrong-question-type-list,
.wrong-question-evidence,
.wrong-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wrong-question-type-list span,
.wrong-question-evidence span,
.wrong-question-actions span {
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 4px 8px;
  color: #324154;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}

.wrong-question-card-list {
  display: grid;
  gap: 10px;
}

.wrong-question-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
}

.wrong-question-card.high {
  border-color: rgba(21, 128, 61, 0.28);
}

.wrong-question-card.medium {
  border-color: rgba(37, 99, 235, 0.24);
}

.wrong-question-card.needs {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffbeb;
}

.wrong-question-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.wrong-question-card-head strong,
.wrong-question-card-head span {
  display: block;
}

.wrong-question-card-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.wrong-question-card-head em {
  align-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  color: #1f2937;
  background: #e5edf6;
  font-style: normal;
  font-size: 12px;
  font-weight: 760;
}

.wrong-question-card.needs .wrong-question-card-head em {
  color: var(--warn);
  background: #ffedd5;
}

.wrong-question-evidence span.counter {
  border-color: #fecdd3;
  color: #9f1239;
  background: #fff1f2;
}

.wrong-question-card p,
.wrong-question-boundary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wrong-question-boundary {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.delivery-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  padding: 8px 0;
}

.delivery-link span {
  color: var(--muted);
}

.delivery-link a {
  color: var(--accent-2);
  text-decoration: none;
  word-break: break-all;
}

.report-preview-panel {
  min-height: 460px;
}

.report-preview {
  min-height: 400px;
  padding: 12px;
}

.report-preview iframe {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-preview-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.report-preview-empty strong {
  color: var(--text);
}

.log-view {
  min-height: 420px;
  max-height: calc(100vh - 260px);
  background: #111827;
  color: #d7e2f1;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

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

  .sidebar {
    position: relative;
    height: auto;
  }

  .production-head,
  .production-row,
  .admin-panel-head,
  .system-layout,
  .ability-layout,
  .workflow-layout,
  .service-layout,
  .quality-release-layout,
  .student-master-layout,
  .parent-report-form,
  .student-layout,
  .permission-layout {
    grid-template-columns: 1fr;
  }

  .production-actions,
  .production-row-actions,
  .admin-panel-tools,
  .permission-current-role {
    justify-content: flex-start;
  }

  .production-stats,
  .student-stats,
  .student-dictionary-summary,
  .student-dictionary-tables,
  .readiness-grid,
  .backlog-grid,
  .ability-grid,
  .subject-grid,
  .quality-gate-grid,
  .release-grid,
  .delivery-gates,
  .parent-method-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form-grid,
  .profile-form-grid.compact,
  .archive-grid,
  .service-plan-grid,
  .service-review-grid,
  .ability-database-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .readiness-grid {
    min-width: 0;
  }

  .overview-grid,
  .materials-layout,
  .editor-layout,
  .actions-layout,
  .two-previews {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    display: grid;
  }

  .split-controls {
    grid-template-columns: 1fr;
  }

  .production-stats,
  .student-stats,
  .readiness-grid,
  .stakeholder-grid,
  .profile-level-grid,
  .ability-grid,
  .subject-grid,
  .stage-grid,
  .cadence-grid,
  .output-grid,
  .quality-gate-grid,
  .release-grid,
  .backlog-grid,
  .profile-form-grid,
  .profile-form-grid.compact,
  .archive-grid,
  .service-plan-grid,
  .service-review-grid,
  .student-dictionary-summary,
  .student-dictionary-tables,
  .ability-database-grid,
  .student-card-grid,
  .profile-field-grid,
	  .security-checklist,
	  .delivery-gates,
	  .wrong-question-summary {
	    grid-template-columns: 1fr;
	  }

	  .wrong-question-card-head {
	    display: grid;
	  }

	  .wrong-question-card-head em {
	    justify-self: start;
	  }

  .admin-nav {
    width: 100%;
  }

  .admin-nav-item {
    flex: 1 1 120px;
  }

  .admin-panel-tools input,
  .permission-current-role select {
    min-width: 0;
    width: 100%;
  }

  .student-dictionary-table div {
    display: grid;
    justify-content: stretch;
  }

  .student-dictionary-table strong,
  .student-dictionary-table span {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .parent-report-row {
    grid-template-columns: 1fr;
  }

  .parent-report-row-actions {
    justify-content: flex-start;
  }

  .student-card-main,
  .staff-row,
  .layer-card,
  .workflow-module,
  .backlog-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .batch-progress-head,
  .batch-progress-foot {
    display: grid;
  }

  .span-2 {
    grid-column: span 1;
  }

  .score-block-title {
    display: grid;
  }

  body[data-has-current-case="true"] .production-head {
    grid-template-columns: 1fr;
  }

  body[data-has-current-case="true"] .production-actions {
    justify-content: flex-start;
  }

  .quality-heading,
  .quality-item-main,
  .ocr-review-heading,
  .ocr-review-card-head,
  .ocr-review-row {
    display: grid;
  }

  .quality-heading > span,
  .quality-item-main span,
  .ocr-review-card-head span {
    width: fit-content;
  }

  .quality-summary {
    grid-template-columns: 1fr;
  }

  .ocr-review-card {
    grid-template-columns: 1fr;
  }

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

  .kv-grid dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .kv-grid dd {
    padding-top: 0;
  }
}

/* Web design plugin enhancement layer */

body.web-design-plugin-ready {
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.08), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    #f5f7fb;
}

.web-design-plugin-ready .sidebar {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #101726 0%, #0c1320 100%);
}

.web-design-plugin-ready .brand {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(174, 185, 202, 0.16);
}

.web-design-plugin-ready .brand-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, #0f766e, #1d4ed8 66%, #7c3aed);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.web-design-plugin-ready .workspace {
  padding: 20px 24px 30px;
}

.web-design-plugin-ready .topbar {
  align-items: center;
  min-height: 92px;
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 194, 209, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(8px);
}

.web-design-plugin-ready .topbar h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.status-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 6px;
}

.status-filter {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid rgba(174, 185, 202, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8d3e3;
  font-size: 12px;
}

.status-filter strong {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 11px;
}

.status-filter:hover,
.status-filter.active {
  border-color: rgba(77, 182, 172, 0.72);
  background: rgba(15, 118, 110, 0.22);
  color: #f8fafc;
}

.case-empty {
  border: 1px dashed rgba(174, 185, 202, 0.28);
  border-radius: 8px;
  padding: 18px 12px;
  color: #aeb9ca;
  text-align: center;
  font-size: 13px;
}

.design-plugin-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(184, 194, 209, 0.75);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.design-plugin-title {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.design-plugin-title strong {
  font-size: 14px;
}

.design-plugin-title span {
  color: var(--muted);
  font-size: 12px;
}

.design-plugin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.design-plugin-actions button {
  min-height: 32px;
  border: 1px solid #cad3df;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #253044;
  font-size: 12px;
  font-weight: 700;
}

.design-plugin-actions button:hover,
.design-plugin-actions button.active {
  border-color: rgba(15, 118, 110, 0.55);
  background: #ecfdf5;
  color: #0f766e;
}

.web-design-plugin-ready .panel,
.web-design-plugin-ready .stage,
.web-design-plugin-ready .material-tile,
.web-design-plugin-ready .ocr-review-card,
.web-design-plugin-ready .quality-item,
.web-design-plugin-ready .quality-empty,
.web-design-plugin-ready .quality-ok {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.web-design-plugin-ready .panel-heading {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.web-design-plugin-ready .tabs {
  gap: 4px;
  border-bottom: 0;
}

.web-design-plugin-ready .tab {
  border: 1px solid transparent;
  border-radius: 8px;
}

.web-design-plugin-ready .tab.active {
  border-color: #cad3df;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.web-design-plugin-ready .case-item {
  transition: transform 200ms var(--ease-spring), border-color 200ms var(--ease-smooth), background 200ms var(--ease-smooth);
}

.web-design-plugin-ready .case-item:hover {
  transform: translateY(-1px);
}

.density-compact .workspace {
  padding: 14px 18px 22px;
}

.density-compact .topbar {
  min-height: 72px;
  padding: 12px 14px;
}

.density-compact .topbar h2 {
  font-size: 22px;
}

.density-compact .design-plugin-bar,
.density-compact .production-console,
.density-compact .panel-heading,
.density-compact .split-controls,
.density-compact .ocr-quality-panel,
.density-compact .ocr-review-panel,
.density-compact .delivery-gates,
.density-compact .materials-grid,
.density-compact .health-list,
.density-compact .question-list,
.density-compact .delivery-links,
.density-compact .text-preview,
.density-compact .log-view {
  padding: 10px;
}

.density-compact .case-item {
  padding: 9px;
}

.density-compact .stage {
  min-height: 46px;
  padding: 7px 9px;
}

.density-compact .panel-heading {
  min-height: 42px;
}

.focus-mode .app-shell {
  grid-template-columns: 1fr;
}

.focus-mode .sidebar {
  display: none;
}

.focus-mode .workspace {
  width: min(1480px, 100%);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .design-plugin-bar {
    grid-template-columns: 1fr;
  }

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

  .design-plugin-actions button {
    width: 100%;
  }
}

/* YFLOS visual redesign v2: operational command desk */
:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf3f7;
  --line: #d5dde8;
  --line-strong: #aeb9c8;
  --text: #172033;
  --muted: #667085;
  --muted-2: #8a95a6;
  --accent: #176b5f;
  --accent-2: #2f5597;
  --ok: #16854a;
  --warn: #ad5f00;
  --bad: #c33838;
  --blue: #3157d5;
  --sidebar: #0f1724;
  --sidebar-2: #121d2d;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 32px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px rgba(16, 24, 40, 0.055);
}

body {
  background:
    linear-gradient(180deg, #e9eef5 0, #f7f9fc 220px, #f2f5f9 100%),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.035) 0 1px, transparent 1px 84px);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell {
  grid-template-columns: 326px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(49, 87, 213, 0.13), transparent 280px),
    linear-gradient(135deg, rgba(23, 107, 95, 0.22), transparent 34%),
    linear-gradient(180deg, var(--sidebar), #0b111d 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(174, 185, 202, 0.16);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #176b5f 0%, #3157d5 62%, #5d4bd8 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand h1 {
  font-size: 19px;
  font-weight: 800;
}

.brand p {
  max-width: 210px;
  color: #9dacbf;
  line-height: 1.35;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) 40px;
  margin-bottom: 12px;
}

.search-row input {
  height: 42px;
  border-color: rgba(174, 185, 202, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.icon-button {
  min-height: 42px;
  border-color: rgba(174, 185, 202, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.case-summary {
  gap: 7px;
  margin-bottom: 12px;
}

.summary-pill {
  min-height: 62px;
  border-color: rgba(174, 185, 202, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.summary-pill strong {
  font-size: 22px;
  font-weight: 800;
}

.summary-pill span {
  color: #a8b5c7;
  font-weight: 620;
}

.status-filters {
  gap: 6px;
  margin-bottom: 14px;
}

.status-filter {
  min-height: 36px;
  border-color: rgba(174, 185, 202, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #d6deea;
}

.status-filter.active {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(23, 107, 95, 0.34);
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.case-list {
  gap: 9px;
}

.case-item {
  position: relative;
  overflow: hidden;
  border-color: rgba(174, 185, 202, 0.14);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.case-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.case-item:hover,
.case-item.active {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(23, 107, 95, 0.18);
}

.case-item.active::before {
  background: #2dd4bf;
}

.case-name {
  font-size: 14px;
  font-weight: 780;
}

.case-line {
  color: #aebacf;
}

.workspace {
  padding: 22px 26px 34px;
}

.topbar {
  min-height: 104px;
  align-items: center;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(174, 185, 202, 0.72);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 107, 95, 0.07), transparent 38%),
    #ffffff;
  box-shadow: var(--shadow);
}

.eyeline {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.topbar h2 {
  max-width: 860px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 860;
  line-height: 1.12;
}

.topbar p {
  max-width: 780px;
  color: #5f6c7e;
  font-size: 14px;
}

.primary,
.secondary,
.icon-button,
.design-plugin-actions button,
.as-button {
  border-radius: 7px;
  transition: transform 180ms var(--ease-spring), border-color 180ms var(--ease-smooth), background 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth);
}

.primary {
  background: linear-gradient(180deg, #1c7a6d, #145f55);
  box-shadow: 0 8px 18px rgba(20, 95, 85, 0.18);
}

.primary:hover {
  background: linear-gradient(180deg, #208679, #176b5f);
  transform: translateY(-1px);
}

.secondary {
  border-color: #c6d0dd;
  background: #ffffff;
  color: #263247;
}

.secondary:hover {
  border-color: #9fb0c4;
  background: #f8fafc;
}

.design-plugin-bar {
  min-height: 44px;
  border-color: rgba(174, 185, 202, 0.72);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.design-plugin-title strong {
  color: #263247;
  font-weight: 820;
}

.design-plugin-actions button {
  min-height: 34px;
  border-color: #cbd5e1;
  background: #ffffff;
  color: #253044;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.035);
}

.design-plugin-actions button:hover,
.design-plugin-actions button.active {
  border-color: rgba(23, 107, 95, 0.42);
  background: #edf8f6;
  color: var(--accent);
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(9, minmax(72px, 1fr));
  width: 100%;
  gap: 3px;
  padding: 5px;
  border-color: rgba(174, 185, 202, 0.68);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.admin-nav-item {
  min-height: 38px;
  padding: 0 8px;
  color: #59667a;
  font-size: 13px;
  font-weight: 760;
}

.admin-nav-item.active {
  background: #e9f5f2;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.admin-panel,
.case-workspace {
  gap: 14px;
}

.admin-panel-head,
.production-console,
.ops-card,
.panel,
.student-card,
.student-profile-schema,
.permission-card,
.permission-note {
  border-color: rgba(174, 185, 202, 0.72);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.admin-panel-head {
  padding: 16px;
}

.admin-panel-head h3,
.production-head h3,
.panel-heading h3,
.ops-card-head h4 {
  color: #172033;
  font-weight: 820;
}

.admin-panel-head p,
.production-head p,
.ops-card-head span,
.layer-card p,
.stakeholder-card p,
.backlog-card p,
.profile-level-card p,
.ability-card p,
.subject-card p,
.workflow-module p,
.workflow-stage-card p,
.cadence-card p,
.output-card p,
.quality-release-card p,
.release-card p {
  color: #667085;
}

.readiness-grid,
.production-stats,
.student-stats {
  gap: 10px;
}

.readiness-item,
.production-stat,
.student-stat {
  border-color: #d8e0ea;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.035);
}

.readiness-item strong,
.production-stat strong,
.student-stat strong {
  color: #172033;
  font-size: 24px;
  font-weight: 860;
}

.production-console {
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(49, 87, 213, 0.055), transparent 36%),
    #ffffff;
}

.production-stat.auto {
  border-color: rgba(23, 107, 95, 0.24);
  background: #eef9f6;
}

.production-stat.manual {
  border-color: rgba(173, 95, 0, 0.22);
  background: #fff7eb;
}

.production-stat.blocked {
  border-color: rgba(195, 56, 56, 0.22);
  background: #fff1f2;
}

.production-stat.done {
  border-color: rgba(22, 133, 74, 0.22);
  background: #eefaf2;
}

body[data-has-current-case="true"] .production-console {
  background: #ffffff;
}

.status-strip {
  gap: 9px;
}

.stage {
  min-height: 62px;
  border-color: #d6dfeb;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.stage.done {
  border-color: rgba(22, 133, 74, 0.28);
  background: #effaf3;
}

.stage.current {
  border-color: rgba(49, 87, 213, 0.42);
  background: #eef4ff;
}

.tabs {
  align-items: center;
  gap: 4px;
  padding-top: 0;
}

.tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #59667a;
}

.tab.active {
  border-color: #cad5e3;
  background: #ffffff;
  color: #172033;
  box-shadow: inset 0 -2px 0 var(--accent), var(--shadow-soft);
}

.panel {
  overflow: hidden;
}

.panel-heading {
  min-height: 52px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.kv-grid dt,
.kv-grid dd {
  border-bottom-color: #edf1f6;
}

.next-action {
  color: #263247;
}

.delivery-gate,
.layer-card,
.stakeholder-card,
.profile-level-card,
.ability-card,
.subject-card,
.workflow-module,
.workflow-stage-card,
.cadence-card,
.output-card,
.quality-release-card,
.release-card,
.backlog-card,
.student-card,
.staff-row,
.ability-database-card {
  border-color: #d8e0ea;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.035);
}

.layer-card {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.layer-index,
.workflow-module b,
.backlog-card b,
.workflow-stage-card b {
  background: #e9f5f2;
  color: var(--accent);
}

.ops-card-head span,
.layer-card > span,
.stakeholder-card span,
.workflow-module > span {
  background: #edf2f7;
  color: #59667a;
}

.delivery-gate.ok,
.quality-green {
  background: #eefaf2;
}

.delivery-gate.warn,
.quality-yellow {
  background: #fff7eb;
}

.delivery-gate.bad,
.quality-red {
  background: #fff1f2;
}

.materials-grid {
  background: #fbfcfe;
}

.material-tile {
  border-color: #d8e0ea;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.035);
}

.report-preview iframe,
.text-preview,
.log-view,
.parent-report-preview,
.spec-editor textarea {
  border-color: #d8e0ea;
}

.toast {
  background: #111827;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
}

@media (max-width: 1180px) {
  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    background: #f2f5f9;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    min-height: 0;
    padding: 16px;
  }

  .topbar h2 {
    font-size: 25px;
  }

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

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

  .admin-nav-item {
    min-height: 42px;
  }

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

  body[data-has-current-case="true"] .production-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.web-design-plugin-ready {
  background:
    linear-gradient(180deg, #e8edf4 0, #f7f9fc 210px, #f1f4f8 100%),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.035) 0 1px, transparent 1px 84px);
}

body.web-design-plugin-ready .sidebar {
  background:
    linear-gradient(180deg, rgba(49, 87, 213, 0.13), transparent 280px),
    linear-gradient(135deg, rgba(23, 107, 95, 0.22), transparent 34%),
    linear-gradient(180deg, #0f1724 0%, #0b111d 100%);
}

body.web-design-plugin-ready .workspace {
  padding: 22px 26px 34px;
}

body.web-design-plugin-ready .topbar {
  min-height: 104px;
  align-items: center;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(174, 185, 202, 0.72);
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(23, 107, 95, 0.075), transparent 40%),
    linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: var(--shadow);
}

body.web-design-plugin-ready .topbar h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 860;
}

body.web-design-plugin-ready .panel,
body.web-design-plugin-ready .stage,
body.web-design-plugin-ready .material-tile,
body.web-design-plugin-ready .ocr-review-card,
body.web-design-plugin-ready .quality-item,
body.web-design-plugin-ready .quality-empty,
body.web-design-plugin-ready .quality-ok {
  box-shadow: var(--shadow-soft);
}

body.web-design-plugin-ready .panel-heading {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.empty-state {
  min-height: 220px;
  align-content: center;
  border-color: rgba(174, 185, 202, 0.7);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.empty-inner {
  max-width: 560px;
}

.empty-inner h3 {
  font-size: 20px;
}

.empty-inner p {
  margin: 0;
  color: #667085;
}

#productionConsole + .empty-state {
  min-height: 132px;
  margin-top: 10px;
}

#pluginPanels + #emptyState {
  min-height: 132px;
  height: auto;
  padding: 24px;
  margin-top: 10px;
}

#productionConsole + .empty-state .empty-inner h3 {
  margin-bottom: 6px;
}

#productionConsole + .empty-state .empty-kicker {
  display: block;
  margin-bottom: 5px;
  color: #2f6fd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#productionConsole + .empty-state .empty-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  color: #52719d;
  font-size: 11px;
}

#productionConsole + .empty-state .empty-flow span {
  padding: 5px 9px;
  border: 1px solid rgba(75, 133, 218, .2);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

#productionConsole + .empty-state .empty-flow i {
  color: #8aa8d2;
  font-style: normal;
}

@media (max-width: 720px) {
  body.web-design-plugin-ready .workspace {
    padding: 14px;
  }

  body.web-design-plugin-ready .topbar {
    min-height: 0;
    padding: 16px;
  }

  body.web-design-plugin-ready .topbar h2 {
    font-size: 25px;
  }
}

/* YFLOS high-end redesign v4: private intelligence atelier */
:root {
  --bg: #f1f3f2;
  --surface: #fffefa;
  --surface-2: #f6f5ef;
  --surface-3: #ecefe8;
  --line: #d8d1c0;
  --line-strong: #bda56d;
  --text: #151922;
  --muted: #626b76;
  --muted-2: #88909a;
  --accent: #0c7668;
  --accent-2: #c09a4a;
  --ok: #167a44;
  --warn: #a56412;
  --bad: #b93636;
  --blue: #3658c9;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 64px rgba(12, 16, 24, 0.13);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 34px rgba(12, 16, 24, 0.09);
}

body.web-design-plugin-ready {
  background:
    linear-gradient(180deg, #07090d 0, #101620 262px, #e5e8e8 262px, #f5f5f1 100%),
    repeating-linear-gradient(135deg, rgba(192, 154, 74, 0.09) 0 1px, transparent 1px 22px);
  color: var(--text);
}

body.web-design-plugin-ready .app-shell {
  grid-template-columns: 336px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0 336px, transparent 336px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 320px);
}

body.web-design-plugin-ready .sidebar {
  border-right: 1px solid rgba(192, 154, 74, 0.3);
  background:
    linear-gradient(180deg, rgba(192, 154, 74, 0.12), transparent 30%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #07090d 0%, #11161e 48%, #07110f 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 18px 0 56px rgba(7, 9, 13, 0.18);
}

body.web-design-plugin-ready .brand {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(192, 154, 74, 0.22);
}

body.web-design-plugin-ready .brand-mark {
  width: 52px;
  height: 52px;
  border-color: rgba(220, 196, 137, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #0b1517 0%, #0c7668 54%, #c09a4a 100%);
  color: #fff8df;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.web-design-plugin-ready .brand h1 {
  color: #fffefa;
  font-size: 19px;
  font-weight: 860;
}

body.web-design-plugin-ready .brand p {
  color: #b6bdc5;
}

body.web-design-plugin-ready .search-row input,
body.web-design-plugin-ready .icon-button {
  border-color: rgba(192, 154, 74, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #f8f7ef;
}

body.web-design-plugin-ready .search-row input:focus {
  border-color: rgba(220, 196, 137, 0.72);
  box-shadow: 0 0 0 3px rgba(192, 154, 74, 0.16);
}

body.web-design-plugin-ready .summary-pill,
body.web-design-plugin-ready .status-filter,
body.web-design-plugin-ready .case-item {
  border-color: rgba(192, 154, 74, 0.2);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.web-design-plugin-ready .summary-pill strong {
  color: #fffefa;
}

body.web-design-plugin-ready .summary-pill span,
body.web-design-plugin-ready .status-filter,
body.web-design-plugin-ready .case-line {
  color: #bbc4cc;
}

body.web-design-plugin-ready .status-filter.active,
body.web-design-plugin-ready .case-item:hover,
body.web-design-plugin-ready .case-item.active {
  border-color: rgba(220, 196, 137, 0.56);
  background:
    linear-gradient(90deg, rgba(192, 154, 74, 0.14), transparent 70%),
    rgba(12, 118, 104, 0.16);
}

body.web-design-plugin-ready .case-item.active::before {
  background: #d7bd78;
}

body.web-design-plugin-ready .case-name {
  color: #fffefa;
}

body.web-design-plugin-ready .workspace {
  padding: 26px 30px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.025) 210px, transparent 211px),
    linear-gradient(180deg, transparent 0, transparent 250px, rgba(255, 255, 255, 0.28) 250px);
}

body.web-design-plugin-ready .topbar {
  min-height: 136px;
  margin-bottom: 14px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(220, 196, 137, 0.34);
  border-left: 4px solid #c09a4a;
  background:
    linear-gradient(120deg, rgba(192, 154, 74, 0.2), transparent 36%),
    linear-gradient(135deg, #090d13 0%, #151c27 62%, #0b1514 100%);
  color: #fffefa;
  box-shadow: 0 28px 78px rgba(7, 9, 13, 0.34);
}

body.web-design-plugin-ready .eyeline {
  color: #d7bd78;
  font-size: 12px;
  font-weight: 820;
}

body.web-design-plugin-ready .topbar h2 {
  color: #fffefa;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 880;
  line-height: 1.06;
}

body.web-design-plugin-ready .topbar p {
  max-width: 760px;
  color: #d4d8dd;
  font-size: 14px;
}

body.web-design-plugin-ready .topbar .primary {
  background: linear-gradient(180deg, #e1c57a 0%, #b88a3c 100%);
  color: #11151c;
  box-shadow: 0 14px 30px rgba(192, 154, 74, 0.22);
}

body.web-design-plugin-ready .topbar .primary:hover {
  background: linear-gradient(180deg, #ead28e 0%, #c39747 100%);
}

body.web-design-plugin-ready .topbar .secondary {
  border-color: rgba(220, 196, 137, 0.36);
  background: rgba(255, 255, 255, 0.07);
  color: #f8f7ef;
}

body.web-design-plugin-ready .design-plugin-bar,
body.web-design-plugin-ready .admin-nav {
  border: 1px solid rgba(220, 196, 137, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    #0d121a;
  box-shadow: 0 18px 48px rgba(7, 9, 13, 0.22);
  backdrop-filter: blur(16px);
}

body.web-design-plugin-ready .design-plugin-title strong {
  color: #fffefa;
}

body.web-design-plugin-ready .design-plugin-actions button,
body.web-design-plugin-ready .admin-nav-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #e5e8ed;
  box-shadow: none;
}

body.web-design-plugin-ready .design-plugin-actions button:hover,
body.web-design-plugin-ready .design-plugin-actions button.active,
body.web-design-plugin-ready .admin-nav-item:hover,
body.web-design-plugin-ready .admin-nav-item.active {
  border-color: rgba(220, 196, 137, 0.46);
  background:
    linear-gradient(180deg, rgba(192, 154, 74, 0.22), rgba(12, 118, 104, 0.16));
  color: #fffefa;
  box-shadow: inset 0 -2px 0 #d7bd78;
}

body.web-design-plugin-ready .admin-panel-head,
body.web-design-plugin-ready .production-console,
body.web-design-plugin-ready .ops-card,
body.web-design-plugin-ready .panel,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .student-profile-schema,
body.web-design-plugin-ready .permission-card,
body.web-design-plugin-ready .permission-note,
body.web-design-plugin-ready .empty-state {
  border: 1px solid rgba(192, 154, 74, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 243, 0.94)),
    #fffefa;
  box-shadow: var(--shadow-soft);
}

body.web-design-plugin-ready .admin-panel-head,
body.web-design-plugin-ready .production-console {
  padding: 18px;
}

body.web-design-plugin-ready .admin-panel-head h3,
body.web-design-plugin-ready .production-head h3,
body.web-design-plugin-ready .panel-heading h3,
body.web-design-plugin-ready .ops-card-head h4 {
  color: #151922;
  font-weight: 860;
}

body.web-design-plugin-ready .admin-panel-head p,
body.web-design-plugin-ready .production-head p,
body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card p,
body.web-design-plugin-ready .stakeholder-card p,
body.web-design-plugin-ready .backlog-card p,
body.web-design-plugin-ready .profile-level-card p,
body.web-design-plugin-ready .ability-card p,
body.web-design-plugin-ready .subject-card p,
body.web-design-plugin-ready .workflow-module p,
body.web-design-plugin-ready .workflow-stage-card p,
body.web-design-plugin-ready .cadence-card p,
body.web-design-plugin-ready .output-card p,
body.web-design-plugin-ready .quality-release-card p,
body.web-design-plugin-ready .release-card p {
  color: #626b76;
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span,
body.web-design-plugin-ready .readiness-item,
body.web-design-plugin-ready .production-stat,
body.web-design-plugin-ready .student-stat {
  border-color: rgba(192, 154, 74, 0.22);
  background:
    linear-gradient(180deg, #fffefa, #f4f2ea);
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span {
  border: 1px solid rgba(192, 154, 74, 0.18);
  border-radius: 6px;
  color: #775d2b;
}

body.web-design-plugin-ready .readiness-item strong,
body.web-design-plugin-ready .production-stat strong,
body.web-design-plugin-ready .student-stat strong {
  color: #151922;
  font-weight: 880;
}

body.web-design-plugin-ready .production-console {
  background:
    linear-gradient(120deg, rgba(192, 154, 74, 0.12), transparent 34%),
    linear-gradient(180deg, #fffefa, #f2f5f0);
}

body.web-design-plugin-ready .production-stat.auto,
body.web-design-plugin-ready .stage.done,
body.web-design-plugin-ready .delivery-gate.ok,
body.web-design-plugin-ready .quality-green {
  border-color: rgba(12, 118, 104, 0.32);
  background: linear-gradient(180deg, #f3fbf7, #e8f4ef);
}

body.web-design-plugin-ready .production-stat.manual,
body.web-design-plugin-ready .delivery-gate.warn,
body.web-design-plugin-ready .quality-yellow {
  border-color: rgba(192, 154, 74, 0.34);
  background: linear-gradient(180deg, #fff9e8, #f7efd8);
}

body.web-design-plugin-ready .production-stat.blocked,
body.web-design-plugin-ready .delivery-gate.bad,
body.web-design-plugin-ready .quality-red {
  border-color: rgba(185, 54, 54, 0.28);
  background: linear-gradient(180deg, #fff4f3, #f8e8e7);
}

body.web-design-plugin-ready .production-stat.done {
  border-color: rgba(54, 88, 201, 0.28);
  background: linear-gradient(180deg, #f1f4ff, #e8edf9);
}

body.web-design-plugin-ready .stage,
body.web-design-plugin-ready .delivery-gate,
body.web-design-plugin-ready .layer-card,
body.web-design-plugin-ready .stakeholder-card,
body.web-design-plugin-ready .profile-level-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card,
body.web-design-plugin-ready .workflow-module,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .cadence-card,
body.web-design-plugin-ready .output-card,
body.web-design-plugin-ready .quality-release-card,
body.web-design-plugin-ready .release-card,
body.web-design-plugin-ready .backlog-card,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .staff-row,
body.web-design-plugin-ready .ability-database-card,
body.web-design-plugin-ready .material-tile,
body.web-design-plugin-ready .ocr-review-card,
body.web-design-plugin-ready .quality-item,
body.web-design-plugin-ready .quality-empty,
body.web-design-plugin-ready .quality-ok {
  border-color: rgba(192, 154, 74, 0.22);
  background: linear-gradient(180deg, #fffefa, #f7f6f0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(12, 16, 24, 0.06);
}

body.web-design-plugin-ready .layer-card.ready,
body.web-design-plugin-ready .stakeholder-card.ready,
body.web-design-plugin-ready .workflow-module.ready,
body.web-design-plugin-ready .cadence-card {
  border-left-color: #0c7668;
}

body.web-design-plugin-ready .layer-card.pending,
body.web-design-plugin-ready .stakeholder-card.pending,
body.web-design-plugin-ready .workflow-module.pending {
  border-left-color: #c09a4a;
}

body.web-design-plugin-ready .layer-card.building,
body.web-design-plugin-ready .stakeholder-card.building,
body.web-design-plugin-ready .workflow-module.building,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card {
  border-left-color: #3658c9;
}

body.web-design-plugin-ready .layer-index,
body.web-design-plugin-ready .workflow-module b,
body.web-design-plugin-ready .backlog-card b,
body.web-design-plugin-ready .workflow-stage-card b {
  border: 1px solid rgba(192, 154, 74, 0.26);
  background: linear-gradient(180deg, #f8f1de, #e9dcc2);
  color: #775d2b;
}

body.web-design-plugin-ready .panel {
  overflow: hidden;
}

body.web-design-plugin-ready .panel-heading {
  min-height: 58px;
  background:
    linear-gradient(90deg, rgba(192, 154, 74, 0.11), transparent 32%),
    linear-gradient(180deg, #fffefa, #f4f3ec);
}

body.web-design-plugin-ready .tabs {
  gap: 7px;
}

body.web-design-plugin-ready .tab {
  min-height: 40px;
  border-color: transparent;
  color: #626b76;
  font-weight: 760;
}

body.web-design-plugin-ready .tab.active {
  border-color: rgba(192, 154, 74, 0.34);
  background: linear-gradient(180deg, #fffefa, #f2ecdc);
  color: #151922;
  box-shadow: inset 0 -2px 0 #c09a4a;
}

body.web-design-plugin-ready .primary {
  background: linear-gradient(180deg, #0e8878, #0b675c);
  color: #fffefa;
  box-shadow: 0 12px 24px rgba(12, 118, 104, 0.18);
}

body.web-design-plugin-ready .secondary {
  border-color: rgba(192, 154, 74, 0.32);
  background: linear-gradient(180deg, #fffefa, #f4f2ea);
  color: #151922;
}

body.web-design-plugin-ready .primary:hover,
body.web-design-plugin-ready .secondary:hover,
body.web-design-plugin-ready .icon-button:hover,
body.web-design-plugin-ready .design-plugin-actions button:hover {
  transform: translateY(-1px);
}

body.web-design-plugin-ready .materials-grid {
  border: 1px solid rgba(192, 154, 74, 0.18);
  background:
    repeating-linear-gradient(135deg, rgba(192, 154, 74, 0.06) 0 1px, transparent 1px 18px),
    #f7f7f1;
}

body.web-design-plugin-ready .report-preview iframe,
body.web-design-plugin-ready .text-preview,
body.web-design-plugin-ready .log-view,
body.web-design-plugin-ready .parent-report-preview,
body.web-design-plugin-ready .spec-editor textarea {
  border-color: rgba(192, 154, 74, 0.28);
}

body.web-design-plugin-ready .empty-state {
  min-height: 240px;
  background:
    linear-gradient(120deg, rgba(192, 154, 74, 0.12), transparent 42%),
    linear-gradient(180deg, #fffefa, #f4f3ec);
}

body.web-design-plugin-ready .empty-inner h3 {
  color: #151922;
  font-size: 22px;
  font-weight: 860;
}

body.web-design-plugin-ready .empty-inner p {
  color: #626b76;
}

body.web-design-plugin-ready .toast {
  border: 1px solid rgba(220, 196, 137, 0.38);
  background: #101620;
  box-shadow: 0 24px 58px rgba(7, 9, 13, 0.34);
}

@media (max-width: 1280px) {
  body.web-design-plugin-ready .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body.web-design-plugin-ready .app-shell {
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, #07090d 0, #101620 280px, #f5f5f1 280px);
  }

  body.web-design-plugin-ready .sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(192, 154, 74, 0.28);
  }
}

@media (max-width: 720px) {
  body.web-design-plugin-ready {
    background: linear-gradient(180deg, #07090d 0, #111820 210px, #f5f5f1 210px);
  }

  body.web-design-plugin-ready .app-shell {
    display: flex;
    flex-direction: column;
    background: transparent;
  }

  body.web-design-plugin-ready .workspace {
    order: 1;
    padding: 14px;
  }

  body.web-design-plugin-ready .sidebar {
    order: 2;
  }

  body.web-design-plugin-ready .topbar {
    min-height: 0;
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  body.web-design-plugin-ready .topbar h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  body.web-design-plugin-ready .topbar-actions,
  body.web-design-plugin-ready .production-actions,
  body.web-design-plugin-ready .admin-panel-tools {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.web-design-plugin-ready .topbar-actions button,
  body.web-design-plugin-ready .production-actions button,
  body.web-design-plugin-ready .admin-panel-tools button {
    width: 100%;
  }

  body.web-design-plugin-ready .design-plugin-bar {
    grid-template-columns: 1fr;
  }

  body.web-design-plugin-ready .design-plugin-actions,
  body.web-design-plugin-ready .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* YFLOS ocean voyage motion theme v5 */
:root {
  --bg: #eef7f8;
  --surface: #fbffff;
  --surface-2: #eef8f9;
  --surface-3: #ddecef;
  --line: #b9d4d8;
  --line-strong: #6fb6c6;
  --text: #102130;
  --muted: #5d7080;
  --muted-2: #8394a1;
  --accent: #0a8f9c;
  --accent-2: #d9b66d;
  --ok: #0f8555;
  --warn: #a86b16;
  --bad: #b83b42;
  --blue: #1b66d8;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 28px 70px rgba(4, 22, 41, 0.16);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 38px rgba(4, 22, 41, 0.11);
}

body.web-design-plugin-ready {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #021126 0, #052a4b 246px, #0a4263 246px, #e7f2f3 247px, #f6fbfa 100%),
    repeating-linear-gradient(115deg, rgba(119, 210, 229, 0.09) 0 1px, transparent 1px 26px);
}

body.web-design-plugin-ready .voyage-dynamics {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(97, 205, 232, 0.13) 24%, transparent 36% 100%),
    repeating-linear-gradient(118deg, rgba(165, 231, 244, 0.045) 0 1px, transparent 1px 34px);
  animation: yflosOceanLight 18s ease-in-out infinite alternate;
}

body.web-design-plugin-ready .voyage-wave {
  position: absolute;
  left: -14vw;
  right: -14vw;
  height: 220px;
  opacity: 0.58;
  background:
    repeating-radial-gradient(ellipse at 50% 125%, transparent 0 34px, rgba(114, 215, 235, 0.22) 36px 37px, transparent 39px 72px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewY(-4deg);
  animation: yflosWaveDrift 22s linear infinite;
}

body.web-design-plugin-ready .voyage-wave-a {
  top: 82px;
}

body.web-design-plugin-ready .voyage-wave-b {
  top: 192px;
  opacity: 0.42;
  animation-duration: 28s;
  animation-direction: reverse;
}

body.web-design-plugin-ready .voyage-wave-c {
  bottom: 18vh;
  opacity: 0.2;
  animation-duration: 34s;
}

body.web-design-plugin-ready .voyage-route {
  position: absolute;
  top: 142px;
  left: clamp(360px, 33vw, 560px);
  width: min(58vw, 820px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(225, 199, 127, 0.78) 38%, rgba(117, 222, 242, 0.8) 62%, transparent);
  box-shadow: 0 0 22px rgba(117, 222, 242, 0.24);
  transform: rotate(-6deg);
  animation: yflosRoutePulse 5.8s ease-in-out infinite;
}

body.web-design-plugin-ready .voyage-route::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -11px;
  width: 18px;
  height: 22px;
  background: linear-gradient(145deg, #f6d98d, #55d6e9 58%, transparent 59%);
  clip-path: polygon(0 100%, 42% 0, 100% 100%);
  filter: drop-shadow(0 0 12px rgba(117, 222, 242, 0.36));
}

body.web-design-plugin-ready .app-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: 336px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(2, 13, 30, 0.97) 0 336px, rgba(255, 255, 255, 0) 336px),
    linear-gradient(180deg, rgba(68, 182, 210, 0.08), transparent 330px);
}

body.web-design-plugin-ready .sidebar {
  border-right: 1px solid rgba(112, 202, 222, 0.3);
  background:
    linear-gradient(180deg, rgba(217, 182, 109, 0.1), transparent 26%),
    repeating-linear-gradient(128deg, rgba(139, 222, 239, 0.055) 0 1px, transparent 1px 21px),
    linear-gradient(180deg, #020d1e 0%, #08223c 50%, #021426 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05), 18px 0 56px rgba(3, 23, 43, 0.2);
}

body.web-design-plugin-ready .brand-mark {
  position: relative;
  overflow: hidden;
  border-color: rgba(117, 222, 242, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(135deg, #03213d 0%, #0a8f9c 58%, #d9b66d 100%);
  box-shadow: 0 18px 42px rgba(0, 18, 38, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.web-design-plugin-ready .brand-mark::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(117, 222, 242, 0.16));
  clip-path: polygon(0 100%, 45% 0, 100% 100%);
  opacity: 0.8;
}

body.web-design-plugin-ready .search-row input,
body.web-design-plugin-ready .icon-button,
body.web-design-plugin-ready .summary-pill,
body.web-design-plugin-ready .status-filter,
body.web-design-plugin-ready .case-item {
  border-color: rgba(117, 222, 242, 0.22);
  background: rgba(255, 255, 255, 0.072);
}

body.web-design-plugin-ready .status-filter.active,
body.web-design-plugin-ready .case-item:hover,
body.web-design-plugin-ready .case-item.active {
  border-color: rgba(217, 182, 109, 0.58);
  background:
    linear-gradient(90deg, rgba(217, 182, 109, 0.14), transparent 70%),
    rgba(10, 143, 156, 0.18);
}

body.web-design-plugin-ready .case-item.active::before {
  background: linear-gradient(180deg, #f2cf7f, #5bd7ea);
}

body.web-design-plugin-ready .workspace {
  position: relative;
  padding: 26px 30px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.025) 230px, transparent 231px),
    linear-gradient(180deg, transparent 0, transparent 252px, rgba(246, 251, 250, 0.55) 252px);
}

body.web-design-plugin-ready .topbar {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border-color: rgba(117, 222, 242, 0.28);
  border-left-color: #d9b66d;
  background:
    linear-gradient(120deg, rgba(217, 182, 109, 0.16), transparent 34%),
    linear-gradient(150deg, rgba(77, 203, 231, 0.15), transparent 58%),
    linear-gradient(135deg, #031226 0%, #073052 56%, #021223 100%);
  box-shadow: 0 30px 84px rgba(2, 17, 38, 0.38);
}

body.web-design-plugin-ready .topbar > * {
  position: relative;
  z-index: 1;
}

body.web-design-plugin-ready .topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 48% 132%, transparent 0 30px, rgba(112, 202, 222, 0.18) 32px 33px, transparent 36px 64px),
    linear-gradient(95deg, transparent 0 28%, rgba(255, 255, 255, 0.08) 46%, transparent 68%);
  opacity: 0.72;
  transform: translate3d(-5%, 0, 0) skewY(-3deg);
  animation: yflosTopbarCurrent 16s linear infinite;
}

body.web-design-plugin-ready .topbar::after {
  content: "";
  position: absolute;
  right: clamp(28px, 6vw, 92px);
  bottom: 18px;
  width: clamp(72px, 10vw, 132px);
  height: clamp(78px, 10vw, 138px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(117, 222, 242, 0.18) 58%, transparent 59%),
    linear-gradient(90deg, rgba(217, 182, 109, 0.5), transparent 64%);
  clip-path: polygon(0 100%, 42% 0, 100% 100%);
  opacity: 0.18;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

body.web-design-plugin-ready .eyeline {
  color: #f0ce83;
}

body.web-design-plugin-ready .topbar .primary {
  background: linear-gradient(180deg, #f3d78c 0%, #c49946 100%);
  color: #071223;
  box-shadow: 0 14px 30px rgba(217, 182, 109, 0.24);
}

body.web-design-plugin-ready .topbar .secondary {
  border-color: rgba(117, 222, 242, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

body.web-design-plugin-ready .design-plugin-bar,
body.web-design-plugin-ready .admin-nav {
  position: relative;
  overflow: hidden;
  border-color: rgba(117, 222, 242, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.042)),
    #061528;
  box-shadow: 0 18px 48px rgba(3, 23, 43, 0.23);
}

body.web-design-plugin-ready .design-plugin-bar::before,
body.web-design-plugin-ready .admin-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 28%, rgba(117, 222, 242, 0.12) 48%, transparent 70%);
  transform: translateX(-58%);
  animation: yflosSurfaceSweep 9s ease-in-out infinite;
}

body.web-design-plugin-ready .design-plugin-bar > *,
body.web-design-plugin-ready .admin-nav > * {
  position: relative;
  z-index: 1;
}

body.web-design-plugin-ready .design-plugin-actions button:hover,
body.web-design-plugin-ready .design-plugin-actions button.active,
body.web-design-plugin-ready .admin-nav-item:hover,
body.web-design-plugin-ready .admin-nav-item.active {
  border-color: rgba(217, 182, 109, 0.5);
  background:
    linear-gradient(180deg, rgba(217, 182, 109, 0.2), rgba(10, 143, 156, 0.18));
  box-shadow: inset 0 -2px 0 #f0ce83;
}

body.web-design-plugin-ready .admin-panel-head,
body.web-design-plugin-ready .production-console,
body.web-design-plugin-ready .ops-card,
body.web-design-plugin-ready .panel,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .student-profile-schema,
body.web-design-plugin-ready .permission-card,
body.web-design-plugin-ready .permission-note,
body.web-design-plugin-ready .empty-state {
  border-color: rgba(111, 182, 198, 0.38);
  background:
    linear-gradient(180deg, rgba(251, 255, 255, 0.97), rgba(239, 248, 249, 0.95)),
    #fbffff;
  box-shadow: var(--shadow-soft);
}

body.web-design-plugin-ready .production-console {
  background:
    linear-gradient(116deg, rgba(117, 222, 242, 0.12), transparent 38%),
    linear-gradient(180deg, #fbffff, #edf8f8);
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span,
body.web-design-plugin-ready .readiness-item,
body.web-design-plugin-ready .production-stat,
body.web-design-plugin-ready .student-stat {
  border-color: rgba(111, 182, 198, 0.28);
  background: linear-gradient(180deg, #fbffff, #eaf5f6);
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span {
  color: #277485;
}

body.web-design-plugin-ready .stage,
body.web-design-plugin-ready .delivery-gate,
body.web-design-plugin-ready .layer-card,
body.web-design-plugin-ready .stakeholder-card,
body.web-design-plugin-ready .profile-level-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card,
body.web-design-plugin-ready .workflow-module,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .cadence-card,
body.web-design-plugin-ready .output-card,
body.web-design-plugin-ready .quality-release-card,
body.web-design-plugin-ready .release-card,
body.web-design-plugin-ready .backlog-card,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .staff-row,
body.web-design-plugin-ready .ability-database-card,
body.web-design-plugin-ready .material-tile,
body.web-design-plugin-ready .ocr-review-card,
body.web-design-plugin-ready .quality-item,
body.web-design-plugin-ready .quality-empty,
body.web-design-plugin-ready .quality-ok {
  border-color: rgba(111, 182, 198, 0.28);
  background: linear-gradient(180deg, #fbffff, #edf7f8);
}

body.web-design-plugin-ready .layer-card.ready,
body.web-design-plugin-ready .stakeholder-card.ready,
body.web-design-plugin-ready .workflow-module.ready,
body.web-design-plugin-ready .cadence-card {
  border-left-color: #0a8f9c;
}

body.web-design-plugin-ready .layer-card.pending,
body.web-design-plugin-ready .stakeholder-card.pending,
body.web-design-plugin-ready .workflow-module.pending {
  border-left-color: #d9b66d;
}

body.web-design-plugin-ready .layer-card.building,
body.web-design-plugin-ready .stakeholder-card.building,
body.web-design-plugin-ready .workflow-module.building,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card {
  border-left-color: #1b66d8;
}

body.web-design-plugin-ready .layer-index,
body.web-design-plugin-ready .workflow-module b,
body.web-design-plugin-ready .backlog-card b,
body.web-design-plugin-ready .workflow-stage-card b {
  border-color: rgba(111, 182, 198, 0.32);
  background: linear-gradient(180deg, #e7fbfd, #cfeef3);
  color: #0b7180;
}

body.web-design-plugin-ready .panel-heading {
  background:
    linear-gradient(90deg, rgba(117, 222, 242, 0.12), transparent 34%),
    linear-gradient(180deg, #fbffff, #eaf5f6);
}

body.web-design-plugin-ready .tab.active {
  border-color: rgba(111, 182, 198, 0.38);
  background: linear-gradient(180deg, #fbffff, #e3f1f3);
  box-shadow: inset 0 -2px 0 #0a8f9c;
}

body.web-design-plugin-ready .primary {
  background: linear-gradient(180deg, #0aa5b2, #087987);
  color: #fbffff;
  box-shadow: 0 12px 24px rgba(10, 143, 156, 0.18);
}

body.web-design-plugin-ready .secondary {
  border-color: rgba(111, 182, 198, 0.34);
  background: linear-gradient(180deg, #fbffff, #eef8f9);
}

body.web-design-plugin-ready .production-stat.auto,
body.web-design-plugin-ready .stage.done,
body.web-design-plugin-ready .delivery-gate.ok,
body.web-design-plugin-ready .quality-green {
  border-color: rgba(10, 143, 156, 0.34);
  background: linear-gradient(180deg, #effcfa, #dff3f2);
}

body.web-design-plugin-ready .production-stat.manual,
body.web-design-plugin-ready .delivery-gate.warn,
body.web-design-plugin-ready .quality-yellow {
  border-color: rgba(217, 182, 109, 0.36);
  background: linear-gradient(180deg, #fff9e8, #f6efd9);
}

body.web-design-plugin-ready .production-stat.done {
  border-color: rgba(27, 102, 216, 0.28);
  background: linear-gradient(180deg, #eef5ff, #e1ebfb);
}

body.web-design-plugin-ready .empty-state {
  background:
    linear-gradient(118deg, rgba(117, 222, 242, 0.12), transparent 44%),
    linear-gradient(180deg, #fbffff, #edf7f8);
}

@keyframes yflosOceanLight {
  0% {
    background-position: 0 0, 0 0;
    opacity: 0.88;
  }
  100% {
    background-position: 180px 0, 260px 0;
    opacity: 1;
  }
}

@keyframes yflosWaveDrift {
  0% {
    transform: translate3d(-4%, 0, 0) skewY(-4deg);
  }
  100% {
    transform: translate3d(4%, 0, 0) skewY(-4deg);
  }
}

@keyframes yflosRoutePulse {
  0%,
  100% {
    opacity: 0.38;
    transform: rotate(-6deg) translateX(-8px);
  }
  50% {
    opacity: 0.9;
    transform: rotate(-6deg) translateX(12px);
  }
}

@keyframes yflosTopbarCurrent {
  0% {
    transform: translate3d(-5%, 0, 0) skewY(-3deg);
  }
  100% {
    transform: translate3d(5%, 0, 0) skewY(-3deg);
  }
}

@keyframes yflosSurfaceSweep {
  0%,
  68% {
    transform: translateX(-64%);
  }
  100% {
    transform: translateX(72%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.web-design-plugin-ready .voyage-dynamics,
  body.web-design-plugin-ready .voyage-wave,
  body.web-design-plugin-ready .voyage-route,
  body.web-design-plugin-ready .topbar::before,
  body.web-design-plugin-ready .design-plugin-bar::before,
  body.web-design-plugin-ready .admin-nav::before {
    animation: none;
  }

  body.web-design-plugin-ready .primary:hover,
  body.web-design-plugin-ready .secondary:hover,
  body.web-design-plugin-ready .icon-button:hover,
  body.web-design-plugin-ready .design-plugin-actions button:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  body.web-design-plugin-ready .app-shell {
    background: linear-gradient(180deg, #021126 0, #062742 280px, #f6fbfa 280px);
  }

  body.web-design-plugin-ready .voyage-route {
    left: 18vw;
    width: 72vw;
  }
}

@media (max-width: 720px) {
  body.web-design-plugin-ready {
    background: linear-gradient(180deg, #021126 0, #062742 224px, #f6fbfa 224px);
  }

  body.web-design-plugin-ready .voyage-wave {
    height: 160px;
  }

  body.web-design-plugin-ready .voyage-route {
    top: 96px;
    left: 18vw;
    width: 70vw;
    opacity: 0.62;
  }

  body.web-design-plugin-ready .topbar {
    min-height: 0;
  }

  body.web-design-plugin-ready .topbar::after {
    right: 14px;
    bottom: 14px;
    width: 74px;
    height: 78px;
    opacity: 0.13;
  }
}

/* YFLOS ocean brand hero v7: original sea-inspired header */
body.web-design-plugin-ready .topbar {
  min-height: 206px;
  align-items: center;
  isolation: isolate;
  border-color: rgba(180, 219, 255, 0.38);
  border-left-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(1, 11, 30, 0.94) 0%, rgba(3, 21, 56, 0.78) 38%, rgba(5, 71, 159, 0.28) 72%, rgba(21, 108, 223, 0.08) 100%),
    radial-gradient(ellipse at 84% 18%, rgba(96, 162, 255, 0.42) 0 18%, transparent 48%),
    radial-gradient(ellipse at 30% 110%, rgba(20, 92, 205, 0.78) 0 28%, transparent 58%),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #1d67dc 0%, #1252b8 38%, #073982 70%, #03255c 100%);
  background-size: auto, 100% 100%, 100% 100%, 240px 100%, 100% 100%;
  box-shadow: 0 32px 88px rgba(2, 24, 62, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.web-design-plugin-ready .topbar::before {
  background:
    radial-gradient(ellipse at 58% 116%, transparent 0 28px, rgba(235, 247, 255, 0.22) 29px 31px, transparent 33px 66px),
    radial-gradient(ellipse at 18% 118%, transparent 0 22px, rgba(146, 199, 255, 0.16) 23px 25px, transparent 27px 58px),
    linear-gradient(94deg, transparent 0 20%, rgba(255, 255, 255, 0.2) 42%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 32%, rgba(0, 35, 98, 0.3));
  background-size: 420px 156px, 360px 126px, 100% 100%, 100% 100%;
  opacity: 0.92;
  transform: translate3d(-3%, 0, 0) skewY(-1.5deg);
  animation: yflosInspiredSeaDrift 18s ease-in-out infinite alternate;
}

body.web-design-plugin-ready .topbar::after {
  display: block;
  right: clamp(54px, 10vw, 150px);
  top: 32px;
  bottom: auto;
  width: clamp(126px, 13vw, 184px);
  height: clamp(112px, 11vw, 156px);
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-bottom-color: transparent;
  border-radius: 999px 999px 48px 48px;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.7) 48% 52%, transparent 53%) 50% 52% / 72px 76px no-repeat,
    linear-gradient(138deg, transparent 0 31%, rgba(255, 255, 255, 0.72) 32% 55%, transparent 56%) 39% 53% / 72px 80px no-repeat,
    linear-gradient(222deg, transparent 0 31%, rgba(255, 255, 255, 0.72) 32% 55%, transparent 56%) 61% 53% / 72px 80px no-repeat,
    radial-gradient(ellipse at 50% 88%, rgba(255, 255, 255, 0.72) 0 34%, transparent 35%) 50% 76% / 126px 42px no-repeat;
  clip-path: none;
  opacity: 0.24;
  filter: drop-shadow(0 16px 28px rgba(1, 13, 34, 0.22));
  animation: yflosSailMarkFloat 7s ease-in-out infinite;
}

body.web-design-plugin-ready .topbar > div:first-child {
  max-width: min(760px, 60%);
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.web-design-plugin-ready .topbar .eyeline {
  color: #e7f3ff;
  text-shadow: 0 2px 10px rgba(1, 16, 38, 0.45);
}

body.web-design-plugin-ready .topbar h2 {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(1, 16, 38, 0.5);
}

body.web-design-plugin-ready .topbar p {
  color: rgba(241, 248, 255, 0.88);
  text-shadow: 0 2px 10px rgba(1, 16, 38, 0.36);
}

body.web-design-plugin-ready .topbar-actions {
  position: relative;
  z-index: 2;
  padding: 10px;
  border: 1px solid rgba(205, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 19, 46, 0.28);
  backdrop-filter: blur(3px);
}

@keyframes yflosInspiredSeaDrift {
  0% {
    background-position: -80px 0, 40px 0, 0 0, 0 0;
  }
  100% {
    background-position: 120px 0, -80px 0, 0 0, 0 0;
  }
}

@keyframes yflosSailMarkFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@media (max-width: 1100px) {
  body.web-design-plugin-ready .topbar {
    min-height: 188px;
  }

  body.web-design-plugin-ready .topbar > div:first-child {
    max-width: min(760px, 76%);
  }
}

@media (max-width: 720px) {
  body.web-design-plugin-ready .topbar {
    min-height: 246px;
    background:
      linear-gradient(180deg, rgba(1, 11, 30, 0.88) 0%, rgba(3, 21, 56, 0.58) 58%, rgba(6, 69, 157, 0.18) 100%),
      radial-gradient(ellipse at 84% 16%, rgba(96, 162, 255, 0.38) 0 18%, transparent 48%),
      repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 16px),
      linear-gradient(180deg, #1d67dc 0%, #1252b8 42%, #073982 100%);
  }

  body.web-design-plugin-ready .topbar > div:first-child {
    max-width: 100%;
    padding: 14px;
  }

  body.web-design-plugin-ready .topbar-actions {
    padding: 8px;
  }

  body.web-design-plugin-ready .topbar::after {
    right: 18px;
    top: 24px;
    width: 108px;
    height: 96px;
    opacity: 0.14;
  }
}

/* YFLOS ocean palette v8: full UI system from the reference blues */
:root {
  --bg: #edf6ff;
  --surface: #fbfdff;
  --surface-2: #edf6ff;
  --surface-3: #dcecff;
  --line: rgba(49, 112, 205, 0.24);
  --line-strong: rgba(25, 96, 205, 0.48);
  --text: #061832;
  --muted: #526b8f;
  --muted-2: #8094b6;
  --accent: #155fcf;
  --accent-2: #ffffff;
  --blue: #1d67dc;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 30px 76px rgba(7, 54, 131, 0.18);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 44px rgba(7, 54, 131, 0.12);
}

body.web-design-plugin-ready {
  color: #061832;
  background:
    radial-gradient(ellipse at 72% -8%, rgba(69, 137, 255, 0.46) 0 22%, transparent 48%),
    linear-gradient(180deg, #021843 0, #053783 210px, #1d67dc 211px, #e8f4ff 212px, #f7fbff 100%);
}

body.web-design-plugin-ready .voyage-dynamics {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(112, 169, 255, 0.16) 28%, transparent 42% 100%),
    repeating-linear-gradient(118deg, rgba(235, 247, 255, 0.06) 0 1px, transparent 1px 30px);
}

body.web-design-plugin-ready .app-shell {
  background:
    linear-gradient(90deg, rgba(2, 13, 42, 0.98) 0 336px, rgba(255, 255, 255, 0) 336px),
    linear-gradient(180deg, rgba(29, 103, 220, 0.12), transparent 360px);
}

body.web-design-plugin-ready .sidebar {
  border-right-color: rgba(120, 174, 255, 0.28);
  background:
    radial-gradient(ellipse at 88% 8%, rgba(48, 127, 255, 0.28) 0 22%, transparent 48%),
    repeating-linear-gradient(128deg, rgba(235, 247, 255, 0.06) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #02122f 0%, #03235e 42%, #062f7f 76%, #021432 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08), 20px 0 58px rgba(4, 35, 92, 0.24);
}

body.web-design-plugin-ready .brand-mark {
  border-color: rgba(235, 247, 255, 0.46);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(145deg, #2f7dff 0%, #155fcf 48%, #073982 100%);
  box-shadow: 0 18px 42px rgba(0, 21, 68, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.web-design-plugin-ready .brand-mark::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(218, 237, 255, 0.24));
}

body.web-design-plugin-ready .brand h1,
body.web-design-plugin-ready .case-name {
  color: #ffffff;
}

body.web-design-plugin-ready .brand p,
body.web-design-plugin-ready .summary-pill span,
body.web-design-plugin-ready .status-filter,
body.web-design-plugin-ready .case-line {
  color: rgba(232, 244, 255, 0.72);
}

body.web-design-plugin-ready .search-row input,
body.web-design-plugin-ready .icon-button,
body.web-design-plugin-ready .summary-pill,
body.web-design-plugin-ready .status-filter,
body.web-design-plugin-ready .case-item {
  border-color: rgba(157, 200, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052)),
    rgba(5, 43, 112, 0.28);
  color: #ffffff;
}

body.web-design-plugin-ready .search-row input::placeholder {
  color: rgba(232, 244, 255, 0.58);
}

body.web-design-plugin-ready .search-row input:focus,
body.web-design-plugin-ready .icon-button:hover,
body.web-design-plugin-ready .status-filter.active,
body.web-design-plugin-ready .case-item:hover,
body.web-design-plugin-ready .case-item.active {
  border-color: rgba(235, 247, 255, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(47, 125, 255, 0.18) 72%),
    rgba(11, 78, 181, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 32px rgba(3, 28, 78, 0.22);
}

body.web-design-plugin-ready .case-item.active::before {
  background: linear-gradient(180deg, #ffffff, #76adff);
}

body.web-design-plugin-ready .workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.025) 246px, transparent 247px),
    linear-gradient(180deg, transparent 0, transparent 266px, rgba(242, 248, 255, 0.9) 267px);
}

body.web-design-plugin-ready .topbar {
  border-color: rgba(211, 232, 255, 0.48);
  border-left-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(90deg, rgba(1, 11, 30, 0.94) 0%, rgba(3, 23, 68, 0.8) 36%, rgba(5, 76, 178, 0.34) 70%, rgba(29, 103, 220, 0.12) 100%),
    radial-gradient(ellipse at 86% 16%, rgba(95, 159, 255, 0.5) 0 18%, transparent 48%),
    radial-gradient(ellipse at 28% 110%, rgba(24, 104, 225, 0.82) 0 30%, transparent 60%),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.17) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #2f7dff 0%, #1d67dc 38%, #0a4cad 70%, #032c70 100%);
  box-shadow: 0 32px 88px rgba(3, 42, 112, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.web-design-plugin-ready .topbar::before {
  background:
    radial-gradient(ellipse at 58% 116%, transparent 0 28px, rgba(245, 250, 255, 0.24) 29px 31px, transparent 33px 66px),
    radial-gradient(ellipse at 18% 118%, transparent 0 22px, rgba(163, 206, 255, 0.2) 23px 25px, transparent 27px 58px),
    linear-gradient(94deg, transparent 0 20%, rgba(255, 255, 255, 0.22) 42%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 32%, rgba(0, 35, 98, 0.28));
}

body.web-design-plugin-ready .topbar .eyeline,
body.web-design-plugin-ready .eyeline {
  color: #f7fbff;
  letter-spacing: 0;
}

body.web-design-plugin-ready .topbar h2,
body.web-design-plugin-ready .topbar p {
  color: #ffffff;
}

body.web-design-plugin-ready .topbar p {
  max-width: 720px;
}

body.web-design-plugin-ready .topbar .primary {
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, #ffffff 0%, #dcecff 100%);
  color: #05265e;
  box-shadow: 0 16px 34px rgba(1, 28, 76, 0.28);
}

body.web-design-plugin-ready .topbar .secondary {
  border-color: rgba(222, 239, 255, 0.34);
  background: rgba(5, 42, 111, 0.36);
  color: #ffffff;
}

body.web-design-plugin-ready .design-plugin-bar,
body.web-design-plugin-ready .admin-nav {
  border-color: rgba(157, 200, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.046)),
    linear-gradient(135deg, #061a43 0%, #082d73 100%);
  box-shadow: 0 18px 48px rgba(4, 34, 90, 0.24);
}

body.web-design-plugin-ready .design-plugin-bar::before,
body.web-design-plugin-ready .admin-nav::before {
  background: linear-gradient(100deg, transparent 0 28%, rgba(235, 247, 255, 0.16) 48%, transparent 70%);
}

body.web-design-plugin-ready .design-plugin-title strong,
body.web-design-plugin-ready .admin-nav-item {
  color: #f7fbff;
}

body.web-design-plugin-ready .design-plugin-actions button,
body.web-design-plugin-ready .admin-nav-item {
  border-color: rgba(157, 200, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

body.web-design-plugin-ready .design-plugin-actions button:hover,
body.web-design-plugin-ready .design-plugin-actions button.active,
body.web-design-plugin-ready .admin-nav-item:hover,
body.web-design-plugin-ready .admin-nav-item.active {
  border-color: rgba(245, 250, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(47, 125, 255, 0.2)),
    rgba(11, 77, 178, 0.42);
  box-shadow: inset 0 -2px 0 #ffffff, 0 12px 28px rgba(1, 28, 76, 0.2);
}

body.web-design-plugin-ready .admin-panel-head,
body.web-design-plugin-ready .production-console,
body.web-design-plugin-ready .ops-card,
body.web-design-plugin-ready .panel,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .student-profile-schema,
body.web-design-plugin-ready .permission-card,
body.web-design-plugin-ready .permission-note,
body.web-design-plugin-ready .empty-state {
  border-color: rgba(49, 112, 205, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.94)),
    #fbfdff;
  box-shadow: var(--shadow-soft);
}

body.web-design-plugin-ready .production-console {
  background:
    linear-gradient(116deg, rgba(29, 103, 220, 0.13), transparent 40%),
    linear-gradient(180deg, #fbfdff, #edf6ff);
}

body.web-design-plugin-ready .panel-heading {
  background:
    linear-gradient(90deg, rgba(29, 103, 220, 0.12), transparent 38%),
    linear-gradient(180deg, #fbfdff, #eaf4ff);
}

body.web-design-plugin-ready .admin-panel-head h3,
body.web-design-plugin-ready .production-head h3,
body.web-design-plugin-ready .panel-heading h3,
body.web-design-plugin-ready .ops-card-head h4,
body.web-design-plugin-ready .empty-inner h3 {
  color: #061832;
}

body.web-design-plugin-ready .admin-panel-head p,
body.web-design-plugin-ready .production-head p,
body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card p,
body.web-design-plugin-ready .stakeholder-card p,
body.web-design-plugin-ready .backlog-card p,
body.web-design-plugin-ready .profile-level-card p,
body.web-design-plugin-ready .ability-card p,
body.web-design-plugin-ready .subject-card p,
body.web-design-plugin-ready .workflow-module p,
body.web-design-plugin-ready .workflow-stage-card p,
body.web-design-plugin-ready .cadence-card p,
body.web-design-plugin-ready .output-card p,
body.web-design-plugin-ready .quality-release-card p,
body.web-design-plugin-ready .release-card p,
body.web-design-plugin-ready .empty-inner p {
  color: #526b8f;
}

body.web-design-plugin-ready .stage,
body.web-design-plugin-ready .delivery-gate,
body.web-design-plugin-ready .layer-card,
body.web-design-plugin-ready .stakeholder-card,
body.web-design-plugin-ready .profile-level-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card,
body.web-design-plugin-ready .workflow-module,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .cadence-card,
body.web-design-plugin-ready .output-card,
body.web-design-plugin-ready .quality-release-card,
body.web-design-plugin-ready .release-card,
body.web-design-plugin-ready .backlog-card,
body.web-design-plugin-ready .student-card,
body.web-design-plugin-ready .staff-row,
body.web-design-plugin-ready .ability-database-card,
body.web-design-plugin-ready .material-tile,
body.web-design-plugin-ready .ocr-review-card,
body.web-design-plugin-ready .quality-item,
body.web-design-plugin-ready .quality-empty,
body.web-design-plugin-ready .quality-ok {
  border-color: rgba(49, 112, 205, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.96)),
    #fbfdff;
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span,
body.web-design-plugin-ready .readiness-item,
body.web-design-plugin-ready .production-stat,
body.web-design-plugin-ready .student-stat {
  border-color: rgba(49, 112, 205, 0.22);
  background: linear-gradient(180deg, #fbfdff, #eaf4ff);
}

body.web-design-plugin-ready .ops-card-head span,
body.web-design-plugin-ready .layer-card > span,
body.web-design-plugin-ready .stakeholder-card span,
body.web-design-plugin-ready .workflow-module > span,
body.web-design-plugin-ready .readiness-item strong,
body.web-design-plugin-ready .production-stat strong,
body.web-design-plugin-ready .student-stat strong {
  color: #0a4cad;
}

body.web-design-plugin-ready .layer-card.ready,
body.web-design-plugin-ready .stakeholder-card.ready,
body.web-design-plugin-ready .workflow-module.ready,
body.web-design-plugin-ready .cadence-card,
body.web-design-plugin-ready .layer-card.building,
body.web-design-plugin-ready .stakeholder-card.building,
body.web-design-plugin-ready .workflow-module.building,
body.web-design-plugin-ready .workflow-stage-card,
body.web-design-plugin-ready .ability-card,
body.web-design-plugin-ready .subject-card {
  border-left-color: #1d67dc;
}

body.web-design-plugin-ready .layer-card.pending,
body.web-design-plugin-ready .stakeholder-card.pending,
body.web-design-plugin-ready .workflow-module.pending {
  border-left-color: #76adff;
}

body.web-design-plugin-ready .layer-index,
body.web-design-plugin-ready .workflow-module b,
body.web-design-plugin-ready .backlog-card b,
body.web-design-plugin-ready .workflow-stage-card b {
  border-color: rgba(49, 112, 205, 0.24);
  background: linear-gradient(180deg, #f7fbff, #dcecff);
  color: #0a4cad;
}

body.web-design-plugin-ready .tab.active {
  border-color: rgba(49, 112, 205, 0.34);
  background: linear-gradient(180deg, #fbfdff, #dfedff);
  box-shadow: inset 0 -2px 0 #1d67dc;
  color: #05265e;
}

body.web-design-plugin-ready .primary {
  border-color: rgba(29, 103, 220, 0.18);
  background: linear-gradient(180deg, #2f7dff, #155fcf);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(21, 95, 207, 0.22);
}

body.web-design-plugin-ready .secondary {
  border-color: rgba(49, 112, 205, 0.28);
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  color: #05265e;
}

body.web-design-plugin-ready .production-stat.auto,
body.web-design-plugin-ready .stage.done,
body.web-design-plugin-ready .delivery-gate.ok,
body.web-design-plugin-ready .quality-green {
  border-color: rgba(29, 103, 220, 0.26);
  background: linear-gradient(180deg, #f5faff, #e4f1ff);
}

body.web-design-plugin-ready .production-stat.manual,
body.web-design-plugin-ready .delivery-gate.warn,
body.web-design-plugin-ready .quality-yellow {
  border-color: rgba(118, 173, 255, 0.34);
  background: linear-gradient(180deg, #f9fcff, #eaf4ff);
}

body.web-design-plugin-ready .production-stat.done {
  border-color: rgba(21, 95, 207, 0.28);
  background: linear-gradient(180deg, #eef6ff, #dcecff);
}

body.web-design-plugin-ready .materials-grid,
body.web-design-plugin-ready .report-preview iframe,
body.web-design-plugin-ready .text-preview,
body.web-design-plugin-ready .log-view,
body.web-design-plugin-ready .parent-report-preview,
body.web-design-plugin-ready .spec-editor textarea,
body.web-design-plugin-ready input,
body.web-design-plugin-ready textarea,
body.web-design-plugin-ready select {
  border-color: rgba(49, 112, 205, 0.22);
}

body.web-design-plugin-ready .materials-grid {
  background:
    repeating-linear-gradient(135deg, rgba(29, 103, 220, 0.055) 0 1px, transparent 1px 18px),
    #f6faff;
}

body.web-design-plugin-ready .empty-state {
  background:
    linear-gradient(118deg, rgba(29, 103, 220, 0.12), transparent 44%),
    linear-gradient(180deg, #fbfdff, #edf6ff);
}

body.web-design-plugin-ready .toast {
  border-color: rgba(157, 200, 255, 0.38);
  background: #061a43;
  box-shadow: 0 24px 58px rgba(4, 34, 90, 0.34);
}

@media (max-width: 1100px) {
  body.web-design-plugin-ready .app-shell {
    background: linear-gradient(180deg, #021843 0, #053783 280px, #f7fbff 280px);
  }
}

@media (max-width: 720px) {
  body.web-design-plugin-ready {
    background: linear-gradient(180deg, #021843 0, #053783 224px, #f7fbff 224px);
  }

  body.web-design-plugin-ready .topbar {
    background:
      linear-gradient(180deg, rgba(1, 11, 30, 0.9) 0%, rgba(3, 23, 68, 0.6) 58%, rgba(29, 103, 220, 0.18) 100%),
      radial-gradient(ellipse at 84% 16%, rgba(95, 159, 255, 0.38) 0 18%, transparent 48%),
      repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 16px),
      linear-gradient(180deg, #2f7dff 0%, #1d67dc 42%, #073982 100%);
  }
}

/* YFLOS brand mark v9: white transparent company logo watermark */
body.web-design-plugin-ready .topbar::after {
  content: "";
  position: absolute;
  right: clamp(184px, 19vw, 262px);
  top: 28px;
  bottom: auto;
  z-index: 0;
  width: clamp(128px, 14vw, 176px);
  height: clamp(136px, 15vw, 184px);
  border: 0;
  border-radius: 0;
  background: url("/assets/yuanfan-logo-mark-white.png") center / contain no-repeat;
  opacity: 0.2;
  filter: drop-shadow(0 18px 32px rgba(1, 13, 34, 0.24));
  pointer-events: none;
  animation: yflosLogoWatermarkFloat 8s ease-in-out infinite;
}

@keyframes yflosLogoWatermarkFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@media (max-width: 1100px) {
  body.web-design-plugin-ready .topbar::after {
    right: 132px;
    top: 30px;
    width: 132px;
    height: 140px;
    opacity: 0.17;
  }
}

@media (max-width: 720px) {
  body.web-design-plugin-ready .topbar::after {
    right: 14px;
    top: 20px;
    width: 104px;
    height: 110px;
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.web-design-plugin-ready .topbar::after {
    animation: none;
  }
}

/* Final responsive guard: keep admin pages inside narrow in-app browser panes. */
@media (max-width: 720px) {
  .workspace,
  .web-design-plugin-ready .workspace,
  body.web-design-plugin-ready .workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    overflow-x: hidden;
  }

  .admin-panel,
  .production-console,
  .admin-panel-head,
  .ops-card,
  .permission-card,
  .permission-note,
  .empty-state,
  .service-layout,
  .permission-layout {
    min-width: 0;
    max-width: 100%;
  }

  .admin-panel-head,
  body.web-design-plugin-ready .admin-panel-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .admin-panel-head > *,
  .permission-current-role,
  .permission-current-role > * {
    min-width: 0;
    max-width: 100%;
  }

  .service-layout,
  .permission-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-card-head,
  .service-plan-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
  }

  .ops-card-head span {
    justify-content: start;
    place-items: center start;
    white-space: normal;
    text-align: left;
  }

  .service-plan-card,
  .service-plan-form,
  .service-plan-form-body,
  .service-subsection {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .coach-plan-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-plan-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    justify-content: stretch;
  }

  .service-plan-actions select,
  .service-plan-actions button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .service-subsection-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .service-subsection-head button {
    width: 100%;
  }

  .subsection-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .service-plan-grid,
  .service-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .parent-method-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .permission-current-role {
    justify-content: flex-start;
  }

  .permission-current-role select {
    width: 100%;
    min-width: 0;
  }
}

/* 管理员/创始人闪光文字 */
@keyframes char-rainbow {
  0% { color: #ff0000; }
  14% { color: #ff8800; }
  28% { color: #ffdd00; }
  42% { color: #00cc44; }
  57% { color: #0088ff; }
  71% { color: #4400ff; }
  85% { color: #aa00ff; }
  100% { color: #ff0000; }
}
@keyframes gold-glow {
  0% { color: #bf9530; text-shadow: 0 0 4px rgba(191,149,48,0.3); }
  50% { color: #fcf6ba; text-shadow: 0 0 8px rgba(252,246,186,0.5); }
  100% { color: #bf9530; text-shadow: 0 0 4px rgba(191,149,48,0.3); }
}
.current-user-tag.founder-glow .rainbow-char {
  animation: char-rainbow 1.8s linear infinite;
}
.current-user-tag.admin-glow .rainbow-char {
  animation: gold-glow 1.5s ease-in-out infinite;
}
.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.crop-card {
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.crop-card.warn {
  border-color: #a82a2a;
  box-shadow: 0 0 0 1px rgba(168, 42, 42, 0.35);
}
.crop-card a {
  display: block;
  background: #f4f6f8;
}
.crop-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid #e5e9ef;
}
.crop-info {
  padding: 8px 10px;
  font-size: 13px;
  color: #222833;
}
.crop-info strong {
  display: block;
  margin-bottom: 4px;
}
.crop-confidence {
  display: inline-block;
  font-size: 12px;
  color: #1e7a46;
  font-weight: 600;
}
.crop-confidence.danger {
  color: #a82a2a;
}
.crop-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff1f0;
  color: #a82a2a;
  font-size: 11px;
  font-weight: 600;
}
.crop-issues {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 11px;
  color: #8a1f1f;
  line-height: 1.5;
}
.status-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.status-chip.ok {
  background: #e7f5ec;
  color: #1e7a46;
}
.status-chip.warn {
  background: #fff4e5;
  color: #b56a00;
}
.crop-adjust-btn,
.crop-apply-btn {
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(30, 58, 95, 0.35);
  border-radius: 5px;
  background: #fff;
  color: #1a2a3a;
  font-size: 12px;
  cursor: pointer;
}
.crop-adjust-btn:hover,
.crop-apply-btn:hover {
  background: #eef2f7;
}
.crop-adjust-box {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed rgba(30, 58, 95, 0.35);
  border-radius: 5px;
  background: #f7f9fc;
}
.crop-adjust-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.crop-adjust-fields label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #4b5563;
}
.crop-adjust-fields input {
  width: 62px;
  padding: 3px 4px;
  border: 1px solid #ccd4dd;
  border-radius: 4px;
  font-size: 12px;
}
.complaint-list{display:flex;flex-direction:column;gap:10px}
.complaint-row{border:1px solid rgba(30,58,95,.16);border-radius:6px;background:#fff;padding:12px 14px}
.complaint-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.complaint-head strong{font-size:14px;color:#1a2a3a}
.complaint-status{font-size:12px;padding:2px 8px;border-radius:999px;font-weight:600}
.complaint-status.todo{background:#fff4e5;color:#b56a00}
.complaint-status.warn{background:#fde8e8;color:#a82a2a}
.complaint-status.done{background:#e7f5ec;color:#1e7a46}
.complaint-body{font-size:13px;color:#333;line-height:1.7;margin-bottom:6px;white-space:pre-wrap}
.complaint-meta{font-size:11px;color:#8a93a0;margin-bottom:8px}
.complaint-meta a{margin-left:8px;color:#176b87;text-decoration:none}
.complaint-note{display:block;width:100%;min-height:52px;box-sizing:border-box;margin-bottom:8px;padding:8px 10px;border:1px solid #ccd4dd;border-radius:6px;font-size:12px;line-height:1.6;resize:vertical;font-family:inherit}
.complaint-actions button{margin-right:8px;padding:5px 12px;border:1px solid rgba(30,58,95,.3);border-radius:6px;background:#fff;color:#1a2a3a;font-size:12px;cursor:pointer}
.complaint-actions button:hover{background:#eef2f7}

.review-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;margin-top:14px}
#reviewAccountSelect{min-width:260px;height:44px;font-size:15px;padding:0 14px}
.review-tabs{display:flex;flex-direction:column;gap:6px}
.review-tab{width:100%;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#626276;text-align:left;cursor:pointer}
.review-tab.active{border-color:var(--purple);background:var(--purple-soft);color:var(--purple-dark);font-weight:800}
.review-editor{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.review-editor label{display:flex;align-items:center;gap:8px;color:#535367;font-size:12px;font-weight:800}
.review-editor input{max-width:180px}
.review-account-label{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#334155;font-size:13px;font-weight:650}
.review-editor textarea{width:100%;min-height:140px;padding:10px;border:1px solid #dcdce9;border-radius:7px;font:inherit;box-sizing:border-box}
.review-source-box{max-height:220px;overflow:auto;margin-top:6px;padding:10px;border:1px solid #e5e5ef;border-radius:7px;background:#f8f8fc;font-size:12px;line-height:1.7;color:#555569;white-space:normal}
.review-question-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border:1px solid #e5e5ef;border-radius:7px;background:#fff;margin-bottom:4px;white-space:normal}
.review-result{max-height:360px;overflow:auto;padding:12px;border:1px solid #dcdce9;border-radius:8px;background:#fafaff;font-size:13px;line-height:1.75;color:#333;white-space:pre-wrap}
.review-list{grid-column:1 / -1;display:grid;gap:8px}
.review-item{padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.review-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.assess-report-list{display:grid;gap:8px}
.assess-quarantine-warning{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #f2c46d;border-radius:8px;background:#fff8e8;color:#7c4a03;font-size:12px;line-height:1.55}
.assess-quarantine-warning strong{font-weight:800;white-space:nowrap}
.assess-quarantine-warning span{overflow-wrap:anywhere}
.assess-report-item{padding:12px 14px;border:1px solid var(--line);border-left:4px solid #3b82f6;border-radius:8px;background:#fff}
.assess-report-item{min-width:0;overflow:hidden}
.assess-report-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.assess-report-kind{color:#0f172a;font-size:14px;font-weight:750;min-width:0;overflow-wrap:anywhere}
.assess-report-date{color:#64748b;font-size:12px;white-space:nowrap}
.assess-report-item h5{margin:0 0 5px;color:#0f172a;font-size:14px}
.assess-report-item p{margin:0 0 7px;color:#334155;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.assess-report-empty-copy{color:#94a3b8!important;font-style:italic}
.assess-report-item em{display:inline-block;color:#1d4ed8;font-size:12px;font-style:normal;font-weight:700}
.assess-report-statuses{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.assess-status-badge{display:inline-flex;align-items:center;min-height:23px;padding:2px 8px;border-radius:999px;font-size:11px;line-height:1.35;font-weight:750;white-space:nowrap}
.assess-status-badge.review-reviewed{background:#e9f8ef;color:#12663b}
.assess-status-badge.review-needs_review{background:#fff7df;color:#8a5a00}
.assess-status-badge.review-unknown{background:#f1f5f9;color:#64748b}
.assess-status-badge.evidence-verified{background:#e9f4ff;color:#155e9c}
.assess-status-badge.evidence-self_report_only{background:#fff1e8;color:#9a4b12}
.assess-status-badge.evidence-needs_review{background:#fff7df;color:#8a5a00}
.assess-status-badge.evidence-unknown{background:#f1f5f9;color:#64748b}
.assess-status-badge.edited{background:#f2eaff;color:#6d28a9}
.assess-report-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px;min-height:18px}
.assess-edit-meta,.assess-schema-meta{font-size:11px;color:#6d28a9;line-height:1.45;overflow-wrap:anywhere}
.assess-edit-meta.muted{color:#94a3b8}
.assess-schema-meta{color:#64748b}
.assess-report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.assess-report-actions button,.assess-report-full{min-height:32px;padding:6px 13px;border-radius:8px;font-size:12.5px;font-weight:700;cursor:pointer;transition:filter .16s ease,transform .16s ease,box-shadow .16s ease}
.assess-report-dl{border:1px solid #4a55ff;background:linear-gradient(135deg,#4a55ff,#6d5cff);color:#fff}
.assess-report-edit,.assess-report-full{border:1px solid #b4863c;background:linear-gradient(135deg,#b4863c,#d29b4a);color:#fff}
.assess-report-actions button:hover,.assess-report-full:hover{filter:brightness(1.04);box-shadow:0 3px 10px rgba(15,23,42,.12);transform:translateY(-1px)}
.assess-report-actions button:disabled,.assess-report-full:disabled{opacity:.58;cursor:wait;transform:none;box-shadow:none}
.assess-report-actions button:focus-visible,.assess-report-full:focus-visible,.assess-filter select:focus-visible,.assess-edit-close:focus-visible,.assess-edit-save:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}
.assess-filter{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding:10px 12px;border:1px dashed var(--line);border-radius:8px;background:#f8fafc}
.assess-filter label{font-size:12px;color:#475569;font-weight:600;white-space:nowrap}
.assess-filter select{max-width:min(460px,100%);padding:6px 10px;border:1px solid var(--line);border-radius:6px;font-size:13px;background:#fff;color:#0f172a;cursor:pointer;min-width:0}
.assess-student{border:1px solid var(--line);border-left:4px solid #b4863c;border-radius:10px;background:#fff;overflow:hidden;margin-bottom:10px}
.assess-student-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:linear-gradient(135deg,#f5faf8,#eef6f3);border-bottom:1px solid var(--line);flex-wrap:wrap}
.assess-student-name{display:flex;align-items:baseline;gap:7px 10px;flex-wrap:wrap;min-width:0}
.assess-student-name strong{color:#0c5f57;font-size:15px}
.assess-student-name span{color:#64748b;font-size:12px}
.assess-student-coverage,.assess-pending-count,.assess-reviewed-count{font-size:11px;line-height:1.4}
.assess-student-coverage{color:#475569;flex-basis:100%;overflow-wrap:anywhere}
.assess-pending-count{color:#a16207;font-weight:700}
.assess-reviewed-count{color:#15803d;font-weight:700}
.assess-student-actions{display:flex;gap:8px}
.assess-student-body{display:grid;gap:8px;padding:12px}
.assess-student-body .assess-report-item{border-left-color:#3b82f6}
.homepage-account-import,.homepage-pending-students{display:grid;gap:8px}
.homepage-import-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.homepage-import-row small{display:block;margin-top:4px;color:var(--muted)}
@media(max-width:900px){.review-layout{grid-template-columns:1fr}.homepage-import-row{grid-template-columns:1fr}}

/* 报告生成中 思考图标 */
.gen-spin{width:12px;height:12px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;animation:gen-spin .7s linear infinite;vertical-align:middle}
@keyframes gen-spin{to{transform:rotate(360deg)}}

/* 教练编辑测评报告弹窗 */
.assess-edit-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:9999}
.assess-edit-box{background:#fff;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.3);width:min(560px,92vw);max-height:86vh;overflow:auto;padding:22px 24px}
.assess-edit-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:17px;color:#0c5f57}
.assess-edit-close{background:none;border:none;font-size:24px;line-height:1;color:#94a3b8;cursor:pointer}
.assess-edit-context{margin:-5px 0 14px;color:#64748b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.aem-label{display:block;font-size:12px;font-weight:700;color:#33414d;margin:10px 0 5px}
.aem-ta{width:100%;min-height:60px;resize:vertical;border:1px solid #dbe4ec;border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;box-sizing:border-box}
.aem-ta:focus{border-color:#4a55ff;outline:3px solid rgba(74,85,255,.14)}
.assess-edit-actions{margin-top:14px;text-align:right}
.assess-edit-save{padding:8px 18px;border:none;border-radius:8px;background:linear-gradient(135deg,#0c5f57,#2b7d72);color:#fff;font-size:13px;font-weight:700;cursor:pointer}
@media(max-width:600px){
  .assess-filter{align-items:flex-start;flex-direction:column}
  .assess-filter select{width:100%;max-width:none}
  .assess-student-head{align-items:flex-start}
  .assess-student-actions{width:100%}
  .assess-report-actions button,.assess-report-full{flex:1 1 auto}
  .assess-edit-box{padding:18px 16px}
}
/* LLM Wiki 神经元知识中枢：深靛蓝底 + 单一青绿能量色，动态只表达节点状态。 */
.wiki-rag-search{display:flex;gap:8px;margin:10px 0}.wiki-rag-search input{flex:1;min-width:0}.wiki-rag-result{padding:12px 14px;border:1px solid rgba(54,68,98,.14);border-radius:12px;background:rgba(255,255,255,.72);margin-bottom:8px}.wiki-rag-result div{display:flex;justify-content:space-between;gap:8px}.wiki-rag-result small{color:#74809a}.wiki-rag-result p{margin:8px 0;color:#39445a;line-height:1.55;font-size:13px}
.wiki-network-node.rag .wiki-network-circle{fill:#213e72;stroke:#a8c8ff}.wiki-network-node.rag .wiki-network-halo{fill:rgba(91,141,239,.18)}.wiki-rag-detail{margin-top:10px;padding:14px;border-radius:12px;background:rgba(14,31,67,.06);border:1px solid rgba(54,68,98,.14)}.wiki-rag-detail h5{margin:4px 0;font-size:15px}.wiki-rag-detail p{white-space:pre-wrap;line-height:1.6;font-size:13px}.wiki-rag-detail.hidden{display:none}
.admin-nav-wiki { position:relative; }
.admin-nav-wiki .wiki-nav-glyph { color:#72f1cb; margin-right:4px; text-shadow:0 0 12px rgba(114,241,203,.75); }
.wiki-admin-shell { --wiki-ink:#dcecff; --wiki-muted:#8ea6c8; --wiki-line:rgba(150,184,228,.17); --wiki-accent:#65f0c4; --wiki-accent-2:#5aa6ff; color:var(--wiki-ink); background:linear-gradient(145deg,#0c1830 0%,#101f40 54%,#101a34 100%); border:1px solid rgba(113,160,226,.24); border-radius:18px; padding:22px; min-height:calc(100vh - 190px); box-shadow:0 24px 80px rgba(5,12,30,.3), inset 0 1px 0 rgba(255,255,255,.06); overflow:hidden; }
.wiki-admin-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.wiki-kicker,.wiki-section-eyebrow,.wiki-hero-label { display:block; color:var(--wiki-accent); font:700 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:2.4px; }
.wiki-live-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:var(--wiki-accent); box-shadow:0 0 0 4px rgba(101,240,196,.11),0 0 18px rgba(101,240,196,.8); animation:wikiBlink 2.2s ease-in-out infinite; }
@keyframes wikiBlink { 0%,100%{opacity:.55} 50%{opacity:1} }
.wiki-admin-head h3 { margin:7px 0 5px; color:#f5f9ff; font-size:26px; letter-spacing:-.5px; }
.wiki-admin-head h3 span { color:var(--wiki-muted); font-size:14px; font-weight:500; margin-left:8px; }
.wiki-admin-head p { margin:0; color:var(--wiki-muted); max-width:680px; }
.wiki-head-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.wiki-sync-state { color:#9eb6d8; font:11px ui-monospace,SFMono-Regular,Menlo,monospace; padding-right:6px; }
.wiki-primary { min-height:36px; border:1px solid rgba(101,240,196,.62); border-radius:8px; padding:0 13px; color:#071e26; background:linear-gradient(135deg,#76f5d1,#59cfff); font-weight:750; box-shadow:0 7px 22px rgba(45,210,187,.16); }
.wiki-primary:hover { filter:brightness(1.08); transform:translateY(-1px); }
.wiki-neural-hero { display:grid; grid-template-columns:minmax(240px,.72fr) minmax(390px,1.28fr); gap:18px; min-height:286px; border:1px solid var(--wiki-line); border-radius:14px; background:radial-gradient(circle at 75% 45%,rgba(52,118,214,.22),transparent 42%),linear-gradient(120deg,rgba(18,39,77,.92),rgba(11,24,51,.72)); overflow:hidden; }
.wiki-hero-copy { padding:27px 20px 20px 25px; display:flex; flex-direction:column; justify-content:center; }
.wiki-hero-copy h4 { margin:12px 0 9px; color:#f4f8ff; font-size:29px; line-height:1.22; letter-spacing:-.8px; }
.wiki-hero-copy h4 strong { color:var(--wiki-accent); text-shadow:0 0 22px rgba(101,240,196,.22); }
.wiki-hero-copy p { margin:0; color:#9fb5d5; max-width:340px; line-height:1.7; }
.wiki-hero-legend { display:flex; gap:13px; flex-wrap:wrap; margin-top:22px; color:#9eb7d8; font-size:11px; }
.wiki-legend-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; background:var(--wiki-muted); }
.wiki-legend-dot.review { background:#ffc773; box-shadow:0 0 9px rgba(255,199,115,.65); }.wiki-legend-dot.published { background:var(--wiki-accent); box-shadow:0 0 9px rgba(101,240,196,.7); }
.wiki-neural-map { position:relative; min-height:286px; overflow:hidden; background-image:linear-gradient(rgba(118,166,230,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(118,166,230,.06) 1px,transparent 1px); background-size:38px 38px; }
.wiki-neural-map:before { content:""; position:absolute; inset:18% 10%; border:1px solid rgba(101,240,196,.08); border-radius:50%; transform:rotate(-13deg) scaleY(.66); box-shadow:0 0 38px rgba(69,135,230,.09); }
.wiki-neuron { position:absolute; z-index:2; width:58px; height:58px; display:grid; place-items:center; align-content:center; border:1px solid rgba(111,179,255,.58); border-radius:50%; background:radial-gradient(circle at 35% 28%,rgba(154,213,255,.3),rgba(28,60,115,.95) 62%); box-shadow:0 0 0 5px rgba(86,154,240,.06),0 9px 24px rgba(0,0,0,.25); animation:wikiNeuronFloat 5.2s ease-in-out infinite; }
.wiki-neuron b { font-size:15px; color:#e9f6ff; line-height:1; }.wiki-neuron em { position:absolute; top:64px; color:#9cb6d8; font:10px ui-monospace,SFMono-Regular,Menlo,monospace; font-style:normal; white-space:nowrap; }
.wiki-neuron.core { width:92px; height:92px; left:47%; top:35%; border-color:var(--wiki-accent); background:radial-gradient(circle at 35% 25%,rgba(142,255,220,.42),rgba(20,98,101,.93) 63%); box-shadow:0 0 0 8px rgba(101,240,196,.08),0 0 38px rgba(101,240,196,.32); animation:wikiCorePulse 2.9s ease-in-out infinite; }.wiki-neuron.core b{font-size:22px;color:#fff}.wiki-neuron.core em{top:98px;color:var(--wiki-accent);font-size:11px}
.wiki-neuron.n1{left:14%;top:20%;animation-delay:-.9s}.wiki-neuron.n2{left:30%;top:67%;animation-delay:-2.1s}.wiki-neuron.n3{left:47%;top:35%}.wiki-neuron.n4{right:18%;top:19%;animation-delay:-1.5s}.wiki-neuron.n5{right:10%;top:68%;animation-delay:-3.2s}.wiki-neuron.n6{left:10%;top:70%;animation-delay:-2.8s}
@keyframes wikiNeuronFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} } @keyframes wikiCorePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.045)} }
.wiki-synapse { position:absolute; z-index:1; height:1px; transform-origin:left center; background:linear-gradient(90deg,rgba(101,240,196,.1),rgba(101,240,196,.68),rgba(90,166,255,.12)); box-shadow:0 0 8px rgba(101,240,196,.24); animation:wikiSynapse 2.6s ease-in-out infinite; }
.wiki-synapse.s1{width:170px;left:24%;top:36%;transform:rotate(14deg)}.wiki-synapse.s2{width:155px;left:35%;top:69%;transform:rotate(-20deg);animation-delay:-.8s}.wiki-synapse.s3{width:145px;left:57%;top:40%;transform:rotate(-18deg);animation-delay:-1.6s}.wiki-synapse.s4{width:180px;left:53%;top:62%;transform:rotate(15deg);animation-delay:-.4s}.wiki-synapse.s5{width:210px;left:20%;top:61%;transform:rotate(-35deg);opacity:.7}.wiki-synapse.s6{width:230px;left:22%;top:30%;transform:rotate(34deg);opacity:.6;animation-delay:-1.3s}
@keyframes wikiSynapse { 0%,100%{opacity:.38} 50%{opacity:.9} }
.wiki-map-caption { position:absolute; right:18px; bottom:14px; color:#6f8db7; font:10px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:1.4px; }.wiki-map-caption small{display:block;margin-top:4px;color:#55769f;letter-spacing:.5px}
.wiki-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:15px 0; }.wiki-stats>div{display:grid;grid-template-columns:28px 1fr;grid-template-rows:1fr 1fr;align-items:center;min-height:67px;padding:10px 12px;border:1px solid var(--wiki-line);border-radius:11px;background:rgba(17,39,76,.66)}.wiki-stat-icon{grid-row:1/3;color:var(--wiki-accent);font:20px ui-monospace,SFMono-Regular,Menlo,monospace}.wiki-stats b{font-size:20px;color:#f2f7ff}.wiki-stats small{color:#8ea8ca;font-size:11px}
.wiki-workspace-grid { display:grid; grid-template-columns:minmax(300px,.83fr) minmax(420px,1.17fr); gap:14px; }.wiki-node-list,.wiki-editor-card{border:1px solid var(--wiki-line);border-radius:13px;background:rgba(11,27,57,.74);overflow:hidden}.wiki-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:17px 18px 12px;border-bottom:1px solid var(--wiki-line)}.wiki-section-head h4{margin:5px 0 0;color:#f1f6ff;font-size:17px}.wiki-section-head input{width:150px;min-height:34px;border:1px solid var(--wiki-line);border-radius:7px;background:rgba(2,12,29,.36);color:#edf6ff;padding:0 10px;outline:none}.wiki-section-head input:focus{border-color:rgba(101,240,196,.7)}
.wiki-filter-bar{display:flex;gap:5px;padding:10px 13px;border-bottom:1px solid var(--wiki-line);overflow:auto}.wiki-filter-bar button{border:1px solid transparent;border-radius:999px;padding:5px 9px;background:transparent;color:#91a9ca;font-size:11px;white-space:nowrap}.wiki-filter-bar button.active,.wiki-filter-bar button:hover{border-color:rgba(101,240,196,.35);background:rgba(101,240,196,.1);color:var(--wiki-accent)}.wiki-page-list{padding:7px;max-height:460px;overflow:auto}.wiki-page-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;gap:9px;align-items:center;width:100%;padding:11px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--wiki-ink);text-align:left}.wiki-page-row:hover,.wiki-page-row.active{border-color:rgba(101,240,196,.28);background:rgba(63,121,180,.15)}.wiki-page-orb{width:8px;height:8px;border-radius:50%;background:#8294ae;box-shadow:0 0 8px rgba(130,148,174,.35)}.wiki-page-orb.review{background:#ffc773;box-shadow:0 0 9px rgba(255,199,115,.55)}.wiki-page-orb.published{background:var(--wiki-accent);box-shadow:0 0 10px rgba(101,240,196,.62)}.wiki-page-orb.retired{background:#c18dff}.wiki-page-main{min-width:0}.wiki-page-main b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.wiki-page-main small{display:block;margin-top:3px;color:#7895bb;font:10px ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wiki-page-state{font-size:10px;padding:3px 6px;border-radius:5px;background:rgba(130,148,174,.15);color:#b5c4d9;white-space:nowrap}.wiki-page-state.review{background:rgba(255,199,115,.13);color:#ffd58e}.wiki-page-state.published{background:rgba(101,240,196,.12);color:var(--wiki-accent)}.wiki-page-state.retired{background:rgba(193,141,255,.13);color:#d7b5ff}.wiki-page-version{color:#7390b6;font:10px ui-monospace,SFMono-Regular,Menlo,monospace}.wiki-empty-state{display:grid;place-items:center;gap:8px;min-height:160px;padding:22px;text-align:center;color:#8fa9cc}.wiki-empty-state strong{color:#cfe2fb}.wiki-empty-state span{max-width:300px;font-size:12px;line-height:1.6}.wiki-empty-state.error{color:#ffc0c0}.wiki-editor-form{display:grid;gap:11px;padding:17px 18px 18px}.wiki-editor-form label{display:grid;gap:5px;color:#8fa9cc;font-size:11px}.wiki-editor-form input,.wiki-editor-form select,.wiki-editor-form textarea{width:100%;border:1px solid var(--wiki-line);border-radius:7px;background:rgba(1,12,28,.44);color:#eef6ff;padding:9px 10px;outline:none}.wiki-editor-form input,.wiki-editor-form select{min-height:37px}.wiki-editor-form textarea{resize:vertical;line-height:1.55}.wiki-editor-form input:focus,.wiki-editor-form select:focus,.wiki-editor-form textarea:focus{border-color:rgba(101,240,196,.7);box-shadow:0 0 0 3px rgba(101,240,196,.08)}.wiki-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wiki-editor-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:4px}.wiki-editor-foot>span{color:#7692b7;font-size:11px}.wiki-editor-foot>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.wiki-editor-foot button{min-height:34px;font-size:11px;padding:0 10px}
@media (max-width:980px){.wiki-neural-hero,.wiki-workspace-grid{grid-template-columns:1fr}.wiki-neural-map{min-height:250px}.wiki-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.wiki-admin-shell{padding:14px;border-radius:12px}.wiki-admin-head{display:block}.wiki-head-actions{justify-content:flex-start;margin-top:15px}.wiki-neural-map{min-height:235px}.wiki-neuron.n1{left:8%}.wiki-neuron.n4{right:8%}.wiki-neuron.n5{right:5%}.wiki-stats{gap:7px}.wiki-stats>div{padding:8px}.wiki-editor-foot{display:block}.wiki-editor-foot>div{justify-content:flex-start;margin-top:10px}}
@media (prefers-reduced-motion: reduce){.wiki-live-dot,.wiki-neuron,.wiki-neuron.core,.wiki-synapse{animation:none}}

/* 真实 Wiki 网络：SVG 节点由线上知识页驱动，点击后联动编辑器。 */
.wiki-network { width:100%; height:100%; min-height:286px; display:block; overflow:visible; }
.wiki-map-controls{position:absolute;right:16px;top:14px;display:flex;align-items:center;gap:4px;padding:5px;background:rgba(7,19,43,.76);border:1px solid rgba(150,184,228,.24);border-radius:9px;backdrop-filter:blur(10px);z-index:2}.wiki-map-controls button{border:0;background:transparent;color:#dcecff;min-width:28px;height:26px;border-radius:5px;cursor:pointer}.wiki-map-controls button:hover,.wiki-map-controls button:focus-visible{background:rgba(101,240,196,.16);outline:none}.wiki-map-controls span{min-width:42px;text-align:center;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#9fb8da}
.wiki-network{transform-origin:50% 50%;transition:transform .24s ease}.wiki-network-node.rag{cursor:pointer}.wiki-network-node.rag:hover .wiki-network-circle,.wiki-network-node.rag:focus .wiki-network-circle,.wiki-network-node.rag.selected .wiki-network-circle{stroke:#fff;stroke-width:2.4;filter:drop-shadow(0 0 9px rgba(90,166,255,.8))}.wiki-network-node.rag.selected .wiki-network-halo{fill:rgba(90,166,255,.3)}
.wiki-network-link { stroke:rgba(101,240,196,.28); stroke-width:1.15; stroke-dasharray:5 8; animation:wikiNetworkFlow 3.2s linear infinite; transition:stroke .2s ease,stroke-width .2s ease,opacity .2s ease; }
.wiki-network-link.is-published { stroke:rgba(101,240,196,.72); stroke-width:1.65; }
.wiki-network-node { outline:none; cursor:default; }
.wiki-network-node.page { cursor:pointer; }
.wiki-network-node.page:hover .wiki-network-circle,.wiki-network-node.page:focus .wiki-network-circle,.wiki-network-node.page.selected .wiki-network-circle { stroke:#fff; stroke-width:2.2; filter:drop-shadow(0 0 8px rgba(101,240,196,.8)); }
.wiki-network-node.page.selected .wiki-network-halo { fill:rgba(101,240,196,.22); }
.wiki-network-halo { fill:rgba(90,166,255,.06); stroke:rgba(90,166,255,.16); stroke-width:1; transition:fill .2s ease,stroke .2s ease; }
.wiki-network-node.core .wiki-network-halo { fill:rgba(101,240,196,.16); stroke:rgba(101,240,196,.42); }
.wiki-network-node.category .wiki-network-halo { fill:rgba(90,166,255,.1); stroke:rgba(90,166,255,.34); }
.wiki-network-circle { fill:#1b447c; stroke:rgba(124,196,255,.75); stroke-width:1.1; transition:filter .2s ease,stroke .2s ease; }
.wiki-network-node.core .wiki-network-circle { fill:#197b78; stroke:#65f0c4; stroke-width:1.8; filter:drop-shadow(0 0 13px rgba(101,240,196,.42)); }
.wiki-network-node.category .wiki-network-circle { fill:#244c80; stroke:rgba(137,190,255,.58); }
.wiki-network-node.published .wiki-network-circle { fill:#176c69; stroke:#65f0c4; }
.wiki-network-node.review .wiki-network-circle { fill:#755326; stroke:#ffc773; }
.wiki-network-node.retired .wiki-network-circle { fill:#553b79; stroke:#c18dff; }
.wiki-network-label { fill:#eff8ff; font-size:12px; font-weight:750; pointer-events:none; }
.wiki-network-node.core .wiki-network-label { font-size:22px; }
.wiki-network-caption { fill:#89a8d0; font:10px ui-monospace,SFMono-Regular,Menlo,monospace; pointer-events:none; }
.wiki-network-node.core .wiki-network-caption { fill:#65f0c4; }
.wiki-map-hint { position:absolute; left:18px; bottom:14px; color:#6f8db7; font-size:10px; letter-spacing:.4px; }
@keyframes wikiNetworkFlow { to { stroke-dashoffset:-52; } }
@media (prefers-reduced-motion: reduce){.wiki-network-link{animation:none}}

/* 神经核心聚焦和树突节点切换动画。 */
.wiki-neural-map.is-core-focus .wiki-network { transform:scale(1.16); transform-origin:50% 50%; transition:transform .58s cubic-bezier(.2,.8,.2,1); }
.wiki-neural-map.is-page-focus .wiki-network { transform:scale(1.04); transform-origin:50% 50%; transition:transform .58s cubic-bezier(.2,.8,.2,1); }
.wiki-neural-map.is-switching .wiki-network { animation:wikiNetworkSwitch .62s cubic-bezier(.2,.75,.25,1); }
.wiki-network-node.core { cursor:pointer; }
.wiki-network-node.core.focused .wiki-network-circle { stroke:#d8fff4; stroke-width:2.8; filter:drop-shadow(0 0 21px rgba(101,240,196,.95)); }
.wiki-network-node.core.focused .wiki-network-halo { fill:rgba(101,240,196,.3); stroke:rgba(151,255,225,.8); }
.wiki-dendrite-branches { pointer-events:none; opacity:.9; }
.wiki-dendrite { fill:none; stroke:rgba(101,240,196,.56); stroke-width:1.25; stroke-linecap:round; stroke-dasharray:3 5; animation:wikiDendritePulse 2.4s ease-in-out infinite; }
.wiki-dendrite-tip { fill:#65f0c4; filter:drop-shadow(0 0 5px rgba(101,240,196,.9)); animation:wikiDendriteTip 2s ease-in-out infinite; }
.wiki-network-node.review .wiki-dendrite { stroke:rgba(255,199,115,.72); }
.wiki-network-node.review .wiki-dendrite-tip { fill:#ffc773; }
.wiki-network-node.retired .wiki-dendrite { stroke:rgba(193,141,255,.62); }
.wiki-network-node.retired .wiki-dendrite-tip { fill:#c18dff; }
@keyframes wikiNetworkSwitch { 0%{opacity:.45;transform:scale(.96)} 45%{opacity:1} 100%{opacity:1;transform:scale(1)} }
@keyframes wikiDendritePulse { 0%,100%{opacity:.42;stroke-dashoffset:0} 50%{opacity:1;stroke-dashoffset:-16} }
@keyframes wikiDendriteTip { 0%,100%{r:2} 50%{r:3.3} }
@media (prefers-reduced-motion: reduce){.wiki-neural-map.is-core-focus .wiki-network,.wiki-neural-map.is-page-focus .wiki-network,.wiki-neural-map.is-switching .wiki-network{animation:none;transition:none}.wiki-dendrite,.wiki-dendrite-tip{animation:none}}

/* ===== 2026-09-17 运行中转圈图标（OCR / Coach 等长任务）===== */
@keyframes yflosSpin { to { transform: rotate(360deg); } }
.spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: yflosSpin .7s linear infinite;
  opacity: .9;
}
.spin.lg { width: 15px; height: 15px; border-width: 2.5px; margin-right: 8px; }
button.is-running { opacity: .85; cursor: progress; }
button.is-running:disabled { opacity: .85; }
/* 尊重系统的减弱动效偏好：放慢而不是完全停（仍需传达"在跑"） */
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.2s; } }
.coach-step p{max-height:260px;overflow:auto}

/* ===== 2026-09-17 学员试卷分析 · 四步引导 ===== */
.case-flow{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:14px 16px 16px;margin-bottom:6px}
.case-flow-steps{display:flex;gap:8px;list-style:none;margin:0 0 14px;padding:0;flex-wrap:wrap}
.case-flow-steps li{display:flex;align-items:center;gap:6px;padding:5px 13px;border-radius:999px;font-size:12px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.case-flow-steps li.active{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:600}
.case-flow-steps li.done{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.case-flow-body{min-height:110px}
.case-flow-empty{padding:18px;border:1px dashed var(--line-strong);border-radius:8px;color:var(--muted);text-align:center;font-size:13px;line-height:1.8}
.case-flow-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.case-flow-row label{display:block;font-size:12px;color:#475569}
.case-flow-row select,.case-flow-row input{margin-top:4px;padding:6px 9px;min-width:210px}
.case-flow-meta{font-size:12px;color:#64748b;line-height:1.8;margin:0 0 12px}
/* 2026-09-17 选学员快速检索（老大要求） */
.case-flow-row-pick{align-items:flex-start}
.flow-picker{min-width:330px;flex:1 1 330px}
.flow-picker label{display:block;font-size:12px;color:#475569;margin-bottom:4px}
.flow-picker #flowProfileSearch{width:100%;min-width:0;padding:6px 9px;margin:0}
.flow-picker-list{margin-top:6px;max-height:212px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.flow-picker-list:empty{border:none}
.flow-pick-item{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;text-align:left;padding:7px 10px;border:0;border-bottom:1px solid #f1f5f9;background:transparent;cursor:pointer;font-size:13px;color:#0f172a}
.flow-pick-item:last-child{border-bottom:0}
/* 关键：作者样式 display:flex 会盖掉 hidden 属性的 UA 规则，必须显式让位 */
.flow-pick-item[hidden]{display:none!important}
.flow-pick-item:hover{background:#f8fafc}
.flow-pick-item.cursor{background:#eff6ff}
.flow-pick-item.active{background:#2563eb;color:#fff}
.flow-pick-item.active .flow-pick-sub{color:rgba(255,255,255,.82)}
.flow-pick-item.active mark{background:rgba(255,255,255,.32);color:#fff}
.flow-pick-sub{font-size:11px;color:#94a3b8;white-space:nowrap}
.flow-pick-item mark{background:#fde68a;color:inherit;padding:0 1px;border-radius:2px}
.flow-pick-none{padding:10px;font-size:12px;color:#94a3b8;text-align:center}
.flow-picker-hint{margin:6px 0 0;font-size:11.5px;color:#94a3b8}
.case-flow-meta code{background:rgba(0,0,0,.05);padding:1px 5px;border-radius:4px}
.case-flow-actions{display:flex;gap:8px;flex-wrap:wrap}
.case-flow-track{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.case-flow-track span{font-size:11px;padding:4px 11px;border-radius:999px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.case-flow-track span.done{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.case-flow-track span.current{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:600}
.production-advanced{border:1px solid var(--line);border-radius:10px;padding:0 14px;margin-top:12px}
.production-advanced>summary{cursor:pointer;padding:11px 0;font-size:13px;font-weight:600;color:#334155}
.production-advanced[open]>summary{border-bottom:1px solid var(--line);margin-bottom:14px}
/* 2026-09-17 T1.3 材料角色三栏（设计 spec §3） */
.material-dropzones{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:0 0 14px}
.material-dropzone{border:1.5px dashed var(--line-strong,#cbd5e1);border-radius:10px;padding:14px 12px;text-align:center;cursor:pointer;background:var(--surface-2,rgba(0,0,0,.02));transition:border-color .15s,background .15s}
.material-dropzone:hover{border-color:#2563eb;background:rgba(37,99,235,.06)}
.material-dropzone.is-over{border-color:#2563eb;background:rgba(37,99,235,.12)}
.material-dropzone strong{display:block;font-size:13px;color:#1e293b}
.material-dropzone span{display:block;font-size:11px;color:#64748b;margin-top:3px}
.material-dropzone em{display:block;font-size:11px;color:#94a3b8;font-style:normal;margin-top:6px}
/* 2026-09-17 T2.4 材料配对结果框（设计 spec §5.4） */
.pairing-box{border-radius:8px;padding:10px 12px;margin:0 0 12px;font-size:12px;line-height:1.85;display:flex;flex-direction:column;gap:2px}
.pairing-box.is-ok{background:#ecfdf5;border-left:3px solid #10b981;color:#065f46}
.pairing-box.is-blocked{background:#fef2f2;border-left:3px solid #ef4444;color:#991b1b}
.pairing-box strong{font-size:12.5px}
/* 2026-09-17 材料人工确认（设计 spec §8） */
.pairing-cands{margin-top:10px;border-top:1px solid rgba(0,0,0,.08);padding-top:9px}
.pairing-cands-head{font-size:11.5px;color:#475569;margin-bottom:7px}
.pairing-cand{border:1px solid rgba(0,0,0,.12);border-radius:7px;padding:8px 10px;margin-bottom:8px;background:rgba(255,255,255,.6)}
.pairing-cand.is-ok{border-color:#10b981;background:#f0fdf4}
.pairing-cand.is-rejected{border-color:#ef4444;background:#fef2f2}
.pairing-cand-head{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;margin-bottom:6px}
.pairing-cand-head span{font-size:11px;opacity:.75}
.pairing-cand-body{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:7px}
.pairing-cand-body em{display:block;font-style:normal;font-size:10.5px;color:#64748b;margin-bottom:2px}
.pairing-cand-body p{margin:0;font-size:11px;line-height:1.6;max-height:96px;overflow:auto;background:rgba(0,0,0,.03);border-radius:5px;padding:5px 7px;word-break:break-word}
.pairing-cand-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pairing-cand-actions button{font-size:11.5px;padding:3px 10px}
.pairing-hint{font-size:11.5px;color:#64748b}
/* 2026-09-17 折叠区改造 */
.production-stats.tiers{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.production-stats.tiers .production-stat{padding:9px 8px}
.production-stats.tiers .production-stat strong{font-size:18px}
.production-stats.tiers .production-stat span{font-size:11px}
.role-select{padding:5px 8px;font-size:12px;border-radius:6px;border:1px solid var(--line,#cbd5e1);background:#fff}

/* Assessment delivery inbox: keep received originals visible and readable. */
.assess-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.assess-pending-inbox{margin-top:20px;padding-top:14px;border-top:1px solid #d8e0eb}
.assess-pending-item{border:1px solid #dfc793;background:#fffaf0;padding:14px;margin:10px 0;border-radius:10px}
.assess-delivery-note{font-size:13px;color:#77551c}
.coach-assess-detail .assess-edit-box{width:min(900px,94vw);max-height:90vh;overflow:auto}
.coach-assess-original{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;color:#20304b;padding:16px;border-radius:8px;font:13px/1.6 ui-monospace,monospace}
