/* Specialized notation and action subviews. Public controls use ui-components.css. */
/* Inline Symbol Card in Parameter Editor */
.symbol-card-grid {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.symbol-card-preview {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 6px;
  background: #f8f7f3;
  border: 1px solid var(--line);
}

.symbol-card-preview .quantity-symbol {
  font-size: 20px;
  color: #0f172a;
}

.symbol-card-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.symbol-mini-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.symbol-mini-row > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.symbol-mini-row > input {
  height: 26px !important;
  min-height: 26px !important;
  padding: 2px 6px !important;
  font-size: 12.5px !important;
  font-family: var(--font-math);
  border: 1px solid #d5d3ca !important;
  border-radius: 4px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  width: 100% !important;
}

.symbol-card-note {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 2px;
}

.field-submit-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-unset-badge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #b45309;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  pointer-events: none;
}

/* Stacked Math Symbol Typography (m_b, v_{b,0}, m_b^0) */
.precision-workbench .quantity-symbol {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  font-family: var(--font-math);
  font-size: 16.5px;
  line-height: 1.05;
  color: #1e201d;
  white-space: nowrap;
}

.precision-workbench .quantity-symbol > i {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-style: italic;
  padding-right: 1px;
}

.precision-workbench .quantity-symbol > sup {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.66em;
  line-height: 1;
  align-self: start;
  transform: translateY(-2px);
}

.precision-workbench .quantity-symbol > sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.68em;
  line-height: 1;
  align-self: end;
  transform: translateY(2px);
}
