.tool-shell{--ink:#1b1b1b;--muted:#575752;--rule:#d9d9d3;--soft:#f5f5f2;--paper:#fff;--mono:"IBM Plex Mono",Consolas,"Liberation Mono",monospace;background:var(--paper);color:var(--ink);font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.5}.tool-frame{margin:auto;max-width:1220px;padding:22px clamp(16px,4vw,52px) 44px}.tool-crumb{align-items:center;color:var(--muted);display:flex;font-size:13px;gap:12px}.tool-shell[data-tool=comma] .tool-frame{max-width:1400px;padding-inline:clamp(16px,3vw,46px)}.tool-shell[data-tool=comma] .tool-crumb{flex-wrap:wrap;gap:4px 10px}.tool-shell[data-tool=comma] .tool-intro h1{font-size:clamp(29px,3.8vw,54px);overflow-wrap:anywhere}.tool-shell[data-tool=comma] .tool-intro p{max-width:85ch}.tool-crumb a{color:var(--ink);text-underline-offset:4px}.tool-crumb a:hover{text-decoration:underline}.tool-intro{align-items:center;display:flex;gap:28px;justify-content:space-between;padding:20px 0 26px}.intro-copy{min-width:0}.tool-intro h1{font-size:clamp(32px,4.1vw,56px);font-weight:650;letter-spacing:-.055em;line-height:1.13;text-wrap:balance}.tool-intro p{color:var(--muted);font-size:clamp(14px,1.25vw,17px);margin-top:12px;max-width:65ch}.tool-intro .tool-print{height:106px;width:clamp(158px,20vw,248px)}.tool-shell :where(button,input,select,textarea){color:inherit;font:inherit}.tool-shell :where(button,summary,input,textarea,select,a):focus-visible{outline:2px solid var(--ink);outline-offset:3px}.tool-shell button{cursor:pointer}.tool-shell button:disabled{cursor:default;opacity:.46}.tool-shell .workbench{background:var(--paper);border:1px solid var(--rule);border-radius:12px;min-width:0;padding:clamp(16px,2.6vw,32px)}.tool-shell .bench-heading,.tool-shell .pane-top{align-items:center;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.tool-shell .bench-heading{margin-bottom:18px}.tool-shell .bench-heading h2,.tool-shell .section-title{font-size:clamp(17px,1.7vw,22px);font-weight:650;letter-spacing:-.035em;margin:0}.tool-shell .pane-top{font-size:14px;font-weight:650;margin-bottom:9px;min-height:34px}.tool-shell .pane-actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.tool-shell .hint,.tool-shell .muted{color:var(--muted);font-size:13px;font-weight:400}.tool-shell .hint{margin-top:8px}.tool-shell .editor-pair{align-items:start;display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.tool-shell .edit-pane{min-width:0}.tool-shell .textarea{background:#fff;border:1px solid #bdbdb7;border-radius:6px;display:block;font:14px/1.65 var(--mono);min-height:205px;padding:15px 16px;resize:vertical;width:100%}.tool-shell .textarea::-moz-placeholder{color:#6e6e68}.tool-shell .textarea::placeholder{color:#6e6e68}.tool-shell .textarea--output{background:var(--soft);border-color:var(--rule)}.tool-shell .chip,.tool-shell .copy-btn,.tool-shell .primary-btn,.tool-shell .soft-btn,.tool-shell .switch-btn,.tool-shell .tab{align-items:center;background:#fff;border:1px solid var(--rule);border-radius:6px;display:inline-flex;font-size:13px;font-weight:600;gap:6px;justify-content:center;line-height:1.4;min-height:36px;padding:6px 13px}.tool-shell .copy-btn,.tool-shell .primary-btn,.tool-shell .switch-btn{background:var(--ink);border-color:var(--ink);color:#fff}.tool-shell :is(.primary-btn,.copy-btn,.switch-btn):hover:enabled{background:#383833}.tool-shell :is(.soft-btn,.tab,.chip):hover:enabled{border-color:var(--ink)}.tool-shell .copy-btn.is-copied{background:#245042;color:#fff}.tool-shell .tabs{background:var(--soft);border-radius:8px;display:inline-flex;flex-wrap:wrap;gap:4px;margin-bottom:20px;padding:4px}.tool-shell .tab{background:transparent;border-color:transparent}.tool-shell .chip--active,.tool-shell .tab--active{background:var(--ink);border-color:var(--ink);color:#fff}.tool-shell select{background:#fff;border:1px solid var(--rule);border-radius:5px;font-size:13px;max-width:100%;min-height:34px;padding:4px 8px}.tool-shell .switch-grid{align-items:center;gap:14px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tool-shell .switch-btn{font-size:20px;height:44px;min-width:46px}.tool-shell .msg--error{background:#fff2f1;border-left:3px solid #a3272a;color:#8c1f24;font-size:14px;margin-top:12px;padding:8px 12px}.tool-resources{margin-top:24px}.tool-guide{border-block:1px solid var(--rule)}.tool-guide summary{align-items:center;cursor:pointer;display:flex;font-size:15px;font-weight:600;justify-content:space-between;list-style:none;padding:15px 2px}.tool-guide summary::-webkit-details-marker{display:none}.tool-guide summary:after{content:"+";font:23px/1 var(--mono)}.tool-guide[open] summary:after{content:"−"}.tool-shell .guide-content{max-width:82ch;padding:0 0 22px}.tool-shell .tool-desc{background:none;border:0;color:var(--muted);display:block;font-size:14px;line-height:1.8;margin:0;padding:0}.tool-shell .tool-desc h2,.tool-shell .tool-desc h3{color:var(--ink);font-size:15px;margin:12px 0 4px}.tool-shell .tool-desc ol{display:block;padding-left:21px}.tool-shell .tool-desc code{background:var(--soft);border-radius:3px;font-family:var(--mono);padding:1px 4px}.tool-shell .related-tools{align-items:baseline;display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px}.tool-shell .related-title{color:var(--muted);font-size:13px;letter-spacing:0;margin:0}.tool-shell .related-links{display:flex;flex-wrap:wrap;gap:8px 20px}.tool-shell .related-link{background:none;border:0;border-radius:0;color:var(--ink);font-size:13px;padding:3px 0;text-decoration:underline;text-decoration-color:#c1c1bb;text-underline-offset:4px}.tool-shell .related-link:hover{text-decoration-color:var(--ink)}@media (max-width:700px){.tool-shell[data-tool=comma] .tool-print{display:none}.tool-frame{padding-top:14px}.tool-intro{gap:12px;padding:16px 0 20px}.tool-intro .tool-print{height:72px;width:82px;--print-scale:.58}.tool-intro h1{font-size:clamp(26px,6.5vw,34px)}.tool-intro p{font-size:13px;margin-top:6px}.tool-shell .editor-pair{gap:14px;grid-template-columns:1fr}.tool-shell .switch-grid{gap:6px}.tool-shell .switch-grid>.switch-btn{justify-self:center}.tool-shell .switch-btn .swap-icon{display:inline-block;transform:rotate(90deg)}.tool-shell .textarea{font-size:16px;height:150px;min-height:136px}.tool-resources{margin-top:16px}}@media (max-width:370px){.tool-intro .tool-print{width:62px}.tool-shell .workbench{padding:12px}}
