*,*::before,*::after{box-sizing:border-box}

:root{
  --custom-ink:#102c38;
  --custom-text:#243844;
  --custom-muted:#7f8d9a;
  --custom-blue:#4f8fd8;
  --custom-blue-soft:#eaf3ff;
  --custom-line:#dde6f0;
  --custom-panel:#f7f9fc;
  --custom-surface:#fff;
  --custom-shell:calc(100% - 80px);
  --custom-serif:"Playfair Display","Georgia","Times New Roman",serif;
  --custom-sans:"Pretendard Variable","SF Pro KR","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}

html,body{margin:0;min-height:100%}
html{overflow-x:hidden}
body.custom-mold-page{
  min-width:320px;
  background:#fff;
  color:var(--custom-ink);
  font-family:var(--custom-sans);
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.custom-mold-page a{color:inherit;text-decoration:none}
body.custom-mold-page img,
body.custom-mold-page svg{display:block;max-width:100%}
body.custom-mold-page button{
  font:inherit;
  cursor:default;
}
body.custom-mold-page :focus-visible{
  outline:2px solid rgba(79,143,216,.62);
  outline-offset:3px;
}

.custom-mold{
  min-height:100svh;
  padding:118px 0 20px;
  background:#fff;
}
.custom-hero{
  width:var(--custom-shell);
  margin:0 auto 24px;
  display:grid;
  grid-template-columns:minmax(420px,.9fr) minmax(580px,1fr);
  gap:28px;
  align-items:end;
}
.custom-hero__copy h1{
  margin:0;
  color:#102c38;
  font-family:var(--custom-serif);
  font-size:clamp(46px,4.25vw,58px);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.048em;
}
.custom-hero__copy h1 span{color:#5f93dc}
.custom-hero__lead{
  margin:4px 0 0;
  color:#1d3542;
  font-size:20px;
  font-weight:650;
  letter-spacing:-.035em;
}
.custom-hero__sub{
  margin:7px 0 0;
  color:#8b98a5;
  font-size:14px;
  font-weight:650;
  letter-spacing:-.02em;
}
.custom-steps{
  margin:0;
  padding:0 0 2px;
  display:grid;
  grid-template-columns:repeat(7,max-content);
  justify-content:space-between;
  align-items:center;
  list-style:none;
  color:var(--custom-blue);
}
.custom-steps li:not(.step-arrow){
  display:grid;
  justify-items:center;
  gap:10px;
  min-width:116px;
}
.custom-steps svg{
  width:46px;
  height:46px;
}
.custom-steps strong{
  color:#233844;
  font-size:13px;
  font-weight:800;
  letter-spacing:-.02em;
}
.custom-steps .step-arrow{
  color:#263947;
  font-size:31px;
  font-weight:300;
  transform:translateY(-10px);
}

.mold-workspace{
  width:var(--custom-shell);
  margin:0 auto;
  display:grid;
  grid-template-columns:336px minmax(520px,1fr) 320px;
  gap:14px;
  align-items:stretch;
}
.mold-panel,
.mold-preview-panel{
  min-width:0;
  border:1px solid var(--custom-line);
  border-radius:9px;
  background:#fff;
  box-shadow:0 8px 22px rgba(25,50,70,.025);
}
.mold-panel{
  padding:17px 15px 15px;
}
.mold-preview-panel{
  position:relative;
  overflow:hidden;
  padding:20px 22px 0;
  background:#f4f7fb;
}
.panel-title-row,
.preview-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mold-panel h2,
.mold-preview-panel h2{
  margin:0;
  color:#172d39;
  font-size:17px;
  font-weight:900;
  letter-spacing:-.035em;
}
.info-dot{
  display:inline-grid;
  width:16px;
  height:16px;
  place-items:center;
  border:1.5px solid #a9bacb;
  border-radius:999px;
  color:#92a2b2;
  font-size:11px;
  font-family:Arial,sans-serif;
  vertical-align:2px;
}
.ghost-upload{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  height:34px;
  padding:0 12px;
  border:1px solid #8fb7ea;
  border-radius:6px;
  background:#f8fbff;
  color:var(--custom-blue);
  font-size:12px;
  font-weight:850;
  letter-spacing:-.025em;
}
.ghost-upload svg{width:16px;height:16px}
.upload-preview{
  margin-top:14px;
  height:253px;
  border:1px dashed #cbd8e6;
  border-radius:8px;
  background:#f2f6fb;
  overflow:hidden;
}
.upload-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 87%;
  transform:scale(1.28);
}
.upload-preview.is-uploaded img{
  object-fit:contain;
  object-position:center center;
  transform:none;
  background:#fff;
}
.upload-filename{
  margin:.4rem 0 0;
  color:#4b6072;
  font-size:.78rem;
  word-break:break-all;
}
.sample-row-head{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#253a48;
  font-size:12px;
  font-weight:800;
  letter-spacing:-.02em;
}
.sample-row-head a{
  color:#4f8fd8;
  font-weight:800;
}
.sample-grid{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.sample-card{
  height:63px;
  padding:0;
  border:1px solid #dce6f0;
  border-radius:6px;
  background:#f4f7fb;
  overflow:hidden;
}
.sample-card.is-active{border-color:#8bb8ef}
.sample-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 74%;
}
.panel-divider{
  height:1px;
  margin:16px 0 14px;
  background:#e2e9f1;
}
.panel-subtitle{margin-bottom:14px !important}
.control-group,
.setting-group{
  display:grid;
  gap:8px;
  margin-top:13px;
}
.control-label{
  color:#364c5a;
  font-size:12px;
  font-weight:850;
  letter-spacing:-.018em;
}
.segmented,
.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.segmented button,
.chip-row button{
  min-height:32px;
  padding:0 13px;
  border:1px solid #d5e0eb;
  border-radius:6px;
  background:#fff;
  color:#334856;
  font-size:12px;
  font-weight:800;
  letter-spacing:-.02em;
}
.segmented button.is-selected,
.chip-row button.is-selected{
  border-color:#73a8e9;
  background:#f7fbff;
  color:var(--custom-blue);
  box-shadow:0 0 0 1px rgba(79,143,216,.1);
}
.segmented button.is-selected::before,
.chip-row button.is-selected::before{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:4px;
  border-radius:999px;
  background:radial-gradient(circle at center,#fff 0 2px,var(--custom-blue) 2.5px 100%);
  vertical-align:-2px;
}
.slider-card{
  margin-top:13px;
  padding:9px 10px 8px;
  border-radius:7px;
  background:#f5f8fc;
}
.slider-head,
.slider-scale{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#7d8d99;
  font-size:11px;
  font-weight:700;
}
.slider-head span{
  color:#354b59;
  font-size:12px;
  font-weight:850;
}
.slider-head strong{
  color:#8998a5;
  font-size:12px;
}
.fake-slider{
  --fill:46%;
  position:relative;
  height:4px;
  margin:12px 0 7px;
  border-radius:999px;
  background:#dde5ee;
  cursor:pointer;
  touch-action:none;
  user-select:none;
}
.fake-slider::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--fill);
  border-radius:inherit;
  background:var(--custom-blue);
}
.fake-slider span{
  position:absolute;
  top:50%;
  left:var(--fill);
  width:14px;
  height:14px;
  border:3px solid #d6e7fb;
  border-radius:999px;
  background:#fff;
  transform:translate(-50%,-50%);
  box-shadow:0 2px 6px rgba(20,40,60,.14);
  transition:transform .12s ease, box-shadow .12s ease;
}
.fake-slider.is-dragging span,
.fake-slider:hover span{
  transform:translate(-50%,-50%) scale(1.1);
  box-shadow:0 4px 10px rgba(20,40,60,.2);
}
.fake-slider::after{
  content:"";
  position:absolute;
  inset:-10px 0;
}
.generate-button,
.download-button,
.cart-button{
  width:100%;
  min-height:47px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:6px;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.03em;
}
.generate-button{
  margin-top:14px;
  border:0;
  background:var(--custom-blue);
  color:#fff;
  box-shadow:0 10px 24px rgba(79,143,216,.2);
}
.generate-button svg,
.download-button svg,
.cart-button svg{width:19px;height:19px}

.preview-actions{
  display:flex;
  gap:11px;
}
.preview-actions button{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#172c39;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(32,58,76,.08);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.preview-actions button:hover{
  transform:translateY(-1px);
  background:#f4f8fd;
  box-shadow:0 10px 22px rgba(32,58,76,.14);
}
.preview-actions button:active{transform:translateY(0);}
.preview-actions svg{width:20px;height:20px}
.preview-stage{
  position:relative;
  min-height:678px;
  height:calc(100% - 32px);
  display:grid;
  place-items:center;
}
.stage-grid{
  position:absolute;
  inset:57% -16% -14%;
  opacity:.52;
  background-image:
    linear-gradient(rgba(161,178,195,.2) 1px,transparent 1px),
    linear-gradient(90deg,rgba(161,178,195,.2) 1px,transparent 1px);
  background-size:34px 34px;
  transform:perspective(560px) rotateX(63deg);
  transform-origin:center top;
}
.mold-render{
  position:relative;
  z-index:1;
  width:min(760px,105%);
  max-width:none;
  height:610px;
  object-fit:cover;
  object-position:center 79%;
  filter:saturate(1.02) contrast(.99);
  transform:scale(1.1);
}
.mold-viewer{
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:18px;
  overflow:hidden;
  background:radial-gradient(closest-side, rgba(255,255,255,.04), transparent 70%), #0f1b24;
}
.mold-viewer canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}
.mold-viewer-hint{
  position:absolute;
  z-index:4;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  padding:6px 12px;
  border-radius:999px;
  background:rgba(16,30,42,.72);
  color:#f3f7fb;
  font-size:.72rem;
  letter-spacing:-.01em;
  backdrop-filter:blur(8px);
  pointer-events:none;
}
.mold-panel input[type="range"]{
  width:100%;
  height:4px;
  appearance:none;
  -webkit-appearance:none;
  background:#dde5ee;
  border-radius:999px;
  outline:none;
  margin:12px 0 7px;
  cursor:pointer;
}
.mold-panel input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:14px;
  height:14px;
  border:3px solid #d6e7fb;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(20,40,60,.14);
}
.mold-panel input[type="range"]::-moz-range-thumb{
  width:14px;
  height:14px;
  border:3px solid #d6e7fb;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(20,40,60,.14);
}
.model-info{
  margin-top:14px;
  padding:14px 16px;
  border-radius:8px;
  background:#f5f8fc;
  display:grid;
  gap:9px;
}
.model-info > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}
.model-info span{color:#7d8d99;font-weight:700}
.model-info strong{color:#354b59;font-weight:850}
.diagnostic-card{
  margin-top:16px;
  padding:14px 16px;
  border-radius:8px;
  background:#f5f8fc;
}
.diagnostic-card h3{
  margin:0 0 10px;
  font-size:12px;
  font-weight:850;
  color:#354b59;
  letter-spacing:-.02em;
}
.diagnostic-card .diag-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:-.01em;
}
.diagnostic-card .diag-status.ok{background:#e6f3ea;color:#1f6f3a}
.diagnostic-card .diag-status.warn{background:#fdf2db;color:#a86413}
.diagnostic-card .diag-status.fail{background:#fbe5e5;color:#a8202a}
.diagnostic-card .diag-status.pending{background:#eaf0f7;color:#5b6e7e}
.diagnostic-card ul{
  margin:10px 0 0;
  padding:0 0 0 16px;
  font-size:11.5px;
  color:#5b6e7e;
  line-height:1.5;
}
.generate-button[disabled]{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}
.mold-import-button{
  position:absolute;
  z-index:4;
  top:18px;
  left:18px;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:8px 14px;
  border:1px solid rgba(16,30,42,.08);
  border-radius:999px;
  background:#fff;
  color:#172c39;
  font-size:.78rem;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(20,40,60,.08);
  transition:transform .14s ease, box-shadow .14s ease;
}
.mold-import-button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(20,40,60,.12);
}
.mold-import-button svg{width:15px;height:15px}
.preview-stage.is-viewer-active .mold-render{
  opacity:0;
  pointer-events:none;
}
.preview-stage.is-viewer-active .stage-grid{
  opacity:0;
}
.view-toolbar{
  position:absolute;
  z-index:2;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:repeat(5,72px);
  gap:0;
  padding:9px 14px;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 30px rgba(25,48,66,.11);
}
.view-toolbar button{
  min-width:0;
  display:grid;
  justify-items:center;
  gap:4px;
  padding:6px 4px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#172c39;
  font-size:11px;
  font-weight:700;
  letter-spacing:-.02em;
  cursor:pointer;
  transition:background .14s ease, color .14s ease;
}
.view-toolbar button:hover{background:#eef4fa;}
.view-toolbar button.is-active{
  background:var(--custom-blue);
  color:#fff;
}
.view-toolbar svg{
  width:23px;
  height:23px;
}

.preview-loading{
  position:absolute;
  inset:0;
  z-index:6;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:rgba(16,30,42,.72);
  color:#f4f7fa;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:-.01em;
  backdrop-filter:blur(6px);
  border-radius:18px;
}
.preview-loading[hidden]{display:none !important;}
.preview-loading__spinner{
  width:38px;
  height:38px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.22);
  border-top-color:#fff;
  animation:customMoldSpin 1s linear infinite;
}
@keyframes customMoldSpin{to{transform:rotate(360deg);}}
.preview-stage.is-fullscreen{
  background:#0b1420;
  border-radius:0;
  padding:0;
}
.preview-stage:fullscreen{
  width:100vw;
  height:100vh;
  background:#0b1420;
  padding:0;
}
.preview-stage:fullscreen .mold-viewer{border-radius:0;}

.mold-settings-panel{
  padding:22px 16px 17px;
}
.mold-settings-panel .setting-group:first-of-type{margin-top:14px}
.chip-row.three{gap:8px}
.chip-row.three button{
  padding-inline:11px;
}
.preview-info-card{
  margin-top:21px;
  padding:20px 17px 15px;
  border-radius:8px;
  background:#f5f8fc;
}
.preview-info-card h3{
  margin:0 0 14px;
  color:#354856;
  font-size:14px;
  font-weight:900;
  letter-spacing:-.02em;
}
.preview-info-card dl{
  margin:0;
  display:grid;
  gap:12px;
}
.preview-info-card div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
}
.preview-info-card dt{
  color:#748391;
  font-size:12px;
  font-weight:750;
}
.preview-info-card dd{
  margin:0;
  color:#334858;
  font-size:12px;
  font-weight:800;
  text-align:right;
}
.preview-info-card p{
  margin:17px 0 0;
  color:#a0acb7;
  font-size:11px;
  font-weight:650;
}
.download-button{
  margin-top:21px;
  border:0;
  background:var(--custom-blue);
  color:#fff;
  box-shadow:0 10px 24px rgba(79,143,216,.18);
}
.cart-button{
  margin-top:10px;
  border:1px solid #8bb8ef;
  background:#fff;
  color:var(--custom-blue);
}

.custom-feature-strip{
  width:var(--custom-shell);
  margin:28px auto 0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  min-height:136px;
  padding:24px 34px;
  border-radius:10px;
  background:#f8fafc;
}
.custom-feature-strip article{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-height:82px;
  color:#172c39;
}
.custom-feature-strip article + article{
  border-left:1px solid #dce5ef;
}
.custom-feature-strip svg{
  width:46px;
  height:46px;
  flex:0 0 auto;
  color:var(--custom-blue);
}
.custom-feature-strip strong{
  display:block;
  margin-bottom:4px;
  color:#203744;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.035em;
}
.custom-feature-strip span{
  color:#778694;
  font-size:13px;
  font-weight:650;
  line-height:1.55;
  letter-spacing:-.02em;
}

@media(max-width:1240px){
  :root{--custom-shell:calc(100% - 36px)}
  .custom-hero{
    grid-template-columns:1fr;
    align-items:start;
  }
  .custom-steps{
    grid-template-columns:repeat(4,1fr);
    gap:14px;
  }
  .custom-steps .step-arrow{display:none}
  .mold-workspace{
    grid-template-columns:320px minmax(0,1fr);
  }
  .mold-settings-panel{
    grid-column:1 / -1;
  }
  .custom-feature-strip{
    grid-template-columns:repeat(2,1fr);
  }
  .custom-feature-strip article:nth-child(3){
    border-left:0;
  }
}

@media(max-width:820px){
  .custom-mold{padding-top:92px}
  .custom-hero__copy h1{font-size:43px}
  .custom-hero__lead{font-size:17px}
  .custom-steps{
    grid-template-columns:repeat(2,1fr);
    justify-items:center;
  }
  .mold-workspace{
    grid-template-columns:1fr;
  }
  .preview-stage{
    min-height:500px;
  }
  .mold-render{
    height:445px;
    transform:scale(1.08);
  }
  .view-toolbar{
    grid-template-columns:repeat(5,1fr);
    width:calc(100% - 28px);
    padding:9px 8px;
  }
  .view-toolbar button{font-size:10px}
  .custom-feature-strip{
    grid-template-columns:1fr;
    padding:18px 22px;
  }
  .custom-feature-strip article{
    justify-content:flex-start;
  }
  .custom-feature-strip article + article{
    border-left:0;
    border-top:1px solid #dce5ef;
  }
}

@media(max-width:520px){
  :root{--custom-shell:calc(100% - 24px)}
  .custom-mold{padding-top:84px}
  .custom-steps li:not(.step-arrow){min-width:0}
  .custom-steps strong{font-size:12px}
  .mold-panel,
  .mold-preview-panel{border-radius:8px}
  .mold-preview-panel{padding:18px 14px 0}
  .preview-actions button{
    width:34px;
    height:34px;
  }
  .preview-stage{min-height:430px}
  .mold-render{height:380px}
  .upload-preview img{transform:scale(1.12)}
  .stage-grid{display:none}
}

.toast-container{position:fixed;top:88px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:340px;}
.toast{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:#fff;color:#172c39;box-shadow:0 18px 38px rgba(20,40,60,.14), 0 2px 8px rgba(20,40,60,.06);border:1px solid rgba(16,30,42,.06);pointer-events:auto;opacity:0;transform:translateX(12px);animation:customToastIn .22s ease forwards;}
.toast.hiding{animation:customToastOut .24s ease forwards;}
.toast-icon{flex:none;width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:#4f8fd8;}
.toast-icon svg{width:22px;height:22px;}
.toast.success .toast-icon{color:#16a34a;}
.toast.error .toast-icon{color:#dc2626;}
.toast.info .toast-icon{color:#4f8fd8;}
.toast-content{flex:1;min-width:0;}
.toast-title{font-size:.78rem;font-weight:700;letter-spacing:-.01em;color:#102c38;}
.toast-message{margin-top:2px;font-size:.78rem;line-height:1.5;color:#3c5160;word-break:keep-all;}
@keyframes customToastIn{to{opacity:1;transform:translateX(0);}}
@keyframes customToastOut{to{opacity:0;transform:translateX(12px);}}
@media (max-width: 640px){
  .toast-container{top:76px;right:12px;left:12px;max-width:none;}
}

