#js-tool-container-profile-tube-frame-calculator .ptf-app {
  --ptf-steel: #2f6fbf;
  --ptf-steel-dark: #6f97ff;
  --ptf-zinc: #7b8494;
  --ptf-rust: #b8652a;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--text-primary);
}
html[data-theme="dark"] #js-tool-container-profile-tube-frame-calculator .ptf-app {
  --ptf-steel: #6f97ff;
  --ptf-zinc: #9ba1b1;
  --ptf-rust: #d97706;
}
#js-tool-container-profile-tube-frame-calculator .ptf-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px;
  margin: 0;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-legend {
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-hint {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}
#js-tool-container-profile-tube-frame-calculator .ptf-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-outcome {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#js-tool-container-profile-tube-frame-calculator .ptf-hero {
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ptf-steel);
  border-radius: var(--radius-md);
  background: var(--accent-light);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
}
#js-tool-container-profile-tube-frame-calculator .ptf-hero-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-hero-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
#js-tool-container-profile-tube-frame-calculator .ptf-hero-value {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-unit {
  font-size: 1rem;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-hero-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-flow {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-seg {
  display: block;
  height: 100%;
  transition: width 160ms ease-out;
}
#js-tool-container-profile-tube-frame-calculator .ptf-seg-posts {
  background: var(--ptf-steel);
}
#js-tool-container-profile-tube-frame-calculator .ptf-seg-purlins {
  background: var(--ptf-zinc);
}
#js-tool-container-profile-tube-frame-calculator .ptf-seg-rigels {
  background: var(--accent-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-seg-braces {
  background: var(--ptf-rust);
}
#js-tool-container-profile-tube-frame-calculator .ptf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
#js-tool-container-profile-tube-frame-calculator .ptf-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
#js-tool-container-profile-tube-frame-calculator .ptf-dot-posts {
  background: var(--ptf-steel);
}
#js-tool-container-profile-tube-frame-calculator .ptf-dot-purlins {
  background: var(--ptf-zinc);
}
#js-tool-container-profile-tube-frame-calculator .ptf-dot-rigels {
  background: var(--accent-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-dot-braces {
  background: var(--ptf-rust);
}
#js-tool-container-profile-tube-frame-calculator .ptf-spec {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
#js-tool-container-profile-tube-frame-calculator .ptf-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}
#js-tool-container-profile-tube-frame-calculator .ptf-spec-row:first-child {
  border-top: 0;
}
#js-tool-container-profile-tube-frame-calculator .ptf-spec-label {
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-spec-val {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#js-tool-container-profile-tube-frame-calculator .ptf-deflect {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
#js-tool-container-profile-tube-frame-calculator .ptf-deflect-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-gauge {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#js-tool-container-profile-tube-frame-calculator .ptf-gauge-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}
#js-tool-container-profile-tube-frame-calculator .ptf-gauge-label {
  color: var(--text-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-gauge-val {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--text-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
#js-tool-container-profile-tube-frame-calculator .ptf-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--success);
  transition: width 160ms ease-out;
}
#js-tool-container-profile-tube-frame-calculator .ptf-fill-over {
  background: var(--danger);
}
#js-tool-container-profile-tube-frame-calculator .ptf-gauge-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}
#js-tool-container-profile-tube-frame-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.4;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-status.warn {
  border-left-color: var(--warning);
  background: var(--warning-light);
  color: var(--text-primary);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-status.danger {
  border-left-color: var(--danger);
  background: var(--danger-light);
  color: var(--text-primary);
}
#js-tool-container-profile-tube-frame-calculator .ptf-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
#js-tool-container-profile-tube-frame-calculator .ptf-table-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-table th,
#js-tool-container-profile-tube-frame-calculator .tbcalc-table td {
  padding: 8px 14px;
  text-align: right;
  border-top: 1px solid var(--border-color);
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-table thead th {
  text-align: right;
  color: var(--text-secondary);
  font-weight: 600;
  border-top: 0;
}
#js-tool-container-profile-tube-frame-calculator .tbcalc-table th[scope="row"],
#js-tool-container-profile-tube-frame-calculator .tbcalc-table thead th:first-child {
  text-align: left;
}
#js-tool-container-profile-tube-frame-calculator .ptf-limits {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  #js-tool-container-profile-tube-frame-calculator .tbcalc-grid-2 {
    grid-template-columns: 1fr;
  }
}