/* Shared styles for tool pages (loaded after styles.css) */
[hidden]{display:none!important}
.tool-head{padding:32px 0;display:flex;flex-direction:column;gap:14px;max-width:760px}
.tool-head h1{margin:0;font:700 56px/1.02 var(--font-display);letter-spacing:-.03em}
.tool-head p{margin:0;font-size:18px;line-height:1.5;color:var(--muted)}

.controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-bottom:20px}
.toggles,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.actions{gap:10px}
.toggle{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;cursor:pointer}
.switch{appearance:none;-webkit-appearance:none;margin:0;width:48px;height:28px;border-radius:999px;background:#9AA1B0;position:relative;cursor:pointer;flex:none;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.switch:checked{background:var(--blue)}
.switch:checked::after{transform:translateX(20px)}
.select{font:500 14px var(--font-body);min-height:44px;padding:0 36px 0 16px;border-radius:999px;border:1.5px solid var(--ink);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230E1116' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;color:var(--ink);appearance:none;-webkit-appearance:none;cursor:pointer}
input[type=range]{width:160px;accent-color:var(--blue);cursor:pointer}
.num{width:76px;min-height:44px;padding:0 12px;border-radius:999px;border:1.5px solid var(--ink);background:#fff;font:500 14px var(--font-mono);color:var(--ink);text-align:center}
.num:disabled{opacity:.5}
.field{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500}
.pill-btn.primary{background:var(--ink);color:#fff}
.pill-btn.primary:hover{background:#262B35}
.pill-btn:disabled{opacity:.45;cursor:not-allowed}

.editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pane{background:#fff;border-radius:20px;display:flex;flex-direction:column;box-shadow:0 0 0 1.5px var(--line);min-width:0}
.pane.clip{overflow:hidden}
.pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1.5px solid var(--line)}
.pane-head label,.pane-head .pane-title{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px}
.pane-head i{width:10px;height:10px;border-radius:3px;display:inline-block}
.count{font:400 12px var(--font-mono);color:var(--muted)}
.chip{font:500 13px var(--font-mono);padding:5px 12px;border-radius:999px}
.chip.ok{background:#D6F2DD;color:#0B5B2B}
.chip.bad{background:#FDE2DF;color:#8A1C12}
.chip.neutral{background:#E8EAF0;color:#3B4150}
.status{margin:14px 4px 0;font-size:14px;font-weight:500;line-height:1.5;min-height:1.4em}
.tip{margin:18px 4px 0;font-size:13px;line-height:1.5;color:var(--muted)}

@media (max-width:760px){
  .editors{grid-template-columns:minmax(0,1fr)}
  .tool-head h1{font-size:38px}
}
