/* ── Page overrides ─────────────────────────────────────────────────────── */
.section { max-width: 760px; }

/* ── Input area ─────────────────────────────────────────────────────────── */
.ts-input-wrap { max-width: 560px; margin: 24px auto 0; }

.ts-input-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.ts-input-row input[type="date"],
.ts-input-row input[type="time"] {
  flex: 1; min-width: 140px; padding: 12px 18px;
  background: #111827; border: 1px solid #2a3a4a;
  border-radius: 6px; color: #e0eaf4; outline: none;
  font-family: 'Segoe UI', sans-serif; font-size: 1rem;
  transition: border 0.2s;
  color-scheme: dark;
}

.ts-input-row input:focus { border-color: #7eb8f7; }

.ts-input-row button {
  padding: 12px 24px; background: #1d4ed8; color: #fff; border: none;
  border-radius: 6px; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s; letter-spacing: 1px;
  white-space: nowrap;
}
.ts-input-row button:hover { background: #2563eb; }

.ts-unix {
  text-align: center; margin-top: 10px; margin-bottom: 4px;
  font-size: 0.75rem; letter-spacing: 2px; color: #4a7a9a;
  text-transform: uppercase;
}

/* ── Format rows ────────────────────────────────────────────────────────── */
.ts-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid #1e2d40;
}
.ts-row:last-child { border-bottom: none; }

.flag-badge {
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  color: #7eb8f7; background: #1e3a5f; border: 1px solid #2a4a6a;
  border-radius: 4px; padding: 3px 8px; white-space: nowrap; flex-shrink: 0;
  min-width: 36px; text-align: center;
}

.format-name {
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: #5a7a9a; min-width: 110px; flex-shrink: 0;
}

.format-preview {
  flex: 1; font-size: 0.9rem; color: #c8d8e8; min-width: 120px;
}

.ts-code {
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  color: #8aaac8; background: #0a0e1a; border: 1px solid #1e2d40;
  border-radius: 4px; padding: 4px 10px; white-space: nowrap;
  flex-shrink: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}

.copy-btn {
  padding: 6px 16px; background: #1e3a5f; color: #7eb8f7;
  border: 1px solid #2a4a6a; border-radius: 6px; font-size: 0.8rem;
  cursor: pointer; transition: background 0.2s; letter-spacing: 1px;
  white-space: nowrap; flex-shrink: 0;
}
.copy-btn:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.copy-btn.copied { background: #14532d; color: #4ade80; border-color: #4ade80; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .format-name { min-width: unset; }
  .ts-code { max-width: 100%; }
}
