/* Browser tools: image tools, video background, calendar, clocks, units... Colours come from the site theme variables. */
.tl-page .cv-hero { grid-template-columns: 1fr; }
.tl-page .cv-hero .lead { max-inline-size: 46rem; }
.tl-card { padding: clamp(0.9rem, 2.4vw, 1.4rem); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: grid; gap: 1rem; min-block-size: 8rem; }
.tl-card [hidden] { display: none !important; }
.tl-drop { display: grid; place-items: center; gap: 0.4rem; text-align: center; padding: 2.2rem 1rem; border: 2px dashed var(--line); border-radius: 18px; cursor: pointer; background: color-mix(in srgb, var(--k) 5%, transparent); }
.tl-drop.over, .tl-drop:focus-visible { border-color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); outline: none; }
.tl-drop strong { font-size: 1.1rem; } .tl-drop small { color: var(--muted); }
.tl-err { padding: 0.7rem 0.9rem; border-radius: 12px; color: var(--danger, #c0392b); background: color-mix(in srgb, var(--danger, #c0392b) 10%, transparent); font-size: 0.92rem; }
.tl-work { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .tl-work { grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); align-items: start; } }
.tl-controls { display: grid; gap: 0.8rem; }
.tl-field { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.tl-field > span:first-child, .tl-field > label { font-weight: 700; display: flex; justify-content: space-between; gap: 0.5rem; }
.tl-field .val { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-card input[type="number"], .tl-card input[type="text"], .tl-card input[type="date"], .tl-card input[type="time"], .tl-card input[type="datetime-local"], .tl-card select, .tl-card textarea, .tl-card input[type="search"] {
  inline-size: 100%; padding: 0.55rem 0.7rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; }
.tl-card textarea { min-block-size: 11rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.45; }
.tl-card input[type="range"] { inline-size: 100%; accent-color: var(--k); }
.tl-card input[type="color"] { inline-size: 2.6rem; block-size: 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.tl-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tl-row > .grow { flex: 1 1 8rem; }
.tl-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; cursor: pointer; }
.tl-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tl-seg button { padding: 0.45rem 0.8rem; font: inherit; font-weight: 600; font-size: 0.88rem; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.tl-seg button[aria-pressed="true"] { color: var(--primary-ink, #fff); background: var(--primary); }
.tl-stage { display: grid; place-items: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: 16px; min-block-size: 14rem; overflow: auto;
  background-color: #fff; background-image: conic-gradient(#d9dde6 25%, transparent 0 50%, #d9dde6 0 75%, transparent 0); background-size: 18px 18px; }
.tl-stage.solid { background-image: none; }
.tl-stage canvas, .tl-stage video { display: block; max-inline-size: 100%; max-block-size: 70vh; block-size: auto; inline-size: auto; touch-action: none; }
.tl-crop { position: relative; display: inline-block; line-height: 0; }
.tl-crop-box { position: absolute; border: 2px solid #fff; outline: 9999px solid rgb(0 0 0 / 0.45); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5); cursor: move; touch-action: none; }
.tl-crop-box i { position: absolute; inset-inline-end: -9px; inset-block-end: -9px; inline-size: 18px; block-size: 18px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; cursor: nwse-resize; }
.tl-info { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-out { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-variant-numeric: tabular-nums; }
.tl-big { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.1; word-break: break-word; }
.tl-grid2 { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.tl-stat { padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.tl-stat b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; } .tl-stat span { color: var(--muted); font-size: 0.85rem; }
.tl-table { inline-size: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.tl-table th, .tl-table td { padding: 0.5rem 0.7rem; text-align: start; border-block-end: 1px solid var(--line); }
.tl-table th { color: var(--muted); font-weight: 600; }
.tl-scroll { overflow-x: auto; }
.tl-ok { color: var(--ok, #17924f); } .tl-bad { color: var(--danger, #c0392b); }
/* calendar */
.tl-cal { display: grid; gap: 0.35rem; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tl-cal.wk { grid-template-columns: 2.2rem repeat(7, minmax(0, 1fr)); }
.tl-cal .h { text-align: center; font-size: 0.78rem; font-weight: 800; color: var(--muted); padding: 0.3rem 0; text-transform: uppercase; }
.tl-cal .wn { display: grid; place-items: center; font-size: 0.75rem; color: var(--muted); }
.tl-cal button.d { aspect-ratio: 1 / 0.82; min-block-size: 2.4rem; font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.tl-cal button.d:hover { border-color: var(--k); }
.tl-cal button.d.out { color: var(--muted); opacity: 0.5; } .tl-cal button.d.we { color: color-mix(in srgb, var(--k) 70%, var(--ink)); }
.tl-cal button.d.today { color: var(--primary-ink, #fff); background: var(--primary); } .tl-cal button.d.sel { border-color: var(--ink); }
.tl-year { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tl-mini { padding: 0.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.tl-mini h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.tl-mini .tl-cal { gap: 1px; } .tl-mini .tl-cal .d { aspect-ratio: auto; min-block-size: 0; padding: 0.18rem 0; font-size: 0.78rem; border-radius: 6px; }
/* clocks */
.tl-clocks { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tl-clock { position: relative; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.tl-clock .city { font-weight: 800; } .tl-clock .time { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tl-clock .sub { color: var(--muted); font-size: 0.85rem; } .tl-clock .x { position: absolute; inset-block-start: 0.4rem; inset-inline-end: 0.4rem; }
.tl-clock.night { background: color-mix(in srgb, var(--k) 10%, var(--bg)); }
.tl-unit-pair { display: grid; gap: 0.6rem; grid-template-columns: 1fr auto 1fr; align-items: end; }
@media (max-width: 40rem) { .tl-unit-pair { grid-template-columns: 1fr; } .tl-unit-pair .swap { justify-self: start; } }
.tl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tl-swatch { inline-size: 100%; block-size: 5rem; border-radius: 14px; border: 1px solid var(--line); }
.tl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
/* hubs and reference tables */
.tl-hubgrid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tl-hubcard { display: grid; gap: 0.3rem; align-content: start; block-size: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; }
.tl-hubcard:hover, .tl-hubcard:focus-visible { border-color: var(--k, var(--primary)); outline: none; transform: translateY(-1px); }
.tl-hubcard strong { font-size: 1.02rem; } .tl-hubcard span:last-child { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.tl-hubico { inline-size: 2.4rem; block-size: 2.4rem; display: grid; place-items: center; border-radius: 12px; color: var(--primary-ink, #fff); background: var(--primary); }
.tl-hubico .ico { inline-size: 1.3rem; block-size: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-ref { margin-block: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.tl-ref h2 { margin-block: 0 0.6rem; font-size: 1.15rem; }
.tl-home .cv-links { margin-block: 0.8rem; }
@media (prefers-reduced-motion: reduce) { .tl-hubcard { transform: none !important; } }

/* ================================================================== v27 polish */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl-crumbs { margin-block-end: 0.6rem; font-size: 0.85rem; }
.tl-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.tl-crumbs li + li::before { content: "›"; margin-inline-end: 0.5rem; opacity: 0.6; }
.tl-crumbs a { color: var(--muted); text-decoration: none; } .tl-crumbs a:hover, .tl-crumbs a:focus-visible { color: var(--ink); text-decoration: underline; }
.tl-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.tl-card { position: relative; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.18); overflow: clip; }
.tl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; block-size: 4px; background: linear-gradient(90deg, var(--k, var(--primary)), color-mix(in srgb, var(--k, var(--primary)) 40%, transparent)); }
.tl-loading { display: grid; gap: 0.6rem; } .tl-loading i { display: block; block-size: 2.4rem; border-radius: 10px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line)); background-size: 200% 100%; animation: tl-shimmer 1.2s linear infinite; }
.tl-loading i:nth-child(2) { inline-size: 70%; } .tl-loading i:nth-child(3) { inline-size: 45%; }
@keyframes tl-shimmer { to { background-position: -200% 0; } }

@media (min-width: 56rem) { .tl-work > .tl-controls, .tl-work > .tl-controls-col { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); } .tl-controls-col > .tl-controls { padding: 0; border: 0; background: none; } .tl-controls-col { display: grid; gap: 0.8rem; } }
@media (max-width: 55.99rem) { .tl-controls-col > .tl-actions { position: sticky; inset-block-end: 0; z-index: 5; padding: 0.6rem; margin-inline: -0.4rem; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); } }
.tl-controls-col { display: grid; gap: 0.8rem; align-content: start; }
.tl-card :where(input, select, textarea, button, a):focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.tl-card input[type="number"], .tl-card input[type="text"], .tl-card input[type="date"], .tl-card input[type="time"], .tl-card select, .tl-card input[type="search"], .tl-card input[type="email"], .tl-card input[type="tel"] { min-block-size: 2.6rem; }
.tl-seg { flex-wrap: wrap; } .tl-seg button { min-block-size: 2.4rem; transition: background 0.15s, color 0.15s; }
.tl-card .btn { min-block-size: 2.6rem; } .tl-card .btn[aria-pressed="true"] { color: var(--primary-ink, #fff); background: var(--primary); border-color: var(--primary); }
.btn.danger { color: var(--danger, #c0392b); border-color: color-mix(in srgb, var(--danger, #c0392b) 40%, transparent); }
.tl-chips-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tl-field > label { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 700; }
.tl-out { transition: border-color 0.2s; } .tl-out:focus-within { border-color: var(--k, var(--primary)); }

.tl-drop { gap: 0.55rem; padding: 2.6rem 1rem; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.tl-drop.over { transform: scale(1.01); }
.tl-drop-ico { inline-size: 3.2rem; block-size: 3.2rem; display: grid; place-items: center; border-radius: 50%; color: var(--primary-ink, #fff); background: var(--k, var(--primary)); }
.tl-drop-ico svg { inline-size: 1.6rem; block-size: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-drop .tl-row { justify-content: center; margin-block-start: 0.2rem; }
.tl-stage { border-radius: 16px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.04); }
.tl-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-block: 0.6rem 1rem; }
.tl-find input { flex: 1 1 16rem; min-block-size: 2.8rem; padding: 0.6rem 0.9rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tl-hubgrid li[hidden] { display: none; }

/* Google-style preview */
.tl-serp { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #202124; font-family: Arial, Roboto, sans-serif; }
.tl-serp-url { font-size: 0.85rem; color: #4d5156; overflow-wrap: anywhere; } .tl-serp-title { margin-block: 0.15rem; font-size: 1.25rem; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; } .tl-serp-desc { font-size: 0.88rem; line-height: 1.5; color: #4d5156; }

/* ================================================================== calendar */
.tl-cal-bar { display: grid; gap: 0.6rem; margin-block-end: 0.8rem; } .tl-cal-opts { padding-block: 0.2rem; font-size: 0.9rem; } .tl-cal-opts select, .tl-cal-opts input[type="date"] { inline-size: auto; }
.tl-cal-title { margin: 0 0.4rem; font-size: clamp(1.1rem, 3.4vw, 1.5rem); min-inline-size: 9rem; }
[class*="c-"] { --c: #2563eb; } .c-blue { --c: #2563eb; } .c-green { --c: #16a34a; } .c-red { --c: #dc2626; } .c-orange { --c: #ea580c; } .c-purple { --c: #7c3aed; } .c-gray { --c: #6b7280; }
.tl-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.tl-month.wk { grid-template-columns: 2.2rem repeat(7, minmax(0, 1fr)); }
.tl-month .h { padding: 0.45rem 0.2rem; text-align: center; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.tl-month .wn { display: grid; place-items: start center; padding-block-start: 0.5rem; font-size: 0.72rem; color: var(--muted); background: var(--surface); }
.tl-month .cell { display: flex; flex-direction: column; gap: 2px; min-block-size: clamp(4.2rem, 11vw, 7.2rem); padding: 0.25rem; background: var(--bg); cursor: default; min-inline-size: 0; }
.tl-month .cell.out { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); } .tl-month .cell.out .num { color: var(--muted); opacity: 0.7; }
.tl-month .cell.we { background: color-mix(in srgb, var(--bg) 94%, var(--k, var(--primary))); } .tl-month .cell.isHol { background: color-mix(in srgb, var(--bg) 90%, #f59e0b); }
.tl-month .cell.sel { box-shadow: inset 0 0 0 2px var(--ink); } .tl-month .top { display: flex; justify-content: space-between; align-items: center; }
.tl-month .num, .tl-cal .num { inline-size: 1.9rem; block-size: 1.9rem; display: grid; place-items: center; padding: 0; font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--ink); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.tl-month .num:hover { background: var(--line); } .tl-month .cell.today .num { color: var(--primary-ink, #fff); background: var(--primary); } .tl-month .moon { font-size: 0.8rem; opacity: 0.85; }
.ev, .hol, .more { display: block; inline-size: 100%; padding: 1px 6px; font: inherit; font-size: 0.72rem; line-height: 1.5; text-align: start; border: 0; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.ev { cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, var(--bg)); border-inline-start: 3px solid var(--c); } .ev:hover { background: color-mix(in srgb, var(--c) 30%, var(--bg)); }
.hol { color: #92400e; background: color-mix(in srgb, #f59e0b 22%, var(--bg)); } .more { cursor: pointer; color: var(--muted); background: none; }
@media (prefers-color-scheme: dark) { .hol { color: #fcd34d; } }
@media (max-width: 40rem) { .tl-month .cell { min-block-size: 3.4rem; align-items: center; } .tl-month .top { justify-content: center; } .tl-month .moon, .tl-month .more { display: none; } .tl-month .ev, .tl-month .hol { display: inline-block; inline-size: 0.45rem; block-size: 0.45rem; padding: 0; font-size: 0; border-radius: 50%; border: 0; background: var(--c, #f59e0b); } .tl-month .hol { --c: #f59e0b; } .tl-month .cell { flex-flow: row wrap; align-content: flex-start; justify-content: center; } .tl-month .top { inline-size: 100%; } }
.tl-weekcols { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.tl-weekcols .col { display: flex; flex-direction: column; gap: 4px; min-block-size: 12rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); } .tl-weekcols .col.today { border-color: var(--primary); } .tl-weekcols .col.sel { box-shadow: 0 0 0 2px var(--ink); }
.tl-weekcols .colhead { display: flex; justify-content: space-between; padding: 0.2rem 0.3rem; font: inherit; color: var(--muted); background: none; border: 0; border-block-end: 1px solid var(--line); cursor: pointer; } .tl-weekcols .colhead b { color: var(--ink); font-size: 1.1rem; }
.tl-weekcols .add { margin-block-start: auto; padding: 0.3rem; font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 1px dashed var(--line); border-radius: 8px; cursor: pointer; }
.tl-dayview, .tl-agenda, .tl-details { display: grid; gap: 0.5rem; } .tl-details { margin-block-start: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); } .tl-details h3 { margin: 0; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; border-radius: 10px; background: color-mix(in srgb, var(--c, #2563eb) 12%, var(--bg)); border-inline-start: 4px solid var(--c, #2563eb); }
.item.hol-item { --c: #f59e0b; } .agenda-day { display: grid; gap: 0.35rem; padding-block-end: 0.6rem; border-block-end: 1px solid var(--line); } .agenda-day > .linklike { justify-self: start; font-weight: 800; }
.tl-editor { display: grid; gap: 0.7rem; margin-block-end: 1rem; padding: 1rem; border: 2px solid var(--primary); border-radius: 16px; background: var(--surface); } .tl-editor h3 { margin: 0; }
.tl-swatches { display: flex; gap: 0.5rem; } .tl-swatches .sw { inline-size: 1.9rem; block-size: 1.9rem; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; } .tl-swatches .sw[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg) inset; }
.tl-year .tl-cal { gap: 1px; } .tl-mini .d { position: relative; } .tl-mini .d.hol { background: color-mix(in srgb, #f59e0b 28%, var(--bg)); } .tl-mini .d.hasev::after { content: ""; position: absolute; inset-block-end: 2px; inset-inline-start: 50%; inline-size: 4px; block-size: 4px; margin-inline-start: -2px; border-radius: 50%; background: var(--primary); }
.tl-mini h3 .linklike { font: inherit; font-weight: 800; }
@media print {
  .sp-header, header, footer, .tl-noprint, .cv-more, .about, .cv-hero, .tl-crumbs, #toast, .ad-slot { display: none !important; }
  .tl-card { border: 0; box-shadow: none; padding: 0; } .tl-card::before { display: none; } .tl-month .cell { min-block-size: 5.5rem; break-inside: avoid; } .tl-ref { break-inside: avoid; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { .tl-loading i { animation: none; } .tl-drop, .tl-drop.over { transition: none; transform: none; } }

/* ---------------------------------------------------------------- v31: SVG widgets (coin, dice, balls, gauges) */
.tl-coin-stage { display: grid; justify-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.tl-coin-btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; inline-size: min(15rem, 70vw); border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.tl-coin-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 4px; }
.tl-coin { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.tl-coin-note { min-block-size: 1.4em; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.tl-coin-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tl-coin-chip { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.9rem 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-inline-size: 9rem; }
.tl-coin-chip span { display: grid; line-height: 1.15; }
.tl-coin-chip em { font-style: normal; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.tl-coin-chip b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tl-coin-chip small { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tl-coin-bar { inline-size: min(22rem, 100%); block-size: 0.6rem; border-radius: 999px; overflow: hidden; background: var(--line); }
.tl-coin-hist { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; min-block-size: 1.4rem; }
.tl-mc { flex: none; }

.tl-dice { display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.tl-dice-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tl-dice-row .tl-die { inline-size: 4.6rem; block-size: 4.6rem; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.16)); }
.tl-dice-row.small .tl-die { inline-size: 2.7rem; block-size: 2.7rem; }
.tl-die .shape { fill: var(--surface); stroke: var(--ink); }
.tl-die .facet { stroke: var(--ink); stroke-opacity: 0.35; }
.tl-die .pip { fill: var(--ink); }
.tl-die .num { fill: var(--ink); font-weight: 800; font-family: inherit; }
.tl-die-4 .shape { fill: color-mix(in srgb, var(--q360) 35%, var(--surface)); } .tl-die-8 .shape { fill: color-mix(in srgb, var(--q480) 30%, var(--surface)); }
.tl-die-10 .shape { fill: color-mix(in srgb, var(--q720) 30%, var(--surface)); } .tl-die-12 .shape { fill: color-mix(in srgb, var(--q1080) 24%, var(--surface)); }
.tl-die-20 .shape { fill: color-mix(in srgb, var(--qaudio) 24%, var(--surface)); } .tl-die-100 .shape { fill: color-mix(in srgb, var(--primary) 20%, var(--surface)); }
.tl-dice-sum { display: grid; justify-items: center; gap: 0.1rem; }

.tl-balls { display: grid; place-items: center; min-block-size: 7rem; text-align: center; }
.tl-ballrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.tl-ball { inline-size: 5.2rem; block-size: 5.2rem; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.18)); }
.tl-ballrow:has(> :nth-child(2)) .tl-ball { inline-size: 3.6rem; block-size: 3.6rem; }
.tl-ballrow:has(> :nth-child(9)) .tl-ball { inline-size: 2.8rem; block-size: 2.8rem; }
@media (prefers-reduced-motion: reduce) { .tl-coin-btn, .tl-die { transition: none; } }
.tl-gauge { display: block; inline-size: min(20rem, 100%); margin-inline: auto; }
.tl-gauge .tick, .tl-donut .num { fill: var(--ink); font-family: inherit; } .tl-gauge .tick { fill: var(--muted); font-weight: 700; }
.tl-donutwrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-block-start: 1rem; }
.tl-donut { inline-size: 8.5rem; block-size: 8.5rem; flex: none; }
.tl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.tl-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; } .tl-legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.tl-legend .dot { inline-size: 0.8rem; block-size: 0.8rem; border-radius: 50%; background: #e8b800; } .tl-legend .dot[data-c="p"] { background: var(--primary); }
