/* Time Zone Converter — sky blue + sun yellow */
.tz-controls { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 18px; }
@media (max-width: 760px) { .tz-controls { grid-template-columns: minmax(0, 1fr); } }
.tz-when-row { display: flex; gap: 8px; }
.tz-when-row input[type=date] { flex: 1.2; min-width: 0; }
.tz-when-row input[type=time] { flex: 1; min-width: 0; }
#tzNow { min-height: 44px; flex: none; }
.tz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
#tzNow[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
#tzNow[aria-pressed=true] .tz-dot { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in oklab, #22c55e 25%, transparent); }
@media (prefers-color-scheme: dark) { #tzNow[aria-pressed=true] { color: var(--link); } }

.tz-search-wrap { position: relative; }
.tz-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto;
}
.tz-results li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.tz-results li span { color: var(--muted); font-size: 13px; text-align: right; }
.tz-results li[aria-selected=true], .tz-results li:hover { background: var(--tint); }
.tz-results .none { cursor: default; color: var(--muted); font-size: 14px; }

.tz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 4px 0 10px; }
.tz-head .check { margin: 0; }
.tz-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 550; }
.tz-legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tz-legend .w::before { background: var(--cw); } .tz-legend .e::before { background: var(--ce); } .tz-legend .n::before { background: var(--cn); }

.tz-list {
  --cw: color-mix(in oklab, #22c55e 30%, var(--surface)); --ce: color-mix(in oklab, #f59e0b 26%, var(--surface)); --cn: color-mix(in oklab, #1e3a8a 16%, var(--surface));
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.tz-legend { --cw: color-mix(in oklab, #22c55e 30%, var(--surface)); --ce: color-mix(in oklab, #f59e0b 26%, var(--surface)); --cn: color-mix(in oklab, #1e3a8a 16%, var(--surface)); }
.tz-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); }
.tz-row:first-child { border-top: 0; }
.tz-row.home { background: var(--tint); }
.tz-info { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-width: 0; }
.tz-name { min-width: 0; }
.tz-name b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-name span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.tz-row.home .tz-name span { color: var(--link); }
.tz-time { text-align: right; }
.tz-time b { display: block; font: 750 21px/1.15 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-time span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.shift { font-style: normal; font-weight: 700; color: var(--warn); }
.tz-act { display: flex; flex-direction: column; gap: 2px; }
.tz-ic { width: 26px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: 600 15px/1 system-ui, sans-serif; }
.tz-ic:hover:not([disabled]) { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--ink); }
.tz-ic[disabled] { opacity: .3; cursor: default; }

.tz-line { display: grid; grid-template-columns: repeat(24, minmax(26px, 1fr)); gap: 2px; padding: 8px 12px 8px 4px; overflow-x: auto; scrollbar-width: thin; }
.tz-line .c {
  position: relative; border: 0; border-radius: 5px; padding: 15px 0 5px; cursor: pointer; min-width: 0;
  font: 650 12.5px/1 var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; transition: transform .1s, box-shadow .1s;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 46px;
}
.tz-line .c small { font-size: 9px; font-weight: 600; opacity: .7; letter-spacing: -.01em; }
.tz-line .c em { position: absolute; top: 2px; left: 0; right: 0; font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.tz-line .c.w { background: var(--cw); } .tz-line .c.e { background: var(--ce); } .tz-line .c.n { background: var(--cn); color: var(--muted); }
.tz-line .c.mid { box-shadow: inset 2px 0 0 color-mix(in oklab, var(--ink) 30%, transparent); }
.tz-line .c:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent); }
.tz-line .c.sel { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -4px var(--accent); }
.tz-line .c.sel em, .tz-line .c.sel small { color: #fff; opacity: .9; }
.tz-tip { font-size: 13.5px; margin: 10px 2px 0; }
@media (max-width: 900px) {
  .tz-row { grid-template-columns: minmax(0, 1fr); }
  .tz-info { padding-bottom: 0; }
  .tz-line { padding: 6px 12px 10px; grid-template-columns: repeat(24, 36px); scroll-behavior: auto; }
}
