.ts-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Live clock */
.ts-now {
  background: var(--input-bg, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.ts-now-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin-bottom: .4rem;
}
.ts-now-value {
  font-size: 2rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: .04em;
}
.ts-now-sub {
  font-size: .8125rem;
  color: var(--muted, #6b7280);
  margin-top: .25rem;
  font-family: ui-monospace, monospace;
}

/* Cards */
.ts-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ts-card-title {
  font-size: .9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #111);
}

.ts-input-row {
  display: flex;
  gap: .625rem;
  align-items: center;
  flex-wrap: wrap;
}

.ts-input {
  flex: 1;
  min-width: 0;
  padding: .5rem .75rem;
  font-family: ui-monospace, monospace;
  font-size: .9rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  color: var(--text, #111);
  box-sizing: border-box;
}
.ts-input:focus { outline: 2px solid #2563eb; border-color: transparent; }

.ts-input--date {
  font-family: inherit;
  font-size: .875rem;
}

.ts-select {
  padding: .5rem .625rem;
  font-size: .8125rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  color: var(--text, #111);
  cursor: pointer;
  max-width: 200px;
}
.ts-select:focus { outline: 2px solid #2563eb; border-color: transparent; }

.ts-now-btn {
  white-space: nowrap;
  font-size: .8125rem;
}

/* Result table */
.ts-result {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: .875rem;
}
.ts-result.hidden { display: none; }

.ts-row {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-size: .8375rem;
  flex-wrap: wrap;
}
.ts-row-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  min-width: 160px;
  flex-shrink: 0;
}
.ts-row-val {
  font-family: ui-monospace, monospace;
  color: var(--text, #111);
  word-break: break-all;
}

.ts-copy-btn {
  font-size: .7rem;
  padding: 1px 7px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 4px;
  background: var(--input-bg, #f3f4f6);
  color: var(--muted, #6b7280);
  cursor: pointer;
  margin-left: .25rem;
  vertical-align: middle;
}
.ts-copy-btn:hover { background: #e5e7eb; }

.ts-error {
  font-size: .8125rem;
  color: #dc2626;
  padding-top: .5rem;
}

@media (max-width: 600px) {
  .ts-now-value { font-size: 1.5rem; }
  .ts-row-label { min-width: 120px; }
  .ts-select { max-width: 100%; }
}
