.tp-page {
  --tp-success: #22c55e;
  --tp-error: #f87171;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--ph-brand-cyan) 8%, transparent), transparent 24rem),
    var(--ph-bg-base);
  color: var(--ph-text-primary);
  font-family: var(--ph-font-sans);
}

.tp-page *,
.tp-page *::before,
.tp-page *::after {
  box-sizing: border-box;
}

.tp-page [hidden] {
  display: none !important;
}

.tp-page a {
  color: inherit;
  text-decoration: none;
}

.tp-page button,
.tp-page input,
.tp-page select {
  font: inherit;
}

.tp-page button,
.tp-page label,
.tp-page select,
.tp-page input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

.tp-page button,
.tp-page select,
.tp-page input[type="radio"],
.tp-page input[type="checkbox"] {
  cursor: pointer;
}

.tp-page .ph-nav-link-btn,
.tp-page .ph-mobile-nav-btn,
.tp-page .ph-tab-pill-btn {
  text-decoration: none;
}

.tp-page .ph-nav-link-btn.active,
.tp-page .ph-mobile-nav-btn.active {
  color: var(--ph-brand-cyan);
}

.tp-page .ph-nav-link-btn.active::after {
  width: 100%;
}

.tp-page .ph-brand-logo {
  text-decoration: none;
}

.tp-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--ph-radius-sm);
  background: var(--ph-brand-cyan);
  color: #061018 !important;
  font-weight: 800;
  transform: translateY(-160%);
}

.tp-skip-link:focus {
  transform: translateY(0);
}

.tp-theme-sun,
.tp-theme-moon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme="dark"] .tp-theme-sun,
[data-theme="light"] .tp-theme-moon {
  display: none;
}

.tp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 48px;
  align-items: end;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: 38px;
}

.tp-eyebrow,
.tp-step-label {
  margin: 0 0 10px;
  color: var(--ph-brand-cyan);
  font-family: var(--ph-font-mono);
  font-size: calc(12px + 1pt);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tp-intro h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--ph-font-mono);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.tp-intro-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--ph-text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.tp-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-lg);
  background: var(--ph-border-subtle);
  box-shadow: var(--ph-shadow-card);
}

.tp-process li {
  min-width: 0;
  padding: 22px 18px;
  background: var(--ph-bg-surface);
}

.tp-process span,
.tp-process strong,
.tp-process small {
  display: block;
}

.tp-process span {
  margin-bottom: 22px;
  color: var(--ph-brand-cyan);
  font-family: var(--ph-font-mono);
  font-size: calc(12px + 1pt);
  font-weight: 700;
}

.tp-process strong {
  overflow: hidden;
  color: var(--ph-text-primary);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-process small {
  margin-top: 7px;
  overflow: hidden;
  color: var(--ph-text-tertiary);
  font-size: calc(11px + 1pt);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.tp-model-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.tp-card {
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-lg);
  background: color-mix(in srgb, var(--ph-bg-surface) 94%, transparent);
  box-shadow: var(--ph-shadow-card);
}

.tp-viewer-card,
.tp-prusa-card,
.tp-quote-card {
  padding: clamp(20px, 3vw, 30px);
}

.tp-card-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tp-card-heading h2,
.tp-next h2 {
  margin: 0;
  color: var(--ph-text-primary);
  font-family: var(--ph-font-mono);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -0.03em;
}

.tp-step-label {
  display: block;
  margin-bottom: 7px;
  font-size: calc(10px + 1pt);
}

.tp-file-types,
.tp-service-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-full);
  background: var(--ph-bg-surface-elevated);
  color: var(--ph-text-tertiary);
  font-family: var(--ph-font-mono);
  font-size: calc(10px + 1pt);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tp-service-status.connected {
  border-color: color-mix(in srgb, var(--tp-success) 30%, transparent);
  color: var(--tp-success);
}

.tp-service-status.disconnected {
  border-color: color-mix(in srgb, var(--tp-error) 30%, transparent);
  color: var(--tp-error);
}

.tp-drop-zone {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px dashed var(--ph-border-medium);
  border-radius: var(--ph-radius-md);
  outline: none;
  background:
    linear-gradient(var(--ph-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-border-subtle) 1px, transparent 1px),
    var(--ph-bg-base);
  background-size: 34px 34px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tp-drop-zone:hover,
.tp-drop-zone:focus-visible,
.tp-drop-zone.dragging {
  border-color: var(--ph-brand-cyan);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-brand-cyan) 35%, transparent);
}

.tp-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.tp-empty-state strong {
  margin-top: 22px;
  font-size: 19px;
}

.tp-empty-state > span {
  margin: 9px 0 24px;
  color: var(--ph-text-tertiary);
  font-size: 13px;
}

.tp-upload-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ph-brand-cyan) 35%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ph-brand-cyan) 10%, transparent);
  color: var(--ph-brand-cyan);
}

.tp-upload-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tp-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ph-radius-md);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.tp-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.tp-button:focus-visible,
.tp-icon-button:focus-visible,
.tp-replace-button:focus-visible,
.tp-quantity button:focus-visible {
  outline: 2px solid var(--ph-border-focus);
  outline-offset: 2px;
}

.tp-button-primary {
  border-color: color-mix(in srgb, var(--ph-brand-cyan) 65%, transparent);
  background: linear-gradient(135deg, var(--ph-brand-cyan), var(--ph-brand-blue));
  color: #fff !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ph-brand-blue) 25%, transparent);
}

.tp-button-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.5;
}

.tp-button-secondary {
  border-color: var(--ph-border-medium);
  background: var(--ph-bg-surface-elevated);
  color: var(--ph-text-primary) !important;
}

.tp-button-secondary:hover {
  border-color: var(--ph-brand-cyan);
}

.tp-button-kakao {
  background: var(--ph-kakao-yellow);
  color: var(--ph-kakao-text) !important;
  border-color: var(--ph-kakao-yellow);
  font-weight: 700;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ph-kakao-yellow) 30%, transparent);
}

.tp-button-kakao:hover {
  background: var(--ph-kakao-yellow-hover);
  border-color: var(--ph-kakao-yellow-hover);
  transform: translateY(-1px);
}

.tp-button-wide {
  width: 100%;
  margin-top: 10px;
}

.tp-canvas-wrap,
#model-canvas {
  width: 100%;
  height: 470px;
}

#model-canvas {
  display: block;
}

.tp-viewer-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
}

.tp-icon-button,
.tp-replace-button {
  border: 1px solid var(--ph-border-medium);
  background: color-mix(in srgb, var(--ph-bg-surface) 88%, transparent);
  color: var(--ph-text-primary);
  backdrop-filter: blur(10px);
}

.tp-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--ph-radius-sm);
  font-size: 18px;
}

.tp-replace-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: var(--ph-radius-sm);
  font-size: calc(12px + 1pt);
  font-weight: 700;
}

.tp-model-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-surface-elevated);
}

.tp-size-warning {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent);
  border-radius: var(--ph-radius-md);
  background: color-mix(in srgb, #f59e0b 9%, transparent);
  color: #f59e0b;
  font-size: calc(11px + 1pt);
  line-height: 1.55;
}

.tp-file-name-wrap {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.tp-file-name-wrap > div {
  min-width: 0;
}

.tp-file-name-wrap strong,
.tp-file-name-wrap span {
  display: block;
}

.tp-file-name-wrap strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-file-name-wrap span:not(.tp-file-icon) {
  margin-top: 4px;
  color: var(--ph-text-tertiary);
  font-size: calc(11px + 1pt);
}

.tp-file-icon {
  display: grid !important;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--ph-radius-sm);
  background: color-mix(in srgb, var(--ph-brand-cyan) 12%, transparent);
  color: var(--ph-brand-cyan);
  font-family: var(--ph-font-mono);
  font-size: calc(11px + 1pt);
  font-weight: 800;
}

.tp-model-metrics,
.tp-prusa-result dl,
.tp-breakdown {
  display: grid;
  margin: 0;
}

.tp-model-metrics {
  grid-template-columns: repeat(4, auto);
  gap: 22px;
}

.tp-model-metrics div,
.tp-prusa-result dl div,
.tp-breakdown div {
  display: grid;
  gap: 4px;
}

.tp-model-metrics dt,
.tp-prusa-result dt,
.tp-breakdown dt {
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
}

.tp-model-metrics dd,
.tp-prusa-result dd,
.tp-breakdown dd {
  margin: 0;
  color: var(--ph-text-primary);
  font-family: var(--ph-font-mono);
  font-size: calc(12px + 1pt);
  font-weight: 700;
}

.tp-analysis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tp-status-card,
.tp-privacy-card {
  display: flex;
  min-height: 98px;
  gap: 13px;
  align-items: flex-start;
  padding: 19px;
}

.tp-status-card strong,
.tp-privacy-card strong {
  font-size: 13px;
}

.tp-status-card p,
.tp-privacy-card p,
.tp-section-copy,
.tp-next p,
.tp-footer-copy {
  margin: 6px 0 0;
  color: var(--ph-text-secondary);
  font-size: calc(12px + 1pt);
  line-height: 1.65;
}

.tp-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--tp-success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tp-success) 12%, transparent);
}

.tp-privacy-card svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ph-brand-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tp-prusa-heading {
  margin-bottom: 10px;
}

.tp-prusa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tp-prusa-result {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
}

.tp-prusa-result dl {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tp-quote-card {
  position: sticky;
  top: 150px;
}

.tp-fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.tp-fieldset legend,
.tp-field > span:first-child,
.tp-range-field > span strong {
  margin-bottom: 10px;
  color: var(--ph-text-secondary);
  font-size: calc(12px + 1pt);
  font-weight: 700;
}

.tp-option-grid {
  display: grid;
  gap: 8px;
}

.tp-material-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tp-option-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
  transition: border-color 150ms ease, background 150ms ease;
}

.tp-option-card:hover,
.tp-option-card.active {
  border-color: var(--ph-brand-cyan);
  background: color-mix(in srgb, var(--ph-brand-cyan) 8%, var(--ph-bg-base));
}

.tp-option-card input,
.tp-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-option-card strong {
  color: var(--ph-text-primary);
  font-family: var(--ph-font-mono);
  font-size: 13px;
}

.tp-option-card small {
  margin-top: 4px;
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
}

.tp-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
}

.tp-segmented label {
  padding: 9px;
  border-radius: var(--ph-radius-sm);
  color: var(--ph-text-tertiary);
  font-family: var(--ph-font-mono);
  font-size: calc(11px + 1pt);
  font-weight: 700;
  text-align: center;
}

.tp-segmented label.active {
  background: var(--ph-bg-surface-highest);
  color: var(--ph-brand-cyan);
}

.tp-unit-help {
  margin: 9px 2px 0;
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
  line-height: 1.55;
}

.tp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tp-field {
  display: grid;
  margin-bottom: 22px;
}

.tp-field select,
.tp-quantity {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
  color: var(--ph-text-primary);
}

.tp-field select {
  padding: 0 11px;
  font-size: calc(12px + 1pt);
}

.tp-field select:focus-visible,
.tp-quantity:focus-within {
  border-color: var(--ph-border-focus);
  outline: none;
}

.tp-quantity {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  overflow: hidden;
}

.tp-quantity button,
.tp-quantity input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ph-text-primary);
  text-align: center;
}

.tp-quantity input {
  appearance: textfield;
}

.tp-quantity input::-webkit-outer-spin-button,
.tp-quantity input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.tp-range-field {
  display: block;
  margin-bottom: 22px;
}

.tp-range-field > span,
.tp-range-field small {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-range-field output {
  color: var(--ph-brand-cyan);
  font-family: var(--ph-font-mono);
  font-size: calc(12px + 1pt);
  font-weight: 700;
}

.tp-range-field input {
  width: 100%;
  height: 5px;
  margin: 8px 0;
  accent-color: var(--ph-brand-cyan);
}

.tp-range-field small {
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
}

.tp-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
}

.tp-switch-row span,
.tp-switch-row strong,
.tp-switch-row small {
  display: block;
}

.tp-switch-row strong {
  font-size: calc(12px + 1pt);
}

.tp-switch-row small {
  margin-top: 4px;
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
}

.tp-switch-row input {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: var(--ph-radius-full);
  appearance: none;
  background: var(--ph-bg-surface-highest);
  transition: background 150ms ease;
}

.tp-switch-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ph-text-secondary);
  content: "";
  transition: transform 150ms ease, background 150ms ease;
}

.tp-switch-row input:checked {
  background: color-mix(in srgb, var(--ph-brand-cyan) 30%, transparent);
}

.tp-switch-row input:checked::after {
  background: var(--ph-brand-cyan);
  transform: translateX(18px);
}

.tp-quote-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--ph-border-subtle);
  border-radius: var(--ph-radius-md);
  color: var(--ph-text-tertiary);
  text-align: center;
}

.tp-quote-empty span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ph-bg-surface-elevated);
  color: var(--ph-brand-cyan);
  font-size: 20px;
}

.tp-quote-empty p {
  margin: 0;
  font-size: calc(12px + 1pt);
  line-height: 1.7;
}

.tp-quote-result {
  padding-top: 22px;
  border-top: 1px solid var(--ph-border-subtle);
}

.tp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tp-price-row span {
  color: var(--ph-text-secondary);
  font-size: calc(12px + 1pt);
}

.tp-price-row strong {
  color: var(--ph-brand-cyan);
  font-family: var(--ph-font-mono);
  font-size: 26px;
}

.tp-breakdown {
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-base);
}

.tp-breakdown div {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tp-breakdown dd {
  text-align: right;
}

.tp-quote-note {
  margin: 14px 0 5px;
  color: var(--ph-text-tertiary);
  font-size: calc(10px + 1pt);
  line-height: 1.55;
}

.tp-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 72px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--ph-border-subtle);
  border-radius: var(--ph-radius-xl);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--ph-brand-cyan) 10%, transparent), transparent 48%),
    var(--ph-bg-surface);
  box-shadow: var(--ph-shadow-card);
}

.tp-next p:not(.tp-eyebrow) {
  max-width: 640px;
  margin-top: 10px;
  font-size: 13px;
}

.tp-footer-copy {
  max-width: 240px;
  margin-top: 17px;
}

.tp-footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  padding-bottom: 4px;
  border-top: 1px solid var(--ph-border-subtle);
  color: var(--ph-text-tertiary);
  font-family: var(--ph-font-mono);
  font-size: calc(10px + 1pt);
}

.tp-toast {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid var(--ph-border-medium);
  border-radius: var(--ph-radius-md);
  background: var(--ph-bg-surface-highest);
  box-shadow: var(--ph-shadow-card);
  color: var(--ph-text-primary);
  font-size: calc(12px + 1pt);
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .tp-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tp-workspace {
    grid-template-columns: 1fr;
  }

  .tp-quote-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .tp-page .ph-announcement-content span:nth-child(n + 2) {
    display: none;
  }

  .tp-intro {
    padding-top: 38px;
  }

  .tp-intro h1 br {
    display: none;
  }

  .tp-process {
    grid-template-columns: 1fr;
  }

  .tp-process li {
    display: grid;
    grid-template-columns: 36px 1fr;
    padding: 15px;
  }

  .tp-process span {
    grid-row: span 2;
    margin: 2px 0 0;
  }

  .tp-process small {
    margin-top: 3px;
  }

  .tp-drop-zone,
  .tp-canvas-wrap,
  #model-canvas {
    min-height: 390px;
    height: 390px;
  }

  .tp-model-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tp-model-metrics {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .tp-analysis-row {
    grid-template-columns: 1fr;
  }

  .tp-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .tp-intro h1 {
    font-size: 34px;
  }

  .tp-viewer-card,
  .tp-prusa-card,
  .tp-quote-card {
    padding: 17px;
  }

  .tp-drop-zone,
  .tp-canvas-wrap,
  #model-canvas {
    min-height: 330px;
    height: 330px;
  }

  .tp-model-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-material-grid,
  .tp-field-row,
  .tp-prusa-result dl {
    grid-template-columns: 1fr;
  }

  .tp-option-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }

  .tp-option-card strong {
    grid-row: span 2;
  }

  .tp-prusa-actions .tp-button,
  .tp-next .tp-button {
    width: 100%;
  }

  .tp-price-row strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-page *,
  .tp-page *::before,
  .tp-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Slicer 진행 상태 표시 ─────────────────────────────────── */
.tp-slice-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ph-brand-cyan) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ph-brand-cyan) 25%, transparent);
  font-size: 13px;
  color: var(--ph-text-secondary);
}

.tp-slice-spinner {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--ph-brand-cyan) 30%, transparent);
  border-top-color: var(--ph-brand-cyan);
  border-radius: 50%;
  animation: tp-spin 0.8s linear infinite;
}

@keyframes tp-spin {
  to { transform: rotate(360deg); }
}

.tp-slice-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tp-slice-step {
  color: var(--ph-text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-slice-elapsed {
  color: var(--ph-text-secondary);
  font-size: calc(12px + 1pt);
  font-variant-numeric: tabular-nums;
}


/* Project settings are authoritative; do not show unrelated web defaults. */
#quote-form[data-project="true"] > .tp-fieldset:not(#project-options):not(#plate-options),
#quote-form[data-project="true"] > .tp-range-field,
#quote-form[data-project="true"] > .tp-switch-row,
#quote-form[data-project="true"] > label.tp-field,
#quote-form[data-project="true"] .tp-field-row > label:has(#scale) { display: none; }
#quote-form[data-project="true"] .tp-field-row { grid-template-columns: 1fr; }
#quote-form input:disabled + strong { opacity: .55; }

.tp-mobile-consult {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
