.model-project-purchased-parts {
  background: #f7f9fa;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  padding: 2.4rem;
}
.model-project-parts-table {
  background: #fff;
  margin-bottom: 0;
}
.model-project-parts-table th,
.model-project-parts-table td {
  vertical-align: middle;
}
.model-project-part-quantity {
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 9rem;
}
.model-admin-parts {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
.model-admin-part-row {
  align-items: end;
  background: #f7f9fa;
  border: 1px solid #dce2e6;
  border-radius: 6px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 2fr) 10rem auto;
  padding: 1.2rem;
}
.model-admin-part-row .form-group {
  margin: 0;
}
.model-admin-part-row .btn-link {
  align-self: center;
}
@media (max-width: 767px) {
  .model-admin-part-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .model-admin-part-quantity {
    max-width: 14rem;
  }
  .model-admin-part-row .btn-link {
    justify-self: start;
    padding-left: 0;
  }
}
.model-projects-page,
.model-project-detail,
.model-admin-page {
  padding-bottom: 5rem;
  padding-top: 3rem;
}
.model-project-body {
  padding-top: 70px;
}
.model-projects-heading {
  max-width: 760px;
  margin: 2rem auto 4rem;
  text-align: center;
}
.model-projects-kicker,
.model-viewer-eyebrow {
  color: #52768c;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.model-project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.model-project-card,
.model-project-empty {
  background: #fff;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 41, 52, 0.07);
  padding: 2.4rem;
}
.model-project-card h2 {
  margin-top: 0.5rem;
}
.model-project-card-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f4f1eb;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
  overflow: hidden;
}
.model-project-card-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.model-project-card-meta {
  color: #71808a;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.model-project-card-link {
  display: inline-block;
  font-weight: 600;
  margin-top: 1rem;
}
.model-project-back-link {
  margin: 0 0 3rem;
}
.model-project-hero {
  display: grid;
  gap: 0 4rem;
  grid-template-areas: 'copy';
  padding: 1rem 0 4rem;
  border-bottom: 1px solid #dce2e6;
}
.model-project-hero--with-image {
  align-items: center;
  grid-template-areas: 'copy image';
  grid-template-columns: minmax(0, 1fr) 320px;
}
.model-project-hero-copy {
  grid-area: copy;
  max-width: 800px;
}
.model-project-hero h1 {
  font-size: clamp(3.4rem, 4.4vw, 5.2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1.5rem;
}
.model-project-hero .lead {
  color: #465963;
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
  max-width: 65ch;
}
.model-project-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.model-project-hero-media {
  background: #f4f1eb;
  border-radius: 10px;
  grid-area: image;
  overflow: hidden;
}
.model-project-hero-media img {
  display: block;
  height: auto;
  width: 100%;
}
.model-project-hero-meta {
  color: #71808a;
  font-size: 1.3rem;
  margin: 1.5rem 0 0;
}
.model-viewer-dialog {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 24px 70px rgba(10, 25, 35, 0.35);
  max-height: calc(100vh - 4rem);
  max-width: 960px;
  overflow: auto;
  padding: 0;
  width: calc(100% - 3rem);
}
.model-viewer-dialog::backdrop {
  background: rgba(15, 31, 41, 0.72);
}
.model-viewer-panel {
  background: #fff;
  overflow: hidden;
}
.model-viewer-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}
.model-viewer-panel-heading h2 {
  margin: 0;
}
.model-viewer-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.model-viewer-viewer {
  height: min(62vh, 620px);
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
.model-viewer-viewer canvas {
  display: block;
  height: 100%;
  width: 100%;
}
.model-viewer-cover {
  align-items: center;
  background: #f4f1eb;
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 1;
}
.model-viewer-cover img {
  height: 100%;
  object-fit: contain;
  position: absolute;
  width: 100%;
}
.model-viewer-cover button {
  box-shadow: 0 4px 18px rgba(23, 41, 52, 0.2);
  position: relative;
}
.model-viewer-status {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce2e6;
  border-radius: 8px;
  bottom: 2rem;
  box-shadow: 0 8px 24px rgba(23, 41, 52, 0.12);
  color: #2d4654;
  left: 50%;
  max-width: calc(100% - 3rem);
  min-width: min(26rem, calc(100% - 3rem));
  padding: 1.2rem 1.6rem;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2;
}
.model-viewer-status-text {
  display: block;
  font-weight: 600;
}
.model-viewer-progress {
  accent-color: #52768c;
  display: block;
  height: 0.7rem;
  margin: 1rem auto 0;
  width: 100%;
}
.model-viewer-progress.hidden {
  display: none;
}
.model-viewer-help {
  color: #6d7780;
  margin: 0;
  padding: 1rem 2rem 1.5rem;
}
.model-viewer-assembly-tools {
  align-items: center;
  border-top: 1px solid #d8dfe3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.2rem 2rem 0;
}
.model-viewer-assembly-tools.hidden {
  display: none;
}
.model-viewer-assembly-note {
  color: #6d7780;
  margin: 0;
  padding: 1.2rem 2rem 0;
}
.model-viewer-assembly-note.hidden {
  display: none;
}
.model-viewer-assembly-tools > label {
  margin: 0;
}
.model-viewer-assembly-tools input[type='range'] {
  flex: 1;
  max-width: 300px;
  min-width: 120px;
}
.model-viewer-xray-label {
  font-weight: normal;
}
.model-viewer-construction {
  background: #f7f9fa;
  border-top: 1px solid #d8dfe3;
  padding: 1.4rem 2rem 1.6rem;
}
.model-viewer-construction.hidden {
  display: none;
}
.model-viewer-construction-toolbar,
.model-viewer-selection-heading {
  align-items: flex-start;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}
.model-viewer-construction-toolbar h3,
.model-viewer-selection-heading h4 {
  margin: 0 0 0.35rem;
}
.model-viewer-construction-toolbar p,
.model-viewer-selection-heading p {
  color: #60717b;
  margin: 0;
}
.model-viewer-construction-toolbar label {
  flex: 0 0 min(220px, 30%);
  margin: 0;
}
.model-viewer-construction-toolbar select {
  margin-top: 0.45rem;
}
.model-viewer-selection {
  border-top: 1px solid #dde4e8;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}
.model-viewer-selection > p {
  color: #60717b;
  margin: 0;
}
.model-viewer-selection-category {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.model-viewer-selection h5 {
  font-size: 1.25rem;
  margin: 1.2rem 0 0.7rem;
  text-transform: uppercase;
}
.model-viewer-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  max-height: 12rem;
  overflow: auto;
}
.model-viewer-connections .btn[aria-pressed='true'] {
  background: #e68a2e;
  border-color: #bd6c20;
  color: #fff;
}
.model-project-section {
  margin-top: 4rem;
}
.model-project-section-heading {
  margin-bottom: 1.5rem;
}
.model-project-section-heading h2 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.model-project-section-heading > p:last-child {
  color: #687781;
  margin-bottom: 0;
}
.model-project-story {
  border-top: 1px solid #dce2e6;
  padding-top: 3rem;
}
.model-project-writeup {
  color: #34444c;
  font-size: 1.65rem;
  line-height: 1.72;
  max-width: 760px;
}
.model-project-writeup h1,
.model-project-writeup h2,
.model-project-writeup h3 {
  color: #1f3039;
  line-height: 1.3;
  margin-top: 3.5rem;
}
.model-project-writeup h1 {
  font-size: 2.5rem;
}
.model-project-writeup h2 {
  font-size: 2.3rem;
}
.model-project-writeup p {
  margin-bottom: 1.4rem;
}
.model-project-writeup .table {
  display: block;
  font-size: 1.45rem;
  overflow-x: auto;
  width: 100%;
}
.model-project-writeup .table th,
.model-project-writeup .table td {
  min-width: 140px;
}
.model-project-writeup img {
  border-radius: 4px;
  height: auto;
  margin: 1rem 0;
  max-width: 100%;
}
.model-project-file {
  display: grid;
  min-width: 0;
  padding: 1.6rem 0;
}
.model-project-file + .model-project-file {
  border-top: 1px solid #dce2e6;
}
.model-project-file--with-preview {
  gap: 1.8rem;
  grid-template-columns: 108px minmax(0, 1fr);
}
.model-project-file-preview {
  align-items: center;
  background: #f4f1eb;
  border-radius: 6px;
  display: flex;
  height: 108px;
  justify-content: center;
  overflow: hidden;
  width: 108px;
}
.model-project-file-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.model-project-file-body {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-width: 0;
}
.model-project-file-copy {
  min-width: 0;
}
.model-project-file h3 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.model-project-file-notes {
  color: #53636c;
  line-height: 1.45;
  margin: 0.7rem 0 0;
}
.model-project-file-meta {
  color: #687781;
  font-size: 1.2rem;
  margin: 0;
}
.model-project-file-version {
  color: #38596b;
  font-weight: 700;
}
.model-project-file-actions {
  display: flex;
  gap: 0.6rem;
  white-space: nowrap;
}
.model-project-version-history {
  background: #f7f9fa;
  border-radius: 4px;
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
}
.model-project-version-history summary {
  color: #38596b;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
}
.model-project-version-history ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
}
.model-project-version-history li {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.model-project-version-copy {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}
.model-project-version-copy > span {
  overflow-wrap: anywhere;
}
.model-project-version-thumbnail {
  align-items: center;
  background: #f4f1eb;
  border-radius: 4px;
  color: #61717b;
  display: flex;
  flex: 0 0 64px;
  font-size: 1rem;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 64px;
}
.model-project-version-thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.model-markdown-field {
  font-family: Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}
.model-admin-file {
  border-bottom: 1px solid #e3e7e9;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}
.model-admin-thumbnail {
  align-items: center;
  background: #f4f1eb;
  border-radius: 5px;
  color: #61717b;
  display: flex;
  font-size: 1.2rem;
  height: 150px;
  justify-content: center;
  margin: 1.5rem 0;
  overflow: hidden;
  text-align: center;
  width: 150px;
}
.model-admin-thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.model-admin-files-panel .panel-body {
  background: #f1f4f5;
  padding: 1.5rem;
}
.model-admin-file--model,
.model-admin-file--model:last-child {
  background: #fff;
  border: 1px solid #d4dde1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(31, 50, 60, 0.08);
  margin: 0 0 1.5rem;
  padding: 1.5rem;
}
.model-admin-file--model:last-child {
  margin-bottom: 0;
}
.model-admin-file-heading {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.model-admin-file-heading .model-admin-thumbnail {
  flex: 0 0 110px;
  height: 110px;
  margin: 0;
  width: 110px;
}
.model-admin-file-identity {
  min-width: 0;
}
.model-admin-file-identity h3 {
  color: #263f4d;
  font-size: 2rem;
  margin: 0.2rem 0 0.6rem;
}
.model-admin-file-identity p {
  margin: 0 0 0.3rem;
  overflow-wrap: anywhere;
}
.model-admin-file-eyebrow {
  color: #587486;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.model-admin-file-fields {
  border-top: 1px solid #e1e7ea;
  padding-top: 1.5rem;
}
.model-admin-file:not(.model-admin-file--model):last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.model-admin-file-footer {
  align-items: center;
  border-top: 1px solid #e8edef;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}
.model-admin-replacement,
.model-admin-version-history {
  background: #f8fafb;
  border: 1px solid #dce2e6;
  border-radius: 5px;
  margin-top: 1rem;
}
.model-admin-version-history summary {
  color: #38596b;
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.2rem;
}
.model-admin-replacement {
  padding: 1.2rem;
}
.model-admin-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.model-admin-file-actions .btn-danger-outline {
  background: #fff;
  border-color: #b74642;
  color: #a52f2b;
}
.model-admin-file-actions .btn-danger-outline:focus,
.model-admin-file-actions .btn-danger-outline:hover {
  background: #b74642;
  border-color: #9d3834;
  color: #fff;
}
.model-admin-version-history ul {
  border-top: 1px solid #e1e7ea;
  margin: 0;
  padding: 0 1.2rem;
}
.model-admin-version-history li {
  align-items: center;
  border-top: 1px solid #edf0f2;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}
.model-admin-version-thumbnail {
  align-items: center;
  background: #f4f1eb;
  border-radius: 4px;
  color: #61717b;
  display: flex;
  flex: 0 0 72px;
  font-size: 1rem;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 72px;
}
.model-admin-version-thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.model-admin-version-details {
  flex: 1 1 auto;
  min-width: 0;
}
.model-admin-version-details p {
  margin: 0;
  overflow-wrap: anywhere;
}
.model-admin-version-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  white-space: nowrap;
}
.model-admin-metadata-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 1fr);
  margin-bottom: 1.5rem;
}
.model-admin-metadata-grid .form-group {
  margin: 0;
}
.model-admin-role-field {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.model-admin-role-field legend {
  border: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;
  margin: 0 0 0.5rem;
  padding: 0;
}
.model-admin-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.model-admin-role-option {
  align-items: center;
  border: 1px solid #d8dfe3;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1rem;
}
.model-admin-role-option:has(input:checked) {
  background: #eaf3f8;
  border-color: #6d95aa;
}
.model-admin-role-option input {
  margin: 0;
}
.model-admin-actions,
.model-admin-unpublish {
  margin: 2rem 0;
}
.model-admin-submit-status {
  align-items: center;
  background: rgba(19, 37, 47, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 1200;
}
.model-admin-submit-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(10, 25, 35, 0.3);
  color: #2d4654;
  max-width: 520px;
  padding: 3rem;
  width: 100%;
}
.model-admin-submit-heading {
  font-size: 2.2rem;
  margin: 1.5rem 0 1rem;
}
.model-admin-submit-detail {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.model-admin-submit-progress {
  display: block;
  height: 1rem;
  width: 100%;
}
.model-admin-submit-spinner {
  animation: model-admin-spin 0.8s linear infinite;
  border: 3px solid #d9e5ea;
  border-radius: 50%;
  border-top-color: #52768c;
  display: block;
  height: 32px;
  width: 32px;
}
.model-admin-submit-recovery {
  border-top: 1px solid #dce2e6;
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.model-admin-submit-recovery .btn {
  margin: 0 0.6rem 0.6rem 0;
}
@keyframes model-admin-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .model-admin-submit-spinner {
    animation: none;
  }
}
.model-admin-markdown-preview {
  max-height: 70vh;
  overflow: auto;
}
@media (max-width: 767px) {
  .model-project-hero--with-image {
    grid-template-areas: 'copy' 'image';
    grid-template-columns: minmax(0, 1fr);
  }
  .model-project-hero-media {
    margin-top: 3rem;
    max-width: 320px;
  }
  .model-project-file-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .model-viewer-panel-heading {
    align-items: start;
    gap: 1rem;
  }
  .model-viewer-viewer {
    height: min(55vh, 480px);
    min-height: 240px;
  }
  .model-viewer-construction-toolbar,
  .model-viewer-selection-heading {
    flex-direction: column;
    gap: 1rem;
  }
  .model-viewer-construction-toolbar label {
    flex-basis: auto;
    width: 100%;
  }
  .model-viewer-connections {
    max-height: none;
  }
  .model-admin-metadata-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 479px) {
  .model-project-hero h1 {
    font-size: 3.3rem;
  }
  .model-project-hero .lead {
    font-size: 1.8rem;
  }
  .model-project-section-heading h2 {
    font-size: 2.6rem;
  }
  .model-project-file--with-preview {
    gap: 1.2rem;
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .model-project-file-preview {
    height: 80px;
    width: 80px;
  }
  .model-project-version-history li {
    align-items: flex-start;
    flex-direction: column;
  }
  .model-admin-file-heading {
    align-items: flex-start;
    gap: 1rem;
  }
  .model-admin-file-heading .model-admin-thumbnail {
    flex-basis: 80px;
    height: 80px;
    width: 80px;
  }
  .model-admin-file-identity h3 {
    font-size: 1.7rem;
  }
}

