/* Handyman App — crew app. Light/dark follows the phone setting. */
.tmt-app, .tmt-toasts {
	--bg: #f4f6fa; --card: #ffffff; --fg: #0f172a; --muted: #64748b; --line: #e5e9f0; --soft: #eef2f7; --field: #ffffff;
	--ok: #16a34a; --ok-bg: #dcfce7; --ok-fg: #166534;
	--warn-bg: #fee2e2; --warn-fg: #b91c1c;
	--info-bg: #e0ecff; --info-fg: #1d4ed8;
	--amber-bg: #fef3c7; --amber-fg: #92400e;
	--accent: #ea6c0a; --on-accent: #ffffff; --navy: #13294b;
	--radius: 16px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
}
@media (prefers-color-scheme: dark) {
	.tmt-app, .tmt-toasts {
		--bg: #0b0f17; --card: #151a24; --fg: #e8ebf1; --muted: #94a3b8; --line: #252d3b; --soft: #1c2330; --field: #0f141d;
		--ok-bg: #0f2e1c; --ok-fg: #86efac; --warn-bg: #3a1414; --warn-fg: #fca5a5; --info-bg: #13254a; --info-fg: #93c5fd; --amber-bg: #3a2a0a; --amber-fg: #fcd34d;
		--shadow: 0 1px 2px rgba(0,0,0,.4);
	}
}
body.tmt-body { margin: 0; background: #f4f6fa; }
@media (prefers-color-scheme: dark) { body.tmt-body { background: #0b0f17; } }
.tmt-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif; color: var(--fg); background: var(--bg); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.tmt-app *, .tmt-app *::before, .tmt-app *::after { box-sizing: border-box; }
.tmt-app button { font: inherit; }
.tmt-app h1, .tmt-app h2, .tmt-app h3, .tmt-app p { margin: 0; }
.tmt-app:not(.tmt-fullscreen) { max-width: 560px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; min-height: 600px; position: relative; }
.tmt-fullscreen { min-height: 100vh; min-height: 100dvh; }

/* Boot spinner */
.tmt-boot { display: grid; place-items: center; min-height: 60vh; }
.tmt-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: tmt-spin .8s linear infinite; }
@keyframes tmt-spin { to { transform: rotate(360deg); } }

/* Icons */
.tmt-ic { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; }
.tmt-ic svg { width: 100%; height: 100%; }

/* Top bar */
.tmt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.tmt-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tmt-logo { height: 32px; width: auto; max-width: 120px; object-fit: contain; border-radius: 8px; }
.tmt-logo-fallback { width: 32px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; }
.tmt-brand-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmt-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); font-weight: 800; font-size: 14px; }
.tmt-avatar-btn { border: 0; cursor: pointer; }

/* Main + views */
.tmt-main { padding: 16px 16px calc(110px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.tmt-view { display: flex; flex-direction: column; gap: 14px; animation: tmt-in .18s ease-out; }
@keyframes tmt-in { from { opacity: 0; transform: translateY(6px); } }
.tmt-hello { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.tmt-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tmt-section { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px; }
.tmt-muted { color: var(--muted); font-size: 14px; }
.tmt-small { font-size: 13px; }

/* Stats + quick actions */
.tmt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tmt-stat { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tmt-stat strong { font-size: 30px; font-weight: 800; line-height: 1.1; }
.tmt-stat span { color: var(--muted); font-size: 14px; }
.tmt-stat.is-alert strong { color: var(--warn-fg); }
.tmt-stat.is-alert { background: var(--warn-bg); }
.tmt-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tmt-quick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; border: 0; border-radius: var(--radius); background: var(--card); color: var(--fg); font-weight: 700; font-size: 16px; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .08s; }
.tmt-quick-btn:active { transform: scale(.98); }
.tmt-quick-btn .tmt-ic { width: 28px; height: 28px; }
.tmt-quick-btn.is-accent { background: var(--accent); color: var(--on-accent); }

/* Lists */
.tmt-list { display: flex; flex-direction: column; gap: 8px; }
.tmt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .08s; }
.tmt-row:active { transform: scale(.99); }
.tmt-row.is-overdue { box-shadow: inset 3px 0 0 var(--warn-fg), var(--shadow); }
.tmt-row-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.tmt-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tmt-row-main strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmt-row-main .tmt-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pills */
.tmt-pill { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tmt-pill-available { background: var(--ok-bg); color: var(--ok-fg); }
.tmt-pill-checked_out { background: var(--info-bg); color: var(--info-fg); }
.tmt-pill-mine { background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.tmt-pill-overdue, .tmt-pill-lost { background: var(--warn-bg); color: var(--warn-fg); }
.tmt-pill-repair { background: var(--amber-bg); color: var(--amber-fg); }

/* Buttons */
.tmt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 14px; background: var(--soft); color: var(--fg); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .08s, opacity .15s; }
.tmt-btn:active { transform: scale(.98); }
.tmt-btn-primary { background: var(--accent); color: var(--on-accent); }
.tmt-btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.tmt-btn-block { width: 100%; }
.tmt-btn-small { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
.tmt-btn.is-busy { opacity: .6; pointer-events: none; }
.tmt-btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: tmt-spin .7s linear infinite; }
.tmt-sticky-cta { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Forms */
.tmt-form { display: flex; flex-direction: column; gap: 14px; }
.tmt-label { display: flex; flex-direction: column; gap: 6px; }
.tmt-label-text { font-size: 13px; font-weight: 700; color: var(--muted); }
.tmt-input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--fg); font-size: 16px; outline: none; font-family: inherit; }
.tmt-input:focus, .tmt-field:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tmt-field { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--fg); text-align: left; cursor: pointer; }
.tmt-field-ic { color: var(--muted); width: 20px; height: 20px; }
.tmt-field-text { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmt-field-text.is-placeholder { color: var(--muted); font-weight: 500; }
.tmt-field-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; max-width: 45%; }
.tmt-field-text { flex: 1 1 auto; }
.tmt-chev { color: var(--muted); font-size: 12px; }
.tmt-place { display: grid; gap: 14px; }
.tmt-stock { margin-top: -6px; padding-left: 4px; }
.tmt-stock.is-low { color: var(--warn-fg); font-weight: 600; }
.tmt-search { margin-top: 2px; }

/* Quantity stepper */
.tmt-stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; }
.tmt-step { height: 56px; border: 0; border-radius: 14px; background: var(--soft); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.tmt-step:active { background: var(--line); }
.tmt-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--field); padding-right: 14px; }
.tmt-qty:focus-within { border-color: var(--accent); }
.tmt-qty-input { flex: 1; min-width: 0; width: 100%; height: 54px; border: 0; background: transparent; color: var(--fg); font-size: 24px; font-weight: 800; text-align: center; outline: none; -moz-appearance: textfield; }
.tmt-qty-input::-webkit-outer-spin-button, .tmt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tmt-unit { color: var(--muted); font-weight: 600; }

/* Chips + segmented control */
.tmt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tmt-chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.tmt-chips-scroll::-webkit-scrollbar { display: none; }
.tmt-chip { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; font-size: 14px; cursor: pointer; }
.tmt-chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tmt-chip-n { opacity: .6; font-weight: 700; }
.tmt-date { margin-top: 8px; }
.tmt-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); padding: 4px; border-radius: 14px; }
.tmt-seg button { border: 0; background: transparent; color: var(--muted); padding: 10px; border-radius: 11px; font-weight: 700; cursor: pointer; }
.tmt-seg button.is-on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }

/* Empty states + notices */
.tmt-empty { text-align: center; padding: 28px 16px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tmt-empty-ic { width: 36px; height: 36px; color: var(--muted); margin-bottom: 6px; }
.tmt-notice { padding: 14px; border-radius: 14px; background: var(--amber-bg); color: var(--amber-fg); font-weight: 600; }

/* Bottom nav */
.tmt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tmt-app:not(.tmt-fullscreen) .tmt-nav { position: sticky; }
.tmt-nav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; border-radius: 12px; }
.tmt-nav-btn.is-on { color: var(--accent); }
.tmt-nav-btn.is-scan .tmt-ic { width: 48px; height: 48px; padding: 12px; margin-top: -22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (min-width: 700px) { .tmt-nav { left: 50%; right: auto; width: 480px; transform: translateX(-50%); bottom: 16px; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding-bottom: 8px; } }

/* Scanner */
.tmt-scan-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 22px; overflow: hidden; background: #000; }
.tmt-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmt-scan-frame { position: absolute; inset: 16%; }
.tmt-scan-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 6px; }
.tmt-scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tmt-scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.tmt-scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.tmt-scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.tmt-scan-line { position: absolute; left: 6%; right: 6%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: tmt-scanline 2.2s ease-in-out infinite; }
@keyframes tmt-scanline { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.tmt-scan-msg { text-align: center; color: var(--muted); font-weight: 600; }
.tmt-scan-msg.is-warn { color: var(--warn-fg); }

/* Bottom sheet */
.tmt-sheet-layer { position: fixed; inset: 0; z-index: 50; }
.tmt-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.5); opacity: 0; transition: opacity .2s; }
.tmt-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--card); color: var(--fg); border-radius: 24px 24px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.tmt-sheet-layer.is-open .tmt-backdrop { opacity: 1; }
.tmt-sheet-layer.is-open .tmt-sheet { transform: none; }
@media (min-width: 700px) { .tmt-sheet { left: 50%; width: 520px; bottom: auto; top: 8vh; border-radius: 22px; transform: translate(-50%, 16px); opacity: 0; transition: transform .2s, opacity .2s; } .tmt-sheet-layer.is-open .tmt-sheet { transform: translate(-50%, 0); opacity: 1; } .tmt-grab { display: none; } }
.tmt-grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.tmt-tool-sheet { display: flex; flex-direction: column; gap: 14px; }
.tmt-tool-head { display: flex; align-items: center; gap: 12px; }
.tmt-tool-head > div:nth-child(2) { flex: 1; min-width: 0; }
.tmt-tool-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tmt-tool-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
.tmt-info-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.tmt-info-card > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.tmt-takeover { border-top: 1px solid var(--line); padding-top: 14px; }

/* Account menu */
.tmt-menu { display: flex; flex-direction: column; gap: 4px; }
.tmt-menu-name { font-weight: 800; font-size: 18px; padding: 0 6px 10px; }
.tmt-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border: 0; background: none; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 16px; cursor: pointer; text-align: left; }
.tmt-menu-item:hover { background: var(--soft); }

/* Toasts */
.tmt-toasts { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); z-index: 100001; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; background: none; }
.tmt-toast { display: flex; align-items: center; gap: 10px; max-width: 480px; padding: 12px 16px; border-radius: 14px; background: #0f172a; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(-16px); opacity: 0; transition: transform .2s, opacity .2s; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tmt-toast .tmt-ic { width: 20px; height: 20px; color: #4ade80; }
.tmt-toast.is-err { background: #b91c1c; }
.tmt-toast.is-err .tmt-ic { color: #fff; }
.tmt-toast.is-in { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .tmt-toast { background: #e8ebf1; color: #0b0f17; } .tmt-toast .tmt-ic { color: #16a34a; } .tmt-toast.is-err { background: #ef4444; color: #fff; } }

/* Login / gate */
.tmt-gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.tmt-app.tmt-gate:not(.tmt-fullscreen) { min-height: 520px; }
.tmt-login-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.tmt-login-card h1 { font-size: 24px; font-weight: 800; }
.tmt-login-logo { max-height: 64px; max-width: 180px; margin: 0 auto 4px; object-fit: contain; }
.tmt-login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 8px; }
.tmt-login-card form p { margin: 0; }
.tmt-login-card label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tmt-login-card input[type=text], .tmt-login-card input[type=password] { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--fg); font-size: 16px; }
.tmt-login-card .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.tmt-login-card input[type=submit] { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; cursor: pointer; }

/* ===== Day log ===== */
.tmt-today { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 0; color: var(--fg); width: 100%; text-align: left; }
.tmt-today > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tmt-today strong { font-size: 18px; font-weight: 800; }
.tmt-today-home { cursor: pointer; }
.tmt-today-home strong { font-size: 16px; }
.tmt-today-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
.tmt-today-home .tmt-chev { font-size: 24px; color: var(--muted); }
.tmt-today-home.is-alert { background: var(--warn-bg); }
.tmt-today-home.is-alert .tmt-today-ic { background: var(--card); color: var(--warn-fg); }
.tmt-alert-card { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 0; background: var(--warn-bg); color: var(--warn-fg); cursor: pointer; }
.tmt-alert-card span { color: var(--fg); }
.tmt-alert-card em { font-style: normal; font-weight: 700; font-size: 13px; }
.tmt-alert-card.is-static { cursor: default; }
.tmt-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; border: 0; background: none; color: var(--accent); font-weight: 700; padding: 4px 0; cursor: pointer; margin-bottom: -6px; }
.tmt-back .tmt-ic { width: 20px; height: 20px; }
.tmt-date-ic { flex-direction: column; gap: 0; line-height: 1; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.tmt-date-ic b { font-size: 16px; font-weight: 800; }
.tmt-date-ic small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tmt-hours-box { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tmt-time-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tmt-time-row .tmt-label { min-width: 0; }
.tmt-time-row .tmt-label-text { display: flex; justify-content: space-between; align-items: center; }
.tmt-time { font-size: 18px; font-weight: 700; text-align: center; min-width: 0; width: 100%; padding-left: 8px; padding-right: 8px; }
.tmt-now { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.tmt-hours-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.tmt-hours-total { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.tmt-hours-total.is-bad { color: var(--warn-fg); }
.tmt-textarea { min-height: 0; resize: vertical; line-height: 1.45; }
.tmt-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tmt-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--soft); display: block; }
.tmt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmt-photo.is-uploading img { opacity: .45; }
.tmt-photo .tmt-spinner { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; }
.tmt-photo-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.tmt-photo-add { border: 2px dashed var(--line); background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 13px; cursor: pointer; }
.tmt-file { display: none; }
.tmt-linked { display: flex; flex-direction: column; gap: 6px; }
.tmt-linked-box { border-radius: 14px; background: var(--soft); padding: 4px 14px; }
.tmt-linked-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.tmt-linked-row + .tmt-linked-row { border-top: 1px solid var(--line); }
.tmt-linked-row .tmt-ic { color: var(--muted); margin-top: 1px; }
.tmt-linked-row strong { font-weight: 600; font-size: 15px; display: block; }
.tmt-link { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 4px 0; cursor: pointer; font-size: 14px; }
.tmt-sign { gap: 8px; }
.tmt-sig-pad { position: relative; height: 160px; border-radius: 14px; border: 1.5px dashed var(--line); background: #fff; overflow: hidden; touch-action: none; }
.tmt-sig-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.tmt-sig-hint { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; color: #94a3b8; pointer-events: none; font-size: 14px; border-top: 1px solid #cbd5e1; margin: 0 24px; padding-top: 6px; }
.tmt-sig-pad.is-signed .tmt-sig-hint { opacity: 0; }
.tmt-sig-pad.is-done { display: grid; place-items: center; border-style: solid; }
.tmt-sig-pad.is-done img { max-height: 140px; max-width: 100%; }
.tmt-btn-danger { background: var(--warn-bg); color: var(--warn-fg); }
.tmt-hours-card { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tmt-hours-card strong { font-size: 30px; font-weight: 800; color: var(--accent); }
.tmt-card-block { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tmt-pre { white-space: pre-wrap; }
.tmt-day-editor .tmt-sticky-cta { margin-top: 6px; }
@media (max-width: 360px) { .tmt-nav-btn span:not(.tmt-ic) { font-size: 10px; } }
.tmt-tip { text-align: center; }
.tmt-tool-sheet .tmt-photo-grid { grid-template-columns: repeat(4, 1fr); }

/* ===== Jobs in the crew app ===== */
.tmt-job-ic { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.tmt-pill-job-approved { background: var(--info-bg); color: var(--info-fg); }
.tmt-pill-job-scheduled { background: #cffafe; color: #0e7490; }
.tmt-pill-job-in_progress { background: var(--amber-bg); color: var(--amber-fg); }
.tmt-pill-job-completed { background: var(--ok-bg); color: var(--ok-fg); }
@media (prefers-color-scheme: dark) { .tmt-pill-job-scheduled { background: #083344; color: #67e8f9; } }
.tmt-job-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tmt-job-actions .tmt-btn { width: 100%; min-height: 46px; }
.tmt-job-date { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.tmt-job-date .tmt-ic { width: 18px; height: 18px; }
.tmt-scope { box-shadow: none; background: var(--soft); }
.tmt-info-card > div:last-child span { display: block; }

/* ===== My day ===== */
.tmt-myday { display: flex; flex-direction: column; gap: 10px; }
.tmt-visit { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-left: 5px solid var(--accent); }
.tmt-visit.is-done { border-left-color: var(--ok); opacity: .7; }
.tmt-visit-top { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 10px; cursor: pointer; }
.tmt-visit-win { font-weight: 800; color: var(--accent); font-size: 14px; }
.tmt-visit-top strong { font-size: 17px; }
.tmt-visit-with { font-size: 13px; color: #7c3aed; font-weight: 600; }
.tmt-visit-note { font-size: 13px; background: var(--amber-bg); color: var(--amber-fg); border-radius: 8px; padding: 6px 8px; margin-top: 4px; }
.tmt-visit-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 12px; }
.tmt-visit-acts .tmt-btn { width: 100%; padding: 8px 6px; font-size: 13px; gap: 4px; }
.tmt-visit-acts .tmt-btn .tmt-ic { width: 18px; height: 18px; }
.tmt-btn.is-sent { background: var(--ok-bg); color: var(--ok-fg); }
.tmt-btn-done { background: var(--accent) !important; color: var(--on-accent) !important; }
.tmt-eta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tmt-upcoming { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.tmt-up-row { display: grid; grid-template-columns: 84px 70px 1fr; grid-template-rows: auto auto; gap: 0 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: baseline; }
.tmt-up-row:last-child { border-bottom: 0; }
.tmt-up-row b { font-size: 13px; }
.tmt-up-row span { font-size: 12px; color: var(--accent); font-weight: 700; }
.tmt-up-row strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmt-up-row em { grid-column: 3; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- Navy + orange home (1.8) ---------- */
.tmt-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 18px 18px 16px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--navy) 70%, #4d6a99) 0%, var(--navy) 60%); box-shadow: 0 10px 24px color-mix(in srgb, var(--navy) 30%, transparent); }
.tmt-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); }
.tmt-hero .tmt-hello { color: #fff; margin: 0; }
.tmt-hero-k { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; }
.tmt-hero-sub { color: color-mix(in srgb, var(--accent) 70%, #fff); font-weight: 700; font-size: 14px; margin: 2px 0 14px !important; }
.tmt-hero .tmt-stats { position: relative; z-index: 1; }
.tmt-hero .tmt-stat { background: rgba(255,255,255,.1); box-shadow: none; color: #fff; padding: 10px 14px; }
.tmt-hero .tmt-stat span { color: rgba(255,255,255,.75); }
.tmt-hero .tmt-stat.is-alert { background: rgba(239,68,68,.25); }
.tmt-hero .tmt-stat.is-alert strong { color: #fecaca; }
.tmt-hero-btn { position: relative; z-index: 1; margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; cursor: pointer; }
.tmt-hero-btn:active { transform: scale(.98); }
.tmt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tmt-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--fg); font-weight: 700; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow); }
.tmt-tile:active { transform: scale(.97); }
.tmt-tile-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.tmt-tile:nth-child(odd) .tmt-tile-ic { color: var(--navy); background: color-mix(in srgb, var(--navy) 10%, var(--card)); }
@media (prefers-color-scheme: dark) { .tmt-tile:nth-child(odd) .tmt-tile-ic { color: #9fb6dd; background: #1c2a44; } }
.tmt-top .tmt-logo-fallback { background: var(--navy); }

/* ---------- Time clock (in the home banner) ---------- */
.tmt-clock { position: relative; z-index: 1; margin: 4px 0 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.tmt-clock .tmt-hero-btn { margin-top: 10px; }
.tmt-clock-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tmt-clock-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; flex: none; }
.tmt-clock.is-work .tmt-clock-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: tmt-pulse 1.6s infinite; }
.tmt-clock.is-break .tmt-clock-dot { background: #f59e0b; }
.tmt-clock.is-stale { background: rgba(239,68,68,.22); border-color: rgba(252,165,165,.5); }
.tmt-clock.is-stale .tmt-clock-dot { background: #f87171; }
@keyframes tmt-pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.tmt-clock-since { margin-left: auto; color: rgba(255,255,255,.7); font-size: 13px; }
.tmt-clock-job { margin: 6px 0 0 !important; font-weight: 700; font-size: 17px; color: #fff; }
.tmt-clock-timer { margin: 2px 0 2px !important; font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.tmt-clock-totals { margin: 6px 0 0 !important; color: rgba(255,255,255,.78); font-size: 14px; font-variant-numeric: tabular-nums; }
.tmt-clock-totals b { color: #fff; }
.tmt-clock-ot { color: #fdba74; font-weight: 800; }
.tmt-clock-ot.is-soon { font-weight: 600; }
.tmt-clock-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tmt-clock-acts .tmt-hero-btn { grid-column: span 2; margin: 0; }
.tmt-clock-btn { min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.tmt-clock-btn:active { transform: scale(.98); }
.tmt-clock-btn.is-out { background: #fff; color: var(--navy); border-color: #fff; }
.tmt-clock-btn.is-busy, .tmt-hero-btn.is-busy { opacity: .6; pointer-events: none; }
.tmt-clock-note { margin: 8px 0 0 !important; font-size: 12px; color: rgba(255,255,255,.6); text-align: center; }
.tmt-hero .tmt-stats { margin-top: 2px; }
.tmt-tiles { grid-template-columns: repeat(4, 1fr); }
.tmt-clock-link { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-radius: 12px; }

/* ---------- Close-out (photos, punch list, sign-off) ---------- */
.tmt-co-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tmt-co-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.tmt-co-h .tmt-muted { margin-left: auto; font-weight: 600; }
.tmt-co-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; flex: none; }
@media (prefers-color-scheme: dark) { .tmt-co-n { background: #2b4470; } }
.tmt-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 12px; padding: 4px; }
.tmt-seg-btn { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 800; font-size: 15px; cursor: pointer; }
.tmt-seg-btn.is-on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.tmt-co-area { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tmt-co-area > strong { grid-column: 1 / -1; }
.tmt-co-col { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.tmt-co-col .tmt-photo { width: 70px; height: 70px; }
.tmt-co-tag { width: 100%; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tmt-co-tag.is-after { color: var(--accent); }
.tmt-co-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; cursor: pointer; }
.tmt-co-item input { width: 24px; height: 24px; accent-color: var(--ok); flex: none; }
.tmt-co-item > span { flex: 1; }
.tmt-co-item.is-done > span > span:first-child { text-decoration: line-through; color: var(--muted); }
.tmt-co-cust { color: var(--accent); font-weight: 700; }
.tmt-co-add { display: flex; gap: 8px; }
.tmt-co-add .tmt-input { flex: 1; }
.tmt-co-agree { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tmt-co-agree input { width: 22px; height: 22px; flex: none; }
.tmt-alert-card.is-ok { background: var(--ok-bg); color: var(--ok-fg); }

/* ---------- Receipts ---------- */
.tmt-rc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.tmt-rc-thumbs .tmt-photo { width: 92px; height: 120px; }
.tmt-rc-snap { flex: 1 1 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, var(--card)); color: var(--accent); font-weight: 800; font-size: 16px; cursor: pointer; }
.tmt-rc-snap .tmt-ic { width: 34px; height: 34px; }
.tmt-rc-snap.is-small { flex: 0 0 92px; min-height: 120px; font-size: 12px; }
.tmt-rc-snap.is-small .tmt-ic { width: 24px; height: 24px; }
.tmt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tmt-rc-total { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tmt-chips-wrap { flex-wrap: wrap; }
.tmt-rc-hint { margin: -4px 0 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.tmt-rc-row { align-items: center; }
.tmt-rc-mini { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--soft); flex: none; }
.tmt-rc-st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tmt-rc-st.is-wait { background: var(--warn-bg); color: var(--warn-fg); }
.tmt-rc-st.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.tmt-rc-st.is-bad { background: #fee2e2; color: #991b1b; }
.tmt-rc-reason { color: #b91c1c; font-size: 13px; font-weight: 600; }

/* My certifications (1.13) */
.tmt-alert-cert { flex-direction: row; align-items: center; gap: 12px; margin: 0 0 14px; }
.tmt-alert-cert > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tmt-alert-cert .tmt-ic { flex: 0 0 auto; width: 26px; height: 26px; }
.tmt-cert-row { align-items: flex-start; }
.tmt-cert-row .tmt-row-main { flex: 1 1 auto; min-width: 0; gap: 3px; }
.tmt-cert-row .tmt-rc-st { align-self: flex-start; }
.tmt-cert-row .tmt-row-ic { flex: 0 0 auto; color: var(--accent); }
.tmt-cert-files { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tmt-cert-files .tmt-link { font-size: 13px; }
.tmt-photo-pdf { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; color: var(--accent); background: var(--surface-2, #f1f5f9); }
.tmt-certs .tmt-list { margin-bottom: 8px; }

/* Job materials list (from the approved estimate) */
.tmt-job-mats { list-style: none; margin: 6px 0 0; padding: 0; }
.tmt-job-mats li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line, #e5e7eb); }
.tmt-job-mats li:first-child { border-top: 0; }
.tmt-job-mats small { grid-column: 1 / -1; }
.tmt-job-mats .tmt-low { color: #b45309; font-weight: 600; }

/* My pay */
.tmt-pay-hero { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin-bottom: 14px; }
.tmt-pay-total { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.tmt-pay-est { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 4px 8px; }
.tmt-pay-lines .tmt-pay-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; }
.tmt-pay-date { font-size: 13px; color: var(--muted); }
.tmt-pay-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tmt-pay-row.is-neg .tmt-pay-amt { color: #b91c1c; }
.tmt-pay-last { margin: 14px 0; }
@media (prefers-color-scheme: dark) { .tmt-pay-est { color: #fcd34d; background: rgba(245, 158, 11, .16); } .tmt-pay-row.is-neg .tmt-pay-amt { color: #f87171; } }
.tmt-pay-lines .tmt-pay-row { grid-template-columns: 58px 1fr auto; }
.tmt-pay-lines .tmt-row-main strong, .tmt-pay-lines .tmt-row-main span { white-space: normal; overflow: visible; text-overflow: clip; }
.tmt-pay-date { line-height: 1.25; }

/* Fixed-price job (crew) */
.tmt-fixed-card { display: flex; flex-direction: column; gap: 6px; }
.tmt-fixed-card.is-offer { border: 2px solid var(--accent, #eb6834); }
.tmt-fixed-amt { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tmt-fixed-card .tmt-btn-block { margin-top: 6px; }
.tmt-section-title { font-size: 16px; margin: 20px 0 8px; }
