.tool-shell{--tool-bg:#fff;--tool-soft:#f8fafc;--tool-border:#e2e8f0;--tool-ink:#0f172a;--tool-muted:#526174;--tool-accent:#6d28d9;max-width:1180px;margin:0 auto;padding:48px 24px 72px;color:var(--tool-ink)}
.dark .tool-shell{--tool-bg:#141c2e;--tool-soft:#101727;--tool-border:#303b50;--tool-ink:#eef2ff;--tool-muted:#a9b5c9;--tool-accent:#c4b5fd}
.tool-hero{padding:12px 0 42px;max-width:740px}.tool-eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:var(--tool-accent)}.tool-hero h1{font-size:clamp(34px,5vw,56px);font-weight:750;letter-spacing:-.045em;line-height:1.1;margin:16px 0}.tool-hero p{font-size:18px;line-height:1.65;color:var(--tool-muted);margin-bottom:20px}.tool-inline-link{font-size:14px;color:var(--tool-accent);text-decoration:underline;text-underline-offset:4px}
.tool-section-title{display:flex;gap:16px;align-items:baseline;justify-content:space-between;margin-bottom:20px}.tool-section-title h2,.tool-related h2{font-size:20px;font-weight:650}.tool-section-title>span{font-size:13px;color:var(--tool-muted)}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tool-card{display:flex;flex-direction:column;padding:24px;border:1px solid var(--tool-border);background:var(--tool-bg);border-radius:18px;transition:border-color .15s,box-shadow .15s}.tool-card:hover{border-color:var(--tool-accent);box-shadow:0 8px 28px #0f172a0c}.tool-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.tool-icon{display:grid;place-items:center;min-width:44px;height:44px;border-radius:12px;background:var(--tool-soft);font-family:monospace;font-weight:700;color:var(--tool-accent)}.tool-category{font-size:12px;color:var(--tool-muted)}.tool-card h3{font-size:19px;font-weight:650;letter-spacing:-.02em}.tool-card h3 span{float:right;color:var(--tool-muted)}.tool-card p{font-size:14px;line-height:1.65;color:var(--tool-muted);margin:10px 0 24px}.tool-location{margin-top:auto;font-size:12px;color:var(--tool-muted)}
.tool-breadcrumb{display:flex;gap:12px;font-size:13px;color:var(--tool-muted);margin-bottom:24px}.tool-breadcrumb a{text-decoration:underline;text-underline-offset:3px}.tool-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.tool-heading h1{font-size:clamp(28px,4vw,38px);font-weight:750;letter-spacing:-.035em}.tool-heading p{color:var(--tool-muted);margin-top:8px;line-height:1.6}.tool-badge{white-space:nowrap;border:1px solid var(--tool-border);padding:7px 12px;border-radius:99px;font-size:12px;color:var(--tool-muted)}
.tool-workbench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.tool-panel{min-width:0;background:var(--tool-bg);border:1px solid var(--tool-border);border-radius:16px;padding:20px}.tool-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-height:44px}.tool-panel-heading>label{font-weight:650;font-size:14px}.tool-actions{display:flex;gap:6px;flex-wrap:wrap}.tool-actions button{font-size:13px;color:var(--tool-accent);min-height:44px;padding:8px 10px;border-radius:8px}.tool-actions button:hover:not(:disabled){background:var(--tool-soft)}.tool-actions button:disabled{color:var(--tool-muted);opacity:.5;cursor:not-allowed}
.tool-shell textarea{display:block;width:100%;min-height:250px;resize:vertical;padding:16px;background:var(--tool-soft);border:1px solid var(--tool-border);border-radius:10px;font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--tool-ink);tab-size:2}.tool-shell textarea::placeholder{color:var(--tool-muted)}.tool-shell :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--tool-accent);outline-offset:3px}.tool-options{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px}.tool-options>label{font-size:13px;color:var(--tool-muted);display:flex;flex-direction:column;gap:7px}.tool-options select,.tool-options input[type=number]{min-height:44px;border:1px solid var(--tool-border);border-radius:8px;background:var(--tool-soft);color:var(--tool-ink);padding:8px 12px;max-width:100%}.tool-checkboxes{width:100%;font-size:14px}.tool-checkboxes legend{font-size:13px;color:var(--tool-muted);margin-bottom:12px}.tool-checkboxes label{display:flex;align-items:center;gap:10px;min-height:44px}.tool-checkboxes input{accent-color:var(--tool-accent);height:18px;width:18px}.tool-run{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:24px}.tool-primary{background:#6d28d9;color:white;min-height:46px;border-radius:10px;padding:11px 20px;font-weight:650;font-size:14px}.tool-primary:hover{background:#5b21b6}.tool-primary:disabled{opacity:.6}.tool-run>span,.tool-hint{font-size:12px;color:var(--tool-muted)}.tool-hint{line-height:1.7;margin-top:16px}.tool-shortcut{display:block;margin-top:5px}#tool-status{font-size:13px;line-height:1.6;margin:0 0 16px;color:var(--tool-muted);overflow-wrap:anywhere}#tool-status[data-error=true]{color:#b91c1c}.dark #tool-status[data-error=true]{color:#fca5a5}.tool-second-label{display:block;font-size:14px;font-weight:650;margin:20px 0 10px}.tool-note{padding:24px;border:1px solid var(--tool-border);background:var(--tool-soft);border-radius:14px;margin-top:28px}.tool-note h2,.tool-note strong{font-size:15px;font-weight:650}.tool-note p{font-size:14px;color:var(--tool-muted);line-height:1.75;max-width:900px;margin-top:8px}.tool-related{margin-top:36px}.tool-related>div{display:flex;gap:12px 24px;flex-wrap:wrap;margin-top:16px}.tool-related a{font-size:14px;color:var(--tool-accent);padding:10px 0}#tool-diff{overflow:auto;max-height:580px;margin-top:16px;font:12px/1.75 ui-monospace,monospace}.tool-diff-line{white-space:pre-wrap;overflow-wrap:anywhere;padding:4px 8px}.tool-diff-line[data-kind=added]{background:#dcfce7;color:#14532d}.tool-diff-line[data-kind=removed]{background:#fee2e2;color:#7f1d1d}.dark .tool-diff-line[data-kind=added]{background:#143428;color:#bbf7d0}.dark .tool-diff-line[data-kind=removed]{background:#401e28;color:#fecaca}
@media(max-width:900px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-heading{flex-direction:column}.tool-workbench{grid-template-columns:1fr}}
@media(max-width:550px){.tool-shell{padding:30px 16px 48px}.tool-grid{grid-template-columns:1fr}.tool-section-title{align-items:flex-start;flex-direction:column;gap:6px}.tool-panel{padding:16px}.tool-hero p{font-size:16px}.tool-panel-heading{flex-wrap:wrap}.tool-card{padding:22px}.tool-primary{width:100%}.tool-shortcut{display:none}}
.tool-shell [hidden]{display:none!important}.tool-panel-heading>span{font-size:14px;font-weight:650}[data-workbench=password_generator] #tool-output{min-height:140px;height:140px;font-size:18px}[data-workbench=text_diff] textarea{min-height:190px;height:190px}

/* Keep the primary action within reach and text legible on touch devices. */
.tool-shell textarea{height:280px;font-size:14px}.tool-breadcrumb{flex-wrap:wrap}.tool-heading h1{overflow-wrap:anywhere}.tool-result-panel{scroll-margin-top:88px}#tool-status:focus{outline:2px solid var(--tool-accent);outline-offset:5px;border-radius:2px}.tool-shell #tool-diff:focus-visible{outline:3px solid var(--tool-accent);outline-offset:3px}
@media(max-width:900px){.tool-shell textarea,.tool-options select,.tool-options input[type=number]{font-size:16px}.tool-shell textarea{height:220px;min-height:180px}.tool-options>label{min-width:0;max-width:100%}.tool-heading{gap:12px}.tool-breadcrumb{margin-bottom:16px}}

/* Task-specific controls share the same visual language. */
.tool-options{margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid var(--tool-border)}.tool-options:empty{display:none}.tool-options select:disabled{opacity:.5;cursor:not-allowed}.tool-presets{display:flex;flex-direction:column;gap:7px;justify-content:end;font-size:12px;color:var(--tool-muted)}.tool-presets>div{display:flex;gap:8px}.tool-presets button,.tool-secondary-actions button{min-height:44px;padding:9px 14px;border:1px solid var(--tool-border);border-radius:9px;font-size:13px;color:var(--tool-accent);background:var(--tool-soft)}.tool-presets button[aria-pressed=true]{border-color:var(--tool-accent);box-shadow:inset 0 0 0 1px var(--tool-accent)}.tool-secondary-actions{margin-top:16px}.tool-secondary-actions button:disabled{opacity:.5;cursor:not-allowed}.tool-metrics{font-size:12px;color:var(--tool-muted);margin:0 0 12px;line-height:1.6}.tool-diff-filter{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;color:var(--tool-muted);margin-bottom:12px}.tool-diff-filter input{accent-color:var(--tool-accent);width:18px;height:18px}#tool-diff[data-changes-only=true] [data-kind=unchanged]{display:none}.tool-diff-line{display:grid;grid-template-columns:35px 35px minmax(0,1fr);gap:6px}.tool-line-number{opacity:.7;text-align:right;user-select:none}.tool-line-content{white-space:pre-wrap;overflow-wrap:anywhere}.tool-diff-empty{padding:16px;color:var(--tool-muted)}

[data-workbench=text_diff] .tool-options{display:none}

[data-workbench=text_diff] textarea{height:190px;min-height:190px}@media(min-width:901px){.tool-result-panel{position:sticky;top:88px}}
