#js-tool-container-three-phase-current-calculator .tp-app { display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
#js-tool-container-three-phase-current-calculator .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px 16px; margin: 0 0 14px; }
#js-tool-container-three-phase-current-calculator .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tbcalc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
#js-tool-container-three-phase-current-calculator .tbcalc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
#js-tool-container-three-phase-current-calculator .tbcalc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-three-phase-current-calculator .tbcalc-hint { font-size: 0.8rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-three-phase-current-calculator .tp-hidden { display: none; }


#js-tool-container-three-phase-current-calculator .tp-outcome { display: flex; flex-direction: column; gap: 14px; min-width: 0; }


#js-tool-container-three-phase-current-calculator .tp-hero { border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary); border-radius: var(--radius-md); background: var(--accent-light); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; }
#js-tool-container-three-phase-current-calculator .tp-hero-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-three-phase-current-calculator .tp-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-three-phase-current-calculator .tp-hero-value { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; line-height: 1.05; color: var(--text-primary); font-variant-numeric: tabular-nums; }
#js-tool-container-three-phase-current-calculator .tbcalc-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-hero-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-hero-side { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
#js-tool-container-three-phase-current-calculator .tp-hero-mini { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-secondary); min-width: 132px; }
#js-tool-container-three-phase-current-calculator .tp-hero-mini-label { font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
#js-tool-container-three-phase-current-calculator .tp-hero-mini-value { font-size: 1.05rem; font-weight: 650; color: var(--text-primary); font-variant-numeric: tabular-nums; }


#js-tool-container-three-phase-current-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; line-height: 1.45; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-three-phase-current-calculator .tbcalc-status.danger { border-left-color: var(--danger); background: var(--danger-light); color: var(--text-primary); }


#js-tool-container-three-phase-current-calculator .tp-ledger { border: 1px solid var(--border-color); border-radius: var(--radius-sm); display: flex; flex-direction: column; }
#js-tool-container-three-phase-current-calculator .tp-ledger-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
#js-tool-container-three-phase-current-calculator .tp-ledger-row:first-child { border-top: 0; }
#js-tool-container-three-phase-current-calculator .tp-ledger-key { font-size: 0.88rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-ledger-val { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
#js-tool-container-three-phase-current-calculator .tp-ledger-sub { font-size: 0.78rem; color: var(--text-muted); flex-basis: 100%; }
#js-tool-container-three-phase-current-calculator .tp-ledger-bar { height: 6px; border-radius: 2px; background: var(--mc-track, #e2e4ea); flex-basis: 100%; margin-top: 2px; }
#js-tool-container-three-phase-current-calculator .tp-ledger-bar i { display: block; height: 100%; border-radius: 2px; }


#js-tool-container-three-phase-current-calculator .tp-analysis { border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 14px; }
#js-tool-container-three-phase-current-calculator .tp-analysis-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
#js-tool-container-three-phase-current-calculator .tp-analysis-title { font-size: 0.88rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-analysis-note { font-size: 0.76rem; color: var(--text-muted); }
#js-tool-container-three-phase-current-calculator .tp-tri-wrap { position: relative; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-tertiary); }
#js-tool-container-three-phase-current-calculator .tp-tri-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#js-tool-container-three-phase-current-calculator .tp-canvas-desc { margin: 8px 0 0; font-size: 0.82rem; color: var(--text-muted); }
#js-tool-container-three-phase-current-calculator .tp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
#js-tool-container-three-phase-current-calculator .tp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
#js-tool-container-three-phase-current-calculator .tp-dot-a { background: var(--accent-primary); }
#js-tool-container-three-phase-current-calculator .tp-dot-b { background: var(--success); }
#js-tool-container-three-phase-current-calculator .tp-dot-c { background: var(--warning); }
#js-tool-container-three-phase-current-calculator .tp-dot-n { background: var(--danger); }
#js-tool-container-three-phase-current-calculator .tp-dot-p { background: var(--success); }
#js-tool-container-three-phase-current-calculator .tp-dot-q { background: var(--warning); }
#js-tool-container-three-phase-current-calculator .tp-dot-s { background: var(--accent-primary); }


#js-tool-container-three-phase-current-calculator .tp-bars { display: flex; flex-direction: column; gap: 10px; }
#js-tool-container-three-phase-current-calculator .tp-bar-row { display: grid; grid-template-columns: 72px 1fr minmax(70px, auto); align-items: center; gap: 12px; }
#js-tool-container-three-phase-current-calculator .tp-bar-name { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-bar-track { height: 12px; border-radius: 2px; background: var(--bg-tertiary); border: 1px solid var(--border-color); }
#js-tool-container-three-phase-current-calculator .tp-bar-fill { display: block; height: 100%; border-radius: 2px; transition: width 150ms ease-out; }
#js-tool-container-three-phase-current-calculator .tp-bar-a .tp-bar-fill { background: var(--accent-primary); }
#js-tool-container-three-phase-current-calculator .tp-bar-b .tp-bar-fill { background: var(--success); }
#js-tool-container-three-phase-current-calculator .tp-bar-c .tp-bar-fill { background: var(--warning); }
#js-tool-container-three-phase-current-calculator .tp-bar-n .tp-bar-fill { background: var(--danger); }
#js-tool-container-three-phase-current-calculator .tp-bar-val { font-size: 0.9rem; font-weight: 650; color: var(--text-primary); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
#js-tool-container-three-phase-current-calculator .tp-bar-row.tp-bar-n { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--border-color); }


#js-tool-container-three-phase-current-calculator .tp-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#js-tool-container-three-phase-current-calculator .tp-canvas-wrap { position: relative; width: 100%; min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-tertiary); }
#js-tool-container-three-phase-current-calculator .tp-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#js-tool-container-three-phase-current-calculator .tp-canvas-desc { margin: 0; font-size: 0.84rem; color: var(--text-muted); }


#js-tool-container-three-phase-current-calculator .tp-details { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#js-tool-container-three-phase-current-calculator .tbcalc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-three-phase-current-calculator .tbcalc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
#js-tool-container-three-phase-current-calculator .tbcalc-table th, #js-tool-container-three-phase-current-calculator .tbcalc-table td { padding: 8px 14px; text-align: right; border-top: 1px solid var(--border-color); font-variant-numeric: tabular-nums; }
#js-tool-container-three-phase-current-calculator .tbcalc-table thead th { text-align: right; color: var(--text-secondary); font-weight: 600; border-top: 0; }
#js-tool-container-three-phase-current-calculator .tbcalc-table th[scope="row"], #js-tool-container-three-phase-current-calculator .tbcalc-table thead th:first-child { text-align: left; }
#js-tool-container-three-phase-current-calculator .tp-unbalance { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--text-secondary); }
#js-tool-container-three-phase-current-calculator .tp-formula { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--text-muted); }

@media (max-width: 760px) {
  #js-tool-container-three-phase-current-calculator .tbcalc-grid-3, #js-tool-container-three-phase-current-calculator .tbcalc-grid-2 { grid-template-columns: 1fr; }
  #js-tool-container-three-phase-current-calculator .tp-hero { grid-template-columns: 1fr; }
  #js-tool-container-three-phase-current-calculator .tp-bar-row { grid-template-columns: 64px 1fr minmax(60px, auto); }
}
