/* 13:00 메카닉 · 상세페이지 다시 만들기 — 왼쪽 편집 창 + 오른쪽 휴대폰 상세페이지.
   모든 선택자는 .s-detail2 아래. 곡선은 base.css·day.css 의 --glide --spring --overshoot --inout 만 쓴다. */

.s-detail2 { --d2-red: #e5484d; --d2-star: #ffb020; --d2-canvas: #f5f6f8; }
.s-detail2 .d2-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.s-detail2 svg { display: block; }

/* 책상(맥 바탕화면 느낌) */
.s-detail2 .card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; padding: 18px; border-radius: 22px;
  background: linear-gradient(150deg, #dbe6f8 0%, #edf1f7 46%, #f6eee3 100%); }

/* ───────── 편집 창 ───────── */
.s-detail2 .d2-win { height: 470px; display: grid; grid-template-rows: 34px auto minmax(0, 1fr) 26px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08); }
.s-detail2 .d2-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; background: #f6f6f5; border-bottom: 1px solid #e8e8e6; }
.s-detail2 .d2-lights { display: flex; gap: 8px; }
.s-detail2 .d2-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.s-detail2 .d2-lights i:nth-child(2) { background: #febc2e; }
.s-detail2 .d2-lights i:nth-child(3) { background: #28c840; }
.s-detail2 .d2-title { margin: 0; font-size: 12px; font-weight: 600; color: #4b4b47; white-space: nowrap; }
.s-detail2 .d2-state { justify-self: end; display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 11px; font-weight: 600; color: var(--grey); white-space: nowrap; }
.s-detail2 .d2-state i { width: 7px; height: 7px; border-radius: 50%; background: #c4c4bf; }
.s-detail2 .d2-state span { display: none; }
.s-detail2 .d2-state[data-state="idle"] .d2-st-idle, .s-detail2 .d2-state[data-state="busy"] .d2-st-busy, .s-detail2 .d2-state[data-state="done"] .d2-st-done { display: inline; }
.s-detail2 .d2-state[data-state="busy"] { color: var(--cobalt); }
.s-detail2 .d2-state[data-state="busy"] i { width: 10px; height: 10px; background: none; border: 1.6px solid rgba(22, 89, 239, .25); border-top-color: var(--cobalt); animation: spin .7s linear infinite; }
.s-detail2 .d2-state[data-state="done"] { color: var(--success); }
.s-detail2 .d2-state[data-state="done"] i { background: var(--success); }

/* 맡기는 칸 */
.s-detail2 .d2-ask { padding: 10px 12px; background: #fbfbfa; border-bottom: 1px solid #ececea; }
.s-detail2 .d2-field { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 5px 5px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e2e2df; transition: box-shadow .3s, background .3s; }
.s-detail2 .d2-ask.in .d2-field { box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 0 0 3px rgba(22, 89, 239, .12); }
.s-detail2 .d2-ask.go .d2-field { background: #f6f7f9; box-shadow: inset 0 0 0 1px #e6e7ea; }
.s-detail2 .d2-msg { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; }
.s-detail2 .d2-ph { color: #a2a29d; }
.s-detail2 .d2-ask.in .d2-ph { display: none; }
.s-detail2 .d2-send { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d7dae1; transition: background .25s, transform .3s var(--spring); }
.s-detail2 .d2-send svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-send.lit { background: var(--cobalt); }
.s-detail2 .d2-send.hit { transform: scale(.86); }
.s-detail2 .d2-sent { display: none; flex: none; padding-right: 6px; font-size: 11px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-ask.go .d2-send { display: none; }
.s-detail2 .d2-ask.go .d2-sent { display: inline; }
.s-detail2 .d2-att { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.s-detail2 .d2-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e1; font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap;
  opacity: 0; transform: translateY(5px) scale(.94); transition: opacity .3s, transform .4s var(--spring); }
.s-detail2 .d2-chip.in { opacity: 1; transform: none; }
.s-detail2 .d2-chip:first-child { padding-left: 4px; }
.s-detail2 .d2-thumbs { display: flex; }
.s-detail2 .d2-thumbs svg { width: 17px; height: 17px; border-radius: 4px; background: #f4ede3; box-shadow: 0 0 0 1.5px #fff; }
.s-detail2 .d2-thumbs svg + svg { margin-left: -6px; }
.s-detail2 .d2-ic { width: 14px; height: 14px; fill: none; stroke: var(--grey); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-who { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--grey); white-space: nowrap; }
.s-detail2 .d2-who img { width: 18px; height: 18px; border-radius: 5px; }

/* 작업 칸 */
.s-detail2 .d2-body { display: grid; grid-template-columns: 38px minmax(0, 1fr); min-height: 0; }
.s-detail2 .d2-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: #fafaf9; border-right: 1px solid #ececea; }
.s-detail2 .d2-rail i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #8d8d88; transition: background .25s, color .25s; }
.s-detail2 .d2-rail i.lit { background: rgba(22, 89, 239, .1); color: var(--cobalt); }
.s-detail2 .d2-rail svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-work { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.s-detail2 .d2-steps { list-style: none; margin: 0; padding: 8px 12px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; border-bottom: 1px solid #ececea; }
.s-detail2 .d2-steps li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #9a9a95; transition: color .3s; }
.s-detail2 .d2-steps li.busy { color: var(--cobalt); }
.s-detail2 .d2-steps li.checked { color: var(--ink); }
.s-detail2 .ck { width: 18px; height: 18px; }
.s-detail2 .ck svg { width: 12px; height: 12px; }

.s-detail2 .d2-canvas { position: relative; overflow: hidden; background: radial-gradient(#dcdee3 1px, transparent 1.3px) 0 0 / 14px 14px, var(--d2-canvas); }
.s-detail2 .d2-panel { position: absolute; inset: 10px 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .32s, transform .45s var(--glide); }
.s-detail2 .d2-panel.show { opacity: 1; transform: none; }
.s-detail2 .d2-ph2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; font-size: 12.5px; color: var(--ink); }
.s-detail2 .d2-ph2 > span { font-size: 11px; font-weight: 600; color: var(--grey); font-variant-numeric: tabular-nums; }
.s-detail2 .d2-cardish, .s-detail2 .d2-info0, .s-detail2 .d2-revs li, .s-detail2 .d2-old-h, .s-detail2 .d2-new-h, .s-detail2 .d2-sub, .s-detail2 .d2-blocks li, .s-detail2 .d2-grid, .s-detail2 .d2-done, .s-detail2 .d2-next {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(17, 17, 16, .05), inset 0 0 0 1px #e7e7e4; }

/* 0 · 상품 정보 */
.s-detail2 .d2-info0 { margin: 0; padding: 2px 12px; }
.s-detail2 .d2-info0 div { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0ee; }
.s-detail2 .d2-info0 div:last-child { border-bottom: 0; }
.s-detail2 .d2-info0 dt { font-size: 11px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-info0 dd { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-detail2 .d2-info0 dd b { font-weight: 800; }
.s-detail2 .d2-info0 dd s { font-size: 11px; color: #a2a29d; }
.s-detail2 .d2-st1 { width: 12px; height: 12px; }
.s-detail2 .d2-film { gap: 5px !important; }
.s-detail2 .d2-film svg { width: 34px; height: 34px; border-radius: 6px; background: #f4ede3; }

/* 1 · 조사 */
.s-detail2 .d2-revs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.s-detail2 .d2-revs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--glide), box-shadow .3s; }
.s-detail2 .d2-revs li.in { opacity: 1; transform: none; }
.s-detail2 .d2-revs li.hit { box-shadow: 0 1px 2px rgba(17, 17, 16, .05), inset 0 0 0 1.5px rgba(22, 89, 239, .35); }
.s-detail2 .d2-pd { flex: none; width: 34px; height: 34px; }
.s-detail2 .d2-revs li > div { min-width: 0; }
.s-detail2 .d2-rm { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-stars { display: inline-flex; gap: 1px; }
.s-detail2 .d2-stars svg { width: 11px; height: 11px; }
.s-detail2 .d2-rt { margin: 1px 0 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-detail2 .d2-rt mark { color: inherit; font-weight: 700; background: linear-gradient(transparent 52%, rgba(22, 89, 239, .26) 52%) no-repeat 0 0 / 0% 100%; transition: background-size .45s var(--glide); }
.s-detail2 .d2-revs li.hit mark { background-size: 100% 100%; }
.s-detail2 .d2-kw { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 11px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-kw b { padding: 3px 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 89, 239, .3); font-size: 11.5px; color: var(--cobalt); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring); }
.s-detail2 .d2-kw.in b { opacity: 1; transform: none; }
.s-detail2 .d2-kw.in b:nth-of-type(2) { transition-delay: .08s; }
.s-detail2 .d2-kw.in b:nth-of-type(3) { transition-delay: .16s; }

/* 2 · 문구 */
.s-detail2 .d2-tone { color: var(--cobalt) !important; }
.s-detail2 .d2-tag { flex: none; align-self: flex-start; padding: 1px 6px; border-radius: 5px; background: #f1f2f4; font-size: 11px; font-weight: 700; color: var(--grey); }
.s-detail2 .d2-tag.b { background: rgba(22, 89, 239, .1); color: var(--cobalt); }
.s-detail2 .d2-old-h, .s-detail2 .d2-sub { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.s-detail2 .d2-old-h p, .s-detail2 .d2-sub p { margin: 0; font-size: 12.5px; font-weight: 600; color: #8f8f8a; }
.s-detail2 .d2-old-h s { position: relative; text-decoration: none; }
.s-detail2 .d2-old-h s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.6px; border-radius: 1px; background: var(--d2-red); transform: scaleX(0); transform-origin: left; transition: transform .32s var(--inout); }
.s-detail2 .d2-old-h.go s::after { transform: scaleX(1); }
.s-detail2 .d2-new-h { position: relative; display: grid; gap: 4px; padding: 9px 12px 8px; transition: box-shadow .3s; }
.s-detail2 .d2-new-h.in { box-shadow: 0 6px 16px -10px rgba(22, 89, 239, .35), inset 0 0 0 1.5px var(--cobalt); }
.s-detail2 .d2-typed { min-height: 2.8em; margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.s-detail2 .d2-len { justify-self: end; font-size: 11px; font-weight: 600; color: #a2a29d; }
.s-detail2 .d2-sub { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--glide); }
.s-detail2 .d2-sub.in { opacity: 1; transform: none; }
.s-detail2 .d2-sub p { color: var(--ink); font-weight: 500; }

/* 3 · 이미지 */
.s-detail2 .d2-arrange { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; align-items: start; }
.s-detail2 .d2-blocks { min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.s-detail2 .d2-blocks li { min-width: 0; overflow: hidden; position: relative; height: 50px; display: flex; flex-direction: column; justify-content: center; padding: 0 24px 0 10px; transition: transform .56s var(--glide), box-shadow .25s; }
.s-detail2 .d2-bk-t { font-size: 11px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-bk-v { font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-detail2 .d2-bk3 { padding-left: 50px !important; z-index: 2; }
.s-detail2 .d2-bk3 svg { position: absolute; left: 8px; top: 8px; width: 34px; height: 34px; border-radius: 6px; }
.s-detail2 .d2-grip { position: absolute; right: 9px; top: 50%; width: 6px; height: 12px; margin-top: -6px;
  background: radial-gradient(circle, #b9b9b4 1.1px, transparent 1.4px) 0 0 / 3px 4px; }
.s-detail2 .d2-blocks.go .d2-bk1, .s-detail2 .d2-blocks.go .d2-bk2 { transform: translateY(56px); }
.s-detail2 .d2-blocks.go .d2-bk3 { transform: translateY(-112px); }
.s-detail2 .d2-bk3.lit { box-shadow: 0 14px 24px -12px rgba(17, 17, 16, .35), inset 0 0 0 1.5px var(--cobalt); }
.s-detail2 .d2-crop { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(17, 17, 16, .06), inset 0 0 0 1px #e7e7e4; }
.s-detail2 .d2-crop > svg { width: 100%; height: auto; aspect-ratio: 220 / 200; }
.s-detail2 .d2-cropbox { position: absolute; inset: 0; opacity: 0; transition: opacity .3s, inset .45s var(--glide);
  box-shadow: 0 0 0 999px rgba(17, 17, 16, .32), inset 0 0 0 1px rgba(255, 255, 255, .9);
  background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .55) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .55) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.s-detail2 .d2-cropbox.show { opacity: 1; }
.s-detail2 .d2-crop.half .d2-cropbox { inset: 5% 7% 7% 5%; }
.s-detail2 .d2-cropbox i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--cobalt); }
.s-detail2 .d2-cropbox i:nth-child(1) { left: -1px; top: -1px; border-width: 3px 0 0 3px; }
.s-detail2 .d2-cropbox i:nth-child(2) { right: -1px; top: -1px; border-width: 3px 3px 0 0; }
.s-detail2 .d2-cropbox i:nth-child(3) { left: -1px; bottom: -1px; border-width: 0 0 3px 3px; }
.s-detail2 .d2-cropbox i:nth-child(4) { right: -1px; bottom: -1px; border-width: 0 3px 3px 0; }
.s-detail2 .d2-cropbox b { position: absolute; background: var(--cobalt); border-radius: 2px; }
.s-detail2 .d2-cropbox b:nth-of-type(1) { left: 50%; top: -1px; width: 18px; height: 3px; margin-left: -9px; }
.s-detail2 .d2-cropbox b:nth-of-type(2) { top: 50%; right: -1px; width: 3px; height: 18px; margin-top: -9px; }
.s-detail2 .d2-dim { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(17, 17, 16, .66); font-size: 11px; font-weight: 600; color: #fff; }

/* 4 · 편집 */
.s-detail2 .d2-tools { display: inline-flex; gap: 8px; }
.s-detail2 .d2-tools svg { width: 16px; height: 16px; fill: none; stroke: #8d8d88; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-grid { position: relative; overflow: hidden; }
.s-detail2 .d2-grid table { width: 100%; border-collapse: collapse; }
.s-detail2 .d2-grid tr { height: 40px; }
.s-detail2 .d2-grid tr + tr { border-top: 1px solid #efefed; }
.s-detail2 .d2-grid th { width: 70px; padding: 0 12px; background: #fafaf9; border-right: 1px solid #efefed; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--grey); }
.s-detail2 .d2-grid td { padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.s-detail2 .d2-grid td span { opacity: 0; transition: opacity .25s; }
.s-detail2 .d2-grid tr.in td span { opacity: 1; }
.s-detail2 .d2-grid em { font-style: normal; font-weight: 800; color: var(--d2-red); }
.s-detail2 .d2-grid b { font-weight: 800; }
.s-detail2 .d2-grid s { font-size: 11px; font-weight: 500; color: #a2a29d; }
.s-detail2 .d2-sel { position: absolute; left: 70px; right: 0; top: calc(var(--row, 0) * 41px); height: 40px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--cobalt); background: rgba(22, 89, 239, .05); opacity: 0; transition: opacity .2s, top .26s var(--glide); }
.s-detail2 .d2-sel.show { opacity: 1; }

/* 5 · 끝 */
.s-detail2 .d2-done { list-style: none; margin: 0; padding: 4px 12px; }
.s-detail2 .d2-done li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; font-weight: 500; color: var(--ink); opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .4s var(--glide); }
.s-detail2 .d2-done li + li { border-top: 1px solid #f0f0ee; }
.s-detail2 .d2-done li.checked { opacity: 1; transform: none; }
.s-detail2 .d2-done b { display: inline-block; min-width: 36px; margin-right: 4px; font-size: 11px; font-weight: 700; color: var(--cobalt); }
.s-detail2 .d2-next { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; font-size: 12px; line-height: 1.45; color: var(--grey); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .45s var(--glide); }
.s-detail2 .d2-next.in { opacity: 1; transform: none; }
.s-detail2 .d2-next b { color: var(--ink); }
.s-detail2 .d2-35 { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s-detail2 .d2-fine { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--grey); }

/* 상태 줄 */
.s-detail2 .d2-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; background: #fafaf9; border-top: 1px solid #ececea; font-size: 11px; font-weight: 500; color: var(--grey); white-space: nowrap; }
.s-detail2 .d2-sline { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.s-detail2 .d2-sline::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #c4c4bf; }
.s-detail2.act2 .d2-sline::before { background: var(--cobalt); }
.s-detail2.act3 .d2-sline::before { background: var(--success); }

/* ───────── 휴대폰 ───────── */
.s-detail2 .d2-phone { position: relative; width: 220px; height: 470px; padding: 7px; border-radius: 40px; background: #1b1c20;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), inset 0 0 0 1.5px #3c3e44, inset 0 0 0 3.5px #121316; }
.s-detail2 .d2-phone::before, .s-detail2 .d2-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2b30; }
.s-detail2 .d2-phone::before { left: -2px; top: 104px; height: 40px; }
.s-detail2 .d2-phone::after { right: -2px; top: 130px; height: 58px; }
.s-detail2 .d2-scr { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; isolation: isolate; }
.s-detail2 .d2-island { position: absolute; z-index: 5; left: 50%; top: 8px; width: 56px; height: 18px; margin-left: -28px; border-radius: 12px; background: #050505; }
.s-detail2 .d2-sb { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 6px 14px 0 22px; background: #fff; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-detail2 .d2-sbi { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.s-detail2 .d2-sbi svg { height: 9px; width: auto; fill: currentColor; }
.s-detail2 .d2-nav { position: relative; z-index: 4; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 8px; background: #fff; border-bottom: 1px solid #efefed; }
.s-detail2 .d2-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-nav-t { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.s-detail2 .d2-cart { position: relative; }
.s-detail2 .d2-cart b { position: absolute; right: -7px; top: -5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--d2-red); color: #fff; font-size: 11px; line-height: 15px; font-weight: 700; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.s-detail2 .d2-view { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; overflow: hidden; }
.s-detail2 .d2-page { padding-bottom: 66px; will-change: transform; }

/* 접혔다 펴지는 칸 · 바뀌는 칸 */
.s-detail2 .d2-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--glide); }
.s-detail2 .d2-fold > div { min-height: 0; overflow: hidden; }
.s-detail2 .d2-fold.in { grid-template-rows: 1fr; }
.s-detail2 .d2-f-oldph { grid-template-rows: 1fr; }
.s-detail2 .d2-f-oldph.go { grid-template-rows: 0fr; }
.s-detail2 .d2-swap { display: grid; }
.s-detail2 .d2-swap > * { grid-area: 1 / 1; transition: opacity .45s var(--glide); }
.s-detail2 .d2-swap > .d2-new { opacity: 0; }
.s-detail2 .d2-swap.go > .d2-old { opacity: 0; }
.s-detail2 .d2-swap.go > .d2-new { opacity: 1; }

.s-detail2 .d2-hero { position: relative; }
.s-detail2 .d2-hero svg { width: 100%; height: auto; aspect-ratio: 220 / 168; }
.s-detail2 .d2-cnt { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 10px; background: rgba(17, 17, 16, .42); font-size: 11px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.s-detail2 .d2-info { display: grid; gap: 2px; padding: 9px 12px 12px; }
.s-detail2 .d2-info p { margin: 0; }
.s-detail2 .d2-store { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #5d5d59; }
.s-detail2 .d2-store svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-store .d2-chev { width: 11px; height: 11px; }
.s-detail2 .d2-name { font-size: 13px; line-height: 1.38; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.s-detail2 .d2-rate { display: flex; align-items: center; gap: 3px; font-size: 11.5px; }
.s-detail2 .d2-rate svg { width: 12px; height: 12px; }
.s-detail2 .d2-rate b { font-weight: 700; color: var(--ink); }
.s-detail2 .d2-rate span { color: var(--grey); }
.s-detail2 .d2-price { margin-top: 3px; }
.s-detail2 .d2-price .d2-old { font-size: 11.5px; color: var(--grey); align-self: center; }
.s-detail2 .d2-price .d2-old b { margin-left: 2px; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.s-detail2 .d2-price .d2-new { display: flex; align-items: baseline; gap: 5px; }
.s-detail2 .d2-price em { font-style: normal; font-size: 16px; font-weight: 800; color: var(--d2-red); }
.s-detail2 .d2-price .d2-new b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-detail2 .d2-price s { font-size: 11px; color: #a2a29d; }
.s-detail2 .d2-badges { display: flex; gap: 4px; padding-top: 5px; }
.s-detail2 .d2-badges span { padding: 2px 6px; border-radius: 5px; background: #edf3ff; font-size: 11px; font-weight: 700; color: #1c4fc4; }
.s-detail2 .d2-ship { display: flex; align-items: center; gap: 4px; margin-top: 4px !important; font-size: 11px; color: var(--grey); white-space: nowrap; }
.s-detail2 .d2-ship svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-ship b { font-weight: 700; color: var(--ink); }
.s-detail2 .d2-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 6px solid #f3f3f1; border-bottom: 1px solid #ececea; text-align: center; font-size: 11.5px; font-weight: 600; color: #9a9a95; }
.s-detail2 .d2-tabs span { padding: 8px 0 7px; }
.s-detail2 .d2-tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.s-detail2 .d2-hl .d2-old { padding: 14px 14px 12px; }
.s-detail2 .d2-oh { margin: 0; font-size: 15px; line-height: 1.32; font-weight: 800; letter-spacing: -.03em; color: var(--d2-red); }
.s-detail2 .d2-op { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--grey); }
.s-detail2 .d2-hl .d2-new { padding: 18px 12px 16px; background: #fbf5ec; text-align: center; }
.s-detail2 .d2-k { margin: 0; font-size: 11px; font-weight: 700; color: var(--cobalt); }
.s-detail2 .d2-h { margin: 4px 0 12px; font-size: 15.5px; line-height: 1.36; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.s-detail2 .d2-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.s-detail2 .d2-feat li { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #45453f; }
.s-detail2 .d2-feat svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px -3px rgba(17, 17, 16, .18); fill: none; stroke: var(--cobalt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-detail2 .d2-oldph svg { width: 100%; height: auto; }

.s-detail2 .d2-sec { padding: 16px 12px; border-top: 6px solid #f3f3f1; }
.s-detail2 .d2-sec p { margin: 0; }
.s-detail2 .d2-h3 { margin: 0 0 8px !important; font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.s-detail2 .d2-score { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--grey); }
.s-detail2 .d2-score b { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.s-detail2 .d2-score .d2-stars svg { width: 12px; height: 12px; }
.s-detail2 .d2-bars { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px; }
.s-detail2 .d2-bars li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 28px; align-items: center; gap: 6px; font-size: 11px; color: var(--text); }
.s-detail2 .d2-bars i { position: relative; height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; }
.s-detail2 .d2-bars i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--cobalt); transform: scaleX(var(--v)); transform-origin: left; }
.s-detail2 .d2-bars em { font-style: normal; font-weight: 700; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-detail2 .d2-rc { margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: #f7f7f5; }
.s-detail2 .d2-rcm { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--grey); }
.s-detail2 .d2-rcm .d2-stars svg { width: 10px; height: 10px; }
.s-detail2 .d2-rc p:last-child { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--ink); }
.s-detail2 .d2-tb table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.s-detail2 .d2-tb th { width: 64px; padding: 7px 0; text-align: left; font-weight: 600; color: var(--grey); border-bottom: 1px solid #efefed; }
.s-detail2 .d2-tb td { padding: 7px 0; text-align: right; font-weight: 700; color: var(--ink); border-bottom: 1px solid #efefed; font-variant-numeric: tabular-nums; }
.s-detail2 .d2-end { display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 14px 12px; border-top: 6px solid #f3f3f1; font-size: 11px; color: var(--grey); }
.s-detail2 .d2-end svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.s-detail2 .d2-buy { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px 20px; background: #fff; border-top: 1px solid #ececea; }
.s-detail2 .d2-like { flex: none; display: grid; justify-items: center; width: 40px; font-size: 11px; font-weight: 600; color: var(--grey); font-variant-numeric: tabular-nums; }
.s-detail2 .d2-like svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.s-detail2 .d2-btn { flex: 1; display: grid; place-items: center; height: 36px; border-radius: 9px; background: #17181b; color: #fff; font-size: 13px; font-weight: 700; }
.s-detail2 .d2-home { position: absolute; z-index: 5; left: 50%; bottom: 6px; width: 74px; height: 4px; margin-left: -37px; border-radius: 3px; background: #111; }

/* ───────── 티파이브 커서 ───────── */
.s-detail2 .d2-cur { position: absolute; z-index: 8; left: 0; top: 0; pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 200px), var(--y, 200px), 0); transition: transform .62s var(--glide), opacity .3s; }
.s-detail2 .d2-cur.show { opacity: 1; }
.s-detail2 .d2-cur svg { width: 19px; height: 19px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); transform-origin: 3px 2px; transition: transform .2s var(--spring); }
.s-detail2 .d2-cur path { fill: var(--cobalt); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.s-detail2 .d2-cur span { position: absolute; left: 13px; top: 17px; padding: 1px 6px; border-radius: 6px; background: var(--cobalt); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.s-detail2 .d2-cur::before { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cobalt); opacity: 0; transform: scale(.3); }
.s-detail2 .d2-cur.hit::before { animation: d2-ring .5s var(--glide); }
.s-detail2 .d2-cur.flip span { left: auto; right: 2px; }
.s-detail2 .d2-cur.grab svg { transform: scale(.88); }
@keyframes d2-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.3); } }

/* 알림: 편집 창 오른쪽 위 */
.s-detail2 .notify { top: -16px; right: 264px; }

/* ───────── 중간 너비 ───────── */
@media (max-width: 1180px) and (min-width: 861px) {
  .s-detail2 .card { grid-template-columns: minmax(0, 1fr) 206px; gap: 16px; padding: 16px; }
  .s-detail2 .d2-phone { width: 206px; }
  .s-detail2 .d2-who { display: none; }
  .s-detail2 .notify { right: 238px; }
}

/* 시계 옆이라 창이 가장 좁은 너비: 왼쪽 도구 막대를 접어 글이 잘리지 않게 */
@media (min-width: 861px) and (max-width: 930px) {
  .s-detail2 .card { gap: 12px; padding: 12px; }
  .s-detail2 .d2-body { grid-template-columns: minmax(0, 1fr); }
  .s-detail2 .d2-rail { display: none; }
}

/* 창이 좁아지는 구간: 맡긴 말이 잘리지 않게 보낸 시각을 빼고, 제목은 양옆과 띄운 채 말줄임 */
@media (min-width: 861px) and (max-width: 975px), (min-width: 1181px) and (max-width: 1210px) {
  /* detail.js가 커서 시작 위치를 이 자리에서 읽으므로 display: none을 쓰지 않는다 */
  .s-detail2 .d2-ask.go .d2-sent { display: inline-block; visibility: hidden; width: 0; height: 0; padding: 0; overflow: hidden; white-space: nowrap; }
}
@media (min-width: 931px) and (max-width: 975px) {
  .s-detail2 .d2-body { grid-template-columns: minmax(0, 1fr); }
  .s-detail2 .d2-rail { display: none; }
}
@media (min-width: 861px) and (max-width: 1060px), (min-width: 1181px) and (max-width: 1270px) {
  .s-detail2 .d2-bar { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; }
  .s-detail2 .d2-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; }
}

/* ───────── 휴대폰: 휴대폰 화면 먼저, 단계는 아래에 작게 ───────── */
@media (max-width: 860px) {
  .s-detail2 .card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; }
  .s-detail2 .d2-win { display: contents; }
  .s-detail2 .d2-bar, .s-detail2 .d2-status, .s-detail2 .d2-rail, .s-detail2 .d2-who { display: none; }
  .s-detail2 .d2-ask { order: 1; padding: 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 16, .05), inset 0 0 0 1px #e7e7e4; }
  .s-detail2 .d2-field { align-items: flex-start; padding: 7px 5px 7px 11px; }
  .s-detail2 .d2-msg { min-height: 2.9em; font-size: 14px; white-space: normal; }
  .s-detail2 .d2-chip { height: 26px; font-size: 12px; }
  .s-detail2 .d2-sent { padding-top: 4px; font-size: 12px; }

  .s-detail2 .d2-phone { order: 2; justify-self: center; width: 250px; height: 500px; }
  .s-detail2 .d2-body { order: 3; display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 16, .05), inset 0 0 0 1px #e7e7e4; }
  .s-detail2 .d2-steps { padding: 9px 12px; }
  .s-detail2 .d2-steps li { font-size: 12.5px; gap: 5px; }
  .s-detail2 .d2-canvas { height: 272px; }
  .s-detail2 .d2-panel { inset: 10px; gap: 7px; }

  .s-detail2 .d2-ph2 { font-size: 13px; }
  .s-detail2 .d2-ph2 > span, .s-detail2 .d2-tag, .s-detail2 .d2-len, .s-detail2 .d2-dim, .s-detail2 .d2-kw, .s-detail2 .d2-kw b, .s-detail2 .d2-rm,
  .s-detail2 .d2-info0 dt, .s-detail2 .d2-info0 dd, .s-detail2 .d2-info0 dd s, .s-detail2 .d2-bk-t, .s-detail2 .d2-bk-v, .s-detail2 .d2-grid th, .s-detail2 .d2-grid s,
  .s-detail2 .d2-done b, .s-detail2 .d2-next, .s-detail2 .d2-fine, .s-detail2 .d2-35 { font-size: 12px; }
  .s-detail2 .d2-rt, .s-detail2 .d2-old-h p, .s-detail2 .d2-sub p, .s-detail2 .d2-grid td, .s-detail2 .d2-done li { font-size: 13px; }
  .s-detail2 .d2-info0 div { padding: 7px 0; }
  .s-detail2 .d2-revs li { padding: 7px 9px; gap: 9px; }
  .s-detail2 .d2-pd { width: 30px; height: 30px; }
  .s-detail2 .d2-typed { font-size: 15px; }
  .s-detail2 .d2-arrange { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
  .s-detail2 .d2-grid th { width: 64px; }
  .s-detail2 .d2-sel { left: 64px; }
  .s-detail2 .d2-done li { padding: 6px 0; }
  .s-detail2 .d2-done b { min-width: 40px; }
  .s-detail2 .d2-next { padding: 8px 10px; }

  /* 휴대폰 화면 속 글자도 12px 이상 */
  .s-detail2 .d2-store, .s-detail2 .d2-rate, .s-detail2 .d2-price .d2-old, .s-detail2 .d2-price s, .s-detail2 .d2-badges span, .s-detail2 .d2-ship, .s-detail2 .d2-tabs, .s-detail2 .d2-cnt,
  .s-detail2 .d2-k, .s-detail2 .d2-op, .s-detail2 .d2-feat li, .s-detail2 .d2-score, .s-detail2 .d2-bars li, .s-detail2 .d2-rcm, .s-detail2 .d2-tb table, .s-detail2 .d2-end, .s-detail2 .d2-like,
  .s-detail2 .d2-cur span, .s-detail2 .d2-cart b { font-size: 12px; }
  .s-detail2 .d2-name { font-size: 14px; }
  .s-detail2 .d2-h { font-size: 16.5px; }
  .s-detail2 .d2-rc p:last-child { font-size: 12.5px; }
  .s-detail2 .d2-bars li { grid-template-columns: 82px minmax(0, 1fr) 30px; }
  .s-detail2 .d2-cart b { min-width: 16px; height: 16px; line-height: 16px; }

  .s-detail2 .notify { top: 6px; right: auto; left: 0; }
}

/* 동작 줄이기: 마지막 모습 그대로(움직임은 base.css 가 끈다) */
@media (prefers-reduced-motion: reduce) {
  .s-detail2 .d2-cur { display: none; }
  .s-detail2 .d2-state[data-state="busy"] i { animation: none; }
  .s-detail2 .d2-page { transform: none !important; }
}
