.cwg{background:#fff;border:1px solid #dfe5ef;border-radius:22px;padding:24px;scroll-margin-top:20px}.cwg button{background:#1d4ed8;color:#fff;border:0;border-radius:10px;padding:12px 15px;font-family:inherit;font-weight:700;font-size:15px;line-height:1.3;cursor:pointer}.cwg button:focus-visible,.cwg input:focus-visible,.cwg select:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}.cwg-presets{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.cwg-presets button{background:#eef4ff;color:#17213a}.cwg-presets button[aria-pressed=true]{background:#1d4ed8;color:#fff}.cwg-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:22px}.cwg-inputs{background:#f7f9fc;border-radius:16px;padding:18px}.cwg label{display:block;font-weight:700;margin-bottom:12px}.cwg input,.cwg select{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;font-size:16px;margin-top:6px;background:#fff;color:#17213a}.cwg-small{font-size:14px;color:#475569}.cwg-status{color:#2945b9}.cwg-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cwg-stat{background:#eef4ff;border:1px solid #d7e2f3;border-radius:14px;padding:16px;min-width:0}.cwg-stat span{display:block;font-size:14px}.cwg-stat strong{display:block;font-size:clamp(20px,3vw,28px);overflow-wrap:anywhere;margin:8px 0}.cwg-visual{margin-top:20px}.cwg-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.cwg-chart-heading label{max-width:280px}.cwg svg{display:block;width:100%;height:auto;background:#f7f9fc;border:1px solid #dfe5ef;border-radius:14px}.cwg-visual button{margin:12px 8px 0 0}.cwg-formulas{background:#f7f9fc;border-left:4px solid #1d4ed8;padding:18px;margin:22px 0;border-radius:10px}.cwg-formulas p{overflow-wrap:anywhere}.cwg-table-wrap summary{cursor:pointer;font-weight:700;padding:12px}.cwg-table-scroll{overflow:auto;max-height:460px}.cwg table{border-collapse:collapse;width:100%;font-size:14px}.cwg th,.cwg td{padding:10px;text-align:left;border-bottom:1px solid #dfe5ef;vertical-align:top;overflow-wrap:anywhere;min-width:110px}.cwg th{position:sticky;top:0;background:#eef4ff}.cwg td:first-child,.cwg th:first-child{min-width:65px}.cwg-explanation{margin-top:20px}.cwg [hidden]{display:none!important}@media(max-width:700px){.cwg{padding:18px 14px}.cwg-layout{grid-template-columns:1fr}.cwg-chart-heading{display:block}.cwg-results{gap:8px}.cwg-stat{padding:12px}.cwg-chart-heading label{max-width:none}}

@media(max-width:450px){.cwg-results{grid-template-columns:1fr}.cwg-stat strong{font-size:25px}}
