.workbench { --ink: #26343d; --muted: #63716f; --line: #dce2e3; --accent: #cf3451; color: var(--ink); letter-spacing: 0; }
.workbench *, .workbench *::before, .workbench *::after { letter-spacing: 0; }
.workbench-header { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 22px; }
.workbench-symbol { display: grid; place-items: center; flex: 0 0 46px; height: 46px; color: #137a65; background: #e4f3ed; border: 1px solid #c5e2d5; border-radius: 8px; }
.workbench-symbol svg { width: 25px; height: 25px; }
.workbench h1 { font-size: 26px; line-height: 1.4; margin: 0 0 5px; overflow-wrap: anywhere; }
.workbench-subtitle { color: var(--muted); font-size: 14px; }
.workbench .local-note { margin-left: auto; color: #137a65; display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; padding-top: 10px; }
.workbench svg { width: 18px; height: 18px; flex-shrink: 0; pointer-events: none; }
.workbench-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 0; border-block: 1px solid var(--line); margin-bottom: 16px; }
.workbench-toolbar label { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
.workbench input[type=checkbox], .workbench input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 16px; }
.workbench select, .workbench input[type=search] { max-width: 100%; min-width: 0; height: 36px; border: 1px solid #cbd4d5; border-radius: 5px; background: #fff; color: var(--ink); padding: 5px 9px; font: inherit; font-size: 13px; }
.workbench fieldset { border: 0; min-width: 0; }
.workbench .mode-tabs { display: flex; gap: 24px; margin-right: auto; }
.workbench .mode-tabs label { cursor: pointer; padding: 7px 0; border-bottom: 2px solid transparent; }
.workbench .mode-tabs label:has(input:checked) { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.workbench-editors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.workbench-editor { min-width: 0; }
.workbench-editor-head { min-height: 42px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.workbench-editor-head > label, .workbench-editor-head h2 { font-size: 14px; font-weight: 600; }
.workbench-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.workbench .icon-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #cbd4d5; border-radius: 5px; background: #fff; color: #46565d; cursor: pointer; }
.workbench .icon-button:hover { color: var(--accent); border-color: var(--accent); }
.workbench button:disabled { opacity: .4; cursor: not-allowed; }
.workbench textarea { display: block; width: 100%; height: 296px; min-height: 180px; resize: vertical; padding: 14px; background: #fff; color: #24353b; border: 1px solid #cbd4d5; border-radius: 6px; font: 13px/1.8 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; tab-size: 2; }
.workbench textarea[readonly] { background: #f8faf9; }
.workbench :is(button, input, select, textarea, a):focus-visible { outline: 3px solid #20856d; outline-offset: 3px; }
.workbench .execute-bar { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.workbench .btn { border-radius: 6px; min-height: 40px; font-size: 14px; }
.workbench-message { min-height: 30px; font-size: 13px; padding: 8px 0; overflow-wrap: anywhere; color: #137a65; }
.workbench-message[data-error=true] { color: #ad233d; }
.workbench-results { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
.workbench-results[hidden], .workbench [hidden] { display: none !important; }
.workbench-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.workbench-summary strong { color: var(--ink); font-size: 17px; margin-right: 4px; }
.workbench-summary .workbench-actions { margin-left: auto; }
.workbench-table-scroll { overflow: auto; max-height: 540px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.workbench .changes-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 640px; font-size: 13px; }
.workbench .changes-table th { position: sticky; top: 0; background: #f3f6f5; font-weight: 600; color: #526360; z-index: 1; }
.workbench .changes-table td, .workbench .changes-table th { padding: 11px 12px; border-bottom: 1px solid #e7ebea; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.workbench .changes-table th:nth-child(1) { width: 76px; }
.workbench .changes-table th:nth-child(2) { width: 25%; }
.workbench .changes-table pre { white-space: pre-wrap; font: 12px/1.7 'SFMono-Regular', Consolas, monospace; margin: 0; overflow-wrap: anywhere; }
.workbench .change-kind { font-weight: 600; }
.workbench tr[data-kind=add] .change-kind { color: #137a65; }
.workbench tr[data-kind=remove] .change-kind { color: #ad233d; }
.workbench tr[data-kind=replace] .change-kind { color: #91601a; }
.workbench-empty { text-align: center; color: var(--muted); padding: 24px 12px; background: #fff; border: 1px dashed #cbd4d5; border-radius: 6px; }
.workbench-reference { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.workbench-reference h2 { font-size: 18px; margin-bottom: 12px; }
.workbench-reference h3 { font-size: 15px; margin: 18px 0 7px; }
.workbench-reference p { max-width: 80ch; color: #526360; font-size: 14px; line-height: 1.9; margin-bottom: 10px; }
.workbench-reference pre { background: #fff; border: 1px solid var(--line); border-left: 3px solid #20856d; border-radius: 4px; padding: 14px; overflow-x: auto; font: 13px/1.8 'SFMono-Regular', Consolas, monospace; margin: 12px 0; }
.workbench-reference details { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.workbench-reference summary { cursor: pointer; font-weight: 600; }
.workbench-reference details p { margin: 10px 0 0; }
.workbench-related { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; }
.workbench-related a { color: #137a65; text-underline-offset: 3px; }
.workbench .result-meta { min-height: 25px; font-size: 12px; color: var(--muted); padding-top: 5px; }
.workbench .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.workbench .input-file { display: none; }
@media (max-width: 700px) {
  .workbench-header { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px 10px; margin-bottom: 16px; }
  .workbench h1 { font-size: 22px; }
  .workbench-header > div:nth-child(2) { flex: 1; min-width: 0; }
  .workbench .local-note { grid-column: 2; margin: 0; padding: 0; }
  .workbench-editors { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .workbench textarea { height: 230px; }
  .workbench-toolbar { gap: 12px 16px; }
  .workbench .mode-tabs { width: 100%; }
  .workbench .icon-button { width: 38px; height: 38px; flex-basis: 38px; }
  .workbench-summary .workbench-actions { width: 100%; margin-left: 0; }
}
