/* The calculator's input sheet uses a compact, consistent field rhythm. */
.clean-sign-form {
  padding-bottom: 22px;
}

.clean-sign-form [hidden] {
  display: none !important;
}

.clean-sign-form .form-section {
  padding: 19px 0;
}

.clean-sign-form label {
  margin-bottom: 7px;
  color: var(--label-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.clean-sign-form input:not([type="checkbox"]),
.clean-sign-form select {
  min-height: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
}

.clean-sign-form .unit-field > span {
  top: 13px;
  font-size: 12px;
}

.clean-sign-form .select-wrap::after {
  top: 19px;
}

.clean-sign-form .location-detail {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.clean-sign-form .signs-heading h3,
.clean-sign-form .installation-section > h3 {
  margin: 0;
  color: var(--heading-text);
  font-size: 13px;
  font-weight: 650;
}

.clean-sign-form .location-section > label,
.clean-sign-form .signs-heading h3,
.clean-sign-form .installation-section > h3,
.clean-sign-form #adjustments-details > summary > .summary-copy {
  color: var(--heading-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.clean-sign-form .signs-section > .field-hint {
  margin-top: 5px;
  font-size: 11px;
}

.clean-sign-form .panel-editor {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
}

.clean-sign-form .panel-editor.is-primary {
  border-color: var(--line);
  box-shadow: inset 2px 0 0 var(--accent);
}

.clean-sign-form .panel-editor > .panel-heading {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.clean-sign-form .panel-number {
  color: var(--heading-text);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.clean-sign-form .panel-actions,
.clean-sign-form .panel-order-actions {
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}

.clean-sign-form .panel-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 7px;
  background: var(--paper);
  color: var(--primary);
  font-size: 18px;
}

.clean-sign-form .panel-actions .pick-sign-picture {
  width: auto;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 600;
}

.clean-sign-form .panel-actions .remove-panel {
  color: var(--muted);
  font-size: 22px;
  text-decoration: none;
}

.clean-sign-form .remove-panel svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clean-sign-form .panel-editor > .panel-identity {
  margin: 0 0 12px;
}

.clean-sign-form .panel-editor .primary-choice {
  min-height: 44px;
  margin: 0;
  font-size: 12px;
}

.clean-sign-form #assembly-panels:has(> .panel-editor:only-child) .panel-identity,
.clean-sign-form #assembly-panels:has(> .panel-editor:only-child) .panel-order-actions {
  display: none;
}

.clean-sign-form .panel-editor > .dimension-fields {
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.clean-sign-form .panel-editor .field-hint {
  font-size: 11px;
  line-height: 1.5;
}

.clean-sign-form .panel-editor > .panel-picture-name {
  margin: -4px 0 13px;
  font-size: 11px;
  line-height: 1.5;
}

.clean-sign-form .panel-size-field {
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.clean-sign-form .panel-size-field .field-hint {
  margin-bottom: 0;
}

.clean-sign-form .panel-editor.has-size-preset .shape-choice,
.clean-sign-form .panel-editor.has-size-preset .dimension-fields,
.clean-sign-form .panel-editor.has-size-preset .diamond-hint {
  display: none;
}

.clean-sign-form .panel-editor > .diamond-hint {
  margin-top: 9px;
  margin-bottom: 0;
}

.clean-sign-form .panel-editor > .gap-field {
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  margin-bottom: 0;
}

.clean-sign-form .panel-editor > .gap-field > label {
  margin-bottom: 0;
}

.clean-sign-form .add-panel-button {
  min-height: 44px;
  padding: 10px 14px;
  border-style: solid;
  border-radius: 8px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 550;
}

.clean-sign-form .installation-section > h3 {
  margin-bottom: 14px;
}

.clean-sign-form .installation-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: start;
  gap: 15px;
}

.clean-sign-form .installation-fields > div {
  min-width: 0;
  padding: 0;
  border: 0;
}

.clean-sign-form .mounting-fields {
  display: block;
  margin-top: 0;
}

.clean-sign-form .mounting-fields:has(#custom-height-field:not([hidden])) {
  margin-top: 13px;
}

.clean-sign-form #adjustments-details {
  border-bottom: 1px solid var(--line);
}

.clean-sign-form #adjustments-details > summary {
  justify-content: flex-start;
  min-height: 54px;
  gap: 12px;
  padding: 14px 0;
  color: var(--heading-text);
  font-size: 13px;
  font-weight: 600;
}

.clean-sign-form #adjustments-details > summary > .summary-copy {
  flex: 1;
  font-size: inherit;
  font-weight: inherit;
}

.clean-sign-form #adjustments-details > summary > .form-adjustments-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  transform: none;
}

.clean-sign-form #adjustments-details > summary > [aria-hidden="true"] {
  color: var(--muted);
  font-size: 20px;
}

.clean-sign-form .adjustment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 13px;
  padding: 0 0 19px;
}

.clean-sign-form .adjustment-fields > .mounting-section {
  grid-column: 1 / -1;
}

.clean-sign-form .adjustment-fields > div,
.clean-sign-form #settings-details > div {
  min-width: 0;
}

.clean-sign-form .adjustment-fields .anchor-insertion-field {
  margin-top: 0;
}

.clean-sign-form #settings-details {
  display: contents;
}

.clean-sign-form .optional {
  margin-left: 3px;
  font-size: 10px;
  font-weight: 400;
}

.clean-sign-form .form-actions {
  gap: 17px;
  padding-top: 19px;
}

.clean-sign-form .form-actions .calculate-button {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.clean-sign-form .reset-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
}

@media (max-width: 700px) {
  .clean-sign-form input:not([type="checkbox"]),
  .clean-sign-form select {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .clean-sign-form .panel-editor {
    padding: 13px 12px;
  }

  .clean-sign-form .panel-editor > .panel-heading {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .clean-sign-form .panel-actions {
    margin-left: auto;
  }

  .clean-sign-form .adjustment-fields {
    grid-template-columns: 1fr;
  }
}
