[data-workbench] { --wb-accent:#245e4b; --wb-soft:#eff7f1; --wb-line:#dce5df; background:#f5f8f7; }
[data-workbench="images"] { --wb-accent:#514e90; --wb-soft:#f1f0fa; --wb-line:#dfdfee; background:#f7f7fb; }
[data-workbench] [hidden] { display:none !important; }
[data-workbench] .page::before,[data-workbench] .page::after { display:none; }
[data-workbench] .site-header { padding-block:24px; }
.wb-private { font-size:13px; color:#637167; }
.wb-intro { padding:24px 0 30px; max-width:950px; }
.wb-eyebrow { margin:0 0 10px; font-size:11px; letter-spacing:.08em; color:var(--wb-accent); font-weight:800; }
.wb-intro h1 { margin:0; font-size:clamp(32px,4vw,50px); line-height:1.13; letter-spacing:-.035em; }
.wb-intro h1 span { color:var(--wb-accent); }
.wb-intro>p:last-child { font-size:17px; line-height:1.65; color:#5c6963; margin:16px 0 0; max-width:75ch; }
.wb-shell { background:white; border:1px solid var(--wb-line); border-radius:16px; overflow:hidden; box-shadow:0 18px 50px #243c3a0a; }
.wb-drop,.wb-topbar { padding:22px 24px; display:flex; align-items:center; gap:18px; justify-content:space-between; flex-wrap:wrap; background:var(--wb-soft); border-bottom:1px solid var(--wb-line); }
.wb-drop strong { font-size:19px; }
.wb-drop p { margin:7px 0 0; font-size:13px; color:#657069; }
.wb-drop.is-dragging { outline:3px solid var(--wb-accent); outline-offset:-4px; }
.wb-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
[data-workbench] :is(.button,.tool-button,.wb-link-button) { width:auto; min-height:44px; padding:10px 14px; border-radius:8px; font-size:14px; box-shadow:none; }
[data-workbench] .button:not(:disabled) { background:var(--wb-accent); }
[data-workbench] .button:not(:disabled):hover { filter:brightness(.9); }
[data-workbench] button:disabled { opacity:.45; cursor:default; }
.wb-link-button { background:none; border:0; color:var(--wb-accent); text-decoration:underline; text-underline-offset:4px; font:inherit; cursor:pointer; }
.wb-controls { padding:22px 24px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:start; }
.wb-field>label,.wb-table-options>label:not(.wb-check),.wb-output-options>label { font-size:14px; color:#405349; font-weight:700; }
.wb-field :is(input,select),.wb-table-options select,.wb-output-options select { display:block; width:100%; min-height:44px; margin-top:7px; border:1px solid var(--wb-line); border-radius:8px; padding:10px 32px 10px 12px; background-color:white; color:#2d3f37; font:inherit; font-size:14px; }
.wb-field input { padding-right:12px; }
.wb-presets { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.wb-presets button { border:1px solid var(--wb-line); padding:5px 9px; min-height:32px; border-radius:6px; color:var(--wb-accent); background:var(--wb-soft); font:inherit; font-size:12px; cursor:pointer; }
.wb-hint { color:#66736b; font-size:12px; line-height:1.6; margin:8px 0 0; font-weight:400; }
.wb-run { grid-column:1 / -1; }
.wb-status { padding:13px 24px; margin:0; color:#405e4d; background:#fbfdfb; border-block:1px solid var(--wb-line); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.wb-status.is-error { color:#9c3347; background:#fff5f3; }
#batch-progress { display:block; width:calc(100% - 48px); height:8px; margin:14px 24px 0; accent-color:var(--wb-accent); }
.wb-summary { padding:18px 24px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.wb-summary>strong { font-size:14px; color:#58635f; }
.wb-batch-list { margin:0; padding:0 24px 24px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; list-style:none; }
.wb-file-card { min-width:0; border:1px solid var(--wb-line); border-radius:12px; background:#fff; overflow:hidden; }
.wb-file-card[data-state="error"] { border-color:#e7bfc8; }
.wb-file-thumbnail { height:140px; display:grid; place-items:center; background:repeating-conic-gradient(#f3f3f6 0 25%,#fff 0 50%) 50% / 20px 20px; color:#85819c; font-size:24px; font-weight:700; }
.wb-file-thumbnail img { display:block; max-width:100%; max-height:140px; object-fit:contain; }
.wb-file-body { padding:16px; }
.wb-file-body h2 { font-size:14px; margin:0 0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wb-file-body p { font-size:12px; line-height:1.65; margin:6px 0; color:#64706c; overflow-wrap:anywhere; }
.wb-file-body .wb-file-message { color:var(--wb-accent); font-weight:650; min-height:38px; }
.wb-file-card[data-state="error"] .wb-file-message { color:#9c3347; }
.wb-file-body .wb-actions { margin-top:12px; }
[data-workbench] .wb-file-body button { font-size:13px; padding:8px 11px; }
.wb-empty { padding:48px 24px; text-align:center; color:#68776f; }
.wb-empty>span { display:inline-block; padding:12px 18px; background:var(--wb-soft); color:var(--wb-accent); border-radius:10px; font-weight:700; }
.wb-empty h2 { color:#3e5146; font-size:20px; margin:18px 0 8px; }
.wb-empty p { font-size:14px; line-height:1.6; }
.wb-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; padding:38px 0; }
.wb-notes h2 { font-size:18px; margin:0 0 10px; }
.wb-notes p { font-size:14px; color:#607067; line-height:1.75; margin:0; }
.wb-notes a { color:var(--wb-accent); text-decoration:underline; }
.wb-table-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.wb-editor { min-width:0; }
.wb-editor+.wb-editor { border-left:1px solid var(--wb-line); }
.wb-editor-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:15px 18px; background:#fbfdfb; border-bottom:1px solid var(--wb-line); font-size:15px; font-weight:750; }
.wb-editor-heading>span { color:#6d7b72; font-size:12px; font-weight:400; }
.wb-editor textarea { display:block; width:100%; border:0; border-radius:0; padding:18px; min-height:330px; resize:vertical; font:14px/1.7 Consolas,monospace; background:white; color:#293e34; tab-size:3; }
.wb-editor textarea::placeholder { color:#7b8b81; }
.wb-result textarea { min-height:330px; background:#f9fcf8; }
.wb-format-tabs { display:flex; gap:6px; padding:10px 16px; border-bottom:1px solid var(--wb-line); }
.wb-format-tabs button { font:inherit; font-size:13px; font-weight:700; min-height:36px; border:0; border-radius:7px; padding:8px 14px; background:none; color:#617065; cursor:pointer; }
.wb-format-tabs [aria-pressed="true"] { background:var(--wb-soft); color:var(--wb-accent); }
.wb-result-actions { padding:12px 16px; border-bottom:1px solid var(--wb-line); }
[data-workbench] .wb-result-actions button { font-size:13px; padding:8px 12px; }
.wb-table-options { padding:18px; border-top:1px solid var(--wb-line); }
.wb-jump { display:none; }
.wb-table-options select { margin-bottom:16px; }
.wb-check { display:flex; align-items:start; gap:9px; font-size:13px; line-height:1.5; color:#4b6353; margin-top:14px; }
.wb-check input { width:16px; height:16px; flex-shrink:0; accent-color:var(--wb-accent); margin-top:2px; }
.wb-check:has(:disabled) { opacity:.55; }
.wb-output-options { padding:18px; border-top:1px solid var(--wb-line); }
.wb-output-options select { max-width:240px; }
.wb-warnings { margin:0; padding:14px 24px 14px 40px; font-size:13px; line-height:1.7; background:#fff7e5; color:#805b30; }
.wb-preview-details { border-top:1px solid var(--wb-line); padding:16px 20px; }
.wb-preview-details summary { font-size:14px; cursor:pointer; color:var(--wb-accent); min-height:32px; }
.wb-table-scroll { overflow:auto; max-height:300px; }
.wb-table-scroll table { border-collapse:collapse; min-width:100%; font-size:13px; }
.wb-table-scroll :is(th,td) { text-align:left; padding:10px 14px; border:1px solid var(--wb-line); min-width:100px; white-space:pre-wrap; overflow-wrap:anywhere; }
.wb-table-scroll th { background:var(--wb-soft); }
@media(max-width:1000px) { .wb-batch-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) {
 .wb-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .wb-table-grid { grid-template-columns:minmax(0,1fr); }
 .wb-editor+.wb-editor { border-left:0; border-top:1px solid var(--wb-line); }
 .wb-notes { grid-template-columns:minmax(0,1fr); gap:24px; }
 .wb-editor textarea { min-height:240px; }
 .wb-jump { display:block; margin:12px 18px; padding:12px; text-align:center; min-height:44px; background:var(--wb-soft); color:var(--wb-accent); border-radius:8px; font-size:14px; font-weight:700; }
}
@media(max-width:520px) {
 .wb-private { display:none; }
 .wb-intro { padding:20px 0 24px; }
 .wb-intro>p:last-child { font-size:16px; }
 .wb-drop,.wb-topbar,.wb-controls,.wb-summary { padding:18px; }
 .wb-controls { grid-template-columns:minmax(0,1fr); gap:16px; }
 .wb-status { padding-inline:18px; }
 .wb-batch-list { grid-template-columns:minmax(0,1fr); padding:0 18px 18px; }
 .wb-file-thumbnail { height:160px; }
 .wb-file-thumbnail img { max-height:160px; }
 .wb-summary>.wb-actions { width:100%; }
 .wb-summary .button { flex:1; }
 .wb-topbar .wb-actions { width:100%; }
 .wb-result-actions>.button,.wb-result-actions>.tool-button { flex:1; }
 .wb-result-actions>.wb-link-button { flex-basis:100%; text-align:left; }
}
