/* ════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

:root {
  --bg:        #F7F8FA;
  --bg-card:   #FFFFFF;
  --bg-subtle: #F8F9FC;

  --blue:       #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-dim:   rgba(37,99,235,.06);
  --blue-ring:  rgba(37,99,235,.16);

  --channel:        #3861e0;
  --channel-hover:  #2d4fc4;
  --channel-text:   #ffffff;

  --tx-900: #0F172A;
  --tx-700: #1E293B;
  --tx-600: #475569;
  --tx-500: #64748B;
  --tx-400: #94A3B8;
  --tx-300: #CBD5E1;

  --price: #0F172A;

  --bd:      #E2E8F0;
  --bd-lite: #F1F5F9;

  --error:   #EF4444;
  --err-bg:  #FEF2F2;
  --success: #10B981;
  --warning: #F59E0B;
  --warn-bg: #FFFBEB;

  --sh-xs: 0 1px 2px rgba(15,23,42,.04);
  --sh-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.03);
  --sh-lg: 0 12px 40px rgba(15,23,42,.1), 0 4px 12px rgba(15,23,42,.04);

  --r-xs:   8px;
  --r-sm:   12px;
  --r:      16px;
  --r-lg:   20px;
  --r-full: 9999px;

  --header-line:   #e6e8ec;
  --header-accent: #15233f;

  --z-nav:    200;
  --z-panel:  100;
  --z-bottom: 300;
  --z-sheet:  400;
  --z-overlay:500;
}

/* ════════════════════════════════════════════
   BASE
════════════════════════════════════════════ */
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--tx-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
body.scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* ════════════════════════════════════════════
   SITE HEADER (회사 홈페이지 company.css 동일)
════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-line);
}
.header-inner {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1760px; width: 92%; margin: 0 auto; padding: 0;
}
.header-logo-wrap {
  display: flex; justify-content: center; align-items: center;
  height: 70px; width: 100%;
}
.logo-link { display: flex; justify-content: center; align-items: center; }
.logo-link img { max-width: 400px; max-height: 44px; width: auto; height: auto; }
.header-nav { width: 100%; }
.header-nav-list {
  list-style: none; display: flex;
  align-items: center; justify-content: center;
}
.header-nav-list li {
  height: 50px; display: flex; align-items: center;
  padding: 0 25px; position: relative;
}
.header-nav-list li a {
  font-size: 14px; font-weight: 500; color: #3a3a3a;
  text-decoration: none; white-space: nowrap;
  line-height: 48px; display: block; position: relative;
}
.header-nav-list li a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background-color: #cfcfcf;
  transform: scaleX(0); transform-origin: 100% 0;
  transition: transform 0.3s cubic-bezier(0.45,0.46,0.05,0.96);
}
.header-nav-list li a:hover::after,
.header-nav-list li a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: 0 0;
  transition: transform 0.5s cubic-bezier(0.45,0.46,0.05,0.96);
}
.header-nav-list li a[aria-current="page"]::after { background-color: var(--header-accent); }

@media (min-width: 600px) {
  .header-logo-wrap { height: 70px; } .logo-link img { max-height: 44px; }
  .header-nav-list li { height: 56px; padding: 0 30px; }
  .header-nav-list li a { line-height: 54px; font-size: 14px; }
}
@media (min-width: 860px) {
  .header-logo-wrap { height: 80px; } .logo-link img { max-height: 52px; }
  .header-nav-list li { height: 60px; padding: 0 34px; }
  .header-nav-list li a { line-height: 58px; }
}
@media (max-width: 599px) {
  .header-inner { width: 100%; }
  .header-logo-wrap { height: 54px; } .logo-link img { max-height: 32px; }
  .header-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav-list { justify-content: flex-start; padding: 0 12px; }
  .header-nav-list li { padding: 0 14px; height: 44px; }
  .header-nav-list li a { font-size: 13px; line-height: 42px; }
}

/* ════════════════════════════════════════════
   WRAPPER
════════════════════════════════════════════ */
.wrapper {
  width: 100%; max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-full);
  border: 1px solid rgba(37,99,235,.12);
  margin-bottom: 14px;
}
.hero-badge::before {
  content: "";
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.hero h1 {
  font-size: 2.125rem; font-weight: 800;
  color: var(--tx-900); letter-spacing: -.045em;
  line-height: 1.2; margin-bottom: 10px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), #60A5FA 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: .9375rem; color: var(--tx-500); font-weight: 400;
  line-height: 1.6; margin-bottom: 6px;
}
.hero-sub strong { color: var(--tx-700); font-weight: 600; }
.hero-subcopy {
  font-size: .8125rem; color: var(--tx-400); font-weight: 400;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.hero-trust-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; color: var(--tx-600);
  background: var(--bg-card); border: 1px solid var(--bd);
  padding: 6px 12px; border-radius: var(--r-full);
}
.hero-trust-item svg {
  width: 14px; height: 14px; stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ════════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════════ */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
  overflow-anchor: none;
}

.flow-section { min-width: 0; width: 100%; max-width: 720px; overflow-anchor: none; }
.side-panel { width: 100%; max-width: 720px; }
.step-panel.hidden { display: none; }
.card.hidden { display: none; }

/* ════════════════════════════════════════════
   STEP BREADCRUMB
════════════════════════════════════════════ */
.step-breadcrumb {
  display: flex; align-items: center;
  gap: 0; margin-bottom: 24px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  min-height: 52px;
  box-shadow: var(--sh-xs);
}
.step-crumb {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none;
  padding: 8px 14px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
  transition: all .2s ease;
  flex-shrink: 0;
}
.step-crumb-top {
  display: flex; align-items: center; gap: 6px;
}
.step-crumb:disabled { cursor: default; opacity: .4; }
.step-crumb:not(:disabled):hover { background: var(--bg-subtle); }
.step-crumb-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6875rem; font-weight: 700;
  background: var(--bd-lite); color: var(--tx-400);
  flex-shrink: 0; transition: all .2s ease;
}
.step-crumb.active .step-crumb-num {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 6px rgba(37,99,235,.2);
}
.step-crumb.completed .step-crumb-num {
  background: var(--success); color: #fff;
  box-shadow: 0 2px 6px rgba(16,185,129,.18);
  position: relative; font-size: 0;
}
.step-crumb.completed .step-crumb-num::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.step-crumb-title {
  font-size: .75rem; font-weight: 600; color: var(--tx-400);
  white-space: nowrap;
}
.step-crumb.active .step-crumb-title { color: var(--tx-900); font-weight: 700; }
.step-crumb.completed .step-crumb-title { color: var(--tx-700); }
.step-crumb-value {
  font-size: .625rem; font-weight: 600; color: var(--blue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 90px;
  background: var(--blue-dim);
  padding: 2px 8px; border-radius: 4px;
}
.step-crumb-value:empty { display: none; }
.step-crumb.completed .step-crumb-value {
  color: var(--success); background: rgba(16,185,129,.06);
}
.step-crumb-sep {
  flex: 1 1 0; height: 2px; min-width: 14px;
  background: var(--bd-lite); margin: 0 2px;
  border-radius: 1px; transition: background .2s;
}
.step-crumb.completed + .step-crumb-sep { background: var(--success); }
.step-crumb.completed:hover { background: rgba(37,99,235,.03); }

/* STL 경로: 2단계(출력 파일 → STL 업로드)만 표시 */
.step-breadcrumb.breadcrumb-stl .step-crumb[data-step="3"],
.step-breadcrumb.breadcrumb-stl .step-crumb-sep:last-of-type {
  display: none;
}
.step-breadcrumb.breadcrumb-stl .step-crumb[data-step="2"] .step-crumb-value {
  max-width: 120px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card-head-titles { flex: 1; min-width: 0; }
.card-head .section-title { margin-bottom: 0; }
.card-head .section-subtitle {
  margin-top: 6px;
  margin-bottom: 0;
}
.card-head .step-nav {
  flex-shrink: 0;
  align-self: flex-start;
}
.section-title-sub {
  font-size: .9375rem;
  margin-bottom: 16px;
}

.step-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--r-xs);
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.step-nav-btn:active { transform: scale(.97); }
.step-nav-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.step-nav-back {
  background: var(--bg-card);
  color: var(--tx-600);
  border: 1px solid var(--bd);
}
.step-nav-back:hover {
  background: var(--bd-lite);
  border-color: var(--tx-300);
  color: var(--tx-900);
}
.step-nav-next {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  box-shadow: 0 2px 10px rgba(37,99,235,.22);
}
.step-nav-next:hover:not(:disabled) {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.step-nav-next:disabled {
  background: var(--tx-300);
  border-color: var(--tx-300);
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .65;
}
.step-nav-back.hidden { display: none; }
.card-head-step-nav {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

/* ════════════════════════════════════════════
   CARD
════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--r);
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
  padding: 28px 28px 32px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--tx-900);
  margin-bottom: 22px; line-height: 1.4; letter-spacing: -.02em;
}
.section-subtitle {
  font-size: .8125rem; color: var(--tx-500); font-weight: 400;
  margin-top: -10px; margin-bottom: 16px;
}
.divider {
  border: none; border-top: 1px solid var(--bd-lite); margin: 20px 0;
}

/* ════════════════════════════════════════════
   ENTRY CARDS (Step 1)
════════════════════════════════════════════ */
.entry-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 100%;
}
.entry-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 260px;
  padding: 0; background: var(--bg-card);
  border: 1.5px solid var(--bd); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  overflow: hidden;
}
.entry-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-md), 0 0 0 3px var(--blue-ring);
  transform: translateY(-2px);
}
.entry-card.selected {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: var(--sh-md), 0 0 0 3px var(--blue-ring);
}
.entry-card.selected .entry-card-title { color: var(--blue); }
.entry-card.selected .entry-card-visual svg { opacity: .85; }
.entry-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.entry-card-visual {
  flex: 1;
  min-height: 148px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, rgba(37,99,235,.14) 0%, var(--bg-subtle) 62%);
  border-bottom: 1px solid var(--bd-lite);
  color: var(--blue);
}
.entry-card-visual svg { opacity: .72; width: 48px; height: 48px; }
.entry-card:hover .entry-card-visual svg { opacity: .85; }
.entry-card-body {
  padding: 18px 16px 22px;
  flex-shrink: 0;
}
.entry-card-title {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--tx-900); letter-spacing: -.025em;
  margin-bottom: 6px;
}
.entry-card-desc {
  font-size: .8125rem; color: var(--tx-500); line-height: 1.55;
}

/* ════════════════════════════════════════════
   MODELING TIER GRID (Step 2)
════════════════════════════════════════════ */
.modeling-intro {
  margin-bottom: 20px; padding: 16px 18px;
  background: var(--blue-light); border-radius: var(--r-sm);
  border: 1px solid rgba(37,99,235,.1);
}
.go-stl-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.go-stl-text {
  display: flex; flex-direction: column; gap: 2px;
}
.go-stl-text strong {
  font-size: .8125rem; font-weight: 700; color: var(--tx-900);
}
.go-stl-text span {
  font-size: .75rem; color: var(--tx-500); line-height: 1.4;
}
.go-stl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card); color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: var(--r-xs);
  font-family: inherit; font-size: .75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.go-stl-btn:hover {
  background: var(--blue); color: #fff;
}
.go-stl-btn:hover svg { stroke: #fff; }
.go-stl-btn svg { transition: stroke .15s; }

/* Recommendation wizard */
.recommend-wizard { margin-bottom: 20px; }
.recommend-question {
  font-size: .875rem; font-weight: 600; color: var(--tx-900);
  margin-bottom: 12px;
}
.recommend-options {
  display: flex; flex-direction: column; gap: 8px;
}
.recommend-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1.5px solid var(--bd);
  border-radius: var(--r-xs); background: var(--bg-card);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: all .15s;
}
.recommend-opt:hover { border-color: var(--blue); background: var(--blue-light); }
.recommend-opt.selected { border-color: var(--blue); background: var(--blue-dim); }
.recommend-opt-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recommend-opt-icon svg { width: 16px; height: 16px; stroke: var(--tx-500); fill: none; stroke-width: 1.8; }
.recommend-opt.selected .recommend-opt-icon { background: var(--blue-light); }
.recommend-opt.selected .recommend-opt-icon svg { stroke: var(--blue); }
.recommend-opt-text { font-size: .8125rem; font-weight: 500; color: var(--tx-700); }
.recommend-opt.selected .recommend-opt-text { color: var(--blue); font-weight: 600; }

.recommend-result.hidden { display: none !important; }
.recommend-result {
  margin-top: 16px; padding: 16px;
  background: var(--blue-light); border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--r-sm); animation: reveal .2s ease;
}
.recommend-result-title {
  font-size: .8125rem; font-weight: 700; color: var(--blue); margin-bottom: 4px;
}
.recommend-result-desc {
  font-size: .75rem; color: var(--tx-600); line-height: 1.5;
}

.tier-scroll-wrap { overflow: hidden; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.tier-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 22px 8px 20px;
  border: 1.5px solid var(--bd); border-radius: var(--r-sm);
  background: var(--bg-card); cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: center; min-height: 148px;
}
.tier-btn:hover { border-color: #93C5FD; background: var(--blue-light); }
.tier-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tier-btn.active {
  border-color: var(--blue); background: var(--blue-dim);
  box-shadow: 0 0 0 3px var(--blue-ring);
}
.tier-btn.recommended {
  border-color: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,.15);
}
.tier-btn.recommended::before {
  content: "추천"; font-size: .5625rem; font-weight: 700;
  color: var(--success); background: rgba(16,185,129,.08);
  padding: 2px 8px; border-radius: var(--r-full);
  position: absolute; top: -8px;
}
.tier-btn { position: relative; }
.tier-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--bg);
  color: var(--tx-400); transition: background .15s, color .15s;
  flex-shrink: 0;
}
.tier-btn.active .tier-icon { background: var(--blue-light); color: var(--blue); }
.tier-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tier-name {
  font-size: .8125rem; font-weight: 700; color: var(--tx-900); line-height: 1.2;
}
.tier-btn.active .tier-name { color: var(--blue); }
.tier-desc {
  font-size: .6875rem; color: var(--tx-400); font-weight: 400; line-height: 1.35;
}
.tier-price {
  font-size: .75rem; font-weight: 700; color: var(--tx-500); margin-top: 2px;
}
.tier-btn.active .tier-price { color: var(--blue); }

.tier-manual-toggle {
  margin-top: 14px; text-align: center;
}
.tier-manual-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .75rem; font-weight: 500;
  color: var(--tx-400); text-decoration: underline;
  padding: 4px 8px;
}
.tier-manual-toggle button:hover { color: var(--tx-700); }

/* ════════════════════════════════════════════
   SHAPE SELECTOR (Step 3)
════════════════════════════════════════════ */
.shape-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 12px;
}
.shape-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px 14px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  background: var(--bg); cursor: pointer; font-family: inherit;
  font-size: .8125rem; font-weight: 600; color: var(--tx-500);
  transition: all .15s; min-height: 80px;
}
.shape-btn:hover { background: var(--bd-lite); border-color: var(--bd); color: var(--tx-700); }
.shape-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.shape-btn.active { border-color: var(--blue); background: var(--blue-dim); color: var(--blue); }
.shape-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-dim); color: var(--blue); }
.shape-btn svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ════════════════════════════════════════════
   FORM FIELDS
════════════════════════════════════════════ */
.dim-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin-bottom: 12px;
}
.dim-grid.two-fields { grid-template-columns: 1fr 1fr; }
.field {
  display: flex; flex-direction: column; gap: 5px; position: relative;
}
.field.hidden { display: none; }
.field label { font-size: .75rem; font-weight: 600; color: var(--tx-700); }
.field input[type="number"] {
  width: 100%; padding: 12px 36px 12px 12px;
  border: 1.5px solid var(--bd); border-radius: var(--r-xs);
  font-size: .9375rem; font-weight: 600; font-family: inherit; color: var(--tx-900);
  background: var(--bg-subtle);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -moz-appearance: textfield;
}
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus {
  outline: none; border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--blue-ring);
}
.field .unit {
  position: absolute; right: 12px; bottom: 26px;
  font-size: .8125rem; font-weight: 700; color: var(--tx-500);
  pointer-events: none;
}
.field.has-error input { border-color: var(--error); background: var(--err-bg); }
.field .error-msg { font-size: .6875rem; color: var(--error); font-weight: 500; min-height: 16px; }
.field .warning-msg {
  font-size: .6875rem; color: var(--warning); font-weight: 500; min-height: 0;
}
.field.has-warning input { border-color: var(--warning); background: var(--warn-bg); }

/* ════════════════════════════════════════════
   REAL-TIME PREVIEW
════════════════════════════════════════════ */
.rt-preview {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 12px;
  padding: 14px; background: var(--bg-subtle);
  border: 1px solid var(--bd-lite); border-radius: var(--r-sm);
  animation: reveal .2s ease;
}
.rt-preview.hidden { display: none; }
.rt-item { text-align: center; }
.rt-label { display: block; font-size: .6875rem; color: var(--tx-400); font-weight: 500; margin-bottom: 3px; }
.rt-value { display: block; font-size: .875rem; font-weight: 700; color: var(--tx-700); transition: color .2s; }
.rt-header {
  grid-column: 1 / -1;
  font-size: .6875rem; font-weight: 600; color: var(--tx-500);
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px; padding-bottom: 10px;
  border-bottom: 1px solid var(--bd-lite);
}
.rt-header::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  border: none; border-radius: var(--r-sm); cursor: pointer;
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  letter-spacing: -.01em;
  text-align: center; text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  margin-top: 12px;
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 20px rgba(37,99,235,.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.97) translateY(0); }
.btn-primary:disabled {
  background: var(--bd); color: var(--tx-300);
  box-shadow: none; cursor: not-allowed; transform: none;
}

/* ════════════════════════════════════════════
   예상 견적 패널 (견적 방식 아래, 가로 전체)
════════════════════════════════════════════ */
.side-panel {
  position: static;
  max-height: none;
  overflow: visible;
  z-index: var(--z-panel);
  scroll-margin-top: 160px;
  scroll-margin-bottom: 24px;
}
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 26px 28px 28px;
  box-shadow: var(--sh-sm);
}
.order-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 0;
}
.order-summary-header {
  margin-bottom: 0;
}
.order-summary-title {
  font-size: 1.125rem; font-weight: 700; color: var(--tx-900);
  letter-spacing: -.02em; margin-bottom: 4px;
}
.order-summary-meta {
  font-size: .75rem; color: var(--tx-400); font-weight: 500;
}
.order-step-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .625rem; font-weight: 700; color: var(--blue);
  background: var(--blue-dim); padding: 3px 8px;
  border-radius: var(--r-full); margin-bottom: 0;
}
.order-summary-top .result-updated { margin: 0; }

.side-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  padding: 56px 28px 64px; text-align: center;
  color: var(--tx-400);
}
.side-placeholder svg { opacity: .3; }
.side-placeholder p {
  font-size: .875rem; line-height: 1.55; margin: 0;
}
.side-panel.has-result .side-placeholder { display: none; }
.side-panel:not(.has-result) .estimate-panel-body,
.side-panel:not(.has-result) .order-notice,
.side-panel:not(.has-result) .order-step-badge { display: none; }

.estimate-panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--bd-lite);
}

.order-selection {
  padding: 14px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--bd-lite);
  border-radius: var(--r-sm);
}
.order-selection--sheet {
  margin-bottom: 4px;
}
.order-selection-title {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--tx-500);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.order-selection-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-selection-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: .8125rem;
  line-height: 1.45;
}
.order-selection-row span:first-child {
  flex-shrink: 0;
  color: var(--tx-500);
  font-weight: 500;
}
.order-selection-row span:last-child {
  text-align: right;
  color: var(--tx-900);
  font-weight: 600;
  word-break: break-all;
}

.estimate-panel-body .order-lines {
  margin-top: 0;
  padding: 16px 18px;
  background: var(--bg-subtle);
  border-radius: var(--r-sm);
  border: 1px solid var(--bd-lite);
}
.estimate-panel-body .order-details {
  margin-top: 0;
  padding: 14px 18px 10px;
  border-top: none;
  background: var(--bg-subtle);
  border-radius: var(--r-sm);
  border: 1px solid var(--bd-lite);
}
.estimate-panel-body .order-cta {
  margin-top: 4px;
  padding-top: 4px;
}
.estimate-panel-body .order-btn {
  width: 100%;
  max-width: 100%;
}

.side-panel.has-result .order-total .order-line-value {
  font-size: 1.375rem;
}

/* Price lines */
.order-lines { margin-bottom: 0; margin-top: 12px; }
.order-lines.hidden { display: none; }
.order-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
}
.order-line-label {
  font-size: .8125rem; color: var(--tx-500); font-weight: 500;
}
.order-line-value {
  font-size: .8125rem; color: var(--tx-900); font-weight: 600;
}
.order-divider {
  border: none; border-top: 1px solid var(--bd); margin: 8px 0;
}
.order-total { padding: 10px 0 4px; }
.order-total .order-line-label {
  font-size: .875rem; font-weight: 700; color: var(--tx-900);
}
.order-total .order-line-value {
  font-size: 1.25rem; font-weight: 800; color: var(--price);
}

/* Details (accordion-like) */
.order-details {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--bd);
}
.order-details-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none;
  font-family: inherit; font-size: .75rem; font-weight: 600;
  color: var(--tx-400); cursor: pointer; padding: 4px 0;
  margin-bottom: 6px;
}
.order-details-toggle svg {
  width: 14px; height: 14px; stroke: currentColor; transition: transform .2s;
}
.order-details-toggle.open svg { transform: rotate(180deg); }
.order-detail-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: .75rem; color: var(--tx-400);
}
.order-detail-row span:last-child {
  font-weight: 600; color: var(--tx-600);
}
.order-details-body { overflow: hidden; transition: max-height .2s ease; }

/* CTA */
.order-cta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 18px;
}
.order-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 16px; border-radius: var(--r-xs);
  font-size: .875rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: all .15s; border: none;
  min-height: 46px;
}
.order-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.order-btn-channel {
  background: var(--channel); color: var(--channel-text);
  box-shadow: 0 2px 8px rgba(56,97,224,.25);
}
.order-btn-channel:hover {
  background: var(--channel-hover);
  box-shadow: 0 4px 12px rgba(56,97,224,.35);
  transform: translateY(-1px);
}
.order-btn-email {
  background: var(--bg); color: var(--tx-700);
  border: 1px solid var(--bd);
}
.order-btn-email:hover { background: var(--bd-lite); }

.order-notice {
  font-size: .6875rem; color: var(--tx-400);
  margin: 14px 0 0; text-align: center; line-height: 1.5;
}

/* Update badge */
.result-updated {
  font-size: .6875rem; font-weight: 600;
  color: var(--blue); background: var(--blue-dim);
  padding: 4px 10px; border-radius: var(--r-full);
  margin-bottom: 10px; text-align: center;
  animation: fadeSlideIn .25s ease;
}
.result-updated.hidden { display: none; }
.result-pulse { animation: pulseBorder .35s ease; }

/* ════════════════════════════════════════════
   MOBILE BOTTOM QUOTE BAR
════════════════════════════════════════════ */
.mobile-quote-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  scroll-margin-bottom: 8px;
  z-index: var(--z-bottom);
  background: var(--bg-card);
  border-top: 1px solid var(--bd);
  box-shadow: 0 -4px 16px rgba(15,23,42,.08);
  padding: 12px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.mobile-quote-bar.visible { transform: translateY(0); }
.mobile-quote-bar-price {
  flex: 1; min-width: 0;
}
.mobile-quote-bar-label {
  font-size: .6875rem; color: var(--tx-400); font-weight: 500;
}
.mobile-quote-bar-value {
  font-size: 1rem; font-weight: 800; color: var(--price);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-quote-bar-btn {
  flex-shrink: 0; padding: 12px 20px;
  background: var(--channel); color: var(--channel-text);
  border: none; border-radius: var(--r-xs);
  font-size: .8125rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  min-height: 44px;
}
.mobile-quote-bar-btn:active { transform: scale(.97); }

/* ════════════════════════════════════════════
   MOBILE BOTTOM SHEET
════════════════════════════════════════════ */
.bottom-sheet-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,.4);
  z-index: var(--z-sheet);
  opacity: 0; transition: opacity .25s ease;
}
.bottom-sheet-overlay.open { opacity: 1; }

.bottom-sheet {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: calc(var(--z-sheet) + 1);
  background: var(--bg-card);
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding: 0 20px 24px;
  box-shadow: 0 -8px 32px rgba(15,23,42,.12);
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
  display: flex; justify-content: center; padding: 12px 0 8px;
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.bottom-sheet-handle::before {
  content: ""; width: 36px; height: 4px;
  background: var(--bd); border-radius: 2px;
}
.bottom-sheet-title {
  font-size: 1rem; font-weight: 700; color: var(--tx-900);
  margin-bottom: 16px; padding-top: 4px;
}
.bottom-sheet-total {
  text-align: center; margin-bottom: 16px;
  padding: 16px; background: var(--bg-subtle);
  border-radius: var(--r-sm);
}
.bottom-sheet-total-label {
  font-size: .75rem; color: var(--tx-500); font-weight: 500; margin-bottom: 4px;
}
.bottom-sheet-total-value {
  font-size: 1.5rem; font-weight: 800; color: var(--price);
}
.bottom-sheet-lines { margin-bottom: 16px; }
.bottom-sheet-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--bd-lite);
  font-size: .8125rem;
}
.bottom-sheet-line-label { color: var(--tx-500); font-weight: 500; }
.bottom-sheet-line-value { color: var(--tx-900); font-weight: 600; }
.bottom-sheet-cta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.bottom-sheet-notice {
  font-size: .6875rem; color: var(--tx-400);
  text-align: center; margin-top: 12px; line-height: 1.5;
}

/* ════════════════════════════════════════════
   STL DROPZONE
════════════════════════════════════════════ */
.stl-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 48px 24px;
  border: 2px dashed var(--bd); border-radius: var(--r);
  background: var(--bg-subtle); cursor: pointer;
  transition: all .18s; text-align: center;
}
.stl-dropzone:hover { border-color: var(--blue); background: var(--blue-light); }
.stl-dropzone.dragover { border-color: var(--blue); background: var(--blue-dim); transform: scale(.99); }
.stl-dropzone:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.stl-dropzone svg { color: var(--tx-400); }
.dropzone-text { font-size: .875rem; font-weight: 600; color: var(--tx-700); margin: 0; }
.dropzone-hint { font-size: .75rem; color: var(--tx-400); margin: 0; }
.dropzone-specs {
  display: flex; gap: 12px; margin-top: 4px;
  font-size: .6875rem; color: var(--tx-400);
}
.dropzone-specs span { display: flex; align-items: center; gap: 3px; }

.stl-file-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-top: 10px;
  background: var(--blue-light); border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--r-xs);
}
.stl-file-info.hidden { display: none; }
.stl-filename { font-size: .8125rem; font-weight: 600; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stl-remove-btn {
  border: none; background: none;
  font-size: .8125rem; font-weight: 700; color: var(--error);
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: background .12s; flex-shrink: 0;
}
.stl-remove-btn:hover { background: var(--err-bg); }

/* ════════════════════════════════════════════
   3D VIEWER
════════════════════════════════════════════ */
.viewer-container {
  margin-top: 14px; border-radius: var(--r);
  overflow: hidden; background: var(--bg); border: 1px solid var(--bd);
  position: relative; box-shadow: var(--sh-xs);
  min-height: 320px;
}
.viewer-container.hidden { display: none; }
.viewer-container canvas { display: block; width: 100%; min-height: 320px; }
.viewer-info {
  position: absolute; bottom: 44px; left: 12px; right: 12px;
  font-size: .75rem; font-weight: 600; color: var(--tx-700);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 7px 12px; border-radius: var(--r-xs); border: 1px solid var(--bd);
  text-align: center; pointer-events: none;
}
.viewer-controls {
  position: absolute; bottom: 8px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.viewer-guide {
  display: flex; gap: 10px;
  background: rgba(15,23,42,.55); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: var(--r-full);
  pointer-events: none;
}
.viewer-guide-item {
  font-size: .625rem; font-weight: 500; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 4px;
}
.viewer-guide-key {
  background: rgba(255,255,255,.15); border-radius: 4px;
  padding: 2px 5px; font-size: .5625rem; font-weight: 700; color: #fff;
}
.viewer-reset-btn {
  background: rgba(255,255,255,.92); border: 1px solid var(--bd);
  border-radius: var(--r-full); padding: 6px 12px;
  font-size: .6875rem; font-weight: 600; color: var(--tx-700);
  cursor: pointer; pointer-events: all; backdrop-filter: blur(6px);
  transition: background .12s;
}
.viewer-reset-btn:hover { background: #fff; }

/* ════════════════════════════════════════════
   LOADING OVERLAY
════════════════════════════════════════════ */
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247,248,250,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-overlay); animation: fadeIn .15s ease;
}
.loading-overlay.hidden { display: none; }
.loading-card {
  background: var(--bg-card); border-radius: var(--r);
  border: 1px solid var(--bd); box-shadow: var(--sh-lg);
  padding: 36px 40px; text-align: center; min-width: 280px; max-width: 320px;
}
.loading-spinner {
  width: 36px; height: 36px; margin: 0 auto 18px;
  border: 3px solid var(--bd); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .6s linear infinite;
}
.loading-text { font-size: .9375rem; font-weight: 700; color: var(--tx-900); margin: 0 0 14px; }
.loading-bar-track {
  width: 100%; height: 4px; background: var(--bg);
  border-radius: var(--r-full); overflow: hidden; margin-bottom: 10px;
}
.loading-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), #60A5FA);
  border-radius: var(--r-full); transition: width .25s ease;
}
.loading-step { font-size: .8125rem; color: var(--tx-400); font-weight: 500; margin: 0; }

/* ════════════════════════════════════════════
   TRUST / SERVICE INFO SECTION
════════════════════════════════════════════ */
.trust-card {
  padding: 24px;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
.trust-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px;
  background: var(--bg-subtle); border-radius: var(--r-sm);
  border: 1px solid var(--bd-lite);
}
.trust-icon-wrap {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon-wrap svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-label { font-size: .6875rem; color: var(--tx-400); font-weight: 500; margin-bottom: 2px; }
.trust-value { font-size: .75rem; font-weight: 600; color: var(--tx-900); line-height: 1.4; }

.trust-gallery {
  margin-top: 20px;
}
.trust-gallery-title {
  font-size: .8125rem; font-weight: 600; color: var(--tx-500);
  margin-bottom: 10px;
}
.trust-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-gallery-item {
  aspect-ratio: 1; border-radius: var(--r-sm);
  background: var(--bg-subtle); border: 1px solid var(--bd-lite);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px;
  font-size: .6875rem; font-weight: 500; color: var(--tx-400);
  text-align: center;
}
.trust-gallery-item svg {
  width: 24px; height: 24px; stroke: var(--tx-300); fill: none;
  stroke-width: 1.4;
}

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px;
  border-radius: var(--r-sm);
  background: var(--tx-900); color: #fff;
  font-size: .8125rem; font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 8px 32px rgba(15,23,42,.22);
  opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1),
              transform .32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 600;
  max-width: min(92vw, 400px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-icon { flex-shrink: 0; }
.toast-icon--success { stroke: #34D399; }
.toast-icon--guide { stroke: #FCD34D; }
.toast--guide { background: #1e293b; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  text-align: center; font-size: .75rem; color: var(--tx-300);
  margin-top: 24px; font-weight: 500;
}

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,.2); }
  50% { box-shadow: 0 0 0 5px rgba(37,99,235,.06); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .flow-section,
  .side-panel { max-width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile
════════════════════════════════════════════ */
@media (max-width: 640px) {
  .wrapper { padding: 24px 16px 100px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: .875rem; }
  .hero-trust { gap: 6px; }
  .hero-trust-item { font-size: .6875rem; padding: 5px 10px; }

  .step-breadcrumb { padding: 10px 12px; min-height: 44px; }
  .step-crumb { padding: 6px 8px; }
  .step-crumb-num { width: 20px; height: 20px; font-size: .625rem; }
  .step-crumb-title { font-size: .6875rem; }
  .step-crumb-value { display: none; }

  .card { padding: 20px 18px; }
  .section-title { font-size: 1rem; margin-bottom: 16px; }
  .entry-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .entry-card { min-height: 0; border-radius: var(--r); }
  .entry-card-visual { min-height: 72px; flex: none; }
  .entry-card-visual svg { width: 36px; height: 36px; }
  .entry-card-body { padding: 12px 12px 14px; }
  .entry-card-title { font-size: .875rem; }
  .entry-card-desc { font-size: .75rem; }
  .estimate-panel-body {
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .order-summary { padding: 20px 18px; }
  .side-placeholder { padding: 40px 20px 48px; }
  .card-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .card-head .step-nav {
    width: 100%;
    justify-content: flex-end;
  }
  .step-nav-btn { min-height: 34px; padding: 0 14px; font-size: .75rem; }
  .toast { bottom: 20px; max-width: calc(100vw - 32px); }

  .tier-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tier-grid::-webkit-scrollbar { display: none; }
  .tier-btn {
    flex: 0 0 min(140px, 38vw);
    scroll-snap-align: start;
    min-height: 120px;
    padding: 16px 8px 14px;
  }

  .shape-grid { grid-template-columns: repeat(2, 1fr); }
  .dim-grid { grid-template-columns: 1fr 1fr; }
  .dim-grid.two-fields { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .loading-card { padding: 28px 24px; min-width: 260px; }

  /* Hide desktop side panel on mobile, show bottom bar */
  .side-panel { display: none; }
  .mobile-quote-bar { display: flex; }
  .bottom-sheet { display: block; }
  .bottom-sheet-overlay { display: block; }
}

@media (max-width: 380px) {
  .entry-cards { grid-template-columns: 1fr; }
  .dim-grid, .dim-grid.two-fields { grid-template-columns: 1fr; }
}
