/* ==========================================================================
   Home page — «七つ道具 · семь инструментов в одном» (landing concept 4,
   approved 2026-09-24). Everything on the page lives under #tg and lays out
   with container queries on it; the fonts are self-hosted (CSP font-src 'self').
   ========================================================================== */

/* M PLUS Rounded 1c (text) + JetBrains Mono (receipt, hotkeys). Japanese
   chunks carry only the glyphs the page uses: 七つ道具 手軽 済 領収書. */
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-93-400-normal.woff2) format("woff2"); unicode-range: U+9818; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-96-400-normal.woff2) format("woff2"); unicode-range: U+4e03; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-110-400-normal.woff2) format("woff2"); unicode-range: U+5177, U+53ce, U+6e08, U+8efd; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-114-400-normal.woff2) format("woff2"); unicode-range: U+9053; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-115-400-normal.woff2) format("woff2"); unicode-range: U+66f8; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-116-400-normal.woff2) format("woff2"); unicode-range: U+624b; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-119-400-normal.woff2) format("woff2"); unicode-range: U+3064; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-93-500-normal.woff2) format("woff2"); unicode-range: U+9818; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-96-500-normal.woff2) format("woff2"); unicode-range: U+4e03; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-110-500-normal.woff2) format("woff2"); unicode-range: U+5177, U+53ce, U+6e08, U+8efd; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-114-500-normal.woff2) format("woff2"); unicode-range: U+9053; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-115-500-normal.woff2) format("woff2"); unicode-range: U+66f8; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-116-500-normal.woff2) format("woff2"); unicode-range: U+624b; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-119-500-normal.woff2) format("woff2"); unicode-range: U+3064; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-93-700-normal.woff2) format("woff2"); unicode-range: U+9818; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-96-700-normal.woff2) format("woff2"); unicode-range: U+4e03; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-110-700-normal.woff2) format("woff2"); unicode-range: U+5177, U+53ce, U+6e08, U+8efd; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-114-700-normal.woff2) format("woff2"); unicode-range: U+9053; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-115-700-normal.woff2) format("woff2"); unicode-range: U+66f8; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-116-700-normal.woff2) format("woff2"); unicode-range: U+624b; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-119-700-normal.woff2) format("woff2"); unicode-range: U+3064; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-93-800-normal.woff2) format("woff2"); unicode-range: U+9818; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-96-800-normal.woff2) format("woff2"); unicode-range: U+4e03; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-110-800-normal.woff2) format("woff2"); unicode-range: U+5177, U+53ce, U+6e08, U+8efd; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-114-800-normal.woff2) format("woff2"); unicode-range: U+9053; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-115-800-normal.woff2) format("woff2"); unicode-range: U+66f8; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-116-800-normal.woff2) format("woff2"); unicode-range: U+624b; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-119-800-normal.woff2) format("woff2"); unicode-range: U+3064; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/m-plus-rounded-1c-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* page frame: the light ground replaces the dark suite theme on this page */
:root { color-scheme: light; }
html { background: #EEF1EC; scroll-padding-top: 0; }
body.home-tg { background: #EEF1EC; color: #1E2320; font-family: "M PLUS Rounded 1c", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.home-tg ::selection { color: #1E2320; background: #FFE07A; }
.home-tg .skip-link { color: #fff; background: #1E2320; }
.sr-demo-description { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ── Tegaro · 七つ道具 ─────────────────────────────────────── */
#tg {
  --tg-ground: #EEF1EC; --tg-card: #F8FAF6; --tg-ink: #1E2320; --tg-ink-2: #535B55;
  --tg-rim: #201C1A; --tg-red: #B8342C; --tg-gold: #D9B26A;
  --tg-yuzu: #FFE07A; --tg-sakura: #F8C6CF; --tg-matcha: #C3DB9F; --tg-sora: #BBD6F4;
  --tg-kaki: #F6B387; --tg-fuji: #D5CBF3; --tg-sumi: #2C2724;
  --tg-font: "M PLUS Rounded 1c", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tg-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tg-lacquer: linear-gradient(158deg, #2f2926 0%, #201C1A 34%, #191513 70%, #231e1b 100%);
  --tg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='tggf'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 0 0 0 5.6'/%3E%3C/filter%3E%3Crect width='110' height='110' filter='url(%23tggf)'/%3E%3C/svg%3E");
  --tg-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='tgpf'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .22 -.06'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23tgpf)'/%3E%3C/svg%3E");
  container: tg / inline-size;
  position: relative; display: block; overflow-x: clip;
  background: #EEF1EC; color: #1E2320;
  font-family: var(--tg-font); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-synthesis: none;
}
#tg *, #tg *::before, #tg *::after { box-sizing: border-box; }
#tg :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
#tg :where(ul, ol) { padding: 0; list-style: none; }
#tg img { display: block; max-width: 100%; height: auto; }
#tg a { color: inherit; text-decoration: none; }
#tg button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
#tg kbd { font-family: var(--tg-mono); font-weight: 500; }
#tg :where(h1, h2, h3) { text-wrap: balance; }
#tg :where(p, li, summary, figcaption) { text-wrap: pretty; overflow-wrap: break-word; }
#tg :is(a, button, summary, input):focus-visible { outline: 2.5px solid #B8342C; outline-offset: 3px; }
#tg [tabindex="-1"]:focus { outline: none; }
#tg .tg-page { position: relative; overflow-wrap: break-word; }
#tg .tg-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 3.9cqi, 56px); }
#tg .tg-nw { white-space: nowrap; }
#tg .tg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#tg .tg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── nav ── */
#tg .tg-nav { position: relative; z-index: 6; }
#tg .tg-nav .tg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
#tg .tg-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; min-width: 0; }
#tg .tg-brand svg { width: 30px; height: 30px; flex: none; display: block; }
#tg .tg-brand-n { font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1; }
#tg .tg-brand-j { font-weight: 500; font-size: 12px; color: #535B55; line-height: 1; padding-top: 4px; margin-left: -3px; }
#tg .tg-nav-r { display: flex; align-items: center; gap: clamp(10px, 1.5cqi, 22px); }
#tg .tg-links { display: flex; align-items: center; gap: clamp(14px, 2cqi, 30px); font-weight: 500; font-size: 15px; }
#tg .tg-links a { color: #535B55; border-radius: 6px; white-space: nowrap; transition: color .2s; }
#tg .tg-links a:hover { color: #1E2320; }
#tg .tg-lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(30, 35, 32, .07); }
#tg .tg-lang button { font: 500 11.5px/1 var(--tg-mono); letter-spacing: .04em; padding: 7px 9px 6px; border-radius: 999px; color: #535B55; transition: background-color .2s, color .2s; }
html[lang="ru"] #tg .tg-lang button[data-language="ru"], html[lang="en"] #tg .tg-lang button[data-language="en"] { background: #fff; color: #1E2320; box-shadow: 0 1px 2px rgba(30, 35, 32, .16); }
#tg .tg-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #1E2320; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: background-color .22s ease, transform .22s ease; }
#tg .tg-pill:hover { background: #B8342C; }
#tg .tg-pill:active { transform: translateY(1px); }

/* ── hero copy ── */
#tg .tg-hero { padding: 4px 0 clamp(40px, 4.4cqi, 64px); }
#tg .tg-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 1.7cqi, 24px); align-items: center; }
#tg .tg-copy { grid-column: 1 / span 5; min-width: 0; }
#tg .tg-stage { grid-column: 6 / span 7; min-width: 0; }
#tg .tg-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; letter-spacing: .06em; line-height: 1.25; }
#tg .tg-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: #B8342C; flex: none; }
#tg .tg-h1 { position: relative; isolation: isolate; margin-top: 16px; font-weight: 800; font-size: clamp(34px, 4.5cqi, 68px); line-height: 1.04; letter-spacing: -.025em; color: #1E2320; }
html[lang="en"] #tg .tg-h1 { font-size: clamp(34px, 3.6cqi, 56px); }
#tg .tg-u { position: relative; display: inline-block; }
#tg .tg-u::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .05em; height: .3em; border-radius: .15em; background: #FFE07A; transform-origin: 0 50%; }
#tg .tg-u--m::before { background: #C3DB9F; }
#tg .tg-h1.tg-is-draw .tg-u::before { animation: tg-draw .62s cubic-bezier(.25, .8, .25, 1) both; animation-delay: calc(.25s + var(--tg-ui, 0) * .12s); }
@keyframes tg-draw { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
#tg .tg-sub { margin-top: 18px; max-width: 31em; font-size: 18px; line-height: 1.5; color: #535B55; }
#tg .tg-hrs { font-weight: 800; font-variant-numeric: tabular-nums; }
#tg .tg-h1 .tg-star { display: inline-block; margin-left: .04em; font-size: .5em; vertical-align: .9em; line-height: 1; color: #B8342C; border-radius: 4px; transition: transform .2s ease; }
#tg .tg-h1 .tg-star:hover { transform: scale(1.25); }
#tg .tg-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
#tg .tg-btn { height: 54px; padding: 0 26px 0 22px; font-size: 17px; gap: 10px; box-shadow: 0 10px 22px -12px rgba(30, 35, 32, .7); }
#tg .tg-btn svg { width: 19px; height: 19px; margin-top: -3px; flex: none; }
#tg .tg-dl-store { color: #1E2320; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
/* what the download is, in four ticks: no card or account, offline, private, the system and the size (stamped from the appcast) */
#tg .tg-ticks { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #5A615B; }
#tg .tg-ticks li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#tg .tg-ticks svg { width: 15px; height: 15px; flex: none; color: #8A918B; }
/* one line: where the column is too narrow for four, the size drops out (the download band says it) */
#tg .tg-ticks { container: ticks / inline-size; }
@container ticks (max-width: 414px) { #tg .tg-ticks .tg-ticks-size { display: none; } }
@container ticks (max-width: 330px) { #tg .tg-ticks li { gap: 5px; font-size: 13px; } #tg .tg-ticks li + li { margin-left: -6px; } }
/* the hero's second way in: the download link by email (built only while the Worker's endpoint is live); the download itself never asks for it */
#tg .tg-maillink { padding: 4px 0; border-radius: 4px; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: rgba(30, 35, 32, .35); transition: text-decoration-color .2s; }
#tg .tg-maillink:hover, #tg .tg-maillink[aria-expanded="true"] { text-decoration-color: #B8342C; }
#tg .tg-mail { margin-top: 14px; max-width: 31em; display: grid; gap: 10px; }
#tg .tg-mail[hidden] { display: none; }
#tg .tg-cta [hidden] { display: none; }
#tg .tg-mail-row { display: flex; gap: 8px; }
#tg .tg-mail-in { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(30, 35, 32, .22); font: inherit; font-size: 16px; color: #1E2320; }
#tg .tg-mail-in::placeholder { color: #8A928B; }
#tg .tg-mail-send { flex: none; height: 46px; }
#tg .tg-mail-ok { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: #535B55; cursor: pointer; text-wrap: pretty; }
#tg .tg-mail-ok input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #B8342C; cursor: pointer; }
#tg .tg-mail-st { font-size: 13.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
#tg .tg-mail-st:empty { display: none; }
#tg .tg-mail-st.tg-is-ok { color: #2F6B2A; }
#tg .tg-mail-st.tg-is-err { color: #B8342C; }
/* ── the menu bar and Tegaro's panel ── */
#tg .tg-stage {
  --tg-r: 28px; --tg-barh: 36px; --tg-ico: 24px; --tg-igap: 12px; --tg-bpad: 14px; --tg-sgap: 14px;
  --tg-clockw: 118px; --tg-battw: 25px; --tg-wifiw: 16px; --tg-slotw: 30px; --tg-seal: 34px;
  --tg-si-x: calc(var(--tg-bpad) + var(--tg-clockw) + 3 * var(--tg-sgap) + var(--tg-battw) + var(--tg-wifiw) + var(--tg-slotw) / 2);
  position: relative; isolation: isolate;
}
#tg .tg-stage-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 10px; }
#tg .tg-cap-t { font-size: 13px; font-weight: 700; line-height: 1.3; }
#tg .tg-cap-t i { font-style: normal; color: #B8342C; }
#tg .tg-cap-b, #tg .tg-cap-a { position: relative; isolation: isolate; }
#tg .tg-cap-b::before, #tg .tg-cap-a::before { content: ""; position: absolute; z-index: -1; left: -3px; right: -3px; bottom: 0; height: .55em; border-radius: 3px; background: #FFE07A; transform: scaleX(0); transform-origin: 0 50%; transition: transform .38s cubic-bezier(.3, .8, .25, 1); }
#tg .tg-cap-a::before, #tg .tg-crowd .tg-cap-b::before { transform: scaleX(1); }
#tg .tg-crowd .tg-cap-a::before { transform: scaleX(0); }
#tg .tg-replay { display: none; align-items: center; gap: 7px; height: 34px; padding: 0 15px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1.5px rgba(30, 35, 32, .24); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s, box-shadow .2s; }
#tg.tg-js .tg-replay { display: inline-flex; }
#tg .tg-replay:hover { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(30, 35, 32, .5); }
#tg .tg-replay svg { width: 15px; height: 15px; flex: none; transition: transform .5s cubic-bezier(.3, .8, .3, 1); }
#tg .tg-replay:hover svg { transform: rotate(-200deg); }
#tg .tg-menubar { position: relative; z-index: 3; height: var(--tg-barh); border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(30, 35, 32, .06), inset 0 -1px 0 rgba(30, 35, 32, .12), 0 12px 26px -20px rgba(30, 35, 32, .42); color: #1E2320; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
#tg .tg-mb-apple { position: absolute; left: 17px; top: 50%; width: 15px; height: 15px; margin-top: -8.5px; }
#tg .tg-mb-r { position: absolute; top: 0; bottom: 0; right: var(--tg-bpad); display: flex; align-items: center; gap: var(--tg-sgap); }
#tg .tg-mb-slot { position: relative; flex: none; width: var(--tg-slotw); height: 100%; }
#tg .tg-mb-apps { position: absolute; top: 0; bottom: 0; right: calc((var(--tg-slotw) - var(--tg-ico)) / 2); display: flex; align-items: center; gap: var(--tg-igap); visibility: hidden; }
#tg .tg-crowd .tg-mb-apps { visibility: visible; }
#tg .tg-mb-app { position: relative; flex: none; width: var(--tg-ico); height: var(--tg-ico); }
#tg .tg-mb-app img { display: block; width: 100%; height: 100%; }
#tg .tg-mb-imp { position: absolute; right: -5px; bottom: -4px; width: 13px; height: 13px; border-radius: 3px; background: #B8342C; color: #fff; font-size: 8.5px; font-weight: 800; line-height: 13px; text-align: center; opacity: 0; transform: rotate(-8deg); box-shadow: inset 0 0 0 1px rgba(255, 200, 186, .45), 0 1px 2px rgba(80, 20, 10, .35); }
#tg .tg-si { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 8px; }
#tg .tg-si::before { content: ""; position: absolute; inset: 0 -6px; }
#tg .tg-si:focus-visible { outline-offset: -2px; }
#tg .tg-si-cap { position: absolute; left: 50%; top: 50%; width: 34px; height: 24px; margin: -12px 0 0 -17px; border-radius: 7px; background: rgba(30, 35, 32, .12); transition: background-color .2s; }
#tg .tg-si:hover .tg-si-cap { background: rgba(30, 35, 32, .2); }
#tg .tg-si .tg-crit { --tg-cell: 18px; position: relative; filter: none; }
#tg .tg-crowd .tg-si { opacity: 0; transform: scale(0); pointer-events: none; }
#tg .tg-crowd .tg-si-cap { opacity: 0; }
#tg .tg-mb-wifi { flex: none; width: var(--tg-wifiw); height: 12px; }
#tg .tg-mb-batt { flex: none; width: var(--tg-battw); height: 12.5px; }
#tg .tg-mb-clock { flex: none; width: var(--tg-clockw); text-align: right; font-variant-numeric: tabular-nums; }
#tg .tg-panel { position: relative; margin-top: 12px; }
#tg .tg-panel::after { content: ""; position: absolute; z-index: -2; left: 5%; right: 5%; bottom: -22px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 34, 20, .3), rgba(52, 34, 20, 0)); pointer-events: none; }
#tg .tg-nub { position: absolute; z-index: 2; top: -8px; right: calc(var(--tg-si-x) - 12px); width: 24px; height: 9px; color: #2a2421; pointer-events: none; }
#tg .tg-nub svg { display: block; width: 100%; height: 100%; overflow: visible; }
#tg .tg-crowd .tg-nub { opacity: 0; }

/* M PLUS Rounded draws "…" as centred CJK dots: inside the panel, where titles cut off with an ellipsis,
   that one character comes from the system face. */
@font-face { font-family: "Tegaro Ellipsis"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Helvetica"), local("Arial"), local("Segoe UI"), local("Roboto"), local("DejaVu Sans"); unicode-range: U+2026; }

/* The app's menu panel (Tegaro 0.1.12, MenuPanelView): the lacquer shell with its gold hairline, rows of
   pastel tiles 10px apart, the footer. A row's tiles share its height; wide tiles (Layout, Displays) start
   at 62 %, the others at 30 %, and split what the row has left, as MenuPanelLayout.tileWidths does. */
#tg .tg-box {
  position: relative; z-index: 1; padding: 12px 12px 0; border-radius: var(--tg-r);
  font-family: "Tegaro Ellipsis", var(--tg-font);
  background: var(--tg-lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 1px 1px rgba(0, 0, 0, .25), 0 26px 44px -22px rgba(46, 26, 12, .62), 0 60px 80px -50px rgba(46, 26, 12, .4);
}
#tg .tg-box::before { content: ""; position: absolute; inset: 5px; border-radius: calc(var(--tg-r) - 5px); border: 1px solid rgba(217, 178, 106, .2); pointer-events: none; }
#tg .tg-grid { position: relative; display: flex; flex-direction: column; gap: 10px; }
#tg .tg-row { display: flex; gap: 10px; }
#tg .tg-tile { position: relative; display: flex; flex: 1 1 30%; min-width: 0; }
#tg .tg-tile--wide { flex-basis: 62%; }
#tg .tg-tile > .tg-cell { flex: 1 1 auto; }

/* 済 seals and the "instead of" chips */
#tg .tg-seals { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#tg .tg-seal { position: absolute; left: 0; top: 0; width: var(--tg-seal); height: var(--tg-seal); opacity: 0; filter: drop-shadow(0 2px 2px rgba(70, 20, 10, .42)); will-change: transform, opacity, filter; }
#tg .tg-seal-f { width: 100%; height: 100%; border-radius: 7px; display: grid; place-items: center; background: #B8342C; color: #fff; font-size: calc(var(--tg-seal) * .56); font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 2px #B8342C, inset 0 0 0 3.5px #E58B7B; -webkit-mask: var(--tg-grain) 0 0 / 110px 110px; mask: var(--tg-grain) 0 0 / 110px 110px; }
#tg .tg-mk { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#tg .tg-mk::before { content: ""; position: absolute; inset: -4px; border-radius: 24px; border: 2px solid var(--tg-ring); opacity: 0; }
#tg .tg-chip { position: absolute; top: -9px; right: 12px; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 14px); padding: 4px 10px 4px 6px; border-radius: 9px; background: #fff; color: #1E2320; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 0 0 1px rgba(30, 35, 32, .07), 0 8px 16px -8px rgba(20, 12, 6, .5); opacity: 0; transform-origin: 85% 0; }
#tg .tg-chip img { width: 14px; height: 14px; flex: none; }
#tg .tg-chip svg { width: 13px; height: 13px; flex: none; margin-left: 1px; color: #2E2A48; }
#tg .tg-chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#tg .tg-chip--short .tg-chip-v { display: none; }
#tg .tg-mk.tg-is-on::before { animation: tg-ring 1.3s ease-out both; }
#tg .tg-mk.tg-is-on .tg-chip { animation: tg-chip 1.9s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes tg-ring { 0% { opacity: 0; transform: scale(.985); } 16% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.018); } }
@keyframes tg-chip { 0% { opacity: 0; transform: translateY(6px) scale(.72) rotate(4deg); } 8% { opacity: 1; transform: translateY(0) scale(1.04) rotate(-1deg); } 14% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(3px) scale(.96); } }

/* Tile paints (KLTileTone): the nine colours a tile can wear. Every control on a tile takes its ink from
   these, so a tile painted the dark lacquer stays legible. --tg-c, --tg-ink and --tg-fill are registered
   so a repaint fades instead of snapping. */
@property --tg-c { syntax: "<color>"; inherits: true; initial-value: #FFE07A; }
@property --tg-ink { syntax: "<color>"; inherits: true; initial-value: #1E2320; }
@property --tg-fill { syntax: "<color>"; inherits: true; initial-value: #1E2320; }
#tg [data-tg-tone] {
  --tg-c: #FFE07A; --tg-deep: #B08F22;
  --tg-ink: #1E2320; --tg-ink2: rgba(30, 35, 32, .76); --tg-ink3: rgba(30, 35, 32, .6); --tg-wash: rgba(30, 35, 32, .09); --tg-line: rgba(30, 35, 32, .14);
  --tg-fill: #1E2320; --tg-on-fill: #fff; --tg-knob: #fff; --tg-kbd: rgba(0, 0, 0, .08); --tg-kbd-ink: rgba(30, 35, 32, .82);
  --tg-paper: #fff; --tg-paper2: rgba(255, 255, 255, .78); --tg-paper3: rgba(255, 255, 255, .5);
  --tg-hl: rgba(255, 255, 255, .42); --tg-sh: rgba(0, 0, 0, .34); --tg-lip: rgba(255, 255, 255, .4);
  --tg-good: #23663A; --tg-warn: #8A5200; --tg-bad: #9B2C23;
  --tg-bar: rgba(30, 35, 32, .3); --tg-bar-a: rgba(138, 82, 0, .7); --tg-bar-r: rgba(155, 44, 35, .75); --tg-bar1: rgba(30, 35, 32, .85); --tg-bar1-a: #8A5200; --tg-bar1-r: #9B2C23;
  --tg-ring: var(--tg-c);
}
#tg [data-tg-tone="yuzu"] { --tg-c: #FFE07A; --tg-deep: #B08F22; }
#tg [data-tg-tone="kaki"] { --tg-c: #F6B387; --tg-deep: #A4531F; }
#tg [data-tg-tone="sakura"] { --tg-c: #F8C6CF; --tg-deep: #9E3F58; }
#tg [data-tg-tone="fuji"] { --tg-c: #D5CBF3; --tg-deep: #2E2A48; }
#tg [data-tg-tone="sora"] { --tg-c: #BBD6F4; --tg-deep: #2D5B8C; }
#tg [data-tg-tone="matcha"] { --tg-c: #C3DB9F; --tg-deep: #3C5A29; }
#tg [data-tg-tone="stone"] { --tg-c: #DCE2D8; --tg-deep: #4E5B49; }
#tg [data-tg-tone="washi"] { --tg-c: #F3DFC4; --tg-deep: #8A6536; }
#tg [data-tg-tone="mizu"] { --tg-c: #BFE6DF; --tg-deep: #2B6E66; }
#tg [data-tg-tone="sumi"] {
  --tg-c: #2C2724; --tg-deep: #D9B26A;
  --tg-ink: rgba(255, 255, 255, .92); --tg-ink2: rgba(255, 255, 255, .66); --tg-ink3: rgba(255, 255, 255, .5); --tg-wash: rgba(255, 255, 255, .1); --tg-line: rgba(255, 255, 255, .14);
  --tg-fill: rgba(255, 255, 255, .92); --tg-on-fill: #1E2320; --tg-knob: #2C2724; --tg-kbd: rgba(255, 255, 255, .1); --tg-kbd-ink: rgba(255, 255, 255, .92);
  --tg-paper: rgba(255, 255, 255, .16); --tg-paper2: rgba(255, 255, 255, .136); --tg-paper3: rgba(255, 255, 255, .105);
  --tg-hl: rgba(255, 255, 255, .09); --tg-sh: rgba(0, 0, 0, .6); --tg-lip: rgba(255, 255, 255, .06);
  --tg-good: #B8E6BE; --tg-warn: #FFDB91; --tg-bad: #FFC6BD;
  --tg-bar: rgba(255, 255, 255, .34); --tg-bar-a: rgba(226, 154, 75, .9); --tg-bar-r: rgba(232, 104, 84, .95); --tg-bar1: #fff; --tg-bar1-a: #FFDB91; --tg-bar1-r: #FFC6BD;
  --tg-ring: #F3DFC4;
}
#tg .tg-tile { transition: --tg-c .35s ease, --tg-ink .35s ease, --tg-fill .35s ease; }
#tg .tg-tile.tg-is-painted > .tg-cell { animation: tg-painted .5s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes tg-painted { 0% { transform: scale(1); } 30% { transform: scale(.965); } 70% { transform: scale(1.015); } 100% { transform: none; } }

/* tiles (KLTileCard): the pastel, soft light from the top left, the pressed-in top edge, the lit bottom edge */
#tg .tg-cell {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  padding: 12px 14px; border-radius: 20px; overflow: hidden; container-type: inline-size; color: var(--tg-ink);
  background: radial-gradient(130% 90% at 16% -12%, var(--tg-hl), rgba(255, 255, 255, 0) 58%), var(--tg-c);
  box-shadow: inset 0 3px 6px -2px var(--tg-sh), inset 0 -1px 0 var(--tg-lip);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
#tg .tg-ch { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; }
#tg .tg-ct { min-width: 0; overflow: hidden; font-weight: 800; font-size: 15px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
#tg .tg-acc { display: flex; align-items: center; gap: 6px; flex: none; }
#tg .tg-hk { flex: none; display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--tg-kbd); color: var(--tg-kbd-ink); font: 500 10.5px/1 ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace; white-space: nowrap; }
#tg .tg-tsw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--tg-line); transition: background-color .25s ease; }
#tg .tg-tsw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .28); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
#tg .tg-tsw.tg-is-on { background: var(--tg-fill); }
#tg .tg-tsw.tg-is-on::after { background: var(--tg-knob); transform: translateX(14px); }
#tg .tg-chips { display: inline-flex; flex: none; gap: 2px; padding: 2px; border-radius: 999px; background: var(--tg-wash); }
#tg .tg-chip-o { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1; color: var(--tg-ink2); white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
#tg .tg-chip-o.tg-is-on { background: var(--tg-fill); color: var(--tg-on-fill); font-weight: 700; }
#tg .tg-chips--s .tg-chip-o { height: 18px; padding: 0 7px; font-size: 10.5px; }
@container (max-width: 124px) { #tg .tg-ct { font-size: 13px; } #tg .tg-tsw { width: 30px; height: 18px; } #tg .tg-tsw::after { width: 14px; height: 14px; } #tg .tg-tsw.tg-is-on::after { transform: translateX(12px); } }
#tg .tg-cap { position: relative; z-index: 1; margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 15px; font-weight: 500; color: var(--tg-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tg .tg-demo { position: relative; z-index: 1; }
#tg .tg-pill-s { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--tg-paper2); color: var(--tg-ink); font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: transform .12s ease, opacity .12s ease; }
#tg .tg-pill-s svg { width: 10px; height: 10px; flex: none; }
#tg .tg-pill-s--ink { background: var(--tg-fill); color: var(--tg-on-fill); box-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
#tg .tg-pill-s.tg-is-press { transform: scale(.95); opacity: .86; }

/* caret */
#tg .tg-caret { display: inline-block; width: 2px; height: 1.08em; margin-left: 2px; vertical-align: -.17em; border-radius: 1px; background: var(--tg-ink); animation: tg-blink 1.05s steps(1) infinite; }
@keyframes tg-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* G · critter: the animal in its own strip of menu bar, the processor graph, memory and disk */
#tg .tg-g-body { flex: 1 1 auto; display: flex; align-items: flex-end; gap: 12px; min-height: 40px; padding-top: 6px; }
#tg .tg-g-well { flex: none; display: grid; place-items: center; width: 58px; height: 32px; border-radius: 9px; background: #161311; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
#tg .tg-g-cpu { flex: 1 1 auto; align-self: stretch; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
#tg .tg-g-l { font: 500 10.5px/11px var(--tg-mono); color: var(--tg-ink2); white-space: nowrap; }
#tg .tg-g-graph { flex: 1 1 auto; min-height: 20px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; overflow: hidden; box-shadow: inset 0 -1px 0 var(--tg-line); }
#tg .tg-g-graph i { flex: 0 0 3px; height: 100%; border-radius: 1.5px 1.5px 0 0; background: var(--tg-bar); transform-origin: 50% 100%; }
#tg .tg-g-graph i[data-tg-load="amber"] { background: var(--tg-bar-a); }
#tg .tg-g-graph i[data-tg-load="red"] { background: var(--tg-bar-r); }
#tg .tg-g-graph i:last-child { background: var(--tg-bar1); }
#tg .tg-g-graph i:last-child[data-tg-load="amber"] { background: var(--tg-bar1-a); }
#tg .tg-g-graph i:last-child[data-tg-load="red"] { background: var(--tg-bar1-r); }
#tg .tg-g-m { --tg-m: var(--tg-good); flex: none; display: flex; flex-direction: column; width: 70px; }
#tg .tg-g-m--warn { --tg-m: var(--tg-warn); }
#tg .tg-g-ml { font-size: 10px; font-weight: 500; line-height: 11px; color: var(--tg-ink2); white-space: nowrap; }
#tg .tg-g-m b { margin-top: 2px; font-size: 14px; font-weight: 800; line-height: 16px; color: var(--tg-m); font-variant-numeric: tabular-nums; white-space: nowrap; }
#tg .tg-g-m i { margin-top: 2px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--tg-m) calc(var(--tg-v) * 100%), var(--tg-wash) 0); }
/* MPDiskButton: the drive and a chevron over free space, a «Clean up» pill, the bar — on a well */
#tg .tg-g-m--disk { position: relative; width: 116px; margin-right: 7px; }
#tg .tg-g-m--disk::before { content: ""; position: absolute; inset: -4px -7px; border-radius: 9px; background: var(--tg-paper3); box-shadow: inset 0 0 0 1px var(--tg-line); }
#tg .tg-g-m--disk > * { position: relative; }
/* DaisyDisk's stamp mark rings the Disk button, not the whole load tile */
#tg .tg-g-m--disk > .tg-mk { position: absolute; inset: -4px -7px; }
#tg .tg-g-m--disk > .tg-mk::before { inset: -3px; border-radius: 12px; }
#tg .tg-mk--k .tg-chip { top: -21px; right: -4px; max-width: none; }
#tg .tg-g-m--disk .tg-g-ml { display: flex; align-items: center; gap: 3px; }
#tg .tg-g-dr { flex: none; width: 10px; height: 10px; }
#tg .tg-g-ch { flex: none; width: 7px; height: 7px; margin-left: auto; }
#tg .tg-g-dv { display: flex; align-items: center; gap: 6px; height: 16px; margin-top: 2px; }
#tg .tg-g-dv b { margin-top: 0; }
#tg .tg-g-clean { display: inline-flex; align-items: center; height: 15px; padding: 0 6px; border-radius: 999px; background: var(--tg-fill); color: var(--tg-on-fill); font-size: 9.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
@container (max-width: 390px) { #tg .tg-g-m:not(.tg-g-m--disk) { display: none; } }
@container (max-width: 260px) { #tg .tg-g-m { display: none; } }

/* A · layout: mode chips and the RU / EN badge on the white typing field, today's fixes below */
#tg .tg-a-field { position: relative; z-index: 1; margin-top: 8px; padding: 7px 10px 8px 12px; border-radius: 14px; background: var(--tg-paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tg-deep) 14%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--tg-deep) 55%, transparent); }
#tg .tg-a-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 24px; }
#tg .tg-a-badge { flex: none; display: grid; place-items: center; width: 34px; height: 22px; border-radius: 7px; background: var(--tg-fill); color: var(--tg-on-fill); font: 600 10.5px/1 var(--tg-mono); letter-spacing: .06em; }
#tg .tg-a-badge.tg-is-flip { animation: tg-badge .42s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tg-badge { 0% { transform: rotateX(90deg) scale(.9); } 100% { transform: none; } }
#tg .tg-a-line { display: flex; flex-wrap: nowrap; align-items: baseline; column-gap: .27em; min-width: 0; height: 1.3em; margin-top: 6px; overflow: hidden; font-weight: 800; font-size: clamp(20px, 6.2cqi, 28px); line-height: 1.3; letter-spacing: -.012em; white-space: nowrap; transition: opacity .3s ease; }
#tg .tg-a-line.tg-is-out { opacity: 0; }
#tg .tg-a-w { position: relative; display: inline-block; flex: none; }
#tg .tg-a-w::before { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.1em; top: .16em; bottom: .06em; border-radius: .2em; background: #FFE07A; opacity: 0; }
#tg .tg-a-w.tg-is-in { animation: tg-word .38s cubic-bezier(.2, .9, .25, 1.18) both; }
#tg .tg-a-w.tg-is-in::before { animation: tg-mark 1.1s ease-out both; }
@keyframes tg-word { 0% { transform: translateY(.42em) scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tg-mark { 0% { opacity: .95; } 55% { opacity: .75; } 100% { opacity: 0; } }
#tg .tg-a-cur { display: inline-flex; flex: none; align-items: baseline; white-space: nowrap; }
#tg .tg-a-t { font-family: var(--tg-mono); font-weight: 500; font-size: .72em; letter-spacing: -.01em; color: var(--tg-ink3); }
#tg .tg-a-t.tg-a-t--ok { font-family: inherit; font-weight: 800; font-size: 1em; letter-spacing: inherit; color: var(--tg-ink); }
#tg .tg-a-desc { margin-top: 3px; font-size: 12px; line-height: 15px; font-weight: 500; color: var(--tg-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tg .tg-a-n { display: inline-block; font-variant-numeric: tabular-nums; }
#tg .tg-a-n.tg-is-pop, #tg .tg-b-n.tg-is-pop, #tg .tg-b-count.tg-is-pop { animation: tg-pop .42s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes tg-pop { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* C · dictation: the dark mic, the breathing waveform, what it heard; Cancel and Done while it listens */
#tg .tg-c-rec { margin-top: 8px; display: flex; align-items: center; gap: 10px; height: 34px; }
#tg .tg-c-mic { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tg-fill); color: var(--tg-c); box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transition: background-color .3s ease, transform .2s ease; }
#tg .tg-c-mic svg { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity .2s ease; }
#tg .tg-c-st { color: #fff; opacity: 0; }
#tg .tg-c-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(184, 52, 44, .55); opacity: 0; }
#tg .tg-is-rec .tg-c-mic { background: #B8342C; }
#tg .tg-is-rec .tg-c-mi { opacity: 0; }
#tg .tg-is-rec .tg-c-st { opacity: 1; }
#tg .tg-is-rec .tg-c-mic::after { animation: tg-ping 1.5s ease-out infinite; }
@keyframes tg-ping { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
#tg .tg-is-busy .tg-c-mic { opacity: .45; }
#tg .tg-c-wave { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 3px; height: 28px; overflow: hidden; }
#tg .tg-c-wave i { flex: 0 0 3px; height: 100%; border-radius: 2px; background: var(--tg-deep); transform: scaleY(calc(var(--tg-wh) * .6)); animation: tg-breathe 1.15s ease-in-out infinite alternate; animation-delay: calc(var(--tg-wi) * -.19s); }
@keyframes tg-breathe { 0% { transform: scaleY(calc(var(--tg-wh) * .22)); } 100% { transform: scaleY(var(--tg-wh)); } }
#tg .tg-is-rec .tg-c-wave i { animation: tg-talk .34s ease-in-out infinite alternate; animation-delay: calc(var(--tg-wi) * -.13s); }
@keyframes tg-talk { 0% { transform: scaleY(calc(var(--tg-wh) * .3)); } 45% { transform: scaleY(calc(1.05 - var(--tg-wh) * .5)); } 100% { transform: scaleY(var(--tg-wh)); } }
#tg .tg-is-busy .tg-c-wave i { animation: none; transform: scaleY(.1); }
#tg .tg-c-time { display: none; flex: none; font: 500 11px/1 var(--tg-mono); color: var(--tg-ink2); font-variant-numeric: tabular-nums; }
#tg .tg-is-rec .tg-c-time, #tg .tg-is-busy .tg-c-time { display: block; }
#tg .tg-c-text { margin-top: 6px; height: 2.64em; overflow: hidden; font-size: 13.5px; line-height: 1.32; font-weight: 800; transition: opacity .3s ease; }
#tg .tg-c-text.tg-is-dim { opacity: .38; }
#tg .tg-c-fill { position: relative; display: inline-block; margin-right: .3em; font-weight: 500; color: var(--tg-ink2); transition: opacity .22s ease, transform .22s ease; }
#tg .tg-c-fill:empty { margin-right: 0; }
#tg .tg-c-fill::after { content: ""; position: absolute; left: -1px; right: -1px; top: 55%; height: 2px; border-radius: 1px; background: #B8342C; transform: scaleX(0); transform-origin: left; transition: transform .28s ease-out; }
#tg .tg-c-fill.tg-is-struck::after { transform: scaleX(1); }
#tg .tg-c-fill.tg-is-gone { opacity: 0; transform: scale(.6); }
#tg .tg-c-fill.tg-is-out { display: none; }
#tg .tg-c-main.tg-is-settle { animation: tg-settle .3s ease-out; }
@keyframes tg-settle { 0% { opacity: .35; } 100% { opacity: 1; } }
#tg .tg-c-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; min-height: 30px; }
#tg .tg-c-btns { display: none; gap: 6px; }
#tg .tg-c-cap { min-width: 0; font-size: 12px; line-height: 15px; font-weight: 500; color: var(--tg-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tg .tg-is-rec .tg-c-btns, #tg .tg-is-busy .tg-c-btns { display: flex; }
#tg .tg-is-rec .tg-c-cap, #tg .tg-is-busy .tg-c-cap { display: none; }
#tg .tg-is-busy .tg-pill-s--ink { display: none; }
@container (max-width: 176px) { #tg .tg-c-btns .tg-pill-s:not(.tg-pill-s--ink) { width: 24px; padding: 0; justify-content: center; } #tg .tg-c-btns .tg-pill-s:not(.tg-pill-s--ink) span { display: none; } }

/* D · displays: the display chips, the brightness in big type with its XDR boost, Warm and B&W, the slider */
#tg .tg-cell--d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(90% 75% at 18% 58%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
#tg .tg-cell--d.tg-is-xdr::after { opacity: 1; }
#tg .tg-d-top { position: relative; z-index: 1; margin-top: 8px; display: flex; align-items: center; gap: 8px; height: 32px; }
#tg .tg-d-sun { position: relative; flex: none; width: 26px; height: 26px; }
#tg .tg-d-sun::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 211, 110, .95), rgba(255, 211, 110, 0)); opacity: 0; transform: scale(.4); transition: opacity .6s ease, transform .7s ease; }
#tg .tg-d-sun svg { position: relative; display: block; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
#tg .tg-cell--d.tg-is-xdr .tg-d-sun::before { opacity: 1; transform: scale(1); }
#tg .tg-cell--d.tg-is-xdr .tg-d-sun svg { transform: rotate(45deg) scale(1.1); }
#tg .tg-d-val { flex: none; font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
#tg .tg-d-xdr { flex: none; height: 16px; padding: 0 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--tg-line); font-size: 9.5px; font-weight: 800; line-height: 16px; letter-spacing: .03em; color: var(--tg-ink2); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
#tg .tg-cell--d.tg-is-xdr .tg-d-xdr { background: #B8342C; color: #fff; box-shadow: none; }
#tg .tg-d-sp { flex: 1 1 0; min-width: 0; }
#tg .tg-pm { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--tg-paper3); font-size: 11px; font-weight: 700; line-height: 1; color: var(--tg-ink); white-space: nowrap; }
#tg .tg-pm svg { width: 11px; height: 11px; flex: none; }
#tg .tg-d-res { flex: none; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--tg-paper3); font: 600 10px/24px var(--tg-mono); white-space: nowrap; }
#tg .tg-d-sl { --tg-dd: .9s; --tg-kp: .475; --tg-f1: .76; --tg-f2: 0; position: relative; z-index: 1; height: 30px; margin-top: auto; padding-top: 8px; box-sizing: content-box; }
#tg .tg-d-track, #tg .tg-d-f1, #tg .tg-d-f2 { position: absolute; top: calc(8px + 12px); height: 6px; border-radius: 3px; }
#tg .tg-d-track { left: 0; right: 0; background: var(--tg-line); }
#tg .tg-d-f1 { left: 0; width: calc(8px + .625 * (100% - 16px) + 3px); background: var(--tg-fill); transform-origin: left center; transform: scaleX(var(--tg-f1)); transition: transform var(--tg-dd) cubic-bezier(.45, 0, .2, 1); }
#tg .tg-d-f2 { left: calc(8px + .625 * (100% - 16px)); width: calc(.375 * (100% - 16px) + 3px); background: linear-gradient(90deg, #E29A4B, #FFD36E); box-shadow: 0 0 10px rgba(255, 211, 110, .85); transform-origin: left center; transform: scaleX(var(--tg-f2)); transition: transform var(--tg-dd) cubic-bezier(.45, 0, .2, 1); }
#tg .tg-d-tick { position: absolute; left: calc(8px + .625 * (100% - 16px)); top: calc(8px + 7px); width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--tg-ink2); opacity: .7; }
#tg .tg-d-trav { position: absolute; left: 8px; right: 8px; top: calc(8px + 7px); height: 16px; transform: translateX(calc(var(--tg-kp) * 100%)); transition: transform var(--tg-dd) cubic-bezier(.45, 0, .2, 1); }
#tg .tg-d-knob { position: absolute; left: -8px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .12); }
@container (max-width: 400px) { #tg .tg-d-res { display: none; } }
@container (max-width: 300px) { #tg .tg-pm { width: 24px; padding: 0; justify-content: center; } #tg .tg-pm span { display: none; } }
@container (max-width: 250px) { #tg .tg-cell--d .tg-chips { display: none; } }

/* E · power: the charge ring, live watts, the time to full, the battery's health */
#tg .tg-e-body { margin-top: 8px; display: flex; align-items: center; gap: 12px; min-height: 56px; }
#tg .tg-e-ring { position: relative; flex: none; width: 56px; height: 56px; }
#tg .tg-e-ring svg { display: block; width: 100%; height: 100%; }
#tg .tg-e-trk { stroke: color-mix(in srgb, var(--tg-deep) 30%, transparent); }
#tg [data-tg-tone="sumi"] .tg-e-trk { stroke: var(--tg-wash); }
#tg .tg-e-arc { stroke: var(--tg-fill); stroke-linecap: round; transition: stroke-dasharray .9s cubic-bezier(.3, .7, .2, 1); }
#tg .tg-e-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
#tg .tg-e-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#tg .tg-e-w { display: flex; align-items: center; gap: 3px; font-weight: 800; font-size: 18px; line-height: 1; white-space: nowrap; }
#tg .tg-e-w svg { width: 12px; height: 14px; flex: none; animation: tg-bolt 2.4s ease-in-out infinite; }
@keyframes tg-bolt { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
#tg .tg-e-full { font-size: 12px; line-height: 1.25; font-weight: 500; color: var(--tg-ink2); }
@container (max-width: 150px) { #tg .tg-e-body { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* F · AI usage: one block per provider, the 5-hour and weekly lanes of what is left, when the tighter one resets */
#tg .tg-f-list { margin-top: 8px; display: flex; flex-direction: column; }
#tg .tg-f-p + .tg-f-p { margin-top: 5px; padding-top: 4px; box-shadow: inset 0 1px 0 var(--tg-wash); }
#tg .tg-f-h { display: flex; align-items: baseline; gap: 6px; height: 18px; line-height: 18px; white-space: nowrap; }
#tg .tg-f-h b { font-weight: 800; font-size: 13px; }
#tg .tg-f-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 500; color: var(--tg-ink3); }
#tg .tg-f-lane { display: flex; align-items: center; gap: 6px; height: 12px; margin-top: 3px; }
#tg .tg-f-h + .tg-f-lane { margin-top: 2px; }
#tg .tg-f-l { flex: none; width: 46px; font-size: 10px; font-weight: 500; line-height: 1; color: var(--tg-ink2); white-space: nowrap; }
#tg .tg-f-bar { flex: 1 1 auto; min-width: 0; height: 5px; border-radius: 3px; background: var(--tg-line); overflow: hidden; }
#tg .tg-f-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tg-deep); transform-origin: left center; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
#tg .tg-f-v { flex: none; width: 36px; font: 600 10px/1 var(--tg-mono); color: var(--tg-good); text-align: right; white-space: nowrap; }
#tg .tg-f-sub { margin-top: 2px; font-size: 9.5px; font-weight: 500; line-height: 11px; color: var(--tg-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* B · clipboard: the search that opens the history, the two newest copies with ⌘1 / ⌘2, the count */
#tg .tg-b-search { margin-top: 8px; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 10px; background: var(--tg-paper2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tg-deep) 14%, transparent); }
#tg .tg-b-search svg { width: 12px; height: 12px; flex: none; color: var(--tg-ink3); }
#tg .tg-b-ph { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; line-height: 1; color: var(--tg-ink3); white-space: nowrap; text-overflow: ellipsis; }
#tg .tg-b-count { flex: none; font: 600 10.5px/1 var(--tg-mono); color: var(--tg-ink2); }
#tg .tg-b-list { position: relative; margin-top: 6px; height: 52px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
#tg .tg-b-row { flex: none; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 7px 0 4px; border-radius: 8px; background: var(--tg-paper3); transition: background-color .2s ease, box-shadow .2s ease; }
#tg .tg-b-row.tg-is-hot { background: var(--tg-paper); box-shadow: 0 3px 8px -3px color-mix(in srgb, var(--tg-deep) 60%, transparent); }
#tg .tg-b-ic { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .9); color: rgba(30, 35, 32, .75); box-shadow: inset 0 0 0 1px rgba(30, 35, 32, .08); overflow: hidden; }
#tg .tg-b-ic svg { width: 11px; height: 11px; }
#tg .tg-b-ic--shot { position: relative; background: linear-gradient(160deg, #9cc3ee 0%, #cfd6f2 55%, #f3c4a6 100%); }
#tg .tg-b-ic--shot::before { content: ""; position: absolute; left: 3px; right: 4px; top: 5px; bottom: -2px; border-radius: 2px 2px 0 0; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
#tg .tg-b-ic--term { background: #2C2724; color: #C3DB9F; }
#tg .tg-b-t { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--tg-ink); white-space: nowrap; text-overflow: ellipsis; }
#tg .tg-b-mono { font-family: var(--tg-mono); font-size: 11px; letter-spacing: -.02em; }
#tg .tg-b-k { flex: none; font: 500 10px/1 var(--tg-mono); color: var(--tg-ink3); }
#tg .tg-b-n { display: inline-block; font-variant-numeric: tabular-nums; }
@container (max-width: 200px) { #tg .tg-cell--b .tg-hk, #tg .tg-cell--c .tg-hk, #tg .tg-cell--s .tg-hk { display: none; } }

/* S · screenshots: a shot on its gradient, the arrow drawn on it, the private line blurred; Area · Window · Text from screen */
#tg .tg-s-shot { position: relative; margin-top: 8px; height: 46px; border-radius: 10px; background: linear-gradient(125deg, #7FC8BC 0%, #BFE6DF 48%, #F3DFC4 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tg-deep) 14%, transparent); overflow: hidden; }
#tg .tg-s-win { position: absolute; left: 14%; right: 22%; top: 9px; bottom: -6px; display: flex; flex-direction: column; gap: 4px; padding: 6px 7px; border-radius: 6px; background: #fff; box-shadow: 0 4px 10px -3px rgba(43, 110, 102, .45); }
#tg .tg-s-dots { flex: none; width: 18px; height: 4px; background: radial-gradient(circle at 2px 2px, #F2695C 1.8px, transparent 2.2px) 0 0 / 7px 4px repeat-x; }
#tg .tg-s-l { flex: none; height: 4px; width: 78%; border-radius: 2px; background: rgba(30, 35, 32, .2); }
#tg .tg-s-l--blur { width: 64%; height: 5px; background: repeating-linear-gradient(90deg, rgba(43, 110, 102, .5) 0 4px, rgba(43, 110, 102, .28) 4px 8px); filter: blur(1.2px); }
#tg .tg-s-l--s { width: 46%; }
#tg .tg-s-arr { position: absolute; right: 9%; bottom: 5px; width: 24px; height: 24px; color: #B8342C; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
#tg .tg-s-btns { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
#tg .tg-s-btns .tg-pill-s { padding: 0 10px; }
#tg .tg-s-btns .tg-s-area { padding-left: 8px; background: #D68A35; color: #3A1F05; box-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
#tg .tg-s-area svg { width: 12px; height: 12px; }

/* critter sprites */
#tg .tg-crit { --tg-cell: 22px; display: inline-block; flex: none; width: var(--tg-cell); height: var(--tg-cell); background-repeat: no-repeat; background-position: 0 0; background-size: calc(var(--tg-cell) * 4) calc(var(--tg-cell) * 2); filter: invert(1); animation: tg-crit var(--tg-d, .9s) steps(1) infinite; transition: opacity .17s ease; }
#tg .tg-crit.tg-is-js { animation: none; }
@keyframes tg-crit {
  0% { background-position: 0 0; } 12.5% { background-position: calc(var(--tg-cell) * -1) 0; }
  25% { background-position: calc(var(--tg-cell) * -2) 0; } 37.5% { background-position: calc(var(--tg-cell) * -3) 0; }
  50% { background-position: 0 calc(var(--tg-cell) * -1); } 62.5% { background-position: calc(var(--tg-cell) * -1) calc(var(--tg-cell) * -1); }
  75% { background-position: calc(var(--tg-cell) * -2) calc(var(--tg-cell) * -1); } 87.5%, 100% { background-position: calc(var(--tg-cell) * -3) calc(var(--tg-cell) * -1); } }

/* the panel's footer: Settings and Customize on the left, Quit on the right; while customizing, the gold Done and one hint */
#tg .tg-pf { position: relative; z-index: 2; display: flex; align-items: center; gap: 2px; height: 40px; padding: 6px 10px 4px; }
#tg .tg-pf-b { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 8px; color: rgba(255, 255, 255, .66); font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
#tg .tg-pf-b svg { width: 13px; height: 13px; flex: none; }
#tg .tg-pf-edit:disabled { cursor: default; }
#tg .tg-pf-edit:not(:disabled):hover { color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .09); }
#tg .tg-pf-ci, #tg .tg-pf-dn, #tg .tg-pf-hint { display: none; }
#tg .tg-pf-hint { min-width: 0; margin-left: 6px; overflow: hidden; font-size: 11px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .66); white-space: nowrap; text-overflow: ellipsis; }
#tg .tg-pf-quit { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; margin-left: auto; padding: 0 8px; color: rgba(255, 255, 255, .66); font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; }
#tg .tg-pf-quit kbd { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); font: 500 10.5px/1 ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace; }
#tg .tg-is-edit .tg-pf-set, #tg .tg-is-edit .tg-pf-gi, #tg .tg-is-edit .tg-pf-cz { display: none; }
#tg .tg-is-edit .tg-pf-ci, #tg .tg-is-edit .tg-pf-dn { display: inline; }
#tg .tg-is-edit .tg-pf-hint { display: block; }
#tg .tg-is-edit .tg-pf-edit { background: rgba(217, 178, 106, .9); color: #1E2320; font-weight: 700; }
#tg .tg-is-edit .tg-pf-edit:not(:disabled):hover { background: #D9B26A; color: #1E2320; }
#tg .tg-pf-edit.tg-is-press { transform: scale(.95); }

/* arranging (MPTileSlot): a handle under the pointer, the lifted tile, the gold landing bar; while customizing
   a dashed gold rim, a slight wobble and the palette on every tile */
#tg .tg-box.tg-can-drag .tg-tile { cursor: grab; -webkit-user-select: none; user-select: none; }
#tg .tg-box.tg-is-edit.tg-by-user .tg-tile { touch-action: none; }
#tg .tg-box.tg-can-drag .tg-tile:hover > .tg-cell { transform: translateY(-1.5px); box-shadow: inset 0 3px 6px -2px var(--tg-sh), inset 0 -1px 0 var(--tg-lip), 0 5px 9px rgba(0, 0, 0, .34); }
#tg .tg-tile::after { content: ""; position: absolute; z-index: 4; left: 50%; top: 4px; width: 22px; height: 4px; margin-left: -11px; border-radius: 2px; background: var(--tg-ink); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
#tg .tg-box.tg-can-drag .tg-tile:hover::after { opacity: .28; }
#tg .tg-box.tg-is-edit .tg-tile::after { opacity: .45; }
#tg .tg-tile::before { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: 20px; border: 1.5px dashed rgba(217, 178, 106, .75); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
#tg .tg-box.tg-is-edit .tg-tile::before { opacity: 1; }
#tg .tg-box.tg-is-edit .tg-tile { animation: tg-wob var(--tg-wp, .15s) ease-in-out infinite alternate; }
#tg .tg-box.tg-is-edit .tg-tile:nth-child(2n) { --tg-wp: .17s; }
#tg .tg-box.tg-is-edit .tg-row:nth-child(2n) .tg-tile { --tg-wp: .13s; }
@keyframes tg-wob { from { rotate: -.35deg; } to { rotate: .35deg; } }
#tg .tg-tile.tg-is-lift { z-index: 10; cursor: grabbing; animation: none !important; }
#tg .tg-tile.tg-is-lift > .tg-cell { opacity: .94; box-shadow: inset 0 3px 6px -2px var(--tg-sh), inset 0 -1px 0 var(--tg-lip), 0 12px 26px -6px rgba(22, 19, 17, .72); }
#tg .tg-tile.tg-is-lift::after { opacity: 0 !important; }
#tg .tg-box.tg-is-dragging, #tg .tg-box.tg-is-dragging * { cursor: grabbing !important; user-select: none; }
#tg .tg-drop { position: absolute; left: 0; top: 0; z-index: 20; width: 4px; height: 4px; border-radius: 2px; background: #D9B26A; box-shadow: 0 0 7px 1px rgba(217, 178, 106, .9); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .26s cubic-bezier(.3, .9, .3, 1), width .26s cubic-bezier(.3, .9, .3, 1), height .26s cubic-bezier(.3, .9, .3, 1); }
#tg .tg-drop.tg-is-on { opacity: 1; }
#tg .tg-pal { position: absolute; z-index: 6; left: 50%; bottom: 8px; display: none; gap: 2px; padding: 3px 5px; border-radius: 999px; background: rgba(22, 19, 17, .88); box-shadow: 0 3px 12px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(217, 178, 106, .35); transform: translateX(-50%); }
#tg .tg-box.tg-is-edit .tg-pal { display: flex; animation: tg-pal .28s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes tg-pal { 0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.85); } 100% { opacity: 1; transform: translateX(-50%); } }
#tg .tg-swt { position: relative; flex: none; width: 20px; height: 20px; border-radius: 7px; cursor: pointer; }
#tg .tg-swt::before { content: ""; position: absolute; inset: 2px; border-radius: 5px; background: radial-gradient(130% 90% at 16% -12%, var(--tg-hl), rgba(255, 255, 255, 0) 58%), var(--tg-c); box-shadow: inset 0 1.5px 2px -1px var(--tg-sh), inset 0 -1px 0 var(--tg-lip); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
#tg .tg-swt:hover::before { transform: scale(1.12); }
#tg .tg-swt[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #D9B26A; }
#tg .tg-swt[aria-pressed="true"]::before { transform: none; }
#tg .tg-swt[aria-pressed="true"]::after { content: ""; position: absolute; left: 7px; top: 5.5px; width: 5px; height: 8px; border: solid var(--tg-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
#tg .tg-swt:focus-visible { outline: 2px solid #D9B26A; outline-offset: 1px; }
@container (max-width: 190px) { #tg .tg-pal { gap: 0; padding: 2px 3px; } #tg .tg-swt { width: 17px; height: 17px; border-radius: 6px; } #tg .tg-swt::before { inset: 1.5px; border-radius: 4.5px; } #tg .tg-swt[aria-pressed="true"]::after { left: 6px; top: 4px; width: 4px; height: 7px; } }
#tg .tg-cur { position: absolute; left: -5px; top: -3px; z-index: 40; width: 22px; height: 22px; opacity: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
#tg .tg-cur .tg-cur-h { display: none; }
#tg .tg-cur.tg-is-grab .tg-cur-a { display: none; }
#tg .tg-cur.tg-is-grab .tg-cur-h { display: inline; }

/* ── sections ── */
#tg .tg-sec { padding-top: clamp(64px, 8cqi, 120px); scroll-margin-top: 12px; }
#tg .tg-sec-h { max-width: 46rem; }
#tg .tg-h2 { font-weight: 800; font-size: clamp(30px, 4cqi, 54px); line-height: 1.08; letter-spacing: -.02em; }
#tg .tg-h2 i { font-style: normal; color: #B8342C; }
#tg .tg-lead { margin-top: 12px; font-size: 18px; line-height: 1.5; color: #535B55; }
#tg .tg-ast { color: #B8342C; border-radius: 4px; padding: 0 1px; }

/* before → after: nine tool cards in the tile colours, each with the app it replaces and that app's price struck out */
#tg .tg-tcs { margin-top: clamp(24px, 2.8cqi, 38px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#tg .tg-tc { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 16px 14px; border-radius: 20px; background: radial-gradient(130% 100% at 12% -20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%), var(--tg-t); color: #1E2320; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
#tg .tg-tc:hover { transform: translateY(-3px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06), 0 16px 28px -18px rgba(30, 35, 32, .55); }
#tg .tg-tc--dark { background: radial-gradient(130% 100% at 12% -20%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%), #2C2724; color: #fff; }
#tg .tg-tc-h { display: flex; align-items: center; gap: 10px; }
#tg .tg-tc-i { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: #1E2320; box-shadow: 0 5px 12px -7px rgba(0, 0, 0, .45); }
#tg .tg-tc-i svg { width: 17px; height: 17px; }
#tg .tg-tc-i .tg-crit { --tg-cell: 20px; filter: none; }
#tg .tg-tc-n { font-weight: 800; font-size: 18px; line-height: 1.2; }
#tg .tg-tc-d { font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(30, 35, 32, .8); }
#tg .tg-tc--dark .tg-tc-d { color: rgba(255, 255, 255, .78); }
#tg .tg-tc-d code { font-family: var(--tg-mono); font-weight: 500; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
#tg .tg-tc--dark .tg-ast { color: #FF9C8A; }
#tg .tg-tc-was { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; border-top: 1.5px dashed rgba(30, 35, 32, .18); font-size: 13px; font-weight: 500; line-height: 1.25; color: rgba(30, 35, 32, .72); }
#tg .tg-tc--dark .tg-tc-was { border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .66); }
#tg .tg-tc-ai { position: relative; flex: none; width: 22px; height: 22px; }
#tg .tg-tc-ai img { width: 22px; height: 22px; filter: grayscale(.5); opacity: .85; transition: filter .3s ease, opacity .3s ease; }
#tg .tg-tc:hover .tg-tc-ai img { filter: grayscale(1); opacity: .5; }
#tg .tg-tc-imp { position: absolute; right: -6px; bottom: -5px; width: 14px; height: 14px; border-radius: 3px; background: #B8342C; color: #fff; font-size: 8.5px; font-weight: 800; line-height: 14px; text-align: center; transform: rotate(-9deg) scale(0); opacity: 0; box-shadow: inset 0 0 0 1px rgba(255, 200, 186, .45), 0 1px 2px rgba(80, 20, 10, .35); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), opacity .15s ease; }
#tg .tg-tc:hover .tg-tc-imp { transform: rotate(-9deg) scale(1); opacity: 1; }
#tg .tg-tc-an { flex: 1 1 auto; min-width: 0; text-wrap: balance; }
#tg .tg-tc-app { font-weight: 700; color: #1E2320; }
#tg .tg-tc--dark .tg-tc-app { color: #fff; }
#tg .tg-tc-p { flex: none; font-weight: 800; font-size: 14px; color: #1E2320; font-variant-numeric: tabular-nums; text-decoration-color: #B8342C; text-decoration-thickness: 2px; }
#tg .tg-tc-p small { font-size: 11.5px; font-weight: 600; color: rgba(30, 35, 32, .62); }
#tg .tg-tc-p--free { font-size: 12.5px; font-weight: 700; color: rgba(30, 35, 32, .62); }
#tg .tg-tc--dark .tg-tc-p--free { color: rgba(255, 255, 255, .66); }
/* they rise in one after another the first time they come on screen: home-tools.js marks them tg-rv when it starts watching and adds tg-in */
#tg .tg-tcs.tg-rv:not(.tg-in) .tg-tc { opacity: 0; transform: translateY(18px); }
#tg .tg-tcs.tg-rv.tg-in .tg-tc { animation: tg-rise .55s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--tg-i, 0) * 55ms); }
@keyframes tg-rise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }

/* the math */
#tg .tg-math-grid { margin-top: clamp(26px, 3cqi, 42px); display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 6cqi, 96px); align-items: start; }
#tg .tg-rcol { display: grid; justify-items: center; gap: 22px; min-width: 0; }
#tg .tg-rcpt-wrap { position: relative; width: 100%; max-width: 380px; padding-top: 12px; }
#tg .tg-slot { position: absolute; left: -16px; right: -16px; top: 4px; height: 15px; z-index: 3; border-radius: 8px; opacity: 0; background: #201C1A; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 rgba(255, 255, 255, .7); }
#tg .tg-printing .tg-slot { opacity: 1; }
#tg .tg-rcpt-clip { position: relative; }
#tg .tg-printing:not(.tg-torn) .tg-rcpt-clip { clip-path: inset(0 -90px -200px -90px); }
#tg .tg-rcpt-tilt { transform: rotate(-1.2deg); transform-origin: 50% 0; filter: drop-shadow(0 20px 26px rgba(46, 26, 12, .16)) drop-shadow(0 2px 3px rgba(46, 26, 12, .14)); }
#tg .tg-printing .tg-rcpt-tilt { transform: none; }
#tg .tg-rcpt {
  --tg-zz: 12px; position: relative; padding: 30px 24px 32px;
  background-color: #FDFCF7; background-image: var(--tg-paper-grain);
  color: #1C1C21; font: 400 13px/1.6 var(--tg-mono); font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tg-zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tg-zz) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tg-zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tg-zz) 51% repeat-x;
}
#tg .tg-rh { text-align: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px dashed rgba(28, 28, 33, .35); }
#tg .tg-rh-k { font-family: var(--tg-font); font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: .1em; margin-right: -.1em; }
#tg .tg-rh-s { margin-top: 8px; font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .16em; color: rgba(28, 28, 33, .7); }
#tg .tg-rh-n { margin-top: 7px; font-size: 11.5px; line-height: 1.45; color: rgba(28, 28, 33, .72); text-wrap: balance; }
#tg .tg-rl { display: grid; gap: 6px; }
#tg .tg-rl li { display: flex; align-items: baseline; gap: 6px; }
#tg .tg-rl li > span:first-child { flex: 0 1 auto; min-width: 0; }
#tg .tg-rl li > i { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted rgba(28, 28, 33, .4); transform: translateY(-4px); }
#tg .tg-rl li > b { flex: none; font-weight: 500; white-space: nowrap; }
#tg .tg-rl li > span > small { display: block; font-size: 11px; line-height: 1.3; color: rgba(28, 28, 33, .6); }
#tg .tg-rl b small { font-size: 11px; color: rgba(28, 28, 33, .62); }
#tg .tg-rl .tg-rl-total, #tg .tg-rl .tg-rl-total b { font-weight: 700; }
#tg .tg-rl-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid rgba(28, 28, 33, .55); border-radius: 4px; font-size: 10.5px; line-height: 16px; vertical-align: 1px; }
#tg .tg-rule { height: 0; margin: 12px 0; border-top: 1.5px dashed rgba(28, 28, 33, .4); }
#tg .tg-rule-dbl { height: 5px; margin: 13px 0; border-top: 1.5px solid rgba(28, 28, 33, .8); border-bottom: 1.5px solid rgba(28, 28, 33, .8); }
#tg .tg-rl-tg { position: relative; }
#tg .tg-rl-tg li > span:first-child { font-weight: 700; }
#tg .tg-rstamp { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -50px 0 0 -39px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; color: #B8342C; font-family: var(--tg-font); font-weight: 800; font-size: 50px; line-height: 1; opacity: .86; mix-blend-mode: multiply; transform: rotate(-14deg); pointer-events: none; -webkit-mask: var(--tg-grain) 0 0 / 110px 110px; mask: var(--tg-grain) 0 0 / 110px 110px; }
#tg .tg-rstamp::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; }
#tg .tg-rstamp span { transform: translateY(-1px); }
#tg .tg-printing .tg-rstamp { opacity: 0; }
#tg .tg-math[data-tg-view="year"] .tg-tl-3, #tg .tg-math[data-tg-view="y3"] .tg-tl-y, #tg .tg-math[data-tg-view="y3"] .tg-per-y { display: none; }
#tg .tg-num { display: inline; }
#tg .tg-rd { display: inline-block; }
#tg .tg-num.tg-is-roll .tg-rd { animation: tg-roll .34s cubic-bezier(.2, .8, .25, 1.15) both; }
@keyframes tg-roll { 0% { opacity: 0; transform: translateY(70%); } 100% { opacity: 1; transform: none; } }
#tg .tg-tcol { min-width: 0; align-self: center; }
#tg .tg-take-l { font-weight: 800; font-size: clamp(36px, 4.4cqi, 64px); line-height: 1.12; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-wrap: balance; }
#tg .tg-take-w { font-size: .44em; font-weight: 700; letter-spacing: 0; color: #535B55; }
#tg .tg-take-them { position: relative; color: #6E766F; white-space: nowrap; }
#tg .tg-take-them::after { content: ""; position: absolute; left: -.05em; right: -.05em; top: 50%; height: .075em; border-radius: .04em; background: #B8342C; transform: rotate(-5deg); }
#tg .tg-take-x { font-size: .44em; font-weight: 800; letter-spacing: -.005em; color: #B8342C; }
#tg .tg-math[data-tg-view="year"] .tg-take-l[data-tg-for="y3"], #tg .tg-math[data-tg-view="y3"] .tg-take-l[data-tg-for="year"] { display: none; }
#tg .tg-take-l.tg-is-in { animation: tg-take .42s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes tg-take { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
/* the takeaway's first showing (home-tools.js): ours rises, theirs fades in and counts, the red line strikes it, «6× cheaper» pops */
#tg .tg-take-pre .tg-take-l .tg-num, #tg .tg-take-pre .tg-take-w, #tg .tg-take-pre .tg-take-them, #tg .tg-take-pre .tg-take-x { opacity: 0; }
#tg .tg-take-them::after { transform-origin: left center; }
#tg .tg-take [data-tg-x] { display: inline-block; }
#tg .tg-take-play .tg-take-l > span > .tg-num { display: inline-block; animation: tg-tk-rise .55s cubic-bezier(.2, .8, .25, 1) both; }
#tg .tg-take-play .tg-take-w { animation: tg-tk-fade .4s .22s ease-out both; }
#tg .tg-take-play .tg-take-them { animation: tg-tk-fade .4s .38s ease-out both; }
#tg .tg-take-play .tg-take-them::after { animation: tg-tk-strike .34s 1.35s cubic-bezier(.65, 0, .35, 1) both; }
#tg .tg-take-play .tg-take-x { animation: tg-tk-fade .2s 1.62s both; }
#tg .tg-take-play [data-tg-x] { animation: tg-tk-pop .5s 1.62s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tg-tk-rise { 0% { opacity: 0; transform: translateY(.3em) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes tg-tk-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tg-tk-strike { 0% { transform: rotate(-5deg) scaleX(0); } 100% { transform: rotate(-5deg) scaleX(1); } }
@keyframes tg-tk-pop { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 60% { opacity: 1; transform: scale(1.12) rotate(1deg); } 100% { opacity: 1; transform: none; } }
#tg .tg-src { margin-top: clamp(22px, 2.6cqi, 34px); max-width: 64em; font-size: 12.5px; line-height: 1.5; color: #535B55; }
/* the takeaway's promo badge: a red seal that slams in when a code takes a share off the plan it names */
#tg .tg-sale { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #FFE07A; box-shadow: 0 12px 24px -16px rgba(120, 80, 0, .7); }
#tg .tg-sale[hidden] { display: none; }
#tg .tg-sale-b { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 76px; height: 50px; padding: 0 12px; border-radius: 13px; background: #B8342C; color: #fff; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px #B8342C, inset 0 0 0 3.5px #E58B7B; }
#tg .tg-sale-t { display: flex; flex-direction: column; font-weight: 800; font-size: 21px; line-height: 1.15; }
#tg .tg-sale-f { font-size: 12.5px; font-weight: 600; color: rgba(30, 35, 32, .72); }
#tg .tg-sale-f[hidden] { display: none; }
#tg .tg-sale.tg-is-in { animation: tg-sale-in .5s cubic-bezier(.2, .8, .3, 1.2) both; }
#tg .tg-sale.tg-is-in .tg-sale-b { animation: tg-sale-slam .42s cubic-bezier(.55, 0, 1, .45) .12s both; }
@keyframes tg-sale-in { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes tg-sale-slam { 0% { transform: translateY(-26px) scale(1.4) rotate(-16deg); opacity: 0; } 60% { opacity: 1; } 80% { transform: translateY(1px) scale(1.04, .94) rotate(-6deg); } 100% { transform: rotate(-6deg); opacity: 1; } }
#tg .tg-take-go { margin-top: clamp(22px, 2.6cqi, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
#tg .tg-take-n { font-size: 15px; font-weight: 700; color: #535B55; }
/* time */
#tg .tg-calc { position: relative; margin-top: clamp(26px, 3cqi, 42px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "y o" "m o"; gap: 12px; padding: 12px; border-radius: 34px; background: var(--tg-lacquer); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 26px 44px -24px rgba(46, 26, 12, .55); }
#tg .tg-calc::before { content: ""; position: absolute; inset: 5px; border-radius: 29px; border: 1px solid rgba(217, 178, 106, .2); pointer-events: none; }
#tg .tg-cc { position: relative; min-width: 0; padding: 22px 24px 20px; border-radius: 22px; background: radial-gradient(130% 90% at 16% -12%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 58%), var(--tg-c); box-shadow: inset 0 3px 6px -2px rgba(0, 0, 0, .34), inset 0 -1px 0 rgba(255, 255, 255, .4); }
#tg .tg-cc--y { grid-area: y; --tg-c: #FFE07A; }
#tg .tg-cc--m { grid-area: m; --tg-c: #C3DB9F; }
#tg .tg-cc--o { grid-area: o; display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(22px, 3cqi, 40px); background: radial-gradient(120% 90% at 16% -12%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 58%), #2C2724; color: #fff; box-shadow: inset 0 3px 6px -2px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .06); }
#tg .tg-cc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
#tg .tg-cc label { max-width: 20em; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
#tg .tg-cc output { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#tg .tg-cc output small { margin-left: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0; color: rgba(30, 35, 32, .72); }
#tg .tg-range { --tg-p: 50%; display: block; width: 100%; height: 30px; margin: 16px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#tg .tg-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1E2320 var(--tg-p), rgba(30, 35, 32, .18) var(--tg-p)); }
#tg .tg-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .15); transition: transform .15s ease; }
#tg .tg-range:active::-webkit-slider-thumb { transform: scale(1.12); }
#tg .tg-range::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(30, 35, 32, .18); }
#tg .tg-range::-moz-range-progress { height: 8px; border-radius: 4px; background: #1E2320; }
#tg .tg-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
#tg .tg-range:focus-visible { outline: 2.5px solid #B8342C; outline-offset: 3px; border-radius: 10px; }
#tg .tg-scale { margin-top: 4px; display: flex; justify-content: space-between; font: 500 11px/1 var(--tg-mono); color: rgba(30, 35, 32, .6); }
#tg .tg-calc-n { font-weight: 800; font-size: clamp(46px, 5.4cqi, 80px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#tg .tg-calc-n small { font-size: .4em; font-weight: 700; letter-spacing: -.01em; }
#tg .tg-approx { display: inline-block; margin-right: .12em; font-size: .56em; font-weight: 700; vertical-align: .14em; color: rgba(255, 255, 255, .72); }
#tg .tg-split { margin-top: 24px; display: flex; gap: 3px; height: 14px; }
#tg .tg-split i { display: block; height: 100%; min-width: 0; border-radius: 7px; }
#tg .tg-s-y { background: #FFE07A; }
#tg .tg-s-m { flex: 1 1 0; background: #C3DB9F; }
#tg .tg-legend { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 14px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .8); }
#tg .tg-legend > span { display: inline-flex; align-items: center; gap: 7px; }
#tg .tg-legend > span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FFE07A; flex: none; }
#tg .tg-legend > .tg-lg-m::before { background: #C3DB9F; }
#tg .tg-legend b { color: #fff; font-weight: 800; }
#tg .tg-note { margin-top: 16px; max-width: 64em; font-size: 12px; line-height: 1.5; color: #535B55; }

/* pricing: three cards on the page's ground, Lifetime the big yuzu one with the critter parade; one line of what
   every plan gives, the terms. The cards rise in when they come on screen and Lifetime takes the 済 seal. */
#tg .tg-pricing .tg-lead a, #tg .tg-lead-a { border-radius: 4px; color: #1E2320; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: rgba(184, 52, 44, .55); }
#tg .tg-plans { margin-top: clamp(26px, 3cqi, 42px); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
#tg .tg-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px; border-radius: 26px; background: #F8FAF6; box-shadow: 0 0 0 1px rgba(30, 35, 32, .08), 0 18px 34px -28px rgba(46, 26, 12, .5); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
#tg .tg-opt:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(30, 35, 32, .1), 0 26px 40px -26px rgba(46, 26, 12, .55); }
#tg .tg-opt h3 { font-weight: 800; font-size: 22px; line-height: 1.1; }
#tg .tg-opt--life { padding-bottom: 14px; background: radial-gradient(120% 90% at 16% -12%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 58%), #FFE07A; box-shadow: 0 26px 44px -26px rgba(120, 80, 0, .6); }
#tg .tg-opt--life h3 { font-size: 26px; }
#tg .tg-pv { display: flex; flex-direction: column; align-items: flex-start; row-gap: 5px; }
#tg .tg-pnum { font-weight: 800; font-size: clamp(40px, 3.8cqi, 52px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#tg .tg-opt--life .tg-pnum { font-size: clamp(56px, 5.6cqi, 76px); }
#tg .tg-pper { font-size: 15px; font-weight: 500; line-height: 1.35; color: #535B55; }
#tg .tg-opt--life .tg-pper { color: rgba(30, 35, 32, .78); }
#tg .tg-pold { font-weight: 700; font-size: clamp(22px, 2.2cqi, 30px); line-height: 1; color: #535B55; text-decoration-thickness: 2px; }
#tg .tg-promo-note { font-size: 14px; font-weight: 700; line-height: 1.35; color: #B8342C; }
#tg .tg-tag { position: relative; padding: 4px 9px; border-radius: 7px; background: #B8342C; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; box-shadow: 0 4px 10px -5px rgba(120, 30, 20, .6); }
#tg .tg-tag::after { content: ""; position: absolute; left: 16px; top: 100%; border: 5px solid transparent; border-top-color: #B8342C; border-bottom: 0; }
#tg .tg-opt-seal { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #B8342C; color: #fff; font-size: 28px; font-weight: 800; line-height: 1; opacity: .9; transform: rotate(-10deg); box-shadow: inset 0 0 0 2px #B8342C, inset 0 0 0 3.5px #E58B7B; -webkit-mask: var(--tg-grain) 0 0 / 110px 110px; mask: var(--tg-grain) 0 0 / 110px 110px; pointer-events: none; }
#tg .tg-be { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: rgba(30, 35, 32, .72); }
#tg .tg-opt .tg-pill { align-self: stretch; margin-top: auto; height: 52px; font-size: 16px; }
#tg .tg-opt .tg-pill b { font-weight: 800; }
#tg .tg-inkghost { background: transparent; color: #1E2320; box-shadow: inset 0 0 0 1.5px rgba(30, 35, 32, .34); }
#tg .tg-inkghost:hover { background: #1E2320; color: #fff; box-shadow: none; }
#tg .tg-redpill { background: #B8342C; }
#tg .tg-redpill:hover { background: #9c2a23; }
/* the parade: Pro's 15 critters trot across a strip of dark menu bar under the Lifetime button, each at its own pace */
#tg .tg-parade { align-self: stretch; display: grid; gap: 7px; }
#tg .tg-parade-run { position: relative; height: 38px; overflow: hidden; border-radius: 11px; background: #2C2724; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); container-type: inline-size; }
/* one evenly spaced conveyor at least 15 × 48 px long, so a narrow strip shows a few of them at a time instead of a crowd */
#tg .tg-parade-run .tg-crit { --tg-cell: 24px; position: absolute; left: -30px; bottom: 7px; animation: tg-crit var(--tg-d, .9s) steps(1) infinite, tg-trot 20s linear infinite; animation-delay: 0s, calc(var(--tg-k, 0) * -20s / 15); }
@keyframes tg-trot { 0% { transform: translateX(0); } 100% { transform: translateX(calc(max(100cqw, 720px) + 30px)); } }
#tg .tg-parade-cap { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: rgba(30, 35, 32, .72); }
/* rising in: the cards one after another, then the seal slams onto Lifetime (tg-rv while home-tools.js watches, tg-in once seen) */
#tg .tg-plans.tg-rv:not(.tg-in) .tg-opt { opacity: 0; transform: translateY(26px); }
#tg .tg-plans.tg-rv:not(.tg-in) .tg-opt-seal { opacity: 0; }
#tg .tg-plans.tg-rv.tg-in .tg-opt { animation: tg-rise .6s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--tg-i, 0) * 110ms); }
#tg .tg-plans.tg-rv.tg-in .tg-opt-seal { animation: tg-seal .36s cubic-bezier(.55, 0, 1, .45) .75s both; }
@keyframes tg-seal { 0% { opacity: 0; transform: translateY(-40px) scale(1.5) rotate(-22deg); } 70% { opacity: .9; transform: translateY(1px) scale(1.05, .93) rotate(-10deg); } 100% { opacity: .9; transform: rotate(-10deg); } }
#tg .tg-lines { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
#tg .tg-lines li { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.35; font-weight: 700; }
#tg .tg-lines svg { width: 18px; height: 18px; flex: none; color: #2F6B2A; }
#tg .tg-terms { margin-top: 16px; text-align: center; font-size: 14px; line-height: 1.5; color: #535B55; text-wrap: balance; }
#tg .tg-terms a { border-radius: 4px; text-decoration: underline; text-decoration-thickness: 1.2px; text-underline-offset: .2em; }
#tg .tg-terms a:hover { color: #1E2320; }
#tg .tg-seg { --tg-i: 0; --tg-n: 3; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: rgba(30, 35, 32, .08); }
#tg .tg-seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--tg-n)); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(30, 35, 32, .2); transform: translateX(calc(var(--tg-i) * 100%)); transition: transform .32s cubic-bezier(.3, .8, .25, 1.05); }
#tg .tg-seg--view { --tg-n: 2; background: rgba(30, 35, 32, .09); }
#tg .tg-seg--view[data-tg-view="y3"] { --tg-i: 1; }
#tg .tg-seg button { position: relative; z-index: 1; padding: 8px 14px 7px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.1; color: #535B55; white-space: nowrap; transition: color .2s; }
#tg .tg-seg button[aria-pressed="true"] { color: #1E2320; }
#tg .tg-chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }

/* FAQ */
#tg .tg-faq-grid { margin-top: clamp(24px, 2.6cqi, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
#tg .tg-q { border-radius: 18px; background: #F8FAF6; box-shadow: 0 0 0 1px rgba(30, 35, 32, .07); }
#tg .tg-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; cursor: pointer; font-weight: 800; font-size: 17px; line-height: 1.3; }
#tg .tg-q summary::-webkit-details-marker { display: none; }
#tg .tg-q-i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(30, 35, 32, .07); transition: transform .28s cubic-bezier(.3, .8, .3, 1.2), background-color .25s; }
#tg .tg-q-i::before, #tg .tg-q-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 1px; background: #1E2320; }
#tg .tg-q-i::after { transform: rotate(90deg); }
#tg .tg-q[open] .tg-q-i { transform: rotate(45deg); background: #FFE07A; }
#tg .tg-q summary:hover .tg-q-i { background: rgba(30, 35, 32, .12); }
#tg .tg-q p { padding: 0 20px 20px; font-size: 15.5px; line-height: 1.55; color: #3E4540; }

/* showreel */
#tg .tg-showreel { padding-bottom: 0; }
#tg .tg-showreel-head { max-width: 43rem; }
#tg .tg-showreel-head .tg-lead { margin-top: 14px; }
#tg .tg-showreel-frame { position: relative; margin-top: clamp(24px, 3cqi, 42px); overflow: hidden; border-radius: clamp(20px, 2.5cqi, 34px); background: #1E2320; box-shadow: 0 26px 48px -28px rgba(46, 26, 12, .62), inset 0 0 0 1px rgba(255, 255, 255, .12); }
#tg .tg-showreel-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1E2320; }

/* footer */
#tg .tg-foot { position: relative; margin-top: clamp(72px, 9cqi, 130px); overflow: hidden; padding: 40px 0 clamp(56px, 6cqi, 84px); border-top: 1px solid rgba(30, 35, 32, .09); }
#tg .tg-foot-big { position: absolute; left: calc(max(0px, (100% - 1440px) / 2) + clamp(16px, 3.9cqi, 56px)); bottom: 0; transform: translate(-.04em, 30%); font-weight: 800; font-size: clamp(90px, 16cqi, 220px); line-height: 1; letter-spacing: .02em; color: rgba(32, 28, 26, .08); white-space: nowrap; pointer-events: none; user-select: none; }
#tg .tg-foot-in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 32px; }
#tg .tg-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; color: #535B55; }
#tg .tg-foot-links a { border-radius: 6px; }
#tg .tg-foot-links a:hover { color: #1E2320; }
#tg .tg-foot-small { position: relative; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 12.5px; color: #535B55; }

/* ── responsive (container) ── */
@container tg (max-width: 1320px) {
  #tg .tg-hero-grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
  #tg .tg-copy { grid-column: 1; }
  #tg .tg-stage { grid-column: 2; }
  #tg .tg-h1 { font-size: clamp(32px, 4.3cqi, 64px); }
  html[lang="en"] #tg .tg-h1 { font-size: clamp(30px, 3.25cqi, 56px); }
  #tg .tg-sub { margin-top: 16px; font-size: 16px; }
  #tg .tg-cta { margin-top: 18px; }
  #tg .tg-ticks { margin-top: 18px; }
  #tg .tg-hero { padding-top: 2px; }
  #tg .tg-stage-cap { min-height: 32px; margin-bottom: 8px; }
  #tg .tg-panel { margin-top: 11px; }
}
@container tg (max-width: 1180px) {
  #tg .tg-cell { padding: 12px; }
  #tg .tg-math-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
}
@container tg (max-width: 900px) {
  #tg .tg-hero-grid { grid-template-columns: minmax(0, 1fr); }
  #tg .tg-copy, #tg .tg-stage { grid-column: 1 / -1; }
  #tg .tg-copy { max-width: 42rem; padding-top: 10px; }
  #tg .tg-h1 { font-size: clamp(34px, 10.6cqi, 72px); }
  html[lang="en"] #tg .tg-h1 { font-size: clamp(30px, 8.6cqi, 64px); }
  #tg .tg-sub { font-size: 18px; }
  #tg .tg-stage { margin-top: 48px; }
  #tg .tg-math-grid { grid-template-columns: minmax(0, 1fr); }
  #tg .tg-tcol { max-width: 40rem; }
  #tg .tg-tcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tg .tg-tc:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container tg (max-width: 1040px) {
  /* the «Купить на год — $29.99» button no longer fits three abreast: Lifetime on top, the others side by side */
  #tg .tg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tg .tg-opt--life { grid-column: 1 / -1; }
}
@container tg (max-width: 820px) {
  #tg .tg-links { display: none; }
  #tg .tg-faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@container tg (max-width: 760px) {
  #tg .tg-calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "y" "m" "o"; }
}
@container tg (max-width: 640px) {
  #tg .tg-hero { padding-top: 4px; }
  #tg .tg-copy { padding-top: 4px; }
  #tg .tg-h1 { margin-top: 12px; }
  #tg .tg-sub { margin-top: 12px; font-size: 16px; }
  #tg .tg-cta { margin-top: 16px; gap: 12px 18px; }
  #tg .tg-btn { height: 52px; font-size: 16px; }
  #tg .tg-ticks { margin-top: 16px; }
  #tg .tg-rstamp { width: 76px; height: 76px; margin: -40px 0 0 -31px; font-size: 40px; }
  #tg .tg-stage { --tg-r: 24px; --tg-ico: 22px; --tg-igap: 9px; --tg-bpad: 12px; --tg-sgap: 11px; --tg-slotw: 28px; --tg-seal: 30px; margin-top: 18px; }
  #tg .tg-replay { height: 40px; }
  #tg .tg-menubar { border-radius: 0 14px 0 0; -webkit-mask: linear-gradient(90deg, transparent, #000 34px); mask: linear-gradient(90deg, transparent, #000 34px); }
  #tg .tg-mb-apple { display: none; }
  #tg .tg-box { padding: 10px 10px 0; }
  #tg .tg-box::before { inset: 4px; }
  /* the panel as the app ships it: the Mac's load, Layout, Clipboard beside Dictation, Displays, Power beside AI */
  #tg .tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "g g" "c s" "b b" "a a" "d d" "e f"; gap: 8px; }
  #tg .tg-row { display: contents; }
  #tg .tg-tile--a { grid-area: a; } #tg .tg-tile--b { grid-area: b; } #tg .tg-tile--c { grid-area: c; } #tg .tg-tile--d { grid-area: d; }
  #tg .tg-tile--e { grid-area: e; } #tg .tg-tile--f { grid-area: f; } #tg .tg-tile--g { grid-area: g; } #tg .tg-tile--s { grid-area: s; }
  #tg .tg-cell { padding: 11px 12px; border-radius: 18px; }
  #tg .tg-tile::before { border-radius: 18px; }
  #tg .tg-mk::before { border-radius: 22px; }
  #tg .tg-pf { height: 36px; padding: 4px 2px; }
  /* tiles keep the app's order here; only their colours change */
  #tg .tg-box.tg-can-drag .tg-tile { cursor: default; }
  #tg .tg-box.tg-can-drag .tg-tile:hover > .tg-cell { transform: none; box-shadow: inset 0 3px 6px -2px var(--tg-sh), inset 0 -1px 0 var(--tg-lip); }
  #tg .tg-box.tg-can-drag .tg-tile:hover::after { opacity: 0; }
  #tg .tg-tcs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #tg .tg-tc { padding: 14px 14px 12px; }
  #tg .tg-plans { grid-template-columns: minmax(0, 1fr); }
  #tg .tg-opt { padding: 20px 18px; border-radius: 22px; }
  #tg .tg-opt--life { padding-bottom: 12px; }
  #tg .tg-opt-seal { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 24px; }
  #tg .tg-lines { flex-direction: column; align-items: flex-start; }
  #tg .tg-take-go { flex-direction: column; align-items: stretch; text-align: center; }
  #tg .tg-calc { border-radius: 28px; padding: 10px; gap: 10px; }
  #tg .tg-calc::before { border-radius: 24px; inset: 4px; }
  #tg .tg-cc { padding: 18px 18px 16px; border-radius: 19px; }
  #tg .tg-range { height: 40px; margin-top: 10px; }
  #tg .tg-rcpt-wrap { max-width: calc(100% - 20px); }
  #tg .tg-rcpt-tilt { transform-origin: 50% 50%; }
  #tg .tg-slot { left: -8px; right: -8px; }
  #tg .tg-lead { font-size: 16px; }
  #tg .tg-foot-in { flex-direction: column; }
  #tg .tg-lang { padding: 0; gap: 0; }
  #tg .tg-lang button { min-width: 40px; min-height: 40px; padding: 0 8px; }
  #tg .tg-seg button { min-height: 40px; }
  #tg .tg-foot-links { gap: 0 20px; }
  #tg .tg-foot-links a { display: inline-flex; align-items: center; min-height: 40px; }
}
@container tg (max-width: 480px) {
  /* nine app icons in the menu bar still fit beside the Apple logo on a 390 px phone */
  #tg .tg-stage { --tg-clockw: 40px; --tg-ico: 20px; --tg-igap: 4px; --tg-seal: 26px; }
  #tg .tg-mb-date { display: none; }
}
@container tg (max-width: 400px) {
  #tg .tg-stage { --tg-ico: 18px; --tg-igap: 3px; --tg-seal: 24px; }
  #tg .tg-pf-set > span { display: none; }
  #tg .tg-brand-j { display: none; }
  #tg .tg-nav-r { gap: 8px; }
  #tg .tg-pill { padding: 0 14px; }
  #tg .tg-seg button { padding: 8px 10px 7px; font-size: 12.5px; }
  #tg .tg-rcpt { padding: 28px 16px 30px; font-size: 12.5px; }
  #tg .tg-sale-t { font-size: 17px; }
  #tg .tg-rstamp { width: 64px; height: 64px; margin: -34px 0 0 -25px; font-size: 34px; }
}

/* ── lifecycle + motion prefs ── */
#tg.tg-paused *, #tg.tg-paused *::before, #tg.tg-paused *::after,
#tg .tg-paused, #tg .tg-paused *, #tg .tg-paused *::before, #tg .tg-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  #tg *, #tg *::before, #tg *::after { animation: none !important; transition: none !important; }
  #tg.tg-js .tg-replay { display: none; }
  /* the parade stands still in a row instead of trotting */
  #tg .tg-parade-run { display: flex; align-items: center; justify-content: space-around; padding: 0 6px; }
  #tg .tg-parade-run .tg-crit { position: static; --tg-cell: 20px; }
}
/* ── production additions: plan checkout buttons, the download band, the checkout dialog ── */
#tg .tg-pill:disabled { cursor: not-allowed; opacity: .55; transform: none; }
#tg .tg-redpill:disabled:hover { background: #B8342C; }
#tg .tg-sales-note { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.3; color: #535B55; }
body[data-sales-state="live"] #tg .tg-sales-note { display: none; }
#tg .tg-channel-note { max-width: 720px; margin: 12px 0 0; color: #535B55; font-size: 13px; line-height: 1.45; }

#tg .tg-dl-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 34px; background: var(--tg-lacquer); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 26px 44px -24px rgba(46, 26, 12, .55); }
#tg .tg-dl-box::before { content: ""; position: absolute; inset: 5px; border-radius: 29px; border: 1px solid rgba(217, 178, 106, .2); pointer-events: none; }
#tg .tg-dl-main { position: relative; min-width: 0; padding: clamp(24px, 3cqi, 40px); border-radius: 22px; background: radial-gradient(130% 90% at 16% -12%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 58%), #FFE07A; box-shadow: inset 0 3px 6px -2px rgba(0, 0, 0, .34), inset 0 -1px 0 rgba(255, 255, 255, .4); }
#tg .tg-dl-main .tg-lead { color: rgba(30, 35, 32, .78); }
#tg .tg-dl-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
#tg .tg-dl-help { font-size: 15px; font-weight: 700; border-radius: 6px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
#tg .tg-dl-meta { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: rgba(30, 35, 32, .62); }
#tg .tg-dl-direct-note, #tg .tg-dl-store-note { max-width: 680px; margin: 12px 0 0; color: rgba(30, 35, 32, .72); font-size: 13px; line-height: 1.45; }
#tg .tg-dl-store-block { max-width: 680px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(30, 35, 32, .18); }
#tg .tg-dl-store-block h3 { margin: 0; font-size: 16px; line-height: 1.2; }
#tg .tg-dl-store-note { margin-top: 8px; }
#tg .tg-dl-store-block .tg-dl-store { display: inline-block; margin-top: 12px; }
@container tg (max-width: 640px) { #tg .tg-cta .tg-btn { padding: 0 16px; font-size: 15px; } #tg .tg-dl-box { border-radius: 28px; padding: 10px; gap: 10px; } #tg .tg-dl-box::before { border-radius: 24px; inset: 4px; } #tg .tg-dl-main { border-radius: 19px; padding: 20px 18px; } }

/* the phone's sticky download button: outside #tg so position: fixed is the viewport's in every engine; home-tools.js adds tg-is-on
   on phones once the hero's button has scrolled away, and takes it off wherever another download button is on screen */
.tg-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 24px 16px max(12px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(238, 241, 236, 0), rgba(238, 241, 236, .94) 46%); opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.tg-sticky.tg-is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tg-sticky.tg-is-on a { pointer-events: auto; }
html:has(.tg-sticky.tg-is-on) { scroll-padding-bottom: 96px; }
.tg-sticky a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px; background: #1E2320; color: #fff; font: 700 16px/1 "M PLUS Rounded 1c", "Nunito", system-ui, -apple-system, sans-serif; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(30, 35, 32, .75); }
.tg-sticky a:active { transform: translateY(1px); }
.tg-sticky svg { width: 19px; height: 19px; margin-top: -3px; flex: none; }
@media (prefers-reduced-motion: reduce) { .tg-sticky { transition: none; transform: none; } }

dialog[data-checkout-dialog] { width: min(460px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 26px; background: #F8FAF6; color: #1E2320; font-family: "M PLUS Rounded 1c", "Nunito", system-ui, -apple-system, sans-serif; box-shadow: 0 0 0 1px rgba(30, 35, 32, .08), 0 30px 70px -20px rgba(46, 26, 12, .55); }
dialog[data-checkout-dialog]::backdrop { background: rgba(32, 28, 26, .45); backdrop-filter: blur(3px); }
dialog[data-checkout-dialog] > button[data-checkout-close] { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(30, 35, 32, .07); color: #1E2320; font-size: 22px; line-height: 1; cursor: pointer; }
dialog[data-checkout-dialog] .eyebrow::before { display: none; }
dialog[data-checkout-dialog] .eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #B8342C; }
dialog[data-checkout-dialog] h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 36px 6px 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
dialog[data-checkout-dialog] h2 strong { font-weight: 800; color: #B8342C; }
dialog[data-checkout-dialog] p { margin: 0; color: #535B55; font-size: 14px; line-height: 1.45; }
dialog[data-checkout-dialog] .checkout-channel { margin: -6px 0 16px; font-size: 12.5px; }
dialog[data-checkout-dialog] .checkout-macs { display: inline-block; margin: 8px 0 16px; padding: 5px 9px; border-radius: 8px; background: #C3DB9F; color: #1E2320; font-size: 12.5px; font-weight: 700; }
dialog[data-checkout-dialog] form { display: grid; gap: 12px; margin-top: 4px; }
dialog[data-checkout-dialog] label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; }
dialog[data-checkout-dialog] input { width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(30, 35, 32, .16); color: #1E2320; font: 16px "M PLUS Rounded 1c", system-ui, sans-serif; }
dialog[data-checkout-dialog] input:focus-visible { outline: 2.5px solid #B8342C; outline-offset: 2px; }
dialog[data-checkout-dialog] form > button { height: 48px; border: 0; border-radius: 999px; background: #1E2320; color: #fff; font-weight: 700; cursor: pointer; }
dialog[data-checkout-dialog] form > button:hover { background: #B8342C; }
dialog[data-checkout-dialog] form > button:disabled { background: #1E2320; cursor: progress; opacity: .6; }
dialog[data-checkout-dialog] [data-checkout-error] { min-height: 1.2em; color: #B8342C; font-size: 12.5px; }
dialog[data-checkout-dialog] h2 s { font-size: 20px; font-weight: 700; color: #535B55; }
dialog[data-checkout-dialog] .checkout-promo { display: grid; gap: 6px; }
dialog[data-checkout-dialog] .checkout-promo > label { font-size: 13.5px; font-weight: 700; }
dialog[data-checkout-dialog] .checkout-promo-row { display: flex; gap: 8px; }
dialog[data-checkout-dialog] .checkout-promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
dialog[data-checkout-dialog] .checkout-promo-row button { flex: none; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: rgba(30, 35, 32, .08); color: #1E2320; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
dialog[data-checkout-dialog] .checkout-promo-row button:hover { background: rgba(30, 35, 32, .14); }
dialog[data-checkout-dialog] .checkout-promo-row button:disabled { cursor: progress; opacity: .6; }
dialog[data-checkout-dialog] [data-checkout-promo-status] { min-height: 1.2em; font-size: 12.5px; }
dialog[data-checkout-dialog] [data-checkout-promo-status][data-state="ok"] { color: #2F6B2A; font-weight: 700; }
dialog[data-checkout-dialog] [data-checkout-promo-status][data-state="error"] { color: #B8342C; }
