@import url("/image-converter/styles.css?v=1");
/* Time kit: the stage (the part that goes full screen), its themes, fonts and faces, and the lists below it. */

/* ---------- themes ---------- */
.tk-stage { --tk-bg: #0b0b0f; --tk-fg: #f4f5f8; --tk-dim: #9095a5; --tk-accent: #95d600; --tk-on-accent: #10130a; --tk-warn: #ffb454; --tk-done: #c39bff;
  --tk-track: rgba(255, 255, 255, .09); --tk-btn: rgba(255, 255, 255, .07); --tk-btn-b: rgba(255, 255, 255, .16); }
.tk-stage[data-theme="black"] { --tk-bg: #000; --tk-fg: #d6d6d6; --tk-dim: #6e6e6e; --tk-accent: #7fb800; --tk-warn: #d9933a; --tk-done: #a07be0; --tk-track: #141414; --tk-btn: #0c0c0c; --tk-btn-b: #2a2a2a; }
.tk-stage[data-theme="light"] { --tk-bg: #f4f4f1; --tk-fg: #15161a; --tk-dim: #626774; --tk-accent: #4f7f00; --tk-on-accent: #fff; --tk-warn: #b35400; --tk-done: #6b3fd6;
  --tk-track: rgba(0, 0, 0, .09); --tk-btn: rgba(0, 0, 0, .05); --tk-btn-b: rgba(0, 0, 0, .18); }
.tk-stage[data-theme="calm"] { --tk-bg: linear-gradient(160deg, #0f2a33, #17343d); --tk-fg: #e7f5f2; --tk-dim: #9cbab6; --tk-accent: #7fd6c9; --tk-on-accent: #0d2228; --tk-warn: #c4bcff; --tk-done: #a6e39f; --tk-track: rgba(255, 255, 255, .1); }
.tk-stage[data-theme="purple"] { --tk-bg: linear-gradient(160deg, #24133f, #0c0c10 75%); --tk-fg: #f3edff; --tk-dim: #a99dc6; --tk-accent: #9147ff; --tk-on-accent: #fff; --tk-warn: #ffb454; --tk-done: #95d600; }
.tk-stage[data-theme="sunset"] { --tk-bg: linear-gradient(160deg, #3b1022, #4b2610); --tk-fg: #fff2e8; --tk-dim: #d8b6a4; --tk-accent: #ffb454; --tk-on-accent: #2b1406; --tk-warn: #ff7a59; --tk-done: #ffd166; --tk-track: rgba(255, 255, 255, .12); }
.tk-stage[data-theme="ocean"] { --tk-bg: linear-gradient(160deg, #03213a, #04495f); --tk-fg: #e6f7ff; --tk-dim: #8fbfd4; --tk-accent: #48cae4; --tk-on-accent: #032030; --tk-warn: #ffd166; --tk-done: #b8f2ff; --tk-track: rgba(255, 255, 255, .12); }
.tk-stage[data-theme="orange"] { --tk-bg: linear-gradient(160deg, #f7f7f7, #d4d4d4); --tk-fg: #111; --tk-dim: #555; --tk-accent: #ff6a00; --tk-on-accent: #fff; --tk-warn: #d03b00; --tk-done: #ff6a00;
  --tk-track: rgba(0, 0, 0, .1); --tk-btn: rgba(0, 0, 0, .05); --tk-btn-b: rgba(0, 0, 0, .2); }

/* swatches on the theme chips */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 7px; vertical-align: -2px; border: 1px solid rgba(255, 255, 255, .25); }
.sw-dark { background: #0b0b0f; } .sw-black { background: #000; } .sw-light { background: #f4f4f1; } .sw-calm { background: #7fd6c9; }
.sw-purple { background: #9147ff; } .sw-sunset { background: linear-gradient(135deg, #ff7a59, #ffb454); } .sw-ocean { background: #48cae4; }
.sw-orange { background: linear-gradient(135deg, #eee 50%, #ff6a00 50%); }

/* ---------- the stage ---------- */
.tk-stage { position: relative; display: flex; flex-direction: column; gap: 6px; height: clamp(300px, 50vh, 500px); padding: 14px 12px 12px; border-radius: 14px;
  background: var(--tk-bg); color: var(--tk-fg); border: 1px solid var(--border); overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: normal; }
.tk-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tk-top { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 24px; font-size: 15px; font-weight: 600; color: var(--tk-dim); text-align: center; }
.tk-top .tk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92%; }
.tk-face { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.tk-digits { position: relative; z-index: 1; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tk-fg); }
.tk-digits.tap { cursor: pointer; touch-action: manipulation; }
.tk-dial { display: none; }
.tk-dial .tk-track { fill: none; stroke: var(--tk-track); stroke-width: 6; }
.tk-dial .tk-arc { fill: none; stroke: var(--tk-accent); stroke-width: 6; transition: stroke .3s; }
.tk-dial .tk-pie { fill: var(--tk-accent); transition: fill .3s; }
.tk-dial .tk-plate { fill: var(--tk-track); }
.tk-bar { display: none; width: min(92%, 900px); height: 10px; border-radius: 6px; background: var(--tk-track); overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: 100%; background: var(--tk-accent); transform-origin: left center; transition: background .3s; }

.tk-stage[data-face="ring"] .tk-dial { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.tk-stage[data-face="ring"] .tk-pie, .tk-stage[data-face="ring"] .tk-plate { display: none; }
.tk-stage[data-face="disk"] .tk-face { grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
.tk-stage[data-face="disk"] .tk-dial { display: block; width: 100%; height: 100%; min-height: 0; }
.tk-stage[data-face="disk"] .tk-arc, .tk-stage[data-face="disk"] .tk-track { display: none; }
.tk-stage[data-face="bar"] .tk-face { grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.tk-stage[data-face="bar"] .tk-bar { display: block; }

.tk-stage[data-font="thin"] .tk-digits { font-weight: 200; }
.tk-stage[data-font="mono"] .tk-digits { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-weight: 600; letter-spacing: -.04em; }
.tk-stage[data-font="rounded"] .tk-digits { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", system-ui, sans-serif; font-weight: 700; }
.tk-stage[data-font="serif"] .tk-digits { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 600; }

.tk-sub { min-height: 20px; text-align: center; font-size: 14px; color: var(--tk-dim); font-variant-numeric: tabular-nums; }
.tk-sub b { color: var(--tk-fg); font-weight: 650; }
.tk-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-height: 84px; overflow: auto; }
.tk-strip:empty { display: none; }
.tk-chipb { display: inline-flex; gap: 6px; align-items: baseline; max-width: 210px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--tk-btn-b); background: var(--tk-btn);
  color: var(--tk-fg); font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.tk-chipb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tk-dim); }
.tk-chipb b { font-variant-numeric: tabular-nums; font-weight: 650; }
.tk-chipb.done b { color: var(--tk-done); }
.tk-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; transition: opacity .25s; }
.tk-b { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--tk-btn-b); background: var(--tk-btn); color: var(--tk-fg);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; touch-action: manipulation; }
.tk-b:hover { border-color: var(--tk-accent); }
.tk-b:disabled { opacity: .4; cursor: default; border-color: var(--tk-btn-b); }
.tk-b.go { background: var(--tk-accent); color: var(--tk-on-accent); border-color: transparent; min-width: 110px; }
.tk-b.stop { background: var(--tk-done); color: #111; border-color: transparent; }
.tk-b:focus-visible { outline: 3px solid var(--tk-accent); outline-offset: 2px; }

/* states */
.tk-stage.tk-warn .tk-digits { color: var(--tk-warn); }
.tk-stage.tk-warn .tk-arc { stroke: var(--tk-warn); }
.tk-stage.tk-warn .tk-pie, .tk-stage.tk-warn .tk-bar i { fill: var(--tk-warn); background: var(--tk-warn); }
.tk-stage.tk-paused .tk-digits { opacity: .6; }
.tk-stage.tk-lapped .tk-digits { color: var(--tk-accent); }
.tk-stage.tk-done .tk-digits { color: var(--tk-done); }
.tk-stage.tk-ringing .tk-digits { animation: tk-breathe 2s ease-in-out infinite; }
.tk-stage.tk-flash { animation: tk-flash 1s steps(1, end) infinite; }   /* 1 flash a second; WCAG 2.3.1 allows up to 3 */
@keyframes tk-breathe { 50% { opacity: .45; } }
@keyframes tk-flash { 50% { box-shadow: inset 0 0 0 100vmax var(--tk-done); } }
@media (prefers-reduced-motion: reduce) { .tk-stage.tk-ringing .tk-digits { animation: none; } }

/* full screen (real, or the in-page fallback) */
.tk-stage:fullscreen { height: 100vh; width: 100vw; border: 0; border-radius: 0; padding: 3vh 3vw; }
.tk-stage.tk-fake-full { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; width: 100vw; border: 0; border-radius: 0; padding: 3vh 3vw; }
.tk-stage:fullscreen::backdrop { background: #000; }
html.tk-lock, html.tk-lock body { overflow: hidden; }
.tk-stage:fullscreen .tk-top, .tk-stage.tk-fake-full .tk-top { font-size: clamp(16px, 3.2vh, 36px); }
.tk-stage:fullscreen .tk-sub, .tk-stage.tk-fake-full .tk-sub { font-size: clamp(14px, 2.4vh, 26px); }
.tk-stage:fullscreen .tk-chipb, .tk-stage.tk-fake-full .tk-chipb { font-size: clamp(13px, 2vh, 22px); max-width: 320px; }
.tk-stage:fullscreen .tk-strip, .tk-stage.tk-fake-full .tk-strip { max-height: 22vh; }
.tk-stage.tk-idle { cursor: none; }
.tk-stage.tk-idle .tk-ctl { opacity: 0; pointer-events: none; }
.tk-only-full { display: none; }
.tk-stage:fullscreen .tk-only-full, .tk-stage.tk-fake-full .tk-only-full { display: inline-block; }

/* mini window (Document Picture-in-Picture) */
.tk-minibody { margin: 0; background: #000; }
.tk-stage.tk-mini { height: 100vh; border: 0; border-radius: 0; padding: 8px; gap: 4px; }
.tk-stage.tk-mini .tk-top { font-size: 13px; min-height: 16px; }
.tk-stage.tk-mini .tk-b { min-height: 34px; min-width: 0; padding: 0 12px; font-size: 13px; }

/* ---------- page parts ---------- */
.tk-panel { padding: 14px; }
.tk-keys { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
.tk-keys kbd { font: inherit; color: var(--text); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.tk-phone { display: none; margin: 8px 2px 0; font-size: 13px; color: var(--warn); }
@media (pointer: coarse) and (max-width: 1024px) { .tk-phone { display: block; } .tk-keys { display: none; } }
.tk-hint { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.tk-hint:empty { display: none; }
.tk-hint.warn { color: var(--warn); }
.tk-set { display: grid; gap: 10px; margin-top: 14px; }
.tk-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tk-entry .in { font-size: 16px; min-height: 44px; }
.tk-entry .btn { min-height: 44px; }
.tk-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-presets .chip { min-height: 40px; min-width: 64px; }
.tk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tk-row .sel { width: auto; min-height: 40px; }
.tk-row .lbl { margin: 0; }
.tk-vol { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tk-vol input { width: 120px; accent-color: var(--accent); }
.tk-sound { border-top: 1px solid var(--border); padding-top: 12px; }
.tk-opts { display: grid; gap: 10px; }
.tk-opts .chips { gap: 6px; }
.tk-opts h3 { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* list of timers or stopwatches */
.tk-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.tk-item.sel { border-color: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim) inset; }
.tk-item .tk-ihead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.tk-item .tk-show { background: none; border: 0; padding: 4px 2px; color: var(--text); font: 700 22px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; min-width: 84px; text-align: left; }
.tk-item.done .tk-show { color: #c39bff; }
.tk-item.paused .tk-show { color: var(--muted); }
.tk-item .tk-iname { min-width: 0; font-size: 15px; padding: 7px 9px; }
.tk-item .tk-ibtns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tk-item .tk-ibtns .btn { min-height: 38px; }
.tk-item .tk-ilen { width: 108px; padding: 7px 9px; font-size: 15px; }
.tk-item .tk-iprog { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.tk-item .tk-iprog b { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; }
.tk-item .tk-imeta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -4px; }
.tk-item .tk-imeta:empty { display: none; }
.tk-listbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-listbar .check { margin-right: 6px; }

/* laps */
.tk-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.tk-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.tk-stats .best b { color: var(--accent); }
.tk-stats .worst b { color: var(--warn); }
.tk-lapwrap { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.tk-laps { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tk-laps th { position: sticky; top: 0; background: var(--panel); text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tk-laps td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.tk-laps tr:last-child td { border-bottom: 0; }
.tk-laps tr.best td { color: var(--accent); }
.tk-laps tr.worst td { color: var(--warn); }
.tk-laps td.tag { font-size: 12px; }
.tk-laps .empty td { color: var(--muted); text-align: center; padding: 16px; }

@media (max-width: 560px) {
  .tk-panel { padding: 8px; }
  .tk-stage { height: clamp(360px, 66vh, 540px); padding: 12px 8px 10px; }
  .tk-ctl { gap: 6px; }
  .tk-b { padding: 0 11px; min-width: 0; font-size: 14px; }
  .tk-b.go { min-width: 84px; }
  .tk-item { grid-template-columns: minmax(0, 1fr); }
  .tk-item .tk-ibtns { justify-content: flex-start; }
}
