/* Tool widgets and page furniture, on top of /styles.css. */
.crumbs { font-size: 14px; color: var(--muted); margin: -16px 0 20px; }
.crumbs a { color: var(--muted); }
.langs { font-size: 14px; color: var(--muted); white-space: nowrap; }
header .langs a { color: var(--muted); margin-left: 12px; font-size: 14px; font-weight: 600; }
.langs strong { margin-left: 12px; color: var(--text); }
header { justify-content: space-between; }
header .brand { display: flex; align-items: center; gap: 14px; }

.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px 20px; margin: 8px 0 32px; text-align: center; }
.t-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.t-controls button { font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 22px; cursor: pointer; border: 1px solid var(--border); background: var(--bg); color: var(--text); min-height: 44px; }
.t-controls .t-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-controls .t-big { padding: 14px 34px; font-size: 19px; }
.t-controls button:disabled { opacity: 0.5; }
.t-toggle, .t-slider { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.t-slider { margin-top: 14px; }
.t-slider input { width: 140px; accent-color: var(--accent); }

.b-stage { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.b-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.b-circle { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); transform: scale(0.55); will-change: transform; }
.b-text { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.b-label { font-size: 24px; font-weight: 700; }
.b-count { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; min-height: 44px; }
.b-bar { height: 4px; border-radius: 2px; background: var(--border); margin: 20px auto 0; max-width: 300px; overflow: hidden; }
.b-fill { height: 100%; width: 0; background: var(--accent); }
.b-stats, .c-meta { color: var(--muted); font-size: 15px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }

.c-stage { position: relative; border-radius: 18px; overflow: hidden; min-height: 200px; display: grid; place-content: center; }
.counter.live .c-stage { background: #000; aspect-ratio: 4 / 3; }
.c-video, .c-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.c-count { position: relative; font-size: 96px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.counter.live .c-count { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.6); align-self: start; }
.c-count.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 50% { transform: scale(1.15); } }
.c-status { position: relative; color: var(--muted); font-size: 15px; margin-top: 8px; }
.counter.live .c-status { color: #fff; background: rgba(0,0,0,0.45); border-radius: 999px; padding: 4px 12px; justify-self: center; }
.counter.live .c-stage { place-content: space-between center; padding: 16px; }

.cta { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; margin: 40px 0 8px; }
.cta img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.cta p { margin: 0 0 8px; }
.cta a.button { display: inline-block; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 8px 18px; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 0; }
.tool-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tool-list a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--text); height: 100%; }
.tool-list a strong { display: block; color: var(--accent); }
.tool-list a span { font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .c-count.bump { animation: none; } }
@media (max-width: 480px) { h1 { font-size: 30px; } .cta { flex-direction: column; align-items: flex-start; } }
