.wt-button{--b-ink:#0f172a;--b-muted:#64748b;--b-line:#e2e8f0;--b-soft:#f8fafc;--b-accent:#2563eb;max-width:1240px;margin:0 auto;padding:28px 18px 58px;color:var(--b-ink)}.wt-button *{box-sizing:border-box}.wt-button-hero{padding:34px 4px 30px}.wt-button-hero h1{font-size:clamp(30px,5vw,54px);line-height:1.15;margin:12px 0}.wt-button-hero p{max-width:900px;color:var(--b-muted);font-size:16px;line-height:2;margin:0}.wt-button-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.wt-button-badges span{border:1px solid var(--b-line);background:#fff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;color:#475569}
.wt-button-card,.wt-button-preview-card{background:#fff;border:1px solid var(--b-line);border-radius:22px;padding:22px;box-shadow:0 10px 35px rgba(15,23,42,.05)}.wt-button-preview-card{margin-bottom:20px}.wt-button-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.wt-button-main,.wt-button-side{display:grid;gap:18px}.wt-button-side{position:sticky;top:20px}.wt-button-card-head,.wt-button-preview-head{display:flex;align-items:flex-start;gap:12px}.wt-button-preview-head{justify-content:space-between;gap:18px;flex-wrap:wrap}.wt-button-card-head h2,.wt-button-preview-head h2{margin:0 0 5px;font-size:20px}.wt-button-card-head p,.wt-button-preview-head p{margin:0;color:var(--b-muted);line-height:1.8;font-size:13px}.wt-button-step{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:900}
.wt-button-stage{min-height:270px;border-radius:18px;margin-top:18px;display:grid;place-items:center;padding:38px;overflow:hidden;border:1px solid #e5e7eb;transition:.2s}.wt-button-stage.is-light{background:radial-gradient(circle at 20% 20%,#dbeafe,transparent 30%),linear-gradient(135deg,#fff,#f8fafc)}.wt-button-stage.is-dark{background:radial-gradient(circle at 75% 25%,#312e81,transparent 35%),linear-gradient(145deg,#0f172a,#111827)}.wt-button-stage.is-checker{background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%),linear-gradient(-45deg,#e5e7eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7eb 75%),linear-gradient(-45deg,transparent 75%,#e5e7eb 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.wt-button-demo{font:inherit;display:inline-flex;align-items:center;justify-content:center;border-style:solid;text-decoration:none;cursor:pointer;position:relative;isolation:isolate;white-space:nowrap}.wt-button-demo-icon{display:inline-grid;place-items:center;line-height:0}.wt-button-demo-icon svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wt-button-demo-icon:empty{display:none}
.wt-button-state-tabs,.wt-button-stage-modes{display:flex;flex-wrap:wrap;gap:7px}.wt-button-stage-modes{margin-top:12px;justify-content:center}.wt-button-state-tabs button,.wt-button-stage-modes button{border:1px solid var(--b-line);background:#fff;border-radius:10px;padding:8px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;color:#334155}.wt-button-state-tabs button.is-active,.wt-button-stage-modes button.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.wt-button-grid{display:grid;gap:14px;margin-top:18px}.wt-button-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wt-button-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wt-button-field{display:grid;gap:8px;font-size:13px;font-weight:800}.wt-button-field input[type=text],.wt-button-field input[type=url],.wt-button-field select,.wt-button-controls-grid select{width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:10px 11px;background:#fff;color:#0f172a;font:inherit;outline:0}.wt-button-field input:focus,.wt-button-field select:focus,.wt-button-controls-grid select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}.wt-button-field.is-hidden{display:none}.wt-button-color{display:flex;align-items:center;gap:9px;border:1px solid #e2e8f0;border-radius:11px;padding:7px 9px;background:#f8fafc}.wt-button-color input[type=color]{width:40px;height:30px;padding:0;border:0;background:transparent}.wt-button-color code{direction:ltr;font-size:12px;color:#475569}
.wt-button-controls-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.wt-button-controls-grid>label{border:1px solid #e2e8f0;border-radius:14px;padding:12px;display:grid;gap:10px;font-size:12px;font-weight:800;background:#fbfdff}.wt-button-controls-grid>label>div{display:flex;align-items:center;gap:9px}.wt-button input[type=range]{width:100%;accent-color:#2563eb}.wt-button output{min-width:50px;text-align:left;direction:ltr;font-size:11px;color:#64748b}.wt-button-toggle-row{margin-top:16px}.wt-button-toggle-row>label{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.wt-button-toggle-row span{display:grid;gap:2px}.wt-button-toggle-row small{color:#64748b;font-weight:500}
.wt-button-state-panels{display:grid;gap:10px;margin-top:16px}.wt-button-state-panels details{border:1px solid #e2e8f0;border-radius:14px;padding:0 14px;background:#fbfdff}.wt-button-state-panels summary{cursor:pointer;padding:13px 0;font-weight:900}.wt-button-state-panels details .wt-button-grid{margin:0 0 14px}.wt-button-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.wt-button-presets button{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:12px;display:grid;gap:8px;text-align:right;cursor:pointer;font:inherit}.wt-button-presets button:hover{border-color:#93c5fd;box-shadow:0 8px 24px rgba(37,99,235,.08)}.wt-button-preset-swatch{height:34px;border-radius:9px}.wt-button-presets strong{font-size:13px}.wt-button-presets small{color:#64748b}
.wt-button-side h3{margin:0 0 12px}.wt-button-score{display:flex;align-items:baseline;gap:3px;margin:8px 0 14px}.wt-button-score strong{font-size:46px;line-height:1}.wt-button-score span{color:#94a3b8;font-weight:800}.wt-button-health-list{display:grid;gap:9px}.wt-button-health-list>div{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border-radius:11px;font-size:12px;line-height:1.7}.wt-button-health-list i{width:8px;height:8px;border-radius:50%;margin-top:6px;flex:0 0 auto}.wt-button-health-list .is-ok{background:#ecfdf5;color:#065f46}.wt-button-health-list .is-ok i{background:#10b981}.wt-button-health-list .is-warn{background:#fff7ed;color:#9a3412}.wt-button-health-list .is-warn i{background:#f97316}.wt-button-health-list .is-info{background:#eff6ff;color:#1e40af}.wt-button-health-list .is-info i{background:#3b82f6}.wt-button-code{margin:0 0 12px;background:#0b1220;color:#dbeafe;border-radius:14px;padding:15px;white-space:pre;overflow:auto;direction:ltr;text-align:left;line-height:1.75;font-size:12px;max-height:250px}.wt-button-code-large{max-height:520px;min-height:300px}.wt-button-tips ul{margin:0;padding-right:18px;color:#475569;line-height:2;font-size:12px}.wt-button-tips code{direction:ltr}.wt-button-reset{width:100%;border:1px solid #fecaca;color:#b91c1c;background:#fff;border-radius:13px;padding:11px;font:inherit;font-weight:900;cursor:pointer}
.wt-button-output{margin-top:20px}.wt-button-output-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.wt-button-output .wt-button-code{margin-top:16px}.wt-button .wt-btn{border-radius:11px;padding:10px 13px;font:inherit;font-weight:900;cursor:pointer}.wt-button .wt-btn-primary{background:#2563eb;color:#fff;border:1px solid #2563eb}.wt-button .wt-btn-ghost{background:#fff;color:#0f172a;border:1px solid #cbd5e1}
@media(max-width:1000px){.wt-button-layout{grid-template-columns:1fr}.wt-button-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.wt-button-side .wt-button-reset{grid-column:1/-1}.wt-button-controls-grid,.wt-button-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.wt-button{padding-inline:12px}.wt-button-card,.wt-button-preview-card{padding:16px;border-radius:18px}.wt-button-grid-2,.wt-button-grid-3,.wt-button-controls-grid,.wt-button-presets,.wt-button-side{grid-template-columns:1fr}.wt-button-stage{min-height:220px;padding:24px 12px}.wt-button-state-tabs{width:100%;overflow:auto;flex-wrap:nowrap;padding-bottom:3px}.wt-button-state-tabs button{white-space:nowrap}.wt-button-preview-head{display:block}.wt-button-preview-head .wt-button-state-tabs{margin-top:14px}}

/* v4.13 — bounded design workspace */
.wt-button-workspace{display:block}
@media (min-width:1101px){
  .wt-button-workspace{display:grid;grid-template-columns:minmax(400px,.9fr) minmax(0,1.12fr);column-gap:20px;align-items:start}
  .wt-button-preview-card{grid-column:1;position:sticky;top:18px;align-self:start;z-index:4;box-shadow:0 18px 55px rgba(15,23,42,.11);margin-bottom:0}
  .wt-button-preview-card:before{content:"LIVE CANVAS";display:inline-flex;margin-bottom:12px;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
  .wt-button-layout{grid-column:2;display:block;min-width:0}
  .wt-button-main{display:grid;gap:18px}
  .wt-button-side{position:static;display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}
  .wt-button-side>*{grid-column:1/-1;min-width:0}
  .wt-button-output{margin-top:20px;position:relative;z-index:5}
  .wt-button-stage{min-height:clamp(300px,48vh,480px)}
}
