/* Time Zone Converter — 工具自带的样式
   只写"这个工具特有"的东西（时区芯片、差异列、DST 徽标）。
   通用外观（toolbox / field / runs__table / alert）来自外壳的全局样式 ——
   所以新增工具不需要去改全局 CSS。 */

.tz-controls {
  grid-template-columns: 1fr 220px auto;
}

.btn {
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { background: var(--bg-soft); }

.tz-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
}
.tz-targets:empty { display: none; }

.tz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.tz-chip__name { font-size: 12.5px; }
.tz-chip__x {
  border: 0;
  background: transparent;
  color: var(--fg-faint);
  font-size: 15px;
  line-height: 1;
  padding: 0 3px;
  cursor: pointer;
  border-radius: 50%;
}
.tz-chip__x:hover { color: var(--err-fg); }

.tz-add { margin-top: 14px; }
.tz-add .field__input { max-width: 340px; }

.sentence__zone {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 6px;
}
.sentence__off {
  font-size: 12px;
  color: var(--fg-faint);
  font-weight: 400;
  margin-left: 4px;
}

.tz-table-wrap { overflow-x: auto; }
.tz-table .tz-zone { font-size: 13px; white-space: nowrap; }
.tz-table .tz-time { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.tz-table .tz-delta { color: var(--fg-muted); font-size: 13px; text-align: right; white-space: nowrap; }

.tz-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--warn-fg);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  vertical-align: 1px;
}

@media (max-width: 640px) {
  .tz-controls { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .tz-table .tz-delta { text-align: left; }
}
