/* ════════════════════════════════════════════════════════════════════
   workspace-split.css — Spec tab split view (BKL-rw-5, screen A3)
   ════════════════════════════════════════════════════════════════════ */
.spec-tools { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.spec-split-btn kbd, .ws-split-bar kbd, .ws-split-comment kbd { font-size: 10px; padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,0.06); }
.ws-split-comment kbd { background: rgba(255,255,255,0.2); }

/* The centre stops scrolling; each pane scrolls on its own. Reading width is ignored. */
.ws-center.ws-center-split { overflow: hidden; display: flex; flex-direction: column; }
.ws-center-split > .ws-center-inner { max-width: none; width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 12px; }
.ws-center-split > .ws-center-inner > .ws-banner { flex-shrink: 0; }

.ws-split-bar { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 0 2px 8px; font-size: 12.5px; color: var(--text-secondary); }
.ws-split-bar .spacer { flex: 1; }
.ws-split-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-split-title strong { color: var(--text); }

.ws-split { flex: 1; min-height: 0; display: flex; align-items: stretch; }
.ws-split-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ws-split-left { flex: 0 0 50%; }
.ws-split-right { flex: 1 1 0; }
.ws-split-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--bg-sunken, #f6f7f9); flex-shrink: 0; }
.ws-split-head .spacer { flex: 1; }
.ws-split-pick, .ws-split-section { width: auto; max-width: 240px; padding: 4px 8px; font-size: 12px; height: auto; }
.ws-split-sha { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
.ws-split-tools { display: flex; align-items: center; gap: 6px; }
.ws-split-scroll { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; }
.ws-split-wire .ws-split-scroll { padding: 0; overflow: hidden; display: flex; }
.ws-split-frame { flex: 1; min-height: 0; display: flex; }
.ws-split-iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.ws-split-dragging, .ws-split-dragging * { cursor: col-resize !important; user-select: none; }
.ws-split-dragging iframe { pointer-events: none; }
.ws-split-loading { padding: 16px; color: var(--text-secondary); font-size: 12.5px; }

.ws-split-divider { flex: 0 0 10px; cursor: col-resize; position: relative; outline: none; touch-action: none; }
.ws-split-divider::after { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; border-radius: 2px; background: var(--border); transition: background var(--transition); }
.ws-split-divider:hover::after, .ws-split-divider:focus-visible::after, .ws-split-dragging .ws-split-divider::after { background: var(--purple); }
.ws-split-divider:focus-visible { box-shadow: 0 0 0 2px var(--purple-light); border-radius: 4px; }

.ws-split-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 6px 10px; font-size: 12px; color: var(--text-secondary); background: var(--white); }
.ws-split-pins { list-style: none; margin: 0 0 4px; padding: 0; max-height: 96px; overflow: auto; }
.ws-split-pin { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 2px 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.ws-split-pin:hover .ws-split-pin-where { text-decoration: underline; }
.ws-split-pin-where { font-weight: 600; white-space: nowrap; }
.ws-split-pin-body { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }

.ws-split-card { margin: 32px auto; max-width: 360px; text-align: center; padding: 18px; }
.ws-split-card-glyph { font-size: 28px; }
.ws-split-card-title { font-weight: 600; margin: 6px 0 4px; color: var(--text); }
.ws-split-card-sub { font-size: 12.5px; color: var(--text-secondary); }
.ws-split-card-actions { margin-top: 10px; }
.ws-split-imgbtn { display: block; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.ws-split-img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { .ws-split-divider::after { transition: none; } }
.ws-split-stale-actions { display: inline-flex; gap: 8px; font-size: 12px; }
