.txbc-root{
    --c-bg:#ffffff; --c-card:#f8f9fb; --c-border:#e2e5ea; --c-text:#181a1f; --c-mute:#5b616e;
    --c-primary:#0b5d5d; --c-primary-dark:#083f3f; --c-contrast:#ffffff; --c-accent:#c2760c;
    --c-focus:#0b5d5d; --c-good:#1f9e6d; --c-bad:#d1495b;
    --radius:14px; --radius-sm:9px; --shadow:0 1px 3px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.05);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:var(--c-text); max-width:760px; margin:0 auto;
  }
  .txbc-root[data-theme="dark"]{
    --c-bg:#14161a; --c-card:#1c1f26; --c-border:#2c313b; --c-text:#eef0f3; --c-mute:#a2a9b5;
    --c-primary:#3ecfcf; --c-primary-dark:#2ba8a8; --c-contrast:#08201f; --c-accent:#e8a13d; --c-focus:#3ecfcf;
    --shadow:0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
  .txbc-root *{box-sizing:border-box;}
  .txbc-root .txbc-topbar{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap;}
  .txbc-root h2{font-size:1.4rem; font-weight:700; margin:0;}
  .txbc-root .txbc-sub{color:var(--c-mute); font-size:.9rem; margin:2px 0 0;}
  .txbc-root .txbc-theme{background:var(--c-card); border:1px solid var(--c-border); color:var(--c-text); border-radius:999px; padding:6px 14px; font-size:.8rem; cursor:pointer;}
  .txbc-root .txbc-card{background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--radius); padding:18px; margin-bottom:14px; box-shadow:var(--shadow);}
  .txbc-root label{display:block; font-size:.82rem; font-weight:600; color:var(--c-mute); margin:12px 0 5px;}
  .txbc-root label:first-of-type{margin-top:0;}
  .txbc-root input[type="text"], .txbc-root select{
    width:100%; padding:10px 12px; font-size:.98rem; border-radius:var(--radius-sm); border:1.5px solid var(--c-border);
    background:var(--c-bg); color:var(--c-text); outline:none;
  }
  .txbc-root input:focus, .txbc-root select:focus{border-color:var(--c-focus); box-shadow:0 0 0 3px color-mix(in srgb, var(--c-focus) 20%, transparent);}
  .txbc-root .txbc-row2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  .txbc-root .txbc-method{display:flex; background:var(--c-bg); border:1.5px solid var(--c-border); border-radius:999px; padding:3px; margin-bottom:4px;}
  .txbc-root .txbc-method button{flex:1; border:none; background:transparent; padding:9px 10px; border-radius:999px; font-size:.85rem; font-weight:700; color:var(--c-mute); cursor:pointer;}
  .txbc-root .txbc-method button.active{background:var(--c-primary); color:var(--c-contrast);}
  .txbc-root .txbc-help{font-size:.78rem; color:var(--c-mute); margin:6px 0 0; line-height:1.45;}
  .txbc-root details summary{cursor:pointer; font-weight:700; list-style:none; display:flex; justify-content:space-between;}
  .txbc-root details summary::-webkit-details-marker{display:none;}
  .txbc-root details summary::after{content:"+"; color:var(--c-mute); font-weight:400; font-size:1.2rem;}
  .txbc-root details[open] summary::after{content:"–";}
  .txbc-root .txbc-details-body{margin-top:12px;}

  .txbc-root .txbc-hero{background:linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color:var(--c-contrast); text-align:center; padding:24px 18px;}
  .txbc-root .txbc-hero-label{font-size:.84rem; opacity:.85; font-weight:600; text-transform:uppercase; letter-spacing:.04em;}
  .txbc-root .txbc-hero-value{font-size:2.4rem; font-weight:800; margin:6px 0 2px; font-variant-numeric:tabular-nums;}
  .txbc-root .txbc-hero-sub{font-size:.84rem; opacity:.9;}

  .txbc-root .txbc-breakdown .txbc-brow{display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--c-border); font-size:.92rem;}
  .txbc-root .txbc-breakdown .txbc-brow:last-child{border-bottom:none; padding-top:12px; font-weight:800; font-size:1.02rem;}
  .txbc-root .txbc-breakdown dt{color:var(--c-mute); font-weight:500;}
  .txbc-root .txbc-breakdown dd{margin:0; font-weight:700; font-variant-numeric:tabular-nums;}
  .txbc-root dl{margin:0;}

  .txbc-root .txbc-compare-box{border:1.5px dashed color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-radius:var(--radius); padding:14px; margin-top:4px;}
  .txbc-root .txbc-compare-box h4{margin:0 0 8px; font-size:.9rem;}
  .txbc-root .txbc-compare-row{display:flex; justify-content:space-between; padding:5px 0; font-size:.88rem;}
  .txbc-root .txbc-compare-row strong{font-variant-numeric:tabular-nums;}

  .txbc-root .txbc-badge-zero{font-size:.68rem; font-weight:700; background:color-mix(in srgb, var(--c-good) 18%, transparent); color:var(--c-good); padding:2px 7px; border-radius:999px; margin-left:6px;}
  .txbc-root .txbc-disclaimer{font-size:.74rem; color:var(--c-mute); line-height:1.5; margin-top:6px; padding-top:14px; border-top:1px solid var(--c-border);}
  @media print{ .txbc-root .txbc-inputs, .txbc-root .txbc-theme{display:none !important;} }
