/* Timestamp — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.ts {
  max-width: 900px;
  margin: 6px auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Live clock ---------- */
.ts-now .panel-body {
  text-align: center;
  padding: 22px 18px;
  background:
    radial-gradient(130% 130% at 50% 0%, rgba(232, 70, 124, .13), transparent 70%),
    var(--card-2);
}
.ts-now-label {
  display: block;
  color: var(--pink-light);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ts-now-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ts-now-actions { margin-top: 16px; display: flex; gap: 8px; justify-content: center; }

/* ---------- Panels ---------- */
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ts-form { display: flex; flex-direction: column; gap: 14px; }

.ts-input-row { display: flex; gap: 8px; }
.ts-input {
  flex: 1;
  min-width: 0;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 11px;
  color: var(--text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 11px 13px;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.ts-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232, 70, 124, .18);
}
.ts-input::placeholder { color: #4a4a52; }

.ts-unit {
  flex: none;
  display: flex;
  gap: 3px;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 11px;
  padding: 3px;
}
.ts-unit-btn {
  width: 44px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #74747e;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ts-unit-btn:hover { color: #c4c4cc; }
.ts-unit-btn.active { background: var(--pink); color: #fff; }

.ts-date-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#ts-date {
  flex: 1;
  min-width: 190px;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  padding: 10px 12px;
  outline: none;
  color-scheme: dark;
}
#ts-date:focus { border-color: var(--pink); }

.ts-utc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #74747e;
  font-size: .78rem;
  cursor: pointer;
}
.ts-utc input { accent-color: var(--pink); width: 14px; height: 14px; cursor: pointer; }

/* ---------- Results ---------- */
.ts-results { display: flex; flex-direction: column; gap: 3px; }
.ts-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.ts-row:hover { background: #17171b; }
.ts-row-label {
  flex: none;
  width: 86px;
  color: #74747e;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ts-row-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem;
  color: var(--pink-light);
  word-break: break-word;
}
.ts-row-hint { flex: none; color: #4a4a52; font-size: .68rem; }

.ts-msg { color: #4a4a52; font-size: .82rem; padding: 6px 2px; }
.ts-msg.is-bad { color: #fca5a5; }

@media (max-width: 760px) {
  .ts-grid { grid-template-columns: 1fr; }
  .ts-row { flex-wrap: wrap; }
  .ts-row-label { width: 100%; }
}
