/* Timing calculator: a panel on the page tokens, so it follows the light and dark themes. */
.tc { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px; border-radius: var(--r-panel); background: var(--panel); box-shadow: var(--shadow); }
.article .tc h2 { margin: 0; font-size: 26px; }
.article .tc p { margin: 0; }
.article .tc .tc-note { color: var(--sec); font-size: 15px; }
.tc-app { display: grid; gap: 16px; min-width: 0; }
.tc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-preset { min-height: 44px; padding: 0 16px; font-size: 15px; }
.tc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tc-field { display: grid; gap: 6px; align-content: start; min-width: 0; font-weight: 600; }
.tc-field .tc-note { font-weight: 400; }
.tc input[type="text"], .tc textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 400;
}
.tc textarea { resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.article .tc .tc-status { font-weight: 600; overflow-wrap: anywhere; }
.tc-status:empty { display: none; }
.tc-status.is-error { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--tile); }
.tc-status.is-error::before { content: "Check this: "; }
.tc-output { display: grid; gap: 14px; min-width: 0; }
.tc-table { margin-top: 0; }
.tc-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.article .tc .tc-subheading { margin: 6px 0 0; font-size: 20px; }
.article .tc .tc-formula { color: var(--sec); font-size: 16px; }
.tc-strip { min-width: 0; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tc-strip svg { max-width: none; }
.tc-mark { fill: var(--ink); }
.tc-mark.is-on { fill: var(--y); stroke: var(--ink); stroke-width: 2; }
.tc-gap { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tc-gap-word { fill: url(#tc-hatch); }
.tc-hatch-line { stroke: var(--ink); stroke-width: 1; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--sec); font-size: 15px; }
.tc-legend li { display: flex; align-items: center; gap: 8px; }
.tc-swatch { flex: none; width: 24px; height: 12px; border: 1.5px solid var(--ink); }
.tc-swatch-dot-dash { background: var(--ink); }
.tc-swatch-word { background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 5px); }
.tc-listen { justify-self: start; min-height: 52px; }
@media (max-width: 480px) {
  .tc { padding: 18px 16px; }
  .tc-listen { justify-self: stretch; }
}
