/* 时间戳转换(ts-) —— 本工具自己的样式, 共用表单套件见 ../shared/kit.css */

.ts-now { margin-bottom: 16px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-solid), var(--brand-deep)); border: 0; }
.ts-now-head { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.ts-now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ts-now-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.ts-now-label { flex: 1 1 100%; font-size: 12px; opacity: .85; }
.ts-now-value { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 22px; letter-spacing: .5px; overflow-wrap: anywhere; }
.ts-now .ts-copy { flex: none; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; }
.ts-now .ts-copy:hover { border-color: #fff; color: #fff; }
.ts-now .ts-copy.is-done { border-color: var(--ok-soft); color: var(--ok-soft); }
.ts-now-local { margin: 12px 0 0; font-size: 13px; opacity: .92; }

.ts-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ts-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ts-in-row { display: flex; gap: 8px; }
.ts-in-row .tk-input { flex: 1 1 auto; min-width: 0; }
.ts-out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.ts-out { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--cv-line); border-radius: 8px; background: var(--cv-canvas); }
.ts-out .tk-label { flex: 1 1 100%; margin: 0; font-size: 12px; }
.ts-out-value { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.ts-out-copy { flex: none; }

.ts-date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.ts-go { width: 100%; margin: 12px 0; height: 40px; }

.ts-lang { margin-bottom: 10px; }
.ts-lang:last-child { margin-bottom: 0; }
.ts-lang .tk-label { margin-bottom: 4px; }
.ts-lang-row { display: flex; align-items: stretch; gap: 6px; }
.ts-code { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ts-lang-copy { align-self: center; }

@media (min-width: 1280px) {
  .ts-main-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
}
