/* World Time Zone Meeting Planner — content styles.
   Prefix: --tz-  /  .tz-

   Reference point: a 9-row city table with a per-row working-hours
   status is the centerpiece and the whole point — not a hero figure,
   since there's no single "the answer", only a table to scan for green
   rows. First reference-cluster tool built this loop.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --tz-surface: #ffffff;
  --tz-panel:   #f5f6f7;
  --tz-line:    #dde1e4;
  --tz-text:    #14181c;
  --tz-muted:   #626a72;
  --tz-good:    #1c7a4c;
  --tz-bad:     #b3261e;
  --tz-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.tz-wrap {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.tz-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--tz-line);
  border-radius: 2px;
  background: var(--tz-surface);
}

.tz-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 34rem) {
  .tz-field-grid { grid-template-columns: repeat(2, 1fr); }
}

.tz-field {
  display: grid;
  gap: 0.375rem;
}

.tz-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tz-muted);
}

.tz-field input,
.tz-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.5rem;
  font-family: var(--tz-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--tz-text);
  background: var(--tz-surface);
  border: 1px solid var(--tz-line);
  border-radius: 2px;
}

.tz-field input:focus-visible,
.tz-field select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

.tz-error {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--tz-bad);
  background: rgba(179, 38, 30, 0.06);
  border: 1px solid var(--tz-bad);
  border-radius: 2px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.tz-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tf-accent-ink);
  background: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.tz-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.tz-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.tz-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Overlap summary + city table ────────────────────────────────────────── */

.tz-overlap {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--tf-accent);
  background: var(--tz-panel);
  border: 1px solid var(--tz-line);
  border-radius: 2px;
}

.tz-table {
  display: grid;
  border: 1px solid var(--tz-line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.tz-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--tz-line);
  background: var(--tz-surface);
}

.tz-row:last-child { border-bottom: none; }

.tz-row-head {
  background: var(--tz-panel);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tz-muted);
}

.tz-row--in { background: rgba(28, 122, 76, 0.05); }

.tz-city-cell {
  font-weight: 600;
  color: var(--tz-text);
}

.tz-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tz-status--in { color: var(--tz-good); }
.tz-status--out { color: var(--tz-muted); }

.tz-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--tz-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.tz-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 40rem;
  padding-inline: 1.5rem;
}

@media (max-width: 26rem) {
  .tz-wrap,
  .tz-ad { padding-inline: 1rem; }
  .tz-panel { padding: 1.25rem; }
  .tz-row { grid-template-columns: 1fr 1.2fr 0.8fr; font-size: 0.8125rem; }
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --tz-surface: var(--tf-surface);
  --tz-panel: var(--tf-surface);
  --tz-line: var(--tf-surface);
  --tz-text: var(--tf-ink);
  --tz-muted: var(--tf-ink-soft);
  --tz-good: #5fd099;
  --tz-bad: #da8581;
}
