* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: #203a35; background: #e8edeb; font-family: Arial, Helvetica, sans-serif; }
.model-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#model-viewport { position: relative; flex: 1; min-height: 0; outline: none; touch-action: none; }
#model-viewport canvas { display: block; width: 100%; height: 100%; }
#model-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; font-size: 14px; background: #e8edeb; z-index: 1; }
.view-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: #fafbf9; border-top: 1px solid #d6dfdb; }
.view-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.view-buttons button { border: 0; padding: 10px 12px; background: transparent; border-radius: 5px; font-size: 12px; color: #203a35; cursor: pointer; }
.view-buttons button.active { background: #203a35; color: #fff; }
.step-download { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 16px; border-radius: 5px; background: #203a35; color: #fff; font-size: 12px; text-decoration: none; white-space: nowrap; }
button:focus-visible, a:focus-visible { outline: 2px solid #e95813; outline-offset: 3px; }
#model-viewport:focus-visible { outline: 2px solid #e95813; outline-offset: -3px; }
.model-unavailable { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 30px; text-align: center; font-size: 14px; }
@media (max-width: 620px) {
  .view-bar { justify-content: center; gap: 8px; padding: 8px; }
  .view-buttons { justify-content: center; gap: 2px; }
  .view-buttons button { font-size: 11px; padding: 10px 8px; }
  .step-download { padding: 10px 16px; }
}
