/* poppins-latin-300-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/assets/poppins-latin-300-normal-Dku2WoCh.woff2) format('woff2'), url(/assets/poppins-latin-300-normal-DCNuMXUj.woff) format('woff');
}/* poppins-latin-400-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/poppins-latin-400-normal-cpxAROuN.woff2) format('woff2'), url(/assets/poppins-latin-400-normal-BOb3E3N0.woff) format('woff');
}/* poppins-latin-500-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/poppins-latin-500-normal-C8OXljZJ.woff2) format('woff2'), url(/assets/poppins-latin-500-normal-DGXqpDMm.woff) format('woff');
}/* poppins-latin-600-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/poppins-latin-600-normal-zEkxB9Mr.woff2) format('woff2'), url(/assets/poppins-latin-600-normal-BJdTmd5m.woff) format('woff');
}/* poppins-latin-700-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/poppins-latin-700-normal-Qrb0O0WB.woff2) format('woff2'), url(/assets/poppins-latin-700-normal-BVuQR_eA.woff) format('woff');
}/* poppins-latin-ext-300-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/assets/poppins-latin-ext-300-normal-Cirz0Guu.woff2) format('woff2'), url(/assets/poppins-latin-ext-300-normal-nf6F73WS.woff) format('woff');
}/* poppins-latin-ext-400-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/poppins-latin-ext-400-normal-by3JarPu.woff2) format('woff2'), url(/assets/poppins-latin-ext-400-normal-DaBSavcJ.woff) format('woff');
}/* poppins-latin-ext-500-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/poppins-latin-ext-500-normal-CK-6C4Hw.woff2) format('woff2'), url(/assets/poppins-latin-ext-500-normal-CgAe2rWW.woff) format('woff');
}/* poppins-latin-ext-600-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/poppins-latin-ext-600-normal-CAhIAdZj.woff2) format('woff2'), url(/assets/poppins-latin-ext-600-normal-Df5ffKXP.woff) format('woff');
}/* poppins-latin-ext-700-normal */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/poppins-latin-ext-700-normal-cby-RkWa.woff2) format('woff2'), url(/assets/poppins-latin-ext-700-normal-DctTR6Tg.woff) format('woff');
}:root {
  color-scheme: light;

  --color-canvas: #f5f2f7;
  --color-canvas-elevated: #fbf9fc;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.78);
  --color-surface-soft: #f0edf3;
  --color-surface-strong: #1b1a20;
  --color-ink: #1c1a20;
  --color-ink-inverse: #ffffff;
  --color-muted: #716d79;
  --color-muted-strong: #4f4b55;
  --color-line: rgba(42, 35, 48, 0.1);
  --color-line-strong: rgba(42, 35, 48, 0.17);

  --color-primary: #725be8;
  --color-primary-strong: #5640c8;
  --color-primary-soft: #eeeafe;
  --color-primary-contrast: #ffffff;
  --color-accent: #f08da6;
  --color-accent-soft: #ffe8ef;
  --color-peach: #f5b28f;
  --color-lilac: #cba7ef;
  --color-cyan: #61bfc8;

  --color-blue: #3478e5;
  --color-blue-soft: #eaf2ff;
  --color-amber: #a96308;
  --color-amber-soft: #fff1d8;
  --color-red: #c93854;
  --color-red-soft: #ffe9ee;
  --color-red-contrast: #ffffff;
  --color-success: #277d5b;
  --color-success-soft: #e6f6ef;

  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --presentation-canvas: var(--color-canvas);
  --presentation-wash: #e8e0fa;
  --presentation-selected: var(--gradient-primary);
  --presentation-accent: var(--color-primary-strong);

  --gradient-app:
    radial-gradient(circle at 6% 4%, rgba(245, 178, 143, 0.42), transparent 31%),
    radial-gradient(circle at 88% 8%, rgba(203, 167, 239, 0.5), transparent 34%),
    radial-gradient(circle at 52% 42%, rgba(240, 141, 166, 0.16), transparent 42%),
    linear-gradient(155deg, #faf7f8 0%, #f3f0f6 58%, #eeeaf3 100%);
  --gradient-primary: linear-gradient(135deg, #725be8 0%, #9b6ee8 55%, #f08da6 130%);
  --gradient-hero:
    radial-gradient(circle at 88% 14%, rgba(203, 167, 239, 0.32), transparent 36%),
    linear-gradient(145deg, #1c1b21 0%, #242128 100%);
  --gradient-glow: linear-gradient(90deg, #725be8, #f08da6);

  --shadow-xs: 0 2px 8px rgba(50, 39, 58, 0.06);
  --shadow-sm: 0 8px 22px rgba(50, 39, 58, 0.08);
  --shadow-md: 0 18px 42px rgba(50, 39, 58, 0.12);
  --shadow-lg: 0 28px 72px rgba(50, 39, 58, 0.17);
  --shadow-primary: 0 14px 30px rgba(114, 91, 232, 0.24);
  --shadow-nav: 0 16px 42px rgba(35, 28, 41, 0.18);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-size-micro: 10px;
  --font-size-caption: 12px;
  --font-size-body: 14px;
  --font-size-body-lg: 16px;
  --font-size-title-sm: 18px;
  --font-size-title-md: 24px;
  --font-size-title-lg: 30px;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --control-height: 48px;
  --control-height-lg: 54px;
  --page-width: 980px;
  --page-gutter: 18px;
  --toolbar-height: 70px;
  --toolbar-width: 600px;

  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 420ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.24, 1.22);

  /* Compatibility aliases for the first mobile foundation. */
  --brand: var(--color-primary);
  --brand-dark: var(--color-primary-strong);
  --brand-soft: var(--color-primary-soft);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --surface: var(--color-surface);
  --surface-soft: var(--color-surface-soft);
  --blue: var(--color-blue);
  --blue-soft: var(--color-blue-soft);
  --amber: var(--color-amber);
  --amber-soft: var(--color-amber-soft);
  --red: var(--color-red);
  --red-soft: var(--color-red-soft);
  --shadow: var(--shadow-md);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --presentation-wash: #292037;

  --color-canvas: #101015;
  --color-canvas-elevated: #15151b;
  --color-surface: #1b1b22;
  --color-surface-glass: rgba(27, 27, 34, 0.82);
  --color-surface-soft: #25252d;
  --color-surface-strong: #0c0c10;
  --color-ink: #f7f5fb;
  --color-ink-inverse: #141218;
  --color-muted: #aaa6b2;
  --color-muted-strong: #d0ccd6;
  --color-line: rgba(255, 255, 255, 0.09);
  --color-line-strong: rgba(255, 255, 255, 0.16);

  --color-primary: #ac98ff;
  --color-primary-strong: #c8bbff;
  --color-primary-soft: rgba(144, 116, 255, 0.16);
  --color-primary-contrast: #17131f;
  --color-accent: #ff9bb3;
  --color-accent-soft: rgba(255, 122, 157, 0.15);
  --color-peach: #f2a980;
  --color-lilac: #b997f2;
  --color-cyan: #79d0d6;

  --color-blue: #83afff;
  --color-blue-soft: rgba(74, 129, 229, 0.16);
  --color-amber: #ffc267;
  --color-amber-soft: rgba(217, 145, 36, 0.15);
  --color-red: #ff8198;
  --color-red-soft: rgba(223, 67, 96, 0.15);
  --color-red-contrast: #241318;
  --color-success: #7bdbb4;
  --color-success-soft: rgba(58, 166, 119, 0.16);

  --gradient-app:
    radial-gradient(circle at 8% 0%, rgba(242, 169, 128, 0.15), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(137, 98, 224, 0.22), transparent 34%),
    radial-gradient(circle at 50% 38%, rgba(255, 108, 147, 0.08), transparent 38%),
    linear-gradient(160deg, #141319 0%, #101015 54%, #0c0c10 100%);
  --gradient-primary: linear-gradient(135deg, #a58eff 0%, #c99bf0 55%, #ff9bb3 125%);
  --gradient-hero:
    radial-gradient(circle at 88% 12%, rgba(172, 152, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #09090c 0%, #17151c 100%);
  --gradient-glow: linear-gradient(90deg, #ac98ff, #ff9bb3);

  --shadow-xs: 0 3px 10px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 20px 46px rgba(0, 0, 0, 0.31);
  --shadow-lg: 0 32px 78px rgba(0, 0, 0, 0.42);
  --shadow-primary: 0 14px 34px rgba(139, 111, 236, 0.25);
  --shadow-nav: 0 20px 54px rgba(0, 0, 0, 0.48);
}
:root {
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Hosted web presentation shell. The app keeps its own viewport and root toolbar. */
.presentation-document,
.presentation-document body,
.presentation-document #app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.presentation-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: var(--presentation-canvas);
}

.presentation-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 26px;
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-xs);
}

.presentation-brand,
.presentation-brand > span,
.presentation-actions,
.presentation-controls,
.presentation-toggle,
.presentation-toggle button,
.presentation-open {
  display: flex;
  align-items: center;
}

.presentation-brand { gap: 11px; flex-shrink: 0; }
.presentation-brand img { display: block; border-radius: 12px; }
.presentation-brand > span { flex-direction: column; align-items: flex-start; }
.presentation-brand strong { font-size: 19px; line-height: 1.2; letter-spacing: -.6px; }
.presentation-brand strong span { font-weight: 400; margin-inline-start: 3px; }
.presentation-brand small { font-size: 11px; color: var(--color-muted); margin-top: 3px; }
.presentation-controls { gap: 14px; flex-wrap: wrap; justify-content: center; }
.presentation-toggle { gap: 3px; padding: 4px; border-radius: 28px; background: var(--color-surface-soft); }
.presentation-toggle button {
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--color-muted-strong);
  font-size: 12px;
  font-weight: 500;
  transition: color 200ms, background 200ms, box-shadow 200ms;
}
.presentation-toggle button[aria-pressed="true"] {
  background: var(--presentation-selected);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-primary);
}
.presentation-toggle button:hover { color: var(--presentation-accent); background: var(--presentation-wash); }
.presentation-toggle button[aria-pressed="true"]:hover { background: var(--presentation-selected); color: var(--color-primary-contrast); }
.presentation-toggle button:focus-visible,
.presentation-header a:focus-visible,
.presentation-header > button:focus-visible,
.presentation-icon-button:focus-visible {
  outline: 2px solid var(--presentation-accent);
  outline-offset: 3px;
}
.presentation-divider { width: 1px; height: 24px; background: var(--color-line); }
.presentation-landscape-icon { rotate: 90deg; }
.presentation-actions { gap: 8px; }
.presentation-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted-strong);
  transition: background 200ms;
}
.presentation-icon-button:hover { background: var(--color-surface-soft); }
.presentation-open { gap: 8px; padding: 12px 16px; border-radius: 25px; background: var(--color-surface-soft); font-size: 12px; font-weight: 500; }
.presentation-open > svg:last-child { transition: rotate 240ms var(--ease-standard); }
.presentation-open:hover { background: var(--presentation-wash); }
.presentation-open:hover > svg:last-child { rotate: 45deg; }
.presentation-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, var(--presentation-wash), transparent 66%);
}
.presentation-device {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: var(--device-bezel);
  border-radius: 57px;
  background: #17171a;
  box-shadow: 0 28px 65px -22px #21133255, inset 0 0 0 1px #8d8d94, inset 0 0 0 3px #4c4c52, inset 0 0 0 5px #121215;
  transform-origin: center;
  transition: width 420ms var(--ease-standard), height 420ms var(--ease-standard), transform 420ms var(--ease-standard), border-radius 420ms;
  will-change: transform;
}
.presentation-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 47px;
  background: var(--color-canvas);
  box-shadow: 0 0 0 2px #09090b;
  transition: border-radius 420ms;
}
.presentation-app { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: var(--color-canvas); }
.presentation-status { position: absolute; z-index: 2; inset: 0 0 auto; height: 59px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 33px; color: var(--color-ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.4px; pointer-events: none; }
.presentation-status::before { content: ''; position: absolute; z-index: -1; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); mask-image: linear-gradient(#000 75%, transparent); }
.presentation-status-icons { display: flex; align-items: center; gap: 6px; }
.presentation-camera { position: absolute; z-index: 3; top: calc(var(--device-bezel) + 11px); left: 50%; width: 122px; height: 35px; border-radius: 22px; background: #050506; transform: translateX(-50%); pointer-events: none; }
.presentation-camera::after { content: ''; position: absolute; right: 11px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 65% 35%, #1c2639, #090b11 70%); }
.presentation-home-indicator { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; height: 34px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; pointer-events: none; }
.presentation-home-indicator::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, var(--color-canvas) 35%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: linear-gradient(to top, #000 60%, transparent); }
.presentation-home-indicator span { width: 134px; height: 5px; border-radius: 4px; background: var(--color-ink); opacity: .85; }
.presentation-hardware-button { position: absolute; width: 3px; background: #66666d; border-radius: 2px; }
.presentation-hardware-button--power { top: 24%; height: 64px; right: -3px; }
.presentation-hardware-button--volume { top: 20%; height: 84px; left: -3px; }
.presentation-device--tablet { border-radius: 33px; box-shadow: 0 28px 65px -22px #21133255, inset 0 0 0 1px #99999f, inset 0 0 0 3px #4d4d53; background: #121214; }
.presentation-device--tablet .presentation-screen { border-radius: 15px; }
.presentation-device--tablet .presentation-camera { top: 6px; width: 6px; height: 6px; }
.presentation-device--tablet .presentation-camera::after { inset: 1px; width: 4px; height: 4px; }
.presentation-device--tablet .presentation-status { height: 28px; padding-inline: 20px; font-size: 13px; }
.presentation-device--tablet .presentation-status-icons { transform: scale(.88); transform-origin: right center; }
.presentation-device--tablet .presentation-cellular { display: none; }
.presentation-device--tablet .presentation-home-indicator span { width: 220px; }
.presentation-device--tablet .presentation-home-indicator { height: 24px; }
.presentation-device--landscape.presentation-device--phone .presentation-camera { left: calc(var(--device-bezel) + 11px); top: 50%; width: 35px; height: 122px; transform: translateY(-50%); }
.presentation-device--landscape.presentation-device--phone .presentation-camera::after { top: 11px; right: 13px; }
.presentation-device--landscape.presentation-device--phone .presentation-status { display: none; }
.presentation-device--landscape.presentation-device--phone .presentation-home-indicator { height: 21px; }
.presentation-device--landscape .presentation-hardware-button { width: 64px; height: 4px; }
.presentation-device--landscape .presentation-hardware-button--power { top: auto; bottom: -3px; right: 24%; }
.presentation-device--landscape .presentation-hardware-button--volume { top: -3px; left: 20%; }
.presentation-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: var(--gradient-app); }
.presentation-loading p { font-size: 14px; color: var(--color-muted-strong); }
.presentation-loading a { display: flex; align-items: center; gap: 8px; color: var(--presentation-accent); text-decoration: underline; text-underline-offset: 4px; }
.presentation-spinner { width: 26px; height: 26px; border: 2px solid var(--color-line); border-top-color: var(--presentation-accent); border-radius: 50%; animation: presentation-spin 800ms linear infinite; }
@keyframes presentation-spin { to { rotate: 360deg; } }
@media (max-width: 1100px) {
  .presentation-header { gap: 12px; padding: 12px 18px; }
  .presentation-brand small { display: none; }
  .presentation-open { padding: 12px; }
  .presentation-open > span { display: none; }
  .presentation-toggle button { padding-inline: 12px; }
}
@media (max-width: 700px) {
  .presentation-header { padding: 10px 14px; }
  .presentation-brand img { width: 32px; height: 32px; }
  .presentation-brand strong { font-size: 17px; }
  .presentation-controls { order: 3; width: 100%; gap: 8px; }
  .presentation-controls .presentation-toggle { flex: 1; }
  .presentation-toggle button { flex: 1; padding: 9px 6px; font-size: 10px; gap: 5px; }
  .presentation-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .presentation-device,
  .presentation-screen,
  .presentation-toggle button,
  .presentation-open > svg { transition: none; }
  .presentation-spinner { animation: none; }
}

/* Only the actual app inside the presentation frame receives simulated iOS insets.
   Native builds keep env() values and normal browsers keep their usual scrollbars. */
html.presentation-embedded {
  --safe-area-top: 59px;
  --safe-area-bottom: 34px;
  scrollbar-width: none;
}
.presentation-embedded * { scrollbar-width: none; }
.presentation-embedded::-webkit-scrollbar,
.presentation-embedded *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.presentation-embedded[data-preview-device="tablet"] { --safe-area-top: 28px; --safe-area-bottom: 24px; }
.presentation-embedded[data-preview-device="phone"][data-preview-orientation="landscape"] { --safe-area-top: 0px; --safe-area-bottom: 21px; }
.presentation-embedded[data-preview-device="phone"][data-preview-orientation="landscape"] #app { padding-inline: 44px; }
.presentation-embedded .bottom-nav { bottom: var(--safe-area-bottom); }
.presentation-embedded[data-preview-device="tablet"] .auth-page--login .auth-logo { width: min(238px, 22svh); }

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-canvas);
  touch-action: manipulation;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--gradient-app);
  background-attachment: fixed;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  touch-action: manipulation;
}

body:has(.auth-page--login) {
  height: 100svh;
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: var(--font-size-title-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: var(--font-size-title-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  letter-spacing: 0;
}

strong,
b {
  font-weight: var(--font-weight-semibold);
}

#app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  transform-origin: center;
  transition:
    filter 260ms ease,
    transform 320ms var(--ease-standard);
}

body.is-modal-open {
  overflow: hidden;
}

body.is-modal-open #app {
  pointer-events: none;
  user-select: none;
}

body.is-modal-open.has-modal-blur #app {
  filter: blur(10px);
  transform: scale(1.015);
}

.modal-overlay {
  background: rgba(12, 11, 17, 0.58);
}

body.has-modal-blur .modal-overlay {
  background: rgba(18, 16, 24, 0.24);
}

body:not(.has-modal-blur) .create-report-sheet,
body:not(.has-modal-blur) .language-sheet,
body:not(.has-modal-blur) .operations-date-sheet {
  background: var(--color-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  text-transform: uppercase;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button--primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(13, 187, 145, 0.2);
}

.button--primary:hover {
  background: #09a982;
}

.button--quiet {
  color: #415151;
  background: #edf4f3;
}

.button--quiet:hover {
  background: #e4eeec;
}

.button--danger {
  color: var(--color-red-contrast);
  background: var(--red);
}

.button--danger:hover {
  background: color-mix(in srgb, var(--red) 88%, var(--ink));
}

.button--danger svg {
  color: currentColor;
}

.button--full {
  width: 100%;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #425252;
  background: #edf4f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.icon-button:active {
  transform: scale(0.96);
}

.loading-dots {
  min-width: 32px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.loading-dots > span:not(.sr-only) {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: loading-dot 900ms ease-in-out infinite;
}

.loading-dots > span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots > span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes loading-dot {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #415151;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #ffffff;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: none;
}

.password-input {
  position: relative;
}

.field .password-input input {
  padding-right: 52px;
}

.password-input__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
  width: 44px;
}

.password-input__toggle:hover,
.password-input__toggle:focus-visible {
  color: var(--color-primary);
}

.password-input__toggle:active {
  transform: scale(0.92);
}

.password-input__toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
  outline-offset: -5px;
}

.field textarea:focus {
  border-color: var(--brand);
  box-shadow: none;
}

.field small {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.form-error {
  padding: 11px 13px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  color: #9e2035;
  background: var(--red-soft);
  font-size: var(--font-size-body);
  line-height: 1.4;
}

.auth-page {
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(42px + var(--safe-area-top)) 22px calc(30px + var(--safe-area-bottom));
  margin: 0 auto;
  background: #f4f8f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.auth-page--login,
.auth-page--password,
.auth-page--code {
  position: relative;
  justify-content: flex-end;
  gap: clamp(20px, 3svh, 30px);
}

.auth-page--login {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-top: calc(82px + var(--safe-area-top));
  padding-bottom: max(10px, var(--safe-area-bottom));
  gap: clamp(12px, 2svh, 20px);
  overflow: hidden;
}

.auth-brand--actions-only {
  position: absolute;
  top: calc(24px + var(--safe-area-top));
  right: var(--page-gutter);
  left: var(--page-gutter);
  z-index: 2;
  justify-content: space-between;
}

.auth-code-back {
  position: absolute;
  top: calc(22px + var(--safe-area-top));
  left: var(--page-gutter);
  z-index: 2;
}

.auth-logo-space,
.auth-code-brand-space {
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(150px, 28svh, 320px);
  display: grid;
  place-items: center;
}

.auth-page--login .auth-logo-space {
  min-height: 0;
}

.auth-logo-space--password {
  min-height: clamp(170px, 32svh, 380px);
}

.auth-code-brand-space {
  min-height: clamp(180px, 36svh, 420px);
  pointer-events: none;
}

.auth-logo {
  width: clamp(156px, 42vw, 238px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: clamp(24px, 5vw, 34px);
  box-shadow:
    0 28px 62px rgba(78, 48, 166, 0.22),
    0 8px 22px rgba(236, 125, 171, 0.16);
  animation: auth-logo-enter 620ms var(--ease-standard) both;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  object-fit: cover;
}

.auth-panel--login,
.auth-panel--password,
.auth-panel--code {
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
}

.auth-page--login .auth-panel--login {
  flex: 0 1 auto;
  max-height: calc(100svh - 230px - var(--safe-area-top));
  margin-top: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.auth-page--login .auth-panel--login::-webkit-scrollbar {
  display: none;
}

@media (max-width: 699px) {
  .auth-page--login .auth-logo {
    width: clamp(128px, min(38vw, 19svh), 156px);
  }
}

@keyframes auth-logo-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Keep sign-in usable in a short landscape viewport, including device previews. */
@media (min-width: 600px) and (max-height: 520px) {
  .auth-page--login {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(300px, 1.3fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-top: calc(68px + var(--safe-area-top));
    padding-bottom: max(12px, var(--safe-area-bottom));
  }
  .auth-page--login .auth-logo-space { height: 100%; }
  .auth-page--login .auth-logo { width: min(180px, 42svh); }
  .auth-page--login .auth-panel--login {
    height: 100%;
    max-height: none;
    min-height: 0;
    align-self: stretch;
    overflow-y: auto;
  }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand > div {
  display: grid;
  gap: 1px;
}

.auth-brand strong {
  color: var(--ink);
  font-size: 20px;
}

.auth-brand span:not(.brand-mark) {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.brand-mark,
.auth-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-panel {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin-top: 7px;
}

.auth-sign-in-title__accent {
  color: var(--color-primary-strong);
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.55;
}

.auth-panel form {
  margin-top: 24px;
  display: grid;
  gap: 17px;
}

.auth-role-tabs {
  position: relative;
  height: 48px;
  margin-top: 20px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
  overflow: hidden;
}

.auth-role-tabs__indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: calc(var(--radius-md) - 3px);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 360ms var(--ease-standard);
}

.auth-role-tabs--team .auth-role-tabs__indicator {
  transform: translateX(100%);
}

.auth-role-tabs button {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-radius: calc(var(--radius-md) - 3px);
  color: var(--color-muted);
  background: transparent;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition:
    color var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.auth-role-tabs button:active {
  transform: scale(0.96);
}

.auth-role-tabs button.is-active {
  color: var(--color-primary-contrast);
}

.auth-fields {
  display: grid;
  gap: 13px;
}

.floating-input-field {
  position: relative;
  min-width: 0;
  display: block;
}

.floating-input-field > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 18px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    color var(--motion-fast) ease,
    font-size var(--motion-fast) ease,
    top var(--motion-fast) ease,
    transform var(--motion-fast) ease;
  pointer-events: none;
}

.floating-input-field:focus-within > span,
.floating-input-field.is-filled > span {
  top: 8px;
  color: var(--color-primary-strong);
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.floating-input-field > input,
.floating-input-field .password-input input {
  width: 100%;
  height: 58px;
  padding: 23px 18px 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface-glass);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition: border-color var(--motion-fast) ease;
}

.floating-input-field .password-input input {
  padding-right: 54px;
}

.floating-input-field input::placeholder {
  color: var(--color-muted);
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.floating-input-field:focus-within input::placeholder {
  opacity: 0.78;
}

.floating-input-field input:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.floating-input-field .password-input__toggle {
  top: 8px;
}

.auth-fields-enter-active,
.auth-fields-leave-active {
  transition:
    opacity 160ms ease,
    transform 220ms var(--ease-standard);
}

.auth-fields-enter-from {
  opacity: 0;
  transform: translateX(8px);
}

.auth-fields-leave-to {
  opacity: 0;
  transform: translateX(-8px);
}

.auth-panel .text-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 8px;
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
}

.demo-button {
  margin-top: 14px;
}

.auth-back {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-icon {
  margin-bottom: 20px;
}

.otp-input {
  font-size: 24px !important;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 10px !important;
  text-align: center;
  text-transform: uppercase;
}

.company-page {
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(32px + var(--safe-area-top)) 20px calc(32px + var(--safe-area-bottom));
  margin: 0 auto;
  background: #f4f8f7;
}

.company-header {
  margin-bottom: 27px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.company-header h1 {
  margin-top: 7px;
}

.company-header p:last-child {
  max-width: 380px;
  margin-top: 9px;
  color: var(--muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
}

.company-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.company-card {
  position: relative;
  width: 100%;
  min-height: 102px;
  padding: 16px 46px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  text-align: left;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(28, 63, 59, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-card:hover {
  border-color: #9ddacb;
  box-shadow: 0 12px 26px rgba(28, 63, 59, 0.1);
  transform: translateY(-1px);
}

.company-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.company-card__copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.company-card__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card__copy > span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.company-card__status {
  grid-column: 2;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.company-card__arrow {
  position: absolute;
  top: calc(50% - 10px);
  right: 16px;
  color: #7e8c8b;
}

.company-section {
  margin-top: 30px;
}

.company-section > h2 {
  margin-bottom: 10px;
  font-size: var(--font-size-body-lg);
}

.invitation-card,
.unavailable-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.invitation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.invitation-card > div,
.unavailable-card {
  display: grid;
  gap: 5px;
}

.invitation-card span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.unavailable-card small {
  color: var(--muted);
}

.app-frame {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: calc(84px + var(--safe-area-bottom));
  margin: 0 auto;
  background: #f4f8f7;
  box-shadow: 0 0 50px rgba(31, 60, 57, 0.1);
}

.app-header {
  min-height: 124px;
  padding: calc(25px + var(--safe-area-top)) 20px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.app-header__copy {
  min-width: 0;
}

.app-header h1 {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.app-content {
  padding: 18px 16px 28px;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  min-height: calc(68px + var(--safe-area-bottom));
  padding: 7px 18px var(--safe-area-bottom);
  border-top: 1px solid var(--line);
  /* background: rgba(255, 255, 255, 0.97); */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  min-height: 55px;
  border-radius: 7px;
  color: #667676;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  transition: color 180ms ease, background-color 180ms ease;
}

.bottom-nav a.is-active {
  color: var(--brand-dark);
}

.company-chip {
  max-width: 154px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  color: #425252;
  background: var(--surface-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-summary {
  min-height: 105px;
  padding: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #173f3a;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

.today-summary > div {
  padding: 2px 13px;
  display: grid;
  align-content: center;
}

.today-summary > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.today-summary span {
  color: #bfe7dd;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.today-summary strong {
  margin-top: 3px;
  font-size: 28px;
  text-align: center;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.today-summary small {
  margin-top: 6px;
  color: #d9eeea;
  text-align: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.segmented-control {
  height: 45px;
  margin: 16px 0;
  padding: 4px;
  border-radius: 7px;
  background: #e7efee;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.segmented-control button {
  min-width: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  color: #5c6c6b;
  background: transparent;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.segmented-control button.active {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(28, 63, 59, 0.08);
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 15px;
  box-shadow: 0 8px 22px rgba(28, 63, 59, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.task-card:hover {
  border-color: #9ddacb;
  box-shadow: 0 13px 28px rgba(28, 63, 59, 0.1);
  transform: translateY(-2px);
}

.task-card--attention {
  border-left: 3px solid var(--amber);
}

.task-card__topline,
.task-card__footer,
.task-detail__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.status-pill[data-status="in_progress"],
.status-pill[data-status="submitted"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.status-pill[data-status="completed"] {
  color: #27623e;
  background: #e8f6ec;
}

.status-pill[data-status="blocked"],
.status-pill[data-status="delayed"],
.status-pill[data-status="changes_requested"] {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-pill[data-status="cancelled"] {
  color: var(--red);
  background: var(--red-soft);
}

.priority-label {
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-transform: capitalize;
}

.priority-pill {
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
  font-weight: var(--font-weight-semibold);
  text-transform: none;
}

.priority-pill[data-priority="urgent"] {
  color: var(--color-red);
  background: var(--color-red-soft);
}

.priority-pill[data-priority="high"] {
  color: var(--color-amber);
  background: var(--color-amber-soft);
}

.priority-pill[data-priority="normal"] {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.priority-pill[data-priority="low"] {
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
}

.task-card__unit {
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.task-card h2 {
  font-size: 19px;
}

.task-card__reference {
  margin-top: 4px;
  color: #80908f;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
}

.task-card__meta {
  padding: 12px;
  border-radius: 6px;
  background: var(--surface-soft);
  display: grid;
  gap: 9px;
}

.task-card__meta span {
  min-width: 0;
  color: #526261;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
}

.task-card__meta svg {
  flex: 0 0 auto;
  color: var(--brand-dark);
}

.task-card__footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #526261;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
}

.task-card__footer svg {
  color: var(--brand);
  transition: transform 180ms ease;
}

.task-card:hover .task-card__footer svg {
  transform: translateX(3px);
}

.task-skeleton {
  min-height: 218px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 16px;
}

.task-skeleton span,
.task-skeleton strong,
.task-skeleton i {
  border-radius: 5px;
  background: #e7efee;
  animation: skeleton-pulse 1.3s ease-in-out infinite;
}

.task-skeleton span {
  width: 80px;
  height: 24px;
}

.task-skeleton strong {
  width: 70%;
  height: 24px;
}

.task-skeleton i {
  width: 100%;
  height: 42px;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.empty-state {
  min-height: 290px;
  padding: 34px 24px;
  border: 1px dashed #bed1ce;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-state p {
  max-width: 300px;
  margin: 8px 0 19px;
  color: var(--muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
}

.detail-loading {
  min-height: 400px;
  color: var(--brand);
  display: grid;
  place-items: center;
}

.task-detail {
  display: grid;
  gap: 16px;
}

.task-detail__status {
  padding: 0 2px;
}

.detail-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-section__heading {
  margin-bottom: 14px;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section__heading h2 {
  font-size: var(--font-size-body-lg);
}

.schedule-panel {
  padding: 14px;
  border-radius: 6px;
  background: var(--brand-soft);
  display: grid;
  gap: 4px;
}

.schedule-panel strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.schedule-panel span {
  color: #3e625c;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
}

.schedule-panel small {
  color: #657d79;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.instructions {
  color: #425252;
  font-size: var(--font-size-body);
  line-height: 1.65;
  white-space: pre-wrap;
}

.location-list {
  display: grid;
}

.location-list > div {
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.location-list > div:last-child {
  border-bottom: 0;
}

.location-list span,
.settings-row span,
.profile-card span {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.location-list strong {
  font-size: var(--font-size-body);
  line-height: 1.35;
}

.coming-next {
  padding: 15px;
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  color: #225d9f;
  background: var(--blue-soft);
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.coming-next svg {
  flex: 0 0 auto;
}

.coming-next div {
  display: grid;
  gap: 3px;
}

.coming-next strong {
  font-size: var(--font-size-body);
}

.coming-next span {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.45;
}

.profile-card {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-card > div {
  display: grid;
  gap: 4px;
}

.profile-card strong {
  font-size: 20px;
  font-weight: bold;
}

.profile-card span {
  text-transform: capitalize;
}

.settings-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.settings-row {
  min-height: 72px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row__icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-row > div {
  display: grid;
  gap: 3px;
}

.settings-row strong {
  font-size: var(--font-size-body);
}

.settings-action {
  width: 100%;
  min-height: 70px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.settings-action > svg:first-child {
  color: var(--brand-dark);
}

.settings-action > svg:last-child {
  color: #879593;
}

.settings-action > span {
  display: grid;
  gap: 3px;
}

.settings-action small {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.account-signout {
  margin-top: 24px;
}

.team-summary {
  min-height: 94px;
  padding: 15px;
  border-radius: 8px;
  color: #ffffff;
  background: #173f3a;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.team-summary > div {
  padding: 4px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.team-summary > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.team-summary span {
  color: #bfe7dd;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.team-summary strong {
  font-size: 27px;
  text-align: center;
  font-weight: var(--font-weight-bold);
}

.record-list,
.compact-skeleton-list {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}

.record-card {
  position: relative;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 15px;
  box-shadow: 0 8px 22px rgba(28, 63, 59, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.record-card:hover {
  border-color: #9ddacb;
  box-shadow: 0 13px 28px rgba(28, 63, 59, 0.1);
  transform: translateY(-2px);
}

.record-card--compact {
  min-height: 166px;
}

.record-card--task {
  min-height: 148px;
  padding-right: 42px;
}

.record-card--project .record-card__heading {
  align-items: start;
}

.record-card--project .record-card__heading > .status-pill {
  align-self: start;
}

.record-card--property .record-card__heading {
  align-items: start;
}

.record-card--property {
  min-height: 0;
  padding-bottom: 12px;
  gap: 12px;
}

.record-card--property .record-card__heading > .status-pill {
  align-self: start;
}

.record-card--property-task .record-card__heading {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
}

.record-card--property-task .record-card__heading > .status-pill {
  grid-column: 3;
  align-self: start;
}

.record-card--property-task {
  min-height: 0;
  padding-right: 16px;
  padding-bottom: 12px;
  gap: 12px;
}

.record-card__heading {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.record-card__heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.record-card__heading strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card__heading > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.progress-row > span {
  height: 7px;
  border-radius: 4px;
  background: #e1eae9;
  display: block;
  flex: 1;
  overflow: hidden;
}

.progress-row i {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  display: block;
  transition: width 420ms ease;
}

.progress-row strong {
  min-width: 38px;
  color: var(--brand-dark);
  font-size: var(--font-size-body);
  text-align: right;
}

.record-card__meta {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #526261;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
}

.record-card--project .record-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}

.record-card--project .record-card__meta > span {
  min-width: 0;
}

.record-card__footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #526261;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.record-card__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.record-card__footer > span:nth-last-child(2) {
  margin-left: auto;
}

.record-card__footer > svg {
  color: var(--brand);
}

.record-card--project .record-card__footer > span {
  margin-left: 0;
}

.record-card--project .record-card__footer > svg {
  margin-left: auto;
}

.record-card--property .record-card__footer {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  display: grid;
}

.record-card--property .record-card__footer > span {
  min-width: 0;
  margin-left: 0;
}

.record-card--property .record-card__footer > span:nth-child(2) {
  justify-self: center;
}

.record-card--property .record-card__footer > svg {
  justify-self: end;
}

.record-card__corner {
  position: absolute;
  right: 15px;
  bottom: 16px;
  color: var(--brand);
}

.task-card__details-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.record-card__inline-arrow {
  margin-left: auto;
  color: var(--color-primary);
  flex: 0 0 auto;
}

.compact-skeleton {
  min-height: 156px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 14px;
}

.compact-skeleton > * {
  border-radius: 5px;
  background: #e7efee;
  animation: skeleton-pulse 1.3s ease-in-out infinite;
}

.compact-skeleton strong {
  width: 62%;
  height: 24px;
}

.compact-skeleton span {
  width: 86%;
  height: 14px;
}

.compact-skeleton i {
  width: 100%;
  height: 42px;
}

.overview-strip {
  min-height: 90px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.overview-strip > div {
  padding: 3px 12px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.overview-strip > div + div {
  border-left: 1px solid var(--line);
}

.overview-strip span,
.date-grid span {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.overview-strip strong {
  font-size: var(--font-size-body);
  line-height: 1.3;
}

.project-context {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.project-overview {
  min-height: 104px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 1.1fr);
}

.project-overview > div {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
}

.project-overview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-overview strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-context p {
  color: #425252;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.55;
}

.project-context span,
.property-hero > p {
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

.section-heading {
  min-height: 60px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin-top: 3px;
}

.section-heading > span {
  min-width: 31px;
  height: 31px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.empty-state--small {
  min-height: 220px;
}

.property-hero {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 14px;
}

.property-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-hero__top > strong {
  font-size: 25px;
  font-weight: var(--font-weight-bold);
}

.property-notes {
  padding: 12px;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
  background: var(--brand-soft);
}

.date-grid {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.date-grid > div {
  min-width: 0;
  padding: 0 9px;
  display: grid;
  gap: 5px;
}

.date-grid > div:first-child {
  padding-left: 0;
}

.date-grid > div + div {
  border-left: 1px solid var(--line);
}

.date-grid strong {
  overflow-wrap: anywhere;
  font-size: var(--font-size-caption);
}

.unit-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.unit-chip-card {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.unit-chip-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.unit-chip-card__content {
  width: 100%;
}

.unit-chip-card__heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.unit-chip-card__heading strong {
  min-width: 0;
}

.unit-chip-card__heading b {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
}

.unit-chip-card strong {
  overflow: hidden;
  font-size: var(--font-size-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-chip-card span {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.unit-chip-card b {
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
}

.task-mini-meta {
  color: #526261;
  display: grid;
  gap: 8px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.task-mini-meta span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.task-mini-meta svg {
  flex: 0 0 auto;
  color: var(--brand-dark);
}

.assignment-list {
  display: grid;
}

.assignment-list article {
  min-height: 67px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assignment-list article:last-child {
  border-bottom: 0;
}

.assignment-list article > div {
  display: grid;
  gap: 4px;
}

.assignment-list article span {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.assignment-list article .assignment-list__periods {
  color: var(--color-primary-strong);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
}

.comment-section .detail-section__heading > span {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.comment-list {
  display: grid;
}

.comment-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

.comment-list article:last-child {
  border-bottom: 0;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.comment-list article > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.comment-list strong {
  font-size: var(--font-size-body);
}

.comment-list p {
  color: #425252;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
  white-space: pre-wrap;
}

.comment-list small,
.comment-empty {
  color: var(--muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.comment-form {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: end;
  gap: 12px;
}

.comment-form .field,
.comment-form .form-error {
  width: 100%;
}

@media (min-width: 521px) {
  .auth-page,
  .company-page,
  .app-frame {
    border-right: 1px solid rgba(179, 201, 197, 0.7);
    border-left: 1px solid rgba(179, 201, 197, 0.7);
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 27px;
  }

  .app-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .company-chip {
    max-width: 122px;
  }

  .today-summary > div {
    padding-right: 8px;
    padding-left: 8px;
  }

  .task-card {
    padding: 14px;
  }

  .record-card {
    padding: 14px;
  }

  .record-card__heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .record-card__heading > .status-pill {
    grid-column: 2;
    width: fit-content;
  }

  .record-card--project .record-card__heading {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .record-card--project .record-card__heading > .status-pill {
    grid-column: 3;
  }

  .record-card--property .record-card__heading {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .record-card--property .record-card__heading > .status-pill {
    grid-column: 3;
  }

  .record-card--property-task .record-card__heading {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .record-card--property-task .record-card__heading > .status-pill {
    grid-column: 3;
  }

  .record-card__footer {
    flex-wrap: wrap;
  }

  .record-card__footer > span:nth-last-child(2) {
    margin-left: 0;
  }
}

/* 2026 mobile and tablet presentation layer. */
.page-enter-active,
.page-leave-active {
  transition:
    opacity var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard),
    filter var(--motion-base) var(--ease-standard);
}

.page-enter-from {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(10px) scale(0.99);
}

.page-leave-to {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-5px) scale(0.995);
}

.bottom-nav.toolbar-enter-active {
  transition:
    opacity 320ms ease,
    filter 420ms ease,
    transform 520ms var(--ease-standard);
}

.bottom-nav.toolbar-leave-active {
  transition:
    opacity 220ms ease,
    filter 280ms ease,
    transform 340ms var(--ease-standard);
}

.bottom-nav.toolbar-enter-from,
.bottom-nav.toolbar-leave-to {
  opacity: 0;
  filter: blur(6px);
  transform: translate(-50%, calc(100% + 42px)) scale(0.96);
}

.bottom-nav.toolbar-enter-to,
.bottom-nav.toolbar-leave-from {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, 0);
}

.button {
  min-height: var(--control-height);
  border-radius: var(--radius-md);
  transition:
    color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-standard),
    transform var(--motion-fast) var(--ease-spring);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.97);
}

.button--primary {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.button--primary:hover {
  background: var(--gradient-primary);
  box-shadow: 0 18px 36px rgba(114, 91, 232, 0.3);
}

.button--quiet {
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
}

.button--quiet:hover {
  background: var(--color-primary-soft);
}

.button--danger {
  color: var(--color-red-contrast);
  background: var(--color-red);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--color-red) 24%, transparent);
}

.button--danger:hover {
  background: color-mix(in srgb, var(--color-red) 88%, var(--color-ink));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--color-red) 32%, transparent);
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  color: var(--color-muted-strong);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.icon-button:hover {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.icon-button:active {
  transform: scale(0.93);
}

.theme-toggle svg {
  transition: transform var(--motion-base) var(--ease-spring);
}

.theme-toggle:hover svg {
  transform: rotate(12deg) scale(1.08);
}

.field input,
.field textarea {
  border-color: var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.form-error {
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-red);
  background: var(--color-red-soft);
}

.auth-page,
.company-page,
.app-frame {
  border: 0;
  background: transparent;
}

.auth-page {
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.auth-brand {
  justify-content: space-between;
}

.auth-brand__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand__identity > div {
  display: grid;
  gap: 1px;
}

.brand-mark,
.auth-icon {
  border-radius: var(--radius-md);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.auth-panel {
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.company-page {
  width: min(100%, 760px);
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.company-header__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.company-card,
.invitation-card,
.unavailable-card {
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.company-card {
  min-height: 112px;
  padding: 18px 52px 18px 18px;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.005);
}

.company-card:active {
  transform: scale(0.985);
}

.company-card__logo {
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.company-card__status {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.app-frame {
  width: min(100%, var(--page-width));
  padding-bottom: calc(var(--toolbar-height) + 34px + var(--safe-area-bottom));
  box-shadow: none;
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 118px;
  padding:
    calc(22px + var(--safe-area-top))
    var(--page-gutter)
    18px;
  border: 0;
  background: transparent;
  align-items: center;
  isolation: isolate;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.app-header::before,
.app-header::after {
  position: absolute;
  content: "";
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard);
}

.app-header::before {
  z-index: -1;
  inset: 0;
  /* background: color-mix(in srgb, var(--color-surface) 70%, transparent); */
  opacity: 0;
}

.app-header::after {
  right: 0;
  bottom: -18px;
  left: 0;
  height: 18px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-ink) 9%, transparent),
    transparent
  );
  opacity: 0;
}

.app-header--scrolled::before {
  opacity: 1;
}

.app-header--scrolled::after {
  opacity: 0.2;
}

.app-frame--reports-stuck .app-header,
.app-frame--operations-stuck .app-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-frame--reports-stuck .app-header--scrolled::after,
.app-frame--operations-stuck .app-header--scrolled::after {
  opacity: 0;
}

.app-header__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 12px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.member-avatar img,
.profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-header__copy {
  min-width: 0;
}

.app-header h1 {
  margin-top: 3px;
  overflow: hidden;
  font-size: 27px;
  line-height: normal;
  font-weight: var(--font-weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.app-content {
  padding: 4px var(--page-gutter) 34px;
}

.bottom-nav {
  --active-offset: 0px;
  --indicator-width: calc((100% - 22px) / 3);
  --nav-columns: 3;
  left: 50%;
  bottom: max(8px, calc(var(--safe-area-bottom) - 12px));
  width: min(calc(100% - 28px), var(--toolbar-width));
  min-height: var(--toolbar-height);
  padding: 7px;
  border: 0;
  border-radius: 25px;
  /* background: var(--color-surface-glass); */
  grid-template-columns: repeat(var(--nav-columns), minmax(0, 1fr));
  gap: 4px;
  box-shadow: var(--shadow-nav);
  transform: translateX(-50%);
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  will-change: opacity, transform;
  transition:
    opacity 400ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-modal-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 32px));
}

.bottom-nav__indicator {
  position: absolute;
  z-index: 0;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: var(--indicator-width);
  border-radius: 18px;
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-sm);
  transform: translateX(var(--active-offset));
  transition:
    background var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    transform 380ms var(--ease-standard);
  pointer-events: none;
}

.bottom-nav a {
  position: relative;
  z-index: 1;
  min-height: 54px;
  border-radius: 18px;
  color: var(--color-muted);
  gap: 3px;
  transition:
    color var(--motion-fast) ease,
    background var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.bottom-nav a svg {
  transition: transform var(--motion-base) var(--ease-spring);
}

.bottom-nav a:hover {
  color: var(--color-ink);
  transform: translateY(-1px);
}

.bottom-nav a:active {
  transform: scale(0.95);
}

.bottom-nav a.is-active {
  color: var(--color-ink-inverse);
  background: transparent;
  box-shadow: none;
}

.bottom-nav a.is-active svg {
  transform: translateY(-1px) scale(1.08);
}

.bottom-nav--team {
  --indicator-width: calc((100% - 26px) / 4);
  --nav-columns: 4;
}

.bottom-nav--team-five {
  --indicator-width: calc((100% - 30px) / 5);
  --nav-columns: 5;
  overflow: visible;
}

.bottom-nav--worker {
  --indicator-width: calc((100% - 30px) / 5);
  --nav-columns: 5;
  overflow: visible;
}

.bottom-nav--scan-active .bottom-nav__indicator,
.bottom-nav--tasks-active .bottom-nav__indicator {
  opacity: 0;
}

.bottom-nav .bottom-nav__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.bottom-nav .bottom-nav__item > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%) scale(1);
  transition:
    top var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-spring);
}

.bottom-nav .bottom-nav__item.is-active > svg {
  top: 9px;
  transform: translateX(-50%) scale(0.84);
}

.bottom-nav__label {
  position: absolute;
  right: 4px;
  bottom: 6px;
  left: 4px;
  overflow: hidden;
  opacity: 0;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-7px);
  transition:
    opacity var(--motion-base) ease,
    transform var(--motion-base) var(--ease-standard);
  pointer-events: none;
}

.bottom-nav__item.is-active .bottom-nav__label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 55ms;
}

.bottom-nav .bottom-nav__scan {
  overflow: visible;
}

.bottom-nav__scan-orb {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow:
    0 15px 30px color-mix(in srgb, var(--color-primary) 34%, transparent),
    0 4px 12px rgba(39, 25, 72, 0.2);
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  transition:
    box-shadow var(--motion-base) ease,
    height 280ms var(--ease-standard),
    padding 280ms var(--ease-standard),
    top 280ms var(--ease-standard),
    transform var(--motion-base) var(--ease-spring),
    width 280ms var(--ease-standard);
}

.bottom-nav__scan-orb.is-timing {
  top: -20px;
  width: 64px;
  height: 64px;
  padding: 9px 7px 8px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-content: end;
  gap: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bottom-nav__timer {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  align-content: end;
  gap: 0;
}

.bottom-nav__timer strong {
  align-self: end;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: normal;
  margin-bottom: 4px;
}

.bottom-nav__timer small {
  align-self: start;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  transform: translateY(-2px);
}

.toolbar-work-state-enter-active,
.toolbar-work-state-leave-active {
  transition:
    opacity 210ms ease,
    transform 280ms var(--ease-spring);
}

.toolbar-work-state-enter-from {
  opacity: 0;
  transform: translateY(7px) scale(0.86);
}

.toolbar-work-state-leave-to {
  opacity: 0;
  transform: translateY(-5px) scale(0.9);
}

.bottom-nav__scan:hover .bottom-nav__scan-orb {
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--color-primary) 42%, transparent),
    0 5px 14px rgba(39, 25, 72, 0.24);
  transform: translateX(-50%) translateY(-2px) scale(1.03);
}

.bottom-nav__scan.is-active .bottom-nav__scan-orb {
  transform: translateX(-50%) translateY(-5px) scale(0.9);
}

.bottom-nav__scan.is-active .bottom-nav__scan-orb.is-timing {
  transform: translateX(-50%) translateY(-12px) scale(1);
}

.bottom-nav__scan.is-active .bottom-nav__scan-orb svg {
  transform: scale(0.92);
}

.bottom-nav a.bottom-nav__scan.is-active {
  color: var(--color-primary-strong);
}

.bottom-nav__scan .bottom-nav__label {
  bottom: 4px;
}

.bottom-nav__tasks .bottom-nav__scan-orb {
  top: -17px;
}

.scan-stage,
.pay-stage {
  min-height: clamp(360px, calc(100svh - 250px), 720px);
  display: grid;
  place-items: center;
}

.scan-stage__frame {
  position: relative;
  width: min(72vw, 310px);
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  color: var(--color-primary);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--motion-base) ease;
}

.scan-stage__frame[data-camera-state="active"],
.scan-stage__frame[data-camera-state="resolving"] {
  background: #09090d;
}

.scan-stage__frame::after {
  position: absolute;
  z-index: 3;
  right: 24px;
  left: 24px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-glow);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 65%, transparent);
  content: "";
  opacity: 0;
}

.scan-stage__frame[data-camera-state="active"]::after,
.scan-stage__frame[data-camera-state="resolving"]::after {
  animation: scan-stage-line 2.4s ease-in-out infinite;
}

.scan-stage__reader {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.scan-stage__reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.scan-stage__reader video[data-camera-ready="true"] {
  opacity: 1;
}

.scan-stage__reader video::-webkit-media-controls,
.scan-stage__reader video::-webkit-media-controls-enclosure,
.scan-stage__reader video::-webkit-media-controls-overlay-play-button,
.scan-stage__reader video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
}

.scan-stage__placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.scan-stage__frame[data-camera-state="resolving"] .scan-stage__placeholder {
  z-index: 5;
  background: #09090d;
}

.scan-stage__corner {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-color: var(--color-primary);
  border-style: solid;
}

.scan-stage__corner--top-left {
  top: 24px;
  left: 24px;
  border-width: 3px 0 0 3px;
  border-radius: 12px 0 0;
}

.scan-stage__corner--top-right {
  top: 24px;
  right: 24px;
  border-width: 3px 3px 0 0;
  border-radius: 0 12px 0 0;
}

.scan-stage__corner--bottom-left {
  bottom: 24px;
  left: 24px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 12px;
}

.scan-stage__corner--bottom-right {
  right: 24px;
  bottom: 24px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 12px;
}

.pay-stage__icon {
  width: 116px;
  height: 96px;
  border-radius: var(--radius-xl);
  color: var(--color-primary);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}

@keyframes scan-stage-line {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-88px);
  }
  50% {
    opacity: 1;
    transform: translateY(88px);
  }
}

.company-chip {
  max-width: 150px;
  min-height: 38px;
  padding: 5px 9px 5px 6px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-muted-strong);
  background: var(--color-surface-glass);
  gap: 7px;
  font-size: var(--font-size-body);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.company-chip__brand {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.company-chip--logo-only {
  width: auto;
  max-width: 120px;
  max-height: 50px;
  padding: 5px 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-glass);
  justify-content: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.company-chip--logo-only .company-chip__brand {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  flex: 0 1 auto;
}

.company-chip__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-chip--logo-only .company-chip__brand img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.company-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-summary,
.team-summary {
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-md);
}

.today-summary span,
.team-summary span {
  text-align: center;
  color: rgba(255, 255, 255, 0.64);
  font-weight: var(--font-weight-semibold);
}

.today-summary small {
  color: rgba(255, 255, 255, 0.75);
}

.segmented-control {
  height: 50px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
}

.segmented-control button {
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  transition:
    color var(--motion-fast) ease,
    background var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.segmented-control button:active {
  transform: scale(0.95);
}

.segmented-control button.active {
  color: var(--color-ink-inverse);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-sm);
}

.task-card,
.task-skeleton,
.detail-section,
.profile-card,
.settings-list,
.settings-action,
.record-card,
.compact-skeleton,
.overview-strip,
.property-hero,
.unit-chip-card {
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.task-card,
.record-card,
.settings-action,
.unit-chip-card {
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}

.task-card:hover,
.record-card:hover,
.settings-action:hover,
.unit-chip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.task-card:active,
.record-card:active,
.settings-action:active {
  transform: scale(0.99);
}

.record-card,
.task-card,
.compact-skeleton,
.task-skeleton {
  overflow: hidden;
}

.record-card__icon,
.settings-row__icon {
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.record-card__meta,
.task-card__meta,
.schedule-panel {
  border-radius: var(--radius-md);
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
}

.record-card__footer,
.task-card__footer,
.task-card__meta span,
.task-mini-meta,
.project-context p,
.comment-list p,
.instructions,
.coming-next,
.settings-action {
  color: var(--color-muted-strong);
}

.progress-row > span {
  background: color-mix(in srgb, var(--color-muted) 18%, transparent);
}

.progress-row i {
  background: var(--gradient-glow);
  transform-origin: left;
  animation: progress-grow 780ms var(--ease-standard) both;
}

@keyframes progress-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.status-pill {
  border-radius: var(--radius-pill);
}

.task-skeleton span,
.task-skeleton strong,
.task-skeleton i,
.compact-skeleton > * {
  background:
    linear-gradient(
      100deg,
      var(--color-surface-soft) 25%,
      color-mix(in srgb, var(--color-surface) 70%, var(--color-primary-soft)) 45%,
      var(--color-surface-soft) 65%
    );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.record-list > *,
.task-list > *,
.company-list > *,
.home-record-list > *,
.app-frame--operations .work-sheet-list > *,
.app-frame--operations .compact-skeleton-list > * {
  animation: card-reveal 480ms var(--ease-standard) both;
}

.record-list > :nth-child(2),
.task-list > :nth-child(2),
.company-list > :nth-child(2),
.home-record-list > :nth-child(2),
.app-frame--operations .work-sheet-list > :nth-child(2),
.app-frame--operations .compact-skeleton-list > :nth-child(2) {
  animation-delay: 55ms;
}

.record-list > :nth-child(3),
.task-list > :nth-child(3),
.company-list > :nth-child(3),
.app-frame--operations .work-sheet-list > :nth-child(3),
.app-frame--operations .compact-skeleton-list > :nth-child(3) {
  animation-delay: 110ms;
}

.record-list > :nth-child(n + 4),
.task-list > :nth-child(n + 4),
.company-list > :nth-child(n + 4),
.app-frame--operations .work-sheet-list > :nth-child(n + 4),
.app-frame--operations .compact-skeleton-list > :nth-child(n + 4) {
  animation-delay: 155ms;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-state {
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-xs);
}

.empty-state__icon,
.profile-card__avatar,
.comment-avatar {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.profile-card__avatar {
  overflow: hidden;
}

.settings-list {
  overflow: hidden;
}

.settings-row {
  border-color: var(--color-line);
}

.theme-card {
  margin-top: 14px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-card__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-card__heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.theme-card__heading strong {
  font-size: var(--font-size-body);
}

.theme-card__heading span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.4;
}

.theme-selector {
  min-height: 48px;
  margin-top: 15px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.theme-selector button {
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  transition:
    color var(--motion-fast) ease,
    background var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.theme-selector button:active {
  transform: scale(0.95);
}

.theme-selector button.active {
  color: var(--color-ink-inverse);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-xs);
}

.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field select:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.team-summary--reports {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control--reports {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.segmented-control--reports::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 16px) / 3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-sm);
  content: "";
  transform: translateX(0);
  transition: transform 300ms var(--ease-standard);
}

.segmented-control--reports[data-active="draft"]::before {
  transform: translateX(calc(100% + 3px));
}

.segmented-control--reports[data-active="published"]::before {
  transform: translateX(calc(200% + 6px));
}

.segmented-control--reports button {
  position: relative;
  z-index: 1;
}

.segmented-control--reports button.active {
  color: var(--color-ink-inverse);
  background: transparent;
  box-shadow: none;
}

.segmented-control--tasks {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.segmented-control--tasks::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 19px) / 4);
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-sm);
  content: "";
  transform: translateX(0);
  transition: transform 300ms var(--ease-standard);
}

.segmented-control--tasks[data-active="todo"]::before {
  transform: translateX(calc(100% + 3px));
}

.segmented-control--tasks[data-active="active"]::before {
  transform: translateX(calc(200% + 6px));
}

.segmented-control--tasks[data-active="done"]::before {
  transform: translateX(calc(300% + 9px));
}

.segmented-control--tasks button {
  position: relative;
  z-index: 1;
}

.segmented-control--tasks button.active {
  color: var(--color-ink-inverse);
  background: transparent;
  box-shadow: none;
}

.report-record-card {
  position: relative;
  min-height: 172px;
  overflow: visible;
}

.report-record-card.is-menu-open {
  z-index: 60;
}

.report-record-card .record-card__heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.report-record-card__title-link {
  min-width: 0;
  color: inherit;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.report-record-card__title-link > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.report-record-card__title-link strong,
.report-record-card__title-link span:not(.record-card__icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-record-card__title-link strong {
  font-size: 16px;
}

.report-record-card__title-link span:not(.record-card__icon) {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.report-record-card__status-actions {
  position: relative;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 3px !important;
}

.report-record-card .status-pill {
  min-height: 27px;
  padding: 0 10px;
  color: #5136b7;
  background: #ece7ff;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
}

.report-record-card .status-pill[data-status="published"] {
  color: #176544;
  background: #dff4e8;
}

.report-record-card__menu-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: transparent;
  display: grid;
  place-items: center;
}

.report-record-card__menu-button:active {
  background: var(--color-surface-soft);
  transform: scale(0.94);
}

.report-record-card__menu {
  position: absolute;
  z-index: 3;
  top: 41px;
  right: 0;
  width: 174px;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
  transform-origin: top right;
  will-change: opacity, transform;
}

.report-menu-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.report-record-card__menu button {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-align: left;
}

.report-record-card__menu button:active {
  background: var(--color-surface-soft);
}

.report-record-card__menu button.is-danger {
  color: var(--color-red);
}

.report-card-menu-enter-active,
.report-card-menu-leave-active {
  transition:
    opacity 220ms ease,
    transform 280ms var(--ease-standard);
}

.report-card-menu-enter-from,
.report-card-menu-leave-to {
  opacity: 0;
  transform: translateY(-7px) scale(0.96);
}

.report-record-card__menu > button {
  animation: report-card-menu-option-in 260ms var(--ease-standard) both;
}

.report-record-card__menu > button:nth-child(2) {
  animation-delay: 65ms;
}

.report-record-card__menu > button:nth-child(3) {
  animation-delay: 130ms;
}

@keyframes report-card-menu-option-in {
  from {
    opacity: 0;
    transform: translateX(7px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.report-record-card__body-link {
  color: inherit;
  display: grid;
  gap: 15px;
  text-decoration: none;
}

.report-record-card .record-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}

.report-record-card .record-card__meta > span {
  min-width: 0;
}

.report-record-card__description,
.report-record-card__add-description {
  margin: -5px 0 0 53px;
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

.report-record-card__description {
  overflow: hidden;
  color: var(--color-muted-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-record-card__add-description {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--color-primary-strong);
  background: transparent;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-card-inline-description {
  margin: -5px 0 0 53px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.report-card-inline-description textarea {
  width: 100%;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: none;
  resize: none;
  font: inherit;
  font-size: var(--font-size-caption);
  line-height: 1.4;
}

.report-card-inline-description > div {
  display: flex;
  gap: 5px;
}

.report-card-inline-description button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
  display: grid;
  place-items: center;
}

.report-card-inline-description button.is-primary {
  color: var(--color-primary-contrast);
  background: var(--color-primary);
}

.report-record-card .record-card__footer > svg {
  margin-left: auto;
  flex: 0 0 auto;
}

.report-record-card .record-card__footer > span {
  margin-left: 0;
}

.report-record-card__context {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  gap: 3px;
}

.report-record-card__context span {
  color: var(--color-ink);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.report-record-card__context small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.4;
}

.property-report-entry,
.property-report-hero,
.property-report-section {
  padding: 16px;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.property-report-entry {
  margin-top: 14px;
}

.property-report-index {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.property-report-index__list {
  margin-top: 0;
}

.property-report-index__card {
  min-height: 0;
}

.report-controls {
  position: sticky;
  z-index: 18;
  top: calc(112px + var(--safe-area-top));
  margin: 0 0 16px;
  padding: 18px 0 0;
  background: transparent;
  display: grid;
  gap: 15px;
  isolation: isolate;
}

.report-controls::before {
  position: absolute;
  z-index: -1;
  top: calc(-112px - var(--safe-area-top));
  bottom: 0;
  left: 50%;
  width: 100vw;
  content: "";
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 30px 30px;
  transform: translateX(-50%);
  transition: opacity var(--motion-base) ease;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.report-controls.is-stuck::before {
  opacity: 1;
}

.report-controls > * {
  position: relative;
  z-index: 1;
}

.report-create-trigger {
  margin: 0;
}

.report-controls .segmented-control {
  margin: 0;
}

.create-report-button {
  min-height: 52px;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.create-report-button > span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  line-height: 1;
}

.create-report-button__dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(32, 20, 72, 0.14);
}

.create-report-button__dot::before,
.create-report-button__dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  content: "";
  transform: translate(-50%, -50%);
}

.create-report-button__dot::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.create-report-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding-top: var(--safe-area-top);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.create-report-sheet {
  --sheet-drag-y: 0px;
  width: 100%;
  max-height: calc(100svh - 18px - var(--safe-area-top));
  padding: 5px 18px calc(18px + var(--safe-area-bottom));
  border-radius: 28px 28px 0 0;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 13px;
  overflow-y: auto;
  transform: translateY(var(--sheet-drag-y));
  transition: transform 260ms var(--ease-standard);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.create-report-sheet.is-dragging {
  transition: none;
}

.create-report-sheet.is-picker {
  height: var(--picker-sheet-height);
  padding-bottom: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.sheet-drag-handle {
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.sheet-drag-handle:active {
  cursor: grabbing;
}

.sheet-drag-handle span {
  width: 46px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-muted) 34%, transparent);
}

.create-report-sheet__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.create-report-sheet__heading-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-report-sheet__heading > .icon-button,
.create-report-sheet__back {
  width: 40px;
  height: 40px;
}

.create-report-sheet__heading h2 {
  overflow: hidden;
  color: var(--color-ink);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.12;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-report-sheet p {
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.create-report-sheet__form {
  display: grid;
  gap: 13px;
}

.create-report-context {
  min-width: 0;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-soft);
  display: grid;
  gap: 3px;
}

.create-report-context span {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-report-context strong {
  overflow: hidden;
  font-size: var(--font-size-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-report-sheet__form > .create-report-button {
  margin-top: 20px;
}

.create-report-floating-field {
  position: relative;
  min-width: 0;
  display: block;
}

.create-report-floating-field > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    color var(--motion-fast) ease,
    font-size var(--motion-fast) ease,
    top var(--motion-fast) ease,
    transform var(--motion-fast) ease;
  pointer-events: none;
}

.create-report-floating-field:focus-within > span,
.create-report-floating-field.is-filled > span {
  top: 10px;
  color: var(--color-primary-strong);
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.create-report-floating-field input,
.create-report-floating-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: none;
  font: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition: border-color var(--motion-fast) ease;
}

.create-report-floating-field input {
  height: 58px;
  padding: 18px 18px 6px;
}

.create-report-floating-field textarea {
  min-height: 78px;
  padding: 24px 18px 10px;
  line-height: 1.4;
  resize: none;
}

.create-report-floating-field input::placeholder,
.create-report-floating-field textarea::placeholder {
  color: var(--color-muted);
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.create-report-floating-field:focus-within input::placeholder,
.create-report-floating-field:focus-within textarea::placeholder {
  opacity: 0.72;
}

.create-report-floating-field:focus-within input,
.create-report-floating-field:focus-within textarea {
  border-color: var(--color-primary);
  box-shadow: none;
}

.create-report-floating-field.is-invalid input {
  border-color: var(--color-red);
}

.create-report-floating-field.is-invalid > span,
.create-report-field-error {
  color: var(--color-red);
}

.create-report-field-error {
  margin: -8px 3px 0;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.floating-select-field {
  position: relative;
  display: block;
  min-width: 0;
}

.floating-select-field > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    color var(--motion-fast) ease,
    font-size var(--motion-fast) ease,
    top var(--motion-fast) ease,
    transform var(--motion-fast) ease;
  pointer-events: none;
}

.floating-select-field.is-active > span,
.floating-select-field.is-filled > span {
  top: 10px;
  color: var(--color-primary-strong);
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-semibold);
  transform: translateY(0);
}

.floating-select-button {
  width: 100%;
  height: 58px;
  padding: 18px 54px 6px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface-glass);
  font-size: var(--font-size-body);
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.floating-select-button strong {
  overflow: hidden;
  opacity: 0;
  color: var(--color-ink);
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-select-button.is-filled strong {
  opacity: 1;
}

.floating-select-button:active {
  transform: scale(0.99);
}

.floating-select-button:focus-visible,
.floating-select-button:hover {
  border-color: var(--color-primary);
  box-shadow: none;
}

.floating-select-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.floating-select-search input {
  width: 100%;
  height: 58px;
  padding: 18px 54px 6px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  appearance: none;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.floating-select-search input::placeholder {
  color: var(--color-muted);
  opacity: 0.78;
}

.floating-select-search input::-webkit-search-cancel-button {
  appearance: none;
}

.floating-select-search input:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.floating-select-field__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 17px;
  width: 22px;
  height: 22px;
  color: var(--color-muted-strong);
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-standard);
}

.floating-select-field.is-active .floating-select-field__arrow,
.floating-select-button:hover .floating-select-field__arrow,
.floating-select-button:focus-visible .floating-select-field__arrow {
  color: var(--color-primary-strong);
}

.floating-select-field__arrow--open {
  transform: translateY(-50%) rotate(180deg);
}

.create-report-picker {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.create-report-picker::after {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 0;
  left: 0;
  height: 22px;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-surface) 96%, transparent),
    transparent
  );
  content: "";
  pointer-events: none;
  transition: opacity 150ms ease;
}

.create-report-picker.is-scrolled::after {
  opacity: 1;
}

.create-report-picker .floating-select-search {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
}

.create-report-picker__list {
  width: calc(100% + 36px);
  height: 100%;
  margin: 0 -18px;
  padding: 70px 18px calc(18px + var(--safe-area-bottom));
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.create-report-picker__option {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  text-align: left;
  display: grid;
  gap: 4px;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.create-report-picker__option strong {
  overflow: hidden;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-report-picker__option span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.35;
}

.create-report-picker__option:hover,
.create-report-picker__option:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 38%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 11%, transparent);
}

.create-report-picker__option:active {
  transform: scale(0.99);
}

.create-report-picker__option.is-selected {
  border-color: color-mix(in srgb, var(--color-primary) 44%, transparent);
  background: color-mix(in srgb, var(--color-primary-soft) 74%, var(--color-surface));
}

.create-report-picker__empty {
  margin: 16px 6px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  text-align: center;
}

.create-picker-enter-active,
.create-picker-leave-active {
  transition:
    opacity 170ms ease,
    transform 220ms var(--ease-standard);
}

.create-picker-enter-from {
  opacity: 0;
  transform: translateY(8px);
}

.create-picker-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

.create-sheet-enter-active,
.create-sheet-leave-active {
  transition:
    opacity 220ms ease,
    backdrop-filter 260ms ease;
}

.create-sheet-enter-active .create-report-sheet,
.create-sheet-leave-active .create-report-sheet {
  transition:
    opacity 240ms ease,
    transform 360ms var(--ease-standard);
}

.create-sheet-enter-from,
.create-sheet-leave-to {
  opacity: 0;
  backdrop-filter: blur(0);
}

.create-sheet-enter-from .create-report-sheet,
.create-sheet-leave-to .create-report-sheet {
  opacity: 0;
  transform: translateY(calc(100% + 24px));
}

@media (min-width: 700px) {
  .create-report-overlay {
    padding: 24px;
  }

  .create-report-sheet {
    width: min(520px, 100%);
    max-height: calc(100svh - 48px);
    padding: 5px 18px 18px;
    border-radius: var(--radius-xl);
  }
}

.property-report-entry__heading,
.property-report-section__heading,
.report-item-card__top,
.report-action-row,
.report-entry-card {
  display: flex;
  align-items: center;
  gap: 11px;
}

.property-report-entry__heading > div,
.property-report-section__heading > div,
.report-item-card__top > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.property-report-section__heading {
  align-items: flex-start;
}

.property-report-section__heading > .status-pill {
  margin-left: auto;
}

.property-report-section__heading h2 {
  font-size: var(--font-size-body-lg);
}

.property-report-section__heading small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

.report-entry-card {
  position: relative;
  min-height: 78px;
  padding: 13px 36px 13px 13px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  align-items: flex-start;
  flex-direction: column;
}

.report-entry-card > svg {
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--color-primary);
  transform: translateY(-50%);
}

.report-entry-card__action {
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.report-entry-card__action svg {
  flex: 0 0 auto;
}

.report-entry-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: var(--font-size-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-entry-card small,
.report-entry-state,
.report-empty-line {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.45;
}

.report-entry-state {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.property-report-hero > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-report-hero > div:first-child strong {
  font-size: 23px;
}

.property-report-hero p {
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.property-report-hero small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.report-warning {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  color: var(--color-amber);
  background: var(--color-amber-soft);
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-stat-grid > div {
  min-height: 64px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  align-content: center;
  gap: 3px;
}

.report-stat-grid span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-stat-grid strong {
  font-size: 21px;
}

.animated-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
}

.property-report-sections {
  margin-top: 15px;
  display: grid;
  gap: 13px;
}

.report-field textarea {
  min-height: 120px;
}

.report-inline-action {
  justify-self: start;
}

.report-item-list {
  display: grid;
  gap: 10px;
}

.report-item-card,
.report-item-form {
  padding: 13px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  gap: 12px;
}

.report-item-card__top {
  justify-content: space-between;
  align-items: flex-start;
}

.report-item-card__top strong {
  font-size: var(--font-size-body);
}

.report-item-card__top span:not(.status-pill) {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.report-item-card p {
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  line-height: 1.55;
  white-space: pre-wrap;
}

.report-item-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-item-card__meta span {
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  color: var(--color-muted-strong);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.report-action-row {
  flex-wrap: wrap;
}

.report-action-row .button {
  flex: 1 1 145px;
}

.report-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-access-card .report-entry-card {
  background: var(--color-primary-soft);
}

.property-report-link {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 11px;
}

.property-report-link--work {
  margin-top: 10px;
}

.property-report-link--task {
  grid-column: 1 / -1;
}

.property-report-link--task,
.property-report-link--work {
  animation: card-reveal 360ms var(--ease-standard) both;
}

.property-report-link__icon {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.property-report-link__content {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.property-report-link__content strong {
  overflow: hidden;
  font-size: var(--font-size-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-report-link__content small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.property-report-link__action {
  grid-column: 2;
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.property-report-link__action svg {
  flex: 0 0 auto;
}

.status-pill[data-status="published"],
.status-pill[data-status="ok"] {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.status-pill[data-status="superseded"],
.status-pill[data-status="not_applicable"] {
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
}

.status-pill[data-status="revoked"],
.status-pill[data-status="urgent"] {
  color: var(--color-red);
  background: var(--color-red-soft);
}

.status-pill[data-status="attention"] {
  color: var(--color-amber);
  background: var(--color-amber-soft);
}

.home-intro {
  position: relative;
  padding: 7px 2px 20px 48px;
  animation: card-reveal 420ms var(--ease-standard) both;
}

.home-intro__spark {
  position: absolute;
  top: 9px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-intro h2 {
  max-width: 390px;
  font-size: 25px;
  font-weight: var(--font-weight-bold);
  line-height: 1.16;
}

.home-intro p {
  max-width: 440px;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
}

.home-overview {
  min-height: 218px;
  padding: 22px;
  border: 0;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: var(--gradient-hero);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  grid-template-areas:
    "copy ring"
    "metrics metrics";
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 20px;
  box-shadow: var(--shadow-lg);
  animation: card-reveal 520ms var(--ease-standard) 50ms both;
  overflow: visible;
}

.home-overview.is-loading {
  opacity: 0.72;
}

.home-overview .eyebrow {
  color: rgba(255, 255, 255, 0.56);
}

.home-overview__copy {
  grid-area: copy;
  min-width: 0;
}

.home-overview h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
}

.home-overview__metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-overview__metrics > div {
  min-width: 0;
  padding: 0 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 4px;
}

.home-overview__metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-overview__metrics strong {
  font-size: 21px;
  text-align: center;
  font-weight: var(--font-weight-bold);
}

.home-overview__metrics span {
  text-align: center;
  color: rgba(255, 255, 255, 0.57);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.progress-ring {
  --progress-offset: 100;
  grid-area: ring;
  position: relative;
  width: 118px;
  min-width: 118px;
  height: 118px;
  min-height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  animation: ring-reveal 760ms var(--ease-standard) both;
  isolation: isolate;
  flex: 0 0 118px;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 8;
}

.progress-ring__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.progress-ring__value {
  stroke: url(#home-progress-gradient);
  stroke-dasharray: 100;
  stroke-dashoffset: var(--progress-offset);
  stroke-linecap: round;
  transition: stroke-dashoffset 1050ms var(--ease-standard);
}

.progress-ring__value-label {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #18171c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.progress-ring strong {
  font-size: 27px;
  font-weight: var(--font-weight-bold);
}

.progress-confetti {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 2;
}

.progress-confetti i {
  --confetti-x: 0px;
  --confetti-y: -42px;
  --confetti-rotation: 180deg;
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 9px;
  border-radius: 2px;
  background: #f080ae;
  opacity: 0;
  animation: progress-confetti-pop 950ms cubic-bezier(0.18, 0.75, 0.24, 1) both;
}

.progress-confetti i:nth-child(2n) { background: #b79cff; }
.progress-confetti i:nth-child(3n) { background: #ffffff; }
.progress-confetti i:nth-child(4n) { background: #ffc75f; }
.progress-confetti i:nth-child(1) { --confetti-x: -54px; --confetti-y: -34px; --confetti-rotation: -230deg; }
.progress-confetti i:nth-child(2) { --confetti-x: -38px; --confetti-y: -58px; --confetti-rotation: 190deg; animation-delay: 35ms; }
.progress-confetti i:nth-child(3) { --confetti-x: -22px; --confetti-y: -42px; --confetti-rotation: -160deg; animation-delay: 70ms; }
.progress-confetti i:nth-child(4) { --confetti-x: -8px; --confetti-y: -66px; --confetti-rotation: 250deg; animation-delay: 15ms; }
.progress-confetti i:nth-child(5) { --confetti-x: 8px; --confetti-y: -54px; --confetti-rotation: -210deg; animation-delay: 90ms; }
.progress-confetti i:nth-child(6) { --confetti-x: 24px; --confetti-y: -68px; --confetti-rotation: 170deg; animation-delay: 45ms; }
.progress-confetti i:nth-child(7) { --confetti-x: 42px; --confetti-y: -48px; --confetti-rotation: -260deg; animation-delay: 110ms; }
.progress-confetti i:nth-child(8) { --confetti-x: 57px; --confetti-y: -28px; --confetti-rotation: 220deg; animation-delay: 60ms; }
.progress-confetti i:nth-child(9) { --confetti-x: -48px; --confetti-y: -10px; --confetti-rotation: -175deg; animation-delay: 125ms; }
.progress-confetti i:nth-child(10) { --confetti-x: -18px; --confetti-y: -76px; --confetti-rotation: 280deg; animation-delay: 80ms; }
.progress-confetti i:nth-child(11) { --confetti-x: 18px; --confetti-y: -78px; --confetti-rotation: -240deg; animation-delay: 135ms; }
.progress-confetti i:nth-child(12) { --confetti-x: 48px; --confetti-y: -6px; --confetti-rotation: 200deg; animation-delay: 100ms; }

@keyframes progress-confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) rotate(0deg) scale(0.5);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-x)), var(--confetti-y)) rotate(var(--confetti-rotation)) scale(1);
  }
}

@keyframes ring-reveal {
  from {
    opacity: 0;
    transform: rotate(-24deg) scale(0.78);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.section-link {
  color: var(--color-muted-strong);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition: color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.section-link:hover {
  color: var(--color-primary-strong);
  transform: translateX(2px);
}

.home-record-list {
  display: grid;
  gap: 10px;
}

.home-record {
  min-height: 82px;
  padding: 13px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--motion-base) ease,
    transform var(--motion-base) var(--ease-standard);
}

.home-record:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-record > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-record strong,
.home-record small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-record strong {
  font-size: 15px;
}

.home-record small {
  color: var(--color-muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
}

.home-record b {
  color: var(--color-primary-strong);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-semibold);
}

.home-record > .status-pill {
  justify-self: end;
  white-space: nowrap;
}

.home-empty--neutral {
  margin-top: 10px;
  color: var(--color-primary-strong);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
}

.home-empty {
  min-height: 90px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-success);
  background: var(--color-success-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-empty > span {
  display: grid;
  gap: 4px;
}

.home-empty strong {
  color: var(--color-ink);
  font-size: var(--font-size-body);
}

.home-empty small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
}

:root[data-theme="dark"] .segmented-control button.active,
:root[data-theme="dark"] .theme-selector button.active {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
}

:root[data-theme="dark"] .segmented-control--reports::before {
  background: var(--gradient-primary);
}

:root[data-theme="dark"] .segmented-control--tasks::before {
  background: var(--gradient-primary);
}

:root[data-theme="dark"] .segmented-control--reports button.active,
:root[data-theme="dark"] .segmented-control--tasks button.active {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .bottom-nav__indicator {
  background: var(--gradient-primary);
}

:root[data-theme="dark"] .bottom-nav a.is-active {
  color: var(--color-primary-contrast);
}

:root[data-theme="dark"] .status-pill[data-status="completed"] {
  color: var(--color-success);
  background: var(--color-success-soft);
}

@media (min-width: 700px) {
  :root {
    --page-gutter: 28px;
  }

  .app-header {
    min-height: 132px;
    padding-top: calc(27px + var(--safe-area-top));
  }

  .member-avatar {
    width: 54px;
    height: 54px;
  }

  .app-header h1 {
    font-size: 32px;
  }

  .app-content {
    padding-bottom: 44px;
  }

  .home-intro {
    padding-top: 14px;
    padding-bottom: 26px;
  }

  .home-intro h2 {
    max-width: 560px;
    font-size: 31px;
  }

  .home-overview {
    min-height: 245px;
    padding: 28px 32px;
    grid-template-columns: minmax(0, 1fr) 148px;
  }

  .progress-ring {
    width: 142px;
    min-width: 142px;
    height: 142px;
    min-height: 142px;
    flex-basis: 142px;
  }

  .progress-ring strong {
    font-size: 29px;
  }

  .record-list,
  .compact-skeleton-list,
  .task-list,
  .home-record-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .record-card,
  .task-card {
    height: 100%;
  }

  .task-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .task-detail__status,
  .comment-section,
  .coming-next {
    grid-column: 1 / -1;
  }

  .unit-chip-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-card,
  .settings-list,
  .settings-action,
  .theme-card {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .account-signout {
    display: block;
    width: min(100%, 720px);
    margin-right: auto;
    margin-left: auto;
  }

  .company-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .app-header {
    gap: 10px;
  }

  .app-header__identity {
    gap: 9px;
  }

  .member-avatar {
    width: 44px;
    height: 44px;
  }

  .app-header h1 {
    max-width: none;
    font-size: 24px;
  }

  .app-header__actions {
    gap: 6px;
  }

  .company-chip {
    max-width: 105px;
  }

  .home-overview {
    min-height: 204px;
    padding: 18px;
    grid-template-columns: minmax(0, 1fr) 98px;
    column-gap: 10px;
    row-gap: 16px;
  }

  .progress-ring {
    width: 94px;
    min-width: 94px;
    height: 94px;
    min-height: 94px;
    flex-basis: 94px;
  }

  .progress-ring strong {
    font-size: 22px;
  }

  .home-overview__metrics > div {
    padding: 0 12px;
  }

  .home-overview__metrics strong {
    font-size: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

.auth-brand__actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-brand > .auth-brand__actions {
  display: flex;
  gap: 8px;
}

.auth-brand .language-trigger span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.language-trigger {
  min-width: 148px;
  min-height: var(--control-height);
  padding: 7px 11px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition:
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-spring);
}

.language-trigger:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.language-trigger:active {
  transform: scale(0.97);
}

.language-trigger img,
.language-option img {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(27, 30, 40, 0.12);
}

.language-trigger span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-trigger--compact {
  min-width: 118px;
  min-height: 42px;
  border-radius: 21px;
}

.language-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding-top: var(--safe-area-top);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.language-sheet {
  --language-sheet-drag-y: 0px;
  width: 100%;
  height: min(70svh, 620px);
  max-height: calc(100svh - 18px - var(--safe-area-top));
  padding: 5px 18px 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-rows: 32px auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  transform: translateY(var(--language-sheet-drag-y));
  transition: transform 260ms var(--ease-standard);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.language-sheet.is-dragging {
  transition: none;
}

.language-sheet__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 11px;
}

.language-sheet__header h2 {
  font-size: 21px;
}

.language-sheet__header > .icon-button {
  width: 40px;
  height: 40px;
  justify-self: end;
}

.language-sheet__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-options-frame {
  position: relative;
  width: calc(100% + 36px);
  height: 100%;
  min-height: 0;
  margin: 0 -18px;
  overflow: hidden;
}

.language-options-frame::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 20px;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-surface) 96%, transparent),
    transparent
  );
  content: "";
  pointer-events: none;
  transition: opacity 150ms ease;
}

.language-options-frame.is-scrolled::before {
  opacity: 1;
}

.language-options {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 2px 18px calc(18px + var(--safe-area-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  scrollbar-width: none;
}

.language-options::-webkit-scrollbar {
  display: none;
}

.language-option {
  min-height: 58px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-muted);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  text-align: start;
  transition:
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-base) var(--ease-spring);
}

.language-option:hover {
  background: var(--color-primary-soft);
  transform: translateY(-1px);
}

.language-option:active {
  transform: scale(0.98);
}

.language-option.is-active {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.language-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.language-option svg {
  justify-self: end;
}

.language-card {
  max-width: 720px;
  margin: 14px auto 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.language-card__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-card__heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.language-card__heading strong {
  font-size: var(--font-size-body);
}

.language-card__heading span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-light);
  line-height: 1.4;
}

strong > .animated-number {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}

.language-sheet-enter-active,
.language-sheet-leave-active {
  transition:
    opacity 240ms ease,
    backdrop-filter 300ms ease;
}

.language-sheet-enter-active .language-sheet,
.language-sheet-leave-active .language-sheet {
  transition:
    opacity 260ms ease,
    transform 420ms var(--ease-standard);
}

.language-sheet-enter-from,
.language-sheet-leave-to {
  opacity: 0;
  backdrop-filter: blur(0);
}

.language-sheet-enter-from .language-sheet,
.language-sheet-leave-to .language-sheet {
  opacity: 0;
  transform: translateY(calc(100% + 24px));
}

@media (min-width: 700px) {
  .language-overlay {
    padding: 24px;
    align-items: center;
  }

  .language-sheet {
    width: min(560px, 100%);
    height: min(72svh, 680px);
    max-height: calc(100svh - 48px);
    border-radius: 30px;
  }

  .language-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .auth-brand > .auth-brand__actions {
    gap: 6px;
  }

  .language-trigger--compact {
    min-width: 104px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .language-trigger--compact img {
    width: 27px;
    height: 20px;
  }

  .language-card {
    align-items: stretch;
    flex-direction: column;
  }

  .language-card .language-trigger {
    width: 100%;
  }
}

/* Property report detail */
.app-frame.property-report-detail {
  padding-bottom: calc(var(--toolbar-height) + 74px + var(--safe-area-bottom));
}

.report-publish-button {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 34%, transparent);
}

.report-capture-hero,
.report-observation {
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
}

.report-capture-hero {
  padding: 17px;
  display: grid;
  gap: 13px;
}

.report-capture-description {
  color: var(--color-muted-strong) !important;
  font-size: var(--font-size-body) !important;
  line-height: 1.5 !important;
  white-space: pre-wrap;
}

.report-capture-add-description {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--color-primary-strong);
  background: transparent;
  font: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.report-details-inline-description {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.report-details-inline-description textarea {
  width: 100%;
  min-height: 64px;
  max-height: 180px;
  padding: 12px 13px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: none;
  resize: none;
  font: inherit;
  font-size: var(--font-size-body);
  line-height: 1.45;
}

.report-details-inline-description > div {
  display: flex;
  gap: 6px;
}

.report-details-inline-description button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
  display: grid;
  place-items: center;
}

.report-details-inline-description button.is-primary {
  color: var(--color-primary-contrast);
  background: var(--color-primary);
}

.report-capture-hero__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-capture-hero__heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.report-capture-hero__heading strong {
  font-size: 20px;
}

.report-capture-hero__heading span,
.report-capture-hero > p {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

.report-capture-hero .status-pill {
  min-height: 28px;
  padding: 0 10px;
  color: #5136b7;
  background: #ece7ff;
  font-weight: var(--font-weight-bold);
}

.report-capture-hero .status-pill[data-status="published"] {
  color: #176544;
  background: #dff4e8;
}

.report-capture-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-capture-stats > div {
  min-height: 46px;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-capture-stats span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-capture-stats strong {
  font-size: 18px;
}

.report-capture-warning {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-amber) !important;
  background: var(--color-amber-soft);
}

.report-share-feedback {
  overflow-wrap: anywhere;
  color: var(--color-primary-strong) !important;
}

.report-timeline {
  position: relative;
  margin-top: 16px;
  padding-bottom: 8px;
  display: grid;
  gap: 13px;
}

.report-observation {
  position: relative;
  overflow: visible;
}

.report-observation.is-menu-open {
  z-index: 60;
}

.report-observation__header {
  padding: 15px 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-observation time {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-observation h2 {
  padding: 7px 15px 0;
  font-size: 20px;
  line-height: 1.24;
}

.report-observation > p {
  padding: 6px 15px 13px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  line-height: 1.52;
  white-space: pre-wrap;
}

.report-add-description,
.report-add-media-inline,
.report-add-title {
  margin: 8px 15px 14px;
  border: 0;
  color: var(--color-primary-strong);
  background: transparent;
  font: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.report-add-title {
  display: block;
  margin-top: 7px;
  margin-bottom: 0;
}

.report-add-media-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.report-upload-state {
  position: relative;
  width: calc(100% - 30px);
  min-height: 54px;
  margin: 12px 15px 10px;
  padding: 10px 13px 13px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: var(--color-surface-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  opacity: 1;
}

.report-upload-state.is-failed {
  color: var(--color-red);
  cursor: pointer;
}

.report-upload-state.is-queued,
.report-upload-state.is-finalizing {
  color: var(--color-muted-strong);
}

.report-upload-state > i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) var(--upload-progress),
    var(--color-line) var(--upload-progress)
  );
}

.report-inline-description {
  margin: 9px 15px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.report-inline-description textarea {
  width: 100%;
  min-height: 48px;
  max-height: 180px;
  padding: 13px 14px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: none;
  resize: none;
  font: inherit;
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.report-inline-description textarea:focus {
  border-color: var(--color-primary-strong);
  box-shadow: none;
}

.report-inline-description__actions {
  display: flex;
  gap: 6px;
}

.report-inline-description__actions button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: var(--color-surface-soft);
  display: grid;
  place-items: center;
}

.report-inline-description__actions .is-primary {
  color: var(--color-primary-contrast);
  background: var(--color-primary);
}

.report-observation__media {
  margin-top: 13px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--color-line);
}

.report-observation__media[data-count="1"] {
  grid-template-columns: 1fr;
}

.report-observation__media > button,
.report-observation__media img {
  width: 100%;
  min-height: 190px;
  max-height: 520px;
  background: #141419;
  display: block;
  object-fit: cover;
}

.report-observation__media > button {
  padding: 0;
  border: 0;
  overflow: hidden;
  font: inherit;
}

.report-observation__video {
  position: relative;
  min-height: 190px;
  max-height: 520px;
  overflow: hidden;
  background: #141419;
}

.report-observation__video-fallback {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.78);
  background: #201f27;
  display: grid;
  place-items: center;
}

.report-observation__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #17171d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.report-video-skeleton {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #201f27;
  display: grid;
  place-items: center;
}

.report-video-skeleton::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 24%,
    rgba(255, 255, 255, 0.09) 45%,
    transparent 66%
  );
  content: '';
  transform: translateX(-100%);
  animation: report-video-shimmer 1.25s ease-in-out infinite;
}

.report-video-skeleton .loading-dots {
  position: relative;
  z-index: 1;
}

@keyframes report-video-shimmer {
  to { transform: translateX(100%); }
}

.media-skeleton-enter-active,
.media-skeleton-leave-active {
  transition: opacity 180ms ease;
}

.media-skeleton-enter-from,
.media-skeleton-leave-to {
  opacity: 0;
}

.report-observation__menu {
  position: relative;
}

.observation-menu-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: transparent;
  display: grid;
  place-items: center;
}

.observation-menu-popover {
  position: absolute;
  z-index: 6;
  top: 39px;
  right: 0;
  width: 150px;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.observation-menu-backdrop {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.observation-menu-popover button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.observation-menu-popover .is-danger {
  color: var(--color-red);
}

.observation-menu-enter-active,
.observation-menu-leave-active {
  transition: opacity 140ms ease, transform 170ms var(--ease-standard);
}

.observation-menu-enter-from,
.observation-menu-leave-to {
  opacity: 0;
  transform: translateY(-5px) scale(0.98);
}

.report-capture-empty {
  min-height: 310px;
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  text-align: center;
}

.report-capture-empty > span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.report-capture-empty h2 {
  font-size: 20px;
}

.report-capture-empty p {
  max-width: 300px;
  color: var(--color-muted);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.report-capture-dock,
.report-share-bar {
  position: fixed;
  z-index: 19;
  left: 50%;
  bottom: calc(var(--toolbar-height) + 25px + var(--safe-area-bottom));
  transform: translateX(-50%);
}

.report-capture-dock {
  width: min(calc(100% - 54px), 410px);
  min-height: 66px;
  padding: 7px 13px;
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  isolation: isolate;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.report-capture-dock button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  color: var(--color-muted-strong);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font: inherit;
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-semibold);
}

.report-capture-dock .report-capture-dock__camera {
  width: 62px;
  height: 62px;
  min-height: 62px;
  margin: -18px auto 0;
  border-radius: 50%;
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.report-share-bar {
  width: min(calc(100% - 48px), 410px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.report-composer-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.report-composer-sheet {
  --sheet-drag-y: 0px;
  position: relative;
  width: 100%;
  max-height: calc(88svh - var(--safe-area-top));
  padding: 5px 18px calc(18px + var(--safe-area-bottom));
  border-radius: 28px 28px 0 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 13px;
  overflow-y: auto;
  transform: translateY(var(--sheet-drag-y));
  transition: transform 260ms var(--ease-standard);
}

.report-composer-sheet.is-dragging {
  transition: none;
}

.report-composer-sheet__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-composer-sheet__heading h2 {
  font-size: 23px;
  line-height: 1.15;
}

.report-composer-sheet__heading .icon-button {
  width: 40px;
  height: 40px;
}

.report-export-overlay {
  position: fixed;
  z-index: 102;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.report-export-sheet {
  position: relative;
  width: 100%;
  padding: 5px 18px calc(18px + var(--safe-area-bottom));
  border-radius: 28px 28px 0 0;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}

.report-export-sheet__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.report-export-sheet__heading > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.report-export-sheet__heading h2 {
  font-size: 23px;
  line-height: 1.15;
}

.report-export-sheet__heading .icon-button {
  width: 40px;
  height: 40px;
}

.report-export-layout {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-export-layout legend {
  margin-bottom: 8px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-export-layout > div {
  --report-export-index: 1;
  min-height: 50px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  isolation: isolate;
  position: relative;
}

.report-export-layout > div::before {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 14px) / 3);
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  content: '';
  transform: translateX(calc(var(--report-export-index) * (100% + 3px)));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-export-layout button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-muted-strong);
  background: transparent;
  font: inherit;
  font-weight: var(--font-weight-semibold);
  transition: color 220ms ease;
}

.report-export-layout button.is-active {
  color: var(--color-primary-contrast);
}

.report-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-export-actions button {
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: var(--color-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.report-export-actions .is-primary {
  grid-column: 1 / -1;
  color: var(--color-primary-contrast);
  border-color: transparent;
  background: var(--gradient-primary);
}

.report-export-actions button:active:not(:disabled) {
  transform: scale(0.98);
}

.report-composer-media {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 42%);
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.report-composer-media article {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #15151a;
  scroll-snap-align: start;
}

.report-composer-media__loading {
  color: #fff;
  background: #201f27 !important;
  display: grid;
  place-items: center;
}

.report-composer-media__loading::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 24%,
    rgba(255, 255, 255, 0.09) 45%,
    transparent 66%
  );
  content: '';
  transform: translateX(-100%);
  animation: report-video-shimmer 1.25s ease-in-out infinite;
}

.report-composer-media__loading .loading-dots {
  position: relative;
  z-index: 1;
}

.report-composer-media img,
.report-composer-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-composer-media__preview {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.report-composer-media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 20, 26, 0.76);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.report-composer-media__remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 17, 22, 0.82);
  display: grid;
  place-items: center;
}

.report-composer-media__annotate {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #17171d;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.report-media-preview {
  position: fixed;
  z-index: 240;
  inset: 0;
  padding: max(20px, var(--safe-area-top)) 14px max(20px, var(--safe-area-bottom));
  background: rgba(8, 8, 12, 0.94);
  display: grid;
  place-items: center;
}

.report-media-preview img,
.report-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.report-media-preview video {
  max-width: 100%;
  max-height: 100%;
}

.report-media-preview__close {
  position: absolute;
  top: max(16px, var(--safe-area-top));
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(27, 27, 34, 0.88);
  display: grid;
  place-items: center;
}

.media-preview-enter-active,
.media-preview-leave-active {
  transition: opacity 180ms ease;
}

.media-preview-enter-from,
.media-preview-leave-to {
  opacity: 0;
}

.report-floating-field {
  position: relative;
  display: block;
}

.report-floating-field > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  color: var(--color-muted-strong);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transform: translateY(-50%);
  transform-origin: left center;
  transition: all var(--motion-fast) ease;
  pointer-events: none;
}

.report-floating-field:focus-within > span,
.report-floating-field.is-filled > span {
  top: 9px;
  color: var(--color-primary-strong);
  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-semibold);
  transform: none;
}

.report-floating-field input,
.report-floating-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 19px 17px 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--color-ink);
  background: var(--color-surface-glass);
  font: inherit;
}

.report-floating-field textarea {
  min-height: 96px;
  padding-top: 25px;
  resize: vertical;
}

.report-floating-field input::placeholder,
.report-floating-field textarea::placeholder {
  color: transparent;
}

.report-floating-field:focus-within input::placeholder,
.report-floating-field:focus-within textarea::placeholder {
  color: var(--color-muted);
}

.report-floating-field input:focus,
.report-floating-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.report-floating-field.is-invalid {
  animation: report-field-alert 260ms ease;
}

.report-floating-field.is-invalid > span {
  color: var(--color-red);
}

.report-floating-field.is-invalid input {
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-red) 18%, transparent);
}

.report-field-error {
  margin-top: -8px;
  color: var(--color-red);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.report-composer-sync-state {
  min-height: 30px;
  margin: 0;
  color: var(--color-muted-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-align: center;
  transition: color var(--motion-fast) ease;
}

.report-composer-sync-state[data-state="saved"] {
  color: var(--color-success);
}

.report-composer-sync-state[data-state="error"] {
  color: var(--color-red);
}

.report-composer-close {
  min-height: 50px;
  margin-top: 2px;
}

@keyframes report-field-alert {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.report-composer-media-fab {
  position: sticky;
  z-index: 8;
  bottom: 68px;
  width: 56px;
  height: 56px;
  justify-self: end;
  pointer-events: none;
}

.report-composer-media-fab__actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.report-composer-media-fab__actions button,
.report-composer-media-fab__toggle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}

.report-composer-media-fab__actions button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, 0) scale(0.58);
  transition: opacity 160ms ease, transform 260ms var(--ease-standard), visibility 0s linear 260ms;
}

.report-composer-media-fab.is-open .report-composer-media-fab__actions button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.report-composer-media-fab.is-open .report-composer-media-fab__actions button:nth-child(1) {
  transform: translate(-4px, -84px) scale(1);
  transition-delay: 110ms;
}

.report-composer-media-fab.is-open .report-composer-media-fab__actions button:nth-child(2) {
  transform: translate(-62px, -62px) scale(1);
  transition-delay: 55ms;
}

.report-composer-media-fab.is-open .report-composer-media-fab__actions button:nth-child(3) {
  transform: translate(-88px, -4px) scale(1);
  transition-delay: 0ms;
}

.report-composer-media-fab__toggle {
  z-index: 1;
  width: 54px;
  height: 54px;
  border: 0;
  color: #fff;
  background: var(--color-surface-strong);
  box-shadow: 0 11px 26px rgba(14, 13, 18, 0.3);
  pointer-events: auto;
}

.report-composer-media-fab__toggle svg {
  transition: transform 220ms var(--ease-standard);
}

.report-composer-media-fab.is-open .report-composer-media-fab__toggle svg {
  transform: rotate(45deg);
}

.form-error {
  padding: 10px 12px;
  font-size: var(--font-size-caption);
}

@media (min-width: 700px) {
  .report-composer-overlay,
  .report-export-overlay {
    padding: 24px;
  }

  .report-composer-sheet,
  .report-export-sheet {
    width: min(560px, 100%);
    max-height: calc(100svh - 48px);
    border-radius: var(--radius-xl);
  }
}

/* App dialog */
.app-dialog-overlay {
  position: fixed;
  z-index: 500;
  inset: 0;
  padding: 24px;
  background: rgba(10, 9, 14, 0.68);
  display: grid;
  place-items: center;
}

.app-dialog-card {
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.app-dialog-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.app-dialog-card[data-tone="danger"] .app-dialog-card__icon {
  color: var(--color-red);
  background: color-mix(in srgb, var(--color-red) 12%, var(--color-surface));
}

.app-dialog-card h2 {
  font-size: 21px;
  line-height: 1.2;
}

.app-dialog-card p {
  max-width: 320px;
  color: var(--color-muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.app-dialog-card footer {
  width: 100%;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.app-dialog-card footer > :only-child {
  grid-column: 1 / -1;
}

.app-dialog-card__cancel,
.app-dialog-card__confirm {
  min-width: 0;
  border: 0;
  font-weight: var(--font-weight-semibold);
}

.app-dialog-card__cancel {
  color: var(--color-ink);
  background: var(--color-surface-soft);
}

.app-dialog-card__confirm {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.app-dialog-card[data-tone="danger"] .app-dialog-card__confirm {
  color: #fff;
  background: var(--color-red);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-red) 26%, transparent);
}

.app-dialog-enter-active,
.app-dialog-leave-active {
  transition: opacity 180ms ease;
}

.app-dialog-enter-active .app-dialog-card,
.app-dialog-leave-active .app-dialog-card {
  transition: transform 240ms var(--ease-standard), opacity 180ms ease;
}

.app-dialog-enter-from,
.app-dialog-leave-to,
.app-dialog-enter-from .app-dialog-card,
.app-dialog-leave-to .app-dialog-card {
  opacity: 0;
}

.app-dialog-enter-from .app-dialog-card,
.app-dialog-leave-to .app-dialog-card {
  transform: translateY(12px) scale(0.96);
}

body.is-app-dialog-open.has-modal-blur #app {
  filter: none;
  transform: none;
}

body.has-modal-blur .app-dialog-overlay {
  background: rgba(18, 16, 24, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Mobile task centre and field collaboration */
.app-frame--operations {
  --operations-sticky-top: calc(102px + var(--safe-area-top));
  --operations-sticky-offset: calc(-102px - var(--safe-area-top));
}

.app-frame--operations .app-header {
  min-height: var(--operations-sticky-top);
  padding-bottom: 12px;
}

.app-frame--operations .app-content {
  padding-top: 0;
}

.app-frame--operations .operations-tabs {
  animation: card-reveal 420ms var(--ease-standard) both;
}

.app-frame--operations .operations-summary {
  animation: card-reveal 470ms var(--ease-standard) 55ms both;
}

.app-frame--operations .operations-date-row {
  animation: card-reveal 500ms var(--ease-standard) 110ms both;
}

.operations-tabs-sticky {
  position: sticky;
  z-index: 18;
  top: var(--operations-sticky-top);
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  isolation: isolate;
}

.operations-tabs-sticky::before {
  position: absolute;
  z-index: -1;
  top: var(--operations-sticky-offset);
  right: 50%;
  bottom: -9px;
  width: 100vw;
  content: "";
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 30px 30px;
  transform: translateX(50%);
  transition: opacity var(--motion-base) ease;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.operations-tabs-sticky.is-stuck::before {
  opacity: 1;
}

.operations-tabs-sticky > * {
  position: relative;
  z-index: 1;
}

.operations-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.operations-tabs.segmented-control--reports::before {
  width: calc((100% - 13px) / 2);
}

.operations-tabs.segmented-control--reports[data-active="work-sheets"]::before {
  transform: translateX(calc(100% + 3px));
}

.operations-tabs button {
  white-space: nowrap;
}

.operations-date-row {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 9px;
}

.operations-date-picker {
  min-width: 0;
}

.operations-date-field {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-muted-strong);
  background: var(--color-surface-glass);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.operations-date-field span {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-date-field span.is-placeholder {
  color: var(--color-muted);
  font-weight: var(--font-weight-medium);
}

.operations-date-field:active,
.operations-today-button:active {
  transform: scale(0.97);
}

.operations-today-button {
  min-width: 84px;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-xs);
  transition:
    color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    transform var(--motion-fast) var(--ease-spring);
}

.operations-today-button.is-active {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.operations-date-fab-backdrop {
  position: fixed;
  z-index: 42;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.operations-date-fab {
  position: fixed;
  z-index: 43;
  right: max(18px, calc((100vw - var(--page-width)) / 2 + 18px));
  bottom: calc(var(--toolbar-height) + 28px + var(--safe-area-bottom));
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.operations-date-fab__actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.operations-date-fab__actions button,
.operations-date-fab__toggle {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.operations-date-fab__actions button {
  color: #ffffff;
  background: #1b1a20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, 0) scale(0.58);
  transition:
    opacity 190ms ease,
    transform 320ms var(--ease-standard),
    visibility 0s linear 320ms;
}

.operations-date-fab.is-open .operations-date-fab__actions button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.operations-date-fab.is-open .operations-date-fab__actions button:nth-child(1) {
  transform: translate(-4px, -82px) scale(1);
  transition-delay: 90ms;
}

.operations-date-fab.is-open .operations-date-fab__actions button:nth-child(2) {
  transform: translate(-65px, -55px) scale(1);
  transition-delay: 0ms;
}

.operations-date-fab__toggle {
  z-index: 1;
  border: 0;
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
  pointer-events: auto;
  transition: transform 220ms var(--ease-spring);
}

.operations-date-fab__toggle:active {
  transform: scale(0.94);
}

.operations-date-fab-enter-active,
.operations-date-fab-leave-active {
  transition:
    opacity 220ms ease,
    transform 300ms var(--ease-spring);
}

.operations-date-fab-enter-from,
.operations-date-fab-leave-to {
  opacity: 0;
  transform: translateY(14px) scale(0.86);
}

.operations-summary {
  margin: 0 0 14px;
}

.app-frame--account .profile-card {
  animation: card-reveal 420ms var(--ease-standard) both;
}

.app-frame--account .settings-list {
  animation: card-reveal 460ms var(--ease-standard) 55ms both;
}

.app-frame--account .language-card {
  animation: card-reveal 480ms var(--ease-standard) 110ms both;
}

.app-frame--account .theme-card {
  animation: card-reveal 500ms var(--ease-standard) 165ms both;
}

.app-frame--account .settings-action {
  animation: card-reveal 520ms var(--ease-standard) 220ms both;
}

.app-frame--account .account-signout {
  animation: card-reveal 540ms var(--ease-standard) 275ms both;
}

.operation-task-card,
.work-sheet-card,
.work-sheet-detail-hero,
.work-sheet-property,
.work-sheet-detail-table-card {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
}

.operation-task-card {
  min-height: 0;
  padding: 14px;
  gap: 12px;
}

.operation-task-card .record-card__heading {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
}

.operation-task-card .record-card__heading > .status-pill {
  grid-column: 3;
  align-self: start;
}

.operation-task-card__location {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  display: grid;
  gap: 3px;
}

.operation-task-card__location strong,
.operation-task-card__location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-task-card__location strong {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

.operation-task-card__location span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.task-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.task-mini-meta span {
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.instruction-form {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.instruction-form .field,
.instruction-form .form-error {
  width: 100%;
}

.instruction-form textarea {
  min-height: 108px;
}

.instruction-form__submit,
.comment-form__submit {
  transition:
    opacity 280ms ease,
    filter 280ms ease,
    box-shadow 320ms ease,
    color 280ms ease,
    transform 180ms ease;
}

.instruction-form__submit:disabled,
.comment-form__submit:disabled {
  cursor: default;
  opacity: 0.48;
  filter: saturate(0.45);
  box-shadow: none;
}

.instruction-form__submit:not(:disabled),
.comment-form__submit:not(:disabled) {
  opacity: 1;
  filter: saturate(1);
}

.comment-form .field.is-invalid {
  animation: report-field-alert 260ms ease;
}

.comment-form .field.is-invalid > span {
  color: var(--color-red);
}

.comment-form .field.is-invalid textarea {
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-red) 18%, transparent);
}

.comment-form__submit.is-empty:not(:disabled) {
  opacity: 0.78;
  filter: saturate(0.78);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.work-sheet-list,
.work-sheet-property-list {
  display: grid;
  gap: 12px;
}

.work-sheet-card {
  padding: 16px;
  overflow: visible;
}

.work-sheet-card.is-menu-open {
  z-index: 60;
}

.work-sheet-card__body {
  min-height: 0;
  margin-top: 12px;
  color: inherit;
  display: grid;
  align-content: start;
  gap: 12px;
}

@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

.work-sheet-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.work-sheet-property header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

/* Worker payment sheets */
.pay-summary {
  min-height: 110px;
  margin-bottom: 14px;
  padding: 15px 10px;
  border-radius: var(--radius-lg);
  color: var(--color-ink-inverse);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pay-summary > div {
  min-width: 0;
  padding: 3px 10px;
  display: grid;
  grid-template-rows: 28px 34px;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 5px;
}

.pay-summary > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-summary > div > span {
  width: 100%;
  overflow: hidden;
  font-size: var(--font-size-caption);
  color: rgba(255, 255, 255, 0.64);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-summary strong {
  min-width: 0;
  min-height: 34px;
  color: #ffffff;
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-summary strong .animated-number {
  width: auto;
  margin: 0;
  font-size: inherit;
  color: #ffffff;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
}

.pay-summary__money {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.pay-summary__money small {
  margin-right: 1px;
  margin-top: 0;
  font-size: inherit;
  text-align: center;
  color: #ffffff;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.pay-tabs {
  position: relative;
  height: 50px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
}

.pay-tabs > span {
  position: absolute;
  z-index: 0;
  inset: 5px auto 5px 5px;
  width: calc((100% - 10px) / 2);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform 330ms var(--ease-standard);
}

.pay-tabs[data-active="history"] > span {
  transform: translateX(100%);
}

.pay-tabs button {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  background: transparent;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  transition: color 220ms ease, transform 180ms var(--ease-spring);
}

.pay-tabs button.active {
  color: var(--color-ink-inverse);
}

.pay-tabs button:active {
  transform: scale(0.96);
}

.pay-available,
.pay-sheet-list,
.pay-detail-lines {
  display: grid;
  gap: 12px;
}

.pay-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.pay-section-heading > div {
  display: grid;
  gap: 3px;
}

.pay-select-all {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.pay-section-copy {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-task-list {
  display: grid;
  gap: 11px;
}

.pay-task-card,
.pay-sheet-card,
.pay-line-card,
.pay-detail-hero,
.pay-return-note,
.pay-worker-note,
.pay-review-notes,
.pay-approved-banner {
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
}

.pay-task-card,
.pay-sheet-card {
  width: 100%;
  text-align: left;
  animation: card-reveal 440ms var(--ease-standard) both;
  animation-delay: calc(min(var(--pay-index), 5) * 48ms);
}

.pay-task-card {
  position: relative;
  padding: 15px;
  display: grid;
  gap: 11px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 220ms ease, background 220ms ease, transform 180ms var(--ease-spring);
}

.pay-task-card:active,
.pay-sheet-card:active {
  transform: scale(0.985);
}

.pay-task-card.is-selected {
  outline-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary-soft) 50%, var(--color-surface-glass));
}

.pay-task-card__check {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: transparent;
  background: var(--color-surface);
  display: grid;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, transform 220ms var(--ease-spring);
}

.pay-task-card.is-selected .pay-task-card__check {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  transform: scale(1.05);
}

.pay-task-card__heading {
  padding-right: 32px;
  display: grid;
  gap: 4px;
}

.pay-sheet-card__top > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pay-task-card__title-row,
.pay-task-card__reference-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-task-card__title-row strong {
  min-width: 0;
  flex: 1;
}

.pay-task-card__reference-row span {
  max-width: 38%;
  overflow: hidden;
  color: var(--color-muted-strong);
  flex: 0 1 auto;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-task-card__reference-row small,
.pay-sheet-card__top small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-task-card__title-row strong,
.pay-sheet-card__top strong {
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--font-size-body-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-task-card__title-row > b {
  flex: 0 0 auto;
  color: var(--color-primary-strong);
  font-size: var(--font-size-body-lg);
  white-space: nowrap;
}

.pay-task-card__property,
.pay-sheet-card__meta {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
}

.pay-task-card__property {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 0;
}

.pay-sheet-card__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 0;
}

.pay-task-card__property span,
.pay-sheet-card__meta span {
  overflow: hidden;
  justify-content: center;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-task-card__property svg,
.pay-sheet-card__meta svg {
  flex: 0 0 auto;
}

.pay-task-card__property span,
.pay-sheet-card__meta span {
  min-width: 0;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-caption);
}

.pay-task-card__basis {
  color: var(--color-muted-strong);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.pay-create-panel {
  margin-top: 3px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  display: grid;
  gap: 12px;
  opacity: 0.72;
  transition: opacity 220ms ease, box-shadow 260ms ease, transform 260ms var(--ease-standard);
}

.pay-create-panel.is-active {
  opacity: 1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pay-create-panel > div {
  display: grid;
  gap: 4px;
}

.pay-create-panel small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-empty-state {
  min-height: 330px;
}

.pay-sheet-card {
  padding: 15px;
  display: grid;
  gap: 12px;
}

.pay-sheet-card__top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.pay-sheet-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.pay-status {
  min-height: 27px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.pay-status[data-status="changes_requested"],
.pay-status[data-status="cancelled"] {
  color: var(--color-red);
  background: var(--color-red-soft);
}

.pay-status[data-status="pm_approved"] {
  color: var(--color-amber);
  background: var(--color-amber-soft);
}

.pay-status[data-status="cm_approved"],
.pay-status[data-status="paid"] {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.pay-sheet-card footer {
  padding-top: 11px;
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 13px;
}

.pay-sheet-card footer > div {
  display: grid;
  gap: 2px;
}

.pay-sheet-card footer small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-sheet-card footer > span {
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.pay-detail-hero {
  padding: 17px;
  display: grid;
  gap: 15px;
}

.pay-detail-lines {
  margin-top: 12px;
}

.pay-detail-hero__top,
.pay-detail-hero__total,
.pay-detail-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-detail-hero__top > div,
.pay-detail-hero__total {
  min-width: 0;
}

.pay-detail-hero__top > div {
  display: grid;
  gap: 2px;
}

.pay-detail-hero__top small,
.pay-detail-hero__total span,
.pay-detail-hero__meta span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-detail-hero__top strong {
  overflow: hidden;
  font-size: var(--font-size-title-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-detail-hero__total {
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}

.pay-detail-hero__total strong {
  color: var(--color-primary-strong);
  font-size: 24px;
}

.pay-detail-hero__meta {
  flex-wrap: nowrap;
}

.pay-detail-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pay-return-note {
  padding: 15px;
  color: var(--color-red);
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pay-return-note > div {
  display: grid;
  gap: 3px;
}

.pay-return-note p {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-line-card {
  padding: 15px;
  display: grid;
  gap: 13px;
  animation: card-reveal 440ms var(--ease-standard) both;
  animation-delay: calc(min(var(--pay-index), 5) * 48ms);
}

.pay-line-card header {
  display: grid;
  gap: 4px;
}

.pay-line-card__reference-row,
.pay-line-card__title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-line-card header small,
.pay-line-card header span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-line-card header h2 {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-line-card__title-row span {
  max-width: 38%;
  overflow: hidden;
  color: var(--color-muted-strong);
  flex: 0 1 auto;
  font-weight: var(--font-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-line-card__context {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.pay-line-card__context span {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--font-size-caption);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-line-card__context svg {
  flex: 0 0 auto;
}

.pay-line-card__amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.pay-line-card__amounts > div,
.pay-line-card__amounts > button {
  min-height: 58px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: var(--color-surface-soft);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  text-align: left;
}

.pay-line-card__amounts > button {
  outline: 1px solid var(--color-primary-soft);
}

.pay-line-card__amounts span {
  color: var(--color-muted);
  font-size: var(--font-size-micro);
  text-transform: uppercase;
}

.pay-amount-field {
  display: grid;
  gap: 7px;
}

.pay-amount-field > span:first-child,
.pay-line-note > span,
.pay-worker-note > span {
  color: var(--color-muted-strong);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.pay-amount-field__control {
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 180ms ease, background 180ms ease;
}

.pay-amount-field__control input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: transparent;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
}

.pay-amount-field.has-error .pay-amount-field__control {
  border-color: var(--color-red);
  background: var(--color-red-soft);
}

.pay-line-note input,
.pay-worker-note textarea {
  color: var(--color-ink);
  background: var(--color-surface);
}

.pay-line-card__note,
.pay-review-notes p {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.pay-worker-note,
.pay-review-notes {
  margin-top: 12px;
  padding: 15px;
}

.pay-review-notes {
  display: grid;
  gap: 12px;
}

.pay-review-notes > div {
  display: grid;
  gap: 3px;
}

.pay-detail-actions {
  margin-top: 12px;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pay-detail-actions .button {
  min-width: 0;
  padding: 0 11px;
}

.pay-delete-button {
  color: var(--color-red);
  background: var(--color-red-soft);
}

.pay-save-button {
  color: #ffffff;
  background: #1b1a20;
}

:root[data-theme="dark"] .pay-save-button {
  color: var(--color-ink);
  background: var(--color-surface-soft);
}

:root[data-theme="dark"] .bottom-nav a.bottom-nav__scan.is-active .bottom-nav__label {
  color: var(--color-primary-strong);
}

.pay-submit-button {
  grid-column: 1 / -1;
}

.pay-approved-banner {
  margin-top: 12px;
  padding: 15px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-approved-banner > div {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 370px) {
  .pay-summary {
    padding-right: 4px;
    padding-left: 4px;
  }

  .pay-summary > div {
    padding-right: 5px;
    padding-left: 5px;
  }

  .pay-summary strong {
    font-size: 21px;
  }

  .pay-sheet-card__top {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .pay-sheet-card__top > .pay-status {
    grid-column: 2;
    justify-self: start;
  }
}

.work-sheet-card__heading-link {
  min-width: 0;
  color: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.work-sheet-card__heading-link > div,
.work-sheet-property header div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.work-sheet-card__heading span,
.work-sheet-card small,
.work-sheet-property header span {
  color: var(--color-muted);
}

.work-sheet-card__heading strong,
.work-sheet-card__heading span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-sheet-card__status-actions {
  position: relative;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 3px !important;
}

.work-sheet-card .status-pill {
  min-height: 27px;
  padding: 0 10px;
  color: #5136b7;
  background: #ece7ff;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
}

.work-sheet-card .status-pill[data-status="published"] {
  color: #176544;
  background: #dff4e8;
}

.work-sheet-card__menu-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: transparent;
  display: grid;
  place-items: center;
}

.work-sheet-card__menu-button:active {
  background: var(--color-surface-soft);
  transform: scale(0.94);
}

.work-sheet-card__menu {
  position: absolute;
  z-index: 3;
  top: 41px;
  right: 0;
  width: 168px;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: grid !important;
  gap: 2px !important;
  transform-origin: top right;
  will-change: opacity, transform;
}

.work-sheet-menu-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.work-sheet-card__menu > a,
.work-sheet-card__menu > button {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  animation: work-sheet-menu-option-in 300ms var(--ease-standard) both;
}

.work-sheet-card__menu > :nth-child(1) {
  animation-delay: 110ms;
}

.work-sheet-card__menu > :nth-child(2) {
  animation-delay: 210ms;
}

.work-sheet-card__menu > a:active,
.work-sheet-card__menu > button:active {
  background: var(--color-surface-soft);
}

.work-sheet-card__menu > button:disabled {
  color: var(--color-muted);
  opacity: 0.45;
  cursor: default;
}

.work-sheet-card__menu > button:disabled:active {
  background: transparent;
}

.work-sheet-menu-enter-active,
.work-sheet-menu-leave-active {
  transition:
    opacity 260ms ease,
    transform 320ms var(--ease-standard);
}

.work-sheet-menu-enter-from,
.work-sheet-menu-leave-to {
  opacity: 0;
  transform: translateY(-7px) scale(0.96);
}

@keyframes work-sheet-menu-option-in {
  from {
    opacity: 0;
    transform: translateX(9px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.work-sheet-card__project {
  min-width: 0;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  gap: 2px;
}

.work-sheet-card__project strong,
.work-sheet-card__project span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-sheet-card__project span,
.work-sheet-card__meta small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.work-sheet-card__meta {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 19px;
  align-items: center;
  gap: 8px 10px;
}

.work-sheet-card__meta > span {
  color: var(--color-muted-strong);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.work-sheet-card__meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-sheet-card__arrow {
  color: var(--color-primary-strong);
  justify-self: end;
}

.work-sheet-detail-hero,
.work-sheet-property {
  padding: 18px;
}

.work-sheet-share-button:not(:disabled) {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.work-sheet-share-button:disabled {
  color: var(--color-muted);
  background: var(--color-surface-soft);
  box-shadow: none;
  cursor: default;
  opacity: 0.62;
}

.work-sheet-detail-hero,
.work-sheet-detail-table-card {
  animation: card-reveal 480ms var(--ease-standard) both;
}

.work-sheet-detail-table-card {
  animation-delay: 70ms;
}

.work-sheet-detail-hero__topline {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.work-sheet-detail-hero__client {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-sheet-detail-hero__topline .status-pill {
  flex: 0 0 auto;
  margin-left: auto;
}

.work-sheet-detail-hero__context {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.work-sheet-detail-hero__context > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.work-sheet-detail-hero__context > div:last-child {
  justify-items: end;
  text-align: right;
}

.work-sheet-detail-hero__context > div:last-child strong {
  width: 100%;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.work-sheet-detail-hero__context span,
.work-sheet-detail-hero__context small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.work-sheet-detail-hero__context strong {
  min-width: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 6px;
  text-overflow: ellipsis;
}

.work-sheet-detail-hero__intro {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted-strong);
  line-height: 1.55;
}

.work-sheet-detail-hero > span,
.work-sheet-property header span,
.work-sheet-lines small {
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.work-sheet-lines {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.work-sheet-lines > div {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  gap: 4px;
}

.work-sheet-property__next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

.work-sheet-detail-table-card {
  margin-top: 16px;
  overflow: hidden;
}

.work-sheet-detail-table-card__heading {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-sheet-detail-table-card__heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.work-sheet-detail-table-card__heading span,
.work-sheet-detail-table-card__heading small {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.work-sheet-detail-table-card__heading strong {
  font-size: var(--font-size-title-sm);
}

.work-sheet-detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-top: 1px solid var(--color-line);
  scrollbar-color: var(--color-primary-soft) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.work-sheet-detail-table-wrap:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.work-sheet-detail-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--color-ink);
  font-size: var(--font-size-caption);
}

.work-sheet-detail-table th,
.work-sheet-detail-table td {
  min-width: 118px;
  padding: 12px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

.work-sheet-detail-table th {
  height: 48px;
  color: #ffffff;
  background: #1b1a20;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.work-sheet-detail-table th:nth-child(1) {
  width: 210px;
}

.work-sheet-detail-table th:nth-child(2) {
  width: 145px;
}

.work-sheet-detail-table th:nth-child(3) {
  width: 230px;
}

.work-sheet-detail-table th:nth-child(4) {
  width: 165px;
}

.work-sheet-detail-table tbody:nth-of-type(even) td {
  background: color-mix(in srgb, var(--color-primary-soft) 36%, var(--color-surface));
}

.work-sheet-detail-table td:first-child,
.work-sheet-detail-table th:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  border-left: 0;
}

.work-sheet-detail-table th:first-child {
  z-index: 2;
}

.work-sheet-detail-table td:first-child {
  background: var(--color-surface);
  box-shadow: 8px 0 16px -15px rgba(20, 18, 27, 0.8);
}

.work-sheet-detail-table td:last-child,
.work-sheet-detail-table th:last-child {
  border-right: 0;
}

.work-sheet-detail-table tbody:last-child tr:last-child td {
  border-bottom: 0;
}

.work-sheet-detail-table td strong,
.work-sheet-detail-table td span,
.work-sheet-detail-table td small {
  display: block;
}

.work-sheet-detail-table td span,
.work-sheet-detail-table td small {
  margin-top: 3px;
  color: var(--color-muted);
}

.work-sheet-detail-table__property strong {
  font-size: var(--font-size-body);
}

@media (max-width: 699px) {
  .work-sheet-detail-table td:first-child,
  .work-sheet-detail-table th:first-child {
    position: static;
    left: auto;
  }

  .work-sheet-detail-table td:first-child {
    box-shadow: none;
  }

}

@media (max-width: 390px) {
  .work-sheet-detail-hero__context {
    grid-template-columns: minmax(0, 1fr) 126px;
  }

  .work-sheet-detail-table {
    min-width: 960px;
  }
}

.operations-date-overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
  padding-top: var(--safe-area-top);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.operations-date-sheet {
  --operations-date-drag-y: 0px;
  width: 100%;
  padding: 5px 18px calc(18px + var(--safe-area-bottom));
  border-radius: 28px 28px 0 0;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-rows: 32px auto auto 240px auto;
  gap: 10px;
  overflow: hidden;
  transform: translateY(var(--operations-date-drag-y));
  transition: transform 260ms var(--ease-standard);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.operations-date-sheet.is-dragging {
  transition: none;
}

.operations-date-sheet__header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.operations-date-sheet__header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.operations-date-sheet__header span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.operations-date-sheet__header strong {
  overflow: hidden;
  font-size: var(--font-size-title-sm);
  font-weight: var(--font-weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-date-sheet__header .icon-button {
  width: 40px;
  height: 40px;
}

.operations-date-wheel-labels {
  min-height: 34px;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: 0.72fr 1.45fr 1fr;
  align-items: center;
  gap: 4px;
}

.operations-date-wheel-labels span {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.operations-date-wheels {
  position: relative;
  height: 240px;
  display: grid;
  grid-template-columns: 0.72fr 1.45fr 1fr;
  gap: 4px;
  overflow: hidden;
  isolation: isolate;
}

.operations-date-wheels__selection {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  left: 0;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  transform: translateY(-50%);
}

.operations-date-wheel {
  height: 240px;
  padding: 96px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.operations-date-wheel::-webkit-scrollbar {
  display: none;
}

.operations-date-wheel button {
  width: 100%;
  height: 48px;
  padding: 0 4px;
  border: 0;
  color: var(--color-muted);
  background: transparent;
  display: block;
  overflow: hidden;
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-medium);
  line-height: 48px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  scroll-snap-align: center;
  transform-origin: center;
  transition: color var(--motion-fast) ease;
}

.operations-date-wheel button.is-selected {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}

.operations-date-sheet__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.operations-date-sheet__footer .button {
  min-width: 0;
}

.operations-date-sheet__cancel {
  color: var(--color-ink);
  background: var(--color-surface-soft);
}

.operations-date-sheet-enter-active,
.operations-date-sheet-leave-active {
  transition: opacity 220ms ease;
}

.operations-date-sheet-enter-active .operations-date-sheet,
.operations-date-sheet-leave-active .operations-date-sheet {
  transition:
    opacity 250ms ease,
    transform 380ms var(--ease-standard);
}

.operations-date-sheet-enter-from,
.operations-date-sheet-leave-to,
.operations-date-sheet-enter-from .operations-date-sheet,
.operations-date-sheet-leave-to .operations-date-sheet {
  opacity: 0;
}

.operations-date-sheet-enter-from .operations-date-sheet,
.operations-date-sheet-leave-to .operations-date-sheet {
  transform: translateY(calc(100% + 24px));
}

@media (min-width: 700px) {
  .operations-date-overlay {
    padding: 24px;
    align-items: center;
  }

  .operations-date-sheet {
    width: min(460px, 100%);
    border-radius: var(--radius-xl);
  }
}

.task-media-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-media-card {
  min-height: 150px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.task-media-card img,
.task-media-card video {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 260px;
  border-radius: inherit;
  object-fit: cover;
}

.task-media-card--loading {
  padding: 12px;
  border: 0;
  color: var(--color-muted-strong);
  font: inherit;
  font-size: var(--font-size-caption);
  text-align: center;
  opacity: 1;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.task-media-card--loading.is-failed {
  color: var(--color-red);
  animation: none;
}

.task-media-actions {
  margin-top: 14px;
  padding: 7px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.task-media-actions button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-muted-strong);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.task-media-actions button span {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
}

.task-media-actions button.is-primary {
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.scan-stage__content {
  width: 100%;
  color: var(--color-ink);
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.scan-stage__content > strong {
  font-size: 20px;
}

.scan-stage__content > span {
  max-width: 300px;
  color: var(--color-muted);
  line-height: 1.5;
}

.scan-stage__retry {
  min-height: 44px;
  margin-top: 3px;
  padding-inline: 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.active-time-card,
.scan-property-card,
.scan-task-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.active-time-card {
  margin-bottom: 14px;
  padding: 17px;
  display: grid;
  gap: 13px;
}

.active-time-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-time-card__heading > span {
  color: var(--color-primary-strong);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-time-card__heading > strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.active-time-card__heading small {
  font-size: 17px;
}

.active-time-card > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.active-time-card > div:nth-child(2) span {
  color: var(--color-muted);
}

.active-time-card__stop,
.scan-task-card__stop {
  color: #fff;
  background: var(--color-red);
}

.scan-property-card {
  padding: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.scan-property-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
}

.scan-property-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scan-property-card small {
  color: var(--color-primary-strong);
  font-weight: var(--font-weight-semibold);
}

.scan-property-card strong {
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--font-size-body-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-property-card span:not(.scan-property-card__icon) {
  overflow: hidden;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-location-state {
  margin-top: 14px;
}

.scan-location-state > .loading-dots {
  margin-top: 4px;
  color: var(--color-primary-strong);
}

.scan-task-heading {
  margin: 22px 2px 11px;
  font-size: 18px;
}

.scan-task-list {
  display: grid;
  gap: 11px;
}

.scan-task-card {
  padding: 15px;
}

.scan-task-card__heading,
.scan-task-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scan-task-card__heading > span:first-child {
  color: var(--color-muted);
  font-size: var(--font-size-caption);
}

.scan-task-card > a {
  position: relative;
  margin: 13px 0;
  color: inherit;
  display: grid;
  gap: 3px;
}

.scan-task-card > a strong {
  color: var(--color-ink);
  font-size: var(--font-size-body-lg);
}

.scan-task-card > a > span,
.scan-task-card__footer > span {
  color: var(--color-muted);
}

.scan-task-card__link-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scan-task-card__link-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-task-card__link-row small {
  flex: 0 0 auto;
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
}

.scan-task-card__footer > span {
  font-size: var(--font-size-caption);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scan-task-card__running {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--color-primary-strong) !important;
  background: var(--color-primary-soft);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scan-task-card__running > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: var(--font-weight-semibold);
}

.scan-task-card__running strong {
  color: var(--color-ink);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.scan-task-card__running strong small {
  font-size: 15px;
  font-weight: inherit;
}

.work-time-row-enter-active,
.work-time-row-leave-active {
  overflow: hidden;
  transition:
    opacity 220ms ease,
    transform 300ms var(--ease-standard),
    max-height 300ms var(--ease-standard);
}

.work-time-row-enter-from,
.work-time-row-leave-to {
  max-height: 0;
  opacity: 0;
  transform: translateY(-7px);
}

.work-time-row-enter-to,
.work-time-row-leave-from {
  max-height: 48px;
}

.scan-task-card__footer .button {
  min-height: 39px;
  padding: 0 13px;
}

.scan-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--color-red);
  background: color-mix(in srgb, var(--color-red) 10%, var(--color-surface-strong));
  font-weight: var(--font-weight-medium);
  text-align: center;
}

/* Worker task cards and navigation actions */
.task-card {
  min-height: 0;
  padding: 16px;
  display: grid;
  gap: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.task-card:focus {
  outline: none;
}

.task-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.task-card__identity {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-card__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-card__identity > .status-pill {
  flex: 0 0 auto;
  margin-top: 1px;
}

.task-card__unit {
  margin: 0;
}

.task-card__copy h2,
.task-card__reference,
.task-card__footer > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__meta {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.task-card__address-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.task-card__address-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-directions-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary-contrast);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  transition: transform var(--motion-fast) var(--ease-spring), box-shadow var(--motion-base) ease;
}

.task-directions-button svg {
  color: inherit;
  stroke: currentColor;
}

.task-directions-button:active {
  transform: scale(0.92);
}

.task-card__footer {
  min-width: 0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-card__details-link {
  margin-left: auto;
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.task-card__details-link svg {
  flex: 0 0 auto;
}

.task-card__footer .priority-pill {
  flex: 0 0 auto;
}

.location-list__address {
  padding-bottom: 14px !important;
}

.map-directions-actions {
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.map-directions-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: var(--color-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  transition: background var(--motion-fast) ease, transform var(--motion-fast) var(--ease-spring);
}

.map-directions-actions button:active {
  transform: scale(0.96);
}

.map-directions-actions svg,
.app-dialog-card footer svg {
  flex: 0 0 auto;
}

.app-dialog-card__cancel,
.app-dialog-card__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-dialog-card[data-action-layout="stacked"] footer {
  grid-template-columns: 1fr;
}

.app-dialog-card[data-action-tone="neutral"] .app-dialog-card__cancel,
.app-dialog-card[data-action-tone="neutral"] .app-dialog-card__confirm {
  color: var(--color-ink);
  background: var(--color-surface-soft);
  box-shadow: none;
}

.app-dialog-card[data-action-tone="neutral"] .app-dialog-card__cancel:hover,
.app-dialog-card[data-action-tone="neutral"] .app-dialog-card__confirm:hover {
  background: color-mix(in srgb, var(--color-primary-soft) 58%, var(--color-surface));
}

.app-dialog-card:focus {
  outline: none;
}

.app-dialog-card__icon,
.app-dialog-card h2,
.app-dialog-card p,
.app-dialog-card footer > * {
  animation: app-dialog-item-reveal 360ms var(--ease-standard) both;
}

.app-dialog-card h2 {
  animation-delay: 45ms;
}

.app-dialog-card p {
  animation-delay: 90ms;
}

.app-dialog-card footer > :first-child {
  animation-delay: 135ms;
}

.app-dialog-card footer > :last-child {
  animation-delay: 190ms;
}

@keyframes app-dialog-item-reveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.create-report-sheet > *,
.report-composer-sheet > *,
.language-sheet > *,
.operations-date-sheet > * {
  animation: modal-content-reveal 420ms var(--ease-standard) both;
}

.create-report-sheet > :nth-child(2),
.report-composer-sheet > :nth-child(2),
.language-sheet > :nth-child(2),
.operations-date-sheet > :nth-child(2) {
  animation-delay: 55ms;
}

.create-report-sheet > :nth-child(n + 3),
.report-composer-sheet > :nth-child(n + 3),
.language-sheet > :nth-child(n + 3),
.operations-date-sheet > :nth-child(n + 3) {
  animation-delay: 105ms;
}

@keyframes modal-content-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-dialog-card__icon,
  .app-dialog-card h2,
  .app-dialog-card p,
  .app-dialog-card footer > *,
  .create-report-sheet > *,
  .report-composer-sheet > *,
  .language-sheet > *,
  .operations-date-sheet > * {
    animation: none;
  }
}

.scan-task-card__footer .button {
  min-width: 138px;
}

.scan-task-card__footer .button .loading-dots {
  color: currentColor;
}

.scan-task-card__details {
  margin-bottom: 13px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.scan-task-card__details > span:first-child {
  min-width: 0;
  color: var(--color-muted-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
}

.scan-task-card__details > p {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--color-muted);
  display: -webkit-box;
  font-size: var(--font-size-caption);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scan-task-card__footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.scan-task-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scan-task-card__actions > :only-child {
  grid-column: 1 / -1;
}

.scan-task-card__actions .button {
  min-width: 0;
  padding-inline: 10px;
}

.scan-task-card__complete {
  color: #27623e;
  background: #e8f6ec;
}

[data-theme="dark"] .scan-task-card__complete {
  color: #9fe0b4;
  background: color-mix(in srgb, #51b875 20%, var(--color-surface));
}
