/* [project]/app/globals.css [app-client] (css) */
@layer theme {
  :root, :host {
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-brand-body);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }
}

:root {
  --brand-midnight: #1c1e2d;
  --brand-logo-blue: #223a4f;
  --brand-slate: #474753;
  --brand-cool-grey: #878f9c;
  --brand-soft-silver: #babcc0;
  --brand-amber: #e78f2a;
  --brand-burnt-orange: #ce4e10;
  --color-text: var(--brand-midnight);
  --color-text-subtle: #606573;
  --color-text-inverse: #fff;
  --color-accent: var(--brand-burnt-orange);
  --color-accent-hover: #ab3e0b;
  --color-accent-soft: #fff1e9;
  --color-canvas: #f6f6f7;
  --color-surface: #fff;
  --color-surface-subtle: #eeeef0;
  --color-border: #d9dade;
  --color-border-strong: var(--brand-soft-silver);
  --color-success: #18725f;
  --color-success-soft: #e8f5f1;
  --color-danger: #a72c25;
  --color-danger-soft: #fcedeb;
  --color-focus: var(--brand-amber);
  --font-brand-heading: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --font-brand-intro: "Merriweather", Georgia, serif;
  --font-brand-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --radius-control: .5rem;
  --radius-card: .875rem;
  --radius-pill: 999px;
  --shadow-card: 0 .125rem .25rem #1c1e2d0a, 0 .75rem 2rem #1c1e2d0f;
  --shadow-raised: 0 1rem 2.5rem #1c1e2d24;
  --content-width: 74rem;
  --header-height: 4.75rem;
}

*, :before, :after {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
  scroll-behavior: smooth;
  min-width: 20rem;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: radial-gradient(circle at 100% 0, #e78f2a14, transparent 22rem),
    var(--color-canvas);
  font-family: var(--font-brand-body);
  text-rendering: optimizelegibility;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
}

.site-shell {
  min-height: calc(100vh - 5rem);
}

::selection {
  color: var(--color-text-inverse);
  background: var(--color-accent);
}

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

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

button, .button {
  border-radius: var(--radius-control);
  min-height: 2.625rem;
  color: var(--color-text-inverse);
  background: var(--color-accent);
  font-family: var(--font-brand-heading);
  cursor: pointer;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s, transform .15s;
  display: inline-flex;
  box-shadow: 0 .0625rem .125rem #1c1e2d1f;
}

button:hover, .button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

button:disabled, .button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

button.secondary, .button.secondary {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}

button.secondary:hover, .button.secondary:hover {
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
  border-color: #e8b69c;
}

button.danger, .button.danger {
  color: var(--color-danger);
  background: var(--color-danger-soft);
  border-color: #edc2be;
}

button.danger:hover, .button.danger:hover {
  color: #86201b;
  background: #f8dfdc;
  border-color: #dfa19b;
}

button.ghost, .button.ghost {
  color: var(--color-text-subtle);
  box-shadow: none;
  background: none;
  border-color: #0000;
}

button.small, .button.small {
  min-height: 2.25rem;
  padding: .5rem .75rem;
  font-size: .75rem;
}

.icon-button {
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
}

:focus-visible {
  outline: .1875rem solid var(--color-focus);
  outline-offset: .1875rem;
}

h1, h2, h3 {
  color: var(--color-text);
  font-family: var(--font-brand-heading);
  letter-spacing: -.025em;
  margin: 0;
  font-weight: 800;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.app-header {
  z-index: 30;
  min-height: var(--header-height);
  color: var(--color-text-inverse);
  background: var(--brand-midnight);
  border-bottom: .1875rem solid var(--color-accent);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: .75rem clamp(1rem, 4vw, 3rem);
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 .5rem 2rem #1c1e2d2e;
}

.brand {
  flex: none;
  align-items: center;
  padding: .25rem;
  display: flex;
}

.brand-logo {
  width: clamp(7.5rem, 12vw, 9.5rem);
  height: auto;
}

.nav {
  scrollbar-width: thin;
  flex: 1;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  display: flex;
  overflow-x: auto;
}

.nav a {
  color: #d5d6da;
  border-radius: var(--radius-control);
  font-family: var(--font-brand-heading);
  white-space: nowrap;
  align-items: center;
  gap: .45rem;
  padding: .65rem .7rem;
  font-size: .8125rem;
  font-weight: 600;
  transition: color .15s, background-color .15s;
  display: inline-flex;
}

.nav a:hover {
  color: var(--color-text-inverse);
  background: #ffffff17;
}

.nav a.active, .nav a[aria-current="page"] {
  color: var(--color-text-inverse);
  box-shadow: inset 0 -.125rem 0 var(--brand-amber);
  background: #ffffff21;
}

.header-user {
  border-left: 1px solid #ffffff2e;
  min-width: 0;
  max-width: 13rem;
  padding-left: 1rem;
}

.language-switcher {
  color: var(--color-text-subtle);
  font-family: var(--font-brand-heading);
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.language-switcher button {
  min-height: auto;
  color: inherit;
  box-shadow: none;
  font-size: inherit;
  background: none;
  border: 0;
  border-radius: .25rem;
  padding: .25rem;
}

.language-switcher button:hover, .language-switcher button[aria-pressed="true"] {
  color: var(--color-accent);
  background: none;
  transform: none;
}

.language-switcher.compact {
  color: #d5d6da;
  flex: none;
}

.language-switcher.compact button:hover, .language-switcher.compact button[aria-pressed="true"] {
  color: var(--brand-amber);
}

.profile-menu {
  position: relative;
}

.profile-menu-summary {
  color: #ededee;
  border-radius: var(--radius-control);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: .5rem;
  max-width: 12rem;
  padding: .5rem;
  font-size: .8125rem;
  list-style: none;
  display: flex;
}

.profile-menu-summary::-webkit-details-marker {
  display: none;
}

.profile-menu-summary:hover, .profile-menu[open] .profile-menu-summary {
  color: var(--color-text-inverse);
  background: #ffffff17;
}

.profile-menu-summary span {
  text-overflow: ellipsis;
  overflow: hidden;
}

.profile-menu-popover {
  width: 12rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-raised);
  gap: .25rem;
  padding: .5rem;
  display: grid;
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
}

.profile-menu-popover button {
  width: 100%;
  min-height: 2.5rem;
  color: var(--color-text);
  box-shadow: none;
  background: none;
  border-color: #0000;
  justify-content: flex-start;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  display: flex;
}

.profile-menu-popover button:hover {
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
  transform: none;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) 0 5rem;
}

.page-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  display: flex;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .625rem;
  display: flex;
}

.projects-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: -.5rem 0 1.5rem;
  padding: .75rem;
  display: flex;
}

.projects-view-toggle {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  display: inline-flex;
  overflow: hidden;
}

.projects-view-toggle .button {
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.projects-view-toggle .button + .button {
  border-left: 1px solid var(--color-border);
}

.projects-toolbar > .button.secondary {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-color: #e8b69c;
}

.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-brand-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.35;
}

.subtitle, .muted {
  color: var(--color-text-subtle);
}

.subtitle {
  max-width: 46rem;
  font-family: var(--font-brand-intro);
  margin: .75rem 0 0;
  font-size: .9375rem;
  line-height: 1.6;
}

.page-head-subtitle-content {
  margin-top: .75rem;
}

.grid {
  gap: 1.25rem;
  display: grid;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 2.5vw, 1.625rem);
  position: relative;
}

.card > h2 + .form-grid, .card > h2 + .compact-form, .card > h2 + form, .container > .card + .card, .container > .card + .stack, .container > .stack + .card {
  margin-top: 1.25rem;
}

.kpi {
  min-height: 8.25rem;
  padding: 1.25rem;
  overflow: hidden;
}

.kpi:after {
  content: "";
  background: var(--color-accent-soft);
  border-radius: 50%;
  width: 7rem;
  height: 7rem;
  position: absolute;
  bottom: -2.5rem;
  right: -1.5rem;
}

.kpi-value {
  z-index: 1;
  font-family: var(--font-brand-heading);
  margin-bottom: .35rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  position: relative;
}

.kpi-label {
  z-index: 1;
  color: var(--color-text-subtle);
  font-family: var(--font-brand-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .6875rem;
  font-weight: 700;
  position: relative;
}

.section-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 1rem;
  display: flex;
}

.company-card {
  border-top: .25rem solid var(--color-accent);
  flex-direction: column;
  min-height: 13rem;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex;
  overflow: hidden;
}

.company-card:hover {
  border-top-color: var(--brand-amber);
  box-shadow: var(--shadow-raised);
  transform: translateY(-.1875rem);
}

.card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.card-title {
  font-family: var(--font-brand-heading);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
}

.card-meta {
  color: var(--color-text-subtle);
  margin-top: .35rem;
  font-size: .8125rem;
}

.badge {
  color: var(--brand-slate);
  background: var(--color-surface-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-brand-heading);
  white-space: nowrap;
  align-items: center;
  padding: .3rem .6rem;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
}

.badge.active {
  color: #9d3506;
  background: var(--color-accent-soft);
}

.badge.done {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.badge.pre {
  color: var(--brand-slate);
  background: #eceef1;
}

.project-information-notice-icon {
  color: var(--color-text-inverse);
  font-family: var(--font-brand-heading);
  background: #9a6700;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  display: inline-grid;
}

.progress {
  margin-top: auto;
  padding-top: 1.25rem;
}

.progress-row {
  color: var(--color-text-subtle);
  justify-content: space-between;
  gap: .625rem;
  margin-bottom: .5rem;
  font-size: .75rem;
  display: flex;
}

.progress-row strong {
  color: var(--color-text);
}

.track {
  border-radius: var(--radius-pill);
  background: #e4e5e8;
  height: .5rem;
  overflow: hidden;
}

.fill {
  background: linear-gradient(90deg,
    var(--brand-burnt-orange),
    var(--brand-amber));
  border-radius: inherit;
  height: 100%;
}

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

.form-grid > button, .form-grid > .button {
  justify-self: start;
}

.field {
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
  display: flex;
}

.field.full, .field.full-width, .full-width {
  grid-column: 1 / -1;
}

.field label {
  color: var(--brand-slate);
  font-family: var(--font-brand-heading);
  font-size: .75rem;
  font-weight: 700;
}

.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .compact-form > input, .compact-form > select {
  width: 100%;
  min-height: 2.75rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  padding: .65rem .75rem;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: inset 0 .0625rem .125rem #1c1e2d0a;
}

.field input:not([type="checkbox"]):not([type="radio"]):hover, .field select:hover, .field textarea:hover, .compact-form > input:hover, .compact-form > select:hover {
  border-color: var(--brand-cool-grey);
}

.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus, .compact-form > input:focus, .compact-form > select:focus {
  border-color: var(--color-accent);
  outline: 0;
  box-shadow: 0 0 0 .1875rem #e78f2a2e;
}

.field select, .compact-form > select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.field select:disabled, .compact-form > select:disabled {
  cursor: not-allowed;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.actions {
  justify-content: flex-end;
  align-items: center;
  gap: .625rem;
  margin-top: 1.25rem;
  display: flex;
}

.task-options {
  border-top: 1px solid var(--color-border);
  padding: .75rem 0;
}

.task-options summary {
  color: var(--color-accent);
  font-family: var(--font-brand-heading);
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 800;
}

.task-options-grid {
  margin-top: 1rem;
}

.checkbox-field {
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  display: flex;
}

.task-list {
  gap: 1rem;
  display: grid;
}

.task-card {
  gap: 1.1rem;
  scroll-margin-top: 1.5rem;
  display: grid;
}

.task-card.health-amber {
  border-color: var(--brand-amber);
  box-shadow: inset .25rem 0 var(--brand-amber),
    var(--shadow-card);
  background: linear-gradient(90deg, #fff8ec 0, var(--color-surface) 12rem);
}

.task-card.health-red {
  border-color: var(--color-danger);
  box-shadow: inset .25rem 0 var(--color-danger),
    var(--shadow-card);
}

.task-card.prioritized {
  outline: 1px solid #e78f2a73;
}

.priority-badge {
  color: #744300;
  border: 1px solid var(--brand-amber);
  border-radius: var(--radius-pill);
  font-family: var(--font-brand-heading);
  background: #fff1cc;
  align-items: center;
  padding: .35rem .6rem;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.task-card-head, .task-badges, .task-materials {
  gap: .75rem;
  display: flex;
}

.task-card-head {
  justify-content: space-between;
  align-items: flex-start;
}

.task-card-head h3 {
  margin: .55rem 0 0;
  font-size: 1.1rem;
}

.task-owner {
  text-align: right;
  gap: .2rem;
  min-width: 11rem;
  display: grid;
}

.health-indicator {
  border-radius: var(--radius-control);
  font-family: var(--font-brand-heading);
  border: 1px solid;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  line-height: 1.2;
  display: inline-flex;
}

.health-indicator > span {
  gap: .1rem;
  display: grid;
}

.health-indicator > svg {
  flex: none;
}

.health-indicator strong {
  font-size: .72rem;
  font-weight: 800;
}

.health-indicator small {
  font-family: var(--font-brand-body);
  font-size: .68rem;
}

.health-indicator.green {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.health-indicator.amber {
  color: #8a5200;
  background: #fff1cc;
}

.health-indicator.red {
  color: #a12622;
  background: #fde4e2;
}

.health-reason {
  color: var(--color-text-subtle);
  margin: .35rem 0 0;
  font-size: .78rem;
}

.health-reason.amber {
  color: #8a5200;
}

.health-reason.red, .evidence-missing {
  color: #a12622;
}

.task-brief {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-control);
  gap: .75rem;
  margin: 0;
  padding: 1rem;
  display: grid;
}

.task-brief div {
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: .75rem;
  display: grid;
}

.task-brief dt, .task-materials h4 {
  color: var(--brand-slate);
  font-family: var(--font-brand-heading);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.compact-tool-list {
  margin: 0;
  padding-left: 1.1rem;
}

.structured-task-fields, .structured-item-list {
  gap: .65rem;
  display: grid;
}

.structured-items-field {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: .75rem;
}

.structured-items-head, .material-item-head {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.structured-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.structured-item > summary {
  cursor: pointer;
  padding: .55rem .7rem;
  font-weight: 700;
}

.structured-item > .form-grid {
  border-top: 1px solid var(--color-border);
  padding: .75rem;
}

.compact-empty {
  margin: .5rem 0 0;
}

.structured-material-list > li {
  border-bottom: 1px solid var(--color-border);
  padding: .55rem 0;
}

.structured-material-list > li:last-child {
  border-bottom: 0;
}

.structured-material-list p {
  margin: .25rem 0;
}

.task-brief dd {
  white-space: pre-line;
  margin: 0;
}

.task-progress {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: .85rem 1rem;
}

.task-progress .progress-row {
  margin-bottom: .65rem;
}

.checklist-view, .task-materials ul {
  gap: .35rem;
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
}

.attachment-list li {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  display: flex;
}

.attachment-remove-form {
  display: inline;
}

.attachment-remove-form .button {
  min-height: auto;
  padding: .15rem .35rem;
}

.checklist-view {
  padding: 0;
  list-style: none;
}

.task-materials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.task-materials h4 {
  margin: 0 0 .55rem;
}

.task-card-actions {
  margin-top: 0;
}

.checklist-edit {
  border: 0;
  gap: .6rem;
  padding: 0;
  display: grid;
}

.checklist-edit legend {
  margin-bottom: .5rem;
  font-weight: 800;
}

.checklist-edit label {
  align-items: center;
  gap: .55rem;
  display: flex;
}

.milestone-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.milestone-timeline li {
  color: var(--color-text-subtle);
  text-align: center;
  justify-items: center;
  gap: .4rem;
  font-size: .72rem;
  display: grid;
  position: relative;
}

.milestone-timeline li:before {
  content: "";
  background: var(--color-border-strong);
  width: 100%;
  height: .16rem;
  position: absolute;
  top: .35rem;
  right: 50%;
}

.milestone-timeline li:first-child:before {
  display: none;
}

.milestone-timeline li span {
  z-index: 1;
  background: var(--color-surface);
  border: .16rem solid var(--color-border-strong);
  border-radius: 50%;
  width: .85rem;
  height: .85rem;
}

.milestone-timeline li.current {
  color: var(--color-text);
}

.milestone-timeline li.current:before, .milestone-timeline li.current span {
  background: var(--brand-burnt-orange);
  border-color: var(--brand-burnt-orange);
}

.completion-warning ul {
  margin: 1rem 0;
}

.secondary-progress-title {
  margin: 1.25rem 0 -.5rem;
  font-size: .85rem;
}

.execution-summary {
  margin: .75rem 0 0;
}

.list-row .actions, td .actions {
  margin-top: 0;
}

.stack {
  gap: 1rem;
  display: grid;
}

.task-summary-list {
  gap: .625rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.task-summary-list li {
  border-top: 1px solid var(--color-border);
  padding-top: .625rem;
}

.task-summary-link {
  color: inherit;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  display: flex;
}

.task-summary-link:hover span:first-child, .task-summary-link:focus-visible span:first-child {
  text-decoration: underline;
}

.task-summary-meta {
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.workstream-health-list {
  gap: 1rem;
  margin-top: 1.25rem;
  display: grid;
}

.workstream-health-list > section {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-control);
  padding: 1rem;
}

.workstream-health-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.list-row {
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  display: flex;
}

.project-leader {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.project-leader p {
  margin: .25rem 0 0;
}

.compact-form {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .625rem;
  margin-top: 1rem;
  display: flex;
}

.compact-form .field {
  flex: 11rem;
}

.compact-form .field.full, .compact-form .field.full-width {
  flex-basis: 100%;
}

.form-feedback {
  border-radius: var(--radius-control);
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  padding: .65rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
}

.form-feedback.success {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.form-feedback.error {
  color: var(--color-danger);
  background: var(--color-danger-soft);
}

.dialog {
  width: min(38rem, 100% - 2rem);
  max-height: calc(100vh - 2rem);
  color: var(--color-text);
  background: none;
  border: 0;
  margin: auto;
  padding: 0;
  overflow: hidden;
}

.dialog::backdrop {
  -webkit-backdrop-filter: blur(.125rem);
  backdrop-filter: blur(.125rem);
  background: #1c1e2d94;
}

.dialog-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  max-height: calc(100vh - 2rem);
  box-shadow: var(--shadow-raised);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow-y: auto;
}

.workstream-configuration {
  gap: 1.25rem;
  display: grid;
}

.workstream-company {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 1rem;
}

.workstream-company-heading, .workstream-definition-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.workstream-company-heading h3, .workstream-definition-heading h4 {
  margin: 0;
}

.workstream-add-form, .workstream-remove-form {
  margin-top: 1rem;
}

.workstream-add-form > summary, .workstream-remove-form > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
}

.workstream-add-form > summary::-webkit-details-marker {
  display: none;
}

.workstream-remove-form > summary::-webkit-details-marker {
  display: none;
}

.workstream-definition-list {
  gap: .75rem;
  margin-top: 1rem;
  display: grid;
}

.workstream-definition {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: .875rem;
}

.workstream-definition-heading p {
  margin: .25rem 0 0;
}

.workstream-project-names {
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .75rem;
  display: flex;
}

.workstream-definition-actions {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.workstream-definition-actions .compact-form {
  margin-top: .75rem;
}

.workstream-project-picker {
  gap: .5rem;
  display: grid;
}

.workstream-project-picker label {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.dialog-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
}

.dialog-head p {
  margin: .4rem 0 0;
}

.choice-grid {
  gap: .625rem;
  display: grid;
}

.choice {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  cursor: pointer;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .75rem;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
  display: flex;
}

.choice:hover {
  background: var(--color-accent-soft);
  border-color: #e8b69c;
}

.choice:has(input:checked) {
  background: var(--color-accent-soft);
  border-color: var(--brand-amber);
  box-shadow: inset 0 0 0 1px var(--brand-amber);
}

.choice:has(input:focus-visible) {
  outline: .1875rem solid var(--color-focus);
  outline-offset: .1875rem;
}

.choice input {
  accent-color: var(--color-accent);
  cursor: pointer;
  flex: none;
  margin: 0;
}

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

.archived-notice {
  border-color: var(--brand-amber);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
}

.archived-notice p {
  margin: .4rem 0 0;
}

.project-information-notice {
  color: #765200;
  border-radius: var(--radius-control);
  background: #fff7d6;
  border: 1px solid #e8ca72;
  gap: .75rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.125rem;
  display: flex;
}

.project-information-notice-icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1rem;
  font-size: .75rem;
}

.project-information-notice h2 {
  color: var(--color-text);
  margin: 0;
  font-size: .9375rem;
}

.project-information-notice p {
  margin: .2rem 0 0;
}

.project-information-notice-link {
  color: #765200;
  font-family: var(--font-brand-heading);
  text-underline-offset: .15rem;
  margin-top: .4rem;
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: underline;
  display: inline-block;
}

.summary-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.5rem;
  margin: 1rem 0 0;
  display: grid;
}

.summary-list dt {
  color: var(--color-text-subtle);
  font-size: .75rem;
}

.summary-list dd {
  margin: .15rem 0 0;
  font-weight: 600;
}

.role-section + .role-section, .dialog-actions {
  margin-top: 1.5rem;
}

.dialog-actions form {
  justify-items: start;
  gap: .5rem;
  display: grid;
}

fieldset.field {
  border: 0;
  padding: 0;
}

fieldset.field legend {
  color: var(--brand-slate);
  font-family: var(--font-brand-heading);
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 700;
}

.danger-zone {
  border-color: #e5aaa5;
  margin-top: 1.5rem;
}

.archive-project {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.archive-project p {
  margin: .25rem 0 0;
}

.table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 45rem;
}

th, td {
  text-align: left;
  border-bottom: 1px solid #e8e8eb;
  padding: .9rem 1rem;
  font-size: .8125rem;
}

th {
  color: var(--color-text-subtle);
  font-family: var(--font-brand-heading);
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #f5f5f6;
  font-size: .6875rem;
  font-weight: 700;
}

tbody tr:hover > td {
  background: #fcfcfc;
}

tr:last-child td {
  border-bottom: 0;
}

.task-title.done {
  color: var(--color-text-subtle);
  text-decoration: line-through;
}

.task-actions {
  justify-content: flex-end;
  gap: .45rem;
  display: flex;
}

.governance-grid {
  margin-bottom: 1.25rem;
}

.governance-value {
  margin-top: .625rem;
}

.compact-actions {
  justify-content: flex-start;
  margin-top: .75rem;
}

.department-card {
  flex-direction: column;
  min-height: 18rem;
  display: flex;
}

.department-actions {
  flex-wrap: wrap;
  justify-content: space-between;
}

.empty {
  color: var(--color-text-subtle);
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.empty strong {
  color: var(--color-text);
  font-family: var(--font-brand-heading);
  margin-bottom: .45rem;
  font-size: 1.125rem;
  display: block;
}

.notice {
  text-align: center;
  width: min(32.5rem, 100% - 2rem);
  margin: 15vh auto;
}

.two-col {
  grid-template-columns: minmax(0, 2fr) minmax(16.25rem, 1fr);
}

.auth-shell {
  background: var(--color-surface);
  grid-template-columns: minmax(22rem, 1.1fr) minmax(24rem, .9fr);
  min-height: calc(100vh - 5rem);
  display: grid;
}

.auth-brand {
  background: var(--brand-midnight);
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  position: relative;
  overflow: hidden;
}

.auth-brand:before {
  aspect-ratio: 85 / 88;
  content: "";
  background: url("/brand/logo/favicon.svg") center / contain no-repeat;
  width: clamp(18rem, 34vw, 35rem);
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-75%, -10%);
}

.auth-logo {
  z-index: 1;
  width: min(17rem, 60%);
  height: auto;
  position: relative;
}

.auth-brand > div {
  z-index: 1;
  max-width: 42rem;
  position: relative;
}

.auth-brand h1 {
  color: var(--color-text-inverse);
}

.auth-intro {
  color: #dedee1;
  max-width: 36rem;
  font-family: var(--font-brand-intro);
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.auth-panel {
  background: var(--color-surface);
  place-items: center;
  padding: 2rem;
  display: grid;
}

.app-footer {
  color: #d5d6da;
  background: var(--brand-midnight);
  border-top: 1px solid #ffffff1f;
}

.footer-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
  margin: 0 auto;
  font-size: .8125rem;
  display: flex;
}

.footer-inner p {
  margin: 0;
}

.presentation-disclaimer {
  color: #bfc1c8;
  max-width: 35rem;
  font-size: .7rem;
}

.footer-inner nav {
  gap: 1.25rem;
  margin-left: auto;
  display: flex;
}

.footer-inner a:hover {
  color: var(--brand-amber);
}

.public-header {
  min-height: var(--header-height);
  color: var(--color-text-inverse);
  background: var(--brand-midnight);
  border-bottom: .1875rem solid var(--color-accent);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  display: flex;
}

.public-header-actions, .public-back-link {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.public-header-actions {
  gap: 1.5rem;
}

.public-back-link {
  color: #d5d6da;
  font-family: var(--font-brand-heading);
  font-size: .8125rem;
  font-weight: 600;
}

.public-back-link:hover {
  color: var(--brand-amber);
}

.legal-page {
  max-width: 64rem;
}

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

.legal-card {
  gap: 1rem;
  display: flex;
}

.legal-card:first-child {
  grid-column: 1 / -1;
}

.legal-card > svg, .contact-note > svg {
  color: var(--color-accent);
  flex: none;
}

.legal-card address {
  margin-top: .75rem;
  font-style: normal;
}

.legal-card p {
  overflow-wrap: anywhere;
  align-items: center;
  gap: .5rem;
  margin: .65rem 0 0;
  display: flex;
}

.legal-card a, .contact-card strong {
  color: var(--color-accent-hover);
}

.legal-details {
  gap: .75rem;
  margin: .75rem 0 0;
  display: grid;
}

.legal-details dt {
  color: var(--color-text-subtle);
  font-size: .75rem;
}

.legal-details dd {
  margin: .1rem 0 0;
  font-weight: 600;
}

.legal-copy, .contact-note {
  margin-top: 1.25rem;
}

.legal-copy p {
  max-width: 52rem;
}

.legal-updated {
  font-size: .75rem;
}

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

.contact-card {
  align-items: center;
  gap: 1rem;
  min-width: 0;
  transition: border-color .15s, transform .15s;
  display: flex;
}

a.contact-card:hover {
  border-color: var(--brand-amber);
  transform: translateY(-.125rem);
}

.contact-card:last-child {
  grid-column: 1 / -1;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-family: var(--font-brand-heading);
  font-size: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.contact-note {
  gap: 1rem;
  display: flex;
}

.contact-note p {
  margin: .5rem 0 0;
}

@media (max-width: 62rem) {
  .kpi-grid, .card-grid, .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-header {
    flex-wrap: wrap;
  }

  .nav {
    flex-basis: 100%;
    order: 3;
  }

  .auth-shell {
    grid-template-columns: minmax(18rem, .85fr) minmax(23rem, 1fr);
  }
}

@media (max-width: 46rem) {
  .container {
    width: min(100% - 1.25rem, var(--content-width));
    padding-top: 1.5rem;
  }

  .kpi-grid, .card-grid, .two-col, .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full, .field.full-width, .full-width {
    grid-column: auto;
  }

  .page-head, .archived-notice, .archive-project, .project-leader, .list-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head {
    gap: 1rem;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-view-toggle, .projects-toolbar > .button {
    width: 100%;
  }

  .projects-view-toggle .button {
    flex: 1;
  }

  .profile-menu-summary span {
    display: none;
  }

  .header-user {
    padding-left: .75rem;
  }

  .card {
    padding: 1.125rem;
  }

  .task-card-head {
    flex-direction: column;
  }

  .task-summary-link, .task-summary-list li, .workstream-health-head, .task-summary-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-owner {
    text-align: left;
    min-width: 0;
  }

  .task-materials {
    grid-template-columns: 1fr;
  }

  .task-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-shell {
    flex-direction: column;
    display: flex;
  }

  .auth-brand {
    min-height: 18rem;
    padding: 1.5rem;
  }

  .auth-brand:before {
    width: 14rem;
  }

  .auth-brand h1 {
    font-size: 2rem;
  }

  .auth-intro {
    display: none;
  }

  .auth-panel {
    min-height: 31rem;
    padding: 1.5rem .75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    min-height: 8rem;
    padding: 1.25rem 0;
  }

  .footer-inner nav {
    margin-left: 0;
  }

  .public-back-link {
    font-size: 0;
  }

  .public-back-link svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .legal-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-card:first-child, .contact-card:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/