/* WP-10: same editorial tokens; first use and optional contextual guide. */
.wp-install-options, .wp-install-updates, .wp-install-notifications { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--wp-border); }
.wp-install-options p, .wp-install-content p { margin-bottom: 16px; line-height: 1.55; }
.wp-install-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.wp-install-brand img { flex: 0 0 56px; border-radius: 12px; }
.wp-install-brand div { display: grid; gap: 4px; }
.wp-install-brand span { color: var(--wp-text-secondary); font-size: 14px; }
.wp-install-content ol { padding-left: 24px; margin: 20px 0; display: grid; gap: 14px; line-height: 1.55; }
.wp-install-content details { margin-block: 16px; }
.wp-install-content summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.wp-install-content details p { margin-top: 12px; }
.wp-install-actions { display: grid; gap: 12px; }
.wp-install-content .button, .wp-install-options .button { min-height: 48px; width: 100%; white-space: normal; text-align: center; }
.wp-install-content [data-wp-install-message]:empty { display: none; }
.wp-install-content [data-wp-install-message] { margin-top: 16px; }
.wp-calendar-mobile-help { margin-block: 16px; }
.wp-calendar-mobile-help summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.wp-calendar-mobile-help ol { padding-left: 24px; display: grid; gap: 14px; line-height: 1.55; }
:root[data-experience="workspace"] { --wp02-preview-height: 0px; }
:root[data-experience="workspace"] #lab { display: none; }
.wp10-help .wp10-space-list a { white-space: normal; text-align: center; }
.wp10-help p + .wp10-space-list { margin-top: 16px; }
.wp10-bar { gap: 12px; }
.wp10-bar > a { min-height: 44px; font-size: inherit; white-space: normal; text-align: center; }
.wp10-bar > span { min-width: 0; }
.wp10-bar button { flex-shrink: 0; min-height: 44px; }
.wp10-welcome { max-width: 800px; margin: 0 auto; }
.wp10-welcome header { margin-bottom: 24px; }
.wp10-welcome h1 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.wp10-welcome header > p:last-child { max-width: 62ch; color: var(--wp-text-secondary); line-height: 1.6; }
.wp10-setup { display: grid; gap: 18px; }
.wp10-space-context { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--wp-border); border-radius: 10px; background: var(--wp-surface); }
.wp10-space-context > span { display: grid; gap: 2px; }
.wp10-space-context small { color: var(--wp-text-secondary); }
.wp10-space-context .wp02-icon { flex: 0 0 20px; }
.wp10-space-local { display: grid; gap: 6px; }
.wp10-setup fieldset { min-width: 0; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--wp-border); border-radius: 10px; background: var(--wp-surface); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wp10-setup legend { padding: 0 10px 0 0; font-weight: 700; }
.wp10-setup legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 5px; border-radius: 50%; background: var(--wp-surface-muted); color: var(--wp-text); }
.wp10-title-fields { min-width: 0; display: grid; align-content: start; gap: 14px; }
.wp10-template-choice { display: grid; gap: 6px; min-width: 0; }
.wp10-template-choice small { color: var(--wp-text-secondary); }
.wp10-setup label { display: grid; align-content: start; gap: 8px; min-width: 0; }
.wp10-setup input, .wp10-setup select, .wp10-setup textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--wp-border-input); border-radius: 6px; background: var(--wp-surface); color: var(--wp-text); font: inherit; }
.assist-mode .wp10-setup input, .assist-mode .wp10-setup select, .assist-mode .wp10-setup textarea, .assist-mode .wp10-bar button, .assist-mode .wp10-help summary { min-height: 52px; }
.wp10-setup textarea { resize: vertical; }
.wp10-setup-foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wp10-setup-foot p { max-width: 42ch; color: var(--wp-text-secondary); font-size: 14px; }
.wp10-worker-intro { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--wp-border); border-left: 3px solid var(--wp-accent); border-radius: 8px; background: var(--wp-surface); }
.wp10-worker-intro > div { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.wp10-worker-intro p { display: grid; gap: 4px; margin: 0; line-height: 1.45; }
.wp10-worker-intro p span { color: var(--wp-text-secondary); }
.wp10-worker-intro button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.wp10-worker-intro button:hover { background: var(--wp-surface-muted); }
.wp10-guide { margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--wp-border); }
.wp10-guide summary, .wp10-help summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--wp-text-secondary); }
.wp10-guide ol { list-style: none; padding: 8px 0; margin: 0; display: grid; gap: 16px; }
.wp10-guide li { display: grid; gap: 6px; grid-template-columns: minmax(170px, 1fr) 2fr auto; align-items: center; }
.wp10-guide li > span { color: var(--wp-text-secondary); }
.wp10-guide a { white-space: normal; }
.wp10-help .wp10-guide li { grid-template-columns: 1fr; }
.wp10-help h2 { margin: 24px 0 12px; }
.wp10-help details { margin-top: 24px; }
.wp10-help details .button { margin-top: 12px; }
.wp10-space-list { display: grid; gap: 12px; margin-bottom: 16px; }
.wp10-sample { max-width: 640px; margin: 24px auto; padding: 0 20px 32px; }
.sheet { overscroll-behavior: contain; }
.wp02-sort { position: relative; flex: 0 1 16rem; min-width: 0; }
.wp02-sort select { width: 100%; appearance: none; padding-right: 44px; }
.wp02-sort::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--wp-text); -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; pointer-events: none; }
@media (forced-colors: active) { .wp02-sort::after { background: ButtonText; } }
.wp03-tabs { flex-wrap: wrap; gap: 8px 20px; }
.wp03-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; border-bottom: 3px solid transparent; color: var(--wp-text-secondary); font-weight: 600; text-decoration: none; }
.wp03-tabs a[aria-current="page"] { border-bottom-color: var(--wp-accent); color: var(--wp-text); }
.assist-mode .wp03-tabs a { min-height: 52px; }
.wp06-section-head > div { flex: 1 1 auto; min-width: 0; }
.wp06-section-head > .button { flex: 0 0 auto; width: auto; max-width: 100%; }
.wp07-review-main { min-width: 0; display: grid; gap: 20px; }
.wp07-inline-form .check-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.wp07-inline-form .check-row input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
.assist-mode .wp07-inline-form .check-row { min-height: 52px; }
@media (max-width: 767px) {
  .wp10-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 16px; }
  .wp10-bar > span { grid-column: 1 / -1; }
  .wp10-bar > a { justify-self: start; padding: 6px 10px; }
  .wp10-bar button { justify-self: end; padding: 6px 0; }
  .wp09-time-panel .wp06-section-head { flex-direction: column; align-items: flex-start; }
  .wp10-setup fieldset, .wp10-guide li { grid-template-columns: 1fr; }
  .wp10-welcome header { margin-bottom: 20px; }
  .wp10-setup-foot .button { width: 100%; }
}

/* The compact jobs list keeps the 390 px assist view inside the first viewport.
   Controls retain their 44 px target and the list remains a normal document flow. */
@media (max-width: 520px) {
  .wp02-content:has(.wp02-filters) .wp02-sort { width: 100%; margin-left: 0; }
  .wp02-content:has(.wp02-filters) .wp02-sort select { max-width: none; padding-right: 50px; }
  .wp02-content:has(.wp02-filters) .wp02-sort::after { right: 17px; }
  .wp02-content:has(.wp02-filters) { padding-top: 16px; }
  .wp02-content:has(.wp02-filters) .wp02-page-head { margin-bottom: 8px; }
  .wp02-content:has(.wp02-filters) .wp02-page-head .button { margin-top: 10px; }
  .wp02-content:has(.wp02-filters) .wp02-toolbar { gap: 4px; }
  .wp02-content:has(.wp02-filters) .wp02-filters { padding-bottom: 4px; }
  .assist-mode .wp02-content:has(.wp02-filters) .wp02-toolbar { gap: 2px; }
  .assist-mode .wp02-content:has(.wp02-filters) .wp02-toolbar select { min-height: 44px; height: 44px; padding: 7px 12px; }
  .assist-mode .wp02-content:has(.wp02-filters) .wp02-sort select { padding-right: 50px; }
  .assist-mode .wp02-content:has(.wp02-filters) .wp02-filters { padding-bottom: 2px; }
}

@media (min-width: 521px) {
  .wp02-content:has(.wp02-filters) { padding-top: 23px; }
}
.wp-connected-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:24px;padding-top:16px;border-top:1px solid var(--wp02-line);font-size:14px;color:var(--wp02-muted)}
.wp-connected-status span{flex:1 1 240px}
.wp-connected-entry{width:min(600px,100%);margin:0 auto;padding:clamp(32px,8vh,88px) 24px 40px;min-height:100vh}
@media print{.wp-connected-status{display:none}}

/* Short welcome screens keep the mobile header at the top, without grid row stretching. */
@media (max-width:699px) {
  .wp02-office:has(.wp10-welcome) { grid-template-rows:64px minmax(0,1fr); }
}
.wp10-welcome > .small { margin:12px 0; }
/* P10 · fulla «WorkProof com a app»: mateixa escala tipogràfica que la resta de fulles */
.wp-install-content h2 { margin: 0 0 8px; font-size: var(--wp-fs-lg, 16px); font-weight: 650; }
.wp-install-content p, .wp-install-content li { font-size: var(--wp-fs-md, 14px); }
.wp-install-content .small { font-size: var(--wp-fs-sm, 13px); }
.wp-install-notifications .button { width: 100%; margin-bottom: 12px; }
.wp-install-options { margin-bottom: 16px; }
