/* 数据表整块粘贴 / 插空行（shared/grid-paste.js）：点中的格 + 粘贴前的预览。只用 tokens.css 的语义变量。 */
#dt-tbody td.gp-cell { outline: 2px solid var(--green); outline-offset: -2px; }
.gp-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gp-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); width: min(96vw, 1100px); max-height: 90vh; display: grid; grid-template-rows: auto 1fr auto; }
.gp-head { padding: 14px 16px 8px; display: grid; gap: 4px; }
.gp-head b { font-size: 14px; color: var(--ink); }
.gp-head small { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.gp-scroll { overflow: auto; margin: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.gp-scroll table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.gp-scroll th, .gp-scroll td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.gp-scroll thead th { position: sticky; top: 0; background: var(--canvas); font-weight: 600; color: var(--ink); }
.gp-scroll thead th small { font-weight: 400; color: var(--warning-fg); }
.gp-scroll tbody th { font-weight: 500; color: var(--ink-2); background: var(--canvas); position: sticky; left: 0; }
.gp-scroll tbody th em { font-style: normal; color: var(--green); }
.gp-scroll .skip { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); text-decoration: line-through; }
.gp-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 14px; }
.gp-actions .dt-btn-primary { height: 30px; padding: 0 16px; }
@media (max-width: 760px) { .gp-dialog { padding: 8px; } .gp-card { width: 100%; } }

/* ---- 草稿行（app/drafts.py）：只在中台、还没进简道云 ---- */
#dt-tbody tr.gp-draft td { background: var(--warning-bg); }
.gp-badge { display: inline-block; font-style: normal; font-size: 10px; line-height: 16px; padding: 0 5px; margin-right: 4px; border-radius: 8px; background: var(--warning-fg); color: var(--text-on-accent); vertical-align: middle; }
.gp-submit { border-color: var(--warning-border); color: var(--warning-fg); }
.gp-scroll td.ok { color: var(--green); white-space: nowrap; }
.gp-scroll td.bad { color: var(--warning-fg); white-space: normal; max-width: 520px; }
.gp-scroll td small, .gp-scroll th small { color: var(--muted); font-size: 11px; }
.gp-actions .gp-spacer { flex: 1; }
.dt-act-chip.draft { background: var(--warning-bg); color: var(--warning-fg); }
.gp-leave { width: min(96vw, 640px); }
.gp-leave .gp-actions { flex-wrap: wrap; }
