/* 해외 시간 변환기 */
[data-app="world-clock"]{ --wc-in:12px; container-type:inline-size; display:flex; flex-direction:column; gap:10px; }   /* --wc-in: 시간 막대·도시 막대 모두 같은 안쪽 여백 → 눈금이 위아래로 딱 맞음 */
/* 기준 도시(한 줄 전체) / 날짜 · 시각 — 좁은 카드(폰)에서는 이름표를 왼쪽에 두고 한 줄에 하나씩(날짜·긴 도시 이름이 잘리지 않게) */
[data-app="world-clock"] .wc-ctl{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
[data-app="world-clock"] .wc-ctl .wc-bf{ grid-column:1 / -1; }
[data-app="world-clock"] .wc-f{ display:flex; flex-direction:column; gap:3px; min-width:0; }
[data-app="world-clock"] .wc-f .ndt-in{ min-width:0; max-width:100%; }
[data-app="world-clock"] .wc-ctl .ndt-in, [data-app="world-clock"] .wc-add{ min-height:40px; }   /* 누르는 칸 40px */
@container (max-width:399px){
  [data-app="world-clock"] .wc-ctl{ grid-template-columns:minmax(0,1fr); gap:6px; }
  [data-app="world-clock"] .wc-f{ flex-direction:row; align-items:center; gap:8px; }
  [data-app="world-clock"] .wc-f .ndt-k{ flex:none; width:4.4em; }
  [data-app="world-clock"] .wc-f .ndt-in{ flex:1 1 0; width:auto; }
}
[data-app="world-clock"] .wc-tag{ display:inline-block; padding:0 6px; border-radius:999px; font-style:normal; font-size:11px; font-weight:800; line-height:18px; white-space:nowrap; }
[data-app="world-clock"] .wc-tag.now{ background:#E7F1FF; color:#1D4ED8; }
[data-app="world-clock"] .wc-tag.b{ background:#1A1A1A; color:#fff; }
[data-app="world-clock"] .wc-tag.dst{ background:#FFF1D6; color:#8A5A00; }
[data-app="world-clock"] .wc-tag.day{ background:#FDE7E7; color:#B42318; }

/* 고른 시각 + 시간 막대 */
[data-app="world-clock"] .wc-pick{ padding:10px var(--wc-in) 6px; border-radius:12px; background:#F3F4F6; }
[data-app="world-clock"] .wc-ph{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:6px 10px; }
[data-app="world-clock"] .wc-pt{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; min-width:0; }
[data-app="world-clock"] .wc-big{ font-size:28px; font-weight:900; line-height:1.1; font-variant-numeric:tabular-nums; white-space:nowrap; }
[data-app="world-clock"] .wc-sub{ font-size:12.5px; font-weight:600; color:#555B64; }
[data-app="world-clock"] .wc-step{ display:flex; gap:4px; }
[data-app="world-clock"] .wc-nowb{ margin-top:6px; }
[data-app="world-clock"] .wc-bar{ position:relative; height:40px; margin:4px 0 0; cursor:pointer; touch-action:none; outline:none; }
[data-app="world-clock"] .wc-track{ position:absolute; left:0; right:0; top:50%; height:6px; margin-top:-3px; border-radius:3px; background:#CDD3DB; }
[data-app="world-clock"] .wc-knob{ position:absolute; top:50%; left:0; width:24px; height:24px; border-radius:50%; background:#1A1A1A; border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35); transform:translate(-50%,-50%); }
[data-app="world-clock"] .wc-bar:focus-visible .wc-knob{ outline:3px solid #93B4F5; outline-offset:2px; }
[data-app="world-clock"] .wc-axis{ position:relative; height:16px; font-size:11px; color:#6B717B; font-variant-numeric:tabular-nums; }
[data-app="world-clock"] .wc-axis span{ position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }
[data-app="world-clock"] .wc-axis span:nth-child(1){ left:0; transform:none; }
[data-app="world-clock"] .wc-axis span:nth-child(2){ left:25%; }
[data-app="world-clock"] .wc-axis span:nth-child(3){ left:50%; }
[data-app="world-clock"] .wc-axis span:nth-child(4){ left:75%; }
[data-app="world-clock"] .wc-axis span:nth-child(5){ right:0; transform:none; }

/* 도시 줄 */
[data-app="world-clock"] .wc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
[data-app="world-clock"] .wc-rh{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:6px; }
[data-app="world-clock"] .wc-name{ display:flex; flex-wrap:wrap; align-items:center; gap:3px 5px; min-width:0; }
[data-app="world-clock"] .wc-name b{ font-size:14.5px; font-weight:800; overflow-wrap:anywhere; }
[data-app="world-clock"] .wc-time{ font-size:18px; font-weight:900; font-variant-numeric:tabular-nums; white-space:nowrap; }
[data-app="world-clock"] .wc-del{ min-width:32px; padding:0 8px; color:#6B717B; }
[data-app="world-clock"] .wc-rs{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; margin:1px 0 6px; font-size:12.5px; color:#555B64; }
[data-app="world-clock"] .wc-st{ font-weight:800; }
[data-app="world-clock"] .wc-st.w{ color:#15803D; } [data-app="world-clock"] .wc-st.d{ color:#8A5A00; }
[data-app="world-clock"] .wc-st.n{ color:#3F4A5C; } [data-app="world-clock"] .wc-st.x{ color:#8A5A00; }
[data-app="world-clock"] .wc-strip{ position:relative; height:14px; margin:0 var(--wc-in); border-radius:4px; background:#E9ECEF; cursor:pointer; touch-action:pan-y; }
[data-app="world-clock"] .wc-mk{ position:absolute; top:-4px; bottom:-4px; left:0; width:2px; margin-left:-1px; border-radius:1px; background:#111827; box-shadow:0 0 0 1.5px #fff; pointer-events:none; z-index:1; }
[data-app="world-clock"] .wc-mid{ position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:#fff; pointer-events:none; }

/* 모두 겹치는 근무 시간 */
[data-app="world-clock"] .wc-ov{ padding:8px 10px 10px; border-radius:12px; background:#EEF8F2; }
[data-app="world-clock"] .wc-ovh{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; margin:0 0 6px; font-size:13px; line-height:1.5; }
[data-app="world-clock"] .wc-ovh b{ font-weight:800; color:#14532D; }
[data-app="world-clock"] .wc-ovb{ font-size:11.5px; font-weight:600; color:#4B6B57; }
[data-app="world-clock"] .wc-ovt{ margin:6px 0 0; font-size:13px; font-weight:700; line-height:1.5; color:#14532D; }
[data-app="world-clock"] .wc-ovs{ margin:0 calc(var(--wc-in) - 10px); background:#fff; }
[data-app="world-clock"] .wc-pairs{ list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:2px; font-size:12.5px; color:#33373D; }
[data-app="world-clock"] .wc-pairs b{ font-weight:800; }
[data-app="world-clock"] .wc-legend{ list-style:none; display:flex; flex-wrap:wrap; gap:3px 12px; margin:0; padding:0; font-size:11.5px; color:#6B717B; }
[data-app="world-clock"] .wc-legend i{ display:inline-block; width:10px; height:10px; margin-right:4px; border-radius:3px; vertical-align:-1px; }
[data-app="world-clock"] .wc-legend .w{ background:#3BA776; } [data-app="world-clock"] .wc-legend .d{ background:#DCE3EA; }
[data-app="world-clock"] .wc-legend .n{ background:#5B677C; } [data-app="world-clock"] .wc-legend .x{ background:#EBDDC3; }
[data-app="world-clock"] .wc-legend .m{ width:16px; background:linear-gradient(90deg,#5B677C 0 7px,#fff 7px 9px,#3BA776 9px); }

/* 도시 추가 · 안내 */
[data-app="world-clock"] .wc-addrow{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
[data-app="world-clock"] .wc-add{ min-width:0; }
[data-app="world-clock"] .wc-msg{ margin:0; min-height:1.4em; font-size:12.5px; font-weight:700; color:#0D5C33; }
[data-app="world-clock"] .wc-foot{ margin:0; }
[data-app="world-clock"] .wc-foot.bad{ color:#B42318; font-weight:700; }   /* 저장이 막혔을 때 */
@media (max-width:400px){
  [data-app="world-clock"] .wc-big{ font-size:24px; }
  [data-app="world-clock"] .wc-time{ font-size:16px; }
}
