/* src/web/ds/lib/generated/tokens.css */
:root {
  --size-touch-target: 3.5rem;
  --size-min-caption: 0.75rem;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-pill: 999px;
  --border-width-hairline: 1px;
  --border-width-control: 0.0625rem;
  --border-width-strong: 0.125rem;
  --border-width-selected: 0.25rem;
  --z-index-base: 0;
  --z-index-sticky: 100;
  --z-index-drawer: 200;
  --z-index-overlay: 300;
  --z-index-modal: 400;
  --z-index-toast: 500;
  --font-family-sans:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  --font-family-mono:
    ui-monospace,
    Consolas,
    monospace;
  --font-size-caption: 0.75rem;
  --font-size-body: 0.875rem;
  --font-size-body-lg: 1rem;
  --font-size-h3: 1.25rem;
  --font-size-kpi: 1.75rem;
  --font-size-h1: 2rem;
  --font-line-height-tight: 1.2;
  --font-line-height-body: 1.5;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-mobile-body: 1rem;
  --motion-duration-instant: 0ms;
  --motion-duration-fast: 120ms;
  --motion-duration-base: 200ms;
  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-easing-exit: cubic-bezier(0.3, 0, 1, 1);
  --font-numeric: tabular-nums;
}
:root,
[data-theme=work] {
  color-scheme: light;
  --surface: #FFFFFF;
  --canvas: #F8F9FA;
  --text: #202124;
  --text-muted: #5F6368;
  --link: #1A56DB;
  --error: #B3261E;
  --border-subtle: #E8EAED;
  --border-control: #757A80;
  --focus-ring-color: #1A56DB;
  --focus-ring-width: 0.125rem;
  --focus-ring-offset: 0.125rem;
  --disabled-text: #5F6368;
  --disabled-bg: #F1F3F4;
  --disabled-border: #DADCE0;
  --disabled-border-style: dashed;
  --status-done-color: #146C2E;
  --status-on-track-color: #0A5E8A;
  --status-at-risk-color: #8A4B00;
  --status-late-color: #B3261E;
  --status-planned-color: #5F6368;
  --severity-low-color: #5F6368;
  --severity-medium-color: #8A4B00;
  --severity-high-color: #B3261E;
  --severity-critical-color: #5A2D82;
  --surfaces-tint-overdue: #FDF1F0;
  --surfaces-tint-issue-strip: #FFFFFF;
  --surfaces-tint-issue-strip-border: #B3261E;
  --surfaces-hover: #F3F6FB;
  --surfaces-pressed: #E8EAED;
  --surfaces-selected: #E8F0FE;
  --surfaces-selected-indicator: #1A56DB;
  --chip-bg: #FFFFFF;
  --chip-border: #5F6368;
  --chip-text: #202124;
  --timeline-bar-planned-fill: #FFFFFF;
  --timeline-bar-planned-stroke: #5F6368;
  --timeline-today-line: #202124;
  --timeline-grid: #E8EAED;
  --progress-track: #E8EAED;
  --progress-track-border: #757A80;
  --progress-fill: #5F6368;
  --workload-late: #B3261E;
  --workload-at-risk: #8A4B00;
  --workload-on-track-neutral: #757A80;
  --workload-planned-fill: #E8EAED;
  --workload-planned-border: #757A80;
  --workload-capacity-line: #202124;
  --workload-segment-gap-width: 2px;
  --workload-segment-gap-color: var(--surface);
  --color-action-primary-bg: var(--text);
  --color-action-primary-fg: var(--surface);
  --color-timeline-critical-path: var(--text-muted);
  --notice-border: #5F6368;
  --logo-plate: transparent;
  --logo-plate-pad: 0px;
}
[data-theme=personal] {
  color-scheme: light;
  --surface: #FFFFFF;
  --canvas: #FBF8F4;
  --text: #2B2622;
  --text-muted: #6B6259;
  --link: #7A3EB1;
  --error: #B3261E;
  --border-subtle: #E8EAED;
  --border-control: #757A80;
  --focus-ring-color: #7A3EB1;
  --focus-ring-width: 0.125rem;
  --focus-ring-offset: 0.125rem;
  --disabled-text: #5F6368;
  --disabled-bg: #F1F3F4;
  --disabled-border: #DADCE0;
  --disabled-border-style: dashed;
  --status-done-color: #146C2E;
  --status-on-track-color: #0A5E8A;
  --status-at-risk-color: #8A4B00;
  --status-late-color: #B3261E;
  --status-planned-color: #5F6368;
  --severity-low-color: #5F6368;
  --severity-medium-color: #8A4B00;
  --severity-high-color: #B3261E;
  --severity-critical-color: #5A2D82;
  --surfaces-tint-overdue: #FCEFEA;
  --surfaces-tint-issue-strip: #FFFFFF;
  --surfaces-tint-issue-strip-border: #B3261E;
  --surfaces-hover: #F3EEE7;
  --surfaces-pressed: #ECE6DE;
  --surfaces-selected: #F3ECFA;
  --surfaces-selected-indicator: #7A3EB1;
  --chip-bg: #F3EEE7;
  --chip-border: #6B6259;
  --chip-text: #2B2622;
  --timeline-bar-planned-fill: #FFFFFF;
  --timeline-bar-planned-stroke: #5F6368;
  --timeline-today-line: #202124;
  --timeline-grid: #E8EAED;
  --progress-track: #ECE6DE;
  --progress-track-border: #757A80;
  --progress-fill: #6B6259;
  --workload-late: #B3261E;
  --workload-at-risk: #8A4B00;
  --workload-on-track-neutral: #757A80;
  --workload-planned-fill: #E8EAED;
  --workload-planned-border: #757A80;
  --workload-capacity-line: #202124;
  --workload-segment-gap-width: 2px;
  --workload-segment-gap-color: var(--surface);
  --color-action-primary-bg: var(--text);
  --color-action-primary-fg: var(--surface);
  --color-timeline-critical-path: var(--text-muted);
  --notice-border: #5F6368;
  --logo-plate: transparent;
  --logo-plate-pad: 0px;
}
[data-theme=outdoor] {
  color-scheme: light;
  --surface: #FFFFFF;
  --canvas: #FFFFFF;
  --text: #000000;
  --text-muted: #3C4043;
  --link: #000000;
  --link-decoration: underline + \2197  glyph;
  --error: #A50E0E;
  --border-subtle: #9AA0A6;
  --border-control: #000000;
  --focus-ring-color: #000000;
  --focus-ring-width: 0.1875rem;
  --focus-ring-offset: 0.125rem;
  --disabled-text: #5F6368;
  --disabled-bg: #F1F3F4;
  --disabled-border: #80868B;
  --primary-button-bg: #000000;
  --primary-button-fg: #FFFFFF;
  --status-done-color: #0B5D1E;
  --status-on-track-color: #084C70;
  --status-at-risk-color: #7A4100;
  --status-late-color: #A50E0E;
  --status-planned-color: #3C4043;
  --severity-low-color: #3C4043;
  --severity-medium-color: #7A4100;
  --severity-high-color: #A50E0E;
  --severity-critical-color: #5A2D82;
  --surfaces-tint-overdue: #FFF6F5;
  --surfaces-tint-offline-banner: #FFF8EC;
  --surfaces-tint-offline-banner-border: #7A4100;
  --surfaces-hover: #FBFBFC;
  --surfaces-pressed: #F8F9FA;
  --surfaces-pressed-border: #000000;
  --surfaces-selected: #FFFFFF;
  --surfaces-selected-indicator: #000000;
  --chip-bg: #FFFFFF;
  --chip-border: #000000;
  --chip-text: #000000;
  --workload-late: #A50E0E;
  --workload-at-risk: #7A4100;
  --workload-on-track-neutral: #3C4043;
  --workload-planned-fill: #FFFFFF;
  --workload-planned-border: #000000;
  --workload-capacity-line: #000000;
  --workload-segment-gap-width: 2px;
  --workload-segment-gap-color: var(--surface);
  --timeline-today-line: #000000;
  --timeline-grid: #9AA0A6;
  --progress-track: #FFFFFF;
  --progress-track-border: #000000;
  --progress-fill: #000000;
  --color-action-primary-bg: var(--text);
  --color-action-primary-fg: var(--surface);
  --color-timeline-critical-path: var(--text-muted);
  --notice-border: #3C4043;
  --logo-plate: transparent;
  --logo-plate-pad: 0px;
}
[data-theme=dark] {
  color-scheme: dark;
  --surface: #202124;
  --canvas: #17181A;
  --text: #E8EAED;
  --text-muted: #BDC1C6;
  --link: #8AB4F8;
  --error: #F28B82;
  --border-subtle: #3C4043;
  --border-control: #9AA0A6;
  --focus-ring-color: #8AB4F8;
  --focus-ring-width: 0.125rem;
  --focus-ring-offset: 0.125rem;
  --disabled-text: #9AA0A6;
  --disabled-bg: #2A2B2E;
  --disabled-border: #5F6368;
  --disabled-border-style: dashed;
  --primary-button-bg: #E8EAED;
  --primary-button-fg: #202124;
  --status-done-color: #81C995;
  --status-on-track-color: #7CC0F0;
  --status-at-risk-color: #FDD663;
  --status-late-color: #F28B82;
  --status-planned-color: #BDC1C6;
  --severity-low-color: #BDC1C6;
  --severity-medium-color: #FDD663;
  --severity-high-color: #F28B82;
  --severity-critical-color: #D7AEFB;
  --surfaces-tint-overdue: #3A2423;
  --surfaces-tint-offline-banner: #3A2F16;
  --surfaces-tint-offline-banner-border: #FDD663;
  --surfaces-tint-issue-strip: #202124;
  --surfaces-tint-issue-strip-border: #F28B82;
  --surfaces-hover: #2A2B2E;
  --surfaces-pressed: #303134;
  --surfaces-selected: #1E2A3D;
  --surfaces-selected-indicator: #8AB4F8;
  --chip-bg: #202124;
  --chip-border: #9AA0A6;
  --chip-text: #E8EAED;
  --progress-track: #303134;
  --progress-track-border: #9AA0A6;
  --progress-fill: #BDC1C6;
  --workload-late: #F28B82;
  --workload-at-risk: #FDD663;
  --workload-on-track-neutral: #9AA0A6;
  --workload-planned-fill: #303134;
  --workload-planned-border: #9AA0A6;
  --workload-capacity-line: #E8EAED;
  --workload-segment-gap-width: 2px;
  --workload-segment-gap-color: var(--surface);
  --color-action-primary-bg: var(--text);
  --color-action-primary-fg: var(--surface);
  --color-timeline-critical-path: var(--text-muted);
  --notice-border: #9AA0A6;
  --logo-plate: #FFFFFF;
  --logo-plate-pad: 4px;
}
@media (prefers-color-scheme: dark) {
  [data-theme=auto] {
    --surface: #202124;
    --canvas: #17181A;
    --text: #E8EAED;
    --text-muted: #BDC1C6;
    --link: #8AB4F8;
    --error: #F28B82;
    --border-subtle: #3C4043;
    --border-control: #9AA0A6;
    --focus-ring-color: #8AB4F8;
    --focus-ring-width: 0.125rem;
    --focus-ring-offset: 0.125rem;
    --disabled-text: #9AA0A6;
    --disabled-bg: #2A2B2E;
    --disabled-border: #5F6368;
    --disabled-border-style: dashed;
    --primary-button-bg: #E8EAED;
    --primary-button-fg: #202124;
    --status-done-color: #81C995;
    --status-on-track-color: #7CC0F0;
    --status-at-risk-color: #FDD663;
    --status-late-color: #F28B82;
    --status-planned-color: #BDC1C6;
    --severity-low-color: #BDC1C6;
    --severity-medium-color: #FDD663;
    --severity-high-color: #F28B82;
    --severity-critical-color: #D7AEFB;
    --surfaces-tint-overdue: #3A2423;
    --surfaces-tint-offline-banner: #3A2F16;
    --surfaces-tint-offline-banner-border: #FDD663;
    --surfaces-tint-issue-strip: #202124;
    --surfaces-tint-issue-strip-border: #F28B82;
    --surfaces-hover: #2A2B2E;
    --surfaces-pressed: #303134;
    --surfaces-selected: #1E2A3D;
    --surfaces-selected-indicator: #8AB4F8;
    --chip-bg: #202124;
    --chip-border: #9AA0A6;
    --chip-text: #E8EAED;
    --progress-track: #303134;
    --progress-track-border: #9AA0A6;
    --progress-fill: #BDC1C6;
    --workload-late: #F28B82;
    --workload-at-risk: #FDD663;
    --workload-on-track-neutral: #9AA0A6;
    --workload-planned-fill: #303134;
    --workload-planned-border: #9AA0A6;
    --workload-capacity-line: #E8EAED;
    --workload-segment-gap-width: 2px;
    --workload-segment-gap-color: var(--surface);
    --color-action-primary-bg: var(--text);
    --color-action-primary-fg: var(--surface);
    --color-timeline-critical-path: var(--text-muted);
    --notice-border: #9AA0A6;
    --logo-plate: #FFFFFF;
    --logo-plate-pad: 4px;
    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration-instant: 0ms;
    --motion-duration-fast: 0ms;
    --motion-duration-base: 0ms;
  }
}

/* src/web/ds/lib/styles.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: var(--font-family-sans);
  font-size: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-size: var(--font-mobile-body);
  line-height: var(--font-line-height-body);
}
@media (min-width: 64rem) {
  body {
    font-size: var(--font-size-body-lg);
  }
}
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ds-num {
  font-variant-numeric: var(--font-numeric);
}
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-touch-target);
  min-width: var(--size-touch-target);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: var(--border-width-strong) solid var(--border-control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color var(--motion-duration-fast) var(--motion-easing-standard);
}
.ds-btn:hover {
  background: var(--surfaces-hover);
}
.ds-btn:active {
  background: var(--surfaces-pressed);
  border-color: var(--surfaces-pressed-border, var(--border-control));
}
.ds-btn--primary {
  background: var(--color-action-primary-bg);
  color: var(--color-action-primary-fg);
  border-color: var(--color-action-primary-bg);
}
.ds-btn--primary:hover,
.ds-btn--primary:active {
  background: var(--color-action-primary-bg);
}
@media (hover: hover) {
  .ds-btn--primary:hover {
    text-decoration: underline;
  }
}
.ds-btn--primary:active {
  box-shadow: inset 0 0 0 2px var(--color-action-primary-fg);
}
.ds-btn--primary:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}
.ds-btn--primary:disabled:not(.ds-btn--show-disabled) {
  display: none;
}
.ds-btn--danger {
  color: var(--error);
  border-color: var(--error);
}
.ds-btn--ghost {
  border-color: transparent;
  background: transparent;
}
.ds-btn--full {
  width: 100%;
}
.ds-btn:disabled,
.ds-btn[aria-disabled=true] {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border: var(--border-width-strong) var(--disabled-border-style, dashed) var(--disabled-border);
  cursor: not-allowed;
  text-decoration: none;
}
.ds-btn.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ds-spin calc(var(--motion-duration-base) * 4) linear infinite;
}
@keyframes ds-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds-btn.is-loading::before {
    animation: none;
    border-right-color: currentColor;
    border-radius: 0.15em;
  }
}
.ds-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
  flex-wrap: wrap;
  color: var(--badge-c, var(--text));
}
.ds-badge__glyph {
  font-size: 1.1em;
  line-height: 1;
}
.ds-badge__extra {
  font-weight: var(--font-weight-regular);
}
.ds-chip {
  background: var(--chip-bg);
  border: var(--border-width-control) solid var(--chip-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
}
.ds-status-done {
  --badge-c: var(--status-done-color);
}
.ds-status-onTrack {
  --badge-c: var(--status-on-track-color);
}
.ds-status-atRisk {
  --badge-c: var(--status-at-risk-color);
}
.ds-status-late {
  --badge-c: var(--status-late-color);
}
.ds-status-planned {
  --badge-c: var(--status-planned-color);
}
.ds-severity-low {
  --badge-c: var(--severity-low-color);
}
.ds-severity-medium {
  --badge-c: var(--severity-medium-color);
}
.ds-severity-high {
  --badge-c: var(--severity-high-color);
}
.ds-severity-critical {
  --badge-c: var(--severity-critical-color);
}
.ds-badge--sync {
  --badge-c: var(--text-muted);
}
.ds-sync-failed {
  --badge-c: var(--error);
}
.ds-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  margin-block-end: var(--space-4);
  max-width: 40rem;
}
.ds-field__label {
  font-weight: var(--font-weight-semibold);
}
.ds-field__req,
.ds-field__hint {
  color: var(--text-muted);
  font-weight: var(--font-weight-regular);
  margin: 0;
}
.ds-field__error {
  color: var(--error);
  font-weight: var(--font-weight-bold);
  margin: 0;
}
.ds-input {
  min-height: var(--size-touch-target);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: var(--border-width-control) solid var(--border-control);
  border-radius: var(--radius-sm);
  width: 100%;
}
.ds-textarea {
  min-height: calc(var(--size-touch-target) * 2);
  resize: vertical;
}
.ds-field--invalid .ds-input {
  border: var(--border-width-strong) solid var(--error);
}
.ds-input:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-style: dashed;
  border-color: var(--disabled-border);
}
.ds-errsum {
  border: var(--border-width-selected) solid var(--error);
  padding: var(--space-4);
  margin-block-end: var(--space-6);
  background: var(--surface);
}
.ds-errsum__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-h3);
}
.ds-errsum__list {
  margin: 0;
  padding-inline-start: var(--space-6);
}
.ds-errsum__list > li + li {
  margin-block-start: var(--space-2);
}
.ds-errsum a {
  color: var(--error);
  font-weight: var(--font-weight-bold);
  display: block;
  min-height: var(--size-touch-target);
  padding-block: var(--space-3);
}
.ds-table-wrap {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  background: var(--surface);
  border: var(--border-width-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.ds-table {
  border-collapse: collapse;
  width: 100%;
}
.ds-table__caption {
  text-align: start;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h3);
  padding: var(--space-3) var(--space-4);
}
.ds-table th,
.ds-table td {
  text-align: start;
  padding: var(--space-2) var(--space-4);
  border-block-end: var(--border-width-hairline) solid var(--border-subtle);
  height: var(--size-touch-target);
}
@media (pointer: fine) {
  .ds-table tbody tr:not(.is-actionable) > * {
    height: 2.5rem;
    padding-block: var(--space-1);
  }
}
.ds-table tr.is-actionable {
  cursor: pointer;
}
.ds-table thead th {
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
.ds-table tbody th {
  font-weight: var(--font-weight-semibold);
}
.ds-table .is-num {
  text-align: end;
  font-variant-numeric: var(--font-numeric);
}
.ds-table__sort {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch-target);
  min-width: var(--size-touch-target);
}
.ds-table__sort:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-table tbody tr:hover {
  background: var(--surfaces-hover);
}
.ds-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-index-modal);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgb(0 0 0 / 0.5);
}
.ds-dialog-backdrop[hidden] {
  display: none;
}
.ds-dialog {
  background: var(--surface);
  color: var(--text);
  border: var(--border-width-strong) solid var(--border-control);
  border-radius: var(--radius-lg);
  width: min(36rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: var(--space-4) var(--space-6) var(--space-6);
  animation: ds-fade var(--motion-duration-base) var(--motion-easing-standard);
}
.ds-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.ds-dialog__title {
  font-size: var(--font-size-h3);
  margin: 0;
}
.ds-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-block-start: var(--space-6);
}
@keyframes ds-fade {
  from {
    opacity: 0;
  }
}
.ds-toasts {
  position: fixed;
  inset-inline: var(--space-4);
  inset-block-end: var(--space-4);
  z-index: var(--z-index-toast);
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  pointer-events: none;
}
.ds-toasts__list {
  display: grid;
  gap: var(--space-2);
}
.ds-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  color: var(--text);
  border: var(--border-width-strong) solid var(--border-control);
  border-inline-start: var(--border-width-selected) solid var(--toast-c, var(--border-control));
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  max-width: 36rem;
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.2);
  animation: ds-fade var(--motion-duration-base) var(--motion-easing-standard);
}
.ds-toast__msg {
  margin: 0;
  flex: 1;
}
.ds-toast__glyph {
  color: var(--toast-c);
  font-weight: var(--font-weight-bold);
}
.ds-toast--success {
  --toast-c: var(--status-done-color);
}
.ds-toast--warning {
  --toast-c: var(--status-at-risk-color);
}
.ds-toast--error {
  --toast-c: var(--error);
}
.ds-toast--info {
  --toast-c: var(--status-on-track-color);
}
.ds-skip {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: -10rem;
  z-index: var(--z-index-toast);
  background: var(--surface);
  color: var(--link);
  padding: var(--space-3) var(--space-4);
  border: var(--border-width-strong) solid var(--border-control);
  min-height: var(--size-touch-target);
}
.ds-skip:focus {
  inset-block-start: var(--space-2);
}
.ds-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.ds-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  background: var(--surface);
  border-block-end: var(--border-width-hairline) solid var(--border-subtle);
  min-height: calc(var(--size-touch-target) + var(--space-2));
  grid-column: 1 / -1;
}
.ds-header__title {
  font-weight: var(--font-weight-bold);
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.ds-header {
  min-height: var(--size-touch-target);
  padding: 0 var(--space-2);
  gap: var(--space-2);
}
.ds-header.is-unstuck {
  position: static;
}
.ds-nav__toggle {
  min-width: var(--size-touch-target);
  min-height: var(--size-touch-target);
  gap: var(--space-1);
  padding-inline: var(--space-2);
}
.ds-header__brand {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--size-touch-target);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
  text-decoration: none;
}
.ds-header__brand:hover .ds-header__name {
  text-decoration: underline;
}
.ds-header__logo {
  flex: 0 0 auto;
  display: block;
  height: 24px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  object-position: left center;
  background: var(--logo-plate, transparent);
  padding: var(--logo-plate-pad, 0px);
  border-radius: 4px;
  box-sizing: content-box;
}
.ds-header__logo {
  min-height: 24px;
  flex-shrink: 0;
}
.ds-header.is-large {
  flex-wrap: wrap;
  row-gap: var(--space-2);
  padding-block-end: var(--space-1);
}
.ds-header.is-large > .ds-header__brand {
  flex: 1 1 0;
}
.ds-header.is-large > :last-child:not(.ds-header__brand):not(.ds-nav__toggle) {
  flex: 1 0 100%;
  margin-left: 0;
  justify-content: flex-start;
}
.ds-header__name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}
@media (max-width: 37.49rem) {
  .ds-nav__toggle-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (min-width: 37.5rem) {
  .ds-header__logo {
    height: 32px;
    max-width: 120px;
  }
}
@media (forced-colors: active) {
  .ds-header {
    border-block-end: 1px solid CanvasText;
  }
  .ds-header__brand {
    color: LinkText;
  }
  .ds-header__logo {
    forced-color-adjust: none;
    background: #FFFFFF;
    padding: 4px;
    border: 1px solid CanvasText;
  }
}
.ds-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(20rem, 85vw);
  z-index: var(--z-index-drawer);
  background: var(--surface);
  border-inline-end: var(--border-width-hairline) solid var(--border-control);
  padding: var(--space-2);
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--motion-duration-base) var(--motion-easing-standard), visibility 0s linear var(--motion-duration-base);
}
.is-drawer-open .ds-nav {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.ds-nav__scrim {
  display: none;
}
.is-drawer-open .ds-nav__scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-index-drawer) - 1);
  background: rgb(0 0 0 / 0.5);
}
.ds-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.ds-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-touch-target);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
}
.ds-nav__link:hover {
  background: var(--surfaces-hover);
  text-decoration: underline;
}
.ds-nav__link[aria-current=page] {
  background: var(--surfaces-selected);
  box-shadow: inset var(--border-width-selected) 0 0 var(--surfaces-selected-indicator);
  font-weight: var(--font-weight-bold);
}
.ds-main {
  padding: var(--space-4);
  min-width: 0;
}
.ds-main:focus {
  outline: none;
}
@media (min-width: 64rem) {
  .ds-shell {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
  .ds-nav {
    position: sticky;
    inset-block-end: auto;
    top: var(--app-header-h, var(--size-touch-target));
    height: calc(100dvh - var(--app-header-h, var(--size-touch-target)));
    width: auto;
    transform: none;
    visibility: visible;
    transition: none;
    z-index: auto;
  }
  .ds-nav__toggle,
  .ds-nav__close {
    display: none;
  }
}
[data-theme=outdoor] a {
  text-decoration-thickness: 0.125rem;
}
.ds-btn {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
.ds-main > * {
  max-width: 100%;
}
h1,
h2,
h3,
p,
label,
li,
a {
  overflow-wrap: anywhere;
}
@media (max-width: 37.49rem) {
  .ds-dialog-backdrop {
    padding: 0;
    place-items: end stretch;
  }
  .ds-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
  }
  .ds-dialog__body {
    flex: 1;
    overflow: auto;
  }
  .ds-dialog__actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding-block: var(--space-3);
    margin-block-start: var(--space-4);
    flex-wrap: nowrap;
  }
  .ds-dialog__actions > * {
    flex: 1;
  }
}
.ds-table__rowbtn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: var(--size-touch-target);
  width: 100%;
  text-decoration: underline;
}
.ds-table__rowbtn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-3);
}
.ds-seg__legend {
  font-weight: var(--font-weight-semibold);
  padding: 0;
  margin-block-end: var(--space-1);
  width: 100%;
  float: left;
}
.ds-seg__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-touch-target);
  min-width: var(--size-touch-target);
  padding: 0 var(--space-4);
  border: var(--border-width-control) solid var(--border-control);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}
.ds-seg__input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.ds-seg__opt:has(:checked) {
  border: var(--border-width-selected) solid var(--surfaces-selected-indicator);
  background: var(--surfaces-selected);
}
.ds-seg__opt:has(:checked) .ds-seg__text::before {
  content: "\2713  " / "";
}
.ds-seg__text {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.ds-large-text .ds-seg {
  min-inline-size: 0;
}
.ds-large-text .ds-seg__opt {
  flex: 1 1 100%;
  min-width: 0;
  padding-inline: var(--space-2);
}
.ds-large-text input[type=date].ds-input {
  padding-inline: var(--space-2);
}
.ds-large-text input[type=date].ds-input::-webkit-calendar-picker-indicator {
  margin-inline-start: 0;
}
@media (max-width: 351.98px) {
  .ds-large-text input[type=date].ds-input {
    padding-inline: var(--space-1);
  }
  .ds-large-text input[type=date].ds-input::-webkit-calendar-picker-indicator {
    display: none;
    width: 0;
    margin: 0;
    padding: 0;
  }
}
.ds-seg__opt:has(:focus-visible) {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-tl {
  background: var(--surface);
  border: var(--border-width-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.ds-large-text .ds-tl {
  padding-inline: var(--space-2);
}
.ds-tl__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-h3);
}
.ds-tl__summary,
.ds-tl__legend {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: var(--font-size-body);
}
.ds-tl__today-key {
  display: inline-block;
  width: 0;
  height: 1em;
  border-inline-start: var(--border-width-strong) solid var(--timeline-today-line);
  vertical-align: middle;
}
.ds-tl__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.ds-tl__row,
.ds-tl__ticks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}
.ds-tl__ticks-spacer {
  display: none;
}
.ds-tl__item {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  min-height: var(--size-touch-target);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: var(--border-width-control) solid transparent;
  overflow-wrap: anywhere;
}
.ds-tl__item:hover {
  background: var(--surfaces-hover);
}
.ds-tl__item:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-tl__name {
  font-weight: var(--font-weight-semibold);
  width: 100%;
}
.ds-tl__dates,
.ds-tl__owner {
  color: var(--text-muted);
  font-size: var(--font-size-body);
  font-variant-numeric: var(--font-numeric);
}
.ds-tl__crit {
  color: var(--color-timeline-critical-path);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
}
.ds-tl__ticks-track,
.ds-tl__track {
  position: relative;
  min-height: 1.75rem;
}
.ds-tl__ticks-track {
  min-height: 1.25rem;
  font-size: var(--font-size-caption);
  color: var(--text-muted);
  overflow: hidden;
}
.ds-tl__tick {
  position: absolute;
  top: 0;
  padding-inline-start: 0.125rem;
  white-space: nowrap;
  border-inline-start: var(--border-width-hairline) solid var(--timeline-grid);
}
.ds-tl__grid {
  position: absolute;
  inset: 0;
}
.ds-tl__gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  border-inline-start: var(--border-width-hairline) solid var(--timeline-grid);
}
.ds-tl__today {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  border-inline-start: var(--border-width-strong) solid var(--timeline-today-line);
  z-index: 1;
}
.ds-tl__bar {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.125rem;
  border: var(--border-width-strong) solid var(--bar-c);
  background: var(--bar-c);
  color: var(--surface);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-caption);
  line-height: 1;
  padding-inline: 0.125rem;
  overflow: hidden;
  transition: inset-inline-start var(--motion-duration-base) var(--motion-easing-standard), width var(--motion-duration-base) var(--motion-easing-standard);
}
.ds-tl__bar--done,
.ds-tl__bar--onTrack,
.ds-tl__bar--atRisk {
  --bar-c: var(--text-muted);
}
.ds-tl__bar--late {
  --bar-c: var(--status-late-color);
}
.ds-tl__bar--planned {
  --bar-c: var(--timeline-bar-planned-stroke, var(--border-control));
  background: var(--timeline-bar-planned-fill, var(--surface));
  color: var(--status-planned-color);
}
.ds-tl__bar.clip-l {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
.ds-tl__bar.clip-r {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.ds-tl__empty {
  color: var(--text-muted);
  padding: var(--space-3);
}
@media (min-width: 48rem) {
  .ds-tl__row,
  .ds-tl__ticks {
    grid-template-columns: minmax(14rem, 2fr) 3fr;
    align-items: center;
    gap: var(--space-3);
  }
  .ds-tl__ticks-spacer {
    display: block;
  }
}
@media (forced-colors: active) {
  :focus-visible,
  .ds-seg__opt:has(:focus-visible),
  .ds-btn--primary:focus-visible {
    outline-color: Highlight;
  }
  .ds-badge {
    border: var(--border-width-control) solid CanvasText;
    border-radius: var(--radius-sm);
    padding: 0 var(--space-1);
  }
  .ds-btn {
    border-color: ButtonText;
  }
  .ds-btn--primary {
    forced-color-adjust: none;
    background: ButtonText;
    color: ButtonFace;
    border-color: ButtonText;
  }
  .ds-btn--primary:active {
    box-shadow: none;
    outline: 2px solid ButtonFace;
    outline-offset: -4px;
  }
  .ds-btn:disabled,
  .ds-btn[aria-disabled=true],
  .ds-input:disabled {
    color: GrayText;
    border-color: GrayText;
  }
  .ds-nav__link[aria-current=page] {
    box-shadow: none;
    border-inline-start: var(--border-width-selected) solid Highlight;
    font-weight: var(--font-weight-bold);
  }
  .ds-seg__opt {
    border-color: ButtonText;
  }
  .ds-seg__opt:has(:checked) {
    border-color: Highlight;
  }
  .ds-field--invalid .ds-input {
    border-color: CanvasText;
    border-style: double;
    border-width: 0.25rem;
  }
  .ds-tl__gridline,
  .ds-tl__tick {
    border-color: GrayText;
  }
  .ds-tl__today,
  .ds-tl__today-key {
    border-color: Highlight;
    border-inline-start-width: 0.25rem;
  }
  .ds-tl__bar {
    border-color: CanvasText;
  }
  .ds-tl__bar--planned {
    border-style: dashed;
  }
  .ds-tl__item {
    border-color: transparent;
  }
  .ds-toast,
  .ds-dialog {
    border-color: CanvasText;
  }
  .ds-nav__scrim,
  .ds-dialog-backdrop {
    background: Canvas;
    opacity: 0.85;
  }
  .ds-dialog-backdrop {
    opacity: 1;
    background: transparent;
  }
}
.ds-tiles {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.ds-tiles__legend {
  font-weight: var(--font-weight-semibold);
  padding: 0;
  margin-block-end: var(--space-1);
}
.ds-tiles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 1fr));
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}
.ds-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-touch-target);
  padding: var(--space-2) var(--space-3);
  border: var(--border-width-control) solid var(--border-control);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--badge-c);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: border-color var(--motion-duration-fast) var(--motion-easing-standard);
}
.ds-tile__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.ds-tile__glyph {
  font-size: 1.25em;
  line-height: 1;
}
.ds-tile:hover {
  background: var(--surfaces-hover);
}
.ds-tile:has(:checked) {
  border: var(--border-width-selected) solid var(--surfaces-selected-indicator);
  padding: calc(var(--space-2) - 3px) calc(var(--space-3) - 3px);
}
.ds-tile:has(:checked)::after {
  content: "\2713" / "";
  margin-inline-start: auto;
  color: var(--text);
}
.ds-tile:has(:focus-visible) {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-step {
  margin-block-end: var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  max-width: 30rem;
}
.ds-step__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-2);
}
.ds-step__btn {
  font-size: 1.5rem;
  min-width: var(--size-touch-target);
}
.ds-step__spin {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-touch-target);
  min-width: min(6rem, 100%);
  border: var(--border-width-control) solid var(--border-control);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: var(--font-numeric);
}
.ds-step__spin:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-step__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ds-step__preset {
  min-width: 3.75rem;
}
.ds-step__preset[aria-pressed=true] {
  border-width: var(--border-width-selected);
  border-color: var(--surfaces-selected-indicator);
  background: var(--surfaces-selected);
}
.ds-ol {
  background: var(--surface);
  border: var(--border-width-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.ds-ol__title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-h3);
}
.ds-ol__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.ds-ol__row {
  display: grid;
  gap: var(--space-1);
}
.ds-ol__name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  min-height: 2rem;
}
.ds-ol__name--btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  min-height: var(--size-touch-target);
  cursor: pointer;
  text-decoration: underline;
}
.ds-ol__name--btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.ds-ol__chip {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  border: var(--border-width-control) solid var(--chip-border);
  color: var(--chip-text);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
}
.ds-ol__bar {
  position: relative;
  display: flex;
  gap: var(--workload-segment-gap-width);
  background: var(--workload-segment-gap-color);
  height: 1.25rem;
}
.ds-ol__seg {
  flex-grow: 0;
  flex-shrink: 0;
  min-width: 0.25rem;
  transition: flex-basis var(--motion-duration-base) var(--motion-easing-standard);
}
.ds-ol__seg--late {
  background: var(--workload-late);
}
.ds-ol__seg--atRisk {
  background: var(--workload-at-risk);
}
.ds-ol__seg--onTrack {
  background: var(--workload-on-track-neutral);
}
.ds-ol__seg--planned {
  background: var(--workload-planned-fill);
  border: var(--border-width-control) solid var(--workload-planned-border);
}
.ds-ol__cap {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  border-inline-start: var(--border-width-strong) solid var(--workload-capacity-line);
}
.ds-ol__text {
  margin: 0;
  font-size: var(--font-size-caption);
  color: var(--text);
  font-variant-numeric: var(--font-numeric);
}
.ds-ol__part--late {
  color: var(--status-late-color);
  font-weight: var(--font-weight-bold);
}
.ds-ol__part--atRisk {
  color: var(--status-at-risk-color);
  font-weight: var(--font-weight-bold);
}
.ds-ol__over {
  color: var(--error);
}
@media (forced-colors: active) {
  .ds-tile {
    border-color: ButtonText;
  }
  .ds-tile:has(:checked) {
    border-color: Highlight;
  }
  .ds-step__spin {
    border-color: ButtonText;
  }
  .ds-step__preset[aria-pressed=true] {
    border-color: Highlight;
  }
  .ds-ol__chip {
    border-color: CanvasText;
  }
  .ds-ol__seg {
    forced-color-adjust: none;
    box-sizing: border-box;
    border: 1px solid CanvasText;
  }
  .ds-ol__seg--late {
    background: CanvasText;
  }
  .ds-ol__seg--atRisk {
    background: Canvas;
  }
  .ds-ol__seg--atRisk .ds-ol__hatch {
    display: block;
  }
  .ds-ol__hatch-line {
    stroke: CanvasText;
  }
  .ds-ol__seg--onTrack {
    background: Canvas;
    border: 1px solid CanvasText;
  }
  .ds-ol__seg--planned {
    background: Canvas;
    border: 1px dashed CanvasText;
  }
  .ds-ol__cap {
    border-color: Highlight;
  }
}
.ds-tl__overdue {
  color: var(--status-late-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
}
.ds-tl__overdue-mark {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translate(-0.1rem, -50%);
  color: var(--status-late-color);
  font-size: var(--font-size-caption);
  line-height: 1;
  z-index: 2;
}
.ds-tl__sc {
  margin: 0 0 var(--space-2);
  color: var(--color-timeline-critical-path);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
}
.ds-tl__sc[hidden] {
  display: none;
}
.ds-tl__sc-mark {
  position: absolute;
  top: 0;
  color: var(--color-timeline-critical-path);
  transform: translateX(-50%);
  font-size: var(--font-size-caption);
}
.ds-badge__glyph svg,
.ds-tile__glyph svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}
.ds-ol__seg {
  position: relative;
  overflow: hidden;
}
.ds-ol__hatch {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ds-tl__group {
  list-style: none;
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  background: var(--surface);
  padding: var(--space-2) 0 var(--space-1);
}
.ds-tl__group-h {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ds-tl__group-h::before,
.ds-tl__group-h::after {
  content: "";
  flex: 0 0 var(--space-3);
  border-top: var(--border-width-control) solid var(--border-control);
}
.ds-tl__group-h::after {
  flex: 1 1 auto;
}
.ds-tl__group--sub {
  position: static;
  padding-top: var(--space-1);
}
.ds-tl__group--sub .ds-tl__group-h {
  font-weight: var(--font-weight-regular);
  color: var(--text-muted);
}
.ds-tl__group--sub .ds-tl__group-h::before,
.ds-tl__group--sub .ds-tl__group-h::after {
  content: none;
}
.ds-tl__note {
  list-style: none;
  padding: var(--space-2) 0;
  color: var(--color-timeline-critical-path);
  font-weight: var(--font-weight-semibold);
}
.ds-status-late.ds-badge--word .ds-badge__label,
.ds-tile.ds-status-late .ds-tile__label {
  font-weight: var(--font-weight-bold);
}
.ds-large-text .ds-table-wrap {
  overflow-x: visible;
  border: 0;
  background: none;
}
.ds-large-text .ds-table,
.ds-large-text .ds-table tbody,
.ds-large-text .ds-table tr,
.ds-large-text .ds-table th,
.ds-large-text .ds-table td {
  display: block;
  width: auto;
}
.ds-large-text .ds-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ds-large-text .ds-table tbody tr {
  background: var(--surface);
  border: var(--border-width-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-block-end: var(--space-2);
  padding-block: var(--space-2);
}
.ds-large-text .ds-table tbody > tr > * {
  height: auto;
  border-block-end: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.ds-large-text .ds-table .is-num {
  text-align: start;
}
.ds-large-text .ds-table td[data-label]::before {
  content: attr(data-label) / "";
  display: block;
  font-weight: var(--font-weight-bold);
}

/* src/web/ds/lib/bundle.css */

/* App layout on Thing 1 tokens. Safe-area insets for notches/home indicator (viewport-fit=cover). */
html, body { min-height: 100%; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1 { font-size: var(--font-size-h3); margin: var(--space-4) 0 var(--space-3); }
h1:focus { outline: none; }
h1:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); }
h2 { font-size: var(--font-size-body-lg); margin: var(--space-3) 0 var(--space-2); }
.muted, .as-of { color: var(--text-muted); }
.num, .as-of, time { font-variant-numeric: tabular-nums; }
.screen { padding: 0 var(--space-4) calc(var(--space-12) + env(safe-area-inset-bottom)); max-width: 40rem; }
.auth { padding: var(--space-6) var(--space-4) calc(var(--space-8) + env(safe-area-inset-bottom)); max-width: 28rem; margin: 0 auto; }
.auth > .ds-btn, .auth > button { margin-top: var(--space-2); } /* ≥8px between stacked targets */
.auth__app { color: var(--text-muted); margin: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.block { margin-top: var(--space-4); }
.card { border: var(--border-width-control) solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.banners { display: flex; flex-direction: column; }
.banner { margin: 0; padding: var(--space-2) var(--space-4); font-weight: var(--font-weight-semibold); border-bottom: var(--border-width-control) solid var(--border-subtle); }
.banner--placeholder { background: var(--surface); color: var(--text); }
.banner--offline { background: var(--surfaces-tint-offline-banner, var(--surface)); border-color: var(--surfaces-tint-offline-banner-border, var(--border-control)); }
.form-error { color: var(--error); font-weight: var(--font-weight-semibold); margin: 0; }
.note { border-left: var(--border-width-selected) solid var(--border-control); padding-left: var(--space-3); }
.empty { color: var(--text-muted); padding: var(--space-4) 0; }
.qr { width: 12rem; height: 12rem; border: var(--border-width-control) solid var(--border-subtle); }
.secret code { font-size: var(--font-size-body-lg); word-break: break-all; }
.code-input { font-size: 1.5rem; letter-spacing: 0.3em; min-height: var(--size-touch-target); font-variant-numeric: tabular-nums; }
/* ≤360: '✕ 1 failed' (DaVinci 07:20) */
@media (max-width: 22.5rem) { .sync-pill__more { display: none; } }
.sync-pill { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--size-touch-target); min-width: var(--size-touch-target); padding: 0 var(--space-2); color: inherit; text-decoration: none; margin-left: auto; }
.missing { color: var(--status-late-color); font-weight: var(--font-weight-bold); }
.steps { padding-left: var(--space-6); }
@media (max-width: 22.5rem) { .screen { padding-left: var(--space-3); padding-right: var(--space-3); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }
/* m04-auth additions */
.show-pw { min-height: var(--size-touch-target); margin-top: var(--space-2); background: none; border: 0; color: var(--text-link, var(--color-action-primary-bg)); text-decoration: underline; font: inherit; padding: 0 var(--space-2); cursor: pointer; }
.show-pw[aria-pressed="true"] { font-weight: var(--font-weight-semibold); }
.link-56 { display: inline-flex; align-items: center; min-height: var(--size-touch-target); }
.link-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: var(--size-touch-target); }
.auth-notice { border-left: var(--border-width-selected) solid var(--error); padding-left: var(--space-3); color: var(--text); }
.mono { font-family: var(--font-family-mono, ui-monospace, monospace); }
.qr-wide { display: none; }
@media (min-width: 37.5rem) { .qr-wide { display: block; } }
.rc-list { columns: 2; gap: var(--space-4); font-size: var(--font-size-body-lg); padding-left: 2.5ch; }
.rc-list li { padding: var(--space-1) 0; }
.check-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-touch-target); }
.check-row input { width: 1.5rem; height: 1.5rem; }
.check-row label { flex: 1; min-height: var(--size-touch-target); display: flex; align-items: center; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.sec-row p { margin: 0; } .sec-row__label { font-weight: var(--font-weight-semibold); }
.sec-row--one { min-height: var(--size-touch-target, 56px); }
.print-sheet { display: none; }
.rc-warning { margin: 0; }
.step { margin: 0; color: var(--text-muted, inherit); }
/* Print (Bruce): ONLY the codes, account email, site name and site date. No nav, banners or other UI. */
@media print { body > *:not(.print-sheet) { display: none !important; } .print-sheet { display: block; font-family: var(--font-family-mono, monospace); } .print-sheet ol { columns: 2; } }
@media (forced-colors: active) { .auth-notice { border-left-color: CanvasText; } .show-pw { color: LinkText; } }

/* DaVinci 16:40: route headings focused programmatically (tabindex=-1) show no ring; keyboard focus-visible rings unchanged. */
/* Chromium matches :focus-visible on script focus before any pointer input, so the literal :not(:focus-visible) still drew a ring on first load.
   A tabindex=-1 heading is never reached by Tab, so dropping its ring leaves every keyboard ring unchanged. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
/* M3 a11y gate batch 2 (viewer Home, WCAG 2.4.11): keyboard focus and in-page scrolls stop below the sticky header (+8 px),
   so a focused row never sits under Menu / the sync pill. --app-header-h is 0 when the header scrolls away (200% / >15%). */
html { scroll-padding-top: calc(var(--app-header-h, 0px) + var(--space-2)); }

/* Field controls not in Thing 1's library. Every target >= var(--size-touch-target) (56px), >= 8px apart. */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: var(--size-touch-target); padding: var(--space-2) var(--space-3);
  border: var(--border-width-control) solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text); text-decoration: none; background: var(--surface); }
.row:hover { background: var(--surfaces-hover); }
.row__title { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.link-btn { display: inline-flex; align-items: center; min-height: var(--size-touch-target); padding: 0 var(--space-2); }
.owner-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  border: var(--border-width-control) solid var(--chip-border); font-size: var(--font-size-caption); font-weight: var(--font-weight-bold); }
.field { display: flex; flex-direction: column; gap: var(--space-1); margin: var(--space-3) 0; }
.field__label { font-weight: var(--font-weight-semibold); }
.tile-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* m07 spec S3c 'Weather: 2 per row, 56px+' (DaVinci 07:20 polish); also the conflict Yours/Current pick. */
.tile-group--pairs > .tile { flex: 1 1 calc(50% - var(--space-2)); max-width: calc(50% - var(--space-1)); }
@media (min-width: 37.5rem) { .tile-group--pairs > .tile { flex: 1 1 6rem; max-width: none; } }
.tile { min-height: var(--size-touch-target); min-width: var(--size-touch-target); flex: 1 1 6rem; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  border: var(--border-width-control) solid var(--border-control); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; }
.tile[aria-checked="true"] { border-width: var(--border-width-selected); border-color: var(--surfaces-selected-indicator); background: var(--surfaces-selected); }
.stepper__row { display: flex; align-items: center; gap: var(--space-2); }
.stepper__btn { min-height: var(--size-touch-target); min-width: var(--size-touch-target); font-size: 1.5rem; border: var(--border-width-strong) solid var(--border-control); border-radius: var(--radius-md); background: var(--surface); color: var(--text); cursor: pointer; }
.stepper__value { min-width: var(--size-touch-target); min-height: var(--size-touch-target); display: inline-flex; align-items: center; justify-content: center; font-size: var(--font-size-body-lg); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-btn { min-width: 3.75rem; min-height: var(--size-touch-target); border: var(--border-width-control) solid var(--chip-border); border-radius: var(--radius-pill); background: var(--chip-bg); color: var(--chip-text); font: inherit; cursor: pointer; }
.chip-btn[aria-pressed="true"] { border-width: var(--border-width-selected); }
.switch-row { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: var(--size-touch-target); padding: 0 var(--space-3);
  border: var(--border-width-control) solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.switch-row[aria-checked="true"] .switch-row__state { font-weight: var(--font-weight-bold); }
.seg { display: grid; gap: var(--space-2); grid-template-columns: repeat(4, 1fr); margin: var(--space-2) 0; }
.seg--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 22.5rem) { .seg--4 { grid-template-columns: repeat(2, 1fr); } }
.seg__btn { min-height: var(--size-touch-target); display: flex; flex-direction: column; align-items: center; justify-content: center; border: var(--border-width-control) solid var(--border-control);
  border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; padding: var(--space-1); }
.seg__btn[aria-pressed="true"] { border-width: var(--border-width-selected); border-color: var(--surfaces-selected-indicator); background: var(--surfaces-selected); }
.seg__sub { font-size: var(--font-size-caption); font-weight: var(--font-weight-regular); }
.day-head { position: sticky; top: 0; background: var(--canvas); margin: var(--space-3) 0 var(--space-1); padding: var(--space-1) 0; font-size: var(--font-size-body); z-index: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.outbox-item { border: var(--border-width-control) solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); }
.diff-table { width: 100%; border-collapse: collapse; }
.diff-table th, .diff-table td { text-align: left; padding: var(--space-1) var(--space-2); border-bottom: var(--border-width-control) solid var(--border-subtle); overflow-wrap: anywhere; }
.diff-table tr.diff td { font-weight: var(--font-weight-bold); }
/* Conflict review per section (DaVinci 07:20): Yours stacked over Current, plain text, one pick each. */
.cf-sec { border-top: var(--border-width-control) solid var(--border-subtle); padding-block: var(--space-3); }
.cf-sec__title { margin: 0 0 var(--space-2); font-size: var(--font-size-body); font-weight: var(--font-weight-bold); }
.cf-ver { margin-bottom: var(--space-2); padding: var(--space-2) var(--space-3); border: var(--border-width-control) solid var(--border-subtle); border-radius: var(--radius-control, 8px); }
.cf-ver__head { margin: 0; font-weight: var(--font-weight-semibold); }
.cf-ver__lines { margin: var(--space-1) 0 0; padding-inline-start: var(--space-4); overflow-wrap: anywhere; }

.bottom-actions { position: sticky; bottom: 0; padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--canvas); display: flex; flex-direction: column; gap: var(--space-2); }
.data-list { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: var(--space-1) var(--space-3); }
.data-list dt, .data-list dd { min-width: 0; overflow-wrap: anywhere; } /* reflow at 320 px / 200% (S2 sent) */
.data-list dt { color: var(--text-muted); }
.data-list dd { margin: 0; }
.sheet__body { display: flex; flex-direction: column; gap: var(--space-2); }

/* DaVinci 16:40: at ≤412 px an activity row stacks status (line 1), name full width (line 2), % + owner chip (line 3). */
@media (max-width: 25.8125rem) {
  [data-testid=my-activities] .row > .row__title { flex-basis: 100%; order: 1; }
  [data-testid=my-activities] .row > .num, [data-testid=my-activities] .row > .owner-chip { order: 2; }
}

/* ---- m05 Roadblocks (design/screens/m05-constraint-log.md) ---- */
fieldset.seg { border: 0; padding: 0; min-width: 0; }
.seg--radio .seg__btn { position: relative; cursor: pointer; }
.seg__input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.seg--radio .seg__btn:has(.seg__input:checked) { border-width: var(--border-width-selected); border-color: var(--surfaces-selected-indicator); background: var(--surfaces-selected); }
.seg--radio .seg__btn:has(.seg__input:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.rb-li { display: flex; flex-direction: column; gap: var(--space-2); }
.rb-item { flex-direction: column; align-items: stretch; gap: var(--space-1); }
.rb-item__l1, .rb-item__l2, .rb-item__l3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.rb-item__l2 .row__title { flex: 1 1 auto; font-size: var(--font-size-body-lg); font-weight: var(--font-weight-semibold); }
/* DaVinci m07 SF1 (13:45): no tinted fill on the overdue card; the bold 'overdue N d' and the severity shape carry it. */
.info-line { background: var(--surface); border: var(--border-width-control) solid var(--notice-border); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.offline-banner { background: var(--surfaces-tint-offline-banner); border-color: var(--surfaces-tint-offline-banner-border); }
/* Bottom action area. DaVinci 09:15 (CHANGES.md): pinned ONLY on forms (daily report S2/S3, new/edit constraint, raise issue:
   `.actions-bottom--pinned`); on lists and detail screens it stays in the flow, 56 px targets, >= 8 px from its neighbours. */
.actions-bottom { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.actions-bottom--pinned { position: sticky; bottom: 0; z-index: var(--z-index-sticky); background: var(--canvas); padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom)); }
/* DaVinci 07:20: at 200% text or > 25% of the viewport the pinned bar sits in the flow (app/stickyGuard.ts adds .is-unstuck). */
.actions-bottom.is-unstuck, .ds-dialog__actions.is-unstuck, [data-sticky].is-unstuck { position: static; }
/* Scroll-clear room (Thing 1, 2026-10-18): the in-flow bar is preceded by room for a docked toast, and pages without a bar
   end with room for one, so the last content always scrolls fully clear of both. */
.actions-bottom { margin-top: calc(var(--space-4) + var(--toast-clear, 0px)); }
.ds-main { padding-bottom: calc(var(--space-4) + var(--toast-clear, 0px)); }
/* Focus never lands under the sticky bar or header (WCAG 2.4.11): app/stickyGuard.ts publishes their heights. */
html { scroll-padding-block: calc(var(--app-header-h, 0px) + var(--sticky-top-h, 0px) + var(--space-2)) calc(var(--sticky-bar-h, 0px) + var(--toast-clear, 0px) + var(--space-2)); } /* top +8 px as main b0c6bc4; bottom = pinned bar + docked toast + 8 px (DaVinci 10:18) */
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.notes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rb-slot { min-height: var(--size-touch-target); }
.rb-slot--empty { min-height: 0; }
.load-error { display: flex; flex-direction: column; gap: var(--space-2); }
.rb-table { display: none; }
@media (min-width: 64rem) { .rb-table { display: block; } .rb-list { display: none; } }
.roadblock-strip > .link-btn, [data-testid=show-resolved], .block + .ds-btn, [data-testid=history], [data-testid=history-offline] { margin-top: var(--space-2); }
.stepper__row { flex-wrap: wrap; }
/* DaVinci 18:20 polish: Linked and History text sits on the 32px content column (targets stay 56px tall) */
[data-testid=linked], .ds-btn[data-testid=history] { padding-inline: 0; justify-content: flex-start; min-width: var(--size-touch-target); }

/* ---- m07 Daily report (design/screens/m07-daily-report.md) ---- */
.dr-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.dr-card__head h2 { margin: 0; font-size: var(--font-size-body-lg); font-weight: var(--font-weight-semibold); }
.dr-card__state { color: var(--text-muted); }
/* Gap 1 interim: checked = the word "✓ Checked" plus the selected border width (never colour alone, never dashed). */
.dr-card--checked { border-width: var(--border-width-selected); border-color: var(--border-control); }
.dr-card--checked .dr-card__state { color: var(--text); font-weight: var(--font-weight-semibold); }
.dr-card__sum { margin: var(--space-2) 0 0; overflow-wrap: anywhere; }
.dr-progress { margin: 0; font-weight: var(--font-weight-semibold); position: sticky; top: var(--app-header-h, 0); z-index: calc(var(--z-index-sticky) - 1); background: var(--canvas); padding: var(--space-2) 0; } /* S2 sketch: 'N of 4 checked' stays in view */
.daily-banner { background: var(--surface); border-color: var(--notice-border); } /* DaVinci 07:20: neutral notice token, never the issue red */
.daily-banner__title { margin: 0 0 var(--space-2); font-size: var(--font-size-body-lg); }
.daily-banner__row + .daily-banner__row { margin-top: var(--space-3); }
.daily-banner p { margin: 0 0 var(--space-1); }
.daily-lines { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.daily-lines:empty { margin: 0; }
.dr-act { flex-wrap: wrap; }
.dr-compare { display: grid; gap: var(--space-2); }
@media (min-width: 40rem) { .dr-compare { grid-template-columns: 1fr 1fr; } }
/* m07 S6 day picker: three across at normal text; stacks when text is enlarged so 320 px / 200 % never scrolls sideways (a11y reflow200). */
.seg--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); }
.seg--3 .seg__btn { min-width: 0; overflow-wrap: anywhere; }

/* m07 S3a: keep 8 px+ between the last activity row and "+ Add activity" (a11y targets). */
.dr-after-list { margin-top: var(--space-3); }
/* Phone-sample polish (b4affde): "‹ Cancel"/"‹ Back" is the DS ghost button, left-aligned; date −/+ sit on the input's row. */
.ds-btn.back { align-self: flex-start; justify-content: flex-start; padding-inline: var(--space-2); font-weight: var(--font-weight-semibold); }
.date-step__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2); } /* wraps at 320 px / 200% text (no sideways scroll; m07 gate 2) */
.date-step__row > input { flex: 1 1 6em; min-width: 0; min-height: var(--size-touch-target); }
/* DaVinci m06 B1 (17:45): at 200% text the date input takes the full row (−/+ wrap below) so the whole date always shows. */
.ds-large-text .date-step__row > input { flex-basis: 100%; }
.date-step__row > .stepper__btn { flex: 0 0 auto; }

/* m06 (2.4.11): at 200% text the look-ahead day/week headers are in the flow, like the header and the action bars (DaVinci 07:20, 08:35). */
.ds-large-text .ds-tl__group { position: static; }
/* B1: at 200% text the look-ahead drops its extra section inset (the shell gutter stays) so range labels never break mid-word at 320 px. */
.ds-large-text .screen:has(> .la-host) { padding-inline: 0; }
/* Inline links that stand alone get a 56 px block target (copy unchanged). */
.link-btn--block { display: flex; padding: 0; }
/* DaVinci m07 SF3 (13:45): on phones the bottom sheet grew to 100dvh and covered the sticky NavShell header (not scrolled away:
   header at top 0, sheet over it). Keep the header visible (dimmed, inert) above the sheet. --app-header-h is 0 when the header
   is un-stuck (200% text), so the sheet may then use the full height. */
@media (max-width: 37.49rem) { /* same breakpoint as the DS bottom sheet */
  .ds-dialog-backdrop { padding-top: var(--app-header-h, 0px); }
  .ds-dialog-backdrop > .ds-dialog { max-height: calc(100dvh - var(--app-header-h, 0px)); }
}
/* m08 S2 working-day chips: native checkboxes styled as 56 px chips; ✓ + word when on, word only when off (never colour alone). */
.chip-fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.chip-check { display: inline-flex; align-items: center; justify-content: center; min-width: var(--size-touch-target); min-height: var(--size-touch-target);
  padding: 0 var(--space-2); border: var(--border-width-control) solid var(--chip-border); border-radius: var(--radius-pill); background: var(--chip-bg); color: var(--chip-text); cursor: pointer; }
.chip-check:has(input:checked) { border-width: var(--border-width-selected); }
.chip-check:has(input:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.chip-check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* m09 Alerts list: whole-row 56 px buttons, 8 px gaps; unread = bold + the word "New". */
.alert-list { display: grid; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--size-touch-target); text-align: start;
  padding: var(--space-2) var(--space-3); border: var(--border-width-control) solid var(--border-control); border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.alert-row:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.alert-row--new .alert-row__text, .alert-row__new { font-weight: var(--font-weight-bold); }
/* A7 Open in app strip (Android web only): secondary 56 px + "Not now" text button, under the header. */
.oia-strip { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-2) 0; margin-bottom: var(--space-2); border-bottom: var(--border-width-control) solid var(--border-control); }
.oia-strip__open { min-height: var(--size-touch-target); display: inline-flex; align-items: center; text-decoration: none; }
/* m05 owner UI (DaVinci 2026-10-18 23:10; CHANGES 2026-10-20 16:10). */
.seg--rb3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 25.75rem) { .seg--rb3 { grid-template-columns: 1fr; } } /* ≤412 px: one per row, full width */
.ds-large-text .seg--rb3 { grid-template-columns: 1fr; }                   /* 200% text: same */
.seg--rb3 .seg__btn span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.rb-type { flex: 0 0 auto; }                         /* type word: body text, no colour, no glyph */
.rb-no-owner { flex: 0 0 auto; }                     /* "No owner": body text, no glyph, no colour */
.owner-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: var(--size-touch-target); margin: var(--space-2) 0; }
.owner-row__label { font-weight: var(--font-weight-semibold); }
.owner-row:focus { outline: none; }
.owner-row:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.owner-picker { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.owner-opt { display: flex; align-items: center; gap: var(--space-2); min-height: var(--size-touch-target); padding: 0 var(--space-3); border: 1px solid var(--border-control); border-radius: var(--radius-md, 8px); cursor: pointer; flex-wrap: wrap; }
.owner-opt[hidden] { display: none; }
.owner-opt:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.owner-opt.is-current { cursor: default; border-style: dashed; }
.owner-opt__init { font-weight: var(--font-weight-semibold); min-width: 2.5em; }
.owner-opt__name { flex: 1 1 auto; }
.owner-opt__cur { font-weight: var(--font-weight-semibold); }
.ds-dialog-backdrop--anchored { place-items: start; padding: 0; }
.ds-dialog-backdrop--anchored .ds-dialog { position: absolute; width: min(24rem, calc(100vw - 16px)); max-height: calc(100dvh - 32px); overflow: auto; }
.rb-table .ds-btn--ghost { min-height: var(--size-touch-target); }
.oia-strip__open { min-height: var(--size-touch-target); display: inline-flex; align-items: center; text-decoration: none; }
/* auth-2 a11y (200% text): like the screen action bars (DaVinci 07:20), a sheet's actions stop being sticky and its body stops
   scrolling on its own; the whole sheet scrolls, so fields never sit against or under the buttons and no region needs focus to scroll. */
.ds-large-text .ds-dialog { overflow: auto; }
.ds-large-text .ds-dialog__body { flex: none; overflow: visible; }
.ds-large-text .ds-dialog__actions { position: static; }
/* DaVinci auth-2 B1 (CHANGES 18:10): sheet titles and buttons wrap at word boundaries only (break-word is a last resort for one
   word that cannot fit); at 200% text the buttons stack full width in the flow (order set in app/stickyGuard.ts) and the
   sheet's side padding shrinks so the title gets the width next to the close button. */
.ds-dialog__title, .ds-dialog .ds-btn, .ds-dialog .ds-btn__label { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.ds-dialog__head > .ds-dialog__title { flex: 1 1 auto; min-width: 0; }
.ds-large-text .ds-dialog { padding-inline: 12px; } /* px, not rem: rem doubles at 200% */
.ds-large-text .ds-dialog__x { flex: none; padding-inline: 0; width: 56px; min-width: 56px; } /* 56 px target kept */
.ds-dialog__actions.is-stacked { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.ds-dialog__actions.is-stacked > * { flex: none; width: 100%; }
.ds-dialog__actions[data-measure] .ds-btn__label { white-space: nowrap; } /* single-line width probe (app/stickyGuard.ts) */
.ds-rem-probe { position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; visibility: hidden; pointer-events: none; }

/* Owner UI (CHANGES 16:10): strip "No owner · N" keeps the 8px target gap from the first roadblock row. */
.rb-strip-noowner { margin-block-end: var(--space-2, 0.5rem); }

/* CHANGES 20:35 (DaVinci ruling 4): at 200% text the Roadblocks screen uses its phone list at every width; the table is for default text only. */
.ds-large-text .rb-table { display: none; }
.ds-large-text .rb-list { display: flex; } /* keeps .rows column + 8px gap */
/* Default text at ≥64rem: full content width; Owner and ID cells stay on one line; the title takes the rest (B2). */
.screen:has(.rb-roadblocks-table) { max-width: none; }
/* A1-3 Daily compliance table at ≥64rem: same full content width as roadblocks (B2). */
.screen:has(.dr-daily-table) { max-width: none; }
.dr-daily-table .ds-table :is(th[scope="row"], td:nth-child(1), td:nth-child(3)) { white-space: nowrap; overflow-wrap: normal; }
.dr-daily-table .ds-table th[scope="row"] { width: 30%; }
.rb-roadblocks-table .ds-table :is(td:nth-child(1), td:nth-child(2), td:nth-child(4), td:nth-child(5)), .rb-roadblocks-table .ds-table td:nth-child(5) .ds-btn { white-space: nowrap; overflow-wrap: normal; }
.rb-roadblocks-table .ds-table th[scope="row"] { width: 35%; }
.rb-roadblocks-table .ds-table .ds-badge { flex-wrap: nowrap; white-space: nowrap; }
.rb-roadblocks-table .ds-table td:last-child { min-width: 9rem; }
/* B1 (no mid-word breaks at 200%): the back link takes its own row, the ID below it; words wrap only between words. */
.detail-top { flex-wrap: wrap; }
.detail-top > * { overflow-wrap: break-word; }
.ds-large-text .detail-top { display: grid; justify-items: start; gap: var(--space-1); }
.owner-picker-dlg .ds-dialog__title { overflow-wrap: break-word; }

/* m03 Photos strip (design/screens/m03-photos.md) */
.photo-strip { margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.photo-strip[hidden] { display: none !important; }
.photo-strip__head { display: flex; align-items: baseline; gap: var(--space-2); }
.photo-strip__h { margin: 0; font-size: var(--font-mobile-body, 1rem); font-weight: var(--font-weight-semibold); }
.photo-strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.photo-tile { min-height: var(--size-touch-target); }
.photo-tile__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
.photo-tile__ph, .photo-tile__thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: var(--radius-md, 8px); background: var(--surface-muted, var(--surface)); border: var(--border-width-control) solid var(--border-control); object-fit: cover; }
.photo-tile__open { padding: 0; border: 0; background: transparent; cursor: pointer; min-width: var(--size-touch-target); min-height: var(--size-touch-target); display: inline-flex; align-items: center; justify-content: center; }
.photo-tile__open:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.photo-tile__meta { flex: 1 1 12rem; display: grid; gap: var(--space-1); align-content: start; }
.photo-tile__hint { font-size: var(--font-size-caption, 0.875rem); margin: 0; color: var(--text-muted); }
.photo-tile__refuse { display: grid; gap: var(--space-1); }
.photo-tile__live { margin: 0; }
.photo-strip__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.photo-strip__actions .ds-btn { min-height: var(--size-touch-target); flex: 1 1 calc(50% - var(--space-2)); }
.photo-strip__caption { margin: 0; }
.ds-large-text .photo-strip__actions { flex-direction: column; }
.ds-large-text .photo-strip__actions .ds-btn { width: 100%; flex: none; }
.photo-viewer { position: fixed; inset: 0; z-index: var(--z-index-toast, 40); background: rgba(0,0,0,0.85); display: grid; place-items: center; gap: var(--space-3); padding: var(--space-4); }
.photo-viewer img { max-width: min(100%, 96vw); max-height: 80dvh; object-fit: contain; }
