/* Private source-file pages retain the recorded Create Space layout. */
.hub-project-group {
  margin-block: 20px 28px;
}
.hub-project-group > h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ps-page {
  --ps-accent: #dbe5b5;
  --ps-ink: #151817;
  --ps-muted: #697064;
  --ps-border: #dce3ca;
}
.ps-page #ps-create-form,
.ps-page .ps-detail-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.ps-page .btn.primary,
.ps-page .hub-dropzone .btn.secondary {
  background: var(--ps-accent);
  border-color: #bcc99d;
  color: var(--ps-ink);
}
.ps-page .btn.primary:hover,
.ps-page .hub-dropzone .btn.secondary:hover {
  background: #c8d795;
}
.ps-page .ps-create-actions {
  width: 100%;
}
.ps-page #ps-create-submit {
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.ps-page .hub-software button[aria-pressed=true] {
  color: #4b5b2b;
  background: #eef2df;
  border-color: #c8d795;
}
.ps-page .hub-software button:disabled {
  cursor: default;
}
.ps-page button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.ps-page .hub-upload-heading button,
.ps-page .hub-upload-heading a {
  font-size: 12px;
  white-space: nowrap;
}
.ps-page .hub-upload-heading svg,
.ps-page .hub-software svg {
  color: #4b5b2b;
}
.ps-page .hub-dropzone {
  border-color: #cbd2be;
  min-width: 0;
}
.ps-page .hub-dropzone.dragging {
  border-color: #71824c;
  background: #f1f5e7;
}
.ps-page .hub-dropzone:focus-visible,
.ps-page button:focus-visible,
.ps-page a:focus-visible {
  outline: 2px solid #667d3d;
  outline-offset: 3px;
}
.ps-page .hub-dropzone.ps-disabled {
  opacity: .65;
}
.ps-page .ps-file-limits {
  font-size: 11px;
}
.ps-page .ps-selected-files,
.ps-page .ps-source-files {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.ps-page .ps-selected-files:empty {
  display: none;
}
.ps-page .ps-file {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid var(--ps-border);
  min-width: 0;
}
.ps-page .ps-file > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ps-page .ps-file strong {
  font-size: 13px;
  font-weight: 600;
}
.ps-page .ps-file small {
  display: block;
  font-size: 11px;
  color: var(--ps-muted);
  margin-top: 4px;
}
.ps-page .ps-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.ps-page .ps-file .btn {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: 8px;
}
.ps-page .ps-remove {
  flex-shrink: 0;
  background: transparent;
}
.ps-page .ps-selected-files .ps-remove {
  width: 34px;
  padding: 6px;
  font-size: 20px;
}
.ps-page .ps-project-name[hidden],
.ps-page .ps-progress[hidden] {
  display: none;
}
.ps-page .ps-notice,
.ps-page .ps-draft-notice {
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #f4f6ed;
  padding: 16px;
  line-height: 1.6;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ps-page .ps-notice p {
  margin: 6px 0;
}
.ps-page .ps-notice a,
.ps-page .ps-draft-notice a {
  color: #435626;
  text-decoration: underline;
}
.ps-page .ps-explanation,
.ps-page .ps-meta,
.ps-page .ps-empty-files {
  color: var(--ps-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.ps-page .ps-error {
  color: #a42d36;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}
.ps-page .ps-error:empty {
  display: none;
}
.ps-page .ps-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ps-page progress {
  width: 100%;
  height: 9px;
  accent-color: #667d3d;
}
.ps-page .ps-space-heading,
.ps-page .ps-files-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ps-page .ps-space-heading h1 {
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}
.ps-page .ps-status {
  font-size: 12px;
  padding: 6px 12px;
  background: #eef2df;
  border: 1px solid #d4dfb8;
  border-radius: 99px;
  color: #435626;
  flex-shrink: 0;
}
.ps-page .ps-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ps-page .ps-detail-card {
  padding: 24px;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: #fff;
}
.ps-page .ps-detail-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.ps-page .ps-files-heading {
  align-items: center;
}
.ps-page .ps-processing-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.ps-page .ps-processing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ps-page .ps-processing-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 16px 8px;
}
.ps-page .ps-processing-progress span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ps-page .ps-processing-panel .ps-error {
  margin-top: 10px;
}
.ps-viewer-page {
  width: 100%;
  height: calc(100dvh - 45.5px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: none;
  margin: 0;
}
.ps-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  min-height: 58px;
  flex-shrink: 0;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
}
.ps-viewer-header > div {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.ps-viewer-header .back {
  white-space: nowrap;
}
.ps-viewer-header h1 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.ps-viewer-page #ps-model-viewer {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #eff2ed;
}
.ps-viewer-page > .ps-error:empty {
  display: none;
}
.ps-viewer-page > .ps-error:not(:empty) {
  margin: 0;
  padding: 10px 24px;
}
.ps-preview-note {
  font-size: 12px;
  color: #536046;
  margin: 0;
  padding: 8px 24px;
  flex-shrink: 0;
  background: #f3f6ec;
}
.pmv {
  display: flex;
  flex-direction: column;
  height: min(78dvh, 900px);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #d4dcc7;
  border-radius: 16px;
  background: #f5f7ef;
  color: #1d271b;
}
.pmv:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
}
.pmv-toolbar,
.pmv-mode-buttons,
.pmv-utility-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pmv-toolbar {
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #dbe1d2;
  background: #fff;
  z-index: 2;
}
.pmv-toolbar button {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 36px;
  color: #34412d;
}
.pmv-toolbar button:hover {
  background: #f0f4e4;
}
.pmv-toolbar button[aria-pressed=true] {
  background: #dbe5b5;
  color: #151817;
}
.pmv [hidden] {
  display: none !important;
}
.pmv-stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  background: #eff1ed;
}
.pmv-stage > canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline-offset: -3px;
}
.pmv-choosing-start .pmv-stage > canvas {
  cursor: crosshair;
}
.pmv-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  gap: 16px;
  text-align: center;
  background: #f4f6edf2;
  z-index: 3;
}
.pmv-loading p {
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}
.pmv-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d9e1cc;
  border-top-color: #637847;
  border-radius: 50%;
  animation: pmv-spin 1s linear infinite;
}
.pmv-load-error .pmv-spinner {
  display: none;
}
.pmv-load-error {
  color: #923b3b;
}
.pmv-announcement {
  min-height: 36px;
  padding: 8px 14px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  background: #fff;
}
.pmv-help {
  border-top: 1px solid #e0e5d8;
  padding: 8px 14px;
  background: #f7f8f3;
  font-size: 12px;
  line-height: 1.6;
  max-height: 38%;
  overflow: auto;
}
.pmv-help summary {
  cursor: pointer;
  font-weight: 600;
}
.pmv-help p {
  margin: 8px 0;
  max-width: 1000px;
}
.pmv-walk-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.pmv-movement-pad,
.pmv-look-pad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(2, 42px);
  gap: 4px;
  pointer-events: auto;
}
.pmv-walk-controls button {
  background: #ffffffdc;
  border: 1px solid #becbac;
  border-radius: 10px;
  font-size: 20px;
  color: #3b4f28;
  touch-action: none;
  user-select: none;
}
.pmv-walk-controls button:active {
  background: #dbe5b5;
}
.pmv-walk-controls button:first-child {
  grid-column: 2;
}
.pmv-walk-controls button:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.pmv-walk-controls button:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.pmv-walk-controls button:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.pmv-look-pad span {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 10px;
  color: #34412d;
  text-shadow: 0 0 3px #fff;
}
@keyframes pmv-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .ps-viewer-page {
    padding: 0;
  }
  .ps-viewer-header {
    flex-wrap: wrap;
    padding: 9px 12px;
    gap: 8px;
  }
  .ps-viewer-header > div {
    gap: 12px;
  }
  .ps-viewer-header h1 {
    font-size: 14px;
  }
  .ps-viewer-header > .btn {
    margin-left: auto;
    font-size: 12px;
  }
  .ps-preview-note {
    padding: 7px 12px;
  }
  .pmv {
    min-height: 580px;
    height: 80dvh;
  }
  .pmv-toolbar {
    padding: 8px;
    gap: 8px;
  }
  .pmv-toolbar button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .pmv-mode-buttons {
    width: 100%;
  }
  .pmv-mode-buttons button {
    flex: 1;
  }
  .pmv-stage {
    min-height: 300px;
  }
  .pmv-walk-controls {
    left: 8px;
    right: 8px;
    bottom: 12px;
  }
  .pmv-movement-pad,
  .pmv-look-pad {
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(2, 38px);
  }
  .ps-page .hub-upload-heading {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
  }
  .ps-page .hub-upload-heading > div {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ps-page .hub-dropzone {
    min-height: 300px;
    padding: 18px;
  }
  .ps-page .ps-detail-card {
    padding: 18px;
  }
  .ps-page .ps-source-files .ps-file {
    flex-wrap: wrap;
  }
  .ps-page .ps-file-actions {
    flex-wrap: wrap;
  }
  .ps-page .ps-space-heading {
    flex-wrap: wrap;
  }
}
