/* TimeMinder theme layer (design system 2026-11-10: artifacts/admin/design/DESIGN-SYSTEM.md).
   ONE file for both apps: server public/assets/css/time-minder-ui.css == desktop assets/css/time-minder-ui.css
   (byte-identical; desktop-only rules are scoped to .tm-desktop and are inert on the web).
   Tokens only below the theme blocks: no hex, rgb or font names outside sections 0-2. */

/* ==== 0. Fonts: self-hosted (fonts/ui, OFL 1.1). Same relative path in both apps. ==== */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/ui/inter-latin-ext-wght-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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/ui/inter-latin-wght-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: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('../fonts/ui/space-grotesk-latin-ext-wght-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: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('../fonts/ui/space-grotesk-latin-wght-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: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/ui/plus-jakarta-sans-latin-ext-wght-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: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/ui/plus-jakarta-sans-latin-wght-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: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/ui/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/ui/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/ui/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-display: swap; font-weight: 700; src: url('../fonts/ui/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }

/* ==== 1. Tokens: Evergreen (default) ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) {
  --tm-font: Inter, 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --tm-font-display: Inter, 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --tm-font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --tm-canvas: #F5F5F3; --tm-auth-canvas: #FFFFFF; --tm-surface: #FFFFFF; --tm-table-head: #FAFAF8;
  --tm-hover: #F2F2EF; --tm-track: #EBEBE7; --tm-seg-on: #FFFFFF; --tm-bar-track: #EEEEEA;
  --tm-line: #E4E4E0; --tm-line-soft: #EFEFEB; --tm-field: #D4D4CF; --tm-field-hover: #B9B9B3;
  --tm-ink: #232224; --tm-ink-2: #414042; --tm-muted: #67666A; --tm-faint: #A2A1A4;
  --tm-accent: #8DC63F; --tm-accent-hover: #7DB531; --tm-accent-ink: #3F7614; --tm-accent-soft: #EEF6E3;
  --tm-accent-softer: #F6FAEF; --tm-accent-line: #C3DF9C; --tm-on-accent: #232224; --tm-accent-ring: rgba(141,198,63,.35);
  --tm-nav: #414042; --tm-nav-line: #4F4E50; --tm-nav-raised: #4A494B; --tm-nav-hover: #4D4C4F;
  --tm-nav-text: #E2E1E4; --tm-nav-strong: #FFFFFF; --tm-nav-muted: #B5B4B7; --tm-nav-active: #8DC63F;
  --tm-nav-active-text: #232224; --tm-nav-avatar: #5A595C; --tm-nav-danger: #FCA5A5;
  --tm-logo-ink: #414042; --tm-nav-logo: #FFFFFF; --tm-hero-logo: #FFFFFF; --tm-logo-bar: #8DC63F;
  --tm-hero: #414042; --tm-hero-2: #4A494B; --tm-hero-3: #535254; --tm-hero-line: #555456;
  --tm-hero-text: #FFFFFF; --tm-hero-soft: #E2E1E4; --tm-hero-muted: #C2C1C4; --tm-hero-accent: #A9D66B;
  --tm-danger: #B42318; --tm-on-danger: #FFFFFF; --tm-danger-soft: #FEF3F2; --tm-danger-ink: #B42318; --tm-danger-line: #FECDCA;
  --tm-warning: #D97706; --tm-warning-soft: #FEF3C7; --tm-warning-ink: #92400E; --tm-warning-line: #FCD34D;
  --tm-edited: #F2B233; /* time added or changed by hand: one yellow on every theme (badge, timesheet part, timeline) */
  --tm-edited-fill: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.32) 4px 7px) var(--tm-edited); /* striped yellow for bars */
  --tm-info-soft: #E8EEFB; --tm-info-ink: #2647A8;
  --tm-tint-teal: #E3F4F4; --tm-tint-teal-ink: #0F5F62; --tm-tint-purple: #F1ECF9; --tm-tint-purple-ink: #5B3A8E;
  --tm-tint-rose: #FBEAEE; --tm-tint-rose-ink: #8F2A41; --tm-tint-pink: #F6ECF7; --tm-tint-pink-ink: #6B2D73;
  --tm-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); /* mid grey: readable on every theme surface */
  --tm-overlay: rgba(35,34,36,.55); --tm-toast: #232224; --tm-on-toast: #FFFFFF;
  --tm-swatch-evergreen: #414042; --tm-swatch-midnight: #111112; --tm-swatch-daylight: #FFFFFF; --tm-swatch-dot: #8DC63F; --tm-swatch-ring: rgba(148,163,184,.6);
  --tm-radius: 14px; --tm-radius-control: 10px; --tm-radius-pop: 18px; --tm-radius-nav: 10px;
  --tm-shadow: none;
  --tm-shadow-seg: 0 1px 2px rgba(15,23,42,.14);
  --tm-shadow-pop: 0 12px 32px rgba(15,23,42,.16);
  --tm-shadow-dialog: 0 12px 32px rgba(15,23,42,.24);
  --tm-scrollbar: #B9B9B3;
  font-family: var(--tm-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--tm-ink);
  background: var(--tm-canvas) !important;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

/* ==== 2. Tokens: Midnight and Daylight. Theme = data-tm-theme on <html> or <body> (per device, localStorage tm-theme).
   The old company "dark layout" (data-ui-mode="dark" / style-dark.css) maps to Midnight. ==== */
:root[data-tm-theme="midnight"] :is(.tm-ui,.tm-auth,.tm-desktop),
:is(.tm-ui,.tm-auth,.tm-desktop)[data-tm-theme="midnight"],
:root:not([data-tm-theme]) :is(.tm-ui,.tm-auth,.tm-desktop)[data-ui-mode="dark"]:not([data-tm-theme]),
:root:not([data-tm-theme]):has(link[href*="style-dark.css"]) :is(.tm-ui,.tm-auth,.tm-desktop):not([data-tm-theme]) {
  --tm-font-display: 'Space Grotesk', Inter, 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --tm-canvas: #111112; --tm-auth-canvas: #111112; --tm-surface: #1A1A1C; --tm-table-head: #202022;
  --tm-hover: #262628; --tm-track: #151516; --tm-seg-on: #2C2C2F; --tm-bar-track: #262628;
  --tm-line: #2B2B2E; --tm-line-soft: #232325; --tm-field: #38383C; --tm-field-hover: #4A4A4F;
  --tm-ink: #F2F2F0; --tm-ink-2: #CFCFCC; --tm-muted: #A2A2A0; --tm-faint: #74747A;
  --tm-accent: #8DC63F; --tm-accent-hover: #A4D564; --tm-accent-ink: #A9D66B; --tm-accent-soft: #263219;
  --tm-accent-softer: #1D2516; --tm-accent-line: #4E6B28; --tm-on-accent: #18200A; --tm-accent-ring: rgba(141,198,63,.35);
  --tm-nav: #151516; --tm-nav-line: #232325; --tm-nav-raised: #1A1A1C; --tm-nav-hover: #202022;
  --tm-nav-text: #A2A2A0; --tm-nav-strong: #F2F2F0; --tm-nav-muted: #8A8A87; --tm-nav-active: #263219;
  --tm-nav-active-text: #A9D66B; --tm-nav-avatar: #262628; --tm-nav-danger: #FCA5A5;
  --tm-logo-ink: #FFFFFF; --tm-nav-logo: #FFFFFF; --tm-hero-logo: #FFFFFF;
  --tm-hero: #1A1A1C; --tm-hero-2: #202022; --tm-hero-3: #262628; --tm-hero-line: #2B2B2E;
  --tm-hero-text: #F2F2F0; --tm-hero-soft: #CFCFCC; --tm-hero-muted: #A2A2A0; --tm-hero-accent: #8DC63F;
  --tm-danger: #F87171; --tm-on-danger: #2A0A0A; --tm-danger-soft: #3A1518; --tm-danger-ink: #FCA5A5; --tm-danger-line: #5A2328;
  --tm-warning: #F5B544; --tm-warning-soft: #3A2C0E; --tm-warning-ink: #F5C46B; --tm-warning-line: #4A3A14;
  --tm-info-soft: #172A45; --tm-info-ink: #8EC5FF;
  --tm-tint-teal: #123236; --tm-tint-teal-ink: #67E8F9; --tm-tint-purple: #2A2245; --tm-tint-purple-ink: #D7B4F8;
  --tm-tint-rose: #3A1A24; --tm-tint-rose-ink: #FDA4AF; --tm-tint-pink: #3A1F3B; --tm-tint-pink-ink: #F0ABFC;
  --tm-overlay: rgba(0,0,0,.7); --tm-toast: #2C2C2F; --tm-on-toast: #F2F2F0;
  --tm-radius: 16px; --tm-radius-control: 12px; --tm-radius-pop: 20px; --tm-radius-nav: 12px;
  --tm-shadow-seg: 0 1px 2px rgba(0,0,0,.4);
  --tm-shadow-pop: 0 12px 32px rgba(0,0,0,.45);
  --tm-shadow-dialog: 0 12px 32px rgba(0,0,0,.55);
  --tm-scrollbar: #4A4A4F;
  color-scheme: dark;
}
:root[data-tm-theme="daylight"] :is(.tm-ui,.tm-auth,.tm-desktop),
:is(.tm-ui,.tm-auth,.tm-desktop)[data-tm-theme="daylight"] {
  --tm-font: 'Plus Jakarta Sans', Inter, 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --tm-font-display: 'Plus Jakarta Sans', Inter, 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --tm-canvas: #F7F7F5; --tm-auth-canvas: #FFFFFF; --tm-surface: #FFFFFF; --tm-table-head: #FAFAF8;
  --tm-hover: #F2F2EF; --tm-track: #EFEFEC; --tm-seg-on: #FFFFFF; --tm-bar-track: #F0F0EC;
  --tm-line: #E8E8E4; --tm-line-soft: #F0F0EC; --tm-field: #DCDCD7; --tm-field-hover: #C9C9C3;
  --tm-ink: #232224; --tm-ink-2: #414042; --tm-muted: #626165; --tm-faint: #A2A1A4;
  --tm-accent: #8DC63F; --tm-accent-hover: #7DB531; --tm-accent-ink: #3F7614; --tm-accent-soft: #F0F7E6;
  --tm-accent-softer: #F7FBF1; --tm-accent-line: #CBE6A6; --tm-on-accent: #232224; --tm-accent-ring: rgba(141,198,63,.3);
  --tm-nav: #FFFFFF; --tm-nav-line: #E8E8E4; --tm-nav-raised: #F7F7F5; --tm-nav-hover: #F2F2EF;
  --tm-nav-text: #414042; --tm-nav-strong: #232224; --tm-nav-muted: #67666A; --tm-nav-active: #F0F7E6;
  --tm-nav-active-text: #3F7614; --tm-nav-avatar: #EEF6E3; --tm-nav-danger: #B91C1C;
  --tm-logo-ink: #414042; --tm-nav-logo: #414042; --tm-hero-logo: #FFFFFF;
  --tm-hero: #414042; --tm-hero-2: #4A494B; --tm-hero-3: #535254; --tm-hero-line: #555456;
  --tm-hero-text: #FFFFFF; --tm-hero-soft: #E2E1E4; --tm-hero-muted: #C2C1C4; --tm-hero-accent: #A9D66B;
  --tm-danger: #DC2626; --tm-on-danger: #FFFFFF; --tm-danger-soft: #FEF2F2; --tm-danger-ink: #B91C1C; --tm-danger-line: #FECACA;
  --tm-warning: #EA580C; --tm-warning-soft: #FFF4E5; --tm-warning-ink: #9A4A06; --tm-warning-line: #FED7AA;
  --tm-info-soft: #EEF2FF; --tm-info-ink: #3730A3;
  --tm-tint-teal: #E0F7FA; --tm-tint-teal-ink: #0E7490; --tm-tint-purple: #F3EEFF; --tm-tint-purple-ink: #5B21B6;
  --tm-tint-rose: #FFE4E6; --tm-tint-rose-ink: #9F1239; --tm-tint-pink: #FCE7F3; --tm-tint-pink-ink: #86198F;
  --tm-overlay: rgba(35,34,36,.45); --tm-toast: #232224; --tm-on-toast: #FFFFFF;
  --tm-radius: 20px; --tm-radius-control: 999px; --tm-radius-pop: 28px; --tm-radius-nav: 999px;
  --tm-scrollbar: #C9C9C3;
  color-scheme: light;
}
html[dir="rtl"] :is(.tm-ui,.tm-auth,.tm-desktop) {
  --tm-font: 'IBM Plex Sans Arabic', Inter, 'Segoe UI', system-ui, sans-serif;
  --tm-font-display: 'IBM Plex Sans Arabic', Inter, 'Segoe UI', system-ui, sans-serif;
}

/* ==== 3. Base ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) :is(h1,h2,h3,h4,h5,h6) {
  color: var(--tm-ink);
  font-family: var(--tm-font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}
:is(.tm-ui,.tm-auth,.tm-desktop) :is(input,select,textarea,button) { font: inherit; }
:is(.tm-ui,.tm-auth,.tm-desktop) a { text-underline-offset: 3px; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--tm-accent-ink);
  outline-offset: 2px;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .text-muted { color: var(--tm-muted) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .text-danger { color: var(--tm-danger-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .text-success { color: var(--tm-accent-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .text-primary { color: var(--tm-accent-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(input,textarea)::placeholder { color: var(--tm-muted); opacity: 1; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(select,option) { background-color: var(--tm-surface); color: var(--tm-ink); }

/* ==== 4. Cards ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) .card {
  background: var(--tm-surface);
  color: var(--tm-ink);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  box-shadow: none;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .card-header {
  background: transparent;
  border-bottom: 1px solid var(--tm-line);
  padding: 18px 24px;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .card-header :is(h1,h2,h3,h4,h5,h6) { font-size: 18px; margin: 0; color: var(--tm-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .card-body { padding: 24px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .card-footer { background: var(--tm-table-head); border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 13px; padding: 12px 24px; }

/* ==== 5. Buttons ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) .btn {
  min-height: 40px;
  border-radius: var(--tm-radius-control);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-canvas), 0 0 0 5px var(--tm-accent-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-lg { min-height: 48px; padding: 10px 22px; font-size: 15px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-primary {
  background: var(--tm-accent) !important;
  border-color: var(--tm-accent) !important;
  color: var(--tm-on-accent) !important;
  box-shadow: none !important;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-primary:not(:disabled):hover { background: var(--tm-accent-hover) !important; border-color: var(--tm-accent-hover) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.btn-primary,.btn-secondary,.btn-danger,.btn-outline-primary):disabled,
:is(.tm-ui,.tm-auth,.tm-desktop) .btn.disabled { background: var(--tm-track) !important; border-color: var(--tm-track) !important; color: var(--tm-muted) !important; opacity: 1; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.btn-secondary,.btn-light,.btn-outline-secondary) {
  background: var(--tm-surface);
  border: 1px solid var(--tm-field);
  color: var(--tm-ink);
}
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.btn-secondary,.btn-light,.btn-outline-secondary):not(:disabled):hover { background: var(--tm-hover); border-color: var(--tm-field-hover); color: var(--tm-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-outline-primary { background: var(--tm-surface); border: 1px solid var(--tm-accent); color: var(--tm-accent-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-outline-primary:not(:disabled):hover { background: var(--tm-accent-soft); border-color: var(--tm-accent); color: var(--tm-accent-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-light-primary { background: var(--tm-accent-soft) !important; border-color: transparent !important; color: var(--tm-accent-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-link { color: var(--tm-accent-ink); text-decoration: none; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-link:hover { background: var(--tm-hover); color: var(--tm-accent-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-danger { background: var(--tm-danger) !important; border-color: var(--tm-danger) !important; color: var(--tm-on-danger) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-danger:not(:disabled):hover { filter: brightness(.94); }

/* ==== 6. Fields and choice controls ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-control,.form-select,.custom-select) {
  min-height: 44px;
  border: 1px solid var(--tm-field);
  border-radius: var(--tm-radius-control);
  color: var(--tm-ink);
  background-color: var(--tm-surface);
  box-shadow: none;
  font-size: 14px;
}
:is(.tm-ui,.tm-auth,.tm-desktop) :is(textarea.form-control,select[multiple],select[size],.select2-container--default .select2-selection--multiple,.choices__inner) { border-radius: min(var(--tm-radius), 14px); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-control,.form-select,.custom-select):hover:not(:disabled):not(:focus) { border-color: var(--tm-field-hover); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-control,.form-select,.custom-select):focus {
  border-color: var(--tm-accent);
  box-shadow: 0 0 0 3px var(--tm-accent-ring);
  outline: 0;
}
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-control,.form-select):disabled { background-color: var(--tm-bar-track); border-color: var(--tm-line); color: var(--tm-muted); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-control,.form-select).is-invalid { border-color: var(--tm-danger); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.invalid-feedback,.error,.text-error) { color: var(--tm-danger-ink); font-size: 13px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .form-text { color: var(--tm-muted); font-size: 13px; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-label,.col-form-label) { color: var(--tm-ink); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.form-check-input,input[type="checkbox"],input[type="radio"]) { accent-color: var(--tm-accent); }
:is(.tm-ui,.tm-auth,.tm-desktop) .form-check-input:checked { background-color: var(--tm-accent); border-color: var(--tm-accent); }
:is(.tm-ui,.tm-auth,.tm-desktop) .form-check-input:focus { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
:is(.tm-ui,.tm-auth,.tm-desktop) .input-group-text { background: var(--tm-table-head); border-color: var(--tm-field); color: var(--tm-muted); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple,.choices__inner) {
  min-height: 44px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink);
}
.tm-ui .switch.btn { width: 80px !important; height: 38px !important; min-height: 38px; padding: 0; vertical-align: middle; }
.tm-ui .switch .switch-on { border-radius: 0; padding: 8px 24px 8px 8px; }
.tm-ui .switch .switch-off { border-radius: 0; padding: 8px 8px 8px 24px; }
.tm-ui .switch .switch-handle { width: 16px; padding: 0; border-radius: 7px; box-shadow: none; }
.tm-ui .custom-control > .switch + .custom-control-label { display: none; }
.tm-ui .switch-width .custom-control { padding-left: 0; }
.tm-ui .switch:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 2px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .nav-pills .nav-link { border-radius: var(--tm-radius-control); color: var(--tm-ink-2); font-weight: 600; font-size: 13px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .nav-pills .nav-link.active { background: var(--tm-accent); color: var(--tm-on-accent); }
/* Segmented range control (Day / Week / Month / Range). */
.tm-ui #date-type-container { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--tm-radius-control); background: var(--tm-track) !important; border: 0 !important; }
.tm-ui #date-type-container .date-type { min-height: 34px; padding: 0 12px; border: 0 !important; border-radius: var(--tm-radius-control) !important; background: transparent !important; color: var(--tm-ink-2) !important; font-weight: 600; font-size: 13px; }
.tm-ui #date-type-container .date-type.clicked-date-type { background: var(--tm-seg-on) !important; color: var(--tm-ink) !important; box-shadow: var(--tm-shadow-seg); }

/* ==== 6b. Micro UI (web): checkboxes/radios, filter menus (shared includes), date stepper, calendars, links, tooltips, menu rows.
   Shared includes keep their ids and inline styles; only their look is overridden here, so every page that uses them matches. ==== */
:is(.tm-ui,.tm-auth) :is(input[type="checkbox"],input[type="radio"]):not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *) {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; flex: none; margin: 0; padding: 0; vertical-align: middle;
  border: 1.5px solid var(--tm-field-hover); border-radius: 5px; background: var(--tm-surface) center / 12px no-repeat; color: var(--tm-accent);
  box-shadow: none; cursor: pointer; transition: background-color .12s ease, border-color .12s ease;
}
/* Radios: same specificity as the shared box rule above (its extra :not()s), so they really are round and show the dot when picked. */
:is(.tm-ui,.tm-auth) input[type="radio"]:not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *) { border-radius: 50%; }
:is(.tm-ui,.tm-auth) :is(input[type="checkbox"],input[type="radio"]):not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *):hover:not(:disabled) { border-color: var(--tm-accent); }
:is(.tm-ui,.tm-auth) input[type="checkbox"]:not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *):checked {
  border-color: var(--tm-accent); background-color: var(--tm-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:is(.tm-ui,.tm-auth) input[type="checkbox"]:not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *):indeterminate {
  border-color: var(--tm-accent); background-color: var(--tm-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
:is(.tm-ui,.tm-auth) input[type="radio"]:not(.form-check-input):not(.btn-check):not([role="switch"]):not([data-toggle="switchbutton"]):not(#cc-main *):checked { border: 5px solid var(--tm-accent); background: var(--tm-surface); }
:is(.tm-ui,.tm-auth) :is(input[type="checkbox"],input[type="radio"]):not(.form-check-input):not(.btn-check):not(#cc-main *):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
:is(.tm-ui,.tm-auth) :is(input[type="checkbox"],input[type="radio"]):not(.form-check-input):not(.btn-check):not(#cc-main *):disabled { opacity: .45; cursor: not-allowed; }
/* Native selects: one chevron that reads on every theme. */
:is(.tm-ui,.tm-auth) :is(.form-select,select.form-control:not([multiple]):not([size]),select.custom-select,.dataTable-selector) {
  -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: var(--tm-select-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer;
}
/* Filter triggers: members / projects (multiselect include) and time zone (radio-select include). */
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"]) {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; max-width: 100%; padding: 0 12px !important;
  border: 1px solid var(--tm-field) !important; border-radius: var(--tm-radius-control) !important; background: var(--tm-surface) !important; color: var(--tm-ink) !important;
  font: 500 14px var(--tm-font); white-space: nowrap; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"]):hover { border-color: var(--tm-field-hover) !important; }
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"]):is(:focus-visible,[aria-expanded="true"]) { border-color: var(--tm-accent) !important; box-shadow: 0 0 0 3px var(--tm-accent-ring); outline: 0; }
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"]) > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"]) > svg { width: 10px; height: 10px; flex: none; margin: 0 0 0 2px !important; color: var(--tm-muted); transition: transform .15s ease; }
.tm-ui :is(#dropdownSearchButton,[id$="-dropdown-radio-bg-hover-button"])[aria-expanded="true"] > svg { transform: rotate(180deg); }
/* Filter menus */
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) {
  z-index: 1060; min-width: 260px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
  background: var(--tm-surface) !important; color: var(--tm-ink); box-shadow: var(--tm-shadow-pop); overflow: hidden;
}
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) > .p-3 { padding: 10px !important; border-bottom: 1px solid var(--tm-line-soft); }
.tm-ui #dropdownRadioBgHover > * + * { border-color: var(--tm-line-soft) !important; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) input[type="text"] {
  height: 38px; padding: 0 12px 0 34px !important; border: 1px solid var(--tm-field) !important; border-radius: var(--tm-radius-control);
  background: var(--tm-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") left 11px center / 15px no-repeat !important;
  color: var(--tm-ink) !important; font: 400 14px var(--tm-font); box-shadow: none;
}
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) input[type="text"]::placeholder { color: var(--tm-faint); }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) input[type="text"]:focus { border-color: var(--tm-accent) !important; box-shadow: 0 0 0 3px var(--tm-accent-ring); outline: 0; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) ul { height: auto !important; max-height: 248px; margin: 0; padding: 6px !important; overflow-y: auto; color: var(--tm-ink) !important; list-style: none; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) ul > :not(:first-child) { margin-top: 2px; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) li > div { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px !important; border-radius: 8px; background: transparent !important; cursor: pointer; transition: background-color .12s ease; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) li > div:hover { background: var(--tm-hover) !important; }
.tm-ui #dropdownRadioBgHover li > div:has(input:checked) { background: var(--tm-accent-soft) !important; }
.tm-ui #dropdownRadioBgHover li > div:has(input:checked) label { color: var(--tm-accent-ink) !important; font-weight: 600; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) label { flex: 1 1 auto; min-width: 0; margin: 0 !important; padding: 9px 0 !important; color: var(--tm-ink) !important; font: 500 14px/1.3 var(--tm-font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui [id$="-dropdown-id"] li[data-type="select-all"] { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--tm-line-soft); }
.tm-ui [id$="-dropdown-id"] li[data-type="select-all"] label { font-weight: 600; }
.tm-ui :is([id$="-dropdown-id"],#dropdownRadioBgHover) ul > p { margin: 0; padding: 14px 10px; color: var(--tm-muted); font-size: 13px; text-align: center; }
/* Date stepper (date-pickers include): one field with prev / date / next. */
.tm-ui #date-pickers { height: 44px; box-sizing: border-box; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface) !important; color: var(--tm-ink); overflow: hidden; }
.tm-ui #date-pickers > img { width: 40px; height: 42px; box-sizing: border-box; flex: none; object-position: -9999px 0; background: var(--tm-ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tm-ui #date-pickers > img:last-child { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.tm-ui #date-pickers > img:hover { background: var(--tm-accent-ink); }
.tm-ui #date-pickers [data-toggle] { height: 42px !important; margin: 0 !important; padding: 0 8px !important; gap: 8px; border-radius: 0 !important; background: transparent !important; color: var(--tm-ink) !important; font-weight: 600; white-space: nowrap; }
.tm-ui #date-pickers [data-toggle]:hover { color: var(--tm-accent-ink) !important; }
.tm-ui #date-pickers [data-toggle]::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--tm-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 2v4M16 2v4M3 9h18M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-ui #date-pickers [data-toggle] > span { margin: 0 !important; }
/* Calendars: flatpickr (filters, forms) and daterangepicker. */
.tm-ui .flatpickr-calendar { width: 316px; padding: 8px; box-sizing: border-box; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); box-shadow: var(--tm-shadow-pop); font-family: var(--tm-font); color: var(--tm-ink); }
.tm-ui .flatpickr-calendar.open { margin-top: 6px; }
.tm-ui .flatpickr-calendar :is(.flatpickr-innerContainer,.flatpickr-rContainer,.flatpickr-days,.dayContainer,.flatpickr-weekdays) { width: 298px; min-width: 298px; max-width: 298px; }
.tm-ui .flatpickr-calendar:is(.arrowTop,.arrowBottom)::before, .tm-ui .flatpickr-calendar:is(.arrowTop,.arrowBottom)::after { display: none; }
.tm-ui .flatpickr-months { align-items: center; height: 40px; margin-bottom: 4px; }
.tm-ui .flatpickr-months .flatpickr-month { height: 40px; color: var(--tm-ink); fill: var(--tm-ink); }
.tm-ui .flatpickr-current-month { height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 700; }
.tm-ui .flatpickr-current-month :is(.flatpickr-monthDropdown-months,input.cur-year) { height: 32px; margin: 0; padding: 0 6px; border-radius: 8px; background: transparent; color: var(--tm-ink); font: 700 15px var(--tm-font); }
.tm-ui .flatpickr-current-month .flatpickr-monthDropdown-months:hover, .tm-ui .flatpickr-current-month .numInputWrapper:hover { background: var(--tm-hover); }
.tm-ui .flatpickr-current-month .flatpickr-monthDropdown-months option { background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui .flatpickr-current-month .numInputWrapper span.arrowUp::after { border-bottom-color: var(--tm-muted); }
.tm-ui .flatpickr-current-month .numInputWrapper span.arrowDown::after { border-top-color: var(--tm-muted); }
.tm-ui .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month) { top: 8px; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--tm-ink-2); fill: var(--tm-ink-2); }
.tm-ui .flatpickr-months .flatpickr-prev-month { left: 8px; }
.tm-ui .flatpickr-months .flatpickr-next-month { right: 8px; }
.tm-ui .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month):hover { background: var(--tm-hover); }
.tm-ui .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month):hover svg { fill: var(--tm-accent-ink); }
.tm-ui .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month) svg { width: 13px; height: 13px; }
.tm-ui span.flatpickr-weekday { color: var(--tm-muted); font-size: 12px; font-weight: 600; background: transparent; }
.tm-ui .flatpickr-day { max-width: 42px; height: 38px; line-height: 36px; border-radius: 8px; color: var(--tm-ink); font-weight: 500; border-color: transparent; }
.tm-ui .flatpickr-day:is(:hover,:focus):not(.selected):not(.startRange):not(.endRange):not(.inRange) { background: var(--tm-hover); border-color: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .flatpickr-day.today { border-color: var(--tm-accent); }
.tm-ui .flatpickr-day.today:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .flatpickr-day:is(.selected,.startRange,.endRange), .tm-ui .flatpickr-day:is(.selected,.startRange,.endRange):is(:hover,:focus,.inRange,.prevMonthDay,.nextMonthDay) { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-on-accent); font-weight: 700; }
.tm-ui .flatpickr-day.inRange, .tm-ui .flatpickr-day:is(.prevMonthDay,.nextMonthDay).inRange { background: var(--tm-accent-soft); border-color: var(--tm-accent-soft); color: var(--tm-accent-ink); border-radius: 0; box-shadow: -5px 0 0 var(--tm-accent-soft), 5px 0 0 var(--tm-accent-soft); }
.tm-ui .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .tm-ui .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .tm-ui .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--tm-accent); }
.tm-ui .flatpickr-day.startRange { border-radius: 8px 0 0 8px; }
.tm-ui .flatpickr-day.endRange { border-radius: 0 8px 8px 0; }
.tm-ui .flatpickr-day.startRange.endRange, .tm-ui .flatpickr-day.selected:not(.startRange):not(.endRange) { border-radius: 8px; }
.tm-ui .flatpickr-day.week.selected { box-shadow: -5px 0 0 var(--tm-accent), 5px 0 0 var(--tm-accent); }
.tm-ui .flatpickr-day:is(.prevMonthDay,.nextMonthDay,.flatpickr-disabled,.notAllowed) { color: var(--tm-faint); }
.tm-ui .flatpickr-time { border-top: 1px solid var(--tm-line-soft) !important; }
.tm-ui .flatpickr-time :is(input,.flatpickr-am-pm,.flatpickr-time-separator) { color: var(--tm-ink); }
.tm-ui .flatpickr-time :is(input,.flatpickr-am-pm):is(:hover,:focus) { background: var(--tm-hover); }
.tm-ui .daterangepicker { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); box-shadow: var(--tm-shadow-pop); color: var(--tm-ink); font-family: var(--tm-font); }
.tm-ui .daterangepicker::before, .tm-ui .daterangepicker::after { display: none; }
.tm-ui .daterangepicker .calendar-table { border: 0; background: transparent; }
.tm-ui .daterangepicker .calendar-table :is(th,td) { border-radius: 8px; color: var(--tm-ink); }
.tm-ui .daterangepicker td:is(.off,.off.in-range,.off.start-date,.off.end-date) { background: transparent; color: var(--tm-faint); }
.tm-ui .daterangepicker td.available:hover, .tm-ui .daterangepicker th.available:hover { background: var(--tm-hover); }
.tm-ui .daterangepicker td.in-range { background: var(--tm-accent-soft); color: var(--tm-accent-ink); border-radius: 0; }
.tm-ui .daterangepicker td:is(.active,.active:hover) { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .daterangepicker .ranges li:hover { background: var(--tm-hover); }
.tm-ui .daterangepicker .ranges li.active { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .daterangepicker .drp-buttons { border-color: var(--tm-line); }
/* Links in page content and breadcrumbs (Final UI: accent ink, underline on hover). Links with their own class keep it. */
.tm-ui :is(.dash-content,.page-header) a:not([class]):not(:is(.pagination,.dataTable-pagination) a), .tm-ui .breadcrumb-item a { color: var(--tm-accent-ink); font-weight: 500; text-decoration: none; text-underline-offset: 3px; }
.tm-ui :is(.dash-content,.page-header) a:not([class]):not(:is(.pagination,.dataTable-pagination) a):hover, .tm-ui .breadcrumb-item a:hover { color: var(--tm-accent-ink); text-decoration: underline; }
.tm-ui .breadcrumb-item.active, .tm-ui .breadcrumb-item + .breadcrumb-item::before { color: var(--tm-muted); }
:is(.tm-ui,.tm-auth) :is(a,button,[role="button"],summary):focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
/* Tooltips */
:is(.tm-ui,.tm-auth) .tooltip { --bs-tooltip-bg: var(--tm-toast); --bs-tooltip-color: var(--tm-on-toast); --bs-tooltip-opacity: 1; font-family: var(--tm-font); }
:is(.tm-ui,.tm-auth) .tooltip-inner { padding: 6px 10px; border-radius: 8px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 12px; font-weight: 500; box-shadow: var(--tm-shadow-pop); }
:is(.tm-ui,.tm-auth) .tooltip.bs-tooltip-top .tooltip-arrow::before, :is(.tm-ui,.tm-auth) .tooltip[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: var(--tm-toast); }
:is(.tm-ui,.tm-auth) .tooltip.bs-tooltip-bottom .tooltip-arrow::before, :is(.tm-ui,.tm-auth) .tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: var(--tm-toast); }
:is(.tm-ui,.tm-auth) .tooltip.bs-tooltip-start .tooltip-arrow::before, :is(.tm-ui,.tm-auth) .tooltip[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: var(--tm-toast); }
:is(.tm-ui,.tm-auth) .tooltip.bs-tooltip-end .tooltip-arrow::before, :is(.tm-ui,.tm-auth) .tooltip[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: var(--tm-toast); }

/* ==== 7. Tables, pagination, chips, bars ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) .table { color: var(--tm-ink-2); border-color: var(--tm-line-soft); margin-bottom: 0; --bs-table-bg: transparent; --bs-table-color: var(--tm-ink-2); }
:is(.tm-ui,.tm-auth,.tm-desktop) .table thead th {
  color: var(--tm-muted);
  background: var(--tm-table-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--tm-line);
  padding: 12px 16px;
  vertical-align: middle;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .table tbody :is(td,th) {
  padding: 12px 16px;
  border-color: var(--tm-line-soft);
  vertical-align: middle;
  font-size: 14px;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .table-hover tbody tr:hover { background-color: var(--tm-hover); --bs-table-accent-bg: transparent; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.table-active,tr.selected) { background-color: var(--tm-accent-soft); }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.pagination .page-link,.dataTable-pagination a) {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--tm-radius-control); border: 1px solid var(--tm-field); background: var(--tm-surface); color: var(--tm-ink); font-size: 13px; font-weight: 600;
}
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.pagination .page-item.active .page-link,.dataTable-pagination .active a) { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-on-accent); }
:is(.tm-ui,.tm-auth,.tm-desktop) .badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 600; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.badge.bg-light-success,.badge.bg-success) { background: var(--tm-accent-soft) !important; color: var(--tm-accent-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.badge.bg-light-warning,.badge.bg-warning) { background: var(--tm-warning-soft) !important; color: var(--tm-warning-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.badge.bg-light-danger,.badge.bg-danger) { background: var(--tm-danger-soft) !important; color: var(--tm-danger-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.badge.bg-light-info,.badge.bg-info,.badge.bg-primary) { background: var(--tm-info-soft) !important; color: var(--tm-info-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.badge.bg-light-secondary,.badge.bg-secondary) { background: var(--tm-bar-track) !important; color: var(--tm-ink-2) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .progress { height: 8px; border-radius: 999px; background: var(--tm-bar-track); }
:is(.tm-ui,.tm-auth,.tm-desktop) .progress-bar { background: var(--tm-accent); border-radius: 999px; }

/* ==== 8. Overlays and feedback ==== */
:is(.tm-ui,.tm-auth,.tm-desktop) .dropdown-menu {
  background: var(--tm-surface);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-pop);
  padding: 8px;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .dropdown-item { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; color: var(--tm-ink); font-size: 14px; font-weight: 500; }
:is(.tm-ui,.tm-auth,.tm-desktop) :is(.dropdown-item:hover,.dropdown-item:focus) { background: var(--tm-hover); color: var(--tm-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .dropdown-item.text-danger { color: var(--tm-danger-ink) !important; }
:is(.tm-ui,.tm-auth,.tm-desktop) .dropdown-divider { border-color: var(--tm-line); margin: 4px 6px; }
:is(.tm-ui,.tm-auth) .dropdown-item :is(i,svg) { flex: none; width: 18px; font-size: 17px; color: var(--tm-muted); text-align: center; }
:is(.tm-ui,.tm-auth) .dropdown-item:hover :is(i,svg) { color: inherit; }
:is(.tm-ui,.tm-auth) .dropdown-menu form { margin: 0; }
:is(.tm-ui,.tm-auth) .dropdown-menu form > :is(a,button) { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 !important; padding: 0 10px !important; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--tm-ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-align: start; }
:is(.tm-ui,.tm-auth) .dropdown-menu form > :is(a,button):is(.show_confirm,.bs-pass-para,[class*="delete"]) { color: var(--tm-danger-ink); }
:is(.tm-ui,.tm-auth) .dropdown-menu form > :is(a,button):hover { background: var(--tm-hover); }
:is(.tm-ui,.tm-auth) .dropdown-menu form > :is(a,button):is(.show_confirm,.bs-pass-para,[class*="delete"]):hover { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
:is(.tm-ui,.tm-auth) .dropdown-menu form > :is(a,button) :is(i,svg) { flex: none; width: 18px; font-size: 17px; text-align: center; }
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-content {
  background: var(--tm-surface);
  color: var(--tm-ink);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius-pop);
  box-shadow: var(--tm-shadow-dialog);
  overflow: hidden;
}
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-header { border-color: var(--tm-line); padding: 14px 16px 14px 20px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-title { font-family: var(--tm-font-display); font-size: 17px; font-weight: 700; }
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-body { padding: 16px 20px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-footer { border-color: var(--tm-line); background: var(--tm-table-head); padding: 12px 20px; gap: 8px; }
:is(.tm-ui,.tm-auth,.tm-desktop) .modal-backdrop.show { background: var(--tm-overlay); opacity: 1; }
:is(.tm-ui,.tm-auth,.tm-desktop) .btn-close:focus { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert { display: block; border-radius: var(--tm-radius); padding: 12px 14px; font-size: 14px; color: var(--tm-ink-2); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-danger { background: var(--tm-danger-soft); border: 1px solid var(--tm-danger-line); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-warning { background: var(--tm-warning-soft); border: 1px solid var(--tm-warning-line); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-info { background: var(--tm-info-soft); border: 1px solid var(--tm-line); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-success { background: var(--tm-accent-soft); border: 1px solid var(--tm-accent-line); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-danger :is(strong,b,.alert-heading) { color: var(--tm-danger-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-warning :is(strong,b,.alert-heading) { color: var(--tm-warning-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-info :is(strong,b,.alert-heading) { color: var(--tm-info-ink); }
:is(.tm-ui,.tm-auth,.tm-desktop) .alert-success :is(strong,b,.alert-heading) { color: var(--tm-accent-ink); }
.tm-ui #liveToast, .tm-ui .toast:not(.error):not(.success):not(.warning):not(.info):not([class*="toast-"]) { background: var(--tm-toast); color: var(--tm-on-toast); border: 0; border-radius: var(--tm-radius); box-shadow: var(--tm-shadow-dialog); }
.tm-ui :is(#liveToast,.toast:not(.error):not(.success):not(.warning):not(.info):not([class*="toast-"])) :is(.toast-body,.toast-header) { background: transparent; color: var(--tm-on-toast); border: 0; }

/* ==== 9. Brand: approved lockup (kit paths). Lettering = currentColor, bar fixed brand green. Sizes per DS-Brand. ==== */
.tm-brand { display: flex; align-items: center; color: var(--tm-logo-ink); line-height: 0; }
.tm-brand .tm-logo { display: block; height: 26px; width: auto; max-width: 100%; overflow: visible; }
:is(.tm-logo,.tm-nav-symbol) .tm-logo-bar { fill: var(--tm-logo-bar); }

/* ==== 10. Side menu (Final UI ProtoNav). Shared item look for web + desktop; web shell scoped to #tm-main-navigation. ==== */
.tm-ui .dash-sidebar.light-sidebar { background: var(--tm-nav) !important; border: 0; border-inline-end: 1px solid var(--tm-nav-line); box-shadow: none; }
.tm-ui .dash-sidebar .tm-brand { color: var(--tm-nav-logo); }
.tm-ui .dash-sidebar .dash-navbar > .dash-item > .dash-link {
  margin: 0 !important; min-height: 40px; padding: 0 12px !important; display: flex; align-items: center; gap: 12px;
  border-radius: var(--tm-radius-nav) !important; color: var(--tm-nav-text) !important; font-size: 14px !important; font-weight: 500;
  box-shadow: none !important; background: transparent !important; text-decoration: none;
}
/* Hovering or focusing inside a submenu must not light up its parent (legacy theme li:hover > a gradient). */
.tm-ui .dash-sidebar .dash-navbar > .dash-item > .dash-link :is(.dash-mtext,.dash-arrow,.dash-micon,i) { color: inherit !important; }
.tm-ui .dash-sidebar .dash-navbar > .dash-item > .dash-link:hover { background: var(--tm-nav-hover) !important; color: var(--tm-nav-strong) !important; }
.tm-ui .dash-sidebar .dash-navbar > .dash-item.active > .dash-link { background: var(--tm-nav-active) !important; color: var(--tm-nav-active-text) !important; font-weight: 600; }
.tm-ui .dash-sidebar .dash-micon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0 !important; background: transparent !important; box-shadow: none; color: inherit; flex: none; }
.tm-ui .dash-sidebar .dash-micon :is(svg,i) { width: 18px; height: 18px; font-size: 18px; color: inherit; }
.tm-ui .dash-sidebar .dash-micon img { width: 18px; height: 18px; }
.tm-ui .dash-sidebar .dash-mtext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ui .dash-sidebar .dash-arrow { color: inherit; opacity: .7; display: inline-flex; margin: 0 !important; position: static !important; transition: transform .15s ease; }
.tm-ui .dash-sidebar .dash-arrow svg { width: 16px; height: 16px; }
.tm-ui .dash-sidebar .dash-trigger > .dash-link .dash-arrow { transform: rotate(90deg); }
.tm-ui .dash-sidebar .dash-submenu { background: transparent; padding: 2px 0 4px; margin: 0; list-style: none; }
.tm-ui .dash-sidebar .dash-submenu .dash-link { display: flex; align-items: center; min-height: 36px; padding: 0 12px 0 42px !important; color: var(--tm-nav-text) !important; font-size: 13px; border-radius: var(--tm-radius-nav); text-decoration: none; }
.tm-ui .dash-sidebar .dash-submenu :is(.dash-link,.dash-item)::before, .tm-ui .dash-sidebar .dash-submenu :is(.dash-link,.dash-item)::after { content: none !important; display: none !important; }
.tm-ui .dash-sidebar .dash-submenu .dash-link:hover { color: var(--tm-nav-strong) !important; background: var(--tm-nav-hover); }
/* DS-Layout: "Only one item is active. Its submenu stays open." On a sub-page the sub-item carries the pill; the parent stays open, plain. */
.tm-ui .dash-sidebar .dash-submenu .dash-item.active > .dash-link { background: var(--tm-nav-active) !important; color: var(--tm-nav-active-text) !important; font-weight: 600; }
.tm-ui .dash-sidebar .dash-navbar > .dash-item.active:has(.dash-submenu .dash-item.active) > .dash-link { background: transparent !important; color: var(--tm-nav-strong) !important; font-weight: 600; }
.tm-ui .dash-sidebar .dash-navbar > .dash-item.active:has(.dash-submenu .dash-item.active) > .dash-link:hover { background: var(--tm-nav-hover) !important; }
.tm-ui .dash-sidebar .tm-ext { margin-inline-start: auto; display: inline-flex; opacity: .6; }
/* Desktop timer window: legacy account block (its own markup). */
.tm-desktop .dash-sidebar .avatar { margin: 0 14px 18px !important; padding: 10px; border: 1px solid var(--tm-nav-line); border-radius: 12px; background: var(--tm-nav-raised); color: var(--tm-nav-strong) !important; }
.tm-desktop .dash-sidebar .avatar .header-avtar { width: 34px !important; height: 34px !important; object-fit: cover; }
.tm-desktop .dash-sidebar .avatar .theme-avtar { width: 34px; height: 34px; flex-shrink: 0; }
.tm-desktop .dash-sidebar #user-name-company-name { min-width: 0; flex: 1; }
.tm-desktop .dash-sidebar #user-name-company-name span { line-height: 1.5; font-size: 12px !important; color: var(--tm-nav-muted); }
.tm-desktop .dash-sidebar #user-name-company-name span:first-child { color: var(--tm-nav-strong); font-size: 14px !important; font-weight: 600 !important; }
.tm-desktop .dash-sidebar .avatar .dash-arrow { margin-left: auto !important; margin-inline-start: auto !important; flex-shrink: 0; color: var(--tm-nav-muted); }
.tm-desktop .dash-sidebar #avatar-options { list-style: none; margin: -8px 14px 14px; padding: 6px; border: 1px solid var(--tm-nav-line); border-radius: 14px; background: var(--tm-nav-raised); }
.tm-desktop .dash-sidebar #avatar-options .dash-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: var(--tm-nav-strong); font-size: 14px; border-radius: 10px; }
.tm-desktop .dash-sidebar #avatar-options .dash-link:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-desktop .dash-sidebar #avatar-options > .dash-item::before,
.tm-desktop .dash-sidebar #avatar-options > .dash-item::after,
.tm-desktop .dash-sidebar #avatar-options .dash-link::before,
.tm-desktop .dash-sidebar #avatar-options .dash-link::after { content: none !important; display: none !important; }
.tm-desktop .dash-sidebar #avatar-options .dash-link { position: relative; min-height: 44px; cursor: pointer; }
.tm-desktop .dash-sidebar #avatar-options .dash-link > .dash-micon { position: static !important; margin: 0; margin-inline-start: auto; width: 20px; flex-shrink: 0; pointer-events: none; }
.tm-desktop .dash-sidebar #avatar-options .dash-link svg { pointer-events: none; }
/* Web side menu */
.tm-ui:not(.tm-desktop) { --tm-nav-w: 248px; }
.tm-ui #tm-main-navigation { width: var(--tm-nav-w); border-radius: 0; margin: 0; transition: width .18s ease; }
@media (min-width: 768px) {
  .tm-ui #tm-main-navigation { top: 0; left: 0; bottom: 0; height: 100vh; }
  html[dir="rtl"] .tm-ui #tm-main-navigation { left: auto; right: 0; }
}
.tm-ui #tm-main-navigation .navbar-wrapper { display: flex !important; flex-direction: column; gap: 18px; height: 100vh; max-height: 100vh; width: 100%; padding: 20px 14px; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.tm-ui #tm-main-navigation .navbar-wrapper::-webkit-scrollbar { display: none; }
.tm-ui #tm-main-navigation .navbar-content { height: auto !important; position: relative; overflow: visible; padding: 0; flex: none; }
.tm-ui #tm-main-navigation .simplebar-track { display: none !important; }
.tm-ui #tm-main-navigation .simplebar-content-wrapper { overflow: visible !important; }
.tm-ui #tm-main-navigation svg:not(.tm-logo):not([viewBox="510 118 521 491"]) { fill: none; }
.tm-ui #tm-main-navigation .dash-link svg, .tm-ui #tm-main-navigation .dash-micon svg, .tm-ui #tm-main-navigation .tm-nav-link svg, .tm-ui #tm-main-navigation .tm-account-item svg { color: inherit !important; stroke: currentColor; }
.tm-ui #tm-main-navigation .dash-navbar { display: flex !important; }
.tm-ui #tm-main-navigation .dash-navbar { display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; list-style: none; }
.tm-ui #tm-main-navigation .dash-navbar > .dash-item { margin: 0; }
.tm-ui #tm-main-navigation .tm-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline-start: 8px; }
.tm-ui #tm-main-navigation .tm-nav-home { display: flex; align-items: center; text-decoration: none; color: var(--tm-nav-logo); }
.tm-ui #tm-main-navigation .tm-brand { padding: 0; margin: 0; }
.tm-ui #tm-main-navigation .tm-brand .tm-logo { height: 28px; }
.tm-ui #tm-main-navigation .tm-nav-symbol { display: none; color: var(--tm-nav-logo); }
.tm-ui #tm-main-navigation .tm-nav-symbol svg { display: block; height: 32px; width: auto; }
.tm-ui #tm-main-navigation :is(.tm-nav-collapse,.tm-account-button,.tm-theme-seg button,.tm-account-item,.tm-nav-link) { cursor: pointer; font: inherit; }
.tm-ui #tm-main-navigation .tm-nav-collapse { width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-nav-muted); display: flex; align-items: center; justify-content: center; }
.tm-ui #tm-main-navigation .tm-nav-collapse:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-ui #tm-main-navigation .tm-nav-company { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--tm-nav-line); background: var(--tm-nav-raised); color: var(--tm-nav-strong); }
.tm-ui #tm-main-navigation .tm-nav-company-icon { width: 34px; height: 34px; flex: none; border-radius: var(--tm-radius-control); background: var(--tm-nav-avatar); color: var(--tm-nav-text); display: flex; align-items: center; justify-content: center; }
.tm-ui #tm-main-navigation .tm-nav-company-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tm-ui #tm-main-navigation .tm-nav-company-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ui #tm-main-navigation .tm-nav-company-role { font-size: 12px; color: var(--tm-nav-muted); }
.tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption { margin: 16px 0 0; padding: 0 12px 6px; }
.tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption:first-child { margin-top: 0; }
.tm-ui #tm-main-navigation .tm-nav-caption label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-nav-muted); }
/* A group with no visible item shows no caption. */
.tm-ui #tm-main-navigation .tm-nav-caption:has(+ .tm-nav-caption), .tm-ui #tm-main-navigation .tm-nav-caption:last-child { display: none; }
.tm-ui #tm-main-navigation .tm-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme { display: flex; flex-direction: column; gap: 6px; }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme-label { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-nav-muted); }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--tm-nav-line); background: var(--tm-nav-raised); }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme-seg button { height: 48px; padding: 0 2px; border: 0; border-radius: 9px; background: transparent; color: var(--tm-nav-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-weight: 600; font-size: 11px; line-height: 1.2; }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme-seg button:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-ui :is(#tm-main-navigation,#menu_details) .tm-theme-seg button[aria-pressed="true"] { background: var(--tm-nav-active); color: var(--tm-nav-active-text); }
.tm-desktop #menu_details .tm-desktop-theme { margin: 14px 14px 18px; padding-top: 14px; border-top: 1px solid var(--tm-nav-line); }
.tm-desktop #menu_details .tm-theme-seg button { cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; }
.tm-desktop #menu_details .tm-theme-seg button:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 1px; }
.tm-ui #tm-main-navigation .tm-theme-toggle, .tm-ui #tm-main-navigation .tm-theme-pop-title { display: none; }
.tm-ui #tm-main-navigation .tm-theme-pop { display: contents; }
.tm-ui #tm-main-navigation .tm-swatch-current { background: var(--tm-nav); }
.tm-swatch { width: 16px; height: 16px; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--tm-swatch-ring); display: flex; align-items: center; justify-content: center; flex: none; }
.tm-swatch > span { width: 8px; height: 8px; border-radius: 999px; background: var(--tm-swatch-dot); }
.tm-swatch-evergreen { background: var(--tm-swatch-evergreen); }
.tm-swatch-midnight { background: var(--tm-swatch-midnight); }
.tm-swatch-daylight { background: var(--tm-swatch-daylight); }
.tm-ui #tm-main-navigation .tm-nav-account { border-top: 1px solid var(--tm-nav-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tm-ui #tm-main-navigation .tm-nav-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--tm-radius-nav); color: var(--tm-nav-text); text-decoration: none; font-weight: 500; font-size: 14px; }
.tm-ui #tm-main-navigation .tm-nav-link:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-ui #tm-main-navigation .tm-nav-link.active { background: var(--tm-nav-active); color: var(--tm-nav-active-text); font-weight: 600; }
.tm-ui #tm-main-navigation .tm-account { position: relative; }
.tm-ui #tm-main-navigation .tm-account-head { display: none; }
.tm-ui #tm-main-navigation .tm-account-button { width: 100%; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--tm-nav-strong); font-size: 14px; text-align: start; }
.tm-ui #tm-main-navigation .tm-account-button:hover, .tm-ui #tm-main-navigation .tm-account-button[aria-expanded="true"] { background: var(--tm-nav-hover); }
.tm-ui #tm-main-navigation .tm-account-avatar { width: 32px; height: 32px; flex: none; border-radius: 999px; overflow: hidden; background: var(--tm-accent-soft); display: flex; }
.tm-ui #tm-main-navigation .tm-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tm-ui #tm-main-navigation .tm-account-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tm-ui #tm-main-navigation .tm-account-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ui #tm-main-navigation .tm-account-email { font-size: 12px; color: var(--tm-nav-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui #tm-main-navigation .tm-account-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--tm-nav-muted); }
.tm-ui #tm-main-navigation .tm-account-role { flex: none; padding: 0 6px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 11px; font-weight: 600; line-height: 16px; }
.tm-ui #tm-main-navigation .tm-account-company { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui #tm-main-navigation .tm-account-chevron { color: var(--tm-nav-muted); flex: none; }
.tm-ui #tm-main-navigation .tm-account-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 20; padding: 6px; border-radius: 14px; background: var(--tm-nav-raised); border: 1px solid var(--tm-nav-line); box-shadow: var(--tm-shadow-pop); display: flex; flex-direction: column; gap: 2px; }
.tm-ui #tm-main-navigation .tm-account-menu[hidden] { display: none; }
.tm-ui #tm-main-navigation .tm-account-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--tm-nav-strong); text-decoration: none; font-weight: 500; font-size: 14px; }
.tm-ui #tm-main-navigation .tm-account-item:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-ui #tm-main-navigation .tm-account-logout, .tm-ui #tm-main-navigation .tm-account-logout:hover { color: var(--tm-nav-danger); }
.tm-ui #tm-main-navigation .tm-account-divider { height: 1px; margin: 4px 6px; background: var(--tm-nav-line); }
.tm-ui #tm-main-navigation :is(a,button):focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
/* Content offset follows the menu width (web, wide screens). */
@media (min-width: 768px) {
  .tm-ui:not(.tm-desktop) .dash-header { left: var(--tm-nav-w); }
  .tm-ui:not(.tm-desktop) .dash-container { margin-left: var(--tm-nav-w); margin-inline-start: var(--tm-nav-w); transition: margin .18s ease; }
  .tm-ui:not(.tm-desktop) .dash-footer { margin-left: var(--tm-nav-w); width: calc(100% - var(--tm-nav-w)); }
  html[dir="rtl"] .tm-ui:not(.tm-desktop) .dash-container { margin-left: 0; margin-right: var(--tm-nav-w); }
}
/* Rail: chosen on the device (collapse button) or automatic between 1025 and 1199 px. */
@media (min-width: 1200px) { html[data-tm-nav="rail"] .tm-ui:not(.tm-desktop) { --tm-nav-w: 96px; } }
@media (min-width: 768px) and (max-width: 1199px) { .tm-ui:not(.tm-desktop) { --tm-nav-w: 96px; } .tm-ui #tm-main-navigation .tm-nav-collapse { display: none; } }
@media (min-width: 1200px) {
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .navbar-wrapper { padding: 16px 8px; gap: 4px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-top { flex-direction: column; padding: 0; gap: 8px; margin-bottom: 6px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-navbar { gap: 4px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-home { padding: 4px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-home .tm-brand { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-symbol { display: block; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-collapse { width: 44px; height: 32px; transform: scaleX(-1); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-company { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption { margin: 6px 10px; padding: 0; height: 1px; background: var(--tm-nav-line); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption:first-child { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-caption label { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-navbar > .dash-item > .dash-link { flex-direction: column; gap: 4px; min-height: 0; padding: 8px 2px !important; border-radius: var(--tm-radius) !important; font-size: 12px !important; line-height: 1.2; text-align: center; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-navbar > .dash-item > .dash-link .dash-mtext { white-space: normal; flex: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-micon, html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-micon svg { width: 20px; height: 20px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-arrow, html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-ext { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-submenu .dash-link { padding: 0 4px !important; min-height: 32px; justify-content: center; font-size: 12px; text-align: center; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-foot { gap: 4px; padding-top: 8px; border-top: 1px solid var(--tm-nav-line); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-foot { position: relative; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme { position: static; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-label { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 2px; border: 0; border-radius: var(--tm-radius); background: transparent; color: var(--tm-nav-text); font: inherit; font-size: 12px; font-weight: 500; line-height: 1.2; cursor: pointer; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-toggle:hover, html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme.is-open .tm-theme-toggle { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-toggle .tm-swatch { width: 20px; height: 20px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-toggle .tm-swatch > span { width: 9px; height: 9px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-pop { display: none; position: fixed; left: calc(var(--tm-nav-w) + 16px); bottom: 16px; z-index: 30; width: 220px; box-sizing: border-box; padding: 6px; border-radius: 14px; background: var(--tm-nav-raised); border: 1px solid var(--tm-nav-line); box-shadow: var(--tm-shadow-pop); flex-direction: column; gap: 2px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme.is-open .tm-theme-pop { display: flex; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-pop-title { display: block; padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-nav-muted); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-seg { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-seg button { flex-direction: row; justify-content: flex-start; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-seg .tm-theme-name { display: inline; flex: 1; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme-seg .tm-swatch { width: 18px; height: 18px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-account { display: contents; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-account > .tm-nav-link { order: 1; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-theme { order: 2; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account { order: 3; position: static; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-head { display: flex; flex-direction: column; padding: 8px 10px 10px; color: var(--tm-nav-strong); }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-head-name { font-weight: 600; font-size: 13px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-head-email { font-size: 12px; color: var(--tm-nav-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-nav-link { flex-direction: column; height: auto; gap: 4px; padding: 8px 2px; border-radius: var(--tm-radius); font-size: 12px; line-height: 1.2; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-button { width: 52px; height: 52px; margin: 4px auto 0; padding: 0; justify-content: center; border-radius: 999px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-avatar { width: 36px; height: 36px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation :is(.tm-account-text,.tm-account-chevron) { display: none; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .tm-account-menu { position: fixed; left: calc(var(--tm-nav-w) + 16px); right: auto; bottom: 16px; width: 240px; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .navbar-wrapper { overflow-x: hidden; overflow-y: auto; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .tm-ui #tm-main-navigation .navbar-wrapper { padding: 16px 8px; gap: 4px; }
  .tm-ui #tm-main-navigation .tm-nav-top { flex-direction: column; padding: 0; gap: 8px; margin-bottom: 6px; }
  .tm-ui #tm-main-navigation .dash-navbar { gap: 4px; }
  .tm-ui #tm-main-navigation .tm-nav-home { padding: 4px; }
  .tm-ui #tm-main-navigation .tm-nav-home .tm-brand { display: none; }
  .tm-ui #tm-main-navigation .tm-nav-symbol { display: block; }
  .tm-ui #tm-main-navigation .tm-nav-collapse { width: 44px; height: 32px; transform: scaleX(-1); }
  .tm-ui #tm-main-navigation .tm-nav-company { display: none; }
  .tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption { margin: 6px 10px; padding: 0; height: 1px; background: var(--tm-nav-line); }
  .tm-ui #tm-main-navigation .dash-navbar > .dash-item.tm-nav-caption:first-child { display: none; }
  .tm-ui #tm-main-navigation .tm-nav-caption label { display: none; }
  .tm-ui #tm-main-navigation .dash-navbar > .dash-item > .dash-link { flex-direction: column; gap: 4px; min-height: 0; padding: 8px 2px !important; border-radius: var(--tm-radius) !important; font-size: 12px !important; line-height: 1.2; text-align: center; }
  .tm-ui #tm-main-navigation .dash-navbar > .dash-item > .dash-link .dash-mtext { white-space: normal; flex: none; }
  .tm-ui #tm-main-navigation .dash-micon, .tm-ui #tm-main-navigation .dash-micon svg { width: 20px; height: 20px; }
  .tm-ui #tm-main-navigation .dash-arrow, .tm-ui #tm-main-navigation .tm-ext { display: none; }
  .tm-ui #tm-main-navigation .dash-submenu .dash-link { padding: 0 4px !important; min-height: 32px; justify-content: center; font-size: 12px; text-align: center; }
  .tm-ui #tm-main-navigation .tm-nav-foot { gap: 4px; padding-top: 8px; border-top: 1px solid var(--tm-nav-line); }
  .tm-ui #tm-main-navigation .tm-nav-foot { position: relative; }
  .tm-ui #tm-main-navigation .tm-theme { position: static; }
  .tm-ui #tm-main-navigation .tm-theme-label { display: none; }
  .tm-ui #tm-main-navigation .tm-theme-toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 2px; border: 0; border-radius: var(--tm-radius); background: transparent; color: var(--tm-nav-text); font: inherit; font-size: 12px; font-weight: 500; line-height: 1.2; cursor: pointer; }
  .tm-ui #tm-main-navigation .tm-theme-toggle:hover, .tm-ui #tm-main-navigation .tm-theme.is-open .tm-theme-toggle { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
  .tm-ui #tm-main-navigation .tm-theme-toggle .tm-swatch { width: 20px; height: 20px; }
  .tm-ui #tm-main-navigation .tm-theme-toggle .tm-swatch > span { width: 9px; height: 9px; }
  .tm-ui #tm-main-navigation .tm-theme-pop { display: none; position: fixed; left: calc(var(--tm-nav-w) + 16px); bottom: 16px; z-index: 30; width: 220px; box-sizing: border-box; padding: 6px; border-radius: 14px; background: var(--tm-nav-raised); border: 1px solid var(--tm-nav-line); box-shadow: var(--tm-shadow-pop); flex-direction: column; gap: 2px; }
  .tm-ui #tm-main-navigation .tm-theme.is-open .tm-theme-pop { display: flex; }
  .tm-ui #tm-main-navigation .tm-theme-pop-title { display: block; padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-nav-muted); }
  .tm-ui #tm-main-navigation .tm-theme-seg { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: transparent; }
  .tm-ui #tm-main-navigation .tm-theme-seg button { flex-direction: row; justify-content: flex-start; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; }
  .tm-ui #tm-main-navigation .tm-theme-seg .tm-theme-name { display: inline; flex: 1; }
  .tm-ui #tm-main-navigation .tm-theme-seg .tm-swatch { width: 18px; height: 18px; }
  .tm-ui #tm-main-navigation .tm-nav-account { display: contents; }
  .tm-ui #tm-main-navigation .tm-nav-account > .tm-nav-link { order: 1; }
  .tm-ui #tm-main-navigation .tm-theme { order: 2; }
  .tm-ui #tm-main-navigation .tm-account { order: 3; position: static; }
  .tm-ui #tm-main-navigation .tm-account-head { display: flex; flex-direction: column; padding: 8px 10px 10px; color: var(--tm-nav-strong); }
  .tm-ui #tm-main-navigation .tm-account-head-name { font-weight: 600; font-size: 13px; }
  .tm-ui #tm-main-navigation .tm-account-head-email { font-size: 12px; color: var(--tm-nav-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tm-ui #tm-main-navigation .tm-nav-link { flex-direction: column; height: auto; gap: 4px; padding: 8px 2px; border-radius: var(--tm-radius); font-size: 12px; line-height: 1.2; }
  .tm-ui #tm-main-navigation .tm-account-button { width: 52px; height: 52px; margin: 4px auto 0; padding: 0; justify-content: center; border-radius: 999px; }
  .tm-ui #tm-main-navigation .tm-account-avatar { width: 36px; height: 36px; }
  .tm-ui #tm-main-navigation :is(.tm-account-text,.tm-account-chevron) { display: none; }
  .tm-ui #tm-main-navigation .tm-account-menu { position: fixed; left: calc(var(--tm-nav-w) + 16px); right: auto; bottom: 16px; width: 240px; }
  .tm-ui #tm-main-navigation .navbar-wrapper { overflow-x: hidden; overflow-y: auto; }
}

/* ==== 11. Web shell: header, page, content blocks ==== */
.tm-ui .dash-content { padding: 32px; min-width: 0; }
.tm-ui .page-header { margin-bottom: 24px; }
.tm-ui .page-header :is(h1,h2,h3,h4) { font-size: 28px; letter-spacing: -.02em; font-weight: 700; }
.tm-ui .breadcrumb { font-size: 13px; color: var(--tm-muted); }
.tm-ui .breadcrumb a { color: var(--tm-muted); }
.tm-ui .dash-header { background: var(--tm-surface); box-shadow: none; border-bottom: 1px solid var(--tm-line); color: var(--tm-ink); }
.tm-ui .dash-footer { border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; background: transparent; }
.tm-ui .dash-container .dash-footer { margin-inline-start: 0; }
.tm-ui .tm-admin-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 24px 0; }
.tm-ui .tm-admin-charts > div { width: 100%; max-width: none; padding: 0; min-width: 0; }
.tm-ui .tm-admin-summary { margin-top: 20px !important; }
.tm-ui .tm-admin-overview { padding-bottom: 8px !important; }
.tm-ui .tm-admin-charts > div > div { width: 100%; max-width: none; height: 100%; margin: 0 !important; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); box-shadow: none; }
.tm-ui .tm-admin-table { width: 100%; max-width: none; margin: 24px 0 !important; padding: 22px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-ui .tm-admin-table .dataTables_wrapper { overflow-x: auto; }
.tm-ui .tm-admin-table table.dataTable { box-sizing: border-box; }
.tm-ui .tm-admin-table :is(.dataTables_length,.dataTables_filter) { margin-bottom: 16px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-admin-table :is(.dataTables_filter input,.dataTables_length select) { padding: 8px 10px; color: var(--tm-ink); background: var(--tm-surface); border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); }
.tm-ui .tm-admin-table .dataTables_info { padding-top: 20px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-admin-table .dataTables_paginate { padding-top: 16px; }
.tm-ui table.dataTable thead th { background-image: none !important; }
.tm-ui .table-responsive { border-radius: var(--tm-radius); }
/* Tailwind's visibility utility shares Bootstrap's collapse class name. */
.tm-ui .accordion-collapse.collapse, .tm-ui .accordion-collapse.collapsing { visibility: visible; }
.tm-ui .accordion-item { background: var(--tm-surface); border-color: var(--tm-line); color: var(--tm-ink); }
.tm-ui .accordion-button { background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui .accordion-button:not(.collapsed) { background: var(--tm-accent-softer); color: var(--tm-ink); box-shadow: none; }
.tm-ui .accordion-button:focus { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .setting-accordion .accordion-header { margin: 0; }
.tm-ui .setting-accordion .accordion-button { font-size: 15px; font-weight: 600; gap: 16px; padding: 18px 20px; }
.tm-ui .setting-accordion .accordion-body { padding: 20px; }
.tm-ui #pre_avatar { display: block; width: 80px; height: 80px; object-fit: cover; }
.tm-ui #useradd-sidenav .list-group-item { background: var(--tm-surface); color: var(--tm-ink-2); border-color: var(--tm-line-soft); }
.tm-ui #useradd-sidenav .list-group-item.active, .tm-ui .choose-files { background: var(--tm-accent) !important; color: var(--tm-on-accent) !important; border-color: var(--tm-accent); }
.tm-ui .dataTable-wrapper :is(.dataTable-search input,.dataTable-selector) { border-radius: var(--tm-radius-control); border: 1px solid var(--tm-field); padding: 8px 12px; background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui .tm-mobile-bar, .tm-ui .tm-nav-backdrop { display: none; }
.tm-ui #dashboard-table { max-width: 100%; overflow-x: auto; border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-dashboard-activity { margin-top: 20px !important; }
.tm-ui .tm-filter-toolbar { gap: 12px; height: auto !important; align-items: center; flex-wrap: wrap; }
.tm-ui .tm-filter-toolbar > div { min-width: 0; }
.tm-ui .tm-filter-toolbar button { min-height: 40px; color: var(--tm-ink); background: var(--tm-surface); border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); }
.tm-ui :is(#cc-main,#cc_div) { font-family: inherit; }
.tm-ui .tm-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; background: transparent !important; }
.tm-ui .tm-metrics > div { width: auto; max-width: none; margin: 0 !important; padding: 20px !important; text-align: start !important; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); box-shadow: none; }
.tm-ui .tm-metrics .time-worked { min-height: 0; color: var(--tm-muted); font-size: 13px; font-weight: 600; }
.tm-ui .tm-metrics .time { color: var(--tm-ink); font-family: var(--tm-font-display); font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tm-ui .tm-metrics .date { margin-top: 6px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-report-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-inline: 0; }
.tm-ui .tm-report-charts > div { min-width: 0; width: 100%; max-width: none; padding: 20px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-ui .tm-report-charts > .col-2:empty { display: none; }
.tm-ui .tm-report-charts .highcharts-figure { min-width: 0; width: 100%; max-width: 100%; }

/* ==== 11b. Scrollbars: thin overlay style, invisible until the area is hovered (all themes, web + desktop). ==== */
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop)) { scrollbar-gutter: auto; }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop))::-webkit-scrollbar,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop))::-webkit-scrollbar-track,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar-track,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar-corner { background: transparent; }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop))::-webkit-scrollbar-thumb,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar-thumb { background-color: transparent; border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; min-height: 40px; }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop)):hover::-webkit-scrollbar-thumb,
:is(.tm-ui,.tm-auth,.tm-desktop) *:hover::-webkit-scrollbar-thumb { background-color: var(--tm-scrollbar); }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop))::-webkit-scrollbar-thumb:hover,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar-thumb:hover { background-color: var(--tm-faint); }
html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop))::-webkit-scrollbar-button,
:is(.tm-ui,.tm-auth,.tm-desktop) *::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop)), :is(.tm-ui,.tm-auth,.tm-desktop) * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  html:has(> body:is(.tm-ui,.tm-auth,.tm-desktop)):hover, :is(.tm-ui,.tm-auth,.tm-desktop) *:hover { scrollbar-color: var(--tm-scrollbar) transparent; }
}

/* ==== 11c. Overlays: log-out confirm, cookie banner (cookieconsent v3 variables), toasts. ==== */
.tm-confirm { position: fixed; inset: 0; z-index: 1090; background: var(--tm-overlay); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tm-confirm[hidden] { display: none; }
.tm-confirm-dialog { width: 100%; max-width: 420px; box-sizing: border-box; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); padding: 24px; display: flex; flex-direction: column; gap: 18px; color: var(--tm-ink); box-shadow: var(--tm-shadow-dialog); }
.tm-confirm-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tm-danger-soft); color: var(--tm-danger-ink); display: flex; align-items: center; justify-content: center; }
.tm-confirm-copy { display: flex; flex-direction: column; gap: 6px; }
.tm-confirm-copy h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--tm-ink); }
.tm-confirm-copy p { margin: 0; color: var(--tm-muted); line-height: 1.5; }
.tm-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tm-confirm-actions .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.tm-confirm-icon.is-warning { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-confirm-icon.is-info { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-confirm-js .tm-confirm-dialog { animation: tm-confirm-in .14s ease-out; }
@keyframes tm-confirm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-confirm-js .tm-confirm-dialog { animation: none; } }
body.tm-modal-open { overflow: hidden; }
/* Cookie consent (cookieconsent 2.8.9, loads after this file): its variables on body + selectors that outrank its reset. */
body:is(.tm-ui,.tm-auth) {
  --cc-bg: var(--tm-surface); --cc-text: var(--tm-ink); --cc-border-radius: var(--tm-radius-pop);
  --cc-btn-primary-bg: var(--tm-accent); --cc-btn-primary-text: var(--tm-on-accent); --cc-btn-primary-hover-bg: var(--tm-accent-hover);
  --cc-btn-secondary-bg: var(--tm-surface); --cc-btn-secondary-text: var(--tm-ink); --cc-btn-secondary-hover-bg: var(--tm-hover);
  --cc-btn-border-radius: var(--tm-radius-control); --cc-toggle-bg-off: var(--tm-field); --cc-toggle-bg-on: var(--tm-accent);
  --cc-toggle-bg-readonly: var(--tm-track); --cc-toggle-knob-bg: var(--tm-surface); --cc-toggle-knob-icon-color: var(--tm-surface);
  --cc-block-text: var(--tm-ink-2); --cc-cookie-category-block-bg: var(--tm-table-head); --cc-cookie-category-block-bg-hover: var(--tm-hover);
  --cc-section-border: var(--tm-line); --cc-cookie-table-border: var(--tm-line); --cc-overlay-bg: var(--tm-overlay);
  --cc-webkit-scrollbar-bg: var(--tm-scrollbar); --cc-webkit-scrollbar-bg-hover: var(--tm-faint);
}
body:is(.tm-ui,.tm-auth) #cc_div, body:is(.tm-ui,.tm-auth) #cc_div * { font-family: var(--tm-font); }
/* Consent card: compact, bottom end corner (toast position), 1 px line + pop shadow. */
body:is(.tm-ui,.tm-auth) #cc_div #cm { left: auto; right: 24px; bottom: 24px; top: auto; width: calc(100% - 48px); max-width: 400px; padding: 20px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); box-shadow: var(--tm-shadow-pop); background: var(--tm-surface); transform: none; }
html[dir="rtl"] body:is(.tm-ui,.tm-auth) #cc_div #cm { right: auto; left: 24px; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-inr { display: flex; flex-direction: column; gap: 16px; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-inr-i { width: 100%; padding: 0; vertical-align: top; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-ttl { font-family: var(--tm-font-display); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--tm-ink); margin: 0 0 6px; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-txt { font-size: 13px; line-height: 1.55; color: var(--tm-muted); }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-txt :is(a,.cc-link) { color: var(--tm-accent-ink); font-weight: 600; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-bns { display: flex; flex-direction: row-reverse; gap: 8px; width: 100%; margin: 0; padding: 0; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-bns .c-bn { flex: 1; min-width: 0; width: auto; min-height: 40px; margin: 0; padding: 0 14px; border-radius: var(--tm-radius-control); font-size: 13px; font-weight: 600; line-height: 38px; text-align: center; }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-p-bn { background: var(--tm-accent); color: var(--tm-on-accent); border: 1px solid var(--tm-accent); }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-p-bn:hover { background: var(--tm-accent-hover); border-color: var(--tm-accent-hover); }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-s-bn { background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-field); }
body:is(.tm-ui,.tm-auth) #cc_div #cm #c-s-bn:hover { background: var(--tm-hover); border-color: var(--tm-field-hover); }
body:is(.tm-ui,.tm-auth) #cc_div #cm .c-bn:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 2px; }
body:is(.tm-ui,.tm-auth) #cc_div #s-cnt #s-inr { border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); box-shadow: var(--tm-shadow-dialog); }
@media (max-width: 640px) {
  body:is(.tm-ui,.tm-auth) #cc_div #cm { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; }
}
/* Toast (DS-Overlays): ink pill, bottom end, pop shadow. Typed toasts keep their own colours. */
.tm-ui :is(#liveToast,.toast:not(.error):not(.success):not(.warning):not(.info):not([class*="toast-"])) { padding: 0; }
.tm-ui :is(#liveToast,.toast:not(.error):not(.success):not(.warning):not(.info):not([class*="toast-"])) .toast-body { padding: 12px 12px 12px 14px; font-size: 14px; }

/* Shared toast (NOTIFICATIONS 2026-11-30, public/assets/js/tm-toast.js): ink card, bottom end corner, at most 3 stacked,
   6 s with a thin timer line that stops while hovered/focused. Error tone = the same toast in red. Phones: bottom centre. */
.tm-toasts { position: fixed; z-index: 1100; inset-inline-end: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; font-family: var(--tm-font); }
.tm-toast { pointer-events: auto; position: relative; overflow: hidden; box-sizing: border-box; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 14px; background: var(--tm-toast); color: var(--tm-on-toast); border-radius: min(var(--tm-radius), 16px); box-shadow: var(--tm-shadow-dialog); font-size: 14px; line-height: 1.45; animation: tm-toast-in .18s ease-out; }
html[dir="rtl"] .tm-toast { padding: 12px 14px 12px 8px; }
.tm-toast::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .28; transform-origin: left center; animation: tm-toast-timer var(--tm-toast-ms, 6000ms) linear forwards; }
html[dir="rtl"] .tm-toast::after { transform-origin: right center; }
.tm-toast.is-paused::after { animation-play-state: paused; }
.tm-toast-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: -2px; border-radius: 8px; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--tm-accent); }
.tm-toast-error { background: var(--tm-danger); color: var(--tm-on-danger); }
.tm-toast-error .tm-toast-icon, .tm-toast-error .tm-toast-close { color: var(--tm-on-danger); }
.tm-toast-error .tm-toast-action { color: var(--tm-on-danger); }
.tm-toast-info .tm-toast-icon { color: var(--tm-on-toast); }
.tm-toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.tm-toast-title { font-weight: 700; font-size: 14px; }
.tm-toast-msg { opacity: .92; white-space: pre-line; }
.tm-toast-title + .tm-toast-msg { font-size: 13px; opacity: .8; }
.tm-toast-action { align-self: flex-start; margin-top: 4px; color: var(--tm-accent); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.tm-toast-action:hover { color: var(--tm-accent-hover); }
.tm-toast-close { flex: none; width: 40px; height: 40px; margin: -10px 0 -10px 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-on-toast); opacity: .7; font-size: 20px; line-height: 1; cursor: pointer; }
.tm-toast-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.tm-toast :is(.tm-toast-close,.tm-toast-action):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
@keyframes tm-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tm-toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .tm-toast { animation: none; } .tm-toast::after { display: none; } }
@media (max-width: 600px) {
  .tm-toasts { inset-inline: 8px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; align-items: stretch; }
}

/* Notifications "See all" page (NOTIFICATIONS 2026-11-30, resources/views/notifications/index.blade.php, visual spec §4):
   segmented All / Unread / Needs my action (ink when on), day headers, unread dot, inline request buttons, empty state. */
.tm-ui .tm-nf-card { display: flex; flex-direction: column; }
.tm-ui .tm-nf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-nf-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--tm-line); border-radius: calc(var(--tm-radius-control) + 3px); background: var(--tm-table-head); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tm-ui .tm-nf-seg::-webkit-scrollbar { display: none; }
.tm-ui .tm-nf-seg a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: var(--tm-radius-control); color: var(--tm-ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-nf-seg a:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-nf-seg a[aria-current="page"] { background: var(--tm-ink); color: var(--tm-surface); }
.tm-ui .tm-nf-seg a b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; line-height: 20px; text-align: center; }
.tm-ui .tm-nf-seg a[aria-current="page"] b { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .tm-nf-seg a:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-page-actions [data-tm-nf-read-all]:disabled { opacity: .5; cursor: not-allowed; }
.tm-ui .tm-nf-keep { margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-nf-day { margin: 0; padding: 14px 20px 6px; color: var(--tm-muted); font: 700 12px/1.3 var(--tm-font); letter-spacing: .04em; text-transform: uppercase; }
.tm-ui .tm-nf-day:not(:first-child) { border-top: 1px solid var(--tm-line-soft); margin-top: 4px; }
.tm-ui .tm-nf-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 20px; }
.tm-ui .tm-nf-item + .tm-nf-item { border-top: 1px solid var(--tm-line-soft); }
.tm-ui .tm-nf-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.tm-ui .tm-nf-item.is-unread .tm-nf-dot { background: var(--tm-accent); }
.tm-ui .tm-nf-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.tm-ui .tm-nf-title { color: var(--tm-ink-2); font-size: 14px; line-height: 1.45; text-decoration: none; }
.tm-ui .tm-nf-item.is-unread .tm-nf-title { color: var(--tm-ink); font-weight: 600; }
.tm-ui a.tm-nf-title:hover { color: var(--tm-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.tm-ui a.tm-nf-title:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); border-radius: 4px; }
.tm-ui .tm-nf-body { color: var(--tm-muted); font-size: 13px; line-height: 1.45; }
.tm-ui .tm-nf-meta { color: var(--tm-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-nf-state { display: inline-flex; margin-top: 4px; padding: 1px 10px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; font-weight: 600; line-height: 20px; }
.tm-ui .tm-nf-state.is-declined { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-nf-state.is-closed { background: var(--tm-table-head); color: var(--tm-muted); }
.tm-ui .tm-nf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tm-ui .tm-nf-actions :is(.tm-primary-btn,.tm-outline-btn) { height: 40px; padding: 0 16px; font-size: 14px; }
.tm-ui .tm-nf-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -10px -8px 0; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-muted); cursor: pointer; }
html[dir="rtl"] .tm-ui .tm-nf-mark { margin: -8px 0 -8px -10px; }
.tm-ui .tm-nf-mark:hover { background: var(--tm-hover); color: var(--tm-accent-ink); }
.tm-ui .tm-nf-mark:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-nf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 20px; color: var(--tm-muted); text-align: center; font-size: 14px; }
.tm-ui .tm-nf-empty[hidden], .tm-ui .tm-nf-more[hidden] { display: none; }
.tm-ui .tm-nf-empty strong { color: var(--tm-ink); font: 650 17px/1.3 var(--tm-font-display); }
.tm-ui .tm-nf-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-nf-more { display: flex; justify-content: center; padding: 14px 20px 18px; border-top: 1px solid var(--tm-line-soft); }
@media (max-width: 600px) {
  .tm-ui .tm-nf-head { padding: 12px 14px; }
  .tm-ui .tm-nf-seg { width: 100%; }
  .tm-ui .tm-nf-seg a { flex: 1 0 auto; justify-content: center; padding: 0 10px; font-size: 13px; }
  .tm-ui .tm-nf-keep { display: none; }
  .tm-ui .tm-nf-day { padding: 12px 14px 4px; }
  .tm-ui .tm-nf-item { padding: 12px 14px; gap: 10px; }
}

/* Bell, dropdown and sidebar badge (NOTIFICATIONS 2026-11-30, partials/notification-bell.blade.php + tm-notify.js, visual spec §1/§3).
   Bell = unread count (red); badge on a sidebar item = open requests waiting for this person (not the same number). */
.tm-ui .tm-bell { position: relative; display: none; place-items: center; flex: none; padding: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); cursor: pointer; box-shadow: none; }
.tm-ui .tm-bell::before { content: ""; position: absolute; inset: -5px; }   /* 42 px touch target around the 32 px chip */
.tm-ui .tm-bell:hover, .tm-ui .tm-bell[aria-expanded="true"] { border-color: var(--tm-field-hover); color: var(--tm-ink); }
.tm-ui .tm-bell:focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
.tm-ui .tm-head-tools > .tm-bell-head { display: inline-grid; width: 32px; height: 32px; }
.tm-ui .tm-bell-count { position: absolute; top: -7px; inset-inline-end: -8px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border: 2px solid var(--tm-canvas); border-radius: 999px; background: var(--tm-danger); color: var(--tm-on-danger); font: 700 10.5px/14px var(--tm-font); text-align: center; font-variant-numeric: tabular-nums; }
.tm-ui .tm-bell-count[hidden] { display: none; }
@media (max-width: 767px) {
  .tm-ui .tm-head-tools > .tm-bell-head { display: none; }
  .tm-ui:not(.tm-desktop) .tm-mobile-bar .tm-bell-bar { display: grid; width: 42px; height: 42px; border-color: var(--tm-field); background: transparent; color: var(--tm-ink); }
  .tm-ui .tm-mobile-bar .tm-bell-bar .tm-bell-count { border-color: var(--tm-surface); }
}
.tm-ui .tm-bell-pop { position: fixed; z-index: 1080; display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 96px)); box-sizing: border-box; background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); box-shadow: var(--tm-shadow-pop); overflow: hidden; font-family: var(--tm-font); }
.tm-ui .tm-bell-pop[hidden], .tm-ui .tm-bell-backdrop[hidden] { display: none; }
.tm-ui .tm-bell-pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--tm-line); }
html[dir="rtl"] .tm-ui .tm-bell-pop-head { padding: 10px 16px 10px 10px; }
.tm-ui .tm-bell-pop-head h2 { flex: 1; margin: 0; color: var(--tm-ink); font: 700 15px/1.3 var(--tm-font-display); }
.tm-ui .tm-bell-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--tm-line); border-radius: calc(var(--tm-radius-control) + 2px); background: var(--tm-table-head); }
.tm-ui .tm-bell-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-ink-2); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-bell-seg button[aria-pressed="true"] { background: var(--tm-ink); color: var(--tm-surface); }
.tm-ui .tm-bell-seg button b { font-weight: 700; }
.tm-ui .tm-bell-seg button b:empty { display: none; }
.tm-ui .tm-bell-seg button:focus-visible, .tm-ui .tm-bell-x:focus-visible, .tm-ui .tm-bell-foot :is(a,button):focus-visible, .tm-ui .tm-bell-act:focus-visible, .tm-ui a.tm-bell-title:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-bell-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-ui .tm-bell-x:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-bell-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tm-ui .tm-bell-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 12px 16px; }
.tm-ui .tm-bell-item + .tm-bell-item { border-top: 1px solid var(--tm-line-soft); }
.tm-ui .tm-bell-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.tm-ui .tm-bell-item.is-unread .tm-bell-dot { background: var(--tm-accent); }
.tm-ui .tm-bell-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.tm-ui .tm-bell-title { color: var(--tm-ink-2); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.tm-ui .tm-bell-item.is-unread .tm-bell-title { color: var(--tm-ink); font-weight: 600; }
.tm-ui a.tm-bell-title:hover { color: var(--tm-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.tm-ui .tm-bell-meta { color: var(--tm-muted); font-size: 12px; line-height: 1.4; }
.tm-ui .tm-bell-state { display: inline-flex; margin-top: 3px; padding: 0 9px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; font-weight: 600; line-height: 22px; }
.tm-ui .tm-bell-state.is-declined { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-bell-state.is-closed { background: var(--tm-table-head); color: var(--tm-muted); }
.tm-ui .tm-bell-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tm-ui .tm-bell-act { min-height: 40px; padding: 0 14px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-bell-act:hover { border-color: var(--tm-field-hover); background: var(--tm-hover); }
.tm-ui .tm-bell-act.is-main { border-color: var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .tm-bell-act.is-main:hover { border-color: var(--tm-accent-hover); background: var(--tm-accent-hover); }
.tm-ui .tm-bell-act:disabled { opacity: .55; cursor: progress; }
.tm-ui .tm-bell-loading { margin: 0; padding: 22px 16px; color: var(--tm-muted); font-size: 13px; text-align: center; }
.tm-ui .tm-bell-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-bell-empty[hidden] { display: none; }
.tm-ui .tm-bell-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-bell-empty strong { color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-bell-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--tm-line); }
.tm-ui .tm-bell-foot :is(a,button) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-accent-ink); font: 600 13px var(--tm-font); text-decoration: none; cursor: pointer; }
.tm-ui .tm-bell-foot :is(a,button):hover { background: var(--tm-hover); }
.tm-ui .tm-bell-foot button:disabled { color: var(--tm-faint); background: transparent; cursor: default; }
.tm-ui .tm-bell-backdrop { position: fixed; inset: 0; z-index: 1079; background: var(--tm-overlay); }
@media (max-width: 600px) {
  .tm-ui .tm-bell-pop.is-sheet { inset: auto 0 0 0 !important; width: auto !important; max-height: min(78vh, calc(100vh - 60px)); border-radius: var(--tm-radius-pop) var(--tm-radius-pop) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tm-ui .tm-bell-pop.is-sheet .tm-bell-pop-head { padding-top: 14px; }
}
/* Sidebar badge: open requests for this person in that area. */
.tm-ui .tm-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--tm-danger); color: var(--tm-on-danger); font: 700 11px/20px var(--tm-font); text-align: center; font-variant-numeric: tabular-nums; }
.tm-ui .tm-badge[hidden] { display: none; }
@media (min-width: 1200px) {
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-link:has(> .tm-badge) { position: relative; }
  html[data-tm-nav="rail"] .tm-ui #tm-main-navigation .dash-link > .tm-badge { position: absolute; top: 2px; inset-inline-end: 8px; margin: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .tm-ui #tm-main-navigation .dash-link:has(> .tm-badge) { position: relative; }
  .tm-ui #tm-main-navigation .dash-link > .tm-badge { position: absolute; top: 2px; inset-inline-end: 8px; margin: 0; }
}

/* Settings › Notifications (NOTIFICATIONS 2026-11-30, partials/report-notifications #tm-sec-notify): Update | In nTime | Email.
   Requests (action types) show a locked, always-on switch. Phones: each row stacks, switches labelled. */
.tm-ui .tm-np-table { border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; }
.tm-ui .tm-np-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 96px; align-items: center; gap: 12px; padding: 14px 16px; }
.tm-ui .tm-np-row + .tm-np-row { border-top: 1px solid var(--tm-line); }
.tm-ui .tm-np-headrow { padding-block: 10px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tm-ui .tm-np-headrow > span:not(:first-child), .tm-ui .tm-np-cell { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tm-ui .tm-np-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-ui .tm-np-what strong { color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-np-what span { color: var(--tm-muted); font-size: 12.5px; line-height: 1.45; }
.tm-ui .tm-np-lock { color: var(--tm-muted); font-size: 12px; font-style: normal; white-space: nowrap; }
@media (min-width: 601px) { .tm-ui .tm-np-cell:has(> .tm-np-lock) { flex-direction: column; gap: 3px; } .tm-ui .tm-np-lock { font-size: 11.5px; } }
.tm-ui .tm-np-cell .tm-switch { margin: 0; }
.tm-ui .tm-switch.is-locked { opacity: .6; }
.tm-ui .tm-switch.is-locked input { cursor: not-allowed; }
.tm-ui .tm-np.is-busy .tm-settings-state { opacity: .6; }
@media (max-width: 600px) {
  .tm-ui .tm-np-headrow { display: none; }
  .tm-ui .tm-np-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .tm-ui .tm-np-what { grid-column: 1 / -1; }
  .tm-ui .tm-np-cell { justify-content: flex-start; }
  .tm-ui .tm-np-cell { flex-wrap: wrap; }
  .tm-ui .tm-np-cell::before { content: attr(data-label); color: var(--tm-ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
}

/* ==== 12. Sign-in pages ==== */
.tm-auth .auth-wrapper { background: var(--tm-auth-canvas); }
.tm-auth .bg-auth-side { background: var(--tm-hero) !important; background-image: radial-gradient(ellipse at 28% 25%, var(--tm-hero-3) 0, transparent 62%) !important; }
.tm-auth .bg-auth-side::before { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid var(--tm-hero-line); border-radius: 50%; top: calc(50% - 130px); left: calc(50% - 130px); box-shadow: 0 0 0 40px var(--tm-hero-2), 0 0 0 85px var(--tm-hero-3); opacity: .55; }
.tm-auth .bg-auth-side::after { content: ""; position: absolute; width: 82px; height: 82px; border-left: 5px solid var(--tm-hero-accent); border-bottom: 5px solid var(--tm-hero-accent); border-radius: 3px; top: calc(50% - 79px); left: calc(50% - 4px); }
.tm-auth .auth-content { padding: 32px !important; background: var(--tm-auth-canvas); }
.tm-auth .auth-content > .card { border: 0; box-shadow: none; background: transparent; }
.tm-auth .auth-content .card-body { max-width: 430px; margin: auto; padding: 24px; }
.tm-auth .auth-content .row > [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; }
.tm-auth .tm-brand { margin-bottom: 28px; color: var(--tm-logo-ink); }
.tm-auth .tm-brand .tm-logo { height: 34px; }
.tm-auth .auth-content h2 { font-size: 28px; margin-bottom: 12px; }
.tm-auth .auth-content :is(.form-control,.form-select) { min-height: 48px; }
.tm-auth .auth-content .btn-primary { min-height: 48px; }
.tm-auth .auth-footer { color: var(--tm-muted); font-size: 12px; }
.tm-auth .auth-content a:not(.btn) { color: var(--tm-accent-ink); font-weight: 600; }
.tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100vh; padding: 0; align-items: stretch; }
.tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 .bg-auth-side { position: relative; inset: auto; width: auto; min-height: 100%; border-radius: 0; overflow: hidden; }
.tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 .auth-content { position: relative; inset: auto; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: none; margin: 0; padding: 48px 32px !important; }
.tm-auth:not(.tm-desktop) .auth-content > .card { width: 100%; max-width: 460px; margin: auto; }
.tm-auth:not(.tm-desktop) .auth-content .card-body { width: 100%; max-width: 430px; }
.tm-auth:not(.tm-desktop) .auth-content .auth-footer { position: static; inset: auto; width: 100%; padding: 28px 0 0; text-align: center; }
.tm-auth:not(.tm-desktop) .auth-footer .col-6 { width: 100%; }
.tm-auth:not(.tm-desktop) #main-div > div { margin-top: 0 !important; }
.tm-auth:not(.tm-desktop) #main-div .navbar-brand { display: none; }

/* ==== 13. Responsive (web) ==== */
@media (max-width: 1024px) {
  .tm-ui .dash-content { padding: 24px; }
  .tm-ui .page-header :is(h1,h2,h3,h4) { font-size: 24px; }
  .tm-ui .tm-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* Phone (< 768 px): top bar + off-canvas menu. 768-1199 px uses the rail (DS-Layout). */
@media (max-width: 767px) {
  .tm-ui:not(.tm-desktop) .tm-mobile-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 1045; height: 60px; padding: 0 16px; background: var(--tm-surface); color: var(--tm-ink); border-bottom: 1px solid var(--tm-line); font-size: 16px; font-weight: 700; }
  .tm-ui #tm-nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--tm-ink); background: transparent; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); cursor: pointer; }
  .tm-ui.tm-nav-open { overflow: hidden; }
  .tm-ui.tm-nav-open .dash-sidebar { inset-inline-start: 0 !important; top: 60px !important; transform: none !important; z-index: 1040; height: calc(100vh - 60px); }
  .tm-ui.tm-nav-open .dash-sidebar .navbar-wrapper { max-height: calc(100vh - 60px) !important; }
  .tm-ui #tm-main-navigation .navbar-wrapper { height: calc(100vh - 60px); }
  .tm-ui #tm-main-navigation .tm-nav-top { display: none; }
  .tm-ui .tm-mobile-bar .tm-brand .tm-logo { height: 24px; }
  .tm-ui.tm-nav-open .tm-nav-backdrop { display: block; position: fixed; inset: 60px 0 0; z-index: 1035; background: var(--tm-overlay); border: 0; width: 100%; }
  .tm-ui:not(.tm-desktop) .dash-container { margin-top: 0 !important; }
  .tm-ui:not(.tm-desktop) .dash-footer { margin-inline-start: 0; }
}
@media (max-width: 767px) {
  .tm-ui .dash-content { padding: 16px; }
  .tm-ui .card-body { padding: 18px; }
  .tm-ui .tm-metrics { grid-template-columns: minmax(0,1fr); }
  .tm-ui .dash-content .row { min-width: 0; }
  .tm-ui .dash-content .col { min-width: 0; }
  .tm-ui .table-responsive { overflow-x: auto; }
  .tm-ui .tm-filter-toolbar { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .tm-ui .tm-filter-toolbar > div { width: 100%; max-width: 100%; }
  .tm-ui .tm-filter-toolbar button { max-width: 100%; width: 100%; }
  .tm-ui .tm-filter-toolbar #date-pickers { min-height: 40px; justify-content: space-between; }
  .tm-ui .tm-member-header { gap: 16px; margin-bottom: 18px; }
  .tm-ui .tm-member-header > div { width: 100%; }
  .tm-ui .tm-member-header > div > .row { gap: 8px; }
  .tm-ui .tm-member-header > div > .row > div { width: auto; flex: 1 1 auto; }
  .tm-ui .tm-member-header .col-8 { width: 100% !important; flex: 0 0 100% !important; text-align: start; }
  .tm-ui .tm-member-header .text-right { text-align: start !important; }
  .tm-ui .tm-report-charts { grid-template-columns: minmax(0,1fr); }
  .tm-ui .tm-admin-charts { grid-template-columns: minmax(0,1fr); }
  .tm-ui .tm-admin-table { padding: 16px; }
  .tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 { display: flex; flex-direction: column; }
  .tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 .bg-auth-side { display: none; }
  .tm-auth:not(.tm-desktop) .auth-wrapper.auth-v3 .auth-content { min-height: 100vh; padding: 24px 16px !important; }
  .tm-auth .auth-content { padding: 20px 12px !important; }
  .tm-auth .auth-content .card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.tm-ui,.tm-auth,.tm-desktop) :is(.btn,.form-control,.dash-link) { transition: none !important; }
}

/* ==== 13b. Web dashboard (Final UI P-Dashboard): page icon header, filter row, summary cards, Team activity, captures. ==== */
.tm-ui .page-header:has(.tm-page-icon) .row { flex-wrap: nowrap; align-items: center; gap: 14px; margin: 0; }
.tm-ui .page-header:has(.tm-page-icon) .row > * { width: auto; padding: 0; }
.tm-ui .page-header:has(.tm-page-icon) .row > .col { display: none; }
.tm-ui .tm-page-icon { width: 48px; height: 48px; flex: none; border-radius: var(--tm-radius); background: var(--tm-accent-soft); color: var(--tm-accent-ink); display: flex; align-items: center; justify-content: center; }
.tm-ui .page-header:has(.tm-page-icon) .col-auto:not(.tm-page-icon-col) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-ui .page-header:has(.tm-page-icon) .page-header-title :is(h1,h2,h3,h4) { margin: 0; font-size: 26px; line-height: 1.2; }
.tm-ui .page-header:has(.tm-page-icon) .breadcrumb { order: -1; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; background: none; font-size: 13px; }
.tm-ui .page-header:has(.tm-page-icon) .breadcrumb-item { padding: 0; color: var(--tm-muted); }
.tm-ui .page-header:has(.tm-page-icon) .breadcrumb-item a { color: var(--tm-accent-ink); font-weight: 500; text-decoration: none; }
.tm-ui .page-header:has(.tm-page-icon) .breadcrumb-item + .breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.tm-ui .page-header:has(.tm-page-icon) .breadcrumb-item + .breadcrumb-item::before { content: ""; float: none; width: 12px; height: 12px; padding: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-ui .tm-dashboard { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* Filter row: range switch, date stepper, members, time zone (shared includes; their inline colours are overridden here only). */
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filters { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 !important; height: auto !important; }
.tm-ui .tm-dashboard #date-type-container { gap: 2px; padding: 4px; border-radius: 12px; }
.tm-ui .tm-dashboard #date-type-container .date-type { display: flex; align-items: center; height: 36px; min-height: 36px; padding: 0 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.tm-ui .tm-dashboard #date-type-container .date-type.clicked-date-type { font-weight: 600; }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter { position: relative; }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; padding: 0 12px !important; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control) !important; background: var(--tm-surface) !important; color: var(--tm-ink) !important; font: 500 14px var(--tm-font); white-space: nowrap; }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button:hover { border-color: var(--tm-field-hover); }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--tm-muted); -webkit-mask: var(--tm-dash-filter-icon) center / contain no-repeat; }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button > svg { width: 10px; height: 10px; margin: 0 0 0 2px; color: var(--tm-muted); }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-members { --tm-dash-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E"); }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-zone { --tm-dash-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E"); }
/* Summary cards */
.tm-ui .tm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tm-ui .tm-kpi { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); min-width: 0; }
.tm-ui .tm-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--tm-muted); font-weight: 500; }
.tm-ui .tm-kpi-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.tm-ui .tm-kpi-value b { color: var(--tm-ink); font: 700 30px/1.2 var(--tm-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-ui .tm-kpi-value small { color: var(--tm-muted); font-size: 15px; font-weight: 600; }
.tm-ui .tm-kpi-note { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-flag { align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 12px; font-weight: 600; }
.tm-ui .tm-tile { width: 36px; height: 36px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; }
.tm-ui :is(.tm-tile,.tm-avatar).tm-tile-accent, .tm-ui .tm-tint-accent { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui :is(.tm-tile,.tm-avatar).tm-tile-info, .tm-ui .tm-tint-info { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-tile-purple, .tm-ui .tm-tint-purple { background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); }
.tm-ui .tm-tint-pink { background: var(--tm-tint-pink); color: var(--tm-tint-pink-ink); }
.tm-ui .tm-tint-teal { background: var(--tm-tint-teal); color: var(--tm-tint-teal-ink); }
.tm-ui .tm-tile-warning, .tm-ui .tm-tint-warning { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
/* Cards with a head row (Team activity, captures, low-activity days) */
.tm-ui :is(.tm-activity,.tm-dash-card) { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); min-width: 0; }
.tm-ui .tm-activity { overflow: hidden; }
.tm-ui .tm-dash-card { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; margin: 0 !important; }
.tm-ui .tm-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tm-ui .tm-activity > .tm-card-head { padding: 18px 20px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-card-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tm-ui .tm-card-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-card-head-text h2 { margin: 0; color: var(--tm-ink); font: 650 17px/1.3 var(--tm-font-display); letter-spacing: -.01em; }
.tm-ui .tm-card-head-side { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.tm-ui .tm-outline-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-outline-btn:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-text-link:hover { text-decoration: underline; color: var(--tm-accent-ink); }
.tm-ui :is(.tm-outline-btn,.tm-text-link):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); border-radius: var(--tm-radius-control); }
.tm-ui .tm-activity-legend { display: inline-flex; gap: 14px; color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-activity-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-activity-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-swatch-tracked { background: var(--tm-accent); }
.tm-ui .tm-swatch-manual { background: var(--tm-edited-fill); }
.tm-ui .tm-activity-scroll { overflow-x: auto; }
.tm-ui .tm-activity-table { width: 100%; min-width: 680px; margin: 0; border-collapse: collapse; border: 0; color: var(--tm-ink); }
.tm-ui .tm-activity-table :is(th,td) { padding: 14px 20px; border: 0; text-align: start; vertical-align: middle; background: transparent; }
.tm-ui .tm-activity-table thead th { padding: 12px 20px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tm-ui .tm-activity-table tbody tr { border-top: 1px solid var(--tm-line-soft); }
.tm-ui .tm-activity-table tbody tr:hover td { background: var(--tm-hover); }
.tm-ui .tm-activity-table .tm-activity-time { width: 130px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-activity-table thead .tm-activity-time { font-weight: 600; }
.tm-ui .tm-activity-table .tm-activity-bars-col { width: 48%; }
.tm-ui .tm-activity-axis { display: flex; gap: 4px; }
.tm-ui .tm-activity-axis > span { flex: 1; text-align: center; }
.tm-ui .tm-activity-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.tm-ui .tm-activity-bar { flex: 1; display: flex; flex-direction: column; min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--tm-accent); overflow: hidden; }
.tm-ui .tm-activity-bar.is-empty { height: 3px !important; background: var(--tm-bar-track); }
.tm-ui .tm-activity-bar .tm-activity-manual { flex: none; background: var(--tm-edited-fill); }
.tm-ui .tm-activity-track { display: flex; height: 16px; border-radius: 8px; background: var(--tm-bar-track); overflow: hidden; }
.tm-ui .tm-activity-fill { background: var(--tm-accent); }
.tm-ui .tm-activity-track .tm-activity-manual { background: var(--tm-edited-fill); }
.tm-ui .tm-activity-empty td { padding: 36px 20px !important; text-align: center !important; color: var(--tm-muted); }
.tm-ui .tm-person { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
.tm-ui .tm-avatar { width: 38px; height: 38px; flex: none; border-radius: 999px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.tm-ui .tm-avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.tm-ui .tm-person-text { display: flex; flex-direction: column; min-width: 0; }
.tm-ui .tm-person-name { color: var(--tm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-person-sub { max-width: 320px; color: var(--tm-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Recent captures + low-activity days */
.tm-ui .tm-captures { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tm-ui .tm-capture { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 8px 8px 12px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); min-width: 0; }
.tm-ui .tm-capture .tm-person { padding: 0 4px; gap: 10px; }
.tm-ui .tm-capture-shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tm-hover); }
.tm-ui .tm-capture-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; cursor: zoom-in; }
.tm-ui .tm-capture-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 12px; font-weight: 600; pointer-events: none; }
.tm-ui #imageModal { z-index: 1090 !important; }
.tm-ui #imageModal .tm-shot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--tm-on-toast) 22%, transparent); border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--tm-shadow-pop); }
.tm-ui #imageModal .tm-shot-nav[hidden], .tm-ui #imageModal .tm-shot-counter[hidden] { display: none; }
.tm-ui #imageModal .tm-shot-nav:hover { background: var(--tm-hero-3); }
.tm-ui #imageModal .tm-shot-nav:focus-visible { outline: 2px solid var(--tm-on-toast); outline-offset: 2px; }
.tm-ui #imageModal .tm-shot-prev { left: 20px; }
.tm-ui #imageModal .tm-shot-next { right: 20px; }
.tm-ui #imageModal .tm-shot-counter { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--tm-on-toast) 22%, transparent); border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tm-ui .tm-low-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-low-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); min-width: 0; }
.tm-ui .tm-low-time { flex: none; color: var(--tm-warning-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-dash-empty { margin: 0; color: var(--tm-muted); }
@media (max-width: 767px) {
  .tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filters { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .tm-ui .tm-dashboard #date-type-container { display: flex; }
  .tm-ui .tm-dashboard #date-type-container .date-type { flex: 1; justify-content: center; padding: 0 8px; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) #date-pickers { justify-content: space-between; min-width: 0; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) #date-pickers > div { flex: 1 1 auto; min-width: 0; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) #date-pickers [data-toggle] { min-width: 0; justify-content: center; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) #date-pickers [data-toggle] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button { width: 100%; justify-content: flex-start; }
  .tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-filter > button > span { flex: 1; text-align: start; overflow: hidden; text-overflow: ellipsis; }
  .tm-ui .tm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tm-ui .tm-kpi { padding: 14px; }
  .tm-ui .tm-kpi-value b { font-size: 24px; }
  .tm-ui .page-header:has(.tm-page-icon) .page-header-title :is(h1,h2,h3,h4) { font-size: 22px; }
  .tm-ui .tm-page-icon { width: 40px; height: 40px; }
}
@media (max-width: 340px) { .tm-ui .tm-kpis { grid-template-columns: minmax(0, 1fr); } }

/* ==== 13c. Web workspace home (Final UI P-Home): greeting, function cards, desktop app banner. ==== */
.tm-ui .dash-content:has(> .tm-home) > .page-header { display: none; }
.tm-ui .tm-home { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding-top: 8px; }
.tm-ui .tm-home-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-ui .tm-home-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--tm-accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tm-ui .tm-home-head h1 { margin: 0; color: var(--tm-ink); font: 700 30px/1.2 var(--tm-font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.tm-ui .tm-home-head p { margin: 0; color: var(--tm-ink-2); font-size: 15px; }
.tm-ui .tm-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tm-ui .tm-home-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 20px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); color: var(--tm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tm-ui .tm-home-card:hover { border-color: var(--tm-accent-line); box-shadow: var(--tm-shadow); color: var(--tm-ink); }
.tm-ui .tm-home-card:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 2px; }
.tm-ui .tm-home-card-icon { width: 48px; height: 48px; margin-bottom: 18px; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; }
.tm-ui .tm-home-card-go { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 999px; background: var(--tm-hover); color: var(--tm-ink-2); display: flex; align-items: center; justify-content: center; }
.tm-ui .tm-home-card:hover .tm-home-card-go { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-home-card-title { font: 650 17px/1.3 var(--tm-font-display); }
.tm-ui .tm-home-card-text { color: var(--tm-ink-2); font-size: 14px; line-height: 1.5; }
.tm-ui .tm-tint-rose { background: var(--tm-tint-rose); color: var(--tm-tint-rose-ink); }
.tm-ui .tm-tint-neutral { background: var(--tm-hover); color: var(--tm-ink-2); }
.tm-ui .tm-home-desktop { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--tm-radius); background: var(--tm-hero); color: var(--tm-hero-soft); }
.tm-ui .tm-home-desktop-icon { width: 56px; height: 56px; flex: none; border-radius: var(--tm-radius-control); background: var(--tm-hero-3); color: var(--tm-hero-accent); display: flex; align-items: center; justify-content: center; }
.tm-ui .tm-home-desktop-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 14px; }
.tm-ui .tm-home-desktop-text h2 { margin: 0; color: var(--tm-hero-text); font: 650 17px/1.3 var(--tm-font-display); }
.tm-ui .tm-home-desktop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-ui .tm-home-desktop-chips > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--tm-hero-3); color: var(--tm-hero-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) {
  .tm-ui .tm-home { gap: 22px; }
  .tm-ui .tm-home-head h1 { font-size: 24px; }
  .tm-ui .tm-home-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
  .tm-ui .tm-home-card { padding: 16px; }
  .tm-ui .tm-home-card-go { top: 16px; right: 16px; }
  .tm-ui .tm-home-card-icon { margin-bottom: 12px; }
  .tm-ui .tm-home-desktop { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .tm-ui .tm-home-desktop-text { flex-basis: calc(100% - 70px); }
}

/* ==== 13d. Web timesheet (Final UI P-Timesheet): page actions, summary row, member x day table. ==== */
.tm-ui .tm-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tm-ui .page-header:has(.tm-page-icon) .row > .col:has(.tm-page-actions) { display: block; flex: 1; }
.tm-ui button.tm-outline-btn { font: 600 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-outline-btn:hover { border-color: var(--tm-field-hover); background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-sheet-wrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tm-ui .tm-sheet-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tm-ui .tm-sheet-kpi { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-ui .tm-sheet-kpi .tm-tile { width: 40px; height: 40px; }
.tm-ui .tm-sheet-kpi-text { display: flex; flex-direction: column; min-width: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-sheet-kpi-text b { color: var(--tm-ink); font: 700 24px/1.25 var(--tm-font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tm-ui .tm-sheet { position: relative; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); overflow: hidden; min-width: 0; }
.tm-ui .tm-sheet-legend { display: flex; justify-content: flex-end; gap: 14px; margin: 0; padding: 12px 20px 0; color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-sheet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-sheet-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-sheet-scroll { overflow-x: auto; }
.tm-ui .tm-sheet-table { width: 100%; min-width: max-content; border-collapse: collapse; color: var(--tm-ink); font-variant-numeric: tabular-nums; }
.tm-ui .tm-sheet-table :is(th,td) { padding: 12px 10px; border-bottom: 1px solid var(--tm-line-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
.tm-ui .tm-sheet-table thead th { padding-top: 14px; padding-bottom: 14px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tm-ui .tm-sheet-table thead .tm-sheet-day { line-height: 1.25; }
.tm-ui .tm-sheet-table thead .tm-sheet-day span { display: block; color: var(--tm-ink-2); }
.tm-ui .tm-sheet-table thead .tm-sheet-day small { display: block; color: var(--tm-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tm-ui .tm-sheet-table thead .tm-sheet-day.is-today :is(span,small) { color: var(--tm-accent-ink); }
.tm-ui .tm-sheet-table .tm-sheet-member { width: 240px; min-width: 240px; max-width: 240px; padding-left: 20px; font-weight: 600; position: sticky; left: 0; z-index: 1; background: var(--tm-surface); white-space: normal; }
.tm-ui .tm-sheet-table :is(thead,tfoot) .tm-sheet-member { background: var(--tm-table-head); }
.tm-ui .tm-sheet-table .tm-sheet-member .tm-person-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-sheet-table tbody .tm-sheet-member { font-weight: 400; }
.tm-ui .tm-sheet-table .tm-sheet-total { min-width: 92px; font-weight: 700; }
.tm-ui .tm-sheet-table thead .tm-sheet-total { font-weight: 600; }
.tm-ui .tm-sheet-table td.tm-sheet-day { min-width: 84px; padding-left: 6px; padding-right: 6px; }
.tm-ui .tm-sheet-table tr > :last-child { padding-right: 20px; }
.tm-ui .tm-sheet-cell { display: flex; flex-direction: column; gap: 7px; padding: 4px; margin: -4px; border-radius: 8px; color: inherit; text-decoration: none; }
.tm-ui a.tm-sheet-cell:hover { background: var(--tm-hover); color: inherit; }
.tm-ui a.tm-sheet-cell:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 1px; }
.tm-ui .tm-sheet-bar { display: flex; height: 5px; border-radius: 999px; background: var(--tm-bar-track); overflow: hidden; }
.tm-ui .tm-sheet-fill { height: 100%; background: var(--tm-accent); }
.tm-ui .tm-sheet-fill.tm-sheet-manual { background: var(--tm-edited-fill); }
.tm-ui .tm-sheet-time { font-size: 14px; font-weight: 600; }
.tm-ui .tm-sheet-day.is-empty .tm-sheet-time { color: var(--tm-faint); font-weight: 500; }
.tm-ui .tm-sheet-table tfoot :is(th,td) { border-bottom: 0; background: var(--tm-table-head); font-weight: 700; }
.tm-ui .tm-sheet-table tfoot td.tm-sheet-day { padding-left: 10px; }
.tm-ui .tm-sheet-table .tm-sheet-none { color: var(--tm-faint); font-weight: 500; }
.tm-ui .tm-sheet-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-sheet-empty { display: flex; align-items: center; gap: 14px; padding: 22px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); color: var(--tm-muted); }
.tm-ui .tm-sheet-empty b { display: block; color: var(--tm-ink); font-weight: 600; }
@media (max-width: 767px) {
  .tm-ui .tm-page-actions { justify-content: flex-start; }
  .tm-ui .page-header:has(.tm-page-actions) .row { flex-wrap: wrap !important; }
  .tm-ui .page-header:has(.tm-page-actions) .row > .col:has(.tm-page-actions) { flex-basis: 100%; }
  .tm-ui .tm-sheet-kpis { grid-template-columns: 1fr; gap: 10px; }
  .tm-ui .tm-sheet-table .tm-sheet-member { width: 132px; min-width: 132px; max-width: 132px; padding-left: 14px; }
  .tm-ui .tm-sheet-table .tm-sheet-member .tm-person { gap: 8px; }
}
@media print {
  .tm-ui .tm-page-actions, .tm-ui .tm-sheet-hint, .tm-ui .tm-dash-filters { display: none !important; }
  .tm-ui .tm-sheet-scroll { overflow: visible; }
}

/* ==== 13e. Web edit time (Final UI P-Edit-Time): person/day/zone row, summary, day timeline, sessions table, form. ==== */
.tm-ui .tm-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent); font: 600 15px var(--tm-font); white-space: nowrap; cursor: pointer; }
.tm-ui .tm-primary-btn:hover { background: var(--tm-accent-hover); }
.tm-ui .tm-primary-btn:focus-visible, .tm-ui .tm-et :is(button,select,input,textarea):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-primary-btn:disabled { opacity: .6; cursor: default; }
.tm-ui .tm-et { display: flex; flex-direction: column; gap: 20px; min-width: 0; color: var(--tm-ink); }
.tm-ui .tm-et-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-ui .tm-et-field, .tm-ui .tm-et-zone { box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-weight: 500; }
.tm-ui .tm-et-field > svg, .tm-ui .tm-et-zone > svg, .tm-ui .tm-et-date > svg { flex: none; color: var(--tm-muted); }
.tm-ui .tm-et-person { padding-right: 0; }
.tm-ui .tm-et-person select { height: 42px; min-width: 150px; max-width: 260px; padding: 0 34px 0 0; border: 0; -webkit-appearance: none; appearance: none; background: transparent var(--tm-select-chevron) right 10px center / 16px no-repeat; color: var(--tm-ink); font: 600 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-et-person select:focus-visible { box-shadow: none; }
.tm-ui .tm-et-person:focus-within { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-et-zone { color: var(--tm-ink-2); }
.tm-ui .tm-et-toolbar label { margin: 0; }
.tm-ui .tm-et-day { box-sizing: border-box; display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-et-day > button { width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--tm-ink-2); cursor: pointer; }
.tm-ui .tm-et-day > button:hover:not(:disabled) { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-et-day > button:disabled { color: var(--tm-faint); cursor: default; }
.tm-ui .tm-et-date { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tm-ui .tm-et-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; }
.tm-ui .tm-et-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tm-ui .tm-et-date:focus-within { box-shadow: inset 0 0 0 2px var(--tm-accent-ring); border-radius: 8px; }
.tm-ui .tm-et-status:not(.is-shown) { display: none; }
.tm-ui .tm-et-status.is-shown { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--tm-accent-line); border-radius: var(--tm-radius-control); background: var(--tm-accent-softer); color: var(--tm-accent-ink); font-weight: 500; }
.tm-ui .tm-et-status.is-shown.error { border-color: var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-et-card { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); overflow: hidden; min-width: 0; }
.tm-ui .tm-et-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 18px 20px 12px; }
.tm-ui .tm-et-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--tm-ink); font: 650 17px/1.3 var(--tm-font-display); }
.tm-ui .tm-et-card-head h2 svg { color: var(--tm-muted); }
.tm-ui .tm-et-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tm-ink-2); font-size: 12px; }
.tm-ui .tm-et-legend > span { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; }
.tm-ui .tm-et-legend > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-et-legend i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.tm-ui .tm-et-legend i[class] { background: currentColor; }
.tm-ui .tm-et-legend i.tm-tint-accent { color: var(--tm-accent); }
/* Day timeline: bars per session, coloured per project; empty parts of the day are buttons that open Add time there. */
.tm-ui .tm-et-timeline { padding: 0 20px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-et-timeline:empty { display: none; }
.tm-ui .tm-et-track { position: relative; height: 44px; border-radius: 8px; background: var(--tm-table-head); border: 1px solid var(--tm-line-soft); overflow: hidden; }
.tm-ui .tm-et-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--tm-line-soft); }
.tm-ui .tm-et-bar { position: absolute; top: 7px; bottom: 7px; min-width: 3px; border-radius: 6px; background: currentColor; }
.tm-ui .tm-et-bar.tm-tint-accent { color: var(--tm-accent); background: var(--tm-accent); }
.tm-ui .tm-et-bar:is(.tm-tint-info,.tm-tint-warning,.tm-tint-purple,.tm-tint-teal,.tm-tint-rose,.tm-tint-pink) { background: currentColor; }
.tm-ui .tm-et-bar.is-manual { background: var(--tm-edited-fill) !important; color: #3A2A06; }
.tm-ui .tm-et-bar.is-running { animation: tm-et-pulse 1.6s ease-in-out infinite; }
@keyframes tm-et-pulse { 50% { opacity: .65; } }
.tm-ui .tm-et-gap { position: absolute; top: 4px; bottom: 4px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px dashed transparent; border-radius: 6px; background: transparent; color: var(--tm-accent-ink); cursor: copy; }
.tm-ui .tm-et-gap .tm-et-gap-icon { display: flex; opacity: 0; transition: opacity .15s; }
.tm-ui .tm-et-gap:is(:hover,:focus-visible) { border-color: var(--tm-accent-line); background: var(--tm-accent-softer); }
.tm-ui .tm-et-gap:is(:hover,:focus-visible) .tm-et-gap-icon { opacity: 1; }
.tm-ui .tm-et-axis { position: relative; height: 18px; margin-top: 8px; color: var(--tm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-et-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tm-ui .tm-et-axis span:first-child { transform: none; }
.tm-ui .tm-et-axis span:last-child { transform: translateX(-100%); }
/* Sessions table */
.tm-ui .tm-et-head, .tm-ui .tm-et-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(70px, .7fr) minmax(0, 2.6fr) minmax(0, 1.6fr) 124px; gap: 14px; align-items: center; padding: 0 20px; }
.tm-ui .tm-et-head { height: 40px; background: var(--tm-table-head); border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tm-ui .tm-et-head span:last-child { text-align: right; }
.tm-ui .tm-et-row { min-height: 54px; border-bottom: 1px solid var(--tm-line-soft); }
.tm-ui .tm-et-row:last-child { border-bottom: 0; }
.tm-ui .tm-et-row:hover { background: var(--tm-table-head); }
.tm-ui .tm-et-time { display: flex; align-items: center; gap: 10px; background: none !important; color: var(--tm-ink) !important; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-et-time::before { content: ""; width: 3px; height: 26px; flex: none; border-radius: 2px; background: var(--tm-et-tone, var(--tm-accent)); }
.tm-ui .tm-et-time.is-manual::before { width: 4px; background: var(--tm-edited); }
.tm-ui .tm-et-time.tm-tint-info { --tm-et-tone: var(--tm-info-ink); }
.tm-ui .tm-et-time.tm-tint-warning { --tm-et-tone: var(--tm-warning-ink); }
.tm-ui .tm-et-time.tm-tint-purple { --tm-et-tone: var(--tm-tint-purple-ink); }
.tm-ui .tm-et-time.tm-tint-teal { --tm-et-tone: var(--tm-tint-teal-ink); }
.tm-ui .tm-et-time.tm-tint-rose { --tm-et-tone: var(--tm-tint-rose-ink); }
.tm-ui .tm-et-time.tm-tint-pink { --tm-et-tone: var(--tm-tint-pink-ink); }
.tm-ui .tm-et-dash { color: var(--tm-muted); font-weight: 500; }
.tm-ui .tm-et-dur { font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-et-work { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.tm-ui .tm-et-task { font-weight: 600; overflow-wrap: anywhere; }
.tm-ui .tm-et-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tm-ui .tm-et-badge.manual { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-et-badge.manual svg { width: 12px; height: 12px; }
.tm-ui .tm-et-badge.running { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-et-project { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tm-ink-2); }
.tm-ui .tm-et-project span:empty { display: none; }
.tm-ui .tm-et-project > span:not(:first-child) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-et-project > span:first-child { display: flex; color: var(--tm-muted); }
.tm-ui .tm-et-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.tm-ui .tm-et-actions button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tm-ink); font: 600 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-et-actions button:hover { background: var(--tm-hover); }
.tm-ui .tm-et-actions .tm-et-delete { width: 34px; padding: 0; justify-content: center; color: var(--tm-danger-ink); }
.tm-ui .tm-et-actions .tm-et-delete:hover { background: var(--tm-danger-soft); }
.tm-ui .tm-et-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 20px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-et-empty b { color: var(--tm-ink); font-weight: 600; }
/* Add / edit form */
.tm-ui .tm-et-form label { display: block; margin: 14px 0 6px; color: var(--tm-ink); font-size: 13px; font-weight: 600; }
.tm-ui .tm-et-form .modal-body > label:first-child { margin-top: 0; }
.tm-ui .tm-et-form :is(select,input,textarea) { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 15px var(--tm-font); }
.tm-ui .tm-et-form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--tm-surface) var(--tm-select-chevron) right 10px center / 16px no-repeat; }
.tm-ui .tm-et-form textarea { min-height: 72px; resize: vertical; }
.tm-ui .tm-et-form .times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-ui .tm-et-form .hint { margin-top: 8px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-et-form .error:not(:empty) { margin-top: 12px; padding: 10px 12px; border-radius: var(--tm-radius-control); background: var(--tm-danger-soft); color: var(--tm-danger-ink); font-size: 14px; }
.tm-ui .tm-et-form .modal-footer .tm-primary-btn, .tm-ui .tm-et-form .modal-footer .tm-outline-btn { height: 40px; }
@media (max-width: 767px) {
  .tm-ui .tm-et-toolbar > * { flex: 1 1 100%; }
  .tm-ui .tm-et-person select { max-width: none; flex: 1; }
  .tm-ui .tm-et-date { flex: 1; justify-content: center; }
  .tm-ui .tm-et-zone { justify-content: flex-start; }
  .tm-ui .tm-et-head { display: none; }
  .tm-ui .tm-et-row { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 16px; }
  .tm-ui .tm-et-work { grid-column: 1 / -1; order: 3; }
  .tm-ui .tm-et-project { grid-column: 1 / -1; order: 4; }
  .tm-ui .tm-et-actions { grid-column: 1 / -1; order: 5; justify-content: flex-start; margin-left: -10px; }
  .tm-ui .tm-et-timeline, .tm-ui .tm-et-card-head { padding-left: 16px; padding-right: 16px; }
  .tm-ui .tm-et-axis span:not(:first-child):not(:last-child):nth-child(even) { display: none; }
  .tm-ui .tm-et-axis span:nth-last-child(2) { display: none; }
}

/* ==== 13f. Web team (Final UI P-Team): Members / Managers / Clients tabs, search, person cards, new card. ==== */
.tm-ui .page-header:has(.tm-page-icon) .tm-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tm-ui .tm-page-actions :is(.tm-outline-btn,.tm-primary-btn) i { font-size: 17px; }
.tm-ui .tm-page-actions .tm-outline-btn { height: 44px; }
.tm-ui .tm-page-actions .tm-outline-btn:hover { border-color: var(--tm-field-hover); background: var(--tm-hover); color: var(--tm-ink); text-decoration: none; }
.tm-ui .page-header:has(+ .tm-team) .tm-page-icon { background: var(--tm-tint-rose); color: var(--tm-tint-rose-ink); }
.tm-ui .tm-team { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tm-ui .tm-team-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-team-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tm-ui .tm-team-tab { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--tm-muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-team-tab:hover { color: var(--tm-ink); text-decoration: none; }
.tm-ui .tm-team-tab.is-active { border-bottom-color: var(--tm-accent); color: var(--tm-ink); }
.tm-ui .tm-team-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--tm-bar-track); color: var(--tm-ink-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tm-ui .tm-team-tab.is-active .tm-team-count { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-team-search { position: relative; flex: 0 1 306px; margin: 0 0 8px auto; }
.tm-ui .tm-team-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tm-muted); pointer-events: none; }
.tm-ui .tm-team-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 400 14px var(--tm-font); }
.tm-ui .tm-team-search input::placeholder { color: var(--tm-faint); }
.tm-ui .tm-team-search input:focus { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); outline: 0; }
.tm-ui .tm-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tm-ui .tm-team-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 18px 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card, 16px); background: var(--tm-surface); color: var(--tm-ink); text-align: center; }
.tm-ui .tm-team-card[hidden] { display: none; }
.tm-ui .tm-team-menu { position: absolute; top: 12px; right: 12px; }
.tm-ui .tm-team-menu .tm-icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-ui .tm-team-menu .tm-icon-btn:is(:hover,[aria-expanded="true"]) { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-team-menu .dropdown-menu { min-width: 190px; text-align: start; }
.tm-ui .tm-team-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; object-fit: cover; font: 700 24px/1 var(--tm-font-display); letter-spacing: .01em; }
.tm-ui .tm-team-name { margin: 14px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); font: 700 16px/1.3 var(--tm-font-display); }
.tm-ui .tm-team-email { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; margin: 4px 0 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-team-email svg { flex: none; }
.tm-ui .tm-team-email span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-team-role { display: inline-flex; align-items: center; gap: 5px; height: 24px; margin-top: 10px; padding: 0 10px; border-radius: 999px; background: var(--tm-bar-track); color: var(--tm-ink-2); font-size: 12px; font-weight: 600; }
.tm-ui .tm-team-week { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 16px 0 0; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-team-week span { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-team-week b { color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-team-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 12px; }
.tm-ui .tm-team-actions .tm-outline-btn { justify-content: center; height: 38px; padding: 0 8px; font-size: 13px; min-width: 0; }
.tm-ui .tm-team-actions .tm-outline-btn:hover { border-color: var(--tm-field-hover); background: var(--tm-hover); color: var(--tm-ink); text-decoration: none; }
.tm-ui .tm-team-new { justify-content: center; min-height: 240px; border-style: dashed; border-color: var(--tm-field); background: transparent; text-decoration: none; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.tm-ui .tm-team-new:hover { border-color: var(--tm-accent); background: var(--tm-surface); text-decoration: none; }
.tm-ui .tm-team-new .tm-team-email { white-space: normal; display: block; max-width: 210px; }
.tm-ui .tm-team-new-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-team-new .tm-team-name { margin-top: 14px; font-size: 15px; }
.tm-ui .tm-team-none { margin: 0; padding: 28px; border: 1px dashed var(--tm-field); border-radius: var(--tm-radius); color: var(--tm-muted); text-align: center; }
@media (max-width: 767.98px) {
  .tm-ui .tm-team-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .tm-ui .tm-team-search { flex-basis: auto; margin: 0 0 10px; }
  .tm-ui .tm-team-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-ui .page-header:has(.tm-page-icon) .tm-page-actions .tm-outline-btn { width: 44px; padding: 0; justify-content: center; }
  .tm-ui .page-header:has(.tm-page-icon) .tm-page-actions .tm-outline-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ==== 13g. Web settings (Final UI P-Settings, V1 core): section menu, card, fields, footer with change state. ==== */
.tm-ui .tm-settings { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.tm-ui .tm-settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--tm-radius); background: var(--tm-track); }
.tm-ui .tm-settings-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--tm-ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.tm-ui .tm-settings-nav a:hover { background: var(--tm-hover); color: var(--tm-ink); text-decoration: none; }
.tm-ui .tm-settings-nav a.is-active { background: var(--tm-surface); color: var(--tm-ink); font-weight: 600; box-shadow: var(--tm-shadow-seg); }
.tm-ui .tm-settings-nav-icon { width: 28px; height: 28px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.tm-ui .tm-settings-card { min-width: 0; margin: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card, 16px); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-settings-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-settings-head-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-settings-head h2 { margin: 0; color: var(--tm-ink); font: 700 17px/1.3 var(--tm-font-display); }
.tm-ui .tm-settings-head p { margin: 2px 0 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-settings-body { padding: 22px; }
.tm-ui .tm-settings-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tm-ui .tm-settings-field { min-width: 0; }
.tm-ui .tm-settings-field .form-label { display: block; margin-bottom: 8px; }
.tm-ui .tm-settings-field :is(.form-control,.form-select) { width: 100%; height: 46px; }
.tm-ui .tm-settings-hint { margin: 8px 0 0; color: var(--tm-muted); font-size: 12px; line-height: 1.45; }
.tm-ui .tm-settings-error { margin: 6px 0 0; color: var(--tm-danger-ink); font-size: 12px; font-weight: 500; }
.tm-ui .tm-settings-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--tm-line); background: var(--tm-table-head); }
.tm-ui .tm-settings-state { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; color: var(--tm-muted); font-size: 13px; font-weight: 500; }
.tm-ui .tm-settings-card.is-dirty .tm-settings-state { color: var(--tm-warning-ink); }
.tm-ui .tm-settings-card.is-dirty .tm-settings-state svg { display: none; }
.tm-ui .tm-settings-card.is-dirty .tm-settings-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tm-edited); }
.tm-ui .tm-settings-foot .tm-outline-btn { height: 44px; }
.tm-ui .tm-settings-foot :is(.tm-outline-btn,.tm-primary-btn):disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 991.98px) {
  .tm-ui .tm-settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tm-ui .tm-settings-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .tm-ui .tm-settings-foot { flex-wrap: wrap; }
  .tm-ui .tm-settings-state { flex-basis: 100%; }
  .tm-ui .tm-settings-foot :is(.tm-outline-btn,.tm-primary-btn) { flex: 1 1 0; justify-content: center; }
}

/* ==== 13h. Web member dashboard (P-Dashboard, member version): greeting row, time cards, My activity chart, today's tasks and apps. ==== */
.tm-ui .tm-member-dashboard { padding-right: 0 !important; }
.tm-ui .tm-member-hello { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tm-ui .tm-member-hello .tm-avatar { width: 44px; height: 44px; font-size: 15px; }
.tm-ui .tm-member-hello .tm-person-text { flex: 1; }
.tm-ui .tm-member-hello .tm-person-name { font: 650 18px/1.3 var(--tm-font-display); }
.tm-ui .tm-member-hello .tm-person-sub { max-width: none; font-size: 13px; white-space: normal; }
.tm-ui .tm-member-clock { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px; border: 1px solid var(--tm-line); border-radius: 999px; background: var(--tm-surface); color: var(--tm-muted); font-size: 13px; white-space: nowrap; }
.tm-ui .tm-member-clock b { color: var(--tm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-ui .tm-delta { align-self: center; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-ui .tm-delta.is-up { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-delta.is-down { background: var(--tm-hover); color: var(--tm-ink-2); }
.tm-ui .tm-my-totals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-my-total { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; }
.tm-ui .tm-my-total + .tm-my-total { border-inline-start: 1px solid var(--tm-line-soft); }
.tm-ui .tm-my-total > span { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 13px; font-weight: 500; }
.tm-ui .tm-my-total i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.tm-ui .tm-my-total b { color: var(--tm-ink); font: 700 22px/1.25 var(--tm-font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tm-ui .tm-my-total small { color: var(--tm-muted); font-size: 14px; font-weight: 600; }
.tm-ui .tm-my-empty { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 40px 20px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-my-chart { position: relative; display: flex; gap: 10px; padding: 20px 20px 16px; overflow-x: auto; --tm-chart-h: 180px; }
.tm-ui .tm-my-goal { position: absolute; inset-inline: 20px; top: calc(42px + var(--tm-chart-h) * (1 - var(--tm-goal) / 100)); border-top: 1px dashed var(--tm-line); pointer-events: none; }
.tm-ui .tm-my-goal span { position: absolute; inset-inline-end: 0; top: -9px; padding: 0 6px; background: var(--tm-surface); color: var(--tm-faint); font-size: 11px; font-weight: 600; }
.tm-ui .tm-my-col { position: relative; flex: 1 1 0; min-width: 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tm-ui .tm-my-value { height: 16px; color: var(--tm-ink-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-my-bar-area { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--tm-chart-h); }
.tm-ui .tm-my-bar { display: flex; flex-direction: column; width: min(100%, 44px); min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--tm-accent); overflow: hidden; }
.tm-ui .tm-my-bar.is-empty { height: 4px !important; background: var(--tm-bar-track); }
.tm-ui .tm-my-manual { flex: none; background: var(--tm-edited-fill); }
.tm-ui .tm-my-col:hover .tm-my-bar:not(.is-empty) { filter: brightness(1.06); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-my-label { display: flex; flex-direction: column; align-items: center; line-height: 1.25; white-space: nowrap; }
.tm-ui .tm-my-label b { color: var(--tm-ink); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tm-ui .tm-my-label small { color: var(--tm-muted); font-size: 11px; }
.tm-ui .tm-my-col.is-today .tm-my-label b { color: var(--tm-accent-ink); }
.tm-ui .tm-my-col.is-today::after { content: ""; position: absolute; bottom: -8px; width: 6px; height: 6px; border-radius: 999px; background: var(--tm-accent); }
.tm-ui .tm-member-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tm-ui .tm-bar-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-bar-list li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-ui .tm-bar-list-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.tm-ui .tm-bar-list-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--tm-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-bar-list-name i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.tm-ui .tm-bar-list-top b { flex: none; color: var(--tm-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-bar-list-track { display: block; height: 8px; border-radius: 999px; background: var(--tm-bar-track); overflow: hidden; }
.tm-ui .tm-bar-list-track > span { display: block; height: 100%; border-radius: inherit; background: var(--tm-accent); }
.tm-ui .tm-bar-list small { color: var(--tm-muted); font-size: 12px; }
@media (max-width: 991.98px) { .tm-ui .tm-member-lists { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .tm-ui .tm-member-hello { flex-wrap: wrap; }
  .tm-ui .tm-member-clock { width: 100%; justify-content: flex-start; }
  .tm-ui .tm-member-clock b { overflow: hidden; text-overflow: ellipsis; }
  .tm-ui .tm-my-totals { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-ui .tm-my-total { padding: 14px 16px; }
  .tm-ui .tm-my-total:nth-child(3) { border-inline-start: 0; }
  .tm-ui .tm-my-total:nth-child(n+3) { border-top: 1px solid var(--tm-line-soft); }
  .tm-ui .tm-my-total b { font-size: 19px; }
  .tm-ui .tm-my-chart { gap: 6px; padding-inline: 12px; --tm-chart-h: 150px; }
  .tm-ui .tm-my-goal { inset-inline: 12px; }
  .tm-ui .tm-my-col { min-width: 38px; }
  .tm-ui .tm-my-value { font-size: 10px; }
}
/* ==== 13i. Web account settings (P-Profile, every role) + shared section menu labels. ==== */
.tm-ui .tm-settings-nav-label { padding: 10px 12px 4px; color: var(--tm-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tm-ui .tm-settings-nav-label:first-child { padding-top: 6px; }
.tm-ui .tm-settings-panels { min-width: 0; }
.tm-ui .tm-settings-panels > [hidden] { display: none !important; }
.tm-ui .tm-account-page { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tm-ui .tm-account-hero { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 20px 22px; border-radius: var(--tm-radius-card, 16px); background: var(--tm-hero); color: var(--tm-hero-text); }
.tm-ui .tm-account-hero-avatar { width: 68px; height: 68px; flex: none; border-radius: 999px; border: 3px solid var(--tm-hero-line); background: var(--tm-accent-soft); color: var(--tm-accent-ink); object-fit: cover; display: flex; align-items: center; justify-content: center; font: 700 22px var(--tm-font-display); }
.tm-ui .tm-account-hero-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-ui .tm-account-hero-name { font: 700 21px/1.25 var(--tm-font-display); color: var(--tm-hero-text); overflow-wrap: anywhere; }
.tm-ui .tm-account-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--tm-hero-muted); font-size: 14px; }
.tm-ui .tm-account-hero-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.tm-ui .tm-account-hero-meta svg { flex: none; }
.tm-ui .tm-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.tm-ui .tm-photo { width: 80px; height: 80px; flex: none; border-radius: 999px; object-fit: cover; background: var(--tm-accent-soft); }
.tm-ui .tm-photo[hidden] { display: none; }
.tm-ui .tm-photo-initials { display: flex; align-items: center; justify-content: center; color: var(--tm-accent-ink); font: 700 26px var(--tm-font-display); }
.tm-ui .tm-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.tm-ui .tm-photo-upload { cursor: pointer; margin: 0; }
.tm-ui #avatar:focus-visible + .tm-settings-hint, .tm-ui .tm-photo-actions:has(#avatar:focus-visible) .tm-photo-upload { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
/* Company logo (Settings > General card + side menu). Logos sit on a white tile in every theme: most are drawn for white. */
.tm-ui .tm-logo-card { margin-bottom: 16px; }
.tm-ui .tm-logo-row { display: flex; align-items: center; gap: 18px; }
.tm-ui .tm-logo-preview { width: 80px; height: 80px; flex: none; border-radius: 16px; border: 1px solid var(--tm-line); background: var(--tm-accent-soft); color: var(--tm-accent-ink); display: flex; align-items: center; justify-content: center; font: 700 28px var(--tm-font-display); overflow: hidden; }
.tm-ui .tm-logo-preview.has-logo { background: #fff; padding: 8px; }
.tm-ui .tm-logo-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tm-ui .tm-logo-text { min-width: 0; }
.tm-ui .tm-logo-status { margin: 0; color: var(--tm-ink); font-weight: 600; font-size: 14px; }
.tm-ui .tm-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tm-ui .tm-logo-actions form { margin: 0; }
.tm-ui .tm-logo-pick { cursor: pointer; margin: 0; }
.tm-ui .tm-logo-pick.is-busy { opacity: .7; pointer-events: none; }
.tm-ui .tm-logo-actions form:has(.tm-logo-file:focus-visible) .tm-logo-pick { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui #tm-main-navigation .tm-nav-company-icon.has-logo { background: #fff; padding: 3px; overflow: hidden; }
.tm-ui #tm-main-navigation .tm-nav-company-icon.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 575.98px) { .tm-ui .tm-logo-row { align-items: flex-start; } .tm-ui .tm-logo-preview { width: 64px; height: 64px; } }
.tm-ui .tm-settings-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-ui .tm-input-icon { position: relative; display: block; }
.tm-ui .tm-input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tm-muted); pointer-events: none; }
.tm-ui .tm-input-icon > .form-control { padding-left: 40px; }
.tm-ui .tm-settings-card form { margin: 0; }
.tm-ui .tm-settings-card .tm-settings-foot { justify-content: flex-end; }
.tm-ui .tm-theme-cards .tm-theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 10px; }
.tm-ui .tm-theme-cards .tm-theme-seg button { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-theme-cards .tm-theme-seg button:hover { border-color: var(--tm-field-hover); }
.tm-ui .tm-theme-cards .tm-theme-seg button[aria-pressed="true"] { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-theme-cards .tm-swatch { width: 22px; height: 22px; }
.tm-ui .tm-theme-cards .tm-swatch > span { width: 10px; height: 10px; }
@media (max-width: 991.98px) { .tm-ui .tm-settings-fields-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) {
  .tm-ui .tm-account-hero { padding: 16px; gap: 14px; }
  .tm-ui .tm-account-hero-avatar { width: 52px; height: 52px; font-size: 18px; }
  .tm-ui .tm-account-hero-name { font-size: 18px; }
  .tm-ui .tm-photo-row { align-items: flex-start; }
  .tm-ui .tm-theme-cards .tm-theme-seg { grid-template-columns: minmax(0, 1fr); }
}
/* ==== 13j. Web screenshots (Final UI P-Screenshots): note, filter row, toolbar with switch, person strips (owner / manager), hour groups (member), capture cards with numbered screens, viewer. ==== */
.tm-ui .page-header:has(.tm-page-icon) .row > .col:has(.tm-shot-note) { display: flex; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.tm-ui .tm-shot-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); font-size: 13px; }
.tm-ui .tm-shot-note svg { flex: none; color: var(--tm-muted); }
.tm-ui :is(.tm-dashboard, .tm-timeline) .tm-dash-projects { --tm-dash-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E"); }
.tm-ui .tm-shots #screenshots-table { display: flex; flex-direction: column; gap: 22px; min-width: 0; margin: 0; }
/* Toolbar */
.tm-ui .tm-shot-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 !important; padding: 12px 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-shot-summary { color: var(--tm-muted); font-size: 14px; }
.tm-ui .tm-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 0 auto; color: var(--tm-ink); font-weight: 600; cursor: pointer; user-select: none; }
.tm-ui .tm-switch > svg { color: var(--tm-warning-ink); }
.tm-ui .tm-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }   /* 2026-12-03: the checkbox covers the whole switch, so a click anywhere on it toggles (a <span> wrapper is not a <label>) */
.tm-ui .tm-switch input:disabled { cursor: not-allowed; }
.tm-ui .tm-switch-track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--tm-bar-track); transition: background .15s; }
.tm-ui .tm-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--tm-surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.tm-ui .tm-switch input:checked + .tm-switch-track { background: var(--tm-accent); }
.tm-ui .tm-switch input:checked + .tm-switch-track::after { transform: translateX(18px); }
.tm-ui .tm-switch input:focus-visible + .tm-switch-track { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
/* Owner / manager: one strip per person */
.tm-ui .tm-shot-person { min-width: 0; padding: 16px 0 6px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-shot-person-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 12px; }
.tm-ui .tm-shot-person-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 12px; white-space: nowrap; }
.tm-ui .tm-shot-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 18px 14px; scroll-snap-type: x proximity; }
.tm-ui .tm-shot-strip > .tm-shot-card { flex: 0 0 260px; scroll-snap-align: start; }
/* Member: hour groups */
.tm-ui .tm-shot-hour { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tm-ui .tm-shot-hour-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: var(--tm-muted); }
.tm-ui .tm-shot-hour-head h3 { margin: 0; color: var(--tm-ink); font: 700 17px/1.3 var(--tm-font-display); font-variant-numeric: tabular-nums; }
.tm-ui .tm-shot-hour-date { font-size: 13px; }
.tm-ui .tm-shot-chip { padding: 3px 10px; border-radius: 999px; background: var(--tm-track); color: var(--tm-ink-2); font-size: 12px; font-weight: 600; }
.tm-ui .tm-shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
/* Capture card */
.tm-ui .tm-shot-card { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0 !important; padding: 8px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-shot-card.is-low { border-color: var(--tm-warning-line); box-shadow: 0 0 0 1px var(--tm-warning-line); }
.tm-ui .tm-shot-media { position: relative; display: grid; gap: 3px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tm-hover); }
.tm-ui .tm-shot-n1 { grid-template-columns: 1fr; }
.tm-ui .tm-shot-n2 { grid-template-columns: 1fr 1fr; }
.tm-ui .tm-shot-n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tm-ui .tm-shot-n3 > .tm-shot-tile:first-child { grid-row: 1 / span 2; }
.tm-ui .tm-shot-n3 > .tm-shot-tile:nth-child(n+4) { display: none; }
.tm-ui .tm-shot-tile { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; background: var(--tm-track); }
.tm-ui .tm-shot-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; cursor: zoom-in; transition: transform .2s; }
.tm-ui .tm-shot-tile:hover img { transform: scale(1.03); }
.tm-ui .tm-shot-tile [data-screenshot-unavailable] { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px; border: 0; border-radius: 0; background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 11px; text-align: center; }
.tm-ui .tm-shot-num { position: absolute; left: 6px; bottom: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tm-ui .tm-shot-media .tm-capture-count { top: 8px; right: 8px; bottom: auto; }
.tm-ui .tm-shot-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 6px 4px; min-width: 0; }
.tm-ui .tm-shot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-ui .tm-shot-time { color: var(--tm-ink); font: 700 16px var(--tm-font-display); font-variant-numeric: tabular-nums; }
.tm-ui .tm-shot-pct { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-shot-pct.is-low { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
/* Anti-tamper: a capture whose time was replaced by a manual entry (managers only). Tokens give Evergreen/Midnight/Daylight. */
.tm-ui .tm-shot-replaced { position: absolute; top: 14px; left: 14px; z-index: 2; max-width: calc(100% - 28px); padding: 2px 8px; border: 1px solid var(--tm-warning-line); border-radius: 999px; background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tm-ui .tm-shot-bar { display: block; height: 4px; border-radius: 999px; background: var(--tm-bar-track); overflow: hidden; }
.tm-ui .tm-shot-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tm-accent); }
.tm-ui .tm-shot-bar.is-low > span { background: var(--tm-warning); }
.tm-ui .tm-shot-task { margin: 4px 0 0; color: var(--tm-ink); font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-shot-project { margin: 0; color: var(--tm-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-shot-project:empty { display: none; }
.tm-ui .tm-shot-when { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tm-ui .tm-shot-when svg { flex: none; color: var(--tm-muted); }
.tm-ui .tm-shot-line { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.tm-ui .tm-shot-line svg { flex: none; color: var(--tm-muted); }
.tm-ui .tm-shot-line > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-shot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; color: var(--tm-ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-shot-metric { display: inline-flex; align-items: center; gap: 5px; }
.tm-ui .tm-shot-metric svg { color: var(--tm-muted); flex: none; }
/* Empty state + member paging */
.tm-ui .tm-shot-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; padding: 32px 20px; border: 1px dashed var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); color: var(--tm-ink); text-align: center; }
.tm-ui .tm-shot-empty .week-date { font-weight: 600; }
.tm-ui .tm-shot-empty small { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-shot-paging { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 !important; padding: 12px 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); color: var(--tm-ink-2); font-size: 14px; }
.tm-ui .tm-shot-paging #total-number-container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.tm-ui .tm-shot-paging-field { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.tm-ui .tm-shot-paging .form-select { width: auto; min-width: 84px; height: 38px; padding-block: 0; }
/* Viewer */
.tm-ui .tm-shot-viewer { position: fixed; inset: 0; z-index: 1090 !important; align-items: center; justify-content: center; padding: 56px 88px; background: rgba(9, 9, 11, .92); }
.tm-ui .tm-shot-viewer #modalImage { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--tm-shadow-pop); }
.tm-ui .tm-shot-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--tm-on-toast) 22%, transparent); border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-ui .tm-shot-close:focus-visible { outline: 2px solid var(--tm-on-toast); outline-offset: 2px; }
.tm-ui .tm-shot-viewer .tm-shot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--tm-on-toast) 22%, transparent); border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-ui .tm-shot-viewer .tm-shot-nav[hidden], .tm-ui .tm-shot-viewer .tm-shot-counter[hidden] { display: none; }
.tm-ui .tm-shot-viewer .tm-shot-prev { left: 20px; }
.tm-ui .tm-shot-viewer .tm-shot-next { right: 20px; }
.tm-ui .tm-shot-viewer .tm-shot-counter { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 7px 14px; border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
  .tm-ui .page-header:has(.tm-page-icon) .row > .col:has(.tm-shot-note) { display: none; }
  .tm-ui .tm-shot-toolbar { padding: 12px 14px; }
  .tm-ui .tm-switch { margin-left: 0; }
  .tm-ui .tm-shot-strip { padding-inline: 14px; }
  .tm-ui .tm-shot-strip > .tm-shot-card { flex-basis: 78%; }
  .tm-ui .tm-shot-person-head { padding-inline: 14px; }
  .tm-ui .tm-shot-person-hint { display: none; }
  .tm-ui .tm-shot-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-ui .tm-shot-viewer { padding: 64px 12px; }
  .tm-ui .tm-shot-viewer .tm-shot-nav { top: auto; bottom: 56px; transform: none; }
  .tm-ui .tm-shot-paging { padding: 12px 14px; }
}
/* ==== 14. Desktop app only (inert on the web: every rule needs .tm-desktop) ==== */
/* 14a. Timer window (D-Desktop-App): 96px rail, Timer top bar, Now tracking card, toolbar, Your tasks. */
.tm-desktop.tm-tracker { background: var(--tm-canvas); }
.tm-desktop.tm-tracker #page_content[style*="block"] { display: flex !important; flex-direction: column; min-height: 100vh; padding-inline-start: 96px; box-sizing: border-box; }
.tm-desktop.tm-tracker #menu_details.tm-rail { display: flex !important; position: fixed; inset: 0 auto 0 0; z-index: 1030; width: 96px; height: 100vh; box-sizing: border-box; background: var(--tm-nav) !important; border-right: 1px solid var(--tm-nav-line); color: var(--tm-nav-text); box-shadow: none; transform: none !important; }
.tm-desktop.tm-tracker .tm-rail-inner { display: flex !important; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 14px 8px; box-sizing: border-box; overflow-y: auto; }
.tm-desktop .tm-rail, .tm-desktop .tm-rail * { scrollbar-width: none; }
.tm-desktop .tm-rail ::-webkit-scrollbar, .tm-desktop .tm-rail::-webkit-scrollbar { display: none; }
.tm-desktop .tm-rail-symbol { align-self: center; display: flex; padding: 4px; margin-bottom: 6px; color: var(--tm-nav-logo); }
.tm-desktop .tm-rail-symbol svg { display: block; height: 30px; width: auto; }
.tm-desktop .tm-rail-symbol .tm-logo-bar { fill: var(--tm-logo-bar); }
.tm-desktop .tm-rail-nav { list-style: none; margin: 0; padding: 0 !important; display: flex !important; flex-direction: column; gap: 4px; }
.tm-desktop .tm-rail-nav > .dash-item { margin: 0; padding: 0; border: 0; }
.tm-desktop #menu_details :is(.tm-rail-nav > .dash-item > .dash-link, .tm-rail-btn) {
  position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 0; margin: 0 !important; padding: 8px 2px !important; box-sizing: border-box;
  border: 0; border-radius: var(--tm-radius); background: transparent !important; color: var(--tm-nav-text) !important;
  font: 500 12px/1.2 var(--tm-font); text-align: center; text-decoration: none; cursor: pointer; box-shadow: none;
}
.tm-desktop #menu_details :is(.tm-rail-nav > .dash-item > .dash-link, .tm-rail-btn)::before, .tm-desktop #menu_details .tm-rail-nav > .dash-item > .dash-link::after { content: none !important; display: none !important; }
.tm-desktop #menu_details :is(.tm-rail-nav > .dash-item:not(.active) > .dash-link, .tm-rail-btn):hover { background: var(--tm-nav-hover) !important; color: var(--tm-nav-strong) !important; }
.tm-desktop #menu_details .tm-rail-nav > .dash-item.active > .dash-link { background: var(--tm-nav-active) !important; color: var(--tm-nav-active-text) !important; font-weight: 600; cursor: default; }
.tm-desktop #menu_details .tm-rail-nav .dash-mtext { display: block; margin: 0; color: inherit; font: inherit; font-size: 12px !important; }
.tm-desktop .tm-rail-ext { position: absolute; top: 7px; right: 14px; color: var(--tm-nav-muted); }
.tm-desktop .tm-rail-sep { list-style: none; height: 1px; margin: 6px 10px; background: var(--tm-nav-line); }
.tm-desktop .tm-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--tm-nav-line); }
.tm-desktop .tm-rail-btn .tm-swatch { width: 20px; height: 20px; }
.tm-desktop .tm-rail-btn .tm-swatch > span { width: 9px; height: 9px; }
.tm-desktop #menu_details .tm-rail-btn[aria-expanded="true"] { background: var(--tm-nav-hover) !important; color: var(--tm-nav-strong) !important; }
.tm-desktop .tm-swatch-current { background: var(--tm-swatch-evergreen); }
:root[data-tm-theme="midnight"] .tm-desktop .tm-swatch-current { background: var(--tm-swatch-midnight); }
:root[data-tm-theme="daylight"] .tm-desktop .tm-swatch-current { background: var(--tm-swatch-daylight); }
.tm-desktop .tm-rail-sync-busy svg { animation: tm-spin 1s linear infinite; }
@keyframes tm-spin { to { transform: rotate(360deg); } }
.tm-desktop #menu_details .tm-rail-avatar { background: transparent; border: 0; align-self: center; display: flex !important; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 2px 0 0 !important; padding: 0 !important; border-radius: 999px; text-decoration: none; }
.tm-desktop #menu_details .tm-rail-avatar:hover, .tm-desktop #menu_details .tm-rail-avatar[aria-expanded="true"] { background: var(--tm-nav-hover); }
.tm-desktop .tm-rail-initials { flex: none; box-sizing: border-box; padding: 0; border: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--tm-accent-soft) !important; color: var(--tm-accent-ink); display: flex; align-items: center; justify-content: center; font: 700 12px var(--tm-font); }
.tm-desktop #menu_details .tm-rail-pop { position: fixed !important; top: auto; right: auto; left: 112px; z-index: 1040; box-sizing: border-box; padding: 6px !important; margin: 0; border-radius: 14px; flex-direction: column; gap: 2px; list-style: none; }
.tm-desktop .tm-rail-theme-pop { bottom: 70px; width: 220px; display: flex; background: var(--tm-nav-raised); border: 1px solid var(--tm-nav-line); box-shadow: var(--tm-shadow-pop); }
.tm-desktop .tm-rail-theme-pop[hidden] { display: none; }
.tm-desktop .tm-rail-pop-title { padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-nav-muted); }
.tm-desktop .tm-rail-theme-pop button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--tm-nav-text); font: 500 14px var(--tm-font); text-align: start; cursor: pointer; }
.tm-desktop .tm-rail-theme-pop button:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-desktop .tm-rail-theme-pop button[aria-pressed="true"] { background: var(--tm-nav-active); color: var(--tm-nav-active-text); }
.tm-desktop .tm-rail-theme-pop .tm-swatch { width: 18px; height: 18px; }
.tm-desktop #menu_details .tm-rail-account-pop { bottom: 12px; left: 112px; visibility: visible; opacity: 1; transform: none; width: 260px; background: var(--tm-surface) !important; border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-pop); color: var(--tm-ink); }
.tm-desktop #menu_details .tm-rail-account-pop[style*="block"] { display: flex !important; }
.tm-desktop #menu_details .tm-rail-account-head { display: flex; flex-direction: column; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--tm-line); }
.tm-desktop #menu_details .tm-rail-account-head > span:first-child { font-weight: 600; font-size: 14px; color: var(--tm-ink); }
.tm-desktop .tm-rail-account-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0;   /* a long company name moves under the role tag instead of shrinking to "E..." */ font-size: 12px; color: var(--tm-muted); }
.tm-desktop .tm-rail-account-role { flex: none; padding: 0 6px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-ink) !important;   /* dark ink on the pale green (Evergreen/Daylight), light ink on the deep green (Midnight): never the rail's white */ font-size: 11px; font-weight: 600; line-height: 16px; }
.tm-desktop .tm-rail-account-role[hidden] { display: none; }
.tm-desktop .tm-rail-account-company { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-desktop #menu_details .tm-rail-account-pop .dash-item { margin: 0; padding: 0 !important; list-style: none; }
.tm-desktop #menu_details .tm-rail-account-pop .dash-link > :is(svg,span) { position: static !important; margin: 0 !important; }
.tm-desktop #menu_details .tm-rail-account-pop .dash-link { display: flex !important; align-items: center; gap: 10px; height: 40px; min-height: 40px; padding: 0 10px !important; margin: 0 !important; border-radius: 10px; color: var(--tm-ink) !important; background: transparent !important; font: 500 14px var(--tm-font); text-decoration: none; cursor: pointer; }
.tm-desktop #menu_details .tm-rail-account-pop .dash-link::before, .tm-desktop #menu_details .tm-rail-account-pop .dash-link::after { content: none !important; display: none !important; }
.tm-desktop #menu_details .tm-rail-account-pop .dash-link:hover { background: var(--tm-hover) !important; }
.tm-desktop #menu_details .tm-rail-account-pop .tm-danger-link { color: var(--tm-danger-ink) !important; }
.tm-desktop #menu_details .tm-rail-account-pop .tm-grow { flex: 1; }
.tm-desktop #menu_details .tm-rail-account-pop svg { flex: none; }
/* Desktop menu head: rail = symbol over an expand button; expanded = logo lockup with the collapse button beside it. */
.tm-desktop .tm-rail-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 6px; }
.tm-desktop #menu_details .tm-rail-head .tm-rail-symbol { margin: 0; }
.tm-desktop .tm-rail-lockup { display: none; color: var(--tm-nav-logo); line-height: 0; }
.tm-desktop .tm-rail-lockup .tm-logo { display: block; height: 26px; width: auto; }
.tm-desktop .tm-rail-lockup .tm-logo-bar { fill: var(--tm-logo-bar); }
.tm-desktop .tm-rail-collapse { width: 44px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-nav-muted); cursor: pointer; transform: scaleX(-1); }
.tm-desktop .tm-rail-collapse:hover { background: var(--tm-nav-hover); color: var(--tm-nav-strong); }
.tm-desktop .tm-rail-collapse:focus-visible { outline: 2px solid var(--tm-accent-ink); outline-offset: 1px; }
.tm-desktop :is(.tm-rail-account-text,.tm-rail-account-chev,.tm-rail-row-chev) { display: none; }
@media (max-width: 759px) { .tm-desktop .tm-rail-collapse { display: none; } }
/* Expanded desktop menu (248px), chosen with the collapse button and saved per device; windows under 760px keep the rail. */
@media (min-width: 760px) {
  html[data-tm-desk-nav="full"] .tm-desktop.tm-tracker #page_content[style*="block"] { padding-inline-start: 248px; }
  html[data-tm-desk-nav="full"] .tm-desktop.tm-tracker #menu_details.tm-rail { width: 248px; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-inner { padding: 20px 14px 16px; gap: 2px; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-head { flex-direction: row; justify-content: space-between; gap: 8px; padding-inline-start: 8px; margin-bottom: 18px; }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-head .tm-rail-symbol { display: none; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-lockup { display: block; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-collapse { width: 36px; height: 36px; transform: none; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-nav { gap: 2px; }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details :is(.tm-rail-nav > .dash-item > .dash-link, .tm-rail-btn) { flex-direction: row; justify-content: flex-start; gap: 12px; height: 40px; padding: 0 12px !important; border-radius: var(--tm-radius-nav); font-size: 14px; text-align: start; }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-nav .dash-mtext { flex: 1; font-size: 14px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-ext { position: static; flex: none; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-sep { margin: 8px 12px; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-foot { gap: 2px; padding-top: 12px; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-btn > span:not(.tm-swatch) { flex: 1; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-btn .tm-swatch { width: 18px; height: 18px; margin-inline: 1px; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-row-chev { display: block; color: var(--tm-nav-muted); }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-avatar { align-self: stretch; justify-content: flex-start; gap: 10px; width: auto; height: auto; min-height: 56px; margin: 8px 0 0 !important; padding: 10px !important; border-radius: 12px; border: 1px solid var(--tm-nav-line); background: var(--tm-nav-raised); color: var(--tm-nav-strong); }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-avatar:hover, html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-avatar[aria-expanded="true"] { background: var(--tm-nav-hover); }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-account-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-account-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-tm-desk-nav="full"] .tm-desktop #tm-rail-account-label { font-size: 14px; font-weight: 600; color: var(--tm-nav-strong); }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-account-text .tm-rail-account-sub { font-size: 12px; color: var(--tm-nav-muted); }
  html[data-tm-desk-nav="full"] .tm-desktop .tm-rail-account-chev { display: block; flex: none; color: var(--tm-nav-muted); }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-pop { left: 264px; }
  html[data-tm-desk-nav="full"] .tm-desktop #menu_details .tm-rail-theme-pop { bottom: 84px; }
}
/* Confirm dialog (desktop logout) */
.tm-desktop .tm-confirm { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--tm-overlay); }
.tm-desktop .tm-confirm[hidden] { display: none; }
.tm-desktop .tm-confirm-box { width: 100%; max-width: 400px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--tm-radius-pop); background: var(--tm-surface); border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-dialog); color: var(--tm-ink); }
.tm-desktop .tm-confirm-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tm-danger-soft); color: var(--tm-danger-ink); display: flex; align-items: center; justify-content: center; }
.tm-desktop .tm-confirm-text { display: flex; flex-direction: column; gap: 6px; }
.tm-desktop .tm-confirm-text h2 { margin: 0; font: 700 19px/1.35 var(--tm-font-display); color: var(--tm-ink); letter-spacing: 0; }
.tm-desktop .tm-confirm-text p { margin: 0; color: var(--tm-muted); font-size: 14px; line-height: 1.5; }
.tm-desktop .tm-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tm-desktop .tm-confirm-actions .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; font-weight: 600; font-size: 14px; }
/* Top bar */
.tm-desktop .tm-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; background: var(--tm-surface); border-bottom: 1px solid var(--tm-line); }
.tm-desktop .tm-topbar-title { margin: 0; font: 700 18px/1.3 var(--tm-font-display); color: var(--tm-ink); letter-spacing: 0; }
/* In-app update button (topbar, before the sync pill; js/tm-update.js). Tones: info while getting it, accent when ready, warning on error. */
.tm-desktop .tm-update-btn { margin-inline-start: auto; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--tm-line); background: var(--tm-table-head); color: var(--tm-ink-2); font: 600 13px var(--tm-font); white-space: nowrap; cursor: pointer; }
.tm-desktop .tm-update-btn[hidden] { display: none; }
.tm-desktop .tm-update-btn > * { position: relative; }
.tm-desktop .tm-update-btn.is-progress::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--tm-update-pct, 0%); background: var(--tm-accent-soft); transition: width .3s; }
.tm-desktop .tm-update-btn[data-tone="accent"] { border-color: var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--tm-accent) 30%, transparent); }
.tm-desktop .tm-update-btn[data-tone="accent"]:hover { background: var(--tm-accent-hover); border-color: var(--tm-accent-hover); }
.tm-desktop .tm-update-btn[data-tone="warn"] { border-color: var(--tm-warning-line); background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-desktop .tm-update-btn:disabled { cursor: default; }
.tm-desktop .tm-update-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop .tm-update-btn:not([hidden]) + .tm-sync-pill { margin-inline-start: 0; }
.tm-desktop .tm-confirm-icon.tm-update-icon { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
@media (prefers-reduced-motion: reduce) { .tm-desktop .tm-update-btn.is-progress::before { transition: none; } }
.tm-desktop .tm-sync-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--tm-table-head); border: 1px solid var(--tm-line); color: var(--tm-ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tm-desktop .tm-sync-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tm-accent); flex: none; }
.tm-desktop .tm-sync-pill:is([data-state="syncing"],[data-state="pending"]) .tm-sync-dot { background: var(--tm-warning); animation: tm-pulse 1.4s ease-in-out infinite; }
.tm-desktop .tm-sync-pill:is([data-state="error"],[data-state="session-required"]) .tm-sync-dot { background: var(--tm-danger); }
@keyframes tm-pulse { 50% { opacity: .35; } }
/* Sync running (2026-11-17): the dot gives way to a turning sync icon. */
.tm-desktop .tm-sync-spin { display: none; flex: none; color: var(--tm-accent-ink); }
.tm-desktop .tm-sync-pill[data-busy] .tm-sync-dot { display: none; }
.tm-desktop .tm-sync-pill[data-busy] .tm-sync-spin { display: block; animation: tm-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tm-desktop .tm-sync-pill[data-busy] .tm-sync-spin { animation: none; } }
/* Now tracking card (the legacy header keeps its ids; JS writes inline colours, the tokens win). */
.tm-desktop.tm-tracker .dash-header.tm-now { position: static !important; inset: auto !important; width: auto !important; min-height: 0; margin: 20px 20px 0; padding: 0; background: transparent !important; border: 0; box-shadow: none; transition: none !important; z-index: auto; }
.tm-desktop.tm-tracker #header_div.tm-now-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; min-height: 0; padding: 20px 22px !important; box-sizing: border-box; border-radius: var(--tm-radius); background: var(--tm-surface) !important; border: 1px solid var(--tm-line); }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) #header_div.tm-now-card { border-color: var(--tm-accent-line); }
.tm-desktop .tm-now-main { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.tm-desktop .tm-now-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-muted); }
.tm-desktop .tm-now-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tm-faint); }
.tm-desktop .tm-now-on { display: none; }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) .tm-now-label { color: var(--tm-accent-ink); }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) .tm-now-dot { background: var(--tm-accent); animation: tm-pulse 1.4s ease-in-out infinite; }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) .tm-now-on { display: inline; }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) .tm-now-off { display: none; }
/* D17: idle check open -> the running card shows Paused (amber, no pulse, number held). */
.tm-desktop .tm-now-paused { display: none; }
.tm-desktop.tm-tracker.tm-idle-paused:has(#header_div .Stop-button) .tm-now-on { display: none; }
.tm-desktop.tm-tracker.tm-idle-paused:has(#header_div .Stop-button) .tm-now-paused { display: inline; }
.tm-desktop.tm-tracker.tm-idle-paused:has(#header_div .Stop-button) .tm-now-label { color: var(--tm-warning-ink); }
.tm-desktop.tm-tracker.tm-idle-paused:has(#header_div .Stop-button) .tm-now-dot { background: var(--tm-warning); animation: none; }
.tm-desktop.tm-tracker.tm-idle-paused:has(#header_div .Stop-button) #header_div.tm-now-card { border-color: var(--tm-warning-line); }
.tm-desktop.tm-tracker.tm-idle-paused #counter-task { opacity: .55; }
.tm-desktop.tm-tracker #name_task { margin: 0 !important; color: var(--tm-ink) !important; font: 650 20px/1.3 var(--tm-font-display) !important; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-desktop.tm-tracker #name_proj { align-self: flex-start; align-items: center; gap: 6px; margin: 0 !important; padding: 3px 10px !important; border-radius: 999px; background: var(--tm-track); color: var(--tm-ink-2) !important; font: 600 12px/1.4 var(--tm-font) !important; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-desktop.tm-tracker #name_proj::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-desktop .tm-now-side { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.tm-desktop .tm-now-side:not(:has(> [style*="flex"], > [style*="block"])) { display: none; }
.tm-desktop .tm-now-timer { align-items: center; gap: 10px; }
.tm-desktop.tm-tracker #quit-loader { width: 20px !important; height: 20px !important; margin: 0 !important; color: var(--tm-muted) !important; }
.tm-desktop.tm-tracker #counter-task { margin: 0 !important; padding: 0 !important; font: 700 40px/1.1 var(--tm-font-display) !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums !important; color: var(--tm-muted) !important; white-space: nowrap; }
.tm-desktop.tm-tracker:has(#header_div .Stop-button) #counter-task { color: var(--tm-ink) !important; }
.tm-desktop.tm-tracker #header_div #start-timer-button { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 48px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent) !important; color: var(--tm-on-accent); font: 600 15px var(--tm-font); cursor: pointer; box-shadow: none; }
.tm-desktop.tm-tracker #header_div #start-timer-button:hover { background: var(--tm-accent-hover) !important; }
.tm-desktop.tm-tracker #header_div #start-timer-button.Stop-button { background: var(--tm-danger) !important; color: var(--tm-on-danger); }
.tm-desktop.tm-tracker #header_div #start-timer-button.Stop-button:hover { background: var(--tm-danger) !important; filter: brightness(.94); }
.tm-desktop.tm-tracker #header_div #start-timer-button .tm-ico-stop, .tm-desktop.tm-tracker #header_div #start-timer-button.Stop-button .tm-ico-play { display: none; }
.tm-desktop.tm-tracker #header_div #start-timer-button.Stop-button .tm-ico-stop { display: inline; }
.tm-desktop.tm-tracker #header_div #start-timer-button:disabled { background: var(--tm-track) !important; color: var(--tm-muted); cursor: not-allowed; filter: none; }
.tm-desktop.tm-tracker .tm-offline-banner { align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--tm-radius); background: var(--tm-danger-soft) !important; border: 1px solid var(--tm-danger-line); color: var(--tm-danger-ink); }
.tm-desktop.tm-tracker .tm-offline-banner[style*="block"] { display: flex !important; }
.tm-desktop.tm-tracker .tm-offline-banner p { margin: 0; font-size: 14px; font-weight: 500; }
.tm-desktop.tm-tracker .tm-offline-banner button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--tm-danger-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-danger-ink); font: 600 13px var(--tm-font); cursor: pointer; }
/* Toasts */
.tm-desktop #toast-container { position: fixed !important; right: 20px !important; bottom: 20px; top: auto !important; left: auto; z-index: 2000; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(360px, calc(100vw - 136px)); max-width: none; pointer-events: none; }
.tm-desktop #toast-container .toast { pointer-events: auto; display: grid !important; grid-template-columns: 20px 1fr auto 24px; align-items: start; column-gap: 10px; flex: none !important; box-sizing: border-box; width: 100%; height: auto !important; min-height: 52px; max-width: none; margin: 0; padding: 14px 12px 14px 14px; border: 1px solid var(--tm-hero-line); border-left: 0; border-radius: var(--tm-radius-control); background: var(--tm-toast) !important; color: var(--tm-on-toast) !important; box-shadow: var(--tm-shadow-dialog); font: 500 14px/1.45 var(--tm-font); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.tm-desktop #toast-container .toast.show { opacity: 1; transform: none; }
.tm-desktop #toast-container .toast.is-leaving { opacity: 0; transform: translateX(16px); }
.tm-desktop #toast-container .tm-toast-icon { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--tm-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-desktop #toast-container .toast.error .tm-toast-icon { stroke: var(--tm-danger); }
.tm-desktop #toast-container .toast.warning .tm-toast-icon { stroke: var(--tm-warning); }
.tm-desktop #toast-container .toast.info .tm-toast-icon { stroke: var(--tm-on-toast); opacity: .8; }
.tm-desktop #toast-container .tm-toast-text { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm-desktop #toast-container .tm-toast-count:empty { display: none; }
.tm-desktop #toast-container .tm-toast-count { align-self: center; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--tm-on-toast) 16%, transparent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-desktop #toast-container .tm-toast-close { width: 24px; height: 24px; margin: -2px 0 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .6; cursor: pointer; }
.tm-desktop #toast-container .tm-toast-close:hover { opacity: 1; background: color-mix(in srgb, var(--tm-on-toast) 14%, transparent); }
.tm-desktop #toast-container .tm-toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Content column */
.tm-desktop.tm-tracker .dash-container { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0 !important; padding: 16px 20px 20px; min-height: 0; background: transparent; position: static; top: auto; }
.tm-desktop.tm-tracker .dash-content { flex: 1 1 auto; display: flex; flex-direction: column; padding: 0 !important; margin: 0; min-height: 0; }
.tm-desktop.tm-tracker .dash-content > .page-header { display: none; }
.tm-desktop.tm-tracker .dash-content > .row { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; }
.tm-desktop.tm-tracker :is(#refresh_data_yes_button,#refresh_data_no_button,#refresh_data_on_stop) { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }
.tm-desktop.tm-tracker #traker-form-time { flex: 1 1 auto; display: flex !important; flex-direction: column; padding: 0 !important; margin: 0; width: 100%; }
.tm-desktop.tm-tracker #tracker-table { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 100%; margin: 0 !important; }
.tm-desktop.tm-tracker #tracker-table > .clearfix { display: none; }
.tm-desktop.tm-tracker .dash-footer, .tm-desktop.tm-tracker #page_content > div:empty { display: none; }
.tm-desktop .tm-tracker-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-desktop .tm-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); cursor: text; }
.tm-desktop .tm-search:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop.tm-tracker #search_input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--tm-ink); font: 14px var(--tm-font); }
.tm-desktop .tm-proj-filter { position: relative; display: flex; align-items: center; height: 44px; margin: 0; padding: 0; box-sizing: border-box; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); }
.tm-desktop .tm-proj-filter:hover { border-color: var(--tm-field-hover); }
.tm-desktop .tm-proj-filter :is(.tm-proj-ico,.tm-proj-chev) { position: absolute; top: 50%; transform: translateY(-50%); color: var(--tm-muted); pointer-events: none; }
.tm-desktop .tm-proj-filter .tm-proj-ico { left: 14px; }
.tm-desktop .tm-proj-filter .tm-proj-chev { right: 14px; }
.tm-desktop .tm-proj-filter .dropdown { position: static; }
.tm-desktop.tm-tracker #dropdown_container_input { width: 170px; height: 42px; padding: 0 36px 0 38px; border: 0; outline: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-ink); font: 500 14px var(--tm-font); cursor: pointer; text-overflow: ellipsis; }
.tm-desktop.tm-tracker #dropdown_container_input::placeholder { color: var(--tm-ink); opacity: 1; }
.tm-desktop.tm-tracker #dropdownMenu { top: calc(100% + 6px); left: 0; width: 240px; max-height: 260px; overflow-y: auto !important; overflow-x: hidden !important; padding: 6px; margin: 0; border-radius: 14px; background: var(--tm-surface); border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-pop); z-index: 1020; }
.tm-desktop.tm-tracker #dropdownMenu li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px !important; border: 0 !important; border-radius: 10px; color: var(--tm-ink); font: 500 14px var(--tm-font); cursor: pointer; background: transparent; list-style: none; }
.tm-desktop.tm-tracker #dropdownMenu li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--tm-accent); }
.tm-desktop.tm-tracker #dropdownMenu li.project-filter-all::before { background: var(--tm-faint); }
.tm-desktop.tm-tracker #dropdownMenu li:hover { background: var(--tm-hover); }
.tm-desktop .tm-today { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.tm-desktop .tm-today-ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--tm-radius-control); background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop .tm-today-text { display: flex; flex-direction: column; }
.tm-desktop .tm-today-label { font-size: 12px; color: var(--tm-muted); line-height: 1.3; }
.tm-desktop .tm-today-value { font: 700 18px/1.25 var(--tm-font-display); color: var(--tm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-desktop .tm-today-value:has(#tm-today-pretty:not(:empty)) .tm-today-raw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The old per-sync spinner on the Today card: hidden (user 2026-11-16, flashing every sync); the top-bar pill shows sync state. */
.tm-desktop.tm-tracker #upload-loader { display: none !important; }
/* Sound & alerts screen (desktop): one scrollable column of grouped cards; rows = label on the left, control on the right. */
.tm-desktop #tm-sound-screen[hidden] { display: none; }
.tm-desktop.tm-snd-open :is(.dash-header.tm-now, .dash-container) { display: none !important; }
.tm-desktop #tm-sound-screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 20px; box-sizing: border-box; }
.tm-desktop #tm-sound-screen::-webkit-scrollbar { display: none; }
.tm-desktop .tm-snd { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.tm-desktop .tm-snd-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tm-desktop .tm-snd-head h2 { margin: 0; font: 700 22px/1.3 var(--tm-font-display); color: var(--tm-ink); letter-spacing: 0; }
.tm-desktop .tm-snd-lead { margin: -8px 0 0; color: var(--tm-muted); font-size: 14px; line-height: 1.5; }
.tm-desktop .tm-snd-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-desktop .tm-snd-back:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-desktop .tm-snd-saved { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.tm-desktop .tm-snd-saved.is-on { opacity: 1; }
.tm-desktop .tm-snd-card { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); overflow: hidden; }
.tm-desktop .tm-snd-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-desktop .tm-snd-card-icon { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop .tm-snd-card-head h3 { margin: 0; font: 650 16px/1.3 var(--tm-font-display); color: var(--tm-ink); }
.tm-desktop .tm-snd-card-head p { margin: 2px 0 0; color: var(--tm-muted); font-size: 13px; line-height: 1.45; }
.tm-desktop .tm-snd-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 18px; box-sizing: border-box; }
.tm-desktop .tm-snd-row + .tm-snd-row { border-top: 1px solid var(--tm-line); }
.tm-desktop .tm-snd-row.is-off { opacity: .5; }
.tm-desktop .tm-snd-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-desktop .tm-snd-text strong { color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-desktop .tm-snd-text span { color: var(--tm-muted); font-size: 13px; line-height: 1.45; }
.tm-desktop .tm-snd-control { flex: none; display: flex; align-items: center; gap: 10px; }
.tm-desktop .tm-snd-control select.form-control { width: 320px; max-width: 100%; height: 40px; min-height: 0; }
.tm-desktop .tm-snd-row .tm-switch { margin: 0; flex: none; }
.tm-desktop .tm-snd-row .tm-switch input:disabled + .tm-switch-track { opacity: .5; cursor: not-allowed; }
.tm-desktop .tm-snd-test { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tm-desktop .tm-snd-test:disabled { opacity: .5; cursor: not-allowed; }
.tm-desktop .tm-snd-vol { width: 190px; margin: 0; height: 24px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tm-desktop .tm-snd-vol::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--tm-accent) var(--tm-fill, 70%), var(--tm-bar-track) var(--tm-fill, 70%)); }
.tm-desktop .tm-snd-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 999px; border: 2px solid var(--tm-accent); background: var(--tm-surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tm-desktop .tm-snd-vol:focus-visible { outline: 0; }
.tm-desktop .tm-snd-vol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop .tm-snd-vol:disabled { opacity: .5; cursor: not-allowed; }
.tm-desktop .tm-snd-volval { min-width: 40px; text-align: right; color: var(--tm-ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-desktop .tm-snd-card:has(.tm-snd-mute input:checked) { border-color: var(--tm-warning); }
.tm-desktop #menu_details .tm-rail-btn.is-current { background: var(--tm-nav-active) !important; color: var(--tm-nav-active-text) !important; font-weight: 600; }
.tm-desktop .tm-snd :focus-visible { outline: 0; }
.tm-desktop .tm-snd :is(button, select):focus-visible { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
@media (max-width: 860px) { .tm-desktop .tm-snd-row { flex-wrap: wrap; } .tm-desktop .tm-snd-control { flex: 1 1 100%; } .tm-desktop .tm-snd-control select.form-control, .tm-desktop .tm-snd-vol { flex: 1 1 auto; width: auto; } }
/* Your tasks card */
.tm-desktop.tm-tracker #tasks_card.tm-tasks-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 240px; margin: 0; overflow: hidden; border: 1px solid var(--tm-line) !important; border-radius: var(--tm-radius) !important; background: var(--tm-surface) !important; box-shadow: none; }
.tm-desktop.tm-tracker #tasks_card.tm-tasks-card[style*="none"] { display: none !important; }
.tm-desktop .tm-tasks-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--tm-line); background: var(--tm-table-head); }
.tm-desktop .tm-tasks-head h2 { margin: 0; font: 650 14px/1.4 var(--tm-font); color: var(--tm-ink); letter-spacing: 0; }
.tm-desktop .tm-tasks-count { font-size: 13px; color: var(--tm-muted); }
.tm-desktop .tm-add-row { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--tm-line-soft); }
.tm-desktop .tm-add-row:not(:has(> :not([hidden]))) { display: none; }
.tm-desktop.tm-tracker #tracker_input { flex: 1; min-width: 0; height: 40px; min-height: 40px; margin: 0; }
.tm-desktop.tm-tracker .tm-add-row :is(.Start-Task-icon-button,#Add-Task-button) { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--tm-accent-line); border-radius: 999px; background: var(--tm-accent-soft) !important; background-image: none !important; color: var(--tm-accent-ink); }
.tm-desktop.tm-tracker #table_content { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: none !important; padding: 6px 8px; overflow-y: auto; overflow-x: hidden !important; }
/* "All projects": "[Project] Task" on one line (user 2026-11-12); a single project shows the plain task name. */
.tm-desktop.tm-tracker .tm-row-proj-tag { display: none; flex: 0 0 auto; max-width: 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-muted); font-weight: 500; font-size: 12.5px; }
.tm-desktop.tm-tracker:not(.tm-one-project) #table_content .tm-row-proj-tag,
.tm-desktop.tm-tracker #task_searches .tm-row-proj-tag { display: block; }
/* The row title: [Project] (secondary, capped) + Jira chip (once) + task title (primary, one line, ellipsis). One design for every render path (js/task-row.js). */
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:first-child > p.tm-row-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tm-desktop.tm-tracker .tm-row-name .tm-row-title { flex: 1 1 auto; min-width: 3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-desktop.tm-tracker .tm-row-name .tm-jira-key { flex: none; }
.tm-desktop.tm-tracker:not(.tm-one-project) #table_content > .row { grid-template-areas: "check name time act" "check name time act"; }
.tm-desktop.tm-tracker.tm-role-member:not(.tm-one-project) #table_content > .row { grid-template-areas: "name time act" "name time act"; }
.tm-desktop.tm-tracker:not(.tm-one-project) #table_content > .row > div:nth-child(2) { display: none !important; }
/* All-projects rows have no second line (project tag is inline), so the title spans both grid rows: centre it with the time and play button (the default align-self:end sat it low). Row height is unchanged. */
.tm-desktop.tm-tracker:not(.tm-one-project) #table_content > .row > div:first-child > p.tm-row-name { align-self: center; }
/* Members cannot add or remove tasks (user 2026-11-12): no Add task row, no remove checkboxes, no Remove button. */
.tm-desktop.tm-tracker.tm-role-member .tm-add-row,
.tm-desktop.tm-tracker.tm-role-member #Delete-Task-button,
.tm-desktop.tm-tracker.tm-role-member :is(#table_content,#task_searches) > .row .task_selected { display: none !important; }
.tm-desktop.tm-tracker.tm-role-member :is(#table_content,#task_searches) > .row { grid-template-columns: minmax(0,1fr) auto 40px; grid-template-areas: "name time act" "proj time act"; padding-inline-start: 16px !important; }
/* Scroll (user 2026-11-12: with 100 tasks the list could not scroll and the timer should stay put). The page is exactly
   the window height and every flex level may shrink, so only the task list scrolls; the timer card above it never moves. */
.tm-desktop.tm-tracker #page_content[style*="block"] { height: 100vh; min-height: 0; overflow: hidden; }
.tm-desktop.tm-tracker :is(.dash-container,.dash-content,.dash-content > .row,#traker-form-time,#tracker-table) { min-height: 0; }   /* #traker-form-time too: without it the form grows to its content and the task list is clipped, not scrolled */
.tm-desktop.tm-tracker .dash-container > .alert { flex: 0 0 auto; }   /* banners keep their height; the list takes what is left */
.tm-desktop.tm-tracker #tracker-table:not([style*="none"]) { overflow: hidden; }
.tm-desktop.tm-tracker #tasks_card.tm-tasks-card { min-height: 0; flex-basis: 0; }
.tm-desktop.tm-tracker #table_content { overscroll-behavior: contain; scroll-padding-block: 8px; }
.tm-desktop.tm-tracker #task-project-empty { margin: 0; padding: 36px 16px !important; text-align: center; color: var(--tm-muted) !important; font-size: 14px; }
.tm-desktop.tm-tracker #task-project-empty[hidden] { display: none; }
.tm-desktop.tm-tracker #Delete-Task-button { align-self: flex-start; min-height: 36px; margin: 0 16px 12px; padding: 0 14px; border: 1px solid var(--tm-danger-line); border-radius: var(--tm-radius-control); background: var(--tm-surface) !important; background-image: none !important; color: var(--tm-danger-ink); font: 600 13px var(--tm-font); }
/* Task rows: the row markup is positional (JS reads children[0..3]); the grid only re-places it. */
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row {
  display: grid !important; grid-template-columns: 18px minmax(0,1fr) auto 40px; grid-template-areas: "check name time act" "check proj time act";
  column-gap: 12px; row-gap: 2px; align-items: center; align-content: center; min-height: 56px; margin: 0 !important; padding: 8px 10px !important;
  border: 0 !important; border-radius: 12px; background: transparent; box-sizing: border-box; flex: none;
}
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row[style*="none"] { display: none !important; }
/* Search results use the All-projects list row exactly: [project] chip title on one line, centred (after the base row rule so the grid areas win). */
.tm-desktop.tm-tracker #task_searches > .row { grid-template-areas: "check name time act" "check name time act"; }
.tm-desktop.tm-tracker #task_searches > .row > div:nth-child(2) { display: none !important; }
.tm-desktop.tm-tracker #task_searches > .row > div:first-child > p.tm-row-name { align-self: center; }
.tm-desktop.tm-tracker.tm-role-member #task_searches > .row { grid-template-areas: "name time act" "name time act"; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row:hover { background: var(--tm-table-head); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row.row-running { background: var(--tm-accent-soft); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div { width: auto !important; max-width: none; min-width: 0; flex: none; margin: 0 !important; padding: 0 !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:first-child { display: contents !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .drag-handle { display: none; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected { grid-area: check; width: 18px !important; height: 18px !important; margin: 0 !important; accent-color: var(--tm-accent); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected { position: static; -webkit-appearance: none; appearance: none; box-sizing: border-box; border: 1.5px solid var(--tm-field) !important; border-radius: 5px; background: var(--tm-surface) center / 12px no-repeat; cursor: pointer; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected:hover { border-color: var(--tm-field-hover) !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected:checked { border-color: var(--tm-accent) !important; background-color: var(--tm-accent); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected { display: grid; place-content: center; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected:checked::before { content: ""; width: 12px; height: 12px; background: var(--tm-on-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:first-child > p { grid-area: name; align-self: end; margin: 0 !important; color: var(--tm-ink) !important; font: 500 14px/1.35 var(--tm-font) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row.row-running > div:first-child > p { font-weight: 650 !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(2) { grid-area: proj; align-self: start; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tm-muted); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(2) img { display: none; }
.tm-desktop.tm-tracker .tm-row-proj { margin: 0 !important; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-desktop.tm-tracker .tm-row-proj::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 999px; background: var(--tm-accent); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(3) { grid-area: time; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(3) p { margin: 0 !important; float: none !important; color: var(--tm-ink) !important; font: 600 14px var(--tm-font) !important; font-variant-numeric: tabular-nums !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row.row-running > div:nth-child(3) p { color: var(--tm-accent-ink) !important; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4) { grid-area: act; position: relative; width: 40px !important; height: 40px; box-sizing: border-box; border: 1px solid var(--tm-accent-line); border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4)::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; background: currentColor; pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4):hover { border-color: var(--tm-accent); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row.row-running > div:nth-child(4) { border-color: var(--tm-danger); background: var(--tm-danger); color: var(--tm-on-danger); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row.row-running > div:nth-child(4)::before { width: 14px; height: 14px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4) img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; float: none !important; opacity: 0; border-radius: 999px; cursor: pointer; }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4):has(img:focus-visible) { box-shadow: 0 0 0 3px var(--tm-canvas), 0 0 0 5px var(--tm-accent-ink); }
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(4):empty { display: none; }
/* Search results (shown while the search box has text) */
/* Searching: the toolbar (search box) stays where it is, the results card sits right under it and scrolls inside itself. */
.tm-desktop.tm-tracker #tracker-search-result-table { flex: 1 1 0; min-height: 0; flex-direction: column; margin: 0 !important; }
.tm-desktop.tm-tracker #traker-form-time.tm-searching #tracker-table { flex: 0 0 auto; margin-bottom: 16px !important; }   /* the results card has an inline margin-top, so the gap lives here */
/* 2026-11-17: while searching, #tracker-table is only the toolbar, so its overflow:hidden (above) cut off the project list and clicks
   fell through to the result rows ("I can't change the project while searching"). Let the list hang over the results instead. */
.tm-desktop.tm-tracker #traker-form-time.tm-searching #tracker-table { overflow: visible; position: relative; z-index: 5; }
.tm-desktop.tm-tracker #tracker-search-result-table > .card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; border: 1px solid var(--tm-line) !important; border-radius: var(--tm-radius) !important; background: var(--tm-surface); overflow: hidden; }
.tm-desktop.tm-tracker #tracker-search-result-table .card-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0 !important; }
.tm-desktop.tm-tracker #tracker-search-result-table .time-schrdule { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.tm-desktop.tm-tracker #tracker-search-result-table .bb1 { display: none !important; }
.tm-desktop.tm-tracker #tracker-search-result-table .project-acc { flex: 1 1 auto; min-height: 0; max-height: none !important; padding: 6px 8px 12px; overflow-y: auto; overflow-x: hidden !important; overscroll-behavior: contain; }
.tm-desktop.tm-tracker #tracker-search-result-table .project-acc > p[hidden] { display: none; }
.tm-desktop.tm-tracker #tracker-search-result-table #task-search-empty { margin: 0; padding: 36px 16px !important; text-align: center; color: var(--tm-muted) !important; font: 400 14px var(--tm-font) !important; letter-spacing: 0; overflow-wrap: anywhere; }
.tm-desktop.tm-tracker #tracker-search-result-table #task-search-empty[hidden] { display: none; }
.tm-desktop.tm-tracker #tracker-search-result-table .project-acc > p { margin: 10px 10px 4px; font: 600 11px var(--tm-font) !important; letter-spacing: .08em; color: var(--tm-muted); }
.tm-desktop.tm-tracker #project_searches > .row { display: flex !important; align-items: center; min-height: 44px; margin: 0 !important; padding: 0 10px !important; border: 0 !important; border-radius: 10px; }
.tm-desktop.tm-tracker #project_searches > .row:hover { background: var(--tm-table-head); }
.tm-desktop.tm-tracker #project_searches > .row > div { display: flex; align-items: center; gap: 10px; width: auto !important; margin: 0 !important; padding: 0 !important; }
.tm-desktop.tm-tracker #project_searches > .row > div > .col-1 { display: none; }
.tm-desktop.tm-tracker #project_searches > .row > div::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--tm-accent); }
.tm-desktop.tm-tracker #project_searches p { margin: 0 !important; color: var(--tm-ink) !important; font: 500 14px var(--tm-font) !important; }
/* Notices from app-links.js (work changed / capture unavailable / sync failed) sit above the toolbar. */
.tm-desktop.tm-tracker .dash-container > .alert { margin: 0 0 12px; }
.tm-desktop.tm-tracker #tm-sync-state[data-quiet] { display: none; }
/* 14b. Desktop sign-in (D-Desktop-App "login"): one centred card on the canvas. */
.tm-desktop.tm-login { background: var(--tm-canvas) !important; color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-page { min-height: 100vh; box-sizing: border-box; padding: 32px 20px; display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-login .tm-login-spinner { width: 32px; height: 32px; color: var(--tm-accent); }
.tm-desktop.tm-login #main-div.tm-login-card[style*="block"] { display: flex !important; }
.tm-desktop.tm-login .tm-login-card { width: 100%; max-width: 420px; box-sizing: border-box; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--tm-radius-pop); background: var(--tm-surface); border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-pop); }
.tm-desktop.tm-login .tm-login-card .tm-login-brand { display: flex; margin: 0; color: var(--tm-logo-ink); }
.tm-desktop.tm-login .tm-login-brand .tm-logo { height: 30px; width: auto; }
.tm-desktop.tm-login .tm-login-head { display: flex; flex-direction: column; gap: 4px; }
.tm-desktop.tm-login .tm-login-head h1 { margin: 0; font: 700 22px/1.3 var(--tm-font-display); letter-spacing: -.01em; color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-head p { margin: 0; color: var(--tm-muted); font-size: 14px; }
.tm-desktop.tm-login #email_error.tm-login-error { margin: 0; padding: 12px 14px; border-radius: var(--tm-radius-control); background: var(--tm-danger-soft); border: 1px solid var(--tm-danger-line); color: var(--tm-danger-ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.tm-desktop.tm-login #email_error.tm-login-error[style*="block"] { display: block; }
.tm-desktop.tm-login .tm-login-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tm-desktop.tm-login .tm-login-label { font-weight: 600; font-size: 13px; color: var(--tm-ink); }
.tm-desktop.tm-login .tm-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); }
.tm-desktop.tm-login .tm-field-pass { padding-inline-end: 6px; }
.tm-desktop.tm-login .tm-field:hover { border-color: var(--tm-field-hover); }
.tm-desktop.tm-login .tm-field:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop.tm-login .tm-field:has(.is-invalid) { border-color: var(--tm-danger); }
.tm-desktop.tm-login .tm-field .form-control { flex: 1; min-width: 0; height: 44px; min-height: 0; padding: 0; border: 0 !important; outline: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--tm-ink); font: 15px var(--tm-font); }
.tm-desktop.tm-login .tm-pass-toggle { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-desktop.tm-login .tm-pass-toggle:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-desktop.tm-login .tm-pass-toggle .tm-eye-off, .tm-desktop.tm-login .tm-pass-toggle[aria-pressed="true"] .tm-eye-open { display: none; }
.tm-desktop.tm-login .tm-pass-toggle[aria-pressed="true"] .tm-eye-off { display: block; }
.tm-desktop.tm-login #login_button.tm-login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--tm-radius-control); font: 600 15px var(--tm-font); }
.tm-desktop.tm-login #login_loader { margin: 0 !important; width: 16px; height: 16px; border-width: 2px; }
.tm-desktop.tm-login .tm-login-forgot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tm-accent-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.tm-desktop.tm-login .tm-login-forgot:hover { text-decoration: underline; }
.tm-desktop.tm-login .tm-login-theme { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--tm-line); }
.tm-desktop.tm-login .tm-login-theme .tm-login-label { font-size: 12px; color: var(--tm-muted); }
.tm-desktop.tm-login .tm-login-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--tm-radius-control); background: var(--tm-track); }
.tm-desktop.tm-login .tm-login-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 6px; border: 0; border-radius: calc(var(--tm-radius-control) - 2px); background: transparent; color: var(--tm-muted); font: 600 13px var(--tm-font); cursor: pointer; white-space: nowrap; }
.tm-desktop.tm-login .tm-login-seg button:hover { color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-seg button[aria-pressed="true"] { background: var(--tm-seg-on); color: var(--tm-ink); box-shadow: var(--tm-shadow-seg); }
.tm-desktop.tm-login .tm-login-seg .tm-swatch { width: 14px; height: 14px; }
.tm-desktop.tm-login .tm-login-seg .tm-swatch > span { width: 6px; height: 6px; }
@media (max-width: 480px) { .tm-desktop.tm-login .tm-login-card { padding: 24px 20px; } }
/* 14c. Popups and state windows. */
.tm-desktop.tm-popup { background: transparent !important; margin: 0; }
.tm-desktop.tm-popup #popup { background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); box-shadow: var(--tm-shadow-pop); padding: 26px 24px 22px; }
.tm-desktop.tm-popup #question { font-family: var(--tm-font-display) !important; color: var(--tm-ink); font-size: 21px !important; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.tm-desktop.tm-popup .circles-container { margin-top: 28px; }
.tm-desktop.tm-popup #notice { margin-top: 32px !important; color: var(--tm-muted) !important; font-size: 13px !important; line-height: 1.5; }
.tm-desktop.tm-popup #buttons { gap: 10px; margin-top: 28px; }
.tm-desktop.tm-popup :is(#yesButton,#noButton) { min-height: 48px; border-radius: var(--tm-radius-control); outline-offset: 4px; }
.tm-desktop.tm-popup #timerlongPopup { font-variant-numeric: tabular-nums; color: var(--tm-danger-ink) !important; font-weight: 600; }
.tm-desktop.tm-popup .placeholder { color: var(--tm-muted); font-family: inherit; font-weight: 600; font-size: 12px; }
.tm-desktop.tm-popup :is(.dropdown-category,select,input) { font-family: inherit; border-radius: var(--tm-radius-control); }
.tm-desktop.tm-state { color: var(--tm-ink); font-family: inherit; }
/* Offline window (D-Desktop-App "offline"): red wifi-off badge, what to check, Try again. */
.tm-desktop.tm-state { margin: 0; background: var(--tm-canvas); font-family: var(--tm-font); font-size: 14px; line-height: 1.5; }
.tm-desktop.tm-state .tm-state-page { min-height: 100vh; box-sizing: border-box; padding: 32px 20px; display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-state .tm-state-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tm-desktop.tm-state .tm-state-icon { width: 88px; height: 88px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-state .tm-state-icon-danger { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-desktop.tm-state .tm-state-head { display: flex; flex-direction: column; gap: 6px; }
.tm-desktop.tm-state .tm-state-head h1 { margin: 0; font: 700 24px/1.3 var(--tm-font-display); letter-spacing: -.01em; color: var(--tm-ink); }
.tm-desktop.tm-state .tm-state-head p { margin: 0; color: var(--tm-muted); font-size: 15px; line-height: 1.55; }
.tm-desktop.tm-state .tm-state-steps { list-style: none; margin: 0; padding: 16px 18px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; text-align: left; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-desktop.tm-state .tm-state-steps li { display: flex; align-items: center; gap: 12px; color: var(--tm-ink); }
.tm-desktop.tm-state .tm-state-step-icon { width: 32px; height: 32px; flex: none; border-radius: var(--tm-radius-control); background: var(--tm-accent-soft); color: var(--tm-accent-ink); display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-state .tm-state-btn { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent); font: 600 15px var(--tm-font); cursor: pointer; }
.tm-desktop.tm-state .tm-state-btn:hover { background: var(--tm-accent-hover); }
.tm-desktop.tm-state .tm-state-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
/* Loading window (D-Desktop-App "loading"): hero background, spinning ring round the symbol, wordmark. */
.tm-desktop.tm-state.tm-loading { background: var(--tm-hero) !important; color: var(--tm-hero-text); }
.tm-desktop.tm-loading .tm-loading-page { min-height: 100vh; box-sizing: border-box; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.tm-desktop.tm-loading .tm-loading-mark { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; color: var(--tm-hero-logo); }
.tm-desktop.tm-loading .tm-loading-ring { position: absolute; inset: 0; animation: tm-spin 1.1s linear infinite; }
.tm-desktop.tm-loading .tm-loading-track { stroke: var(--tm-hero-line); }
.tm-desktop.tm-loading .tm-loading-arc { stroke: var(--tm-accent); }
.tm-desktop.tm-loading .tm-loading-symbol { height: 46px; width: auto; }
.tm-desktop.tm-loading .tm-loading-symbol .tm-logo-bar { fill: var(--tm-logo-bar, #8DC63F); }
.tm-desktop.tm-loading .tm-loading-text { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tm-desktop.tm-loading .tm-loading-word { height: 24px; width: auto; color: var(--tm-hero-logo); }
.tm-desktop.tm-loading .tm-loading-text span { color: var(--tm-hero-muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .tm-desktop.tm-loading .tm-loading-ring { animation-duration: 3s; } }
/* Idle check, Final UI #16 D-Idle (countdown) + #17 D-Idle-Long (idle) + result face. v2 2026-11-12: flat, compact, 420px wide,
   height = content. No shadow, no header band, no inner panels; a solid near-black frame (--ic-frame) and ONE radius variable
   (--tm-idle-radius, 25px: change it here). Countdown = progressive amber ring (empty at full time, full at 0);
   idle = full glowing green ring. Frameless transparent window: the card paints its own frame and corners. */
html:has(> .tm-desktop.tm-idle) { height: 100%; background: transparent !important; }
.tm-desktop.tm-idle { --tm-idle-radius: 25px; --tm-idle-ring: 140; --ic-stroke: 9;   /* ring diameter in px (unitless; stroke and text scale with it) */
  --ic-frame: #111; --ic-r-ctl: 10px; box-sizing: border-box; height: 100%; margin: 0; background: transparent !important; color: var(--tm-ink); font: 14px/1.45 var(--tm-font); user-select: none; }
:root[data-tm-theme="midnight"] .tm-desktop.tm-idle, .tm-desktop.tm-idle[data-tm-theme="midnight"] { --ic-frame: #000; --ic-r-ctl: 12px; }
:root[data-tm-theme="daylight"] .tm-desktop.tm-idle, .tm-desktop.tm-idle[data-tm-theme="daylight"] { --ic-r-ctl: 999px; }
.tm-desktop.tm-idle [hidden] { display: none !important; }
.tm-desktop.tm-idle #popup { box-sizing: border-box; width: 350px; min-height: 520px; max-height: calc(100vh - 2 * var(--ic-pad, 0px)); display: flex; flex-direction: column; overflow: hidden; background: var(--tm-surface); border: 1.5px solid var(--ic-frame); border-radius: var(--tm-idle-radius); box-shadow: none; }   /* content height; the middle scrolls only when the screen is shorter */
:root[data-tm-theme="midnight"] .tm-desktop.tm-idle #popup, .tm-desktop.tm-idle[data-tm-theme="midnight"] #popup { box-shadow: inset 0 0 0 1px var(--tm-line); }   /* black frame + hairline: still readable on a dark desktop */
.tm-desktop.tm-idle h1 { margin: 0; color: var(--tm-ink); font: 700 18px/1.3 var(--tm-font-display); letter-spacing: -.01em; }
/* rings (SVG): track + arc, rotated so the arc starts at 12 o'clock */
.tm-desktop.tm-idle .tm-ring { position: relative; flex: none; display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-idle .tm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tm-desktop.tm-idle .tm-ring circle { fill: none; }
.tm-desktop.tm-idle .tm-ring-track { stroke: var(--tm-warning-soft); }
.tm-desktop.tm-idle .tm-ring-arc { stroke: var(--tm-warning); stroke-linecap: butt; transition: stroke-dashoffset 1s linear; }
.tm-desktop.tm-idle .tm-ring-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
.tm-desktop.tm-idle .tm-ring-text b { font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--tm-ink); }
.tm-desktop.tm-idle .tm-ring-text small { color: var(--tm-muted); font-weight: 700; }
/* #16 countdown: ring fills as the time runs out */
.tm-desktop.tm-idle .tm-ic { flex: 1; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 26px 26px 22px; text-align: center; }
.tm-desktop.tm-idle .tm-ic::-webkit-scrollbar { display: none; }
.tm-desktop.tm-idle .tm-ic-chip { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 12px; font-weight: 600; }
.tm-desktop.tm-idle .tm-ic-copy { display: flex; flex-direction: column; gap: 6px; }
.tm-desktop.tm-idle .tm-ic-lead, .tm-desktop.tm-idle .tm-il-lead { margin: 0; color: var(--tm-muted); font-size: 13px; line-height: 1.4; }
.tm-desktop.tm-idle .tm-ic-strong { color: var(--tm-ink); font-weight: 600; overflow-wrap: anywhere; }
.tm-desktop.tm-idle .tm-ring-count, .tm-desktop.tm-idle .tm-ring-idle { width: calc(var(--tm-idle-ring) * 1px); height: calc(var(--tm-idle-ring) * 1px); margin-bottom: 4px; }
.tm-desktop.tm-idle .tm-ring-count circle { stroke-width: calc(var(--ic-stroke) * 104 / var(--tm-idle-ring)); }   /* viewBox 104 -> --ic-stroke px */
.tm-desktop.tm-idle .tm-ring-count .tm-ring-text b { font: 700 calc(var(--tm-idle-ring) * .25px)/1.1 var(--tm-font-display); }
.tm-desktop.tm-idle .tm-ring-count .tm-ring-text small { font-size: calc(var(--tm-idle-ring) * .09px); }
.tm-desktop.tm-idle .tm-ic-actions, .tm-desktop.tm-idle .tm-il-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; margin-top: 4px; }
.tm-desktop.tm-idle .tm-ic-btn.is-primary { order: -1; }   /* portrait: the main answer on top */
.tm-desktop.tm-idle .tm-ic-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 0; box-sizing: border-box; padding: 6px 10px; border-radius: var(--ic-r-ctl); font: 600 13px/1.2 var(--tm-font); text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s; }   /* wraps instead of clipping at any DPI or font */
.tm-desktop.tm-idle .tm-ic-btn svg { flex: none; }
.tm-desktop.tm-idle .tm-ic-btn.is-ghost { border: 1px solid var(--tm-field); background: var(--tm-surface); color: var(--tm-ink); }
.tm-desktop.tm-idle .tm-ic-btn.is-ghost:hover:not(:disabled) { background: var(--tm-hover); }
.tm-desktop.tm-idle .tm-ic-btn.is-primary { border: 0; background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-desktop.tm-idle .tm-ic-btn.is-primary:hover:not(:disabled) { background: var(--tm-accent-hover); }
.tm-desktop.tm-idle .tm-ic-btn:disabled { cursor: progress; opacity: .6; }
.tm-desktop.tm-idle .tm-ic-btn:focus-visible, .tm-desktop.tm-idle select:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
.tm-desktop.tm-idle .tm-ic-foot { margin: 0; color: var(--tm-muted); font-size: 12px; line-height: 1.4; text-align: center; }
.tm-desktop.tm-idle .tm-ic-foot.is-warn { color: var(--tm-warning-ink); font-weight: 500; }
/* #17 idle: full glowing ring left of the copy, then the pickers and buttons (no panels) */
.tm-desktop.tm-idle .tm-il { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tm-desktop.tm-idle .tm-il-hero { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 26px 12px; text-align: center; background: none; }
.tm-desktop.tm-idle .tm-il-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-desktop.tm-idle .tm-ring-idle circle { stroke-width: calc(var(--ic-stroke) * 84 / var(--tm-idle-ring)); }   /* viewBox 84 -> --ic-stroke px */
.tm-desktop.tm-idle .tm-ring-idle .tm-ring-track { stroke: color-mix(in srgb, var(--tm-edited) 22%, transparent); }   /* yellow = time Yes saves as edited */
.tm-desktop.tm-idle .tm-ring-idle .tm-ring-glow { stroke: var(--tm-edited); filter: drop-shadow(0 0 4px var(--tm-edited)) drop-shadow(0 0 9px color-mix(in srgb, var(--tm-edited) 60%, transparent)); animation: tmIdleGlow 2.4s ease-in-out infinite; }
.tm-desktop.tm-idle .tm-ring-idle .tm-ring-text b { font-size: calc(var(--tm-idle-ring) * .25px); }
.tm-desktop.tm-idle .tm-ring-idle .tm-ring-text b.is-long { font-size: calc(var(--tm-idle-ring) * .18px); }
.tm-desktop.tm-idle .tm-ring-idle .tm-ring-text small { font-size: calc(var(--tm-idle-ring) * .08px); letter-spacing: .1em; }
.tm-desktop.tm-idle .tm-il-lead strong { color: var(--tm-ink); font-weight: 600; }
.tm-desktop.tm-idle .tm-il-body { flex: 1 1 auto; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 6px 26px 12px; overflow-y: auto; scrollbar-width: none; }
.tm-desktop.tm-idle .tm-il-body::-webkit-scrollbar { display: none; }
.tm-desktop.tm-idle .tm-il-panel { display: flex; flex-direction: column; gap: 10px; }
.tm-desktop.tm-idle .tm-il-field-wrap { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.tm-desktop.tm-idle .tm-il-label { color: var(--tm-ink-2); font-size: 12px; font-weight: 600; text-align: start; }
.tm-desktop.tm-idle .tm-il-field { display: flex; align-items: center; gap: 8px; height: 38px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--tm-field); border-radius: var(--ic-r-ctl); background: var(--tm-surface); color: var(--tm-muted); }
.tm-desktop.tm-idle .tm-il-field svg { flex: none; }
.tm-desktop.tm-idle .tm-il-field:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-desktop.tm-idle .tm-il-field.is-invalid, .tm-desktop.tm-idle .tm-il-field.is-invalid:focus-within { border-color: var(--tm-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-danger) 22%, transparent); }
.tm-desktop.tm-idle .tm-il-field select { flex: 1; min-width: 0; height: 34px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--tm-ink); font: 13px var(--tm-font); text-overflow: ellipsis; cursor: pointer; }
.tm-desktop.tm-idle .tm-il-field select:focus-visible { outline: 0; }
.tm-desktop.tm-idle .tm-il-field option { background: var(--tm-surface); color: var(--tm-ink); }
/* Idle card: the shared dropdown (js/tm-pick.js) sits inside the card field and opens inline (the window grows to fit it). */
.tm-desktop.tm-idle .tm-dd-btn.is-bare { flex: 1; min-width: 0; height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tm-desktop.tm-idle .tm-dd-btn.is-bare:focus-visible { box-shadow: none; }
.tm-desktop.tm-idle .tm-il-error { color: var(--tm-danger-ink); font-size: 12px; font-weight: 500; text-align: start; }
.tm-desktop.tm-idle .tm-il-note { margin: 0; color: var(--tm-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.tm-desktop.tm-idle .tm-il-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 4px 26px 24px; }
.tm-desktop.tm-idle .tm-il-foot .tm-ic-foot { margin: 0; text-align: center; }
.tm-desktop.tm-idle .tm-il-actions .is-ghost svg { color: var(--tm-muted); }
/* result face */
.tm-desktop.tm-idle .tm-idone { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 22px; flex: 1; text-align: center; animation: tmIdleIn .16s ease-out; }
.tm-desktop.tm-idle .tm-idone-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop.tm-idle .tm-idone-icon.is-break { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-desktop.tm-idle .tm-idone-copy { display: flex; flex-direction: column; gap: 6px; }
.tm-desktop.tm-idle .tm-idone-copy p { margin: 0; color: var(--tm-muted); line-height: 1.5; overflow-wrap: anywhere; }
.tm-desktop.tm-idle #notice { flex: none; margin: 0; padding: 0 20px 12px; color: var(--tm-danger-ink); font-size: 12px; font-weight: 500; text-align: center; }
/* Short screens: the main process tells the page when the work area is lower than the card (body.is-short) or very low (body.is-tiny):
   tighter rings and paddings, then copy lines drop out; the buttons always stay in view. */
.tm-desktop.tm-idle.is-short #popup { min-height: 0; }
.tm-desktop.tm-idle.is-short { --tm-idle-ring: 84; --ic-stroke: 6; } .tm-desktop.tm-idle.is-short .tm-ring-count, .tm-desktop.tm-idle.is-short .tm-ring-idle { margin: 0; }
.tm-desktop.tm-idle.is-short .tm-il-hero { padding: 14px 20px 6px; gap: 6px; } .tm-desktop.tm-idle.is-short .tm-il-foot { padding: 4px 20px 14px; }
.tm-desktop.tm-idle.is-short .tm-ic { padding: 14px 20px 12px; gap: 8px; } .tm-desktop.tm-idle.is-short .tm-il-body { padding: 4px 20px 8px; } .tm-desktop.tm-idle.is-short .tm-ic-btn { min-height: 38px; }
.tm-desktop.tm-idle.is-tiny .tm-il-lead, .tm-desktop.tm-idle.is-tiny .tm-ic-lead, .tm-desktop.tm-idle.is-tiny .tm-ic-foot, .tm-desktop.tm-idle.is-tiny .tm-ic-chip { display: none; }
@keyframes tmIdleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tmIdleGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tm-desktop.tm-idle .tm-idone { animation: none; } .tm-desktop.tm-idle .tm-ring-idle .tm-ring-glow { animation: none; } .tm-desktop.tm-idle .tm-ring-arc { transition: none; } }

/* Screenshot notice (D-Shot-Notice). Frameless 252px-per-screen x 200px window: dark header, captures, Delete. */
html:has(> .tm-desktop.tm-shot) { height: 100%; background: transparent !important; display: flex; align-items: flex-end; overflow: hidden; }
.tm-desktop.tm-shot { box-sizing: border-box; width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface) !important; color: var(--tm-ink); font: 13px/1.4 var(--tm-font); animation: tm-shot-life 5s ease both; }
.tm-desktop.tm-shot.is-held { animation: none; }
@keyframes tm-shot-life { 0% { opacity: 0; transform: translateY(10px); } 7% { opacity: 1; transform: none; } 86% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm-desktop.tm-shot { animation-name: tm-shot-life-still; } @keyframes tm-shot-life-still { 0%, 86% { opacity: 1; } 100% { opacity: 0; } } }
.tm-desktop.tm-shot .header { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; margin: -1px -1px 0; padding: 0 7px 0 11px; background: var(--tm-hero); color: var(--tm-hero-text); }
.tm-desktop.tm-shot .tm-shot-badge { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--tm-accent); color: var(--tm-on-accent); display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-shot .tm-shot-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tm-desktop.tm-shot .tm-shot-count { flex: none; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--tm-hero-3); color: var(--tm-hero-soft); font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.tm-desktop.tm-shot .tm-shot-count[hidden] { display: none; }
.tm-desktop.tm-shot .close-button { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tm-hero-muted); cursor: pointer; }
.tm-desktop.tm-shot .close-button:hover { background: var(--tm-hero-2); color: var(--tm-hero-text); }
.tm-desktop.tm-shot :is(.close-button,#delete-button):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
/* One capture = one card. One screen: full-width thumbnail; several: numbered tiles, two per row, a last odd tile centred. */
.tm-desktop.tm-shot #images { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px 10px 0; }
.tm-desktop.tm-shot #images .image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid var(--tm-line); box-sizing: border-box; }
.tm-desktop.tm-shot .tm-shot-tile { position: relative; display: flex; justify-content: center; min-width: 0; min-height: 0; max-height: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.tm-desktop.tm-shot .tm-shot-tile { transition: transform .15s ease; }
.tm-desktop.tm-shot .tm-shot-tile .image { transition: border-color .15s ease, box-shadow .15s ease; }
.tm-desktop.tm-shot .tm-shot-tile::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; background: var(--tm-toast) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.tm-desktop.tm-shot .tm-shot-tile:is(:hover,:focus-visible) { transform: translateY(-1px); }
.tm-desktop.tm-shot .tm-shot-tile:is(:hover,:focus-visible) .image { border-color: var(--tm-accent); box-shadow: 0 0 0 2px var(--tm-accent); filter: brightness(.9); }
.tm-desktop.tm-shot .tm-shot-tile:is(:hover,:focus-visible)::after { opacity: .92; transform: none; }
.tm-desktop.tm-shot .tm-shot-tile:is(:hover,:focus-visible) .tm-shot-num { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-desktop.tm-shot .tm-shot-tile:active { transform: translateY(0) scale(.99); }
.tm-desktop.tm-shot .tm-shot-tile:focus-visible { outline: 0; }
.tm-desktop.tm-shot #images.is-many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px; align-content: center; }
.tm-desktop.tm-shot #images.is-many .tm-shot-tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px); }
.tm-desktop.tm-shot #images.is-many .image { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.tm-desktop.tm-shot .tm-shot-num { position: absolute; top: 5px; left: 5px; z-index: 1; transition: background-color .15s ease, color .15s ease; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--tm-toast); color: var(--tm-on-toast); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tm-desktop.tm-shot .footer { flex: none; display: flex; padding: 8px 10px 10px; }
.tm-desktop.tm-shot .footer:has(#delete-button[hidden]) { display: none; }
.tm-desktop.tm-shot:has(#delete-button[hidden]) #images { padding-bottom: 10px; }
.tm-desktop.tm-shot #delete-button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--tm-danger-line); border-radius: var(--tm-radius-control); background: var(--tm-danger-soft); color: var(--tm-danger-ink); font: 600 13px var(--tm-font); white-space: nowrap; cursor: pointer; }
.tm-desktop.tm-shot #delete-button:hover { filter: brightness(.97); }
/* Confirm new project (D-Confirm-Project). Transparent frameless 421x330 window: a rounded card inside it. */
.tm-desktop.tm-confirm-project { margin: 0; background: transparent !important; color: var(--tm-ink); font: 14px/1.5 var(--tm-font); }
.tm-desktop.tm-confirm-project #popup { box-sizing: border-box; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 26px 24px; text-align: center; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); overflow: hidden; }
.tm-desktop.tm-confirm-project .tm-confirm-project-icon { width: 64px; height: 64px; margin-bottom: 8px; flex: none; border-radius: 18px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); display: flex; align-items: center; justify-content: center; }
.tm-desktop.tm-confirm-project h1 { margin: 0; font: 700 20px/1.3 var(--tm-font-display); letter-spacing: -.01em; color: var(--tm-ink); }
.tm-desktop.tm-confirm-project p { margin: 0; color: var(--tm-muted); font-size: 14px; }
.tm-desktop.tm-confirm-project #buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.tm-desktop.tm-confirm-project #buttons button { min-height: 48px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 14px var(--tm-font); cursor: pointer; }
.tm-desktop.tm-confirm-project #buttons button:hover { background: var(--tm-hover); }
.tm-desktop.tm-confirm-project #buttons #yes { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-on-accent); }
.tm-desktop.tm-confirm-project #buttons #yes:hover { background: var(--tm-accent-hover); border-color: var(--tm-accent-hover); }
.tm-desktop.tm-confirm-project #buttons button:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
/* Desktop-only rules that used to sit in the shared part (now prefixed .tm-desktop so the shared part is identical in both apps). */
/* Clickable Jira key chip (desktop): opens the ticket in the browser. */
.tm-desktop button.tm-jira-key { border: 0; cursor: pointer; margin: 0; }
.tm-desktop button.tm-jira-key:hover { text-decoration: underline; filter: brightness(0.97); }
.tm-desktop button.tm-jira-key:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
.tm-desktop .tm-now-jira { margin-top: 6px; align-self: flex-start; }
.tm-desktop .tm-now-jira[hidden] { display: none; }
.tm-desktop #tasks_card .tm-pager, .tm-desktop #tracker-search-result-table .tm-pager { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--tm-line-soft); gap: 8px 12px; }
.tm-desktop :is(#tasks_card,#tracker-search-result-table) .tm-pager-nav { margin-inline-start: 0; width: 100%; }
.tm-desktop :is(#tasks_card,#tracker-search-result-table) .tm-pager-list { justify-content: center; }

/* ==== 13k. Company settings: Time tracker section (toggle rows like P-Settings, minute fields, work schedule). ==== */
.tm-ui .tm-settings-head-icon.tm-tint-info { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui fieldset.tm-settings-body { min-width: 0; margin: 0; border: 0; display: flex; flex-direction: column; gap: 22px; }
.tm-ui fieldset.tm-settings-body:disabled { opacity: .6; }
.tm-ui .tm-settings-notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 13px; font-weight: 500; }
.tm-ui .tm-settings-toggles { border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; }
.tm-ui .tm-settings-toggle { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; cursor: pointer; }
.tm-ui .tm-settings-toggle + .tm-settings-toggle { border-top: 1px solid var(--tm-line); }
.tm-ui .tm-settings-toggle:hover { background: var(--tm-hover); }
.tm-ui .tm-settings-toggle-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--tm-line); color: var(--tm-ink-2); }
.tm-ui .tm-settings-toggle-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-ui .tm-settings-toggle-text strong { color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-settings-toggle-text span { color: var(--tm-ink-2); font-size: 13px; line-height: 1.45; }
.tm-ui .tm-settings-toggle .tm-switch { flex: none; margin: 0; }
.tm-ui .tm-switch input:focus-visible + .tm-switch-track { box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-settings-unit { position: relative; display: block; }
.tm-ui .tm-settings-fixed { margin: 0; display: flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px dashed var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-table-head); color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-settings-unit .form-control { padding-right: 52px; }
.tm-ui .tm-settings-unit > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--tm-muted); font-size: 13px; pointer-events: none; }
.tm-ui .tm-settings-field[data-off] { opacity: .5; }
.tm-ui .tm-settings-group h3 { margin: 0; color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-settings-group > .tm-settings-hint { margin: 4px 0 12px; }
.tm-ui .tm-schedule { border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; }
.tm-ui .tm-schedule-row { display: grid; grid-template-columns: 120px 150px auto 150px 1fr; align-items: center; gap: 12px; padding: 8px 16px; }
.tm-ui .tm-schedule-row + .tm-schedule-row { border-top: 1px solid var(--tm-line); }
.tm-ui .tm-schedule-day { color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-schedule-row .form-control { height: 40px; }
.tm-ui .tm-schedule-row .form-control.is-invalid { padding-right: 12px; background-image: none; }
.tm-ui .tm-schedule-to { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-schedule-off { justify-self: start; visibility: hidden; padding: 3px 10px; border-radius: 999px; background: var(--tm-track); color: var(--tm-muted); font-size: 12px; font-weight: 600; }
.tm-ui .tm-schedule-row.is-off .tm-schedule-off { visibility: visible; }
.tm-ui .tm-schedule-row.is-off .tm-schedule-day { color: var(--tm-muted); }
.tm-ui .tm-schedule-error { grid-column: 2 / -1; margin: 0; }
@media (max-width: 767.98px) {
  .tm-ui .tm-schedule-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 12px; }
  .tm-ui .tm-schedule-day { grid-column: 1 / 3; grid-row: 1; }
  .tm-ui .tm-schedule-off { grid-column: 3; grid-row: 1; justify-self: end; }
  .tm-ui .tm-schedule-row:not(.is-off) .tm-schedule-off { display: none; }
  .tm-ui .tm-schedule-error { grid-column: 1 / -1; }
  .tm-ui .tm-settings-toggle { align-items: flex-start; }
}

/* 13l Edit time read-only (company "people can edit their own time" off) */
.tm-ui .tm-et-locked:not([hidden]) { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1px solid var(--tm-warning-line); border-radius: var(--tm-radius-control); background: var(--tm-warning-soft); color: var(--tm-warning-ink); line-height: 1.45; }
.tm-ui .tm-et-locked svg { flex: none; margin-top: 1px; }
.tm-ui .tm-et-locked b { font-weight: 600; margin-right: 4px; }
.tm-ui .tm-et.is-readonly .tm-et-head span:last-child, .tm-ui .tm-et.is-readonly .tm-et-actions { visibility: hidden; }

/* 13m Confirm dialogs (SweetAlert2 .show_confirm, every delete in the app): themed card, danger confirm, outline cancel */
.tm-ui .swal2-container.swal2-backdrop-show { background: rgba(10, 10, 12, .48); }
.tm-ui .swal2-popup { width: min(420px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); background: var(--tm-surface); color: var(--tm-ink); box-shadow: var(--tm-shadow-dialog); font-family: var(--tm-font); }
.tm-ui .swal2-popup .swal2-icon { width: 52px; height: 52px; margin: 0 auto 16px; border: 0; border-radius: 50%; }
.tm-ui .swal2-popup .swal2-icon.swal2-warning { background: var(--tm-danger-soft); color: var(--tm-danger); }
.tm-ui .swal2-popup .swal2-icon .swal2-icon-content { color: var(--tm-danger) !important; font-size: 28px; font-weight: 700; }
.tm-ui .swal2-popup .swal2-title { padding: 0; margin: 0 0 8px; color: var(--tm-ink); font: 700 18px/1.3 var(--tm-font); overflow-wrap: anywhere; }
.tm-ui .swal2-popup .swal2-html-container { margin: 0; padding: 0; color: var(--tm-muted); font: 400 14px/1.5 var(--tm-font); }
.tm-ui .swal2-popup .swal2-actions { width: 100%; margin: 24px 0 0; gap: 12px; flex-wrap: nowrap; }
.tm-ui .swal2-popup .swal2-actions .btn { flex: 1 1 0; height: 44px; margin: 0; padding: 0 16px; border-radius: var(--tm-radius-control); font: 600 15px var(--tm-font); box-shadow: none; }
.tm-ui .swal2-popup .swal2-actions .btn-danger { border: 1px solid var(--tm-field) !important; background: var(--tm-surface) !important; color: var(--tm-ink) !important; }
.tm-ui .swal2-popup .swal2-actions .btn-danger:hover { border-color: var(--tm-field-hover) !important; filter: none; }
.tm-ui .swal2-popup .swal2-actions .btn-success { border: 1px solid var(--tm-danger) !important; background: var(--tm-danger) !important; color: var(--tm-on-danger) !important; }
.tm-ui .swal2-popup .swal2-actions .btn-success:hover { filter: brightness(.94); }
.tm-ui .swal2-popup .swal2-actions .btn:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }

/* 13n Projects (P-Projects, V1 internal projects): count + search bar, project cards, "Create project" card */
.tm-ui .page-header:has(+ .tm-proj) .tm-page-icon { background: var(--tm-tint-teal); color: var(--tm-tint-teal-ink); }
.tm-ui .tm-proj { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-proj-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tm-ui .tm-proj-bar .tm-team-search { margin: 0 0 0 auto; }
.tm-ui .tm-proj-total { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--tm-surface); border: 1px solid var(--tm-line); color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-proj-total .tm-team-count { margin-right: 6px; }
.tm-ui .tm-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tm-ui .tm-proj-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card, 16px); background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui .tm-proj-card[hidden] { display: none; }
.tm-ui .tm-proj-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.tm-ui .tm-proj-icon { width: 44px; height: 44px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; }
.tm-ui .tm-proj-icon.has-color { background: color-mix(in srgb, var(--tm-proj-color) 16%, var(--tm-surface)); color: var(--tm-proj-color); }
.tm-ui .tm-proj-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tm-ui .tm-proj-name { color: var(--tm-ink); font-size: 16px; font-weight: 650; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.tm-ui .tm-proj-name:hover { color: var(--tm-accent-ink); text-decoration: none; }
.tm-ui .tm-proj-sub { display: flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-proj-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tm-ui .tm-proj-stats > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--tm-canvas); }
.tm-ui .tm-proj-stats > span > span { display: flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-proj-stats b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-proj-jira { border: 1px solid var(--tm-line-soft); border-radius: 10px; background: var(--tm-canvas); }
.tm-ui .tm-proj-jira > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--tm-ink); list-style: none; }
.tm-ui .tm-proj-jira > summary::-webkit-details-marker { display: none; }
.tm-ui .tm-proj-jira > summary em { color: var(--tm-muted); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.tm-ui .tm-proj-jira ul { margin: 0; padding: 0 12px 8px; list-style: none; max-height: 220px; overflow-y: auto; scrollbar-width: none; }
.tm-ui .tm-proj-jira ul::-webkit-scrollbar { display: none; }
.tm-ui .tm-proj-jira li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 6px 0; border-top: 1px solid var(--tm-line-soft); font-size: 13px; }
.tm-ui .tm-proj-jira li .tm-jt-title { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); }
.tm-ui .tm-proj-jira li.is-done .tm-jt-title { color: var(--tm-muted); text-decoration: line-through; }
.tm-ui .tm-proj-jira .tm-jt-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 1px 8px; border-radius: 999px; background: var(--tm-line-soft); color: var(--tm-ink); font-size: 12px; white-space: nowrap; }
.tm-ui .tm-proj-jira .tm-jt-none, .tm-ui .tm-proj-jira .tm-jt-more { padding: 0 12px 10px; color: var(--tm-muted); font-size: 12px; margin: 0; }
.tm-ui .tm-proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.tm-ui .tm-proj-date { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-proj-people { display: flex; align-items: center; }
.tm-ui .tm-proj-people > span { width: 30px; height: 30px; margin-left: -6px; border: 2px solid var(--tm-surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.tm-ui .tm-proj-people > span:first-child { margin-left: 0; }
.tm-ui .tm-proj-people .tm-proj-more { background: var(--tm-line-soft); color: var(--tm-muted); }
.tm-ui .tm-proj-people em { color: var(--tm-muted); font-size: 13px; font-style: normal; }
.tm-ui .tm-proj-manage { height: 36px; padding: 0 12px; font-size: 13px; }
.tm-ui .tm-proj-new { align-items: center; justify-content: center; gap: 6px; min-height: 168px; border-style: dashed; border-color: var(--tm-field); background: transparent; text-align: center; text-decoration: none; transition: border-color .12s ease, background-color .12s ease; }
.tm-ui .tm-proj-new:hover { border-color: var(--tm-accent); background: var(--tm-surface); text-decoration: none; }
.tm-ui .tm-proj-new b { margin-top: 8px; color: var(--tm-ink); font-size: 15px; }
.tm-ui .tm-proj-new > span:last-child { max-width: 240px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-proj-nomatch { margin: 0; color: var(--tm-muted); }
.tm-ui .tm-proj-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--tm-track); }
.tm-ui .tm-proj-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-muted); font: 500 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-proj-tab.is-active { background: var(--tm-seg-on); color: var(--tm-ink); font-weight: 600; box-shadow: var(--tm-shadow-seg); }
.tm-ui .tm-proj-filters { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-left: auto; }
.tm-ui .tm-proj-filters .tm-team-search { flex: 0 1 260px; width: 260px; margin: 0; }
.tm-ui .tm-proj-select { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 4px 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); }
.tm-ui .tm-proj-select select { height: 38px; max-width: 200px; padding: 0 28px 0 0; border: 0; background-color: transparent; color: var(--tm-ink); font: 500 14px var(--tm-font); box-shadow: none; }
.tm-ui .tm-proj-select:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-proj-star { width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--tm-radius-control); background: transparent; color: var(--tm-faint); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-ui .tm-proj-star:hover { background: var(--tm-hover); }
.tm-ui .tm-proj-star .fas { color: var(--tm-warning); }
.tm-ui .tm-proj-menu > .tm-icon-btn { width: 36px; height: 36px; }
.tm-ui .tm-proj-menu .dropdown-menu form { margin: 0; }
.tm-ui .tm-proj-menu .tm-danger-item, .tm-ui .tm-proj-menu .tm-danger-item i { color: var(--tm-danger-ink); }
.tm-ui .tm-proj-bill { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 13px; font-weight: 500; }
.tm-ui .tm-proj-bill.is-billable { color: var(--tm-accent-ink); }
.tm-ui #project-table .loader { margin: 40px auto; }
.tm-ui .tm-proj-new.is-empty { cursor: default; }
@media (max-width: 640px) {
  .tm-ui .tm-proj-filters { flex-wrap: wrap; width: 100%; margin: 0; }
  .tm-ui .tm-proj-filters .tm-team-search { width: auto; }
  .tm-ui .tm-proj-filters .tm-team-search, .tm-ui .tm-proj-select { flex: 1 1 100%; }
  .tm-ui .tm-proj-select select { max-width: none; flex: 1; }
  .tm-ui .tm-proj-tabs { width: 100%; }
  .tm-ui .tm-proj-tab { flex: 1; justify-content: center; }
  .tm-ui .tm-proj-bar .tm-team-search { flex: 1 1 100%; margin: 0; }
  .tm-ui .tm-proj-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 15. Web sign-in pages (P-Login / P-Register / P-Forgot / P-Reset): hero panel + form panel, layouts/auth. */
.tm-auth-web { margin: 0; background: var(--tm-auth-canvas); color: var(--tm-ink); font-family: var(--tm-font); }
.tm-auth-web .tm-auth-shell { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--tm-auth-canvas); }
.tm-auth-web .tm-auth-hero { flex: 1 1 420px; max-width: 46%; box-sizing: border-box; display: flex; flex-direction: column; gap: 40px; padding: 44px 56px; background: var(--tm-hero); color: var(--tm-hero-soft); }
.tm-auth-web .tm-auth-hero-brand { display: inline-flex; align-self: flex-start; text-decoration: none; }
.tm-auth-web .tm-auth-hero .tm-brand { margin: 0; color: var(--tm-hero-logo); }
.tm-auth-web .tm-auth-hero .tm-brand .tm-logo { height: 34px; }
.tm-auth-web .tm-auth-hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.tm-auth-web .tm-auth-hero-copy h2 { margin: 0; color: var(--tm-hero-text); font: 700 36px/1.15 var(--tm-font-display); letter-spacing: -.02em; }
.tm-auth-web .tm-auth-hero-copy p { margin: 0; color: var(--tm-hero-muted); font-size: 16px; line-height: 1.6; }
.tm-auth-web .tm-auth-hero-badge { width: 48px; height: 48px; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; background: var(--tm-hero-3); color: var(--tm-hero-accent); }
.tm-auth-web .tm-auth-hero-card { max-width: 420px; padding: 16px; border-radius: var(--tm-radius-pop); background: var(--tm-hero-2); border: 1px solid var(--tm-hero-line); display: flex; flex-direction: column; gap: 14px; }
.tm-auth-web .tm-auth-hero-timer { display: flex; align-items: center; gap: 12px; }
.tm-auth-web .tm-auth-hero-play { width: 40px; height: 40px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-auth-web .tm-auth-hero-task { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-auth-web .tm-auth-hero-task b { color: var(--tm-hero-text); font-weight: 600; }
.tm-auth-web .tm-auth-hero-task span { color: var(--tm-hero-muted); font-size: 12px; }
.tm-auth-web .tm-auth-hero-clock { color: var(--tm-hero-text); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-auth-web .tm-auth-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-auth-web .tm-auth-hero-chips > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--tm-hero-3); color: var(--tm-hero-soft); font-size: 12px; font-weight: 600; }
.tm-auth-web .tm-auth-hero-chips > span.is-ok { color: var(--tm-hero-accent); }
.tm-auth-web .tm-auth-hero-chips i { width: 7px; height: 7px; border-radius: 50%; background: var(--tm-hero-accent); }
.tm-auth-web :is(.tm-auth-hero-list,.tm-auth-hero-checks,.tm-auth-hero-steps) { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.tm-auth-web .tm-auth-hero-list li { display: flex; gap: 14px; align-items: flex-start; }
.tm-auth-web .tm-auth-hero-icon { width: 40px; height: 40px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; background: var(--tm-hero-3); color: var(--tm-hero-accent); }
.tm-auth-web .tm-auth-hero-list li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.tm-auth-web .tm-auth-hero-list b { color: var(--tm-hero-text); font-size: 15px; font-weight: 600; }
.tm-auth-web .tm-auth-hero-list li > span:last-child > span { color: var(--tm-hero-muted); line-height: 1.5; }
.tm-auth-web :is(.tm-auth-hero-checks,.tm-auth-hero-steps) { gap: 14px; }
.tm-auth-web :is(.tm-auth-hero-checks,.tm-auth-hero-steps) li { display: flex; align-items: center; gap: 12px; color: var(--tm-hero-soft); font-size: 15px; }
.tm-auth-web :is(.tm-auth-hero-checks,.tm-auth-hero-steps) li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-hero-3); color: var(--tm-hero-accent); font-size: 13px; font-weight: 700; }
.tm-auth-web .tm-auth-copy { margin-top: auto; color: var(--tm-hero-muted); font-size: 12px; }

.tm-auth-web .tm-auth-main { flex: 1 1 560px; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; padding: 28px 40px 40px; background: var(--tm-auth-canvas); }
.tm-auth-web .tm-auth-top { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.tm-auth-web .tm-auth-theme { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--tm-track); }
.tm-auth-web .tm-auth-theme button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--tm-muted); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-auth-web .tm-auth-theme button[aria-pressed="true"] { background: var(--tm-seg-on); color: var(--tm-ink); box-shadow: var(--tm-shadow-seg); }
.tm-auth-web .tm-auth-swatch { width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 1px solid rgba(148,163,184,.7); display: flex; align-items: center; justify-content: center; }
.tm-auth-web .tm-auth-swatch i { width: 6px; height: 6px; border-radius: 50%; background: #8DC63F; }
.tm-auth-web .tm-auth-swatch.is-evergreen { background: #414042; }
.tm-auth-web .tm-auth-swatch.is-midnight { background: #111112; }
.tm-auth-web .tm-auth-swatch.is-daylight { background: #FFFFFF; }
.tm-auth-web .tm-auth-lang { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; margin: 0; padding: 0 0 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); }
.tm-auth-web .tm-auth-lang select { width: auto !important; min-width: 0; height: 44px; min-height: 0; margin: 0 !important; padding: 0 30px 0 0 !important; text-align: start !important; text-align-last: start; border: 0 !important; border-radius: 0 !important; background-color: transparent !important; color: var(--tm-ink) !important; box-shadow: none !important; font: 500 14px var(--tm-font) !important; cursor: pointer; }
.tm-auth-web .tm-auth-lang:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-auth-web .tm-auth-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.tm-auth-web .tm-auth-panel { width: 100%; max-width: 420px; }

.tm-auth-web .tm-auth-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.tm-auth-web .tm-auth-head { display: flex; flex-direction: column; gap: 6px; }
.tm-auth-web .tm-auth-head h1 { margin: 0; color: var(--tm-ink); font: 700 30px/1.2 var(--tm-font-display); letter-spacing: -.02em; }
.tm-auth-web .tm-auth-head p { margin: 0; color: var(--tm-muted); font-size: 15px; line-height: 1.5; }
.tm-auth-web .tm-auth-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tm-auth-web .tm-auth-label { color: var(--tm-ink); font-size: 13px; font-weight: 600; }
.tm-auth-web .tm-auth-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); transition: border-color .12s ease, box-shadow .12s ease; }
.tm-auth-web .tm-auth-input.has-action { padding-inline-end: 6px; }
.tm-auth-web .tm-auth-input svg { flex: none; }
.tm-auth-web .tm-auth-input:hover { border-color: var(--tm-field-hover); }
.tm-auth-web .tm-auth-input:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-auth-web .tm-auth-input.is-invalid { border-color: var(--tm-danger); }
.tm-auth-web .tm-auth-input input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--tm-ink); font: 15px var(--tm-font); }
.tm-auth-web .tm-auth-input input:focus-visible { outline: 0; box-shadow: none; }
.tm-auth-web .tm-auth-input input:-webkit-autofill { -webkit-text-fill-color: var(--tm-ink); -webkit-box-shadow: 0 0 0 40px var(--tm-surface) inset; }
.tm-auth-web .tm-auth-show { height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tm-ink-2, var(--tm-ink)); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-auth-web .tm-auth-show:hover { background: var(--tm-hover); }
.tm-auth-web .tm-auth-error { display: flex; align-items: center; gap: 6px; color: var(--tm-danger-ink); font-size: 13px; }
.tm-auth-web .tm-auth-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); line-height: 1.45; }
.tm-auth-web .tm-auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin: 0; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent); font: 600 15px var(--tm-font); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.tm-auth-web .tm-auth-submit:hover { background: var(--tm-accent-hover); color: var(--tm-on-accent); text-decoration: none; }
.tm-auth-web .tm-auth-secondary { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-weight: 600; text-decoration: none; }
.tm-auth-web .tm-auth-secondary:hover { border-color: var(--tm-field-hover); color: var(--tm-ink); text-decoration: none; }
.tm-auth-web .tm-auth-alt { margin: 0; color: var(--tm-ink-2, var(--tm-muted)); text-align: center; }
.tm-auth-web .tm-auth-alt a, .tm-auth-web .tm-auth-back { color: var(--tm-accent-ink); font-weight: 600; text-decoration: none; }
.tm-auth-web .tm-auth-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.tm-auth-web .tm-auth-back.is-button { padding: 0; border: 0; background: none; font: 600 14px var(--tm-font); cursor: pointer; }
.tm-auth-web .tm-auth-done { align-items: center; text-align: center; }
.tm-auth-web .tm-auth-done .tm-auth-head { align-items: center; }
.tm-auth-web .tm-auth-done > :is(form,.tm-auth-secondary) { align-self: stretch; }
.tm-auth-web .tm-auth-done .tm-auth-back { align-self: center; }
.tm-auth-web .tm-auth-done-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-auth-web .tm-auth-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--tm-canvas); border: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 13px; text-align: start; }
.tm-auth-web .tm-auth-note.is-ok { border-color: var(--tm-accent-line); background: var(--tm-accent-softer); color: var(--tm-accent-ink); }
.tm-auth-web .tm-auth-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--tm-muted); font-size: 13px; }
.tm-auth-web .tm-auth-rules li { display: flex; align-items: center; gap: 8px; }
.tm-auth-web .tm-auth-rules li > span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--tm-field); box-sizing: border-box; }
.tm-auth-web .tm-auth-rules li.is-met { color: var(--tm-accent-ink); }
.tm-auth-web .tm-auth-rules li.is-met > span { border: 0; background: var(--tm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232224' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tm-auth-web .tm-auth-captcha { display: flex; flex-direction: column; gap: 6px; }
/* 15a. Login form extras (P-Login): forgot row, or-divider, desktop hint. */
.tm-auth-web .tm-auth-row { display: flex; justify-content: flex-end; }
.tm-auth-web .tm-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--tm-muted); font-size: 13px; }
.tm-auth-web .tm-auth-divider::before, .tm-auth-web .tm-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--tm-line); }
.tm-auth-web .tm-auth-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--tm-canvas); border: 1px solid var(--tm-line); }
.tm-auth-web .tm-auth-hint-icon { width: 36px; height: 36px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-auth-web .tm-auth-hint > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tm-auth-web .tm-auth-hint b { color: var(--tm-ink); font-weight: 600; }
.tm-auth-web .tm-auth-hint > span:last-child > span { color: var(--tm-muted); font-size: 13px; line-height: 1.5; }

/* 15b. Sign-in hero: centred block + looping showcase (partials/auth-showcase). */
.tm-auth-web .tm-auth-hero { gap: 28px; }
.tm-auth-web .tm-auth-hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; width: 100%; max-width: 480px; margin: 0 auto; }
.tm-auth-web .tm-auth-hero-copy h2 { font-size: 34px; }
.tm-auth-web .tm-auth-copy { margin-top: 0; text-align: center; }
.tm-show { display: flex; flex-direction: column; gap: 22px; }
.tm-show-card { position: relative; padding: 18px; border-radius: var(--tm-radius-pop); background: var(--tm-hero-2); border: 1px solid var(--tm-hero-line); box-shadow: 0 24px 60px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 14px; animation: tmShowFloat 6s ease-in-out infinite; }
.tm-show-timer { display: flex; align-items: center; gap: 12px; }
.tm-show-play { position: relative; width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; }
.tm-show-sweep { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tm-show-sweep circle { fill: none; stroke: var(--tm-hero-3); stroke-width: 2.5; }
.tm-show-sweep circle.is-sec { stroke: var(--tm-hero-accent); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; filter: drop-shadow(0 0 4px var(--tm-hero-accent)); animation: tmShowSweep 60s linear infinite; animation-delay: var(--tm-sweep-delay, 0s); }
.tm-show-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 25%, #B5E07A 0, var(--tm-accent) 55%, #6FA52A 100%); box-shadow: 0 0 0 0 rgba(141,198,63,.55), inset 0 1px 0 rgba(255,255,255,.35); animation: tmShowGlow 2.4s ease-in-out infinite; }
.tm-show-btn i { width: 4px; height: 14px; border-radius: 2px; background: #1E2A0E; transform-origin: center; animation: tmShowBar 1.2s ease-in-out infinite; }
.tm-show-btn i + i { animation-delay: .6s; }
.tm-show-task { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-show-task b { color: var(--tm-hero-text); font-weight: 600; }
.tm-show-task span { color: var(--tm-hero-muted); font-size: 12px; }
.tm-show-clock { color: var(--tm-hero-text); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tm-show-goal { display: flex; align-items: center; gap: 10px; color: var(--tm-hero-muted); font-size: 12px; font-weight: 600; }
.tm-show-goal i { flex: 1; height: 6px; border-radius: 999px; background: var(--tm-hero-3); overflow: hidden; }
.tm-show-goal b { display: block; width: 71%; height: 100%; border-radius: inherit; background: var(--tm-hero-accent); transform-origin: left; animation: tmShowGrow 20s linear infinite; }
.tm-show-stage { position: relative; height: 128px; border-radius: 12px; background: var(--tm-hero); border: 1px solid var(--tm-hero-line); overflow: hidden; }
.tm-show-scene { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.tm-show[data-scene="1"] [data-scene-id="1"], .tm-show[data-scene="2"] [data-scene-id="2"], .tm-show[data-scene="3"] [data-scene-id="3"], .tm-show[data-scene="4"] [data-scene-id="4"], .tm-show[data-scene="5"] [data-scene-id="5"] { opacity: 1; transform: none; }
.tm-show-caption { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--tm-hero-soft); font-size: 12px; font-weight: 600; }
.tm-show-caption svg { color: var(--tm-hero-accent); flex: none; }
.tm-show-rows { display: flex; flex-direction: column; gap: 10px; }
.tm-show-rows > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--tm-hero-2); color: var(--tm-hero-soft); font-size: 13px; }
.tm-show-rows i { width: 8px; height: 8px; border-radius: 50%; background: var(--tm-hero-muted); }
.tm-show-rows i.is-accent { background: var(--tm-hero-accent); animation: tmShowBlink 1.2s ease-in-out infinite; }
.tm-show-rows em { margin-left: auto; color: var(--tm-hero-accent); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.tm-show-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--tm-hero-3); border-top-color: var(--tm-hero-accent); animation: tmShowSpin .9s linear infinite; }
.tm-show-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tm-show-shot { position: relative; height: 62px; padding: 8px; border-radius: 8px; background: var(--tm-hero-3); border: 1px solid var(--tm-hero-line); display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.tm-show-shot i { display: block; height: 6px; border-radius: 3px; background: var(--tm-hero-line); }
.tm-show-shot i:nth-child(1) { width: 70%; } .tm-show-shot i:nth-child(2) { width: 90%; } .tm-show-shot i:nth-child(3) { width: 50%; background: var(--tm-hero-accent); opacity: .5; }
.tm-show-shot b { position: absolute; right: 6px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-hero-2); color: var(--tm-hero-soft); font-size: 10px; }
.tm-show-shot::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; opacity: 0; }
.tm-show[data-scene="2"] .tm-show-shot { animation: tmShowPop .5s ease both; animation-delay: var(--d); }
.tm-show[data-scene="2"] .tm-show-shot::after { animation: tmShowFlash .6s ease both; animation-delay: var(--d); }
.tm-show-eq { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.tm-show-eq i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--tm-hero-accent); opacity: .85; transform-origin: bottom; animation: tmShowEq 1.1s ease-in-out infinite alternate; animation-delay: var(--d); }
.tm-show-idle { display: flex; align-items: center; gap: 14px; }
.tm-show-ring { position: relative; width: 64px; height: 64px; flex: none; }
.tm-show-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-show-ring circle { fill: none; stroke: var(--tm-hero-3); stroke-width: 3; }
.tm-show-ring circle.is-run { stroke: var(--tm-warning, #F5B544); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 0; }
.tm-show[data-scene="4"] .tm-show-ring circle.is-run { animation: tmShowCount 4s linear both; }
.tm-show-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tm-hero-text); font-size: 13px; }
.tm-show-idle-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-show-idle-text b { color: var(--tm-hero-text); font-size: 15px; }
.tm-show-idle-text > span { color: var(--tm-hero-muted); font-size: 12px; }
.tm-show-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tm-show-btns em { padding: 4px 8px; border-radius: 6px; background: var(--tm-hero-3); color: var(--tm-hero-soft); font-style: normal; font-size: 11px; font-weight: 600; }
.tm-show-btns em:first-child { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-show-week { display: flex; align-items: flex-end; gap: 12px; height: 70px; }
.tm-show-week > span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.tm-show-week i { width: 100%; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--tm-hero-accent); transform-origin: bottom; }
.tm-show-week i.has-edit { background: linear-gradient(to top, var(--tm-hero-accent) 0 60%, var(--tm-edited, #F5B544) 60% 100%); }
.tm-show[data-scene="5"] .tm-show-week i { animation: tmShowRise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.tm-show-week b { color: var(--tm-hero-muted); font-size: 10px; font-weight: 600; }
.tm-show-dots { display: flex; justify-content: center; gap: 6px; }
.tm-show-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--tm-hero-3); transition: width .3s ease, background-color .3s ease; }
.tm-show[data-scene="1"] [data-dot="1"], .tm-show[data-scene="2"] [data-dot="2"], .tm-show[data-scene="3"] [data-dot="3"], .tm-show[data-scene="4"] [data-dot="4"], .tm-show[data-scene="5"] [data-dot="5"] { width: 18px; background: var(--tm-hero-accent); }
.tm-show-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-show-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease; }
.tm-show-list li.is-on { background: var(--tm-hero-2); border-color: var(--tm-hero-line); }
.tm-show-icon { width: 36px; height: 36px; flex: none; border-radius: var(--tm-radius-control); display: flex; align-items: center; justify-content: center; background: var(--tm-hero-3); color: var(--tm-hero-accent); transition: background-color .35s ease, color .35s ease; }
.tm-show-list li.is-on .tm-show-icon { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-show-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tm-show-list b { color: var(--tm-hero-text); font-size: 14px; font-weight: 600; }
.tm-show-list li > span:last-child > span { color: var(--tm-hero-muted); font-size: 13px; line-height: 1.45; }
@keyframes tmShowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tmShowSweep { to { stroke-dashoffset: 0; } }
@keyframes tmShowGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(141,198,63,.45), 0 0 18px 2px rgba(141,198,63,.18), inset 0 1px 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 7px rgba(141,198,63,0), 0 0 26px 6px rgba(141,198,63,.32), inset 0 1px 0 rgba(255,255,255,.35); } }
@keyframes tmShowBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
@keyframes tmShowGrow { from { transform: scaleX(.9); } to { transform: scaleX(1.05); } }
@keyframes tmShowBlink { 50% { opacity: .3; } }
@keyframes tmShowSpin { to { transform: rotate(360deg); } }
@keyframes tmShowPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tmShowFlash { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }
@keyframes tmShowEq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes tmShowCount { to { stroke-dashoffset: 97.4; } }
@keyframes tmShowRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .tm-show *, .tm-show *::after, .tm-show-card { animation: none !important; transition: none !important; }
}
/* Login view (old markup until its restyle): keep it inside the new panel. */
.tm-auth-web #main-div > div { margin-top: 0 !important; }
.tm-auth-web #main-div .navbar-brand { display: none; }
@media (max-width: 900px) {
  .tm-auth-web .tm-auth-shell { flex-direction: column; flex-wrap: nowrap; }
  .tm-auth-web .tm-auth-hero { flex: none; max-width: none; gap: 18px; padding: 20px 16px; }
  .tm-auth-web .tm-auth-hero .tm-brand .tm-logo { height: 28px; }
  .tm-auth-web .tm-auth-hero > :not(.tm-auth-hero-brand) { display: none; }
  .tm-auth-web .tm-auth-main { flex: 1 0 auto; padding: 16px 16px 32px; gap: 16px; }
  .tm-auth-web .tm-auth-body { align-items: flex-start; padding-top: 12px; }
  .tm-auth-web .tm-auth-top { justify-content: space-between; }
  .tm-auth-web .tm-auth-theme button { padding: 0 9px; }
  .tm-auth-web .tm-auth-head h1 { font-size: 26px; }
}
@media (max-width: 420px) {
  .tm-auth-web .tm-auth-theme { flex: 1 1 100%; }
  .tm-auth-web .tm-auth-theme button { flex: 1; justify-content: center; }
  .tm-auth-web .tm-auth-lang { flex: 1 1 100%; }
  .tm-auth-web .tm-auth-lang select { flex: 1; }
}

/* 16. Reports (Summary / Team / Profit-Loss): page-icon header, total pills, filter row, results card. */
.tm-ui .page-header:has(+ .tm-report) .tm-page-icon { background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); }
.tm-ui .tm-report-totals { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.tm-ui .tm-report-totals > span { display: inline-flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 10px; background: var(--tm-canvas); border: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 11px; font-weight: 600; line-height: 1.2; }
.tm-ui .tm-report-totals b { color: var(--tm-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-report { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-report-filter { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-report-filter.collapse:not(.show) { display: none; }
.tm-ui .tm-report-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; }
.tm-ui .tm-report-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 160px; }
.tm-ui .tm-report-field.tm-report-date { min-width: 220px; }
.tm-ui .tm-report-field-label { color: var(--tm-ink); font-size: 12px; font-weight: 600; }
.tm-ui .tm-report-control { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); }
.tm-ui .tm-report-control:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-report-control svg { flex: none; }
.tm-ui .tm-report-control :is(input,select) { flex: 1; min-width: 0; height: 42px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--tm-ink); font: 14px var(--tm-font); }
.tm-ui .tm-report-control select { padding-right: 18px; }
.tm-ui .tm-report-filter-row .tm-primary-btn { height: 44px; }
.tm-ui .tm-report-card { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-report-card .table-responsive { margin: 0; }
.tm-ui .tm-report-card table { margin: 0; }
.tm-ui .tm-report-card .table-responsive:empty::after { content: ""; display: block; }
.tm-ui .tm-report-card:has(.detailed_filter:empty) { min-height: 120px; }
@media (max-width: 640px) {
  .tm-ui .tm-report-totals { flex-wrap: wrap; }
  .tm-ui .tm-report-field, .tm-ui .tm-report-field.tm-report-date { min-width: 0; flex: 1 1 100%; }
  .tm-ui .tm-report-filter-row .tm-primary-btn { flex: 1 1 100%; }
}

/* 17. Client dashboard "Your projects" card: per-project hours, last activity, people chips. */
.tm-ui .tm-cproj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-ui .tm-cproj-item { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-canvas); padding: 14px 16px; }
.tm-ui .tm-cproj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-ui .tm-cproj-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--tm-ink); font-size: 15px; font-weight: 600; }
.tm-ui .tm-cproj-name > span.tm-cproj-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #6B7280); }
.tm-ui .tm-cproj-hours { flex: none; color: var(--tm-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-cproj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; color: var(--tm-muted); font-size: 12px; font-weight: 500; }
.tm-ui .tm-cproj-active { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-accent-ink); }
.tm-ui .tm-cproj-live { width: 7px; height: 7px; border-radius: 50%; background: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-cproj-idle { color: var(--tm-muted); }
.tm-ui .tm-cproj-count { margin-left: auto; }
.tm-ui .tm-cproj-people { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.tm-ui .tm-cproj-person { display: flex; align-items: center; gap: 10px; }
.tm-ui .tm-cproj-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); font-size: 11px; font-weight: 700; }
.tm-ui .tm-cproj-person-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); font-size: 13px; font-weight: 500; }
.tm-ui .tm-cproj-person-hours { flex: none; color: var(--tm-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 18. Dashboard capture cards: activity/productivity badge (seconds-with-input / capture window). */
.tm-ui .tm-capture-shot { position: relative; }
.tm-ui .tm-capture-activity { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; backdrop-filter: saturate(1.1) blur(2px); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tm-ui .tm-capture-activity svg { flex: none; }
.tm-ui .tm-capture-activity.is-low { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }

/* 19. Report panels (Projects report): titled cards, chart padding, table + donut split. */
.tm-ui .tm-report-panel { display: flex; flex-direction: column; }
.tm-ui .tm-report-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 16px 18px 0; }
.tm-ui .tm-report-panel-head h2 { margin: 0; color: var(--tm-ink); font: 650 15px/1.3 var(--tm-font-display, var(--tm-font)); }
.tm-ui .tm-report-panel-head span { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-report-chart { padding: 8px 12px 12px; min-height: 120px; color: var(--tm-muted); }
.tm-ui .tm-report-panel #summary-table { padding: 8px 0 0; }
.tm-ui .tm-report-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.tm-ui .tm-report-split:has(.div_remove.d-none) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .tm-ui .tm-report-split { grid-template-columns: minmax(0, 1fr); } }

/* 20. Timeline (one day per person): toolbar + legend, person card with stats, day bar, sessions table. */
.tm-ui .tm-timeline { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-timeline-legend { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-inline-start: auto; color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-timeline-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-timeline-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-timeline-swatch-gap { background: var(--tm-track); box-shadow: inset 0 0 0 1px var(--tm-line); }
.tm-ui .tm-timeline-day { display: flex; align-items: center; flex: none; }
.tm-ui .tm-timeline #date-picker-container-day, .tm-ui .tm-timeline #date-picker { display: flex; align-items: center; height: 42px; cursor: pointer; }
.tm-ui .tm-timeline .tm-dash-filters > .tm-timeline-legend { flex: 1 1 auto; justify-content: flex-end; }
.tm-ui .timetracker_content { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-tl-card { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 18px; }
.tm-ui .tm-tl-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tm-ui .tm-tl-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 104px; padding: 8px 12px; border: 1px solid var(--tm-line); border-radius: 10px; background: var(--tm-canvas); }
.tm-ui .tm-tl-stats dt { margin: 0; color: var(--tm-muted); font-size: 11px; font-weight: 600; }
.tm-ui .tm-tl-stats dd { margin: 0; color: var(--tm-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-ui .tm-tl-chart { position: relative; height: 56px; padding: 0 18px; }
.tm-ui .tm-tl-table-wrap { overflow-x: auto; border-top: 1px solid var(--tm-line); scrollbar-width: thin; }
.tm-ui .tm-tl-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.tm-ui .tm-tl-table th { padding: 10px 14px; border-bottom: 1px solid var(--tm-line); background: var(--tm-canvas); color: var(--tm-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: start; text-transform: uppercase; white-space: nowrap; }
.tm-ui .tm-tl-table td { padding: 10px 14px; border-bottom: 1px solid var(--tm-line); color: var(--tm-ink); vertical-align: middle; }
.tm-ui .tm-tl-table tr:last-child td { border-bottom: 0; }
.tm-ui .tm-tl-table tr > td:first-child { box-shadow: inset 4px 0 0 transparent; }
.tm-ui .tm-tl-table tr.is-tracked > td:first-child { box-shadow: inset 4px 0 0 var(--tm-accent); }
.tm-ui .tm-tl-table tr.is-manual > td:first-child { box-shadow: inset 4px 0 0 var(--tm-edited); }
.tm-ui .tm-tl-table tr.is-gap td { color: var(--tm-muted); font-style: italic; }
.tm-ui .tm-tl-time, .tm-ui .tm-tl-dur { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-ui .tm-tl-dur { font-weight: 600; }
.tm-ui .tm-tl-tag { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: var(--tm-edited); color: #3A2A06; font-size: 11px; font-weight: 600; font-style: normal; }
.tm-ui .tm-tl-task { min-width: 160px; font-weight: 500; }
.tm-ui .tm-tl-proj { color: var(--tm-muted); white-space: nowrap; }
.tm-ui .tm-tl-empty { color: var(--tm-muted); text-align: center; }
.tm-ui .tm-tl-none { padding: 24px; }
@media (max-width: 640px) { .tm-ui .tm-timeline-legend { margin-inline-start: 0; } .tm-ui .tm-tl-stats > div { flex: 1 1 30%; min-width: 0; } }

/* 21. Projects report (/projectsPage, every role): sort + legend bar, project card with tracked/manual split, people > tasks > days (details/summary). */
.tm-ui .tm-projrep { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-projrep-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tm-ui .tm-projrep-bar .tm-timeline-legend { margin-inline-start: 0; }
.tm-ui .tm-projrep-sort { min-width: 190px; }
.tm-ui .tm-projrep-list { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-projrep-card { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-projrep-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-projrep-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tm-ui .tm-projrep-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-projrep-title > div { min-width: 0; }
.tm-ui .tm-projrep-title h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); font: 650 16px/1.3 var(--tm-font-display, var(--tm-font)); }
.tm-ui .tm-projrep-title span { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-projrep-total { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tm-ui .tm-projrep-total b { color: var(--tm-ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tm-ui .tm-projrep-total span { color: var(--tm-muted); font-size: 11px; font-weight: 600; }
.tm-ui .tm-projrep-split { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 999px; background: var(--tm-track); overflow: hidden; }
.tm-ui .tm-projrep-split i { display: block; height: 100%; }
.tm-ui .tm-projrep-split .is-tracked { background: var(--tm-accent); }
.tm-ui .tm-projrep-split .is-manual { background: var(--tm-edited-fill); }
.tm-ui .tm-projrep-cols, .tm-ui .tm-projrep-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(88px, .5fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.tm-ui .tm-projrep-cols { padding: 10px 18px; background: var(--tm-canvas); border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tm-ui .tm-projrep-person { border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-projrep-person:last-child { border-bottom: 0; }
.tm-ui .tm-projrep-row { min-height: 52px; padding: 8px 18px; cursor: pointer; list-style: none; }
.tm-ui .tm-projrep-row::-webkit-details-marker { display: none; }
.tm-ui .tm-projrep-row:hover { background: var(--tm-canvas); }
.tm-ui .tm-projrep-row:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: -2px; }
.tm-ui .tm-projrep-name { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-projrep-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-projrep-caret { flex: none; color: var(--tm-muted); transition: transform .15s ease; }
.tm-ui details[open] > summary .tm-projrep-caret { transform: rotate(90deg); }
.tm-ui .tm-projrep-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); font-size: 11px; font-weight: 700; }
.tm-ui .tm-projrep-time { color: var(--tm-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-projrep-meter { display: block; height: 8px; border-radius: 999px; background: var(--tm-track); overflow: hidden; }
.tm-ui .tm-projrep-meter i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--tm-accent); }
.tm-ui .tm-projrep-meter.is-task { height: 6px; }
.tm-ui .tm-projrep-meter.is-task i { background: var(--tm-accent); }
.tm-ui .tm-projrep-tasks { padding: 0 0 8px; background: var(--tm-canvas); border-top: 1px solid var(--tm-line); }
.tm-ui .tm-projrep-task > .tm-projrep-row { min-height: 44px; }
.tm-ui .tm-projrep-task .tm-projrep-name { padding-inline-start: 40px; }
.tm-ui .tm-projrep-task .tm-projrep-name { font-weight: 500; }
.tm-ui .tm-projrep-task .tm-projrep-row:hover { background: var(--tm-surface); }
.tm-ui .tm-projrep-tasks .task-edit-link { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.tm-ui .tm-projrep-days { list-style: none; margin: 0 0 8px; padding: 0; }
.tm-ui .tm-projrep-days li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(88px, .5fr) minmax(0, 1fr); gap: 16px; padding: 4px 18px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-projrep-days li > span { padding-inline-start: 82px; border-inline-start: 0; }
.tm-ui .tm-projrep-days b { color: var(--tm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-ui .tm-projrep-none { margin: 0; padding: 12px 18px 4px 58px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-projrep-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-projrep-empty p { margin: 0; color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-projrep-empty span { font-size: 13px; }
.tm-ui .project-task-menu.tm-menu > summary { list-style: none; }
.tm-ui .project-task-menu.tm-menu[open] > summary { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .project-task-menu.tm-menu .project-task-menu-list { border-color: var(--tm-line); background: var(--tm-surface); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.tm-ui .project-task-menu.tm-menu .project-task-menu-list :is(a, p) { color: var(--tm-ink); border-radius: 8px; text-decoration: none; }
.tm-ui .project-task-menu.tm-menu .project-task-menu-list a:hover { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
@media (max-width: 640px) {
  .tm-ui .tm-projrep-cols { display: none; }
  .tm-ui .tm-projrep-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-inline: 14px; }
  .tm-ui .tm-projrep-meter { grid-column: 1 / -1; }
  .tm-ui .tm-projrep-task .tm-projrep-name { padding-inline-start: 20px; }
  .tm-ui .tm-projrep-days li { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 14px; }
  .tm-ui .tm-projrep-days li > span { padding-inline-start: 44px; }
  .tm-ui .tm-projrep-sort { flex: 1 1 100%; }
  .tm-ui .tm-projrep-head { padding: 14px; }
}
@media print {
  .tm-ui .tm-projrep details > :not(summary) { display: block !important; }
  .tm-ui .tm-projrep-bar, .tm-ui .tm-projrep .tm-dash-filters { display: none; }
}

/* 22. Dashboard: empty state when no member is selected in the members filter. */
.tm-ui .tm-dash-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 20px; text-align: center; color: var(--tm-muted); }
.tm-ui .tm-dash-none p { margin: 0; color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-dash-none span { font-size: 13px; }

/* 23. List pages (Zoom, Invoices, Contracts, Orders, Notification templates): card, table, status pills, row icon actions, empty state, simple-datatables chrome. */
.tm-ui .tm-list-card { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-list-card .table-responsive { margin: 0; overflow-x: auto; scrollbar-width: thin; border-radius: 0; }
.tm-ui .tm-list-card .dataTable-wrapper .dataTable-top, .tm-ui .tm-list-card .dataTable-wrapper .dataTable-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.tm-ui .tm-list-card .dataTable-wrapper .dataTable-bottom { border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-list-card .dataTable-input { height: 40px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui .tm-list-card .dataTable-input:focus { outline: 0; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-list-card .dataTable-dropdown label { margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-list-card .dataTable-pagination a { border-radius: 8px; color: var(--tm-ink); }
.tm-ui .tm-list-card .dataTable-pagination .active a { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-list-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.tm-ui .tm-list-table thead th { padding: 11px 18px; border: 0; border-bottom: 1px solid var(--tm-line); background: var(--tm-canvas); color: var(--tm-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tm-ui .tm-list-table thead th a { color: inherit; }
.tm-ui .tm-list-table tbody td { padding: 12px 18px; border: 0; border-bottom: 1px solid var(--tm-line); background: transparent; color: var(--tm-ink); vertical-align: middle; }
.tm-ui .tm-list-table tbody tr:last-child td { border-bottom: 0; }
.tm-ui .tm-list-table tbody tr:hover td { background: var(--tm-canvas); }
.tm-ui .tm-list-strong { font-weight: 600; }
.tm-ui .tm-list-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-ui .tm-list-muted { color: var(--tm-muted); }
.tm-ui .tm-list-link { display: inline-flex; align-items: center; gap: 5px; color: var(--tm-accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-list-link:hover { text-decoration: underline; }
.tm-ui .tm-list-people { display: inline-flex; }
.tm-ui .tm-list-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-inline-start: -6px; border: 2px solid var(--tm-surface); border-radius: 50%; background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); font-size: 10px; font-weight: 700; }
.tm-ui .tm-list-avatar:first-child { margin-inline-start: 0; }
.tm-ui .tm-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--tm-track); color: var(--tm-ink-2); }
.tm-ui .tm-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tm-ui .tm-status.is-ok { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-status.is-info { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-status.is-warn { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-status.is-off { background: var(--tm-tint-rose); color: var(--tm-tint-rose-ink); }
.tm-ui .tm-list-actions { display: inline-flex; gap: 6px; margin: 0; justify-content: flex-end; }
.tm-ui .tm-list-actions .tm-icon-btn, .tm-ui .tm-list-table .tm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--tm-line); border-radius: 9px; background: var(--tm-surface); color: var(--tm-muted); cursor: pointer; text-decoration: none; }
.tm-ui .tm-list-table .tm-icon-btn:hover { border-color: var(--tm-field); color: var(--tm-ink); background: var(--tm-canvas); }
.tm-ui .tm-list-table .tm-icon-btn.is-danger:hover { color: #C2410C; border-color: currentColor; }
.tm-ui .tm-list-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--tm-muted); }
.tm-ui .tm-list-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-list-empty p { margin: 0; color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-list-empty span { font-size: 13px; max-width: 420px; }
@media (max-width: 640px) { .tm-ui .tm-list-table :is(thead th, tbody td) { padding-inline: 12px; } }

/* 24. Remaining list pages (Contracts, Tags, Notification templates, Website activity review, Web & app use): page stack, filter row, member picker, inline form, usage cards, tabs. */
/* Bootstrap paints the last header row border #f1f1f1 with a higher-specificity selector; keep it on the theme line in every theme. */
.tm-ui .table > :not(:last-child) > :last-child > * { border-bottom-color: var(--tm-line); }
.tm-ui .tm-list-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tm-ui .tm-list-lead { margin: 0; color: var(--tm-muted); font-size: 14px; }
.tm-ui .tm-list-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }
.tm-ui .tm-list-filter { display: flex; flex-direction: column; gap: 6px; min-width: 160px; margin: 0; }
.tm-ui .tm-list-filter-grow { flex: 1 1 220px; }
.tm-ui .tm-list-filters > .tm-primary-btn { height: 44px; }
.tm-ui .tm-list-filter input[type="date"] { color-scheme: light; }
:root[data-tm-theme="midnight"] .tm-ui .tm-list-filter input[type="date"], .tm-ui[data-tm-theme="midnight"] .tm-list-filter input[type="date"] { color-scheme: dark; }
.tm-ui .tm-pick { position: relative; }
.tm-ui .tm-pick > summary { list-style: none; cursor: pointer; user-select: none; }
.tm-ui .tm-pick > summary::-webkit-details-marker { display: none; }
.tm-ui .tm-pick[open] > summary { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-pick-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-pick-chev { transition: transform .15s; }
.tm-ui .tm-pick[open] .tm-pick-chev { transform: rotate(180deg); }
.tm-ui .tm-pick-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; min-width: 220px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; padding: 6px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); background: var(--tm-surface); box-shadow: var(--tm-shadow-pop); }
.tm-ui .tm-pick-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--tm-ink); font-size: 14px; cursor: pointer; }
.tm-ui .tm-pick-row:hover { background: var(--tm-hover); }
.tm-ui .tm-pick-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--tm-accent); flex: none; }
.tm-ui .tm-pick-row span { min-width: 0; overflow-wrap: anywhere; }
.tm-ui .tm-pick-all { border-bottom: 1px solid var(--tm-line); border-radius: 8px 8px 0 0; margin-bottom: 4px; font-weight: 600; }
.tm-ui .tm-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-list-toolbar-field { flex: 1 1 240px; margin: 0; }
.tm-ui .tm-list-input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 14px var(--tm-font); }
.tm-ui .tm-list-input::placeholder { color: var(--tm-faint); }
.tm-ui .tm-list-input:focus { outline: 0; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-list-input-sm { height: 34px; max-width: 360px; }
.tm-ui .tm-list-toolbar .tm-primary-btn { height: 40px; }
.tm-ui .tm-list-toolbar .tm-primary-btn:disabled { opacity: .6; cursor: progress; }
.tm-ui .tm-list-table .tm-icon-btn { font: inherit; }
.tm-ui .tm-wa { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-wa-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: var(--tm-track); }
.tm-ui .tm-wa-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tm-ui .tm-wa-who h2 { margin: 0; color: var(--tm-ink); font: 600 15px var(--tm-font); overflow-wrap: anywhere; }
.tm-ui .tm-wa-who span { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-wa-total { display: flex; flex-direction: column; align-items: flex-end; }
.tm-ui .tm-wa-total b { color: var(--tm-ink); font: 600 16px var(--tm-font-display); font-variant-numeric: tabular-nums; }
.tm-ui .tm-wa-total small { color: var(--tm-muted); font-size: 11px; }
.tm-ui .tm-wa-site { display: block; overflow-wrap: anywhere; }
.tm-ui .tm-wa-bar { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--tm-bar-track); overflow: hidden; min-width: 80px; }
.tm-ui .tm-wa-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tm-accent); }
.tm-ui .tm-wa-share { width: 34%; }
.tm-ui .tm-wa-share .tm-wa-bar { display: inline-block; vertical-align: middle; width: calc(100% - 64px); margin: 0 10px 0 0; }
.tm-ui .tm-wa-share .tm-list-num { display: inline-block; min-width: 48px; text-align: right; color: var(--tm-ink-2); font-size: 13px; vertical-align: middle; }
.tm-ui .tm-wa-note { padding: 28px 20px; text-align: center; color: var(--tm-muted); font-size: 14px; }
.tm-ui .tm-wa-note.is-error { color: var(--tm-danger-ink); }
.tm-ui .tm-wa-tabs { display: flex; gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--tm-line); overflow-x: auto; scrollbar-width: none; }
.tm-ui .tm-wa-tabs::-webkit-scrollbar { display: none; }
.tm-ui .tm-wa-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 13px; border: 0; background: transparent; color: var(--tm-muted); font: 600 14px var(--tm-font); white-space: nowrap; cursor: pointer; }
.tm-ui .tm-wa-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.tm-ui .tm-wa-tab[aria-selected="true"] { color: var(--tm-accent-ink); }
.tm-ui .tm-wa-tab[aria-selected="true"]::after { background: var(--tm-accent); }
.tm-ui .tm-wa-tab:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 3px; border-radius: 4px; }
.tm-ui .tm-wa-count { display: inline-flex; justify-content: center; min-width: 24px; padding: 2px 7px; border-radius: 6px; background: var(--tm-track); color: var(--tm-muted); font-size: 11px; }
.tm-ui .tm-wa-tab[aria-selected="true"] .tm-wa-count { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-nt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-nt-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.tm-ui .tm-nt-title h2 { margin: 0; color: var(--tm-ink); font: 600 17px var(--tm-font-display); overflow-wrap: anywhere; }
.tm-ui .tm-nt-title span { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-nt-pickers { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-ui .tm-nt-pickers .tm-report-control { min-width: 220px; }
.tm-ui .tm-nt-vars { padding: 16px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-nt-vars h3 { margin: 0 0 10px; color: var(--tm-muted); font: 600 11px var(--tm-font); letter-spacing: .04em; text-transform: uppercase; }
.tm-ui .tm-nt-vars ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-nt-vars li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 12px); background: var(--tm-canvas); color: var(--tm-ink-2); font-size: 13px; }
.tm-ui .tm-nt-vars code, .tm-ui .tm-nt-field code { padding: 2px 6px; border-radius: 6px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font: 12px var(--tm-font-mono); overflow-wrap: anywhere; }
.tm-ui .tm-nt-form { margin: 0; }
.tm-ui .tm-nt-field { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.tm-ui .tm-nt-field label { margin: 0; }
.tm-ui .tm-nt-textarea { width: 100%; min-height: 140px; padding: 12px 14px; border: 1px solid var(--tm-field); border-radius: min(var(--tm-radius-control), 16px); background: var(--tm-surface); color: var(--tm-ink); font: 14px/1.6 var(--tm-font); resize: vertical; scrollbar-width: thin; }
.tm-ui .tm-nt-textarea:focus { outline: 0; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-nt-field small { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-nt-foot { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--tm-line); }
@media (max-width: 640px) {
  .tm-ui .tm-list-filter { flex: 1 1 100%; min-width: 0; }
  .tm-ui .tm-list-filters > .tm-primary-btn { width: 100%; justify-content: center; }
  .tm-ui .tm-nt-pickers, .tm-ui .tm-nt-pickers .tm-report-control { width: 100%; min-width: 0; }
  .tm-ui .tm-wa-head, .tm-ui .tm-nt-head, .tm-ui .tm-nt-field, .tm-ui .tm-list-toolbar { padding-inline: 14px; }
  .tm-ui .tm-wa-share-h, .tm-ui .tm-wa-share { display: none; }
  .tm-ui .tm-wa-card .tm-list-table td.tm-list-strong { white-space: normal; overflow-wrap: anywhere; word-break: break-word; min-width: 120px; }
  .tm-ui .tm-wa-card .tm-list-table .tm-list-num { white-space: nowrap; }
}

/* 25. Settings > Workspace > Integrations (Jira) + the Jira key chip used on tasks (web and desktop). */
.tm-ui .tm-int-panels { display: flex; flex-direction: column; gap: 20px; }
.tm-ui .tm-int-head-text { flex: 1 1 auto; min-width: 0; }
.tm-ui .tm-int .tm-settings-head > .tm-status { flex: none; }
.tm-ui .tm-int-logo { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-int-body { display: flex; flex-direction: column; gap: 18px; }
.tm-ui .tm-int-loading { padding: 18px 0; color: var(--tm-muted); font-size: 14px; text-align: center; }
.tm-ui .tm-int-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; text-align: center; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-int-empty p { margin: 0; color: var(--tm-ink); font-size: 15px; font-weight: 600; }
.tm-ui .tm-int-empty > span:not(.tm-int-empty-icon) { max-width: 440px; }
.tm-ui .tm-int-empty.is-compact { padding: 28px 22px; }
.tm-ui .tm-int-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 14px; background: var(--tm-track); color: var(--tm-muted); }
.tm-ui .tm-int-empty-icon.is-warn { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-int-intro h3 { margin: 0 0 4px; color: var(--tm-ink); font: 600 15px var(--tm-font); }
.tm-ui .tm-int-intro p { margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-int-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.tm-ui .tm-int-token { grid-column: 1 / -1; }
.tm-ui .tm-int-token .tm-list-link { display: inline-flex; white-space: normal; }
.tm-ui .tm-int-form-foot, .tm-ui .tm-int-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tm-ui .tm-int-actions { justify-content: flex-start; }
.tm-ui .tm-int-actions .tm-outline-btn { height: 44px; }
.tm-ui .tm-int-actions .tm-primary-btn.is-busy svg { animation: tm-int-spin 1s linear infinite; }
@keyframes tm-int-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tm-ui .tm-int-actions .tm-primary-btn.is-busy svg { animation: none; } }
.tm-ui .tm-int-danger { color: var(--tm-danger-ink); }
.tm-ui .tm-int-danger:hover { border-color: var(--tm-danger); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-danger-fill { background: var(--tm-danger); color: var(--tm-on-danger, #fff); }
.tm-ui .tm-int-note { margin: 0; color: var(--tm-muted); font-size: 13px; line-height: 1.5; }
.tm-ui .tm-int-note.is-error { padding: 18px 22px; color: var(--tm-danger-ink); }
.tm-ui .tm-int-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); overflow: hidden; }
.tm-ui .tm-int-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-int-row:nth-child(odd) { border-inline-end: 1px solid var(--tm-line); }
.tm-ui .tm-int-row:nth-last-child(-n+2):nth-child(odd), .tm-ui .tm-int-row:last-child { border-bottom: 0; }
.tm-ui .tm-int-row dt { color: var(--tm-muted); font-size: 12px; font-weight: 500; }
.tm-ui .tm-int-row dd { margin: 0; color: var(--tm-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tm-ui .tm-int-row dd .tm-list-link { white-space: normal; overflow-wrap: anywhere; }
.tm-ui .tm-int-acct { display: flex; flex-direction: column; }
.tm-ui .tm-int-acct span { color: var(--tm-muted); font-size: 13px; font-weight: 400; }
.tm-ui .tm-int-token-mask { padding: 2px 8px; border-radius: 6px; background: var(--tm-track); color: var(--tm-ink-2); font: 600 13px var(--tm-font-mono); letter-spacing: .04em; }
.tm-ui .tm-int-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid transparent; border-radius: min(var(--tm-radius-control), 12px); font-size: 13px; }
.tm-ui .tm-int-banner.is-ok { border-color: var(--tm-accent-line); background: var(--tm-accent-softer); color: var(--tm-ink); }
.tm-ui .tm-int-banner.is-warn { border-color: var(--tm-warning-line); background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-int-banner.is-error { border-color: var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-int-banner-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tm-ui .tm-int-banner-text strong { font-size: 14px; }
.tm-ui .tm-int-banner-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px -6px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.tm-ui .tm-int-banner-close:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.tm-ui .tm-int-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.tm-ui .tm-int-names li { padding: 2px 8px; border-radius: 999px; background: var(--tm-surface); color: var(--tm-ink-2); font-size: 12px; }
.tm-ui .tm-int-errors { margin-top: 6px; font-size: 12px; }
.tm-ui .tm-int-errors summary { cursor: pointer; color: var(--tm-danger-ink); font-weight: 600; width: fit-content; }
.tm-ui .tm-int-errors ul { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.tm-ui .tm-int-errors li { display: flex; gap: 8px; align-items: baseline; color: var(--tm-ink-2); overflow-wrap: anywhere; }
.tm-ui .tm-int-errors code { flex: none; color: var(--tm-ink); font: 600 12px var(--tm-font-mono); }
.tm-ui .tm-int-links-table td:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-ui .tm-int-pname { min-width: 0; overflow-wrap: anywhere; color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-int-links-table td:last-child { width: 46%; }
.tm-ui .tm-int-select { height: 40px; min-width: 200px; border-radius: min(var(--tm-radius-control), 12px); }
.tm-ui .tm-int .tm-settings-state.is-error { color: var(--tm-danger-ink); }
.tm-ui .tm-int-runs-table td { font-size: 13px; vertical-align: top; }
.tm-ui .tm-int-runs-table .tm-int-errors { max-width: 320px; }
.tm-ui .tm-int-dialog { width: 440px; max-width: calc(100vw - 32px); padding: 24px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); background: var(--tm-surface); color: var(--tm-ink); box-shadow: var(--tm-shadow-dialog); }
.tm-ui .tm-int-dialog::backdrop { background: var(--tm-overlay); }
.tm-ui .tm-int-dialog h3 { margin: 0 0 8px; font: 700 18px var(--tm-font-display); }
.tm-ui .tm-int-dialog p { margin: 0; color: var(--tm-muted); font-size: 14px; line-height: 1.55; }
.tm-ui .tm-int-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tm-ui .tm-int-dialog-actions .tm-outline-btn, .tm-ui .tm-int-dialog-actions .tm-primary-btn { height: 42px; }
/* Jira issue key chip (tasks, pickers, member worklogs). Mono, info tint; a link when the server gave a url. */
.tm-jira-key { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 1px 7px; border-radius: 6px; background: var(--tm-info-soft); color: var(--tm-info-ink); font: 600 11.5px/1.6 var(--tm-font-mono); letter-spacing: .02em; white-space: nowrap; text-decoration: none; vertical-align: middle; }
a.tm-jira-key:hover { text-decoration: underline; color: var(--tm-info-ink); }
a.tm-jira-key:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
/* Integrations: own Jira projects (grouped tickets) and the team table. */
.tm-ui .tm-int-projects { display: flex; flex-direction: column; }
.tm-ui .tm-int-project + .tm-int-project { border-top: 1px solid var(--tm-line); }
.tm-ui .tm-int-project-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: var(--tm-table-head); border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-int-project-meta { display: inline-flex; align-items: baseline; gap: 12px; flex: none; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-int-project-meta b { color: var(--tm-ink); font: 700 15px var(--tm-font-display); }
.tm-ui .tm-int-tickets { margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-int-ticket { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 22px; }
.tm-ui .tm-int-ticket + .tm-int-ticket { border-top: 1px solid var(--tm-line-soft, var(--tm-line)); }
.tm-ui .tm-int-ticket .tm-jwl-task { flex: 1 1 auto; }
.tm-ui .tm-int-ticket-sum { color: var(--tm-ink); font-size: 14px; overflow-wrap: anywhere; }
.tm-ui .tm-int-ticket-right { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.tm-ui .tm-int-ticket-time { min-width: 56px; text-align: right; color: var(--tm-ink-2); font-weight: 600; }
.tm-ui .tm-int-log { height: 34px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.tm-ui .tm-jwl-task { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tm-ui .tm-int-sub { display: block; margin-top: 4px; color: var(--tm-muted); font-size: 12px; overflow-wrap: anywhere; }
.tm-ui .tm-int-exp { display: flex; flex-direction: column; }
.tm-ui .tm-int-exp-rel { display: block; margin-top: 2px; color: var(--tm-muted); font-size: 12px; font-weight: 500; }
.tm-ui .tm-int-exp-rel.is-warn { color: var(--tm-warning-ink); }
.tm-ui .tm-int-exp-rel.is-off { color: var(--tm-danger-ink); }
.tm-ui .tm-int-pad { padding: 12px 22px; }
.tm-ui .tm-int-team-table td { vertical-align: top; }
.tm-ui .tm-int-team-table .tm-int-team-more td { border-top: 0; }
.tm-ui .tm-int-team-table tbody tr.tm-int-team-first:not(:first-child) td { border-top: 1px solid var(--tm-line); }
.tm-ui .tm-int-team-table tbody tr td { border-bottom-color: var(--tm-line-soft, var(--tm-line)); }
.tm-ui .tm-int-time { font-weight: 700; color: var(--tm-ink); }
@media (max-width: 760px) {
  .tm-ui .tm-int-rows { grid-template-columns: minmax(0, 1fr); }
  .tm-ui .tm-int-row:nth-child(odd) { border-inline-end: 0; }
  .tm-ui .tm-int-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--tm-line); }
  .tm-ui .tm-int-row:last-child { border-bottom: 0; }
  .tm-ui .tm-int-actions > *, .tm-ui .tm-int-form-foot > * { flex: 1 1 100%; justify-content: center; }
  .tm-ui .tm-int-links-table td:first-child { flex-wrap: wrap; }
  .tm-ui .tm-int-select { min-width: 0; width: 100%; }
  .tm-ui .tm-int .tm-settings-head { flex-wrap: wrap; }
  .tm-ui .tm-int-ticket { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
  .tm-ui .tm-int-ticket-right { justify-content: space-between; }
  .tm-ui .tm-int-project-head { padding: 12px 16px; }
}

/* 25b. Integrations: guided Jira setup (3 numbered steps, site field with fixed https:// and .atlassian.net). */
.tm-ui .tm-int-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: none; }
.tm-ui .tm-int-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.tm-ui .tm-int-step:last-child { padding-bottom: 0; }
.tm-ui .tm-int-step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--tm-line); }
.tm-ui .tm-int-step.is-done:not(:last-child)::before { background: var(--tm-accent); }
.tm-ui .tm-int-step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--tm-line); background: var(--tm-surface); color: var(--tm-ink); font: 600 14px var(--tm-font); }
.tm-ui .tm-int-step.is-done .tm-int-step-num { border-color: var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent, #fff); }
.tm-ui .tm-int-step-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.tm-ui .tm-int-step-body h4 { margin: 0; color: var(--tm-ink); font: 600 15px var(--tm-font); }
.tm-ui .tm-int-step-text { margin: -6px 0 0; color: var(--tm-muted); font-size: 13px; line-height: 1.5; max-width: 640px; }
.tm-ui .tm-int-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tm-ui .tm-int-open { text-decoration: none; }
.tm-ui .tm-int-name { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); background: var(--tm-track); font-size: 13px; }
.tm-ui .tm-int-name-label { color: var(--tm-muted); }
.tm-ui .tm-int-name code { color: var(--tm-ink); font: 600 13px var(--tm-font-mono, ui-monospace, monospace); background: none; padding: 0; }
.tm-ui .tm-int-mini { height: 28px; padding: 0 10px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 10px); background: var(--tm-surface); color: var(--tm-ink); font: 600 12px var(--tm-font); cursor: pointer; }
.tm-ui .tm-int-mini:hover, .tm-ui .tm-int-mini:focus-visible { border-color: var(--tm-accent); color: var(--tm-accent-ink, var(--tm-ink)); }
.tm-ui .tm-int-paste-wrap { position: relative; display: flex; align-items: center; }
.tm-ui .tm-int-paste-wrap .form-control { padding-right: 76px; }
.tm-ui .tm-int-paste { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.tm-ui .tm-int-site { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); background: var(--tm-surface); overflow: hidden; }
.tm-ui .tm-int-site:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-accent) 18%, transparent); }
.tm-ui .tm-int-site .form-control { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding-left: 4px; padding-right: 4px; }
.tm-ui .tm-int-site .form-control.is-invalid { color: var(--tm-danger-ink); }
.tm-ui .tm-int-site:has(.is-invalid) { border-color: var(--tm-danger-line); }
.tm-ui .tm-int-site-pre, .tm-ui .tm-int-site-post { display: inline-flex; align-items: center; padding: 0 0 0 12px; color: var(--tm-muted); font-size: 14px; white-space: nowrap; }
.tm-ui .tm-int-site-post { padding: 0 12px 0 0; }
@media (max-width: 560px) {
  .tm-ui .tm-int-step { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .tm-ui .tm-int-step-num { width: 28px; height: 28px; font-size: 13px; }
  .tm-ui .tm-int-step:not(:last-child)::before { left: 13px; top: 32px; }
  .tm-ui .tm-int-site-pre { display: none; }
  .tm-ui .tm-int-site .form-control { padding-left: 12px; }
  .tm-ui .tm-int-step-actions > * { flex: 1 1 100%; justify-content: center; }
  .tm-ui .tm-int-name { justify-content: space-between; }
}

/* 28. Team page: team-leader picker on member cards (owner) + scope note (owner/manager). */
.tm-ui .tm-team-scope { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); background: var(--tm-surface); color: var(--tm-muted); font-size: 13px; line-height: 1.45; }
.tm-ui .tm-team-scope svg { flex: none; margin-top: 1px; color: var(--tm-accent-ink); }
.tm-ui .tm-team-leader { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; margin: 12px 0 0; text-align: left; }
.tm-ui .tm-team-leader > span { color: var(--tm-muted); font-size: 12px; font-weight: 600; }
.tm-ui .tm-team-leader select { width: 100%; height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 10px); background-color: var(--tm-surface); color: var(--tm-ink); font: 500 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-team-leader select:focus { outline: none; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-team-leader select:disabled { opacity: .6; cursor: progress; }

/* 26. Desktop timer: Jira token notice (expiring = amber, expired/failing = red). Built by js/app-links.js. */
.tm-jira-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px 10px 14px; border-radius: min(var(--tm-radius-control), 14px); border: 1px solid var(--tm-warning-line); background: var(--tm-warning-soft); color: var(--tm-warning-ink); font-size: 13px; line-height: 1.4; }
.tm-jira-notice.is-bad { border-color: var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-jira-notice p { margin: 0; flex: 1 1 auto; min-width: 0; color: inherit; overflow-wrap: anywhere; }
.tm-jira-notice-link { flex: none; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tm-jira-notice-link:hover, .tm-jira-notice-link:focus-visible { color: inherit; text-decoration-thickness: 2px; }
.tm-jira-notice-close { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.tm-jira-notice-close:hover, .tm-jira-notice-close:focus-visible { background: color-mix(in srgb, currentColor 12%, transparent); }

/* 27. Desktop: Jira panel (side-menu item + right sheet with guided connect and connected state). Built by js/jira-panel.js. */
.tm-rail-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 999px; background: var(--tm-danger); flex: none; }
.tm-rail-dot.is-warn { background: var(--tm-warning); }
.tm-rail-dot[hidden] { display: none; }
.tm-jira { position: fixed; inset: 0; z-index: 1080; display: flex; justify-content: flex-end; background: var(--tm-overlay); }
.tm-jira[hidden] { display: none; }
.tm-jira-box { width: min(560px, 100%); height: 100%; box-sizing: border-box; display: flex; flex-direction: column; background: var(--tm-surface); color: var(--tm-ink); border-left: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-dialog); animation: tm-jira-in .18s ease-out; }
@keyframes tm-jira-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tm-jira-box { animation: none; } }
.tm-jira-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--tm-line); }
.tm-jira-mark { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tm-info-soft, var(--tm-track)); color: var(--tm-info-ink); }
.tm-jira-titles { flex: 1 1 auto; min-width: 0; }
.tm-jira-titles h2 { margin: 0 0 4px; font: 600 17px var(--tm-font); color: var(--tm-ink); }
.tm-jira-titles p { margin: 0; color: var(--tm-muted); font-size: 13px; line-height: 1.45; }
.tm-jira-badge { flex: none; align-self: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tm-track); color: var(--tm-muted); }
.tm-jira-badge.is-ok { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-jira-badge.is-bad { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-jira-badge.is-warn { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-jira-badge[hidden] { display: none; }
.tm-jira-x { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-jira-x:hover, .tm-jira-x:focus-visible { background: var(--tm-track); color: var(--tm-ink); }
.tm-jira-body { flex: 1 1 auto; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.tm-jira-body:hover { scrollbar-color: var(--tm-line) transparent; }
.tm-jira-loading { margin: 24px 0; text-align: center; color: var(--tm-muted); font-size: 14px; }
.tm-jira-note { padding: 10px 14px; border-radius: min(var(--tm-radius-control), 14px); border: 1px solid var(--tm-line); background: var(--tm-track); color: var(--tm-ink); font-size: 13px; line-height: 1.45; }
.tm-jira-note.is-ok { border-color: var(--tm-accent-line); background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-jira-note.is-warn { border-color: var(--tm-warning-line); background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-jira-note.is-error { border-color: var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-jira-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.tm-jira-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-jira-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 22px; }
.tm-jira-step:last-child { padding-bottom: 0; }
.tm-jira-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--tm-line); }
.tm-jira-step.is-done:not(:last-child)::before { background: var(--tm-accent); }
.tm-jira-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--tm-line); background: var(--tm-surface); color: var(--tm-ink); font: 600 13px var(--tm-font); }
.tm-jira-num svg { display: none; }
.tm-jira-step.is-done .tm-jira-num { border-color: var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-jira-step.is-done .tm-jira-num-n { display: none; }
.tm-jira-step.is-done .tm-jira-num svg { display: block; }
.tm-jira-step-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.tm-jira-step-body h3 { margin: 0; font: 600 14px var(--tm-font); color: var(--tm-ink); }
.tm-jira-step-text { margin: -6px 0 0; color: var(--tm-muted); font-size: 13px; line-height: 1.5; }
.tm-jira-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-jira-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tm-jira-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-jira-field label { font-size: 12px; font-weight: 600; color: var(--tm-ink); }
.tm-jira-input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 12px); background: var(--tm-surface); color: var(--tm-ink); font: 14px var(--tm-font); color-scheme: light dark; }
.tm-jira-input:focus { outline: none; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-jira-field.is-invalid .tm-jira-input, .tm-jira-field.is-invalid .tm-jira-site { border-color: var(--tm-danger-line); }
.tm-jira-hint { margin: 0; color: var(--tm-muted); font-size: 12px; line-height: 1.4; }
.tm-jira-err { margin: 0; color: var(--tm-danger-ink); font-size: 12px; line-height: 1.4; }
.tm-jira-paste { position: relative; }
.tm-jira-paste .tm-jira-input { padding-right: 72px; }
.tm-jira-paste .tm-jira-mini { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.tm-jira-site { display: flex; align-items: stretch; height: 40px; box-sizing: border-box; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 12px); background: var(--tm-surface); overflow: hidden; }
.tm-jira-site:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-jira-site .tm-jira-input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 0 2px; background: transparent; }
.tm-jira-site-pre, .tm-jira-site-post { display: inline-flex; align-items: center; color: var(--tm-muted); font-size: 13px; white-space: nowrap; padding-left: 10px; }
.tm-jira-site-post { padding: 0 10px 0 0; }
.tm-jira-name { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 12px); background: var(--tm-track); font-size: 13px; }
.tm-jira-name-label { color: var(--tm-muted); }
.tm-jira-name code { padding: 0; background: none; color: var(--tm-ink); font: 600 13px var(--tm-font-mono); }
.tm-jira-mini { height: 28px; padding: 0 10px; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 10px); background: var(--tm-surface); color: var(--tm-ink); font: 600 12px var(--tm-font); cursor: pointer; }
.tm-jira-mini:hover, .tm-jira-mini:focus-visible { border-color: var(--tm-accent); }
.tm-jira-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--tm-accent-ink); font: 600 12px var(--tm-font); cursor: pointer; }
.tm-jira-link:hover, .tm-jira-link:focus-visible { text-decoration: underline; }
.tm-jira-primary, .tm-jira-ghost, .tm-jira-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--tm-radius-control); font: 600 14px var(--tm-font); cursor: pointer; white-space: nowrap; }
.tm-jira-primary { border: 1px solid var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-jira-primary:hover:not(:disabled) { background: var(--tm-accent-hover); border-color: var(--tm-accent-hover); }
.tm-jira-ghost { border: 1px solid var(--tm-line); background: var(--tm-surface); color: var(--tm-ink); }
.tm-jira-ghost:hover:not(:disabled) { border-color: var(--tm-muted); }
.tm-jira-ghost.is-danger { color: var(--tm-danger-ink); }
.tm-jira-danger { border: 1px solid var(--tm-danger); background: var(--tm-danger); color: var(--tm-on-danger); }
.tm-jira-primary:disabled, .tm-jira-ghost:disabled, .tm-jira-danger:disabled { opacity: .55; cursor: default; }
.tm-jira-primary.is-busy svg { animation: tm-jira-spin 1s linear infinite; }
@keyframes tm-jira-spin { to { transform: rotate(360deg); } }
.tm-jira-primary:focus-visible, .tm-jira-ghost:focus-visible, .tm-jira-danger:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-jira-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tm-jira-foot.is-start { justify-content: flex-start; }
.tm-jira-foot[hidden] { display: none; }
.tm-jira-rows { margin: 0; border: 1px solid var(--tm-line); border-radius: min(var(--tm-radius-control), 14px); overflow: hidden; }
.tm-jira-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.tm-jira-row + .tm-jira-row { border-top: 1px solid var(--tm-line); }
.tm-jira-row dt { color: var(--tm-muted); font-size: 12px; font-weight: 500; padding-top: 2px; }
.tm-jira-row dd { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: var(--tm-ink); overflow-wrap: anywhere; }
.tm-jira-row small { color: var(--tm-muted); font-size: 12px; font-weight: 400; }
.tm-jira-tok { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--tm-track); color: var(--tm-ink); font: 600 12px var(--tm-font-mono); }
.tm-jira-confirm { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--tm-danger-line); border-radius: min(var(--tm-radius-control), 14px); background: var(--tm-danger-soft); }
.tm-jira-confirm strong { color: var(--tm-danger-ink); font-size: 14px; }
.tm-jira-confirm p { margin: 0; color: var(--tm-ink); font-size: 13px; line-height: 1.45; }
.tm-jira-errors { font-size: 13px; color: var(--tm-ink); }
.tm-jira-errors summary { cursor: pointer; color: var(--tm-warning-ink); font-weight: 600; }
.tm-jira-errors ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tm-jira-errors li { display: flex; gap: 8px; }
.tm-jira-errors code { font: 600 12px var(--tm-font-mono); color: var(--tm-info-ink); }
@media (max-width: 520px) {
  .tm-jira-head, .tm-jira-body { padding-left: 16px; padding-right: 16px; }
  .tm-jira-row { grid-template-columns: 1fr; gap: 4px; }
  .tm-jira-site-pre { display: none; }
  .tm-jira-site .tm-jira-input { padding-left: 12px; }
  .tm-jira-foot > *, .tm-jira-actions > * { flex: 1 1 100%; }
  .tm-jira-name { justify-content: space-between; }
}
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row .task_selected:disabled { opacity: .35; cursor: not-allowed; }

/* ==== Pager (Final UI): ONE component for web + desktop. Server markup: components/tm-pager.blade.php; JS: tm-pager.js. Tokens only. ==== */
:is(.tm-ui,.tm-desktop) .tm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 4px 4px; color: var(--tm-ink-2); font-size: 13px; }
:is(.tm-ui,.tm-desktop) .tm-pager[hidden] { display: none; }
:is(.tm-ui,.tm-desktop) .tm-pager-summary { margin: 0; color: var(--tm-muted); font-variant-numeric: tabular-nums; }
:is(.tm-ui,.tm-desktop) .tm-pager-size { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tm-muted); font-weight: 500; }
:is(.tm-ui,.tm-desktop) .tm-pager-select { height: 32px; min-width: 64px; padding: 0 28px 0 10px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background-color: var(--tm-surface); color: var(--tm-ink); font-size: 13px; font-weight: 600; }
:is(.tm-ui,.tm-desktop) .tm-pager-select:hover { border-color: var(--tm-field-hover); }
:is(.tm-ui,.tm-desktop) .tm-pager-select:focus-visible, :is(.tm-ui,.tm-desktop) .tm-pager-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
:is(.tm-ui,.tm-desktop) .tm-pager-nav { margin-inline-start: auto; }
:is(.tm-ui,.tm-desktop) .tm-pager-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
:is(.tm-ui,.tm-desktop) .tm-pager-btn { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
:is(.tm-ui,.tm-desktop) .tm-pager-btn:hover:not(:disabled):not(.is-current) { background: var(--tm-hover); border-color: var(--tm-field-hover); }
:is(.tm-ui,.tm-desktop) .tm-pager-btn.is-current { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-on-accent); cursor: default; }
:is(.tm-ui,.tm-desktop) .tm-pager-btn:disabled { opacity: .4; cursor: not-allowed; }
:is(.tm-ui,.tm-desktop) .tm-pager-gap { min-width: 20px; text-align: center; color: var(--tm-faint); }
@media (max-width: 560px) { :is(.tm-ui,.tm-desktop) .tm-pager-nav { margin-inline-start: 0; width: 100%; } }
:is(.tm-ui,.tm-desktop) a.tm-pager-btn { text-decoration: none; }
:is(.tm-ui,.tm-desktop) a.tm-pager-btn:hover:not(.is-current) { color: var(--tm-ink); }
:is(.tm-ui,.tm-desktop) .tm-pager-size-form { margin: 0; }
/* simple-datatables / DataTables on pages not yet on the shared pager: look like it (same tokens) */
.tm-ui :is(.dataTable-bottom,.dataTables_wrapper .dataTables_info) { color: var(--tm-muted); font-size: 13px; }
.tm-ui .dataTable-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 4px 4px; }
.tm-ui .dataTable-bottom .dataTable-info { margin: 0; font-variant-numeric: tabular-nums; }
.tm-ui .dataTable-pagination a { border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tm-ui .dataTable-pagination .active a { border-color: var(--tm-accent); }
.tm-ui .dataTable-pagination ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tm-ui .dataTable-pagination a { min-width: 32px; height: 32px; padding: 0 8px; font-size: 13px; text-decoration: none; }
.tm-ui .dataTable-pagination a:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .dataTable-pagination .active a:hover { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .dataTable-pagination .disabled a { opacity: .4; pointer-events: none; }
.tm-ui .dataTable-dropdown label, .tm-ui .dataTables_length label { color: var(--tm-muted); font-size: 13px; }

/* Dashboard Day view: live Team activity (user 2026-11-16, mockup V6ytKUsGo9u8n8zRFqbr49 v3). One Edit-time day bar per
   person on a fixed 00:00-24:00 scale, hour labels above each bar, status dot on the avatar. Markup: timesheets/dashboard_team_live. */
.tm-ui .tm-live-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-live-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 320px; margin: 0; color: var(--tm-muted); }
.tm-ui .tm-live-search svg { position: absolute; left: 12px; pointer-events: none; }
.tm-ui .tm-live-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-live-search input::placeholder { color: var(--tm-faint); }
.tm-ui .tm-live-search input:hover { border-color: var(--tm-field-hover); }
.tm-ui .tm-live-search input:focus { outline: 0; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-live-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tm-ui .tm-live-chips button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: 999px; background: var(--tm-surface); color: var(--tm-ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-ui .tm-live-chips button:hover { border-color: var(--tm-field-hover); }
.tm-ui .tm-live-chips button b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 12px; text-align: center; }
.tm-ui .tm-live-chips button[aria-pressed="true"] { border-color: var(--tm-accent); background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-live-chips button[aria-pressed="true"] b { background: var(--tm-surface); color: var(--tm-accent-ink); }
.tm-ui .tm-live-chips button:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-live-dot { width: 9px; height: 9px; flex: none; border-radius: 999px; background: var(--tm-faint); }
.tm-ui .tm-live-dot.is-online { background: var(--tm-accent); }
.tm-ui .tm-live-list { display: flex; flex-direction: column; }
.tm-ui .tm-live-head, .tm-ui .tm-live-row { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) 104px; align-items: center; gap: 20px; padding: 0 20px; }
.tm-ui .tm-live-head { padding-top: 12px; padding-bottom: 12px; background: var(--tm-table-head); border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tm-ui .tm-live-total-head, .tm-ui .tm-live-total { text-align: right; white-space: nowrap; }
.tm-ui .tm-live-row { padding-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--tm-line-soft); }
.tm-ui .tm-live-row:last-of-type { border-bottom: 0; }
.tm-ui .tm-live-row[hidden] { display: none; }
.tm-ui .tm-live-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tm-ui .tm-live-avatar { position: relative; flex: none; }
.tm-ui .tm-live-avatar .tm-live-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--tm-surface); }
.tm-ui .tm-live-avatar .tm-live-dot.is-idle { background: var(--tm-line); }
.tm-ui .tm-live-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tm-ui .tm-live-name { color: var(--tm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-live-status { color: var(--tm-muted); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tm-ui .tm-live-status.is-online { color: var(--tm-accent-ink); font-weight: 600; }
.tm-ui .tm-live-started { font-weight: 600; color: var(--tm-ink); }
.tm-ui .tm-live-unstarted { color: var(--tm-muted); font-style: italic; }
.tm-ui .tm-live-sep { opacity: .6; display: inline-block; }
.tm-ui .tm-live-task { color: var(--tm-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-live-day { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-ui .tm-live-ticks { position: relative; height: 14px; color: var(--tm-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-live-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.tm-ui .tm-live-ticks span:first-child { transform: none; }
.tm-ui .tm-live-ticks span:last-child { transform: translateX(-100%); }
.tm-ui .tm-live-track { height: 40px; }
.tm-ui .tm-live-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--tm-info-ink); }
.tm-ui .tm-live-total { color: var(--tm-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-live-row[data-state="idle"] .tm-live-total { color: var(--tm-faint); font-weight: 600; }
.tm-ui .tm-live-empty { margin: 0; padding: 28px 20px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-live-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-live-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-live-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-live-legend .tm-live-now-key { width: 2px; height: 12px; border-radius: 0; background: var(--tm-info-ink); }
.tm-ui .tm-live-hint { margin-left: auto; }
.tm-ui .tm-live-track .tm-et-bar { cursor: default; }
.tm-ui .tm-live-track .tm-et-bar:hover { filter: brightness(1.06); box-shadow: 0 0 0 2px var(--tm-surface), 0 0 0 4px var(--tm-accent-ring); }
.tm-ui .tm-live-track .tm-et-bar:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--tm-surface), 0 0 0 4px var(--tm-accent); }
.tm-ui .tm-live-track { overflow: visible; }
.tm-ui .tm-live-tip { position: fixed; z-index: 60; max-width: min(360px, calc(100vw - 16px)); padding: 7px 10px; border-radius: 8px; background: var(--tm-ink); color: var(--tm-surface); font-size: 12.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: none; }
.tm-ui .tm-live-tip[hidden] { display: none; }
.tm-ui .tm-kpi[hidden] { display: none; }
.tm-ui .tm-kpi-live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 999px; background: var(--tm-accent); vertical-align: middle; }
@media (max-width: 900px) {
  .tm-ui .tm-live-head { display: none; }
  .tm-ui .tm-live-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .tm-ui .tm-live-day { grid-column: 1 / -1; grid-row: 2; }
  .tm-ui .tm-live-hint { margin-left: 0; }
}
@media (max-width: 480px) {
  .tm-ui .tm-live-tools, .tm-ui .tm-live-head, .tm-ui .tm-live-row, .tm-ui .tm-live-legend { padding-left: 16px; padding-right: 16px; }
  .tm-ui .tm-live-search { max-width: none; }
  .tm-ui .tm-live-ticks span:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tm-ui .tm-live-track .tm-et-bar.is-running { animation: none; } }

/* Member activity page (2026-11-16, mockup 2hBYoTXyLz3YbjE5ZpthYQ): people/activity.blade.php + tm-member.js */
.tm-ui .tm-ma-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tm-ui .tm-ma[aria-busy="true"] .tm-ma-body { opacity: .7; transition: opacity .15s; }
.tm-ui .tm-ma-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-weight: 500; }
.tm-ui .tm-ma-banner svg { flex: none; margin-top: 1px; }
.tm-ui .tm-ma-banner.is-warning { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-ma-banner.is-quiet { background: var(--tm-table-head); border: 1px solid var(--tm-line-soft); color: var(--tm-muted); }
.tm-ui .tm-ma-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-ui .tm-ma-who { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.tm-ui .tm-ma-avatar .tm-avatar { width: 56px; height: 56px; font-size: 19px; }
.tm-ui .tm-ma-avatar .tm-live-dot { width: 14px; height: 14px; }
.tm-ui .tm-ma-who-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-ui .tm-ma-name { margin: 0; color: var(--tm-ink); font: 700 22px/1.25 var(--tm-font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.tm-ui .tm-ma-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--tm-muted); font-size: 13px; min-width: 0; }
.tm-ui .tm-ma-role { padding: 2px 9px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; font-weight: 600; }
.tm-ui .tm-ma-projects { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-ma-who .tm-live-status { white-space: normal; }
.tm-ui .tm-ma-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-ui .tm-ma-day { display: inline-flex; align-items: center; gap: 4px; }
.tm-ui .tm-ma-step { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); }
.tm-ui a.tm-ma-step:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-ma-step.is-disabled { color: var(--tm-faint); background: var(--tm-table-head); cursor: not-allowed; }
.tm-ui .tm-ma-date-form, .tm-ui .tm-ma-zone { display: inline-flex; margin: 0; }
.tm-ui .tm-ma-tools :is(input[type="date"], select), .tm-ui .tm-ma-range select { height: 44px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 500 14px var(--tm-font); color-scheme: light dark; }
.tm-ui .tm-ma-zone select { max-width: 260px; }
.tm-ui .tm-ma-tools .tm-outline-btn { height: 44px; }
.tm-ui :is(.tm-ma-step, .tm-ma-tools input, .tm-ma-tools select, .tm-ma-range select, .tm-ma-chip, .tm-ma-shot-open):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-ma-kpis .tm-kpi-head { font-size: 13px; }
.tm-ui .tm-live-chips .tm-ma-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: 999px; background: var(--tm-surface); color: var(--tm-ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tm-ui .tm-live-chips .tm-ma-chip:hover { border-color: var(--tm-field-hover); }
.tm-ui .tm-live-chips .tm-ma-chip[aria-pressed="true"] { border-color: var(--tm-accent); background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-ma-tl-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 12px; }
.tm-ui .tm-ma-track { height: 56px; cursor: crosshair; touch-action: pan-y; user-select: none; overflow: visible; }
.tm-ui .tm-ma-track .tm-et-bar { top: 9px; bottom: 9px; cursor: pointer; z-index: 2; }
.tm-ui .tm-ma-track .tm-et-bar:hover { filter: brightness(.95); }
.tm-ui .tm-ma-track .tm-et-bar:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--tm-surface), 0 0 0 4px var(--tm-accent-ring); }
.tm-ui .tm-ma-track .tm-et-bar.is-selected { box-shadow: 0 0 0 2px var(--tm-surface), 0 0 0 4px var(--tm-info-ink); }
.tm-ui .tm-ma-track .tm-live-now { z-index: 3; }
.tm-ui .tm-ma-band, .tm-ui .tm-ma-drag { position: absolute; top: -3px; bottom: -3px; z-index: 1; border-radius: 10px; background: color-mix(in srgb, var(--tm-info-ink) 12%, transparent); box-shadow: inset 0 0 0 2px var(--tm-info-ink); pointer-events: none; }
.tm-ui .tm-ma-drag { z-index: 4; }
.tm-ui .tm-ma-drag::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--tm-ink); color: var(--tm-surface); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tm-ui .tm-ma-track.is-dragging .tm-ma-band { display: none; }
.tm-ui .tm-ma-tl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 6px; }
.tm-ui .tm-ma-tl-foot .tm-activity-legend { flex-wrap: wrap; }
.tm-ui .tm-ma-swatch-slice { background: color-mix(in srgb, var(--tm-info-ink) 14%, transparent); box-shadow: inset 0 0 0 2px var(--tm-info-ink); }
.tm-ui .tm-ma-tl-foot .tm-live-now-key { width: 2px; height: 12px; border-radius: 0; background: var(--tm-info-ink); }
.tm-ui .tm-ma-swatch-low { background: var(--tm-warning); }
.tm-ui .tm-ma-range { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tm-muted); font-size: 13px; font-weight: 600; }
.tm-ui .tm-ma-range label { margin: 0; }
.tm-ui .tm-ma-showing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--tm-line-soft); background: var(--tm-table-head); color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-ma-showing b { color: var(--tm-ink); }
.tm-ui .tm-ma-note p { margin: 0; color: var(--tm-muted); }
.tm-ui .tm-ma-note b { color: var(--tm-ink); }
.tm-ui .tm-ma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tm-ui .tm-ma-sec-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.tm-ui .tm-ma-hint { color: var(--tm-faint); font-size: 12px; }
.tm-ui .tm-ma-empty { margin: 0; padding: 18px; border: 1px dashed var(--tm-line); border-radius: 12px; color: var(--tm-muted); text-align: center; }
.tm-ui .tm-ma-bars-wrap { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; height: 150px; flex: 1 1 auto; min-height: 170px; }
.tm-ui .tm-ma-bars-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--tm-faint); font-size: 11px; text-align: right; }
.tm-ui .tm-ma-bars { position: relative; overflow: hidden; border-bottom: 1px solid var(--tm-line); background: linear-gradient(var(--tm-line-soft) 1px, transparent 1px) 0 0 / 100% 50%; }
.tm-ui .tm-ma-bar { position: absolute; bottom: 0; min-width: 2px; padding: 0 1px; background-clip: content-box; border-radius: 3px 3px 0 0; background-color: var(--tm-accent); }
.tm-ui .tm-ma-bar.is-low { background-color: var(--tm-warning); }
.tm-ui .tm-ma-bars-x { position: relative; display: block; height: 16px; margin: 6px 0 0 44px; color: var(--tm-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-ma-bars-x > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tm-ui .tm-ma-bars-x > span.is-start { transform: none; }
.tm-ui .tm-ma-bars-x > span.is-end { transform: translateX(-100%); }
.tm-ui .tm-ma-vline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--tm-line); pointer-events: none; }
.tm-ui .tm-ma-bar:hover { filter: brightness(1.08); }
.tm-ui .tm-ma-grid > .tm-ma-section { display: flex; flex-direction: column; }
.tm-ui .tm-ma-meter-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-ma-meter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-ui .tm-ma-meter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.tm-ui .tm-ma-meter-row b { flex: none; color: var(--tm-ink); font-variant-numeric: tabular-nums; }
.tm-ui .tm-ma-meter-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-ink); }
.tm-ui .tm-ma-letter { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-size: 12px; font-weight: 700; }
.tm-ui .tm-ma-meter-track { display: block; height: 6px; border-radius: 999px; background: var(--tm-bar-track, var(--tm-table-head)); overflow: hidden; }
.tm-ui .tm-ma-meter-track > span { display: block; height: 100%; border-radius: inherit; background: var(--tm-accent); }
.tm-ui .tm-ma-meter-track.is-manual > span { background: var(--tm-edited-fill); }
.tm-ui .tm-ma-task { display: flex; flex-direction: column; min-width: 0; }
.tm-ui .tm-ma-task-name { color: var(--tm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-ma-task-project { color: var(--tm-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-ma-task-side { display: inline-flex; flex: none; align-items: center; gap: 8px; }
.tm-ui .tm-ma-jira { padding: 2px 8px; border-radius: 6px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-size: 12px; font-weight: 600; }
.tm-ui .tm-ma-shots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tm-ui .tm-ma-shot-open { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.tm-ui .tm-ma-shot-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-ui .tm-ma-shot-cap { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; min-width: 0; font-size: 12px; color: var(--tm-muted); }
.tm-ui .tm-ma-shot-cap b { color: var(--tm-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-ma-shot-task { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-ma-more { display: flex; justify-content: center; }
.tm-ui .tm-ma-table-wrap { position: relative; overflow-x: auto; margin: 0 -4px; scrollbar-width: thin; }
.tm-ui .tm-ma-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm-ui .tm-ma-table th { padding: 8px; border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.tm-ui .tm-ma-table td { padding: 10px 8px; border-bottom: 1px solid var(--tm-line-soft); color: var(--tm-ink); vertical-align: middle; max-width: 260px; }
.tm-ui .tm-ma-table tr:last-child td { border-bottom: 0; }
.tm-ui .tm-ma-table tr.is-selected td { background: color-mix(in srgb, var(--tm-info-ink) 8%, transparent); }
.tm-ui .tm-ma-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-ma-table .is-action { text-align: right; white-space: nowrap; }
.tm-ui .tm-ma-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-ui .tm-ma-kind { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tm-ui .tm-ma-kind.is-manual { background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-ui .tm-ma-kind.is-running { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-ma-showing-tag { color: var(--tm-info-ink); font-weight: 600; }
.tm-ui .tm-ma-chips-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-ma-jira-chip { padding: 6px 12px; border-radius: 999px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-size: 13px; font-weight: 600; }
.tm-ui .tm-ma-jira-chip.is-error { background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-ma-jira-chip.is-skipped { background: var(--tm-table-head); color: var(--tm-muted); }
.tm-ma-viewer { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #111; color: #fff; overflow: hidden; }
.tm-ma-viewer::backdrop { background: rgba(0, 0, 0, .8); }
.tm-ma-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; font: 600 14px var(--tm-font, system-ui); }
.tm-ma-viewer-close, .tm-ma-viewer-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.tm-ma-viewer-close:hover, .tm-ma-viewer-nav:hover { background: rgba(255, 255, 255, .22); }
.tm-ma-viewer :is(.tm-ma-viewer-close, .tm-ma-viewer-nav):focus-visible { outline: 2px solid #8DC63F; outline-offset: 2px; }
.tm-ma-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.tm-ma-viewer-stage img { display: block; max-width: 100%; max-height: calc(94vh - 60px); object-fit: contain; }
.tm-ma-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.tm-ma-viewer-nav.is-prev { left: 12px; }
.tm-ma-viewer-nav.is-next { right: 12px; }
.tm-ma-viewer-nav[hidden] { display: none; }
@media (max-width: 991px) { .tm-ui .tm-ma-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .tm-ui .tm-ma-head { padding: 16px; }
  .tm-ui .tm-ma-tools { width: 100%; }
  .tm-ui .tm-ma-zone, .tm-ui .tm-ma-zone select { flex: 1 1 100%; max-width: none; width: 100%; }
  .tm-ui .tm-ma-day { flex: 1 1 auto; }
  .tm-ui .tm-ma-date-form { flex: 1 1 auto; }
  .tm-ui .tm-ma-date-form input { width: 100%; }
  .tm-ui .tm-ma-tl-body { padding: 14px 16px 10px; }
  .tm-ui .tm-ma-timeline > .tm-card-head, .tm-ui .tm-ma-showing { padding-left: 16px; padding-right: 16px; }
  .tm-ui .tm-ma-timeline .tm-live-ticks span:nth-child(even) { display: none; }
  .tm-ui .tm-ma-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-ui .tm-ma-table th:nth-child(3), .tm-ui .tm-ma-table td:nth-child(3) { display: none; }
}
.tm-ui a.tm-live-name-link { color: var(--tm-ink); text-decoration: none; }
.tm-ui a.tm-live-name-link:hover { color: var(--tm-accent-ink); text-decoration: underline; }
.tm-ui a.tm-live-name-link:focus-visible { outline: 0; border-radius: 4px; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-live-track a.tm-et-bar { cursor: pointer; }
.tm-ui .tm-live-track a.tm-et-bar:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--tm-surface), 0 0 0 4px var(--tm-accent-ring); }

/* Tasks page (2026-11-16, mockup 1Tcmqo2nZhPtQzh9T49bBQ): tasks/board/*.blade.php + tm-tasks.js */
.tm-ui .tm-tb { display: flex; flex-direction: column; gap: 14px; }
.tm-ui .tm-tb[aria-busy="true"] .tm-tb-body { opacity: .7; transition: opacity .15s; }
.tm-ui .tm-tb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tm-ui .tm-tb-actions .tm-outline-btn { height: 44px; }
.tm-ui .tm-tb-card { overflow: visible; }
.tm-ui .tm-tb-quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(170px, 230px) auto; gap: 10px; padding: 16px 20px 6px; }
.tm-ui .tm-tb-quick input[type="text"], .tm-ui .tm-tb-select select, .tm-ui .tm-tb-field :is(input, select, textarea), .tm-ui .tm-tb-people-btn {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 500 14px var(--tm-font); color-scheme: light dark; }
.tm-ui .tm-tb-field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.tm-ui :is(.tm-tb-quick input, .tm-tb-select select, .tm-tb-field input, .tm-tb-field select, .tm-tb-field textarea, .tm-tb-people-btn):focus { outline: 0; border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-tb-field [aria-invalid="true"] { border-color: var(--tm-danger); }
.tm-ui .tm-tb-quick .tm-primary-btn { height: 44px; }
.tm-ui .tm-tb-quick-people { position: relative; min-width: 0; }
.tm-ui .tm-tb-people-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--tm-muted); text-align: left; overflow: hidden; }
.tm-ui .tm-tb-people-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-tb-people-btn.has-value { color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-tb-popover { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(360px, 90vw); padding: 12px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop); background: var(--tm-surface); box-shadow: var(--tm-shadow-pop); }
.tm-ui .tm-tb-popover-foot { display: flex; justify-content: flex-end; padding-top: 10px; }
.tm-ui .tm-tb-popover-foot .tm-primary-btn { height: 38px; }
.tm-ui .tm-tb-quick-msg { min-height: 0; padding: 0 20px 8px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-tb-quick-msg.is-error { color: var(--tm-danger-ink); font-weight: 600; }
.tm-ui .tm-tb-body { display: flex; flex-direction: column; min-width: 0; }
.tm-ui .tm-tb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 20px 14px; margin: 0; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-tb-filters[hidden] { display: none; }
.tm-ui .tm-tb-count { margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--tm-table-head); color: var(--tm-muted); font-size: 12px; text-align: center; }
.tm-ui .tm-ma-chip[aria-pressed="true"] .tm-tb-count { background: var(--tm-surface); color: var(--tm-accent-ink); }
.tm-ui .tm-tb-search { flex: 1 1 220px; max-width: 340px; }
.tm-ui .tm-tb-select { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tm-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tm-ui .tm-tb-filters .tm-tb-select select { width: auto; max-width: 220px; }
.tm-ui .tm-tb-bulk { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--tm-line); background: var(--tm-accent-soft); }
.tm-ui .tm-tb-bulk[hidden] { display: none; }
.tm-ui .tm-tb-bulk > b { color: var(--tm-accent-ink); margin-right: 6px; }
.tm-ui .tm-tb-bulk .tm-outline-btn { height: 38px; }
.tm-ui .tm-tb-bulk-assign select { width: auto; height: 38px; }
.tm-ui .tm-tb-danger { color: var(--tm-danger-ink); border-color: var(--tm-danger-line, var(--tm-field)); }
.tm-ui .tm-tb-danger-solid { background: var(--tm-danger); color: #fff; height: 38px; }
.tm-ui .tm-tb-linkbtn { padding: 0; border: 0; background: none; font: 600 14px var(--tm-font); cursor: pointer; }
.tm-ui .tm-tb-confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-tb-confirm[hidden] { display: none; }
.tm-ui .tm-tb-confirm > span { flex: 1 1 260px; }
.tm-ui .tm-tb-table-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; }
.tm-ui .tm-tb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-ui .tm-tb-table th { padding: 10px 12px; background: var(--tm-table-head); border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.tm-ui .tm-tb-table td { padding: 12px; border-bottom: 1px solid var(--tm-line-soft); color: var(--tm-ink); vertical-align: middle; }
.tm-ui .tm-tb-table tr:last-child td { border-bottom: 0; }
.tm-ui .tm-tb-table tr:hover td, .tm-ui .tm-tb-table tr.is-picked td { background: var(--tm-hover); }
.tm-ui .tm-tb-table .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-ui .tm-tb-table .is-action { text-align: right; width: 1%; white-space: nowrap; }
.tm-ui .tm-tb-check { width: 44px; padding-left: 20px !important; }
.tm-ui .tm-tb-check label { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.tm-ui .tm-tb-check input, .tm-ui .tm-tb-person input { width: 18px; height: 18px; accent-color: var(--tm-accent); cursor: pointer; }
.tm-ui .tm-tb-title-cell { min-width: 220px; max-width: 420px; }
.tm-ui .tm-tb-title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tm-ui .tm-tb-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-tb-new { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-size: 11px; font-weight: 700; }
.tm-ui .tm-tb-due { display: block; margin-top: 2px; color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-tb-due.is-late { color: var(--tm-danger-ink); font-weight: 600; }
.tm-ui .tm-tb-project { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; }
.tm-ui .tm-tb-project i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-tb-project span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-tb-people { display: inline-flex; align-items: center; }
.tm-ui .tm-tb-face { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tm-ui .tm-tb-people .tm-tb-face { margin-left: -6px; box-shadow: 0 0 0 2px var(--tm-surface); }
.tm-ui .tm-tb-people .tm-tb-face:first-of-type { margin-left: 0; }
.tm-ui .tm-tb-face.is-more { background: var(--tm-table-head); color: var(--tm-muted); }
.tm-ui .tm-tb-face.is-removed { opacity: .5; }
.tm-ui .tm-tint-purple { background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); }
.tm-ui .tm-tint-pink { background: var(--tm-tint-pink); color: var(--tm-tint-pink-ink); }
.tm-ui .tm-tint-teal { background: var(--tm-tint-teal); color: var(--tm-tint-teal-ink); }
.tm-ui .tm-ma-kind.is-done { background: var(--tm-table-head); color: var(--tm-muted); }
.tm-ui .tm-tb-est { color: var(--tm-muted); }
.tm-ui .tm-tb-over { color: var(--tm-danger-ink); }
.tm-ui .tm-tb-edit { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-tb-edit:hover { background: var(--tm-hover); }
.tm-ui :is(.tm-tb-edit, .tm-tb-linkbtn, .tm-tb-people-btn, .tm-tb-swatch, .tm-tb-x):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-ui .tm-tb-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 12px 20px; border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-tb-pager > span { margin-right: auto; }
.tm-ui .tm-tb-pager select { width: auto; height: 38px; }
.tm-ui .tm-tb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--tm-muted); }
.tm-ui .tm-tb-empty b { color: var(--tm-ink); font-size: 16px; }
.tm-ui .tm-tb-empty span { max-width: 460px; }
.tm-ui .tm-tb-empty .tm-primary-btn, .tm-ui .tm-tb-empty .tm-outline-btn { margin-top: 6px; }
.tm-ui .tm-tb-foot-note { margin: 0; color: var(--tm-muted); font-size: 13px; }
/* Drawer + project dialog */
.tm-tb-drawer, .tm-tb-modal { padding: 0; border: 0; color: var(--tm-ink); background: var(--tm-surface); box-shadow: var(--tm-shadow-pop); font-family: var(--tm-font); }
.tm-tb-drawer { position: fixed; inset: 0 0 0 auto; width: min(520px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 18px 0 0 18px; }
.tm-tb-modal { width: min(620px, calc(100vw - 24px)); max-height: min(780px, calc(100dvh - 24px)); border-radius: 18px; }
:is(.tm-tb-drawer, .tm-tb-modal)::backdrop { background: rgba(15, 18, 20, .55); }
.tm-tb-drawer[open] { animation: tm-tb-slide .18s ease-out; }
@keyframes tm-tb-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tm-tb-drawer[open] { animation: none; } }
.tm-ui .tm-tb-drawer-form { display: flex; flex-direction: column; height: 100%; max-height: inherit; margin: 0; }
.tm-ui .tm-tb-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--tm-line); }
.tm-ui .tm-tb-drawer-head h2 { margin: 0; color: var(--tm-ink); font: 700 20px/1.3 var(--tm-font-display); }
.tm-ui .tm-tb-drawer-head small { color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-tb-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-ui .tm-tb-x:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-ui .tm-tb-drawer-scroll { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; overflow-y: auto; scrollbar-width: thin; }
.tm-ui .tm-tb-drawer-scroll > section { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-tb-drawer-scroll > section[hidden] { display: none; }
.tm-ui .tm-tb-drawer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--tm-line); }
.tm-ui .tm-tb-drawer-foot .tm-outline-btn { height: 44px; }
.tm-ui .tm-tb-another { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0 0; color: var(--tm-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-ui .tm-tb-another[hidden] { display: none; }
.tm-ui .tm-tb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tm-ui .tm-tb-field[hidden] { display: none; }
.tm-ui .tm-tb-field > label, .tm-ui .tm-tb-field legend, .tm-ui .tm-tb-label, .tm-ui .tm-tb-label-row label, .tm-ui .tm-tb-inline > label { margin: 0; color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-ui .tm-tb-field em, .tm-ui .tm-tb-label em { color: var(--tm-muted); font-size: 12px; font-style: normal; font-weight: 500; }
.tm-ui .tm-tb-field small, .tm-ui .tm-tb-inline small { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-tb-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tm-ui .tm-tb-field-err { color: var(--tm-danger-ink); font-size: 13px; font-weight: 600; }
.tm-ui .tm-tb-field-err:empty { display: none; }
.tm-ui .tm-tb-hint { margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-tb-hint[hidden] { display: none; }
.tm-ui .tm-tb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tm-ui .tm-tb-suffix { display: flex; align-items: center; gap: 8px; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-tb-inline { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--tm-field); border-radius: 12px; background: var(--tm-table-head); }
.tm-ui .tm-tb-inline[hidden] { display: none; }
.tm-ui .tm-tb-inline-row { display: flex; gap: 8px; }
.tm-ui .tm-tb-inline-row .tm-outline-btn { height: 44px; }
.tm-ui .tm-tb-errors { padding: 12px 14px; border-radius: 12px; background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-tb-errors[hidden] { display: none; }
.tm-ui .tm-tb-errors ul { margin: 6px 0 0; padding-left: 18px; }
.tm-ui .tm-tb-added { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-weight: 600; }
.tm-ui .tm-tb-added[hidden] { display: none; }
.tm-ui .tm-tb-picker { display: flex; flex-direction: column; gap: 8px; }
.tm-ui .tm-tb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-ui .tm-tb-chips[hidden] { display: none; }
.tm-ui .tm-tb-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-size: 13px; font-weight: 600; }
.tm-ui .tm-tb-chip .tm-tb-face { width: 26px; height: 26px; font-size: 10px; }
.tm-ui .tm-tb-chip button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.tm-ui .tm-tb-chip button:hover { background: var(--tm-surface); }
.tm-ui .tm-tb-picker.is-locked .tm-tb-chip { padding-right: 12px; }
.tm-ui .tm-tb-picker-tools { display: flex; align-items: center; gap: 10px; }
.tm-ui .tm-tb-picker-search { flex: 1 1 auto; max-width: none; }
.tm-ui .tm-tb-picker .tm-tb-picker-search input { height: 44px; padding: 0 12px 0 36px; }
.tm-ui .tm-tb-bulk .tm-tb-bulk-assign { flex: 0 1 auto; }
.tm-ui .tm-tb-bulk .tm-tb-bulk-assign select { width: auto; min-width: 170px; max-width: 240px; height: 38px; }
.tm-ui .tm-tb-picker-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid var(--tm-line); border-radius: 12px; scrollbar-width: thin; }
.tm-ui .tm-tb-popover .tm-tb-picker-list { max-height: 240px; }
.tm-ui .tm-tb-group { padding: 8px 8px 4px; color: var(--tm-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tm-ui .tm-tb-picker-list .tm-tb-hint { padding: 4px 8px 8px; }
.tm-ui .tm-tb-person { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 4px 8px; border-radius: 10px; cursor: pointer; }
.tm-ui .tm-tb-person:hover { background: var(--tm-hover); }
.tm-ui .tm-tb-person:has(input:checked) { background: var(--tm-accent-soft); }
.tm-ui .tm-tb-person-text { display: flex; flex-direction: column; min-width: 0; }
.tm-ui .tm-tb-person-name { color: var(--tm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-tb-person-text small { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-tb-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-ui .tm-tb-swatch { width: 36px; height: 36px; border: 0; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tm-ui .tm-tb-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--tm-surface), 0 0 0 5px var(--tm-ink); }
.tm-ui .tm-tb-steps { display: flex; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; color: var(--tm-muted); font-size: 12px; font-weight: 600; }
.tm-ui .tm-tb-steps li { padding: 3px 10px; border-radius: 999px; background: var(--tm-table-head); }
.tm-ui .tm-tb-steps li.is-current { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-tb-steps li.is-done { color: var(--tm-accent-ink); }
.tm-ui .tm-tb-toast { position: fixed; z-index: 1100; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: var(--tm-toast); color: var(--tm-on-toast); font-weight: 600; box-shadow: var(--tm-shadow-pop); }
.tm-ui .tm-tb-toast[hidden] { display: none; }
@media (max-width: 991px) {
  .tm-ui .tm-tb-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tm-ui .tm-tb-quick-title { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tm-ui .tm-tb-quick { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 6px; }
  .tm-ui .tm-tb-quick-msg { padding: 0 16px 8px; }
  .tm-ui .tm-tb-filters, .tm-ui .tm-tb-bulk, .tm-ui .tm-tb-pager { padding-left: 16px; padding-right: 16px; }
  .tm-ui .tm-tb-search { max-width: none; flex-basis: 100%; }
  .tm-ui .tm-tb-filters .tm-tb-select, .tm-ui .tm-tb-filters .tm-tb-select select { flex: 1 1 0; max-width: none; width: 100%; }
  .tm-ui .tm-tb-table thead { display: none; }
  .tm-ui .tm-tb-table, .tm-ui .tm-tb-table tbody { display: block; }
  .tm-ui .tm-tb-table tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px 16px; border-bottom: 1px solid var(--tm-line-soft); }
  .tm-ui .tm-tb-table td { display: block; padding: 0; border: 0; }
  .tm-ui .tm-tb-table td:nth-child(1) { grid-row: 1 / span 3; padding: 0 !important; width: auto; }
  .tm-ui .tm-tb-table td:nth-child(2) { grid-column: 2 / 3; min-width: 0; max-width: none; }
  .tm-ui .tm-tb-table td:nth-child(3), .tm-ui .tm-tb-table td:nth-child(4) { grid-column: 2 / 3; }
  .tm-ui .tm-tb-table td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .tm-ui .tm-tb-table td:nth-child(6) { grid-column: 3; grid-row: 2; }
  .tm-ui .tm-tb-table td:nth-child(7) { grid-column: 3; grid-row: 3; }
  .tm-ui .tm-tb-grid2 { grid-template-columns: minmax(0, 1fr); }
  .tm-tb-drawer { width: 100vw; border-radius: 0; }
  .tm-ui .tm-tb-actions .tm-outline-btn, .tm-ui .tm-tb-actions .tm-primary-btn { flex: 1 1 0; justify-content: center; }
}

/* ==== One design system (2026-11-17): dropdown (js/tm-pick.js) and tooltip (js/tm-tip.js), web + desktop. ====
   Reference look: the themed filter menus (section 6b). More than 3 choices → search box; about 6 rows, then the list scrolls. */
/* Outranks page rules that size a select with !important (login language picker). */
html body select.tm-dd-native.tm-dd-native.tm-dd-native, .tm-dd-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; clip-path: inset(50%); }
.tm-dd-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; text-align: start; cursor: pointer; font: inherit; }
.tm-dd-btn:not(.is-bare) { padding-right: 12px !important; background-image: none !important; }
.tm-dd-btn.is-bare { flex: 1 1 auto; min-width: 0; align-self: stretch; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--tm-ink); }
.tm-dd-btn.is-bare:focus-visible { outline: 0; }
.tm-dd-btn.tm-dd-field { min-height: 44px; padding: 0 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font-size: 14px; }
.tm-dd-btn.tm-dd-field:hover:not(:disabled) { border-color: var(--tm-field-hover); }
.tm-dd-btn:is(.tm-dd-field, .form-control, .form-select, .custom-select):is(:focus-visible, [aria-expanded="true"]) { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); outline: 0; }
.tm-dd-btn:is(.form-control, .form-select, .custom-select, .tm-dd-field) { display: flex; width: 100%; }
.tm-dd-btn[style*="width"] { display: inline-flex; }
.tm-dd-btn:disabled { cursor: not-allowed; opacity: .6; }
.tm-dd-btn.is-invalid { border-color: var(--tm-danger) !important; }
.tm-dd-btn[hidden] { display: none !important; }
.tm-dd-value { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--tm-ink); }
.tm-dd-btn.is-empty .tm-dd-value { color: var(--tm-muted); }
.tm-dd-chev { flex: none; margin-inline-start: auto; color: var(--tm-muted); transition: transform .15s ease; }
.tm-dd-btn[aria-expanded="true"] .tm-dd-chev { transform: rotate(180deg); }
.tm-dd-pop { position: fixed; z-index: 2000; box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); color: var(--tm-ink); box-shadow: var(--tm-shadow-pop); overflow: hidden; font: 400 14px var(--tm-font); }
.tm-dd-pop[hidden] { display: none; }
.tm-dd-pop.is-inline { position: static; z-index: auto; margin-top: 4px; border-radius: min(var(--ic-r-ctl, 14px), 14px); box-shadow: none; }
body .tm-dd-pop input.tm-dd-find.tm-dd-find, .tm-dd-find { flex: none; box-sizing: border-box; width: calc(100% - 20px); height: 38px; margin: 10px 10px 0; padding: 0 12px 0 34px; border: 1px solid var(--tm-field); border-radius: min(var(--tm-radius-control), 10px); color: var(--tm-ink); font: 400 14px var(--tm-font); outline: 0;
  background: var(--tm-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") left 11px center / 15px no-repeat; }
.tm-dd-find[hidden] { display: none; }
body .tm-dd-pop input.tm-dd-find.tm-dd-find::placeholder, .tm-dd-find::placeholder { color: var(--tm-faint); }
body .tm-dd-pop input.tm-dd-find.tm-dd-find:hover { border-color: var(--tm-field); }
/* A list opened inside a dialog lives in it; these selectors outrank the dialog's own input styles (task panel, modals). */
body .tm-dd-pop input.tm-dd-find.tm-dd-find:focus, .tm-dd-find:focus { border-color: var(--tm-accent); box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-dd-list { flex: 1 1 auto; min-height: 0; max-height: 248px; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; scrollbar-color: var(--tm-line) transparent; }
.tm-dd-list::-webkit-scrollbar { width: 6px; }
.tm-dd-list::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--tm-line); }
.tm-dd-opt { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; padding: 6px 10px; border-radius: 8px; color: var(--tm-ink); font: 500 14px/1.3 var(--tm-font); text-align: start; cursor: pointer; }
.tm-dd-opt + .tm-dd-opt { margin-top: 2px; }
.tm-dd-opt.is-active { background: var(--tm-hover); }
.tm-dd-opt[aria-selected="true"] { background: var(--tm-accent-soft); color: var(--tm-accent-ink); font-weight: 600; }
.tm-dd-opt[aria-selected="true"].is-active { background: color-mix(in srgb, var(--tm-accent-soft) 70%, var(--tm-hover)); }
.tm-dd-opt[aria-disabled="true"] { color: var(--tm-faint); cursor: not-allowed; }
.tm-dd-text { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tm-dd-tick { flex: none; color: var(--tm-accent-ink); visibility: hidden; }
.tm-dd-opt[aria-selected="true"] .tm-dd-tick { visibility: visible; }
.tm-dd-box { flex: none; box-sizing: border-box; width: 16px; height: 16px; border: 1.5px solid var(--tm-field-hover); border-radius: 5px; background: var(--tm-surface) center / 12px no-repeat; }
.tm-dd-opt[aria-selected="true"] .tm-dd-box { border-color: var(--tm-accent); background-color: var(--tm-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tm-dd-key { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--tm-track); color: var(--tm-ink-2); font: 600 11px/1.5 var(--tm-font); letter-spacing: .02em; }
.tm-dd-group { margin: 8px 10px 4px; color: var(--tm-muted); font: 600 11px var(--tm-font); letter-spacing: .08em; text-transform: uppercase; }
.tm-dd-group:first-child { margin-top: 4px; }
.tm-dd-none { padding: 14px 10px; color: var(--tm-muted); font-size: 13px; text-align: center; }

.tm-tip { position: fixed; z-index: 2100; max-width: min(360px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 8px; background: var(--tm-toast); color: var(--tm-on-toast); box-shadow: var(--tm-shadow-pop); font: 500 12px/1.4 var(--tm-font); overflow-wrap: anywhere; white-space: normal; pointer-events: none; }
.tm-tip[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .tm-tip:not([hidden]) { animation: tm-tip-in .12s ease-out; } }
@keyframes tm-tip-in { from { opacity: 0; transform: translateY(2px); } }
/* Desktop project filter (js/timer-page.js populateDropdown): same search box, sticky above the rows. */
.tm-desktop.tm-tracker #dropdownMenu li.tm-proj-find { position: sticky; top: -6px; z-index: 1; min-height: 0; margin: -6px -6px 4px; padding: 0 !important; background: var(--tm-surface); cursor: default; }
.tm-desktop.tm-tracker #dropdownMenu li.tm-proj-find::before, .tm-desktop.tm-tracker #dropdownMenu li.tm-proj-none::before { display: none; }
.tm-desktop.tm-tracker #dropdownMenu li.tm-proj-find:hover { background: var(--tm-surface); }
.tm-desktop.tm-tracker #dropdownMenu li.tm-proj-find .tm-dd-find { margin: 10px 10px 4px; }
.tm-desktop.tm-tracker #dropdownMenu li.tm-proj-none { justify-content: center; color: var(--tm-muted); cursor: default; }
.tm-desktop.tm-tracker #dropdownMenu li[hidden] { display: none; }
/* Checkbox filter menus (<details class="tm-pick">): same list height and search box as every dropdown. */
.tm-ui details.tm-pick .tm-pick-list { max-height: 248px; }
.tm-ui details.tm-pick .tm-dd-find-in { position: sticky; top: -6px; z-index: 1; width: 100%; margin: 0 0 6px; box-shadow: 0 -6px 0 var(--tm-surface); }
.tm-ui details.tm-pick .tm-pick-row[hidden] { display: none; }

/* Report tables (Summary / Team): long project and member names end in "…"; tm-tip.js shows the full text on hover. */
.tm-ui .tm-report-card td .user { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-report-card td .name { min-width: 0; max-width: 440px; }
.tm-ui .tm-report-card td .name > p:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Settings › Time tracker: unproductive websites and apps list (daily email v2). */
.tm-ui .tm-settings-textarea { min-height: 160px; font: 13px/1.6 var(--tm-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); resize: vertical; }
.tm-ui .tm-settings-linkbtn { margin-top: 8px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-ui .tm-settings-group[data-off] { opacity: .5; }
/* Table-plugin pager (Summary / Team reports): same placement and buttons as the shared tm-pager. */
.tm-ui .dataTable-bottom .dataTable-pagination { margin-inline-start: auto; }
.tm-ui .dataTable-bottom .dataTable-pagination-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tm-ui .dataTable-bottom .dataTable-pagination a { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--tm-radius-control); font-size: 13px; }

/* ==== Guided tour (js/tm-tour.js, 2026-11-17) and the owner "Get started" checklist (web Home). ==== */
.tm-tour { position: fixed; inset: 0; z-index: 1000001; }   /* above the cookie notice (1000000) */
html.tm-touring #cc--main { display: none !important; }   /* the cookie notice waits until the tour ends (inside a modal the tour cannot sit above it) */
.tm-tour.is-busy .tm-tour-next { cursor: progress; }
.tm-tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px var(--tm-overlay, rgba(20, 20, 22, .55)), 0 0 0 3px var(--tm-accent); transition: left .2s, top .2s, width .2s, height .2s; pointer-events: none; }
.tm-tour.is-centred .tm-tour-hole { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px var(--tm-overlay, rgba(20, 20, 22, .55)); }
.tm-tour-card { position: fixed; box-sizing: border-box; width: min(360px, calc(100vw - 24px)); padding: 18px 18px 14px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-pop, 16px); background: var(--tm-surface); box-shadow: var(--tm-shadow-dialog, 0 20px 50px rgba(0, 0, 0, .25)); color: var(--tm-ink); font-family: var(--tm-font); outline: 0; transition: left .2s, top .2s; }
.tm-tour-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--tm-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tm-tour-close:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-tour-count { margin: 0 36px 8px 0; color: var(--tm-muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.tm-tour-bar { height: 4px; margin: 0 0 14px; border-radius: 4px; background: var(--tm-track, var(--tm-line)); overflow: hidden; }
.tm-tour-bar i { display: block; height: 100%; border-radius: 4px; background: var(--tm-accent); transition: width .2s; }
.tm-tour-title { margin: 0 0 6px; color: var(--tm-ink); font: 700 17px/1.3 var(--tm-font-display, var(--tm-font)); }
.tm-tour-text { margin: 0; color: var(--tm-muted); font-size: 14px; line-height: 1.55; }
.tm-tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tm-tour-gap { flex: 1; }
.tm-tour-foot button { height: 36px; padding: 0 14px; border-radius: var(--tm-radius-control); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-tour-skip { padding: 0 4px !important; border: 0; background: transparent; color: var(--tm-muted); }
.tm-tour-skip:hover { color: var(--tm-ink); text-decoration: underline; }
.tm-tour-back { border: 1px solid var(--tm-field); background: var(--tm-surface); color: var(--tm-ink); }
.tm-tour-back:hover { background: var(--tm-hover); }
.tm-tour-next { border: 1px solid var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-tour-next:hover { background: var(--tm-accent-hover, var(--tm-accent)); }
.tm-tour-foot button:focus-visible, .tm-tour-close:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-tour [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tm-tour-hole, .tm-tour-card, .tm-tour-bar i { transition: none; } }

/* Owner "Get started" checklist (web Home). */
.tm-ui .tm-start { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); }
.tm-ui .tm-start-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tm-ui .tm-start-head h2 { margin: 0; color: var(--tm-ink); font-size: 17px; font-weight: 700; }
.tm-ui .tm-start-head p { margin: 2px 0 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-start-head .tm-grow { flex: 1; min-width: 0; }
.tm-ui .tm-start-progress { flex: none; color: var(--tm-accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tm-ui .tm-start-hide { flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-muted); font-size: 13px; cursor: pointer; }
.tm-ui .tm-start-hide:hover { color: var(--tm-ink); background: var(--tm-hover); }
.tm-ui .tm-start-bar { height: 6px; margin: 0 0 12px; border-radius: 6px; background: var(--tm-track, var(--tm-line)); overflow: hidden; }
.tm-ui .tm-start-bar i { display: block; height: 100%; background: var(--tm-accent); border-radius: 6px; }
.tm-ui .tm-start-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-start-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--tm-line-soft, var(--tm-line)); border-radius: 12px; }
.tm-ui .tm-start-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--tm-field); border-radius: 999px; color: transparent; }
.tm-ui .tm-start-item.is-done .tm-start-check { border-color: var(--tm-accent); background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-ui .tm-start-item .tm-grow { flex: 1; min-width: 0; }
.tm-ui .tm-start-item strong { display: block; color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-start-item.is-done strong { color: var(--tm-muted); text-decoration: line-through; }
.tm-ui .tm-start-item span.tm-start-why { display: block; color: var(--tm-muted); font-size: 12.5px; line-height: 1.45; }
.tm-ui .tm-start-go { flex: none; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.tm-ui .tm-start-item.is-done .tm-start-go { background: transparent; border: 1px solid var(--tm-field); color: var(--tm-ink) !important; }
@media (max-width: 560px) {
  .tm-ui .tm-start-item { flex-wrap: wrap; }
  .tm-ui .tm-start-go { margin-left: 36px; }
}

/* Desktop sign-in: "Remove data saved on this computer" (2026-11-17). */
.tm-desktop.tm-login .tm-login-local { display: flex; flex-direction: column; gap: 10px; }
.tm-desktop.tm-login .tm-login-local[hidden], .tm-desktop.tm-login .tm-login-local-box[hidden] { display: none; }
.tm-desktop.tm-login .tm-login-local-link { align-self: center; padding: 6px 8px; border: 0; border-radius: var(--tm-radius-control); background: none; color: var(--tm-ink-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tm-desktop.tm-login .tm-login-local-link:hover { color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-local-link:focus-visible, .tm-desktop.tm-login .tm-login-local-box button:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
.tm-desktop.tm-login .tm-login-local-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--tm-radius-control); background: var(--tm-danger-soft); border: 1px solid var(--tm-danger-line, var(--tm-danger)); }
.tm-desktop.tm-login .tm-login-local-box h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-local-box p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tm-ink-2); }
.tm-desktop.tm-login .tm-login-local-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tm-desktop.tm-login .tm-login-local-actions button { min-height: 36px; padding: 0 14px; border-radius: var(--tm-radius-control); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-desktop.tm-login .tm-login-local-cancel { border: 1px solid var(--tm-line); background: var(--tm-surface); color: var(--tm-ink); }
.tm-desktop.tm-login .tm-login-local-delete { border: 1px solid var(--tm-danger); background: var(--tm-danger); color: var(--tm-on-danger); }
.tm-desktop.tm-login .tm-login-local-delete:disabled { opacity: .7; cursor: progress; }

/* ---------------------------------------------------------------- Meetings (2026-11-17, web page resources/views/meetings) */
.tm-ui .tm-mt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tm-ui .tm-mt-card { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); min-width: 0; }
.tm-ui .tm-mt-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: var(--tm-radius-control); border: 1px solid var(--tm-accent-line); background: var(--tm-accent-softer); color: var(--tm-accent-ink); font-size: 14px; }
.tm-ui .tm-mt-note > span { flex: 1 1 220px; min-width: 0; }
.tm-ui .tm-mt-note.is-error { border-color: var(--tm-danger-line); background: var(--tm-danger-soft); color: var(--tm-danger-ink); }
.tm-ui .tm-mt-note[hidden] { display: none; }
.tm-ui .tm-mt-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; max-width: 760px; }
.tm-ui .tm-mt-hero-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--tm-radius); background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-mt-hero h2 { margin: 4px 0 0; color: var(--tm-ink); font: 650 22px/1.25 var(--tm-font-display); }
.tm-ui .tm-mt-hero p { margin: 0; color: var(--tm-ink-2); font-size: 15px; line-height: 1.55; }
.tm-ui .tm-mt-points { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-ui .tm-mt-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--tm-ink-2); font-size: 14px; }
.tm-ui .tm-mt-points svg { flex: none; margin-top: 2px; color: var(--tm-accent); }
.tm-ui .tm-mt-connect { text-decoration: none; }
.tm-ui .tm-mt-muted { color: var(--tm-muted); font-size: 14px; }
.tm-ui .tm-mt-account { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); }
.tm-ui .tm-mt-account-icon { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--tm-radius-control); background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-mt-account-text { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.tm-ui .tm-mt-account-text b { color: var(--tm-ink); font-size: 14px; }
.tm-ui .tm-mt-account-text span { color: var(--tm-muted); font-size: 13px; overflow-wrap: anywhere; }
.tm-ui .tm-mt-link-btn { border: 0; background: none; padding: 6px 4px; color: var(--tm-danger-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-mt-link-btn:hover { text-decoration: underline; }
.tm-ui .tm-mt-status { min-height: 0; color: var(--tm-ink-2); font-size: 14px; }
.tm-ui .tm-mt-status:empty { display: none; }
.tm-ui .tm-mt-status.is-error { color: var(--tm-danger-ink); }
.tm-ui #mt-days { display: flex; flex-direction: column; gap: 16px; }
.tm-ui .tm-mt-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.tm-ui .tm-mt-day-head h2 { margin: 0; color: var(--tm-ink); font: 650 16px/1.3 var(--tm-font-display); }
.tm-ui .tm-mt-day-sum { color: var(--tm-muted); font: 600 13px var(--tm-font); font-variant-numeric: tabular-nums; }
.tm-ui .tm-mt-list { list-style: none; margin: 0; padding: 0 0 6px; }
.tm-ui .tm-mt-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 14px 20px; border-top: 1px solid var(--tm-line-soft); }
.tm-ui .tm-mt-row.is-live { background: var(--tm-accent-softer); box-shadow: inset 3px 0 0 var(--tm-accent); }
.tm-ui .tm-mt-row.is-past .tm-mt-when b, .tm-ui .tm-mt-row.is-past .tm-mt-name { color: var(--tm-ink-2); }
.tm-ui .tm-mt-when { display: flex; flex-direction: column; gap: 2px; }
.tm-ui .tm-mt-when b { color: var(--tm-ink); font: 600 14px var(--tm-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-mt-when span { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-mt-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tm-ui .tm-mt-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.tm-ui .tm-mt-name { color: var(--tm-ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.tm-ui .tm-mt-plat { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--tm-track); color: var(--tm-ink-2); }
.tm-ui .tm-mt-plat-zoom { background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-ui .tm-mt-plat-meet { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-ui .tm-mt-plat-teams { background: var(--tm-tint-purple); color: var(--tm-tint-purple-ink); }
.tm-ui .tm-mt-plat-webex { background: var(--tm-tint-teal); color: var(--tm-tint-teal-ink); }
.tm-ui .tm-mt-live { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--tm-accent-ink); font-size: 12px; font-weight: 700; }
.tm-ui .tm-mt-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tm-accent); animation: tm-mt-pulse 1.6s ease-in-out infinite; }
@keyframes tm-mt-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tm-ui .tm-mt-live::before { animation: none; } }
.tm-ui .tm-mt-work { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 4px 10px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); font: 13px var(--tm-font); cursor: pointer; text-align: left; }
.tm-ui .tm-mt-work span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tm-ui .tm-mt-work svg { flex: none; }
.tm-ui .tm-mt-work:hover { background: var(--tm-hover); border-color: var(--tm-field-hover); }
.tm-ui .tm-mt-work.is-empty { border-style: dashed; color: var(--tm-accent-ink); }
.tm-ui .tm-mt-org { color: var(--tm-muted); font-size: 12px; overflow-wrap: anywhere; }
.tm-ui .tm-mt-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.tm-ui .tm-mt-join { text-decoration: none; min-height: 36px; }
.tm-ui .tm-mt-tracked { color: var(--tm-muted); font-size: 13px; white-space: nowrap; }
.tm-ui .tm-mt-tracked.is-done { color: var(--tm-accent-ink); font-weight: 600; }
.tm-ui .tm-mt-tracked.is-done::before { content: "✓ "; }
.tm-ui .tm-mt-log { min-height: 36px; }
.tm-ui .tm-mt-empty-title { margin: 0; padding: 28px 24px 4px; color: var(--tm-ink); font-weight: 600; text-align: center; }
.tm-ui .tm-mt-empty { margin: 0; padding: 4px 24px 28px; color: var(--tm-muted); font-size: 14px; text-align: center; }
.tm-ui .tm-mt-modal-meeting { margin: 0 0 4px; color: var(--tm-ink-2); font-size: 14px; overflow-wrap: anywhere; }
.tm-ui .tm-mt-card .tm-mt-empty:only-child { padding: 28px 24px; }
@media (max-width: 767px) {
  .tm-ui .tm-mt-hero { padding: 22px 18px; }
  .tm-ui .tm-mt-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .tm-ui .tm-mt-when { flex-direction: row; gap: 8px; align-items: baseline; }
  .tm-ui .tm-mt-actions { justify-content: flex-start; }
  .tm-ui .tm-mt-day-head { padding: 14px 16px 6px; }
}

/* ---------------------------------------------------------------- Meetings "Up next" (desktop timer page, js/meetings-panel.js) */
.tm-desktop #tm-meet[hidden], .tm-desktop.tm-snd-open #tm-meet { display: none !important; }
.tm-desktop .tm-meet { flex: none; margin: 12px 20px 0; padding: 6px 16px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); display: flex; flex-direction: column; gap: 8px; }
.tm-desktop .tm-meet-title { color: var(--tm-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-desktop :is(.tm-meet-open, .tm-meet-link, .tm-meet-more) { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: var(--tm-radius-control); background: none; color: var(--tm-accent-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-desktop :is(.tm-meet-open, .tm-meet-link, .tm-meet-more):hover { background: var(--tm-hover); }
.tm-desktop :is(.tm-meet-open, .tm-meet-link, .tm-meet-more):focus-visible, .tm-desktop :is(.tm-meet-work, .tm-meet-join, .tm-meet-btn, .tm-meet-x):focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
.tm-desktop .tm-meet-more { color: var(--tm-ink-2); white-space: nowrap; }
.tm-desktop .tm-meet-more.is-open svg { transform: rotate(180deg); }
.tm-desktop .tm-meet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-desktop .tm-meet-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; }
.tm-desktop .tm-meet-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tm-desktop .tm-meet-item + .tm-meet-item { border-top: 1px solid var(--tm-line-soft); }
.tm-desktop .tm-meet-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.tm-desktop .tm-meet-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--tm-muted); font-size: 13px; min-width: 0; }
.tm-desktop .tm-meet-time { font-variant-numeric: tabular-nums; }
.tm-desktop .tm-meet-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--tm-info-soft); color: var(--tm-info-ink); font-size: 12px; font-weight: 700; }
.tm-desktop .tm-meet-badge.is-live { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop .tm-meet-badge.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tm-accent); animation: tm-mt-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tm-desktop .tm-meet-badge.is-live::before { animation: none; } }
.tm-desktop .tm-meet-name { margin: 0; color: var(--tm-ink); font-size: 16px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-desktop .tm-meet-work { display: inline-flex; align-items: center; gap: 6px; max-width: min(100%, 280px); min-height: 28px; padding: 2px 10px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); font: 13px var(--tm-font); cursor: pointer; }
.tm-desktop .tm-meet-work span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tm-desktop .tm-meet-work svg { flex: none; }
.tm-desktop .tm-meet-work:hover { background: var(--tm-hover); border-color: var(--tm-field-hover); }
.tm-desktop .tm-meet-work.is-empty { border-style: dashed; color: var(--tm-accent-ink); }
.tm-desktop .tm-meet-join { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent); font: 600 14px var(--tm-font); cursor: pointer; white-space: nowrap; }
.tm-desktop .tm-meet-join:hover { background: var(--tm-accent-hover); }
.tm-desktop .tm-meet-join:disabled { opacity: .6; cursor: progress; }
.tm-desktop .tm-meet-join.is-in { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop .tm-meet-join.is-in:hover { background: var(--tm-accent-softer); box-shadow: inset 0 0 0 1px var(--tm-accent-line); }
.tm-desktop .tm-meet-pick { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 12px; margin-bottom: 6px; padding: 14px; border-radius: 14px; background: var(--tm-canvas); border: 1px solid var(--tm-line-soft); }
.tm-desktop .tm-meet-pick-title, .tm-desktop .tm-meet-pick .tm-meet-note, .tm-desktop .tm-meet-error, .tm-desktop .tm-meet-pick-actions { grid-column: 1 / -1; }
.tm-desktop .tm-meet-pick-title { margin: 0; color: var(--tm-ink); font-size: 14px; font-weight: 600; }
.tm-desktop .tm-meet-field { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--tm-ink-2); font-size: 13px; font-weight: 600; min-width: 0; }
.tm-desktop .tm-meet-field select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--tm-field); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 14px var(--tm-font); }
.tm-desktop .tm-meet-error { margin: 0; color: var(--tm-danger-ink); font-size: 13px; }
.tm-desktop .tm-meet-error:empty { display: none; }
.tm-desktop .tm-meet-pick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tm-desktop .tm-meet-btn { min-height: 36px; padding: 6px 14px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-desktop .tm-meet-btn:hover { background: var(--tm-hover); }
.tm-desktop .tm-meet-btn.is-primary { border-color: transparent; background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-desktop .tm-meet-btn.is-primary:hover { background: var(--tm-accent-hover); }
.tm-desktop .tm-meet-note { margin: 0 0 6px; color: var(--tm-accent-ink); font-size: 13px; }
.tm-desktop .tm-meet-note[hidden] { display: none; }
.tm-desktop .tm-meet-connect { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 4px 0; color: var(--tm-ink-2); font-size: 14px; }
.tm-desktop .tm-meet-connect.is-warn { padding: 8px 10px; border-radius: var(--tm-radius-control); background: var(--tm-warning-soft); color: var(--tm-warning-ink); }
.tm-desktop .tm-meet-connect-text { flex: 1 1 200px; min-width: 0; }
.tm-desktop .tm-meet-tile { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--tm-radius-control); background: var(--tm-info-soft); color: var(--tm-info-ink); }
.tm-desktop .tm-meet-x { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--tm-muted); cursor: pointer; }
.tm-desktop .tm-meet-x:hover { background: var(--tm-hover); color: var(--tm-ink); }
/* Meetings card v2 (2026-11-17, user: "i dont understand anything"): a header says where the meetings come from, each row says in
   one sentence where its time goes or that it is being tracked, the task chip toggles its picker. */
.tm-desktop .tm-meet { padding: 12px 16px 8px; }
.tm-desktop .tm-meet-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--tm-line-soft); }
.tm-desktop .tm-meet-head .tm-meet-tile { background: var(--tm-accent-soft); color: var(--tm-accent-ink); }
.tm-desktop .tm-meet-head-text { flex: 1 1 auto; min-width: 0; }
.tm-desktop .tm-meet-head-title { margin: 0; color: var(--tm-ink); font-size: 14px; font-weight: 700; }
.tm-desktop .tm-meet-head-sub { margin: 0; color: var(--tm-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-desktop .tm-meet-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 0; color: var(--tm-ink-2); font-size: 13px; min-width: 0; }
.tm-desktop .tm-meet-line b { color: var(--tm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tm-desktop .tm-meet-line.is-tracking { color: var(--tm-accent-ink); }
.tm-desktop .tm-meet-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tm-accent); animation: tm-mt-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tm-desktop .tm-meet-dot { animation: none; } }
.tm-desktop .tm-meet-work.is-open svg:last-child { transform: rotate(180deg); }
.tm-desktop .tm-meet-work svg:last-child { opacity: .7; }
.tm-desktop .tm-meet-hint { margin: 0; color: var(--tm-muted); font-size: 12px; }
/* Timer page scrolls as one page (2026-11-17, user: "i cant scroll here only inside the task so small i need to scroll whole
   section as well"). The meetings card took height from the task list, which was the only scroll area (squeezed to one row).
   Now the page column scrolls and the task list shows its whole page of rows (10/25/50 + pager), no inner scroll. */
.tm-desktop.tm-tracker #page_content[style*="block"] { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.tm-desktop.tm-tracker :is(.dash-container,.dash-content,.dash-content > .row,#traker-form-time,#tracker-table) { min-height: auto; }
.tm-desktop.tm-tracker #tracker-table:not([style*="none"]) { overflow: visible; }
.tm-desktop.tm-tracker #tasks_card.tm-tasks-card { flex: 0 0 auto; min-height: 0; }
.tm-desktop.tm-tracker #table_content { flex: none; overflow-y: visible; }
/* The page scrolls instead of squeezing its sections (user: "why is the two boxes above each others": the Now tracking card shrank
   to a strip behind the meetings card when the page was taller than the window). */
.tm-desktop.tm-tracker #page_content[style*="block"] > * { flex-shrink: 0; }

/* Suspicious long time (2026-11-18): flag mark in reports, Timeline, dashboard and the person page. */
.tm-ui .tm-flag-mark { display: inline-flex; align-items: center; color: var(--tm-edited); margin-left: 6px; vertical-align: -2px; }
.tm-ui .tm-flag-group { margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--tm-muted); }
.tm-ui .tm-flag-list { grid-template-columns: 1fr; }   /* one flag per full-width row: name, date and task stay readable */
.tm-ui .tm-flag-list li { display: flex; align-items: center; gap: 10px; }
.tm-ui .tm-flag-list li > .tm-person { flex: 1 1 auto; min-width: 0; }
.tm-ui .tm-flag-list li > .tm-low-time, .tm-ui .tm-flag-list li > .tm-btn { flex: none; white-space: nowrap; }
.tm-ui .tm-flag-list .tm-low-time .tm-flag-mark { margin: 0 6px 0 0; }
.tm-ui .tm-flag-list .tm-flag-text { flex: 1; min-width: 0; }
.tm-ui .tm-flag-list .tm-flag-state { font-size: 12px; color: var(--tm-muted); white-space: nowrap; }
.tm-ui .tm-flag-list li.is-reviewed { opacity: .7; }

/* 2026-11-18: company time label + zone picker (partials/zone-picker, spec D2/D3). */
.tm-ui .tm-zone { position: relative; display: inline-flex; justify-content: flex-end; min-width: 0; max-width: 100%; }
/* P2U-04 (2026-11-22): "Times in: Company · Cairo ▾", the same chip as the header people picker (.tm-pp-in-head > .tm-pp-btn): 32 px, 13 px. */
.tm-ui .tm-zone-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; min-height: 32px; padding: 6px 10px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink-2); font: 500 13px var(--tm-font); line-height: 1.2; cursor: pointer; text-align: start; white-space: nowrap; }
.tm-ui .tm-zone-btn:hover { border-color: var(--tm-field-hover); }
.tm-ui .tm-zone-btn:focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
.tm-ui .tm-zone-btn > svg { flex: none; }
.tm-ui .tm-zone-btn b { color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-zone-btn .tm-zone-chevron { width: 10px; height: 10px; margin: 0 0 0 2px; color: var(--tm-muted); }
.tm-ui .tm-zone-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-zone-k { color: var(--tm-muted); }
.tm-ui .tm-zone-inline { display: block; }
.tm-ui .tm-zone-field { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tm-line); }
/* The two header chips side by side are exactly one height (the picker's count badge made it 33 px); phones keep 40 px (below). */
@media (min-width: 641px) { .tm-ui .tm-head-tools :is(.tm-zone-btn, .tm-pp-in-head > .tm-pp-btn) { height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; } }
.tm-ui .tm-zone-inline .tm-zone-pop { position: static; width: auto; max-width: 420px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tm-ui .tm-zone-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1050; width: min(320px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.tm-ui .tm-zone-pop[hidden] { display: none; }
.tm-ui .tm-zone-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--tm-muted); }
.tm-ui .tm-zone-pop select { width: 100%; }
.tm-ui .tm-zone-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tm-ui .tm-zone-reset { padding: 0; border: 0; background: none; color: var(--tm-accent-ink); font: 600 12px var(--tm-font); cursor: pointer; }
.tm-ui .tm-zone-error { font-size: 12px; color: var(--tm-danger-ink); }
.tm-ui .tm-zone-col { margin-left: auto; min-width: 0; }
@media (max-width: 640px) { .tm-ui .page-header .row:has(.tm-zone-col) { flex-wrap: wrap; row-gap: 10px; } .tm-ui .tm-zone-col { order: 10; flex: 1 1 100%; width: 100%; max-width: 100%; margin: 0; padding: 0; } .tm-ui .tm-zone:not(.tm-zone-inline) { flex: 1 1 100%; } .tm-ui .tm-zone, .tm-ui .tm-zone-btn { width: 100%; } .tm-ui .tm-zone-btn { min-height: 40px; } .tm-ui .tm-zone-text { flex: 1; } .tm-ui .tm-zone-pop { left: 0; right: auto; } }
/* The older per-page zone dropdowns stay in the DOM (their checked radio still feeds each page's filters and starts on the saved
   zone) but the header picker is the one control people see. */
.tm-ui #timezone-dropdown-radio-bg-hover-button, .tm-ui .tm-dash-zone { display: none !important; }

/* 2026-11-18 (spec E1): busy state for any control (assets/js/tm-busy.js) and for a panel (.tm-busy-area, spinner after 150 ms). */
@keyframes tm-spin { to { transform: rotate(360deg); } }
@keyframes tm-busy-in { from { opacity: 0; } to { opacity: 1; } }
.tm-ui .tm-busy { cursor: progress !important; pointer-events: none; }
/* 2026-11-23 (no layout shift): the spinner sits over the label, which keeps its room (hidden, not removed), so the button
   keeps its exact size. tm-busy.js adds .tm-busy-pos to a statically positioned control so the spinner can be centred. */
.tm-ui :is(button, a, [role="button"]).tm-busy { opacity: .78; -webkit-text-fill-color: transparent; }
.tm-ui :is(button, a, [role="button"]).tm-busy > * { visibility: hidden; }
.tm-ui .tm-busy-pos { position: relative; }
.tm-ui :is(button, a, [role="button"]).tm-busy::after { content: ""; position: absolute; top: calc(50% - 7px); left: calc(50% - 7px); width: 14px; height: 14px; margin: 0; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tm-spin .7s linear infinite; }
.tm-ui .tm-busy-area { position: relative; }
.tm-ui .tm-busy-area > * { transition: opacity .15s; }
.tm-ui .tm-busy-area::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: color-mix(in srgb, var(--tm-surface) 55%, transparent) no-repeat center / 28px; opacity: 0; animation: tm-busy-in .12s .15s forwards; }
.tm-ui .tm-busy-area::before { content: ""; position: absolute; z-index: 6; top: calc(50% - 14px); left: calc(50% - 14px); width: 28px; height: 28px; border: 3px solid var(--tm-accent); border-right-color: transparent; border-radius: 50%; opacity: 0; animation: tm-busy-in .12s .15s forwards, tm-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tm-ui .tm-busy::after, .tm-ui .tm-busy-area::before { animation-duration: 2s; } }
.tm-ui .tm-dash-refresh { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font: 600 13px var(--tm-font); cursor: pointer; }
.tm-ui .tm-dash-refresh:hover { background: var(--tm-hover) !important; }

/* 2026-11-18 (spec A2): desktop logout dialog steps (js/tm-logout.js). */
.tm-ui .tm-logout-reason { margin: 8px 0 0; color: var(--tm-ink); font-weight: 600; }
.tm-ui .tm-logout-details { margin: 8px 0 0; padding-left: 18px; max-height: 140px; overflow: auto; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-logout-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tm-ui .tm-logout-steps li { display: flex; align-items: center; gap: 10px; color: var(--tm-muted); font-size: 14px; }
.tm-ui .tm-logout-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tm-line); box-sizing: border-box; position: relative; }
.tm-ui .tm-logout-steps .is-running { color: var(--tm-ink); }
.tm-ui .tm-logout-steps .is-running .tm-logout-mark { border-color: var(--tm-accent); border-right-color: transparent; animation: tm-spin .8s linear infinite; }
.tm-ui .tm-logout-steps .is-done { color: var(--tm-ink); }
.tm-ui .tm-logout-steps .is-done .tm-logout-mark { border-color: var(--tm-accent); background: var(--tm-accent); }
.tm-ui .tm-logout-steps .is-done .tm-logout-mark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--tm-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tm-ui .tm-logout-steps .is-failed { color: var(--tm-danger-ink); }
.tm-ui .tm-logout-steps .is-failed .tm-logout-mark { border-color: var(--tm-danger-ink); }
.tm-ui .tm-logout-steps .is-failed .tm-logout-mark::before, .tm-ui .tm-logout-steps .is-failed .tm-logout-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 2px; height: 10px; background: var(--tm-danger-ink); transform: rotate(45deg); }
.tm-ui .tm-logout-steps .is-failed .tm-logout-mark::after { transform: rotate(-45deg); }

/* 2026-11-18 (spec C2): the idle card's 5-hour confirm step (windows/short-time-popup.window.html). */
.tm-ic-confirm { display: grid; gap: 12px; padding: 12px 14px; border-radius: var(--tm-radius-control); background: color-mix(in srgb, var(--tm-edited) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tm-edited) 45%, transparent); }
.tm-ic-confirm[hidden] { display: none; }
.tm-ic-confirm-text { margin: 0; color: var(--tm-ink); font-size: 14px; line-height: 1.45; }
.tm-ic-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* 2026-11-18 (spec B): desktop update bar (js/tm-update-banner.js), under the title bar, all three themes via tokens. */
.tm-update-banner { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0 0 12px; overflow: hidden;
  border-radius: var(--tm-radius-control); border: 1px solid var(--tm-line); background: var(--tm-surface); color: var(--tm-ink); font: 500 14px/1.4 var(--tm-font); }
.tm-update-banner[hidden] { display: none; }
.tm-update-banner[data-tone="ready"] { background: var(--tm-accent-soft); border-color: color-mix(in srgb, var(--tm-accent) 45%, transparent); }
.tm-update-banner[data-tone="warn"] { background: color-mix(in srgb, var(--tm-danger-ink) 10%, var(--tm-surface)); border-color: color-mix(in srgb, var(--tm-danger-ink) 40%, transparent); }
.tm-update-banner.is-progress::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--tm-update-pct, 0%); background: var(--tm-accent); transition: width .3s; }
.tm-update-banner > svg { flex: none; color: var(--tm-accent-ink); }
.tm-update-banner-text { flex: 1 1 auto; min-width: 0; }
.tm-update-banner-action { flex: none; padding: 6px 12px; border: 0; border-radius: var(--tm-radius-control); background: var(--tm-accent); color: var(--tm-on-accent); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-update-banner-later { flex: none; padding: 6px 8px; border: 0; background: none; color: var(--tm-muted); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-update-banner :is(button):focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
/* 2026-11-18 (spec D2): desktop topbar company time label (classes/zones.class.js), same text as the web header. */
.tm-company-time { margin-inline-start: auto; margin-inline-end: 10px; padding: 6px 10px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); color: var(--tm-muted); font: 500 12px/1.3 var(--tm-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tm-company-time[hidden] { display: none; }
/* 2026-11-18 (spec E2): desktop topbar Refresh (js/tm-rail.js); spins while main syncs. */
.tm-topbar-refresh { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 8px; padding: 6px 10px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-control); background: var(--tm-surface); color: var(--tm-ink); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-topbar-refresh:hover:not(:disabled) { background: var(--tm-hover); }
.tm-topbar-refresh:focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
.tm-topbar-refresh:disabled { cursor: progress; opacity: .75; }
.tm-topbar-refresh.tm-busy > svg { animation: tm-spin .8s linear infinite; }
.tm-topbar-refresh.tm-busy::after { content: none; }
@media (prefers-reduced-motion: reduce) { .tm-topbar-refresh.tm-busy > svg { animation: none; } }
@media (max-width: 1100px) { .tm-topbar-refresh > span { display: none; } .tm-topbar-refresh { padding: 6px 8px; } .tm-company-time { max-width: 230px; } }
/* 2026-11-18 (spec E3): dashboard Low activity line for "Are you really working?" prompts. */
.tm-unproductive-prompts { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--tm-radius-control); background: var(--tm-hover); color: var(--tm-ink); font: 500 13px/1.4 var(--tm-font); }
/* 2026-11-18 (spec E3): desktop "Are you really working?" corner card (windows/unproductive-prompt.window.html). */
body.tm-up { margin: 0; background: transparent; overflow: hidden; }
.tm-up-card { box-sizing: border-box; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px;
  border: 1px solid var(--tm-line); border-radius: 14px; background: var(--tm-surface); color: var(--tm-ink); font: 500 14px/1.45 var(--tm-font); }
.tm-up-text { margin: 0; }
.tm-up-text b { font-weight: 700; overflow-wrap: anywhere; }
.tm-up-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tm-up-actions button { padding: 7px 12px; border-radius: var(--tm-radius-control); font: 600 13px var(--tm-font); cursor: pointer; }
.tm-up-actions button:focus-visible { outline: 2px solid var(--tm-accent-ring); outline-offset: 2px; }
.tm-up-pause { border: 1px solid var(--tm-line); background: transparent; color: var(--tm-ink); }
.tm-up-pause:hover { background: var(--tm-hover); }
.tm-up-yes { border: 0; background: var(--tm-accent); color: var(--tm-on-accent); }

/* 2026-11-18: pages with header actions (Team: Add client/manager/member…) — the company-time chip takes its own line at the top right
   so the action buttons keep one row. */
.tm-ui .page-header .row:has(> .col :is(a, button)):has(> .tm-zone-col) { flex-wrap: wrap; row-gap: 8px; }
.tm-ui .page-header .row:has(> .col :is(a, button)) > .tm-zone-col { order: -1; flex: 0 0 100%; max-width: 100%; display: flex; justify-content: flex-end; margin-left: 0; }

/* 2026-11-18: Member activity screenshots — bigger 16:10 thumbnails in framed cards, time + input on one line, hover lift. */
.tm-ui .tm-ma-shots { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tm-ui .tm-ma-shot { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-surface); transition: box-shadow .15s, transform .15s, border-color .15s; }
.tm-ui .tm-ma-shot:hover { border-color: var(--tm-field-hover); box-shadow: 0 6px 18px rgba(15, 23, 42, .10); transform: translateY(-2px); }
.tm-ui .tm-ma-shot-open { position: relative; display: block; aspect-ratio: 16 / 10; height: auto; overflow: hidden; border-radius: 0; background: var(--tm-track); }
.tm-ui .tm-ma-shot-open img { position: absolute; inset: 0; transition: transform .25s; }
.tm-ui .tm-ma-shot:hover .tm-ma-shot-open img { transform: scale(1.03); }
.tm-ui .tm-ma-shot .tm-capture-activity { top: 8px; left: 8px; }
.tm-ui .tm-ma-shot .tm-capture-count { right: 8px; bottom: 8px; }
.tm-ui .tm-ma-shot-cap { gap: 3px; padding: 10px 12px 12px; border-top: 1px solid var(--tm-line-soft); }
.tm-ui .tm-ma-shot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.tm-ui .tm-ma-shot-top .tm-ma-shot-input { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tm-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tm-ui .tm-ma-shot-task { color: var(--tm-ink-2); }
@media (max-width: 575px) { .tm-ui .tm-ma-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tm-ui .tm-ma-shot-top { flex-direction: column; gap: 0; } }

/* 2026-11-19 (user screenshot: refresh icon + a second spinner, text faded): refresh buttons spin their own arrow while busy.
   Same specificity as the generic busy rule above and later in the file, so this wins: no extra ::after spinner, no double fade. */
.tm-ui :is(.tm-topbar-refresh, .tm-dash-refresh).tm-busy::after { content: none; display: none; }
.tm-ui :is(.tm-topbar-refresh, .tm-dash-refresh).tm-busy { opacity: 1; }
.tm-ui :is(.tm-topbar-refresh, .tm-dash-refresh).tm-busy > svg { animation: tm-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tm-ui :is(.tm-topbar-refresh, .tm-dash-refresh).tm-busy > svg { animation-duration: 2s; } }

/* 2026-11-19 Projects report: every bar has its number and says what it is a share of (user: "all i see is green bars"). */
.tm-ui .tm-projrep-keys { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -4px 0 0; padding: 0; list-style: none; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-projrep-keys li { display: inline-flex; align-items: center; gap: 6px; }
.tm-ui .tm-projrep-keys li > i, .tm-ui .tm-projrep-manual > i, .tm-ui .tm-projrep-ov-list li > i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.tm-ui .tm-projrep-keys b { color: var(--tm-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tm-ui .tm-projrep-keys span { min-width: 36px; padding: 1px 6px; border-radius: 999px; background: var(--tm-canvas); color: var(--tm-ink); font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.tm-ui .tm-projrep-keys .is-note { font-style: italic; }
.tm-ui .tm-projrep-tiny { grid-column: 1 / -1; margin: 0; color: var(--tm-muted); font-size: 13px; }
.tm-ui .tm-projrep-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-ui .tm-projrep-manual { display: inline-flex; align-items: center; gap: 5px; color: var(--tm-muted); font-size: 12px; font-weight: 500; }
.tm-ui .tm-projrep-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.tm-ui .tm-projrep-pct { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; min-width: 44px; color: var(--tm-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-ui .tm-projrep-pct small { color: var(--tm-muted); font-size: 11px; font-weight: 500; }
.tm-ui .tm-projrep-dash { grid-column: 1 / -1; color: var(--tm-muted); }
.tm-ui .tm-projrep-overview { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.tm-ui .tm-projrep-ov-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tm-ui .tm-projrep-ov-head h2 { margin: 0; color: var(--tm-ink); font: 650 16px/1.3 var(--tm-font); }
.tm-ui .tm-projrep-ov-head > div:first-child span { color: var(--tm-muted); font-size: 12px; }
.tm-ui .tm-projrep-stack { display: flex; gap: 2px; height: 12px; border-radius: 999px; background: var(--tm-track); overflow: hidden; }
.tm-ui .tm-projrep-stack i { display: block; height: 100%; min-width: 3px; }
.tm-ui .tm-projrep-ov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.tm-ui .tm-projrep-ov-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; font-size: 13px; }
.tm-ui .tm-projrep-ov-list span { overflow: hidden; color: var(--tm-ink); text-overflow: ellipsis; white-space: nowrap; }
.tm-ui .tm-projrep-ov-list b { color: var(--tm-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-ui .tm-projrep-ov-list em { color: var(--tm-muted); font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .tm-ui .tm-projrep-share { grid-template-columns: 1fr; gap: 4px; } .tm-ui .tm-projrep-pct { justify-content: flex-start; } }
/* 2026-11-19: person/task bars split like the project bar: green = tracked, striped yellow = added manually. */
.tm-ui .tm-projrep-meter.is-split { display: flex; }
.tm-ui .tm-projrep-meter.is-split i { flex: none; min-width: 0; border-radius: 0; }
.tm-ui .tm-projrep-meter.is-split i:first-child { border-radius: 999px 0 0 999px; }
.tm-ui .tm-projrep-meter.is-split .is-tracked { background: var(--tm-accent); }
.tm-ui .tm-projrep-meter.is-split .is-manual { background: var(--tm-edited-fill); }
.tm-ui .tm-projrep-meter.is-split .is-tracked[style*="width: 0%"] + .is-manual { border-radius: 999px 0 0 999px; }
.tm-ui .tm-projrep-share > .tm-projrep-dash { color: var(--tm-muted); font-size: 13px; }

/* "Start the timer when nTime opens" (2026-11-22): the 10 s notice (js/tm-auto-start.js). Tokens only, all three themes. */
.tm-desktop .tm-as-notice { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 1080; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; border: 1px solid var(--tm-accent-line); border-radius: var(--tm-radius);
  background: var(--tm-accent-soft); color: var(--tm-ink); box-shadow: 0 8px 24px rgba(0,0,0,.12); font-weight: 600; }
.tm-desktop .tm-as-notice-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-desktop .tm-as-notice .tm-as-cancel { flex: none; min-height: 32px; padding: 4px 14px; }
.tm-desktop .tm-autostart-slot:empty { display: none; }

/* Lock background page scrolling whenever any modal <dialog> is open (web & desktop, 2026-11-26). */
html:has(dialog[open]), body:has(dialog[open]), body:has(dialog[open]) .dash-container {
  overflow: hidden !important;
  overscroll-behavior: none;
}
dialog[open] {
  overscroll-behavior: contain;
}

/* Help "?" (2026-12-02, <x-tm-help>, js/tm-tip.js): explains the control next to it. Hover, focus or tap shows the tooltip.
   Small on screen, with a 32 px hit area around it. */
.tm-help { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--tm-muted); vertical-align: -3px; cursor: help; }
.tm-help::after { content: ""; position: absolute; inset: -7px; }
.tm-help:hover, .tm-help[aria-describedby~="tm-tip"] { color: var(--tm-accent-ink); }
.tm-help:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }

/* Show/hide password (2026-12-02, js/tm-password.js): an eye inside the right edge of every password field. */
.tm-pw { position: relative; display: block; width: 100%; }
.tm-pw > .tm-pw-input { width: 100%; padding-right: 48px !important; }
.tm-pw > .tm-pw-input::-ms-reveal { display: none; }
.tm-pw-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--tm-radius-control, 10px); background: transparent; color: var(--tm-muted); cursor: pointer; }
.tm-pw-eye:hover { color: var(--tm-ink); background: var(--tm-hover); }
.tm-pw-eye:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tm-accent-ring); }
.tm-pw-eye:disabled { opacity: .45; cursor: not-allowed; background: transparent; }
.tm-pw-eye[aria-pressed="true"] { color: var(--tm-accent-ink); }

/* 2026-12-02 (owner: "make the counter tabular so it doesn't shift while counting"). A `font: … !important` shorthand also
   resets font-variant-numeric with !important, so a plain "tabular-nums" written after it was silently lost and the running
   counter jumped every second. Every live clock keeps equal-width digits, whatever font rule a page adds later. */
.tm-desktop #counter-task, .tm-desktop #total_time_counter, .tm-desktop .tm-today-value, .tm-desktop .tm-now-time,
.tm-desktop.tm-tracker :is(#table_content,#task_searches) > .row > div:nth-child(3) p, .tm-ui [role="timer"] { font-variant-numeric: tabular-nums !important; font-feature-settings: "tnum" 1; }

/* tmConfirm host (2026-12-02): a bare modal <dialog> so the confirmation sits in the top layer, above any other open dialog. */
.tm-confirm-host { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.tm-confirm-host::backdrop { background: transparent; }
.tm-confirm-host > .tm-confirm { position: fixed; inset: 0; }
