/* 화면 부품 50 — keywords.css의 시리즈 틀 위에 부품 무대와 부품 모양만 더한다 */
.up { --ud-ink: #1a1433; --ud-line: rgba(52, 36, 110, 0.18); --ud-paper: #fff; --ud-soft: #f4f2fa; }

/* ── 목록과 자세히 ── */
.up .up-browse { grid-template-columns: minmax(0, 1fr) 460px; }
.up .up-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.up .up-card { min-height: 116px; padding-top: 12px; }
.up-card__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 6px; border-radius: 6px;
  background: var(--kw-t); color: var(--kw-c); font-size: 17px;
}
.up .up-card .kw-card__n { position: absolute; top: 12px; right: 12px; }
.up .up-card.is-known .kw-card__n { display: none; }
.up .up-card.is-known .up-card__icon { background: #fff; }
.up-head-icon { margin-right: 10px; font-size: 24px; opacity: 0.85; }

.up-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 190px; padding: 22px 16px;
  border: 1px solid var(--ud-line); border-radius: 8px;
  background-color: #fbfaff;
  background-image: radial-gradient(rgba(75, 47, 160, 0.13) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}
.up-stage--quiz { margin-top: 14px; min-height: 220px; background-color: #fff; }
.up-stage--mini { min-height: 0; padding: 12px; border: 0; background: transparent; overflow: visible; }

.up-opts { display: grid; gap: 10px; }
.up-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.up-opt__label { font-size: 15px; font-weight: 800; color: var(--kw-ink); }
.up-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ud-line); border-radius: 6px; overflow: hidden; background: #fff; }
.up-seg button {
  min-height: 38px; padding: 0 12px; border: 0; border-left: 1px solid var(--ud-line);
  background: transparent; color: var(--kw-ink); font-size: 14px; font-weight: 700; cursor: pointer;
}
.up-seg button:first-child { border-left: 0; }
.up-seg button[aria-pressed="true"] { background: var(--kw-c); color: #fff; }
.up-seg button:focus-visible { outline: 3px solid var(--kw-c); outline-offset: -3px; }
.kw-say.is-flash { animation: up-flash 0.6s ease; }
@keyframes up-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 107, 0.9); } 100% { box-shadow: 0 0 0 10px rgba(255, 214, 107, 0); } }

.up-pair { padding: 12px 14px; border-radius: 6px; background: var(--kw-t); }
.up-pair button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px;
  background: #fff; color: var(--kw-d); font-size: 15px; font-weight: 900; cursor: pointer;
}
.up-pair button:hover { border-color: var(--kw-c); }
.up-pair p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--kw-ink); }

/* ── 한눈에 보는 간단한 부품 ── */
.up-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.up-tiles:not(:has(li)), .up-grid:not(:has(li)) { display: none; }
.up-tiles li[hidden], .up-grid li[hidden] { display: none; }
.up-tile { display: flex; flex-direction: column; border: 1px solid var(--kw-line); border-radius: 8px; background: #fff; overflow: hidden; }
.up-tile__stage {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 132px; padding: 18px 14px;
  background-color: #fbfaff; background-image: radial-gradient(rgba(75, 47, 160, 0.14) 1px, transparent 1px); background-size: 16px 16px;
}
.up-tile__open {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px;
  border: 0; border-top: 1px solid var(--kw-line); background: #fff; color: var(--kw-ink); text-align: left; cursor: pointer;
}
.up-tile__open:hover { background: var(--kw-t); }
.up-tile__open:focus-visible { outline: 3px solid var(--kw-c); outline-offset: -3px; }
.up-tile__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 6px; background: var(--kw-t); color: var(--kw-c); font-size: 15px; }
.up-tile__name { flex: 1; min-width: 0; }
.up-tile__name strong { display: block; font-size: 16px; font-weight: 900; }
.up-tile__name small { display: block; font-size: 12.5px; font-weight: 700; color: var(--kw-muted); }
.up-tile__more { flex: none; font-size: 13.5px; font-weight: 800; color: var(--kw-d); }
.up-tile__known { display: none; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--kw-c); color: #fff; font-size: 11px; }
.up-tile__open.is-known .up-tile__known { display: grid; }
.up-tile__open.is-known .up-tile__more { display: none; }
.up-tile__stage .ud-col.ud-wide, .up-tile__stage .ud-form { width: 100%; }
.up-stage--focus { width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.up-tile__stage { overflow: hidden; }
@media (max-width: 720px) {
  .up-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .up-tile__stage { min-height: 104px; padding: 14px 8px; }
  .up-tile__open { gap: 6px; min-height: 52px; padding: 8px 10px; }
  .up-tile__icon { display: none; }
  .up-tile__name strong { font-size: 14.5px; }
  .up-tile__name small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .up-tile__more { font-size: 0; }
  .up-tile__more i { font-size: 13px; }
  .up-tile__stage .ud-host { font-size: 13.5px; }
  .up-tile__stage .ud-note { font-size: 12px; }
  .up-tile__stage .ud-otp { gap: 4px; }
  .up-tile__stage .ud-otp input { width: 32px; height: 42px; font-size: 18px; }
  .up-tile__stage .ud-stars button { font-size: 22px; padding: 2px; }
  .up-tile__stage .ud-swatches { grid-template-columns: repeat(4, 28px); gap: 6px; }
  .up-tile__stage .ud-swatches button { width: 28px; height: 28px; }
  .up-tile__stage .ud-row .ud-input[type="date"] { flex-basis: 100%; }
  .up-tile__stage .ud-seg button { min-width: 0; padding: 0 10px; }
  .up-tile__stage .ud-stepper button { width: 38px; height: 40px; }
  .up-tile__stage .ud-stepper output { min-width: 44px; font-size: 18px; }
}

/* ── 화면 주문서 ── */
.up .up-build { max-width: 1120px; }
.up-task { min-height: 48px; }
.up-order-hint { font-size: 13px; font-weight: 700; color: var(--kw-muted); margin-left: 6px; }
.up-order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 20px; }
.up-compare { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.up-phone {
  position: sticky; top: calc(var(--main-nav-height, 64px) + 16px);
  border: 8px solid #1d1840; border-radius: 22px; background: #f6f4fb; overflow: hidden;
  box-shadow: 0 24px 40px -26px rgba(29, 24, 64, 0.8);
}
.up-phone__bar { display: flex; justify-content: center; padding: 6px 0 2px; background: #1d1840; }
.up-phone__bar span { width: 64px; height: 5px; border-radius: 3px; background: #3b3470; }
.up-phone__title { padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--ud-line); font-size: 16px; font-weight: 900; }
.up-phone__body { max-height: 560px; overflow: auto; padding: 8px 0 14px; }
.up-phone__slot { position: relative; margin: 8px 10px 0; padding-top: 16px; border-radius: 8px; background: #fff; border: 1px solid var(--ud-line); }
.up-phone__tag { position: absolute; top: -8px; left: 10px; padding: 1px 8px; border-radius: 4px; background: var(--kw-c); color: #fff; font-size: 12px; font-weight: 800; }
.up-phone__empty { padding: 40px 16px; text-align: center; }
.up-phone .ud-col.ud-wide, .up-phone .ud-frame { width: 100%; }

/* ── 부품 공통 ── */
.ud-host { width: 100%; display: flex; justify-content: center; color: var(--ud-ink); font-size: 15px; }
.ud-col { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.ud-left { align-items: flex-start; }
.ud-wide { width: 100%; align-items: stretch; }
.ud-form { width: min(100%, 320px); align-items: stretch; }
.ud-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ud-row--fill { flex-wrap: nowrap; }
.ud-row--fill .ud-range { flex: 1; }
.ud-row--between { justify-content: space-between; }
.ud-row--end { justify-content: flex-end; }
.ud-row--gap { gap: 22px; }
.ud-label { font-size: 14px; font-weight: 800; color: var(--ud-ink); }
.ud-note { margin: 0; min-height: 1.4em; font-size: 13.5px; font-weight: 700; color: #6a6384; text-align: center; }
.ud-note--strong { font-size: 16px; color: var(--ud-ink); }
.ud-muted { margin: 0; font-size: 13px; color: #8a83a3; font-weight: 600; }
.ud-link { border: 0; background: none; padding: 4px 0; color: #4b2fa0; font-weight: 800; font-size: 14px; text-decoration: underline; cursor: pointer; }
.ud-line { height: 8px; border-radius: 4px; background: #e6e2f1; margin: 6px 0; }
.ud-line--short { width: 60%; }

.ud-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid #4b2fa0; border-radius: 8px; background: #4b2fa0; color: #fff;
  font-weight: 800; cursor: pointer; transition: transform 0.1s, filter 0.15s, background 0.15s;
}
.ud-btn:hover:not(:disabled) { filter: brightness(1.1); }
.ud-btn:active:not(:disabled) { transform: scale(0.97); }
.ud-btn:focus-visible { outline: 3px solid rgba(75, 47, 160, 0.45); outline-offset: 2px; }
.ud-btn--outline { background: #fff; color: #4b2fa0; }
.ud-btn--text { background: transparent; border-color: transparent; color: #4b2fa0; text-decoration: underline; text-underline-offset: 3px; }
.ud-btn--danger { background: #c2414b; border-color: #c2414b; }
.ud-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ud-btn--md { min-height: 44px; padding: 0 20px; font-size: 16px; }
.ud-btn--lg { min-height: 56px; padding: 0 30px; font-size: 19px; }
.ud-btn:disabled { background: #d9d5e6; border-color: #d9d5e6; color: #8a83a3; cursor: not-allowed; }

.ud-icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-width: 52px; height: 52px; padding: 0 14px; justify-content: center;
  border: 2px solid var(--ud-line); border-radius: 8px; background: #fff; color: #bf3f73; font-size: 22px; cursor: pointer;
}
.ud-icon-btn span { font-size: 15px; font-weight: 800; color: var(--ud-ink); }
.ud-icon-btn[aria-pressed="true"] { border-color: #bf3f73; background: #fbe6ee; }
.ud-icon-btn[data-tip]:not([data-tip=""]):hover::after, .ud-icon-btn[data-tip]:not([data-tip=""]):focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 6px; background: #1d1840; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
}

.ud-switch {
  position: relative; flex: none; width: 56px; height: 32px; padding: 0;
  border: 0; border-radius: 16px; background: #c9c4da; cursor: pointer; transition: background 0.2s;
}
.ud-switch__knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.ud-switch[aria-checked="true"] { background: #0d8577; }
.ud-switch[aria-checked="true"] .ud-switch__knob { transform: translateX(24px); }
.ud-switch:focus-visible { outline: 3px solid rgba(13, 133, 119, 0.45); outline-offset: 2px; }
.ud-switch--sm { width: 46px; height: 26px; border-radius: 13px; }
.ud-switch--sm .ud-switch__knob { width: 20px; height: 20px; }
.ud-switch--sm[aria-checked="true"] { background: var(--kw-c); }
.ud-switch--sm[aria-checked="true"] .ud-switch__knob { transform: translateX(20px); }

.ud-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.ud-fieldset legend { margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.ud-fieldset--row { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.ud-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; font-weight: 600; cursor: pointer; }
.ud-check input { width: 20px; height: 20px; accent-color: #4b2fa0; }
.ud-check--all { padding-bottom: 6px; border-bottom: 1px solid var(--ud-line); font-weight: 800; }

.ud-seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #ebe7f6; }
.ud-seg button { min-height: 36px; min-width: 52px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: #4a4362; font-size: 14px; font-weight: 800; cursor: pointer; }
.ud-seg button[aria-pressed="true"] { background: #fff; color: #4b2fa0; box-shadow: 0 2px 6px rgba(29, 24, 64, 0.15); }

.ud-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ud-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--ud-line); border-radius: 6px; background: #fff; color: #4a4362; font-size: 14px; font-weight: 700; cursor: pointer; }
.ud-chip[aria-pressed="true"] { background: #0d8577; border-color: #0d8577; color: #fff; }
.ud-chip[aria-pressed="true"]::before { content: "✓ "; }

.ud-input {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid #c9c4da; border-radius: 6px; background: #fff; color: var(--ud-ink); font: inherit; font-size: 15px;
}
.ud-input:focus { outline: 0; border-color: #4b2fa0; box-shadow: 0 0 0 3px rgba(75, 47, 160, 0.15); }
.ud-input.is-invalid { border-color: #c2414b; box-shadow: 0 0 0 3px rgba(194, 65, 75, 0.12); }
.ud-row .ud-input[type="date"] { width: auto; flex: 1 1 130px; }
.ud-textarea { resize: vertical; line-height: 1.55; }
.ud-counter { margin: -4px 0 0; text-align: right; font-size: 13px; font-weight: 800; color: #6a6384; font-variant-numeric: tabular-nums; }
.ud-counter.is-full { color: #c2414b; }
.ud-error { margin: -4px 0 0; color: #c2414b; font-size: 13.5px; font-weight: 700; }
.ud-ok { margin: -4px 0 0; color: #0d8577; font-size: 13.5px; font-weight: 800; }
.ud-hint { margin: 0; color: #8c2a52; font-size: 13.5px; font-weight: 700; }
.ud-hint[hidden] { display: none; }

.ud-combo { position: relative; width: 100%; }
.ud-combo__btn { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
.ud-combo__pop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; padding: 6px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; box-shadow: 0 14px 28px -14px rgba(29, 24, 64, 0.5); }
.ud-combo__pop ul, .ud-suggest { max-height: 150px; overflow: auto; margin: 6px 0 0; padding: 0; list-style: none; }
.ud-combo__pop li button { width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 14px; cursor: pointer; }
.ud-combo__pop li button:hover { background: #efebfb; }
.ud-suggest { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; box-shadow: 0 14px 28px -14px rgba(29, 24, 64, 0.5); }
.ud-suggest li { padding: 8px 10px; border-radius: 5px; font-size: 14px; cursor: pointer; }
.ud-suggest li:hover, .ud-suggest li.is-active { background: #efebfb; color: #4b2fa0; font-weight: 800; }

.ud-stepper { display: inline-flex; align-items: center; border: 1px solid #c9c4da; border-radius: 8px; overflow: hidden; background: #fff; }
.ud-stepper button { width: 46px; height: 46px; border: 0; background: #efebfb; color: #4b2fa0; font-size: 16px; cursor: pointer; }
.ud-stepper button:disabled { color: #bdb7d0; cursor: not-allowed; }
.ud-stepper output { min-width: 64px; text-align: center; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }

.ud-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.ud-stars button { padding: 3px; border: 0; background: none; color: #d9d5e6; font-size: clamp(20px, 6vw, 28px); cursor: pointer; transition: transform 0.1s, color 0.1s; }
.ud-stars button.is-on { color: #f5a623; }
.ud-stars button:hover { transform: scale(1.15); }

.ud-range { --p: 50%; width: 100%; height: 8px; border-radius: 4px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #4b2fa0 var(--p), #ddd8ec var(--p)); }
.ud-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #4b2fa0; cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.ud-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #4b2fa0; cursor: grab; }
.ud-value { min-width: 44px; margin: 0; text-align: center; font-size: 18px; font-weight: 900; color: #4b2fa0; font-variant-numeric: tabular-nums; }
.ud-value--big { font-size: 22px; }
.ud-sample { margin: 0; text-align: center; font-weight: 900; color: var(--ud-ink); line-height: 1.2; min-height: 44px; }

.ud-dual { position: relative; height: 32px; }
.ud-dual__track, .ud-dual__fill { position: absolute; top: 12px; height: 8px; border-radius: 4px; }
.ud-dual__track { left: 0; right: 0; background: #ddd8ec; }
.ud-dual__fill { background: #4b2fa0; }
.ud-dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.ud-dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #4b2fa0; cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.ud-dual input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #4b2fa0; cursor: grab; }
.ud-dual input::-moz-range-track { background: none; }

.ud-swatches { display: grid; grid-template-columns: repeat(4, 34px); gap: 8px; }
.ud-swatches button { width: 34px; height: 34px; border: 3px solid #fff; border-radius: 6px; background: var(--c); box-shadow: 0 0 0 1px var(--ud-line); cursor: pointer; }
.ud-swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ud-ink); }
.ud-colorinput { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--ud-line); border-radius: 6px; background: #fff; vertical-align: middle; cursor: pointer; }
.ud-preview { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; background: var(--c); color: #fff; font-weight: 900; box-shadow: 0 10px 18px -12px var(--c); }

.ud-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 14px; border: 2px dashed #a99ed2; border-radius: 8px; background: #fff; text-align: center; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ud-drop i { font-size: 30px; color: #4b2fa0; }
.ud-drop strong { font-size: 15px; }
.ud-drop small { font-size: 13px; color: #6a6384; font-weight: 700; }
.ud-drop:hover, .ud-drop.is-over { background: #efebfb; border-color: #4b2fa0; }
.ud-files { margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.ud-files li { padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ud-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid #c9c4da; border-radius: 8px; background: #fff; color: #6a6384; }
.ud-search:focus-within { border-color: #4b2fa0; box-shadow: 0 0 0 3px rgba(75, 47, 160, 0.15); }
.ud-search input { flex: 1; min-width: 0; min-height: 36px; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--ud-ink); background: transparent; }
.ud-search input::-webkit-search-cancel-button { display: none; }
.ud-search__clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #efebfb; color: #4b2fa0; cursor: pointer; }
.ud-search__clear[hidden] { display: none; }
.ud-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; overflow: hidden; }
.ud-list li { padding: 8px 12px; font-size: 14px; border-top: 1px solid var(--ud-line); }
.ud-list li:first-child { border-top: 0; }

.ud-otp { display: flex; gap: 6px; }
.ud-otp input { width: 42px; height: 50px; border: 2px solid #c9c4da; border-radius: 8px; text-align: center; font-size: 22px; font-weight: 900; color: var(--ud-ink); background: #fff; }
.ud-otp input:focus { outline: 0; border-color: #4b2fa0; box-shadow: 0 0 0 3px rgba(75, 47, 160, 0.15); }
.ud-otp.is-done input { border-color: #0d8577; background: #e2f4f0; }

.ud-acc { gap: 6px; }
.ud-acc__item { border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; overflow: hidden; }
.ud-acc__item > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: none; text-align: left; font-size: 15px; font-weight: 800; color: var(--ud-ink); cursor: pointer; }
.ud-acc__item > button i { transition: transform 0.2s; color: #6a6384; }
.ud-acc__item > button[aria-expanded="true"] i { transform: rotate(180deg); }
.ud-acc__item > button[aria-expanded="true"] { color: #4b2fa0; }
.ud-acc__body { padding: 0 14px 14px; font-size: 14.5px; line-height: 1.55; color: #4a4362; }

.ud-tabs { display: flex; gap: 2px; }
.ud-tabs button { min-height: 42px; padding: 0 16px; border: 0; background: none; font-size: 15px; font-weight: 800; color: #6a6384; cursor: pointer; }
.ud-tabs--line { border-bottom: 2px solid #e6e2f1; }
.ud-tabs--line button { margin-bottom: -2px; border-bottom: 3px solid transparent; }
.ud-tabs--line button[aria-selected="true"] { color: #4b2fa0; border-bottom-color: #4b2fa0; }
.ud-tabs--box { padding: 4px; border-radius: 8px 8px 0 0; background: #ebe7f6; }
.ud-tabs--box button { border-radius: 6px; }
.ud-tabs--box button[aria-selected="true"] { background: #fff; color: #4b2fa0; }
.ud-tabpanel { padding: 16px; border: 1px solid var(--ud-line); border-top: 0; border-radius: 0 0 8px 8px; background: #fff; font-size: 15px; font-weight: 600; min-height: 60px; }
.ud-tabs--line + .ud-tabpanel { border: 0; padding-left: 4px; background: transparent; }

.ud-modal-layer { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgba(18, 12, 46, 0.55); animation: ud-fade 0.15s ease; }
.ud-modal { width: min(100%, 360px); padding: 22px; border-radius: 8px; background: #fff; color: #1a1433; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); animation: ud-pop 0.18s ease; }
.ud-modal:focus { outline: 0; }
.ud-modal h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.ud-modal p { margin: 0 0 14px; font-size: 15px; color: #4a4362; }
.ud-modal .ud-muted { margin: 12px 0 0; }
.ud-modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ud-modal.is-shake { animation: ud-shake 0.3s ease; }
@keyframes ud-fade { from { opacity: 0; } }
@keyframes ud-pop { from { transform: scale(0.94); opacity: 0; } }
@keyframes ud-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.ud-frame { position: relative; width: 100%; height: 210px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; overflow: hidden; }
.ud-frame__page { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 16px; }
.ud-frame__page .ud-line { width: 100%; }
.ud-frame__page .ud-line--short { width: 60%; }
.ud-frame__page > button { margin-top: 10px; }
.ud-frame__body { padding: 14px; }
.ud-frame--scroll { overflow: auto; }
.ud-scrim { position: absolute; inset: 0; z-index: 2; background: rgba(18, 12, 46, 0.4); }
.ud-scrim[hidden] { display: none; }
.ud-drawer { position: absolute; z-index: 3; padding: 14px 16px; background: #fff; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.35); transition: transform 0.25s ease; }
.ud-drawer--bottom { left: 0; right: 0; bottom: 0; height: 60%; border-radius: 12px 12px 0 0; transform: translateY(105%); }
.ud-drawer--right { top: 0; right: 0; bottom: 0; width: 62%; transform: translateX(105%); }
.ud-drawer.is-open { transform: none; }
.ud-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ud-drawer__close { width: 40px; height: 40px; border: 0; border-radius: 6px; background: #efebfb; color: #4b2fa0; font-size: 18px; cursor: pointer; }
.ud-drawer p { margin: 0; font-size: 14.5px; }

.ud-tipwrap, .ud-popwrap, .ud-menuwrap { position: relative; display: inline-flex; }
.ud-help { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #efebfb; color: #4b2fa0; font-size: 20px; cursor: help; }
.ud-tip { position: absolute; z-index: 5; padding: 6px 10px; border-radius: 6px; background: #1d1840; color: #fff; font-size: 13px; font-weight: 700; width: max-content; max-width: 150px; line-height: 1.4; display: none; pointer-events: none; }
.ud-tip--top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.ud-tip--bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.ud-tip--right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.ud-tipwrap:hover .ud-tip, .ud-help:focus-visible + .ud-tip { display: block; animation: ud-fade 0.15s ease; }

.ud-pop { position: absolute; z-index: 5; top: calc(100% + 10px); left: 0; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; box-shadow: 0 16px 30px -14px rgba(29, 24, 64, 0.5); }
.ud-pop.has-arrow::before { content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--ud-line); border-top: 1px solid var(--ud-line); transform: rotate(45deg); }
.ud-pop[hidden], .ud-menu[hidden] { display: none; }
.ud-pop button, .ud-menu button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 5px; background: none; text-align: left; font-size: 14px; font-weight: 700; color: var(--ud-ink); cursor: pointer; }
.ud-pop button:hover, .ud-menu button:hover { background: #efebfb; }

.ud-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; box-shadow: 0 8px 18px -14px rgba(29, 24, 64, 0.5); }
.ud-card--menu { flex-direction: column; align-items: flex-start; width: 200px; }
.ud-card__thumb { width: 100%; height: 64px; border-radius: 6px; background: linear-gradient(135deg, #a7f3d0, #c4b5fd); }
.ud-card--row strong { flex: 1; }
.ud-card--row > i { color: #4b2fa0; }
.ud-menuwrap { position: absolute; top: 8px; right: 8px; }
.ud-dots { width: 34px; height: 34px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.9); color: var(--ud-ink); cursor: pointer; }
.ud-dots:hover, .ud-dots[aria-expanded="true"] { background: #efebfb; }
.ud-menu { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; display: flex; flex-direction: column; min-width: 140px; padding: 6px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; box-shadow: 0 16px 30px -14px rgba(29, 24, 64, 0.5); }
.ud-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--ud-line); }
.ud-menu .is-danger { color: #c2414b; }

.ud-toast { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: #1d1840; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.ud-toast[hidden] { display: none; }
.ud-toast--bottom { left: 50%; bottom: 14px; transform: translateX(-50%); }
.ud-toast--top { right: 12px; top: 12px; }
.ud-toast.is-in { animation: ud-toast-in 0.25s ease; }
.ud-toast--bottom.is-in { animation-name: ud-toast-up; }
.ud-toast button { margin-left: 6px; padding: 4px 8px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, 0.16); color: #ffd66b; font-weight: 900; cursor: pointer; }
.ud-toast .fa-circle-check { color: #5eead4; }
@keyframes ud-toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ud-toast-up { from { opacity: 0; transform: translate(-50%, 10px); } }

.ud-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 700; }
.ud-banner[hidden] { display: none; }
.ud-banner span { flex: 1; }
.ud-banner button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.6); cursor: pointer; }
.ud-banner--info { background: #e3effb; color: #1b5291; }
.ud-banner--warn { background: #fdf0d2; color: #7f4b08; }
.ud-banner--error { background: #fdeaec; color: #9b2c35; }
.ud-link[hidden] { display: none; }

.ud-carousel { position: relative; overflow: hidden; border-radius: 8px; }
.ud-carousel__track { display: flex; transition: transform 0.35s ease; }
.ud-carousel__slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 140px; background: var(--c); color: #fff; font-size: 18px; }
.ud-carousel__slide i { font-size: 30px; opacity: 0.7; }
.ud-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ud-ink); cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.ud-carousel__nav.is-prev { left: 8px; }
.ud-carousel__nav.is-next { right: 8px; }
.ud-dotsrow { display: flex; justify-content: center; gap: 6px; }
.ud-dotsrow button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d4cfe4; cursor: pointer; }
.ud-dotsrow button.is-on { width: 24px; border-radius: 5px; background: #4b2fa0; }

.ud-nav { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: #1d1840; }
.ud-frame--scroll.is-sticky .ud-nav { position: sticky; top: 0; z-index: 2; }
.ud-nav__logo { display: grid; place-items: center; width: 30px; height: 30px; margin-right: auto; border-radius: 6px; background: #8b5cf6; color: #fff; font-size: 14px; }
.ud-nav button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #c9bcff; font-size: 14px; font-weight: 600; cursor: pointer; }
.ud-nav button[aria-current="page"] { color: #fff; font-weight: 900; background: rgba(255, 255, 255, 0.12); }

.ud-frame--side { display: flex; }
.ud-side { display: flex; flex-direction: column; gap: 2px; width: 140px; padding: 8px; background: #f4f2fa; border-right: 1px solid var(--ud-line); transition: width 0.2s; flex: none; }
.ud-side__toggle { align-self: flex-end; width: 32px; height: 32px; border: 0; border-radius: 6px; background: #fff; color: #4b2fa0; cursor: pointer; }
.ud-side__item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: #4a4362; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.ud-side__item i { width: 16px; text-align: center; flex: none; }
.ud-side__item[aria-current="page"] { background: #4b2fa0; color: #fff; }
.ud-frame--side .ud-frame__body { flex: 1; min-width: 0; }
.ud-frame--side.is-collapsed .ud-side { width: 52px; }
.ud-frame--side.is-collapsed .ud-side__item span { display: none; }
.ud-frame--side.is-collapsed .ud-side__toggle { align-self: center; }

.ud-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: #8a83a3; }
.ud-crumbs button { padding: 2px 4px; border: 0; background: none; color: #4b2fa0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ud-crumbs strong { color: var(--ud-ink); }
.ud-crumb-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; }

.ud-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.ud-pages button { min-width: 36px; height: 36px; padding: 0 6px; border: 1px solid var(--ud-line); border-radius: 6px; background: #fff; color: var(--ud-ink); font-weight: 800; cursor: pointer; }
.ud-pages button[aria-current="page"] { background: #4b2fa0; border-color: #4b2fa0; color: #fff; }
.ud-pages button:disabled { color: #c9c4da; cursor: not-allowed; }
.ud-pages span { padding: 0 4px; color: #8a83a3; }

.ud-frame--feed { height: 220px; }
.ud-feed { margin: 0; padding: 8px 12px 0; list-style: none; }
.ud-feed li { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--ud-line); font-size: 14.5px; font-weight: 700; }
.ud-feed__dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #a7f3d0, #c4b5fd); flex: none; }
.ud-feed__foot { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; font-size: 14px; font-weight: 700; color: #6a6384; }
.ud-spin { display: inline-block; width: 18px; height: 18px; border: 3px solid #ddd8ec; border-top-color: #4b2fa0; border-radius: 50%; animation: ud-rot 0.8s linear infinite; }
.ud-spin--lg { width: 34px; height: 34px; border-width: 4px; }
@keyframes ud-rot { to { transform: rotate(360deg); } }

.ud-steps { display: flex; margin: 0; padding: 0; list-style: none; }
.ud-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ud-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: #ddd8ec; z-index: 0; }
.ud-steps li:first-child::before { display: none; }
.ud-steps li.is-done::before, .ud-steps li.is-cur::before { background: #4b2fa0; }
.ud-steps span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ddd8ec; color: #6a6384; font-weight: 900; font-size: 14px; }
.ud-steps .is-done span { background: #4b2fa0; color: #fff; }
.ud-steps .is-cur span { background: #fff; color: #4b2fa0; box-shadow: 0 0 0 3px #4b2fa0; }
.ud-steps small { font-size: 12px; font-weight: 800; color: #6a6384; text-align: center; }
.ud-steps .is-cur small { color: #4b2fa0; }
.ud-step-body { padding: 14px; border-radius: 8px; background: #fff; border: 1px solid var(--ud-line); font-weight: 800; text-align: center; }

.ud-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.ud-mini-card { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; min-width: 0; }
.ud-mini-card__img { display: grid; place-items: center; height: 52px; border-radius: 6px; background: var(--c, #e6e2f1); color: rgba(255, 255, 255, 0.85); font-size: 18px; }
.ud-mini-card strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-mini-card small { font-size: 11.5px; color: #8a83a3; font-weight: 700; }
.ud-skel .ud-mini-card__img, .ud-skel__line { background: #e6e2f1; }
.ud-skel__line { display: block; height: 10px; border-radius: 5px; width: 80%; }
.ud-skel__line--short { width: 50%; }
.ud-skel.is-shimmer .ud-mini-card__img, .ud-skel.is-shimmer .ud-skel__line {
  background: linear-gradient(90deg, #e6e2f1 25%, #f6f4fb 50%, #e6e2f1 75%); background-size: 200% 100%; animation: ud-shimmer 1.2s linear infinite;
}
@keyframes ud-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ud-fadein { animation: ud-fade 0.3s ease; }

.ud-tablewrap { overflow-x: auto; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; }
.ud-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ud-table th, .ud-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--ud-line); }
.ud-table th { background: #f4f2fa; }
.ud-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 900; color: #4b2fa0; cursor: pointer; }
.ud-table th button i { font-size: 11px; color: #8a83a3; }
.ud-table th[aria-sort="ascending"] button i, .ud-table th[aria-sort="descending"] button i { color: #4b2fa0; }
.ud-table.is-zebra tbody tr:nth-child(even) { background: #f8f7fc; }
.ud-table tr:last-child td { border-bottom: 0; }

.ud-order { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ud-order li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; cursor: grab; }
.ud-order li.is-drag { opacity: 0.45; }
.ud-grip { color: #8a83a3; font-size: 18px; line-height: 1; }
.ud-order__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: #efebfb; color: #4b2fa0; font-weight: 900; font-size: 13px; }
.ud-order__name { flex: 1; font-weight: 800; }
.ud-order button { width: 32px; height: 32px; border: 1px solid var(--ud-line); border-radius: 6px; background: #fff; color: #4b2fa0; font-size: 12px; cursor: pointer; }
.ud-order button:disabled { color: #d4cfe4; cursor: not-allowed; }

.ud-frame--top .ud-frame__body { padding-bottom: 60px; }
.ud-totop { position: sticky; bottom: 12px; left: calc(100% - 56px); display: grid; place-items: center; width: 44px; height: 44px; margin-top: -56px; border: 0; border-radius: 50%; background: #4b2fa0; color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 8px 18px -6px rgba(75, 47, 160, 0.7); }
.ud-totop[hidden] { display: none; }

.ud-loading { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; color: #4a4362; }
.ud-okicon { color: #0d8577; font-size: 24px; }
.ud-dotsload { display: inline-flex; gap: 5px; }
.ud-dotsload i { width: 10px; height: 10px; border-radius: 50%; background: #4b2fa0; animation: ud-bounce 0.9s ease-in-out infinite; }
.ud-dotsload i:nth-child(2) { animation-delay: 0.15s; }
.ud-dotsload i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ud-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-8px); opacity: 1; } }

.ud-progress { height: 14px; border-radius: 7px; background: #e6e2f1; overflow: hidden; }
.ud-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4b2fa0, #8b5cf6); transition: width 0.1s linear; }
.ud-ring { width: 96px; height: 96px; margin: 0 auto; }
.ud-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ud-ring circle { fill: none; stroke-width: 3.6; }
.ud-ring__bg { stroke: #e6e2f1; }
.ud-ring__fg { stroke: #4b2fa0; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 0.1s linear; }
.ud-col.ud-wide > .ud-btn { align-self: center; }

.ud-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; text-align: center; }
.ud-empty__art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #efebfb; color: #8b5cf6; font-size: 36px; }
.ud-empty strong { font-size: 17px; }

.ud-bell { position: relative; width: 52px; height: 52px; border: 1px solid var(--ud-line); border-radius: 8px; background: #fff; color: #4a4362; font-size: 22px; cursor: pointer; }
.ud-badge { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; border: 2px solid #fff; background: #e11d48; color: #fff; font-size: 11px; font-weight: 900; }
.ud-badge--count { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; }
.ud-badge--dot { top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; }
.ud-badge[hidden] { display: none; }

.ud-avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.ud-avatar span { display: grid; place-items: center; width: 64px; height: 64px; font-size: 28px; font-weight: 900; color: #fff; }
.ud-avatar--circle span { border-radius: 50%; }
.ud-avatar--square span { border-radius: 14px; }
.ud-avatar--photo span { background: linear-gradient(160deg, #fbbf24, #f472b6 60%, #8b5cf6); }
.ud-avatar--initial span { background: #0d8577; }
.ud-avatar--none span { background: #d9d5e6; color: #fff; }
.ud-avatar figcaption { font-size: 12.5px; font-weight: 700; color: #6a6384; }

.ud-dialog { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90%, 300px); padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 10px; animation: ud-fade 0.15s ease; }
.ud-dialog[hidden] { display: none; }
.ud-dialog strong { font-size: 17px; }
.ud-dialog p { margin: 0; font-size: 14px; color: #4a4362; }
.ud-frame__page .ud-card--row { width: 100%; }

.ud-todo { width: 100%; margin: 0; padding: 0; list-style: none; }
.ud-todo li { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px; border-bottom: 1px solid var(--ud-line); font-size: 14.5px; font-weight: 700; }
.ud-todo button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #fdeaec; color: #c2414b; cursor: pointer; }
.ud-count { color: #c9bcff; font-variant-numeric: tabular-nums; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .up .up-browse { grid-template-columns: minmax(0, 1fr) 420px; }
}
@media (max-width: 960px) {
  .up .up-browse { grid-template-columns: minmax(0, 1fr); }
  .up-order { grid-template-columns: minmax(0, 1fr); }
  .up-phone { position: relative; top: 0; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .up .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up .up-card { min-height: 104px; }
  .up-stage { padding: 18px 10px; }
  .up-opt { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ud-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ud-drawer--right { width: 80%; }
}
@media (max-width: 360px) {
  .up .up-grid { grid-template-columns: minmax(0, 1fr); }
  .ud-otp input { width: 36px; }
}
/* 동작 줄이기: 꾸밈 효과만 끈다. 로딩·반짝임·진행처럼 부품 자체가 움직임인 것은 그대로 둔다. */
@media (prefers-reduced-motion: reduce) {
  .kw-say.is-flash, .ud-modal-layer, .ud-modal, .ud-toast.is-in, .ud-fadein, .ud-dialog { animation: none; }
  .up-card, .ud-btn, .ud-stars button { transition: none; }
}
