.app-sheet { min-width: 0; display: grid; gap: 18px; }
.app-sheet-caption { color: var(--muted); font-size: 12px; line-height: 1.65; }
.app-sheet-rows { display: grid; min-width: 0; }
.app-sheet-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); align-items: center; }
.app-sheet-row > div { display: grid; gap: 6px; min-width: 0; }
.app-sheet-row label { overflow-wrap: anywhere; }
.app-sheet-row small { color: var(--muted); overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.app-sheet-row input { width: 100%; min-width: 0; }
.app-sheet-row output { font-size: 22px; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.app-sheet-row .app-sheet-error { color: var(--muted); font-size: 11px; }
.app-sheet-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-sheet-controls [role="status"] { font-size: 12px; }
.app-sheet-conflict { padding: 16px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 14px; }
.app-sheet-conflict[hidden] { display: none; }
.app-sheet-conflict p, .app-sheet-conflict dd { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.app-sheet-conflict dl { display: grid; gap: 12px; }
.app-sheet-conflict dt { font-weight: 600; }
.app-sheet-conflict dd { margin: 4px 0 0; color: var(--muted); }
.app-sheet-conflict button { justify-self: start; }
.app-sheet-config { display: grid; gap: 20px; min-width: 0; }
.app-sheet-config > article { display: grid; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; min-width: 0; }
.app-sheet-config .section-heading { flex-wrap: wrap; gap: 10px; }
.app-sheet-config .form-actions { flex-wrap: wrap; gap: 10px; }
.app-sheet-config .form-grid > * { min-width: 0; }
.app-sheet-config > .muted { font-size: 12px; line-height: 1.7; }
.app-sheet-config h4 { font-size: 16px; }
.app-sheet-formula { display: grid; gap: 15px; }
.app-sheet-step { display: grid; gap: 12px; border-left: 2px solid var(--line); padding: 12px 0 12px 16px; }
.app-sheet-try { border-top: 1px solid var(--line); padding-top: 18px; }
.app-sheet-try summary { font-weight: 600; color: var(--accent); cursor: pointer; padding-bottom: 16px; }
.app-sheet-try > p { font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
@media (max-width: 640px) {
  .app-sheet-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .app-sheet-row output { font-size: 20px; }
  .app-sheet-controls .primary { width: 100%; }
  .app-sheet-config .form-grid.two { grid-template-columns: minmax(0, 1fr); }
}
