/* Timestamp Converter — a form of three cards (styles/components/form.css):
   the live "now" hero with its actions, Timestamp → Date (input rows, then
   the result rows app.js appends) and Date → Timestamp (a datepicker row and
   two copyable values). Only the click-to-copy values and the epoch field
   are the page's own. */

/* input.<class>: the shared form rule input[type="…"] in common.css is
   (0,1,1) and would beat a bare class. */
input.ts-input {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* The hero value is a button (click to copy): drop the button chrome. */
.ts-now__value {
  font-family: var(--mono);
  letter-spacing: -0.02em;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.ts-now__value:active { opacity: 0.6; }
.ts-now__value.is-copied { color: var(--success); }
/* Non-color cue (checkmark glyph) alongside the green flash on copy. */
.ts-now__value.is-copied::after,
.ts-copyval.is-copied::after,
.ts-out__val--copy.is-copied::after { content: " ✓"; }
.ts-now__sub {
  font-family: var(--mono);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Result values: full-strength mono; errors are a caption row. */
.ts-out__val {
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Copyable output values mirror the .ts-copyval click-to-copy affordance. */
.ts-out__val--copy {
  background: none;
  border: none;
  padding: 2px 6px;
  margin: -2px -6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration-snap) var(--ease-standard);
}
.ts-out__val--copy:hover { background: var(--bg-hover); }
.ts-out__val--copy:active { opacity: 0.6; }
.ts-out__val--copy.is-copied { color: var(--success); }

/* Copyable monospace value buttons (Date → Timestamp) */
.ts-copyval {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.ts-copyval:active { opacity: 0.6; }
.ts-copyval.is-copied { color: var(--success); }
