/* Conventional Calculator v80. Scoped so the SFIC calculator/trainer remain unchanged. */
.is-conventional-calculator-v80 [data-p47-format],
.is-conventional-calculator-v80 [data-p47-sample]{
  display:none !important;
}

.is-conventional-calculator-v80 .p80-profile-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border:1px solid color-mix(in srgb,currentColor 24%,transparent);
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.03em;
  white-space:nowrap;
}

.is-conventional-calculator-v80 [data-p47-panel="trainer"]:disabled{
  opacity:.42;
  cursor:not-allowed;
}

.p80-table-wrap{
  width:100%;
  overflow:auto;
}

.p80-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:.72rem;
}

.p80-table th,
.p80-table td{
  padding:7px 8px;
  border-right:1px solid color-mix(in srgb,currentColor 12%,transparent);
  border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent);
  text-align:center;
  vertical-align:middle;
}

.p80-table th:first-child,
.p80-table td:first-child{
  text-align:left;
}

.p80-table td strong,
.p80-table td small{
  display:block;
}

.p80-table td small{
  margin-top:2px;
  opacity:.62;
  font-size:.62rem;
}

.p80-table .p80-empty-cell{
  opacity:.35;
}

.p80-table .p80-total-row th,
.p80-table .p80-total-row td{
  font-weight:800;
}

.p80-core{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.p80-core-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:4px 6px 10px;
}

.p80-core-title strong{
  font-size:.82rem;
}

.p80-core-title span{
  opacity:.62;
  font-size:.68rem;
}

.p80-core-stacks{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(var(--p80-cols),minmax(0,1fr));
  align-items:end;
  gap:8px;
  padding:14px 8px 8px;
  border:1px solid color-mix(in srgb,currentColor 16%,transparent);
  border-radius:14px;
}

.p80-stack-column{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:stretch;
  gap:2px;
  text-align:center;
}

.p80-stack-column > b{
  margin-top:5px;
  font-size:.66rem;
}

.p80-stack-column > small{
  opacity:.58;
  font-size:.56rem;
  line-height:1.25;
}

.p80-spring{
  display:block;
  height:18px;
  line-height:18px;
  opacity:.48;
  overflow:hidden;
  font-weight:900;
  letter-spacing:-2px;
}

.p80-pin-piece{
  min-height:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:2px 3px;
  border:1px solid color-mix(in srgb,currentColor 28%,transparent);
  background:color-mix(in srgb,currentColor 7%,transparent);
  overflow:hidden;
}

.p80-pin-piece.is-driver{
  border-radius:5px 5px 2px 2px;
}

.p80-pin-piece.is-master{
  border-radius:2px;
}

.p80-pin-piece.is-bottom{
  border-radius:2px 2px 9px 9px;
}

.p80-pin-piece strong{
  font-size:.62rem;
  line-height:1;
}

.p80-pin-piece small{
  margin-top:2px;
  opacity:.58;
  font-size:.51rem;
  line-height:1;
}

.p80-core-note{
  margin-top:8px;
  padding:7px 9px;
  border:1px solid color-mix(in srgb,currentColor 14%,transparent);
  border-radius:10px;
  opacity:.68;
  font-size:.61rem;
  line-height:1.35;
}

.p80-empty{
  display:grid;
  place-items:center;
  min-height:120px;
  padding:18px;
  text-align:center;
  opacity:.72;
}

.p80-empty.is-error{
  opacity:1;
  font-weight:700;
}

@media (max-width:900px){
  .p80-core-stacks{gap:4px;padding-inline:4px;}
  .p80-pin-piece strong{font-size:.56rem;}
  .p80-stack-column > small{display:none;}
}
