/* ══════════════════════════════════════════════════════════════
   帧序 · 镜头板 / 预览与导出 / 浮层系统
   ══════════════════════════════════════════════════════════════ */

/* ── 镜头板工具条 ──────────────────────────────────────────── */
.board-toolbar {
  display: flex; flex-direction: column; gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  margin-bottom: 18px;
}
.bt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bt-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-kicker { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .18em; color: var(--ink-4); }
.bt-title b { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.bt-title small { font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }

/* 分集模块：先看到每集 */
.bt-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.bt-ep-grid.is-none { display: block; }
.bt-ep-none { display: block; padding: 10px 2px 2px; font-size: 10px; color: var(--ink-4); }
.bt-ep {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-align: left;
  min-width: 0;
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.bt-ep:hover { border-color: var(--line-3); background: var(--panel); transform: translateY(-1px); }
.bt-ep.is-active {
  border-color: color-mix(in srgb, var(--flow) 48%, transparent);
  background: linear-gradient(100deg, var(--flow-faint), var(--panel-2));
  box-shadow: var(--shadow-sm);
}
.bt-ep.is-active::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px;
  width: 2px; border-radius: 2px; background: var(--flow); box-shadow: 0 0 8px var(--flow-soft);
}
.bt-ep.is-empty { border-style: dashed; }
.be-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.be-no { font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; color: var(--ink-4); }
.be-groups {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .02em;
  color: var(--accent-ink);
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-soft);
  white-space: nowrap;
}
.bt-ep.is-empty .be-groups { color: var(--ink-4); background: var(--panel-3); }
.be-name {
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.be-meta { font-size: 8.5px; color: var(--ink-3); letter-spacing: .02em; }
.be-bar { display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--line); overflow: hidden; }
.be-bar i { display: block; height: 100%; border-radius: 2px; background: var(--flow); opacity: .7; }
.bt-ep.is-active .be-bar i { opacity: 1; box-shadow: 0 0 6px var(--flow-soft); }

/* 选中集：组概览头 */
.board-ep-head {
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(115deg, var(--panel-2), var(--panel) 62%);
  margin-bottom: 12px;
}
.beh-id { flex: 1; min-width: 220px; }
.beh-kicker { font-family: var(--font-mono); font-size: 8px; letter-spacing: .16em; color: var(--accent); }
.beh-id h3 { margin-top: 3px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: .03em; }
.beh-line { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .01em; }
.beh-line b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-size: 11.5px; }
.beh-stats {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.beh-stats > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 56px; padding: 7px 11px;
  font-size: 8px; letter-spacing: .04em; color: var(--ink-4);
}
.beh-stats > span + span { border-left: 1px solid var(--line); }
.beh-stats b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.1; }
.beh-stats .beh-ratio { font-family: var(--font-mono); font-size: 9px; color: var(--ink-2); min-width: 74px; }
.beh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.group-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.group-switch .group-tabs {
  flex: 1; min-width: 240px;
  padding: 0;
  margin-bottom: 0;
}
.group-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.group-actions .btn { gap: 4px; padding: 5px 8px; font-size: 9px; letter-spacing: 0; }
.group-actions .btn .icon { width: 11px; height: 11px; }
.group-actions .btn:disabled { opacity: .32; cursor: not-allowed; }

.bt-right { display: flex; align-items: center; gap: 6px; }
.bt-search {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--panel-2);
}
.bt-search .icon { width: 12px; height: 12px; color: var(--ink-3); }
.bt-search input {
  width: 118px; border: 0; background: transparent; outline: none;
  font-size: 10.5px; color: var(--ink);
}
.bt-search input::placeholder { color: var(--ink-4); }

.board-summary {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--panel-2), var(--panel));
  margin-bottom: 24px;
}
.bs-item { display: flex; align-items: baseline; gap: 7px; }
.bs-item b { font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--ink); }
.bs-item span { font-size: 10px; color: var(--ink-3); letter-spacing: .03em; }
.bs-divider { width: 1px; height: 18px; background: var(--line); }
.bs-lights { display: flex; align-items: center; gap: 5px; margin-left: auto; flex-wrap: wrap; }

.board-group { margin-bottom: 34px; }

/* 三栏工作台：主稿 + 右侧审阅栏 */
.board-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
}
.board-main { min-width: 0; }
.board-main .group-switch { margin-bottom: 12px; }
.board-main .group-tabs { min-width: 0; }
.board-inspector {
  position: sticky;
  top: 16px;
  display: flex; flex-direction: column;
  padding: 0 0 14px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.bi-head {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.bi-kicker { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .16em; color: var(--ink-4); }
.bi-head b { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.bi-current { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px 11px; }
.bi-label { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .14em; color: var(--ink-4); text-transform: uppercase; }
.bi-title { font-size: 12.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.bi-meta { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); }
.bi-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 14px; }
.bi-row + .bi-row { border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent); }
.bi-row span { font-size: 9.5px; color: var(--ink-3); flex: 0 0 auto; }
.bi-row b {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; color: var(--ink-2);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bi-label-actions { padding: 13px 14px 7px; border-top: 1px solid var(--line); }
.board-inspector .group-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 0 10px; }
.board-inspector .group-actions .btn { justify-content: flex-start; height: 29px; padding: 0 9px; font-size: 9.5px; }
.board-inspector .group-actions .btn .icon { width: 12px; height: 12px; }
.bi-tip {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 10px 0; padding: 9px 10px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  font-size: 9px; line-height: 1.65; color: var(--ink-3);
}
.bi-tip .icon { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 2px; color: var(--ink-4); }

/* 组标签 */
.group-tabs {
  display: flex; align-items: center; gap: 5px;
  overflow-x: auto; overflow-y: hidden;
  padding: 2px 1px 9px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}
.group-tabs::-webkit-scrollbar { height: 4px; }
.group-tab, .group-all-tab {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto;
  height: 30px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--panel);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .03em;
  color: var(--ink-3); white-space: nowrap;
  transition: all var(--t-fast);
}
.group-tab:hover, .group-all-tab:hover { color: var(--ink); border-color: var(--line-3); background: var(--panel-2); }
.group-tab.is-active, .group-all-tab.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--flow) 52%, transparent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--flow) 12%, transparent);
}
.group-all-tab { letter-spacing: .04em; }
.gt-n { color: var(--ink-4); font-size: 8.5px; }
.group-tab.is-active .gt-n, .group-all-tab.is-active .gt-n { color: var(--accent); }

/* 整组提示词 · 成稿纸面 */
.group-sheet {
  margin-top: 16px;
  padding: 18px 22px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.gp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gp-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.gp-title b { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.gp-head > span { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }
.gp-head .icon { width: 13px; height: 13px; color: var(--accent); }
.group-sheet .gp-body {
  margin: 0;
  max-height: none; overflow: visible;
  padding: 4px 0 6px;
  border: 0; border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12.5px; line-height: 2.05;
  color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}

/* 组内翻页 */
.group-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.gf-nav { display: flex; align-items: center; gap: 7px; }
.gf-nav .icon-btn { width: 27px; height: 27px; }
.gf-nav .icon-btn:disabled { opacity: .28; cursor: not-allowed; }
.gf-page { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; }
.gf-page b { color: var(--ink); font-weight: 500; }
.gf-hint { flex: 1; min-width: 180px; font-size: 9.5px; color: var(--ink-4); }

.board-empty { padding: 70px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* ── 浮层 / 弹窗 ──────────────────────────────────────────── */
.modal-veil {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fade-in .22s var(--ease);
}
.modal {
  position: relative;
  display: flex; flex-direction: column;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in .32s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal.is-wide { width: min(880px, 100%); }
.modal.is-group-modal { width: min(1080px, calc(100vw - 40px)); }
.modal.is-narrow { width: min(420px, 100%); }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
}
.modal-head .mh-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; color: var(--ink-3);
  margin-bottom: 7px;
}
.modal-head .mh-kicker .n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 17px; padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--flow) 30%, transparent);
  border-radius: 4px; background: var(--flow-faint); color: var(--accent-ink);
}
.modal-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.modal-head p { margin-top: 4px; font-size: 10.5px; line-height: 1.7; color: var(--ink-3); }
.modal-x {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-3);
  transition: all var(--t-fast);
}
.modal-x:hover { color: var(--ink); border-color: var(--line-3); background: var(--panel-2); }
.modal-x .icon { width: 14px; height: 14px; }
.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-body.is-flush { padding: 0; gap: 0; overflow: hidden; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.modal-foot .mf-left { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); }
.modal-foot .mf-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.modal-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  font-size: 10.5px; line-height: 1.7; color: var(--ink-3);
}
.modal-note .icon { width: 13px; height: 13px; margin-top: 1px; color: var(--accent); flex: 0 0 auto; }
.modal-note.is-warn { border-color: color-mix(in srgb, var(--danger) 28%, transparent); background: var(--danger-soft); color: var(--danger); }
.modal-note.is-warn .icon { color: var(--danger); }

/* 表单栅格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .span-2 { grid-column: span 2; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 10.5px; font-weight: 550; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.form-row label .req { color: var(--danger); }
.form-row .hint { font-size: 9.5px; color: var(--ink-3); line-height: 1.6; }
.ratio-pick { display: flex; gap: 8px; }
.ratio-pick button {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 11px; color: var(--ink-3);
  transition: all var(--t-fast);
}
.ratio-pick button.is-on { border-color: color-mix(in srgb, var(--flow) 46%, transparent); background: var(--flow-faint); color: var(--ink); }
.ratio-pick .rp-frame { border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; }
.ratio-pick .rp-frame.v916 { width: 11px; height: 19px; }
.ratio-pick .rp-frame.v169 { width: 22px; height: 12px; }

/* ── 预览 / 导出 ──────────────────────────────────────────── */
.export-tabs { display: flex; gap: 3px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.export-tab {
  position: relative;
  padding: 11px 12px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  color: var(--ink-3);
  transition: color var(--t-fast);
}
.export-tab:hover { color: var(--ink); }
.export-tab.is-active { color: var(--ink); }
.export-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1.5px; background: var(--flow); box-shadow: 0 0 7px var(--flow-soft); }
.export-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 62vh; }
.export-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.export-opts .check { font-size: 10.5px; }
.md-preview {
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-2);
  font-family: var(--font-display);
  font-size: 11.5px; line-height: 1.95; color: var(--ink-2);
  white-space: pre-wrap;
  max-height: 320px; overflow-y: auto;
}
.md-preview .md-h { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--accent); display: block; margin-top: 10px; }
.csv-preview { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: auto; max-height: 300px; background: var(--panel-2); }
.csv-preview table { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }
.csv-preview th, .csv-preview td { padding: 6px 9px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; color: var(--ink-3); }
.csv-preview th { position: sticky; top: 0; background: var(--panel-3); color: var(--ink-2); font-weight: 500; }
.export-file-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.export-file-row .icon { width: 15px; height: 15px; color: var(--accent); }
.export-file-row .efr-main { flex: 1; min-width: 0; }
.export-file-row b { display: block; font-size: 10.5px; font-weight: 550; }
.export-file-row small { display: block; margin-top: 1px; font-family: var(--font-mono); font-size: 8px; color: var(--ink-3); }

/* ── Toast ────────────────────────────────────────────────── */
#toast-root {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  min-width: 200px; max-width: min(440px, calc(100vw - 40px));
  padding: 10px 15px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  font-size: 11.5px; color: var(--ink-2);
  animation: toast-in .3s var(--ease-out);
  pointer-events: auto;
}
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
.toast .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.toast.is-success .icon { color: var(--success); }
.toast.is-error .icon { color: var(--danger); }
.toast.is-info .icon { color: var(--accent); }
.toast b { font-weight: 600; color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ── 任务角标 ──────────────────────────────────────────────── */
#task-root { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.task-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  font-size: 10.5px; color: var(--ink-2);
  animation: toast-in .3s var(--ease-out);
}
.task-pill .spinner { width: 12px; height: 12px; }
.task-pill .icon { width: 13px; height: 13px; }
.task-pill.is-done .icon { color: var(--success); }
.task-pill.is-error .icon { color: var(--danger); }

/* ── 空状态 / 通用 ────────────────────────────────────────── */
.icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel-2);
  color: var(--ink-3);
}
.icon-wrap .icon { width: 16px; height: 16px; }
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel-2);
  font-family: var(--font-mono); font-size: 8px; color: var(--ink-3);
}
.spinner {
  display: inline-block;
  border: 1.5px solid var(--line-2);
  border-top-color: var(--flow);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .board-workbench { grid-template-columns: minmax(0, 1fr); }
  .board-inspector { position: static; order: -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 12px; }
  .bi-head { grid-column: 1 / -1; }
  .bi-current { grid-column: 1; }
  .bi-rows { grid-column: 2; grid-row: 2 / span 2; border-top: 0; border-left: 1px solid var(--line); }
  .bi-label-actions { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .board-inspector .group-actions {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px; padding: 0 10px;
  }
  .board-inspector .group-actions .btn { justify-content: center; }
  .bi-tip { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .modal-body.is-flush { overflow-y: auto; }
  .gf-hint { flex-basis: 100%; order: 3; }
  .bt-ep-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .board-ep-head { gap: 12px; padding: 13px 14px; }
  .beh-id { min-width: 100%; }
  .beh-id h3 { font-size: 18px; }
  .beh-stats { flex: 1; }
  .beh-actions { margin-left: auto; }
  .board-inspector .group-actions { flex: 0 0 auto; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .modal.is-group-modal .modal-body.is-flush { overflow: hidden; }
}
@media (max-width: 720px) {
  .board-inspector { display: flex; flex-direction: column; }
  .bi-rows { border-left: 0; border-top: 1px solid var(--line); }
  .board-inspector .group-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .bt-search { display: none; }
  .bs-lights { display: none; }
  .modal-veil { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .modal-foot .mf-left { display: none; }
  .gp-body { max-height: 200px; padding: 10px; font-size: 10px; }
  .gf-hint { display: none; }
  .group-foot { justify-content: space-between; gap: 8px; }
  .bt-head { align-items: flex-start; }
  .bt-title small { display: none; }
  .bt-ep-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
  .bt-ep { padding: 8px 9px; }
  .be-name { font-size: 10.5px; }
  .board-ep-head { padding: 12px; }
  .beh-stats { flex: 1 0 100%; }
  .beh-stats > span { flex: 1; min-width: 0; padding: 6px 4px; }
  .beh-actions { flex: 1 0 100%; margin-left: 0; }
  .beh-actions .btn { flex: 1; justify-content: center; }
  .group-switch { padding: 8px; }
  .group-switch .group-tabs { min-width: 100%; padding-bottom: 7px; }
  .group-actions { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .group-actions .btn { justify-content: center; }
  .gprev-top { flex-direction: column; gap: 10px; padding: 13px 14px; }
  .gprev-actions { width: 100%; }
  .gprev-actions .btn { flex: 1; justify-content: center; }
}
