/* WT14 — consistent cool roles and content-sized controls for the 293 web tools.
   Loaded only by the existing workspace allowlist; Office and the tool directory
   stay outside it. Only control layout and chrome change here; algorithms,
   canvases, swatches and user content remain owned by their existing components. */

html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal,.its-toast){
  --wt-accent:#4f46e5;--wt-accent-hover:#4338ca;--wt-tint:#eef2ff;--wt-tint-2:#e0e7ff;
  --wt-secondary:#2563eb;--wt-info:#0e7490;--wt-info-bg:#ecfeff;
  --wt-ink:#17314f;--wt-ink-2:#344f70;--wt-ink-3:#526b89;--wt-ink-4:#60748e;--wt-muted:#526b89;
  --wt-line:#d6e2f0;--wt-line-soft:#eaf0f7;--wt-line-hover:#a7bdd7;--wt-border:var(--wt-line);
  --wt-field:#fff;--wt-surface:#fff;--wt-bg:#f6f9fe;
  --wt-good:#17664d;--wt-good-bg:#edf9f3;--wt-warn:#89520c;--wt-warn-bg:#fff7e8;
  --wt-danger:#ad3044;--wt-danger-bg:#fff1f3;
  --wt-grad:linear-gradient(112deg,var(--wt-accent),var(--wt-accent-hover));
  --wt-ring:0 0 0 3px rgba(79,70,229,.12);
  --wt-shadow-xs:0 1px 3px rgba(28,53,89,.045);
  --wt-shadow-sm:0 1px 3px rgba(28,53,89,.035),0 7px 18px -11px rgba(28,53,89,.16);
  --wt-shadow-md:0 2px 6px rgba(28,53,89,.045),0 12px 28px -15px rgba(28,53,89,.20);
  --wt-ease:cubic-bezier(.2,.7,.2,1);
  --its-primary:var(--wt-accent);--its-primary-soft:var(--wt-tint);--its-border:var(--wt-line);
  --its-text:var(--wt-ink);--its-muted:var(--wt-muted);--its-bg:var(--wt-bg);
  --sp-border:var(--wt-line);--sp-muted:var(--wt-muted);--sp-bg:var(--wt-bg);--sp-paper:var(--wt-surface);
  --b5-border:var(--wt-line);--b5-muted:var(--wt-muted);--b5-bg:var(--wt-bg);--b5-paper:var(--wt-surface);
  --border-color:var(--wt-line);--card-bg:var(--wt-surface);--text-muted:var(--wt-muted);--light:#f2f6fc;
  color:var(--wt-ink);color-scheme:light;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
/* A single primary role is shared by every tool family. Category is communicated
   by its icon and label, not by changing the meaning of action/selection colors. */

/* Main shell. Preserve the established bounded workspace and panel placement. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool.its{border-color:var(--wt-line);border-radius:16px;background:var(--wt-surface);box-shadow:0 1px 3px rgba(28,53,89,.04),0 14px 36px -26px rgba(28,53,89,.22)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-bar{background:linear-gradient(100deg,var(--wt-tint),#fff 48%);border-bottom-color:var(--wt-line);padding:10px 18px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-title{font-size:15px;font-weight:750;color:var(--wt-ink);letter-spacing:0;gap:10px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-title>i{width:32px;height:32px;border-radius:10px;background:var(--wt-accent);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 7px rgba(28,53,89,.11);font-size:19px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-file,.its-stage-meta,.wt-group-sub,.wt-foot-note,.wt-original-hint){color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-main,.its-body,.b4-secret-main){background:var(--wt-bg)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-panel,.b4-panel,.sp-panel,.b5-panel,.b5-word-panel){background:var(--wt-surface);border-color:var(--wt-line);color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-panel-foot,.b45-panel-foot){background:#fff;border-top-color:var(--wt-line);box-shadow:0 -4px 16px -14px rgba(28,53,89,.24)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-panel-foot::before{background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.8))}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-group+.its-group::before{background:var(--wt-line-soft)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-group-title{color:var(--wt-ink);font-size:13px;font-weight:700;letter-spacing:0}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-group-title>i{color:var(--wt-accent);background:var(--wt-tint);border-radius:7px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-label,.b4-field>span,.b4-field>label,.sp-field>span,.b5-field>span){color:var(--wt-ink-2);font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-hint,.sp-help,.b5-help,.b4-note,.b4-status,.b4-original-hint,.b5-word-status){color:var(--wt-muted);line-height:1.7}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-panel-body,.b45-panel-scroll,.its-main,.wt-text-area,.wt-code,.wt-doc,.wt-modal-body){scrollbar-width:thin;scrollbar-color:#bfcede transparent}

/* Action controls: compact depth, strong primary action and readable states. */
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(.its-btn,.wt-mini-btn,.ix-batch-mini){border:1px solid var(--wt-line);border-radius:8px;background:#fff;color:var(--wt-ink-2);font-family:inherit;font-weight:600;box-shadow:var(--wt-shadow-xs);transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(.its-btn,.wt-mini-btn,.ix-batch-mini):hover:not(:disabled):not([aria-disabled="true"]){border-color:var(--wt-line-hover);background:var(--wt-tint);color:var(--wt-accent);box-shadow:var(--wt-shadow-sm)}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) .its-primary{border:1px solid var(--wt-accent);border-radius:10px;background:var(--wt-grad);color:#fff;font-family:inherit;font-weight:700;letter-spacing:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 4px 10px -3px rgba(28,53,89,.20);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .12s ease;filter:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) .its-primary::after{display:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) .its-primary:hover:not(:disabled):not([aria-disabled="true"]){background:var(--wt-accent-hover);border-color:var(--wt-accent-hover);color:#fff;box-shadow:0 5px 13px -4px rgba(28,53,89,.28);transform:translateY(-1px);filter:none;opacity:1}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(.its-btn,.its-primary,.wt-mini-btn,.ix-batch-mini):active:not(:disabled):not([aria-disabled="true"]){transform:translateY(1px);box-shadow:inset 0 1px 3px rgba(28,53,89,.10)}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(.its-btn,.its-primary,.wt-mini-btn,.ix-batch-mini):disabled{background:#f2f5fa;border-color:#d6e0ed;color:#60748e;opacity:1;box-shadow:none;filter:none;transform:none;cursor:not-allowed}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-btn.is-danger,.ix-batch-mini.is-danger):hover:not(:disabled){color:var(--wt-danger);background:var(--wt-danger-bg);border-color:#e7a9b4}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-actions .wt-mini-btn{background:#fff;border-color:var(--wt-line);box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-actions .wt-mini-btn:hover:not(:disabled){background:var(--wt-tint);border-color:var(--wt-line-hover)}

/* Existing form sources remain usable if the optional select enhancement is unavailable. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-input,.wt-select,.its-url input,.nxt-number-wrap,.b4-field input[type="text"],.b4-field input[type="number"],.b4-field select,.sp-field select,.b5-field select){border-color:#b8c9de;border-radius:9px;background-color:var(--wt-field);color:var(--wt-ink);box-shadow:0 1px 2px rgba(28,53,89,.025);transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :where(input[type="text"],input[type="number"],input[type="url"],input[type="email"],input[type="password"],input[type="search"],select,textarea){color:var(--wt-ink);border-color:#b8c9de;caret-color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-input,.wt-select,.its-url input,.nxt-number-wrap,.b4-field input[type="text"],.b4-field input[type="number"],.b4-field select,.sp-field select,.b5-field select):hover:not(:disabled){border-color:#8da9ca;background-color:#fff}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-input,.wt-select,.its-url input,.nxt-number-wrap,.b4-field input[type="text"],.b4-field input[type="number"],.b4-field select,.sp-field select,.b5-field select):focus-within{border-color:var(--wt-accent);background-color:#fff;box-shadow:var(--wt-ring)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :where(input,textarea)::placeholder{color:#60748e;opacity:1}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526b89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px;padding-right:32px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select option,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select optgroup{background:#fff;color:var(--wt-ink)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea):disabled{color:#60748e;-webkit-text-fill-color:#60748e;border-color:#d6e0ed;background-color:#f2f5fa;opacity:1;cursor:not-allowed}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-input,.wt-text-area,.wt-code,textarea)[readonly]{background:#fafcff;color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-number-wrap input{border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--wt-ink)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-number-wrap :is(span,em):not(.wt-prefix){background:#edf3fa;color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-number-wrap:focus-within :is(span,em):not(.wt-prefix){background:var(--wt-tint);color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-number-wrap .wt-prefix{color:var(--wt-muted)}

/* Chips, mode tabs and option cards. No universal button fill touches colour swatches. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-chip,.ix-preset,.wt-size-card,.trio-option-card){border-color:var(--wt-line);background:#fff;color:var(--wt-ink-2);box-shadow:var(--wt-shadow-xs);transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-chip,.ix-preset,.wt-size-card,.trio-option-card):hover:not(:disabled):not(.active){border-color:var(--wt-line-hover);background:var(--wt-tint);color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-chip,.ix-preset,.wt-size-card,.trio-option-card).active{border-color:var(--wt-accent);background:var(--wt-tint);color:var(--wt-accent);box-shadow:inset 0 0 0 .5px var(--wt-accent);font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-chip,.ix-preset,.wt-size-card,.trio-option-card):disabled{opacity:1;color:#60748e;border-color:#d6e0ed;background:#f2f5fa;box-shadow:none;cursor:not-allowed}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-size-card,.trio-option-card) b{color:var(--wt-ink);font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-size-card,.trio-option-card) :is(span,small,em){color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-size-card,.trio-option-card).active :is(b,span,small,em){color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .trio-option-card::after{border-color:#9fb5ce;box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .trio-option-card.active::after{background-color:var(--wt-accent);border-color:var(--wt-accent);box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.its-seg,.nxt-seg){border-color:var(--wt-line);background:#f1f5fd;box-shadow:none;border-radius:10px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.its-seg,.nxt-seg) button{color:var(--wt-muted);border-radius:7px;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.its-seg,.nxt-seg) button:hover:not(.active):not(:disabled){background:rgba(255,255,255,.75);color:var(--wt-ink)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.its-seg,.nxt-seg) button.active{background:#fff;color:var(--wt-accent);box-shadow:0 1px 4px rgba(28,53,89,.13);font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.its-seg,.nxt-seg) button:disabled{color:#60748e;opacity:1;cursor:not-allowed}
/* A segment starts at its full label width before lines are formed. Long labels
   get room before short siblings share the remainder; narrow panels wrap whole
   choices, rather than squeezing the text into fixed 2/3/4-column tracks. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.nxt-seg){display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;min-width:0;max-width:100%;padding:4px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-section-tabs,.nxt-seg)>button{box-sizing:border-box;flex:1 1 max-content;width:auto;min-width:0;max-width:100%;height:auto;min-height:36px;padding:8px 12px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;text-overflow:clip;overflow:visible}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-seg{flex:0 1 auto;flex-wrap:wrap;align-items:stretch;gap:3px;min-width:0;max-width:100%}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-seg>button{box-sizing:border-box;flex:0 1 max-content;width:auto;min-width:0;max-width:100%;height:auto;min-height:32px;padding:6px 12px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;text-overflow:clip;overflow:visible}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.nxt-chip-row,.wt-multi)>.nxt-chip{max-width:100%;height:auto;min-height:32px;padding-top:6px;padding-bottom:6px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-small-notice{background:#f0f7ff;border-color:#d6e5f7;color:#315b83}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch{position:relative;color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch input{display:block;position:absolute;width:1px;height:1px;margin:0;opacity:0;clip-path:inset(50%);overflow:hidden}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch-track{flex:0 0 42px;background:#bccbdd;box-shadow:inset 0 1px 2px rgba(28,53,89,.14)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch input:checked+.nxt-switch-track{background:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch input:disabled+.nxt-switch-track{opacity:.65;cursor:not-allowed}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch:focus-within .nxt-switch-track{outline:2px solid var(--wt-accent);outline-offset:3px;box-shadow:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-switch-row>span{color:var(--wt-ink-2)}

/* Full-space upload entry and clear drag feedback. Retain prior sizing rules. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-welcome{background:radial-gradient(ellipse at 50% 8%,#fff 0%,#f6f9fe 65%)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-drop,.wt-b64-card){border:1.5px dashed #afc3df;border-radius:18px;background:#fff;box-shadow:0 2px 5px rgba(28,53,89,.025),0 18px 38px -25px rgba(28,53,89,.19);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-drop,.wt-b64-card):hover{border-color:var(--wt-accent);background:#fff;box-shadow:0 0 0 4px var(--wt-tint),0 18px 38px -25px rgba(28,53,89,.22)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-drop.dragging,.its-drop.drag,.wt-b64-card.dragging){border-color:var(--wt-accent);border-style:solid;background:var(--wt-tint);box-shadow:0 0 0 4px var(--wt-tint);transform:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop-icon{background:var(--wt-tint);color:var(--wt-accent);border-radius:19px;box-shadow:inset 0 0 0 1px var(--wt-tint-2),0 7px 18px -12px rgba(28,53,89,.22)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop-icon i{color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop-title{color:var(--wt-ink);font-weight:750;letter-spacing:0}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.its-drop-sub,.its-drop-meta,.its-or,.wt-b64-tools){color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-or::before{background:linear-gradient(90deg,transparent,var(--wt-line))}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-or::after{background:linear-gradient(90deg,var(--wt-line),transparent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop:hover .wt-convert-icons i{animation:none}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-drop-more{border-color:#afc3df;background:#fff;color:var(--wt-muted);border-radius:12px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-drop-more:hover,html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-drop-more.dragging{color:var(--wt-accent);border-color:var(--wt-accent);background:var(--wt-tint)}

/* Text workspace chrome; generated document contents and semantic diff/JSON
   syntax colours are handled by their dedicated components. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-text-grid,.wt-code-area){background:var(--wt-bg)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-text-pane,.wt-code){border-color:var(--wt-line);border-radius:12px;background:#fff;box-shadow:var(--wt-shadow-sm)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-pane:focus-within{border-color:#9bb4d3;box-shadow:0 0 0 2px #eef4fc,var(--wt-shadow-sm)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-head{background:#fff;border-bottom-color:var(--wt-line);padding:9px 12px 9px 15px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-head>b{color:var(--wt-ink);font-size:13px;font-weight:650}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-count{background:#edf3fa;color:var(--wt-muted);font-size:11px;border:1px solid #e1e9f5}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-status-chip{background:var(--wt-tint);color:var(--wt-accent);border:1px solid var(--wt-tint-2);font-weight:600}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-area{background:#fff;color:var(--wt-ink);caret-color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-area[readonly]{background:#fafcff;color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-info{background:#f8fbff;border-top-color:var(--wt-line)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-info span:not(.is-warn):not(.is-good){border-color:var(--wt-line);background:#fff;color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-info span:not(.is-warn):not(.is-good) em{color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-text-error,.wt-calc-error){border-color:#edbdc6;background:var(--wt-danger-bg);color:var(--wt-danger)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.wt-text-error,.wt-calc-error)::before{background:var(--wt-danger);color:#fff}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.trio-empty,.wt-diff-empty,.b45-empty-hint,.b4-empty){color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.trio-empty,.wt-diff-empty) b{color:var(--wt-ink-2)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool :is(.trio-empty,.wt-diff-empty) i{color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-diff-empty.is-same i{color:var(--wt-good)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-link{color:var(--wt-accent);text-decoration-thickness:1px;text-underline-offset:3px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool details>summary{color:var(--wt-ink-2);border-radius:6px;transition:color .16s ease,background-color .16s ease}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool details>summary::marker{color:var(--wt-accent)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool details>summary:hover{color:var(--wt-accent)}

/* Preview dialogs live beside the workspace, not inside it. */
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-modal{background:rgba(31,49,76,.28);backdrop-filter:blur(2px)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-modal-card{border:1px solid var(--wt-line);border-radius:16px;background:#fff;box-shadow:0 22px 70px rgba(31,49,76,.20)}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-modal-head,.wt-modal-foot){background:#fff;border-color:var(--wt-line);color:var(--wt-muted)}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-modal-title{color:var(--wt-ink);font-weight:650}

/* Transient notices are created directly under body by the existing helper. */
html body[data-tool-slug]:not([data-tool-slug="office"])>.its-toast{max-width:calc(100vw - 32px);border:1px solid var(--wt-line);border-radius:11px;background:#fff;color:var(--wt-ink);box-shadow:0 7px 24px rgba(28,53,89,.15);line-height:1.6;overflow-wrap:anywhere}
html body[data-tool-slug]:not([data-tool-slug="office"])>.its-toast.info{background:var(--wt-tint);color:var(--wt-accent);border-color:var(--wt-tint-2)}
html body[data-tool-slug]:not([data-tool-slug="office"])>.its-toast.success{background:var(--wt-good-bg);color:var(--wt-good);border-color:#b4d8c8}
html body[data-tool-slug]:not([data-tool-slug="office"])>.its-toast.error{background:var(--wt-danger-bg);color:var(--wt-danger);border-color:#edbdc6}

/* Consistent keyboard visibility, without blanket fills on media/data widgets. */
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--wt-accent);outline-offset:3px}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-area:focus-visible{outline-offset:-3px}
html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(button,summary){-webkit-tap-highlight-color:transparent}
html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool ::selection{background:#dfe9fb;color:#17314f}
@media(max-width:640px){
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool.its{border-radius:12px}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-bar{padding:8px 10px}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-title{font-size:14px;gap:8px}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-title>i{width:29px;height:29px;border-radius:8px;font-size:18px}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop-title{font-size:19px}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .wt-text-head{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){
  html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(button,a,input,select,textarea,summary,.its-drop,.wt-b64-card,.nxt-switch-track,.wt-convert-icons img){transition:none!important}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-drop:hover .wt-convert-icons img{transform:none}
}
@media(forced-colors:active){
  html body[data-tool-slug]:not([data-tool-slug="office"]) :is(.wt-tool,.wt-modal) :is(.its-primary,.its-btn,.wt-mini-btn,.ix-batch-mini,.nxt-chip,.ix-preset){border:1px solid ButtonText;box-shadow:none}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool select:not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch-track{border:1px solid ButtonText}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .nxt-switch input:checked+.nxt-switch-track{background:Highlight}
  html body[data-tool-slug]:not([data-tool-slug="office"]) .wt-tool .its-title>i{color:ButtonText;background:Canvas;border:1px solid ButtonText}
}
