/*
 * 卢小团 Web 工作台样式（docs/04-v2规划/31「Play × 玻璃」；Token 真源 contracts/design-tokens/lxt.tokens.json）。
 * 中性为主、交大红 #C8161E 只用于每屏唯一主操作与当前位置；状态 = 圆点 + 文字；顶栏/侧栏/底栏为玻璃。
 */

/* ---------------- Token ---------------- */
:root {
  color-scheme: light;
  /* Palette, glass tints and radii come from generated tokens.css. */
  --glass-hl: rgba(255, 255, 255, 0.5);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 20px; --s-xl: 24px; --s-xxl: 32px;
  --bar-h: 56px; --rail-w: 248px; --bottom-h: 64px;
  --font: "Google Sans Flex", "HarmonyOS Sans SC", "MiSans VF", -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-look-mode="dark"] {
  color-scheme: dark; --glass-hl: rgba(255, 255, 255, 0.12); --shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

/* ---------------- 基础 ---------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--on); font: 400 14px/22px var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 13px; }
.break { word-break: break-all; }
.muted { color: var(--on-ter); }
.hint { color: var(--on-var); font-size: 12px; line-height: 18px; }
.hint.center { text-align: center; margin: var(--s-md) 0; }
.hint.warn, .warn { color: var(--warning); }
.meta { color: var(--on-ter); font-size: 12px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); padding: var(--s-xs) var(--s-md); }
.skip:focus { left: var(--s-xs); top: var(--s-xs); }
[hidden] { display: none !important; }

/* ---------------- 玻璃 ---------------- */
.glass {
  background: var(--glass-bar);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--sc); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--sc); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------------- 外壳 ---------------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--s-md) 0; display: flex; align-items: center; gap: var(--s-sm); z-index: 30; }
.brand { display: flex; align-items: center; gap: var(--s-xs); color: var(--on); font-weight: 500; font-size: 16px; }
.brand:hover { text-decoration: none; }
/* 品牌标志：卢小团 logo 位图（透明底、白描边自带，深浅色下都清晰）；窄屏仅留标志 */
.brand-mark { display: block; flex: none; height: 32px; width: auto; max-width: 44px; object-fit: contain; }
.spacer { flex: 1; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--on); cursor: pointer; }
.icon-btn:hover { background: var(--sc-high); text-decoration: none; }
#menu-btn { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.bell-glyph { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 9px 9px 4px 4px; border-bottom-width: 3px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sc-highest); color: var(--on); font-weight: 500; }
.avatar:hover { text-decoration: none; background: var(--sc-high); }

.rail { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top)); bottom: 0; left: 0; width: var(--rail-w); padding: var(--s-md) var(--s-sm); overflow-y: auto; z-index: 20; border-radius: 0; }
.who { padding: var(--s-xs) var(--s-sm) var(--s-md); border-bottom: 1px solid var(--outline-var); margin-bottom: var(--s-xs); }
.who-name { font-weight: 500; font-size: 16px; line-height: 24px; }
.who-role { color: var(--on-var); font-size: 12px; }
.nav-group { padding: var(--s-xs) 0; }
.nav-group-title { padding: var(--s-xs) var(--s-sm); color: var(--on-ter); font-size: 12px; font-weight: 500; }
.nav-item { display: flex; align-items: center; gap: var(--s-sm); min-height: 44px; padding: 0 var(--s-sm); border-radius: var(--r-full); color: var(--on); font-weight: 500; }
.nav-item:hover { background: var(--sc-high); text-decoration: none; }
.nav-item.on { background: var(--brand-container, var(--sc-highest)); color: var(--on-brand-container, var(--on)); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.nav-item.on .nav-dot { background: var(--brand); }
.scrim { display: none; }

main { padding: calc(var(--bar-h) + env(safe-area-inset-top) + var(--s-xl)) var(--s-xl) var(--s-xxl) calc(var(--rail-w) + var(--s-xl)); min-height: 100vh; outline: none; }
.page { max-width: 1280px; min-width: 0; margin: 0 auto; overflow-wrap: anywhere; }
.bottombar { display: none; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--on-var); padding: var(--s-xl); }

@media (max-width: 899px) {
  #menu-btn { display: inline-grid; }
  .brand-name { display: none; }
  .rail { transform: translateX(-105%); transition: transform 250ms ease; width: min(86vw, 320px); background: var(--glass-sheet); z-index: 40; }
  body.drawer-open .rail { transform: none; }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 35; }
  main { padding: calc(var(--bar-h) + env(safe-area-inset-top) + var(--s-md)) var(--s-md) calc(var(--bottom-h) + env(safe-area-inset-bottom) + var(--s-xl)); }
  .bottombar { display: flex; position: fixed; inset: auto 0 0 0; height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
  .bottom-item { flex: 1; display: grid; place-items: center; color: var(--on-var); font-weight: 500; font-size: 13px; }
  .bottom-item.on { color: var(--on); }
  .bottom-item.on::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: -18px; }
  .bottom-item:hover { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------- 登录 ---------------- */
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: var(--s-md); background: var(--sc-low); }
.login-card { width: min(400px, 100%); padding: var(--s-xxl) var(--s-xl); border-radius: var(--r-sheet); display: grid; gap: var(--s-md); background: var(--glass-sheet); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hl), 0 0 0 1px var(--outline-var); }
.login-title { font-size: 24px; line-height: 32px; font-weight: 500; }
.login-sub { color: var(--on-var); margin-top: -8px; }

/* ---------------- 页面头 ---------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-md); margin-bottom: var(--s-lg); }
.page-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.page-title.display { font-size: 28px; line-height: 36px; font-weight: 600; }
.page-kicker { color: var(--on-var); margin-bottom: var(--s-xxs); }
.page-intro { color: var(--on-var); margin-top: 8px; max-width: 65ch; line-height: 1.7; }
.page-actions, .actions { display: flex; flex-wrap: wrap; gap: var(--s-xs); align-items: center; }
.actions { margin-top: var(--s-sm); }
.actions.end { justify-content: flex-end; margin: 0 0 var(--s-sm); }

/* ---------------- 按钮与芯片 ---------------- */
.btn { min-height: 40px; padding: 0 var(--s-lg); border-radius: var(--r-full); border: 0; cursor: pointer; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs); white-space: nowrap; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-pressed); text-decoration: none; }
.btn.tonal { background: var(--sc-highest); color: var(--on); }
.btn.tonal:hover { background: var(--sc-high); text-decoration: none; }
.btn.tonal.danger { color: var(--error); background: var(--error-c); }
.btn.text { background: transparent; color: var(--brand-text); padding: 0 var(--s-sm); }
.btn.text:hover { background: var(--sc-high); text-decoration: none; }
.btn.wide { width: 100%; min-height: 48px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-bottom: var(--s-md); }
.chip { min-height: 36px; padding: 0 var(--s-md); border-radius: var(--r-chip); border: 1px solid var(--outline-var); background: transparent; cursor: pointer; font-weight: 500; color: var(--on-var); }
.chip.on { background: var(--sc-highest); border-color: transparent; color: var(--on); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--on); font-weight: 500; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--outline); background: var(--sc-highest); cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: all 150ms ease; }
.switch[aria-checked="true"] { background: var(--on); border-color: var(--on); }
.switch[aria-checked="true"]::after { left: 24px; top: 2px; width: 24px; height: 24px; background: var(--surface); }

/* ---------------- 状态（圆点 + 文字） ---------------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--on-var); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-ter); }
.tone-cur .dot { background: var(--brand); }
.tone-ok .dot { background: var(--success); }
.tone-ok { color: var(--success); }
.tone-warn .dot { background: var(--warning); }
.tone-warn { color: var(--warning); }
.tone-wait .dot { background: transparent; border: 1.5px solid var(--outline); }
.tone-mute .dot { background: var(--on-ter); }
.tone-err { color: var(--error); background: var(--error-c); padding: 0 8px; border-radius: var(--r-chip); }
.tone-err .dot { background: var(--error); }

/* ---------------- 卡片与列表 ---------------- */
.card { background: var(--sc-low); border-radius: var(--r-card); padding: var(--s-lg); margin-bottom: var(--s-md); }
.card-title { font-size: 18px; line-height: 24px; font-weight: 500; margin-bottom: var(--s-sm); }
.sub { font-size: 14px; font-weight: 500; color: var(--on-var); margin: var(--s-md) 0 var(--s-xs); }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: var(--s-md); align-items: flex-start; padding: var(--s-sm) 0; border-top: 1px solid var(--outline-var); }
.row:first-child { border-top: 0; }
.row.col { flex-wrap: wrap; }
.row.selected { background: var(--sc-high); margin: 0 calc(-1 * var(--s-sm)); padding-left: var(--s-sm); padding-right: var(--s-sm); border-radius: var(--r-thumb); }
.row.unread .row-title { font-weight: 600; }
.row-main { flex: 1; min-width: 0; }
.row-kicker { color: var(--on-ter); font-size: 12px; line-height: 18px; }
.row-title { display: block; color: var(--on); font-weight: 500; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
a.row-title:hover { color: var(--brand-text); }
.row-sub { color: var(--on-var); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-xs); flex: none; max-width: 50%; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-xxs); }
.list.compact .row { padding: var(--s-xs) 0; }
.thumb { width: 72px; height: 48px; border-radius: var(--r-thumb); object-fit: cover; flex: none; background: linear-gradient(135deg, var(--sc-high), var(--sc-highest)); }
.more { display: flex; justify-content: center; padding-top: var(--s-xs); }
.banner { padding: var(--s-sm) var(--s-md); border-radius: var(--r-card); background: var(--sc-high); margin-bottom: var(--s-md); }
.banner.warn { color: var(--warning); background: var(--sc-high); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-xs) var(--s-lg); margin: 0; }
.facts dt { color: var(--on-ter); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-xxs); }
.version { padding: var(--s-xs) 0; border-top: 1px solid var(--outline-var); }

/* ---------------- 指标 ---------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-sm); margin-bottom: var(--s-md); }
.tile { background: var(--sc-low); border-radius: var(--r-card); padding: var(--s-md); display: grid; gap: var(--s-xxs); align-content: start; }
.tile-k { color: var(--on-var); font-weight: 500; }
.tile-v { font-size: 28px; line-height: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile-v.none { font-size: 16px; color: var(--on-ter); }
.tile-s { color: var(--on-ter); font-size: 12px; }
.tile-b { color: var(--on-ter); font-size: 12px; line-height: 18px; }
.meter { height: 8px; border-radius: 4px; background: var(--sc-highest); overflow: hidden; margin: var(--s-xs) 0; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--on-var); }
.meter.alert .meter-fill { background: var(--warning); }
ol.chain { margin: var(--s-xxs) 0; padding-left: 20px; color: var(--on-var); font-size: 13px; }

/* ---------------- 表格与筛选 ---------------- */
.table-wrap { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: var(--s-xs) var(--s-sm); border-bottom: 1px solid var(--outline-var); vertical-align: top; }
.table thead th { color: var(--on-ter); font-weight: 500; position: sticky; top: 0; background: var(--surface); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-sm); margin-bottom: var(--s-md); }
.filters .field { margin: 0; min-width: 150px; }

/* ---------------- 表单 ---------------- */
.field { min-width: 0; display: grid; gap: var(--s-xxs); margin-bottom: var(--s-sm); }
.field label { font-weight: 500; font-size: 13px; color: var(--on-var); }
.field .opt { font-weight: 400; color: var(--on-ter); }
.field.check { grid-template-columns: auto 1fr; align-items: center; }
.field.check label { order: 2; }
input, select, textarea { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; padding: 10px var(--s-sm); border-radius: var(--r-thumb); border: 1px solid var(--outline); background: var(--surface); }
input[type="checkbox"] { width: 20px; min-height: 20px; }
textarea { resize: vertical; line-height: 22px; }
textarea.mono { font-family: var(--mono); font-size: 13px; }
.form-error { color: var(--error); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
label.inline { display: inline-flex; align-items: center; gap: var(--s-xs); color: var(--on-var); font-size: 13px; }
label.inline select { width: auto; min-height: 36px; padding: 4px var(--s-xs); }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-xs); background: var(--sc); padding: var(--s-xs) var(--s-sm); border-radius: var(--r-thumb); margin: var(--s-xs) 0; }
.secret .k { color: var(--on-ter); font-size: 12px; }
code.big { font-size: 20px; letter-spacing: 1px; }
.picker { list-style: none; margin: 0 0 var(--s-sm); padding: 0; max-height: 220px; overflow-y: auto; }
.pick { width: 100%; text-align: left; min-height: 40px; padding: 0 var(--s-sm); border: 0; border-radius: var(--r-chip); background: transparent; cursor: pointer; }
.pick:hover { background: var(--sc-high); }
.pick[aria-selected="true"] { background: var(--sc-highest); font-weight: 500; }

/* ---------------- 对话框（glass.sheet） ---------------- */
.dialog { border: 0; padding: 0; border-radius: var(--r-sheet); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--glass-sheet); color: var(--on); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hl); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); }
.dialog::backdrop { background: var(--scrim); }
.dialog-form { padding: var(--s-xl); display: grid; gap: var(--s-sm); }
.dialog-title { font-size: 22px; line-height: 28px; font-weight: 500; }
.dialog-body { color: var(--on-var); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--s-xs); margin-top: var(--s-xs); }

/* ---------------- 页面状态 ---------------- */
.skeleton { display: grid; gap: var(--s-sm); padding: var(--s-md) 0; opacity: 0; animation: sk-in 0s linear 300ms forwards; }
.sk-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--sc-high), var(--sc), var(--sc-high)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes sk-in { to { opacity: 1; } }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { color: var(--on-var); padding: var(--s-xl) var(--s-md); text-align: center; background: var(--sc-low); border-radius: var(--r-card); }
.error-card { display: flex; gap: var(--s-sm); align-items: flex-start; background: var(--error-c); color: var(--on); border-radius: var(--r-card); padding: var(--s-md); margin-bottom: var(--s-md); }
.error-card .err-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--error); color: var(--error); font-weight: 700; flex: none; }
.error-card.rule-pending { background: var(--sc-high); }
.error-card.rule-pending .err-icon { border-color: var(--warning); color: var(--warning); }
.err-title { font-weight: 500; }
.err-line { color: var(--on-var); }

/* ---------------- 列表 + 详情 ---------------- */
.split { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: var(--s-xl); align-items: start; }
.split-detail { position: sticky; top: calc(var(--bar-h) + var(--s-md)); outline: none; }
.split-detail > .select-hint { margin-top: 72px; }
.back { display: none; margin-bottom: var(--s-sm); font-weight: 500; }
@media (max-width: 1099px) {
  .split { grid-template-columns: 1fr; }
  .split-detail { position: static; }
  .split:not(.has-detail) .split-detail { display: none; }
  .split.has-detail .split-list { display: none; }
  .back { display: inline-block; }
}
.detail-head { margin-bottom: var(--s-md); display: grid; gap: var(--s-xxs); }
.detail-title { font-size: 22px; line-height: 30px; font-weight: 500; overflow-wrap: anywhere; }
.detail-title .rev { color: var(--on-ter); font-size: 14px; font-weight: 400; }
.detail.narrow { max-width: 760px; }
.head-status { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }
.stat-row { display: flex; gap: var(--s-xs); margin-bottom: var(--s-md); }
.stat { flex: 1; background: var(--sc-low); border-radius: var(--r-card); padding: var(--s-sm); display: grid; text-align: center; }
.stat-v { font-size: 20px; font-weight: 500; line-height: 28px; }
.stat-k { color: var(--on-ter); font-size: 12px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 24px; }
.block + .block { margin-top: var(--s-xs); }
.qa { margin: var(--s-xs) 0; }
.qa-q { color: var(--on-var); font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s-md); border-left: 2px solid var(--outline-var); }
.step { position: relative; padding: 0 0 var(--s-md) var(--s-sm); }
.step::before { content: ""; position: absolute; left: calc(-1 * var(--s-md) - 7px); top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--outline); }
.step-done::before { background: var(--success); border-color: var(--success); }
.step-active::before { background: var(--brand); border-color: var(--brand); }
.step-head { display: flex; flex-wrap: wrap; gap: var(--s-xs); align-items: center; }
.step-title { font-weight: 500; }
.decision { margin-top: var(--s-xs); padding: var(--s-xs) var(--s-sm); background: var(--sc); border-radius: var(--r-thumb); }
.advisories { margin-top: var(--s-xs); padding-left: var(--s-sm); border-left: 2px dashed var(--outline-var, var(--sc)); }
.advisories .decision { background: transparent; padding-left: 0; }
.opinion { color: var(--on-var); white-space: pre-wrap; }
.decision-bar, .action-bar { position: sticky; bottom: var(--s-md); border-radius: var(--r-feature); padding: var(--s-md); margin-top: var(--s-md); display: grid; gap: var(--s-xs); z-index: 5; }
.decision-bar .actions, .action-bar .actions { justify-content: flex-end; margin-top: 0; }
.decision-bar label { font-weight: 500; font-size: 13px; color: var(--on-var); }
.review-box { flex-basis: 100%; display: grid; gap: var(--s-xs); padding: var(--s-sm); background: var(--sc); border-radius: var(--r-thumb); }
.review-box .actions { justify-content: flex-end; }
@media (max-width: 899px) {
  .decision-bar, .action-bar { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + var(--s-xs)); }
  .row { flex-wrap: wrap; }
  .row-side { max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; justify-content: space-between; }
  .card { padding: var(--s-md); }
  .page-title.display { font-size: 24px; line-height: 32px; }
}

/* ---------------- 审计复核结果 ---------------- */
.verify { padding: var(--s-md); border-radius: var(--r-card); background: var(--sc-low); margin-bottom: var(--s-md); display: grid; gap: var(--s-xxs); }
.verify.bad { background: var(--error-c); }
.kill { display: flex; gap: var(--s-xs); margin-top: var(--s-sm); flex-wrap: wrap; }
.setup { display: grid; gap: var(--s-xs); }

/* ---------------- 提示 ---------------- */
#toasts { position: fixed; left: 50%; bottom: calc(var(--s-xl) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: var(--s-xs); z-index: 60; width: min(480px, calc(100vw - 32px)); max-height:min(420px,50dvh);overflow:auto;scrollbar-width:thin;pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; pointer-events: auto; background: var(--on); color: var(--surface); padding: 8px 10px 8px 18px; border-radius: 18px; box-shadow: var(--shadow); }
.toast-error { background: var(--error-c); color: var(--on); border: 1px solid var(--error); }
.toast-message { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.toast-close { flex: none; width: 44px; height: 44px; color: inherit; background: transparent; border: 0; border-radius: 12px; font-size: 24px; cursor: pointer; }
.toast-close:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
@media (max-width: 899px) { #toasts { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + var(--s-md)); } }

/* ---------------- 学期工作安排（表签 = 活动；部门颜色与 App designsystem 的 Department 令牌一致） ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Department washes are generated from the shared design-token source. */
.dept-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; margin: 2px 4px 2px 0; border-radius: var(--r-full); background: var(--dept-light); color: var(--on); font-size: 12px; line-height: 20px; white-space: nowrap; }
.dept-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dept-accent); flex: none; }
.sheet-tabs { display: flex; gap: var(--s-xs); overflow-x: auto; padding-bottom: var(--s-xs); margin-bottom: var(--s-md); scrollbar-width: thin; }
.sheet-tab { flex: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: var(--s-xs) var(--s-md); border-radius: var(--r-chip) var(--r-chip) 0 0; border: 1px solid var(--outline-var); border-bottom-width: 3px; background: var(--sc-low); color: var(--on-var); cursor: pointer; font: inherit; }
.sheet-tab.on { background: var(--surface); color: var(--on); border-bottom-color: var(--brand); font-weight: 500; }
.sheet-tab:hover { background: var(--sc); }
.sheet-date { color: var(--brand-text); font-size: 12px; }
.sheet-prog { color: var(--on-ter); font-size: 12px; }
.sheet-head { margin-bottom: var(--s-sm); }
.plan-table td { vertical-align: middle; }
.plan-table .c-title { min-width: 160px; font-weight: 500; }
.plan-table .c-done { white-space: nowrap; }
.plan-table .c-due { white-space: nowrap; }
.plan-table .c-due.overdue, .plan-table .c-due.overdue .cell-btn { color: var(--warning); font-weight: 500; }
.plan-table .c-actions { white-space: nowrap; text-align: right; }
.plan-table tr.done .c-title { color: var(--on-ter); text-decoration: line-through; }
.plan-table tr.mine .c-title { box-shadow: inset 3px 0 0 var(--brand); }
.plan-table .add-row input { min-height: 40px; border-style: dashed; }
.cell-btn { background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; min-height: 32px; border-radius: var(--r-chip); }
.cell-btn:hover { background: var(--sc); }
.check-cell { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check-cell input { width: 20px; height: 20px; min-height: 0; accent-color: var(--success); }
.owner-picker { max-height: 56vh; overflow: auto; }
.owner-group { border: 0; padding: 0; margin: 0 0 var(--s-sm); }
.owner-group legend { margin-bottom: 4px; }
.owner-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-right: var(--s-md); cursor: pointer; }
.owner-opt input { width: 18px; height: 18px; min-height: 0; }
.owner-primary { color: var(--brand-text); font-size: 12px; }
.import-report { max-height: 60vh; overflow: auto; }
.import-sheet { margin-top: var(--s-md); }
.import-sheet h3 { font-size: 14px; margin: 0 0 4px; }
.import-summary { font-weight: 500; }
.warn-text { color: var(--warning); }
.btn.on-toast { color: inherit; text-decoration: underline; min-height: 44px; flex: none; }
.dialog:has(.import-report), .dialog:has(.owner-picker) { width: min(960px, calc(100vw - 32px)); }

/* One plan DOM: readable records on phones, aligned table on larger screens. */
@media (max-width: 699px) {
  .plan-table, .plan-table tbody { display: block; width: 100%; }
  .plan-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plan-table tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--outline-var); border-radius: 14px; background: var(--surface); }
  .plan-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .plan-table td[data-label]::before { content: attr(data-label); display: block; color: var(--on-var); font-size: 12px; line-height: 1.6; margin-bottom: 4px; }
  .plan-table .c-title { grid-column: 1 / -1; min-width: 0; font-size: 16px; line-height: 1.6; }
  .plan-table td.c-title::before, .plan-table td.c-actions::before { display: none; }
  .plan-table .c-title .cell-btn { font-weight: 600; }
  .plan-table .c-due, .plan-table .c-done, .plan-table .c-actions { white-space: normal; }
  .plan-table .c-lead { display: none; } /* Project lead is already named once in the sheet heading. */
  .plan-table .c-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; border-top: 1px solid var(--outline-var); }
  .plan-table .cell-btn, .plan-table .check-cell { min-height: 44px; }
  .plan-table tr.mine .c-title { box-shadow: none; border-left: 3px solid var(--brand); padding-left: 10px; }
  .plan-table .add-row { display: block; }
  .plan-table .add-row td { display: block; }
  .plan-sheet { padding: 16px; }
}
@media (max-width: 899px) {
  .page .btn { min-height: 44px; max-width: 100%; white-space: normal; }
  .page input:not([type=checkbox]):not([type=radio]), .page select, .page textarea { font-size: 16px; }
  .page-head { gap: 12px; margin-bottom: 20px; }
  .page-actions { gap: 8px; }
  .filters .field { min-width: min(150px, 100%); flex: 1 1 150px; }
}

/* ---------------- 登录与邀请注册（与 App docs/46 §7 同一品牌时刻，动效更轻） ---------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; background:
  radial-gradient(120% 60% at 100% 0%, #FCE7E1 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, #EFE7F8 0%, transparent 60%), var(--sc-low); }
:root[data-look-mode="dark"] .auth-wrap { background: radial-gradient(120% 60% at 100% 0%, #4A1C18 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, #2F2640 0%, transparent 60%), var(--surface); }
.auth-side { display: none; }
.auth-main { display: grid; place-items: center; padding: var(--s-md); }
.auth-card { width: min(420px, 100%); }
.auth-compact { display: grid; justify-items: center; gap: var(--s-xs); }
@media (min-width: 840px) {
  .auth-wrap { grid-template-columns: 1fr 1fr; }
  .auth-side { display: grid; align-content: safe center; justify-content: center; justify-items: center; gap: var(--s-md); padding: var(--s-xl); max-height: 100vh; overflow: auto; position: sticky; top: 0; }
  .auth-compact { display: none; }
}
.auth-hero { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.auth-hero.big { width: min(260px, 36vh); height: min(260px, 36vh); }
.auth-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-arc { fill: none; stroke-width: 3.6; stroke-linecap: round; opacity: .85; stroke-dasharray: 100; stroke-dashoffset: 0;
  animation: arc-sweep .56s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(.22s + var(--i) * .07s); }
.auth-logo { position: relative; width: 56%; height: auto; animation: logo-pop .72s cubic-bezier(.34, 1.56, .64, 1) both; }
.auth-mascot { position: absolute; width: 26%; animation: rise .7s ease-out .7s both, bob 2.8s ease-in-out 1.4s infinite alternate; }
.auth-mascot.m1 { left: 0; bottom: 4%; }
.auth-mascot.m2 { right: 0; top: 2%; animation-delay: .8s, 1.6s; }
.auth-org { display: grid; justify-items: center; gap: 2px; text-align: center; }
.auth-org strong { font-size: 24px; line-height: 32px; font-weight: 600; }
.auth-org span { color: var(--on-var); font-size: 12px; line-height: 16px; }
.auth-ribbon { display: block; width: 96px; height: 4px; margin-top: var(--s-xs); border-radius: 2px;
  background: linear-gradient(90deg, #8799D2 0 14%, #73BBDB 0 28%, #8DCD66 0 42%, #EDE04E 0 57%, #FDA535 0 71%, #FE6828 0 85%, #F35737 0); }
.auth-waves { width: min(420px, 90%); max-height: 30vh; object-fit: contain; animation: drift 6.4s ease-in-out infinite alternate; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-xs); }
.auth-banner { margin: 0; padding: var(--s-xs) var(--s-sm); border-radius: var(--r-thumb); background: var(--sc); color: var(--on); }
.auth-banner.warn { background: var(--error-c); }
.auth-card.shake { animation: shake .42s ease-in-out; }
.auth-card.busy .btn.primary { animation: pulse 1s ease-in-out infinite alternate; }
.pw-row { display: flex; gap: var(--s-xs); align-items: center; }
.pw-row input { flex: 1; }
.pw-toggle { min-height: 44px; white-space: nowrap; }
.field-hint { margin: 0; color: var(--on-var); font-size: 12px; }
.field-hint.bad { color: var(--error); }
.auth-head { display: flex; align-items: center; gap: var(--s-xs); }
.auth-head .login-title { margin: 0; }
.auth-steps { display: grid; gap: var(--s-xxs); }
.auth-dots { display: flex; gap: var(--s-xs); align-items: center; }
.auth-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--outline-var); transition: width .25s ease; }
.auth-dot.on { width: 28px; background: var(--brand); }
.auth-step { display: grid; gap: var(--s-sm); animation: step-in .25s ease-out both; }
.auth-step form { display: grid; gap: var(--s-sm); }
.auth-step h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.auth-hello { display: flex; gap: var(--s-sm); align-items: center; }
.auth-dept { width: 72px; height: 72px; border-radius: 36px; background: #EFE7F8; object-fit: contain; animation: bob 2.8s ease-in-out infinite alternate; }
.auth-box { display: grid; gap: var(--s-xs); padding: var(--s-md); border-radius: var(--r-card); border: 1px solid var(--outline-var); background: var(--surface); }
.auth-pos { display: grid; }
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.auth-meter i { height: 6px; border-radius: 3px; background: var(--outline-var); }
.auth-meter[data-level="0"] i.on { background: var(--error); }
.auth-meter[data-level="1"] i.on { background: var(--warning); }
.auth-meter[data-level="2"] i.on, .auth-meter[data-level="3"] i.on { background: var(--success); }
.auth-rules { margin: 0; padding-left: 1.2em; color: var(--on-var); font-size: 12px; }
.auth-rules li.met { color: var(--success); }
.auth-check { display: flex; gap: var(--s-xs); align-items: flex-start; min-height: 44px; cursor: pointer; }
.auth-check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; }
.auth-sheet { border: 0; border-radius: var(--r-sheet); padding: var(--s-xl); width: min(440px, 92vw); background: var(--surface); color: var(--on); box-shadow: var(--shadow); }
.auth-sheet::backdrop { background: var(--scrim); }
.auth-sheet h2 { margin: 0 0 var(--s-xs); }
.auth-sheet-mascot { width: 56px; float: right; }
.auth-actions { display: grid; gap: var(--s-xs); margin-top: var(--s-md); }
.auth-welcome { position: relative; display: grid; justify-items: center; gap: var(--s-sm); text-align: center; padding-top: var(--s-xl); }
.auth-welcome-mascot { width: 128px; height: 128px; border-radius: 64px; background: #EFE7F8; object-fit: contain; animation: logo-pop .72s cubic-bezier(.34, 1.56, .64, 1) both; }
.auth-confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.auth-confetti i { position: absolute; left: 50%; top: 30%; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: confetti 1.6s ease-out both; animation-delay: calc(var(--k) * 12ms); transform-origin: center; }
@keyframes arc-sweep { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: .85; } }
@keyframes logo-pop { from { transform: scale(.55) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { from { translate: 0 -4px; } to { translate: 0 4px; } }
@keyframes drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: translateX(-10px); } 30% { transform: translateX(10px); } 45% { transform: translateX(-7px); } 60% { transform: translateX(7px); } 75% { transform: translateX(-3px); } 90% { transform: translateX(3px); } }
@keyframes pulse { from { filter: none; } to { filter: brightness(1.12); } }
@keyframes step-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes confetti {
  0% { opacity: 1; transform: translate(-50%, 0) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + (var(--k) - 12) * 14px), calc(160px + (var(--k) % 5) * 30px)) rotate(calc(var(--k) * 47deg)); }
}

/* ---------------- 投屏签到（EVT-06 方式 A） ---------------- */
.projector { display: flex; flex-direction: column; align-items: center; gap: var(--s-sm); padding: var(--s-xl); background: var(--surface); border-radius: var(--r-feature); text-align: center; }
.projector:fullscreen { justify-content: center; border-radius: 0; }
.projector-title { margin: 0; font-size: clamp(22px, 3.2vw, 44px); color: var(--on); }
.projector-meta, .projector-note { margin: 0; color: var(--on-var); }
.projector-qr { width: min(72vh, 86vw, 640px); aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: var(--r-card); padding: var(--s-xs); }
.projector-qr svg { width: 100%; height: 100%; }
.projector-hint { margin: 0; font-size: clamp(16px, 2vw, 28px); color: var(--on); font-weight: 600; }
.projector-stats { margin: 0; font-size: clamp(16px, 1.8vw, 24px); color: var(--brand-text); font-variant-numeric: tabular-nums; }

/* ---------------- 换届中心 / 批量导入导出 ---------------- */
.action-with-reason { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-xs); }
.import-report td.num { white-space: nowrap; }

/* ==========================================================================
   collab-r1 BEGIN · 期刊多轨流程与跨部门协作（js/pages/periodicals.js、js/pages/collab.js）
   「暖纸 × 彩虹翼」（docs/05-v2需求与设计/46）：作用域 .lx，引用共享暖纸令牌；部门羽色沿用 .dept-* 变量。
   图表配色经 dataviz 校验：分类 #7356A8/#D2691E（浅）#9273CF/#D06A30（深）；顺序色阶单一薰衣草。
   ========================================================================== */
.lx {
  --paper: var(--surface); --paper-1: var(--sc-low); --paper-2: var(--sc); --paper-3: var(--sc-highest); --line: var(--outline-var);
  --ink: var(--on); --ink-2: var(--on-var); --ink-3: var(--on-ter);
  --lav: var(--accent); --lav-c: var(--accent-container); --lav-on: var(--on-accent-container); --rouge: var(--brand-container); --rouge-on: var(--on-brand-container); --red: var(--brand);
  --ok: #2E7D4F; --warn-c: #FFF0D4; --warn-on: #7A4A00; --bad: #B3261E;
  --series-a: #7356A8; --series-b: #D2691E; --seq-hi: #4A337F;
  --ramp-0: #B39CDF; --ramp-1: #9479CC; --ramp-2: #7A5DB8; --ramp-3: #62479F; --ramp-4: #4A337F;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --lift: 0 1px 0 var(--line), 0 14px 32px -22px rgba(74, 40, 16, .45);
  color: var(--ink);
}
:root[data-look-mode="dark"] .lx {
    --ok: #7FD39B; --warn-c: #3A2B12; --warn-on: #F2B866; --bad: #FFB4AB;
    --series-a: #9273CF; --series-b: #D06A30; --seq-hi: #BBA8E0;
    --ramp-0: #5A4294; --ramp-1: #6E59A5; --ramp-2: #8670B9; --ramp-3: #9F8ACC; --ramp-4: #BBA8E0;
    --lift: 0 0 0 1px var(--line);
}
.lx a { color: inherit; }
.lx .hint { color: var(--ink-2); }
.lx .muted { color: var(--ink-3); }
.lx .card, .lx-card { background: var(--paper-1); border-radius: 22px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--lift); }
.lx-kicker { color: var(--lav); font-size: 12px; letter-spacing: .14em; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lx-kicker strong { color: var(--ink); letter-spacing: .04em; }
.lx-display { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: .02em; margin: 6px 0 4px; overflow-wrap: anywhere; }
.lx-display.sm { font-size: clamp(24px, 3vw, 34px); }
.lx-intro { color: var(--ink-2); max-width: 64ch; margin-top: 4px; }
.lx-sec-title { font-family: var(--serif); font-size: 19px; line-height: 26px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-sec-title::before { content: ""; width: 14px; height: 6px; border-radius: 3px; background: var(--rainbow-wing); flex: none; }
.lx-sec-sub { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.lx-meta-line { color: var(--ink-2); font-size: 13px; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lx-back { display: inline-block; margin-bottom: 12px; color: var(--ink-2) !important; font-weight: 600; }
.lx-link { color: var(--lav) !important; font-weight: 600; }
.lx-soft-empty { color: var(--ink-3); padding: 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; margin: 0; }
.lx-soft-empty.big { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; }
.lx-empty-m { width: 96px; height: 96px; object-fit: contain; animation: lx-bob 2.8s ease-in-out infinite alternate; }
.lx-banner { padding: 10px 14px; border-radius: 14px; margin-bottom: 16px; }
.lx-banner.warn { background: var(--warn-c); color: var(--warn-on); }
.lx-tag { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.lx-tag.bad { background: var(--rouge); color: var(--rouge-on); }
.lx-tag.warn { background: var(--warn-c); color: var(--warn-on); }
.lx-tag.mute { background: var(--paper-3); color: var(--ink-2); }
.lx-actbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 14px 0; }
.lx-act { display: inline-grid; gap: 2px; }
.lx-act .btn:not(:disabled):active { transform: scale(.95); }
.lx-act .btn { transition: transform .18s var(--spring); }
.lx-why { font-size: 11px; line-height: 15px; color: var(--ink-3); max-width: 22ch; }
.lx-off { margin: 0 0 12px; font-size: 13px; }
.lx-off-list { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }

/* 彩虹翼丝带与书脊 */
.lx-ribbon, .lx-spine { display: flex; overflow: hidden; }
.lx-ribbon { width: 96px; height: 5px; border-radius: 3px; margin-top: 14px; grid-column: 1 / -1; }
.lx-ribbon i, .lx-spine i { flex: 1; animation: lx-unfurl .5s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--i) * 55ms); }
.lx-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; flex-direction: column; }
.lx-ribbon i:nth-child(1), .lx-spine i:nth-child(1) { background: #8799D2; } .lx-ribbon i:nth-child(2), .lx-spine i:nth-child(2) { background: #73BBDB; }
.lx-ribbon i:nth-child(3), .lx-spine i:nth-child(3) { background: #8DCD66; } .lx-ribbon i:nth-child(4), .lx-spine i:nth-child(4) { background: #EDE04E; }
.lx-ribbon i:nth-child(5), .lx-spine i:nth-child(5) { background: #FDA535; } .lx-ribbon i:nth-child(6), .lx-spine i:nth-child(6) { background: #FE6828; }
.lx-ribbon i:nth-child(7), .lx-spine i:nth-child(7) { background: #F35737; }
.lx-spine i { transform-origin: top; }

/* 刊头（纸感渐变 + 翼弧） */
.lx-mast { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px; padding: 28px 32px 22px; margin-bottom: 18px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--rouge) 0%, transparent 55%), radial-gradient(80% 90% at 0% 100%, var(--lav-c) 0%, transparent 60%), var(--paper-1); }
.lx-mast::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 22px, color-mix(in srgb, var(--lav) 22%, transparent) 22px 24px); -webkit-mask: radial-gradient(circle at 100% 0, #000 40%, transparent 72%); mask: radial-gradient(circle at 100% 0, #000 40%, transparent 72%); }
.lx-mast-text, .lx-mast-act { position: relative; z-index: 1; }
.lx-canva-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; background: linear-gradient(135deg, #00C4CC, #7D2AE8); flex: none; }
.lx-canva-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink) !important; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.lx-canva-btn:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px #7D2AE8; }
.lx-canva-check { font-size: 12px; line-height: 18px; margin: 4px 0 0; color: var(--ink-3); min-height: 18px; }
.lx-canva-check.ok { color: var(--ok); } .lx-canva-check.ok::before { content: "✓ "; }
.lx-canva-check.bad { color: var(--bad); } .lx-canva-check.bad::before { content: "✗ "; }

/* 部门胶囊 / 头像 */
.lx-unit { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--dept-light); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.lx-unit-m { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: var(--paper); box-shadow: 0 0 0 2px var(--dept-accent); }
.lx-unit-x { color: var(--ink-3); font-weight: 500; }
.lx-ava, .lx-pava, .lx-c-ava, .lx-scope-ava { display: inline-grid; place-items: center; border-radius: 50%; background: var(--lav-c); color: var(--lav-on); font-weight: 700; flex: none; }
.lx-ava { width: 30px; height: 30px; font-size: 13px; }
.lx-pava { width: 22px; height: 22px; font-size: 11px; }

/* ---------- 期刊书架 ---------- */
.lx-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.lx-cover { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 26px 24px 20px 36px; border-radius: 6px 24px 24px 6px; overflow: hidden; color: var(--ink);
  background: linear-gradient(172deg, var(--dept-light) 0%, var(--paper) 58%); box-shadow: var(--lift); transition: transform .28s var(--spring), box-shadow .28s;
  animation: lx-rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 70ms); }
.lx-cover:hover { text-decoration: none; transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 1px 0 var(--line), 0 26px 44px -24px rgba(74, 40, 16, .55); }
.lx-cover-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lx-cover-kicker { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; display: flex; gap: 8px; align-items: center; }
.lx-cover-name { font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: .03em; }
.lx-cover-desc { color: var(--ink-2); font-size: 13px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-cover-units { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-cover-stats { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; border-top: 1.5px dashed var(--line); max-width: 72%; }
.lx-cover-stats li { display: grid; }
.lx-cover-n { font-family: var(--serif); font-size: 30px; line-height: 34px; font-weight: 900; }
.lx-cover-k { font-size: 11px; color: var(--ink-3); }
.lx-cover-foot { font-size: 12px; color: var(--ink-3); display: grid; gap: 2px; }
.lx-cover-me { color: var(--lav); font-weight: 600; }
.lx-cover-m { position: absolute; right: -14px; bottom: -12px; width: 128px; height: 128px; object-fit: contain; transform: rotate(-9deg); transition: transform .4s var(--spring); filter: drop-shadow(0 8px 10px rgba(74, 40, 16, .18)); }
.lx-cover:hover .lx-cover-m { transform: rotate(0) translateY(-8px); }

/* 期刊详情 */
.lx-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 28px 30px 20px 42px; border-radius: 8px 28px 28px 8px; overflow: hidden; margin-bottom: 20px;
  background: linear-gradient(165deg, var(--dept-light) 0%, var(--paper-1) 62%); box-shadow: var(--lift); }
.lx-hero-text { display: grid; gap: 8px; align-content: start; }
.lx-hero-m { width: 150px; height: 150px; object-fit: contain; align-self: end; animation: lx-bob 2.8s ease-in-out infinite alternate; }
.lx-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.lx-issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-issue-link { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--spring), box-shadow .2s; }
.lx-issue-link:hover { text-decoration: none; transform: translateX(4px); box-shadow: inset 0 0 0 1.5px var(--lav); }
.lx-issue-no { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--lav); text-align: center; line-height: 1; }
.lx-issue-main { display: grid; gap: 4px; min-width: 0; }
.lx-issue-label { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.lx-issue-title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.lx-issue-side { display: grid; justify-items: end; gap: 4px; font-size: 12px; }
.lx-prog-wrap { display: flex; align-items: center; gap: 10px; }
.lx-prog { display: flex; gap: 2px; flex: 1; max-width: 260px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--paper-3); }
.lx-prog-seg { min-width: 6px; }
.lx-prog-seg.seg-0 { background: var(--ramp-0); } .lx-prog-seg.seg-1 { background: var(--ramp-1); } .lx-prog-seg.seg-2 { background: var(--ramp-2); }
.lx-prog-seg.seg-3 { background: var(--ramp-3); } .lx-prog-seg.seg-4 { background: var(--ramp-4); }
.lx-prog-text, .lx-prog.empty { font-size: 12px; color: var(--ink-3); background: none; height: auto; }
.lx-stage { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.lx-stage.st-production, .lx-stage.ds-in_progress { background: var(--lav-c); color: var(--lav-on); }
.lx-stage.st-review { background: var(--warn-c); color: var(--warn-on); }
.lx-stage.st-approved, .lx-stage.st-published, .lx-stage.ds-ready, .lx-stage.ps-proof_ok { background: color-mix(in srgb, var(--ok) 16%, var(--paper)); color: var(--ok); }
.lx-due { font-weight: 600; color: var(--ink-2); }
.lx-due.late { color: var(--bad); }
.lx-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lx-team-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.lx-team-row .lx-ava { grid-row: span 2; }
.lx-team-row .muted { grid-column: 2 / -1; font-size: 12px; }
.lx-team-name { font-weight: 600; }
.lx-role { font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--paper-3); }
.lx-role.lead { background: var(--rouge); color: var(--rouge-on); }
.lx-teampick { display: grid; gap: 6px; max-height: 56vh; overflow: auto; }
.lx-teampick-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--paper-1, var(--sc-low)); cursor: pointer; }
.lx-teampick-row input { width: 20px; min-height: 20px; }
.lx-teampick-main { display: grid; }
.lx-role-sel { width: auto; min-height: 36px; padding: 4px 8px; }
.lx-form { display: grid; gap: 2px; }
.lx-people { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; }
.lx-person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--sc-low); cursor: pointer; font-size: 13px; }
.lx-person input { width: 16px; min-height: 16px; }
.lx-person:has(input:checked) { background: #EFE7F8; color: #45336A; font-weight: 600; }
.lx-subject-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #EFE7F8; color: #45336A; font-size: 12px; font-weight: 600; margin-bottom: 8px; }

/* ---------- 期次看板 ---------- */
.lx-board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head rail" "lanes rail" "lower rail"; grid-template-rows: auto auto 1fr; gap: 0 22px; }
.lx-board-main { display: contents; }
.lx-ihead-wrap { grid-area: head; min-width: 0; }
.lx-board-grid > .lx-board-main > .lx-lanes-wrap { grid-area: lanes; min-width: 0; }
.lx-lower { grid-area: lower; min-width: 0; }
.lx-board-grid > .lx-rail { grid-area: rail; align-self: start; }
@media (max-width: 1499px) {
  .lx-board-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "rail" "lanes" "lower"; }
  .lx-board-grid > .lx-rail { position: static; max-height: none; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 4px 20px; margin-top: 14px; padding: 12px 16px; }
  .lx-board-grid .lx-rail-head, .lx-board-grid .lx-pres-wrap { grid-column: 1; }
  .lx-board-grid .lx-feed { grid-column: 2; grid-row: 1 / span 2; max-height: 156px; overflow: auto; }
}
.lx-ihead { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 24px 28px; border-radius: 28px;
  background: radial-gradient(100% 120% at 100% 0%, var(--rouge) 0%, transparent 50%), radial-gradient(70% 100% at 0% 100%, var(--lav-c) 0%, transparent 60%), var(--paper-1); }
.lx-ihead-units { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lx-ihead-arrow { color: var(--ink-3); font-size: 18px; }
.lx-stepper { list-style: none; margin: 14px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 0; counter-reset: s; }
.lx-stepper li { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-right: 26px; font-size: 12px; color: var(--ink-3); }
.lx-stepper li:not(:last-child)::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--line); }
.lx-stepper li.done { color: var(--ink-2); } .lx-stepper li.done::after { background: var(--lav); }
.lx-stepper li.now { color: var(--ink); font-weight: 800; }
.lx-step-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.lx-stepper li.done .lx-step-dot { background: var(--lav); border-color: var(--lav); }
.lx-stepper li.now .lx-step-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 0 rgba(200, 22, 30, .45); animation: lx-ping 1.8s ease-out infinite; }
.lx-toolbar { position: sticky; top: calc(var(--bar-h) + 8px); z-index: 6; padding: 8px 10px; border-radius: 20px; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line); }
.lx-toolbar .lx-why { display: none; }
.lx-lanes-wrap { position: relative; margin: 6px 0 22px; }
.lx-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lx-lanes-empty { display: grid; justify-items: center; gap: 8px; padding: 40px; color: var(--ink-3); border: 1.5px dashed var(--line); border-radius: 22px; }
.lx-lane { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 300px; padding: 12px; border-radius: 22px; background: var(--paper-1); border-top: 6px solid var(--line); transition: background .4s; }
.lx-lane.held { border-top-color: var(--dept-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--dept-light) 85%, var(--paper-1)) 0, var(--paper-1) 140px); }
.lx-lane.idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border-top-style: dashed; }
.lx-lane-head { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 2px 4px 12px; }
.lx-lane-title { font-family: var(--serif); font-size: 18px; line-height: 24px; font-weight: 900; margin: 0; }
.lx-lane-hint { font-size: 12px; color: var(--ink-2); }
.lx-lane-n { font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1; color: var(--ink); }
.lx-lane-m { position: absolute; right: 26px; top: -22px; width: 40px; height: 40px; object-fit: contain; animation: lx-bob 2.8s ease-in-out infinite alternate; pointer-events: none; }
.lx-lane-body { display: grid; gap: 10px; align-content: start; }
.lx-lane-empty { font-size: 12px; color: var(--ink-3); text-align: center; padding: 18px 8px; }
.lx-piece { position: relative; display: grid; gap: 6px; padding: 12px 12px 10px 16px; border-radius: 16px; background: var(--paper); cursor: pointer; outline: none;
  box-shadow: inset 4px 0 0 var(--dept-accent), 0 1px 0 var(--line), 0 10px 22px -18px rgba(74, 40, 16, .6); transition: transform .22s var(--spring), box-shadow .22s; animation: lx-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.lx-piece:hover { transform: translateY(-3px); }
.lx-piece:focus-visible, .lx-piece.on { box-shadow: inset 4px 0 0 var(--dept-accent), 0 0 0 2.5px var(--lav), 0 12px 26px -18px rgba(74, 40, 16, .6); }
.lx-piece.late { box-shadow: inset 4px 0 0 var(--bad), 0 0 0 1.5px color-mix(in srgb, var(--bad) 45%, transparent), 0 10px 22px -18px rgba(74, 40, 16, .6); }
.lx-piece.moved { animation: lx-land .7s var(--spring) both; }
.lx-piece.fresh { animation: lx-land .7s var(--spring) both; }
.lx-piece-title { font-size: 15px; line-height: 21px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.lx-piece-who { font-size: 12px; color: var(--ink-3); }
.lx-piece-drafts { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.lx-mini { width: 34px; height: 42px; margin-left: -10px; border-radius: 6px; overflow: hidden; background: var(--paper-3); box-shadow: 0 0 0 2px var(--paper), 0 3px 6px rgba(0, 0, 0, .12); transform: rotate(calc((var(--n) - 1) * 5deg)); display: grid; place-items: center; }
.lx-mini:first-child { margin-left: 0; }
.lx-mini img { width: 100%; height: 100%; object-fit: cover; }
.lx-mini-ext { font-size: 9px; font-weight: 800; color: var(--ink-2); }
.lx-vtag { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.lx-vtag.big { height: 26px; min-width: 40px; font-size: 13px; border-radius: 8px; }
.lx-piece-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lx-holdchip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 2px; border-radius: 999px; background: var(--dept-light); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lx-holdchip.done { padding: 1px 10px; background: color-mix(in srgb, var(--ok) 16%, var(--paper)); color: var(--ok); }
.lx-holdchip.big { font-size: 13px; padding: 3px 12px 3px 3px; }
.lx-hold-m { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; background: var(--paper); }
.lx-holdchip.big .lx-hold-m { width: 28px; height: 28px; }
.lx-hold-t { color: var(--ink-3); font-weight: 500; }
.lx-canva-dot { margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff !important; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #00C4CC, #7D2AE8); transition: transform .2s var(--spring); }
.lx-canva-dot:hover { transform: scale(1.15); text-decoration: none; }
.lx-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 18px; }
.lx-design .lx-sec-title .lx-stage { font-family: var(--font); }
.lx-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-thumb { position: relative; display: grid; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--paper-3); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--spring); }
.lx-thumb:hover { transform: translateY(-3px) rotate(-1deg); text-decoration: none; }
.lx-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.lx-thumb-file { display: grid; place-content: center; gap: 6px; padding: 8px; text-align: center; }
.lx-thumb-ext { font-family: var(--serif); font-size: 18px; font-weight: 900; color: var(--lav); }
.lx-thumb-name { font-size: 10px; line-height: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.lx-thumb-badge { position: absolute; left: 6px; top: 6px; }
.lx-hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lx-hlist-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--paper); }
.lx-hlist-row .muted { grid-column: 2; font-size: 12px; }
.lx-hlist-row .lx-hs { grid-row: 1 / span 2; grid-column: 3; }
.lx-hlist-k { grid-row: 1 / span 2; font-size: 11px; font-weight: 700; color: var(--lav); writing-mode: horizontal-tb; }
.lx-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px dashed var(--line); display: grid; gap: 8px; font-size: 13px; }
.lx-hist li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* 现场栏 */
.lx-rail { position: sticky; top: calc(var(--bar-h) + 16px); max-height: calc(100vh - var(--bar-h) - 32px); overflow: auto; padding: 16px; border-radius: 24px; background: var(--paper-1); box-shadow: var(--lift); }
.lx-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lx-rail-title { font-family: var(--serif); font-size: 20px; font-weight: 900; margin: 0; }
.lx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.lx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.lx-live.on { color: var(--ok); }
.lx-live.on i { background: #2FB463; animation: lx-ping-g 1.8s ease-out infinite; }
.lx-presence { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.lx-pchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; animation: lx-pop .45s var(--spring) both; }
.lx-pchip .lx-pava { position: relative; }
.lx-pchip .lx-pava::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #2FB463; box-shadow: 0 0 0 2px var(--paper); }
.lx-pchip-u { color: var(--ink-3); font-weight: 500; }
.lx-presence-n { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.lx-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lx-feed-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.lx-feed-row.fresh { animation: lx-row-in .6s cubic-bezier(.2, .8, .2, 1) both, lx-glow 2.4s ease-out both; }
.lx-feed-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--dept-light); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--dept-accent); }
.lx-feed-m { width: 24px; height: 24px; object-fit: contain; }
.lx-feed-main { min-width: 0; }
.lx-feed-text { display: block; font-size: 13px; line-height: 19px; color: var(--ink) !important; font-weight: 500; overflow-wrap: anywhere; }
.lx-feed-time { font-size: 11px; color: var(--ink-3); }
.lx-feed-empty { font-size: 12px; color: var(--ink-3); padding: 12px 4px; }

/* 稿件抽屉 */
.lx-drawer-scrim { position: fixed; inset: 0; background: rgba(43, 33, 27, .18); z-index: 44; animation: lx-fade .2s both; }
.lx-drawer { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top)); right: 0; bottom: 0; width: min(580px, 100vw); z-index: 45; overflow: auto; padding: 22px 26px 40px; outline: none;
  background: var(--paper); color: var(--ink); box-shadow: -24px 0 60px -30px rgba(43, 33, 27, .5); border-radius: 28px 0 0 28px; animation: lx-slide .34s cubic-bezier(.2, .8, .2, 1) both; }
.lx-drawer-x { position: absolute; right: 16px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 22px; cursor: pointer; z-index: 2; }
.lx-drawer-x:hover { background: var(--paper-3); }
.lx-dhead { position: relative; padding: 18px 20px; margin: 0 0 6px; border-radius: 22px; background: linear-gradient(160deg, var(--dept-light), var(--paper) 80%); }
.lx-dtitle { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 900; margin: 6px 48px 4px 0; overflow-wrap: anywhere; }
.lx-dhold { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lx-dfacts { margin: 10px 4px 16px; font-size: 13px; }
.lx-dsec { margin: 18px 0; }
.lx-copy { display: grid; gap: 6px; }
.lx-copy-ta { min-height: 220px; font-size: 15px; line-height: 26px; background: var(--paper-1); border-color: var(--line); color: var(--ink); font-family: var(--serif); }
.lx-copy-read { padding: 14px 16px; border-radius: 16px; background: var(--paper-1); font-family: var(--serif); font-size: 15px; line-height: 26px; }
.lx-drafts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lx-draft { padding: 12px; border-radius: 16px; background: var(--paper-1); display: grid; gap: 8px; }
.lx-draft.latest { box-shadow: inset 0 0 0 2px var(--lav); }
.lx-draft-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; }
.lx-draft-note { font-size: 13px; color: var(--ink-2); }
.lx-drawer-acts { padding: 12px; border-radius: 18px; background: var(--paper-1); }
.lx-drawer-acts .lx-why { display: none; }

/* 评论 */
.lx-thread { margin-top: 18px; }
.lx-comments { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.lx-comments.sub { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid var(--line); }
.lx-c { display: grid; grid-template-columns: 30px 1fr; gap: 10px; animation: lx-row-in .4s both; }
.lx-c-ava { width: 30px; height: 30px; font-size: 13px; }
.lx-c.mine .lx-c-ava { background: var(--rouge); color: var(--rouge-on); }
.lx-c.focus .lx-c-main { box-shadow: 0 0 0 2px var(--lav); }
.lx-c-main { min-width: 0; padding: 8px 12px 6px; border-radius: 4px 16px 16px 16px; background: var(--paper-1); }
.lx-c-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; color: var(--ink-3); }
.lx-c-head strong { color: var(--ink); font-size: 13px; }
.lx-c-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 22px; margin: 2px 0; }
.lx-c-acts { display: flex; gap: 4px; }
.lx-c-btn { border: 0; background: none; padding: 2px 6px; border-radius: 6px; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.lx-c-btn:hover { background: var(--paper-3); color: var(--ink); }
.lx-c-empty { color: var(--ink-3); font-size: 13px; padding: 6px 0; }
.lx-at { background: var(--lav-c); color: var(--lav-on); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.lx-compose { display: grid; gap: 6px; }
.lx-compose-box { position: relative; }
.lx-compose-ta { background: var(--paper); border-color: var(--line); color: var(--ink); border-radius: 16px; }
.lx-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lx-replying { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--lav); font-weight: 600; }
.lx-mention { position: absolute; left: 8px; right: 8px; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(43, 33, 27, .45); max-height: 260px; overflow: auto; animation: lx-pop .25s var(--spring) both; }
.lx-mention-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.lx-mention-opt[aria-selected="true"], .lx-mention-opt:hover { background: var(--lav-c); }
.lx-mention-empty { padding: 8px; font-size: 12px; color: var(--ink-3); }

/* ---------- 跨部门协作 ---------- */
.lx-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.lx-scope-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 2px 14px 2px 3px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; color: var(--ink-2); background: var(--paper-1); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s var(--spring); }
.lx-scope-chip:hover { transform: translateY(-2px); }
.lx-scope-chip.on { background: var(--dept-light); color: var(--ink); box-shadow: inset 0 0 0 2px var(--dept-accent); }
.lx-scope-m, .lx-scope-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: var(--paper); }
.lx-wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.lx-wcol { border-radius: 26px; padding: 18px; background: var(--paper-1); box-shadow: var(--lift); }
.lx-wcol.rouge { background: linear-gradient(180deg, var(--rouge), var(--paper-1) 120px); }
.lx-wcol.lav { background: linear-gradient(180deg, var(--lav-c), var(--paper-1) 120px); }
.lx-wcol-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lx-wcol-title { font-family: var(--serif); font-size: 26px; font-weight: 900; margin: 0; }
.lx-wcol-hint { font-size: 12px; color: var(--ink-2); }
.lx-hero-n { font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 900; animation: lx-pop .6s var(--spring) both; }
.lx-wcol.rouge .lx-hero-n { color: var(--rouge-on); }
.lx-wcol.lav .lx-hero-n { color: var(--lav-on); }
.lx-ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-ho-list.card-like { padding: 0; }
.lx-ho { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 1px 0 var(--line); animation: lx-rise .4s both; transition: transform .2s var(--spring); }
.lx-ho:hover { transform: translateX(3px); }
.lx-ho.late { box-shadow: inset 4px 0 0 var(--bad), 0 1px 0 var(--line); }
.lx-baton { position: relative; display: flex; align-items: center; justify-content: space-between; width: 76px; }
.lx-baton.mini { width: 64px; }
.lx-baton-end { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dept-light); box-shadow: 0 0 0 2px var(--dept-accent); }
.lx-baton-m { width: 26px; height: 26px; object-fit: contain; }
.lx-baton-line { position: absolute; left: 15px; right: 15px; top: 50%; border-top: 2px dashed var(--ink-3); opacity: .5; }
.lx-ho-main { min-width: 0; display: grid; gap: 3px; }
.lx-ho-kicker { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .03em; }
.lx-ho-title { display: block; font-weight: 800; font-size: 15px; line-height: 21px; color: var(--ink) !important; overflow-wrap: anywhere; }
.lx-ho-sub { font-size: 12px; color: var(--ink-3); }
.lx-ho-side { display: grid; justify-items: end; gap: 4px; font-size: 12px; }
.lx-ho-due { color: var(--ink-3); }
.lx-wait { font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--ink); white-space: nowrap; }
.lx-wait.late { color: var(--bad); }
.lx-sla { height: 4px; border-radius: 2px; background: var(--paper-3); overflow: hidden; max-width: 220px; margin-top: 4px; }
.lx-sla.wide { max-width: 320px; flex: 1; height: 6px; border-radius: 3px; }
.lx-sla-fill { display: block; height: 100%; width: calc(var(--r) * 100%); background: var(--lav); border-radius: inherit; animation: lx-grow .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.late .lx-sla-fill { background: var(--bad); }
.lx-hs { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.lx-hs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.lx-hs.hs-open .lx-hs-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.lx-hs.hs-asked { color: var(--warn-on); } .lx-hs.hs-asked .lx-hs-dot { background: #E0A100; }
.lx-hs.hs-accepted { color: var(--lav); } .lx-hs.hs-accepted .lx-hs-dot { background: var(--lav); }
.lx-hs.hs-done { color: var(--ok); } .lx-hs.hs-done .lx-hs-dot { background: var(--ok); }

/* 交接卡详情：接力棒 */
.lx-hhead { position: relative; padding: 24px 28px; border-radius: 28px; margin-bottom: 8px; overflow: hidden;
  background: radial-gradient(100% 120% at 100% 0%, var(--lav-c) 0%, transparent 55%), var(--paper-1); box-shadow: var(--lift); }
.lx-hhead.late { background: radial-gradient(100% 120% at 100% 0%, var(--rouge) 0%, transparent 55%), var(--paper-1); }
.lx-pass { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 18px 0 12px; }
.lx-pass-end { display: flex; align-items: center; gap: 10px; }
.lx-pass-end.to { flex-direction: row-reverse; text-align: right; }
.lx-pass-m { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: var(--dept-light); box-shadow: 0 0 0 3px var(--dept-accent); animation: lx-bob 2.8s ease-in-out infinite alternate; }
.lx-pass-end.to .lx-pass-m { animation-delay: -1.4s; }
.lx-pass-u { font-family: var(--serif); font-size: 18px; font-weight: 900; }
.lx-pass-p { font-size: 12px; color: var(--ink-2); }
.lx-pass-mid { position: relative; height: 24px; }
.lx-pass-track { position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); }
.lx-pass-ball { position: absolute; top: 50%; left: 12%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: conic-gradient(#8799D2, #73BBDB, #8DCD66, #EDE04E, #FDA535, #FE6828, #F35737, #8799D2); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: lx-roll-a 1.1s var(--spring) both; }
.lx-pass-ball.near { left: 62%; animation-name: lx-roll-b; }
.lx-pass-ball.arrived { left: 100%; animation-name: lx-roll-c; }
.lx-hmeta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lx-hgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lx-hcol.side .facts { font-size: 13px; }

/* 跨部门看板 */
.lx-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.lx-board-head .chips { margin: 0; }
.lx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lx-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; background: var(--paper-1); box-shadow: var(--lift); animation: lx-rise .45s both; }
.lx-stat-v { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 36px; font-weight: 900; white-space: nowrap; }
.lx-stat-k { font-size: 12px; color: var(--ink-2); }
.lx-stat.bad .lx-stat-v { color: var(--bad); }
.lx-stat.warn .lx-stat-v { color: var(--warn-on); }
.lx-collab .lx-card, .lx-collab .lx-stats { position: relative; }
.lx-mx-wrap { overflow-x: auto; padding-bottom: 6px; }
.lx-matrix { display: grid; grid-template-columns: minmax(110px, auto) repeat(var(--n), minmax(88px, 1fr)); gap: 4px; min-width: max-content; }
.lx-mx-corner { font-size: 11px; color: var(--ink-3); align-self: end; padding: 4px; }
.lx-mx-col { display: flex; justify-content: center; align-items: end; padding-bottom: 4px; }
.lx-mx-row { display: flex; align-items: center; padding-right: 6px; }
.lx-mx-cell { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; min-height: 64px; border-radius: 12px; cursor: default; outline: none;
  background: color-mix(in oklab, var(--seq-hi) calc(var(--t, 0) * 78% + 10%), var(--paper)); transition: transform .2s var(--spring); }
.lx-mx-cell:hover, .lx-mx-cell:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); z-index: 1; }
.lx-mx-cell.zero { background: var(--paper-1); box-shadow: inset 0 0 0 1px var(--line); }
.lx-mx-cell.zero::after { content: "·"; color: var(--ink-3); }
.lx-mx-cell.self { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 9px); }
.lx-mx-n { min-width: 30px; padding: 0 8px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 14px; line-height: 22px; text-align: center; }
.lx-mx-od { padding: 0 6px; border-radius: 999px; background: var(--paper); color: var(--bad); font-size: 11px; font-weight: 700; line-height: 18px; }
.lx-mx-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.lx-mx-ramp { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in oklab, var(--seq-hi) 10%, var(--paper)), color-mix(in oklab, var(--seq-hi) 88%, var(--paper))); }
.lx-mx-legend span:nth-child(3) { order: 1; } .lx-mx-legend .lx-mx-ramp { order: 2; } .lx-mx-legend span:nth-child(4) { order: 3; }
.lx-mx-table { margin-top: 10px; font-size: 13px; }
.lx-tip { position: absolute; z-index: 30; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 18px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }
.lx-collab .lx-board-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 18px; }
.lx-ub-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.lx-ub-key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lx-ub-key.a::before { background: var(--series-a); } .lx-ub-key.b::before { background: var(--series-b); }
.lx-ub { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lx-ub-row { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 10px; align-items: center; }
.lx-ub-bars { display: grid; gap: 3px; }
.lx-ub-bar { position: relative; height: 12px; width: max(4px, calc(var(--w) * 100%)); border-radius: 0 4px 4px 0; animation: lx-grow .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.lx-ub-bar.a { background: var(--series-a); } .lx-ub-bar.b { background: var(--series-b); }
.lx-ub-bar span { position: absolute; left: calc(100% + 6px); top: -3px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.lx-ub-med { font-size: 12px; color: var(--ink-3); min-width: 56px; text-align: right; }
.lx-stuck { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-stuck-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--paper); }

/* 动效 */
@keyframes lx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lx-unfurl { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lx-bob { from { translate: 0 -4px; rotate: -2deg; } to { translate: 0 4px; rotate: 2deg; } }
@keyframes lx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lx-land { 0% { transform: translateY(-16px) scale(.94); opacity: .2; } 60% { transform: translateY(2px) scale(1.02); opacity: 1; } 100% { transform: none; } }
@keyframes lx-row-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes lx-glow { from { background: var(--lav-c); } to { background: transparent; } }
@keyframes lx-fade { from { opacity: 0; } }
@keyframes lx-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lx-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lx-ping { 0% { box-shadow: 0 0 0 0 rgba(200, 22, 30, .45); } 100% { box-shadow: 0 0 0 9px rgba(200, 22, 30, 0); } }
@keyframes lx-ping-g { 0% { box-shadow: 0 0 0 0 rgba(47, 180, 99, .5); } 100% { box-shadow: 0 0 0 8px rgba(47, 180, 99, 0); } }
@keyframes lx-roll-a { from { left: 0; rotate: -360deg; } }
@keyframes lx-roll-b { from { left: 0; rotate: -720deg; } }
@keyframes lx-roll-c { from { left: 0; rotate: -1080deg; } }
.lx-spine i { animation-name: lx-unfurl-y; }
@keyframes lx-unfurl-y { from { transform: scaleY(0); } to { transform: none; } }

@media (max-width: 1199px) {
  .lx-hgrid, .lx-two { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .lx-board-grid > .lx-rail { grid-template-columns: 1fr; }
  .lx-board-grid .lx-feed { grid-column: 1; grid-row: auto; }
}
@media (max-width: 899px) {
  .lx-mast, .lx-ihead, .lx-hero { grid-template-columns: 1fr; padding: 20px; }
  .lx-hero { padding-left: 28px; }
  .lx-hero-m { position: absolute; right: -10px; top: 10px; width: 90px; height: 90px; opacity: .9; }
  .lx-lanes { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .lx-lane { min-height: 0; }
  .lx-ho { grid-template-columns: 1fr; }
  .lx-ho-side { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .lx-baton { display: none; }
  .lx-drawer { border-radius: 24px 24px 0 0; top: 10vh; width: 100vw; padding: 18px 16px 90px; }
  .lx-toolbar { position: static; }
  .lx-toolbar .lx-act.off { display: none; }
  .lx-issue-link { grid-template-columns: 52px 1fr; }
  .lx-issue-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 8px; }
  .lx-pass-m { width: 46px; height: 46px; }
}
/* collab-r1 END */

/* pan-r1：云盘目录树（一键复制） */
.tree-text { white-space: pre; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--sc-high); padding: var(--s-sm) var(--s-md); border-radius: var(--r-card); margin: var(--s-sm) 0; }

/* ---------------- 开发者控制台（devadmin-r1）：深色指挥台面板，暖墨底 + 奶油字，交大红只做警示 ---------------- */
.devc {
  --surface: #15110E; --sc-low: #1E1814; --sc: #251E19; --sc-high: #2E2620; --sc-highest: #3A3029;
  --on: #F6EFE7; --on-var: #D3C9BE; --on-ter: #A59A8E; --outline: #8C8175; --outline-var: #3A3129;
  --brand-text: #FF9B84; --success: #86DCA0; --warning: #F7B764; --error: #FF9F92; --error-c: #4B1F1A;
  --accent: #FFC38A; --accent-2: #FF7A59;
  color-scheme: dark;
  position: relative; overflow: hidden; border-radius: 28px; padding: var(--s-xl);
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(255, 122, 89, 0.20), transparent 60%),
    radial-gradient(700px 320px at -10% 0%, rgba(255, 195, 138, 0.12), transparent 55%),
    var(--surface);
  color: var(--on);
  box-shadow: 0 24px 60px rgba(21, 17, 14, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.devc .card, .devc .tile { background: var(--sc-low); border: 1px solid var(--outline-var); }
.devc .btn.primary { background: linear-gradient(135deg, var(--accent-2), #E5483A); color: #fff; }
.devc .btn.primary:hover { filter: brightness(1.08); }
.devc .btn.tonal { background: var(--sc-highest); color: var(--on); }
.devc .btn.text { color: var(--accent); }
.devc a { color: var(--accent); }
.devc a.btn.tonal { color: var(--on); }
.devc .row { border-top-color: var(--outline-var); }
.devc .switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.devc .switch[aria-checked="true"]::after { background: var(--surface); }

.dv-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--s-xl); padding: var(--s-xs) 0 var(--s-lg); border-bottom: 1px solid var(--outline-var); margin-bottom: var(--s-xl); }
.dv-kicker { color: var(--accent); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; }
.dv-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; margin: var(--s-xs) 0; background: linear-gradient(95deg, #FFF3E4, var(--accent) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dv-sub { color: var(--on-var); font-variant-numeric: tabular-nums; }
.dv-intro { color: var(--on-ter); max-width: 62ch; margin-top: var(--s-sm); font-size: 13px; line-height: 20px; }
.dv-orb { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--success), #2F7D4B, var(--success)); animation: dv-spin 14s linear infinite; }
.dv-orb::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.dv-orb-core { position: relative; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D8FFE4, var(--success) 55%, #2A7A48); box-shadow: 0 0 0 0 rgba(134, 220, 160, 0.5); animation: dv-pulse 2.6s ease-out infinite; }
.dv-orb.is-alert { background: conic-gradient(from 200deg, var(--accent-2), var(--accent), var(--accent-2)); }
.dv-orb.is-alert .dv-orb-core { background: radial-gradient(circle at 35% 30%, #FFE3C8, var(--accent-2) 55%, #B2321F); animation-name: dv-pulse-alert; }
@keyframes dv-spin { to { transform: rotate(360deg); } }
@keyframes dv-pulse { 0% { box-shadow: 0 0 0 0 rgba(134, 220, 160, 0.45); } 70%, 100% { box-shadow: 0 0 0 26px rgba(134, 220, 160, 0); } }
@keyframes dv-pulse-alert { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55); } 70%, 100% { box-shadow: 0 0 0 26px rgba(255, 122, 89, 0); } }

.dv-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-xl); align-items: start; }
.dv-nav { position: sticky; top: calc(var(--bar-h) + var(--s-md)); display: grid; gap: var(--s-xxs); }
.dv-nav-item { display: grid; gap: 2px; text-align: left; padding: var(--s-sm) var(--s-md); border: 0; border-radius: var(--r-card); background: transparent; color: var(--on); cursor: pointer; border-left: 3px solid transparent; }
.dv-nav-item:hover { background: var(--sc); }
.dv-nav-item.on { background: var(--sc-high); border-left-color: var(--accent-2); }
.dv-nav-name { font-weight: 600; font-size: 15px; }
.dv-nav-hint { color: var(--on-ter); font-size: 12px; line-height: 16px; }
.dv-main { min-width: 0; outline: none; }
.dv-actions { display: flex; justify-content: flex-end; margin-bottom: var(--s-xs); }
.dv-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-xs); align-items: center; margin-bottom: var(--s-md); }
.dv-toolbar .hint { flex: 1 1 280px; }
.dv-input { min-height: 40px; padding: 0 var(--s-md); border-radius: var(--r-full); border: 1px solid var(--outline-var); background: var(--sc-low); color: var(--on); min-width: 0; }
.dv-input:focus-visible { outline-color: var(--accent); }
.dv-toolbar .dv-input { width: auto; flex: 1 1 180px; max-width: 260px; }
.dv-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dv-tile .tile-v { font-size: 30px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dv-tile.is-warn { border-color: rgba(247, 183, 100, 0.55); }
.dv-tile.is-warn .tile-v { color: var(--warning); }
.meter { height: 8px; border-radius: 4px; background: var(--sc-highest); overflow: hidden; margin: var(--s-xs) 0; }
.meter > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 400ms ease; }
.meter.is-ok > i { background: linear-gradient(90deg, #4FBF78, var(--success)); }
.meter.is-warn > i { background: linear-gradient(90deg, var(--warning), var(--accent-2)); }
.dv-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-chip); background: var(--sc-highest); color: var(--on-var); font-size: 12px; font-weight: 500; white-space: nowrap; }
.dv-chip.is-ok { color: var(--success); background: rgba(134, 220, 160, 0.12); }
.dv-chip.is-warn { color: var(--warning); background: rgba(247, 183, 100, 0.14); }
.dv-chip.is-err { color: var(--error); background: var(--error-c); }
.dv-radar .row { align-items: center; }
.dv-pip { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--on-ter); }
.dv-radar .dv-pip { margin-top: 0; }
.dv-pip.is-err { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.2); }
.dv-pip.is-warn { background: var(--warning); }
.dv-pip.is-ok { background: var(--success); }
.dv-pip.is-info { background: var(--accent); }
.dv-calm { color: var(--on-var); }
.dv-ok { color: var(--success); font-weight: 500; }
.dv-bad { color: var(--error); font-weight: 500; }
.dv-code { background: var(--sc); border-radius: var(--r-thumb); padding: var(--s-sm) var(--s-md); margin: var(--s-xs) 0; white-space: pre-wrap; overflow-x: auto; }
.dv-result { margin-top: var(--s-sm); }
.dv-rule-head { display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-sm); align-items: center; }
.dv-rule-title { font-size: 16px; font-weight: 600; }
.dv-matrix { display: grid; grid-template-columns: minmax(120px, 1.2fr) 1fr 1fr; gap: 1px; background: var(--outline-var); border-radius: var(--r-thumb); overflow: hidden; margin: var(--s-sm) 0; }
.dv-matrix > span { background: var(--sc-low); padding: var(--s-xs) var(--s-sm); font-size: 13px; }
.dv-mh { color: var(--on-ter); font-weight: 600; }
.dv-mk { font-weight: 500; }
.dv-check .row { align-items: flex-start; }
.dv-action .card-title { color: var(--accent); }
@media (max-width: 899px) {
  .devc { padding: var(--s-md); border-radius: 20px; }
  .dv-hero { flex-direction: column-reverse; align-items: flex-start; gap: var(--s-md); }
  .dv-orb { width: 92px; height: 92px; }
  .dv-orb-core { width: 38px; height: 38px; }
  .dv-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-md); }
  .dv-nav { position: static; display: flex; overflow-x: auto; gap: var(--s-xs); padding-bottom: var(--s-xs); scrollbar-width: none; }
  .dv-nav-item { flex: none; padding: var(--s-xs) var(--s-md); border-left: 0; border-bottom: 3px solid transparent; border-radius: var(--r-chip); }
  .dv-nav-item.on { border-bottom-color: var(--accent-2); }
  .dv-nav-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dv-orb, .dv-orb-core { animation: none; } }

/* mtg-r1 例会筹备 */
.wk-banner { display: flex; gap: var(--s-md); align-items: center; padding: var(--s-lg); margin-bottom: var(--s-md); border-radius: var(--r-card); background: var(--dept-light); border-left: 6px solid var(--dept-accent); }
.wk-banner h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.wk-banner-mascot { width: 96px; height: 96px; animation: wk-float 2.8s ease-in-out infinite alternate; }
@keyframes wk-float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .wk-banner-mascot { animation: none; } }
.wk-slots, .wk-notes { list-style: none; padding: 0; margin: var(--s-sm) 0 0; }
.wk-slot { display: flex; gap: var(--s-sm); align-items: flex-start; padding: var(--s-sm) var(--s-md); margin-bottom: var(--s-xs); border-radius: var(--r-card); background: var(--dept-light); border: 1px solid rgba(0, 0, 0, .1); }
.wk-slot.skip { opacity: .65; }
.wk-slot.drag { opacity: .5; }
.wk-grip { cursor: grab; align-self: center; letter-spacing: -2px; opacity: .6; }
.wk-num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--dept-accent); display: grid; place-items: center; font-weight: 700; background: var(--sc-low); }
.wk-mascot { flex: none; }
.wk-body { flex: 1; min-width: 0; }
.wk-hl { white-space: pre-line; margin: 4px 0; font-size: 14px; }
.wk-tags { display: flex; gap: var(--s-sm); }
.wk-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wk-add { display: flex; gap: var(--s-sm); align-items: flex-start; margin-top: var(--s-sm); }
.wk-add textarea { flex: 1; }
.wk-bar { position: sticky; bottom: 0; padding: var(--s-sm) 0; align-items: center; }
.wk-hist ul { margin: 4px 0 var(--s-sm) var(--s-md); }

/* org-e 换届选举（团代会选举）：核算器与阶段清单 */
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-sm); margin-bottom: var(--s-sm); align-items: end; }
.calc-f { display: grid; gap: 4px; font-size: 13px; color: var(--on-var); }
.calc-f input, .calc-f select { font: inherit; }
.calc-head, .calc-row { display: grid; grid-template-columns: minmax(120px, 2fr) repeat(3, minmax(70px, 1fr)) auto; gap: var(--s-xs); align-items: center; }
.calc-head { font-size: 12px; color: var(--on-ter); margin: var(--s-sm) 0 4px; }
.calc-row { margin-bottom: var(--s-xs); }
.calc-result { margin-top: var(--s-md); display: grid; gap: var(--s-sm); }
.badge-pending { display: inline-block; padding: 0 10px; border-radius: var(--r-chip); background: var(--sc-high); color: var(--warning); font-weight: 600; font-size: 12px; line-height: 22px; }
.stage { margin-bottom: var(--s-sm); padding: var(--s-md); }
.stage-heading { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-sm); margin-bottom: var(--s-md); }
.stage-heading h3 { margin: 0; }
@media (max-width: 640px) { .calc-head { display: none; } .calc-row { grid-template-columns: 1fr 1fr; } }

/* ---------------- 领域模型 v2（五育 + 团学业务）：色调取设计令牌（彩虹翼七色、薰衣草、中性），只作装饰，文字另有对比 ---------------- */
[data-tone] { --tone: #8A8D91; }
[data-tone="wing1"] { --tone: #8799D2; }
[data-tone="wing2"] { --tone: #73BBDB; }
[data-tone="wing3"] { --tone: #8DCD66; }
[data-tone="wing4"] { --tone: #EDE04E; }
[data-tone="wing5"] { --tone: #FDA535; }
[data-tone="wing6"] { --tone: #FE6828; }
[data-tone="wing7"] { --tone: #F35737; }
[data-tone="lavender"] { --tone: #B093CC; }
.dtone { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; margin-top: 7px; display: inline-block; margin-right: var(--s-xs); }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-xxs) 0; }
.dchip { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r-full); border: 1.5px solid var(--tone); font-size: 12px; line-height: 22px; color: var(--on); }
.dchip.primary { background: color-mix(in srgb, var(--tone) 30%, transparent); font-weight: 600; }
.dchip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.dchip-note, .dchip-sub { color: var(--on-ter); font-weight: 400; }
.bars { display: flex; align-items: flex-end; gap: var(--s-xs); height: 96px; margin-top: var(--s-sm); }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 30px; }
.bar-fill { display: block; width: 100%; background: var(--outline); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-label { font-size: 11px; color: var(--on-ter); }
.heat { table-layout: fixed; min-width: 680px; }
.heat th, .heat td { text-align: center; padding: 4px; }
.heat th.heat-name { text-align: left; width: 168px; white-space: nowrap; font-weight: 500; }
.heat th.heat-name .dtone { margin-top: 0; vertical-align: middle; }
.heat td.num { text-align: center; }
.heat-cell { position: relative; width: 100%; min-height: 36px; border: 1px solid var(--outline-var); border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; color: var(--on); }
.heat-cell:hover { border-color: var(--tone); }
.heat-cell[data-level="1"] { background: color-mix(in srgb, var(--tone) 20%, var(--surface)); }
.heat-cell[data-level="2"] { background: color-mix(in srgb, var(--tone) 40%, var(--surface)); }
.heat-cell[data-level="3"] { background: color-mix(in srgb, var(--tone) 62%, var(--surface)); }
.heat-cell[data-level="4"] { background: color-mix(in srgb, var(--tone) 82%, var(--surface)); }
.heat-dot { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--on); }
.heat-yu td { font-size: 12px; color: var(--on-var); }
.cov-detail { margin-top: var(--s-md); }
.gaps { margin: 0; padding-left: var(--s-lg); }
.gaps li { padding: 2px 0; }
.drill { border-top: 1px solid var(--outline-var); padding: var(--s-xs) 0; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-md); }
.basis { margin: 0; padding-left: var(--s-lg); }
.basis li { padding: 2px 0; color: var(--on-var); }
.dialog:has(.picker) { width: min(720px, calc(100vw - 32px)); }
.picker { max-height: 60vh; overflow: auto; min-width: 0; max-width: 100%; }
.picker input[type=radio], .picker input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.picker-group { border: 0; padding: 0; margin: 0 0 var(--s-md); }
.picker-group > legend { font-weight: 600; padding: 0; margin-bottom: var(--s-xs); }
.picker-row { padding: var(--s-xs) 0; border-top: 1px solid var(--outline-var); }
.picker-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-xs) var(--s-md); align-items: center; }
.picker-main .check { display: inline-flex; align-items: center; gap: var(--s-xs); }
.picker-name { font-weight: 500; border-left: 4px solid var(--tone); padding-left: var(--s-xs); }
.picker-primary { color: var(--on-var); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.picker-subs { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0 0 24px; }
.picker-summary { margin-top: var(--s-sm); padding: var(--s-xs) var(--s-sm); background: var(--sc-high); border-radius: var(--r-chip); }
.dom-card { background: var(--sc-low); border-radius: var(--r-card); margin-bottom: var(--s-sm); border-left: 6px solid var(--tone, var(--outline-var)); }
.dom-card-heading { padding: var(--s-md); display: flex; flex-wrap: wrap; gap: var(--s-xs); align-items: center; }
.dom-card-heading h3 { font-size: 1rem; margin: 0; }
.domain-editor-navigation { display: grid; gap: var(--s-sm); margin-bottom: var(--s-md); }
.domain-editor-choices { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.domain-editor-choices [aria-current="true"] { background: var(--accent-container); color: var(--on-accent-container); box-shadow: inset 0 0 0 1px var(--accent); }
.dom-body { padding: 0 var(--s-md) var(--s-md); }
.dom-body .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 var(--s-md); }
.sub-row { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr auto; gap: var(--s-xs); align-items: end; margin-bottom: var(--s-xs); padding-bottom: var(--s-xs); border-bottom: 1px dashed var(--outline-var); }
@media (max-width: 720px) { .sub-row { grid-template-columns: 1fr 1fr; } }
fieldset.chk { border: 0; padding: 0; margin: var(--s-sm) 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
fieldset.chk > legend { color: var(--on-ter); font-size: 12px; padding: 0; margin-bottom: 4px; width: 100%; float: left; }
.diff { margin: 0; padding-left: var(--s-lg); }
.diff li { padding: 2px 0; overflow-wrap: anywhere; }
.report { min-width: 880px; }
.report th, .report td { white-space: nowrap; }
.report th[scope=row] { font-weight: 500; }
.dom-card-heading { color: var(--on); }
.dom-card-heading h3 { font-weight: 600; }

/* ---------------- 页面插画（J2 / T-ART-11：美术素材库的状态图、全家福、控制台页头） ---------------- */
.state-art { display: block; width: min(240px, 70%); height: auto; aspect-ratio: 800 / 533; margin: 0 auto var(--s-sm); object-fit: contain; }
.empty.has-art { display: grid; justify-items: center; gap: var(--s-xxs); }
.empty.has-art .state-art { width: min(260px, 72%); margin-bottom: 0; }
.empty-text { margin: 0; }
.error-card.has-art { align-items: center; }
.error-card .err-art { flex: none; width: 148px; margin: 0; }
@media (max-width: 480px) { .error-card .err-art { width: 96px; } }
/* 深色模式：原稿线条是深褐与黑色，直接铺在深色底上会糊，垫一块暖纸色圆角底板 */
:root[data-look-mode="dark"] .state-art { background: #FBF3EA; border-radius: var(--r-feature); padding: var(--s-xs); box-sizing: border-box; }
/* 开发者控制台整体是深色“指挥台”（与系统明暗无关）：插画一律垫底板 */
.devc .dv-hero-art, .devc .state-art { background: #FBF3EA; }
.devc .state-art { border-radius: var(--r-feature); padding: var(--s-xs); box-sizing: border-box; }
/* 登录页宽屏侧栏：六只小团子全家福（原图上下留白较多，裁成横条） */
.auth-family { width: min(520px, 92%); height: auto; aspect-ratio: 1080 / 290; object-fit: cover; object-position: 50% 52%; }
:root[data-look-mode="dark"] .auth-family { background: #FBF3EA; border-radius: var(--r-feature); }
/* 开发者控制台“指挥甲板”：页头插画，状态圆环缩成右上角徽标 */
.dv-hero-fig { position: relative; flex: none; width: min(260px, 34%); }
.dv-hero-art { display: block; width: 100%; height: auto; aspect-ratio: 720 / 480; object-fit: contain; border-radius: 20px; }
.dv-hero-fig .dv-orb { position: absolute; top: -6px; right: -6px; width: 52px; height: 52px; }
.dv-hero-fig .dv-orb::before { inset: 4px; }
.dv-hero-fig .dv-orb-core { width: 22px; height: 22px; }
@media (max-width: 700px) { .dv-hero { flex-direction: column; align-items: flex-start; } .dv-hero-fig { width: 136px; align-self: flex-end; margin-top: calc(var(--s-xs) * -1); } }
@media (prefers-reduced-motion: reduce) { .dv-hero-fig .dv-orb, .dv-hero-fig .dv-orb-core { animation: none; } }

/* Platform scope switch: same theme tokens and minimum touch target as the shell. */
.space-select { min-height:44px; max-width:8rem; border:1px solid var(--outline-var); border-radius:var(--r-full); background:var(--sc); padding:0 12px; font-size:13px; }
.plan-freshness { padding:16px; margin-bottom:16px; border:1px solid var(--outline-var); border-radius:var(--r-card); background:var(--surface); }
.plan-freshness p { margin:0 0 10px; }
.profile-composer, .profile-workspace { max-width: 980px; margin-inline: auto; }
.profile-composer { min-width: 0; }
.profile-composer .btn.text { color: var(--on); }
.profile-entry-list { display: grid; gap: 16px; }
.profile-entry { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--outline-var); border-radius: var(--r-card); background: var(--sc-low); }
.profile-entry legend { padding: 0 8px; font-weight: 600; }
.profile-entry .page-actions { justify-content: flex-end; }
.profile-entry .btn { min-height: 44px; }
.profile-reading { overflow-wrap: anywhere; line-height: 1.8; }
.profile-reading p { white-space: pre-wrap; margin-block: 8px 16px; }
.profile-reading h3 { margin-block: 8px; font-size: 1.05em; }
.profile-timeline { list-style: none; padding: 0 0 0 20px; border-left: 2px solid var(--outline-var); }
.profile-timeline li { position: relative; padding: 0 0 16px 4px; }
.profile-timeline li::before { content: ''; position: absolute; left: -26px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.profile-timeline .profile-date { color: var(--on-var); font-size: .9em; margin-bottom: 4px; }
.profile-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.profile-units article { border-top: 1px solid var(--outline-var); padding-top: 8px; }
.profile-preview, .profile-latest { scroll-margin-block: 100px 160px; }
@media (max-width: 540px) { .profile-entry { padding: 12px; } .profile-composer > .page-actions { margin-bottom: 16px; } }
.pwa-status { position: fixed; z-index: 32; bottom: calc(var(--s-md) + env(safe-area-inset-bottom)); right: var(--s-md); width: min(420px, calc(100% - 32px)); padding: var(--s-sm) var(--s-md); border-radius: var(--r-card); border: 1px solid var(--outline-var); pointer-events: none; }
@media (max-width: 899px) { body:has(.bottombar) .pwa-status { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + var(--s-xs)); } }
.configuration-workspace { max-width: 1440px; margin-inline: auto; }
.configuration-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.configuration-fields, .configuration-grid > *, .configuration-entry { min-width: 0; }
.configuration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; }
.configuration-entry { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; background: var(--surface); }
.configuration-entry legend { font-weight: 650; padding-inline: 6px; }
.configuration-list { min-width: 0; }
.configuration-workspace .btn.text, .configuration-workspace a.btn.text { color: var(--on); }
.configuration-workspace input, .configuration-workspace select, .configuration-workspace textarea { font-size: max(1rem, 16px); }
.configuration-workspace .page-actions { flex-wrap: wrap; }
.configuration-workspace .card { margin-block: 0 20px; }
.configuration-workspace .card .card { box-shadow: none; padding-inline: 0; border: 0; }
.configuration-preview { display: none; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow-wrap: anywhere; }
.configuration-preview h2 { font-size: 1.5rem; line-height: 1.35; }
.configuration-rules { white-space: pre-wrap; }
.configuration-tally { font-weight: 650; }
.configuration-tally[data-complete="false"] { color: var(--on); }
.configuration-add { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.configuration-add .field { flex: 1 1 200px; }
.configuration-summary { overflow-wrap: anywhere; }
.configuration-step-nav { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.configuration-step-nav .btn { min-height: 44px; border: 1px solid transparent; }
.configuration-step-nav .btn[aria-current="step"] { color: var(--on); background: var(--sc-high); border-color: var(--outline); font-weight: 650; }
.configuration-fields h2 { scroll-margin-top: 100px; }
@media (min-width: 1180px) { .configuration-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } .configuration-preview { display: block; position: sticky; top: 24px; max-height: calc(100dvh - 100px); overflow: auto; } }

/* Each surface expresses its job: context text, local choice, command list, or modal task. */
.ui-tooltip, .ui-menu, .ui-popconfirm { position: fixed; inset: auto; margin: 0; box-sizing: border-box; z-index: 100; overflow: auto; overflow-wrap: anywhere; }
.ui-tooltip { width: max-content; max-width: 280px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--on); color: var(--surface); font-size: 13px; line-height: 1.5; box-shadow: var(--shadow); }
.ui-menu, .ui-popconfirm { border: 1px solid var(--outline-var); background: var(--surface); color: var(--on); box-shadow: 0 18px 56px -16px var(--scrim); border-radius: 18px; }
.ui-menu { width: max-content; min-width: 200px; padding: 6px; }
.menu-trigger { gap: 12px; }
.menu-item { display: block; width: 100%; text-align: start; background: transparent; color: inherit; border: 0; min-height: 44px; padding: 10px 14px; border-radius: 12px; font: inherit; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--sc-high); }
.menu-item[aria-disabled=true] { opacity: .5; cursor: default; }
.ui-popconfirm { width: 340px; padding: 20px; }
.ui-popconfirm h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.ui-popconfirm p { margin: 8px 0; line-height: 1.65; }
.ui-popconfirm .form-error:empty { display: none; }
.ui-popconfirm .dialog-actions { flex-wrap: wrap; }
.btn.danger { color: var(--on); background: var(--error-c); border: 1px solid var(--error); }
.menu-item.danger { color: var(--error); }
.inline-notice { display: flex; align-items: start; gap: 16px; padding: 14px 18px; border-inline-start: 3px solid var(--outline); border-radius: 0 12px 12px 0; background: var(--sc-high); margin-block: 0 16px; }
.inline-notice p { margin: 0; line-height: 1.65; flex: 1; }
.inline-notice.notice-error { border-color: var(--error); background: var(--error-c); }
.configuration-workspace > .page-head { align-items: center; gap: 12px; }
.configuration-workspace > .page-head .page-actions { margin: 0; }
.configuration-step-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px 12px; }
.configuration-step-nav .btn { flex: none; white-space: nowrap; }
@media (max-width: 599px) {
  .configuration-workspace > .page-head { display: grid; margin-bottom: 20px; }
  .configuration-workspace > .page-head .page-title { font-size: clamp(24px, 6vw, 30px); }
  .configuration-workspace > .page-head .page-actions { justify-content: space-between; }
  .configuration-entry { padding: 12px; }
  .configuration-workspace .card { padding: 16px; }
}
