/* ==========================================================================
   Tallyshift's pages: its tokens, its clock card, the week rack (the hero's
   showpiece) and the visuals its chapters move. The shared structure is the
   kit (/apps/kit/kit.css); everything here is Tallyshift's own.

   Colours come from the app's asset catalogue (Docs/design/design-system.md):
   scrubs green #199E6E, the card's mint #C2E6D3 and ink #0E2A1A, the latest
   stamp #0B6347, the filed card's grey #F2F2F7. The display face is Charter,
   as in the app (installed on Apple devices; never self-hosted).
   ========================================================================== */

body.k-page.k-tallyshift {
  --k-bg: #FFFFFF;
  --k-bg-2: #E4F3EB;
  --k-ink: #0E2A1A;
  --k-ink-2: #46524D;
  --k-accent: #0E7654;
  --k-accent-ink: #FFFFFF;
  --k-card: #FFFFFF;
  --k-line: rgba(14, 42, 26, .12);
  --k-display: "Charter", "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;

  /* the app's own colours */
  --ts-brand: #199E6E;       /* BrandFill: Clock in, Clock out */
  --ts-brand-ink: #04230F;   /* BrandInk: the label on it */
  --ts-mint: #C2E6D3;        /* CardOn: the card while on the clock */
  --ts-card-ink: #0E2A1A;    /* CardInk */
  --ts-card-label: #4E5A55;  /* CardLabel */
  --ts-rule: #9FCBB4;        /* CardRule */
  --ts-latest: #0B6347;      /* StampLatest */
  --ts-filed: #F2F2F7;       /* the filed card (secondarySystemBackground) */
  --ts-deep: #0F3B2A;        /* the rack and the night band */
  --ts-deeper: #0A2C1F;
  --ts-night-mint: #5ED6A9;  /* StampLatest in the dark */
  --ts-system-2: #8A8A8E;    /* secondary label on white */
}

.k-tallyshift main :where(h1, h2) { font-weight: 700; letter-spacing: -0.02em; }
.k-tallyshift main h3 { font-weight: 700; }
.k-tallyshift { --k-fs-h2: clamp(34px, 4.3vw, 66px); }
.k-tallyshift .k-h1 { font-size: clamp(44px, min(5.4vw, 8.6svh), 92px); line-height: 1.0; }
.k-tallyshift .k-lead { max-width: 30ch; }
.k-tallyshift .k-btn-primary { background: var(--ts-brand); color: var(--ts-brand-ink); }
.k-tallyshift .k-soon::before { background: var(--ts-brand-ink); box-shadow: 0 0 0 3px rgba(4, 35, 15, .18); }
.k-tallyshift a:focus-visible, .k-tallyshift summary:focus-visible { outline: 3px solid var(--k-accent); outline-offset: 3px; border-radius: 8px; }
.ts-price { font-size: 17px; color: var(--k-ink); max-width: 38ch; }
.ts-price b { font-weight: 600; }
.ts-reqs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--k-ink-2); }
.ts-reqs li { display: flex; align-items: center; gap: 8px; }
.ts-reqs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ts-rule); margin-right: 10px; }
.k-tallyshift .k-hero { overflow-x: clip; }
.k-tallyshift .k-hero-copy > * + *, .k-tallyshift .k-hero-head > * + *, .k-tallyshift .k-hero-more > * + * { margin-top: 22px; }

/* ---------- The clock card, drawn from ClockCard.swift ----------
   Sized from its own width (cqw), as the app's 370 pt card is: figure 80, units 34,
   stamps 34, labels 17, the date line 15, 20 pt inside, radius 24. */
.ts-card { container-type: inline-size; position: relative; width: 100%; box-sizing: border-box; }
.ts-card-in { position: relative; border-radius: 6.5cqw; background: var(--ts-mint); color: var(--ts-card-ink);
  padding: 5.4cqw 5.4cqw 2.2cqw; font-family: var(--k-text); transition: background-color .35s ease; }
.ts-card-date { font-weight: 600; font-size: 4.05cqw; line-height: 1.3; color: var(--ts-card-label); }
.ts-card-fig { font-family: var(--k-display); font-weight: 700; font-size: 21.6cqw; line-height: 1; margin-top: 3.2cqw !important;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.ts-card-fig small { font-weight: 400; font-size: 9.2cqw; color: var(--ts-card-label); margin: 0 .9cqw 0 .5cqw; letter-spacing: 0; }
.ts-card-status { display: flex; align-items: center; gap: 2.2cqw; font-size: 4.6cqw; line-height: 1.3; margin-top: 3cqw !important; }
.ts-card-status b { font-weight: 600; color: var(--ts-card-ink); }
.ts-card-status span { color: var(--ts-card-label); }
.ts-glyph { position: relative; width: 3.3cqw; height: 3.3cqw; flex: none; }
.ts-glyph i { position: absolute; inset: 0; border-radius: 50%; transition: opacity .2s ease; }
.ts-glyph .ts-dot { background: var(--ts-latest); }
.ts-glyph .ts-tick { background: var(--ts-card-ink); opacity: 0; }
.ts-glyph .ts-tick::after { content: ""; position: absolute; left: 33%; top: 22%; width: 22%; height: 40%; border: solid var(--ts-mint); border-width: 0 .55cqw .55cqw 0; transform: rotate(40deg); }
.ts-stamps { list-style: none; margin: 4cqw 0 0 !important; padding: 0; }
.ts-stamps li { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ts-rule); height: 13cqw; align-items: center; }
.ts-stamps li > span { font-size: 4.6cqw; color: var(--ts-card-label); transition: color .2s ease; }
.ts-stamps b { font-family: var(--k-display); font-weight: 700; font-size: 9.2cqw; font-variant-numeric: tabular-nums; color: var(--ts-card-ink);
  transform-origin: right center; transition: color .2s ease; }
.ts-stamps em { font-style: normal; font-size: 4.6cqw; color: var(--ts-card-label); }
.ts-stamps li.is-latest > span, .ts-stamps li.is-latest b { color: var(--ts-latest); }
.ts-stamps li.is-next > span { font-weight: 600; color: var(--ts-card-ink); }
.ts-stamps .ts-stamp-wrap { position: relative; display: grid; justify-items: end; }
.ts-stamps .ts-stamp-wrap > * { grid-area: 1 / 1; align-self: center; }

/* The card's states, as the hero's moment moves through them */
.ts-glyph.is-saved .ts-dot { opacity: 0; }
.ts-glyph.is-saved .ts-tick { opacity: 1; }
.ts-stamps li[data-ts="out"] > .ts-stamp-wrap > b { opacity: 0; }
.ts-stamps li[data-ts="out"].is-stamped > .ts-stamp-wrap > b { opacity: 1; }
.ts-stamps li[data-ts="out"].is-stamped > .ts-stamp-wrap > em { opacity: 0; }

/* ---------- The hero's showpiece: the time clock, its rack of clock cards, Friday's card ----------
   Seven sleeves hang from a rail on the wall (the week bar is the rail), the time clock beside
   them, Friday's card in front. Sized from its own width (cqw). */
.ts-show { position: relative; width: 100%; max-width: min(980px, calc((100svh - 150px) * 1.26)); margin-left: auto; container-type: inline-size; }
@media (min-width: 900px) { .ts-hero .k-hero-grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); } }
@media (min-width: 1440px) { .ts-show { width: calc(100% + 100px); margin-right: -100px; } }
@media (min-width: 1600px) { .ts-hero .k-wrap { max-width: 1480px; } }
.ts-stage { position: relative; height: 79cqw; }
.ts-tclock { position: absolute; z-index: 2; left: 0; top: 0; width: 31cqw; height: 14cqw; box-sizing: border-box; border-radius: 3cqw;
  background: linear-gradient(#2A3832, #1A2420); padding: 2.4cqw 3cqw; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 0.2cqw 0 rgba(255,255,255,.10) inset, 0 2.4cqw 4cqw -2cqw rgba(10,44,31,.55); }
.ts-tclock-slot { position: absolute; left: 50%; top: 1cqw; width: 14cqw; height: 0.9cqw; margin-left: -7cqw; border-radius: 1cqw; background: #0B110E; box-shadow: 0 0.15cqw 0 rgba(255,255,255,.12); }
.ts-tclock-day { font: 600 max(1.9cqw, 11px)/1.1 var(--k-text); color: #8FB3A2; margin-top: 1cqw !important; letter-spacing: .02em; }
.ts-tclock-time { font: 700 7cqw/1 var(--k-display); color: #DDF5E9; font-variant-numeric: tabular-nums; margin-top: 0.4cqw !important; }
.ts-rack { position: absolute; left: 0; top: 0; width: 62cqw; height: 79cqw; }
.ts-rack-head { position: absolute; left: 34cqw; right: 0; top: 1.4cqw; text-align: right; }
.ts-wk { display: grid; justify-items: end; gap: 0.4cqw; }
.ts-wk span { font: 600 max(1.8cqw, 11px)/1.1 var(--k-text); color: var(--k-ink-2); }
.ts-wk b { font: 700 4.6cqw/1 var(--k-display); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ts-wk i { font: 600 max(1.8cqw, 11px)/1 var(--k-text); font-style: normal; color: var(--k-ink-2); font-variant-numeric: tabular-nums; }
/* the rail: the week's hours as a bar the sleeves hang from */
.ts-wkbar { position: absolute; left: -34cqw; right: 0; top: 17.4cqw; height: 1.8cqw; display: flex; gap: 0.3cqw; border-radius: 1cqw; background: #E3EAE6; overflow: hidden; box-shadow: inset 0 0.15cqw 0.3cqw rgba(10,44,31,.12); }
.ts-wkbar i { flex: none; width: calc(var(--m) / 3000 * 100%); background: var(--ts-deep); }
.ts-wkbar i.ts-wk-fri { background: var(--ts-brand); transform-origin: left center; }
.ts-wk-dates { position: absolute; left: -34cqw; top: 13.4cqw; font: 600 max(1.7cqw, 11px)/1 var(--k-text); color: var(--k-ink-2); }
.ts-pockets { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 21cqw; bottom: 3cqw; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.9cqw; }
.ts-pockets li { position: relative; }
.ts-pockets li::before { /* the sleeve's back, hung from the rail */
  content: ""; position: absolute; left: 0; right: 0; top: 7cqw; bottom: 0; border-radius: 1.2cqw; background: var(--ts-deep);
  box-shadow: 0 2.4cqw 3.4cqw -2cqw rgba(10,44,31,.55); }
.ts-pockets li::after { /* its hook on the rail */
  content: ""; position: absolute; left: 50%; top: -2.2cqw; width: 0.6cqw; height: 9.2cqw; margin-left: -0.3cqw; border-radius: 0.3cqw; background: #9FB1A9; }
.ts-pcard { position: absolute; z-index: 1; left: 0.6cqw; right: 0.6cqw; top: 3cqw; height: 40cqw; box-sizing: border-box; border-radius: 0.9cqw 0.9cqw 0.4cqw 0.4cqw;
  background: #F2F2F7; color: var(--ts-card-ink); display: flex; flex-direction: column; align-items: center; padding-top: 1.6cqw;
  box-shadow: 0 0.4cqw 1cqw rgba(0,0,0,.22); }
.ts-pcard b { font: 600 max(1.7cqw, 10px)/1.1 var(--k-text); color: #4E5A55; }
.ts-pcard i { font: 700 3.6cqw/1.1 var(--k-display); font-style: normal; margin-top: 0.4cqw; padding-bottom: 1.2cqw; border-bottom: 0.2cqw solid #C9D3CE; width: 70%; text-align: center; }
.ts-pcard em { font: 700 2.3cqw/1.15 var(--k-display); font-style: normal; font-variant-numeric: tabular-nums; }
.ts-pcard em:first-of-type { margin-top: 1.2cqw; }
.ts-lip { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 22cqw; border-radius: 0.6cqw 0.6cqw 1.2cqw 1.2cqw;
  background: linear-gradient(#11402D, #0A2C1F); box-shadow: 0 0.2cqw 0 rgba(255,255,255,.10) inset, 0 -0.8cqw 1.4cqw rgba(0,0,0,.22); }
.ts-lip-day { position: absolute; z-index: 3; left: 0; right: 0; bottom: 9cqw; text-align: center; font: 600 max(1.6cqw, 10px)/1 var(--k-text); color: #7FA392; }
.ts-pk-fri.is-waiting .ts-lip::after { content: "Fri"; position: absolute; left: 0; right: 0; bottom: 9cqw; text-align: center; font: 600 max(1.6cqw, 10px)/1 var(--k-text); color: #8FE0BE; }
html.k-motion .ts-pk-fri.is-waiting .ts-pcard { opacity: 0; }   /* first paint, before the script takes over */
.ts-card-hero { position: absolute; z-index: 4; right: 0; top: 31cqw; width: 46cqw;
  filter: drop-shadow(0 3.4cqw 4cqw rgba(10, 44, 31, .32)) drop-shadow(0 0.8cqw 1.2cqw rgba(10, 44, 31, .16)); }

/* On a phone: the clock and the readout across the top, the sleeves on their rail, the card below. */
@media (max-width: 899px) {
  .ts-show { max-width: 460px; margin: 0 auto; }
  .ts-stage { height: 158cqw; }
  .ts-tclock { width: 46cqw; height: 19cqw; border-radius: 4.4cqw; padding: 3cqw 4.4cqw; }
  .ts-tclock-slot { width: 20cqw; margin-left: -10cqw; height: 1.3cqw; top: 1.4cqw; }
  .ts-tclock-day { font-size: max(3cqw, 11px); margin-top: 1.4cqw !important; }
  .ts-tclock-time { font-size: 10cqw; }
  .ts-rack { width: 100cqw; height: 74cqw; }
  .ts-rack-head { left: 50cqw; top: 2cqw; }
  .ts-wk span, .ts-wk i { font-size: max(3cqw, 11px); }
  .ts-wk b { font-size: 7cqw; }
  .ts-wkbar { left: -50cqw; top: 23cqw; height: 2.4cqw; }
  .ts-wk-dates { display: none; }
  .ts-pockets { top: 27cqw; bottom: 0; gap: 1.2cqw; }
  .ts-pockets li::before { top: 8cqw; }
  .ts-pockets li::after { top: -2.6cqw; height: 10.6cqw; width: 0.9cqw; margin-left: -0.45cqw; }
  .ts-pcard { top: 3cqw; height: 34cqw; padding-top: 2.4cqw; }
  .ts-pcard b { font-size: max(2.9cqw, 10px); }
  .ts-pcard i { font-size: 5.4cqw; }
  .ts-pcard em { font-size: 3.6cqw; }
  .ts-lip { height: 15cqw; }
  .ts-lip-day, .ts-pk-fri.is-waiting .ts-lip::after { font-size: max(2.8cqw, 10px); bottom: 6cqw; }
  .ts-card-hero { left: 7cqw; right: auto; top: 76cqw; width: 86cqw; }
}

/* The hero pins for a screen in any window it fits whole (it's laid out to fit 560 px tall;
   tallyshift.js sets up its moment with the same query) */
@media (min-width: 900px) and (max-height: 700px) {
  .k-tallyshift .k-hero-head > * + *, .k-tallyshift .k-hero-more > * + * { margin-top: 14px; }
  .ts-hero .k-lockup img { width: 44px; height: 44px; }
}
@media (min-width: 900px) and (max-height: 640px) { .ts-hero .ts-reqs { display: none; } }
@media (min-width: 900px) and (min-height: 560px) {
  html.k-motion .ts-hero { display: block; height: 190svh; min-height: 0; padding: 0; }
  html.k-motion .ts-hero-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: 92px 0 28px; box-sizing: border-box; }
}
.ts-hero-pin { width: 100%; }

/* ---------- Grounds: white, the app's grey, the card's mint, the rack's deep green ---------- */
.ts-ground-grey { background: #F2F4F3; }
.ts-band-mint { background: var(--ts-mint); --k-ink-2: #3E4A45; --k-line: rgba(14, 42, 26, .16); }
.ts-band-deep, .ts-close { background: var(--ts-deep); --k-ink: #F2F8F4; --k-ink-2: #B5CCC0; --k-line: rgba(255,255,255,.16); color: var(--k-ink); }
.ts-band-deep .k-eyebrow, .ts-close .k-eyebrow { color: #8FE0BE; }
.k-band { overflow-x: clip; overflow-y: visible; }
.k-tallyshift .k-band-grid > .k-stack .k-lead { max-width: 30ch; }

/* ---------- Scenes ---------- */
.ts-visual { gap: clamp(20px, 3vw, 44px); }
.ts-scene .k-step .k-body { max-width: 40ch; }
@media (max-width: 899px) {
  .ts-says, .ts-csv, .ts-cal, .ts-side { display: none !important; }
  html.k-motion .ts-visual { justify-content: center; }
}

/* The drawn screens: a 440 pt iPhone screen (the 6.9-inch size the captures beside them are), sized from the frame's width (the screen is the
   size container, so a drawn screen's own padding is measured on the phone, not the window) */
.ts-scene .k-device-screen { container-type: inline-size; }
.ts-scr { position: absolute; inset: 0; container-type: inline-size; --pt: calc(100cqw / 440); overflow: hidden;
  background: #FFFFFF; color: #000; font-family: var(--k-text); opacity: 0; transition: opacity .45s ease; text-align: left; }
.ts-scr[data-screen="0"] { opacity: 1; }
html.k-motion .k-scene .ts-scr { opacity: 0; }
html.k-motion .k-scene[data-step="0"] .ts-scr[data-screen="0"],
html.k-motion .k-scene[data-step="1"] .ts-scr[data-screen="1"],
html.k-motion .k-scene[data-step="2"] .ts-scr[data-screen="2"] { opacity: 1; }
.k-device-screen .ts-scr img { position: static; inset: auto; width: auto; height: auto; opacity: 1; object-fit: initial; }
.ts-scr p { margin: 0; }
.ts-sb { position: absolute; top: 0; left: 0; right: 0; height: calc(54 * var(--pt)); display: flex; align-items: center; justify-content: space-between;
  padding: calc(6 * var(--pt)) calc(34 * var(--pt)) 0 calc(44 * var(--pt)); box-sizing: border-box; font-size: calc(17 * var(--pt)); font-weight: 600; }
.ts-sb i { width: calc(27 * var(--pt)); height: calc(13 * var(--pt)); border-radius: calc(4 * var(--pt)); background: currentColor; opacity: .9; }
.ts-sb-light { color: #FFFFFF; }

/* Today (TodayView): the card from y 116 pt, then the week, then Planned */
.ts-today { padding-top: calc(116 * var(--pt)); }
.ts-tool { position: absolute; top: calc(60 * var(--pt)); right: calc(16 * var(--pt)); width: calc(100 * var(--pt)); height: calc(46 * var(--pt));
  border-radius: 999px; background: #FFFFFF; box-shadow: 0 calc(2 * var(--pt)) calc(10 * var(--pt)) rgba(0,0,0,.10), 0 0 0 calc(.5 * var(--pt)) rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: space-around; }
.ts-tool span { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); background: #000; }
.ts-ico-plus { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M3 12h18' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M3 12h18' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-ico-gear { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5l1.6 2.6 3-.6.9 2.9 2.8 1.2-.9 2.9 1.8 2.5-2.4 1.8.2 3-3 .4-1.4 2.7-2.6-1.4-2.6 1.4-1.4-2.7-3-.4.2-3-2.4-1.8 1.8-2.5-.9-2.9 2.8-1.2.9-2.9 3 .6z' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5l1.6 2.6 3-.6.9 2.9 2.8 1.2-.9 2.9 1.8 2.5-2.4 1.8.2 3-3 .4-1.4 2.7-2.6-1.4-2.6 1.4-1.4-2.7-3-.4.2-3-2.4-1.8 1.8-2.5-.9-2.9 2.8-1.2.9-2.9 3 .6z' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-card-mini { width: calc(408 * var(--pt)); margin: 0 auto; }
.ts-card-mini .ts-stamps em { font-size: 4.6cqw; color: var(--ts-card-label); font-style: normal; }
.ts-row { display: flex; justify-content: space-between; align-items: flex-start; gap: calc(8 * var(--pt)); margin: 0 calc(16 * var(--pt)); padding: calc(10 * var(--pt)) 0; }
.ts-row > div { display: grid; gap: calc(2 * var(--pt)); }
.ts-row b { font-size: calc(17 * var(--pt)); font-weight: 600; }
.ts-row b.ts-r { font-weight: 400; }
.ts-row span { font-size: calc(15 * var(--pt)); color: #8A8A8E; }
.ts-row em { font-style: normal; font-size: calc(17 * var(--pt)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-row em.ts-dim { color: #8A8A8E; }
.ts-row-week { margin-top: calc(14 * var(--pt)); }
.ts-row-rule { border-top: calc(.6 * var(--pt)) solid #D1D1D6; }
.ts-sec { font-size: calc(17 * var(--pt)); font-weight: 700; margin: calc(22 * var(--pt)) calc(16 * var(--pt)) calc(2 * var(--pt)) !important; }
.ts-bar { position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); bottom: calc(99 * var(--pt)); display: flex; gap: calc(8 * var(--pt)); }
.ts-today .ts-bar::before { content: ""; position: absolute; left: calc(-16 * var(--pt)); right: calc(-16 * var(--pt)); top: calc(-28 * var(--pt)); bottom: calc(-99 * var(--pt)); z-index: -1;
  background: linear-gradient(rgba(255,255,255,0), #FFFFFF calc(16 * var(--pt))); }
.ts-bar { z-index: 1; }
.ts-btn { flex: 1; height: calc(52 * var(--pt)); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: calc(17 * var(--pt)); font-weight: 600; }
.ts-btn-1 { background: var(--ts-brand); color: var(--ts-brand-ink); }
.ts-btn-2 { background: #DDECE7; color: #0E7654; }
.ts-tabs { position: absolute; z-index: 2; left: 50%; bottom: calc(21 * var(--pt)); transform: translateX(-50%); width: calc(286 * var(--pt)); height: calc(64 * var(--pt));
  border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 calc(4 * var(--pt)) calc(18 * var(--pt)) rgba(0,0,0,.10), 0 0 0 calc(.5 * var(--pt)) rgba(0,0,0,.10);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(4 * var(--pt)); box-sizing: border-box; }
.ts-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--pt)); font-size: calc(10.5 * var(--pt)); font-weight: 600; border-radius: 999px; }
.ts-tabs span.is-on { background: rgba(0,0,0,.06); color: #086E4D; }
.ts-tabs i { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); border-radius: 50%; background: currentColor; }
.ts-tabs .ts-ico-cal { border-radius: calc(5 * var(--pt)); }
.ts-tabs .ts-ico-slip { border-radius: calc(4 * var(--pt)); width: calc(19 * var(--pt)); }

/* The lock screen */
.ts-lock { background: radial-gradient(130% 70% at 50% 0%, #2A7A58 0%, #134A35 46%, #0A2C1F 100%); color: #FFFFFF; text-align: center; }
.ts-lock-date { margin-top: calc(78 * var(--pt)) !important; font-size: calc(21 * var(--pt)); font-weight: 600; opacity: .92; }
.ts-lock-time { font-size: calc(104 * var(--pt)); font-weight: 600; line-height: 1; letter-spacing: calc(-3 * var(--pt)); margin-top: calc(2 * var(--pt)) !important; font-variant-numeric: tabular-nums; }
.ts-snip, .ts-note { position: absolute; left: calc(12 * var(--pt)); right: calc(12 * var(--pt)); top: calc(300 * var(--pt)); display: flex; gap: calc(12 * var(--pt)); align-items: flex-start;
  padding: calc(14 * var(--pt)); border-radius: calc(26 * var(--pt)); background: rgba(250, 252, 251, .86); color: #000; text-align: left;
  box-shadow: 0 calc(8 * var(--pt)) calc(30 * var(--pt)) rgba(0,0,0,.25); }
.k-device-screen .ts-snip img, .k-device-screen .ts-note img { width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); border-radius: calc(10 * var(--pt)); flex: none; }
.ts-snip div, .ts-note div { display: grid; gap: calc(2 * var(--pt)); min-width: 0; flex: 1; }
.ts-snip b { font-size: calc(13 * var(--pt)); font-weight: 600; color: #6E6E73; text-transform: uppercase; letter-spacing: .04em; }
.ts-snip span { font-size: calc(19 * var(--pt)); font-weight: 600; }
.ts-note { top: calc(318 * var(--pt)); border-radius: calc(22 * var(--pt)); }
.ts-note p { font-size: calc(15 * var(--pt)); line-height: 1.3; }
.ts-note p:first-child { display: flex; justify-content: space-between; }
.ts-note p:first-child span { color: #6E6E73; font-size: calc(13 * var(--pt)); }

/* How you're paid (SetupView): a grouped form */
.ts-form { background: #F2F2F7; padding-top: calc(70 * var(--pt)); }
.k-device-screen .ts-scr img.ts-form-icon { display: block; width: calc(64 * var(--pt)); height: calc(64 * var(--pt)); border-radius: calc(14 * var(--pt)); margin: 0 calc(20 * var(--pt)); }
.ts-form-title { font-family: var(--k-display); font-weight: 700; font-size: calc(34 * var(--pt)); margin: calc(14 * var(--pt)) calc(20 * var(--pt)) 0 !important; }
.ts-form-intro { font-size: calc(17 * var(--pt)); color: #6E6E73; line-height: 1.3; margin: calc(6 * var(--pt)) calc(20 * var(--pt)) 0 !important; }
.ts-form-sec { font-size: calc(15 * var(--pt)); font-weight: 600; color: #6E6E73; margin: calc(24 * var(--pt)) calc(36 * var(--pt)) calc(8 * var(--pt)) !important; }
.ts-group { margin: 0 calc(16 * var(--pt)); background: #FFFFFF; border-radius: calc(26 * var(--pt)); overflow: hidden; }
.ts-grow { display: flex; justify-content: space-between; align-items: center; min-height: calc(52 * var(--pt)); padding: 0 calc(20 * var(--pt)); font-size: calc(17 * var(--pt)); }
.ts-grow + .ts-grow { border-top: calc(.6 * var(--pt)) solid #D1D1D6; }
.ts-grow em { font-style: normal; color: #6E6E73; }
.ts-grow em.ts-acc { color: #0E7654; display: flex; align-items: center; gap: calc(5 * var(--pt)); }
.ts-grow em.ts-acc::after { content: ""; width: calc(9 * var(--pt)); height: calc(14 * var(--pt)); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5L4.5 2l3 3M1.5 9l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 5L4.5 2l3 3M1.5 9l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-grow em.ts-pill { color: #000; background: #E9E9EB; border-radius: calc(8 * var(--pt)); padding: calc(6 * var(--pt)) calc(11 * var(--pt)); }
.ts-form-foot { font-size: calc(13 * var(--pt)); color: #6E6E73; line-height: 1.35; margin: calc(8 * var(--pt)) calc(36 * var(--pt)) 0 !important; }
.ts-bar-grouped { bottom: calc(40 * var(--pt)); }
.ts-btn-full { flex: 1; }

/* The PDF timesheet, open on the phone */
.ts-pdf { background: #E5E5EA; }
.ts-pdf-bar { position: absolute; top: calc(58 * var(--pt)); left: 0; right: 0; text-align: center; font-size: calc(14 * var(--pt)); }
.ts-page { position: absolute; top: calc(96 * var(--pt)); left: calc(12 * var(--pt)); right: calc(12 * var(--pt)); bottom: calc(24 * var(--pt)); background: #FFFFFF;
  padding: calc(20 * var(--pt)) calc(18 * var(--pt)); box-shadow: 0 calc(4 * var(--pt)) calc(16 * var(--pt)) rgba(0,0,0,.12); color: #1C1C1E; }
.ts-pdf-head { font-size: calc(10 * var(--pt)); color: #6E6E73; padding-bottom: calc(10 * var(--pt)); border-bottom: calc(.6 * var(--pt)) solid #D1D1D6; }
.ts-pdf-job { font-size: calc(20 * var(--pt)); font-weight: 700; margin-top: calc(14 * var(--pt)) !important; }
.ts-pdf-period { font-size: calc(14 * var(--pt)); margin-top: calc(2 * var(--pt)) !important; }
.ts-pdf-made { font-size: calc(10 * var(--pt)); color: #6E6E73; margin-top: calc(4 * var(--pt)) !important; }
.ts-pdf-h { font-size: calc(12 * var(--pt)); font-weight: 700; margin-top: calc(16 * var(--pt)) !important; }
.ts-page table { width: 100%; border-collapse: collapse; margin-top: calc(6 * var(--pt)); font-size: calc(8.6 * var(--pt)); font-variant-numeric: tabular-nums; }
.ts-page th { text-align: left; font-weight: 600; color: #6E6E73; padding: calc(3 * var(--pt)) calc(2 * var(--pt)); border-bottom: calc(.6 * var(--pt)) solid #D1D1D6; }
.ts-page td { padding: calc(4 * var(--pt)) calc(2 * var(--pt)); border-bottom: calc(.4 * var(--pt)) solid #E5E5EA; white-space: nowrap; }
.ts-pdf-line { font-size: calc(10.5 * var(--pt)); line-height: 1.35; margin-top: calc(4 * var(--pt)) !important; }
.ts-pdf-foot { position: absolute; left: calc(18 * var(--pt)); right: calc(18 * var(--pt)); bottom: calc(16 * var(--pt)); font-size: calc(8.6 * var(--pt)); color: #6E6E73; }

/* Beside the phone: what you say to Siri, and Tallyshift's answers */
.ts-says { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; width: min(300px, 40%); flex: none; }
.ts-says li { display: grid; gap: 6px; justify-items: start; }
.ts-says q { quotes: "“" "”"; font: 600 16px/1.3 var(--k-text); color: #FFFFFF; background: var(--ts-deep); border-radius: 18px 18px 18px 6px; padding: 10px 15px; }
.ts-says span { font: 500 15px/1.35 var(--k-text); color: var(--k-ink); background: #FFFFFF; border-radius: 14px; padding: 8px 13px; box-shadow: 0 1px 0 var(--k-line), 0 6px 14px -8px rgba(10,44,31,.25); margin-left: 14px; }
.ts-strip-says span, .ts-strip-kinds span, .ts-strip-csv span { font: 600 13px/1 var(--k-text); padding: 7px 10px; border-radius: 999px; background: #FFFFFF; color: var(--k-ink-2); box-shadow: inset 0 0 0 1px var(--k-line); transition: background-color .25s ease, color .25s ease; }
.ts-strip-says span.is-on, .ts-strip-kinds span.is-on { background: var(--ts-deep); color: #FFFFFF; box-shadow: none; }
.ts-strip-csv span:last-child { background: var(--ts-mint); color: var(--ts-card-ink); box-shadow: none; }

/* Beside the phone: October, with the pay period marked */
.ts-cal { width: min(300px, 40%); flex: none; background: #FFFFFF; border-radius: 24px; padding: 22px 20px; box-shadow: 0 0 0 1px var(--k-line), 0 24px 44px -28px rgba(10,44,31,.35); }
.ts-cal-head { display: grid; gap: 2px; margin-bottom: 14px !important; }
.ts-cal-head b { font: 700 22px/1.15 var(--k-display); color: var(--k-ink); }
.ts-cal-head span { font-size: 15px; color: var(--k-ink-2); }
.ts-cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ts-cal-grid li { position: relative; aspect-ratio: 1; display: grid; place-items: center; font: 600 13px/1 var(--k-text); color: var(--k-ink); border-radius: 8px; transition: background-color .3s ease, color .3s ease; }
.ts-cal-grid li.ts-cal-dow { aspect-ratio: auto; height: 18px; color: var(--k-ink-2); font-weight: 600; font-size: 11px; }
.ts-cal-grid li.out { color: #A7B3AD; }
.ts-cal-grid li.w::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ts-latest); }
.ts-cal-grid li.p::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; border: 1px solid var(--ts-latest); box-sizing: border-box; }
.ts-cal[data-kind="0"] li.k0, .ts-cal[data-kind="1"] li.k1, .ts-cal[data-kind="2"] li.k2, .ts-cal[data-kind="3"] li.k3 { background: var(--ts-mint); color: var(--ts-card-ink); }

/* Beside the phone: the CSV */
.ts-csv { width: min(330px, 44%); flex: none; background: #FFFFFF; border-radius: 20px; padding: 18px 16px 16px; box-shadow: 0 0 0 1px var(--k-line), 0 24px 44px -28px rgba(10,44,31,.35); }
.ts-csv-name { font: 600 13px/1.3 var(--k-text); color: var(--k-ink); margin-bottom: 10px !important; word-break: break-all; }
.ts-csv table { width: 100%; border-collapse: collapse; font: 500 11.5px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--k-ink); }
.ts-csv th { text-align: left; font-weight: 600; color: var(--k-ink-2); padding: 5px 4px; border-bottom: 1px solid var(--k-line); }
.ts-csv td { padding: 6px 4px; border-bottom: 1px solid var(--k-line); white-space: nowrap; }
.ts-csv tr.is-edited td { background: var(--ts-mint); }
.ts-csv tr.is-edited td:last-child { font-weight: 700; color: var(--ts-latest); }
.ts-csv-note { font-size: 12px; color: var(--k-ink-2); margin-top: 10px !important; line-height: 1.4; }

/* ---------- Band: the usual week ---------- */
.ts-tpl { display: grid; gap: 14px; max-width: 560px; width: 100%; justify-self: center; }
.ts-tpl-pick { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 24px -16px rgba(10,44,31,.4); transform-origin: center; }
.ts-tpl-pick div { display: grid; gap: 2px; }
.ts-tpl-pick b { font: 600 18px/1.2 var(--k-text); }
.ts-tpl-pick span:not([class]) { font-size: 15px; color: #6E6E73; }
.ts-ico-calplus { width: 30px; height: 30px; flex: none; background: var(--ts-card-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='20' height='19' rx='4'/%3E%3Cpath d='M3 11h20M9 3v4M17 3v4'/%3E%3Ccircle cx='22' cy='22' r='6' fill='%23000' stroke='none'/%3E%3Cpath d='M22 19v6M19 22h6' stroke='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='20' height='19' rx='4'/%3E%3Cpath d='M3 11h20M9 3v4M17 3v4'/%3E%3Ccircle cx='22' cy='22' r='6' fill='%23000' stroke='none'/%3E%3Cpath d='M22 19v6M19 22h6' stroke='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-tpl-board { background: #FFFFFF; border-radius: 26px; padding: 20px 18px 16px; box-shadow: 0 30px 50px -30px rgba(10,44,31,.45); }
.ts-tpl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px !important; }
.ts-tpl-head b { font: 700 22px/1.2 var(--k-display); }
.ts-tpl-head span { font-size: 14px; font-weight: 600; color: #6E6E73; }
.ts-tpl-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ts-tpl-days li { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-height: 150px; }
.ts-tpl-days li > span { display: grid; justify-items: center; font-size: 12px; font-weight: 600; color: #6E6E73; }
.ts-tpl-days li > span i { font: 700 20px/1.1 var(--k-display); font-style: normal; color: var(--ts-card-ink); }
.ts-tpl-days li::after { content: ""; grid-row: 2; grid-column: 1; border-radius: 12px; background: #F2F4F3; }
.ts-plan { grid-row: 2; grid-column: 1; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--ts-rule); border: 0; }
.ts-plan b { font: 700 15px/1.1 var(--k-display); color: var(--ts-card-ink); font-variant-numeric: tabular-nums; }
.ts-plan b + b::before { content: "–"; display: block; text-align: center; font-family: var(--k-text); font-weight: 400; color: #8A8A8E; font-size: 12px; line-height: 1; margin-bottom: 3px; }
.ts-plan em { font-style: normal; font-size: 11px; color: #6E6E73; margin-top: 4px; }
.ts-tpl-break { font-size: 13px; color: #6E6E73; margin-top: 12px !important; }
.ts-notice { display: flex; align-items: center; gap: 10px; background: #F2F2F7; border-radius: 16px; padding: 14px 18px; font-size: 17px; justify-self: start; box-shadow: 0 10px 24px -18px rgba(10,44,31,.4); }
.ts-notice b { font-weight: 600; }
.ts-ico-info { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px #6E6E73; position: relative; flex: none; }
.ts-ico-info::after { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 Georgia, serif; color: #6E6E73; }
@media (max-width: 899px) {
  .ts-tpl-days { gap: 4px; }
  .ts-tpl-days li { min-height: 118px; }
  .ts-plan b { font-size: 12px; }
  .ts-plan em { font-size: 9.5px; text-align: center; }
  .ts-tpl-board { padding: 16px 12px 14px; }
  .ts-tpl-head b { font-size: 18px; }
}

/* ---------- Band: the payslip check ---------- */
.ts-check { background: #12432F; border-radius: 30px; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 60px -40px rgba(0,0,0,.6); color: #E8F3ED; }
.ts-check-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: #A9C2B6; }
.ts-check-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px !important; }
.ts-check-label span { font-size: 15px; color: #A9C2B6; font-weight: 600; }
.ts-check-label b { font: 700 18px/1.2 var(--k-display); font-variant-numeric: tabular-nums; color: #FFFFFF; }
.ts-check-bar { list-style: none; margin: 0; padding: 0; display: flex; height: 56px; border-radius: 14px; background: rgba(0,0,0,.22); overflow: hidden; }
.ts-check-rec .ts-check-bar li { flex: 1; display: grid; align-content: center; padding: 0 10px; background: var(--ts-mint); color: var(--ts-card-ink); transform-origin: left center; }
.ts-check-rec .ts-check-bar li + li { box-shadow: inset 1.5px 0 0 var(--ts-rule); }
.ts-check-bar li span { font-size: 12px; font-weight: 600; color: var(--ts-card-label); }
.ts-check-bar li b { font: 700 15px/1.15 var(--k-display); font-variant-numeric: tabular-nums; }
.ts-slip-fill { width: 90.625%; display: flex; align-items: center; padding: 0 14px; box-sizing: border-box; background: #F7FAF8; color: var(--ts-card-ink); transform-origin: left center; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ts-gap { width: 9.375%; position: relative; box-shadow: inset 0 0 0 2px #8FE0BE; border-radius: 0 14px 14px 0; background: repeating-linear-gradient(135deg, rgba(143,224,190,.22) 0 6px, transparent 6px 12px); }
.ts-gap span { position: absolute; right: 0; top: calc(100% + 6px); font: 700 14px/1 var(--k-display); color: #8FE0BE; white-space: nowrap; }
.ts-check-result { display: flex; align-items: flex-end; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ts-check-fig { font: 700 clamp(52px, 5.4vw, 76px)/0.95 var(--k-display); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ts-check-fig small { font-weight: 400; font-size: .42em; color: #A9C2B6; margin: 0 .12em 0 .06em; }
.ts-check-side { font: 600 clamp(19px, 1.7vw, 24px)/1.2 var(--k-text); color: #FFFFFF; display: grid; gap: 4px; padding-bottom: 6px; }
.ts-check-side span { font-size: 15px; font-weight: 400; color: #A9C2B6; }
.ts-check-sentence { font-size: 15px; line-height: 1.5; color: #D6E6DD; background: rgba(0,0,0,.18); border-radius: 16px; padding: 14px 16px; }

/* ---------- Band: rates ---------- */
.ts-rates { background: #FFFFFF; border-radius: 30px; padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 40px 60px -40px rgba(10,44,31,.5); display: grid; gap: 18px; }
.ts-rates-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ts-rates-head b { font: 700 22px/1.2 var(--k-display); }
.ts-rates-head span { font-size: 14px; color: #6E6E73; font-weight: 600; }
.ts-rates-bar { position: relative; padding-bottom: 34px; }
.ts-rates-days { display: flex; margin-bottom: 8px; }
.ts-rates-days span { flex: var(--w) 1 0; font-size: 12px; font-weight: 600; color: #6E6E73; padding-left: 6px; border-left: 1.5px solid #D9E2DD; }
.ts-rates-track { position: relative; height: 40px; border-radius: 12px; background: #EEF3F0; overflow: hidden; }
.ts-rates-fill, .ts-rates-ot { position: absolute; top: 0; bottom: 0; left: 0; }
.ts-rates-fill { width: 79.0306%; background: var(--ts-brand); transform-origin: left center; }
.ts-rates-ot { left: 79.0306%; width: 20.9694%; background: repeating-linear-gradient(135deg, var(--ts-latest) 0 7px, #0F7A57 7px 14px); transform-origin: left center; }
.ts-rates-mark { position: absolute; top: -6px; bottom: -6px; left: 79.0306%; width: 2px; margin-left: -1px; background: var(--ts-card-ink); }
.ts-rates-markl { position: absolute; right: 0; bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ts-card-ink); text-align: right; }
.ts-rates-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.ts-rates-totals div { background: #F2F4F3; border-radius: 16px; padding: 12px 14px; }
.ts-rates-totals dt { font-size: 13px; font-weight: 600; color: #6E6E73; }
.ts-rates-totals dd { margin: 4px 0 0; font: 700 18px/1.25 var(--k-display); font-variant-numeric: tabular-nums; color: var(--ts-card-ink); }
.ts-rates-totals dd span:first-child { font-family: var(--k-text); font-weight: 600; font-size: 15px; }
.ts-rates-gross { font-size: 15px; line-height: 1.5; color: var(--ts-card-ink); border-top: 2px solid var(--ts-card-ink); padding-top: 14px; }
@media (max-width: 899px) { .ts-rates-totals { grid-template-columns: 1fr; } }

/* ---------- The rest: tiles ---------- */
.ts-rest .k-tile { background: #FFFFFF; }
.ts-files { background: #F2F2F7; border-radius: 18px; padding: 14px 16px; }
.ts-files-path { font-size: 13px; font-weight: 600; color: #6E6E73; margin-bottom: 8px !important; }
.ts-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ts-files li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #DCDCE1; font-size: 15px; }
.ts-files li:first-child { border-top: 0; }
.ts-files li i { width: 22px; height: 26px; border-radius: 4px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #B9C6BF; }
.ts-files li b { font-weight: 500; color: var(--k-ink); overflow-wrap: anywhere; min-width: 0; }
.ts-files li span { color: #6E6E73; font-size: 14px; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chips span { font: 600 15px/1 var(--k-text); padding: 10px 14px; border-radius: 999px; background: #F2F2F7; color: var(--k-ink); }
.ts-chips span.ts-chip-plus { background: var(--ts-mint); }
.ts-quote { font-size: 14px; line-height: 1.4; color: var(--k-ink); background: #F2F2F7; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.ts-quote-plain { justify-content: space-between; align-items: center; font-size: 15px; }
.ts-quote-plain span { color: #6E6E73; }
.ts-ico-warn { width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%; background: #E8890C; position: relative; }
.ts-ico-warn::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--k-text); color: #FFFFFF; }

/* ---------- Plans, questions, close ---------- */
.k-tallyshift .k-plan.k-plus { background: var(--ts-deep); }
.k-tallyshift .k-plan.k-plus li::before { border-color: #8FE0BE; }
.k-tallyshift .k-plan.k-plus .k-meta { color: #B5CCC0; }
.k-tallyshift .k-plan-price { font-weight: 700; }
.ts-plans-note { margin-top: 24px !important; max-width: 70ch; }
.ts-faq-wrap .k-faq { max-width: 900px; }
.ts-close { padding: clamp(96px, 14svh, 160px) 0; }
.ts-close .k-btn-primary { background: var(--ts-brand); color: var(--ts-brand-ink); }
.ts-close .k-lockup b { color: #FFFFFF; }
.ts-close-nav { justify-content: center; margin-top: 40px; }
.ts-close .k-subnav a { color: #F2F8F4; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.ts-close .k-subnav a[aria-current="page"] { background: #F2F8F4; color: var(--ts-deep); box-shadow: none; }
.ts-close .k-cta .k-h2 { max-width: 16ch; }

/* ---------- Child pages ---------- */
.k-tallyshift .k-sub-hero { background: var(--ts-mint); }
.k-tallyshift .k-sub-hero .k-lead { color: #3E4A45; }
.k-tallyshift .k-doc h2 { font-weight: 700; }
.ts-form-card { background: #FFFFFF; border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 0 0 1px var(--k-line), 0 24px 44px -32px rgba(10,44,31,.35); margin: 20px 0 28px; }
.k-tallyshift .k-doc .k-note { background: #F2F4F3; box-shadow: none; }
@media (max-width: 899px) {
  .ts-check-rec .ts-check-bar li { padding: 0 7px; }
  .ts-check-bar li span { font-size: 11px; }
  .ts-check-bar li b { font-size: 12.5px; }
  .ts-check-head { font-size: 13px; }
}

/* ---------- Bands fill the screen on a desktop, their visuals at full size ---------- */
@media (min-width: 900px) {
  .k-tallyshift .k-band { min-height: 100svh; display: flex; align-items: center; box-sizing: border-box; }
  .k-tallyshift .k-band > .k-wrap { width: 100%; }
  .k-tallyshift .k-band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ts-tpl, .ts-check, .ts-rates { width: 100%; max-width: 680px; justify-self: end; }
}

/* ---------- Round 2: the scenes' side columns, the decimals, the CSV, the PDF ---------- */
.ts-side { position: relative; width: min(300px, 40%); flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
html.k-motion .ts-side { display: block; }
html.k-motion .ts-side-g { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.ts-side-stamps { list-style: none; margin: 0; padding: 18px 22px; background: var(--ts-mint); border-radius: 24px; box-shadow: 0 24px 40px -28px rgba(10,44,31,.45); }
.ts-side-stamps li { display: flex; justify-content: space-between; align-items: center; height: 56px; border-top: 1px solid var(--ts-rule); }
.ts-side-stamps li:first-child { border-top: 0; }
.ts-side-stamps span { font-size: 17px; color: var(--ts-card-label); }
.ts-side-stamps b { font: 700 32px/1 var(--k-display); color: var(--ts-card-ink); font-variant-numeric: tabular-nums; transform-origin: right center; }
.ts-side-stamps li.is-latest span, .ts-side-stamps li.is-latest b { color: var(--ts-latest); }
.ts-side-stamps li.is-next span { font-weight: 600; color: var(--ts-card-ink); }
.ts-side-stamps em { font-style: normal; font-size: 17px; color: var(--ts-card-label); }
.ts-says { width: auto; }
.ts-remind { display: grid; justify-items: start; gap: 8px; }
.ts-remind-day { font: 600 14px/1 var(--k-text); color: var(--k-ink-2); letter-spacing: .02em; }
.ts-remind-a, .ts-remind-b { display: flex; align-items: baseline; gap: 12px; }
.ts-remind-a span { font-size: 17px; color: var(--k-ink-2); }
.ts-remind-a b, .ts-remind-b b { font: 700 40px/1 var(--k-display); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ts-remind-b span { font: 600 18px/1.2 var(--k-text); color: #FFFFFF; background: var(--ts-deep); padding: 8px 12px; border-radius: 12px; }
.ts-remind-line { position: relative; height: 150px; margin-left: 26px; display: flex; align-items: center; }
.ts-remind-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: repeating-linear-gradient(var(--ts-brand) 0 10px, transparent 10px 16px); }
.ts-remind-line span { margin-left: 18px; font: 600 15px/1 var(--k-text); color: var(--k-ink-2); }
.ts-strip-says span.ts-strip-arrow, .ts-strip-kinds span.ts-strip-dec { background: none; box-shadow: none; }
html.k-motion .k-scene .k-strip [data-g] { display: none; }
html.k-motion .k-scene[data-step="0"] .k-strip [data-g="0"], html.k-motion .k-scene[data-step="1"] .k-strip [data-g="1"], html.k-motion .k-scene[data-step="2"] .k-strip [data-g="2"] { display: inline-flex; }
.ts-strip-says span[data-g="0"].is-on, .ts-strip-says span[data-g="2"].is-on { background: var(--ts-mint); color: var(--ts-card-ink); }
.ts-strip-dec i { font-style: normal; font: 700 15px/1 var(--k-display); color: var(--k-ink); }
.ts-strip-dec i + i { margin-left: 10px; color: var(--ts-latest); }
.ts-strip-dec i + i::before { content: "= "; font-family: var(--k-text); font-weight: 400; color: var(--k-ink-2); }

.ts-dec { width: min(300px, 40%); flex: none; background: #FFFFFF; border-radius: 24px; padding: 22px 20px; box-shadow: 0 0 0 1px var(--k-line), 0 24px 44px -28px rgba(10,44,31,.35); }
.ts-side-per .ts-cal, .ts-side-per .ts-dec { width: auto; }
.ts-dec ol { list-style: none; margin: 0; padding: 0; }
.ts-dec li { display: flex; justify-content: space-between; align-items: center; height: 48px; border-top: 1px solid var(--k-line); }
.ts-dec li span { font-size: 15px; color: var(--k-ink-2); }
.ts-dec li b { display: grid; justify-items: end; font: 700 22px/1 var(--k-display); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ts-dec li b i { grid-area: 1 / 1; font-style: normal; }
.ts-dec li b i + i { color: var(--ts-latest); }
.ts-dec li.ts-dec-total { border-top: 2px solid var(--k-ink); height: 60px; }
.ts-dec li.ts-dec-total span { font-weight: 600; color: var(--k-ink); }
.ts-dec li.ts-dec-total b { font-size: 28px; }
/* without motion the decimals are the finished state */
.ts-dec li b i:first-child { opacity: 0; }
html.k-motion .ts-dec li b i:first-child { opacity: 1; }
html.k-motion .ts-dec li b i + i { opacity: 0; }

.ts-csv { width: min(390px, 44%); overflow: clip; }
.ts-csv-name { word-break: normal; overflow-wrap: anywhere; font-size: 12.5px; }
.ts-csv table { table-layout: fixed; font-size: 11.5px; }
.ts-csv th:nth-child(1), .ts-csv td:nth-child(1) { width: 34%; }
.ts-csv th:nth-child(2), .ts-csv td:nth-child(2), .ts-csv th:nth-child(3), .ts-csv td:nth-child(3) { width: 16%; }
.ts-csv td:last-child { white-space: normal; }
.ts-strip-csv span.is-edited { background: var(--ts-mint); color: var(--ts-card-ink); box-shadow: none; }

/* the PDF, zoomed so its header, rows and history read */
.ts-page { padding: calc(18 * var(--pt)) calc(14 * var(--pt)); }
.ts-pdf-head { font-size: calc(13 * var(--pt)); color: #3A3A3C; }
.ts-pdf-job { font-size: calc(26 * var(--pt)); }
.ts-pdf-period { font-size: calc(17 * var(--pt)); }
.ts-pdf-made { font-size: calc(12 * var(--pt)); }
.ts-pdf-h { font-size: calc(15 * var(--pt)); margin-top: calc(18 * var(--pt)) !important; }
.ts-page table { font-size: calc(10.4 * var(--pt)); }
.ts-pdf-line { font-size: calc(12.6 * var(--pt)); }
.ts-pdf-foot { font-size: calc(10 * var(--pt)); }

/* the lock screens' notices, a size larger, on a wallpaper of the app's greens */
.ts-lock { background: radial-gradient(90% 55% at 70% 18%, #2F8A64 0%, transparent 70%), radial-gradient(80% 50% at 20% 85%, #1D6B4C 0%, transparent 70%), linear-gradient(#134A35, #0A2C1F); }
.ts-snip, .ts-note { left: calc(10 * var(--pt)); right: calc(10 * var(--pt)); padding: calc(16 * var(--pt)); }
.ts-snip span { font-size: calc(22 * var(--pt)); }
.ts-snip b { font-size: calc(14 * var(--pt)); }
.ts-note p { font-size: calc(17 * var(--pt)); }
.k-device-screen .ts-snip img, .k-device-screen .ts-note img { width: calc(46 * var(--pt)); height: calc(46 * var(--pt)); }

/* finished state without motion: a capture over a drawn screen covers it */
.ts-scene .k-device-screen img[data-step] { z-index: 3; }

/* the teaser's points as plain rows on a phone */
@media (max-width: 899px) {
  .k-tallyshift .k-teaser li { background: none; box-shadow: none; border-top: 1px solid var(--k-line); border-radius: 0; padding: 18px 0; }
  .k-tallyshift .k-tile { padding: 24px; }
}
.ts-cmp-intro { font-size: var(--k-fs-lead); line-height: 1.5; color: var(--k-ink); max-width: 62ch; }

/* ---------- Round 3 ---------- */
/* the bands alternate: their visual on the left */
@media (min-width: 900px) {
  .ts-band-flip .k-band-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ts-band-flip .k-band-grid > .k-stack { order: 2; }
  .ts-band-flip :is(.ts-tpl, .ts-check, .ts-rates) { justify-self: start; }
}
/* the device keeps its Dynamic Island over a capture */
.ts-scene .k-device::after { z-index: 4; }
/* history, step 1: the edit beside the phone */
.ts-edit { background: #FFFFFF; border-radius: 24px; padding: 22px 22px 14px; box-shadow: 0 0 0 1px var(--k-line), 0 24px 44px -28px rgba(10,44,31,.35); }
.ts-edit-day { font: 600 14px/1.2 var(--k-text); color: var(--k-ink-2); }
.ts-edit-times { display: flex; align-items: baseline; gap: 14px; margin-top: 6px !important; }
.ts-edit-times s { font: 700 30px/1 var(--k-display); color: #9AA5A0; text-decoration-thickness: 2px; }
.ts-edit-times b { font: 700 40px/1 var(--k-display); color: var(--ts-latest); font-variant-numeric: tabular-nums; }
.ts-edit ul { list-style: none; margin: 14px 0 0; padding: 0; }
.ts-edit li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--k-line); }
.ts-edit li span { font-size: 15px; color: var(--k-ink); line-height: 1.3; }
.ts-edit li em { font-style: normal; font-size: 13px; color: var(--k-ink-2); }
.ts-edit li:not(.ts-edit-new) { grid-template-columns: 1fr auto; align-items: baseline; }
.ts-side-his .ts-csv { width: auto; }
.ts-strip-edit s { color: var(--k-ink-2); margin: 0 4px; }
/* phone strips keep one height, so the device doesn't jump between steps */
@media (max-width: 899px) {
  .ts-scene .k-strip { min-height: 62px; align-content: flex-start; }
  .ts-tpl-days li { min-height: 132px; }
  .ts-plan { padding: 8px 0; }
  .ts-plan em { display: none; }
  .ts-files li.ts-files-3 { display: none; }
  .ts-files li b { font-size: 12.5px; }
}
.ts-strip-says span[data-g="0"].is-on { background: var(--ts-mint); color: var(--ts-card-ink); box-shadow: none; }
.ts-strip-says .ts-strip-arrow { position: relative; padding-left: 40px !important; }
.ts-strip-says .ts-strip-arrow::before { content: ""; position: absolute; left: 6px; top: 50%; width: 28px; height: 2px; background: var(--ts-brand); clip-path: var(--ts-line, inset(0)); }
/* 900 to 1179 wide: the side columns don't fit beside the phone, so the strips play instead */
@media (min-width: 900px) and (max-width: 1179px) {
  .ts-side { display: none !important; }
  .k-tallyshift .k-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
}
/* the PDF, zoomed to the top of its page */
.ts-pdf-head { font-size: calc(10 * var(--pt)); }
.ts-pdf-job { font-size: calc(20 * var(--pt)); }
.ts-pdf-period { font-size: calc(14 * var(--pt)); }
.ts-pdf-made { font-size: calc(10 * var(--pt)); }
.ts-pdf-h { font-size: calc(12 * var(--pt)); margin-top: calc(14 * var(--pt)) !important; }
.ts-page table { font-size: calc(8.6 * var(--pt)); }
.ts-pdf-line { font-size: calc(10.5 * var(--pt)); }
.ts-pdf-foot { display: none; }
.ts-scr.ts-pdf .ts-page { right: auto; bottom: auto; width: calc((100% - 24 * var(--pt)) / 1.3); transform: scale(1.3); transform-origin: 0 0; padding-bottom: calc(40 * var(--pt)); }
.ts-close .k-cta .k-h2 { max-width: 21ch; }

/* ---------- Round 3 review fixes ---------- */
/* the rail is seven day cells, one over each sleeve; Friday's fills as the clock runs */
.ts-wkbar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.9cqw; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.ts-wkbar span { position: relative; height: 100%; border-radius: 1cqw; background: #E3EAE6; overflow: hidden; box-shadow: inset 0 0.15cqw 0.3cqw rgba(10,44,31,.12); }
.ts-wkbar span i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--m) / 780 * 100%); background: var(--ts-deep); transform-origin: left center; }
.ts-wkbar span i.ts-wk-fri { background: var(--ts-brand); }
@media (max-width: 899px) { .ts-wkbar { gap: 1.2cqw; } }
/* the time clock's card slot: a slit, not a pill */
.ts-tclock-slot { height: 0.45cqw; width: 18cqw; margin-left: -9cqw; background: #4A5A53; box-shadow: none; }
@media (max-width: 899px) { .ts-tclock-slot { height: 0.7cqw; width: 24cqw; margin-left: -12cqw; } }
.ts-pcard b, .ts-lip-day, .ts-pk-fri.is-waiting .ts-lip::after { font-size: max(1.7cqw, 11px); }
/* 900 to 1179 wide: both hero buttons on one row */
@media (min-width: 900px) and (max-width: 1179px) { .ts-hero .k-hero-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 32px; } }
/* the CSV's time columns room enough */
.ts-csv th:nth-child(1), .ts-csv td:nth-child(1) { width: 31%; }
.ts-csv th:nth-child(2), .ts-csv td:nth-child(2), .ts-csv th:nth-child(3), .ts-csv td:nth-child(3) { width: 19%; }
/* the PDF zoomed a little less, so its last column stays on the page */
.ts-scr.ts-pdf .ts-page { width: calc((100% - 24 * var(--pt)) / 1.18); transform: scale(1.18); }
/* headings balance their lines */
.k-tallyshift main :is(h1, h2) { text-wrap: balance; }
/* child pages: long plain-text links wrap on a narrow phone; the comparison's labels shrink */
.k-tallyshift .k-doc :is(p, li) { overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .k-tallyshift .k-table td { flex-wrap: wrap; }
  .k-tallyshift .k-table td::before { flex: 0 1 auto; max-width: 50%; }
}
/* phones: backup names on one line, the plans note inside the Plus card */
@media (max-width: 899px) {
  .ts-files li span { display: none; }
  .ts-files li { grid-template-columns: auto 1fr; }
  .ts-files li b { white-space: nowrap; font-size: 13px; }
}
.ts-plus-note { font-size: 14px; margin-top: 18px !important; color: #B5CCC0 !important; }
