/* WorkProof · direcció «Taulell» (10-10-2026)
   Components compartits de la direcció visual: icones, etiquetes d'estat, avatars,
   tauler, avisos flotants i menús. Els colors surten dels tokens de prototype.css;
   aquí només s'hi defineixen els parells de color de les etiquetes. */

:root {
  --wp-pill-late-bg: #3a2e12; --wp-pill-late-ink: #f0c066;
  --wp-pill-today-bg: #173a35; --wp-pill-today-ink: #7fd1c4;
  --wp-pill-planned-bg: #19263a; --wp-pill-planned-ink: #9cc2f2;
  --wp-pill-review-bg: #2a2340; --wp-pill-review-ink: #c3b2f0;
  --wp-pill-done-bg: #183324; --wp-pill-done-ink: #8fdca8;
  --wp-pill-progress-bg: #3a2416; --wp-pill-progress-ink: #f2b48a;
  --wp-pill-quiet-bg: #262d2b; --wp-pill-quiet-ink: #c2cac7;
  --wp-radius-control: 8px;
  --wp-radius-card: 10px;
  --wp-elevation-1: 0 1px 2px var(--wp-shadow-soft);
  --wp-elevation-2: 0 4px 14px var(--wp-shadow-soft), 0 1px 2px var(--wp-shadow-soft);
  --wp-elevation-3: 0 16px 40px var(--wp-shadow);
}
:root[data-theme="light"] {
  --wp-pill-late-bg: #fdf1dc; --wp-pill-late-ink: #7a4a00;
  --wp-pill-today-bg: #e3f3ef; --wp-pill-today-ink: #0d5e55;
  --wp-pill-planned-bg: #e8f0fb; --wp-pill-planned-ink: #1f4f8f;
  --wp-pill-review-bg: #efebfa; --wp-pill-review-ink: #553a96;
  --wp-pill-done-bg: #e6f4ea; --wp-pill-done-ink: #1d6b3a;
  --wp-pill-progress-bg: #fbeee4; --wp-pill-progress-ink: #8a3d0a;
  --wp-pill-quiet-bg: #eef0ef; --wp-pill-quiet-ink: #45504c;
}

/* 1. Icones Tabler com a màscara: agafen el color del text, en clar i en fosc. */
.wp02-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: var(--wp-icon) center / contain no-repeat;
  mask: var(--wp-icon) center / contain no-repeat;
}
/* Abans les icones eren <img>; algunes regles antigues apliquen estils a tots els <span>.
   Aquesta protecció conserva la mida de la icona dins de files flex i graelles. */
.wp02-icon.wp02-icon[style] { flex: 0 0 auto; min-height: 0; padding: 0; clip: auto; }
.emp-agenda-queue-row .button span.wp02-icon { position: static; width: 18px; height: 18px; overflow: visible; }
/* Els SVG en línia amb la mateixa classe es pinten amb el traç, no amb màscara. */
svg.wp02-icon { background: none; -webkit-mask: none; mask: none; }
@media (forced-colors: active) { .wp02-icon:not(svg) { background-color: CanvasText; } }

/* 2. Base de l'oficina: text suau, mode assistit sense aplanar la jerarquia. */
body:has(.wp02-office) { font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:root[data-theme="light"] body.assist-mode { --wp-text-secondary: #4f5b57; --wp-border: #d8dedb; }
:root[data-theme="dark"] body.assist-mode { --wp-text-secondary: #b3bcb9; --wp-border: #36403d; }

/* Botons d'oficina proporcionats: 44 px de toc com a mínim, sense blocs de 56 px. */
body:has(.wp02-office) .button,
body.assist-mode:has(.wp02-office) .button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--wp-radius-control);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.3;
}
body.assist-mode:has(.wp02-office) .button { min-height: 44px; font-size: 15px; }
body:has(.wp02-office) .button .wp02-icon { width: 17px; height: 17px; }
body:has(.wp02-office) .button.secondary { background: var(--wp-surface); border-color: var(--wp-border-input); color: var(--wp-text); }
body:has(.wp02-office) .button.secondary:hover { background: var(--wp-surface-muted); }

/* Diàlegs i fulls laterals */
.sheet { border: 1px solid var(--wp-border); border-radius: 14px; box-shadow: var(--wp-elevation-3); }
.sheet-head { padding: 14px 20px; }
.sheet-head strong { font-size: 15px; font-weight: 600; }
.overlay-backdrop { backdrop-filter: none; }

/* 3. Etiquetes d'estat a la llista de feines: color + punt + text, mai només color. */
.wp02-job-row { --wp-pill-bg: var(--wp-pill-quiet-bg); --wp-pill-ink: var(--wp-pill-quiet-ink); }
.wp02-job-row[data-stage="late"] { --wp-pill-bg: var(--wp-pill-late-bg); --wp-pill-ink: var(--wp-pill-late-ink); }
.wp02-job-row[data-stage="today"],
.wp02-job-row[data-stage="started"] { --wp-pill-bg: var(--wp-pill-today-bg); --wp-pill-ink: var(--wp-pill-today-ink); }
.wp02-job-row[data-stage="planned"] { --wp-pill-bg: var(--wp-pill-planned-bg); --wp-pill-ink: var(--wp-pill-planned-ink); }
.wp02-job-row[data-stage="review"] { --wp-pill-bg: var(--wp-pill-review-bg); --wp-pill-ink: var(--wp-pill-review-ink); }
.wp02-job-row[data-stage="done"] { --wp-pill-bg: var(--wp-pill-done-bg); --wp-pill-ink: var(--wp-pill-done-ink); }
.wp02-job-row[data-stage="progress"] { --wp-pill-bg: var(--wp-pill-progress-bg); --wp-pill-ink: var(--wp-pill-progress-ink); }
.wp02-job-phase-group { display: grid; gap: 4px; justify-items: start; }
.wp02-job-phase-group > .wp02-job-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: var(--wp-pill-bg);
  color: var(--wp-pill-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.wp02-job-phase-group > .wp02-job-phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.wp02-job-phase-group > .wp02-job-phase .wp02-icon { display: none; }
.wp02-job-phase-group > .wp02-phase-detail { color: var(--wp-text-secondary); font-size: 13px; line-height: 1.4; }
.wp02-job-phase-group > .wp02-job-pending { color: var(--wp-warning); font-size: 13px; font-weight: 550; line-height: 1.4; }
.wp02-job-phase-group > .wp02-job-pending .wp02-icon { width: 15px; height: 15px; margin-top: 1px; }

/* 4. Avatars de persona: inicials amb color estable per persona. */
.wp-people { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.wp-avatars { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wp-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--wp-av, #2f6f8f);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .01em;
  box-shadow: 0 0 0 2px var(--wp-surface);
}
.wp-av + .wp-av { margin-left: -6px; }
.wp-av[data-tone="0"] { --wp-av: #2f6f8f; }
.wp-av[data-tone="1"] { --wp-av: #7a4fa3; }
.wp-av[data-tone="2"] { --wp-av: #9a5b12; }
.wp-av[data-tone="3"] { --wp-av: #2e7d5b; }
.wp-av[data-tone="4"] { --wp-av: #a33d5c; }
.wp-av[data-tone="5"] { --wp-av: #3f5fa8; }
.wp-av.is-empty { background: transparent; color: var(--wp-text-secondary); box-shadow: inset 0 0 0 1px var(--wp-border-input); }
.wp-people-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-people-name.is-empty { color: var(--wp-text-secondary); }
.wp02-job-team .wp02-job-person { display: flex; }

/* 5. Tauler de feines (vista «Tauler»): columnes per estat, targetes tipus Trello. */
.wp02-board.wp-board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}
.wp-board-col {
  flex: 1 0 200px;
  min-width: 200px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--wp-bg-2);
  scroll-snap-align: start;
}
.wp-board-col > header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.wp-board-col > header h2 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.wp-board-col > header .wp-board-count { margin-left: auto; color: var(--wp-text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.wp-board-col > header .wp-board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wp-pill-ink); flex: 0 0 auto; }
.wp-board-col[data-stage="late"] { --wp-pill-ink: var(--wp-pill-late-ink); }
.wp-board-col[data-stage="unplanned"] { --wp-pill-ink: var(--wp-pill-quiet-ink); }
.wp-board-col[data-stage="planned"] { --wp-pill-ink: var(--wp-pill-planned-ink); }
.wp-board-col[data-stage="today"] { --wp-pill-ink: var(--wp-pill-today-ink); }
.wp-board-col[data-stage="review"] { --wp-pill-ink: var(--wp-pill-review-ink); }
.wp-board-col[data-stage="done"] { --wp-pill-ink: var(--wp-pill-done-ink); }
.wp-board-empty { margin: 0; padding: 14px 6px; color: var(--wp-text-secondary); font-size: 13px; text-align: center; }
.wp-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 12px 10px;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-card);
  background: var(--wp-surface);
  box-shadow: var(--wp-elevation-1);
  color: var(--wp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .14s ease, border-color .14s ease;
}
.wp-card:hover { border-color: var(--wp-border-input); box-shadow: var(--wp-elevation-2); }
.wp-card-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wp-card-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--wp-pill-quiet-bg); color: var(--wp-pill-quiet-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.wp-card-ref { margin-left: auto; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--wp-text-secondary); white-space: nowrap; }
.wp-card-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.wp-card-client { display: block; color: var(--wp-text-secondary); font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-card-attention { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: 6px; background: var(--wp-pill-late-bg); color: var(--wp-pill-late-ink); font-size: 12.5px; font-weight: 550; line-height: 1.35; }
.wp-card-attention .wp02-icon { width: 14px; height: 14px; margin-top: 1px; }
.wp-card-foot { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 2px; }
.wp-card-date { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--wp-surface-muted); color: var(--wp-text-body); font-size: 12px; font-weight: 550; white-space: nowrap; }
.wp-card-date .wp02-icon { width: 13px; height: 13px; }
.wp-card[data-stage="late"] .wp-card-date { background: var(--wp-pill-late-bg); color: var(--wp-pill-late-ink); }
.wp-card[data-stage="today"] .wp-card-date,
.wp-card[data-stage="started"] .wp-card-date { background: var(--wp-pill-today-bg); color: var(--wp-pill-today-ink); }
.wp-card[data-stage="done"] .wp-card-date { background: var(--wp-pill-done-bg); color: var(--wp-pill-done-ink); }
.wp-card-date.is-muted { padding: 0; background: transparent !important; color: var(--wp-text-secondary) !important; font-weight: 500; }
.wp-card-foot .wp-avatars { margin-left: auto; }
.wp-card .wp-av.is-empty { display: none; }

/* 6. Avisos de connexió i desament: flotants, no empenyen el contingut. */
.wp-connected-status {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 160;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--wp-border);
  border-radius: 10px;
  background: var(--wp-surface);
  color: var(--wp-text);
  box-shadow: var(--wp-elevation-3);
  font-size: 14px;
  line-height: 1.45;
}
.wp-connected-status[role="alert"] { border-color: color-mix(in srgb, var(--wp-error) 45%, var(--wp-border)); color: var(--wp-error); }
.wp-connected-status .button,
.wp-connected-status button { width: auto; min-height: 36px; }
body:has(.wp06-worker-nav) .wp-connected-status { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) {
  .wp-connected-status { animation: wp-toast-in .16s ease-out; }
  @keyframes wp-toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

/* 7. «Més accions» com a menú desplegable, sense empènyer la capçalera. */
.emp-secondary-actions { position: relative; }
.emp-job-kicker > .emp-secondary-actions > summary,
.emp-secondary-actions > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-control);
  background: var(--wp-surface);
  color: var(--wp-text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
}
.emp-secondary-actions > summary::-webkit-details-marker { display: none; }
.emp-secondary-actions > summary::marker { content: ""; }
.emp-secondary-actions > summary::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url(redisseny/assets/tabler/chevron-down.svg) center / contain no-repeat;
  mask: url(redisseny/assets/tabler/chevron-down.svg) center / contain no-repeat;
}
.emp-secondary-actions[open] > summary { background: var(--wp-surface-muted); }
.emp-secondary-actions[open] > .emp-job-head-actions {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--wp-border);
  border-radius: 12px;
  background: var(--wp-surface);
  box-shadow: var(--wp-elevation-3);
}
.emp-secondary-actions .emp-job-head-actions .button {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--wp-text);
  font-size: 14px;
  font-weight: 500;
}
.emp-secondary-actions .emp-job-head-actions .button:hover { background: var(--wp-surface-muted); }

/* 8. Agenda setmanal: el nom del dia no es trenca a mitja paraula. */
.emp-agenda-day { grid-template-columns: 168px minmax(0, 1fr); }
.emp-agenda-day > h2 { position: relative; padding-right: 48px; }
.emp-agenda-day > h2 span { white-space: nowrap; }
.emp-agenda-day > h2 .emp-agenda-day-create { position: absolute; top: 8px; right: 2px; margin: 0; }
@media (max-width: 899px) {
  .emp-agenda-day { grid-template-columns: 1fr; }
  .emp-agenda-day > h2 .emp-agenda-day-create { top: 6px; }
}

/* 9. Emissió sense fotos: llegible en clar i en fosc. */
.wp07-no-photo-approval { border-color: var(--wp-border); border-radius: var(--wp-radius-card); background: var(--wp-surface-muted); color: var(--wp-text); }

@media print {
  .wp-connected-status, .emp-secondary-actions { display: none !important; }
}

/* El tauler substitueix l'antiga vista de targetes en graella. */
.wp02-board.wp-board { grid-template-columns: none; }
.wp02-board.wp-board > .wp-board-col { min-height: 0; padding: 10px; border-top: 0; }
.wp02-board.wp-board > .wp-board-col > header { justify-content: flex-start; padding: 2px 4px 4px; }
.wp02-board.wp-board h2 { font-size: 13.5px; }

/* Selector de vista amb text visible: «Llista» i «Tauler». */
.wp02-view-toggle { display: inline-flex; gap: 2px; height: auto; padding: 3px; border: 0; border-radius: var(--wp-radius-control); background: var(--wp-bg-2); }
.wp02-view-toggle button { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--wp-text-secondary); font-size: 13.5px; font-weight: 550; }
.wp02-view-toggle button .wp02-icon { width: 16px; height: 16px; }
.wp02-view-toggle button[aria-pressed="true"] { background: var(--wp-surface); color: var(--wp-text); box-shadow: var(--wp-elevation-1); }

/* 10. Etiqueta d'estat reutilitzable (capçalera de la fitxa i columna de detalls). */
:is(.wp-status-pill, .emp-priority) { --wp-pill-bg: var(--wp-pill-quiet-bg); --wp-pill-ink: var(--wp-pill-quiet-ink); }
.wp-status-pill,
.emp-job-kicker > .emp-priority[data-stage] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 2px 10px 2px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--wp-pill-bg);
  color: var(--wp-pill-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.wp-status-pill::before,
.emp-job-kicker > .emp-priority[data-stage]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
:is(.wp-status-pill, .emp-priority)[data-stage="late"] { --wp-pill-bg: var(--wp-pill-late-bg); --wp-pill-ink: var(--wp-pill-late-ink); }
:is(.wp-status-pill, .emp-priority):is([data-stage="today"], [data-stage="started"]) { --wp-pill-bg: var(--wp-pill-today-bg); --wp-pill-ink: var(--wp-pill-today-ink); }
:is(.wp-status-pill, .emp-priority)[data-stage="planned"] { --wp-pill-bg: var(--wp-pill-planned-bg); --wp-pill-ink: var(--wp-pill-planned-ink); }
:is(.wp-status-pill, .emp-priority)[data-stage="review"] { --wp-pill-bg: var(--wp-pill-review-bg); --wp-pill-ink: var(--wp-pill-review-ink); }
:is(.wp-status-pill, .emp-priority)[data-stage="done"] { --wp-pill-bg: var(--wp-pill-done-bg); --wp-pill-ink: var(--wp-pill-done-ink); }
:is(.wp-status-pill, .emp-priority)[data-stage="progress"] { --wp-pill-bg: var(--wp-pill-progress-bg); --wp-pill-ink: var(--wp-pill-progress-ink); }

/* 11. Fitxa de feina: contingut a l'esquerra, detalls a la dreta. */
.emp-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 20px; }
.emp-job-main { display: grid; gap: 22px; min-width: 0; }
.emp-job-main > .emp-next-decision {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-card);
  background: var(--wp-surface);
  box-shadow: var(--wp-elevation-1);
}
.emp-job-main > .emp-next-decision .wp02-eyebrow { color: var(--wp-accent-text); font-size: 12px; letter-spacing: .05em; }
.emp-job-main > .emp-next-decision h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.emp-job-main > .emp-next-decision p:not(.wp02-eyebrow) { color: var(--wp-text-secondary); font-size: 14.5px; line-height: 1.5; }
.emp-job-detail:has(.emp-priority[data-stage="late"]) .emp-next-decision .wp02-eyebrow { color: var(--wp-pill-late-ink); }
.emp-job-instruction-block > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.emp-job-instruction-block h2,
.emp-job-aside > h2 { margin: 0; color: var(--wp-text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.emp-job-instruction-block .text-button { min-height: 32px; padding: 0; color: var(--wp-accent-text); font-size: 13.5px; font-weight: 550; }
.emp-job-instruction-block .text-button .wp02-icon { width: 15px; height: 15px; }
.emp-job-instruction-block .emp-job-instruction { margin: 0; color: var(--wp-text); font-size: 15.5px; line-height: 1.55; }
.emp-job-main > .emp-job-content { margin: 0; }
.emp-job-aside {
  position: sticky;
  top: 72px;
  padding: 14px 16px 10px;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-card);
  background: var(--wp-surface);
}
.emp-job-aside > h2 { margin-bottom: 4px; }
.emp-job-aside dl { margin: 0; }
.emp-aside-row { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--wp-border); font-size: 14px; line-height: 1.4; }
.emp-aside-row:first-child { border-top: 0; }
.emp-aside-row dt { color: var(--wp-text-secondary); font-size: 13px; }
.emp-aside-row dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.emp-aside-row dd .text-button { min-height: 28px; margin-left: auto; padding: 0; color: var(--wp-accent-text); font-size: 13px; font-weight: 550; }
.emp-aside-row .wp02-inline-link { padding: 0; font-weight: 550; }
.emp-aside-row .wp-people { flex-wrap: nowrap; }
.emp-aside-row .wp-people-name { white-space: normal; }
.emp-aside-empty { color: var(--wp-text-secondary); }
.emp-job-aside .emp-requested-due { margin: 4px 0 0; padding: 10px 0 2px; border: 0; border-top: 1px solid var(--wp-border); border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; }
@media (max-width: 1099px) {
  .emp-job-layout { display: flex; flex-direction: column; gap: 20px; }
  .emp-job-main { display: contents; }
  .emp-job-main > .emp-next-decision { order: 1; }
  .emp-job-aside { order: 2; position: static; }
  .emp-job-main > :not(.emp-next-decision) { order: 3; }
}

/* Data demanada dins la columna de detalls: fila compacta. */
.emp-job-aside .emp-requested-due-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.emp-job-aside .emp-requested-due-row strong { font-weight: 550; }
.emp-job-aside .emp-requested-due-row .text-button { min-height: 28px; padding: 0; color: var(--wp-accent-text); font-size: 13px; font-weight: 550; }
.emp-job-aside .emp-requested-due-detail > summary { min-height: 32px; color: var(--wp-text-secondary); font-size: 13px; }

/* 12. Títols de pàgina d'oficina homogenis (abans anaven de 32 a 52 px segons la pantalla). */
body:has(.wp02-office) :is(.wp02-page-head, .emp-agenda-head, .emp-workshop-head, .emp-client-detail-head, .emp-clients-directory > header) h1,
body.assist-mode:has(.wp02-office) :is(.wp02-page-head, .emp-agenda-head, .emp-workshop-head, .emp-client-detail-head) h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
body:has(.wp02-office) .emp-job-head h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
body:has(.wp02-office) :is(.wp02-page-head, .emp-agenda-head, .emp-workshop-head) .wp02-eyebrow { font-size: 12px; letter-spacing: .05em; }
@media (max-width: 699px) {
  body:has(.wp02-office) :is(.wp02-page-head, .emp-agenda-head, .emp-workshop-head, .emp-client-detail-head, .emp-clients-directory > header, .emp-job-head) h1 { font-size: 22px; }
}

/* 13. Llista en mòbil: sense capçalera de columnes, la llista conserva la vora i el marge interior. */
@media (max-width: 899px) {
  .wp02-job-list { border-top: 1px solid var(--wp-border); border-radius: var(--wp-radius-card); }
  .wp02-job-row,
  .assist-mode .wp02-job-row { padding: 14px 14px; }
}

/* Targetes estretes: res no surt de la targeta; la data s'escurça abans de desbordar. */
.wp-board-col > .wp-card { min-width: 0; max-width: 100%; overflow: hidden; }
.wp-card-foot { min-width: 0; }
.wp-card-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wp-card-date .wp02-icon { flex: 0 0 auto; }

/* P4 · shared visual foundations and remaining model screens. */
body[data-wp10-mode="demo"] #lab, body:has(.wp10-guide) #lab, body:has(.wp06-worker) #lab { display:none; }
@media screen {
 .sheet { background:var(--wp-surface);color:var(--wp-text);border-radius:16px; }
 .sheet::before { content:'';display:block;width:36px;height:4px;margin:6px auto 8px;border-radius:4px;background:var(--wp-border-input); }
 .sheet-head { min-height:60px;padding:12px 20px;gap:16px; }
 .sheet-head strong { font-size:20px;font-weight:700;line-height:1.25; }
 .sheet-head .icon-button { flex:0 0 40px;width:40px;min-height:40px;border:0;background:transparent;color:var(--wp-text-secondary); }
 .sheet-content { padding:16px 20px 24px;font-size:15px; }
 .sheet label { font-size:13px;line-height:1.4;color:var(--wp-text-secondary); }
 .sheet input:not([type=checkbox]):not([type=radio]):not([type=file]),.sheet select,.sheet textarea { min-height:48px;padding:12px 14px;border:0;border-radius:12px;background:var(--wp-surface-muted);color:var(--wp-text);font:inherit;font-size:16px;box-shadow:none; }
 .sheet textarea { min-height:116px; }
 .sheet fieldset { border:0;padding:0;margin:0;min-width:0; }
 .sheet-content > .button[type=submit],.sheet-content > .button.wp02-primary { min-height:52px;border-radius:12px;font-size:16px; }
 .wp-sheet-context { margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--wp-border);font-size:14px;color:var(--wp-text-secondary); }
 .wp-field-caption { margin:18px 0 8px;text-transform:uppercase;letter-spacing:.02em;font-size:13px;color:var(--wp-text-secondary); }
 .wp-followup-photo-picker { display:flex;align-items:flex-start;gap:12px;margin-bottom:16px; }
 .wp-followup-photo-picker [data-followup-preview]:empty { display:none; }
 .wp-followup-photo-picker figure { position:relative;width:84px;height:84px;margin:0; }
 .wp-followup-photo-picker img { width:84px;height:84px;border-radius:10px;object-fit:cover; }
 .wp-followup-photo-picker .icon-button { position:absolute;right:-5px;top:-5px;width:26px;height:26px;min-height:26px;border-radius:50%;background:var(--wp-text);color:var(--wp-surface);border:1px solid var(--wp-surface); }
 .wp-followup-photo-picker .wp09-upload-label { width:84px;min-width:84px;height:84px;min-height:84px;margin:0;padding:6px;display:grid;place-content:center;gap:4px;border:1px dashed var(--wp-border-input);border-radius:10px;color:var(--wp-accent-text);font-size:0;background:transparent; }
 .wp-followup-photo-picker .wp09-file-trigger { padding:0;border:0;color:var(--wp-accent-text);font-size:13px;text-align:center; }
 .wp-followup-photo-picker .wp09-file-trigger::before { content:'';display:block;width:24px;height:24px;margin:0 auto 3px;background:currentColor;mask:url(redisseny/assets/tabler/camera.svg) center/contain no-repeat; }
 .wp-followup-photo-picker .wp09-file-selected,.wp-followup-photo-picker .wp09-upload-label small { display:none; }
 .wp-followup-heading { display:flex;align-items:center;justify-content:space-between;margin:0 4px 10px; }
 .wp-followup-heading h2,.wp07-review-readiness > h2 { font-size:13px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;color:var(--wp-text-secondary);margin:0; }
 .wp-followup-heading .text-button { font-size:12px; }
 .wp-followup-row { margin:0 0 12px;padding:16px;border:1px solid var(--wp-border);border-radius:12px;background:var(--wp-surface); }
 .wp-followup-byline { display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:14px;line-height:1.3;margin-bottom:14px; }
 .wp-followup-byline .wp-av { flex-shrink:0;width:24px;height:24px;font-size:10px;background:var(--wp-success);color:var(--wp-accent-ink); }
 .wp-followup-byline > span:not(.wp-av) { min-width:0; }
 .wp-followup-byline time { margin-left:auto;font-size:13px;color:var(--wp-text-secondary); }
 .wp-followup-row .wp-followup-step { display:table;margin:0 0 10px;padding:3px 7px;border-radius:4px;background:var(--wp-warning-bg);color:var(--wp-warning);font-size:13px;font-weight:600; }
 .wp-followup-row .wp-followup-body { margin:0 0 12px;white-space:pre-wrap;font-size:15px;line-height:1.5; }
 .wp-followup-photo { position:relative;width:84px;height:84px;margin:0 0 8px; }
 .wp-followup-photo img { width:84px;height:84px;border-radius:9px;object-fit:cover; }
 .wp-followup-photo .wp07-sample-label { top:2px;left:2px;font-size:9px;line-height:1.1;padding:2px; }
 .wp-followup-row-actions { display:flex;gap:16px;align-items:center;margin-top:12px; }
 .wp-followup-row-actions .button { min-height:40px;border-radius:10px;font-size:14px; }
 .wp-followup-row-actions .text-button { padding:8px 0;font-weight:600;font-size:14px; }
 .wp-followup-file { padding:4px 0;font-size:12px;color:var(--wp-text-secondary); }
 .wp07-review-main > .wp-followups { order:-1;margin-top:0; }
 .wp07-review-readiness { margin-top:22px; }
 .wp07-review-readiness > h2 { margin:0 4px 10px; }
 .wp07-review-readiness > ul { margin:0;padding:0;list-style:none;border:1px solid var(--wp-border);border-radius:12px;overflow:hidden;background:var(--wp-surface); }
 .wp07-review-readiness > ul > li { display:flex;align-items:center;gap:12px;min-height:50px;padding:12px 16px;font-size:16px; }
 .wp07-review-readiness > ul > li + li { border-top:1px solid var(--wp-border); }
 .wp07-review-readiness .wp02-icon { flex-shrink:0;width:20px;height:20px;color:var(--wp-success); }
 .wp07-review-readiness .has-problem,.wp07-review-readiness .has-problem .wp02-icon { color:var(--wp-warning); }
 .wp07-execution-detail { margin:8px 0;font-size:13px;color:var(--wp-text-secondary); }
 .wp07-execution-detail > summary { min-height:36px;display:flex;align-items:center;cursor:pointer; }
 .wp07-dossier > .wp06-section-head { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 .wp07-dossier { border:0;padding:0;background:none;margin-top:12px; }
 .wp07-dossier .wp07-dossier-actions .button { min-height:52px;border-radius:12px; }
 .wp07-dossier .wp07-readiness { font-size:14px;color:var(--wp-text-secondary); }
 .wp07-dossier .wp07-readiness li { border:0;background:none;padding:0; }
 .wp07-dossier .wp07-readiness li::before { display:none; }
 .wp07-dossier-shell .wp07-result-hero::before { display:none; }
 .wp07-result-icon { display:block;width:40px;height:40px;margin:0 auto 14px;color:var(--wp-success); }
 .wp07-result-icon .wp02-icon { width:40px;height:40px; }
 .wp07-dossier-shell .wp07-gallery .wp07-photo-frame img { object-fit:cover; }
 .wp07-version-note .wp-signature-receipt { margin:4px 0 0; }
 .wp06-today-screen .wp06-worker-body { max-width:760px;padding:28px 16px 100px; }
 .wp06-today-title { display:flex;align-items:center;justify-content:space-between;margin:0 0 26px; }
 .wp06-today-title h1 { margin:4px 0 0;font-size:32px;line-height:1.1;font-weight:700; }
 .wp06-today-title p { margin:0;font-size:13px;text-transform:uppercase;color:var(--wp-text-secondary);letter-spacing:.02em; }
 .wp06-today-title .wp02-avatar { width:36px;height:36px;background:var(--wp-success);color:var(--wp-accent-ink);border:0; }
 .wp06-today-group { margin:0 0 24px; }
 .wp06-today-group > h2 { display:flex;justify-content:space-between;margin:0 16px 9px;font-size:13px;text-transform:uppercase;letter-spacing:.02em;color:var(--wp-text-secondary);font-weight:500; }
 .wp06-today-group .wp06-direct-card { padding:18px 16px 14px;box-shadow:none;border-radius:12px;border:1px solid var(--wp-border); }
 .wp06-today-group .wp06-direct-card h3 { margin:5px 0 4px;font-size:21px;line-height:1.3; }
 .wp06-today-group .wp06-direct-card > p { margin:0;font-size:14px;line-height:1.4; }
 .wp06-today-group .wp06-direct-card .wp06-primary-time { color:var(--wp-accent-text);font-weight:600; }
 .wp06-today-group .wp06-direct-card .wp06-emp-primary { margin-top:18px;border-radius:12px; }
 .wp06-today-group .wp06-direct-access { margin:2px auto -4px; }
 .wp06-today-list { border:1px solid var(--wp-border);border-radius:12px;background:var(--wp-surface);overflow:hidden; }
 .wp06-today-list .wp06-worker-row { display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;margin:0;background:none;border:0;border-radius:0;box-shadow:none; }
 .wp06-today-list .wp06-worker-row + .wp06-worker-row { border-top:1px solid var(--wp-border); }
 .wp06-today-list .wp06-worker-row time { font-size:16px;font-weight:650;flex:0 0 44px; }
 .wp06-today-list .wp06-worker-row > span { flex:1;min-width:0; }
 .wp06-today-list .wp06-worker-row strong { font-size:15px;line-height:1.35; }
 .wp06-today-list .wp06-worker-row small { font-size:13px;line-height:1.4;margin-top:3px; }
 .wp06-today-list .wp06-worker-row > .wp02-icon { flex-shrink:0;width:18px;height:18px;color:var(--wp-text-secondary); }
 .wp06-offline-bar { display:flex;align-items:center;gap:8px;min-height:38px;margin:0 -16px 16px;padding:8px 16px;background:var(--wp-warning-bg);border-block:1px solid var(--wp-warning-border);color:var(--wp-warning);font-size:13px; }
 .wp06-offline-bar .wp02-icon { width:17px;height:17px; }
 .wp06-pending-toast { position:fixed;z-index:22;left:12px;right:12px;bottom:118px;max-width:728px;margin:auto;display:flex;align-items:center;gap:14px;padding:14px;border-radius:12px;background:var(--wp-text);color:var(--wp-surface);font-size:14px;line-height:1.4;box-shadow:var(--wp-elevation-2); }
 .wp06-pending-toast button { padding:6px 0;border:0;background:none;color:var(--wp-surface);font-weight:650;font-size:13px;white-space:nowrap; }
 .wp06-visit-screen .wp06-check-marker .wp06-problem-mark { width:auto;height:auto;margin:0;background:none;color:var(--wp-accent-ink);font-size:15px;line-height:1; }
 .wp06-check-result .wp02-icon { display:inline-block;vertical-align:-3px;margin-right:3px;width:14px;height:14px; }
 .wp06-review-options { margin:10px 0; }
 .wp06-review-options > summary { padding:10px 0;font-size:14px;color:var(--wp-text-secondary);cursor:pointer; }
 .wp06-visit-screen .wp06-inline-summary { padding:0;border:0;background:none; }
 .wp06-visit-screen .wp06-inline-summary > .wp06-finish-note { display:none; }
 .emp-panel,.wp03-section,.wp09-section { border-radius:12px;box-shadow:none; }
 .emp-empty-icon,.wp02-empty > div:first-child,.emp-next-icon { background:transparent;box-shadow:none;border-radius:0;color:var(--wp-text-secondary); }
 .wp02-page-head h1,.emp-job-title h1 { font-size:28px;font-weight:700;line-height:1.2; }
 .wp02-page-head p,.emp-panel p { line-height:1.5; }
 .wp02-tabs,.emp-job-tabs { flex-wrap:nowrap;overflow:auto;white-space:nowrap; }
}
@media screen and (min-width:900px) {
 .overlay-backdrop { display:flex;align-items:stretch;justify-content:flex-end;padding:0; }
 .overlay-backdrop > .sheet { width:min(560px,100%);height:100dvh;max-height:100dvh;border-radius:16px 0 0 16px; }
 .overlay-backdrop > .wp07-external-dialog { align-self:center;height:auto;max-height:90dvh;margin:auto;border-radius:16px; }
 .sheet::before { display:none; }
}
@media screen and (max-width:700px) {
 .overlay-backdrop { display:flex;align-items:flex-end;justify-content:center;padding:0; }
 .overlay-backdrop > .sheet { width:100%;max-width:none;max-height:92dvh;border-radius:16px 16px 0 0;border:0; }
 .sheet-head strong { font-size:20px; }
 .wp-followup-row-actions { flex-direction:column;gap:8px;align-items:stretch; }
 .wp-followup-row-actions .button { min-height:52px;font-size:16px; }
 .wp-followup-row-actions .text-button { min-height:44px;text-align:center; }
 .wp-followup-byline { font-size:14px;gap:7px; }
 .wp-followup-byline time { font-size:12px; }
 .wp07-dossier-actions { display:flex;flex-direction:column; }
 .wp07-dossier-actions .button { width:100%; }
 .wp02-content,.emp-job-main { padding-inline:16px; }
}
@media print {
 .wp07-result-icon { display:none; }
 .wp07-dossier-shell .wp07-gallery img { width:100%;object-fit:cover; }
 .wp07-dossier-shell .wp-signature-receipt { margin:2mm 0 0; }
 .wp07-dossier-shell .wp-signature-canvas { width:48mm;height:18mm;object-fit:contain; }
 .wp07-dossier-shell .wp07-version-note { display:flex;align-items:center;justify-content:space-between;gap:8mm; }
 .wp07-dossier-shell .wp07-version-note > p { margin:0;font-size:9pt; }
}

@media screen {
 .wp-followup-photo-picker .icon-button { min-width:26px;max-width:26px; }
 .sheet .wp-followup-photo-picker .wp09-file-trigger { display:grid;place-items:center;background:transparent;padding:0;min-height:0; }
 .wp07-review-main .wp-followups { padding:0;border:0;background:transparent;box-shadow:none; }
 .wp07-review-main .wp-followup-list { margin:0;padding:0; }
 .wp07-review-main .wp-followup-row { margin:0 0 12px;padding:16px; }
 .wp-followup-row .wp-followup-step { width:auto; }
 .wp-followup-row .wp-followup-file { min-height:0;margin:0 0 5px;padding:0;font-size:11px;text-align:left; }
 .wp-followup-row-actions { margin-top:12px; }
 .wp06-today-list .wp06-worker-row time .wp02-icon { display:block;width:21px;height:21px;color:var(--wp-success); }
 .wp06-visit-screen .wp06-offline-bar { margin:2px -16px 16px; }
 .wp06-review-options { margin-top:12px; }
 .wp06-today-title p { font-weight:500; }
}
@media screen and (max-width:700px) {
 .wp02-office:has(.emp-job-head) .wp02-mobile-head { display:none; }
 .wp02-office:has(.emp-job-head) .wp02-content { padding-top:16px; }
 .emp-breadcrumb { min-height:40px;margin:0 0 8px; }
 .emp-breadcrumb a { display:flex;align-items:center;gap:4px;font-size:16px;text-decoration:none; }
 .emp-breadcrumb a::before { content:'‹';font-size:25px; }
 .emp-breadcrumb > span { display:none; }
 .emp-job-head .emp-job-kicker { gap:8px;margin-bottom:8px; }
 .emp-job-head h1 { font-size:28px;margin-block:8px; }
 .emp-job-head > div > p { font-size:14px;line-height:1.45; }
 .emp-secondary-actions { position:absolute;right:16px;top:16px; }
 .emp-secondary-actions > summary { min-height:40px;padding:8px; }
 .wp02-office:has(.emp-job-head) .wp02-tabs,.wp02-office:has(.emp-job-head) .emp-job-tabs { display:flex;flex-direction:row;grid-template-columns:none;gap:4px;white-space:nowrap;overflow:auto; }
 .wp02-office:has(.emp-job-head) .wp02-tabs > *,.wp02-office:has(.emp-job-head) .emp-job-tabs > * { flex:1 0 auto;white-space:nowrap;padding:12px 8px;font-size:14px; }
 .wp-followup-row-actions .button { min-height:52px; }
 .wp-followup-row .wp-followup-body { font-size:15px; }
 .wp07-review-readiness { margin-top:20px; }
}

@media screen {
 body:has(.wp02-office) .emp-job-head h1 { font-size:28px;font-weight:700;line-height:1.2; }
 .wp-followup-list .wp-followup-row { display:block; }
}
@media screen and (max-width:700px) {
 body .wp02-content:has(> .emp-job-head) > .wp03-tabs,body .emp-job-detail > .wp03-tabs { display:flex;grid-template-columns:none;flex-wrap:nowrap;gap:4px;overflow:auto; }
 body .wp02-content:has(> .emp-job-head) > .wp03-tabs > a,body .emp-job-detail > .wp03-tabs > a { flex:1 0 auto;padding:10px 7px;min-height:44px;white-space:nowrap;font-size:14px; }
}

@media screen {
 .wp02-office .wp02-content :is(.emp-job-head,.wp02-page-head,.emp-clients-directory > header,.emp-agenda-head,.emp-workshop-head) h1 { font-size:28px;font-weight:700; }
 .wp07-direct-review .wp07-review-main { display:block; }
 .wp07-review-main > .wp-followups { margin:0; }
 .wp07-review-main > .wp07-review-readiness { margin-top:20px; }
}
@media screen and (max-width:700px) {
 .emp-job-head > div { display:flex;flex-direction:column; }
 .emp-job-head h1 { order:0;margin:4px 0 8px; }
 .emp-job-head .emp-job-kicker { order:1;margin:0 0 5px; }
 .emp-job-head > div > p { order:2;margin:0;color:var(--wp-text-secondary); }
 .emp-job-head > div > p a { text-decoration:none;color:inherit; }
 .emp-job-head > div > p a:hover { text-decoration:underline; }
 .wp02-office .wp-followup-row-actions .button { min-height:52px; }
 .wp07-review-main .wp-followup-row-actions .text-button { min-height:40px;margin:0; }
}

@media screen {
 body .wp06-visit-screen .wp06-check-marker > span.wp06-problem-mark { width:100%;height:100%;display:grid;place-items:center;border-radius:0;background:none;color:var(--wp-accent-ink);font-size:16px;line-height:1; }
}
@media screen and (max-width:350px) {
 .wp06-visit-screen .wp06-step-photo { flex-wrap:wrap;gap:0; }
 .wp06-visit-screen .wp06-step-photo > span { max-width:none;flex:1 0 100%;margin-top:-4px; }
}

@media screen {
 .wp02-sidebar-inner > .wp-company-identity { margin:0 0 14px;padding:0 10px;border:0;border-radius:0;background:transparent;color:var(--wp-text-secondary);font-size:12px;font-weight:400; }
 .wp-followup-photo-picker .wp07-sample-label,[data-client-photo] .wp07-sample-label { z-index:2;top:2px;left:2px;font-size:9px;line-height:1.1;padding:2px;max-width:74px; }
 .wp06-emp-photo-picker .wp02-icon,.wp06-offline-bar .wp02-icon { flex-shrink:0; }
}

@media screen {
 .wp07-proof-card > .wp07-photo-frame { width:110px;height:90px; }
 .wp07-proof-card > .wp07-photo-frame img { display:block;width:100%;height:100%;border-radius:8px;object-fit:cover; }
 .wp07-proof-card > .wp07-photo-frame .wp07-sample-label { top:3px;left:3px;padding:2px;font-size:10px; }
}

@media screen and (min-width:701px) {
 body:has(.wp07-direct-review) .wp-followup-row-actions .button { flex:0 0 auto;width:auto;min-height:40px; }
 body:has(.wp07-direct-review) .wp-followup-row-actions .text-button { flex:0 1 auto;white-space:normal; }
 .wp07-review-aside .emp-job-aside { width:auto;position:static; }
 .wp07-review-aside .wp07-secondary-context { margin-top:16px; }
}

@media screen { .wp02-board.wp-board { contain:layout paint; } }

@media screen { .wp06-visit-screen .wp-connected-status { position:static;transform:none;width:auto;max-width:none;margin:0 16px 12px;box-shadow:none;animation:none; } }

@media screen {
 .emp-intake-head h2,.emp-assignment-intro h2 { font-size:20px;font-weight:700;line-height:1.25; }
 .emp-intake-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.emp-assignment-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { min-height:48px;border:0;border-radius:12px;background:var(--wp-surface-muted);color:var(--wp-text);box-shadow:none; }
}
@media screen and (min-width:701px) {
 .emp-flow-backdrop { justify-content:flex-end;padding:0; }
 .emp-assignment-dialog { width:min(600px,100%);height:100dvh;max-height:100dvh;border-radius:0; }
 .emp-assignment-grid { grid-template-columns:1fr; }
}
@media screen and (max-width:700px) {
 .emp-drawer-backdrop,.emp-flow-backdrop { align-items:flex-end;padding:0; }
 .emp-intake-drawer,.emp-assignment-dialog { width:100%;height:auto;max-height:94dvh;border-radius:18px 18px 0 0;overflow:auto; }
 .emp-intake-drawer::before,.emp-assignment-dialog::before { content:'';display:block;width:36px;height:4px;margin:8px auto 0;border-radius:4px;background:var(--wp-border-input); }
 body:has(.emp-intake-drawer) .emp-intake-actions .button,body:has(.emp-assignment-dialog) .emp-assignment-actions .button { min-height:52px;border-radius:12px;font-size:16px; }
}

@media screen and (max-width:700px) { .wp02-office { grid-template-rows:auto minmax(0,1fr); } }
@media screen {
 .wp06-loading { max-width:560px;margin:auto;padding:28px 16px; }
 .wp06-loading .wp06-today-title { margin:0 0 28px; }
 .wp06-loading h1 { margin:8px 0 0;font-size:28px;line-height:1.2; }
 .wp06-loading-line,.wp06-loading i { display:block;border-radius:6px;background:var(--wp-surface-muted); }
 .wp06-loading .is-date { width:160px;height:14px; }
 .wp06-loading-card { padding:20px;border:1px solid var(--wp-border);border-radius:12px; }
 .wp06-loading-card i { height:18px;margin-bottom:16px; }
 .wp06-loading-card i:first-child { width:30%; }
 .wp06-loading-card i:nth-child(2) { width:85%;height:26px; }
 .wp06-loading-card i:last-child { height:52px;margin:24px 0 0; }
 .wp06-loading-rows { margin-top:28px;border:1px solid var(--wp-border);border-radius:12px;padding:0 16px; }
 .wp06-loading-rows i { height:54px;margin:16px 0; }
}

@media screen {
 .wp06-loading .wp06-today-title { display:block; }
 .wp-auth,.wp-auth[data-theme="dark"] { --entry-paper:var(--wp-bg);--entry-ink:var(--wp-text);--entry-secondary:var(--wp-text-secondary);--entry-line:var(--wp-border);--entry-control:var(--wp-border-input);--entry-field:var(--wp-surface-muted);--entry-action:var(--wp-accent);--entry-action-text:var(--wp-accent-ink);--entry-subtle:var(--wp-surface-muted);--entry-focus:var(--wp-ring);display:block; }
 .wp-auth .wp-auth-story,.wp-auth .wp-auth-environment,.wp-auth .wp-auth-welcome,.wp-auth .wp-auth-trust,.wp-auth .wp-auth-footer { display:none; }
 .wp-auth .wp-auth-entry { width:min(460px,100%);margin:0 auto;padding:28px 20px; }
 .wp-auth .wp-auth-toolbar { justify-content:space-between;margin:0 0 48px;gap:12px; }
 .wp-auth .wp-auth-mobile-brand { display:flex;align-items:center;gap:8px;font-size:22px;font-weight:700;letter-spacing:-.02em; }
 .wp-auth .wp-auth-content { width:100%;max-width:none;flex:none;margin:0; }
 .wp-auth h1 { margin:0 0 24px;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.02em; }
 .wp-auth .wp-auth-field,.wp-auth .wp10-setup label { font-size:14px; }
 .wp-auth input,.wp-auth .wp10-setup input { border-radius:12px; }
 .wp-auth .wp-auth-submit,.wp-auth .wp10-setup button[type="submit"] { min-height:52px;border-radius:12px;font-size:16px; }
}

/* P4: sis retocs aprovats el 27-10. */
@media screen {
 .wp-sheet-heading { min-width:0;flex:1; }
 .sheet-head .wp-sheet-subtitle { margin:5px 0 0;color:var(--wp-text-secondary);font-size:14px;line-height:1.4;font-weight:400; }
 .wp-followup-photo-picker .wp07-sample-label,[data-client-photo] .wp07-sample-label,.wp-followup-photo .wp07-sample-label,.wp07-proof-card .wp07-sample-label { top:auto;bottom:3px;left:3px;right:auto;max-width:none;padding:2px 4px;font-size:10px;line-height:1.2;white-space:nowrap; }
 html body button:disabled,html body .button:disabled,html body .button[aria-disabled=true],html body input:is([type=submit],[type=button]):disabled,html body .wp07-external-actions .wp07-response-buttons .button[disabled] { background:var(--wp-surface-muted) !important;color:var(--wp-text-secondary) !important;border-color:var(--wp-border) !important;opacity:1 !important;filter:none !important;box-shadow:none !important;cursor:not-allowed; }
 .wp06-finish-bar { display:flex;flex-direction:column; }
 .wp06-finish-bar > p { order:1;margin:8px 0 0; }
 .wp06-finish-bar > .button { order:0; }
 .emp-intake-actions [data-intake-readiness] { margin:0;font-size:14px; }
}

@media screen { .wp07-dossier-actions .wp-disabled-reason { flex-basis:100%;font-size:14px;line-height:1.4;color:var(--wp-text-secondary);margin:4px 0 0; } }

@media screen { .wp07-proof-card > .wp07-photo-frame .wp07-sample-label { top:auto;bottom:3px;left:3px;font-size:10px;white-space:nowrap; } }
