:root{
  --wg-primary:#2E1F6D;
  --wg-text:#111827;
  --wg-gray:#F3F4F6;
  --wg-border:#E5E7EB;
  --wg-white:#fff;
  --wg-muted:#6B7280;
}
.worgoo-ty-root *{box-sizing:border-box}
.worgoo-ty-root{font-family:'Space Grotesk',ui-sans-serif,system-ui;color:var(--wg-text)}
.ty-wrap{max-width:1450px;margin:40px auto;padding:0 24px}
.ty-hgroup{margin-bottom:18px}
.ty-title{font-weight:800;font-size:34px;line-height:1.25;margin:0 0 6px}
.ty-desc{color:var(--wg-muted);font-size:15px;max-width:900px}
.ty-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:1100px){.ty-grid{grid-template-columns:1.15fr .85fr}}
.ty-card{background:var(--wg-white);border:1px solid var(--wg-border);border-radius:20px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ty-card-body{padding:20px 20px}
.ty-field{display:grid;grid-template-columns:210px 1fr;border:1px solid var(--wg-border);border-radius:12px;background:#fff;min-height:62px;overflow:hidden}
.ty-field+.ty-field{margin-top:12px}
.ty-labelcell{padding:16px 16px;border-right:1px solid var(--wg-border);font-weight:700;display:flex;align-items:center}
.ty-cell{padding:10px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ty-cell .ty-inline{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.ty-inputbox{border:1px solid var(--wg-border);border-radius:12px;height:44px;padding:0 12px;display:flex;align-items:center;gap:8px;background:#fff;width:100%;min-width:200px}
.ty-inputbox span{color:var(--wg-muted);font-size:13px}
.ty-input, .ty-select{flex:1;min-width:0;height:40px;border:0;outline:0;background:transparent;font-size:15px}
.ty-select{height:44px}
.ty-options{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.ty-radio,.ty-check{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#1F2937}
.ty-check input,.ty-radio input{accent-color:var(--wg-primary)}
.ty-actions{display:grid;grid-template-columns:220px 1fr;gap:12px;margin-top:18px}
.ty-btn{height:52px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;font-weight:800;border:1px solid transparent}
.ty-btn.clear{background:#fff;border-color:var(--wg-primary);color:var(--wg-primary)}
.ty-btn.calc{background:var(--wg-primary);color:#fff}
.ty-btn:disabled{opacity:.6;cursor:not-allowed}
.ty-visual{height:260px;border:1px solid var(--wg-border);border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px}
.ty-visual img{max-width:420px;max-height:100%;height:auto;width:auto;display:block}
.ty-res{margin-top:16px;padding:18px;border:1px solid var(--wg-border);border-radius:20px}
.ty-res-title{font-size:18px;font-weight:800;margin-bottom:8px}
.ty-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ty-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px dashed #e9edf3}
.ty-row:last-child{border-bottom:0}
.ty-muted{color:var(--wg-muted);font-size:12px;margin-top:8px}
.ty-kicker{background:#FFF4E8;border:1px solid #FFE1C2;border-radius:10px;padding:10px 12px;font-size:12px;color:#9A6B2F}
.ty-seg{display:inline-flex;border:1px solid var(--wg-border);border-radius:10px;overflow:hidden;flex-wrap:wrap}
.ty-seg button{height:36px;padding:0 12px;border:0;background:#fff;font-weight:600}
.ty-seg button+button{border-left:1px solid var(--wg-border)}
.ty-seg .on{background:var(--wg-primary);color:#fff}

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .ty-field{grid-template-columns:1fr}
  .ty-labelcell{border-right:0;border-bottom:1px solid var(--wg-border)}
  .ty-cell{padding:14px}
  .ty-cell .ty-inline{grid-template-columns:1fr}
  .ty-inputbox{min-width:0;width:100%}
  .ty-actions{grid-template-columns:1fr}
  .ty-visual{height:auto;min-height:180px}
  .ty-res .ty-list{grid-template-columns:1fr}
}
