/* Part O tool additions, uses the same base styles as extension-calculator.css */

.openings{
  display: grid;
  gap: 10px;
}

.open-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  overflow: clip;
}

.open-card > summary{
  list-style: none;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.open-card > summary::-webkit-details-marker{ display: none; }

.open-card__left{
  min-width: 0;
}

.open-card__title{
  font-weight: 800;
  line-height: 1.2;
}

.open-card__meta{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(0,0,0,.6);
  line-height: 1.2;
}

.open-card__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  white-space: nowrap;
}

.chip--warn{
  background: rgba(255,193,7,.18);
  border-color: rgba(255,193,7,.35);
}

.open-card__body{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,.10);
}

.open-card__actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn--xs{
  font-size: 12px;
  padding: 6px 10px;
}

.help-icon{
  margin-left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  font-weight: 900;
  line-height: 1;
}

.help-icon:hover{ background: rgba(0,0,0,.06); }

.calc-popover{
  position: fixed;
  z-index: 9999;
  width: min(380px, calc(100vw - 24px));
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.calc-popover__header{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.calc-popover__title{
  font-weight: 900;
}

.calc-popover__close{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.calc-popover__body{
  padding: 12px;
  font-size: 13px;
  color: rgba(0,0,0,.75);
  line-height: 1.45;
}

.calc-popover__body p{ margin: 0 0 10px; }
.calc-popover__body p:last-child{ margin: 0; }
.calc-popover__body ul{ margin: 0; padding-left: 18px; }
.calc-popover__body li{ margin: 0 0 6px; }
.calc-popover__body li:last-child{ margin: 0; }

.open-card .form-grid{
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.open-card .field{ grid-column: span 6; }

.open-card .field--full{ grid-column: 1 / -1; }
.open-card .field--third{ grid-column: span 4; }
.open-card .field--quarter{ grid-column: span 3; }

@media (max-width: 720px){
  .open-card .field{ grid-column: 1 / -1; }
  .open-card__chips{ justify-content: flex-start; }
}

.row-issues{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,193,7,.35);
  background: rgba(255,193,7,.15);
  color: rgba(0,0,0,.75);
  font-size: 13px;
}

.row-issues strong{ font-weight: 900; }
