:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f3f5fb;
  --line: rgba(208, 217, 230, .92);
  --line-strong: rgba(180, 194, 214, .98);
  --text: #0a1730;
  --muted: #556982;
  --navy: #163a9b;
  --navy-2: #2456c7;
  --cyan: #69b8ff;
  --green: #0f8f66;
  --danger: #c54b58;
  --warning: #e3981b;
  --shadow-sm: 0 8px 22px rgba(16, 24, 40, .06);
  --shadow: 0 14px 40px rgba(16, 24, 40, .08);
  --radius: 30px;
  --radius-sm: 22px;
  --sidebar-w: 244px;
}

.commerce-shell {
  display: grid;
  gap: 18px;
}

.commerce-page-head {
  align-items: flex-start;
  gap: 16px;
}

.commerce-page-head p {
  max-width: 820px;
}

.commerce-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}

.commerce-main,
.commerce-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.commerce-card,
.commerce-filter-card {
  padding: 22px;
}

.commerce-filter-card .stack-form,
.commerce-card .stack-form {
  gap: 14px;
}

.commerce-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.commerce-table td strong,
.commerce-table td small {
  display: block;
}

.commerce-table td small {
  margin-top: 4px;
  color: var(--muted, #667792);
  line-height: 1.3;
}

.commerce-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commerce-card--items {
  gap: 18px;
}

.commerce-item-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commerce-item-list {
  display: grid;
  gap: 14px;
}

.commerce-item-row {
  border: 1px solid rgba(88, 122, 214, .18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(240, 246, 255, .92));
  padding: 18px;
  box-shadow: 0 18px 38px rgba(23, 46, 97, .07);
}

.commerce-item-row[data-item-type="group"] {
  background: linear-gradient(180deg, rgba(239, 245, 255, .98), rgba(230, 238, 255, .94));
}

.commerce-item-row-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.commerce-item-row-type {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 12px;
  flex: 1;
}

.commerce-item-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.commerce-item-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.commerce-item-field {
  display: grid;
  gap: 6px;
  grid-column: span 2;
}

.commerce-item-field--article,
.commerce-item-field--work-rate {
  grid-column: span 3;
}

.commerce-item-field--title {
  grid-column: span 6;
}

.commerce-item-field--description {
  grid-column: 1 / -1;
}

.commerce-item-total {
  grid-column: span 2;
  border: 1px solid rgba(88, 122, 214, .14);
  background: rgba(255, 255, 255, .72);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  align-content: center;
}

.commerce-item-total span {
  font-size: .75rem;
  color: var(--muted, #667792);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.commerce-item-total strong {
  font-size: 1.02rem;
  color: var(--navy, #162956);
}

.commerce-item-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(214, 156, 64, .34);
  background: rgba(255, 239, 205, .78);
  color: #855b00;
  font-weight: 700;
}

.commerce-summary-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.commerce-summary-grid > label {
  display: grid;
  gap: 6px;
}

.commerce-summary-card {
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.commerce-summary-card span {
  font-size: .75rem;
  color: var(--muted, #667792);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.commerce-summary-card strong {
  font-size: 1.16rem;
  color: var(--navy, #162956);
}

.commerce-summary-card--accent {
  background: linear-gradient(180deg, rgba(48, 74, 170, .98), rgba(88, 122, 214, .95));
  border-color: transparent;
}

.commerce-summary-card--accent span,
.commerce-summary-card--accent strong {
  color: #fff;
}

.commerce-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.commerce-action-stack {
  display: grid;
  gap: 10px;
}

.commerce-action-stack form,
.commerce-action-stack .btn,
.commerce-action-stack button {
  width: 100%;
}

.commerce-payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commerce-payment-summary > div {
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 18px;
  background: rgba(248, 251, 255, .92);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.commerce-payment-summary span {
  font-size: .74rem;
  color: var(--muted, #667792);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.commerce-payment-summary strong {
  font-size: 1.05rem;
  color: var(--navy, #162956);
}

.commerce-version-list {
  display: grid;
  gap: 10px;
}

.commerce-version-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 18px;
  background: rgba(248, 251, 255, .92);
}

.commerce-version-item strong,
.commerce-version-item small {
  display: block;
}

.commerce-version-item small {
  margin-top: 4px;
  color: var(--muted, #667792);
}

.commerce-hero-card,
.commerce-editor-hero {
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(88, 122, 214, .14);
  background:
    radial-gradient(circle at top right, rgba(117, 196, 255, .14), transparent 38%),
    linear-gradient(180deg, rgba(248, 251, 255, .99), rgba(241, 246, 255, .95));
}

.commerce-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: center;
}

.commerce-hero-copy {
  display: grid;
  gap: 10px;
}

.commerce-hero-copy h3 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.08;
}

.commerce-hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted, #667792);
  line-height: 1.55;
}

.commerce-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commerce-metric-card {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 16px 32px rgba(20, 40, 92, .05);
}

.commerce-metric-card span {
  font-size: .74rem;
  color: var(--muted, #667792);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.commerce-metric-card strong {
  font-size: 1.28rem;
  color: var(--navy, #162956);
  line-height: 1.05;
}

.commerce-metric-card small {
  color: var(--muted, #667792);
  font-size: .8rem;
  line-height: 1.35;
}

.commerce-metric-card.is-accent {
  background: linear-gradient(180deg, rgba(48, 74, 170, .98), rgba(88, 122, 214, .95));
  border-color: transparent;
}

.commerce-metric-card.is-accent span,
.commerce-metric-card.is-accent strong,
.commerce-metric-card.is-accent small {
  color: #fff;
}

.commerce-metric-card.is-warn {
  background: linear-gradient(180deg, rgba(255, 248, 232, .98), rgba(255, 239, 206, .94));
  border-color: rgba(214, 156, 64, .26);
}

.commerce-toolbar-card {
  border: 1px solid rgba(88, 122, 214, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.92));
}

.commerce-table-panel {
  border: 1px solid rgba(88, 122, 214, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.94));
  min-width: 0;
}

.commerce-card--editor {
  border: 1px solid rgba(88, 122, 214, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,255,.95));
}

.commerce-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.commerce-inline-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(43, 66, 175, .07);
  color: var(--navy, #162956);
  font-size: .76rem;
  font-weight: 800;
}

.commerce-inline-metrics span.is-warn {
  background: rgba(255, 239, 206, .92);
  color: #855b00;
}

.commerce-item-toolbar--segmented {
  padding: 6px;
  border-radius: 999px;
  background: rgba(43, 66, 175, .06);
  border: 1px solid rgba(88, 122, 214, .12);
}

.commerce-item-toolbar--segmented .btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(88, 122, 214, .16);
}

.commerce-item-toolbar--segmented .btn:hover {
  background: rgba(241, 246, 255, .96);
}

.commerce-layout--workspace {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .88fr);
}

.commerce-side--sticky {
  position: sticky;
  top: 92px;
}

.commerce-section-stack {
  display: grid;
  gap: 18px;
}

.commerce-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.commerce-status-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(88, 122, 214, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
}

.commerce-status-card span,
.commerce-record-meta-label,
.commerce-data-label {
  font-size: .74rem;
  color: var(--muted, #667792);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.commerce-status-card strong {
  font-size: 1.24rem;
  color: var(--navy, #162956);
  line-height: 1;
}

.commerce-status-card small {
  color: var(--muted, #667792);
  line-height: 1.35;
}

.commerce-status-card.is-accent {
  background: linear-gradient(180deg, rgba(48, 74, 170, .98), rgba(88, 122, 214, .95));
  border-color: transparent;
}

.commerce-status-card.is-warn {
  background: linear-gradient(180deg, rgba(255, 248, 232, .98), rgba(255, 239, 206, .94));
  border-color: rgba(214, 156, 64, .26);
}

.commerce-status-card.is-accent span,
.commerce-status-card.is-accent strong,
.commerce-status-card.is-accent small {
  color: #fff;
}

.commerce-record-list {
  display: grid;
  gap: 14px;
}

.commerce-record-card {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(88, 122, 214, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,255,.94));
  box-shadow: 0 18px 38px rgba(23, 46, 97, .06);
}

.commerce-record-card.is-muted {
  opacity: .82;
}

.commerce-record-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.commerce-record-title {
  display: grid;
  gap: 6px;
}

.commerce-record-title strong {
  font-size: 1.2rem;
  color: var(--navy, #162956);
  line-height: 1.08;
}

.commerce-record-title p {
  margin: 0;
  color: var(--muted, #667792);
  line-height: 1.45;
}

.commerce-record-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.commerce-record-meta-card {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255,255,255,.82);
}

.commerce-record-meta-value {
  color: var(--navy, #162956);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.commerce-record-meta-note {
  color: var(--muted, #667792);
  line-height: 1.35;
  font-size: .84rem;
}

.commerce-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.commerce-record-actions-left,
.commerce-record-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.commerce-record-stack {
  display: grid;
  gap: 12px;
}

.commerce-note-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(88, 122, 214, .18);
  background: rgba(246, 249, 255, .84);
}

.commerce-note-card strong {
  display: block;
  color: var(--navy, #162956);
  margin-bottom: 4px;
}

.commerce-note-card p {
  margin: 0;
  color: var(--muted, #667792);
  line-height: 1.45;
}

.commerce-booking-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.commerce-booking-mode-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255,255,255,.86);
}

.commerce-booking-mode-card.is-selected {
  border-color: rgba(48, 74, 170, .36);
  background: linear-gradient(180deg, rgba(234,240,255,.98), rgba(223,232,255,.94));
}

.commerce-booking-mode-card strong {
  color: var(--navy, #162956);
}

.commerce-booking-mode-card small {
  color: var(--muted, #667792);
  line-height: 1.35;
}

.commerce-selected-summary {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(88, 122, 214, .14);
  background: rgba(248,251,255,.9);
}

.commerce-selected-summary strong {
  color: var(--navy, #162956);
  font-size: 1rem;
}

.commerce-selected-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commerce-selected-summary-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(88, 122, 214, .12);
}

.commerce-reorder-groups {
  display: grid;
  gap: 18px;
}

.commerce-reorder-group {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(88, 122, 214, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.94));
}

.commerce-reorder-group-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.commerce-reorder-group-head strong {
  color: var(--navy, #162956);
  font-size: 1.08rem;
}

.commerce-reorder-group-head p {
  margin: 4px 0 0;
  color: var(--muted, #667792);
}

.commerce-reorder-item-list {
  display: grid;
  gap: 10px;
}

.commerce-reorder-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(90px, .5fr));
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(88, 122, 214, .1);
}

.commerce-reorder-item-main strong,
.commerce-reorder-item-main small {
  display: block;
}

.commerce-reorder-item-main small {
  margin-top: 4px;
  color: var(--muted, #667792);
}

.commerce-reorder-stat {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.commerce-reorder-stat strong {
  color: var(--navy, #162956);
}

@media (max-width: 1180px) {
  .sidebar-usercard {
    display: none;
  }

  .commerce-hero-grid {
    grid-template-columns: 1fr;
  }

  .commerce-layout--workspace {
    grid-template-columns: 1fr;
  }

  .commerce-side--sticky {
    position: static;
  }

  .commerce-record-meta-grid,
  .commerce-selected-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-reorder-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .commerce-hero-card,
  .commerce-editor-hero {
    padding: 20px;
  }

  .commerce-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-hero-copy h3 {
    font-size: 1.46rem;
  }

  .commerce-record-card,
  .commerce-reorder-group {
    padding: 18px;
    border-radius: 20px;
  }

  .commerce-record-head,
  .commerce-reorder-group-head,
  .commerce-record-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .commerce-record-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .commerce-metric-grid {
    grid-template-columns: 1fr;
  }

  .commerce-item-toolbar--segmented {
    border-radius: 22px;
  }

  .commerce-inline-metrics {
    gap: 6px;
  }

  .commerce-status-strip,
  .commerce-record-meta-grid,
  .commerce-selected-summary-grid,
  .commerce-booking-mode-grid,
  .commerce-reorder-item {
    grid-template-columns: 1fr;
  }

  .commerce-record-actions-left,
  .commerce-record-actions-right {
    width: 100%;
  }

  .commerce-record-actions-left .btn,
  .commerce-record-actions-right .btn {
    width: 100%;
    justify-content: center;
  }
}

.admin-permission-groups {
  display: grid;
  gap: 14px;
}

.admin-permission-card {
  border: 1px solid rgba(88, 122, 214, .16);
  border-radius: 20px;
  background: rgba(247, 250, 255, .95);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin-permission-list {
  display: grid;
  gap: 10px;
}

.admin-permission-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.admin-permission-line span {
  font-weight: 700;
  color: var(--navy, #162956);
}

.admin-permission-line select {
  width: min(220px, 100%);
}

.commerce-pdf-source {
  display: none;
}

/* Commerce UI uplift */
.commerce-shell--document,
.commerce-shell--catalog,
.commerce-shell--operations,
.commerce-shell--pipeline,
.commerce-shell--reorder {
  gap: 22px;
}

.commerce-shell [id^="offer-"],
.commerce-shell [id^="invoice-"],
.commerce-shell [id^="commerce-items-"] {
  scroll-margin-top: 108px;
}

.commerce-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(241, 246, 255, .96), rgba(255, 255, 255, .98));
  box-shadow:
    0 16px 40px rgba(21, 40, 96, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.commerce-anchor-nav::before {
  content: "";
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 122, 214, .2), rgba(88, 122, 214, .95));
}

.commerce-anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--navy, #162956);
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.commerce-anchor-link:hover,
.commerce-anchor-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 122, 214, .28);
  background: rgba(244, 248, 255, .98);
  box-shadow: 0 10px 24px rgba(48, 74, 170, .12);
}

.commerce-layout--document {
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, .92fr);
  align-items: start;
}

.commerce-canvas,
.commerce-document-form {
  display: grid;
  gap: 20px;
}

.commerce-card--document-section,
.commerce-inspector-panel,
.commerce-shell--catalog .commerce-card--editor,
.commerce-shell--catalog .commerce-table-panel,
.commerce-shell--operations .commerce-card,
.commerce-shell--pipeline .commerce-card,
.commerce-shell--reorder .commerce-note-card,
.commerce-shell--reorder .commerce-reorder-group {
  border: 1px solid rgba(88, 122, 214, .14);
  background:
    linear-gradient(180deg, rgba(246, 249, 255, .96), rgba(255, 255, 255, .98));
  box-shadow:
    0 20px 48px rgba(21, 40, 96, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.commerce-card--document-section,
.commerce-inspector-panel {
  padding: 24px;
  border-radius: 28px;
}

.commerce-card--document-section > .section-head,
.commerce-inspector-panel > .section-head,
.commerce-shell--catalog .commerce-card--editor > .section-head,
.commerce-shell--catalog .commerce-table-panel > .section-head,
.commerce-shell--operations .commerce-card > .section-head,
.commerce-shell--pipeline .commerce-card > .section-head {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(88, 122, 214, .12);
}

.commerce-section-copy {
  color: var(--muted, #667792);
  line-height: 1.6;
}

.commerce-section-copy p {
  margin: 0;
  max-width: 74ch;
}

.commerce-field-cluster {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(240, 245, 255, .72), rgba(255, 255, 255, .96));
}

.commerce-cluster-head {
  display: grid;
  gap: 4px;
}

.commerce-cluster-head strong {
  color: var(--navy, #162956);
  font-size: 1rem;
}

.commerce-cluster-head small {
  color: var(--muted, #667792);
  line-height: 1.45;
}

.commerce-layout--document .commerce-side,
.commerce-side--editor-rail {
  gap: 16px;
}

.commerce-inspector-panel .commerce-action-stack {
  gap: 12px;
}

.commerce-inspector-panel .commerce-version-list {
  gap: 12px;
}

.commerce-inspector-panel .commerce-version-item {
  padding: 14px 16px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}

.commerce-inspector-panel .commerce-payment-summary > div,
.commerce-card--document-section .commerce-summary-card,
.commerce-card--document-section .commerce-summary-grid > label {
  background: rgba(255, 255, 255, .9);
}

.commerce-card--items {
  padding: 24px;
}

.commerce-card--items .section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(88, 122, 214, .12);
}

.commerce-item-list {
  gap: 16px;
}

.commerce-item-row {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, .98), rgba(255, 255, 255, .98));
  box-shadow:
    0 14px 34px rgba(21, 40, 96, .06),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.commerce-item-row-head {
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(88, 122, 214, .1);
}

.commerce-item-row-actions .btn {
  min-height: 40px;
  padding-inline: 14px;
}

.commerce-item-grid {
  gap: 12px 14px;
}

.commerce-item-field input,
.commerce-item-field select,
.commerce-item-field textarea,
.commerce-summary-grid > label input {
  background: rgba(255, 255, 255, .94);
}

.commerce-item-total {
  min-height: 92px;
  justify-content: space-between;
  background: rgba(255, 255, 255, .9);
}

.commerce-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.commerce-summary-grid > label,
.commerce-summary-card {
  min-height: 100px;
  align-content: space-between;
}

.commerce-shell--pipeline .commerce-record-list {
  gap: 16px;
}

.commerce-shell--pipeline .commerce-record-card {
  padding: 22px;
  border-radius: 26px;
}

.commerce-shell--pipeline .commerce-record-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 24px 54px rgba(21, 40, 96, .1),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.commerce-shell--pipeline .commerce-record-head {
  align-items: flex-start;
  justify-content: space-between;
}

.commerce-shell--pipeline .commerce-record-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(88, 122, 214, .1);
}

.commerce-toolbar-card--filter-rail,
.commerce-note-card--workflow {
  border-radius: 26px;
}

.commerce-toolbar-card--filter-rail {
  position: sticky;
  top: 92px;
}

.commerce-note-card--workflow {
  background:
    linear-gradient(180deg, rgba(236, 243, 255, .98), rgba(255, 255, 255, .98));
}

.commerce-shell--catalog .commerce-layout--workspace {
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, .9fr);
}

.commerce-shell--articles .commerce-layout--workspace {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
}

.commerce-shell--catalog .commerce-table-panel,
.commerce-shell--catalog .commerce-card--editor {
  border-radius: 28px;
}

.commerce-shell--catalog .commerce-table td {
  vertical-align: top;
}

.commerce-shell--catalog .commerce-table tbody tr {
  transition: background .16s ease, transform .16s ease;
}

.commerce-shell--catalog .commerce-table tbody tr:hover {
  background: rgba(241, 246, 255, .74);
}

.commerce-toolbar-card--compact {
  border-radius: 24px;
}

.commerce-shell--operations .commerce-layout--operations {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .95fr);
  align-items: start;
}

.commerce-card--operation-focus {
  padding: 22px;
  border-radius: 26px;
}

.commerce-shell--operations .commerce-selected-summary {
  padding: 16px 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(240, 245, 255, .72), rgba(255, 255, 255, .96));
}

.commerce-shell--operations .commerce-booking-mode-card {
  text-align: left;
  padding: 16px;
  border-radius: 20px;
}

.commerce-shell--operations .commerce-table-panel,
.commerce-shell--operations .commerce-inspector-panel {
  border-radius: 28px;
}

.commerce-shell--reorder .commerce-reorder-group {
  padding: 20px;
  border-radius: 26px;
}

.commerce-shell--reorder .commerce-reorder-item {
  padding: 14px 16px;
  border: 1px solid rgba(88, 122, 214, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
}

@media (max-width: 1180px) {
  .commerce-layout--document,
  .commerce-shell--catalog .commerce-layout--workspace,
  .commerce-shell--operations .commerce-layout--operations {
    grid-template-columns: 1fr;
  }

  .commerce-toolbar-card--filter-rail {
    position: static;
  }
}

@media (max-width: 1500px) {
  .commerce-shell--articles .commerce-layout--workspace {
    grid-template-columns: 1fr;
  }

  .commerce-shell--articles .commerce-side--sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .commerce-anchor-nav::before {
    width: 48px;
  }

  .commerce-anchor-link {
    min-height: 38px;
    padding-inline: 14px;
    font-size: .92rem;
  }

  .commerce-card--document-section,
  .commerce-inspector-panel,
  .commerce-card--items,
  .commerce-shell--pipeline .commerce-record-card,
  .commerce-shell--reorder .commerce-reorder-group {
    padding: 18px;
    border-radius: 22px;
  }

  .commerce-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .commerce-anchor-nav {
    padding: 12px;
    gap: 8px;
  }

  .commerce-anchor-link {
    width: 100%;
    justify-content: center;
  }

  .commerce-summary-grid {
    grid-template-columns: 1fr;
  }
}

.commerce-pdf-document {
  color: #132446;
}

.commerce-pdf-table {
  width: 100%;
  border-collapse: collapse;
}

.commerce-pdf-table th,
.commerce-pdf-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(24, 46, 96, .14);
  vertical-align: top;
  text-align: left;
}

.commerce-pdf-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5f7496;
}

.commerce-pdf-table-group td {
  background: rgba(224, 234, 255, .72);
  font-weight: 800;
}

.commerce-pdf-table tfoot th {
  font-weight: 800;
}

.project-file-stack > .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1180px) {
  .commerce-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .commerce-card,
  .commerce-filter-card {
    padding: 18px;
  }

  .commerce-item-row {
    padding: 16px;
    border-radius: 20px;
  }

  .commerce-item-row-head,
  .commerce-item-row-type {
    grid-template-columns: 1fr;
  }

  .commerce-item-row-head {
    flex-direction: column;
  }

  .commerce-item-row-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .commerce-item-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .commerce-item-field--article,
  .commerce-item-field--work-rate,
  .commerce-item-field--title,
  .commerce-item-field--description,
  .commerce-item-total {
    grid-column: 1 / -1;
  }

  .commerce-item-field {
    grid-column: span 3;
  }

  .commerce-summary-grid,
  .commerce-payment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-permission-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-permission-line select {
    width: 100%;
  }

  .commerce-version-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .commerce-top-actions,
  .commerce-filter-actions,
  .commerce-form-actions {
    justify-content: stretch;
  }

  .commerce-top-actions .btn,
  .commerce-filter-actions .btn,
  .commerce-form-actions .btn,
  .commerce-item-toolbar .btn,
  .commerce-row-actions .btn,
  .commerce-version-item .btn {
    width: 100%;
    justify-content: center;
  }

  .commerce-item-grid,
  .commerce-summary-grid,
  .commerce-payment-summary {
    grid-template-columns: 1fr;
  }

  .commerce-item-field {
    grid-column: 1 / -1;
  }

  .commerce-page-head {
    gap: 12px;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36,86,199,.09), transparent 26%),
    radial-gradient(circle at top right, rgba(0,147,208,.08), transparent 22%),
    linear-gradient(180deg, #fafcff 0%, var(--bg) 42%, #eef3fb 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }
label { display: grid; gap: 8px; }
label span { color: var(--muted); font-size: .88rem; font-weight: 700; }
h1, h2, h3, h4, p { margin-top: 0; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  box-shadow: 0 14px 30px rgba(22,58,155,.18);
}
.btn-outline {
  color: var(--text);
  border-color: var(--line-strong);
  background: #fff;
}
.btn-block {
  width: 100%;
}
.btn-hero {
  width: 100%;
  min-height: 60px;
  font-size: 1rem;
  letter-spacing: 0;
}
.btn.is-loading {
  pointer-events: none;
  opacity: .92;
}
.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}

.eyebrow,
.section-kicker,
.topbar-kicker,
.nav-label,
.support-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .74rem;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.86);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--shadow-sm);
}
.sidebar-brand img {
  width: 82px;
  flex: 0 0 auto;
}

.sidebar-usercard {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(221, 229, 241, .74);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,250,255,.86));
}

.sidebar-useravatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(48, 74, 170, .14), rgba(88, 122, 214, .18));
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .03em;
}

.sidebar-usercopy {
  min-width: 0;
}

.sidebar-usercopy strong,
.sidebar-usercopy span {
  display: block;
}

.sidebar-usercopy strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.15;
}

.sidebar-usercopy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
}

.sidebar-nav { display: grid; gap: 18px; margin-top: 18px; }
.nav-group { display: grid; gap: 10px; }
.nav-group a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #2a3f5f;
  font-weight: 700;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}
.nav-group a:hover { border-color: var(--line); background: rgba(255,255,255,.82); }
.nav-group a.active {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  box-shadow: 0 14px 30px rgba(22,58,155,.18);
}

.nav-group--collapsible {
  gap: 8px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(208, 217, 230, .92);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
  color: #2a3f5f;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.nav-group-toggle:hover {
  border-color: var(--line);
  background: rgba(255,255,255,.82);
}

.nav-group-toggle.active {
  color: var(--navy);
  border-color: rgba(88, 122, 214, .22);
  background: linear-gradient(180deg, rgba(244,248,255,.98), rgba(233,241,255,.92));
}

.nav-group-toggle-text {
  flex: 1;
}

.nav-group-toggle-title {
  flex: 1;
  min-width: 0;
}

.nav-group-toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex: 0 0 auto;
}

.nav-group--collapsible.is-open .nav-group-toggle-icon {
  transform: rotate(225deg);
}

.nav-group-links {
  display: grid;
  gap: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(88, 122, 214, .12);
  margin-left: 6px;
}

.nav-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d809c;
}

.nav-link-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (min-width: 1181px) {
  .sidebar {
    overflow-y: auto;
    padding: 18px 18px 24px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,255,.92));
    box-shadow: inset -1px 0 0 rgba(11,32,66,.05);
  }

  .sidebar-brand {
    border-radius: 24px;
    box-shadow: 0 14px 28px rgba(19, 36, 70, .05);
  }

  .sidebar-nav {
    gap: 22px;
    margin-top: 18px;
    padding-bottom: 8px;
  }

  .nav-group {
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-group + .nav-group {
    padding-top: 18px;
    border-top: 1px solid rgba(207, 216, 231, .54);
  }

  .nav-label {
    padding: 0 6px 6px;
    color: #7b8da7;
    letter-spacing: .1em;
    font-size: .73rem;
    line-height: 1;
  }

  .nav-group a,
  .nav-group-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 15px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  }

  .nav-group a {
    background: transparent;
    border: 1px solid transparent;
    color: #324764;
    box-shadow: none;
  }

  .nav-group a:not(.active) {
    font-weight: 760;
  }

  .nav-group a:hover,
  .nav-group-toggle:hover {
    transform: translateY(-1px);
    background: rgba(241, 246, 255, .88);
    border-color: rgba(214, 223, 238, .54);
  }

  .nav-group a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #6f7cff, #5754e5);
    box-shadow: 0 14px 30px rgba(87, 84, 229, .28);
  }

  .nav-group a.active .nav-link-icon {
    color: #fff;
  }

  .nav-group-toggle--section {
    min-height: auto;
    padding: 0 4px 6px;
    gap: 10px;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #627690;
    transform: none;
  }

  .nav-group-toggle--section:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
  }

  .nav-group-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .nav-label--button {
    padding: 0;
    color: #7b8da7;
    font-size: .73rem;
    letter-spacing: .1em;
  }

  .nav-group-toggle--section .nav-link-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: #6c80a0;
  }

  .nav-group-toggle--section .nav-link-icon svg {
    width: 16px;
    height: 16px;
  }

  .nav-group-toggle--section.active .nav-label--button,
  .nav-group-toggle--section.active .nav-link-icon {
    color: var(--navy);
  }

  .nav-group-links {
    gap: 4px;
    margin: 0 0 0 10px;
    padding: 4px 0 0 14px;
    border-left-width: 1px;
    border-left-color: rgba(95, 123, 194, .16);
  }

  .nav-group-links a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: .9rem;
  }

  .nav-group-links a.active {
    box-shadow: 0 12px 24px rgba(87, 84, 229, .2);
  }
}

.nav-text--short,
.tab-text--short {
  display: none;
}

.app-main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(11,32,66,.08);
  background: rgba(246,247,251,.82);
  backdrop-filter: blur(18px);
}
.topbar h1 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.05;
}

.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-title-row h1 {
  margin: 0;
}

.topbar-title-separator {
  color: rgba(17,34,66,.34);
  font-weight: 700;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ghost-link { color: var(--muted); font-weight: 700; }
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line);
}
.user-pill--profile-link {
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.user-pill--profile-link:hover,
.user-pill--profile-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 122, 214, .26);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,255,.94));
  box-shadow: 0 14px 28px rgba(22, 58, 155, .12);
}
.user-pill--profile-link:focus-visible {
  outline: 0;
}
.user-pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  background: linear-gradient(180deg, rgba(48, 74, 170, .14), rgba(88, 122, 214, .18));
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .03em;
}

.user-pill-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.user-pill-copy strong,
.user-pill-copy span {
  display: block;
}

.user-pill-copy strong {
  line-height: 1.1;
}

.user-pill-copy span {
  color: var(--muted);
  font-size: .82rem;
}

.profile-shell {
  display: grid;
  gap: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.profile-card {
  padding: 22px;
}

.profile-card--wide {
  grid-column: 1 / -1;
}

.profile-info-grid strong {
  font-size: 1.02rem;
}

.profile-signature-card {
  overflow: hidden;
}

.profile-signature-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  max-width: 620px;
}

.profile-signature-preview-card,
.profile-signature-meta div {
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(243,247,255,.92));
}

.profile-signature-preview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.profile-signature-preview-label,
.profile-signature-meta span {
  font-size: .74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.profile-signature-preview {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(88, 122, 214, .22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.92));
}

.profile-signature-preview img {
  max-width: 100%;
  max-height: 164px;
  object-fit: contain;
}

.profile-signature-preview p,
.profile-signature-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-signature-form {
  gap: 10px;
}

.profile-signature-actions {
  justify-content: flex-start;
}

.content-shell {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.dashboard-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  gap: 20px;
  align-items: start;
}

.focus-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(22,34,114,.98), rgba(43,66,175,.95) 62%, rgba(110,161,255,.74));
}

.focus-card::after {
  content: "";
  position: absolute;
  right: -94px;
  bottom: -104px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 72%);
  pointer-events: none;
}

.focus-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.focus-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 1.9vw, 2.05rem);
  line-height: 1.02;
}

.focus-head p {
  margin: 10px 0 0;
  max-width: 38ch;
  color: rgba(255,255,255,.86);
  font-size: .95rem;
  line-height: 1.45;
}

.focus-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.focus-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  font-size: .76rem;
  font-weight: 800;
}

.focus-date-chip.strong {
  background: rgba(255,181,40,.18);
  border-color: rgba(255,181,40,.26);
  color: #ffd889;
}

.focus-stage {
  display: grid;
  gap: 12px;
}

.focus-stage-top {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-stage-main {
  display: grid;
  grid-template-columns: 232px minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.focus-stage-project,
.focus-stage-support {
  grid-column: 1 / -1;
}

.focus-stage-project,
.focus-stage-support {
  display: grid;
}

.focus-inline-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.focus-inline-metric span,
.focus-inline-metric small {
  display: block;
  color: rgba(255,255,255,.70);
}

.focus-inline-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  color: #fff;
}

.focus-orbit-shell {
  display: grid;
  place-items: center;
  align-self: start;
  padding: 6px 0 0;
}

.focus-orbit {
  --progress: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(#ffb528 0 var(--progress), rgba(255,255,255,.12) var(--progress) 100%);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.04);
}

.focus-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(49,78,188,.84), rgba(8,18,52,.96));
  box-shadow: inset 0 0 0 6px rgba(7,18,54,.50);
}

.focus-orbit-inner {
  position: absolute;
  z-index: 1;
  inset: 15px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(110,151,255,.24), rgba(8,18,52,.94));
  border: 1px solid rgba(255,255,255,.08);
  box-sizing: border-box;
}

.focus-orbit-inner span {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 700;
}

.focus-orbit-inner small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.66);
  font-size: .74rem;
}

.focus-control-panel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.focus-punch-panel {
  display: grid;
  gap: 12px;
}

.focus-link {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.focus-link:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
}

.focus-status-banner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.focus-status-banner.is-active {
  background: linear-gradient(135deg, rgba(40,168,104,.22), rgba(255,255,255,.10));
  border-color: rgba(88,224,170,.26);
}

.focus-status-banner.is-paused {
  background: linear-gradient(135deg, rgba(255,188,77,.22), rgba(255,255,255,.10));
  border-color: rgba(255,214,122,.30);
}

.focus-project-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(160, 217, 255, .44);
  background:
    radial-gradient(circle at top right, rgba(180, 226, 255, .26), transparent 34%),
    linear-gradient(135deg, rgba(43, 120, 255, .34), rgba(15, 67, 197, .28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 30px rgba(10, 36, 98, .18);
}

.focus-project-live-copy {
  display: grid;
  gap: 4px;
}

.focus-project-live-copy strong {
  font-size: 1.04rem;
  line-height: 1.15;
}

.focus-project-live-copy small {
  color: rgba(255,255,255,.78);
  font-size: .8rem;
}

.focus-status-copy {
  display: grid;
  gap: 4px;
}

.focus-status-kicker {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.focus-status-copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.focus-status-copy small {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  line-height: 1.4;
}

.focus-status-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.focus-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}

.focus-status-tag.warning {
  color: #10203d;
  background: rgba(255,214,122,.96);
  border-color: rgba(255,214,122,.96);
}

.focus-status-tag.info {
  background: rgba(214, 237, 255, .2);
  border-color: rgba(184, 226, 255, .34);
  color: #fff;
}

.focus-timer-display {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: 0;
  margin-top: 8px;
}

.focus-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.status-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

.status-pill.active::before,
.status-pill.idle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
}

.status-pill.active::before { background: #58e0aa; }
.status-pill.idle::before { background: #d9e4f4; }

.meta-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
}

.meta-pill.warning {
  color: #10203d;
  background: rgba(255,214,122,.96);
  border-color: rgba(255,214,122,.96);
}

.focus-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.focus-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.focus-primary-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.focus-primary-actions--dashboard {
  grid-template-columns: repeat(3, minmax(190px, 220px));
  justify-content: start;
}

.focus-primary-actions--live {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

.focus-primary-actions form,
.focus-primary-actions a,
.focus-secondary-actions a,
.focus-primary-actions .quick-punch-form {
  display: grid;
}

.focus-primary-actions--dashboard .action-card,
.focus-primary-actions--live .action-card {
  min-height: 84px;
}

.focus-primary-actions--dashboard .action-card-label,
.focus-primary-actions--live .action-card-label {
  font-size: 1rem;
}

.focus-primary-actions--dashboard .action-card-meta,
.focus-primary-actions--live .action-card-meta {
  font-size: .74rem;
}

.focus-secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-support-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.focus-live-bar,
.focus-project-standby {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.focus-live-copy {
  display: grid;
  gap: 4px;
}

.focus-live-kicker {
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.focus-live-copy strong,
.focus-project-standby strong {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.2;
}

.focus-live-copy small,
.focus-project-standby small {
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  line-height: 1.42;
}

.focus-live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.focus-live-actions form {
  display: grid;
}

.focus-live-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 800;
}

.focus-live-action-stop {
  border-color: rgba(255,114,147,.28);
  background: linear-gradient(135deg, #b2415e, #8e3260);
}

.focus-project-copy {
  margin: 5px 0 0;
  color: #556982;
  font-size: .88rem;
  line-height: 1.45;
  max-width: 62ch;
}

.focus-support-kicker {
  color: rgba(255,255,255,.62);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.focus-actions form,
.focus-actions a {
  display: grid;
}

.action-card {
  min-height: 74px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  box-shadow: none;
}

.action-card.is-wide {
  grid-column: 1 / -1;
}

.action-card.is-compact {
  min-height: 78px;
  padding: 14px 18px;
  border-radius: 18px;
}

.action-card .action-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
}

.action-card .action-card-icon svg {
  width: 20px;
  height: 20px;
}

.action-card-copy {
  display: grid;
  gap: 4px;
}

.action-card-label {
  display: block;
  font-size: .84rem;
  font-weight: 900;
}

.action-card-meta {
  display: block;
  color: inherit;
  opacity: .82;
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.25;
}

.action-card-start {
  border-color: rgba(17,199,117,.30);
  background: linear-gradient(135deg, #2e8658, #49b774);
}

.action-card-stop {
  border-color: rgba(255,114,147,.28);
  background: linear-gradient(135deg, #b2415e, #8e3260);
}

.action-card-pause {
  color: #15233f;
  border-color: rgba(255,181,40,.26);
  background: linear-gradient(135deg, #f0b94a, #db9b2d);
}

.action-card-pause .action-card-icon {
  background: rgba(21,35,63,.10);
}

.action-card-detail,
.action-card-neutral {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.action-card.is-disabled {
  opacity: .62;
  cursor: not-allowed;
}

.action-shortcut {
  min-height: 58px;
  padding: 9px 12px;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.94);
  text-align: left;
  box-shadow: none;
}

.action-shortcut-title {
  display: block;
  font-size: .76rem;
  font-weight: 900;
}

.action-shortcut-copy {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.68);
  font-size: .64rem;
  line-height: 1.35;
}

.focus-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.mini-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.mini-stat {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow-sm);
}

.mini-stat.full {
  grid-column: 1 / -1;
}

.mini-stat span,
.mini-stat small {
  display: block;
  color: var(--muted);
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.14rem;
  line-height: 1;
}

.mini-stat small {
  margin-top: 6px;
  font-size: .8rem;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compact-card {
  padding: 22px;
}

.day-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.day-breakdown div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,245,251,.88));
}

.day-breakdown span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.day-breakdown strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.week-mini-list {
  display: grid;
  gap: 10px;
}

.week-mini-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,245,251,.86));
}

.week-mini-row strong,
.week-mini-row span {
  min-width: 0;
}

.week-mini-row span {
  color: var(--text);
  font-weight: 700;
}

.hero-card,
.card,
.guest-card {
  border-radius: 32px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 20px;
  padding: 28px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,86,199,.14), transparent 70%);
  pointer-events: none;
}
.hero-card h2 { margin: 8px 0 0; font-size: clamp(2rem, 3vw, 3rem); line-height: .98; }
.hero-card p { margin: 16px 0 0; max-width: 58ch; color: var(--muted); }
.hero-metrics {
  display: grid;
  gap: 12px;
}
.hero-metrics div {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line);
}
.hero-metrics strong { display: block; font-size: 1.4rem; }
.hero-metrics span { color: var(--muted); font-size: .9rem; }

.card { padding: 24px; }
.metric-card strong { display: block; margin-top: 8px; font-size: 1.7rem; }
.metric-card span, .metric-card small { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.admin-hub {
  display: grid;
  gap: 24px;
}

.admin-shell {
  display: grid;
  gap: 22px;
}

.admin-shell--compact {
  gap: 18px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.admin-topbar h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
}

.admin-topbar p {
  margin: 10px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}

.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,247,255,.92));
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.admin-tab-link:hover {
  transform: translateY(-1px);
}

.admin-tab-link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 55%, var(--cyan));
}

.admin-tab-nav--slim {
  gap: 8px;
}

.admin-tab-link--slim {
  min-height: 38px;
  padding: 0 14px;
  font-size: .92rem;
  box-shadow: none;
}

.admin-stage-layout {
  display: grid;
  grid-template-columns: minmax(290px, .84fr) minmax(0, 1.16fr);
  gap: 22px;
  align-items: start;
}

.admin-side-stack,
.admin-main-stack {
  display: grid;
  gap: 18px;
}

.admin-side-card,
.admin-panel-card,
.admin-hero-card {
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.admin-side-card--glow::after,
.admin-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,66,175,.14), transparent 70%);
  pointer-events: none;
}

.admin-side-card h3,
.admin-panel-card h3,
.admin-hero-card h3 {
  margin: 6px 0 0;
  font-size: 1.38rem;
}

.admin-side-card p,
.admin-hero-card p,
.admin-panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.audit-panel-card {
  gap: 22px;
}

.versioning-shell {
  gap: 20px;
}

.versioning-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 30px;
}

.versioning-banner--dev {
  background:
    radial-gradient(circle at top left, rgba(101, 224, 175, .24), transparent 48%),
    linear-gradient(180deg, rgba(242, 255, 249, .96), rgba(255, 255, 255, .98));
}

.versioning-banner--live {
  background:
    radial-gradient(circle at top left, rgba(255, 167, 122, .24), transparent 46%),
    linear-gradient(180deg, rgba(255, 247, 242, .96), rgba(255, 255, 255, .98));
}

.versioning-banner-copy h3,
.versioning-history-card h3,
.versioning-card h3 {
  margin: 4px 0 0;
}

.versioning-banner-copy p {
  margin: 10px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}

.versioning-banner-meta {
  min-width: 260px;
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.versioning-banner-meta strong {
  font-size: 1.06rem;
}

.versioning-banner-meta small {
  color: var(--muted);
}

.versioning-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.versioning-card,
.versioning-history-card {
  display: grid;
  gap: 16px;
  border-radius: 28px;
}

.versioning-version-copy {
  display: grid;
  gap: 8px;
}

.versioning-version-copy strong {
  font-size: 1.02rem;
}

.versioning-version-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.versioning-version-copy small,
.versioning-card small {
  color: var(--muted);
}

.versioning-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.versioning-status-badge--success,
.versioning-status-badge--dev {
  color: #16684e;
  background: rgba(218, 247, 234, .96);
}

.versioning-status-badge--warning {
  color: #8a6115;
  background: rgba(255, 239, 191, .96);
}

.versioning-status-badge--danger,
.versioning-status-badge--live {
  color: #8b2f1d;
  background: rgba(255, 228, 214, .96);
}

.versioning-status-badge--neutral {
  color: #4d6285;
  background: rgba(236, 242, 255, .94);
}

.versioning-metric-grid,
.versioning-git-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.versioning-metric {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(88, 122, 214, .12);
  background:
    linear-gradient(180deg, rgba(243, 247, 255, .84), rgba(255, 255, 255, .98));
}

.versioning-metric span,
.versioning-target-list span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.versioning-metric strong,
.versioning-target-list strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.versioning-target-list {
  display: grid;
  gap: 10px;
}

.versioning-target-list div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(247, 250, 255, .8);
  border: 1px solid rgba(88, 122, 214, .1);
}

.versioning-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 16px;
}

.versioning-history-grid h4 {
  margin: 0 0 12px;
}

.versioning-history-list {
  display: grid;
  gap: 12px;
}

.versioning-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(88, 122, 214, .1);
  background: rgba(255, 255, 255, .9);
}

.versioning-history-item--full {
  display: grid;
  gap: 12px;
  align-items: start;
}

.versioning-history-item strong {
  display: block;
}

.versioning-history-item small {
  color: var(--muted);
}

.versioning-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.versioning-target-list--history {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.versioning-pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: #0f1d34;
  color: #f5f7fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
  line-height: 1.5;
  overflow-x: auto;
}

.audit-limit-form label {
  min-width: 128px;
}

.audit-log-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  max-height: 72vh;
  overflow: hidden;
}

.audit-log-list {
  display: grid;
  gap: 0;
  max-height: 72vh;
  overflow-y: auto;
  padding: 8px;
}

.audit-log-row {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
}

.audit-log-row + .audit-log-row {
  border-top: 1px solid rgba(43,66,175,.08);
}

.audit-log-row:hover {
  background: rgba(43,66,175,.04);
}

.logging-filter-form {
  align-items: end;
}

.logging-tabs {
  margin-bottom: 18px;
}

.audit-log-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logging-detail-stack {
  display: grid;
  gap: 12px;
}

.logging-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.logging-detail-grid--payload {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logging-detail-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(43,66,175,.08);
  background: rgba(248, 251, 255, .92);
}

.logging-detail-item span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.logging-detail-item strong {
  color: var(--navy);
  font-size: .94rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.logging-detail-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(43,66,175,.16);
  color: var(--muted);
  background: rgba(255,255,255,.8);
}

.audit-log-meta,
.audit-log-copy {
  display: grid;
  gap: 4px;
}

.audit-log-meta strong,
.audit-log-copy strong {
  font-size: 1rem;
  color: var(--navy);
}

.audit-log-meta span,
.audit-log-copy span {
  color: var(--muted);
  font-size: .93rem;
}

.audit-log-details {
  border-top: 1px dashed rgba(43,66,175,.12);
  padding-top: 12px;
}

.audit-log-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
  list-style: none;
}

.audit-log-details summary::-webkit-details-marker {
  display: none;
}

.audit-log-json + .audit-log-json {
  margin-top: 10px;
}

.audit-log-json small {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.audit-log-json pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 22, 52, .94);
  color: #e6edff;
  font-size: .82rem;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 900px) {
  .logging-detail-grid,
  .logging-detail-grid--payload {
    grid-template-columns: 1fr;
  }

  .audit-log-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-chip,
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(43,66,175,.14);
  background: rgba(43,66,175,.08);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-chip.is-positive {
  border-color: rgba(46, 168, 109, .18);
  background: rgba(46, 168, 109, .12);
  color: #187a47;
}

.admin-chip--danger {
  border-color: rgba(197, 75, 88, .18);
  background: rgba(197, 75, 88, .12);
  color: #9e2938;
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-check-list {
  display: grid;
  gap: 10px;
}

.admin-check-list span {
  position: relative;
  padding-left: 20px;
  font-weight: 700;
  color: var(--text);
}

.admin-check-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--cyan));
}

.admin-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.admin-metric-grid,
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-tile,
.admin-stat-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.admin-metric-tile span,
.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.admin-metric-tile strong,
.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.52rem;
}

.admin-metric-tile small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-grid--compact {
  margin-top: 4px;
}

.admin-mini-list {
  display: grid;
  gap: 12px;
}

.admin-mini-list--models {
  gap: 14px;
}

.admin-mini-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.9));
}

.admin-mini-row span,
.admin-mini-row small {
  color: var(--muted);
  font-size: .82rem;
}

.admin-mini-row strong {
  font-size: 1rem;
}

.admin-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.admin-model-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-model-copy strong {
  font-size: 1rem;
}

.admin-model-copy span,
.admin-model-copy small {
  color: var(--muted);
}

.admin-model-copy span {
  font-weight: 700;
}

.admin-model-row form {
  display: grid;
  flex: 0 0 auto;
}

.admin-section-form {
  gap: 18px;
}

.admin-form-chunk {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,255,.92));
}

.admin-form-chunk-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-form-chunk-head strong {
  font-size: 1rem;
}

.admin-form-chunk-head small {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.45;
}

.admin-form-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-form-footer p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.5;
}

.admin-lock-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(197, 75, 88, .18);
  background: linear-gradient(180deg, rgba(255, 246, 247, .98), rgba(255, 236, 239, .94));
}

.admin-lock-note strong {
  color: #9e2938;
  font-size: .96rem;
}

.admin-lock-note small {
  color: #7b4250;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-setting-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.admin-setting-label {
  color: var(--navy);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-setting-card strong {
  font-size: .92rem;
  color: var(--text-soft);
}

.admin-setting-card small {
  min-height: 40px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  margin-top: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.admin-user-card summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.admin-user-card[open] summary {
  background: rgba(248,250,255,.92);
}

.admin-user-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-summary-main strong {
  font-size: 1.02rem;
}

.admin-user-summary-main small {
  color: var(--muted);
}

.admin-user-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-user-card .stack-form {
  padding: 18px 20px 20px;
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-users-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-users-directory-card,
.admin-users-stage-card {
  display: grid;
  gap: 18px;
}

.admin-users-directory-list {
  display: grid;
  gap: 10px;
}

.admin-user-groups {
  display: grid;
  gap: 16px;
}

.admin-user-group-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.94));
}

.admin-user-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-group-head h4 {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.admin-users-layout--single .admin-users-directory-card {
  max-width: none;
}

.admin-user-tile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.admin-user-tile-main {
  display: grid;
  gap: 4px;
}

.admin-user-tile-main strong {
  font-size: 1.02rem;
}

.admin-user-tile-main small {
  color: var(--muted);
}

.admin-user-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-user-tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  justify-self: end;
}

.admin-user-tile-hours {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10,18,37,.52);
  backdrop-filter: blur(8px);
}

.admin-user-modal.is-open {
  display: grid;
}

.admin-user-dialog {
  width: min(920px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(11,32,66,.08);
  box-shadow: 0 30px 80px rgba(8,17,35,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,251,255,.97));
}

.admin-user-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1280px) {
  .admin-stage-layout {
    grid-template-columns: 1fr;
  }

  .admin-users-layout {
    grid-template-columns: 1fr;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-topbar,
  .admin-hero-head,
  .admin-form-footer,
  .admin-user-card summary,
  .admin-form-chunk-head,
  .admin-user-dialog-head,
  .admin-user-tile-actions,
  .admin-user-group-head {
    flex-direction: column;
    align-items: start;
  }

  .admin-user-summary-meta,
  .admin-user-tile-meta {
    justify-content: flex-start;
  }

  .admin-user-tile {
    grid-template-columns: 1fr;
  }

  .admin-user-tile-actions {
    justify-self: start;
  }

  .admin-settings-grid,
  .admin-stat-grid,
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-form .form-row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-tab-link {
    flex: 0 0 auto;
  }

  .admin-settings-grid,
  .admin-stat-grid,
  .admin-metric-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-form .form-row,
  .admin-section-form .form-row.two,
  .admin-section-form .form-row.three {
    grid-template-columns: 1fr;
  }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h3 { margin: 6px 0 0; font-size: 1.35rem; }
.section-head.small-gap { margin-bottom: 12px; }

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.list-grid div,
.team-pill {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,245,251,.9));
}
.list-grid span,
.team-pill span { display: block; color: var(--muted); font-size: .85rem; }
.list-grid strong,
.team-pill strong { display: block; margin-top: 6px; font-size: 1.15rem; }

.stack-list { display: grid; gap: 12px; }
.list-row {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,245,251,.86));
}
.list-row p { margin: 6px 0 0; color: var(--muted); }
.list-row--actionable {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.list-row-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.list-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.list-row-actions form { margin: 0; }

.timer-card {
  background: linear-gradient(180deg, rgba(18,33,109,.98), rgba(34,48,136,.95) 62%, rgba(58,128,198,.88));
  color: #fff;
  min-height: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.timer-card .section-kicker,
.timer-card .timer-subline { color: rgba(255,255,255,.78); }

.timer-card.is-project-running {
  background:
    radial-gradient(circle at top right, rgba(171, 221, 255, .34), transparent 26%),
    radial-gradient(circle at 18% 86%, rgba(55, 164, 255, .26), transparent 32%),
    linear-gradient(145deg, rgba(6,23,88,.995), rgba(8,47,138,.985) 48%, rgba(26,96,211,.95) 78%, rgba(70,156,247,.9));
}

.timer-card.is-project-running::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07), transparent 22%, transparent 78%, rgba(255,255,255,.05)),
    radial-gradient(circle at center, transparent 0, transparent 54%, rgba(255,255,255,.04) 100%);
}
.timer-display {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: .02em;
}
.timer-subline { margin-top: 8px; }

.stack-form { display: grid; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-full { grid-column: 1 / -1; }
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.check-line input {
  width: auto;
  margin: 0;
}

.button-row,
.inline-form,
.quick-links,
.auth-foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.quick-links a,
.auth-foot a { color: var(--navy); font-weight: 700; }
.time-action-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.quick-punch-form {
  display: grid;
}
.time-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.save-hint {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-size: .76rem;
  line-height: 1.4;
}
.card .save-hint,
.card .details-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.details-card {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
}
.details-card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--text);
}
.details-card summary::-webkit-details-marker {
  display: none;
}
.details-card[open] summary {
  border-bottom: 1px solid var(--line);
}
.details-card .stack-form {
  padding: 16px;
}
.dashboard-more {
  margin-top: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}
.dashboard-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-more summary span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}
.dashboard-more summary small {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 16px 16px;
}
.dashboard-secondary-grid--worker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-full-span {
  grid-column: 1 / -1;
}
.sync-feedback {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
  max-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(7,22,45,.18);
  background: rgba(10,23,48,.94);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sync-feedback.show {
  opacity: 1;
  transform: translateY(0);
}
.sync-feedback.success {
  background: rgba(15,143,102,.96);
}
.sync-feedback.warning {
  background: rgba(227,152,27,.96);
  color: #10203d;
}
.sync-feedback.danger {
  background: rgba(197,75,88,.96);
}
.sync-feedback.neutral {
  background: rgba(10,23,48,.94);
}

.break-list { display: grid; gap: 8px; }
.break-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(73, 102, 199, 0.08);
  background: rgba(245, 248, 255, 0.56);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-table.compact th,
.data-table.compact td { padding: 10px 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}
.alert.success {
  color: #0b5a41;
  background: rgba(15,143,102,.12);
  border-color: rgba(15,143,102,.18);
}
.alert.danger {
  color: #7c2430;
  background: rgba(197,75,88,.12);
  border-color: rgba(197,75,88,.18);
}
.alert ul { margin: 8px 0 0 18px; padding: 0; }

.empty-state,
.inline-warning {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}
.inline-warning {
  border: 1px solid rgba(227,152,27,.18);
  background: rgba(227,152,27,.10);
  color: #8a5b05;
}

.team-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.approval-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.approval-form input {
  min-width: 220px;
  flex: 1 1 220px;
}

.divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.guest-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.guest-shell {
  width: min(560px, 100%);
  display: grid;
}
.guest-card { padding: 28px; }
.guest-logo-lockup {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.guest-logo-lockup img {
  width: min(220px, 62%);
  height: auto;
}
.auth-head h2 { margin: 8px 0 0; font-size: 2rem; }
.auth-head p { color: var(--muted); margin: 12px 0 0; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.project-shell {
  display: grid;
  gap: 12px;
  width: min(100%, 1380px);
}

.project-hero-card,
.project-list-card,
.project-create-card,
.project-panel-card,
.project-sidebar-card,
.project-hours-card,
.project-open-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
}

.project-hero-card::after,
.project-list-card::after,
.project-panel-card::after,
.project-sidebar-card::after,
.project-open-card::after {
  content: "";
  position: absolute;
  right: -112px;
  bottom: -112px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,86,199,.08), transparent 72%);
  pointer-events: none;
}

.project-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 280px;
  gap: 20px;
  padding: 22px 24px;
}

.project-hero-card h2 {
  margin: 8px 0 0;
  max-width: 12ch;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.02;
}

.project-hero-card p {
  margin: 12px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.75;
}

.project-hero-stats {
  display: grid;
  gap: 12px;
}

.project-hero-stats div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--shadow-sm);
}

.project-hero-stats span {
  display: block;
  color: var(--muted);
}

.project-hero-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.project-list-card,
.project-create-card,
.project-hours-card,
.project-panel-card,
.project-sidebar-card,
.project-open-card {
  padding: 14px 16px;
}

.project-panel-card[data-project-step-panel="acceptance"] > a.btn.btn-outline,
.project-panel-card[data-project-step-panel="customer"] > a.btn.btn-outline {
  display: none;
}

.project-list-head {
  align-items: center;
  gap: 12px;
}

.project-list-head h3,
.project-open-head h3,
.project-create-summary strong {
  font-size: 1.15rem;
  line-height: 1.12;
}

.project-overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.project-overview-actions .project-create-toggle {
  min-height: 42px;
  padding-inline: 18px;
  border-color: rgba(41, 71, 213, .34);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 26px rgba(18, 34, 78, .08);
}

.project-list-card {
  max-width: 1380px;
}

.project-overview-picker {
  animation: subtle-rise .22s ease both;
}

.project-focus-shell {
  animation: subtle-rise .22s ease both;
}

.project-empty-selection {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(88, 122, 214, .14);
  background:
    radial-gradient(circle at 95% 0%, rgba(105, 184, 255, .12), transparent 32%),
    rgba(255, 255, 255, .92);
}

@keyframes subtle-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.project-master-detail-shell {
  gap: 18px;
  align-items: start;
}

.project-master-detail-overview,
.project-master-detail-detail {
  min-width: 0;
}

.project-overview {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.project-overview-toolbar {
  justify-content: space-between;
}

.project-overview-tabs-shell {
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(88,122,214,.14);
  background: linear-gradient(180deg, rgba(237,243,255,.96), rgba(255,255,255,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.project-overview-shell {
  gap: 16px;
}

.project-overview-list-region {
  gap: 14px;
  padding-top: 4px;
}

.project-overview-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-overview-modebar {
  padding: 5px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(238, 243, 255, .94), rgba(255, 255, 255, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.project-overview-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.92);
  color: #2a3f5f;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.project-overview-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.project-overview-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
}

.project-overview-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(11,32,66,.08);
  color: inherit;
  font-size: .76rem;
  font-weight: 900;
}

.project-overview-tab.is-active span {
  background: rgba(255,255,255,.16);
}

.project-overview-panel {
  display: grid;
  gap: 12px;
}

.project-overview-status-groups {
  display: grid;
  gap: 18px;
}

.project-status-section {
  display: grid;
  gap: 8px;
}

.project-status-section + .project-status-section {
  padding-top: 12px;
  border-top: 1px solid rgba(113, 133, 171, .16);
}

.project-status-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-inline: 2px;
}

.project-status-section-head span,
.project-status-section-head small {
  display: block;
}

.project-status-section-head span {
  color: #10203d;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-status-section-head small {
  margin-top: 2px;
  color: #667792;
  font-size: .78rem;
  line-height: 1.35;
}

.project-status-section-head strong {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #2036ad;
  background: rgba(41, 71, 213, .08);
  font-size: .78rem;
}

.project-status-section--scheduled .project-status-section-head strong {
  color: #855b00;
  background: rgba(255, 239, 206, .92);
}

.project-status-section--accepted .project-status-section-head strong {
  color: #087052;
  background: rgba(218, 247, 236, .9);
}

.project-status-section-empty {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(88, 122, 214, .18);
  color: #71809a;
  font-size: .88rem;
}

.project-search-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-search-field {
  flex: 1 1 360px;
}

.project-search-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.88);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.project-compact-list {
  display: grid;
  gap: 8px;
}

.project-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 24%, var(--phase-soft, rgba(246,250,255,.92)) 100%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
  transition: .18s ease;
}

.project-compact-row > *,
.dashboard-project-row > * {
  position: relative;
  z-index: 1;
}

.project-compact-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.project-compact-row.is-selected {
  border-color: var(--phase-border-strong, rgba(32,55,156,.24));
  box-shadow: 0 12px 26px rgba(11,32,66,.08);
}

.project-compact-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.project-compact-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-compact-top strong {
  font-size: .95rem;
  line-height: 1.3;
}

.project-compact-code {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(11,32,66,.06);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.project-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.project-compact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-compact-meta span:not(:last-child)::after {
  content: "·";
  color: rgba(85,105,130,.5);
}

.project-compact-side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(11,32,66,.08);
}

.project-phase-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 92px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: left;
}

.project-phase-no {
  color: inherit;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.project-phase-badge strong {
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.project-phase-badge.phase-recorded {
  border-color: rgba(140,75,0,.14);
  background: rgba(140,75,0,.08);
  color: #8c4b00;
}

.project-phase-badge.phase-recorded .project-phase-no,
.project-phase-badge.phase-recorded strong {
  color: #8c4b00;
}

.project-phase-badge.phase-offer {
  border-color: rgba(165,91,0,.14);
  background: rgba(165,91,0,.08);
  color: #a55b00;
}

.project-phase-badge.phase-offer .project-phase-no,
.project-phase-badge.phase-offer strong {
  color: #a55b00;
}

.project-phase-badge.phase-commissioned {
  border-color: rgba(184,107,0,.14);
  background: rgba(184,107,0,.08);
  color: #b86b00;
}

.project-phase-badge.phase-commissioned .project-phase-no,
.project-phase-badge.phase-commissioned strong {
  color: #b86b00;
}

.project-phase-badge.phase-scheduled {
  border-color: rgba(201,122,0,.16);
  background: rgba(201,122,0,.1);
  color: #c97a00;
}

.project-phase-badge.phase-scheduled .project-phase-no,
.project-phase-badge.phase-scheduled strong {
  color: #c97a00;
}

.project-phase-badge.phase-accepted {
  border-color: rgba(214,152,23,.18);
  background: rgba(214,152,23,.1);
  color: #b67600;
}

.project-phase-badge.phase-accepted .project-phase-no,
.project-phase-badge.phase-accepted strong {
  color: #b67600;
}

.project-phase-badge.phase-customer-sent {
  border-color: rgba(23,119,121,.16);
  background: rgba(23,119,121,.08);
  color: #177779;
}

.project-phase-badge.phase-customer-sent .project-phase-no,
.project-phase-badge.phase-customer-sent strong {
  color: #177779;
}

.project-phase-badge.phase-invoiced {
  border-color: rgba(17,105,109,.16);
  background: rgba(17,105,109,.08);
  color: #11696d;
}

.project-phase-badge.phase-invoiced .project-phase-no,
.project-phase-badge.phase-invoiced strong {
  color: #11696d;
}

.project-phase-badge.phase-payment {
  border-color: rgba(10,93,82,.16);
  background: rgba(10,93,82,.08);
  color: #0a5d52;
}

.project-phase-badge.phase-payment .project-phase-no,
.project-phase-badge.phase-payment strong {
  color: #0a5d52;
}

.project-phase-badge.phase-completed {
  border-color: rgba(15,111,73,.16);
  background: rgba(15,111,73,.09);
  color: #0f6f49;
}

.project-phase-badge.phase-completed .project-phase-no,
.project-phase-badge.phase-completed strong {
  color: #0f6f49;
}

.btn.is-disabled,
.btn[disabled] {
  opacity: .58;
  cursor: not-allowed;
}

.project-edit-link {
  min-width: 108px;
  min-height: 40px;
}

.project-create-toggle,
.project-delete-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.project-create-panel {
  max-width: 1020px;
}

.project-create-panel-head {
  align-items: center;
}

.project-create-close {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.project-create-form {
  margin-top: 12px;
}

.project-create-form .grid.cols-3,
.project-create-form .grid.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-create-form .form-full {
  grid-column: 1 / -1;
}

.project-open-card--structured {
  padding: 16px 18px;
  border-radius: 26px;
}

.project-open-card--structured::after {
  width: 160px;
  height: 160px;
}

.project-open-head {
  display: grid;
  gap: 14px;
}

.project-open-head--structured {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

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

.project-open-title {
  min-width: 0;
}

.project-open-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.project-open-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-open-controlbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.project-back-link {
  white-space: nowrap;
}

.project-detail-header-card {
  padding: 18px 20px;
  border-radius: 28px;
}

.project-detail-header {
  gap: 18px;
}

.project-detail-header-actions {
  justify-content: flex-end;
}

.project-detail-tabs-shell {
  margin-top: 2px;
}

.project-detail-tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 4px 4px 2px;
}

.project-detail-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.9);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.project-detail-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(41,86,194,.18);
  color: var(--navy);
}

.project-detail-tab-btn.is-active {
  border-color: rgba(41,86,194,.24);
  background: linear-gradient(135deg, #2f56d6, #6f8eff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(41,86,194,.2);
}

.project-detail-tab-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.project-detail-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}

.project-detail-summary-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 20px;
  min-height: 118px;
}

.project-detail-summary-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--navy);
}

.project-detail-summary-card > span:not(.section-kicker) {
  display: block;
  color: var(--muted);
}

.project-detail-summary-card > small {
  display: block;
  color: var(--muted);
}

.project-detail-summary-card .project-status-line {
  margin-top: auto;
}

.project-detail-overview-panel,
.project-detail-workflow-panel,
.project-detail-acceptance-panel,
.project-detail-billing-panel {
  align-items: start;
}

.project-detail-secondary-grid,
.project-detail-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-detail-dispatch-card {
  background: linear-gradient(180deg, rgba(244,248,255,.96), rgba(255,255,255,.94));
}

.project-detail-dispatch-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-commerce-module {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-commerce-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(88,122,214,.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244,248,255,.96), rgba(255,255,255,.92));
}

.project-commerce-actions span {
  color: var(--muted);
  font-weight: 700;
}

.project-intake-text-grid {
  display: grid;
  gap: 18px;
}

.project-intake-text-grid textarea {
  min-height: 128px;
}

.project-mail-attachment-option {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(88,122,214,.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244,248,255,.96), rgba(255,255,255,.92));
}

.project-protocol-offer-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(88,122,214,.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(247, 250, 255, .98), rgba(255, 255, 255, .94));
  box-shadow: 0 18px 44px rgba(25, 43, 86, .08);
}

.project-protocol-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-protocol-offer-top > div {
  display: grid;
  gap: 4px;
}

.project-protocol-offer-top strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.project-protocol-offer-top small {
  color: var(--muted);
}

.project-protocol-offer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-protocol-offer-check,
.project-protocol-offer-message,
.project-protocol-offer-form .btn {
  grid-column: 1 / -1;
}

.project-protocol-offer-message textarea {
  min-height: 92px;
}

.project-mail-attachment-hint {
  padding: 12px 14px;
  border: 1px dashed rgba(88,122,214,.28);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(244,248,255,.68);
  font-weight: 750;
}

.project-commerce-modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-commerce-modal[hidden] {
  display: none;
}

.project-commerce-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 42, .58);
  backdrop-filter: blur(10px);
}

.project-commerce-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1560px, 96vw);
  height: min(960px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(213,224,242,.95);
  border-radius: 28px;
  background: #eef4ff;
  box-shadow: 0 36px 120px rgba(7, 16, 42, .34);
}

.project-commerce-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(213,224,242,.9);
  background: rgba(255,255,255,.94);
}

.project-commerce-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.project-commerce-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.project-commerce-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-commerce-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #eef4ff;
}

.project-panel-card[data-project-detail-state] {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.project-panel-card[data-project-detail-state].is-step-current {
  border-color: rgba(41,86,194,.22);
  box-shadow: 0 20px 34px rgba(41,86,194,.14);
  transform: translateY(-1px);
}

.project-panel-card[data-project-detail-state].is-step-muted {
  border-color: rgba(11,32,66,.08);
}

.project-detail-time-panel {
  align-self: start;
}

.project-detail-time-panel > .project-hours-card {
  margin: 0;
}

.project-rollback-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: linear-gradient(180deg, rgba(247, 250, 255, .96), rgba(255,255,255,.92));
}

.project-rollback-select {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.project-rollback-select span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-rollback-select select {
  min-height: 38px;
  border-radius: 12px;
}

.project-rollback-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}

.project-inline-status,
.project-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.project-inline-status,
.project-status-chip {
  border: 1px solid rgba(11,32,66,.08);
  background: #fff;
  color: var(--muted);
}

.project-status-chip.stage {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
}

.dashboard-project-progress {
  display: grid;
  gap: 14px;
}

.dashboard-project-list {
  display: grid;
  gap: 10px;
}

.dashboard-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(11,32,66,.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 28%, var(--phase-soft, rgba(247,251,255,.94)) 100%),
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0));
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dashboard-project-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-project-main strong {
  color: var(--text);
}

.dashboard-project-main span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.project-compact-row.phase-recorded,
.dashboard-project-row.phase-recorded {
  --phase-soft: rgba(140,75,0,.12);
  --phase-border-strong: rgba(140,75,0,.3);
  border-color: rgba(140,75,0,.14);
}

.project-compact-row.phase-offer,
.dashboard-project-row.phase-offer {
  --phase-soft: rgba(165,91,0,.12);
  --phase-border-strong: rgba(165,91,0,.3);
  border-color: rgba(165,91,0,.14);
}

.project-compact-row.phase-commissioned,
.dashboard-project-row.phase-commissioned {
  --phase-soft: rgba(184,107,0,.13);
  --phase-border-strong: rgba(184,107,0,.3);
  border-color: rgba(184,107,0,.14);
}

.project-compact-row.phase-scheduled,
.dashboard-project-row.phase-scheduled {
  --phase-soft: rgba(201,122,0,.14);
  --phase-border-strong: rgba(201,122,0,.32);
  border-color: rgba(201,122,0,.16);
}

.project-compact-row.phase-accepted,
.dashboard-project-row.phase-accepted {
  --phase-soft: rgba(214,152,23,.14);
  --phase-border-strong: rgba(214,152,23,.32);
  border-color: rgba(214,152,23,.18);
}

.project-compact-row.phase-customer-sent,
.dashboard-project-row.phase-customer-sent {
  --phase-soft: rgba(23,119,121,.12);
  --phase-border-strong: rgba(23,119,121,.3);
  border-color: rgba(23,119,121,.16);
}

.project-compact-row.phase-invoiced,
.dashboard-project-row.phase-invoiced {
  --phase-soft: rgba(17,105,109,.12);
  --phase-border-strong: rgba(17,105,109,.3);
  border-color: rgba(17,105,109,.16);
}

.project-compact-row.phase-payment,
.dashboard-project-row.phase-payment {
  --phase-soft: rgba(10,93,82,.12);
  --phase-border-strong: rgba(10,93,82,.32);
  border-color: rgba(10,93,82,.16);
}

.project-compact-row.phase-completed,
.dashboard-project-row.phase-completed {
  --phase-soft: rgba(15,111,73,.13);
  --phase-border-strong: rgba(15,111,73,.32);
  border-color: rgba(15,111,73,.16);
}

.project-live-panel,
.focus-project-strip {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.focus-project-strip {
  margin-top: 2px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,255,.90));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.focus-project-strip.is-priority {
  padding: 26px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(58,122,228,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,255,.94));
  box-shadow: 0 18px 36px rgba(16,34,84,.12), inset 0 1px 0 rgba(255,255,255,.55);
  min-height: 252px;
}

.focus-project-strip.is-priority .project-live-list.compact {
  gap: 12px;
}

.focus-project-strip.is-priority .project-live-active {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(236,244,255,.98), rgba(246,250,255,.94));
}

.focus-project-strip.is-priority .project-live-card {
  padding: 22px;
  border-radius: 20px;
}

.focus-project-strip.is-priority .project-live-phase-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-project-strip.is-priority .project-phase-action {
  width: 100%;
  min-width: 0;
  min-height: 52px;
}

.focus-project-strip .section-kicker {
  color: #556982;
}

.focus-project-strip h3 {
  color: var(--text);
  margin: 4px 0 0;
  font-size: 1.42rem;
  line-height: 1.1;
}

.project-live-list {
  display: grid;
  gap: 12px;
}

.project-live-list.compact {
  gap: 12px;
}

.project-live-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(11,32,66,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(7,22,45,.07);
}

.project-live-card.is-overdue {
  border-color: rgba(185,60,46,.18);
  background: linear-gradient(180deg, rgba(255,248,247,.98), rgba(255,240,238,.94));
}

.project-live-card.is-current {
  border-color: rgba(26,127,100,.18);
  background: linear-gradient(180deg, rgba(246,255,251,.98), rgba(236,250,245,.94));
}

.project-live-card.is-recent {
  border-color: rgba(161,103,22,.18);
  background: linear-gradient(180deg, rgba(255,251,244,.98), rgba(252,243,227,.94));
}

.project-live-card.is-imminent,
.project-live-card.is-today,
.project-live-card.is-upcoming {
  border-color: rgba(201,122,0,.18);
  background: linear-gradient(180deg, rgba(255,251,244,.98), rgba(255,246,232,.94));
}

.project-live-card-head,
.project-live-card-title,
.project-live-active,
.project-live-active-side,
.project-live-card-meta,
.project-live-phase-row {
  display: flex;
}

.project-live-card-head,
.project-live-active {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-live-card-title,
.project-live-card-meta {
  gap: 8px;
  flex-wrap: wrap;
}

.project-live-card-head > div,
.project-live-active-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-live-card strong,
.project-live-active strong {
  color: var(--text);
}

.project-live-card-title strong {
  font-size: 1.14rem;
  line-height: 1.2;
}

.project-live-card-meta {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.project-live-card-customer {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.project-live-card-customer span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}

.project-live-card-customer strong {
  color: #3f5471;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-live-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  background: rgba(11,32,66,.08);
  color: var(--text);
}

.project-live-chip.is-active,
.project-live-chip.is-current {
  background: rgba(26,127,100,.12);
  color: #1a7f64;
}

.project-live-chip.is-recent {
  background: rgba(161,103,22,.12);
  color: #a16716;
}

.project-live-chip.is-overdue {
  background: rgba(185,60,46,.12);
  color: #b93c2e;
}

.project-live-chip.is-imminent,
.project-live-chip.is-today,
.project-live-chip.is-upcoming {
  background: rgba(201,122,0,.12);
  color: #c97a00;
}

.project-live-active {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(32,55,156,.1);
  background: linear-gradient(180deg, rgba(239,244,255,.98), rgba(247,250,255,.94));
  color: var(--text);
}

.project-live-active.compact {
  padding: 12px;
}

.project-live-active-side {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-live-timer {
  min-width: 108px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11,32,66,.06);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
}

.project-live-timer.compact {
  min-width: 92px;
  padding: 8px 10px;
  font-size: .92rem;
}

.project-live-phase-row {
  gap: 8px;
  flex-wrap: wrap;
}

.project-live-phase-row .btn-outline {
  background: #fff;
}

.project-phase-action {
  min-width: 118px;
  min-height: 46px;
}

.focus-project-empty {
  display: grid;
  gap: 8px;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px dashed rgba(32,55,156,.18);
  background: linear-gradient(180deg, rgba(243,248,255,.94), rgba(255,255,255,.96));
  color: var(--text);
}

.focus-project-empty strong {
  font-size: 1rem;
  line-height: 1.35;
}

.focus-project-empty small {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.focus-stage-support {
  gap: 10px;
}

.project-time-phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.project-time-phase-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
}

.project-time-phase-card span {
  color: var(--muted);
  font-size: .8rem;
}

.project-time-phase-card strong {
  font-size: 1.16rem;
  color: var(--text);
}

.project-time-phase-card small {
  color: var(--muted);
}

@media (max-width: 720px) {
  .dashboard-project-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-live-card-head,
  .project-live-active {
    align-items: flex-start;
    flex-direction: column;
  }
}

.project-customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.project-customer-select {
  position: relative;
  display: grid;
  gap: 6px;
}

.project-customer-select [data-project-customer-select] {
  display: none;
}

.project-customer-select [data-project-customer-search] {
  margin-top: 0;
}

.project-customer-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 18;
  display: grid;
  gap: 4px;
  max-height: 260px;
  padding: 8px;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(32,55,156,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,255,.98));
  box-shadow: 0 18px 40px rgba(8,17,35,.14);
}

.project-customer-result {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.project-customer-result:hover,
.project-customer-result:focus-visible {
  background: rgba(32,55,156,.08);
  outline: none;
}

.project-customer-open,
.project-customer-edit,
.project-customer-close {
  min-height: 42px;
  white-space: nowrap;
}

.project-customer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32,55,156,.14);
  background: linear-gradient(180deg, rgba(244,247,255,.96), rgba(255,255,255,.96));
}

.project-customer-summary-copy {
  display: grid;
  gap: 4px;
}

.project-customer-summary-copy strong {
  font-size: .96rem;
  line-height: 1.2;
}

.project-customer-summary-copy span,
.project-customer-dialog-copy {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.project-customer-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 37, .48);
  backdrop-filter: blur(8px);
}

.project-customer-modal.is-open {
  display: grid;
}

.project-customer-dialog {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(11,32,66,.08);
  box-shadow: 0 30px 80px rgba(8, 17, 35, .2);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96));
}

.project-customer-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-customer-dialog-head h3 {
  font-size: 1.05rem;
  line-height: 1.12;
}

.project-customer-dialog-copy {
  margin: -2px 0 2px;
}

.project-customer-grid {
  gap: 12px;
}

.project-customer-dialog-actions {
  justify-content: flex-end;
}

body.modal-open {
  overflow: hidden;
}

.project-panel-head {
  align-items: start;
}

.project-site-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.88);
}

.project-site-switch-copy {
  display: grid;
  gap: 4px;
}

.project-site-switch-copy strong {
  font-size: .94rem;
}

.project-site-switch-copy span {
  color: var(--muted);
  font-size: .84rem;
}

.project-site-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.project-site-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-site-switch-track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(11,32,66,.12);
  transition: .18s ease;
}

.project-site-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(7,22,45,.16);
  transition: .18s ease;
}

.project-site-switch input:checked + .project-site-switch-track {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
}

.project-site-switch input:checked + .project-site-switch-track::after {
  transform: translateX(22px);
}

.project-site-switch-label {
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
}

.project-image-picker {
  position: relative;
  display: grid;
  gap: 10px;
}

.project-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-image-picker-head {
  display: grid;
  gap: 4px;
}

.project-image-picker-head strong {
  font-size: .94rem;
}

.project-image-picker-head span {
  color: var(--muted);
  font-size: .84rem;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 116px));
  gap: 10px;
  justify-content: start;
}

.project-image-tile {
  position: relative;
  display: block;
  width: 116px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.10);
  background: rgba(255,255,255,.92);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(7,22,45,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-image-add {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--navy);
  cursor: pointer;
  border-style: dashed;
  border-color: rgba(11,32,66,.18);
  background: linear-gradient(180deg, rgba(250,252,255,.96), rgba(242,247,252,.96));
}

.project-image-add:hover,
.project-image-existing-tile:hover,
.project-image-preview-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(21,22,123,.22);
  box-shadow: 0 16px 36px rgba(7,22,45,.14);
}

.project-image-add-plus {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(32,55,156,.08);
  font-size: 1.6rem;
  line-height: 1;
}

.project-image-add span:last-child {
  padding: 0 10px;
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

.project-image-existing-tile,
.project-image-preview-tile {
  color: inherit;
  text-decoration: none;
}

.project-image-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-image-existing-tile,
.project-gallery-item {
  cursor: zoom-in;
}

.project-image-existing-tile img,
.project-image-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-caption,
.project-image-preview-tile span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(10,23,48,.72);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(10,23,48,.78);
  color: #fff;
  cursor: pointer;
}

.project-image-delete-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.project-image-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(10,23,48,.84);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8,17,35,.18);
}

.project-image-delete-btn:hover {
  background: #c93d4d;
}

.project-configurator {
  display: grid;
  gap: 10px;
  max-width: 1380px;
}

.project-step-strip {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 9px 10px;
  border-radius: 24px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.9));
  scrollbar-width: thin;
}

.project-step-btn {
  position: relative;
  min-width: 104px;
  max-width: 124px;
  min-height: 70px;
  padding: 8px 9px;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.08);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
  flex: 0 0 auto;
}

.project-step-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.project-step-btn.is-complete {
  border-color: rgba(17,163,111,.22);
  background: linear-gradient(180deg, rgba(245,252,248,.98), rgba(255,255,255,.96));
}

.project-step-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
}

.project-step-btn.is-active.is-complete {
  border-color: transparent;
  background: linear-gradient(135deg, #11825f, #11a36f 58%, #38c69a);
}

.project-step-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #11a36f;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17,163,111,.22);
}

.project-step-btn.is-complete .project-step-check {
  display: inline-flex;
}

.project-step-btn.is-active .project-step-check {
  background: rgba(255,255,255,.18);
  box-shadow: none;
}

.project-step-btn .no,
.project-step-btn .name,
.project-step-btn .status {
  display: block;
}

.project-step-btn .no {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .74;
}

.project-step-btn .name {
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}

.project-step-btn .status {
  display: none;
}

.project-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 14px;
  align-items: start;
}

.project-detail-workspace {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.project-configurator.is-technician .project-config-grid {
  grid-template-columns: minmax(0, 1fr);
}

.project-config-main,
.project-config-sidebar {
  min-width: 0;
}

.project-config-main {
  display: grid;
  gap: 10px;
}

.project-detail-main {
  gap: 14px;
}

.project-detail-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}

.project-detail-sidebar-card {
  display: grid;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 28px;
}

.project-detail-summary-region,
.project-detail-actions-region,
.project-detail-module-region {
  display: grid;
  gap: 14px;
}

.project-technician-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-technician-field > span {
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
}

.project-technician-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.project-technician-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.92);
}

.project-technician-option input {
  margin-top: 2px;
}

.project-technician-option strong,
.project-technician-option small {
  display: block;
}

.project-technician-option small {
  margin-top: 4px;
  color: var(--muted);
}

.project-sidebar-sticky {
  position: sticky;
  top: 92px;
}

.project-panel-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-summary-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.86);
}

.project-summary-box span,
.project-summary-box small,
.project-summary-item span,
.project-file-mini span {
  display: block;
  color: var(--muted);
}

.project-summary-box strong,
.project-summary-item strong,
.project-file-mini strong {
  display: block;
  margin-top: 6px;
}

.project-note-box {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(241,247,254,.84));
}

.project-note-box strong {
  display: block;
  margin-bottom: 8px;
}

.project-note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-intake-reference-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.project-intake-reference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-intake-reference-head h4 {
  margin: 4px 0 0;
  font-size: 1.12rem;
}

.project-intake-reference-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,32,66,.1);
  background: rgba(255,255,255,.82);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-gallery-grid--reference {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-intake-reference-more {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.project-acceptance-form.is-readonly > a.btn.btn-outline[target="_blank"] {
  display: none;
}

.project-acceptance-fieldset.is-readonly {
  position: relative;
  opacity: .48;
  filter: grayscale(.08);
}

.project-acceptance-fieldset.is-readonly::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(231,237,246,.38));
  pointer-events: none;
}

.project-acceptance-readonly-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: -2px;
  padding: 26px 28px 18px;
  border-radius: 24px;
  border: 1px solid rgba(41, 86, 194, .12);
  background: linear-gradient(180deg, rgba(250,252,255,.96), rgba(241,246,253,.92));
  text-align: center;
}

.project-acceptance-readonly-cta h4 {
  margin: 0;
  font-size: 1.55rem;
}

.project-acceptance-readonly-cta p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
}

.project-acceptance-readonly-btn {
  min-width: min(100%, 360px);
  min-height: 54px;
  padding-inline: 28px;
  font-size: 1rem;
}

.project-acceptance-readonly-actions {
  justify-content: center;
}

.project-acceptance-readonly-actions > .btn,
.project-acceptance-readonly-actions > .btn-outline {
  min-width: min(100%, 320px);
  justify-content: center;
}

.project-file-list {
  display: grid;
  gap: 10px;
}

.project-file-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}

.project-file-item:hover {
  transform: translateY(-1px);
  border-color: rgba(36,86,199,.18);
}

.project-file-item-download {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.project-file-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-file-item .project-file-meta {
  color: var(--muted);
  font-size: .84rem;
}

.project-file-item .project-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(36,86,199,.16);
  background: rgba(36,86,199,.06);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery-item {
  display: grid;
  gap: 8px;
}

.project-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: #fff;
}

.project-gallery-item span {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.project-status-line,
.project-file-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.project-summary-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.92);
}

.project-sidebar-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(11,32,66,.08);
}

.project-file-mini {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.92);
}

.project-mobile-upload-hint {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(11,32,66,.08);
  background: linear-gradient(180deg, rgba(238,244,255,.96), rgba(255,255,255,.96));
}

.project-mobile-upload-hint strong {
  font-size: .94rem;
}

.project-mobile-upload-hint span {
  color: var(--muted);
  line-height: 1.6;
}

.project-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-signature-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11,32,66,.08);
  background: rgba(255,255,255,.92);
}

.project-signature-launch {
  text-align: left;
  cursor: pointer;
}

.project-signature-launch[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .68;
}

.project-acceptance-signature-card--customer.is-preview-blocked {
  border-style: dashed;
}

.project-signature-launch.is-signed {
  border-color: rgba(15,143,102,.28);
  background: linear-gradient(180deg, rgba(242,251,247,.98), rgba(255,255,255,.96));
}

.project-signature-launch.is-error {
  border-color: rgba(191,77,62,.36);
  background: linear-gradient(180deg, rgba(255,246,244,.98), rgba(255,255,255,.96));
  box-shadow: 0 0 0 3px rgba(191,77,62,.08);
}

.project-signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-signature-state {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.project-signature-preview {
  border-radius: 14px;
  border: 1px solid rgba(11,32,66,.08);
  background: #fff;
  overflow: hidden;
}

.project-signature-preview img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,252,.92));
}

.project-signature-action {
  color: var(--navy);
  font-size: .84rem;
  font-weight: 800;
}

.project-acceptance-preview-flow {
  margin-top: 4px;
}

.project-acceptance-live-preview {
  display: grid;
  gap: 18px;
}

.project-acceptance-live-preview[hidden] {
  display: none !important;
}

.project-acceptance-live-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-acceptance-live-preview-head h4 {
  margin: 4px 0 0;
  font-size: 1.14rem;
}

.project-acceptance-live-preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(42, 88, 194, .14);
  background: rgba(255,255,255,.82);
  color: #2b5fd1;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-acceptance-live-preview-frame {
  display: grid;
  gap: 20px;
  max-height: 1100px;
  overflow: auto;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(42, 88, 194, .1);
  background:
    linear-gradient(180deg, rgba(247, 250, 255, .98), rgba(239, 245, 255, .92));
}

.project-acceptance-live-preview-frame .project-acceptance-doc--blueprint {
  margin: 0 auto;
  width: min(100%, 1040px);
}

.project-acceptance-live-preview-frame .project-acceptance-sheet {
  margin: 0 auto;
  box-shadow: 0 24px 54px rgba(16, 38, 84, .12);
}

.project-signature-head .btn {
  min-height: 38px;
  padding: 0 12px;
}

.project-signature-card canvas {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 16px;
  border: 1px dashed rgba(11,32,66,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,252,.92));
  touch-action: none;
}

.project-signature-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10,18,37,.58);
  backdrop-filter: blur(8px);
}

.project-signature-modal.is-open {
  display: grid;
}

.project-signature-dialog {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(11,32,66,.08);
  box-shadow: 0 30px 80px rgba(8,17,35,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96));
}

.project-signature-dialog canvas {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 16px;
  border: 1px dashed rgba(11,32,66,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,252,.92));
  touch-action: none;
}

.project-acceptance-pdf-source {
  display: none;
}

.project-acceptance-doc {
  width: 100%;
  max-width: 1040px;
  padding: 34px;
  background: #fff;
  color: #0a1730;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.project-acceptance-doc__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 2px solid #e7eef6;
}

.project-acceptance-doc__head h2 {
  margin: 8px 0 0;
  font-size: 2rem;
}

.project-acceptance-doc__head p {
  margin: 10px 0 0;
  color: #53657f;
}

.project-acceptance-doc__meta {
  display: grid;
  gap: 10px;
}

.project-acceptance-doc__meta div,
.project-acceptance-doc__section {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e7eef6;
  background: #f9fbfe;
}

.project-acceptance-doc__meta span {
  display: block;
  color: #53657f;
}

.project-acceptance-doc__meta strong {
  display: block;
  margin-top: 6px;
}

.project-acceptance-doc__section {
  margin-top: 18px;
}

.project-acceptance-doc__section--gallery {
  background: #fff;
}

.project-acceptance-doc__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.project-acceptance-doc__section-head span {
  color: #53657f;
  font-size: 13px;
  text-align: right;
}

.project-acceptance-doc__section h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.project-acceptance-doc__section p {
  margin: 0;
  color: #31425d;
  line-height: 1.65;
  white-space: pre-line;
}

.project-acceptance-doc__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.project-acceptance-doc__gallery figure {
  margin: 0;
}

.project-acceptance-doc__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e7eef6;
  background: #fff;
}

.project-acceptance-doc__gallery figcaption {
  margin-top: 8px;
  color: #53657f;
  font-size: 12px;
}

.project-acceptance-image-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.project-acceptance-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-acceptance-signatures figure {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7eef6;
  background: #fff;
}

.project-acceptance-signatures figcaption {
  margin-bottom: 10px;
  color: #53657f;
  font-weight: 700;
}

.project-acceptance-signatures img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-bottom: 1px solid #dce5f0;
}

.project-acceptance-signature-meta {
  margin-top: 12px;
}

.project-acceptance-signature-meta span {
  display: block;
  color: #53657f;
  font-size: 12px;
}

.project-acceptance-signature-meta strong {
  display: block;
  margin-top: 4px;
}

.project-acceptance-doc--blueprint {
  display: grid;
  gap: 0;
  max-width: 1040px;
  padding: 0;
  background: #fff;
  color: #17233a;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.project-acceptance-sheet {
  height: 273mm;
  min-height: 273mm;
  max-height: 273mm;
  padding: 18mm 16mm 14mm;
  display: grid;
  gap: 7mm;
  align-content: start;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  break-after: page;
  page-break-after: always;
  break-inside: avoid-page;
  page-break-inside: avoid;
}

.project-acceptance-sheet:last-child {
  break-after: auto;
  page-break-after: auto;
}

.project-acceptance-sheet--cover {
  grid-template-rows: auto auto 1fr auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(48, 104, 213, .12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(124, 177, 255, .18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.98));
}

.project-acceptance-sheet--details {
  grid-template-rows: auto auto auto 1fr auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 153, 255, .12), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(48, 104, 213, .08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,249,255,.98));
}

.project-acceptance-sheet--signatures {
  grid-template-rows: auto 1fr auto;
  height: 273mm;
  min-height: 273mm;
  max-height: 273mm;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(48, 104, 213, .10), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(103, 153, 255, .10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.98));
}

.project-acceptance-cover-top,
.project-acceptance-page-head,
.project-acceptance-panel-head,
.project-acceptance-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-acceptance-brand,
.project-acceptance-cover-main,
.project-acceptance-cover-side,
.project-acceptance-meta-card,
.project-acceptance-panel,
.project-acceptance-signatures--cards figure {
  display: grid;
}

.project-acceptance-brand {
  gap: 8px;
}

.project-acceptance-logo {
  width: 176px;
  height: auto;
  display: block;
  object-fit: contain;
}

.project-acceptance-logo--subpage {
  width: 148px;
  margin-bottom: 10px;
}

.project-acceptance-brand-kicker,
.project-acceptance-overline,
.project-acceptance-page-kicker,
.project-acceptance-panel-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-acceptance-brand-kicker,
.project-acceptance-overline,
.project-acceptance-page-kicker {
  color: #8a97ae;
}

.project-acceptance-cover-top strong {
  color: #1b2438;
  font-size: 16px;
  line-height: 1.15;
}

.project-acceptance-cover-chip,
.project-acceptance-page-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(42, 88, 194, .18);
  background: rgba(255,255,255,.76);
  color: #285bc7;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.project-acceptance-rule {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b5fd1 0%, #4b84e8 48%, rgba(75,132,232,.18) 100%);
}

.project-acceptance-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.project-acceptance-cover-main {
  gap: 14px;
}

.project-acceptance-cover-main h1 {
  margin: 0;
  color: #1c2438;
  font-size: 58px;
  line-height: .96;
  letter-spacing: -.04em;
}

.project-acceptance-cover-project {
  margin: -6px 0 0;
  color: #4e5f79;
  font-size: 20px;
  line-height: 1.35;
}

.project-acceptance-cover-lead {
  margin: 8px 0 0;
  max-width: 34ch;
  color: #4e5f79;
  font-size: 17px;
  line-height: 1.55;
}

.project-acceptance-cover-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.project-acceptance-cover-summary--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.project-acceptance-cover-summary-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(42, 88, 194, .12);
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.project-acceptance-cover-summary-item span {
  color: #7d8ba3;
  font-size: 13px;
}

.project-acceptance-cover-summary-item strong {
  color: #1b2942;
  font-size: 17px;
  line-height: 1.35;
}

.project-acceptance-cover-summary-item small {
  color: #53657f;
  font-size: 13px;
  line-height: 1.45;
}

.project-acceptance-cover-summary-item--highlight {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at top right, rgba(80, 131, 233, .14), transparent 42%),
    linear-gradient(180deg, rgba(243,248,255,.98), rgba(255,255,255,.9));
}

.project-acceptance-cover-summary-item--highlight strong {
  font-size: 24px;
  line-height: 1.2;
}

.project-acceptance-meta-card {
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(42, 88, 194, .12);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.project-acceptance-meta-card span {
  color: #7d8ba3;
  font-size: 13px;
}

.project-acceptance-meta-card strong {
  color: #1b2942;
  font-size: 16px;
  line-height: 1.35;
}

.project-acceptance-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.project-acceptance-panel-grid--details {
  margin-top: 0;
}

.project-acceptance-panel {
  gap: 14px;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(42, 88, 194, .1);
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 40px rgba(16, 38, 84, .06), inset 0 1px 0 rgba(255,255,255,.86);
}

.project-acceptance-panel--accent {
  background:
    radial-gradient(circle at top right, rgba(80, 131, 233, .16), transparent 40%),
    linear-gradient(180deg, rgba(243,248,255,.98), rgba(255,255,255,.88));
}

.project-acceptance-panel-badge {
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(43, 95, 209, .09);
  color: #2b5fd1;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.project-acceptance-panel h3,
.project-acceptance-page-head h2 {
  margin: 0;
  color: #1b2438;
  line-height: 1.08;
}

.project-acceptance-panel h3 {
  font-size: 24px;
}

.project-acceptance-page-head h2 {
  font-size: 38px;
  letter-spacing: -.03em;
}

.project-acceptance-panel p,
.project-acceptance-panel-head span,
.project-acceptance-signature-meta span,
.project-acceptance-signatures--cards figcaption {
  color: #4f607b;
}

.project-acceptance-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.project-acceptance-page-head {
  align-items: flex-end;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(42, 88, 194, .14);
}

.project-acceptance-page-head > div:first-child {
  display: grid;
  gap: 10px;
}

.project-acceptance-page-stamp {
  white-space: nowrap;
}

.project-acceptance-panel--gallery {
  gap: 18px;
}

.project-acceptance-panel-head {
  align-items: center;
}

.project-acceptance-panel-head span {
  font-size: 14px;
  text-align: right;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery {
  gap: 18px;
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery figure {
  display: block;
  padding: 0;
  background: transparent;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 24px;
  border-color: rgba(42, 88, 194, .12);
  box-shadow: 0 18px 36px rgba(15, 34, 76, .08);
  aspect-ratio: auto;
  object-fit: contain;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery figcaption {
  display: none;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged {
  grid-template-columns: 1fr;
  gap: 14px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  min-height: 318px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged .project-acceptance-image-frame {
  height: 318px;
  min-height: 318px;
  max-height: 318px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(42, 88, 194, .12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 36px rgba(15, 34, 76, .08);
  box-sizing: border-box;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 294px;
  object-fit: contain;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged[data-gallery-count="1"] figure {
  min-height: 760px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged[data-gallery-count="1"] .project-acceptance-image-frame {
  height: 760px;
  min-height: 760px;
  max-height: 760px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged[data-gallery-count="1"] img {
  max-height: 736px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged figcaption {
  display: none;
  color: #4f607b;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-acceptance-doc__gallery[data-gallery-count="1"] {
  grid-template-columns: 1fr;
}

.project-acceptance-doc--blueprint .project-acceptance-signatures--cards {
  display: flex;
  align-items: stretch;
  align-self: start;
  gap: 20px;
}

.project-acceptance-doc--blueprint .project-acceptance-signatures--standalone {
  align-self: start;
  margin-top: 0;
}

.project-acceptance-doc--blueprint .project-acceptance-signatures--standalone figure {
  min-height: 0;
  flex: 1 1 0;
  align-content: start;
}

.project-acceptance-signatures--cards figure {
  flex: 1 1 0;
  gap: 10px;
  margin: 0;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(42, 88, 194, .12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 36px rgba(16, 38, 84, .06), inset 0 1px 0 rgba(255,255,255,.84);
}

.project-acceptance-signatures--cards figcaption {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.project-acceptance-signature-placeholder {
  display: none;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px dashed rgba(42, 88, 194, .22);
  background: rgba(248, 251, 255, .96);
  color: #4f607b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.project-acceptance-signatures--cards figure.is-pending img {
  display: none;
}

.project-acceptance-signatures--cards figure.is-pending .project-acceptance-signature-placeholder {
  display: flex;
}

.project-acceptance-signature-lead {
  max-width: 52ch;
  color: #4f607b;
  font-size: 15px;
  line-height: 1.6;
}

.project-acceptance-signature-person {
  color: #1b2942;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.project-acceptance-signatures--cards img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42, 88, 194, .16);
}

.project-acceptance-signatures--cards .project-acceptance-signature-meta strong {
  margin-top: 6px;
  color: #1b2942;
  font-size: 16px;
}

.project-acceptance-footer {
  display: grid;
  align-self: end;
  justify-content: normal;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 88, 194, .14);
  color: #8a97ae;
  font-size: 13px;
}

.project-acceptance-footer > span {
  display: none;
}

.project-acceptance-footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-acceptance-footer-hash {
  color: #8a97ae;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .02em;
  word-break: break-all;
}

.project-acceptance-footer-hash span {
  color: #66758f;
}

.project-acceptance-sheet--signatures .project-acceptance-footer {
  position: absolute;
  left: 66px;
  right: 66px;
  bottom: 46px;
}

.project-acceptance-doc--blueprint .project-acceptance-sheet {
  padding: 13mm 11mm 10mm;
  gap: 4.2mm;
}

.project-acceptance-doc--blueprint .project-acceptance-page-head {
  padding-bottom: 14px;
}

.project-acceptance-doc--blueprint .project-acceptance-logo--subpage {
  width: 122px;
  margin-bottom: 6px;
}

.project-acceptance-doc--blueprint .project-acceptance-page-head h2 {
  font-size: 32px;
  line-height: 1.04;
}

.project-acceptance-doc--blueprint .project-acceptance-page-stamp {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-meta {
  gap: 7px;
}

.project-acceptance-doc--blueprint .project-acceptance-meta-card {
  padding: 8px 10px;
  border-radius: 16px;
}

.project-acceptance-doc--blueprint .project-acceptance-meta-card span {
  font-size: 10px;
}

.project-acceptance-doc--blueprint .project-acceptance-meta-card strong {
  font-size: 13px;
  line-height: 1.22;
}

.project-acceptance-doc--blueprint .project-acceptance-panel {
  padding: 13px 15px;
  border-radius: 20px;
}

.project-acceptance-doc--blueprint .project-acceptance-panel--checklist {
  gap: 9px;
}

.project-acceptance-doc--blueprint .project-acceptance-panel h3 {
  font-size: 20px;
  line-height: 1.08;
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-row {
  grid-template-columns: minmax(0, 1.95fr) repeat(3, 60px);
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-row > strong,
.project-acceptance-doc--blueprint .project-acceptance-checksheet-row > span {
  min-height: 26px;
  padding: 3px 6px;
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-row > strong {
  font-size: 10.3px;
  line-height: 1.15;
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-row--head > span {
  font-size: 8.2px;
  line-height: 1.1;
  letter-spacing: .05em;
}

.project-acceptance-doc--blueprint .project-acceptance-checksheet-mark::before {
  width: 12px;
  height: 12px;
}

.project-acceptance-doc--blueprint .project-acceptance-panel-grid--details {
  gap: 10px;
}

.project-acceptance-doc--blueprint .project-acceptance-panel-grid--details .project-acceptance-panel {
  min-height: 0;
}

.project-acceptance-doc--blueprint .project-acceptance-panel-grid--details p {
  font-size: 12px;
  line-height: 1.36;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged {
  gap: 9px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged figure {
  min-height: 0;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged .project-acceptance-image-frame {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  padding: 8px;
}

.project-acceptance-doc--blueprint .project-acceptance-doc__gallery--paged img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 276px;
  object-fit: contain;
}

.project-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(8,17,35,.82);
  backdrop-filter: blur(10px);
}

.project-image-lightbox.is-open {
  display: grid;
}

.project-image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.project-image-lightbox-stage {
  width: min(1240px, 100%);
  margin: 0;
  display: grid;
  gap: 12px;
}

.project-image-lightbox-stage img {
  width: 100%;
  max-height: calc(100vh - 128px);
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.project-image-lightbox-stage figcaption {
  color: rgba(255,255,255,.92);
  text-align: center;
  font-size: .94rem;
}

.project-pdf-source {
  display: none;
}

.project-pdf-document {
  width: 100%;
  max-width: 1120px;
  padding: 42px;
  background: #fff;
  color: #0a1730;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.project-pdf-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 300px;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 2px solid #e7eef6;
}

.project-pdf-kicker {
  color: #53657f;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}

.project-pdf-head h1 {
  margin: 8px 0 0;
  font-size: 38px;
  line-height: .98;
}

.project-pdf-head p {
  margin: 12px 0 0;
  color: #53657f;
}

.project-pdf-meta {
  display: grid;
  gap: 12px;
}

.project-pdf-meta div,
.project-pdf-grid section {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e7eef6;
  background: #f9fbfe;
}

.project-pdf-meta span,
.project-pdf-grid li strong {
  color: #53657f;
}

.project-pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.project-pdf-document section {
  margin-top: 24px;
}

.project-pdf-document h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.project-pdf-document p,
.project-pdf-document li {
  color: #31425d;
  line-height: 1.65;
}

.project-pdf-document ul,
.project-pdf-document ol {
  margin: 0;
  padding-left: 20px;
}

.project-pdf-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-pdf-gallery figure {
  margin: 0;
}

.project-pdf-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e7eef6;
}

.project-pdf-gallery figcaption {
  margin-top: 8px;
  color: #53657f;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    padding: 12px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(11,32,66,.08);
  }
  .sidebar-brand {
    padding: 10px 12px;
    border-radius: 18px;
  }
  .sidebar-brand img { width: 60px; }
  .project-hero-card,
  .project-config-grid {
    grid-template-columns: 1fr;
  }
  .project-master-detail-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-sidebar-sticky {
    position: static;
  }
  .project-list-head {
    align-items: stretch;
  }
  .project-overview-tabs {
    width: 100%;
  }
  .project-overview-tabs-shell {
    width: 100%;
    justify-content: space-between;
  }
  .project-overview-actions {
    justify-content: space-between;
  }
}

@media (max-width: 1360px) {
  .dashboard-focus {
    grid-template-columns: 1fr;
  }

  .focus-side {
    display: grid;
  }

  .mini-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(11,32,66,.08);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
  }

  .sidebar-brand {
    display: none;
  }
  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .nav-group {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    align-items: center;
  }
  .sidebar-link-stack {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .nav-group--collapsible {
    align-items: stretch;
    flex-direction: column;
  }
  .nav-label {
    display: none;
  }
  .nav-group-toggle {
    width: auto;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }
  .nav-group-toggle-text.nav-text--full {
    display: inline;
  }
  .nav-group-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-left: 0;
    border-left: 0;
    margin-left: 0;
  }
  .nav-group a {
    white-space: nowrap;
    font-size: .82rem;
    padding: 9px 10px;
    border-radius: 12px;
  }
  .nav-group-links--sidebar {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .topbar {
    padding: 14px 16px 12px;
    gap: 12px;
  }
  .topbar-kicker {
    display: none;
  }
  .topbar h1 {
    margin: 0;
    font-size: 1.7rem;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .user-pill {
    padding: 8px 12px;
  }
  .profile-grid,
  .profile-signature-layout {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 18px;
  }
  .content-shell {
    padding: 14px;
    gap: 16px;
  }
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-customer-row,
  .project-summary-grid,
  .project-site-switch-row {
    grid-template-columns: 1fr;
  }
  .dashboard-focus {
    grid-template-columns: 1fr;
  }
  .focus-side {
    display: grid;
  }
  .focus-card {
    gap: 14px;
    padding: 20px;
  }
  .focus-head p {
    display: none;
  }
  .focus-stage-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .focus-stage-main {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 14px;
  }
  .focus-status-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .focus-status-tags {
    justify-content: flex-start;
  }
  .focus-orbit {
    width: min(244px, 100%);
  }
  .focus-timer-display {
    font-size: clamp(2.4rem, 6vw, 3.7rem);
  }
  .focus-primary-actions,
  .focus-secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .action-card {
    min-height: 82px;
    padding: 14px;
    border-radius: 18px;
    gap: 10px;
  }
  .action-card .action-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .action-card-label {
    font-size: .95rem;
  }
  .action-card-meta {
    font-size: .72rem;
  }
  .action-shortcut {
    min-height: 72px;
  }
  .dashboard-more {
    margin-top: 0;
  }
  .mini-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-card,
  .dashboard-focus,
  .dashboard-panels,
  .dashboard-secondary-grid,
  .guest-shell,
  .cols-4,
  .cols-3,
  .cols-2,
  .form-row,
  .form-row.three,
  .form-row.two,
  .team-pill-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: start;
    flex-direction: column;
    padding: 16px 16px 14px;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .content-shell { padding: 16px; }
  .card { padding: 18px; }
  .sidebar {
    padding: 12px;
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(11,32,66,.08);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
  }
  .sidebar-brand {
    padding: 10px 12px;
    border-radius: 18px;
    display: none;
  }
  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .nav-group {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    align-items: center;
  }
  .nav-label {
    display: none;
  }
  .nav-group a {
    white-space: nowrap;
    font-size: .94rem;
  }
  .project-overview-tab {
    min-height: 40px;
  }
  .project-search-toolbar,
  .project-compact-row,
  .project-signature-grid,
  .project-acceptance-doc__head,
  .project-acceptance-doc__gallery,
  .project-acceptance-signatures,
  .project-pdf-grid,
  .project-pdf-head,
  .project-pdf-gallery {
    grid-template-columns: 1fr;
  }
  .project-search-toolbar {
    display: grid;
  }
  .project-create-panel {
    max-width: none;
  }
  .project-create-form .grid.cols-3,
  .project-create-form .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .project-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-image-tile {
    width: 100%;
  }
  .project-customer-summary,
  .project-customer-dialog-head,
  .project-acceptance-doc__section-head,
  .project-signature-head,
  .project-site-switch-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .project-compact-side {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(11,32,66,.08);
  }
  .project-phase-badge {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }
  .project-edit-link {
    width: 100%;
  }
  .hero-card { padding: 22px; }
  .focus-card {
    padding: 20px;
    gap: 16px;
  }
  .focus-head {
    flex-direction: column;
    align-items: stretch;
  }
  .focus-stage-main {
    grid-template-columns: 1fr;
  }
  .focus-punch-panel {
    gap: 10px;
  }
  .focus-status-banner {
    padding: 12px 14px;
  }
  .focus-stage-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .focus-orbit {
    width: min(340px, 100%);
  }
  .focus-timer-display {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
  .time-action-grid,
  .button-row {
    grid-template-columns: 1fr;
  }
  .focus-primary-actions,
  .focus-secondary-actions {
    grid-template-columns: 1fr;
  }
  .action-card {
    min-height: 92px;
  }
  .action-card.is-wide {
    grid-column: auto;
  }
  .focus-project-strip {
    padding: 18px;
  }
  .mini-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-more summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .day-breakdown {
    grid-template-columns: 1fr;
  }
  .timer-display {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }
  .button-row {
    display: grid;
  }
  .btn,
  .btn-outline,
  .btn-primary {
    min-height: 52px;
  }
  .ghost-link {
    display: none;
  }
  .user-pill {
    width: 100%;
  }
  .week-mini-row {
    grid-template-columns: minmax(110px, 1fr) auto auto;
  }
  .break-row { grid-template-columns: 1fr; }
  .sync-feedback {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    height: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(11,23,61,.94);
    box-shadow: 0 18px 40px rgba(7,22,45,.28);
    z-index: 80;
  }
  .sidebar-brand {
    display: none;
  }
  .sidebar-nav {
    margin-top: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
  }
  .nav-group {
    gap: 6px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-group::-webkit-scrollbar { display: none; }
  .nav-group + .nav-group {
    display: none;
  }
  .nav-group--collapsible {
    display: none;
  }
  .nav-group a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    border-color: transparent;
    font-size: .86rem;
  }
  .nav-group a:hover {
    background: rgba(255,255,255,.14);
    border-color: transparent;
  }
  .nav-group a.active {
    box-shadow: none;
  }
  .app-main {
    padding-bottom: 124px;
  }
  .content-shell {
    padding: 14px 14px 8px;
  }
  .project-hero-card,
  .project-list-card,
  .project-create-card,
  .project-panel-card,
  .project-sidebar-card,
  .project-hours-card {
    padding: 16px;
    border-radius: 22px;
  }
  .project-hero-stats,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-overview-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .project-overview-tabs::-webkit-scrollbar {
    display: none;
  }
  .project-overview-tab {
    flex: 0 0 auto;
  }
  .project-compact-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .project-compact-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .project-signature-card canvas {
    height: 150px;
  }
  .project-compact-meta {
    display: grid;
    gap: 6px;
  }
  .project-compact-meta span:not(:last-child)::after {
    content: "";
  }
  .project-step-btn {
    min-width: 118px;
  }
  .project-pdf-document {
    padding: 24px;
  }
  .project-image-lightbox {
    padding: 16px;
  }
  .project-image-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
  input, select, textarea {
    padding: 13px 14px;
  }
  .topbar {
    position: sticky;
    top: 0;
    padding: 10px 12px 8px;
  }
  .topbar-kicker {
    display: none;
  }
  .topbar h1 {
    font-size: 1.2rem;
    margin-top: 0;
  }
  .topbar-actions {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    width: auto;
    min-height: 44px;
    padding: 0 14px;
  }
  .topbar-actions form {
    display: flex;
    flex: 0 0 auto;
  }
  .user-pill {
    width: auto;
    min-width: 0;
    padding: 8px 10px;
  }
  .user-pill-copy span {
    display: none;
  }
  .user-pill-copy strong {
    font-size: .94rem;
  }
  .btn,
  .btn-outline,
  .btn-primary {
    width: 100%;
  }
  .focus-card {
    padding: 14px 14px 12px;
    border-radius: 24px;
    margin-bottom: 8px;
  }
  .focus-date-row {
    gap: 6px;
    margin-top: 6px;
  }
  .focus-date-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: .72rem;
  }
  .focus-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
  .focus-head p {
    display: none;
  }
  .focus-link {
    display: none;
  }
  .focus-stage-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .focus-inline-metric {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .focus-inline-metric span {
    font-size: .72rem;
  }
  .focus-inline-metric strong {
    margin-top: 6px;
    font-size: 1rem;
  }
  .focus-stage-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .focus-orbit {
    width: min(184px, 62vw);
  }
  .focus-orbit::before {
    inset: 10px;
  }
  .focus-orbit-inner {
    inset: 17px;
  }
  .focus-orbit-inner span {
    font-size: .84rem;
  }
  .focus-orbit-inner small {
    margin-top: 6px;
    font-size: .72rem;
  }
  .focus-timer-display {
    margin-top: 8px;
    font-size: clamp(2.1rem, 12vw, 3rem);
  }
  .focus-status-row {
    gap: 6px;
  }
  .focus-status-row .meta-pill:not(.warning) {
    display: none;
  }
  .status-pill,
  .meta-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: .74rem;
  }
  .dashboard-focus .focus-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .action-card {
    min-height: 88px;
    padding: 12px;
    border-radius: 16px;
    gap: 8px;
  }
  .action-card .action-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .action-card-label {
    font-size: .88rem;
  }
  .action-card-meta {
    font-size: .68rem;
    line-height: 1.2;
  }
  .mini-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mini-stat {
    padding: 14px;
    border-radius: 16px;
  }
  .mini-stat strong {
    font-size: 1.18rem;
  }
  .dashboard-more {
    margin-top: 0;
  }
  .dashboard-more summary {
    padding: 12px 14px;
  }
  .dashboard-more summary small {
    display: none;
  }
  .dashboard-secondary-grid {
    padding: 0 12px 12px;
    gap: 16px;
  }
  .dashboard-secondary-grid--worker {
    grid-template-columns: 1fr;
  }
  .week-mini-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .week-mini-row strong {
    grid-column: 1 / -1;
  }
  .time-action-panel {
    gap: 10px;
  }
  .save-hint {
    display: none;
  }
}

.timer-card.is-clocked-in .focus-head p {
  display: none;
}

.timer-card.is-clocked-in .focus-stage-main {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
}

.timer-card.is-clocked-in .focus-orbit {
  width: min(192px, 100%);
}

.timer-card.is-clocked-in .focus-control-panel {
  gap: 12px;
}

.timer-card.is-clocked-in .focus-primary-actions--live {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

.timer-card.is-clocked-in .focus-live-bar {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.timer-card.is-clocked-in .focus-project-strip.is-priority {
  margin-top: 0;
}

.focus-project-strip.is-live-stage {
  padding: 28px 30px;
}

.focus-project-strip.is-live-stage .project-live-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: start;
  gap: 12px;
}

.focus-project-strip.is-live-stage .project-live-card {
  align-content: start;
  min-height: 0;
  max-width: 420px;
  padding: 18px 20px;
  gap: 10px;
}

.focus-project-strip.is-live-stage .project-live-card-head {
  align-items: start;
}

.focus-project-strip.is-live-stage .project-live-card-title strong {
  font-size: 1.16rem;
}

.focus-project-strip.is-live-stage .project-live-phase-row {
  margin-top: auto;
}

.focus-project-strip.is-live-stage .focus-project-empty {
  min-height: 192px;
  align-content: center;
}

.focus-support-panel {
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.action-shortcut {
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 16px;
  justify-content: flex-start;
  text-align: left;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.action-shortcut:hover {
  background: rgba(255,255,255,.10);
}

.action-shortcut-title {
  display: block;
  font-size: .9rem;
  font-weight: 800;
}

.action-shortcut-copy {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: .74rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .focus-primary-actions--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-primary-actions--live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-project-strip.is-live-stage .project-live-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 1fr;
  }

  .timer-card.is-clocked-in .focus-orbit-shell {
    justify-items: start;
  }

  .timer-card.is-clocked-in .focus-primary-actions--live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-project-strip.is-live-stage {
    padding: 22px;
  }

  .focus-project-strip.is-live-stage .project-live-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-project-strip.is-live-stage .project-live-card,
  .focus-project-strip.is-live-stage .focus-project-empty {
    min-height: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .focus-side {
    display: none;
  }

  .focus-card {
    padding: 16px 16px 14px;
  }

  .focus-head {
    gap: 10px;
  }

  .focus-head h2 {
    font-size: clamp(1.6rem, 8vw, 1.95rem);
  }

  .focus-stage {
    gap: 10px;
  }

  .focus-stage-main,
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .focus-orbit-shell,
  .timer-card.is-clocked-in .focus-orbit-shell {
    justify-items: start;
    padding-top: 0;
  }

  .focus-orbit,
  .timer-card.is-clocked-in .focus-orbit {
    width: min(152px, 48vw);
  }

  .focus-control-panel {
    gap: 12px;
  }

  .focus-status-banner,
  .focus-live-bar,
  .focus-project-strip,
  .focus-project-standby {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .focus-project-standby {
    display: none;
  }

  .focus-live-bar {
    display: grid;
    gap: 12px;
  }

  .focus-live-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .focus-live-action {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
  }

  .focus-project-strip.is-priority {
    padding: 16px;
    border-radius: 20px;
  }

  .focus-project-strip.is-live-stage {
    padding: 16px;
  }

  .focus-project-strip h3 {
    font-size: 1.12rem;
  }

  .project-live-card,
  .focus-project-strip.is-priority .project-live-card {
    padding: 14px;
    border-radius: 18px;
  }

  .project-live-card-head,
  .project-live-active {
    flex-direction: column;
    align-items: stretch;
  }

  .project-live-phase-row,
  .focus-project-strip.is-priority .project-live-phase-row {
    grid-template-columns: 1fr;
  }

  .project-phase-action {
    min-height: 44px;
  }

  .focus-support-panel {
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }

  .timer-card.is-clocked-in .focus-primary-actions--live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-project-strip.is-live-stage .project-live-list.compact {
    grid-template-columns: 1fr;
  }

  .focus-secondary-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.dashboard-focus {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.focus-card {
  gap: 12px;
  padding: 18px 20px 20px;
  overflow: visible;
}

.focus-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.05;
}

.focus-head p {
  margin: 8px 0 0;
  max-width: 32ch;
  font-size: .82rem;
  line-height: 1.32;
}

.focus-stage-main,
.timer-card.is-clocked-in .focus-stage-main {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.focus-orbit-shell,
.timer-card.is-clocked-in .focus-orbit-shell {
  justify-items: start;
  align-self: center;
  padding-top: 0;
  gap: 8px;
}

.focus-orbit,
.timer-card.is-clocked-in .focus-orbit {
  width: min(138px, 100%);
}

.focus-orbit-inner {
  inset: 11px;
}

.focus-orbit-inner span {
  font-size: .76rem;
}

.focus-orbit-inner small {
  margin-top: 5px;
  font-size: .68rem;
}

.focus-timer-display {
  margin-top: 5px;
  font-size: clamp(2rem, 4vw, 2.28rem);
}

.focus-inline-metric {
  max-width: 138px;
  padding: 12px 14px;
  border-radius: 14px;
}

.focus-inline-metric strong {
  margin-top: 4px;
  font-size: 1.08rem;
}

.focus-control-panel {
  gap: 10px;
  align-content: center;
}

.focus-passive-summary {
  display: grid;
  gap: 10px;
}

.focus-status-banner {
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
}

.focus-status-copy strong {
  font-size: .94rem;
}

.focus-status-copy small {
  font-size: .76rem;
  line-height: 1.18;
}

.focus-primary-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.focus-primary-actions--single .action-card,
.focus-primary-actions--live .action-card {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
}

.focus-primary-actions--single .action-card-label,
.focus-primary-actions--live .action-card-label {
  font-size: 1.08rem;
}

.focus-primary-actions--single .action-card-meta,
.focus-primary-actions--live .action-card-meta {
  font-size: .76rem;
}

.timer-card.is-project-running .focus-orbit-shell,
.timer-card.is-project-running .focus-inline-metric {
  filter: blur(1.4px);
  opacity: .58;
  transform: scale(.995);
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.timer-card.is-project-running .focus-status-banner {
  opacity: .72;
}

.timer-card.is-project-running .focus-primary-actions {
  position: relative;
  z-index: 1;
}

.dashboard-project-stage {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,255,.94));
  border: 1px solid rgba(255,255,255,.86);
  border-top: 5px solid rgba(58,96,211,.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-project-stage.is-live {
  border-top-color: rgba(70, 150, 255, .52);
  background:
    radial-gradient(circle at top right, rgba(164, 215, 255, .4), transparent 26%),
    radial-gradient(circle at left bottom, rgba(75, 158, 255, .18), transparent 34%),
    linear-gradient(180deg, rgba(242,248,255,.995), rgba(221,236,255,.975) 46%, rgba(199,223,255,.94));
  box-shadow: 0 30px 52px rgba(22, 64, 158, .16), inset 0 1px 0 rgba(255,255,255,.84);
}

.dashboard-project-stage-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-project-stage-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
  line-height: 1.08;
}

.dashboard-project-stage-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.dashboard-project-lock-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17,32,61,.08);
  color: #29406f;
  font-size: .78rem;
  font-weight: 800;
}

.dashboard-project-stage.is-locked::after {
  content: "Wird nach Kommen freigeschaltet";
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17,32,61,.78);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 12px 24px rgba(13,24,48,.16);
}

.dashboard-project-stage.is-locked[data-has-recap="1"]::after {
  content: "Heute beendet";
  background: rgba(27, 88, 176, .86);
}

.dashboard-project-stage.is-locked[data-has-recap="1"] .dashboard-project-list {
  display: none;
}

.dashboard-project-stage.is-locked .dashboard-project-list {
  filter: blur(2px) grayscale(.12);
  opacity: .48;
  pointer-events: none;
  user-select: none;
}

.dashboard-project-recap {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(83, 135, 224, .24);
  background:
    radial-gradient(circle at top right, rgba(185, 225, 255, .24), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.985), rgba(236,245,255,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 14px 30px rgba(29, 72, 157, .08);
}

.dashboard-project-recap-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-project-recap-copy {
  display: grid;
  gap: 5px;
}

.dashboard-project-recap-kicker {
  color: #49638f;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-project-recap-copy strong {
  font-size: 1.08rem;
  color: var(--text);
}

.dashboard-project-recap-copy small {
  color: #506480;
  font-size: .84rem;
  font-weight: 700;
}

.dashboard-project-recap-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.dashboard-project-recap-phase {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(184, 205, 238, .86);
  background: rgba(255,255,255,.88);
}

.dashboard-project-recap-phase strong {
  font-size: .86rem;
  color: var(--text);
}

.dashboard-project-recap-phase span,
.dashboard-project-recap-phase small {
  color: var(--muted);
  font-size: .78rem;
}

.dashboard-project-list {
  display: grid;
  gap: 8px;
  transition: filter .18s ease, opacity .18s ease;
}

.dashboard-project-card {
  display: grid;
  gap: 0;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(188,205,238,.9);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-project-card:hover {
  transform: translateY(-1px);
}

.dashboard-project-card.is-selected,
.dashboard-project-card.is-running {
  border-color: rgba(58,96,211,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 18px 34px rgba(31,54,128,.1);
}

.dashboard-project-card.is-running {
  background:
    radial-gradient(circle at top right, rgba(168, 218, 255, .28), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.995), rgba(229,241,255,.985));
}

.dashboard-project-card.is-overdue {
  border-color: rgba(185,60,46,.24);
}

.dashboard-project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.dashboard-project-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-project-card-main strong {
  font-size: .98rem;
  line-height: 1.08;
}

.dashboard-project-card-meta,
.dashboard-project-card-subline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .79rem;
}

.dashboard-project-card-subline {
  font-size: .76rem;
}

.dashboard-project-toggle {
  min-width: 96px;
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(42,78,153,.2);
  background: rgba(255,255,255,.82);
  color: #1e3272;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-project-card-body {
  display: none;
  gap: 10px;
  padding-top: 10px;
}

.dashboard-project-card.is-expanded .dashboard-project-card-body,
.dashboard-project-card.is-running .dashboard-project-card-body {
  display: grid;
}

.dashboard-project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-project-live-summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(89, 146, 233, .28);
  background:
    radial-gradient(circle at top right, rgba(182, 225, 255, .24), transparent 32%),
    linear-gradient(135deg, rgba(222,237,255,.98), rgba(245,250,255,.92));
}

.dashboard-project-live-summary strong {
  color: #173f8f;
  font-size: .88rem;
  line-height: 1.18;
}

.dashboard-project-live-summary span {
  color: #4d6287;
  font-size: .76rem;
}

.dashboard-project-info {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(246,250,255,.96);
  border: 1px solid rgba(188,205,238,.7);
}

.dashboard-project-info strong {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #677892;
}

.dashboard-project-info span {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.35;
}

.dashboard-project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-project-phase-block {
  display: grid;
  gap: 6px;
  min-width: min(100%, 420px);
  flex: 1 1 320px;
}

.dashboard-project-phase-label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.dashboard-project-phase-form {
  display: grid;
}

.dashboard-project-phase-button {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
}

.dashboard-project-link {
  min-width: 122px;
  border-radius: 16px;
}

@media (max-width: 960px) {
  .focus-stage-main,
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 1fr;
  }

  .focus-orbit-shell,
  .timer-card.is-clocked-in .focus-orbit-shell {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .focus-card {
    padding: 16px;
  }

  .focus-head h2 {
    font-size: 1.52rem;
  }

  .focus-primary-actions--single,
  .focus-primary-actions--live {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .dashboard-project-stage {
    padding: 16px;
    border-radius: 24px;
  }

  .dashboard-project-stage.is-locked::after {
    top: 14px;
    right: 14px;
    max-width: calc(100% - 28px);
  }

  .dashboard-project-info-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-project-card-head,
  .dashboard-project-actions,
  .dashboard-project-stage-head,
  .dashboard-project-recap-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-project-toggle,
  .dashboard-project-link,
  .dashboard-project-phase-block {
    width: 100%;
    min-width: 0;
  }

  .dashboard-project-recap-phases {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1400px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    padding: 12px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(11,32,66,.08);
    background: rgba(255,255,255,.78);
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-group--collapsible {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-group .nav-label {
    display: none;
  }

  .nav-group-toggle {
    width: auto;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .nav-group-toggle-text.nav-text--full {
    display: inline;
  }

  .nav-group-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 0;
    border-left: 0;
    margin-left: 0;
  }

  .nav-group a {
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .topbar {
    padding: 12px 14px 10px;
    gap: 10px;
  }

  .topbar-kicker {
    display: none;
  }

  .topbar h1 {
    margin: 0;
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  }

  .topbar-actions {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .user-pill {
    min-width: 0;
    max-width: 180px;
    padding: 8px 10px;
  }

  .user-pill-copy span {
    display: none;
  }

  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 40px;
    padding: 0 12px;
  }

  .topbar-actions form {
    display: flex;
    flex: 0 0 auto;
  }

  .content-shell {
    padding: 14px;
    gap: 16px;
  }

  .dashboard-focus {
    gap: 18px;
  }

  .focus-card {
    padding: 16px;
    border-radius: 26px;
  }

  .focus-head {
    gap: 10px;
  }

  .focus-date-row {
    margin-top: 6px;
  }

  .focus-date-chip {
    min-height: 28px;
    padding: 0 8px;
    font-size: .72rem;
  }

  .focus-head h2 {
    font-size: 1.42rem;
  }

  .focus-head p {
    margin-top: 6px;
    font-size: .78rem;
    line-height: 1.26;
  }

  .focus-stage-main,
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
  }

  .focus-orbit,
  .timer-card.is-clocked-in .focus-orbit {
    width: min(122px, 100%);
  }

  .focus-orbit::before {
    inset: 8px;
  }

  .focus-orbit-inner {
    inset: 9px;
  }

  .focus-orbit-inner span {
    font-size: .72rem;
  }

  .focus-orbit-inner small {
    font-size: .64rem;
  }

  .focus-timer-display {
    font-size: 1.86rem;
  }

  .focus-inline-metric {
    max-width: 122px;
    padding: 10px 12px;
  }

  .focus-inline-metric strong {
    font-size: 1rem;
  }

  .focus-status-banner {
    padding: 9px 10px;
    border-radius: 14px;
  }

  .focus-status-copy strong {
    font-size: .88rem;
  }

  .focus-status-copy small {
    font-size: .72rem;
  }

  .focus-primary-actions--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-primary-actions--live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-primary-actions--single .action-card,
  .focus-primary-actions--live .action-card {
    min-height: 64px;
    padding: 12px 14px;
  }

  .focus-primary-actions--single .action-card-label,
  .focus-primary-actions--live .action-card-label {
    font-size: .96rem;
  }

  .focus-primary-actions--single .action-card-meta,
  .focus-primary-actions--live .action-card-meta {
    font-size: .7rem;
  }

  .action-card .action-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .dashboard-project-stage {
    padding: 16px;
    border-radius: 24px;
  }

  .dashboard-project-stage-head h3 {
    font-size: 1.32rem;
  }

  .dashboard-project-stage-head p {
    font-size: .8rem;
  }

  .dashboard-project-card {
    padding: 9px 10px;
    border-radius: 16px;
  }

  .dashboard-project-card-main strong {
    font-size: .94rem;
  }

  .dashboard-project-card-meta,
  .dashboard-project-card-subline {
    font-size: .74rem;
  }

  .dashboard-project-card-body {
    padding-top: 8px;
  }

  .dashboard-project-info {
    padding: 8px 10px;
  }

  .dashboard-project-phase-label {
    font-size: .72rem;
  }

  .dashboard-project-phase-button {
    min-height: 46px;
  }
}

.time-page-shell {
  display: grid;
  gap: 24px;
}

.time-page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.time-page-nav-shell,
.team-hub-nav-shell {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-top: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.time-page-nav-shell::before,
.team-hub-nav-shell::before {
  content: "";
  width: min(460px, 100%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 103, 221, 0), rgba(76, 103, 221, 0.8), rgba(76, 103, 221, 0));
}

.time-page-nav-shell .time-page-tabs,
.team-hub-nav-shell .team-hub-tab-nav {
  justify-content: center;
  margin-inline: auto;
  width: max-content;
  max-width: 100%;
}

.time-page-nav-shell::-webkit-scrollbar,
.team-hub-nav-shell::-webkit-scrollbar {
  display: none;
}

.time-page-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
  color: var(--muted);
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.time-page-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.time-page-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
  box-shadow: 0 10px 22px rgba(43,66,175,.18);
}

.time-cluster-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(43,66,175,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
  box-shadow: var(--shadow-sm);
}

.time-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.time-cluster-head h3 {
  margin: 8px 0 0;
  font-size: 1.42rem;
}

.time-cluster-head--clean p {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.5;
}

.time-cluster-card--capture {
  padding: 18px;
  background: linear-gradient(180deg, rgba(239,244,255,.98), rgba(231,239,255,.94));
  border-color: rgba(61,99,255,.14);
}

.time-cluster-card--capture .time-capture-card,
.time-cluster-card--capture .time-status-card,
.time-cluster-card--overview .time-sheet-card {
  box-shadow: none;
}

.time-cluster-card--capture .time-status-card,
.time-cluster-card--overview .time-sheet-card {
  border-color: rgba(43,66,175,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.93));
}

.time-cluster-card--overview {
  padding: 18px;
  background: linear-gradient(180deg, rgba(243,247,255,.98), rgba(235,242,255,.94));
  border-color: rgba(43,66,175,.12);
}

.time-page-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr);
  gap: 22px;
  align-items: stretch;
}

.time-page-shell--clean .time-page-top {
  grid-template-columns: 1fr;
  gap: 14px;
}

.time-capture-card,
.time-status-card,
.time-project-stage,
.time-sheet-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.time-page-shell--clean .time-cluster-card--clean {
  padding: 18px;
  border-radius: 32px;
}

.time-page-shell--clean .time-status-card--clean {
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,255,.94)),
    radial-gradient(circle at top right, rgba(84,120,255,.08), transparent 42%);
}

.time-capture-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.time-capture-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.68rem, 2.4vw, 2.28rem);
}

.time-capture-head p {
  margin: 8px 0 0;
  max-width: 42ch;
  color: rgba(255,255,255,.82);
  line-height: 1.45;
}

.time-capture-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.time-capture-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  font-weight: 700;
}

.time-capture-chip.strong {
  background: rgba(255,191,72,.18);
  border-color: rgba(255,211,137,.24);
}

.time-capture-body {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}

.time-capture-clock {
  display: grid;
  gap: 10px;
  align-self: center;
}

.time-capture-actions {
  display: grid;
  gap: 14px;
  align-content: end;
}

.time-capture-status {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.time-capture-status-label {
  color: rgba(255,255,255,.74);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.time-capture-status strong {
  font-size: 1.08rem;
}

.time-capture-status small {
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}

.time-capture-card .time-action-panel {
  margin-bottom: 0;
}

.time-capture-card .time-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-capture-card .save-hint,
.time-capture-card .details-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}

.time-start-details {
  margin-top: 0;
}

.time-start-details summary {
  color: #fff;
}

.time-start-details .stack-form {
  padding: 0 16px 16px;
}

.time-start-details label span {
  color: rgba(255,255,255,.78);
}

.time-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-status-hero {
  display: grid;
  grid-template-columns: minmax(220px, .92fr) minmax(0, 1.08fr);
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(43,66,175,.12);
  background:
    radial-gradient(circle at top right, rgba(91,126,255,.14), transparent 40%),
    linear-gradient(180deg, rgba(248,251,255,.99), rgba(240,246,255,.94));
}

.time-status-hero-main {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16,31,92,.96), rgba(46,79,193,.92) 68%, rgba(107,165,255,.84));
  color: #fff;
  box-shadow: 0 18px 34px rgba(22,58,155,.16);
}

.time-status-hero-kicker {
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.time-status-hero-main strong {
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: .92;
  letter-spacing: -.04em;
}

.time-status-hero-main small {
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  line-height: 1.4;
}

.time-status-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.time-status-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.72), #7ce7ad 72%, #4fd38a);
}

.time-status-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,255,.92));
}

.time-page-shell--clean .time-status-item {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,246,255,.9));
}

.time-status-item span {
  display: block;
  color: var(--muted);
  font-size: .83rem;
}

.time-status-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.time-status-hero.is-positive .time-status-hero-main {
  background: linear-gradient(160deg, rgba(16,31,92,.96), rgba(39,96,166,.92) 64%, rgba(69,194,133,.84));
}

.time-status-hero.is-progress .time-status-hero-main {
  background: linear-gradient(160deg, rgba(16,31,92,.96), rgba(46,79,193,.92) 68%, rgba(107,165,255,.84));
}

.time-status-hero.is-neutral .time-status-hero-main {
  background: linear-gradient(160deg, rgba(16,31,92,.96), rgba(64,80,150,.9) 70%, rgba(128,150,214,.82));
}

.time-status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.time-status-links a {
  color: var(--navy);
  font-weight: 700;
}

.time-status-links--clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.time-status-links--clean a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,255,.94));
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.time-project-stage {
  gap: 16px;
}

.time-project-active {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(61,99,255,.16);
  background: linear-gradient(180deg, rgba(236,244,255,.96), rgba(247,250,255,.92));
}

.time-project-active-copy {
  display: grid;
  gap: 8px;
}

.time-project-active-copy strong {
  font-size: 1.15rem;
}

.time-project-active-copy small {
  color: var(--muted);
}

.time-project-active-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.time-project-active-timer {
  font-size: 1.46rem;
  font-weight: 900;
  color: var(--navy);
}

.time-project-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.time-project-note strong {
  display: block;
  margin-bottom: 4px;
}

.time-project-note p {
  margin: 0;
  color: var(--muted);
}

.time-project-list {
  display: grid;
  gap: 12px;
}

.time-project-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.time-project-card.is-current {
  border-color: rgba(61,99,255,.24);
  background: linear-gradient(180deg, rgba(241,246,255,.98), rgba(250,252,255,.94));
}

.time-project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.time-project-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.time-project-title-row strong {
  font-size: 1.04rem;
}

.time-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .84rem;
}

.time-project-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.time-project-step {
  display: grid;
  gap: 6px;
}

.time-project-step span {
  color: var(--muted);
  font-size: .82rem;
}

.time-project-step strong {
  font-size: 1rem;
}

.time-project-cta {
  min-width: 220px;
  min-height: 52px;
}

.time-manual-widget {
  padding: 0;
  overflow: hidden;
}

.time-page-shell--clean .time-manual-widget--clean {
  border-radius: 28px;
  border: 1px solid rgba(43,66,175,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,247,255,.94));
}

.time-manual-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
}

.time-page-shell--clean .time-manual-summary {
  padding: 16px 20px;
}

.time-manual-summary::-webkit-details-marker {
  display: none;
}

.time-manual-summary-copy {
  display: grid;
  gap: 6px;
}

.time-manual-summary-copy strong {
  font-size: 1.2rem;
}

.time-page-shell--clean .time-manual-summary-copy strong {
  font-size: 1.18rem;
}

.time-manual-summary-copy span {
  color: var(--muted);
}

.time-manual-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(43,66,175,.08);
  border: 1px solid rgba(43,66,175,.12);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.time-manual-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.time-page-shell--clean .time-manual-summary-actions {
  align-items: center;
}

.time-manual-summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(43,66,175,.18);
}

.time-page-shell--clean .time-manual-summary-cta {
  box-shadow: 0 10px 22px rgba(43,66,175,.14);
}

.time-manual-widget[open] .time-manual-summary-cta {
  background: rgba(43,66,175,.08);
  color: var(--navy);
  box-shadow: none;
}

.time-manual-widget[open] .time-manual-summary {
  border-bottom: 1px solid var(--line);
}

.time-manual-form {
  padding: 22px 24px 24px;
  gap: 22px;
}

.time-page-shell--clean .time-manual-form {
  padding-top: 2px;
}

.time-wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.time-wizard-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  min-height: 48px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.time-wizard-tab.is-active {
  background: linear-gradient(180deg, rgba(43,66,175,.14), rgba(43,66,175,.08));
  border-color: rgba(43,66,175,.2);
  color: var(--navy);
}

.time-wizard-tab.is-done {
  color: var(--text);
  border-color: rgba(61,99,255,.16);
}

.time-wizard-step {
  display: grid;
  gap: 18px;
}

.time-wizard-step[hidden] {
  display: none !important;
}

.time-wizard-step-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.time-wizard-step-head h3 {
  margin: 6px 0 0;
  font-size: 1.28rem;
}

.time-wizard-step-head p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.45;
}

.time-wizard-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.time-wizard-note strong {
  display: block;
  margin-bottom: 4px;
}

.time-wizard-note p {
  margin: 0;
  color: var(--muted);
}

.time-wizard-note small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.45;
}

.time-break-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.time-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.time-wizard-nav-spacer {
  display: block;
  min-width: 1px;
}

.time-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 22px;
}

.time-overview-card {
  gap: 18px;
}

.time-page-shell--clean .time-sheet-card {
  padding: 18px;
  border-radius: 28px;
  gap: 14px;
}

.time-overview-head {
  margin-bottom: 0;
}

.time-page-shell--clean .time-overview-head {
  align-items: center;
}

.time-overview-period {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247,250,255,.98), rgba(241,246,255,.92));
}

.time-page-shell--clean .time-overview-period {
  padding: 12px 14px;
  border-radius: 18px;
}

.time-overview-period-copy {
  display: grid;
  gap: 6px;
}

.time-overview-period-copy strong {
  font-size: 1.12rem;
}

.time-overview-period-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(43,66,175,.08);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
}

.time-overview-week-list,
.time-overview-month-stack {
  display: grid;
  gap: 12px;
}

.time-page-shell--clean .time-overview-week-list,
.time-page-shell--clean .time-overview-month-stack {
  gap: 8px;
}

.time-overview-day-row,
.time-overview-month-week {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.time-page-shell--clean .time-overview-day-row,
.time-page-shell--clean .time-overview-month-week {
  padding: 10px 12px;
  border-radius: 16px;
}

.time-overview-day-row {
  display: grid;
  grid-template-columns: minmax(170px, .78fr) minmax(240px, 1.22fr) auto;
  gap: 14px;
  align-items: center;
}

.time-overview-day-label {
  display: grid;
  gap: 4px;
}

.time-overview-day-label strong,
.time-overview-day-main strong {
  display: block;
  font-size: 1.04rem;
}

.time-page-shell--clean .time-overview-day-label strong,
.time-page-shell--clean .time-overview-day-main strong {
  font-size: .96rem;
}

.time-overview-day-label small {
  color: var(--muted);
  font-size: .76rem;
}

.time-overview-day-main {
  display: grid;
  gap: 8px;
}

.time-overview-day-bar {
  display: grid;
  gap: 8px;
}

.time-overview-day-main small {
  color: var(--muted);
  font-size: .8rem;
}

.time-overview-day-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.time-overview-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(43,66,175,.08);
}

.time-overview-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-2), var(--cyan));
}

.time-overview-day-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.time-overview-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  font-size: .82rem;
}

.time-overview-balance.is-positive {
  background: rgba(46, 168, 109, .12);
  color: #187a47;
}

.time-overview-balance.is-negative {
  background: rgba(201, 75, 75, .12);
  color: #b33636;
}

.time-overview-day-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.time-overview-day-values span,
.time-overview-month-day {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(43,66,175,.08);
  background: rgba(255,255,255,.76);
}

.time-page-shell--clean .time-overview-day-values span,
.time-page-shell--clean .time-overview-month-day {
  padding: 10px 12px;
  border-radius: 14px;
}

.time-overview-day-values small,
.time-overview-month-day span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
}

.time-overview-day-values strong,
.time-overview-month-day strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.time-overview-month-day small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
}

.time-overview-month-day em {
  display: inline-flex;
  margin-top: 10px;
  font-style: normal;
  font-weight: 800;
}

.time-overview-month-day em.is-positive {
  color: #187a47;
}

.time-overview-month-day em.is-negative {
  color: #b33636;
}

.time-overview-month-week {
  display: grid;
  gap: 14px;
}

.time-overview-month-week-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.time-overview-month-week-head strong {
  font-size: 1rem;
}

.time-overview-month-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-history-card {
  display: grid;
  gap: 22px;
}

.time-history-head {
  align-items: start;
}

.time-history-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.time-history-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.time-history-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.time-history-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
}

.time-history-panel {
  display: grid;
  gap: 18px;
}

.time-history-empty {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px dashed rgba(43,66,175,.18);
  background: linear-gradient(180deg, rgba(247,250,255,.98), rgba(241,246,255,.9));
}

.time-history-empty p {
  margin: 0;
  color: var(--muted);
}

.time-history-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.time-history-toolbar h4,
.time-history-week-card-head h5 {
  margin: 6px 0 0;
  font-size: 1.28rem;
}

.time-history-week-grid,
.time-history-month-stack {
  display: grid;
  gap: 16px;
}

.time-history-day-card,
.time-history-week-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.time-history-day-card {
  display: grid;
  gap: 16px;
}

.time-history-day-head,
.time-history-week-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.time-history-day-head strong {
  display: block;
  font-size: 1.08rem;
}

.time-history-day-head small,
.time-history-week-totals,
.time-history-total-bar span {
  color: var(--muted);
}

.time-history-saldo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(43,66,175,.08);
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.time-history-saldo.is-positive {
  background: rgba(46, 168, 109, .12);
  color: #187a47;
}

.time-history-saldo.is-negative {
  background: rgba(201, 75, 75, .12);
  color: #b33636;
}

.time-history-metric-grid,
.time-history-total-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.time-history-metric-grid > div,
.time-history-total-bar > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.76);
}

.time-history-metric-grid span,
.time-history-total-bar span {
  display: block;
  font-size: .8rem;
}

.time-history-metric-grid strong,
.time-history-total-bar strong,
.time-history-week-totals span {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.time-history-week-totals {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  font-weight: 700;
}

.time-history-week-card .time-history-month-table td:first-child {
  font-weight: 700;
}

.time-table-wrap {
  overflow-x: auto;
}

.time-page-shell--clean .time-table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(43,66,175,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
  overflow: hidden;
}

.time-table {
  min-width: 100%;
}

.time-page-shell--clean .time-table {
  margin: 0;
}

.time-page-shell--clean .time-table thead th {
  background: rgba(243,247,255,.9);
}

.time-page-shell--clean .time-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1180px) {
  .time-page-top,
  .time-data-grid {
    grid-template-columns: 1fr;
  }

  .time-status-hero {
    grid-template-columns: 1fr;
  }

  .time-page-shell--clean .time-status-links--clean {
    grid-template-columns: 1fr;
  }

  .time-overview-day-row {
    grid-template-columns: 1fr;
  }

  .time-history-toolbar,
  .time-history-head,
  .time-history-week-card-head {
    flex-direction: column;
  }

  .time-history-week-totals {
    justify-items: start;
    text-align: left;
  }

  .time-capture-body {
    grid-template-columns: 1fr;
  }

  .time-project-card-body {
    grid-template-columns: 1fr;
  }

  .time-project-cta {
    min-width: 0;
    width: 100%;
  }

  .time-manual-form .form-row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .time-cluster-head,
  .time-capture-head,
  .time-wizard-step-head,
  .time-break-head,
  .time-project-active,
  .time-project-card-head,
  .time-overview-month-week-head,
  .time-overview-period {
    flex-direction: column;
  }

  .time-capture-chips,
  .time-project-active-actions {
    justify-content: flex-start;
    justify-items: start;
  }

  .time-wizard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-history-metric-grid,
  .time-history-total-bar,
  .time-overview-day-values,
  .time-overview-month-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-start-details .form-row,
  .time-manual-form .form-row.three {
    grid-template-columns: 1fr;
  }

  .time-overview-day-row {
    grid-template-columns: 1fr;
  }

  .time-overview-day-side {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .time-page-shell {
    gap: 16px;
  }

  .time-page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .time-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .time-page-tab {
    flex: 0 0 auto;
  }

  .time-page-nav-shell::before,
  .team-hub-nav-shell::before {
    width: 100%;
  }

  .time-cluster-card {
    padding: 18px;
    border-radius: 24px;
  }

  .time-capture-head h2 {
    font-size: 1.56rem;
  }

  .time-capture-head p {
    font-size: .92rem;
  }

  .time-capture-chips {
    justify-content: flex-start;
  }

  .time-capture-card .timer-display {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .time-capture-card .time-action-grid,
  .time-status-grid,
  .time-wizard-progress {
    grid-template-columns: 1fr;
  }

  .time-manual-summary,
  .time-manual-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .time-page-shell--clean .time-cluster-card--clean {
    padding: 18px;
    border-radius: 24px;
  }

  .time-page-shell--clean .time-status-card--clean,
  .time-page-shell--clean .time-sheet-card {
    padding: 18px;
    border-radius: 24px;
  }

  .time-manual-summary-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .time-page-shell--clean .time-manual-summary-actions {
    justify-content: space-between;
  }

  .time-history-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .time-history-tabs::-webkit-scrollbar {
    display: none;
  }

  .time-history-tab {
    flex: 0 0 auto;
  }

  .time-history-metric-grid,
  .time-history-total-bar,
  .time-overview-day-values,
  .time-overview-month-days {
    grid-template-columns: 1fr;
  }

  .time-manual-summary {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .time-page-shell--clean .time-manual-summary {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .time-wizard-step-head h3 {
    font-size: 1.14rem;
  }

  .time-table thead {
    display: none;
  }

  .time-table,
  .time-table tbody,
  .time-table tr,
  .time-table td {
    display: block;
    width: 100%;
  }

  .time-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .time-table tbody tr:last-child {
    border-bottom: 0;
  }

  .time-table td {
    border: 0;
    padding: 7px 0;
    display: grid;
    grid-template-columns: minmax(92px, 42%) 1fr;
    gap: 10px;
  }

  .time-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .break-row {
    grid-template-columns: 1fr;
  }
}

.absence-page-shell,
.report-page-shell {
  display: grid;
  gap: 24px;
}

.absence-cluster-card,
.report-cluster-card {
  gap: 18px;
}

.report-cluster-card--compact {
  gap: 14px;
  padding: 18px;
}

.absence-pane-card,
.report-pane-card {
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: none;
  border-color: rgba(43,66,175,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.93));
}

.report-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  color: var(--muted);
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.report-tab-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.report-tab-link.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 58%, var(--cyan));
  color: #fff;
}

.report-filter-form {
  flex-wrap: wrap;
}

.report-filter-form--compact {
  align-items: end;
  gap: 10px;
}

.report-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.report-hero-copy {
  display: grid;
  gap: 8px;
}

.report-hero-copy h3 {
  margin: 0;
  font-size: 1.42rem;
}

.report-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.report-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-metric-card {
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: none;
  border: 1px solid rgba(43,66,175,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.93));
}

.report-content-grid--overview {
  align-items: start;
}

.report-pane-card--wide {
  margin-top: 2px;
}

.report-day-stack,
.report-team-list {
  display: grid;
  gap: 10px;
}

.report-day-row,
.report-team-row {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(43,66,175,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
}

.report-day-row {
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.1fr) auto;
  align-items: center;
}

.report-day-copy,
.report-team-copy {
  display: grid;
  gap: 4px;
}

.report-day-copy strong,
.report-team-copy strong {
  display: block;
  font-size: .98rem;
}

.report-day-copy small,
.report-team-copy small {
  color: var(--muted);
  font-size: .78rem;
}

.report-day-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(43,66,175,.08);
}

.report-day-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-2), var(--cyan));
}

.report-day-side,
.report-team-hours {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.report-day-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  font-size: .82rem;
}

.report-day-balance.is-positive {
  background: rgba(46, 168, 109, .12);
  color: #187a47;
}

.report-day-balance.is-negative {
  background: rgba(201, 75, 75, .12);
  color: #b33636;
}

.report-team-hours {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}

.report-summary-grid,
.absence-summary-grid {
  margin: 0;
}

.report-content-grid,
.report-timesheet-grid,
.absence-info-grid,
.absence-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-note-card .project-note-box + .project-note-box {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .report-summary-strip,
  .report-content-grid,
  .report-timesheet-grid,
  .absence-info-grid,
  .absence-content-grid {
    grid-template-columns: 1fr;
  }

  .report-day-row {
    grid-template-columns: 1fr;
  }

  .report-day-side,
  .report-team-hours {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .absence-page-shell,
  .report-page-shell {
    gap: 16px;
  }

  .report-tab-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .report-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .report-hero {
    flex-direction: column;
    align-items: start;
  }

  .report-filter-form--compact {
    width: 100%;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.project-acceptance-checklist-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(33, 79, 187, .12);
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .94));
}

.project-acceptance-checklist-card.is-error {
  border-color: rgba(194, 59, 59, .34);
  box-shadow: 0 0 0 4px rgba(194, 59, 59, .08);
}

.project-acceptance-checklist-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.project-acceptance-checklist-head h4 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.project-acceptance-checklist-head p {
  margin: 0;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.project-acceptance-checklist-error {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(194, 59, 59, .22);
  background: rgba(255, 243, 243, .96);
  color: #a12727;
  font-size: .92rem;
  font-weight: 700;
}

.project-acceptance-checklist-table {
  display: grid;
  border-radius: 24px;
  border: 1px solid rgba(33, 79, 187, .10);
  overflow: hidden;
}

.project-acceptance-checklist-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, 128px);
  align-items: stretch;
}

.project-acceptance-checklist-row > strong,
.project-acceptance-checklist-row > span,
.project-acceptance-check-option {
  min-height: 62px;
  padding: 14px 16px;
  border-right: 1px solid rgba(33, 79, 187, .08);
  border-bottom: 1px solid rgba(33, 79, 187, .08);
}

.project-acceptance-checklist-row > :last-child {
  border-right: 0;
}

.project-acceptance-checklist-row--head {
  background: rgba(42, 95, 209, .07);
}

.project-acceptance-checklist-row--head > span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #53657f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
}

.project-acceptance-checklist-row--head > span:first-child {
  justify-content: flex-start;
}

.project-acceptance-checklist-row > strong {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.45;
}

.project-acceptance-checklist-row.is-error {
  background: rgba(255, 245, 245, .96);
}

.project-acceptance-checklist-row.is-error > strong {
  color: #922f2f;
}

.project-acceptance-check-option {
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,.74);
}

.project-acceptance-checklist-row.is-error .project-acceptance-check-option {
  background: rgba(255, 247, 247, .96);
}

.project-acceptance-check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-acceptance-check-option span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(42, 95, 209, .26);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.project-acceptance-check-option.is-selected span {
  border-color: #2b5fd1;
  background: radial-gradient(circle at center, #2b5fd1 0 46%, #fff 48% 100%);
  transform: scale(1.06);
}

.project-acceptance-checklist-row.is-error .project-acceptance-check-option span {
  border-color: rgba(194, 59, 59, .3);
}

.project-acceptance-checksheet-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-acceptance-panel--checklist {
  gap: 18px;
}

.project-acceptance-checksheet-table {
  display: grid;
  border-radius: 24px;
  border: 1px solid rgba(42, 88, 194, .12);
  overflow: hidden;
}

.project-acceptance-checksheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) repeat(3, 98px);
  align-items: stretch;
}

.project-acceptance-checksheet-row > strong,
.project-acceptance-checksheet-row > span {
  min-height: 48px;
  padding: 10px 12px;
  border-right: 1px solid rgba(42, 88, 194, .10);
  border-bottom: 1px solid rgba(42, 88, 194, .10);
}

.project-acceptance-checksheet-row > :last-child {
  border-right: 0;
}

.project-acceptance-checksheet-row--head {
  background: rgba(42, 95, 209, .08);
}

.project-acceptance-checksheet-row--head > span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60708a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
}

.project-acceptance-checksheet-row--head > span:first-child {
  justify-content: flex-start;
}

.project-acceptance-checksheet-row > strong {
  display: flex;
  align-items: center;
  color: #1b2438;
  font-size: 13px;
  line-height: 1.35;
}

.project-acceptance-checksheet-mark {
  display: grid;
  place-items: center;
}

.project-acceptance-checksheet-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(42, 88, 194, .28);
  background: #fff;
}

.project-acceptance-checksheet-mark.is-selected::before {
  border-color: #2b5fd1;
  background: radial-gradient(circle at center, #2b5fd1 0 46%, #fff 48% 100%);
}

.timesheet-export-actions {
  margin-bottom: 18px;
}

.timesheet-export-sheet {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 34px 36px 28px;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, .12);
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 48px rgba(12, 26, 54, .08);
}

.timesheet-export-head h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.15;
  text-align: center;
}

.timesheet-export-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.timesheet-export-meta-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.timesheet-export-meta-row span {
  font-size: 18px;
}

.timesheet-export-meta-row strong {
  display: inline-flex;
  min-height: 34px;
  align-items: end;
  padding: 0 8px 4px 8px;
  border-bottom: 2px solid #111;
  font-size: 18px;
  font-weight: 500;
}

.timesheet-export-meta-row--split {
  grid-template-columns: 210px minmax(0, 1fr) 120px;
}

.timesheet-export-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.timesheet-export-table thead {
  display: table-header-group;
}

.timesheet-export-table tfoot {
  display: table-footer-group;
}

.timesheet-export-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.timesheet-export-table th,
.timesheet-export-table td {
  padding: 6px 7px;
  border: 1px solid #141414;
  vertical-align: middle;
}

.timesheet-export-table thead th {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.timesheet-export-table tbody td {
  min-height: 30px;
}

.timesheet-export-table td:nth-child(1),
.timesheet-export-table td:nth-child(6),
.timesheet-export-table th:nth-child(1),
.timesheet-export-table th:nth-child(6) {
  text-align: center;
}

.timesheet-export-table tfoot th,
.timesheet-export-table tfoot td {
  border-top-width: 2px;
  font-size: 17px;
}

.timesheet-export-total {
  font-weight: 800;
}

.timesheet-export-signatures {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.timesheet-export-signature {
  display: grid;
  gap: 10px;
  align-content: end;
}

.timesheet-export-signature-line {
  min-height: 28px;
  border-bottom: 2px solid #111;
  font-size: 16px;
  text-align: left;
}

.timesheet-export-signature-meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 14px;
  align-items: start;
}

.timesheet-export-signature-meta-block {
  display: grid;
  gap: 3px;
}

.timesheet-export-signature-meta-block strong {
  font-size: 13px;
  font-weight: 800;
}

.timesheet-export-signature-meta-block--signer {
  justify-items: start;
}

.timesheet-export-signer-name {
  font-size: 14px;
}

.timesheet-export-signature--company {
  gap: 14px;
  width: min(100%, 360px);
}

.timesheet-export-company-signature {
  min-height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 8px;
}

.timesheet-export-company-signature img {
  max-width: min(100%, 230px);
  max-height: 72px;
  object-fit: contain;
}

.timesheet-export-company-block {
  justify-self: end;
  width: min(100%, 250px);
  display: grid;
  gap: 2px;
  color: #1f4fbc;
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
}

.timesheet-export-company-block strong {
  font-size: 20px;
  line-height: 1.15;
}

.timesheet-export-legend {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.timesheet-export-legend p,
.timesheet-export-legend small {
  margin: 0;
  color: #3f4654;
  font-size: 14px;
}

.timesheet-export-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 26px;
}

.timesheet-export-legend-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.timesheet-export-legend-grid th,
.timesheet-export-legend-grid td {
  padding: 6px 10px;
  border: 1px solid #111;
}

.timesheet-export-legend-grid th {
  width: 54px;
  text-align: center;
}

.timesheet-export-pages {
  display: grid;
  gap: 20px;
}

.timesheet-export-page {
  break-after: page;
  page-break-after: always;
  overflow: hidden;
}

.timesheet-export-page:last-child {
  break-after: auto;
  page-break-after: auto;
}

.timesheet-export-page-continuation {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.14);
}

.timesheet-export-page-continuation strong {
  font-size: 20px;
  line-height: 1.1;
}

.timesheet-export-page-continuation-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #475467;
}

@media (max-width: 1100px) {
  .project-acceptance-checklist-row,
  .project-acceptance-checksheet-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 92px);
  }

  .project-acceptance-checksheet-meta {
    grid-template-columns: 1fr;
  }

  .timesheet-export-meta-row,
  .timesheet-export-meta-row--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .project-stage-panel[data-project-step-panel="acceptance"] .grid.cols-2,
  .project-summary-grid,
  .project-signature-grid,
  .project-protocol-offer-form {
    grid-template-columns: 1fr;
  }

  .project-protocol-offer-top {
    flex-direction: column;
  }

  .project-rollback-form,
  .project-rollback-select {
    width: 100%;
  }

  .project-acceptance-checklist-head,
  .project-acceptance-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .project-acceptance-checklist-table {
    gap: 12px;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .project-acceptance-checklist-row--head {
    display: none;
  }

  .project-acceptance-checklist-row {
    grid-template-columns: 1fr;
    border: 1px solid rgba(33, 79, 187, .12);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,.94);
  }

  .project-acceptance-checklist-row > strong {
    border-right: 0;
    padding: 16px 16px 12px;
    background: rgba(42, 95, 209, .05);
  }

  .project-acceptance-check-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-right: 0;
    padding: 12px 16px;
  }

  .project-acceptance-check-option::before {
    content: attr(data-option-label);
    color: #53657f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .project-acceptance-check-option:last-child,
  .project-acceptance-checklist-row > :last-child {
    border-bottom: 0;
  }

  .project-acceptance-checksheet-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 74px);
  }

  .timesheet-export-sheet {
    padding: 24px 18px;
  }

  .timesheet-export-signatures,
  .timesheet-export-legend-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .topbar,
  .sidebar,
  .button-row,
  .inline-form {
    display: none !important;
  }

  .app-main,
  .content-shell {
    padding: 0 !important;
    margin: 0 !important;
  }

  .timesheet-export-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

.timer-card,
.timer-card .focus-head,
.timer-card .focus-stage-main,
.timer-card .focus-orbit-shell,
.timer-card .focus-control-panel,
.timer-card [data-live-clock],
.timer-card [data-live-timer] {
  overflow-anchor: none;
}

.timer-card .focus-date-chip,
.timer-card .focus-timer-display,
.timer-card .focus-inline-metric strong,
.timer-card .focus-orbit-inner small {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.timer-card [data-live-clock] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.4ch;
  white-space: nowrap;
}

.timer-card .focus-date-row {
  align-items: center;
  min-height: 30px;
}

.portal-context-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,181,40,.34);
  background: linear-gradient(180deg, rgba(255,243,214,.98), rgba(255,231,179,.92));
  color: #9a5a00;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.portal-context-chip--inline {
  min-height: 28px;
  padding: 0 10px;
  font-size: .76rem;
}

.environment-context-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(88, 122, 214, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.environment-context-chip--dev {
  color: #16684e;
  background: linear-gradient(180deg, rgba(233, 255, 247, .96), rgba(214, 248, 236, .88));
  border-color: rgba(22, 104, 78, .16);
}

.environment-context-chip--live {
  color: #8b2f1d;
  background: linear-gradient(180deg, rgba(255, 244, 236, .96), rgba(255, 230, 215, .9));
  border-color: rgba(168, 87, 59, .2);
}

@media (max-width: 980px) {
  .topbar-title-row {
    gap: 8px;
  }

  .topbar-title-separator {
    display: none;
  }

  .versioning-card-grid,
  .versioning-history-grid {
    grid-template-columns: 1fr;
  }

  .versioning-banner {
    align-items: start;
    flex-direction: column;
  }

  .versioning-banner-meta {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
}

.timer-card .focus-timer-display {
  display: block;
  width: 8ch;
  max-width: 100%;
  min-height: 1em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 720px) {
  .list-row--actionable {
    flex-direction: column;
  }

  .list-row-actions {
    width: 100%;
  }

  .list-row-actions form {
    flex: 1 1 0;
  }

  body.ios-webkit .sidebar,
  body.ios-webkit .timer-card,
  body.ios-webkit .timer-card .focus-stage-main,
  body.ios-webkit .timer-card .focus-orbit-shell,
  body.ios-webkit .timer-card .focus-control-panel {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  body.ios-webkit .sidebar {
    will-change: transform;
  }

  .timer-card {
    min-height: auto !important;
    contain: layout paint;
  }

  .timer-card .focus-stage-main,
  .timer-card.is-clocked-in .focus-stage-main {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    align-content: stretch !important;
    gap: 10px;
  }

  .timer-card .focus-orbit-shell,
  .timer-card.is-clocked-in .focus-orbit-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    justify-items: start !important;
    align-self: start !important;
    align-content: start !important;
    margin-top: 0 !important;
  }

  .timer-card .focus-control-panel {
    display: flex;
    flex-direction: column;
    align-content: start !important;
    align-items: stretch !important;
  }

  .timer-card .focus-status-banner {
    margin-top: 0 !important;
  }

  .timer-card .focus-date-row {
    min-height: 28px;
  }

  .timer-card [data-live-clock] {
    width: 7.2ch;
  }

  .timer-card .focus-timer-display {
    width: 7.6ch;
    min-height: 1.1em;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  }

  .timer-card [data-live-clock] {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  }
}

.team-attendance-page {
  --team-attendance-person-width: 15.75rem;
  display: grid;
  gap: 1.4rem;
}

.team-hub-page {
  gap: 1rem;
  padding: 18px;
}

.team-attendance-top-metrics {
  display: grid;
  gap: 0.8rem;
}

.team-attendance-top-metrics--compact {
  grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr);
  align-items: end;
  gap: 0.75rem 1rem;
  padding: 0.15rem 0 0;
}

.team-attendance-top-copy {
  display: grid;
  gap: 0.15rem;
  align-content: start;
}

.team-attendance-top-copy h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.05;
}

.team-attendance-top-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.team-attendance-kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

.team-attendance-view-summary .team-insight-card {
  min-height: 0;
}

.team-attendance-view-summary .team-insight-card small {
  min-height: 0;
}

.team-attendance-head {
  align-items: end;
  gap: 1rem;
}

.team-attendance-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.team-attendance-times-shell {
  display: grid;
  gap: 0.95rem;
  position: relative;
  padding-top: 0.25rem;
}

.team-attendance-times-shell .team-attendance-head-actions {
  padding: 0.95rem 1rem 0.65rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(180deg, rgba(241, 244, 251, 0.96), rgba(233, 238, 248, 0.92));
  border: 1px solid rgba(73, 102, 199, 0.12);
  border-bottom: 0;
}

.team-hub-tab-nav {
  justify-content: center;
}

.team-hub-panel {
  display: grid;
  gap: 1rem;
}

.team-hub-panel--compact {
  padding-top: 1.35rem;
}

.team-timesheet-shell {
  width: 100%;
  margin: 0;
  gap: 0;
  padding: 1.5rem 1.6rem;
}

.team-timesheet-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(30rem, 1.08fr);
  gap: 1.4rem 1.8rem;
  align-items: start;
}

.team-timesheet-head {
  display: grid;
  gap: 0.28rem;
  align-content: start;
  padding-top: 0.15rem;
}

.team-timesheet-head h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
}

.team-timesheet-head p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.team-timesheet-form {
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(73, 102, 199, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.team-timesheet-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.team-timesheet-actions {
  display: flex;
  justify-content: flex-start;
}

.team-timesheet-actions .btn {
  min-width: 0;
  width: 100%;
}

.team-timesheet-empty {
  margin: 0;
}

.team-hub-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.team-hub-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-hub-report-grid {
  align-items: start;
}

.team-approval-list {
  display: grid;
  gap: 0.9rem;
}

.team-approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(73, 102, 199, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: 0 12px 28px rgba(17, 29, 74, 0.06);
}

.team-approval-copy {
  display: grid;
  gap: 0.2rem;
}

.team-approval-type {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.team-approval-copy strong {
  font-size: 1rem;
  color: var(--text);
}

.team-approval-copy small {
  color: var(--muted);
}

.team-approval-form {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) auto auto;
  gap: 0.65rem;
  align-items: center;
}

.team-approval-form input[type="text"] {
  min-width: 0;
}

.team-attendance-page .section-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.team-attendance-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.team-attendance-summary-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(73, 102, 199, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  box-shadow: 0 10px 28px rgba(17, 29, 74, 0.06);
}

.team-attendance-summary-card span {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-attendance-summary-card strong {
  font-size: 1.7rem;
  color: var(--text);
}

.team-attendance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem 1rem;
  margin-top: -0.95rem;
  border-radius: 0 0 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(241, 244, 251, 0.96), rgba(233, 238, 248, 0.92));
  border: 1px solid rgba(73, 102, 199, 0.12);
}

.team-attendance-nav-form {
  gap: 0.42rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.team-attendance-nav-form input[type="date"],
.team-attendance-nav-form input[type="week"] {
  min-width: 10.25rem;
  flex: 0 0 auto;
}

.team-attendance-nav-btn {
  min-width: 2.35rem;
  flex: 0 0 2.35rem;
  padding-inline: 0;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
}

.team-attendance-nav-btn span {
  transform: translateY(-1px);
}

.team-attendance-range-copy {
  display: grid;
  gap: 0.1rem;
}

.team-attendance-range-copy strong {
  font-size: 1.15rem;
  color: var(--text);
}

.team-attendance-times-shell .time-history-tabs {
  gap: 0.7rem;
  padding: 0.22rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(73, 102, 199, 0.14);
  background: linear-gradient(180deg, rgba(244, 247, 255, 0.92), rgba(235, 241, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.team-attendance-times-shell .time-history-tab {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: #4c6492;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: none;
}

.team-attendance-times-shell .time-history-tab.is-active {
  border-color: rgba(51, 90, 222, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  color: #17378f;
  box-shadow: 0 10px 18px rgba(56, 84, 187, 0.1);
}

.team-attendance-times-shell .time-history-tab:hover,
.team-attendance-times-shell .time-history-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 102, 199, 0.18);
}

.team-attendance-times-shell .btn.btn-primary {
  min-height: 40px;
  padding-inline: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(51, 90, 222, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  color: #17378f;
  box-shadow: 0 10px 18px rgba(56, 84, 187, 0.1);
}

.team-attendance-times-shell .btn.btn-primary:hover,
.team-attendance-times-shell .btn.btn-primary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 102, 199, 0.18);
  box-shadow: 0 12px 20px rgba(56, 84, 187, 0.12);
}

.team-attendance-board {
  display: grid;
  gap: 0.95rem;
}

.team-worklist {
  gap: 0.8rem;
}

.team-attendance-board-head,
.team-attendance-row {
  display: grid;
  grid-template-columns: minmax(0, var(--team-attendance-person-width)) minmax(0, 1fr);
  gap: 1rem;
}

.team-worklist-row {
  gap: 0.85rem;
  align-items: stretch;
}

.team-attendance-person-head {
  padding: 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-attendance-track-head {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0;
  padding: 0 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.team-attendance-track-head span,
.team-attendance-week-head span {
  text-align: center;
}

.team-attendance-person-card,
.team-attendance-track,
.team-attendance-week-grid,
.team-attendance-week-head {
  border-radius: 1.4rem;
  border: 1px solid rgba(73, 102, 199, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.9));
  box-shadow: 0 12px 28px rgba(17, 29, 74, 0.06);
}

.team-attendance-person-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
}

.team-attendance-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent-strong);
  background: linear-gradient(180deg, rgba(76, 103, 221, 0.18), rgba(76, 103, 221, 0.08));
}

.team-attendance-person-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.team-worklist-summary {
  gap: 0.18rem;
}

.team-attendance-person-copy strong {
  font-size: 0.96rem;
  color: var(--text);
}

.team-attendance-person-copy small,
.team-attendance-person-meta small {
  color: var(--muted);
}

.team-attendance-person-status {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-attendance-person-status--active {
  color: #355de7;
}

.team-attendance-person-status--pause {
  color: #9a6a00;
}

.team-attendance-person-status--sick {
  color: #c94e5b;
}

.team-attendance-person-status--vacation {
  color: #8e6b10;
}

.team-attendance-person-status--absence {
  color: #44618b;
}

.team-attendance-person-status--booked,
.team-attendance-person-status--idle {
  color: var(--muted);
}

.team-worklist-meta {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.team-attendance-add-entry-btn {
  min-height: 2rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-correction-employee-box {
  margin: 0;
  padding-block: 0.85rem;
}

.team-correction-employee-box p {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.team-correction-divider {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53, 93, 231, 0.78), rgba(95, 133, 255, 0.32));
  margin: 0.15rem 0 0.1rem;
}

.team-correction-subtle-head {
  align-items: center;
  padding-top: 0.15rem;
}

.team-correction-subtle-head .section-kicker {
  margin-bottom: 0.22rem;
}

.team-correction-subtle-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.team-correction-subtle-action {
  min-height: 2.65rem;
  padding: 0 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.team-correction-optional {
  border: 1px solid rgba(73, 102, 199, 0.1);
  border-radius: 1rem;
  background: rgba(247, 249, 255, 0.56);
  overflow: hidden;
}

.team-correction-optional summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.team-correction-optional summary::-webkit-details-marker {
  display: none;
}

.team-correction-optional summary::after {
  content: '+';
  float: right;
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(43, 66, 175, 0.78);
}

.team-correction-optional[open] summary::after {
  content: '–';
}

.team-correction-optional-body {
  display: grid;
  gap: 0.9rem;
  padding: 0 0.95rem 0.95rem;
}

.team-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.team-status-chip--active,
.team-attendance-bar--active {
  color: #fff;
  background: linear-gradient(135deg, #355de7, #5f85ff);
}

.team-status-chip--pause,
.team-attendance-bar--pause {
  color: #513000;
  background: linear-gradient(135deg, #f4ca57, #f7db88);
}

.team-status-chip--sick,
.team-attendance-bar--sick {
  color: #fff;
  background: linear-gradient(135deg, #e15d69, #ef8490);
}

.team-status-chip--vacation,
.team-attendance-bar--vacation {
  color: #5c4a16;
  background: linear-gradient(135deg, #efd78c, #f5e8bd);
}

.team-status-chip--absence,
.team-attendance-bar--absence {
  color: #334564;
  background: linear-gradient(135deg, #dbe6ff, #edf3ff);
}

.team-status-chip--booked {
  color: var(--accent-strong);
  background: rgba(76, 103, 221, 0.12);
  border-color: rgba(76, 103, 221, 0.2);
}

.team-status-chip--idle {
  color: var(--muted);
  background: rgba(112, 128, 166, 0.12);
  border-color: rgba(112, 128, 166, 0.16);
}

.team-attendance-track {
  position: relative;
  min-height: 5.4rem;
  padding: 0.38rem 0.3rem;
  overflow: hidden;
  background-image:
      linear-gradient(to right, rgba(76, 103, 221, 0.08) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 255, 0.9));
  background-size: calc(100% / 24) 100%, 100% 100%;
}

.team-worklist-track {
  min-height: 5rem;
  border-radius: 1.2rem;
}

.team-attendance-empty {
  height: 100%;
  min-height: 4.4rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.team-attendance-now-line {
  position: absolute;
  top: 0.24rem;
  bottom: 0.24rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(73, 102, 199, 0.4);
  z-index: 1;
}

.team-attendance-bar {
  position: absolute;
  top: 0.55rem;
  min-width: 3.5rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.06rem;
  box-shadow: 0 14px 24px rgba(24, 34, 73, 0.16);
  overflow: hidden;
  z-index: 2;
}

.team-attendance-bar--interactive {
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.team-attendance-bar--interactive:hover,
.team-attendance-bar--interactive:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(24, 34, 73, 0.2);
  filter: saturate(1.03);
}

.team-attendance-bar--interactive:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.team-attendance-bar strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-attendance-bar span {
  font-size: 0.7rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-attendance-bar--work {
  color: #fff;
  background: linear-gradient(135deg, #6272c7, #8d98e5);
}

.team-attendance-week-head,
.team-attendance-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.team-attendance-week-head {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-attendance-row--week {
  align-items: stretch;
}

.team-attendance-week-grid {
  align-items: stretch;
}

.team-attendance-week-cell {
  position: relative;
  min-height: 5.4rem;
  padding: 0.9rem 0.9rem 0.85rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(73, 102, 199, 0.12);
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(245, 248, 255, 0.94));
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.team-attendance-week-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(73, 102, 199, 0.32);
}

.team-attendance-week-cell strong {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.team-attendance-week-cell span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.8rem;
}

.team-attendance-week-cell--active,
.team-attendance-week-cell--pause,
.team-attendance-week-cell--work,
.team-attendance-week-cell--booked {
  background: linear-gradient(180deg, rgba(239, 244, 255, 0.98), rgba(228, 237, 255, 0.92));
}

.team-attendance-week-cell--active .team-attendance-week-fill,
.team-attendance-week-cell--booked .team-attendance-week-fill {
  background: linear-gradient(135deg, #355de7, #5f85ff);
}

.team-attendance-week-cell--pause .team-attendance-week-fill {
  background: linear-gradient(135deg, #f4ca57, #f7db88);
}

.team-attendance-week-cell--sick {
  background: linear-gradient(180deg, rgba(255, 238, 241, 0.98), rgba(255, 226, 230, 0.94));
}

.team-attendance-week-cell--sick .team-attendance-week-fill {
  background: linear-gradient(135deg, #e15d69, #ef8490);
}

.team-attendance-week-cell--vacation {
  background: linear-gradient(180deg, rgba(255, 249, 229, 0.98), rgba(253, 242, 206, 0.94));
}

.team-attendance-week-cell--vacation .team-attendance-week-fill {
  background: linear-gradient(135deg, #efd78c, #f5e8bd);
}

.team-attendance-week-cell--idle {
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(245, 248, 255, 0.94));
}

.team-attendance-week-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(73, 102, 199, 0.22);
}

@media (max-width: 1180px) {
  .team-attendance-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-attendance-page {
    --team-attendance-person-width: 16rem;
  }

  .team-timesheet-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .team-attendance-head-actions,
  .team-hub-head-actions,
  .team-approval-card,
  .team-approval-form {
    grid-template-columns: 1fr;
  }

  .team-attendance-head-actions,
  .team-hub-head-actions {
    justify-content: start;
  }

  .team-attendance-times-shell .team-attendance-head-actions {
    gap: 0.8rem;
  }

  .team-timesheet-layout {
    grid-template-columns: 1fr;
  }

  .team-hub-summary-strip {
    grid-template-columns: 1fr;
  }

  .team-attendance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-attendance-toolbar,
  .team-attendance-head,
  .team-attendance-board-head,
  .team-attendance-row,
  .team-attendance-row--week {
    grid-template-columns: 1fr;
  }

  .team-attendance-toolbar,
  .team-attendance-head {
    display: grid;
  }

  .team-attendance-track-head,
  .team-attendance-week-head {
    margin-top: -0.2rem;
  }
}

@media (max-width: 720px) {
  .team-hub-tab-nav {
    width: max-content;
  }

  .team-attendance-top-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-timesheet-fields {
    grid-template-columns: 1fr;
  }

  .team-approval-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-attendance-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-attendance-person-card {
    grid-template-columns: auto 1fr auto;
  }

  .team-attendance-track {
    min-height: 6.8rem;
  }

  .team-attendance-bar {
    top: 0.5rem;
    min-height: 2.55rem;
    padding: 0.45rem 0.65rem;
  }

  .team-attendance-week-head,
  .team-attendance-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .focus-orbit,
  .timer-card.is-clocked-in .focus-orbit {
    width: min(142px, 44vw);
  }

  .focus-orbit::before {
    inset: 9px;
  }

  .focus-orbit-inner,
  .timer-card.is-clocked-in .focus-orbit-inner {
    inset: 12px;
    padding-inline: 4px;
    box-sizing: border-box;
  }

  .focus-orbit-inner span,
  .timer-card.is-clocked-in .focus-orbit-inner span {
    font-size: 0.68rem;
  }

  .focus-orbit-inner small,
  .timer-card.is-clocked-in .focus-orbit-inner small {
    margin-top: 4px;
    font-size: 0.6rem;
    line-height: 1.15;
  }

  .focus-timer-display,
  .timer-card.is-clocked-in .focus-timer-display {
    width: 7.2ch;
    max-width: 100%;
    margin-top: 4px;
    font-size: clamp(1.48rem, 8vw, 1.72rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .focus-orbit,
  .timer-card.is-clocked-in .focus-orbit {
    width: min(132px, 42vw);
  }

  .focus-orbit-inner,
  .timer-card.is-clocked-in .focus-orbit-inner {
    inset: 11px;
  }

  .focus-timer-display,
  .timer-card.is-clocked-in .focus-timer-display {
    width: 6.9ch;
    font-size: 1.38rem;
  }
}

/* Technician portal refinements for tablet and phone */
.dashboard-more--technician summary small {
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  body.portal-technician.app-shell {
    display: block;
  }

  body.portal-technician .sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 12px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(11,32,66,.08);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
  }

  body.portal-technician .sidebar-brand {
    display: none;
  }

  body.portal-technician .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  body.portal-technician .nav-group {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    align-items: center;
  }

  body.portal-technician .nav-label {
    display: none;
  }

  body.portal-technician .nav-group a {
    white-space: nowrap;
    font-size: .94rem;
    padding: 11px 14px;
  }

  body.portal-technician .topbar {
    position: relative;
    top: auto;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    padding: 14px 18px 12px;
  }

  body.portal-technician .topbar-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  body.portal-technician .user-pill {
    padding: 10px 14px;
  }

  body.portal-technician .content-shell {
    width: min(100%, 1100px);
    padding: 18px;
    gap: 16px;
  }

  body.portal-technician .dashboard-focus--technician {
    gap: 12px;
  }

  body.portal-technician .dashboard-focus--technician .focus-card {
    padding: 18px;
    gap: 12px;
    border-radius: 28px;
  }

  body.portal-technician .dashboard-focus--technician .focus-head p,
  body.portal-technician .dashboard-focus--technician .focus-link {
    display: none;
  }

  body.portal-technician .dashboard-focus--technician .focus-date-row {
    margin-top: 8px;
  }

  body.portal-technician .dashboard-focus--technician .focus-stage-main,
  body.portal-technician .dashboard-focus--technician.timer-card.is-clocked-in .focus-stage-main,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit {
    width: 132px;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit::before {
    inset: 9px;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit-inner,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit-inner {
    inset: 12px;
    padding-inline: 4px;
  }

  body.portal-technician .dashboard-focus--technician .focus-timer-display,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-timer-display {
    width: 7ch;
    font-size: clamp(1.72rem, 4vw, 2.08rem);
    line-height: .9;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric {
    max-width: 132px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric span {
    font-size: .72rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric strong {
    margin-top: 6px;
    font-size: 1rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-control-panel {
    gap: 10px;
    align-content: center;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-banner {
    padding: 10px 12px;
    border-radius: 16px;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-copy strong {
    font-size: 1.02rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-copy small {
    font-size: .76rem;
    line-height: 1.3;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live {
    grid-template-columns: 1fr;
    max-width: none;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card {
    min-height: 62px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card-label,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card-label {
    font-size: 1rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card-meta,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card-meta {
    font-size: .7rem;
  }

  body.portal-technician .dashboard-more--technician {
    margin-top: 0;
  }

  body.portal-technician .dashboard-more--technician summary {
    padding: 12px 14px;
  }

  body.portal-technician .dashboard-more--technician .dashboard-secondary-grid--technician {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
    gap: 14px;
  }

  body.portal-technician .dashboard-more--technician .compact-card {
    padding: 16px;
    border-radius: 22px;
  }
}

@media (max-width: 720px) {
  body.portal-technician .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 12px;
  }

  body.portal-technician .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  body.portal-technician .content-shell {
    padding: 14px 14px 108px;
  }

  body.portal-technician .dashboard-focus--technician .focus-card {
    padding: 14px;
    gap: 10px;
    border-radius: 24px;
  }

  body.portal-technician .dashboard-focus--technician .focus-head h2 {
    font-size: 1.42rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-stage-main,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit {
    width: 108px;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit::before {
    inset: 8px;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit-inner,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit-inner {
    inset: 10px;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit-inner span,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit-inner span {
    font-size: .62rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit-inner small,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit-inner small {
    font-size: .56rem;
    line-height: 1.15;
  }

  body.portal-technician .dashboard-focus--technician .focus-timer-display,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-timer-display {
    width: 6.7ch;
    font-size: 1.26rem;
    line-height: .92;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric {
    max-width: 108px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric span {
    font-size: .68rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric strong {
    font-size: .94rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-banner {
    padding: 9px 10px;
    border-radius: 14px;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-copy strong {
    font-size: .95rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-copy small {
    font-size: .7rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card {
    min-height: 58px;
    padding: 11px 12px;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card-label,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card-label {
    font-size: .92rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card-meta,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card-meta {
    font-size: .64rem;
  }

  body.portal-technician .dashboard-more--technician summary small {
    display: none;
  }
}

@media (max-width: 640px) {
  body.portal-technician .sidebar {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 8px;
  }

  body.portal-technician .nav-group a {
    padding: 10px 12px;
    font-size: .84rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-date-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: .68rem;
  }
}

@media (max-width: 640px) {
  .nav-text--full,
  .tab-text--full {
    display: none !important;
  }

  .nav-text--short,
  .tab-text--short {
    display: inline !important;
  }

  .sidebar {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 8px 9px;
    border-radius: 24px;
  }

  .sidebar-nav {
    gap: 0;
  }

  .nav-group a {
    min-height: 44px;
    padding: 10px 14px;
    font-size: .82rem;
  }

  .app-main {
    padding-bottom: 0;
  }

  .topbar {
    position: relative;
    top: auto;
    padding: 12px 14px 10px;
    gap: 10px;
  }

  .topbar-title-row {
    gap: 8px;
  }

  .topbar-title-row h1 {
    font-size: clamp(1.18rem, 6vw, 1.58rem);
  }

  .portal-context-chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: .78rem;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-pill {
    min-width: 0;
    max-width: calc(50% - 6px);
    padding: 10px 12px;
    border-radius: 16px;
  }
  .profile-signature-meta {
    grid-template-columns: 1fr;
  }

  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .content-shell {
    padding: 14px 14px calc(186px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .focus-card {
    padding: 14px 14px 12px;
    border-radius: 24px;
  }

  .focus-head {
    gap: 8px;
  }

  .focus-date-row {
    gap: 6px;
    margin-top: 6px;
  }

  .focus-date-chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: .7rem;
  }

  .focus-head h2 {
    font-size: clamp(1.4rem, 8vw, 1.82rem);
  }

  .focus-stage-main,
  .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .focus-orbit-shell,
  .timer-card.is-clocked-in .focus-orbit-shell {
    justify-items: start;
    gap: 8px;
  }

  .focus-orbit,
  .timer-card.is-clocked-in .focus-orbit {
    width: min(134px, 42vw);
  }

  .focus-inline-metric {
    max-width: 102px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .focus-inline-metric span {
    font-size: .68rem;
  }

  .focus-inline-metric strong {
    margin-top: 4px;
    font-size: .92rem;
  }

  .focus-status-banner {
    padding: 10px 12px;
    border-radius: 16px;
  }

  .focus-status-copy strong {
    font-size: .98rem;
  }

  .focus-status-copy small {
    font-size: .74rem;
    line-height: 1.3;
  }

  .focus-primary-actions--single .action-card,
  .focus-primary-actions--live .action-card {
    min-height: 58px;
    padding: 11px 12px;
    border-radius: 18px;
  }

  .focus-primary-actions--single .action-card-label,
  .focus-primary-actions--live .action-card-label {
    font-size: 1rem;
  }

  .focus-primary-actions--single .action-card-meta,
  .focus-primary-actions--live .action-card-meta {
    font-size: .72rem;
  }

  .dashboard-secondary-grid,
  .dashboard-secondary-grid--worker {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px 12px;
  }

  .dashboard-more summary {
    padding: 12px 14px;
  }

  .dashboard-more summary small {
    display: none;
  }

  body.portal-technician .sidebar {
    position: fixed;
    top: auto;
    height: auto;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 8px 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    border-right: 0;
    border-bottom: 0;
    background: rgba(11,23,61,.94);
    box-shadow: 0 18px 40px rgba(7,22,45,.28);
    z-index: 80;
  }

  body.portal-technician .sidebar-nav {
    margin-top: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  body.portal-technician .nav-group {
    gap: 6px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.portal-technician .nav-group::-webkit-scrollbar {
    display: none;
  }

  body.portal-technician .nav-group + .nav-group {
    display: none;
  }

  body.portal-technician .nav-group--collapsible {
    display: none;
  }

  body.portal-technician .nav-group a {
    min-height: 44px;
    padding: 10px 14px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    border-color: transparent;
    font-size: .82rem;
  }

  body.portal-technician .nav-group a:hover {
    background: rgba(255,255,255,.14);
    border-color: transparent;
  }

  body.portal-technician .nav-group a.active {
    color: #fff;
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    box-shadow: none;
  }

  body.portal-technician .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 10px;
  }

  body.portal-technician .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  body.portal-technician .content-shell {
    padding: 14px 14px calc(186px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  body.portal-technician .dashboard-focus--technician .focus-card {
    padding: 14px;
    gap: 10px;
    border-radius: 24px;
  }

  body.portal-technician .dashboard-focus--technician .focus-head h2 {
    font-size: 1.34rem;
  }

  body.portal-technician .dashboard-focus--technician .focus-stage-main,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-stage-main {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  body.portal-technician .dashboard-focus--technician .focus-orbit,
  body.portal-technician .dashboard-focus--technician .timer-card.is-clocked-in .focus-orbit {
    width: min(130px, 40vw);
  }

  body.portal-technician .dashboard-focus--technician .focus-inline-metric {
    max-width: 100px;
  }

  body.portal-technician .dashboard-focus--technician .focus-status-banner {
    padding: 10px 12px;
  }

  body.portal-technician .dashboard-focus--technician .focus-primary-actions--single .action-card,
  body.portal-technician .dashboard-focus--technician .focus-primary-actions--live .action-card {
    min-height: 56px;
  }

  body.portal-technician .dashboard-more--technician .dashboard-secondary-grid--technician {
    gap: 12px;
    padding: 0 12px 12px;
  }

  .time-page-nav-shell,
  .team-hub-nav-shell {
    justify-items: stretch;
    gap: .7rem;
    padding-top: .25rem;
  }

  .time-page-nav-shell .time-page-tabs,
  .team-hub-nav-shell .team-hub-tab-nav {
    width: 100%;
    padding-inline: 0;
  }

  .time-page-nav-shell .time-page-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .time-page-tab {
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: .8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .time-cluster-head--clean p {
    display: none;
  }

  .time-page-shell--clean .time-cluster-card--clean,
  .time-cluster-card--overview {
    padding: 16px;
    border-radius: 22px;
  }

  .time-page-shell--clean .time-status-card--clean,
  .time-page-shell--clean .time-sheet-card {
    padding: 16px;
    border-radius: 22px;
  }

  .time-status-hero {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .time-status-hero-main {
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
  }

  .time-status-hero-main strong {
    font-size: 2.2rem;
  }

  .time-status-hero-main small {
    font-size: .84rem;
  }

  .time-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .time-overview-period {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .time-overview-week-list,
  .time-overview-month-stack {
    gap: 10px;
  }

  .time-overview-day-row {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .time-overview-day-label strong {
    font-size: .96rem;
  }

  .time-overview-day-label small,
  .time-overview-day-metrics span {
    font-size: .76rem;
  }

  .time-overview-day-side {
    justify-self: start;
  }

  .absence-page-shell {
    gap: 14px;
  }

  .absence-cluster-card {
    padding: 16px;
    border-radius: 24px;
  }

  .absence-cluster-card .time-cluster-head h3 {
    font-size: clamp(1.24rem, 7vw, 1.8rem);
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .absence-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .absence-summary-grid .metric-card {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .absence-summary-grid .metric-card:last-child {
    grid-column: 1 / -1;
  }

  .absence-summary-grid .metric-card strong {
    font-size: 1.58rem;
    line-height: .96;
  }

  .absence-summary-grid .metric-card small {
    font-size: .76rem;
  }

  .absence-pane-card {
    padding: 16px;
    border-radius: 22px;
  }

  .absence-summary-grid .metric-card,
  .absence-pane-card {
    min-width: 0;
  }

.dashboard-more--technician {
    display: none;
  }
}

/* UX foundation overrides */
.app-main-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.app-topbar-shell {
  padding: 16px 22px;
  background:
    linear-gradient(180deg, rgba(252, 253, 255, .96), rgba(244, 247, 255, .92));
  box-shadow:
    inset 0 -1px 0 rgba(19, 43, 92, .06),
    0 12px 32px rgba(19, 43, 92, .04);
}

.topbar-copy {
  display: grid;
  gap: 6px;
}

.sidebar-nav,
.sidebar-nav-shell {
  gap: 20px;
}

.sidebar-section {
  gap: 10px;
}

.sidebar-section-title,
.sidebar-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px;
  color: #6e809b;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar-section-title::after,
.sidebar-group-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 122, 214, .24), rgba(88, 122, 214, 0));
}

.sidebar-link-stack {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-link-stack > a,
.sidebar-link-stack > .nav-group {
  margin: 0;
}

.sidebar-link-stack .nav-group {
  gap: 6px;
}

.sidebar-link-stack .nav-group-toggle,
.sidebar-link-stack a {
  min-height: 44px;
  border-radius: 16px;
}

.sidebar-link-stack a {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(218, 227, 240, .7);
}

.sidebar-link-stack a:hover,
.sidebar-link-stack .nav-group-toggle:hover {
  transform: translateY(-1px);
}

.sidebar-link-stack a.active {
  box-shadow: 0 14px 28px rgba(22, 58, 155, .18);
}

.nav-group--sidebar {
  gap: 6px;
}

.nav-group-toggle--sidebar {
  border-color: rgba(218, 227, 240, .76);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,248,255,.86));
  color: #324764;
}

.nav-group-toggle--sidebar.active {
  background: linear-gradient(180deg, rgba(244,248,255,.98), rgba(233,241,255,.92));
  color: var(--navy);
}

.nav-group-links--sidebar {
  margin-left: 10px;
  padding-left: 14px;
  padding-top: 2px;
  border-left: 1px solid rgba(88, 122, 214, .14);
}

.nav-label--button {
  padding: 0;
  color: inherit;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}

.nav-group-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workspace-page {
  display: grid;
  gap: 20px;
}

.workspace-head {
  display: grid;
  gap: 16px;
}

.workspace-head--compact {
  gap: 12px;
}

.workspace-page > .workspace-head,
.workspace-page > .page-head.workspace-head,
.project-list-card > .workspace-head,
.team-attendance-page > .workspace-head {
  padding: 24px 26px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(117, 196, 255, .12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(244,248,255,.95));
  box-shadow: 0 20px 42px rgba(19, 43, 92, .05);
}

.workspace-page > .workspace-head.workspace-head--compact,
.workspace-page > .page-head.workspace-head.workspace-head--compact,
.project-list-card > .workspace-head.workspace-head--compact,
.team-attendance-page > .workspace-head.workspace-head--compact {
  padding: 20px 22px;
  border-radius: 24px;
}

.workspace-head-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.workspace-head h2,
.workspace-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.workspace-head p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted, #667792);
  line-height: 1.58;
}

.workspace-head--compact h2,
.workspace-head--compact h3 {
  font-size: clamp(1.34rem, 2vw, 1.72rem);
}

.workspace-head--compact p {
  max-width: 64ch;
  font-size: .93rem;
  line-height: 1.5;
}

.workspace-editor-head {
  gap: 14px;
}

.workspace-editor-head-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workspace-editor-head-copy p {
  max-width: 62ch;
}

.workspace-editor-head .commerce-top-actions {
  align-items: start;
}

.workspace-editor-head .commerce-top-actions form,
.workspace-editor-head .commerce-top-actions .btn {
  min-height: 42px;
}

.workspace-editor-head .commerce-metric-card {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 20px;
}

.workspace-editor-head .commerce-metric-card strong {
  font-size: 1.18rem;
}

.workspace-editor-head .commerce-metric-card small {
  font-size: .78rem;
}

.workspace-editor-section-nav {
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(242, 247, 255, .88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 24px rgba(19, 43, 92, .04);
}

.workspace-editor-section-nav::before {
  width: 48px;
}

.workspace-editor-main {
  display: grid;
  gap: 18px;
}

.workspace-editor-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.workspace-editor-section {
  position: relative;
}

.workspace-editor-section .commerce-section-copy p {
  max-width: 56ch;
  font-size: .92rem;
}

.workspace-editor-utility {
  display: grid;
  gap: 16px;
}

.workspace-editor-utility-grid {
  display: grid;
  gap: 16px;
}

.workspace-editor-utility-block {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
}

.workspace-editor-utility-block .stack-form {
  gap: 12px;
}

.workspace-editor-payment-card {
  gap: 16px;
}

.workspace-editor-payment-card .commerce-payment-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-editor-payment-card .commerce-payment-summary > div {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 18px;
}

.workspace-editor-totals {
  margin-top: 18px;
}

.workspace-editor-totals-bar {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(88, 122, 214, .14);
  background:
    linear-gradient(180deg, rgba(247,250,255,.98), rgba(255,255,255,.98));
  box-shadow:
    0 20px 42px rgba(19, 43, 92, .08),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.workspace-editor-totals-bar > label,
.workspace-editor-totals-bar > .commerce-summary-card {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 122, 214, .12);
}

.workspace-editor-totals-bar > label {
  display: grid;
  gap: 6px;
}

.workspace-editor-totals-bar > label > span {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
}

.workspace-metrics-strip--compact {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
}

.workspace-filter-bar {
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(88, 122, 214, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 12px 26px rgba(19, 43, 92, .03);
}

.workspace-filter-bar .stack-form {
  gap: 14px;
}

.workspace-filter-bar .commerce-filter-actions {
  align-items: end;
}

.workspace-filter-bar .form-row:last-child {
  margin-bottom: 0;
}

.commerce-layout--summary-rail {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  align-items: start;
}

.commerce-layout--editor-workspace {
  grid-template-columns: minmax(0, 1.46fr) minmax(300px, .86fr);
  align-items: start;
}

.worklist-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.worklist-rail .commerce-note-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.worklist-summary-band {
  padding: 18px 22px;
}

.worklist-summary-band .commerce-hero-grid {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.worklist-summary-band .commerce-hero-copy {
  gap: 8px;
}

.worklist-summary-band .commerce-hero-copy h3 {
  font-size: 1.36rem;
}

.worklist-summary-band .commerce-hero-copy p {
  max-width: 48ch;
  font-size: .92rem;
}

.worklist-entry-grid {
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1fr) minmax(180px, .5fr);
  align-items: start;
  gap: 14px;
}

.worklist-entry-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.worklist-entry-main .commerce-record-actions-right {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.worklist-entry-side {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 10px;
}

.worklist-entry-side .commerce-record-actions-left {
  display: grid;
  width: 100%;
}

.worklist-entry-side .commerce-record-actions-left .btn,
.worklist-entry-side .commerce-record-actions-left form,
.worklist-entry-side .commerce-record-actions-left button {
  width: 100%;
}

.reorder-worklist {
  gap: 14px;
}

.reorder-group--compact {
  gap: 12px;
  padding: 18px 20px;
}

.reorder-group-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.reorder-entry--compact {
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(88px, .45fr));
  padding: 12px 14px;
}

.reorder-entry--compact .commerce-reorder-item-main strong {
  font-size: .98rem;
}

.reorder-entry--compact .commerce-reorder-stat strong {
  font-size: .98rem;
}

.time-status-grid--compact {
  gap: 10px;
}

.time-status-grid--compact .time-status-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.16);
}

.time-overview-stack--compact {
  gap: 10px;
}

.time-overview-day-row--compact {
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
}

.time-overview-day-row--compact .time-overview-day-label {
  gap: 4px;
}

.time-overview-day-row--compact .time-overview-day-label strong {
  font-size: .98rem;
}

.time-overview-day-row--compact .time-overview-day-metrics {
  gap: 10px;
}

.time-overview-day-row--compact .time-overview-day-side {
  min-width: 82px;
}

.commerce-record-card--compact {
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
}

.commerce-record-card--compact .commerce-record-head {
  gap: 12px;
  align-items: start;
}

.commerce-record-card--compact .commerce-record-title {
  gap: 4px;
}

.commerce-record-card--compact .commerce-record-title strong {
  font-size: 1.04rem;
  line-height: 1.18;
}

.commerce-record-card--compact .commerce-record-title p {
  margin: 0;
  color: var(--muted, #667792);
  line-height: 1.44;
}

.commerce-record-meta-grid--dense {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commerce-record-meta-grid--dense .commerce-record-meta-card {
  padding: 12px 14px;
  border-radius: 18px;
}

.commerce-record-meta-grid--dense .commerce-record-meta-value {
  font-size: 1rem;
}

.commerce-record-meta-grid--dense .commerce-record-meta-note {
  margin-top: 2px;
}

.commerce-record-card--compact .commerce-record-actions {
  align-items: center;
  gap: 14px;
}

.commerce-record-card--compact .commerce-record-actions-right {
  min-width: 180px;
}

.masterdata-toolbar--compact {
  padding: 16px 18px;
}

.masterdata-toolbar--compact .form-row {
  gap: 10px;
}

.masterdata-toolbar--compact label > span {
  font-size: .72rem;
}

.masterdata-table--compact {
  padding: 18px 20px;
  min-width: 0;
}

.masterdata-table--compact .section-head {
  margin-bottom: 12px;
}

.masterdata-table--compact .commerce-table th,
.masterdata-table--compact .commerce-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.masterdata-table--compact .commerce-table td small {
  margin-top: 3px;
}

.masterdata-table--compact .time-table-wrap {
  max-width: 100%;
}

.commerce-shell--articles .masterdata-table--compact .commerce-table {
  min-width: 900px;
}

.commerce-shell--articles .masterdata-table--compact .commerce-table th,
.commerce-shell--articles .masterdata-table--compact .commerce-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.commerce-shell--articles .masterdata-table--compact .commerce-table th:last-child,
.commerce-shell--articles .masterdata-table--compact .commerce-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.masterdata-editor--compact {
  padding: 18px 20px;
}

.masterdata-editor--compact .stack-form {
  gap: 12px;
}

.masterdata-editor--compact textarea,
.masterdata-editor--compact input,
.masterdata-editor--compact select {
  min-height: 44px;
}

.masterdata-editor--compact textarea {
  min-height: 96px;
}

.time-workspace-head .workspace-head-bar {
  align-items: start;
}

.time-workspace-head .workspace-metrics-strip {
  margin-top: -2px;
}

.team-attendance-page > .workspace-head {
  gap: 18px;
}

.team-attendance-page > .workspace-head .workspace-head-bar {
  align-items: start;
}

.team-insight-strip {
  gap: 10px;
}

.team-insight-card {
  padding: 14px 16px;
  border-radius: 20px;
  gap: 4px;
}

.team-insight-card strong {
  font-size: 1.14rem;
}

.team-insight-card small {
  min-height: 2.2em;
}

.team-attendance-kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.team-attendance-kpi-card {
  min-height: 58px;
  align-content: center;
  padding: 0.56rem 0.68rem;
  border-radius: 1rem;
  gap: 0.15rem;
  box-shadow: 0 10px 22px rgba(17, 29, 74, 0.035);
}

.team-attendance-kpi-card span {
  font-size: 0.63rem;
  letter-spacing: 0.075em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attendance-kpi-card strong {
  font-size: 1.02rem;
}

.team-attendance-kpi-card small {
  display: none;
  min-height: 0;
  font-size: 0.66rem;
  line-height: 1.18;
}

@media (min-width: 1181px) {
  .project-master-detail-shell--with-detail {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  }

  .project-master-detail-shell--with-detail > .project-master-detail-overview,
  .project-master-detail-shell--with-detail > .project-create-panel {
    grid-column: 1;
  }

  .project-master-detail-shell--with-detail > .project-master-detail-detail {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 1181px) {
  .nav-group.sidebar-section {
    gap: 10px;
    padding-top: 0;
    border-top: 0;
  }

  .nav-group.sidebar-section + .nav-group.sidebar-section {
    padding-top: 18px;
    border-top: 0;
  }

  .sidebar-nav-shell {
    gap: 22px;
  }

  .sidebar-link-stack {
    gap: 5px;
  }

  .sidebar-link-stack a {
    background: rgba(255,255,255,.58);
    border-color: rgba(220, 229, 240, .58);
  }

  .nav-group-toggle--sidebar {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 14px;
  }

  .nav-group-links--sidebar {
    gap: 4px;
    margin: 0 0 0 10px;
    padding: 2px 0 0 14px;
    border-left-color: rgba(95, 123, 194, .14);
  }
}

@media (max-width: 980px) {
  .app-topbar-shell {
    padding: 16px 18px;
  }

  .workspace-page {
    gap: 16px;
  }

  .workspace-page > .workspace-head,
  .workspace-page > .page-head.workspace-head,
  .project-list-card > .workspace-head,
  .team-attendance-page > .workspace-head {
    padding: 18px 18px 20px;
    border-radius: 24px;
  }

  .workspace-head-bar {
    align-items: start;
  }

  .workspace-page > .workspace-head.workspace-head--compact,
  .workspace-page > .page-head.workspace-head.workspace-head--compact,
  .project-list-card > .workspace-head.workspace-head--compact,
  .team-attendance-page > .workspace-head.workspace-head--compact {
    padding: 16px 18px 18px;
    border-radius: 22px;
  }

  .workspace-editor-totals-bar {
    bottom: 0;
  }

  .workspace-filter-bar {
    padding: 16px;
    border-radius: 22px;
  }

  .time-overview-day-row--compact {
    grid-template-columns: 1fr;
  }

  .team-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masterdata-table--compact,
  .masterdata-editor--compact {
    padding: 16px;
  }

  .worklist-summary-band .commerce-hero-grid,
  .worklist-entry-grid {
    grid-template-columns: 1fr;
  }

  .reorder-entry--compact {
    grid-template-columns: 1fr repeat(3, minmax(92px, 1fr));
  }

  .commerce-layout--summary-rail {
    grid-template-columns: 1fr;
  }

  .commerce-layout--editor-workspace {
    grid-template-columns: 1fr;
  }

  .commerce-record-meta-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace-head h2,
  .workspace-head h3 {
    font-size: 1.34rem;
  }

  .team-insight-card small {
    min-height: 0;
  }

  .sidebar-link-stack {
    gap: 6px;
  }

  .workspace-metrics-strip,
  .workspace-metrics-strip--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-editor-head .workspace-metrics-strip,
  .workspace-editor-head .workspace-metrics-strip--compact {
    grid-template-columns: 1fr;
  }

  .workspace-editor-section-nav {
    padding: 10px;
  }

  .workspace-editor-payment-card .commerce-payment-summary {
    grid-template-columns: 1fr;
  }

  .workspace-editor-totals-bar {
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .worklist-summary-band {
    padding: 16px;
  }

  .reorder-group-meta {
    justify-items: start;
    text-align: left;
  }

  .commerce-record-card--compact {
    padding: 16px;
    border-radius: 22px;
  }

  .worklist-entry-side .commerce-record-actions-left {
    grid-template-columns: 1fr;
  }

  .commerce-record-meta-grid--dense {
    grid-template-columns: 1fr;
  }

  .reorder-entry--compact {
    grid-template-columns: 1fr;
  }

  .commerce-record-card--compact .commerce-record-actions-right {
    min-width: 0;
  }
}

@media (max-width: 1380px) {
  .project-detail-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-summary-strip,
  .project-detail-secondary-grid,
  .project-detail-billing-grid,
  .project-detail-dispatch-status,
  .project-detail-commerce-module {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .project-detail-tab-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .project-detail-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .project-detail-tab-btn {
    flex: 0 0 auto;
  }
}

.mobile-nav-trigger,
.mobile-nav-panel,
.mobile-topbar-nav-trigger {
  display: none;
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  body.mobile-nav-ready .sidebar {
    position: static;
    top: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    z-index: auto;
  }

  body.ios-webkit.mobile-nav-ready .sidebar {
    will-change: auto;
    -webkit-transform: none;
    transform: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
  }

  body.mobile-nav-ready .sidebar-brand,
  body.mobile-nav-ready .sidebar-nav {
    display: none !important;
  }

  body.mobile-nav-ready .mobile-nav-trigger {
    display: none !important;
  }

  body.ios-webkit.mobile-nav-ready .mobile-nav-trigger {
    display: none !important;
  }

  .mobile-nav-trigger-bars {
    display: grid;
    gap: 4px;
    width: 18px;
    flex: 0 0 18px;
  }

  .mobile-nav-trigger-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-trigger-label {
    font-weight: 800;
    letter-spacing: .01em;
  }

  body.mobile-nav-ready .mobile-nav-panel {
    position: fixed;
    inset: 0;
    z-index: 76;
    isolation: isolate;
  }

  body.mobile-nav-ready .mobile-nav-panel.is-open {
    display: block;
  }

  .mobile-nav-panel:target {
    display: block !important;
  }

  .mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    background: rgba(7, 16, 42, .42);
    backdrop-filter: blur(10px);
  }

  body.mobile-nav-ready .mobile-nav-sheet {
    position: fixed;
    left: 14px;
    right: 14px;
    top: max(18px, calc(env(safe-area-inset-top) + 18px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
    overflow: auto;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(214, 223, 239, .94);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,253,.96));
    box-shadow: 0 24px 54px rgba(7, 22, 45, .24);
    z-index: 1;
  }

  body.ios-webkit.mobile-nav-ready .mobile-nav-sheet {
    top: max(18px, calc(env(safe-area-inset-top) + 18px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .mobile-nav-sheet-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mobile-nav-sheet-head h2 {
    margin: 4px 0 0;
    font-size: 1.28rem;
  }

  .mobile-nav-close.btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .mobile-nav-sections {
    display: grid;
    gap: 14px;
  }

  .mobile-nav-section {
    display: grid;
    gap: 8px;
  }

  .mobile-nav-section-title {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mobile-nav-links {
    display: grid;
    gap: 8px;
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(214, 223, 239, .94);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(18, 40, 99, .08);
  }

  .mobile-nav-links a .nav-text--full {
    display: inline !important;
  }

  .mobile-nav-links a .nav-text--short {
    display: none !important;
  }

  .mobile-nav-links a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, rgba(85, 125, 246, .98), rgba(46, 74, 198, .96));
    box-shadow: 0 18px 32px rgba(35, 63, 168, .28);
  }

  body.mobile-nav-ready.modal-open .mobile-nav-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 10px, 0);
  }

  body.mobile-nav-ready .app-main {
    padding-bottom: 0;
  }

  body.mobile-nav-ready .content-shell {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  body.ios-webkit.mobile-nav-ready .content-shell {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .topbar {
    position: relative;
    top: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 10px;
    gap: 10px;
  }

  .topbar-copy {
    width: 100%;
    min-width: 0;
  }

  .topbar-title-row {
    gap: 8px;
  }

  .topbar-title-row h1 {
    font-size: clamp(1.2rem, 6vw, 1.58rem);
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }

  .topbar-actions .user-pill {
    grid-column: 1 / -1;
  }

  .topbar-actions form {
    display: flex;
  }

  .mobile-topbar-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    width: 100%;
    font-weight: 800;
  }

  .user-pill {
    width: 100%;
    max-width: none;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .profile-head .workspace-head-bar {
    display: grid;
    gap: 14px;
  }

  .profile-head p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .profile-head .workspace-metrics-strip--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-head .workspace-metrics-strip--compact > :last-child {
    grid-column: 1 / -1;
  }

  .profile-head .commerce-metric-card {
    padding: 16px 14px;
    min-height: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-card {
    padding: 16px;
    border-radius: 22px;
  }

  .profile-signature-layout {
    max-width: none;
    gap: 12px;
  }

  .profile-signature-preview-card {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-signature-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-signature-actions .btn,
  .profile-signature-actions .btn-outline,
  .profile-signature-actions .btn-primary {
    width: 100%;
  }

  .profile-signature-modal .project-signature-dialog {
    width: min(100%, 540px);
    max-height: calc(100dvh - 24px);
    padding: 18px 16px 16px;
    gap: 12px;
    overflow: auto;
  }

  .profile-signature-modal .project-signature-dialog canvas {
    height: min(56vw, 240px);
    min-height: 210px;
  }

  .profile-signature-modal .project-customer-dialog-copy {
    font-size: .98rem;
    line-height: 1.5;
  }

  .profile-signature-modal .project-customer-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  body.mobile-nav-ready .mobile-nav-trigger {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 54px;
    padding: 0 16px;
  }

  body.ios-webkit.mobile-nav-ready .mobile-nav-trigger {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }

  body.mobile-nav-ready .mobile-nav-sheet {
    left: 10px;
    right: 10px;
    top: max(18px, calc(env(safe-area-inset-top) + 18px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
    padding: 16px;
    border-radius: 24px;
  }

  body.ios-webkit.mobile-nav-ready .mobile-nav-sheet {
    top: max(18px, calc(env(safe-area-inset-top) + 18px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .topbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions form,
  .mobile-topbar-nav-trigger,
  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    width: 100%;
  }

  .profile-head .workspace-metrics-strip--compact {
    grid-template-columns: 1fr;
  }

  .profile-head .workspace-metrics-strip--compact > :last-child {
    grid-column: auto;
  }
}

/* Clickable live document prototype */
.demo-offer-shell {
  --demo-ink: #0b1736;
  --demo-muted: #5b6a85;
  --demo-line: #d9e3f5;
  --demo-paper: #ffffff;
  --demo-blue: #2947d5;
  --demo-blue-2: #5f86f6;
  --demo-wash: #eef5ff;
  gap: 22px;
}

.demo-offer-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(78, 122, 244, .16), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f7fbff 55%, #eef5ff 100%);
}

.demo-offer-hero .workspace-head-bar {
  align-items: flex-start;
}

.demo-offer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-offer-statusbar {
  margin-top: 18px;
}

.demo-offer-mobile-switch {
  display: none;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.demo-offer-mobile-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--demo-muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.demo-offer-mobile-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--demo-blue), var(--demo-blue-2));
  box-shadow: 0 14px 30px rgba(41, 71, 213, .22);
}

.demo-offer-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(880px, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: start;
}

.demo-offer-toolbox,
.demo-offer-inspector {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--demo-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 60px rgba(22, 33, 63, .08);
  backdrop-filter: blur(18px);
}

.demo-offer-panel-head {
  display: grid;
  gap: 4px;
}

.demo-offer-panel-head strong {
  color: var(--demo-ink);
  font-size: 1.12rem;
}

.demo-tool-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 1px solid #dce6f6;
  border-radius: 20px;
  color: var(--demo-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 248, 255, .94));
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.demo-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 71, 213, .32);
  box-shadow: 0 18px 38px rgba(28, 47, 94, .11);
}

.demo-tool-card span {
  color: #60718d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-tool-card strong {
  font-size: 1rem;
}

.demo-tool-card small {
  color: var(--demo-muted);
  line-height: 1.35;
}

.demo-offer-shortcuts {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--demo-line);
}

.demo-offer-shortcuts span {
  color: #60718d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-offer-shortcuts button {
  min-height: 38px;
  border: 1px solid #d5e0f2;
  border-radius: 14px;
  color: var(--demo-ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.demo-offer-canvas {
  min-width: 0;
  overflow: auto;
  padding: 34px;
  border: 1px solid #d7e2f4;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(235, 242, 255, .9), rgba(244, 248, 255, .55)),
    repeating-linear-gradient(45deg, rgba(41, 71, 213, .045) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 26px 80px rgba(23, 40, 78, .1);
}

.demo-offer-pages {
  display: grid;
  justify-items: center;
  min-width: 210mm;
}

.demo-offer-page {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18mm;
  border: 1px solid rgba(10, 29, 70, .1);
  border-radius: 8px;
  color: var(--demo-ink);
  background: var(--demo-paper);
  box-shadow: 0 30px 90px rgba(12, 24, 53, .18);
}

.demo-offer-page--continuation {
  display: flex;
  flex-direction: column;
}

.demo-offer-page-spacer {
  display: grid;
  width: 210mm;
  height: 42px;
  place-items: center;
  color: #657694;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-offer-page-spacer::before,
.demo-offer-page-spacer::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 71, 213, .34), transparent);
}

.demo-document-top,
.demo-document-address-grid,
.demo-document-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 34px;
  align-items: start;
}

.demo-document-top {
  padding-bottom: 30px;
  border-bottom: 3px solid var(--demo-blue);
}

.demo-document-top--compact {
  margin-bottom: 28px;
}

.demo-document-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.demo-document-brand img {
  display: block;
  width: 142px;
  height: auto;
}

.demo-logo-mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2036ad, #28a6c9);
  font-weight: 950;
  letter-spacing: .02em;
}

.demo-document-brand strong,
.demo-document-brand span {
  display: block;
}

.demo-document-brand strong {
  font-size: 1.1rem;
}

.demo-document-brand span {
  color: var(--demo-muted);
  font-size: .88rem;
}

.demo-document-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--demo-muted);
}

.demo-document-meta span,
.demo-edit-block > span,
.demo-document-title > span,
.demo-document-terms > span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-document-meta strong {
  color: var(--demo-ink);
  font-size: 1.2rem;
}

.demo-document-address-grid {
  margin-top: 34px;
}

.demo-edit-block {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(41, 71, 213, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.demo-edit-block strong {
  font-size: 1.1rem;
}

.demo-edit-block p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.55;
}

.demo-block-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-mini-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cfdaf0;
  border-radius: 999px;
  color: #2036ad;
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.demo-edit-block dl,
.demo-edit-block div {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-edit-block dl > div {
  grid-template-columns: 95px minmax(0, 1fr);
  align-items: baseline;
}

.demo-edit-block dt {
  color: var(--demo-muted);
  font-size: .86rem;
}

.demo-edit-block dd {
  margin: 0;
  font-weight: 850;
}

.demo-document-title {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.demo-document-title h1 {
  max-width: 720px;
  margin: 0;
  color: var(--demo-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.055em;
  line-height: .96;
}

.demo-document-title p {
  max-width: 680px;
  margin: 0;
  color: #394b68;
  font-size: 1rem;
  line-height: 1.65;
}

.demo-offer-items {
  margin-top: 42px;
}

.demo-group-title {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #2036ad;
  background: #edf3ff;
  font-size: .84rem;
  font-weight: 900;
}

.demo-offer-items table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.demo-offer-items th {
  padding: 12px 10px;
  color: #5a6882;
  border-bottom: 2px solid #213da8;
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.demo-offer-items th:nth-child(1),
.demo-offer-items td:nth-child(1) {
  width: 54px;
}

.demo-offer-items th:nth-child(3),
.demo-offer-items td:nth-child(3) {
  width: 118px;
}

.demo-offer-items th:nth-child(4),
.demo-offer-items td:nth-child(4),
.demo-offer-items th:nth-child(5),
.demo-offer-items td:nth-child(5) {
  width: 128px;
  text-align: right;
}

.demo-offer-items td {
  padding: 16px 10px;
  border-bottom: 1px solid #dce5f2;
  vertical-align: top;
}

.demo-offer-items tr {
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.demo-offer-items tr.is-selected {
  background: linear-gradient(90deg, rgba(41, 71, 213, .1), rgba(96, 134, 246, .06));
  box-shadow: inset 4px 0 0 var(--demo-blue);
}

.demo-offer-items td strong,
.demo-offer-items td small {
  display: block;
}

.demo-offer-items td strong {
  margin-bottom: 4px;
}

.demo-offer-items td small {
  color: var(--demo-muted);
  line-height: 1.4;
}

.demo-offer-items input {
  width: 78px;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--demo-ink);
  background: rgba(237, 243, 255, .72);
  font: inherit;
  font-weight: 800;
}

.demo-offer-items input:focus {
  outline: 2px solid rgba(41, 71, 213, .18);
  background: #fff;
}

.demo-line-add-button {
  display: inline-flex;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(41, 71, 213, .42);
  border-radius: 999px;
  color: #2036ad;
  background: linear-gradient(135deg, #fff, #f4f8ff);
  font-weight: 900;
  cursor: pointer;
}

.demo-line-add-button:hover {
  border-style: solid;
  box-shadow: 0 12px 26px rgba(41, 71, 213, .12);
}

.demo-offer-items [data-demo-unit] {
  display: inline-block;
  margin-left: 5px;
  color: var(--demo-muted);
  font-size: .82rem;
}

.demo-offer-shell [data-demo-field] {
  border-radius: 8px;
  outline: 0;
  transition: background .16s ease, box-shadow .16s ease;
}

.demo-offer-shell [data-demo-field]:hover {
  background: rgba(41, 71, 213, .06);
  box-shadow: 0 0 0 5px rgba(41, 71, 213, .06);
}

.demo-offer-shell [data-demo-field].is-selected {
  background: rgba(41, 71, 213, .1);
  box-shadow: 0 0 0 5px rgba(41, 71, 213, .1);
}

.demo-document-bottom {
  margin-top: 38px;
  align-items: end;
}

.demo-document-terms {
  display: grid;
  gap: 10px;
}

.demo-document-terms p {
  margin: 0;
  color: #394b68;
  line-height: 1.6;
}

.demo-document-totals {
  display: grid;
  gap: 0;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  overflow: hidden;
  background: #f7faff;
}

.demo-document-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce5f2;
}

.demo-document-totals div:last-child {
  border-bottom: 0;
}

.demo-document-totals span {
  color: var(--demo-muted);
}

.demo-document-totals .is-total {
  color: #fff;
  background: linear-gradient(135deg, var(--demo-blue), var(--demo-blue-2));
}

.demo-document-totals .is-total span,
.demo-document-totals .is-total strong {
  color: #fff;
}

.demo-inspector-field {
  display: grid;
  gap: 8px;
}

.demo-inspector-field span,
.demo-inspector-grid span,
.demo-inspector-summary span {
  color: #53647f;
  font-size: .76rem;
  font-weight: 900;
}

.demo-inspector-field textarea,
.demo-inspector-grid input {
  width: 100%;
  border: 1px solid #d5e0f2;
  border-radius: 16px;
  color: var(--demo-ink);
  background: #fff;
  font: inherit;
}

.demo-inspector-field textarea {
  resize: vertical;
  min-height: 156px;
  padding: 13px;
  line-height: 1.45;
}

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

.demo-inspector-grid label {
  display: grid;
  gap: 6px;
}

.demo-inspector-grid input {
  min-height: 44px;
  padding: 0 12px;
  font-weight: 800;
}

.demo-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.demo-inspector-summary {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, #18255f, #3152df);
}

.demo-inspector-summary span,
.demo-inspector-summary strong,
.demo-inspector-summary small {
  color: #fff;
}

.demo-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 28px;
}

.demo-offer-modal[hidden] {
  display: none;
}

.demo-offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 40, .54);
  backdrop-filter: blur(10px);
}

.demo-offer-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(720px, 100%);
  padding: 24px;
  border: 1px solid #dbe6f7;
  border-radius: 28px;
  color: var(--demo-ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(95, 134, 246, .16), transparent 32%),
    #fff;
  box-shadow: 0 34px 100px rgba(10, 22, 50, .28);
}

.demo-offer-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.demo-offer-modal-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.demo-modal-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-modal-choice-grid button,
.demo-customer-options button {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #dce6f6;
  border-radius: 18px;
  color: var(--demo-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.demo-modal-choice-grid button:hover,
.demo-customer-options button:hover {
  border-color: rgba(41, 71, 213, .36);
  box-shadow: 0 16px 34px rgba(22, 33, 63, .1);
}

.demo-modal-choice-grid span,
.demo-modal-label {
  color: #61718d;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-modal-choice-grid small,
.demo-customer-options span,
.demo-customer-empty {
  color: var(--demo-muted);
  line-height: 1.4;
}

.live-document-line-modal-card {
  width: min(560px, calc(100vw - 34px));
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(189, 204, 231, .78);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(14, 24, 50, .22);
}

.live-document-line-modal-card .demo-offer-modal-head {
  align-items: center;
  gap: 12px;
}

.live-document-line-modal-card .demo-offer-modal-head h3 {
  font-size: 1.05rem;
}

.live-document-line-modal-card .btn {
  min-height: 36px;
  padding-inline: 14px;
}

.live-document-line-modal-card .demo-modal-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-document-line-modal-card .demo-modal-choice-grid button {
  gap: 10px;
  padding: 13px;
  border-radius: 16px;
}

.live-document-choice-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.live-document-choice-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #1f39b8 !important;
  background: #eef4ff;
  font-size: .74rem !important;
  letter-spacing: 0 !important;
}

.live-document-choice-copy {
  display: grid;
  gap: 3px;
}

.live-document-choice-copy span {
  color: #61718d;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-document-choice-copy strong {
  color: var(--live-ink);
  line-height: 1.15;
}

.live-document-choice-copy small {
  line-height: 1.35;
}

.demo-customer-dialog {
  width: min(960px, 100%);
}

.demo-customer-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.demo-customer-options {
  display: grid;
  gap: 10px;
  max-height: 420px;
  margin-top: 10px;
  overflow: auto;
  padding-right: 4px;
}

.demo-customer-new {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dce6f6;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.demo-customer-new label {
  display: grid;
  gap: 6px;
}

.demo-customer-new label span {
  color: #53647f;
  font-size: .76rem;
  font-weight: 900;
}

.demo-customer-new input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5e0f2;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--demo-ink);
  background: #fff;
  font: inherit;
}

.demo-customer-new-row {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 10px;
}

/* Final live document editors for offers and invoices */
.live-document-shell {
  --live-ink: #0b1736;
  --live-muted: #5b6a85;
  --live-line: #d9e3f5;
  --live-paper: #ffffff;
  --live-blue: #2947d5;
  --live-blue-soft: #eef5ff;
  --live-page-scale: 1;
  --live-rail-width: 176px;
  --live-inspector-width: 220px;
  gap: 12px;
}

.live-document-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(78, 122, 244, .14), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f8fbff 58%, #eef5ff 100%);
}

.live-document-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-document-statusbar {
  margin-top: 18px;
}

.live-document-focus-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, calc(210mm + 56px + var(--live-inspector-width) + 18px));
  margin: 0 auto 10px;
  padding: 8px 4px 12px;
  border-bottom: 1px solid rgba(113, 133, 171, .24);
}

.live-document-focus-strip > div:first-child {
  display: grid;
  gap: 2px;
}

.live-document-focus-strip span {
  color: #53647f;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.live-document-focus-strip strong {
  color: #10203d;
  font-size: 1rem;
  line-height: 1.15;
}

.live-document-focus-strip small {
  color: #687894;
}

.live-document-word-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.live-document-word-controls .btn {
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 16px;
}

.live-document-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 18px;
  align-items: start;
}

.live-document-workspace--word {
  grid-template-columns: minmax(0, 1fr);
}

.live-document-form {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(850px, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.live-document-form--word {
  grid-template-columns: calc(210mm + 44px) var(--live-inspector-width);
  gap: 12px;
  justify-content: center;
}

.live-document-workspace--word > .live-document-side {
  width: min(100%, calc(210mm + 56px + var(--live-inspector-width) + 18px));
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.live-document-toolbox,
.live-document-inspector,
.live-document-side .commerce-card {
  border: 1px solid var(--live-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 60px rgba(22, 33, 63, .08);
}

.live-document-toolbox,
.live-document-inspector {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 10px;
  padding: 14px;
  backdrop-filter: blur(18px);
}

.live-document-save-actions,
.live-document-side,
.live-document-send-block {
  display: grid;
  gap: 12px;
}

.live-document-save-actions {
  padding-top: 14px;
  border-top: 1px solid var(--live-line);
}

.live-document-save-actions .btn,
.live-document-side .btn {
  width: 100%;
}

.live-document-canvas {
  width: calc(210mm + 44px);
  min-width: calc(210mm + 44px);
  overflow: visible;
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(232, 239, 252, .7), rgba(244, 248, 255, .32));
  box-shadow: none;
}

.live-document-pages {
  display: grid;
  justify-items: center;
  min-width: 210mm;
}

.live-document-page {
  width: 210mm;
  height: 297mm;
  min-height: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 14mm 16mm;
  border: 1px solid rgba(10, 29, 70, .1);
  border-radius: 2px;
  color: var(--live-ink);
  background: var(--live-paper);
  box-shadow: 0 28px 78px rgba(12, 24, 53, .16);
}

.live-document-page--dense {
  padding: 10mm 15mm 11mm;
}

.live-document-page--continuation {
  height: 297mm;
  min-height: 0;
}

.live-document-page-spacer {
  display: grid;
  width: 210mm;
  height: 42px;
  place-items: center;
  color: #657694;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.live-document-page-spacer::before,
.live-document-page-spacer::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 71, 213, .34), transparent);
}

.live-document-page-top,
.live-document-address-grid,
.live-document-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 265px);
  gap: 24px;
  align-items: start;
}

.live-document-page-top {
  padding-bottom: 11px;
  border-bottom: 2px solid var(--live-blue);
}

.live-document-page-top--compact {
  margin-bottom: 28px;
}

.live-document-page-top img {
  display: block;
  width: 124px;
  height: auto;
}

.live-document-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--live-muted);
}

.live-document-meta span,
.live-document-edit-block > span,
.live-document-title > span,
.live-document-terms > span,
.live-document-group-title span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.live-document-meta strong {
  color: var(--live-ink);
  font-size: 1.08rem;
}

.live-document-address-grid {
  margin-top: 10px;
}

.live-document-edit-block {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(41, 71, 213, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.live-document-edit-block--flat {
  padding: 12px 0 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}

.live-document-customer-block.live-document-edit-block--flat {
  gap: 1px;
  padding: 7px 10px 7px;
  border: 0;
  border-left: 2px solid rgba(32, 54, 173, .34);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.live-document-edit-block--flat .live-document-block-row {
  margin-bottom: 5px;
}

.live-document-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-document-customer-block .live-document-block-row {
  align-items: center;
}

.live-document-customer-block [data-live-customer-select] {
  display: none;
}

.live-document-edit-block label,
.live-document-inspector label {
  display: grid;
  gap: 6px;
}

.live-document-edit-block label b,
.live-document-inspector label span {
  color: #53647f;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.live-document-edit-block input,
.live-document-edit-block select,
.live-document-inspector textarea,
.live-document-customer-block select,
.live-document-inline-field,
.live-document-title-input,
.live-document-textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--live-ink);
  background: transparent;
  font: inherit;
}

.live-document-edit-block input,
.live-document-edit-block select,
.live-document-customer-block select,
.live-document-inline-field,
.live-document-title-input {
  min-height: 30px;
  padding: 0 4px;
}

.live-document-edit-block input:hover,
.live-document-edit-block select:hover,
.live-document-customer-block select:hover,
.live-document-inline-field:hover,
.live-document-textarea:hover,
.live-document-edit-block input:focus,
.live-document-edit-block select:focus,
.live-document-customer-block select:focus,
.live-document-inline-field:focus,
.live-document-textarea:focus {
  border-color: rgba(41, 71, 213, .2);
  background: rgba(245, 248, 255, .78);
  outline: 0;
}

.live-document-inline-grid {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 8px;
}

.live-document-customer-name,
.live-document-title-input {
  font-weight: 950;
}

.live-document-customer-name {
  font-size: 1.08rem;
  line-height: 1.12;
}

.live-document-customer-block .live-document-inline-field {
  min-height: 18px;
  padding: 0;
  line-height: 1.12;
}

.live-document-customer-block .live-document-inline-field:not(.live-document-customer-name) {
  color: #354762;
  font-size: .9rem;
}

.live-document-customer-block .live-document-inline-field::placeholder {
  color: #8493aa;
}

.live-document-customer-block .live-document-inline-grid {
  gap: 6px;
}

.live-document-edit-block--right {
  gap: 5px;
  padding-top: 5px;
}

.live-document-edit-block--right label {
  gap: 2px;
}

.live-document-edit-block--right input,
.live-document-edit-block--right select {
  min-height: 24px;
  padding: 0 2px;
}

.live-document-title {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.live-document-title-input {
  min-height: 28px;
  border-color: transparent;
  padding: 0;
  background: transparent;
  font-size: clamp(1.12rem, 1.35vw, 1.45rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  resize: none;
  overflow: hidden;
}

.live-document-title-input:focus {
  outline: 0;
  background: rgba(41, 71, 213, .06);
  box-shadow: 0 0 0 8px rgba(41, 71, 213, .06);
}

.live-document-textarea {
  min-height: 28px;
  padding: 4px 0;
  resize: none;
  line-height: 1.24;
}

.live-document-textarea--intro {
  max-width: 680px;
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  color: #394b68;
  font-size: .92rem;
}

.live-document-items {
  margin-top: 10px;
}

.live-document-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.live-document-line-add {
  display: inline-flex;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 71, 213, .22);
  border-radius: 999px;
  color: #2036ad;
  background: rgba(255, 255, 255, .94);
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px) scale(.9);
  box-shadow: 0 10px 22px rgba(41, 71, 213, .12);
  transition: opacity .16s ease, transform .16s ease, border .16s ease, box-shadow .16s ease;
}

.live-document-line-add:hover {
  border-style: solid;
  box-shadow: 0 12px 26px rgba(41, 71, 213, .12);
}

.live-document-items {
  position: relative;
}

.live-document-items:hover .live-document-line-add:not(.live-document-row-insert),
.live-document-line-add:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.live-document-inline-insert {
  position: absolute;
  top: -3px;
  right: 0;
}

.live-document-row-insert {
  position: absolute;
  right: 40px;
  bottom: -15px;
  z-index: 3;
}

.live-document-items table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.live-document-items th {
  padding: 4px 5px;
  color: #5a6882;
  border-bottom: 2px solid #213da8;
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.live-document-items th:nth-child(1),
.live-document-items td:nth-child(1) {
  width: 38px;
}

.live-document-items th:nth-child(3),
.live-document-items td:nth-child(3) {
  width: 78px;
}

.live-document-items th:nth-child(4),
.live-document-items td:nth-child(4),
.live-document-items th:nth-child(5),
.live-document-items td:nth-child(5) {
  width: 92px;
  text-align: right;
}

.live-document-items td {
  padding: 4px 5px;
  border-bottom: 1px solid #dce5f2;
  vertical-align: top;
}

.live-document-items td.commerce-item-field,
.live-document-items td.commerce-item-total {
  display: table-cell;
  min-height: 0;
  border-radius: 0;
  background: transparent;
}

.live-document-items td.commerce-item-total {
  padding: 4px 5px;
  border: 0;
  border-bottom: 1px solid #dce5f2;
}

.live-document-item-row {
  transition: background .16s ease, box-shadow .16s ease;
}

.live-document-item-row td {
  padding-top: 3px;
  padding-bottom: 3px;
}

.live-document-item-row:not(:hover):not(:focus-within) {
  background: transparent;
  box-shadow: none;
}

.live-document-item-description {
  position: relative;
}

.live-document-item-row:hover,
.live-document-item-row.is-selected {
  background: linear-gradient(90deg, rgba(41, 71, 213, .045), rgba(96, 134, 246, .02));
  box-shadow: inset 2px 0 0 var(--live-blue);
}

.live-document-item-row.is-group .live-document-item-pos,
.live-document-item-row.is-group .live-document-item-description {
  color: #2036ad;
  background: #edf3ff;
  font-weight: 950;
}

.live-document-source-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .18s ease, opacity .18s ease, margin .18s ease;
}

.live-document-item-row:hover .live-document-source-pickers,
.live-document-item-row:focus-within .live-document-source-pickers {
  max-height: 86px;
  margin-bottom: 8px;
  opacity: 1;
}

.live-document-source-pickers label {
  display: grid;
  gap: 5px;
}

.live-document-source-pickers span,
.live-document-item-title span,
.live-document-item-copy span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  color: #61718d;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-document-source-pickers select {
  min-height: 36px;
  border: 1px solid #d7e2f4;
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}

.live-document-item-title input,
.live-document-item-copy textarea,
.live-document-number-cell input,
.live-document-price-cell input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--live-ink);
  background: transparent;
  font: inherit;
}

.live-document-item-title input {
  padding: 0;
  font-weight: 950;
}

.live-document-item-copy textarea {
  min-height: 18px;
  padding: 1px 0;
  color: var(--live-muted);
  resize: vertical;
  line-height: 1.35;
}

.live-document-item-title input:placeholder-shown,
.live-document-item-copy textarea:placeholder-shown {
  padding-inline: 8px;
  border-color: rgba(119, 141, 180, .42);
  border-style: dashed;
  color: #7b879d;
  background: linear-gradient(135deg, rgba(245, 248, 253, .95), rgba(255, 255, 255, .88));
}

.live-document-item-title input:focus::placeholder,
.live-document-item-copy textarea:focus::placeholder,
.live-document-number-cell input:focus::placeholder,
.live-document-price-cell input:focus::placeholder {
  color: transparent;
}

.live-document-editor-hint {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 7px;
  border: 1px dashed rgba(119, 141, 180, .42);
  border-radius: 999px;
  color: #7b879d;
  background: rgba(248, 251, 255, .92);
  font-size: .7rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .16s ease;
}

.live-document-editor-only {
  user-select: none;
}

.live-document-item-row:hover .live-document-editor-hint,
.live-document-item-row:focus-within .live-document-editor-hint {
  opacity: 1;
  transform: translateY(0);
}

.live-document-number-cell input,
.live-document-price-cell input {
  min-height: 18px;
  padding: 0;
  background: transparent;
  font-weight: 850;
  text-align: right;
}

.live-document-number-cell input + input {
  margin-top: 2px;
  color: var(--live-muted);
  text-align: center;
}

.live-document-item-title input:focus,
.live-document-item-copy textarea:focus,
.live-document-number-cell input:focus,
.live-document-price-cell input:focus {
  outline: 2px solid rgba(41, 71, 213, .16);
  background: #fff;
}

.live-document-total-cell strong,
.live-document-total-cell small {
  display: block;
  text-align: right;
}

.live-document-total-cell small {
  margin-top: 2px;
  color: var(--live-muted);
  font-size: .72rem;
}

.live-document-row-actions {
  position: absolute;
  right: 6px;
  top: 6px;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .16s ease;
}

.live-document-item-row:hover .live-document-row-actions,
.live-document-item-row:focus-within .live-document-row-actions {
  opacity: 1;
  transform: translateY(0);
}

.live-document-item-row:hover .live-document-row-insert,
.live-document-item-row:focus-within .live-document-row-insert {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.live-document-row-actions button {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #d5e0f2;
  border-radius: 999px;
  color: #2036ad;
  background: rgba(255, 255, 255, .94);
  font-size: .78rem;
  font-weight: 950;
  cursor: pointer;
}

.live-document-row-actions button::after {
  content: attr(data-action-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 8;
  padding: 5px 8px;
  border: 1px solid rgba(189, 204, 231, .9);
  border-radius: 999px;
  color: #17213f;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 33, 63, .12);
  font-size: .68rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}

.live-document-row-actions button:hover::after,
.live-document-row-actions button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.live-document-row-actions .live-document-row-remove {
  color: #b42318;
  border-color: rgba(180, 35, 24, .22);
}

.live-document-warning {
  margin-top: 8px;
  color: #a46400;
  font-size: .78rem;
  font-weight: 850;
}

.live-document-bottom {
  margin-top: 7px;
  align-items: end;
}

.live-document-terms {
  display: grid;
  gap: 6px;
}

.live-document-terms .live-document-textarea {
  min-height: 25px;
}

.live-document-totals {
  display: grid;
  gap: 0;
  align-self: end;
  border: 0;
  background: transparent;
}

.live-document-discount-row[hidden],
.live-document-discount-toggle[hidden] {
  display: none !important;
}

.live-document-discount-toggle {
  justify-self: end;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0 0 4px;
  padding: 0;
  border: 1px solid rgba(41, 71, 213, .2);
  border-radius: 999px;
  color: #2036ad;
  background: rgba(255, 255, 255, .74);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.live-document-totals label,
.live-document-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(83, 100, 127, .18);
}

.live-document-totals label span,
.live-document-totals div span {
  color: #53647f;
  font-size: .9rem;
}

.live-document-totals input {
  width: 78px;
  border: 0;
  border-bottom: 1px solid rgba(83, 100, 127, .28);
  border-radius: 0;
  padding: 0 0 2px;
  color: var(--live-ink);
  background: transparent;
  text-align: right;
  font-weight: 850;
}

.live-document-totals .is-total {
  margin-top: 5px;
  padding-top: 7px;
  border-bottom: 0;
  border-top: 2px solid #0c1835;
  background: transparent;
}

.live-document-totals .is-total span,
.live-document-totals .is-total strong {
  color: var(--live-ink);
  font-size: 1.04rem;
}

.live-document-inspector textarea {
  min-height: 118px;
  padding: 13px;
}

.live-document-side {
  position: sticky;
  top: 22px;
}

.live-document-side .commerce-card {
  padding: 18px;
}

.live-document-page--bernhardt-letter {
  position: relative;
  padding: 16mm 16mm 30mm;
  border: 0;
  border-radius: 0;
  color: #111827;
  background: #fff;
  font-size: 9.6pt;
  line-height: 1.28;
}

.live-document-page--bernhardt-letter .live-document-page-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66mm;
  gap: 16mm;
  min-height: 45mm;
  padding: 0;
  border: 0;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-document-mark {
  display: grid;
  gap: 3px;
  align-self: start;
  padding-top: 3mm;
  color: #56657d;
  font-size: 8pt;
}

.live-document-page--bernhardt-letter .live-document-document-mark span {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-document-page--bernhardt-letter .live-document-document-mark strong {
  color: #0b1733;
  font-size: 12pt;
}

.live-document-company-block {
  display: grid;
  justify-items: start;
  gap: 1.2mm;
  color: #101a33;
  font-size: 8.7pt;
  line-height: 1.18;
}

.live-document-company-block img {
  width: 42mm;
  height: auto;
  margin-bottom: 4mm;
}

.live-document-company-block--compact {
  justify-items: end;
}

.live-document-company-block--compact img {
  width: 28mm;
  margin-bottom: 0;
}

.live-document-company-block strong {
  font-size: 10.3pt;
}

.live-document-page--bernhardt-letter .live-document-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 92mm) minmax(40mm, 1fr);
  gap: 18mm;
  margin-top: 5mm;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-customer-block.live-document-edit-block--flat {
  gap: 1.1mm;
  min-height: 38mm;
  padding: 0 0 0 3mm;
  border-left: 1px solid rgba(17, 24, 39, .28);
}

.live-document-sender-line {
  margin: 0 0 5mm -3mm;
  color: #111827;
  font-size: 6.9pt;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.live-document-page--bernhardt-letter .live-document-customer-block .live-document-block-row {
  margin-bottom: 1.5mm;
}

.live-document-page--bernhardt-letter .live-document-customer-block .live-document-block-row span,
.live-document-page--bernhardt-letter .live-document-edit-block--facts > span,
.live-document-page--bernhardt-letter .live-document-title > span,
.live-document-page--bernhardt-letter .live-document-terms > span,
.live-document-page--bernhardt-letter .live-document-group-title span,
.live-document-page--bernhardt-letter .live-document-business-facts span {
  color: #4e5e79;
  font-size: 7.3pt;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-document-page--bernhardt-letter .live-document-customer-block .live-document-inline-field {
  min-height: 15px;
  color: #111827;
  font-size: 9pt;
  line-height: 1.1;
}

.live-document-page--bernhardt-letter .live-document-customer-name {
  font-size: 9.4pt;
  font-weight: 900;
}

.live-document-page--bernhardt-letter .live-document-inline-grid {
  grid-template-columns: 27mm minmax(0, 1fr);
  gap: 5mm;
}

.live-document-page--bernhardt-letter .live-document-edit-block--facts {
  display: grid;
  gap: 2.2mm;
  padding: 0;
}

.live-document-page--bernhardt-letter .live-document-edit-block--facts label {
  display: grid;
  gap: .8mm;
}

.live-document-page--bernhardt-letter .live-document-edit-block--facts input,
.live-document-page--bernhardt-letter .live-document-edit-block--facts select {
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-document-page--bernhardt-letter .live-document-title--letter {
  margin-top: 8mm;
}

.live-document-page--bernhardt-letter .live-document-title--letter h1 {
  margin: 0;
  color: #111827;
  font-size: 20pt;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.live-document-business-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32mm;
  gap: 8mm;
  margin-top: 6mm;
}

.live-document-business-facts div {
  display: grid;
  gap: 1.2mm;
  align-content: start;
}

.live-document-business-facts strong,
.live-document-fact-input {
  color: #111827;
  font-size: 9pt;
  font-weight: 850;
  line-height: 1.18;
}

.live-document-fact-input {
  width: 100%;
  min-height: 23px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
}

.live-document-fact-input:hover,
.live-document-fact-input:focus {
  outline: 1px solid rgba(41, 71, 213, .18);
  background: rgba(245, 248, 255, .75);
}

.live-document-intro {
  margin-top: 6mm;
}

.live-document-page--bernhardt-letter .live-document-textarea--intro {
  max-width: 100%;
  color: #111827;
  font-size: 9.3pt;
  line-height: 1.32;
}

.live-document-page--bernhardt-letter .live-document-items {
  margin-top: 9mm;
}

.live-document-page--bernhardt-letter .live-document-items table {
  border-collapse: collapse;
  table-layout: fixed;
}

.live-document-page--bernhardt-letter .live-document-items th {
  padding: 2.2mm 2mm;
  border-bottom: 1px solid #6b7280;
  background: #eceff3;
  color: #1f2937;
  font-size: 7.4pt;
  font-weight: 900;
  letter-spacing: .04em;
}

.live-document-page--bernhardt-letter .live-document-items th:nth-child(1),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(1) {
  width: 10mm;
  text-align: left;
}

.live-document-page--bernhardt-letter .live-document-items th:nth-child(2),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(2) {
  width: 17mm;
  text-align: right;
}

.live-document-page--bernhardt-letter .live-document-items th:nth-child(3),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(3) {
  width: 18mm;
  text-align: center;
}

.live-document-page--bernhardt-letter .live-document-items th:nth-child(5),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(5),
.live-document-page--bernhardt-letter .live-document-items th:nth-child(6),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(6) {
  width: 25mm;
  text-align: right;
}

.live-document-page--bernhardt-letter .live-document-items td {
  padding: 2.2mm 2mm;
  border-bottom: 1px solid #d7dce5;
}

.live-document-page--bernhardt-letter .live-document-item-title input {
  font-weight: 900;
}

.live-document-page--bernhardt-letter .live-document-item-copy textarea {
  color: #111827;
  font-size: 8.5pt;
}

.live-document-page--bernhardt-letter .live-document-number-cell input,
.live-document-page--bernhardt-letter .live-document-unit-cell input,
.live-document-page--bernhardt-letter .live-document-price-cell input {
  min-height: 18px;
  padding: 0;
  border-radius: 0;
  font-size: 9pt;
}

.live-document-page--bernhardt-letter .live-document-unit-cell input {
  text-align: center;
}

.live-document-page--bernhardt-letter .live-document-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72mm;
  gap: 18mm;
  margin-top: 6mm;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-terms {
  gap: 3mm;
}

.live-document-page--bernhardt-letter .live-document-totals label,
.live-document-page--bernhardt-letter .live-document-totals div {
  padding: 1.6mm 0;
  border-bottom: 1px solid #d7dce5;
}

.live-document-page--bernhardt-letter .live-document-totals .is-total {
  border-top: 2px double #111827;
}

.live-document-footer {
  position: absolute;
  right: 16mm;
  bottom: 10mm;
  left: 16mm;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.15fr .4fr;
  gap: 5mm;
  padding-top: 4mm;
  border-top: 1px solid #c4cad4;
  color: #4b5568;
  font-size: 6.7pt;
  line-height: 1.25;
}

.live-document-footer div {
  display: grid;
  gap: .8mm;
  align-content: start;
}

.live-document-footer strong {
  color: #111827;
  font-size: 7.2pt;
}

.app-shell--embedded {
  display: block;
  min-height: 100vh;
  background: #eef4ff;
}

.app-shell--embedded .app-main-shell {
  min-width: 0;
  margin: 0;
}

.app-shell--embedded .content-shell {
  width: 100%;
  max-width: none;
  padding: 16px;
}

.app-shell--embedded .live-document-shell {
  padding: 0;
}

@media (max-width: 1500px) {
  .live-document-workspace {
    grid-template-columns: 1fr;
  }

  .live-document-form--word {
    grid-template-columns: calc(210mm + 44px) var(--live-inspector-width);
    justify-content: start;
  }

  .live-document-toolbox {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .live-document-toolbox .demo-offer-panel-head,
  .live-document-save-actions {
    grid-column: 1 / -1;
  }

  .live-document-inspector,
  .live-document-side {
    grid-column: auto;
    position: sticky;
  }

  .live-document-canvas {
    min-width: calc(210mm + 44px);
    overflow: visible;
  }
}

@media (max-width: 1180px) {
  .live-document-form {
    grid-template-columns: 1fr;
  }

  .live-document-form--word {
    grid-template-columns: calc(210mm + 44px);
    justify-content: center;
  }

  .live-document-toolbox,
  .live-document-inspector {
    position: static;
  }

  .live-document-canvas {
    width: auto;
    min-width: 0;
    overflow-x: auto;
    padding: 16px;
  }

  .live-document-form--word .live-document-canvas {
    width: calc(210mm + 44px);
    min-width: calc(210mm + 44px);
    padding: 22px;
  }
}

.customer-workspace,
.customer-simple-shell {
  gap: 14px;
}

.customer-simple-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(113, 133, 171, .22);
}

.customer-simple-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #596986;
}

.customer-simple-summary strong {
  color: #10203d;
  font-size: 1rem;
  font-weight: 950;
}

.customer-simple-summary span {
  font-size: .86rem;
}

.customer-layout,
.customer-simple-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.customer-directory {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
}

.customer-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.customer-search label,
.customer-form-grid label {
  display: grid;
  gap: 6px;
}

.customer-form-grid span {
  color: #53647f;
  font-size: .76rem;
  font-weight: 900;
}

.customer-search input,
.customer-form-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5e0f2;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--demo-ink);
  background: #fff;
  font: inherit;
}

.customer-search .btn {
  min-height: 42px;
  padding-inline: 16px;
}

.customer-list {
  display: grid;
  gap: 7px;
}

.customer-card {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #dce6f6;
  border-radius: 16px;
  color: var(--demo-ink);
  background: rgba(255, 255, 255, .9);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.customer-card:hover,
.customer-card:focus-visible {
  border-color: rgba(41, 71, 213, .28);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.customer-card.is-active {
  border-color: rgba(41, 71, 213, .48);
  background: linear-gradient(135deg, #eef3ff, #fff);
  box-shadow: inset 4px 0 0 #3046c9;
}

.customer-card span {
  color: #53647f;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-card strong {
  line-height: 1.18;
}

.customer-card small {
  color: #596986;
  line-height: 1.28;
}

.customer-detail {
  display: grid;
  gap: 12px;
}

.customer-profile-card,
.customer-focus-panel {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 24px;
  border-color: rgba(41, 71, 213, .14);
  background:
    radial-gradient(circle at 96% 8%, rgba(41, 71, 213, .09), transparent 30%),
    linear-gradient(135deg, #fff, #f9fbff);
}

.customer-focus-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.customer-focus-panel h3,
.customer-focus-title h3 {
  margin: 2px 0 0;
  color: #10203d;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.customer-focus-title p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0 0;
  color: #596986;
  font-size: .88rem;
}

.customer-focus-title p span::before {
  content: "|";
  margin-right: 8px;
  color: #a8b6cf;
}

.customer-focus-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(41, 71, 213, .28), rgba(113, 133, 171, .18), transparent);
}

.customer-context-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(113, 133, 171, .22);
  color: #596986;
  font-size: .86rem;
}

.customer-context-line span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 2px 0;
  border-radius: 50%;
  background: #a9b7d0;
}

.customer-action-zone,
.customer-navigation-zone {
  display: grid;
  gap: 8px;
}

.customer-focus-grid {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.customer-action-panel,
.customer-record-panel {
  min-width: 0;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
}

.customer-action-panel {
  padding: 12px;
}

.customer-record-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.customer-zone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53647f;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-zone-label small {
  color: #71809a;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.customer-navigation-zone {
  position: relative;
  margin-top: 2px;
  padding-top: 14px;
}

.customer-navigation-zone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(41, 71, 213, .34), rgba(113, 133, 171, .22), transparent);
}

.customer-quick-action-row {
  display: grid;
  gap: 8px;
}

.customer-quick-action-row .btn {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 14px;
  justify-content: center;
  width: 100%;
}

.customer-tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 2px;
}

.customer-tab-nav button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e3f5;
  border-radius: 999px;
  padding: 0 13px;
  color: #33445f;
  background: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .16s ease, border .16s ease, color .16s ease, box-shadow .16s ease;
}

.customer-tab-nav button span {
  color: #6f7f98;
  font-size: .78rem;
}

.customer-tab-nav button:hover,
.customer-tab-nav button:focus-visible {
  border-color: rgba(41, 71, 213, .34);
  outline: 0;
}

.customer-tab-nav button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2947d5, #6489f6);
  box-shadow: 0 12px 26px rgba(41, 71, 213, .18);
}

.customer-tab-nav button.is-active span {
  color: rgba(255, 255, 255, .82);
}

.customer-panel {
  display: grid;
  gap: 10px;
}

.customer-panel[hidden] {
  display: none !important;
}

.customer-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-context-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-context-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid #dfe8f6;
  border-radius: 16px;
  color: #10203d;
  background: rgba(255, 255, 255, .74);
}

.customer-context-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.customer-context-card span {
  color: #53647f;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-context-card strong {
  color: #2036ad;
  font-size: 1.22rem;
  line-height: 1;
}

.customer-context-card a {
  color: #10203d;
  font-weight: 900;
  line-height: 1.18;
  text-decoration: none;
}

.customer-context-card small {
  color: #64738d;
  line-height: 1.25;
}

.customer-overview-strip > div,
.customer-line-item {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe8f6;
  border-radius: 16px;
  padding: 12px 13px;
  color: #10203d;
  background: rgba(255, 255, 255, .78);
}

.customer-overview-strip span,
.customer-panel-head strong {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-overview-strip strong {
  color: #10203d;
  line-height: 1.15;
}

.customer-overview-strip small,
.customer-line-item small {
  color: #687894;
}

.customer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-panel-head .btn {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 14px;
}

.customer-list-lines {
  display: grid;
  gap: 8px;
}

.customer-line-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-decoration: none;
}

.customer-line-item > a {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.customer-line-item > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.customer-line-item > div a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(41, 71, 213, .18);
  border-radius: 999px;
  padding: 0 10px;
  color: #2036ad;
  background: rgba(255, 255, 255, .9);
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
}

.customer-action-dialog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-action-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 174px;
  padding: 14px;
  border: 1px solid #dce6f6;
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
}

.customer-action-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.customer-action-card span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-action-card strong {
  color: #2036ad;
  font-size: 1.45rem;
  line-height: 1;
}

.customer-action-card .btn {
  min-height: 38px;
  border-radius: 14px;
}

.customer-mini-list {
  display: grid;
  gap: 6px;
}

.customer-mini-list a,
.customer-mini-list p {
  margin: 0;
  color: #596986;
  font-size: .86rem;
  line-height: 1.3;
  text-decoration: none;
}

.customer-mini-list a {
  display: grid;
  gap: 2px;
  color: #10203d;
}

.customer-project-mini {
  display: grid;
  gap: 5px;
}

.customer-project-mini > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-project-mini > div a {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(41, 71, 213, .18);
  border-radius: 999px;
  padding: 0 9px;
  color: #2036ad;
  background: rgba(255, 255, 255, .8);
  font-size: .72rem;
  font-weight: 900;
}

.customer-mini-list small {
  color: #6a7892;
}

.customer-empty,
.customer-empty-detail p {
  color: #596986;
}

.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  padding: 28px;
}

.customer-modal[hidden] {
  display: none;
}

.customer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 40, .54);
  backdrop-filter: blur(10px);
}

.customer-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(860px, 100%);
  padding: 24px;
  border: 1px solid #dbe6f7;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(10, 22, 50, .28);
}

.customer-modal-head,
.customer-modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

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

/* Compact project/customer/team workspaces */
.project-overview-picker {
  min-height: auto;
  padding: 16px 18px 20px;
}

.project-list-head {
  align-items: flex-start;
  gap: 14px;
}

.project-list-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.project-overview-status-groups {
  gap: 14px;
}

.project-status-section + .project-status-section {
  padding-top: 14px;
}

.project-status-section-head {
  padding-inline: 2px;
  min-height: 28px;
}

.project-compact-list {
  gap: 10px;
}

.project-compact-item {
  display: grid;
  gap: 0;
  min-width: 0;
}

.project-compact-row {
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 16px;
  padding: 12px 14px;
  overflow: visible;
}

.project-compact-side {
  display: grid;
  grid-template-columns: minmax(120px, auto) auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.project-edit-link {
  min-height: 38px;
  white-space: nowrap;
}

.project-quick-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 18px 8px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(113, 133, 171, .13);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(238, 242, 249, .92), rgba(247, 249, 253, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(24, 39, 83, .055);
  color: #667792;
  font-size: .78rem;
}

.project-quick-drawer-title,
.dashboard-project-quick-drawer > span {
  color: #6a7892;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-quick-drawer > div,
.dashboard-project-quick-drawer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.project-quick-action,
.dashboard-project-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid rgba(73, 102, 199, .14);
  border-radius: 999px;
  padding: 0 11px;
  color: #253a80;
  background: rgba(255, 255, 255, .82);
  font-size: .75rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(23, 38, 84, .045);
}

.project-quick-action::before,
.dashboard-project-quick-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d91c2;
}

.project-quick-action:hover,
.dashboard-project-quick-link:hover {
  border-color: rgba(41, 71, 213, .32);
  background: #fff;
}

.project-open-card--structured {
  padding: 12px 14px;
  border-radius: 24px;
}

.project-open-head--structured {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.project-open-identity {
  gap: 12px;
}

.project-open-title h3 {
  margin: 2px 0 0;
}

.project-open-controlbar {
  padding: 4px;
  border: 1px solid rgba(88, 122, 214, .12);
  border-radius: 18px;
  background: rgba(247, 250, 255, .72);
}

.project-rollback-form {
  gap: 7px;
}

.project-rollback-select select {
  min-height: 36px;
  border-radius: 12px;
}

.project-rollback-btn,
.project-delete-btn {
  min-height: 36px;
  border-radius: 12px;
}

.project-step-strip {
  padding: 8px;
  gap: 8px;
}

.project-step-btn {
  min-width: 108px;
  min-height: 66px;
  padding: 8px 10px;
}

.project-step-check {
  z-index: 2;
}

.project-step-btn.is-active.is-complete .project-step-check {
  background: #fff;
  color: #0f8a5e;
  box-shadow: 0 8px 18px rgba(10, 75, 55, .18);
}

.project-summary-grid {
  gap: 10px;
}

.project-summary-box,
.project-note-box {
  min-width: 0;
}

.dashboard-project-quick-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 12px 0;
  padding: 7px 10px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(232, 237, 247, .8), rgba(244, 247, 252, .7));
  color: #667792;
  font-size: .78rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.dashboard-project-quick-drawer.is-empty {
  opacity: .72;
}

.team-attendance-page--lean {
  gap: .45rem;
  align-content: start;
  padding: 10px 12px 12px;
}

.team-hub-nav-shell--compact {
  min-height: 0;
  margin: 0;
  padding: 0 0 4px;
  gap: .42rem;
}

.team-hub-nav-shell--compact::before {
  width: min(26rem, 54%);
  height: 1px;
}

.team-attendance-page--lean .team-hub-nav-shell--compact .team-hub-tab-nav {
  gap: 6px;
}

.team-attendance-page--lean .team-hub-nav-shell--compact .report-tab-link {
  min-height: 34px;
  padding: 0 14px;
  font-size: .84rem;
}

.team-attendance-page--lean .team-attendance-times-shell {
  gap: .35rem;
  padding-top: 0;
}

.team-attendance-page--lean .team-attendance-head-actions {
  min-height: 44px;
  padding: .28rem .65rem .24rem;
  border-radius: 1rem 1rem 0 0;
}

.team-attendance-page--lean .team-attendance-toolbar {
  min-height: 42px;
  margin-top: -.28rem;
  padding: .24rem .65rem .3rem;
  border-radius: 0 0 1rem 1rem;
}

.team-attendance-page--lean .team-attendance-range-copy strong {
  font-size: 1rem;
}

.customer-focus-workbench {
  display: grid;
  grid-template-columns: minmax(178px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.customer-primary-actions-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255, 255, 255, .62);
}

.customer-primary-actions {
  display: grid;
  gap: 8px;
}

.customer-primary-action {
  display: grid;
  gap: 1px;
  min-height: 48px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid #d8e3f5;
  border-radius: 16px;
  color: #10203d;
  background: rgba(255, 255, 255, .92);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 29, 74, .045);
}

.customer-primary-action span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-primary-action strong {
  font-size: 1rem;
  line-height: 1.1;
}

.customer-primary-action.is-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2947d5, #6389f7);
  box-shadow: 0 16px 30px rgba(41, 71, 213, .18);
}

.customer-primary-action.is-primary span {
  color: rgba(255,255,255,.76);
}

.customer-object-groups {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.customer-object-groups--stacked {
  grid-template-columns: 1fr;
}

.customer-object-group {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  min-height: 116px;
  padding: 10px;
  border: 1px solid #dfe8f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.customer-object-group--row {
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 70px;
  padding: 9px 10px;
}

.customer-object-group header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.customer-object-group--row header {
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 5px;
  padding-right: 10px;
  border-right: 1px solid rgba(113, 133, 171, .16);
}

.customer-object-group header span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-object-group header strong {
  color: #2036ad;
  font-size: 1rem;
}

.customer-object-list {
  display: grid;
  gap: 7px;
}

.customer-object-group--row .customer-object-list {
  align-content: center;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.customer-object-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 12px;
  color: #10203d;
  background: rgba(244, 248, 255, .72);
  text-decoration: none;
}

.customer-object-item strong,
.customer-object-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-object-item small {
  color: #65748d;
}

.customer-object-group--row .customer-empty {
  margin: 0;
  align-self: center;
  color: #687894;
}

@media (max-width: 1280px) {
  .demo-offer-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  }

  .demo-offer-toolbox {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-offer-toolbox .demo-offer-panel-head,
  .demo-offer-toolbox .demo-offer-shortcuts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .demo-offer-mobile-switch {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .demo-offer-workspace {
    grid-template-columns: 1fr;
  }

  .demo-offer-toolbox,
  .demo-offer-inspector {
    position: static;
  }

  .demo-offer-toolbox {
    grid-template-columns: 1fr;
  }

  .demo-offer-shell[data-demo-mode="document"] [data-demo-panel="items"],
  .demo-offer-shell[data-demo-mode="document"] [data-demo-panel="data"],
  .demo-offer-shell[data-demo-mode="items"] [data-demo-panel="document"],
  .demo-offer-shell[data-demo-mode="items"] [data-demo-panel="data"],
  .demo-offer-shell[data-demo-mode="data"] [data-demo-panel="document"],
  .demo-offer-shell[data-demo-mode="data"] [data-demo-panel="items"] {
    display: none;
  }

  .demo-offer-canvas {
    padding: 14px;
    border-radius: 24px;
  }

  .demo-offer-pages,
  .demo-offer-page {
    min-width: 0;
    width: 100%;
  }

  .demo-offer-page {
    min-height: auto;
    padding: 28px 22px;
  }

  .demo-document-top,
  .demo-document-address-grid,
  .demo-document-bottom {
    grid-template-columns: 1fr;
  }

  .demo-document-meta {
    justify-items: start;
  }

  .demo-modal-choice-grid,
  .demo-customer-dialog-grid,
  .customer-layout,
  .customer-focus-grid,
  .customer-focus-workbench,
  .customer-object-groups,
  .customer-action-dialog,
  .customer-detail-grid,
  .customer-context-board,
  .customer-overview-strip,
  .customer-relations {
    grid-template-columns: 1fr;
  }

  .customer-profile-card,
  .project-commerce-head,
  .project-commerce-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-context-actions,
  .customer-quick-action-row,
  .customer-primary-actions,
  .project-commerce-head-actions {
    justify-content: flex-start;
  }

  .project-commerce-modal {
    padding: 10px;
  }

  .project-commerce-dialog {
    width: 100%;
    height: min(900px, 94vh);
    border-radius: 22px;
  }

  .customer-directory {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .live-document-focus-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .live-document-word-controls {
    justify-content: flex-start;
  }

  .customer-simple-top,
  .customer-focus-title {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-tab-nav,
  .customer-quick-action-row,
  .customer-primary-actions {
    justify-content: flex-start;
  }

  .customer-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .customer-search {
    grid-template-columns: 1fr;
  }

  .demo-offer-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .demo-offer-items table,
  .demo-offer-items thead,
  .demo-offer-items tbody,
  .demo-offer-items tr,
  .demo-offer-items th,
  .demo-offer-items td {
    display: block;
    width: 100%;
  }

  .demo-offer-items thead {
    display: none;
  }

  .demo-offer-items tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dce5f2;
    border-radius: 18px;
    background: #fff;
  }

  .demo-offer-items td {
    padding: 6px 0;
    border-bottom: 0;
    text-align: left !important;
  }

  .demo-offer-items td:first-child {
    color: #2036ad;
    font-weight: 950;
  }

  .demo-offer-items td:nth-child(3),
  .demo-offer-items td:nth-child(4),
  .demo-offer-items td:nth-child(5) {
    display: inline-flex;
    width: auto;
    margin-right: 12px;
    align-items: center;
    gap: 4px;
  }

  .demo-inspector-grid,
  .demo-inspector-actions,
  .customer-form-grid,
  .demo-customer-new-row {
    grid-template-columns: 1fr;
  }
}

/* Project/customer overhaul 2026-05 */
.project-overview-redesign {
  width: min(100%, 1380px);
  min-height: auto;
  padding: 22px 26px 26px;
  border: 1px solid rgba(202, 215, 239, .82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 93% 12%, rgba(114, 167, 255, .12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.94));
  box-shadow: 0 26px 70px rgba(17, 29, 74, .08);
}

.project-overview-redesign::after,
.project-focus-header::after {
  display: none;
}

.project-list-head--pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(113, 133, 171, .18);
}

.project-list-head--pipeline .project-overview-actions {
  align-items: center;
}

.project-list-head--pipeline .project-create-toggle {
  border-radius: 14px;
  background: #fff;
}

.project-overview-redesign .project-overview {
  margin-top: 16px;
}

.project-overview-pipeline {
  display: grid;
  gap: 18px;
}

.project-overview-pipeline .project-status-section {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(113, 133, 171, .16);
}

.project-overview-pipeline .project-status-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-overview-pipeline .project-status-section-head {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-height: 0;
  padding: 8px 0 0;
}

.project-overview-pipeline .project-status-section-head strong {
  min-width: 26px;
  min-height: 26px;
  font-size: .78rem;
}

.project-overview-pipeline .project-status-section-empty {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.project-overview-pipeline .project-compact-list {
  display: grid;
  gap: 12px;
}

.project-overview-pipeline .project-compact-item {
  display: block;
}

.project-overview-pipeline .project-compact-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 16px 15px 18px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 18px;
  background:
    linear-gradient(90deg, var(--phase-soft, rgba(245,248,255,.9)), rgba(255,255,255,.94) 52%),
    #fff;
  box-shadow: 0 14px 32px rgba(17, 29, 74, .055);
}

.project-overview-pipeline .project-compact-row::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--phase-border-strong, #2947d5);
}

.project-overview-pipeline .project-compact-main {
  min-width: 0;
}

.project-overview-pipeline .project-compact-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-overview-pipeline .project-compact-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.02rem;
}

.project-overview-pipeline .project-compact-meta {
  margin-top: 5px;
  gap: 8px;
  color: #596986;
}

.project-overview-pipeline .project-compact-side {
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.project-overview-pipeline .project-phase-badge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.project-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(113, 133, 171, .14);
}

.project-inline-actions > span {
  color: #73819a;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-inline-actions > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(73, 102, 199, .16);
  border-radius: 999px;
  color: #2036ad;
  background: rgba(255,255,255,.92);
  font-size: .74rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 38, 84, .045);
}

.project-inline-action:hover {
  border-color: rgba(41, 71, 213, .34);
  background: #fff;
}

.project-focus-header {
  padding: 16px 18px;
  border: 1px solid rgba(202, 215, 239, .78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 10%, rgba(105, 184, 255, .11), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.94));
  box-shadow: 0 22px 58px rgba(17, 29, 74, .075);
}

.project-focus-header .project-open-head--structured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.project-focus-header .project-open-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.project-focus-header .project-back-link,
.project-focus-header .project-delete-btn,
.project-focus-header .project-rollback-btn {
  min-height: 38px;
  border-radius: 14px;
}

.project-focus-header .project-open-title h3 {
  margin: 2px 0 0;
  font-size: 1.24rem;
}

.project-focus-header .project-open-title p {
  margin: 5px 0 0;
  color: #596986;
  overflow-wrap: anywhere;
}

.project-focus-header .project-open-controlbar {
  padding: 0;
  border: 0;
  background: transparent;
}

.project-focus-header .project-rollback-form {
  padding: 8px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.project-step-strip--timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(202, 215, 239, .78);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.92));
  overflow: visible;
}

.project-step-strip--timeline .project-step-btn {
  min-width: 0;
  max-width: none;
  min-height: 68px;
  padding: 10px 11px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.project-step-strip--timeline .project-step-btn.is-complete {
  border-color: rgba(17, 163, 111, .28);
  background: linear-gradient(180deg, rgba(239,252,247,.98), rgba(255,255,255,.95));
}

.project-step-strip--timeline .project-step-check,
.project-step-btn.is-complete .project-step-check {
  display: inline-flex;
  opacity: 1;
  background: #13a977;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17,163,111,.2);
}

.project-step-strip--timeline .project-step-btn:not(.is-complete) .project-step-check {
  display: none;
}

.project-step-strip--timeline .project-step-btn.is-active.is-complete .project-step-check {
  background: #fff;
  color: #0f8a5e;
}

.project-config-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.project-panel-card {
  padding: 18px;
  border-radius: 26px;
}

.project-panel-head {
  align-items: start;
}

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

.project-summary-box,
.project-note-box,
.project-summary-item {
  border-color: rgba(202, 215, 239, .68);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}

.project-summary-box {
  padding: 12px 14px;
}

.project-note-box {
  padding: 13px 14px;
}

.project-sidebar-card {
  padding: 16px;
  border-radius: 26px;
}

.project-sidebar-card .project-summary-list {
  gap: 8px;
}

.project-sidebar-card .project-summary-item {
  padding: 10px 12px;
}

.dashboard-project-quick-drawer {
  margin: 7px 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 247, 252, .92), rgba(255, 255, 255, .86));
  box-shadow: 0 10px 22px rgba(17, 29, 74, .045);
}

.customer-focus-workbench--object-led {
  grid-template-columns: minmax(160px, 205px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.customer-actions-rail {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,255,.78));
  border: 1px solid rgba(202, 215, 239, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.customer-actions-rail .customer-zone-label {
  margin-bottom: 8px;
}

.customer-actions-rail .customer-zone-label span {
  color: #53647f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-actions-rail .customer-zone-label small {
  display: block;
  margin-top: 2px;
  color: #7b89a3;
  font-size: .76rem;
}

.customer-actions-rail .customer-primary-action {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 14px;
}

.customer-object-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.customer-object-dashboard .customer-object-group--row {
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  min-height: 64px;
  padding: 8px;
  border-color: rgba(202, 215, 239, .76);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.customer-object-dashboard .customer-object-group--row header {
  padding: 2px 12px 2px 6px;
  border-right: 1px solid rgba(113, 133, 171, .16);
}

.customer-object-dashboard .customer-object-group-title {
  line-height: 1.18;
}

.customer-object-dashboard .customer-object-list {
  display: grid;
  gap: 6px;
}

.customer-object-dashboard .customer-object-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid rgba(73, 102, 199, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247,250,255,.92), rgba(255,255,255,.9));
}

.customer-object-dashboard .customer-object-item:hover {
  border-color: rgba(41, 71, 213, .26);
  box-shadow: 0 12px 24px rgba(17,29,74,.06);
  transform: translateY(-1px);
}

.customer-object-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-object-open {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2036ad;
  background: rgba(41, 71, 213, .08);
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.team-attendance-page--v121 {
  width: min(100%, 1480px);
  gap: 10px;
  padding: 14px 16px 16px;
  border-radius: 26px;
}

.team-attendance-page--v121 .team-hub-nav-shell--compact {
  min-height: 0;
  padding: 0;
  margin: 0 0 8px;
  gap: 8px;
}

.team-attendance-page--v121 .team-hub-nav-shell--compact::before {
  width: min(360px, 44%);
  height: 1px;
}

.team-attendance-page--v121 .team-hub-tab-nav {
  gap: 7px;
}

.team-attendance-page--v121 .team-attendance-times-shell {
  gap: 8px;
  padding-top: 0;
}

.team-attendance-page--v121 .team-attendance-head-actions {
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 16px 16px 0 0;
}

.team-attendance-page--v121 .team-attendance-toolbar {
  min-height: 44px;
  margin-top: -8px;
  padding: 8px 10px;
  border-radius: 0 0 16px 16px;
}

.team-attendance-page--v121 .team-attendance-board-head {
  margin-top: 4px;
}

.team-attendance-page--v121 .team-attendance-row {
  min-height: 76px;
}

@media (max-width: 1180px) {
  .project-overview-pipeline .project-status-section,
  .customer-focus-workbench--object-led {
    grid-template-columns: 1fr;
  }

  .project-overview-pipeline .project-status-section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 0;
  }

  .project-step-strip--timeline {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .project-step-strip--timeline .project-step-btn {
    flex: 0 0 118px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  .project-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-focus-header {
    padding: 14px;
    border-radius: 24px;
  }

  .project-focus-header .project-open-head--structured {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }

  .project-focus-header .project-open-identity {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .project-focus-header .project-compact-code {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-focus-header .project-open-title h3 {
    font-size: 1.12rem;
  }

  .project-focus-header .project-open-title p {
    font-size: .82rem;
    line-height: 1.35;
  }

  .project-focus-header .project-open-controlbar {
    justify-content: stretch;
  }

  .project-focus-header .project-rollback-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: end;
    gap: 8px;
  }

  .project-focus-header .project-rollback-select {
    min-width: 0;
  }

  .project-focus-header .project-open-controlbar > form:not(.project-rollback-form) {
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .project-focus-header .project-compact-code { grid-column: auto; }
  .project-focus-header .project-rollback-form { grid-template-columns: 1fr; }

  .project-list-head--pipeline,
  .project-focus-header .project-open-head--structured,
  .project-focus-header .project-open-identity,
  .project-overview-pipeline .project-compact-row,
  .project-config-grid,
  .project-summary-grid,
  .customer-object-dashboard .customer-object-group--row,
  .customer-object-dashboard .customer-object-item {
    grid-template-columns: 1fr;
  }

  .project-focus-header .project-open-controlbar,
  .project-overview-pipeline .project-compact-side {
    justify-content: start;
  }

  .customer-object-dashboard .customer-object-group--row header {
    border-right: 0;
    border-bottom: 1px solid rgba(113, 133, 171, .16);
    padding: 0 0 8px;
  }
}
