/* 시안 목록 — gl-sian.js 가 그리는 것의 모양.
 *
 * 🔴 확인용 주소에만 실린다. 운영 빌드(--release)는 이 파일을 넣지 않는다.
 * 🔴 오른쪽 가장자리 가운데에 좁은 탭으로 둔다 — 왼쪽 아래(색 고르기 판) · 오른쪽 아래(문의하기 · 맨 위로) ·
 *    아래쪽(휴대폰 구매 막대)과 겹치지 않게. 목록은 탭 왼쪽으로 펼친다.
 * 우리끼리 보는 도구라 고객사 색을 따르지 않고 어두운 반투명 한 벌로 둔다 — 시안을 바꿔도 도구 모양은 같다.
 */
.gl-sian {
  position: fixed; z-index: 81; right: env(safe-area-inset-right, 0px); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
  font: 500 13px/1.4 "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
.gl-sian-tab {
  writing-mode: vertical-rl; width: 24px; padding: 12px 0; cursor: pointer;
  border: 0; border-radius: 10px 0 0 10px;
  background: rgba(28, 25, 21, 0.9); color: #f6f2ec;
  font: 600 11px/1 inherit; font-family: inherit; letter-spacing: 0.08em;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.45);
}
.gl-sian-tab:focus-visible { outline: 3px solid #f6f2ec; outline-offset: -3px; }

.gl-sian-card {
  width: min(320px, calc(100vw - 44px)); max-height: min(80vh, 560px); overflow-y: auto;
  margin-right: 6px; padding: 12px 12px 10px;
  background: rgba(28, 25, 21, 0.94); color: #f6f2ec;
  border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.gl-sian-card[hidden] { display: none; }
.gl-sian-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; font-size: 13px; }
.gl-sian-close {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: inherit; font-size: 20px; line-height: 1;
}
.gl-sian-close:hover { background: rgba(255, 255, 255, 0.1); }
.gl-sian-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gl-sian-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; cursor: pointer; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: inherit; font: inherit;
}
.gl-sian-item:hover { background: rgba(255, 255, 255, 0.08); }
.gl-sian-item:focus-visible { outline: 2px solid #f6f2ec; outline-offset: -2px; }
.gl-sian-item.is-current { border-color: rgba(246, 242, 236, 0.55); background: rgba(255, 255, 255, 0.06); }
.gl-sian-dots { display: flex; flex: none; }
.gl-sian-dots i {
  width: 14px; height: 14px; border-radius: 50%; margin-left: -4px;
  box-shadow: 0 0 0 1.5px rgba(28, 25, 21, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.gl-sian-dots i:first-child { margin-left: 0; }
.gl-sian-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gl-sian-name { font-weight: 600; font-size: 13px; }
.gl-sian-desc { font-size: 12px; opacity: 0.78; }
.gl-sian-now {
  flex: none; padding: 3px 7px; border-radius: 999px;
  background: #f6f2ec; color: #1c1915; font-size: 11px; font-weight: 600;
}
.gl-sian-foot { margin: 8px 2px 0; font-size: 11px; opacity: 0.65; }
@media (prefers-reduced-motion: no-preference) {
  .gl-sian-item { transition: background-color 0.15s; }
}
/* 휴대폰 — 색 고르기 판(gl-tint)이 화면 폭을 거의 다 쓰므로 그 판이 열려 있는 동안 탭을 비킨다(판 오른쪽 끝을 가리지 않게).
   반대로 시안 목록을 연 채 색 고르기를 누르면 바깥 누름으로 목록이 닫힌다(gl-sian.js). */
@media (max-width: 759.98px) {
  body:has(.gl-tint-card:not([hidden])) .gl-sian { display: none; }
}
