: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%;
}

/* v2.0 accounting workspace */
.accounting-shell {
  display: grid;
  gap: 1rem;
}

.accounting-hero {
  padding: .75rem;
}

.accounting-hero-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, auto);
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.accounting-hero h2 {
  margin: .15rem 0;
}

.accounting-hero p {
  margin: 0;
  color: var(--muted);
}

.accounting-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(7.5rem, 1fr));
  gap: .4rem;
  min-width: min(100%, 34rem);
}

.accounting-metrics span,
.accounting-row-facts span {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .76);
  padding: .42rem .55rem;
  display: grid;
  gap: .1rem;
}

.accounting-metrics b,
.accounting-row-facts b {
  color: var(--ink);
  font-size: .95rem;
}

.accounting-metrics small,
.accounting-row-facts small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.accounting-filter-form {
  align-items: end;
}

.accounting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 1rem;
  align-items: start;
}

.accounting-panel {
  padding: .85rem;
}

.accounting-side-stack {
  display: grid;
  gap: 1rem;
}

.accounting-list,
.accounting-entry-list {
  display: grid;
  gap: .6rem;
}

.accounting-row {
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .82);
  padding: .55rem .65rem;
  display: grid;
  grid-template-columns: minmax(16rem, 1.1fr) minmax(28rem, 1.35fr) auto;
  gap: .55rem;
  align-items: center;
}

.accounting-row.is-muted {
  opacity: .68;
}

.accounting-row-title {
  min-width: 0;
  display: grid;
  gap: .12rem;
}

.accounting-row-title strong,
.accounting-row-title small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-row-title small {
  color: var(--muted);
  font-size: .78rem;
}

.accounting-row-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(5.6rem, 1fr));
  gap: .25rem;
}

.accounting-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}

.accounting-row-more summary {
  min-height: 2.25rem;
}

.commerce-booking-modal[hidden] {
  display: none !important;
}

.commerce-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.commerce-booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 40, .48);
  backdrop-filter: blur(12px);
}

.commerce-booking-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(133, 155, 210, .42);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(41, 71, 213, .12), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.96));
  box-shadow: 0 28px 82px rgba(5, 13, 35, .28);
}

.commerce-booking-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(88, 122, 214, .16);
}

.commerce-booking-head h3,
.commerce-booking-head p {
  margin: 0;
}

.commerce-booking-head p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.commerce-booking-form {
  gap: 10px;
}

.commerce-booking-actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.accounting-entry {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .78);
  padding: .7rem .8rem;
  display: grid;
  gap: .15rem;
}

.accounting-entry > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.accounting-entry strong {
  font-size: 1.05rem;
}

.accounting-entry small {
  color: var(--muted);
}

.accounting-entry--credit {
  border-color: rgba(14, 116, 144, .28);
  background: linear-gradient(135deg, rgba(14, 116, 144, .08), rgba(255, 255, 255, .9));
}

.accounting-export-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  align-items: end;
}

.accounting-export-buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

.accounting-help-text {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.accounting-settings-drawer,
.accounting-history-drawer {
  margin-top: .75rem;
}

.accounting-settings-drawer > summary,
.accounting-history-drawer > summary {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: .55rem .75rem;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-weight: 900;
}

.accounting-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding-top: .65rem;
}

.accounting-setting-control {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.accounting-setting-control--wide,
.accounting-settings-form > .btn {
  grid-column: 1 / -1;
}

.accounting-setting-control > span,
.accounting-dunning-card label span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.accounting-setting-control input:not([type="checkbox"]),
.accounting-setting-control select,
.accounting-setting-control textarea,
.accounting-dunning-card input {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: .45rem .65rem;
  background: #fff;
  box-sizing: border-box;
}

.accounting-setting-control textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.accounting-dunning-card {
  border: 1px solid rgba(41, 71, 213, .18);
  border-radius: 1rem;
  padding: .75rem;
  background: linear-gradient(135deg, rgba(245, 248, 255, .96), rgba(255, 255, 255, .9));
  display: grid;
  gap: .65rem;
}

.accounting-dunning-card.is-muted {
  opacity: .78;
}

.accounting-dunning-card > div:first-child {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.accounting-dunning-card strong,
.accounting-dunning-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accounting-dunning-card small {
  color: var(--muted);
}

.accounting-dunning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.accounting-dunning-actions form {
  margin: 0;
}

.accounting-dunning-actions .commerce-row-menu-stack {
  min-width: 13rem;
  gap: .45rem;
}

.accounting-entry--notice {
  border-color: rgba(41, 71, 213, .22);
  background: rgba(246, 248, 255, .86);
}

@media (max-width: 1180px) {
  .accounting-hero-main,
  .accounting-grid {
    grid-template-columns: 1fr;
  }

  .accounting-hero-main {
    display: grid;
  }

  .accounting-metrics,
  .accounting-row {
    grid-template-columns: 1fr;
  }

  .accounting-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .accounting-side-stack {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .accounting-metrics,
  .accounting-row-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-inline-booking {
    width: 100%;
  }

  .accounting-inline-booking input {
    flex: 1;
    min-width: 0;
  }

  .accounting-settings-form,
  .accounting-export-form {
    grid-template-columns: 1fr;
  }

  .accounting-dunning-actions,
  .accounting-dunning-actions form,
  .accounting-dunning-actions .btn,
  .accounting-export-buttons {
    width: 100%;
  }
}

.commerce-conversion-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(41, 71, 213, .14);
  border-radius: 18px;
  background: rgba(246, 249, 255, .92);
}

.commerce-conversion-box p,
.commerce-conversion-box small {
  margin: 0;
  color: var(--muted, #667792);
  font-size: .86rem;
  line-height: 1.4;
}

.commerce-deposit-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.commerce-deposit-form label {
  display: grid;
  gap: 4px;
}

.commerce-deposit-form label span {
  color: var(--muted, #667792);
  font-size: .78rem;
  font-weight: 750;
}

.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);
}

.commerce-module-page {
  width: min(100%, 1380px);
  align-content: start;
}

.content-shell > .commerce-module-page {
  align-self: start;
}

.commerce-module-board {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(91, 118, 217, .5);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgba(57, 82, 214, .18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.95));
  box-shadow:
    0 34px 78px rgba(16, 31, 82, .16),
    0 12px 30px rgba(41, 71, 213, .1);
}

.commerce-module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 15px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 0%, rgba(132, 151, 255, .48), transparent 28%),
    linear-gradient(100deg, #29328f 0%, #3b43c4 48%, #7284f6 100%);
}

.commerce-module-head .section-kicker,
.commerce-module-head h2,
.commerce-module-head p {
  color: #fff;
}

.commerce-module-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.86rem);
}

.commerce-module-head p {
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
  font-size: .92rem;
}

.commerce-module-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 760px;
}

.commerce-module-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 16px;
  color: #16246d;
  background: rgba(255,255,255,.9);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 30, 83, .11);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.commerce-module-nav-link:hover,
.commerce-module-nav-link:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 13px 25px rgba(18, 30, 83, .16);
  outline: 0;
}

.commerce-module-nav-link.is-active {
  background: #fff;
  box-shadow:
    0 15px 28px rgba(18, 30, 83, .18),
    inset 0 0 0 1px rgba(255,255,255,.92);
}

.commerce-module-nav-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #5968ed;
}

.commerce-module-nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commerce-module-nav-icon svg * {
  vector-effect: non-scaling-stroke;
}

.commerce-module-nav-link span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.commerce-module-nav-link strong {
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.08;
  white-space: nowrap;
}

.commerce-module-nav-link small {
  color: #6875a8;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.commerce-module-nav-link.is-active .commerce-module-nav-icon {
  background: linear-gradient(135deg, #2947d5, #617ff0);
}

.commerce-module-hero {
  margin: 0;
  padding: 20px 22px 22px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  background: rgba(255,255,255,.78);
  box-shadow: none;
}

.commerce-module-hero .commerce-hero-grid {
  gap: 20px;
}

.commerce-module-hero .commerce-hero-copy h3 {
  font-size: clamp(1.28rem, 1.8vw, 1.64rem);
}

.commerce-module-hero .commerce-metric-card {
  border-color: rgba(88, 122, 214, .14);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(20, 40, 92, .07);
}

.commerce-module-page .commerce-toolbar-card,
.commerce-module-page .commerce-table-panel,
.commerce-module-page .commerce-inspector-panel,
.commerce-module-page .commerce-card--operation-focus,
.commerce-module-page .commerce-note-card,
.commerce-module-page .commerce-reorder-group {
  box-shadow:
    0 24px 54px rgba(16, 31, 82, .1),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.commerce-module-page .commerce-table-panel,
.commerce-module-page .commerce-inspector-panel {
  overflow: hidden;
}

.commerce-module-page .commerce-table-panel > .section-head,
.commerce-module-page .commerce-inspector-panel > .section-head,
.commerce-module-page .commerce-card--operation-focus > .section-head {
  margin: -2px -2px 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(113, 133, 171, .18);
}

.commerce-module-page .commerce-filter-actions .btn,
.commerce-module-page .commerce-table .btn,
.commerce-module-page .commerce-row-actions .btn {
  border-radius: 999px;
}

.commerce-module-page .commerce-table tbody tr:hover {
  background: rgba(235, 241, 255, .78);
}

@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;
  }

  .commerce-module-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .commerce-module-nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
}

@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));
  }

  .commerce-module-board {
    border-radius: 24px;
  }

  .commerce-module-head {
    padding: 14px;
  }

  .commerce-module-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .commerce-module-nav::-webkit-scrollbar {
    display: none;
  }

  .commerce-module-nav-link {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .commerce-module-hero {
    padding: 16px;
  }
}

@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: 112px;
  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 {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  border: 0;
  border-radius: 0;
  background: rgba(8, 15, 35, .48);
  box-shadow: none;
  overflow: auto;
  backdrop-filter: blur(10px);
}

.project-create-panel[hidden] {
  display: none;
}

.project-create-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-create-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 100%);
  max-height: min(92dvh, 980px);
  min-height: min(76dvh, 760px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(201, 214, 241, .86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(66, 86, 224, .16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,248,255,.97));
  box-shadow: 0 34px 90px rgba(7, 15, 35, .26);
  overflow: hidden;
}

.project-create-panel-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(207, 218, 240, .9);
}

.project-create-close {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.project-create-form {
  min-height: 0;
  margin-top: 14px;
  padding-right: 4px;
  overflow: auto;
}

.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-billing-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.project-billing-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(153, 173, 210, .42);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 32px rgba(19, 35, 75, .06);
}

.project-billing-path--primary {
  border-color: rgba(67, 83, 205, .32);
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 243, 255, .92));
}

.project-billing-path h4 {
  margin: 0 0 4px;
  color: #142344;
}

.project-billing-path p {
  margin: 0;
  color: #5f6f8c;
  font-size: .86rem;
  line-height: 1.45;
}

.project-billing-path .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .project-billing-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-billing-path {
    align-items: stretch;
    flex-direction: column;
  }
}

.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 {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #eef4ff;
}

.project-commerce-modal.is-viewer .project-commerce-dialog {
  width: min(1240px, calc(100vw - 28px));
  height: min(1040px, calc(100dvh - 28px));
}

.project-commerce-modal.is-viewer .project-commerce-frame {
  overflow: auto;
  background: #fff;
}

.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-step-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.project-step-guide span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(153, 173, 210, .38);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: #445574;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
}

.project-step-guide b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #4b55da;
  color: #fff;
  font-size: .74rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .project-step-guide {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.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: 14px;
  max-height: 760px;
  overflow: auto;
  padding: 14px;
  border-radius: 20px;
  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);
  zoom: .76;
}

.project-acceptance-live-preview-frame .project-acceptance-sheet {
  margin: 0 auto;
  box-shadow: 0 16px 32px 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;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 80;
  display: none;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  overflow: hidden;
  background: rgba(8,17,35,.82);
  backdrop-filter: blur(10px);
}

.project-image-lightbox.is-open {
  display: grid;
}

.project-image-lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  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%);
  height: 100%;
  max-height: calc(100dvh - 56px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
}

.project-image-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 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: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .project-image-lightbox-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }
  .project-image-lightbox-stage {
    max-height: calc(100dvh - 32px);
  }
  .project-image-lightbox-stage img {
    max-height: calc(100dvh - 96px);
  }
  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;
}

body.page-team .app-topbar-shell {
  position: relative;
  overflow: hidden;
  align-items: center;
  border-bottom: 1px solid rgba(156, 174, 207, .18);
  background: linear-gradient(180deg, rgba(252, 253, 255, .96), rgba(246, 248, 252, .94));
  box-shadow: inset 0 -1px 0 rgba(19, 43, 92, .05);
}

body.page-team .topbar-copy {
  position: relative;
  min-width: 0;
  align-content: center;
  padding: 0;
}

body.page-team .topbar-title-row {
  gap: 9px;
}

body.page-team .topbar-title-row h1 {
  color: #10203d;
  font-size: clamp(1.32rem, 2vw, 1.76rem);
  letter-spacing: -.035em;
}

body.page-team .topbar-title-separator {
  color: rgba(41, 71, 213, .3);
}

body.page-team .portal-context-chip--inline,
body.page-team .environment-context-chip {
  box-shadow: none;
}

body.page-team .topbar-actions .user-pill {
  background: rgba(255,255,255,.9);
  border-color: rgba(196, 207, 225, .86);
  box-shadow: none;
}

.sidebar-nav,
.sidebar-nav-shell {
  gap: 20px;
}

.sidebar-section {
  gap: 10px;
}

.sidebar-section-title,
.sidebar-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  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;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 122, 214, .34), rgba(88, 122, 214, 0));
}

.sidebar-section--admin {
  gap: 9px;
  margin-top: 2px;
}

.sidebar-section--admin::before {
  content: "";
  width: 100%;
  height: 1px;
  margin: 0 0 4px;
  background: linear-gradient(90deg, rgba(88, 122, 214, .34), rgba(88, 122, 214, 0));
}

.sidebar-section--admin .sidebar-group-heading::after {
  content: none;
}

.sidebar-link-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  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;
  min-width: 0;
  max-width: 100%;
  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;
}

.workspace-filter-bar--single {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
}

.commerce-worklist-hero.workspace-filter-bar--single,
.accounting-hero.workspace-filter-bar--single {
  gap: 8px;
  min-height: 0;
  padding: 10px 12px;
}

.commerce-worklist-hero-row {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(88, 122, 214, .12);
}

.commerce-worklist-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.commerce-worklist-title h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.08;
}

.commerce-worklist-title p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.commerce-worklist-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.commerce-worklist-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255,255,255,.82);
  color: #263d61;
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
}

.commerce-worklist-create {
  min-height: 34px;
  border-radius: 14px;
}

.commerce-compact-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.commerce-compact-filter-form .commerce-filter-control--search {
  flex: 1 1 220px;
}

.commerce-filter-control {
  display: grid;
  gap: 3px;
  flex: 0 1 108px;
  min-width: 0;
}

.commerce-filter-control--date {
  flex: 0 0 112px;
}

.commerce-filter-control span {
  color: #667792;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.commerce-filter-control input,
.commerce-filter-control select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: .84rem;
}

.commerce-filter-actions--compact {
  display: grid;
  grid-template-columns: repeat(2, auto);
  flex: 0 0 auto;
  gap: 6px;
  align-items: end;
}

.commerce-filter-actions--compact .btn {
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 12px;
  font-size: .82rem;
}

.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;
}

.commerce-record-list--line {
  gap: 7px;
}

.worklist-entry-line {
  display: grid;
  grid-template-columns: minmax(330px, 1.1fr) minmax(390px, .95fr) minmax(380px, .75fr);
  gap: 10px;
  align-items: center;
}

.commerce-record-card--line {
  padding: 6px 8px;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(23, 46, 97, .03);
}

.commerce-shell--pipeline .commerce-record-card--line:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(23, 46, 97, .06);
}

.worklist-entry-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.worklist-entry-line .worklist-entry-main {
  gap: 3px;
}

.worklist-entry-line .commerce-record-head {
  align-items: center;
  gap: 6px;
}

.worklist-entry-line .commerce-record-title {
  gap: 2px;
  min-width: 0;
}

.worklist-entry-line .commerce-record-title strong {
  overflow: hidden;
  color: #10203d;
  font-size: .88rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worklist-entry-line .commerce-record-title p {
  overflow: hidden;
  font-size: .7rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worklist-entry-line .admin-chip {
  min-height: 20px;
  padding: 0 6px;
  font-size: .58rem;
  white-space: nowrap;
}

.worklist-entry-main .commerce-record-actions-right {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.worklist-entry-line .commerce-record-actions-right {
  display: none;
}

.worklist-entry-line .commerce-record-meta-grid--dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.worklist-entry-line .commerce-record-meta-card {
  min-height: 0;
  padding: 2px 6px;
  border: 0;
  border-left: 1px solid rgba(88, 122, 214, .16);
  border-radius: 0;
  background: transparent;
}

.worklist-entry-line .commerce-record-meta-label {
  font-size: .52rem;
  line-height: 1;
  letter-spacing: .07em;
}

.worklist-entry-line .commerce-record-meta-value {
  overflow: hidden;
  font-size: .75rem;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worklist-entry-line .commerce-record-meta-note {
  display: none;
}

.worklist-entry-side {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 10px;
}

.worklist-entry-line .worklist-entry-side {
  justify-items: end;
}

.worklist-entry-side .commerce-record-actions-left {
  display: grid;
  width: 100%;
}

.worklist-entry-line .commerce-record-actions-left {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
}

.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%;
}

.worklist-entry-line .commerce-record-actions-left .btn,
.worklist-entry-line .commerce-record-actions-left form,
.worklist-entry-line .commerce-record-actions-left button {
  width: auto;
}

.worklist-entry-line .commerce-record-actions-left .btn,
.worklist-entry-line .commerce-record-actions-left button,
.commerce-row-menu summary {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: .72rem;
  white-space: nowrap;
}

.commerce-row-menu {
  position: relative;
}

.commerce-row-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

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

.commerce-row-menu[open] summary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

.commerce-row-menu-stack,
.commerce-secondary-actions .commerce-row-menu-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.worklist-entry-line .commerce-row-menu[open] .commerce-row-menu-stack,
.worklist-entry-line .commerce-row-menu[open] .commerce-inline-billing-actions {
  position: absolute;
  right: 0;
  z-index: 5;
  width: min(280px, 80vw);
  padding: 10px;
  border: 1px solid rgba(88, 122, 214, .18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .14);
}

.commerce-inline-billing-actions,
.commerce-inline-payment-form,
.commerce-inline-credit-form {
  display: grid;
  gap: 8px;
  width: 100%;
}

.commerce-inline-billing-actions {
  padding: 10px;
  border: 1px solid rgba(70, 90, 190, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(244, 247, 255, .92), rgba(255, 255, 255, .74));
}

.commerce-inline-billing-actions > span {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.commerce-inline-billing-actions small {
  display: block;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--muted);
}

.commerce-credit-note-form {
  padding-top: 12px;
  border-top: 1px solid rgba(203, 215, 238, .82);
}

.commerce-credit-note-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 145, 93, .18);
  border-radius: 16px;
  background: rgba(232, 248, 240, .62);
}

.commerce-credit-note-list strong {
  color: #127047;
  font-size: .86rem;
}

.commerce-credit-note-list span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.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;
}

.commerce-record-card--compact.commerce-record-card--line {
  gap: 0;
  padding: 5px 8px;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(23, 46, 97, .03);
}

.commerce-record-card--compact.commerce-record-card--line .commerce-record-head {
  align-items: center;
  gap: 6px;
}

.commerce-record-card--compact.commerce-record-card--line .commerce-record-title strong {
  font-size: .88rem;
  line-height: 1.08;
}

.commerce-record-card--compact.commerce-record-card--line .commerce-record-title p {
  font-size: .7rem;
  line-height: 1.12;
}

.worklist-entry-line .commerce-record-meta-grid--dense {
  gap: 0;
}

.worklist-entry-line .commerce-record-meta-grid--dense .commerce-record-meta-card {
  min-height: 0;
  padding: 2px 6px;
  border: 0;
  border-left: 1px solid rgba(88, 122, 214, .16);
  border-radius: 0;
  background: transparent;
}

.worklist-entry-line .commerce-record-meta-grid--dense .commerce-record-meta-label {
  font-size: .52rem;
  line-height: 1;
}

.worklist-entry-line .commerce-record-meta-grid--dense .commerce-record-meta-value {
  font-size: .75rem;
  line-height: 1.04;
}

.worklist-entry-line .commerce-record-meta-grid--dense .commerce-record-meta-note {
  display: none;
}

.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;
  }

  body.page-team .app-topbar-shell {
    gap: 12px;
  }

  body.page-team .topbar-copy {
    padding-left: 0;
  }

  .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;
  }

  .commerce-worklist-hero-row,
  .worklist-summary-band .commerce-hero-grid,
  .worklist-entry-grid,
  .worklist-entry-line {
    grid-template-columns: 1fr;
  }

  .commerce-compact-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commerce-filter-control--search {
    grid-column: 1 / -1;
  }

  .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;
  }

  .commerce-compact-filter-form {
    grid-template-columns: 1fr;
  }

  .commerce-worklist-pills {
    gap: 5px;
  }

  .commerce-filter-actions--compact {
    grid-template-columns: 1fr 1fr;
  }

  .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;
  }

  .worklist-entry-line .commerce-record-actions-left {
    width: 100%;
    justify-content: stretch;
  }

  .worklist-entry-line .commerce-record-actions-left .btn,
  .worklist-entry-line .commerce-record-actions-left form,
  .worklist-entry-line .commerce-record-actions-left button,
  .worklist-entry-line .commerce-row-menu,
  .worklist-entry-line .commerce-row-menu summary {
    width: 100%;
  }

  .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;
  }

  body.page-team .topbar-title-row {
    align-items: center;
  }

  .topbar-title-row h1 {
    font-size: clamp(1.2rem, 6vw, 1.58rem);
  }

  body.page-team .topbar-title-row h1 {
    font-size: clamp(1.34rem, 6vw, 1.72rem);
  }

  .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: 204px;
  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: 10px 12px;
  border: 1px solid rgba(113, 133, 171, .20);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,250,255,.90));
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}

.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 form {
  display: inline-flex;
  margin: 0;
}

.live-document-word-controls .btn {
  min-height: 36px;
  border-radius: 12px;
  padding-inline: 14px;
  font-size: .84rem;
}

.live-document-shell:not(.is-document-preview-mode) [data-live-document-preview-note],
.live-document-shell.is-document-preview-mode [data-live-document-edit-note],
.live-document-shell:not(.is-document-preview-mode) .live-document-preview-action,
.live-document-shell.is-document-preview-mode .live-document-edit-only-action {
  display: none !important;
}

.live-document-shell.is-document-preview-mode .live-document-focus-strip {
  width: min(100%, calc(210mm + 56px));
}

.live-document-shell.is-document-preview-mode .live-document-form--word {
  grid-template-columns: calc(210mm + 44px);
}

.live-document-shell.is-document-preview-mode .live-document-inspector,
.live-document-shell.is-document-preview-mode .live-document-workspace--word > .live-document-side,
.live-document-shell.is-document-preview-mode [data-live-editor-only],
.live-document-shell.is-document-preview-mode .live-document-editor-only,
.live-document-shell.is-document-preview-mode .live-document-source-pickers,
.live-document-shell.is-document-preview-mode .live-document-row-actions,
.live-document-shell.is-document-preview-mode .live-document-line-add,
.live-document-shell.is-document-preview-mode .live-document-editor-hint,
.live-document-shell.is-document-preview-mode .demo-mini-action,
.live-document-shell.is-document-preview-mode .live-document-discount-toggle,
.live-document-shell.is-document-preview-mode [data-live-document-sync-bar] {
  display: none !important;
}

.live-document-shell.is-document-preview-mode .live-document-page input:not([type="hidden"]),
.live-document-shell.is-document-preview-mode .live-document-page select,
.live-document-shell.is-document-preview-mode .live-document-page textarea {
  pointer-events: none;
  color: inherit;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  resize: none;
}

.live-document-shell.is-document-preview-mode .live-document-page input:not([type="hidden"]),
.live-document-shell.is-document-preview-mode .live-document-page select {
  padding-right: 0 !important;
  padding-left: 0 !important;
  appearance: none;
}

.live-document-shell.is-document-preview-mode .live-document-page textarea {
  overflow: hidden;
}

.live-document-shell.is-document-preview-mode .live-document-page input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

.live-document-shell.is-document-preview-mode .live-document-item-row:hover,
.live-document-shell.is-document-preview-mode .live-document-item-row:focus-within,
.live-document-shell.is-document-preview-mode .live-document-item-row.is-selected {
  background: transparent;
  box-shadow: none;
}

.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;
  padding: 14px;
  border: 1px solid rgba(133, 155, 210, .36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(78, 122, 244, .13), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,245,255,.9));
  box-shadow: 0 28px 76px rgba(18, 35, 78, .12);
}

.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: 12px;
  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-document-card {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(153, 173, 210, .38);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(78, 122, 244, .10), transparent 34%),
    linear-gradient(180deg, rgba(248,251,255,.98), rgba(255,255,255,.94));
}

.live-document-document-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(153, 173, 210, .24);
}

.live-document-document-card div:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.live-document-document-card strong {
  color: #10203d;
  font-size: .86rem;
  line-height: 1.15;
  text-align: right;
}

.live-document-document-card small {
  color: #667792;
  font-size: .76rem;
  line-height: 1.35;
}

.commerce-secondary-actions {
  display: grid;
  gap: 8px;
}

.commerce-secondary-actions summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: .82rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.commerce-secondary-actions summary::-webkit-details-marker {
  display: none;
}

.commerce-secondary-actions[open] summary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

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

.live-document-flow-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border-color: rgba(67, 83, 205, .22) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(239, 244, 255, .92)) !important;
}

.live-document-flow-card h3 {
  margin: 0;
  color: #10203d;
  font-size: 1.02rem;
}

.live-document-flow-card p {
  margin: 0;
  color: #5b6c88;
  font-size: .86rem;
  line-height: 1.45;
}

.live-document-side .live-document-flow-card .btn {
  width: auto;
  justify-self: start;
  min-width: 0;
}

.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 input,
.live-document-inspector 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 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  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-source-pickers,
.live-document-item-row:focus-within .live-document-source-pickers,
.live-document-item-row:hover .live-document-item-title input,
.live-document-item-row:focus-within .live-document-item-title input,
.live-document-item-row:hover .live-document-item-copy textarea,
.live-document-item-row:focus-within .live-document-item-copy textarea {
  width: calc(100% - 116px);
}

.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-item-row.is-group .live-document-item-description {
  padding-right: 44px;
}

.live-document-item-row.is-group .live-document-item-title input {
  width: 100%;
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.live-document-item-row.is-group:hover .live-document-source-pickers,
.live-document-item-row.is-group:focus-within .live-document-source-pickers,
.live-document-item-row.is-group:hover .live-document-item-title input,
.live-document-item-row.is-group:focus-within .live-document-item-title input,
.live-document-item-row.is-group:hover .live-document-item-copy textarea,
.live-document-item-row.is-group:focus-within .live-document-item-copy textarea {
  width: 100%;
}

.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-billing-note {
  margin: 0 0 3px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(41, 71, 213, .07);
  color: #354868;
  font-size: .75rem;
  line-height: 1.35;
}

.live-document-items.is-calculation-locked input[readonly],
.live-document-items.is-calculation-locked textarea[readonly],
.live-document-items.is-calculation-locked select:disabled,
.live-document-totals input[readonly] {
  color: #364764;
  background: rgba(241, 245, 251, .72);
  cursor: not-allowed;
}

.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-inspector-fields {
  display: grid;
  gap: 12px;
}

.live-document-inspector-fields input,
.live-document-inspector-fields select {
  min-height: 42px;
  padding: 0 12px;
  border-color: rgba(153, 173, 210, .55);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
}

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

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

.live-document-workspace--word > .live-document-side .commerce-card {
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.live-document-action-hub-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(88, 122, 214, .16);
}

.live-document-action-hub-head h3,
.live-document-action-hub-head p {
  margin: 0;
}

.live-document-action-hub-head h3 {
  color: #10203d;
  font-size: 1.02rem;
}

.live-document-action-hub-head p {
  color: #5b6c88;
  font-size: .84rem;
  line-height: 1.35;
}

.live-document-action-hub-head .btn {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  width: auto;
}

.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, 104mm) minmax(0, 60mm);
  gap: 14mm;
  min-height: 34mm;
  padding: 0;
  border: 0;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-page-top--letter > .live-document-company-block {
  justify-items: end;
  text-align: right;
  gap: .9mm;
  font-size: 8.2pt;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.live-document-page--bernhardt-letter .live-document-page-top--letter > .live-document-company-block img {
  width: 38mm;
  margin-bottom: 1.6mm;
}

.live-document-page--bernhardt-letter .live-document-page-top--letter > .live-document-company-block strong {
  font-size: 9.8pt;
}

.live-document-page--bernhardt-letter .live-document-page-top .live-document-company-block:only-child {
  grid-column: 2;
  justify-items: end;
  text-align: right;
}

.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: 50mm;
  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: 4mm;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-address-grid--single {
  grid-template-columns: minmax(0, 105mm);
  margin-top: 0;
}

.live-document-page--bernhardt-letter .live-document-customer-block.live-document-edit-block--flat {
  gap: 1.1mm;
  min-height: 31mm;
  padding: 0;
  border-left: 0;
}

.live-document-page--bernhardt-letter .live-document-customer-block--header {
  align-self: start;
}

.live-document-sender-line {
  margin: 0 0 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 {
  display: inline-grid;
  width: auto;
  max-width: none;
  grid-template-columns: max-content max-content;
  gap: .35em;
}

.live-document-page--bernhardt-letter .live-document-inline-grid input[name="customer_zip"] {
  width: 5.5ch;
}

.live-document-page--bernhardt-letter .live-document-inline-grid input[name="customer_city"] {
  width: min(34ch, 48mm);
}

.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: 4.5mm;
}

.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-title-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3mm 7mm;
  margin-top: 2mm;
  color: #4e5e79;
  font-size: 8pt;
  font-weight: 800;
}

.live-document-title-meta label {
  display: inline-flex;
  align-items: center;
  gap: 2mm;
  justify-self: end;
}

.live-document-title-meta input {
  width: 25mm;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-weight: 850;
  text-align: right;
}

.live-document-title-meta input.live-document-date-display {
  width: 27mm;
}

.live-document-title-meta input.live-document-date-display.is-invalid {
  color: #ba2d3d;
  outline: 1px solid rgba(186, 45, 61, .28);
}

.live-document-date-output {
  display: inline-block;
  min-width: 23mm;
  color: #111827;
  font: inherit;
  font-weight: 850;
  text-align: right;
}

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

.live-document-business-facts--compact {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.live-document-business-facts--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2mm;
}

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

.live-document-business-fact-stack .live-document-place-label {
  margin-top: 1.2mm;
}

.live-document-location-line {
  display: block;
  max-width: 118mm;
}

.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: 4mm;
}

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

.live-document-static-text {
  height: auto !important;
  overflow: visible !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.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(4),
.live-document-page--bernhardt-letter .live-document-items td:nth-child(4) {
  width: auto;
  text-align: left;
}

.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: 2mm;
  align-items: start;
}

.live-document-page--bernhardt-letter .live-document-bottom--right-stack {
  grid-template-columns: minmax(0, 72mm);
  justify-content: end;
  gap: 3mm;
}

.live-document-page--bernhardt-letter .live-document-bottom--stacked {
  grid-template-columns: minmax(0, 1fr) 72mm;
  gap: 3mm 12mm;
  justify-content: stretch;
}

.live-document-page--bernhardt-letter .live-document-bottom--stacked .live-document-totals {
  grid-column: 2;
  justify-self: stretch;
}

.live-document-page--bernhardt-letter .live-document-bottom--stacked .live-document-terms {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

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

.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: start;
  }

  .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;
  }
}

@media (max-width: 900px) {
  .live-document-shell,
  .live-document-workspace,
  .live-document-form,
  .live-document-form--word,
  .live-document-workspace--word > .live-document-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .live-document-focus-strip {
    width: 100%;
    max-width: 100%;
  }

  .live-document-form--word {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

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

  .live-document-form--word .live-document-canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .live-document-form--word .live-document-pages {
    width: max-content;
    min-width: 210mm;
    justify-items: start;
  }
}

@media (hover: none) and (pointer: coarse) {
  .live-document-source-pickers,
  .live-document-item-title input,
  .live-document-item-copy textarea {
    width: calc(100% - 116px);
  }

  .live-document-row-actions {
    position: absolute;
    right: 6px;
    top: 6px;
    margin-top: 0;
    opacity: 1;
    transform: none;
  }

  .live-document-row-insert,
  .live-document-inline-insert {
    opacity: 1;
    transform: none;
  }

  .live-document-row-insert {
    position: absolute;
    right: 40px;
    bottom: -15px;
    margin: 0;
  }
}

.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;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(91, 118, 217, .5);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgba(57, 82, 214, .14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.95));
  box-shadow:
    0 34px 80px rgba(16, 31, 82, .16),
    0 12px 30px rgba(41, 71, 213, .1);
}

.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: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background:
    radial-gradient(circle at 84% 0%, rgba(132, 151, 255, .48), transparent 28%),
    linear-gradient(100deg, #29328f 0%, #3b43c4 48%, #7284f6 100%);
}

.project-list-head--pipeline .section-kicker,
.project-list-head--pipeline h3 {
  color: #fff;
}

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

.project-list-head--pipeline .project-create-toggle {
  min-height: 42px;
  border-color: rgba(255,255,255,.2);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #142aa8, #596dff);
  box-shadow: 0 14px 28px rgba(4, 13, 68, .26);
}

.project-overview-create-action,
.project-overview-filter-block {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.project-overview-action-divider {
  display: inline-block;
  width: 1px;
  min-height: 44px;
  flex: 0 0 1px;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}

.project-list-head--pipeline .project-overview-modebar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-list-head--pipeline .project-overview-tab {
  min-height: 42px;
  border-color: transparent;
  border-radius: 16px;
  color: #16246d;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(18, 30, 83, .1);
}

.project-list-head--pipeline .project-overview-filter-button {
  display: grid;
  min-width: 168px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label count"
    "name count";
  align-items: center;
  gap: 1px 10px;
  padding: 7px 12px;
  text-align: left;
}

.project-list-head--pipeline .project-overview-filter-button small {
  grid-area: label;
  color: #5e6d8c;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.project-list-head--pipeline .project-overview-filter-button strong {
  grid-area: name;
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-head--pipeline .project-overview-filter-button span {
  grid-area: count;
}

.project-list-head--pipeline .project-overview-tab.is-active {
  color: #16246d;
  background: #fff;
  box-shadow: 0 13px 26px rgba(18, 30, 83, .16);
}

.project-list-head--pipeline .project-overview-tab span {
  color: #fff;
  background: #6a7df3;
}

.project-list-head--pipeline .project-overview-tab.is-active span {
  color: #fff;
  background: #6a7df3;
}

.project-overview-redesign .project-overview {
  margin-top: 0;
  padding: 16px 18px 22px;
  background: rgba(255,255,255,.78);
}

.project-search-toolbar--overview {
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(113, 133, 171, .16);
}

.project-search-toolbar--overview .project-search-field {
  max-width: 620px;
}

.project-search-toolbar--overview .project-search-count {
  color: #2036ad;
  background: rgba(41, 71, 213, .08);
}

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

.project-overview-pipeline .project-status-section {
  display: grid;
  grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  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: 5px;
  min-height: 0;
  padding: 4px 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: 8px;
}

.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: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 15px;
  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: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  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: 8px;
  min-width: 0;
}

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

.project-overview-pipeline .project-compact-meta {
  margin-top: 3px;
  gap: 6px;
  color: #596986;
  font-size: .78rem;
}

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

.project-overview-pipeline .project-phase-badge {
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .76rem;
}

.project-inline-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 6px;
  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;
  gap: 7px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(73, 102, 199, .16);
  border-radius: 999px;
  color: #2036ad;
  background: rgba(255,255,255,.92);
  font-size: .7rem;
  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-overview-pipeline .project-status-section--completed .project-status-section-head strong {
  background: rgba(15, 111, 73, .1);
  color: #0f6f49;
}

.project-overview-pipeline .project-compact-row--overview {
  align-items: stretch;
  border-color: rgba(202, 215, 239, .82);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.94));
  box-shadow: 0 9px 21px rgba(17, 29, 74, .05);
}

.project-overview-pipeline .project-compact-row--overview::before {
  background: #6b7891;
}

.project-overview-pipeline .project-status-section--scheduled .project-compact-row--overview::before {
  background: #2947d5;
}

.project-overview-pipeline .project-status-section--accepted .project-compact-row--overview::before {
  background: #177779;
}

.project-overview-pipeline .project-status-section--completed .project-compact-row--overview::before {
  background: #0f6f49;
}

.project-overview-pipeline .project-compact-row--overview.phase-recorded,
.project-overview-pipeline .project-compact-row--overview.phase-offer,
.project-overview-pipeline .project-compact-row--overview.phase-commissioned,
.project-overview-pipeline .project-compact-row--overview.phase-scheduled,
.project-overview-pipeline .project-compact-row--overview.phase-accepted,
.project-overview-pipeline .project-compact-row--overview.phase-customer-sent,
.project-overview-pipeline .project-compact-row--overview.phase-invoiced,
.project-overview-pipeline .project-compact-row--overview.phase-payment,
.project-overview-pipeline .project-compact-row--overview.phase-completed {
  border-color: rgba(202, 215, 239, .82);
}

.project-compact-milestone {
  margin-top: 3px;
  color: #71809a;
  font-size: .72rem;
  font-weight: 800;
}

.project-overview-pipeline .project-compact-side {
  grid-template-columns: minmax(118px, auto) auto;
  align-content: stretch;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(113, 133, 171, .15);
}

.project-compact-status {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  min-width: 0;
}

.project-compact-status small {
  max-width: 145px;
  color: #6a7892;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.project-row-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 96px;
}

.project-overview-pipeline .project-edit-link {
  min-width: 92px;
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 13px;
  font-size: .78rem;
}

.project-inline-action-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-inline-action::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7e8fac;
}

.project-inline-action--acceptance::before {
  background: #177779;
}

.project-inline-action--offer::before {
  background: #2947d5;
}

.project-inline-action--invoice::before {
  background: #0f6f49;
}

.project-focus-header {
  position: relative;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(202, 215, 239, .78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 12%, rgba(105, 184, 255, .12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,255,.94));
  box-shadow: 0 18px 42px rgba(17, 29, 74, .06);
}

.project-command-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 270px) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
}

.project-focus-header .project-open-identity {
  min-width: 0;
}

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

.project-focus-header .project-back-link {
  gap: 7px;
  padding-inline: 13px;
  color: #203253;
  background: #fff;
}

.project-focus-header .project-back-link strong {
  font-size: .86rem;
}

.project-focus-header .project-open-title h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  font-size: 1.16rem;
  line-height: 1.12;
}

.project-focus-header .project-open-title p {
  margin: 4px 0 0;
  color: #596986;
  font-size: .84rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.project-focus-header .project-compact-code {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  width: fit-content;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-focus-header .project-compact-code {
  color: #263a5f;
  background: #fff;
  border: 1px solid rgba(165, 189, 230, .58);
}

.project-command-tools {
  position: relative;
  justify-self: end;
}

.project-command-tools summary {
  list-style: none;
}

.project-command-tools summary::-webkit-details-marker {
  display: none;
}

.project-command-tools-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-radius: 12px;
  cursor: pointer;
  color: #203253;
  background: #fff;
}

.project-command-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.project-command-tools[open] .project-command-chevron {
  transform: translateY(2px) rotate(225deg);
}

.project-focus-header .project-open-controlbar {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 24;
  display: grid;
  gap: 12px;
  width: min(560px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(191, 208, 237, .92);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(21, 37, 77, .16);
}

.project-command-tools-copy {
  display: grid;
  gap: 3px;
  color: #253a60;
}

.project-command-tools-copy strong {
  font-size: .9rem;
}

.project-command-tools-copy span,
.project-archive-copy {
  color: #627590;
  font-size: .76rem;
  line-height: 1.35;
}

.project-focus-header .project-rollback-form {
  display: grid;
  grid-template-columns: minmax(178px, 220px) auto;
  gap: 7px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 13px;
  background: #f7faff;
}

.project-focus-header .project-rollback-select {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-focus-header .project-rollback-select > span {
  color: #657692;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-focus-header .project-rollback-select select {
  min-height: 34px;
  border-radius: 10px;
  font-size: .84rem;
}

.project-focus-header .project-archive-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.project-focus-header .project-delete-btn {
  color: #863245;
  border-color: rgba(166, 67, 84, .22);
}

.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;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  margin: 0 0 12px;
  gap: 8px;
  overflow-x: visible;
  border: 1px solid rgba(170, 188, 224, .92);
  border-bottom-color: rgba(41, 71, 213, .28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 71, 213, .16), transparent 34%),
    linear-gradient(180deg, rgba(250, 252, 255, .98), rgba(232, 239, 252, .98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 16px 34px rgba(22, 38, 80, .12);
  scrollbar-width: thin;
}

.team-attendance-page--v121 .team-hub-nav-shell--compact::before {
  display: none;
}

.team-attendance-page--v121 .team-hub-tab-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  width: 100%;
  gap: 8px;
  justify-content: stretch;
  padding: 0;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(188, 203, 232, .82);
  border-radius: 15px;
  color: #213452;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  white-space: nowrap;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link .team-tab-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link .team-tab-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link .team-tab-label {
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.1;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link small {
  display: none;
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2947d5, #617ff0);
  box-shadow:
    0 10px 22px rgba(41, 71, 213, .24),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link:not(.is-active):hover,
.team-attendance-page--v121 .team-hub-tab-nav .report-tab-link:not(.is-active):focus-visible {
  border-color: rgba(41, 71, 213, .18);
  color: #1f318f;
  background: rgba(255,255,255,.96);
}

.team-hub-panel--workflow {
  overflow: hidden;
  border: 1px solid rgba(195, 209, 235, .84);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 114, 232, .07), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow:
    0 18px 36px rgba(19, 34, 72, .08),
    0 3px 9px rgba(19, 34, 72, .04);
}

.team-hub-panel--workflow .time-cluster-head,
.team-hub-panel--workflow .report-hero,
.team-timesheet-shell.team-hub-panel--workflow .team-timesheet-layout {
  padding: 16px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(41, 71, 213, .08), transparent 5px),
    rgba(247, 250, 255, .92);
}

.team-hub-panel--workflow .time-cluster-head,
.team-hub-panel--workflow .report-hero {
  align-items: center;
}

.team-hub-panel--workflow .report-summary-strip,
.team-hub-panel--workflow .absence-summary-strip {
  gap: 10px;
}

.team-hub-panel--workflow .report-metric-card,
.team-hub-panel--workflow .absence-summary-card {
  border-color: rgba(202, 215, 239, .84);
  background: #fff;
  box-shadow: none;
}

.team-hub-panel--workflow .data-table {
  overflow: hidden;
  border-radius: 17px;
}

.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;
}

.team-attendance-page--v121 .team-attendance-controlbar {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(73, 102, 199, .12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 247, 252, .96), rgba(235, 240, 249, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.team-attendance-page--v121 .team-attendance-controlbar .time-history-tabs {
  width: auto;
  min-width: 0;
  padding: 3px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.team-attendance-page--v121 .team-attendance-controlbar .time-history-tab {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .8rem;
}

.team-attendance-page--v121 .team-attendance-range-copy {
  min-width: 0;
}

.team-attendance-page--v121 .team-attendance-range-copy strong {
  display: block;
  overflow: hidden;
  color: #263a5f;
  font-size: .96rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attendance-page--v121 .team-attendance-nav-form {
  justify-content: flex-end;
}

.team-attendance-page--v121 .team-attendance-nav-form input[type="date"],
.team-attendance-page--v121 .team-attendance-nav-form input[type="week"] {
  min-height: 34px;
  min-width: 9.8rem;
  padding: 0 10px;
  border-radius: 10px;
  font-size: .86rem;
}

.team-attendance-page--v121 .team-attendance-nav-btn {
  min-height: 34px;
  min-width: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}

.team-attendance-page--v121 .team-attendance-controlbar .btn.btn-primary {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: .84rem;
  white-space: nowrap;
}

.team-attendance-page--v121 .team-attendance-board {
  gap: 6px;
}

.team-attendance-page--v121 .team-attendance-board-head,
.team-attendance-page--v121 .team-attendance-row {
  gap: 8px;
  grid-template-columns: minmax(0, 14.2rem) minmax(0, 1fr);
}

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

.team-attendance-page--v121 .team-attendance-person-head,
.team-attendance-page--v121 .team-attendance-track-head,
.team-attendance-page--v121 .team-attendance-week-head {
  font-size: .68rem;
}

.team-attendance-page--v121 .team-attendance-person-card,
.team-attendance-page--v121 .team-attendance-track,
.team-attendance-page--v121 .team-attendance-week-grid,
.team-attendance-page--v121 .team-attendance-week-head {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17, 29, 74, .045);
}

.team-attendance-page--v121 .team-attendance-person-card {
  gap: 8px;
  padding: 8px 10px;
}

.team-attendance-page--v121 .team-attendance-avatar {
  width: 34px;
  height: 34px;
  font-size: .8rem;
}

.team-attendance-page--v121 .team-attendance-person-copy strong {
  font-size: .9rem;
  line-height: 1.15;
}

.team-attendance-page--v121 .team-attendance-person-status,
.team-attendance-page--v121 .team-worklist-meta {
  font-size: .69rem;
  line-height: 1.2;
}

.team-attendance-page--v121 .team-attendance-track {
  min-height: 52px;
  padding: 5px 4px;
}

.team-attendance-page--v121 .team-worklist-track {
  min-height: 52px;
}

.team-attendance-page--v121 .team-attendance-empty {
  min-height: 40px;
  font-size: .78rem;
}

.team-attendance-page--v121 .team-attendance-now-line {
  top: 5px;
  bottom: 5px;
}

.team-attendance-page--v121 .team-attendance-bar {
  top: 8px;
  min-height: 31px;
  padding: 5px 8px;
  border-radius: 10px;
  gap: 0;
  box-shadow: 0 8px 16px rgba(24, 34, 73, .12);
}

.team-attendance-page--v121 .team-attendance-bar strong {
  font-size: .72rem;
}

.team-attendance-page--v121 .team-attendance-bar span {
  font-size: .64rem;
}

.team-attendance-page--v121 .team-attendance-week-head,
.team-attendance-page--v121 .team-attendance-week-grid {
  gap: 6px;
  padding: 8px;
}

.team-attendance-page--v121 .team-attendance-week-cell {
  min-height: 56px;
  padding: 8px 9px 9px;
  border-radius: 12px;
}

.team-attendance-page--v121 .team-attendance-week-cell strong {
  font-size: .84rem;
}

.team-attendance-page--v121 .team-attendance-week-cell span {
  font-size: .68rem;
}

@media (max-width: 1180px) {
  .team-attendance-page--v121 .team-attendance-controlbar {
    grid-template-columns: auto minmax(8rem, 1fr) auto auto;
  }
}

@media (max-width: 900px) {
  .team-attendance-page--v121 {
    padding: 12px;
  }

  .team-attendance-page--v121 .team-attendance-controlbar {
    grid-template-columns: 1fr auto;
  }

  .team-attendance-page--v121 .team-attendance-controlbar .time-history-tabs,
  .team-attendance-page--v121 .team-attendance-range-copy {
    grid-column: auto;
  }

  .team-attendance-page--v121 .team-attendance-nav-form {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .team-attendance-page--v121 .team-attendance-controlbar .btn.btn-primary {
    grid-column: 2;
    grid-row: 1;
  }

  .team-attendance-page--v121 .team-attendance-board-head,
  .team-attendance-page--v121 .team-attendance-row,
  .team-attendance-page--v121 .team-attendance-row--week {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .team-attendance-page--v121 .team-hub-nav-shell--compact::before {
    width: 100%;
  }

  .team-attendance-page--v121 .team-hub-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    justify-content: flex-start;
  }

  .team-attendance-page--v121 .team-hub-tab-nav .report-tab-link {
    min-width: 138px;
    min-height: 42px;
    padding: 0 12px;
  }

  .team-attendance-page--v121 .team-attendance-controlbar {
    gap: 7px;
    padding: 8px;
  }

  .team-attendance-page--v121 .team-attendance-controlbar .time-history-tab {
    padding: 0 10px;
  }

  .team-attendance-page--v121 .team-attendance-nav-form input[type="date"],
  .team-attendance-page--v121 .team-attendance-nav-form input[type="week"] {
    min-width: 0;
    width: min(9.5rem, 52vw);
  }

  .team-attendance-page--v121 .team-attendance-track {
    min-height: 56px;
  }

  .team-attendance-page--v121 .team-attendance-week-head,
  .team-attendance-page--v121 .team-attendance-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@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: 0;
    border-radius: 24px;
  }

  .project-focus-header .project-compact-code {
    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 {
    width: min(520px, calc(100vw - 48px));
  }

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

}

@media (max-width: 860px) {
  .project-command-toolbar.project-command-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .project-focus-header .project-back-link {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .project-focus-header .project-open-identity {
    grid-column: 1;
    grid-row: 2;
  }

  .project-command-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .project-command-tools[open] {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }

  .project-command-tools[open] .project-command-tools-toggle {
    margin-left: auto;
  }

  .project-focus-header .project-rollback-form { grid-template-columns: 1fr; }

  .project-list-head--pipeline,
  .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-list-head--pipeline {
    align-items: stretch;
    padding: 14px;
  }

  .project-list-head--pipeline .project-overview-actions {
    align-items: stretch;
    justify-content: start;
  }

  .project-overview-create-action,
  .project-overview-filter-block {
    width: 100%;
  }

  .project-overview-create-action .project-create-toggle {
    width: 100%;
    justify-content: center;
  }

  .project-overview-action-divider {
    display: none;
  }

  .project-list-head--pipeline .project-overview-modebar {
    width: 100%;
  }

  .project-list-head--pipeline .project-overview-filter-button {
    flex: 1 1 190px;
    min-width: min(100%, 190px);
  }

  .project-search-toolbar--overview .project-search-field {
    max-width: none;
  }

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

  .project-focus-header .project-open-controlbar {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 10px;
  }

  .project-focus-header .project-delete-btn,
  .project-focus-header .project-rollback-btn,
  .project-focus-header .project-archive-form {
    width: 100%;
  }

  .project-focus-header .project-open-controlbar {
    align-items: stretch;
  }

  .project-overview-pipeline .project-compact-side {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    width: 100%;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(113, 133, 171, .14);
  }

  .project-compact-status {
    justify-items: start;
  }

  .project-row-actions {
    justify-items: end;
  }

  .project-compact-status small {
    display: none;
  }

  .project-overview-pipeline .project-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .project-overview-pipeline .project-inline-actions {
    gap: 6px;
    margin-top: 7px;
    padding-top: 6px;
  }

  .project-overview-pipeline .project-inline-actions > span {
    display: none;
  }

  .project-overview-pipeline .project-inline-action {
    min-height: 28px;
    padding: 0 8px;
    font-size: .7rem;
  }

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

/* Project flow tablet/mobile refinement 2026-05 */
.project-step-strip--timeline .project-step-btn {
  color: #172740;
  border-color: rgba(93, 112, 146, .18);
  background: #fff;
}

.project-step-strip--timeline .project-step-btn .no {
  color: #60708a;
  opacity: 1;
}

.project-step-strip--timeline .project-step-btn .name {
  color: #172740;
}

.project-step-strip--timeline .project-step-btn.is-complete {
  color: #134936;
  border-color: rgba(17, 163, 111, .25);
  background: linear-gradient(180deg, rgba(241, 252, 247, .98), rgba(255,255,255,.97));
}

.project-step-strip--timeline .project-step-btn.is-complete .no,
.project-step-strip--timeline .project-step-btn.is-complete .name {
  color: #134936;
}

.project-step-strip--timeline .project-step-btn.is-active,
.project-step-strip--timeline .project-step-btn.is-active.is-complete {
  color: #172740;
  border-color: rgba(88, 111, 152, .32);
  background:
    linear-gradient(90deg, rgba(41, 71, 213, .14), transparent 5px),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,247,252,.96));
  box-shadow: 0 12px 26px rgba(23, 39, 64, .1);
}

.project-step-strip--timeline .project-step-btn.is-active .no,
.project-step-strip--timeline .project-step-btn.is-active .name,
.project-step-strip--timeline .project-step-btn.is-active.is-complete .no,
.project-step-strip--timeline .project-step-btn.is-active.is-complete .name {
  color: #172740;
}

.project-step-strip--timeline .project-step-btn.is-active .status,
.project-step-strip--timeline .project-step-btn.is-active.is-complete .status {
  color: #52647d;
}

.project-step-strip--timeline .project-step-btn.is-active.is-complete .project-step-check {
  background: #11a36f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 77, 54, .22);
}

.project-stage-panel,
.project-stage-support-panel {
  display: grid;
  gap: 18px;
}

.project-stage-panel[hidden],
.project-stage-support-panel[hidden] {
  display: none;
}

.project-stage-head {
  position: relative;
  gap: 16px;
  margin: -18px -18px 0;
  padding: 18px 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(198, 209, 226, .7);
  border-radius: 26px 26px 18px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 83, 120, .055), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,249,253,.94));
}

.project-stage-head::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, #7488b6, #c2ccdf);
}

.project-stage-head > * {
  position: relative;
  z-index: 1;
}

.project-stage-head .step-id {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(195, 207, 228, .84);
  color: #34455f;
  background: rgba(246, 248, 252, .96);
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-stage-head h3 {
  margin-top: 8px;
  color: #10203d;
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  letter-spacing: -.03em;
}

.project-stage-head .btn {
  box-shadow: 0 12px 24px rgba(18, 34, 78, .08);
}

.project-stage-head .project-panel-copy {
  max-width: 68ch;
}

.project-stage-panel .project-summary-list {
  margin-top: 0;
}

.project-panel-card.project-stage-panel,
.project-panel-card.project-stage-support-panel {
  border: 1px solid rgba(196, 207, 225, .78);
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 83, 120, .045), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,253,.96));
  box-shadow: 0 20px 45px rgba(17, 29, 74, .075);
}

.project-stage-panel .grid,
.project-stage-panel .project-summary-list,
.project-stage-panel .project-note-box,
.project-stage-panel .project-summary-box,
.project-stage-panel .project-protocol-offer-card,
.project-stage-panel .project-acceptance-version-box,
.project-stage-panel .project-acceptance-checklist-card,
.project-stage-panel .project-acceptance-signature-card,
.project-stage-panel .project-acceptance-upload-card,
.project-stage-panel .project-acceptance-actions-card,
.project-stage-panel .project-flow-mail-form,
.project-stage-panel .project-flow-upload-form {
  border-radius: 20px;
}

.project-stage-panel .project-summary-list,
.project-stage-panel .project-flow-mail-form,
.project-stage-panel .project-flow-upload-form {
  padding: 14px;
  border: 1px solid rgba(207, 216, 232, .72);
  background: rgba(255,255,255,.74);
}

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

.project-flow-mail-form .project-flow-field--subject,
.project-flow-mail-form .project-flow-field--message,
.project-flow-mail-form .project-mail-attachment-option,
.project-flow-mail-form .button-row,
.project-flow-mail-form > .btn {
  grid-column: 1 / -1;
}

.project-flow-mail-form .project-flow-field--message textarea {
  min-height: 150px;
}

.project-flow-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.project-flow-upload-form .btn {
  min-width: 184px;
}

.project-schedule-form--compact {
  gap: 18px;
}

.project-schedule-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "time time"
    "place crew"
    "work work";
  align-items: stretch;
  gap: 16px;
}

.project-schedule-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(194, 206, 226, .82);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 83, 120, .055), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,253,.95));
  box-shadow:
    0 16px 34px rgba(24, 43, 86, .07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.project-schedule-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #7d8fb8, rgba(125, 143, 184, .18));
}

.project-schedule-card--crew::before {
  background: linear-gradient(90deg, #2d8f72, rgba(103, 199, 153, .18));
}

.project-schedule-card--place::before {
  background: linear-gradient(90deg, #8e82c7, rgba(142, 130, 199, .16));
}

.project-schedule-card--work::before {
  background: linear-gradient(90deg, #5f8daf, rgba(95, 141, 175, .15));
}

.project-schedule-card--place,
.project-schedule-card--work {
  grid-column: auto;
}

.project-schedule-card--time {
  grid-area: time;
}

.project-schedule-card--crew {
  grid-area: crew;
}

.project-schedule-card--place {
  grid-area: place;
}

.project-schedule-card--work {
  grid-area: work;
}

.project-schedule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-schedule-card-head strong {
  display: block;
  margin-top: 2px;
  color: #17223c;
  font-size: 1.02rem;
  line-height: 1.16;
}

.project-schedule-card-head small {
  color: #667792;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-schedule-field-grid {
  display: grid;
  gap: 12px;
}

.project-schedule-field-grid--time {
  grid-template-columns: minmax(230px, 1.2fr) repeat(2, minmax(170px, .9fr));
}

.project-schedule-field-grid--place {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.project-schedule-form--compact label > span,
.project-schedule-form--compact .project-technician-field > span {
  display: block;
  margin-bottom: 7px;
  color: #596a86;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-schedule-form--compact input,
.project-schedule-form--compact select,
.project-schedule-form--compact textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: .94rem;
}

.project-schedule-form--compact textarea {
  min-height: 112px;
  padding-top: 12px;
  line-height: 1.45;
}

.project-schedule-core .project-technician-field {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.project-technician-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.project-technician-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 10px;
}

.project-technician-option {
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
}

.project-technician-option span {
  min-width: 0;
}

.project-technician-option--compact {
  position: relative;
  min-height: 64px;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  border-color: rgba(162, 181, 221, .68);
  background: rgba(255,255,255,.95);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 43, 86, .045);
}

.project-technician-option--compact input {
  position: absolute;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.project-technician-toggle {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(88, 122, 214, .24);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.project-technician-option--compact input:checked + .project-technician-toggle {
  border-color: rgba(41, 71, 213, .72);
  background: linear-gradient(135deg, #2947d5, #4f78ff);
}

.project-technician-option--compact input:checked + .project-technician-toggle::after {
  content: "";
  display: block;
  width: 9px;
  height: 5px;
  margin: 5px auto 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.project-technician-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-technician-option--compact strong {
  overflow-wrap: anywhere;
  color: #243451;
  font-size: .82rem;
  line-height: 1.12;
}

.project-technician-option--compact small {
  margin-top: 0;
  overflow-wrap: anywhere;
  font-size: .68rem;
}

.project-schedule-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(184, 199, 230, .62);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .12), transparent 28%),
    linear-gradient(135deg, rgba(241, 246, 255, .95), rgba(255,255,255,.86));
}

.project-schedule-footer span {
  color: #667792;
  font-size: .84rem;
}

.project-schedule-footer .btn {
  width: 100%;
  min-height: 42px;
}

.project-acceptance-version-box {
  padding: 0;
  overflow: hidden;
}

.project-acceptance-version-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.project-acceptance-version-details summary::-webkit-details-marker {
  display: none;
}

.project-acceptance-version-details summary strong,
.project-acceptance-version-details summary small {
  display: block;
}

.project-acceptance-version-details summary small {
  margin-top: 4px;
  color: #667792;
  font-size: .78rem;
  font-weight: 700;
}

.project-acceptance-version-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2036ad;
  background: rgba(41, 71, 213, .08);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-acceptance-version-details[open] .project-acceptance-version-summary-action {
  color: #667792;
  background: rgba(102, 119, 146, .1);
}

.project-acceptance-version-search {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 0 16px 12px;
}

.project-acceptance-version-search p {
  margin: 0;
  color: #667792;
  font-size: .82rem;
  line-height: 1.4;
}

.project-acceptance-version-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.project-acceptance-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.9));
}

.project-acceptance-version-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-acceptance-version-main span {
  color: #53647f;
  font-size: .78rem;
  font-weight: 900;
}

.project-acceptance-version-main strong {
  font-size: .94rem;
}

.project-acceptance-version-main small {
  color: #667792;
  overflow-wrap: anywhere;
}

.project-acceptance-version-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.project-acceptance-version-actions .btn {
  min-height: 34px;
  padding-inline: 11px;
  border-radius: 10px;
  font-size: .8rem;
}

.project-acceptance-version-actions .btn[disabled] {
  opacity: .58;
  cursor: not-allowed;
}

.project-acceptance-version-empty {
  padding: 12px;
  border: 1px dashed rgba(202, 215, 239, .9);
  border-radius: 14px;
  color: #667792;
  background: rgba(247, 250, 255, .78);
}

.project-stage-panel--customer .project-summary-list,
.project-stage-panel--invoice .project-summary-list,
.project-stage-panel--payment .project-summary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-stage-panel--customer .project-summary-item,
.project-stage-panel--invoice .project-summary-item,
.project-stage-panel--payment .project-summary-item {
  padding: 12px 14px;
}

.project-stage-support-panel {
  margin-top: 4px;
}

.project-signature-modal {
  z-index: 120;
}

@media (max-width: 1180px) {
  .project-focus-shell {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    gap: 12px;
  }

  .project-flow-summary-sidebar {
    display: none;
  }

  .project-step-strip--timeline {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .project-step-strip--timeline .project-step-btn {
    flex-basis: 130px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .project-panel-card.project-stage-panel,
  .project-panel-card.project-stage-support-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .project-flow-summary-sidebar .project-sidebar-sticky {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .project-flow-summary-sidebar .project-summary-list,
  .project-flow-summary-sidebar .project-file-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .project-flow-summary-sidebar .project-file-mini,
  .project-flow-summary-sidebar .project-summary-item {
    padding: 10px 11px;
  }

  .project-flow-summary-sidebar .project-sidebar-divider {
    display: none;
  }

  .project-schedule-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "time"
      "crew"
      "place"
      "work";
  }

  .project-schedule-card--place,
  .project-schedule-card--work {
    grid-column: auto;
  }

  .project-schedule-field-grid--place {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .project-stage-panel--acceptance .project-acceptance-checklist-card {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .project-stage-panel--acceptance .project-acceptance-checklist-row {
    grid-template-columns: minmax(210px, 1.7fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .project-stage-head {
    display: grid;
    gap: 12px;
  }

  .project-stage-head .btn {
    width: 100%;
  }

  .project-flow-mail-form,
  .project-flow-upload-form,
  .project-stage-panel--customer .project-summary-list,
  .project-stage-panel--invoice .project-summary-list,
  .project-stage-panel--payment .project-summary-list,
  .project-flow-summary-sidebar .project-summary-list,
  .project-flow-summary-sidebar .project-file-stack {
    grid-template-columns: 1fr;
  }

  .project-flow-upload-form .btn {
    min-width: 0;
  }

  .project-technician-grid:not(.project-technician-grid--compact) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .project-focus-header .project-rollback-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .project-focus-header .project-delete-btn {
    min-width: 132px;
  }
}

@media (max-width: 640px) {
  .project-command-toolbar.project-command-overview {
    grid-template-columns: 1fr;
  }

  .project-command-toolbar .project-back-link,
  .project-command-tools,
  .project-command-tools-toggle {
    width: 100%;
  }

  .project-focus-header .project-back-link {
    grid-column: 1;
    grid-row: 1;
  }

  .project-focus-header .project-open-identity {
    grid-column: 1;
    grid-row: 2;
  }

  .project-command-tools,
  .project-command-tools[open] {
    grid-column: 1;
    grid-row: 3;
  }

  .project-command-tools-toggle {
    justify-content: space-between;
  }

  .project-focus-header .project-archive-form {
    flex-direction: column;
    align-items: stretch;
  }

  .project-schedule-field-grid--time,
  .project-schedule-field-grid--place,
  .project-schedule-footer,
  .project-acceptance-version-search,
  .project-acceptance-version-row {
    grid-template-columns: 1fr;
  }

  .project-technician-grid--compact {
    grid-template-columns: 1fr;
  }

  .project-schedule-footer .btn,
  .project-acceptance-version-actions,
  .project-acceptance-version-actions .btn {
    width: 100%;
  }

  .project-acceptance-version-actions {
    justify-content: stretch;
  }

  .project-acceptance-version-details summary {
    align-items: flex-start;
  }

  .project-signature-modal {
    align-items: end;
    padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .project-signature-dialog {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .project-signature-dialog canvas {
    height: 200px;
  }

  .project-signature-dialog .project-customer-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-signature-dialog [data-signature-modal-confirm] {
    grid-column: 1 / -1;
  }
}

/* Desktop workspace refinement: dashboard, customer file and embedded commerce dialog */
.dashboard-focus--office,
.customer-hub-shell {
  align-content: start;
}

.content-shell > .dashboard-focus--office {
  grid-row: 1;
  align-self: start;
}

.dashboard-focus--office {
  grid-template-columns: minmax(620px, 1fr) minmax(290px, 340px);
  gap: 16px;
}

.dashboard-office-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(202, 215, 239, .78);
  border-radius: 26px;
  background:
    radial-gradient(circle at right top, rgba(107, 171, 255, .13), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.94));
  box-shadow: 0 16px 34px rgba(17, 29, 74, .05);
}

.dashboard-office-copy h2 {
  margin: 5px 0 4px;
  color: #10203d;
  font-size: clamp(1.38rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.dashboard-office-copy p {
  max-width: 60ch;
  margin: 0;
  color: #5d6d88;
  font-size: .88rem;
  line-height: 1.45;
}

.dashboard-office-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  flex: 0 1 360px;
}

.dashboard-office-metrics div {
  display: grid;
  gap: 4px;
  min-height: 60px;
  align-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(198, 213, 239, .74);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}

.dashboard-office-metrics span {
  color: #657590;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-office-metrics strong {
  color: #13264c;
  font-size: 1rem;
}

.dashboard-focus--office > .timer-card {
  grid-column: 1;
  align-self: start;
}

.dashboard-focus--office > .dashboard-project-stage,
.dashboard-office-launchpad {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.dashboard-office-launchpad {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(202, 215, 239, .82);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 10%, rgba(98, 141, 246, .1), transparent 30%),
    #fff;
  box-shadow: 0 18px 38px rgba(17, 29, 74, .06);
}

.dashboard-office-launchpad h3 {
  margin: 0;
  color: #10203d;
  font-size: 1.24rem;
}

.dashboard-office-launchpad p {
  margin: -5px 0 2px;
  color: #657590;
  font-size: .82rem;
  line-height: 1.4;
}

.dashboard-office-links {
  display: grid;
  gap: 8px;
}

.dashboard-office-links a {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid rgba(197, 212, 238, .74);
  border-radius: 16px;
  color: #10203d;
  background: linear-gradient(180deg, rgba(247,250,255,.96), #fff);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-office-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 71, 213, .27);
  box-shadow: 0 10px 22px rgba(17, 29, 74, .06);
}

.dashboard-office-links strong {
  font-size: .93rem;
}

.dashboard-office-links span {
  color: #61718c;
  font-size: .77rem;
  line-height: 1.35;
}

.dashboard-office-note {
  padding: 11px 12px;
  border-radius: 14px;
  color: #5e6d87;
  background: #f4f8ff;
  font-size: .78rem;
  line-height: 1.4;
}

.content-shell > .customer-hub-shell {
  grid-row: 1;
  align-self: start;
}

.customer-hub-shell {
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  transition: grid-template-columns .22s ease, gap .22s ease;
}

.customer-hub-shell.has-selected-customer {
  grid-template-columns: minmax(214px, 246px) minmax(0, 1fr);
  gap: 18px;
}

.customer-hub-directory {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 15px;
  padding: 16px;
  border-radius: 25px;
  background:
    radial-gradient(circle at left top, rgba(77, 118, 232, .08), transparent 32%),
    #fff;
  transition: padding .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-hub-shell.has-selected-customer .customer-hub-directory {
  gap: 10px;
  padding: 13px 12px;
  border-color: rgba(208, 218, 236, .72);
  background:
    radial-gradient(circle at left top, rgba(77, 118, 232, .04), transparent 28%),
    rgba(255,255,255,.78);
  box-shadow: none;
}

.customer-hub-directory-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.customer-hub-directory-head h2 {
  margin: 4px 0 2px;
  color: #10203d;
  font-size: 1.28rem;
  line-height: 1.1;
}

.customer-hub-directory-head p {
  margin: 0;
  color: #61718c;
  font-size: .8rem;
}

.customer-hub-directory-head .btn {
  min-height: 38px;
  padding-inline: 14px;
}

.customer-hub-shell.has-selected-customer .customer-hub-directory-head {
  gap: 8px;
}

.customer-hub-shell.has-selected-customer .customer-hub-directory-head h2 {
  font-size: 1.06rem;
}

.customer-hub-shell.has-selected-customer .customer-hub-directory-head p {
  font-size: .72rem;
}

.customer-hub-shell.has-selected-customer .customer-hub-directory-head .btn {
  min-height: 34px;
  padding-inline: 12px;
  box-shadow: 0 8px 18px rgba(41, 71, 213, .16);
}

.customer-hub-selected-pill {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(41, 71, 213, .22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(41, 71, 213, .12), transparent 5px),
    #f7faff;
}

.customer-hub-selected-pill span {
  color: #657590;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-hub-selected-pill strong {
  overflow: hidden;
  color: #172744;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-hub-search {
  grid-template-columns: minmax(0, 1fr);
}

.customer-hub-search .btn {
  justify-content: center;
}

.customer-hub-shell.has-selected-customer .customer-hub-search {
  opacity: .72;
}

.customer-hub-shell.has-selected-customer .customer-hub-search .btn {
  display: none;
}

.customer-hub-list {
  max-height: calc(100dvh - 250px);
  overflow-y: auto;
  padding-right: 2px;
}

.customer-hub-shell.has-selected-customer .customer-hub-list {
  max-height: calc(100dvh - 320px);
}

.customer-hub-customer {
  padding: 13px 13px 12px;
  border-radius: 17px;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.customer-hub-shell.has-selected-customer .customer-hub-customer {
  padding: 9px 10px;
  border-radius: 14px;
}

.customer-hub-shell.has-selected-customer .customer-hub-customer:not(.is-active) {
  opacity: .54;
  border-color: transparent;
  background: transparent;
}

.customer-hub-shell.has-selected-customer .customer-hub-customer:not(.is-active):hover,
.customer-hub-shell.has-selected-customer .customer-hub-customer:not(.is-active):focus-visible {
  opacity: 1;
}

.customer-hub-shell.has-selected-customer .customer-hub-customer.is-active {
  opacity: 1;
  border-color: rgba(41, 71, 213, .36);
  background:
    linear-gradient(90deg, rgba(41, 71, 213, .14), transparent 5px),
    #fff;
  box-shadow: 0 8px 18px rgba(41, 71, 213, .08);
}

.customer-hub-detail {
  display: grid;
  min-width: 0;
  gap: 14px;
  transition: padding .22s ease, border-color .22s ease;
}

.customer-hub-shell.has-selected-customer .customer-hub-detail {
  padding-left: 18px;
  border-left: 1px solid rgba(155, 171, 202, .34);
}

.customer-hub-activity {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(91, 118, 217, .56);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgba(57, 82, 214, .24), transparent 32%),
    radial-gradient(circle at 6% 20%, rgba(108, 132, 238, .18), transparent 28%),
    linear-gradient(135deg, #e7edff 0%, #f9fbff 45%, #edf3ff 100%);
  box-shadow:
    0 38px 86px rgba(16, 31, 82, .24),
    0 16px 34px rgba(41, 71, 213, .16),
    0 2px 0 rgba(255,255,255,.92) inset,
    inset 0 1px 0 rgba(255,255,255,.9);
}

.customer-hub-activity > .card {
  margin: 0;
  border-radius: 0;
}

.customer-hub-activity .customer-hub-navigation {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #fff;
  background:
    radial-gradient(circle at 84% 0%, rgba(132, 151, 255, .5), transparent 28%),
    linear-gradient(100deg, #29328f 0%, #3b43c4 48%, #7284f6 100%);
}

.customer-hub-activity .customer-hub-workboard {
  border: 0;
  border-top: 1px solid rgba(95, 119, 206, .16);
  background: rgba(255,255,255,.76);
}

.customer-hub-activity .customer-hub-projects {
  background: rgba(255,255,255,.72);
}

.customer-hub-activity .customer-hub-documents {
  background: rgba(244, 248, 255, .72);
}

.customer-hub-activity .customer-hub-section-head .section-kicker {
  display: none;
}

.customer-hub-activity .customer-hub-section-head h3 {
  margin-top: 0;
}

.customer-hub-empty {
  display: grid;
  gap: 8px;
  min-height: 230px;
  align-content: center;
  padding: 26px;
  border-radius: 26px;
}

.customer-hub-empty h3,
.customer-hub-empty p {
  margin: 0;
}

.customer-hub-empty p {
  color: #61718c;
}

.customer-hub-hero {
  display: grid;
  gap: 9px;
  padding: clamp(12px, 1.25vw, 15px) clamp(14px, 1.6vw, 18px);
  border-radius: 22px;
  border-color: rgba(190, 204, 232, .72);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: none;
}

.customer-hub-hero-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.customer-hub-identity h2 {
  margin: 2px 0 5px;
  color: #10203d;
  font-size: clamp(1.34rem, 1.8vw, 1.68rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.customer-hub-code {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #51627e;
  background: #f0f4fb;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-hub-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: start;
  padding-top: 9px;
  border-top: 1px solid rgba(199, 213, 238, .6);
}

.customer-hub-contact > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: min(215px, 100%);
}

.customer-hub-contact span {
  color: #62728d;
  font-size: .63rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-hub-contact strong {
  color: #172744;
  font-size: .82rem;
  line-height: 1.35;
}

.customer-hub-contact small {
  color: #657590;
  font-size: .73rem;
}

.customer-hub-command {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
}

.customer-hub-workboard {
  border: 1px solid rgba(195, 209, 235, .82);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: none;
}

.customer-hub-navigation {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 214, 234, .7);
  color: #172744;
  background: rgba(255,255,255,.88);
  box-shadow: none;
}

.customer-hub-navigation::before {
  display: none;
}

.customer-hub-navigation > * {
  position: relative;
  z-index: 1;
}

.customer-hub-navigation .section-kicker {
  color: #667792;
}

.customer-hub-activity .customer-hub-navigation .section-kicker {
  color: rgba(255,255,255,.76);
}

.customer-hub-command h3 {
  margin: 5px 0 0;
  color: #142442;
  font-size: .94rem;
  line-height: 1.3;
}

.customer-hub-navigation h3 {
  color: #122342;
}

.customer-hub-activity .customer-hub-navigation h3 {
  color: #fff;
}

.customer-hub-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.customer-hub-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  min-width: 150px;
  padding: 0 15px;
  border: 1px solid rgba(41, 71, 213, .27);
  border-radius: 999px;
  color: #2036ad;
  background: rgba(244, 248, 255, .95);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.customer-hub-action:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 71, 213, .45);
  background: #fff;
  box-shadow: 0 9px 19px rgba(18, 32, 67, .07);
}

.customer-hub-action strong {
  font-size: .86rem;
  font-weight: 900;
}

.customer-hub-action-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #2947d5;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.customer-hub-action.is-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2947d5, #617ff0);
}

.customer-hub-action.is-primary .customer-hub-action-icon {
  color: #2947d5;
  background: #fff;
}

.customer-hub-navigation .customer-hub-action {
  border-color: transparent;
  color: #16246d;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 30, 83, .12);
}

.customer-hub-navigation .customer-hub-action:hover {
  background: #fff;
  box-shadow: 0 13px 24px rgba(18, 30, 83, .16);
}

.customer-hub-navigation .customer-hub-action.is-primary {
  color: #16246d;
  background: #fff;
}

.customer-hub-navigation .customer-hub-action-icon {
  color: #fff;
  background: #5968ed;
}

.customer-hub-navigation .customer-hub-action.is-primary .customer-hub-action-icon {
  color: #fff;
  background: #5968ed;
}

.customer-hub-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.customer-hub-projects,
.customer-hub-documents {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 20px 20px;
  min-width: 0;
}

.customer-hub-documents {
  border-left: 1px solid rgba(113, 133, 171, .18);
  background: rgba(248, 250, 253, .58);
}

.customer-hub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(113, 133, 171, .18);
}

.customer-hub-section-head h3 {
  margin: 5px 0 0;
  color: #10203d;
  font-size: 1.1rem;
}

.customer-hub-section-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
}

.customer-hub-section-counts strong {
  border-radius: 999px;
  padding: 5px 9px;
  color: #41516c;
  background: #f2f5fa;
  font-size: .75rem;
}

.customer-hub-records {
  display: grid;
  gap: 8px;
}

.customer-hub-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(202, 215, 239, .74);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 34, 72, .04);
}

.customer-hub-record-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.customer-hub-record-copy > strong {
  overflow: hidden;
  color: #122342;
  font-size: .94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-hub-record-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.customer-hub-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  color: #51627e;
  background: #f2f5fa;
  font-size: .68rem;
  font-weight: 850;
}

.customer-hub-status.is-complete {
  color: #166543;
  background: #e7f7ef;
}

.customer-hub-record-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
}

.customer-hub-record-actions a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: #2947d5;
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
}

.customer-hub-record-actions a.is-secondary {
  border: 1px solid rgba(41, 71, 213, .2);
  color: #2036ad;
  background: #fff;
}

.customer-hub-document-lane {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.customer-hub-document-lane + .customer-hub-document-lane {
  margin-top: 0;
  border-top: 1px solid rgba(181, 196, 224, .42);
}

.customer-hub-document-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-hub-document-lane h4 {
  margin: 0;
  color: #172744;
  font-size: .88rem;
}

.customer-hub-document-lane header strong {
  color: #51627e;
  font-size: .82rem;
}

.customer-hub-document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(218, 226, 241, .72);
  border-radius: 13px;
  color: #172744;
  background: #fbfcff;
  text-decoration: none;
}

.customer-hub-document > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-hub-document small {
  overflow: hidden;
  color: #64738d;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-hub-document b {
  color: #2036ad;
  font-size: .7rem;
  text-transform: uppercase;
}

.customer-hub-placeholder {
  margin: 0;
  padding: 10px 11px;
  border-radius: 13px;
  color: #6e7d94;
  background: rgba(244, 247, 252, .86);
  font-size: .8rem;
}

.project-command-toolbar.project-command-overview {
  grid-template-columns: minmax(0, 1fr);
  min-height: 74px;
  padding: 14px 16px;
}

.project-command-adminbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(202, 215, 239, .74);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}

.project-command-adminbar .project-back-link {
  min-height: 38px;
  border-radius: 12px;
  gap: 7px;
  padding-inline: 13px;
  color: #203253;
  background: #fff;
}

.project-command-adminbar .project-back-link strong {
  font-size: .86rem;
}

.project-command-admincopy {
  display: grid;
  gap: 2px;
  color: #213452;
}

.project-command-admincopy strong {
  font-size: .8rem;
}

.project-command-admincopy span {
  color: #657590;
  font-size: .73rem;
}

.project-command-adminbar .project-command-tools {
  grid-column: auto;
  grid-row: auto;
  justify-self: end;
}

.project-command-adminbar .project-open-controlbar {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 24;
  display: grid;
  gap: 12px;
  width: min(560px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(191, 208, 237, .92);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(21, 37, 77, .16);
}

.project-command-adminbar .project-rollback-form {
  display: grid;
  grid-template-columns: minmax(178px, 220px) auto;
  gap: 7px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(202, 215, 239, .72);
  border-radius: 13px;
  background: #f7faff;
}

.project-command-adminbar .project-rollback-select {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-command-adminbar .project-rollback-select > span {
  color: #657692;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-command-adminbar .project-rollback-select select {
  min-height: 34px;
  border-radius: 10px;
  font-size: .84rem;
}

.project-command-adminbar .project-archive-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

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

.project-command-adminbar .project-delete-btn {
  color: #863245;
  border-color: rgba(166, 67, 84, .22);
}

body > .project-commerce-modal {
  padding: clamp(12px, 2vw, 24px);
}

body > .project-commerce-modal .project-commerce-dialog {
  width: min(1560px, calc(100vw - clamp(24px, 4vw, 48px)));
  height: min(960px, calc(100dvh - clamp(24px, 4vw, 48px)));
}

@media (max-width: 1180px) {
  .dashboard-focus--office {
    grid-template-columns: 1fr;
  }

  .dashboard-focus--office > .dashboard-project-stage,
  .dashboard-office-launchpad {
    grid-column: 1;
    grid-row: auto;
  }

  .customer-hub-shell,
  .customer-hub-workspace {
    grid-template-columns: 1fr;
  }

  .customer-hub-shell.has-selected-customer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-hub-shell.has-selected-customer .customer-hub-detail {
    padding-left: 0;
    border-left: 0;
  }

  .customer-hub-activity {
    padding: 0;
    border-radius: 26px;
  }

  .customer-hub-documents {
    border-top: 1px solid rgba(113, 133, 171, .18);
    border-left: 0;
  }

  .customer-hub-directory {
    position: static;
  }

  .customer-hub-list {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }

  .customer-hub-customer {
    flex: 0 0 min(248px, calc(100vw - 50px));
  }

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

  .project-command-adminbar .project-rollback-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 860px) {
  .dashboard-office-head {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
  }

  .dashboard-office-metrics {
    flex-basis: auto;
  }

  .customer-hub-hero-head {
    flex-direction: column;
  }

  .customer-hub-contact {
    flex-direction: column;
    gap: 11px;
  }

  .customer-hub-actions {
    justify-content: flex-start;
  }

  .customer-hub-activity {
    padding: 0;
    border-radius: 23px;
  }

  .customer-hub-action {
    flex: 1 1 100%;
  }

  .customer-hub-record {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-hub-record-copy > strong,
  .customer-hub-document small {
    white-space: normal;
  }

  .customer-hub-record-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-command-adminbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px;
  }

  .project-command-adminbar .project-back-link {
    width: 100%;
    justify-content: center;
  }

  .project-command-adminbar .project-command-tools,
  .project-command-adminbar .project-command-tools[open] {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .project-command-adminbar .project-command-tools-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .project-command-adminbar .project-open-controlbar {
    position: static;
    width: 100%;
    margin-top: 9px;
  }

  .project-command-adminbar .project-delete-btn,
  .project-command-adminbar .project-archive-form {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .project-command-toolbar.project-command-overview {
    grid-template-columns: 1fr;
  }

  .project-command-adminbar .project-rollback-form {
    grid-template-columns: 1fr;
  }
}

/* Projektstart und Mitarbeiterzeiten: lokale UX-Nacharbeit */
.project-intake-thread {
  display: grid;
  scroll-margin-top: 96px;
  gap: 8px;
}

.project-intake-thread-row {
  display: grid;
  grid-template-columns: 34px minmax(9rem, .28fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(205, 217, 239, .86);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
}

.project-intake-thread-row:last-child {
  border-bottom: 1px solid rgba(205, 217, 239, .86);
}

.project-intake-thread-row.is-current {
  background: linear-gradient(90deg, rgba(239,243,255,.96), rgba(255,255,255,.94));
}

.project-intake-thread-row.is-ready .project-intake-thread-no {
  background: rgba(45, 152, 95, .14);
  color: #12643b;
}

.project-intake-thread-no {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(41, 71, 213, .1);
  color: #273fb5;
  font-size: .72rem;
  font-weight: 950;
}

.project-intake-thread-row > strong {
  color: #10203d;
  font-size: .92rem;
  line-height: 1.1;
}

.project-intake-thread-row > small,
.project-intake-thread-row > a {
  color: #61708e;
  font-size: .78rem;
  font-weight: 800;
}

.project-intake-thread-row > a {
  text-decoration: none;
}

.project-intake-thread-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.project-intake-upload-compact {
  position: relative;
}

.project-intake-upload-compact > summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #b8c3dc;
  border-radius: 999px;
  background: #fff;
  color: #11182f;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 900;
  list-style: none;
}

.project-intake-upload-compact > summary::-webkit-details-marker {
  display: none;
}

.project-intake-upload-compact[open] > summary {
  border-color: rgba(41, 71, 213, .55);
  color: #243dbd;
}

.project-intake-upload-compact .project-intake-offer-upload {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  width: min(32rem, 82vw);
  padding: 10px;
  border: 1px solid rgba(190, 204, 232, .95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(22, 36, 75, .14);
}

.project-intake-offer-upload--inline {
  display: flex;
  min-width: min(100%, 30rem);
  align-items: center;
  gap: 7px;
}

.project-intake-offer-upload--inline input[type="file"] {
  width: auto;
  max-width: 15rem;
}

.project-protocol-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-protocol-template-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(198, 211, 237, .86);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 80, 216, .1), transparent 34%),
    linear-gradient(180deg, rgba(249,251,255,.98), rgba(241,246,255,.94));
}

.project-protocol-template-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-protocol-template-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.project-protocol-template-head strong {
  color: #132342;
  overflow-wrap: anywhere;
}

.project-protocol-template-head small {
  color: #63718d;
  font-weight: 700;
  line-height: 1.35;
}

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

.project-protocol-template-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(203, 215, 238, .88);
  border-radius: 16px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 10px 24px rgba(18, 34, 78, .052);
}

.project-protocol-template-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.project-protocol-template-card strong {
  color: #142543;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.project-protocol-template-card small {
  color: #63718d;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
}

.btn.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: .78rem;
}

.project-protocol-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(211, 221, 239, .82);
}

.project-protocol-edit-form[hidden] {
  display: none;
}

.project-protocol-edit-form textarea {
  min-height: 145px;
}

.project-intake-subwizard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(190, 204, 232, .82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .1), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
  box-shadow: 0 14px 32px rgba(18, 34, 78, .07);
}

.project-intake-decision {
  scroll-margin-top: 96px;
  padding: 16px;
  border-color: rgba(86, 107, 229, .34);
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 98, 232, .18), transparent 34%),
    linear-gradient(135deg, rgba(248,250,255,.98), rgba(238,244,255,.94));
  box-shadow: 0 18px 42px rgba(22, 37, 88, .1);
}

.project-intake-subwizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(205, 216, 236, .76);
}

.project-intake-subwizard-head > div {
  display: grid;
  gap: 3px;
}

.project-intake-subwizard-head strong {
  color: #10203d;
  font-size: 1.05rem;
}

.project-intake-subwizard-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(41, 71, 213, .08);
  color: #2036ad;
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-intake-flowline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-intake-flowline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(199, 211, 235, .86);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #5b6985;
  font-size: .77rem;
  font-weight: 950;
  text-align: center;
}

.project-intake-flowline span.is-current {
  border-color: rgba(41, 71, 213, .5);
  background: linear-gradient(135deg, #4658dd, #6476f0);
  color: #fff;
  box-shadow: 0 12px 24px rgba(41, 71, 213, .18);
}

.project-intake-flowline span.is-ready {
  border-color: rgba(45, 152, 95, .32);
  background: rgba(223, 246, 234, .88);
  color: #12643b;
}

.project-intake-substeps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-intake-substep {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(204, 215, 235, .86);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.project-intake-substep > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(96, 115, 150, .12);
  color: #41506d;
  font-size: .72rem;
  font-weight: 950;
}

.project-intake-substep.is-ready > span {
  background: rgba(45, 152, 95, .14);
  color: #157144;
}

.project-intake-substep strong {
  color: #111f3d;
  font-size: .98rem;
}

.project-intake-substep p {
  margin: 0;
  color: #61708e;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
}

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

.project-intake-choice {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(196, 209, 234, .9);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(17, 32, 75, .07);
}

.project-intake-choice--protocol {
  border-color: rgba(41, 71, 213, .34);
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .12), transparent 38%),
    rgba(255,255,255,.94);
}

.project-intake-choice--offer {
  border-color: rgba(45, 152, 95, .22);
}

.project-intake-choice--offer.is-ready {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 152, 95, .13), transparent 38%),
    rgba(255,255,255,.94);
}

.project-intake-choice-top {
  display: grid;
  gap: 5px;
}

.project-intake-choice-top > span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(41, 71, 213, .09);
  color: #283fb8;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-intake-choice-top strong {
  color: #0f1d39;
  font-size: 1.03rem;
}

.project-intake-choice p {
  margin: 0;
  color: #53627f;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.45;
}

.project-intake-choice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-intake-mini-actions {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.project-intake-offer-upload {
  display: grid;
  gap: 7px;
}

.project-intake-offer-upload--inline {
  display: flex;
  min-width: min(100%, 30rem);
  align-items: center;
  gap: 7px;
}

.project-intake-offer-upload--inline input[type="file"] {
  width: auto;
  max-width: 15rem;
  font-size: .76rem;
}

.project-intake-offer-upload--inline input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 7px;
  padding: 0 10px;
  border: 1px solid rgba(186, 199, 226, .95);
  border-radius: 10px;
  background: #fff;
  color: #17264b;
  font-weight: 850;
}

.project-intake-offer-upload input[type="file"] {
  min-width: 0;
  width: 100%;
  font-size: .78rem;
}

.project-intake-offer-upload--inline input[type="file"] {
  width: auto;
  max-width: 15rem;
  font-size: .76rem;
}

.project-flow-mail-form--guided {
  grid-template-columns: minmax(0, 1fr);
  scroll-margin-top: 96px;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(195, 209, 234, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(19, 35, 78, .055);
}

.project-flow-mail-form--guided > * {
  grid-column: 1 / -1;
}

.project-flow-mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(205, 216, 236, .82);
}

.project-flow-mail-head > div {
  display: grid;
  gap: 3px;
}

.project-flow-mail-head strong {
  color: #10203d;
  font-size: 1.05rem;
}

.project-flow-mail-head--compact {
  padding-bottom: 8px;
}

.project-flow-mail-head--compact strong {
  font-size: .98rem;
}

.project-mail-mode-strip {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(203, 215, 238, .82);
  border-radius: 14px;
  background: rgba(246, 249, 254, .9);
}

.project-mail-mode-strip > span:first-child,
.project-mail-offer-select > span {
  color: #687693;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-mail-mode-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(190, 203, 230, .9);
  border-radius: 999px;
  background: #fff;
  color: #17264b;
  cursor: pointer;
}

.project-mail-mode-pill input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #4051d6;
}

.project-mail-mode-pill:has(input[type="radio"]:checked) {
  border-color: rgba(41, 71, 213, .62);
  background: linear-gradient(135deg, #4051d6, #6171ec);
  color: #fff;
  box-shadow: 0 10px 20px rgba(41, 71, 213, .16);
}

.project-mail-mode-pill strong {
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
}

.project-mail-mode-disabled {
  color: #6c7892;
  font-size: .78rem;
  font-weight: 850;
}

.project-mail-offer-select {
  display: inline-flex;
  min-width: min(100%, 22rem);
  align-items: center;
  gap: 7px;
}

.project-mail-offer-select select {
  min-height: 36px;
}

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

.project-mail-mode-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 118px;
  padding: 14px 14px 14px 46px;
  border: 1px solid rgba(196, 209, 234, .9);
  border-radius: 19px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 24px rgba(17, 32, 75, .06);
  cursor: pointer;
}

.project-mail-mode-card input[type="radio"] {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 18px;
  height: 18px;
  accent-color: #4051d6;
}

.project-mail-mode-card:has(input[type="radio"]:checked) {
  border-color: rgba(41, 71, 213, .58);
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .14), transparent 34%),
    rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(41, 71, 213, .14);
}

.project-mail-mode-card--disabled {
  padding-left: 14px;
  cursor: not-allowed;
  opacity: .72;
}

.project-mail-mode-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.project-mail-mode-title {
  color: #0f1d39;
  font-size: .96rem;
  font-weight: 950;
}

.project-mail-mode-copy {
  color: #5c6a86;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
}

.project-mail-mode-status {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(41, 71, 213, .08);
  color: #283fb8;
  font-size: .7rem;
  font-weight: 950;
}

.project-mail-mode-select {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
}

.project-mail-mode-select > span {
  color: #687693;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.project-mail-fields-grid .project-flow-field--subject,
.project-mail-fields-grid .project-flow-field--message {
  grid-column: 1 / -1;
}

.project-mail-action-bar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(196, 209, 234, .86);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,254,.95));
  box-shadow: 0 14px 28px rgba(17, 32, 75, .08);
}

.project-mail-action-bar .btn {
  min-width: min(100%, 240px);
}

.project-mini-wizard {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(191, 205, 234, .88);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 77, 216, .1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,253,.96));
  box-shadow:
    0 18px 42px rgba(18, 34, 78, .08),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.project-mini-wizard--create {
  padding: 16px;
}

.project-mini-wizard--single {
  gap: 0;
}

.project-create-single-step {
  border-color: rgba(202, 214, 237, .7);
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 91, 224, .08), transparent 32%),
    rgba(255,255,255,.94);
}

.project-create-single-final {
  margin-top: 2px;
}

.project-mini-wizard--intake {
  scroll-margin-top: 96px;
}

.project-stage-panel--intake .project-mini-wizard--intake {
  gap: 18px;
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 82, 217, .14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,247,255,.97));
}

.project-stage-panel--intake .project-mini-stepper {
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
}

.project-stage-panel--intake .project-mini-step {
  min-height: 58px;
  border-radius: 17px;
}

.project-stage-panel--intake .project-mini-panel {
  gap: 16px;
  padding: clamp(16px, 1.5vw, 20px);
  border-radius: 24px;
}

.project-stage-panel--intake .project-mini-panel-head h4 {
  font-size: clamp(1.12rem, 1.3vw, 1.28rem);
}

.project-stage-panel--intake .project-mini-grid {
  gap: 14px;
}

.project-stage-panel--intake .project-mini-card {
  padding: 16px;
  border-radius: 20px;
}

.project-mini-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(205, 216, 238, .78);
  border-radius: 18px;
  background: rgba(236, 242, 255, .72);
}

.project-mini-step {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(191, 204, 232, .86);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: #1a2746;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(18, 34, 78, .045);
}

.project-mini-step span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(72, 91, 218, .1);
  color: #3348c9;
  font-size: .72rem;
}

.project-mini-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-mini-step.is-active {
  border-color: rgba(53, 72, 209, .62);
  background: linear-gradient(135deg, #384bd1, #6373ef);
  color: #fff;
  box-shadow: 0 14px 28px rgba(41, 71, 213, .2);
}

.project-mini-step.is-active span {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.project-mini-panel {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(202, 214, 237, .82);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
}

.project-mini-panel[hidden] {
  display: none;
}

.project-mini-panel-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(210, 220, 239, .76);
}

.project-mini-panel-head > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.project-mini-panel-head h4 {
  margin: 0;
  color: #10203d;
  font-size: 1.04rem;
}

.project-mini-head-actions,
.project-mini-action-row,
.project-mini-send-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.project-mini-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-mini-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(203, 215, 238, .88);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 72, 190, .06), transparent 38%),
    rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(18, 34, 78, .052);
}

.project-mini-card > span,
.project-mini-card > .section-kicker {
  color: #65748f;
  font-size: .69rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-mini-card strong {
  min-width: 0;
  color: #101f3d;
  font-size: .98rem;
  overflow-wrap: anywhere;
}

.project-mini-card small,
.project-mini-card p {
  margin: 0;
  color: #5e6d89;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.project-mini-card--protocol {
  border-color: rgba(56, 77, 216, .28);
}

.project-mini-card--offer {
  border-color: rgba(45, 152, 95, .26);
}

.project-linked-offer-list {
  display: grid;
  gap: 8px;
}

.project-linked-offer-list--stage {
  margin-bottom: 12px;
}

.project-linked-offer-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 211, 238, .86);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,251,255,.94));
}

.project-linked-offer-row.is-project-offer {
  border-color: rgba(69, 86, 221, .42);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 93, 229, .12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,255,.96));
}

.project-linked-offer-pick {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(191, 203, 232, .9);
  border-radius: 999px;
  background: #fff;
  color: #18264a;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.project-linked-offer-pick input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: #4051d6;
}

.project-linked-offer-pick:has(input[type="radio"]:checked) {
  border-color: rgba(41, 71, 213, .58);
  background: linear-gradient(135deg, #4051d6, #6171ec);
  color: #fff;
  box-shadow: 0 8px 16px rgba(41, 71, 213, .16);
}

.project-linked-offer-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.project-linked-offer-row strong,
.project-linked-offer-row small {
  overflow-wrap: anywhere;
}

.project-linked-offer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.project-billing-from-offers {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(41, 71, 213, .16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(41, 71, 213, .08), transparent 34%),
    rgba(255,255,255,.78);
}

.project-invoice-rollup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(45, 152, 95, .22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 152, 95, .11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,250,248,.95));
}

.project-invoice-rollup h4,
.project-invoice-rollup p {
  margin: 0;
}

.project-invoice-rollup p {
  color: #5f6d86;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
}

.project-invoice-rollup-stats,
.project-linked-invoice-amounts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.project-invoice-rollup-stats span,
.project-linked-invoice-amounts span {
  display: grid;
  min-width: 92px;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid rgba(196, 211, 238, .72);
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  text-align: right;
}

.project-invoice-rollup-stats b,
.project-linked-invoice-amounts b {
  color: #112142;
  font-size: .86rem;
}

.project-invoice-rollup-stats small,
.project-linked-invoice-amounts small {
  color: #6b7890;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-linked-invoice-list {
  padding: 12px;
  border: 1px solid rgba(196, 211, 238, .72);
  border-radius: 20px;
  background: rgba(247,250,255,.64);
}

.project-linked-invoice-row {
  align-items: stretch;
}

.project-linked-invoice-row.is-muted {
  opacity: .72;
}

.project-billing-from-offers-head,
.project-billing-offer-row,
.project-billing-offer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-billing-from-offers-head {
  justify-content: space-between;
}

.project-billing-from-offers-head h4 {
  margin: 0;
}

.project-billing-offer-list {
  display: grid;
  gap: 8px;
}

.project-billing-offer-row {
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}

.project-billing-offer-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-billing-offer-row strong,
.project-billing-offer-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-billing-offer-row small {
  color: var(--muted);
}

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

.project-billing-offer-actions form {
  margin: 0;
}

@media (max-width: 860px) {
  .project-invoice-rollup {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-invoice-rollup-stats,
  .project-linked-invoice-amounts {
    justify-content: flex-start;
  }

  .project-linked-invoice-row {
    align-items: flex-start;
  }
}

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

.is-embedded-document .live-document-side {
  display: none;
}

.is-embedded-document .live-document-focus-strip {
  position: sticky;
  top: 0;
  z-index: 4;
}

.is-embedded-document .live-document-inspector {
  max-width: 220px;
}

.live-document-save-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(226, 235, 255, .72);
  color: #51627f;
  font-size: .78rem;
  font-weight: 800;
}

.project-mini-full-field {
  display: grid;
  gap: 6px;
}

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

.project-mini-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(197, 210, 235, .9);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(18, 34, 78, .045);
}

.project-mini-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #4051d6;
}

.project-mini-option span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.project-mini-option strong {
  color: #122141;
  font-size: .93rem;
  overflow-wrap: anywhere;
}

.project-mini-option small {
  color: #64738f;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.35;
}

.project-mini-option.is-selected {
  border-color: rgba(61, 80, 216, .55);
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 80, 216, .12), transparent 36%),
    rgba(255,255,255,.98);
  box-shadow: 0 14px 28px rgba(41, 71, 213, .12);
}

.project-mini-final {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(62, 81, 214, .26);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 87, 225, .16), transparent 34%),
    linear-gradient(135deg, rgba(248,250,255,.98), rgba(238,243,255,.96));
}

.project-mini-final > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.project-mini-final strong {
  color: #10203d;
}

.project-mini-final p {
  margin: 0;
  color: #5d6b87;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.4;
}

.project-mini-mail-card {
  box-shadow: none;
}

.project-mini-mail-card .project-flow-field--message textarea {
  min-height: 118px;
}

.project-mini-mail-card .button-row {
  margin-top: 0;
}

.commerce-send-shortcut {
  scroll-margin-top: 24px;
}

#offer-send-panel,
#invoice-send-panel {
  scroll-margin-top: 24px;
}

.team-report-fastlane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.team-report-fastfact {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(197, 209, 233, .82);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .08), transparent 34%),
    rgba(255,255,255,.9);
  box-shadow: 0 10px 22px rgba(19, 34, 72, .055);
}

.team-report-fastfact span {
  overflow: hidden;
  color: #697995;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-report-fastfact strong {
  overflow: hidden;
  color: #132345;
  font-size: 1.02rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-report-fastfact small {
  overflow: hidden;
  color: #61708e;
  font-size: .76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attendance-page--v121 .team-times-commandbar {
  grid-template-columns: minmax(18rem, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border-color: rgba(187, 202, 231, .82);
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 71, 213, .08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,252,.96));
  box-shadow:
    0 14px 28px rgba(19, 34, 72, .07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.team-times-control-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.team-attendance-page--v121 .team-times-commandbar .time-history-tabs {
  flex: 0 0 auto;
  background: rgba(235, 241, 255, .72);
}

.team-attendance-page--v121 .team-times-commandbar .team-attendance-range-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.team-attendance-page--v121 .team-times-commandbar .team-attendance-range-copy span {
  overflow: hidden;
  color: #6a7894;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-times-summary-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  align-items: stretch;
}

.team-times-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(200, 213, 238, .78);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
}

.team-times-metric strong {
  color: #17264b;
  font-size: .96rem;
  font-weight: 950;
  line-height: 1;
}

.team-times-metric small {
  overflow: hidden;
  color: #5f6f90;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form {
  align-self: stretch;
  justify-content: flex-end;
  padding: 0;
}

.team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-btn,
.team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form input[type="date"],
.team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form input[type="week"],
.team-attendance-page--v121 .team-times-commandbar .btn.btn-primary {
  min-height: 36px;
}

.team-attendance-page--v121 .team-times-day-list {
  gap: 6px;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-board-head {
  grid-template-columns: minmax(15rem, .34fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 8px;
}

.team-attendance-page--v121 .team-times-list-track-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.team-attendance-page--v121 .team-times-list-track-head span {
  text-align: left;
}

.team-attendance-page--v121 .team-times-day-list .team-worklist-row {
  grid-template-columns: minmax(15rem, .34fr) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 211, 235, .76);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(21, 35, 70, .055);
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-person-card,
.team-attendance-page--v121 .team-times-day-list .team-worklist-track {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-person-card {
  min-height: 54px;
  padding: 9px 10px;
  border-right: 1px solid rgba(208, 219, 240, .76);
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-avatar {
  width: 32px;
  height: 32px;
}

.team-attendance-page--v121 .team-times-day-list .team-worklist-track {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 8px;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-now-line {
  display: none;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-empty {
  min-height: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed rgba(192, 206, 235, .88);
  border-radius: 12px;
  background: rgba(247, 249, 253, .92);
  color: #63728f;
  font-size: .78rem;
  font-weight: 750;
  text-align: left;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-bar {
  position: static;
  top: auto;
  left: auto;
  width: auto !important;
  min-width: 8.5rem;
  max-width: 100%;
  min-height: 32px;
  flex: 0 1 auto;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: none;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-bar strong,
.team-attendance-page--v121 .team-times-day-list .team-attendance-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-bar strong {
  font-size: .74rem;
}

.team-attendance-page--v121 .team-times-day-list .team-attendance-bar span {
  font-size: .65rem;
}

.team-attendance-page--v121 .team-times-week-list {
  gap: 7px;
}

.team-attendance-page--v121 .team-times-week-list .team-attendance-row--week {
  min-height: 0;
}

.team-attendance-page--v121 .team-times-week-list .team-attendance-person-card,
.team-attendance-page--v121 .team-times-week-list .team-attendance-week-grid {
  box-shadow: 0 10px 22px rgba(21, 35, 70, .055);
}

.team-attendance-page--v121 .team-times-week-list .team-attendance-week-cell {
  min-height: 50px;
  padding: 7px 8px;
}

@media (max-width: 1180px) {
  .team-attendance-page--v121 .team-times-commandbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-attendance-page--v121 .team-times-summary-strip {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: start;
  }

  .team-attendance-page--v121 .team-times-commandbar .btn.btn-primary {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 900px) {
  .project-mini-grid,
  .project-mini-grid--four,
  .project-mini-choice-grid,
  .project-mini-send-grid,
  .project-protocol-template-grid,
  .project-intake-substeps,
  .project-intake-choice-grid,
  .project-mail-mode-grid,
  .project-mail-fields-grid,
  .project-mail-action-bar,
  .team-report-fastlane {
    grid-template-columns: 1fr;
  }

  .project-mini-panel-head,
  .project-mini-final,
  .project-intake-subwizard-head,
  .project-flow-mail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-mini-final .btn {
    width: 100%;
  }

  .project-create-dialog {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 28px);
  }

  .project-stage-panel--intake .project-mini-wizard--intake {
    padding: 16px;
    border-radius: 24px;
  }

  .project-protocol-template-head,
  .project-protocol-template-card {
    align-items: flex-start;
  }

  .project-intake-flowline {
    grid-template-columns: 1fr;
  }

  .project-intake-thread-row {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
  }

  .project-intake-thread-row > small,
  .project-intake-thread-row > a,
  .project-intake-thread-actions {
    grid-column: 2;
  }

  .project-intake-offer-upload--inline,
  .project-mail-offer-select {
    width: 100%;
  }

  .project-intake-offer-upload--inline input[type="file"] {
    max-width: none;
    flex: 1 1 12rem;
  }

  .team-attendance-page--v121 .team-times-commandbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-times-control-main {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
  }

  .team-attendance-page--v121 .team-times-summary-strip {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .team-times-summary-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    justify-content: stretch;
  }

  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form input[type="date"],
  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form input[type="week"] {
    width: 100%;
  }

  .team-attendance-page--v121 .team-times-commandbar .btn.btn-primary {
    grid-column: 2;
    grid-row: auto;
    width: auto;
  }

  .team-attendance-page--v121 .team-times-day-list .team-attendance-board-head {
    display: none;
  }

  .team-attendance-page--v121 .team-times-day-list .team-worklist-row {
    grid-template-columns: 1fr;
  }

  .team-attendance-page--v121 .team-times-day-list .team-attendance-person-card {
    border-right: 0;
    border-bottom: 1px solid rgba(208, 219, 240, .76);
  }
}

@media (max-width: 640px) {
  .project-create-panel {
    padding: 10px;
  }

  .project-create-dialog {
    max-height: calc(100dvh - 20px);
    padding: 14px;
    border-radius: 22px;
  }

  .project-mini-wizard {
    padding: 10px;
    border-radius: 18px;
  }

  .project-mini-stepper {
    grid-template-columns: 1fr;
  }

  .project-mini-panel {
    padding: 11px;
    border-radius: 16px;
  }

  .project-stage-panel--intake .project-mini-wizard--intake,
  .project-stage-panel--intake .project-mini-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .project-protocol-template-card {
    grid-template-columns: 1fr;
  }

  .project-mini-head-actions,
  .project-mini-action-row,
  .project-mini-send-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .project-mini-head-actions .btn,
  .project-mini-action-row .btn,
  .project-mini-send-actions .btn {
    width: 100%;
  }

  .team-attendance-page--v121 .team-times-commandbar {
    grid-template-columns: 1fr;
  }

  .team-times-control-main {
    align-items: stretch;
    flex-direction: column;
  }

  .team-attendance-page--v121 .team-times-summary-strip,
  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form,
  .team-attendance-page--v121 .team-times-commandbar .btn.btn-primary {
    grid-column: auto;
    grid-row: auto;
  }

  .team-times-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-attendance-page--v121 .team-times-commandbar .time-history-tabs {
    width: 100%;
  }

  .team-attendance-page--v121 .team-times-commandbar .time-history-tab {
    flex: 1 1 0;
  }

  .team-attendance-page--v121 .team-times-commandbar .btn.btn-primary {
    width: 100%;
  }

  .team-attendance-page--v121 .team-times-day-list .team-attendance-bar {
    width: 100% !important;
  }

  .project-intake-offer-upload--inline,
  .project-mail-mode-strip,
  .project-mail-offer-select {
    align-items: stretch;
    flex-direction: column;
  }

  .project-intake-offer-upload--inline .btn,
  .project-mail-mode-pill,
  .project-mail-offer-select select {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.page-team.app-shell,
  body.page-team .app-main,
  body.page-team .app-main-shell,
  body.page-team .app-topbar-shell,
  body.page-team .content-shell,
  body.page-team .team-attendance-page--v121 {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }

  body.page-team .app-topbar-shell,
  body.page-team .topbar-copy,
  body.page-team .topbar-title-row,
  body.page-team .topbar-actions,
  body.page-team .topbar-actions form,
  body.page-team .topbar-actions .user-pill,
  body.page-team .mobile-topbar-nav-trigger,
  body.page-team .topbar-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.page-team .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-team .portal-context-chip--inline,
  body.page-team .environment-context-chip {
    min-width: 0;
    max-width: 100%;
  }

  body.page-team .content-shell {
    overflow-x: clip;
  }

  .team-attendance-page--v121 .team-hub-nav-shell--compact {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .team-attendance-page--v121 .team-hub-tab-nav {
    width: max-content;
    max-width: none;
  }

  .team-attendance-page--v121 .team-attendance-times-shell,
  .team-attendance-page--v121 .team-times-commandbar,
  .team-attendance-page--v121 .team-times-commandbar .team-attendance-nav-form,
  .team-times-control-main,
  .team-times-summary-strip,
  .team-hub-panel--workflow,
  .team-hub-panel--workflow .report-hero,
  .team-hub-panel--workflow .report-summary-strip,
  .team-hub-panel--workflow .absence-summary-strip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* v2.0 density pass: shared compact workspaces */
@media (min-width: 1181px) {
  :root {
    --sidebar-w: 232px;
  }

  .sidebar {
    padding: 14px 14px 20px;
  }

  .sidebar-brand {
    padding: 12px;
    border-radius: 20px;
  }

  .sidebar-brand img {
    width: 74px;
  }

  .sidebar-nav-shell {
    gap: 16px;
    margin-top: 14px;
  }

  .nav-group.sidebar-section + .nav-group.sidebar-section {
    padding-top: 14px;
  }

  .sidebar-link-stack a,
  .nav-group-toggle--sidebar {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 13px;
    font-size: .9rem;
  }
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px 8px;
    gap: 8px;
  }

  .topbar-title-row h1 {
    font-size: clamp(1.08rem, 4.8vw, 1.42rem);
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(104px, auto);
    gap: 8px;
    align-items: center;
  }

  body.page-team .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) minmax(104px, auto);
  }

  .topbar-actions .user-pill {
    grid-column: auto;
  }

  .user-pill {
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 14px;
  }

  .user-pill-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: .82rem;
  }

  .user-pill-copy strong {
    overflow: hidden;
    max-width: 18ch;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
  }

  .user-pill-copy span {
    display: none;
  }

  .mobile-topbar-nav-trigger,
  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 40px;
    border-radius: 13px;
    padding-inline: 12px;
  }

  body.mobile-nav-ready .content-shell {
    padding-top: 10px;
  }
}

@media (max-width: 540px) {
  .topbar-actions {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  }

  body.page-team .topbar-actions {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  }

  .topbar-actions .user-pill {
    justify-content: center;
    padding: 0;
  }

  .topbar-actions .user-pill-copy {
    display: none;
  }
}

.customer-hub-selected-pill {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.customer-hub-selected-pill > div {
  min-width: 0;
}

.customer-hub-switch-toggle {
  display: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(41, 71, 213, .22);
  border-radius: 999px;
  background: #fff;
  color: #2036ad;
  cursor: pointer;
  font: inherit;
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .customer-hub-switch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .customer-hub-list {
    display: grid;
    max-height: min(44dvh, 430px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
  }

  .customer-hub-customer {
    flex: initial;
  }

  .customer-hub-shell.has-selected-customer:not(.is-customer-switch-open) .customer-hub-search,
  .customer-hub-shell.has-selected-customer:not(.is-customer-switch-open) .customer-hub-list,
  .customer-hub-shell.has-selected-customer:not(.is-customer-switch-open) [data-customer-empty-live] {
    display: none;
  }

  .customer-hub-shell.has-selected-customer.is-customer-switch-open .customer-hub-directory {
    box-shadow: 0 18px 42px rgba(18, 33, 72, .1);
  }

  .customer-hub-shell.has-selected-customer .customer-hub-search {
    opacity: 1;
  }

  .customer-hub-shell.has-selected-customer .customer-hub-search .btn {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .customer-hub-selected-pill {
    grid-template-columns: 1fr;
  }

  .customer-hub-switch-toggle {
    width: 100%;
  }
}

.commerce-filter-drawer {
  position: relative;
  flex: 0 0 auto;
}

.commerce-filter-drawer summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(180, 194, 214, .98);
  border-radius: 12px;
  background: #fff;
  color: #10203d;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}

.commerce-filter-drawer summary::-webkit-details-marker {
  display: none;
}

.commerce-filter-drawer[open] summary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

.commerce-filter-drawer-grid {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 24;
  display: grid;
  width: min(680px, calc(100vw - 36px));
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(88, 122, 214, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 52px rgba(16, 24, 40, .16);
}

.commerce-filter-drawer-grid .commerce-filter-control {
  flex: initial;
}

.worklist-entry-line {
  grid-template-columns: minmax(260px, 1.22fr) minmax(430px, 1fr) auto;
  gap: 8px;
}

.worklist-entry-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  align-items: center;
  gap: 0;
}

.worklist-entry-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid rgba(88, 122, 214, .14);
}

.worklist-entry-facts b {
  overflow: hidden;
  color: #10203d;
  font-size: .72rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worklist-entry-facts small {
  color: #667792;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.worklist-primary-action {
  min-width: 78px;
}

.commerce-row-menu-stack > a.btn {
  width: 100%;
}

.commerce-module-page .commerce-module-hero {
  padding: 14px 16px;
  border-radius: 22px;
}

.commerce-module-page .commerce-module-hero .commerce-hero-grid {
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.commerce-module-page .commerce-module-hero .commerce-hero-copy {
  gap: 4px;
}

.commerce-module-page .commerce-module-hero .commerce-hero-copy h3 {
  font-size: 1.06rem;
}

.commerce-module-page .commerce-module-hero .commerce-hero-copy p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
}

/* v2.3 accounting and compact commerce header polish */
.commerce-shell--offers .commerce-worklist-hero.workspace-filter-bar--single,
.commerce-shell--invoices .commerce-worklist-hero.workspace-filter-bar--single {
  gap: 5px;
  padding: 7px 9px;
  border-radius: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 8px 20px rgba(19, 43, 92, .035);
}

.commerce-shell--offers .commerce-worklist-hero-row,
.commerce-shell--invoices .commerce-worklist-hero-row {
  grid-template-columns: minmax(180px, .72fr) minmax(0, auto) auto;
  gap: 8px;
  min-height: 38px;
  padding-bottom: 5px;
}

.commerce-shell--offers .commerce-worklist-title h2,
.commerce-shell--invoices .commerce-worklist-title h2 {
  font-size: 1rem;
}

.commerce-shell--offers .commerce-worklist-title p,
.commerce-shell--invoices .commerce-worklist-title p {
  font-size: .76rem;
  line-height: 1.2;
}

.commerce-shell--offers .commerce-worklist-pills,
.commerce-shell--invoices .commerce-worklist-pills {
  justify-content: flex-end;
  gap: 4px;
}

.commerce-shell--offers .commerce-worklist-pills span,
.commerce-shell--invoices .commerce-worklist-pills span {
  min-height: 20px;
  padding: 0 7px;
  font-size: .6rem;
}

.commerce-shell--offers .commerce-worklist-create,
.commerce-shell--invoices .commerce-worklist-create {
  min-height: 30px;
  padding-inline: 12px;
  border-radius: 12px;
  font-size: .78rem;
}

.commerce-shell--offers .commerce-compact-filter-form,
.commerce-shell--invoices .commerce-compact-filter-form {
  gap: 6px;
}

.commerce-shell--offers .commerce-filter-control span,
.commerce-shell--invoices .commerce-filter-control span {
  font-size: .56rem;
}

.commerce-shell--offers .commerce-filter-control input,
.commerce-shell--offers .commerce-filter-control select,
.commerce-shell--offers .commerce-filter-drawer summary,
.commerce-shell--offers .commerce-filter-actions--compact .btn,
.commerce-shell--invoices .commerce-filter-control input,
.commerce-shell--invoices .commerce-filter-control select,
.commerce-shell--invoices .commerce-filter-drawer summary,
.commerce-shell--invoices .commerce-filter-actions--compact .btn {
  min-height: 31px;
  border-radius: 10px;
  font-size: .76rem;
}

.accounting-shell {
  gap: 14px;
}

.accounting-hero.workspace-filter-bar--single {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(57, 76, 145, .14);
  background:
    radial-gradient(circle at top right, rgba(84, 113, 255, .16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(244,248,255,.95));
  box-shadow: 0 18px 46px rgba(15, 32, 73, .08);
}

.accounting-hero-main {
  grid-template-columns: minmax(250px, 1fr) minmax(430px, auto);
  gap: 14px;
  margin: 0;
  padding: 14px 16px 12px;
}

.accounting-hero h2 {
  margin: .05rem 0 .1rem;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.accounting-hero p {
  font-size: .86rem;
  font-weight: 700;
}

.accounting-metrics {
  min-width: min(100%, 38rem);
  gap: 7px;
}

.accounting-metrics span {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(88, 122, 214, .16);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.accounting-metrics b {
  font-size: .96rem;
  letter-spacing: -.01em;
}

.accounting-filter-form {
  padding: 9px 12px 11px;
  border-top: 1px solid rgba(88, 122, 214, .12);
  background: rgba(255,255,255,.52);
}

.accounting-grid {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 21.5rem);
  gap: 14px;
}

.accounting-panel {
  padding: 13px;
  border: 1px solid rgba(88, 122, 214, .14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.94));
  box-shadow: 0 18px 44px rgba(15, 32, 73, .07);
}

.accounting-panel--primary {
  padding: 15px;
}

.accounting-panel .section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(88, 122, 214, .12);
}

.accounting-list,
.accounting-entry-list {
  gap: 8px;
}

.accounting-row {
  position: relative;
  grid-template-columns: minmax(240px, 1.05fr) minmax(410px, 1.25fr) minmax(190px, .58fr);
  gap: 10px;
  padding: 10px 11px 10px 14px;
  border-color: rgba(88, 122, 214, .15);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(48, 74, 170, .035), transparent 26%),
    rgba(255,255,255,.92);
  box-shadow:
    inset 4px 0 0 rgba(41, 71, 213, .66),
    0 10px 26px rgba(15, 32, 73, .045);
}

.accounting-row-title .admin-chip {
  justify-self: start;
  margin-bottom: 2px;
}

.accounting-row-title strong {
  font-size: .93rem;
  line-height: 1.18;
}

.accounting-row-title small {
  font-size: .76rem;
  line-height: 1.25;
}

.accounting-row-facts {
  grid-template-columns: repeat(5, minmax(4.8rem, 1fr));
  gap: 0;
}

.accounting-row-facts span {
  padding: 0 8px;
  border: 0;
  border-left: 1px solid rgba(88, 122, 214, .13);
  border-radius: 0;
  background: transparent;
}

.accounting-row-facts span:first-child {
  border-left: 0;
}

.accounting-row-facts b {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-row-facts small {
  font-size: .55rem;
}

.accounting-row-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
  justify-content: stretch;
}

.accounting-row-primary-actions,
.accounting-row-secondary-actions {
  display: grid;
  gap: 5px;
}

.accounting-row-secondary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 6px;
  border-top: 1px solid rgba(88, 122, 214, .12);
}

.accounting-row-actions .btn,
.accounting-row-actions button {
  width: 100%;
  min-height: 30px;
  padding-inline: 8px;
  border-radius: 11px;
  font-size: .72rem;
  white-space: nowrap;
}

.accounting-row-actions form {
  margin: 0;
}

.accounting-row-secondary-actions:empty {
  display: none;
}

.accounting-side-stack {
  gap: 12px;
}

.accounting-export-panel,
.accounting-dunning-panel,
.accounting-journal {
  background:
    radial-gradient(circle at top right, rgba(41, 71, 213, .08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
}

.accounting-export-form {
  gap: 7px;
}

.accounting-help-text {
  padding: 9px 10px;
  border: 1px dashed rgba(88, 122, 214, .18);
  border-radius: 13px;
  background: rgba(255,255,255,.68);
  font-size: .76rem;
}

.accounting-settings-drawer > summary,
.accounting-history-drawer > summary {
  min-height: 32px;
  border-radius: 12px;
  font-size: .8rem;
}

.accounting-dunning-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px;
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(227, 152, 27, .08), transparent 35%),
    rgba(255,255,255,.88);
  box-shadow: 0 9px 24px rgba(15, 32, 73, .045);
}

.accounting-dunning-card strong {
  line-height: 1.2;
}

.accounting-dunning-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  gap: 6px;
  align-content: start;
  min-width: 160px;
}

.accounting-dunning-actions .btn,
.accounting-dunning-actions button,
.accounting-dunning-stop summary {
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: .72rem;
}

.accounting-dunning-stop {
  position: relative;
  margin: 0;
}

.accounting-dunning-stop summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(180, 194, 214, .98);
  background: #fff;
  color: #10203d;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.accounting-dunning-stop summary::-webkit-details-marker {
  display: none;
}

.accounting-dunning-stop[open] summary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

.accounting-dunning-stop-form {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 22;
  display: grid;
  width: min(260px, calc(100vw - 40px));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(88, 122, 214, .18);
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 48px rgba(16, 24, 40, .16);
}

.accounting-entry {
  border-radius: 15px;
  background: rgba(255,255,255,.9);
}

@media (max-width: 1180px) {
  .commerce-shell--offers .commerce-worklist-hero-row,
  .commerce-shell--invoices .commerce-worklist-hero-row,
  .accounting-hero-main,
  .accounting-grid {
    grid-template-columns: 1fr;
  }

  .commerce-shell--offers .commerce-worklist-pills,
  .commerce-shell--invoices .commerce-worklist-pills {
    justify-content: flex-start;
  }

  .accounting-row {
    grid-template-columns: 1fr;
  }

  .accounting-row-facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .commerce-shell--offers .commerce-worklist-hero.workspace-filter-bar--single,
  .commerce-shell--invoices .commerce-worklist-hero.workspace-filter-bar--single {
    padding: 8px;
  }

  .accounting-hero-main {
    padding: 12px;
  }

  .accounting-metrics,
  .accounting-row-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-row-facts span,
  .accounting-row-facts span:first-child {
    padding: 7px 8px;
    border: 1px solid rgba(88, 122, 214, .12);
    border-radius: 12px;
    background: rgba(255,255,255,.7);
  }

  .accounting-row-secondary-actions,
  .accounting-dunning-card,
  .accounting-dunning-actions {
    grid-template-columns: 1fr;
  }

  .accounting-dunning-actions {
    min-width: 0;
  }

  .accounting-dunning-stop-form {
    position: static;
    width: auto;
    margin-top: 7px;
  }
}

.commerce-module-page .commerce-metric-card {
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
}

.commerce-module-page .commerce-metric-card strong {
  font-size: 1.12rem;
}

.masterdata-table--compact .commerce-table th,
.masterdata-table--compact .commerce-table td {
  padding: 7px 8px;
}

.masterdata-table--compact .commerce-table td .btn {
  min-height: 30px;
  padding-inline: 10px;
  border-radius: 10px;
}

.masterdata-toolbar--compact {
  padding: 10px 12px;
}

.masterdata-filter-line {
  display: flex;
  align-items: end;
  gap: 8px;
  grid-template-columns: none;
}

.masterdata-filter-line label {
  flex: 1 1 180px;
}

.masterdata-filter-line .commerce-filter-actions {
  flex: 0 0 auto;
}

.admin-users-directory-card {
  padding: 16px;
}

.admin-user-groups {
  gap: 10px;
}

.admin-user-group-card {
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
}

.admin-user-tile {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) auto;
  gap: 8px 12px;
  padding: 9px 11px;
  border-radius: 15px;
  box-shadow: none;
}

.admin-user-tile-main strong {
  font-size: .92rem;
}

.admin-user-tile-main small,
.admin-user-tile-hours {
  font-size: .74rem;
}

.admin-user-tile-actions .btn {
  min-height: 32px;
  padding-inline: 11px;
  border-radius: 11px;
}

@media (max-width: 1180px) {
  .commerce-filter-drawer {
    position: static;
  }

  .commerce-filter-drawer-grid {
    position: static;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  }

  .worklist-entry-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .worklist-entry-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 6px;
    border-top: 1px solid rgba(88, 122, 214, .1);
  }

  .worklist-entry-facts span:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .worklist-entry-line .commerce-record-actions-left {
    width: 100%;
    justify-content: flex-start;
  }

  .commerce-module-page .commerce-module-hero .commerce-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .commerce-filter-drawer,
  .commerce-filter-drawer summary {
    width: 100%;
  }

  .commerce-filter-drawer-grid,
  .worklist-entry-facts {
    grid-template-columns: 1fr;
  }

  .worklist-entry-facts span {
    min-height: 28px;
    padding: 0;
    border-left: 0;
    border-top: 1px solid rgba(88, 122, 214, .1);
    align-content: center;
  }

  .worklist-entry-facts span:first-child {
    border-top: 0;
  }

  .commerce-module-page .commerce-module-hero .commerce-hero-copy p {
    display: none;
  }

  .admin-user-tile {
    grid-template-columns: 1fr;
  }

  .admin-user-tile-actions {
    width: 100%;
    justify-self: stretch;
  }

  .admin-user-tile-actions .btn {
    width: 100%;
  }

  .commerce-module-page .commerce-module-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .commerce-module-page .commerce-module-nav-link {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
  }

  .commerce-module-page .commerce-module-nav-link span:last-child {
    min-width: 0;
  }

  .commerce-module-page .commerce-module-nav-link strong,
  .commerce-module-page .commerce-module-nav-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* v2.0 responsive final pass: prevent wide inner grids from inflating the shell */
.app-main,
.app-main-shell,
.topbar,
.content-shell,
.commerce-module-board,
.commerce-module-head,
.commerce-module-head > div,
.commerce-module-nav,
.commerce-module-page,
.commerce-module-page .commerce-layout,
.masterdata-table--compact,
.masterdata-table--compact .time-table-wrap {
  min-width: 0;
}

.topbar,
.content-shell {
  width: 100%;
  max-width: 100%;
}

.masterdata-table--compact {
  overflow-x: hidden;
}

.masterdata-table--compact .time-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

@media (max-width: 1180px) {
  .topbar {
    padding: 8px 12px 7px;
    gap: 6px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .user-pill {
    min-height: 38px;
  }

  .user-pill-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .mobile-topbar-nav-trigger,
  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 36px;
    border-radius: 12px;
  }

  .dashboard-focus--office,
  .dashboard-focus--office > .timer-card,
  .timer-card .focus-orbit,
  .timer-card .focus-orbit-inner {
    max-width: 100%;
    overflow-x: hidden;
  }

  .timer-card .focus-timer-display {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.18rem, 2.8vw, 1.48rem);
    letter-spacing: -.03em;
    text-overflow: clip;
    white-space: nowrap;
  }
}

@media (max-width: 540px) {
  .topbar-title-row {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .topbar-title-row h1 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-title-separator,
  .portal-context-chip--inline {
    display: none;
  }

  .environment-context-chip {
    min-height: 24px;
    padding: 0 8px;
    font-size: .62rem;
    white-space: nowrap;
  }

  .topbar-actions {
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr);
  }

  body.page-team .topbar-actions {
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr);
  }

  .topbar-actions .user-pill {
    min-height: 36px;
  }

  .mobile-topbar-nav-trigger,
  .topbar-actions .btn,
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary {
    min-height: 36px;
    padding-inline: 10px;
  }

  .masterdata-filter-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .masterdata-filter-line label {
    min-width: 0;
  }

  .masterdata-filter-line .commerce-filter-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masterdata-filter-line .commerce-filter-actions .btn {
    width: 100%;
  }
}

/* Local finance cockpit preview - not deployed */
.sidebar-section--finance {
  position: relative;
}

.sidebar-section--finance::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 6px 10px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .52), rgba(20, 184, 166, .18), transparent);
}

.finance-suite {
  --finance-ink: #071426;
  --finance-blue: #2248f2;
  --finance-cyan: #10bfe6;
  --finance-teal: #12a49d;
  --finance-green: #19b36a;
  --finance-violet: #6d5cf6;
  --finance-amber: #f0a529;
  --finance-card: rgba(255,255,255,.94);
  gap: 14px;
}

.finance-suite-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(70, 101, 198, .2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(16, 191, 230, .34), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(109, 92, 246, .38), transparent 28%),
    linear-gradient(135deg, #071426 0%, #14275b 52%, #0a7278 100%);
  box-shadow: 0 22px 56px rgba(5, 16, 43, .18);
}

.finance-suite-tabs::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% 42%;
  height: 130px;
  transform: rotate(-10deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  pointer-events: none;
}

.finance-suite-tab {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index copy";
  column-gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  color: rgba(255,255,255,.76);
  text-decoration: none;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.finance-suite-tab:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255,255,255,.14);
}

.finance-suite-tab span {
  grid-area: index;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #071426;
  background: linear-gradient(135deg, #dffbff, #94f0d8);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.finance-suite-tab strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-suite-tab small {
  grid-area: copy;
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.62);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-suite-tab.is-active {
  color: #071426;
  border-color: rgba(255,255,255,.8);
  background:
    radial-gradient(circle at top right, rgba(16,191,230,.26), transparent 42%),
    linear-gradient(135deg, #fff, #eaf9ff 58%, #dffcf1);
  box-shadow: 0 16px 34px rgba(5, 16, 43, .2);
}

.finance-suite-tab.is-active small {
  color: #466079;
}

.finance-suite-tab.is-active span {
  color: #fff;
  background: linear-gradient(135deg, var(--finance-blue), var(--finance-teal));
  box-shadow: 0 10px 18px rgba(34, 72, 242, .24);
}

.finance-suite .commerce-worklist-hero.workspace-filter-bar--single {
  position: relative;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 5% 12%, rgba(16,191,230,.25), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(25,179,106,.2), transparent 28%),
    linear-gradient(135deg, #08152b 0%, #18306a 52%, #142c40 100%);
  box-shadow: 0 24px 60px rgba(7, 20, 38, .18);
}

.finance-suite--offers .commerce-worklist-hero.workspace-filter-bar--single {
  background:
    radial-gradient(circle at 6% 12%, rgba(16,191,230,.32), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(109,92,246,.28), transparent 30%),
    linear-gradient(135deg, #071426 0%, #1b2c7a 54%, #0b637c 100%);
}

.finance-suite--invoices .commerce-worklist-hero.workspace-filter-bar--single {
  background:
    radial-gradient(circle at 8% 10%, rgba(25,179,106,.34), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(240,165,41,.26), transparent 30%),
    linear-gradient(135deg, #071426 0%, #12305d 54%, #0d6e5f 100%);
}

.finance-suite .commerce-worklist-hero-row {
  grid-template-columns: minmax(220px, .88fr) minmax(300px, 1.1fr) auto;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.finance-suite .commerce-worklist-title .section-kicker,
.finance-suite--overview .accounting-hero .section-kicker {
  color: #94f0d8;
  letter-spacing: .12em;
}

.finance-suite .commerce-worklist-title h2 {
  color: #fff;
  font-size: 1.42rem;
  letter-spacing: -.03em;
}

.finance-suite .commerce-worklist-title p {
  color: rgba(255,255,255,.72);
  font-size: .83rem;
}

.finance-suite .commerce-worklist-pills {
  justify-content: flex-end;
  gap: 6px;
}

.finance-suite .commerce-worklist-pills span {
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(255,255,255,.2);
  color: #eaffff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.finance-suite .commerce-worklist-create {
  min-height: 38px;
  border: 0;
  color: #06142a;
  background: linear-gradient(135deg, #fff, #a9f5e5);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.finance-suite .commerce-compact-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(116px, 150px) auto auto;
  gap: 8px;
  align-items: end;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.finance-suite .commerce-filter-control span,
.finance-suite .commerce-filter-drawer summary {
  color: rgba(255,255,255,.78);
}

.finance-suite .commerce-filter-control input,
.finance-suite .commerce-filter-control select,
.finance-suite .commerce-filter-drawer summary,
.finance-suite .commerce-filter-actions--compact .btn {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  color: #06142a;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.finance-suite .commerce-filter-drawer[open] summary,
.finance-suite .commerce-filter-actions--compact .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--finance-blue), var(--finance-teal));
}

.finance-suite .commerce-record-list--line {
  gap: 9px;
}

.finance-suite .worklist-entry-line {
  --finance-row-accent: var(--finance-blue);
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 1.18fr) minmax(440px, 1.45fr) minmax(150px, .46fr);
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px 10px 15px;
  overflow: visible;
  border: 1px solid rgba(64, 98, 190, .14);
  border-radius: 22px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--finance-row-accent) 9%, transparent), transparent 38%),
    rgba(255,255,255,.95);
  box-shadow:
    inset 5px 0 0 var(--finance-row-accent),
    0 14px 36px rgba(7, 20, 38, .06);
}

.finance-suite--offers .worklist-entry-line {
  --finance-row-accent: #10bfe6;
}

.finance-suite--invoices .worklist-entry-line {
  --finance-row-accent: #19b36a;
}

.finance-suite .worklist-entry-line:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--finance-row-accent) 42%, rgba(64,98,190,.14));
  box-shadow:
    inset 5px 0 0 var(--finance-row-accent),
    0 20px 42px rgba(7, 20, 38, .09);
}

.finance-suite .worklist-entry-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr);
  gap: 10px;
  align-items: center;
}

.finance-suite .commerce-record-head {
  gap: 8px;
  align-items: center;
}

.finance-suite .commerce-record-title strong {
  color: #071426;
  font-size: .93rem;
  letter-spacing: -.01em;
}

.finance-suite .commerce-record-title p,
.finance-suite .commerce-record-meta-note {
  color: #52677f;
  font-size: .73rem;
  line-height: 1.24;
}

.finance-suite .worklist-entry-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.finance-suite .worklist-entry-facts span {
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid rgba(93, 117, 170, .16);
  border-radius: 0;
  background: transparent;
}

.finance-suite .worklist-entry-facts span:first-child {
  border-left: 0;
}

.finance-suite .worklist-entry-facts b {
  overflow: hidden;
  color: #071426;
  font-size: .74rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-suite .worklist-entry-facts small {
  color: #6e7e96;
  font-size: .54rem;
  letter-spacing: .09em;
}

.finance-suite .worklist-entry-side {
  align-self: center;
}

.finance-suite .worklist-entry-line .commerce-record-actions-left {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.finance-suite .worklist-entry-side .btn,
.finance-suite .worklist-entry-side summary {
  min-height: 31px;
  border-radius: 999px;
  font-size: .72rem;
}

.finance-suite .worklist-primary-action {
  background: linear-gradient(135deg, var(--finance-row-accent), #2443d8);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--finance-row-accent) 23%, transparent);
}

.finance-suite .commerce-row-menu[open] .commerce-row-menu-stack,
.finance-suite .commerce-row-menu[open] .commerce-inline-billing-actions {
  border: 1px solid rgba(65, 92, 168, .22);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 52px rgba(7, 20, 38, .16);
}

.finance-suite--overview .accounting-hero.workspace-filter-bar--single {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 9% 12%, rgba(16,191,230,.35), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(25,179,106,.28), transparent 31%),
    linear-gradient(135deg, #071426 0%, #1b2c7a 55%, #074c57 100%);
  box-shadow: 0 26px 64px rgba(7, 20, 38, .2);
}

.finance-suite--overview .accounting-hero-main {
  padding: 18px 20px 15px;
}

.finance-suite--overview .accounting-hero h2 {
  color: #fff;
  font-size: 1.55rem;
}

.finance-suite--overview .accounting-hero p {
  color: rgba(255,255,255,.74);
}

.finance-suite--overview .accounting-metrics span {
  border-color: rgba(255,255,255,.16);
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.finance-suite--overview .accounting-metrics b {
  color: #fff;
}

.finance-suite--overview .accounting-metrics small {
  color: rgba(255,255,255,.66);
}

.finance-suite--overview .accounting-filter-form {
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.finance-suite--overview .accounting-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .82fr);
  gap: 14px;
}

.finance-suite--overview .accounting-panel {
  border: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,250,255,.92));
  box-shadow: 0 22px 52px rgba(7, 20, 38, .08);
}

.finance-suite--overview .accounting-panel--primary {
  position: relative;
  overflow: hidden;
}

.finance-suite--overview .accounting-panel--primary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--finance-cyan), var(--finance-green), var(--finance-violet));
}

.finance-suite--overview .accounting-row {
  grid-template-columns: minmax(250px, 1.05fr) minmax(420px, 1.35fr) minmax(180px, .52fr);
  border: 1px solid rgba(64, 98, 190, .12);
  border-radius: 21px;
  background:
    linear-gradient(90deg, rgba(16,191,230,.1), transparent 34%),
    rgba(255,255,255,.96);
  box-shadow:
    inset 5px 0 0 var(--finance-cyan),
    0 13px 32px rgba(7, 20, 38, .055);
}

.finance-suite--overview .accounting-row-title strong {
  color: #071426;
}

.finance-suite--overview .accounting-row-title small,
.finance-suite--overview .accounting-entry small,
.finance-suite--overview .accounting-dunning-card small {
  color: #5e7088;
}

.finance-suite--overview .accounting-row-facts span {
  border-left-color: rgba(93, 117, 170, .15);
}

.finance-suite--overview .accounting-row-facts b {
  color: #071426;
}

.finance-suite--overview .accounting-row-primary-actions .btn {
  border: 0;
  background: linear-gradient(135deg, var(--finance-cyan), #2443d8);
  box-shadow: 0 12px 24px rgba(16,191,230,.22);
}

.finance-suite--overview .accounting-row-secondary-actions {
  border-top-color: rgba(93, 117, 170, .14);
}

.finance-suite--overview .accounting-export-panel {
  color: #071426;
  background:
    radial-gradient(circle at top right, rgba(16,191,230,.16), transparent 42%),
    linear-gradient(180deg, #fff, #eef8ff);
}

.finance-suite--overview .accounting-dunning-panel {
  background:
    radial-gradient(circle at top right, rgba(240,165,41,.18), transparent 42%),
    linear-gradient(180deg, #fff, #fff8ed);
}

.finance-suite--overview .accounting-journal {
  background:
    radial-gradient(circle at top right, rgba(25,179,106,.16), transparent 42%),
    linear-gradient(180deg, #fff, #effcf5);
}

.finance-suite--overview .accounting-dunning-card {
  border: 1px solid rgba(240,165,41,.2);
  background:
    linear-gradient(90deg, rgba(240,165,41,.11), transparent 35%),
    rgba(255,255,255,.94);
}

.finance-suite--overview .accounting-entry {
  border: 1px solid rgba(64, 98, 190, .12);
  background: rgba(255,255,255,.9);
}

.finance-document-actions {
  gap: 12px;
}

.finance-document-actions .live-document-action-hub-head {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(16,191,230,.38), transparent 38%),
    linear-gradient(135deg, #071426, #1d2d76 58%, #0b7276);
  box-shadow: 0 22px 48px rgba(7, 20, 38, .18);
}

.finance-document-actions .live-document-action-hub-head::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.finance-document-actions .live-document-action-hub-head .section-kicker {
  color: #94f0d8;
}

.finance-document-actions .live-document-action-hub-head h3,
.finance-document-actions .live-document-action-hub-head p {
  color: inherit;
}

.finance-document-actions .live-document-action-hub-head p {
  color: rgba(255,255,255,.76);
}

.finance-document-actions .commerce-inspector-panel {
  overflow: hidden;
  border: 1px solid rgba(72, 99, 184, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(16,191,230,.12), transparent 42%),
    linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow: 0 18px 42px rgba(7, 20, 38, .075);
}

.finance-document-actions .commerce-inspector-panel .section-head {
  margin: -2px -2px 10px;
  padding: 12px 13px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #162a63, #2443d8);
}

.finance-document-actions .commerce-inspector-panel .section-kicker,
.finance-document-actions .commerce-inspector-panel .section-head h3 {
  color: #fff;
}

.finance-document-actions .commerce-action-stack {
  gap: 8px;
}

.finance-document-actions .commerce-action-stack > form,
.finance-document-actions .commerce-action-stack > details,
.finance-document-actions .commerce-conversion-box,
.finance-document-actions .live-document-send-block,
.finance-document-actions .stack-form,
.finance-document-actions .commerce-credit-note-form {
  padding: 9px;
  border: 1px solid rgba(72, 99, 184, .13);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.finance-document-actions .commerce-conversion-box {
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(25,179,106,.15), transparent 38%),
    rgba(255,255,255,.9);
}

.finance-document-actions .commerce-action-stack .btn,
.finance-document-actions .stack-form .btn {
  min-height: 36px;
  border-radius: 999px;
}

.finance-document-actions .commerce-action-stack .btn-primary,
.finance-document-actions .stack-form .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--finance-blue), var(--finance-teal));
  box-shadow: 0 14px 28px rgba(34,72,242,.18);
}

.finance-document-actions .stack-form {
  gap: 7px;
}

.finance-document-actions .stack-form label {
  gap: 3px;
}

.finance-document-actions .stack-form input,
.finance-document-actions .stack-form select,
.finance-document-actions .stack-form textarea {
  min-height: 33px;
  border-radius: 12px;
}

.finance-document-actions .stack-form textarea {
  min-height: 78px;
  max-height: 112px;
  resize: vertical;
}

.finance-document-actions .commerce-credit-note-list {
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.finance-document-actions .commerce-secondary-actions summary {
  min-height: 36px;
  border-radius: 999px;
  color: #071426;
  background: #fff;
}

@media (min-width: 1100px) {
  .live-document-workspace--word > .finance-document-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    align-items: stretch;
  }

  .live-document-workspace--word > .finance-document-actions > * {
    min-width: 0;
  }

  .finance-document-actions .live-document-action-hub-head,
  .finance-document-actions .commerce-inspector-panel {
    height: 100%;
  }
}

@media (max-width: 1180px) {
  .finance-suite-tabs,
  .finance-suite .commerce-worklist-hero-row,
  .finance-suite .commerce-compact-filter-form,
  .finance-suite .worklist-entry-line,
  .finance-suite--overview .accounting-grid,
  .finance-suite--overview .accounting-row {
    grid-template-columns: 1fr;
  }

  .finance-suite .commerce-worklist-pills {
    justify-content: flex-start;
  }

  .finance-suite .worklist-entry-main {
    grid-template-columns: 1fr;
  }

  .finance-suite .worklist-entry-facts,
  .finance-suite--overview .accounting-row-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .finance-suite-tabs {
    padding: 8px;
    border-radius: 22px;
  }

  .finance-suite-tab {
    min-height: 58px;
    padding: 10px;
  }

  .finance-suite-tab small {
    white-space: normal;
  }

  .finance-suite .commerce-worklist-hero.workspace-filter-bar--single,
  .finance-suite--overview .accounting-hero.workspace-filter-bar--single {
    border-radius: 22px;
  }

  .finance-suite .commerce-worklist-hero-row,
  .finance-suite--overview .accounting-hero-main {
    padding: 13px;
  }

  .finance-suite .worklist-entry-facts,
  .finance-suite--overview .accounting-row-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-suite .worklist-entry-facts span,
  .finance-suite .worklist-entry-facts span:first-child {
    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid rgba(93, 117, 170, .14);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
  }
}

/* Finance cockpit selected concept pass */
.finance-suite {
  position: relative;
  --finance-ink: #0a1730;
  --finance-muted: #61708a;
  --finance-blue: #334be8;
  --finance-blue-2: #4c62f4;
  --finance-teal: #20c7c2;
  --finance-green: #22b96d;
  --finance-red: #ff684d;
  --finance-amber: #f1a72c;
  --finance-soft: #eef8ff;
}

.finance-suite::before {
  content: "";
  position: fixed;
  inset: 88px 0 0 var(--sidebar-w, 244px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(32, 199, 194, .12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(70, 98, 255, .13), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.finance-suite-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(125px, auto));
  justify-self: start;
  gap: 5px;
  width: auto;
  min-width: min(100%, 470px);
  padding: 7px;
  border: 1px solid rgba(197, 209, 232, .75);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(18, 35, 78, .08);
  backdrop-filter: blur(14px);
}

.finance-suite-tabs::after {
  display: none;
}

.finance-suite-tab {
  min-height: 45px;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  padding: 9px 12px;
  border-color: transparent;
  border-radius: 14px;
  color: #18223d;
  background: transparent;
  box-shadow: none;
}

.finance-suite-tab span {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: #3041cb;
  background: #eef1ff;
  font-size: .62rem;
}

.finance-suite-tab strong {
  font-size: .83rem;
}

.finance-suite-tab small {
  display: none;
}

.finance-suite-tab.is-active {
  color: #0c1734;
  border-color: rgba(85, 101, 230, .22);
  background: linear-gradient(135deg, #edf1ff, #f8fbff);
  box-shadow: 0 8px 20px rgba(51, 75, 232, .14);
}

.finance-suite-tab.is-active span {
  color: #fff;
  background: linear-gradient(135deg, var(--finance-blue), #6c75ff);
}

.finance-suite--overview .accounting-hero.workspace-filter-bar--single {
  position: relative;
  padding: 0;
  border: 1px solid rgba(29, 53, 112, .14);
  border-radius: 25px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(162, 230, 236, .18) 0, rgba(162, 230, 236, .06) 32px, transparent 33px),
    radial-gradient(circle at 20% 6%, rgba(32, 199, 194, .4), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(51, 75, 232, .36), transparent 34%),
    linear-gradient(135deg, #081438 0%, #071b44 44%, #082942 100%);
  box-shadow: 0 28px 70px rgba(6, 20, 48, .24);
}

.finance-suite--overview .accounting-hero.workspace-filter-bar--single::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 75% 15%, rgba(255,255,255,.22) 0 1px, transparent 1.4px),
    linear-gradient(115deg, transparent 0 55%, rgba(32,199,194,.15) 55% 56%, transparent 56%);
  background-size: 18px 18px, 100% 100%;
}

.finance-suite--overview .accounting-hero-main,
.finance-suite--overview .accounting-filter-form {
  position: relative;
  z-index: 1;
}

.finance-suite--overview .accounting-hero-main {
  grid-template-columns: minmax(230px, .65fr) minmax(620px, 1.35fr);
  gap: 18px;
  padding: 18px 22px 16px;
}

.accounting-hero-copy {
  display: grid;
  gap: 8px;
  align-content: center;
}

.finance-suite--overview .accounting-hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.34rem, 1.75vw, 1.72rem);
  letter-spacing: -.045em;
}

.finance-suite--overview .accounting-hero-copy p {
  max-width: 34rem;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  line-height: 1.28;
}

.accounting-period-pill {
  display: inline-grid;
  justify-self: start;
  gap: 2px;
  min-width: 118px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  font-size: .68rem;
  font-weight: 850;
}

.accounting-period-pill b {
  color: #fff;
  font-size: .76rem;
}

.finance-suite--overview .accounting-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.accounting-metric {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(12, 30, 66, .68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 38px rgba(0,0,0,.18);
}

.accounting-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #eaffff;
  background: rgba(32,199,194,.22);
  font-size: .8rem;
  font-weight: 950;
}

.accounting-metric--paid .accounting-metric-icon {
  background: rgba(34,185,109,.24);
}

.accounting-metric--overdue .accounting-metric-icon {
  color: #ffe9e5;
  background: rgba(255,104,77,.25);
}

.accounting-metric--dunning .accounting-metric-icon {
  color: #fff5d8;
  background: rgba(241,167,44,.28);
}

.accounting-metric small,
.accounting-metric b,
.accounting-metric em {
  display: block;
  min-width: 0;
}

.accounting-metric small {
  color: rgba(255,255,255,.76);
  font-size: .72rem;
  font-weight: 900;
}

.accounting-metric b {
  margin-top: 4px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.accounting-metric--paid b {
  color: #55dd8d;
}

.accounting-metric--overdue b {
  color: #ff7d65;
}

.accounting-metric--dunning b {
  color: #f6b94a;
}

.accounting-metric em {
  margin-top: 4px;
  color: rgba(255,255,255,.64);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
}

.finance-suite--overview .accounting-metric .accounting-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #eaffff;
  background: rgba(32,199,194,.22);
  box-shadow: none;
  font-size: .8rem;
  font-weight: 950;
}

.finance-suite--overview .accounting-metric--paid .accounting-metric-icon {
  background: rgba(34,185,109,.24);
}

.finance-suite--overview .accounting-metric--overdue .accounting-metric-icon {
  color: #ffe9e5;
  background: rgba(255,104,77,.25);
}

.finance-suite--overview .accounting-metric--dunning .accounting-metric-icon {
  color: #fff5d8;
  background: rgba(241,167,44,.28);
}

.finance-suite--overview .accounting-metric small {
  color: rgba(255,255,255,.76);
}

.finance-suite--overview .accounting-metric b {
  color: #fff;
}

.finance-suite--overview .accounting-metric--paid b {
  color: #55dd8d;
}

.finance-suite--overview .accounting-metric--overdue b {
  color: #ff7d65;
}

.finance-suite--overview .accounting-metric--dunning b {
  color: #f6b94a;
}

.finance-suite--overview .accounting-filter-form {
  grid-template-columns: minmax(240px, 1fr) minmax(145px, 180px) auto auto;
  gap: 9px;
  padding: 9px 14px 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.finance-suite--overview .accounting-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .62fr);
  gap: 18px;
}

.finance-suite--overview .accounting-panel {
  border: 1px solid rgba(194, 207, 229, .8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 0%, rgba(32,199,194,.09), transparent 34%),
    rgba(255,255,255,.92);
  box-shadow: 0 18px 46px rgba(18, 35, 78, .08);
  backdrop-filter: blur(16px);
}

.accounting-table-head,
.finance-worklist-table-head {
  display: grid;
  gap: 10px;
  padding: 8px 12px;
  color: #5c6e89;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.accounting-table-head {
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, .8fr) minmax(80px, .45fr) minmax(100px, .48fr) minmax(95px, .42fr) minmax(150px, .58fr);
}

.finance-suite--overview .accounting-row {
  grid-template-columns: minmax(180px, .95fr) minmax(260px, 1.15fr) minmax(205px, .7fr);
  min-height: 55px;
  padding: 8px 10px 8px 15px;
  border-color: rgba(195, 208, 230, .88);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(51,75,232,.045), transparent 30%),
    rgba(255,255,255,.94);
  box-shadow:
    inset 4px 0 0 var(--finance-blue),
    0 9px 22px rgba(18, 35, 78, .045);
}

.finance-suite--overview .accounting-row--overdue {
  box-shadow:
    inset 4px 0 0 var(--finance-red),
    0 9px 22px rgba(18, 35, 78, .045);
}

.finance-suite--overview .accounting-row--paid {
  box-shadow:
    inset 4px 0 0 var(--finance-green),
    0 9px 22px rgba(18, 35, 78, .045);
}

.finance-suite--overview .accounting-row-title {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
}

.finance-suite--overview .accounting-row-title .admin-chip {
  grid-row: 1 / span 2;
}

.finance-suite--overview .accounting-row-title strong {
  font-size: .86rem;
}

.finance-suite--overview .accounting-row-title small {
  font-size: .72rem;
}

.finance-suite--overview .accounting-row-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finance-suite--overview .accounting-row-facts span {
  min-height: 32px;
  padding: 0 8px;
}

.finance-suite--overview .accounting-row-actions .btn,
.finance-suite--overview .accounting-row-actions button {
  width: auto;
  min-height: 29px;
  border-radius: 10px;
}

.finance-suite--overview .accounting-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.finance-suite--overview .accounting-row-primary-actions,
.finance-suite--overview .accounting-row-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.finance-suite--overview .accounting-row-secondary-actions {
  grid-template-columns: none;
  padding-top: 0;
  border-top: 0;
}

.finance-suite--overview .accounting-row-menu {
  position: relative;
}

.finance-suite--overview .accounting-row-menu[open] .accounting-row-more-stack {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(230px, 80vw);
  padding: 10px;
  border: 1px solid rgba(196,210,233,.92);
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 42px rgba(18,35,78,.14);
}

.finance-suite--overview .accounting-row-more-stack .btn,
.finance-suite--overview .accounting-row-more-stack button,
.finance-suite--overview .accounting-row-more-stack form {
  width: 100%;
}

.accounting-quick-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(32,199,194,.16), transparent 38%),
    linear-gradient(180deg, #fff, #f0fbfb) !important;
}

.accounting-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.accounting-quick-action {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(184, 201, 224, .9);
  border-radius: 16px;
  color: #10203d;
  text-decoration: none;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.accounting-quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(51,75,232,.35);
  box-shadow: 0 12px 24px rgba(18,35,78,.08);
}

.accounting-quick-action span {
  color: #5d6f8b;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.accounting-quick-action strong {
  font-size: .83rem;
}

.finance-suite .commerce-worklist-hero.workspace-filter-bar--single {
  border: 1px solid rgba(194, 207, 229, .82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 0%, rgba(32,199,194,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.92));
  box-shadow: 0 16px 42px rgba(18,35,78,.075);
}

.finance-suite .commerce-worklist-hero-row {
  grid-template-columns: minmax(210px, .7fr) minmax(270px, auto) auto;
  min-height: 48px;
  padding: 12px 14px 8px;
  border-bottom-color: rgba(194,207,229,.74);
}

.finance-suite .commerce-worklist-title .section-kicker {
  color: #51607d;
}

.finance-suite .commerce-worklist-title h2 {
  color: var(--finance-ink);
  font-size: 1.18rem;
}

.finance-suite .commerce-worklist-title p {
  color: var(--finance-muted);
  font-size: .78rem;
}

.finance-suite .commerce-worklist-pills span {
  min-height: 24px;
  border-color: rgba(196, 210, 233, .82);
  color: #34405c;
  background: rgba(255,255,255,.82);
}

.finance-suite .commerce-worklist-create {
  min-height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--finance-blue), #5f6cf7);
  box-shadow: 0 12px 24px rgba(51,75,232,.22);
}

.finance-suite .commerce-compact-filter-form {
  grid-template-columns: minmax(240px, 1fr) minmax(124px, 156px) auto auto;
  padding: 9px 12px 12px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
}

.finance-suite .commerce-filter-control span,
.finance-suite .commerce-filter-drawer summary {
  color: #5b6d87;
}

.finance-worklist-panel {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(194,207,229,.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(51,75,232,.08), transparent 32%),
    rgba(255,255,255,.92);
  box-shadow: 0 18px 46px rgba(18,35,78,.075);
}

.finance-worklist-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 9px;
  border-bottom: 1px solid rgba(194,207,229,.72);
}

.finance-worklist-panel-head h3 {
  margin: 0;
  color: #0a1730;
  font-size: 1rem;
}

.finance-worklist-panel-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2638c7;
  background: #eef1ff;
  font-size: .72rem;
  font-weight: 900;
}

.finance-worklist-table-head {
  grid-template-columns: minmax(220px, 1.35fr) minmax(80px, .44fr) repeat(4, minmax(90px, .52fr)) minmax(105px, .44fr);
}

.finance-suite .commerce-record-list--line {
  gap: 6px;
}

.finance-suite .worklist-entry-line {
  grid-template-columns: minmax(250px, 1.25fr) minmax(430px, 1.45fr) minmax(118px, .38fr);
  min-height: 47px;
  padding: 7px 9px 7px 13px;
  border-color: rgba(195,208,230,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow:
    inset 4px 0 0 var(--finance-row-accent),
    0 8px 20px rgba(18,35,78,.045);
}

.finance-suite--offers .worklist-entry-line {
  --finance-row-accent: #3557f4;
}

.finance-suite--invoices .worklist-entry-line {
  --finance-row-accent: #20b978;
}

.finance-suite .worklist-entry-main {
  grid-template-columns: minmax(0, 1fr) auto;
}

.finance-suite .commerce-record-title strong {
  font-size: .82rem;
  line-height: 1.12;
}

.finance-suite .commerce-record-title p,
.finance-suite .commerce-record-meta-note {
  font-size: .68rem;
}

.finance-suite .worklist-entry-facts span {
  min-height: 28px;
  padding: 0 7px;
}

.finance-suite .worklist-entry-facts b {
  font-size: .69rem;
}

.finance-suite .worklist-entry-facts small {
  font-size: .5rem;
}

.finance-suite .worklist-entry-side .btn,
.finance-suite .worklist-entry-side summary {
  min-height: 28px;
  padding-inline: 10px;
  font-size: .68rem;
}

.commerce-booking-dialog {
  width: min(820px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 210, 233, .9);
  border-radius: 26px;
  background:
    radial-gradient(circle at 22% 0%, rgba(32,199,194,.16), transparent 34%),
    linear-gradient(180deg, #fff, #f5f9ff);
}

.commerce-booking-head {
  padding: 18px 20px 14px;
  background:
    linear-gradient(180deg, rgba(200,245,246,.55), rgba(255,255,255,.75));
}

.commerce-booking-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 14px;
  padding: 16px;
}

.commerce-booking-form {
  gap: 9px;
}

.commerce-booking-form label,
.commerce-booking-review {
  border: 1px solid rgba(196,210,233,.82);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
}

.commerce-booking-form label {
  padding: 9px;
}

.commerce-booking-form input,
.commerce-booking-form select {
  border-radius: 11px;
}

.commerce-booking-review {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(32,199,194,.16), transparent 42%),
    rgba(255,255,255,.9);
}

.commerce-booking-review h4 {
  margin: 0;
  color: #0a1730;
  font-size: 1rem;
}

.commerce-booking-review dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.commerce-booking-review dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(196,210,233,.72);
}

.commerce-booking-review dt {
  color: #61708a;
  font-size: .72rem;
  font-weight: 900;
}

.commerce-booking-review dd {
  margin: 0;
  color: #0a1730;
  font-weight: 900;
  text-align: right;
}

.commerce-booking-review p {
  margin: 0;
  padding: 10px;
  border-radius: 13px;
  color: #12724f;
  background: rgba(34,185,109,.1);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.commerce-booking-actions {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
}

.finance-document-actions {
  position: relative;
  overflow: hidden;
  border-color: rgba(196,210,233,.86) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(32,199,194,.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(51,75,232,.11), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,247,255,.94)) !important;
}

.finance-document-actions::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  background: linear-gradient(180deg, rgba(202,244,246,.64), rgba(255,255,255,0));
  pointer-events: none;
}

.finance-document-actions > * {
  position: relative;
  z-index: 1;
}

.finance-document-actions .live-document-action-hub-head {
  min-height: 112px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.4), transparent 38%),
    linear-gradient(135deg, rgba(193,245,247,.9), rgba(240,247,255,.96));
  color: #0a1730;
  box-shadow: none;
}

.finance-document-actions .live-document-action-hub-head::after {
  background: rgba(51,75,232,.08);
}

.finance-document-actions .live-document-action-hub-head .section-kicker {
  color: #425576;
}

.finance-document-actions .live-document-action-hub-head h3 {
  color: #071426;
  font-size: 1.25rem;
}

.finance-document-actions .live-document-action-hub-head p {
  color: #52657f;
}

.finance-document-actions .commerce-inspector-panel {
  display: grid;
  align-content: start;
  border-color: rgba(196,210,233,.88);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 38px rgba(18,35,78,.065);
}

.finance-document-actions .commerce-inspector-panel .section-head {
  margin: -14px -14px 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(196,210,233,.72);
  color: #0a1730;
  background:
    linear-gradient(135deg, rgba(240,247,255,.96), rgba(255,255,255,.94));
}

.finance-document-actions .commerce-inspector-panel .section-kicker {
  color: #5d6f8b;
}

.finance-document-actions .commerce-inspector-panel .section-head h3 {
  color: #0a1730;
}

.finance-document-actions--offer #offer-status-panel {
  border-top: 4px solid rgba(32,199,194,.82);
}

.finance-document-actions--offer #offer-send-panel,
.finance-document-actions--invoice #invoice-send-panel {
  border-top: 4px solid rgba(51,75,232,.82);
}

.finance-document-actions--offer #offer-billing-panel,
.finance-document-actions--invoice #invoice-payment-panel {
  border-top: 4px solid rgba(241,167,44,.82);
}

.finance-document-actions .commerce-conversion-box,
.finance-document-actions .live-document-send-block,
.finance-document-actions .commerce-action-stack > form,
.finance-document-actions .commerce-action-stack > details,
.finance-document-actions .stack-form {
  border-color: rgba(196,210,233,.8);
  background: rgba(255,255,255,.78);
}

.finance-document-actions .commerce-action-stack .btn-primary,
.finance-document-actions .stack-form .btn-primary {
  background: linear-gradient(135deg, var(--finance-blue), #5565f5);
}

@media (min-width: 1100px) {
  .live-document-workspace--word > .finance-document-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .finance-document-actions .live-document-action-hub-head,
  .finance-document-actions .commerce-inspector-panel {
    height: auto;
  }
}

@media (max-width: 1180px) {
  .finance-suite--overview .accounting-hero-main,
  .finance-suite--overview .accounting-grid,
  .finance-suite--overview .accounting-row,
  .finance-suite .worklist-entry-line {
    grid-template-columns: 1fr;
  }

  .finance-suite--overview .accounting-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-table-head,
  .finance-worklist-table-head {
    display: none;
  }
}

@media (max-width: 900px) {
  .finance-suite::before {
    left: 0;
  }

  .finance-suite-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .finance-suite .commerce-worklist-hero-row,
  .finance-suite .commerce-compact-filter-form,
  .finance-suite--overview .accounting-filter-form,
  .commerce-booking-body {
    grid-template-columns: 1fr;
  }

  .finance-suite .commerce-worklist-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .finance-suite--overview .accounting-hero-main,
  .commerce-booking-body {
    padding: 13px;
  }

  .finance-suite--overview .accounting-metrics,
  .accounting-quick-actions,
  .finance-suite .worklist-entry-facts {
    grid-template-columns: 1fr;
  }

  .accounting-metric {
    min-height: 72px;
  }

  .finance-worklist-panel,
  .finance-suite--overview .accounting-panel {
    border-radius: 18px;
  }
}

/* Finance pixel target pass: selected cockpit and continuation-dialog direction */
body.page-finance {
  --sidebar-w: 196px;
  --finance-shell: #edf3f8;
  --finance-paper: rgba(255, 255, 255, .92);
  --finance-line: #d7e1f2;
  --finance-ink-strong: #07152f;
  --finance-cyan: #22d4e7;
  --finance-orange: #ff9f1a;
  background:
    radial-gradient(circle at 72% 22%, rgba(42, 216, 208, .17), transparent 28%),
    linear-gradient(180deg, #f6f8fc 0%, var(--finance-shell) 100%);
}

body.page-finance .sidebar {
  padding: 8px;
  border-right-color: rgba(17, 35, 70, .10);
  background: rgba(255, 255, 255, .70);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7);
}

body.page-finance .sidebar-brand {
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 34, 72, .04);
}

body.page-finance .sidebar-brand img {
  width: 74px;
}

body.page-finance .sidebar-nav-shell {
  gap: 16px;
  margin-top: 18px;
}

body.page-finance .sidebar-section-title,
body.page-finance .sidebar-group-heading {
  margin-inline: 10px;
  color: #687894;
  font-size: .66rem;
}

body.page-finance .sidebar-link-stack {
  gap: 5px;
}

body.page-finance .sidebar-link-stack a,
body.page-finance .sidebar-link-stack .nav-group-toggle {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

body.page-finance .sidebar-link-stack a.active {
  background: linear-gradient(135deg, #3151e7, #6b59ef);
  box-shadow: 0 12px 26px rgba(47, 78, 222, .24);
}

body.page-finance .app-topbar-shell {
  min-height: 90px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(192, 205, 226, .72);
  background: rgba(248, 251, 255, .72);
  box-shadow: 0 10px 34px rgba(15, 34, 72, .04);
}

body.page-finance .topbar-title-row h1 {
  color: var(--finance-ink-strong);
  font-size: 1.7rem;
  letter-spacing: -.04em;
}

body.page-finance .topbar-title-separator,
body.page-finance .portal-context-chip--inline,
body.page-finance .environment-context-chip {
  display: none;
}

body.page-finance .topbar-actions {
  gap: 12px;
}

body.page-finance .user-pill {
  min-height: 58px;
  padding: 8px 14px;
  border-color: rgba(192, 205, 226, .82);
  border-radius: 17px;
  background: rgba(255,255,255,.88);
}

body.page-finance .topbar-actions form .btn {
  min-height: 50px;
  border-radius: 14px;
}

body.page-finance .content-shell {
  position: relative;
  gap: 16px;
  padding: 0 16px 16px;
}

body.page-finance .finance-suite {
  position: relative;
  gap: 16px;
  max-width: none;
}

body.page-finance .finance-suite::before {
  opacity: .35;
}

body.page-finance .finance-suite-tabs {
  position: absolute;
  top: -78px;
  left: 196px;
  z-index: 14;
  width: max-content;
  min-width: 332px;
  height: 54px !important;
  margin: 0;
  padding: 6px;
  grid-template-columns: repeat(3, minmax(106px, 1fr));
  border: 1px solid rgba(218, 226, 242, .74);
  border-radius: 13px;
  background: rgba(255,255,255,.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 14px 30px rgba(23, 38, 80, .055);
  backdrop-filter: blur(16px);
}

body.page-finance .finance-suite-tab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 40px !important;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #0b1834;
  background: transparent;
  box-shadow: none;
  font-size: .83rem;
}

body.page-finance .finance-suite-tab span,
body.page-finance .finance-suite-tab small {
  display: none;
}

body.page-finance .finance-suite-tab strong {
  font-size: .84rem;
  letter-spacing: 0;
}

body.page-finance .finance-suite-tab.is-active {
  background: linear-gradient(180deg, #eef1ff, #dbdefb);
  box-shadow: 0 10px 22px rgba(59, 73, 202, .12);
}

body.page-accounting .accounting-shell {
  gap: 16px;
}

body.page-accounting .accounting-hero.workspace-filter-bar--single {
  min-height: 171px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 93% 45%, rgba(0, 169, 255, .30), transparent 25%),
    radial-gradient(circle at 34% 88%, rgba(44, 225, 209, .22), transparent 30%),
    repeating-radial-gradient(circle at 94% 50%, rgba(40, 181, 255, .18) 0 1px, transparent 1px 8px),
    linear-gradient(117deg, #071235 0%, #071d46 48%, #031036 100%);
  box-shadow: 0 19px 45px rgba(8, 20, 52, .24);
}

body.page-accounting .accounting-hero-main {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 171px;
  padding: 26px 28px;
}

body.page-accounting .accounting-hero-copy {
  align-content: start;
  gap: 7px;
}

body.page-accounting .accounting-hero-copy .section-kicker {
  display: none;
}

body.page-accounting .accounting-hero-copy h2 {
  color: #fff;
  font-size: 1.42rem;
  letter-spacing: -.035em;
}

body.page-accounting .accounting-hero-copy p {
  color: rgba(255,255,255,.86);
  font-size: .82rem;
  line-height: 1.35;
}

body.page-accounting .accounting-period-pill {
  width: max-content;
  min-width: 128px;
  margin-top: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

body.page-accounting .accounting-period-pill b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: .86rem;
}

body.page-accounting .accounting-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

body.page-accounting .accounting-metric {
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 108px;
  padding: 22px 24px;
  border: 0;
  border-radius: 15px;
  background: rgba(5, 19, 53, .54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

body.page-accounting .accounting-metric-icon,
body.page-accounting .finance-suite--overview .accounting-metric .accounting-metric-icon {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  color: #3ee5ff;
  background: rgba(7, 142, 190, .42);
}

body.page-accounting .accounting-metric-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-accounting .accounting-metric--paid .accounting-metric-icon {
  color: #59e187;
  background: rgba(20, 126, 84, .46);
}

body.page-accounting .accounting-metric--overdue .accounting-metric-icon {
  color: #ff765f;
  background: rgba(126, 42, 44, .56);
}

body.page-accounting .accounting-metric--dunning .accounting-metric-icon {
  color: #f5aa22;
  background: rgba(142, 94, 15, .58);
}

body.page-accounting .accounting-metric small {
  color: rgba(255,255,255,.83);
  font-size: .75rem;
}

body.page-accounting .accounting-metric b {
  margin-top: 6px;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

body.page-accounting .accounting-metric em {
  margin-top: 7px;
  font-size: .76rem;
}

body.page-accounting .accounting-grid {
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 16px;
}

body.page-accounting .accounting-panel {
  border-color: rgba(210, 222, 238, .92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 16%, rgba(36, 211, 222, .10), transparent 30%),
    rgba(255,255,255,.88);
  box-shadow: 0 22px 45px rgba(19, 36, 72, .075);
}

body.page-accounting .accounting-panel--primary {
  min-height: 672px;
  padding: 20px 20px 18px;
}

body.page-accounting .accounting-panel .section-head {
  margin-bottom: 14px;
}

body.page-accounting .accounting-panel .section-head h3 {
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

body.page-accounting .accounting-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 200px auto auto;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-accounting .accounting-filter-form .commerce-filter-control span {
  display: none;
}

body.page-accounting .accounting-filter-form input,
body.page-accounting .accounting-filter-form select,
body.page-accounting .accounting-filter-form summary,
body.page-accounting .accounting-filter-form .btn {
  min-height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.86);
}

body.page-accounting .accounting-table-head {
  grid-template-columns: 1.3fr 1.1fr .85fr .8fr .8fr 96px;
  padding: 4px 8px 11px;
  color: #52647e;
}

body.page-accounting .accounting-list {
  gap: 0;
  border: 1px solid rgba(214, 224, 239, .88);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

body.page-accounting .accounting-row {
  grid-template-columns: minmax(290px, 1.3fr) minmax(300px, 1fr) minmax(165px, .44fr);
  min-height: 72px;
  padding: 12px 12px 12px 18px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255,255,255,.74);
  box-shadow: inset 4px 0 0 var(--finance-blue);
}

body.page-accounting .accounting-row:last-child {
  border-bottom: 0;
}

body.page-accounting .accounting-row-title .admin-chip {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

body.page-accounting .accounting-row-title strong {
  font-size: .82rem;
  line-height: 1.18;
}

body.page-accounting .accounting-row-title small {
  color: #536780;
  font-size: .72rem;
}

body.page-accounting .accounting-row-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.page-accounting .accounting-row-facts span:nth-child(2),
body.page-accounting .accounting-row-facts span:nth-child(3) {
  display: none;
}

body.page-accounting .accounting-row-facts span {
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
}

body.page-accounting .accounting-row-facts b {
  color: #10203d;
  font-size: .78rem;
}

body.page-accounting .accounting-row-facts small {
  margin-top: 2px;
  color: #667994;
  font-size: .55rem;
}

body.page-accounting .accounting-row-actions {
  gap: 6px;
}

body.page-accounting .accounting-row-primary-actions {
  display: flex;
  flex-wrap: nowrap;
}

body.page-accounting .accounting-row-actions .btn,
body.page-accounting .accounting-row-actions button,
body.page-accounting .accounting-row-menu summary {
  min-height: 30px;
  padding-inline: 12px;
  border-radius: 9px;
  font-size: .68rem;
}

body.page-accounting .accounting-side-stack {
  gap: 12px;
}

body.page-accounting .accounting-side-stack .accounting-panel {
  padding: 16px;
}

body.page-accounting .accounting-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-accounting .accounting-quick-action {
  min-height: 58px;
  padding: 12px;
  border-radius: 11px;
}

body.page-accounting .accounting-dunning-card,
body.page-accounting .accounting-entry {
  border-radius: 11px;
  padding: 10px;
}

body.page-accounting .accounting-export-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-finance .commerce-worklist-hero.workspace-filter-bar--single {
  display: grid;
  grid-template-rows: 78px 48px !important;
  gap: 0 !important;
  height: 126px !important;
  min-height: 126px !important;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 0%, rgba(55, 220, 216, .17), transparent 33%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,250,255,.86));
}

body.page-finance .commerce-worklist-hero-row {
  height: 78px !important;
  min-height: 74px;
  grid-template-columns: minmax(230px, .7fr) minmax(330px, 1fr) auto;
  padding: 16px 20px 12px;
}

body.page-finance .commerce-worklist-title h2 {
  font-size: 1.32rem;
}

body.page-finance .commerce-worklist-title p {
  font-size: .8rem;
}

body.page-finance .finance-worklist-panel {
  gap: 0;
  padding: 16px;
  border-radius: 18px;
}

body.page-finance .commerce-worklist-hero .commerce-compact-filter-form {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: end;
  min-height: 48px;
  height: 48px !important;
  padding: 6px 20px 10px;
  border-top: 1px solid rgba(214, 224, 239, .82);
  background: rgba(255,255,255,.54);
}

body.page-finance .commerce-worklist-hero .commerce-filter-control {
  flex: 0 0 150px;
}

body.page-finance .commerce-worklist-hero .commerce-filter-control--search {
  flex: 1 1 auto;
}

body.page-finance .commerce-worklist-hero .commerce-filter-control span {
  display: none;
}

body.page-finance .commerce-worklist-hero .commerce-filter-drawer,
body.page-finance .commerce-worklist-hero .commerce-filter-actions {
  flex: 0 0 auto;
}

body.page-finance .finance-worklist-panel-head {
  padding: 0 4px 12px;
}

body.page-finance .finance-worklist-table-head {
  grid-template-columns: minmax(330px, 1.55fr) 96px 112px 112px 112px 128px 118px;
  padding: 12px 10px 9px;
}

body.page-finance .worklist-entry-line {
  grid-template-columns: minmax(330px, 1.55fr) minmax(520px, 1.65fr) minmax(132px, .38fr);
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  border-radius: 13px;
}

body.page-finance .commerce-record-list--line {
  gap: 8px;
}

body.page-finance .worklist-entry-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.page-finance .worklist-entry-facts span {
  min-height: 34px;
}

body.page-finance .worklist-primary-action {
  min-width: 68px;
}

.finance-flow-modal[hidden] {
  display: none !important;
}

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

.finance-flow-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 35, .58);
  backdrop-filter: blur(13px);
}

.finance-flow-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1000px, calc(100vw - 56px));
  max-height: calc(100dvh - 56px);
  overflow: auto;
  border: 1px solid rgba(219, 228, 243, .9);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 70px rgba(4, 12, 32, .34);
  outline: none;
}

.finance-flow-close {
  position: absolute;
  top: 24px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(207, 218, 236, .88);
  border-radius: 12px;
  color: #10203d;
  background: rgba(255,255,255,.86);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
}

.finance-flow-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  min-height: 210px;
  padding: 44px 36px 34px;
  background:
    radial-gradient(circle at 18% 20%, rgba(85, 242, 228, .32), transparent 42%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.86), transparent 30%),
    linear-gradient(135deg, #c9fbfb 0%, #e6fbff 52%, #f7fcff 100%);
  overflow: hidden;
}

.finance-flow-hero::after {
  content: "";
  position: absolute;
  inset: 32px 26% auto 46%;
  height: 150px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, rgba(255,255,255,.45) 0 1px, transparent 1px 19px);
  opacity: .7;
  pointer-events: none;
}

.finance-flow-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 14px;
}

.finance-flow-hero-copy h3 {
  margin: 0;
  color: #07152f;
  font-size: 2.08rem;
  letter-spacing: -.052em;
  line-height: 1.02;
}

.finance-flow-hero-copy > strong {
  color: #164bd6;
  font-size: 1.16rem;
}

.finance-flow-hero-copy p {
  margin: 0;
  color: #10203d;
  font-size: 1rem;
}

.finance-flow-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(215, 225, 242, .9);
  border-radius: 13px;
  background: rgba(255,255,255,.80);
  box-shadow: 0 18px 36px rgba(15, 34, 72, .10);
}

.finance-flow-summary div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 36px;
}

.finance-flow-summary dt {
  color: #536780;
  font-size: .78rem;
}

.finance-flow-summary dd {
  margin: 0;
  color: #07152f;
  font-weight: 900;
  text-align: right;
}

.finance-flow-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 36px 24px;
}

.finance-flow-action-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  padding: 18px;
  border: 1px solid #d8e2f3;
  border-radius: 13px;
  background: rgba(255,255,255,.94);
}

.finance-flow-card-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #3151e7;
  background: #eaf2ff;
}

.finance-flow-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-flow-action-card--accept .finance-flow-card-icon {
  color: #159566;
  background: #e2f8ed;
}

.finance-flow-action-card--invoice .finance-flow-card-icon {
  color: #f07a20;
  background: #fff0dc;
}

.finance-flow-action-card h4 {
  margin: 0;
  color: #07152f;
  font-size: 1.08rem;
}

.finance-flow-action-card p {
  margin: 0;
  color: #516781;
  font-size: .88rem;
  line-height: 1.48;
}

.finance-flow-action-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #dce5f3;
  list-style: none;
}

.finance-flow-action-card li {
  position: relative;
  padding-left: 28px;
  color: #425878;
  font-size: .86rem;
}

.finance-flow-action-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #18a77b;
  border-radius: 999px;
  background: radial-gradient(circle, #18a77b 0 3px, transparent 4px);
}

.finance-flow-note,
.finance-flow-warning {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  color: #2638c7;
  background: #f0efff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.42;
}

.finance-flow-warning {
  color: #bf5b00;
  background: #fff0df;
}

.finance-flow-action-card > .btn,
.finance-flow-action-card > form .btn {
  min-height: 42px;
  border-radius: 10px;
}

.finance-flow-action-card > form,
.finance-flow-invoice-options form {
  margin: 0;
}

.finance-flow-invoice-options {
  display: grid;
  gap: 8px;
}

.finance-flow-invoice-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #d7e1f2;
  border-radius: 10px;
  color: #07152f;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.finance-flow-invoice-options button::after {
  content: ">";
  align-self: center;
  color: #07152f;
  font-size: 1.2rem;
  font-weight: 800;
}

.finance-flow-invoice-options strong,
.finance-flow-invoice-options span {
  display: block;
  grid-column: 1;
}

.finance-flow-invoice-options strong {
  font-size: .88rem;
}

.finance-flow-invoice-options span {
  margin-top: 3px;
  color: #667994;
  font-size: .74rem;
}

.finance-flow-footer {
  display: grid;
  grid-template-columns: 142px minmax(0, 150px) minmax(0, 170px);
  justify-content: space-between;
  gap: 14px;
  padding: 24px 36px;
  border-top: 1px solid #dce5f3;
}

.finance-flow-footer .btn {
  min-height: 38px;
  border-radius: 9px;
}

.finance-flow-footer .btn:nth-child(2) {
  margin-left: auto;
}

body.page-finance .commerce-booking-modal {
  z-index: 100;
}

body.page-finance .commerce-booking-dialog {
  width: min(760px, calc(100vw - 40px));
  border-radius: 16px;
  background: #fff;
}

body.page-finance .commerce-booking-head {
  padding: 20px 22px 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(63, 223, 213, .18), transparent 36%),
    linear-gradient(180deg, #fff, #f8fbff);
}

body.page-finance .commerce-booking-body {
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 16px;
  padding: 18px;
}

@media (max-width: 1280px) {
  body.page-finance .finance-suite-tabs {
    left: 174px;
  }

  body.page-accounting .accounting-hero-main {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    padding-inline: 22px;
  }

  body.page-accounting .accounting-metrics {
    gap: 12px;
  }

  body.page-accounting .accounting-metric {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px;
  }

  body.page-accounting .accounting-metric-icon,
  body.page-accounting .finance-suite--overview .accounting-metric .accounting-metric-icon {
    width: 56px;
    height: 56px;
  }

  body.page-accounting .accounting-metric b {
    font-size: 1.26rem;
  }

  body.page-accounting .accounting-row {
    grid-template-columns: minmax(270px, 1.18fr) minmax(270px, .92fr) minmax(150px, .4fr);
  }

  body.page-finance .worklist-entry-line {
    grid-template-columns: minmax(290px, 1.2fr) minmax(420px, 1.5fr) minmax(124px, .42fr);
  }
}

@media (max-width: 1180px) {
  body.page-finance {
    --sidebar-w: 1fr;
  }

  body.page-finance .finance-suite-tabs {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-finance .content-shell {
    padding-top: 14px;
  }

  body.page-accounting .accounting-hero-main,
  body.page-accounting .accounting-grid,
  body.page-accounting .accounting-row,
  body.page-finance .worklist-entry-line,
  .finance-flow-hero,
  .finance-flow-action-grid,
  body.page-finance .commerce-booking-body {
    grid-template-columns: 1fr;
  }

  body.page-accounting .accounting-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-accounting .accounting-row-facts,
  body.page-finance .worklist-entry-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-flow-dialog {
    width: min(720px, calc(100vw - 28px));
  }

  .finance-flow-action-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body.page-finance .finance-suite-tabs {
    grid-template-columns: 1fr;
  }

  body.page-accounting .accounting-metrics,
  body.page-accounting .accounting-row-facts,
  body.page-accounting .accounting-filter-form,
  body.page-finance .commerce-worklist-hero-row,
  body.page-finance .commerce-compact-filter-form,
  body.page-finance .worklist-entry-facts,
  .finance-flow-footer {
    grid-template-columns: 1fr;
  }

  body.page-accounting .accounting-hero-main,
  .finance-flow-hero,
  .finance-flow-action-grid,
  .finance-flow-footer {
    padding-inline: 18px;
  }

  .finance-flow-hero-copy h3 {
    font-size: 1.62rem;
  }
}

/* Finance native screenshot rebuild: own layout layer, not the legacy ERP cards */
body.page-finance {
  --sidebar-w: 196px;
  --fn-bg: #f4f7fb;
  --fn-ink: #101a36;
  --fn-muted: #66728b;
  --fn-blue: #3054df;
  --fn-line: #dbe4f1;
  --fn-soft: #f7faff;
  background:
    radial-gradient(circle at 74% 0%, rgba(53, 221, 216, .10), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #eef3f9 100%);
  color: var(--fn-ink);
}

body.page-finance .app-topbar-shell {
  display: flex !important;
}

body.page-finance .content-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

body.page-finance .sidebar {
  width: 196px;
  padding: 24px 10px 18px;
  border-right: 1px solid #dce3ef;
  background: rgba(255,255,255,.82);
  box-shadow: inset -1px 0 0 rgba(15, 32, 70, .04);
  overflow-x: hidden;
}

body.page-finance .sidebar-brand {
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-finance .sidebar-brand img {
  width: 86px;
}

body.page-finance .sidebar-nav {
  gap: 16px;
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
}

body.page-finance .nav-label {
  padding-left: 14px;
  color: #7d89a2;
  font-size: .65rem;
  letter-spacing: .12em;
}

body.page-finance .nav-group a,
body.page-finance .nav-group-toggle {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #536078;
  font-size: .78rem;
  font-weight: 800;
}

body.page-finance .nav-group a.active {
  color: #fff;
  background: linear-gradient(135deg, #08224a 0%, #0f6f84 100%);
  box-shadow: 0 12px 24px rgba(8, 87, 112, .22);
}

body.page-finance .sidebar-nav-shell,
body.page-finance .sidebar-section,
body.page-finance .sidebar-link-stack,
body.page-finance .nav-group--sidebar {
  min-width: 0;
  max-width: 100%;
}

body.page-finance .sidebar-section-title,
body.page-finance .sidebar-group-heading {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
  padding-right: 0;
}

body.page-finance .sidebar-section-title::after,
body.page-finance .sidebar-group-heading::after {
  min-width: 10px;
}

body.page-finance .nav-text,
body.page-finance .nav-label--button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-offers,
body.page-invoices {
  --sidebar-w: 72px;
}

body.page-offers .sidebar,
body.page-invoices .sidebar {
  width: 72px;
  padding: 24px 10px;
}

body.page-offers .sidebar-brand,
body.page-invoices .sidebar-brand {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
}

body.page-offers .sidebar-brand img,
body.page-invoices .sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

body.page-offers .sidebar-nav,
body.page-invoices .sidebar-nav {
  gap: 12px;
  margin-top: 0;
}

body.page-offers .nav-label,
body.page-invoices .nav-label,
body.page-offers .nav-text,
body.page-invoices .nav-text,
body.page-offers .nav-group-toggle .nav-label,
body.page-invoices .nav-group-toggle .nav-label {
  display: none !important;
}

body.page-offers .nav-group,
body.page-invoices .nav-group {
  gap: 8px;
}

body.page-offers .nav-group + .nav-group,
body.page-invoices .nav-group + .nav-group {
  padding-top: 0;
  border-top: 0;
}

body.page-offers .nav-group a,
body.page-invoices .nav-group a,
body.page-offers .nav-group-toggle,
body.page-invoices .nav-group-toggle {
  width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
}

body.page-offers .nav-link-icon,
body.page-invoices .nav-link-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

body.page-offers .nav-link-icon svg,
body.page-invoices .nav-link-icon svg {
  width: 20px;
  height: 20px;
}

.finance-native,
.finance-native * {
  box-sizing: border-box;
}

.finance-native {
  min-height: calc(100vh - 90px);
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at 72% 8%, rgba(91, 225, 219, .12), transparent 20%),
    linear-gradient(180deg, rgba(249,251,255,.95), rgba(240,245,251,.96));
}

.finance-native-topbar {
  height: 92px;
  display: grid;
  grid-template-columns: 180px minmax(310px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 8px 0 12px;
}

.finance-native-topbar-title h1 {
  margin: 0;
  color: #101a36;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.finance-native-tabs {
  justify-self: start;
  display: inline-flex;
  height: 50px;
  padding: 7px;
  border: 1px solid rgba(219, 228, 241, .72);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(28, 44, 85, .05);
}

.finance-native-content-tabs {
  margin: 0 0 16px;
}

.finance-native-content-tabs a:focus-visible,
.finance-native-document-row:focus-visible,
.finance-native-continue-dialog:focus-visible,
.commerce-booking-dialog:focus-visible {
  outline: 3px solid rgba(48, 84, 223, .28);
  outline-offset: 2px;
}

.finance-native-tabs a {
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  color: #18233e;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.finance-native-tabs a.is-active {
  color: #101a36;
  background: linear-gradient(180deg, #e6e8ff, #dadcfb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.finance-native-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.finance-native-icon-button,
.finance-native-user {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  color: #52617a;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 35, 74, .04);
}

.finance-native-icon-button svg,
.finance-native-user svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-icon-button--bell {
  position: relative;
  width: 44px;
  justify-content: center;
  padding: 0;
}

.finance-native-icon-button--bell b {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #3353e7;
  font-size: .68rem;
}

.finance-native-user {
  min-width: 222px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  grid-template-rows: 18px 16px;
  gap: 0 10px;
  padding: 8px 12px;
  color: #101a36;
}

.finance-native-user > span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e1e6ff;
  color: #2031a7;
  font-size: .76rem;
  font-weight: 900;
}

.finance-native-user strong,
.finance-native-user small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-native-user strong {
  grid-row: 1;
  font-size: .82rem;
}

.finance-native-user small {
  grid-row: 2;
  color: #65718b;
  font-size: .72rem;
}

.finance-native-user svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 14px;
  height: 14px;
}

.finance-native-hero--dark {
  position: relative;
  height: 171px;
  min-height: 171px;
  display: grid;
  grid-template-columns: minmax(186px, 218px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 34%, rgba(8, 105, 217, .24), transparent 24%),
    linear-gradient(106deg, #071335 0%, #08224a 54%, #07123a 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(8, 20, 56, .18);
  overflow: hidden;
}

.finance-native-hero--dark::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 560px;
  background: repeating-radial-gradient(ellipse at 62% 45%, rgba(78, 177, 255, .16) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.finance-native-hero-copy,
.finance-native-kpis {
  position: relative;
  z-index: 1;
}

.finance-native-hero-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.48rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.finance-native-hero-copy p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 680;
  line-height: 1.35;
}

.finance-native-period {
  width: min(100%, 248px);
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-size: .70rem;
}

.finance-native-period label {
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.finance-native-period label > span {
  color: rgba(255,255,255,.74);
  font-size: .62rem;
  font-weight: 760;
}

.finance-native-period input[type="month"],
.finance-native-period input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 22px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: .76rem;
  font-family: inherit;
  font-weight: 820;
  color-scheme: dark;
  cursor: pointer;
}

.finance-native-period input[type="month"]::-webkit-calendar-picker-indicator {
  opacity: .82;
  cursor: pointer;
}

.finance-native-period input[type="number"]::-webkit-inner-spin-button,
.finance-native-period input[type="number"]::-webkit-outer-spin-button {
  opacity: .5;
}

.finance-native-period-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.16);
}

.finance-native-period-mode a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: .64rem;
  font-weight: 850;
  text-decoration: none;
}

.finance-native-period-mode a.is-active {
  color: #10203d;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.finance-native-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.finance-native-kpi {
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(13, 35, 72, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 36px rgba(0,0,0,.18);
}

.finance-native-kpi > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 188, 229, .24);
  color: #23d5f4;
}

.finance-native-kpi--green > span { color: #44d36d; background: rgba(27, 149, 89, .34); }
.finance-native-kpi--red > span { color: #ff6a55; background: rgba(200, 68, 58, .36); }
.finance-native-kpi--gold > span { color: #e8a936; background: rgba(178, 126, 22, .42); }

.finance-native-kpi svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-kpi small,
.finance-native-kpi strong,
.finance-native-kpi em {
  display: block;
  font-style: normal;
}

.finance-native-kpi small {
  color: rgba(255,255,255,.88);
  font-size: .74rem;
  font-weight: 850;
}

.finance-native-kpi strong {
  margin-top: 7px;
  color: #fff;
  font-size: clamp(1.08rem, 1.12vw, 1.36rem);
  line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.finance-native-kpi--green strong { color: #49d76f; }
.finance-native-kpi--red strong { color: #ff654f; }
.finance-native-kpi--gold strong { color: #dfa437; }

.finance-native-kpi em {
  margin-top: 8px;
  color: rgba(255,255,255,.74);
  font-size: .78rem;
}

.finance-native-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.finance-native-card {
  border: 1px solid rgba(219, 228, 241, .86);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 38px rgba(31, 51, 93, .07);
}

.finance-native-workbench {
  position: relative;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(73, 210, 209, .18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(250,253,255,.84) 58%, rgba(235,255,251,.76) 100%);
  box-shadow: 0 20px 44px rgba(31, 51, 93, .08);
}

.finance-native-workbench::after {
  content: "";
  position: absolute;
  right: 342px;
  top: -90px;
  bottom: -110px;
  width: 240px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(60, 210, 206, .16), transparent 64%);
  pointer-events: none;
}

.finance-native-workbench--ledger::after {
  right: -90px;
  opacity: .75;
}

.finance-native-open-posts {
  position: relative;
  z-index: 1;
  width: min(585px, calc(100% - 392px));
  max-width: 585px;
  min-height: 0;
}

.finance-native-workbench--ledger .finance-native-open-posts {
  width: 100%;
  max-width: none;
  min-height: 0;
}

.finance-native-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.finance-native-section-head h3 {
  margin: 0;
  color: #10203d;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.finance-native-section-head p {
  margin: 4px 0 0;
  color: #66728b;
  font-size: .76rem;
}

.finance-native-searchbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 210px 42px;
  gap: 8px;
  margin-bottom: 24px;
  scroll-margin-top: 110px;
}

.finance-native-doc-search {
  scroll-margin-top: 110px;
}

.finance-native-searchbar label {
  position: relative;
}

.finance-native-searchbar input,
.finance-native-searchbar select,
.finance-native-searchbar button,
.finance-native-booking-form input,
.finance-native-booking-form select,
.finance-native-doc-search input,
.finance-native-doc-search select,
.finance-native-doc-search button {
  height: 38px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: #1d2946;
  font: inherit;
  font-size: .8rem;
}

.finance-native-searchbar input {
  width: 100%;
  padding: 0 40px 0 16px;
}

.finance-native-searchbar svg {
  position: absolute;
  right: 13px;
  top: 10px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #53617a;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-searchbar select {
  padding: 0 12px;
}

.finance-native-searchbar button {
  display: grid;
  place-items: center;
}

.finance-native-searchbar button svg {
  position: static;
}

.finance-native-table-head {
  display: grid;
  grid-template-columns: 122px minmax(180px, 1fr) 82px 90px minmax(124px, .62fr) minmax(120px, .66fr);
  gap: 8px;
  padding: 0 8px 12px;
  color: #5e6b84;
  font-size: .68rem;
  font-weight: 850;
}

.finance-native-post-list {
  display: grid;
  gap: 0;
}

.finance-native-post {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 22px minmax(86px, .66fr) minmax(180px, 1.5fr) 82px 90px minmax(124px, .62fr) minmax(120px, .66fr);
  gap: 8px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid #dbe4f1;
  border-radius: 9px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 3px 0 0 #2f6fe9;
}

.finance-native-post + .finance-native-post {
  margin-top: 0;
  border-top: 0;
}

.finance-native-post--overdue {
  box-shadow: inset 3px 0 0 #ff614d;
}

.finance-native-post--paid {
  box-shadow: inset 3px 0 0 #1caf73;
}

.finance-native-post-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #50617c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-post strong,
.finance-native-post small {
  display: block;
}

.finance-native-post strong {
  color: #13203c;
  font-size: .74rem;
  line-height: 1.2;
}

.finance-native-post-title strong {
  white-space: nowrap;
}

.finance-native-post small {
  margin-top: 3px;
  color: #697691;
  font-size: .64rem;
}

.finance-native-post > div:nth-child(3) small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
}

.finance-native-money {
  text-align: right;
}

.finance-native-post-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.finance-native-post-status span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 76px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1e6fe2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .62rem;
  font-weight: 850;
}

.finance-native-post--overdue .finance-native-post-status span {
  color: #f04b42;
  background: #fff0f0;
}

.finance-native-post-status a,
.finance-native-post-status button {
  min-width: 44px;
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(195, 210, 234, .92);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #243451;
  font: inherit;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 51, 93, .06);
}

.finance-native-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.finance-native-post-actions button,
.finance-native-post-actions a {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #cfdced;
  border-radius: 999px;
  background: #fff;
  color: #10203d;
  font: inherit;
  font-size: .64rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.finance-native-post-actions button:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3154df, #2337b5);
  box-shadow: 0 8px 18px rgba(49, 84, 223, .16);
}

.finance-native-list-foot {
  margin-top: 18px;
  color: #78849b;
  font-size: .78rem;
}

.finance-native-payment-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 8px;
  bottom: 0;
  width: 406px;
  min-height: 675px;
  padding: 24px 18px;
  border-left: 1px solid rgba(219, 228, 241, .72);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88)),
    radial-gradient(circle at 0% 100%, rgba(89, 217, 202, .12), transparent 42%);
  box-shadow: -12px 0 34px rgba(39, 77, 120, .07), 0 22px 45px rgba(31, 51, 93, .09);
}

.finance-native-payment-panel .finance-native-section-head button,
.finance-native-payment-panel .finance-native-section-head .finance-native-payment-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #65718b;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}

.finance-native-booking-target {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  background: #fbfdff;
}

.finance-native-booking-target svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #3154df;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-booking-target strong,
.finance-native-booking-target small,
.finance-native-booking-target b {
  display: block;
}

.finance-native-booking-target b {
  color: #f04438;
  text-align: right;
}

.finance-native-booking-target b small {
  color: #f04438;
  font-size: .64rem;
}

.finance-native-booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
  margin-top: 18px;
}

.finance-native-booking-subtitle {
  grid-column: 1 / -1;
  margin: 0 0 -2px;
  color: #1f2b46;
  font-size: .82rem;
  font-weight: 900;
}

.finance-native-booking-form label {
  display: grid;
  gap: 7px;
}

.finance-native-booking-form label span {
  color: #697691;
  font-size: .72rem;
  font-weight: 800;
}

.finance-native-booking-form input,
.finance-native-booking-form select {
  width: 100%;
  padding: 0 12px;
}

.finance-native-booking-wide,
.finance-native-booking-ok,
.finance-native-booking-actions {
  grid-column: 1 / -1;
}

.finance-native-booking-ok {
  margin: 0;
  padding: 13px 14px;
  border-radius: 8px;
  background: #eaf8f0;
  color: #348461;
  font-size: .76rem;
  font-weight: 760;
}

.finance-native-booking-actions {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 10px;
  margin-top: 4px;
}

.finance-native-booking-actions .btn {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.finance-native-side {
  display: grid;
  gap: 12px;
}

.finance-native-action-card,
.finance-native-mini-card,
.finance-native-journal {
  padding: 16px;
}

.finance-native-side h3 {
  margin: 0;
  color: #11203c;
  font-size: .98rem;
}

.finance-native-side p {
  margin: 4px 0 12px;
  color: #66728b;
  font-size: .76rem;
}

.finance-native-side-kicker {
  display: block;
  margin-bottom: 5px;
  color: #5c6a85;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.finance-native-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.finance-native-quick-grid a,
.finance-native-quick-grid button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,249,255,.92));
  color: #1b2945;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 51, 93, .05);
}

.finance-native-quick-grid .finance-native-quick-grid-primary {
  min-height: 68px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #09224a 0%, #0e7488 100%);
  box-shadow: 0 14px 28px rgba(8, 63, 92, .18);
}

.finance-native-quick-grid i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef5ff;
  color: #2573d9;
  font-style: normal;
}

.finance-native-quick-grid strong,
.finance-native-quick-grid small {
  display: block;
}

.finance-native-quick-grid strong {
  color: inherit;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.15;
}

.finance-native-quick-grid small {
  margin-top: 4px;
  color: #66728b;
  font-size: .66rem;
  font-weight: 740;
  line-height: 1.25;
}

.finance-native-quick-grid .finance-native-quick-grid-primary i {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.finance-native-quick-grid .finance-native-quick-grid-primary small {
  color: rgba(255,255,255,.78);
}

.finance-native-quick-grid svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-dunning-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
  font-size: .72rem;
}

.finance-native-dunning-line span {
  border-radius: 999px;
  background: #eaf6ff;
  color: #1473b8;
  text-align: center;
  font-weight: 850;
}

.finance-native-dunning-line b {
  text-align: right;
}

.finance-native-mini-card > a,
.finance-native-journal > a {
  min-height: 36px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  color: #16244a;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
}

.finance-native-export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.finance-native-export-buttons button {
  height: 36px;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  background: #fff;
  color: #117e80;
  font-size: .72rem;
  font-weight: 900;
}

.finance-native-export-buttons button:first-child {
  border-color: #a8e4dd;
}

.finance-native-export-buttons button:last-child {
  color: #fff;
  background: #3546ce;
}

.finance-native-journal {
  position: relative;
}

.finance-native-journal div {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid #27a677;
}

.finance-native-journal time {
  color: #6b7790;
  font-size: .72rem;
}

.finance-native-journal span {
  color: #52617a;
  font-size: .72rem;
}

.finance-native-empty {
  padding: 20px;
  border: 1px dashed #dbe4f1;
  border-radius: 10px;
  color: #66728b;
}

.finance-native-voucher-modal[hidden] {
  display: none !important;
}

.finance-native-voucher-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
}

.finance-native-voucher-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 42, .58);
  backdrop-filter: blur(8px);
}

.finance-native-voucher-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  display: grid;
  overflow: auto;
  border: 1px solid rgba(219, 228, 241, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 34px 92px rgba(4, 16, 36, .34);
}

.finance-native-voucher-head {
  padding: 28px 34px 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(60, 210, 206, .24), transparent 32%),
    linear-gradient(135deg, #eefcff 0%, #f7fbff 74%);
  border-bottom: 1px solid #dbe4f1;
}

.finance-native-voucher-head span {
  display: block;
  color: #62718b;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-native-voucher-head h3 {
  margin: 8px 0 8px;
  color: #0f1d39;
  font-size: 1.95rem;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.finance-native-voucher-head p {
  max-width: 620px;
  margin: 0;
  color: #52617a;
  font-size: .88rem;
  line-height: 1.45;
}

.finance-native-voucher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 34px;
}

.finance-native-voucher-choice {
  min-height: 126px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 8px 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid #dbe4f1;
  border-radius: 14px;
  background: #fff;
  color: #13203c;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 51, 93, .06);
  cursor: pointer;
}

.finance-native-voucher-choice--primary {
  border-color: rgba(29, 197, 193, .42);
  background: linear-gradient(135deg, #f1fffd, #fff);
}

.finance-native-voucher-choice i {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf7ff;
  color: #176cd7;
}

.finance-native-voucher-choice svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-voucher-choice strong {
  color: #11203c;
  font-size: .94rem;
  line-height: 1.2;
}

.finance-native-voucher-choice small {
  color: #65718b;
  font-size: .76rem;
  line-height: 1.38;
}

.finance-native-voucher-choice.is-disabled {
  opacity: .62;
  background: #f6f8fb;
}

.finance-native-voucher-choice.is-selected {
  border-color: rgba(49, 84, 223, .5);
  box-shadow: 0 14px 30px rgba(49, 84, 223, .1), inset 0 0 0 1px rgba(49, 84, 223, .16);
}

.finance-native-manual-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 34px 24px;
  padding: 18px;
  border: 1px solid #dbe4f1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 0%, rgba(49, 84, 223, .1), transparent 34%),
    linear-gradient(135deg, #fff, #f7fbff);
}

.finance-native-manual-form-head,
.finance-native-manual-form-wide,
.finance-native-manual-check,
.finance-native-manual-actions {
  grid-column: 1 / -1;
}

.finance-native-manual-form-head {
  display: grid;
  gap: 3px;
  padding-bottom: 4px;
}

.finance-native-manual-form-head span {
  color: #5f6e89;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-native-manual-form-head strong {
  color: #10203d;
  font-size: 1.02rem;
}

.finance-native-manual-form-head small {
  color: #65718b;
  font-size: .75rem;
}

.finance-native-manual-form label {
  display: grid;
  gap: 6px;
}

.finance-native-manual-form label span {
  color: #65718b;
  font-size: .68rem;
  font-weight: 900;
}

.finance-native-manual-form input,
.finance-native-manual-form select,
.finance-native-manual-form textarea {
  width: 100%;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  background: rgba(255,255,255,.9);
  color: #15233f;
  font: inherit;
  font-size: .78rem;
}

.finance-native-manual-form input,
.finance-native-manual-form select {
  height: 38px;
  padding: 0 11px;
}

.finance-native-manual-form textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
}

.finance-native-manual-check {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.finance-native-manual-check input {
  width: 17px;
  height: 17px;
}

.finance-native-manual-actions {
  display: flex;
  justify-content: flex-end;
}

.finance-native-manual-actions .btn {
  min-width: 168px;
}

.finance-native-voucher-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 34px 28px;
}

/* Native offers / invoices overview */
.finance-native--documents {
  padding-bottom: 24px;
}

.finance-native-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 320px);
  gap: 18px;
  min-height: auto;
}

.finance-native-doc-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.finance-native-doc-rail {
  order: 2;
  padding: 18px;
  border: 1px solid rgba(219, 228, 241, .86);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 38px rgba(31, 51, 93, .07);
}

.finance-native-doc-rail h2 {
  margin: 0;
  font-size: 1.12rem;
}

.finance-native-doc-rail > span {
  display: block;
  margin-top: 18px;
  color: #6f7b92;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-native-doc-rail > strong {
  display: block;
  margin-top: 8px;
  color: #20304f;
  font-size: 1.58rem;
  letter-spacing: -.055em;
}

.finance-native-doc-rail > p {
  margin: 5px 0 22px;
  color: #7a859a;
  font-size: .78rem;
  font-weight: 800;
}

.finance-native-doc-rail-list {
  display: grid;
  gap: 10px;
}

.finance-native-doc-rail-list a,
.finance-native-doc-rail-list button {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-left: 4px solid #3154df;
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #18233e;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(28, 44, 85, .05);
}

.finance-native-doc-rail-list a.is-green,
.finance-native-doc-rail-list button.is-green { border-left-color: #14a56c; }
.finance-native-doc-rail-list a.is-orange,
.finance-native-doc-rail-list button.is-orange { border-left-color: #db7b12; }
.finance-native-doc-rail-list a.is-red,
.finance-native-doc-rail-list button.is-red { border-left-color: #f05b4f; }

.finance-native-doc-rail-list span {
  font-size: .82rem;
  font-weight: 900;
}

.finance-native-doc-rail-list small {
  color: #717d94;
  font-size: .7rem;
}

.finance-native-doc-main {
  order: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(219, 228, 241, .86);
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 28%, rgba(73, 210, 209, .14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(250,253,255,.86) 58%, rgba(235,255,251,.72) 100%);
  box-shadow: 0 20px 44px rgba(31, 51, 93, .08);
}

.finance-native-doc-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 520px) auto;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe4f1;
}

.finance-native-doc-head h2 {
  margin: 0;
  font-size: 1.36rem;
  letter-spacing: -.045em;
}

.finance-native-doc-head p {
  margin: 5px 0 0;
  color: #717d94;
  font-size: .78rem;
}

.finance-native-doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.finance-native-doc-pills span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(219, 228, 241, .86);
  border-radius: 999px;
  background: rgba(248, 250, 255, .9);
  color: #5c6a86;
  font-size: .68rem;
  font-weight: 800;
}

.finance-native-doc-pills b {
  color: #14213e;
  font-size: .72rem;
}

.finance-native-doc-search {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(124px, 150px) minmax(130px, 160px) 82px;
  gap: 8px;
}

.finance-native-doc-search input,
.finance-native-doc-search select,
.finance-native-doc-search button {
  padding: 0 12px;
}

.finance-native-doc-search button {
  color: #fff;
  border-color: transparent;
  background: #3154df;
  font-weight: 850;
}

.finance-native-document-list {
  display: grid;
  gap: 10px;
  padding: 8px 0 24px;
}

.finance-native-offer-entry {
  display: grid;
  gap: 0;
}

.finance-native-offer-billing {
  width: calc(100% - 38px);
  margin: 0 10px 0 28px;
  border: 1px solid rgba(201, 214, 234, .88);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(246, 249, 254, .9);
}

.finance-native-offer-billing summary {
  min-height: 30px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  color: #45546e;
  cursor: pointer;
  list-style: none;
}

.finance-native-offer-billing summary::-webkit-details-marker {
  display: none;
}

.finance-native-offer-billing summary strong,
.finance-native-offer-billing summary small {
  display: inline;
  font-size: .66rem;
}

.finance-native-offer-billing summary small {
  margin-left: 8px;
  color: #7a879c;
}

.finance-native-offer-billing summary > b {
  color: #3154df;
  font-size: .65rem;
}

.finance-native-offer-billing-marker {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7edff;
}

.finance-native-offer-billing-marker::before {
  content: "+";
  color: #3154df;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}

.finance-native-offer-billing[open] .finance-native-offer-billing-marker::before {
  content: "\2212";
}

.finance-native-offer-billing-list {
  display: grid;
  gap: 5px;
  padding: 6px 9px 9px 35px;
  border-top: 1px solid rgba(210, 221, 238, .8);
}

.finance-native-offer-invoice-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(84px, .7fr) minmax(82px, .65fr) minmax(94px, .7fr) 24px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 12px;
  border: 1px solid rgba(210, 221, 238, .9);
  border-radius: 9px;
  background: rgba(255,255,255,.9);
  color: #1b2946;
  text-align: left;
  cursor: pointer;
}

.finance-native-offer-invoice-row:hover {
  border-color: #bccce7;
  background: #fff;
}

.finance-native-offer-invoice-row strong,
.finance-native-offer-invoice-row b,
.finance-native-offer-invoice-row small {
  display: block;
}

.finance-native-offer-invoice-row strong,
.finance-native-offer-invoice-row b {
  font-size: .72rem;
}

.finance-native-offer-invoice-row small {
  margin-top: 2px;
  color: #77849a;
  font-size: .62rem;
}

.finance-native-offer-invoice-arrow {
  color: #3154df;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.finance-native-document-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 16px 40px rgba(31, 51, 93, .06);
}

.finance-native-document-section + .finance-native-document-section {
  margin-top: 18px;
}

.finance-native-document-section--payables {
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 184, 58, .12), transparent 30%),
    rgba(255,255,255,.7);
}

.finance-native-document-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 8px;
  border-bottom: 1px solid rgba(214, 225, 240, .82);
}

.finance-native-document-section-head span {
  display: block;
  color: #6a7890;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-native-document-section-head h3 {
  margin: 3px 0 2px;
  color: #101d3a;
  font-size: 1rem;
  line-height: 1.1;
}

.finance-native-document-section-head p,
.finance-native-document-section-head strong {
  margin: 0;
  color: #61708a;
  font-size: .72rem;
}

.finance-native-document-section-head strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #22314f;
  font-weight: 900;
}

.finance-native-document-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(220px, 1.8fr) minmax(72px, .62fr) minmax(82px, .66fr) minmax(92px, .72fr) minmax(92px, .72fr) 52px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 8px 16px;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(31, 51, 93, .05), inset 4px 0 0 #3154df;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.finance-native-document-row:hover {
  border-color: #c3d2ea;
  box-shadow: 0 14px 30px rgba(31, 51, 93, .08), inset 4px 0 0 #3154df;
  transform: translateY(-1px);
}

.finance-native-document-row--overdue,
.finance-native-document-row--rejected {
  box-shadow: 0 10px 24px rgba(31, 51, 93, .05), inset 4px 0 0 #f05b4f;
}

.finance-native-document-row--accepted,
.finance-native-document-row--paid {
  box-shadow: 0 10px 24px rgba(31, 51, 93, .05), inset 4px 0 0 #18a56d;
}

.finance-native-document-row--overdue:hover,
.finance-native-document-row--rejected:hover {
  box-shadow: 0 14px 30px rgba(31, 51, 93, .08), inset 4px 0 0 #f05b4f;
}

.finance-native-document-row--accepted:hover,
.finance-native-document-row--paid:hover {
  box-shadow: 0 14px 30px rgba(31, 51, 93, .08), inset 4px 0 0 #18a56d;
}

.finance-native-row-star {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf3ff;
  color: #3154df;
}

.finance-native-row-title strong,
.finance-native-document-row b,
.finance-native-document-row small {
  display: block;
}

.finance-native-row-title strong {
  color: #14213e;
  font-size: .84rem;
}

.finance-native-row-title small,
.finance-native-document-row small {
  margin-top: 3px;
  color: #6f7b92;
  font-size: .68rem;
}

.finance-native-row-status {
  justify-self: start;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: #3154df;
  font-size: .66rem;
  font-weight: 900;
}

.finance-native-document-row b {
  color: #14213e;
  font-size: .78rem;
}

.finance-native-document-row .btn {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .72rem;
}

.finance-native-row-more {
  min-width: 38px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(195, 210, 234, .92);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #1a2744;
  font: inherit;
  font-size: .62rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 51, 93, .06);
}

.finance-native-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 12px;
  padding: 5px;
  border: 1px solid rgba(204, 216, 236, .9);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(31, 51, 93, .06);
}

.finance-native-subtabs a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: #22314f;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
}

.finance-native-subtabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #3154df, #243dc2);
  box-shadow: 0 10px 22px rgba(49, 84, 223, .18);
}

.finance-native-subtabs span {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: inherit;
  font-size: .64rem;
}

/* Native continuation dialog, matching the supplied reference */
.finance-native-modal[hidden] {
  display: none !important;
}

.finance-native-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: start center;
  padding: 114px 28px 28px;
}

.finance-native-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 45, .66);
  backdrop-filter: blur(8px);
}

.finance-native-continue-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 56px));
  max-height: calc(100dvh - 132px);
  display: grid;
  overflow: auto;
  border: 1px solid rgba(219, 228, 241, .86);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 30px 78px rgba(5, 15, 35, .38);
}

.finance-native-continue-hero {
  order: 1;
}

.finance-native-invoice-view {
  order: 2;
}

.finance-native-continue-grid {
  order: 3;
}

.finance-native-ledger {
  order: 4;
}

.finance-native-continue-footer {
  order: 5;
}

.finance-native-modal-close {
  position: absolute;
  top: 22px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: #13203c;
  font-size: 1.1rem;
}

.finance-native-continue-hero {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  padding: 40px 66px 31px 36px;
  background:
    radial-gradient(circle at 18% 16%, rgba(76, 234, 224, .35), transparent 36%),
    repeating-radial-gradient(ellipse at 56% 22%, rgba(255,255,255,.46) 0 1px, transparent 1px 22px),
    linear-gradient(134deg, #bff6f6 0%, #defbfe 48%, #f7fcff 100%);
}

.finance-native-continue-hero span {
  display: block;
  color: #52617a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.finance-native-continue-hero h3 {
  margin: 12px 0 20px;
  color: #0e1834;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -.055em;
}

.finance-native-continue-hero strong {
  display: block;
  color: #064fd6;
  font-size: 1.14rem;
}

.finance-native-continue-hero p {
  margin: 24px 0 0;
  color: #17223d;
  font-size: 1rem;
}

.finance-native-continue-hero dl {
  align-self: start;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(24, 44, 80, .10);
}

.finance-native-continue-hero dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  gap: 12px;
}

.finance-native-continue-hero dt {
  color: #52617a;
  font-size: .78rem;
}

.finance-native-continue-hero dd {
  margin: 0;
  color: #0e1834;
  font-size: .88rem;
  font-weight: 900;
  text-align: right;
}

.finance-native-continue-hero dd span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1e6fe2;
  letter-spacing: 0;
  text-transform: none;
}

.finance-native-continue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 36px 16px;
}

.finance-native-continue-card {
  min-height: 454px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px 16px 16px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
}

.finance-native-continue-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: #246be7;
  font-style: normal;
}

.finance-native-continue-card--accept i {
  color: #1a9a6a;
  background: #e7f8ef;
}

.finance-native-continue-card--invoice i {
  color: #ef8425;
  background: #fff0df;
}

.finance-native-continue-card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-native-continue-card h4 {
  margin: 0;
  color: #0e1834;
  font-size: 1.08rem;
}

.finance-native-continue-card p {
  min-height: 52px;
  margin: 0;
  color: #53627c;
  font-size: .86rem;
  line-height: 1.5;
}

.finance-native-continue-card hr {
  width: 100%;
  height: 1px;
  margin: 2px 0 0;
  border: 0;
  background: #dbe4f1;
}

.finance-native-continue-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-native-continue-card li {
  position: relative;
  padding-left: 28px;
  color: #52617a;
  font-size: .84rem;
}

.finance-native-continue-card li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 16px;
  height: 16px;
  border: 1.6px solid #19a779;
  border-radius: 999px;
  background: radial-gradient(circle, #19a779 0 3px, transparent 4px);
}

.finance-native-info-note,
.finance-native-warning-note {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f0ff;
  color: #2638c7;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.42;
}

.finance-native-warning-note {
  background: #fff0df;
  color: #c15e00;
}

.finance-native-continue-card > .btn,
.finance-native-continue-card > form .btn {
  min-height: 42px;
  border-radius: 8px;
}

.finance-native-continue-card form {
  margin: 0;
}

.finance-native-choice-list {
  display: grid;
  gap: 8px;
}

.finance-native-choice-list a,
.finance-native-choice-list button {
  position: relative;
  width: 100%;
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 9px 36px 9px 54px;
  border: 1px solid #dbe4f1;
  border-radius: 9px;
  background: #fff;
  color: #0e1834;
  text-align: left;
  text-decoration: none;
}

.finance-native-choice-list a::after,
.finance-native-choice-list button::after {
  content: ">";
  position: absolute;
  right: 16px;
  top: 17px;
  color: #0e1834;
  font-size: 1.1rem;
  font-weight: 900;
}

.finance-native-choice-list strong {
  display: block;
  font-size: .84rem;
}

.finance-native-choice-list small {
  display: block;
  margin-top: 3px;
  color: #697691;
  font-size: .68rem;
}

.finance-native-invoice-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 14px;
  padding: 18px 36px 0;
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(255,255,255,.96));
}

.finance-native-invoice-view-main,
.finance-native-invoice-view-side {
  min-width: 0;
  border: 1px solid rgba(219, 228, 241, .94);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(22, 34, 62, .045);
}

.finance-native-invoice-view-main {
  padding: 16px 18px;
}

.finance-native-invoice-view-main > span {
  display: block;
  color: #5d6d88;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.finance-native-invoice-view-main h4 {
  margin: 5px 0 4px;
  color: #101d38;
  font-size: 1.12rem;
}

.finance-native-invoice-view-main p {
  margin: 0 0 12px;
  color: #52617a;
  font-size: .82rem;
  line-height: 1.45;
}

.finance-native-invoice-view-main dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.finance-native-invoice-view-main dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 233, 244, .9);
}

.finance-native-invoice-view-main dt,
.finance-native-invoice-view-side span {
  color: #65748d;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-native-invoice-view-main dd {
  min-width: 0;
  margin: 0;
  color: #11203c;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.finance-native-invoice-view-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #dfe7f4;
}

.finance-native-invoice-view-side div {
  min-width: 0;
  padding: 12px;
  background: rgba(255,255,255,.98);
}

.finance-native-invoice-view-side strong {
  display: block;
  margin-top: 4px;
  color: #101d38;
  font-size: .9rem;
  font-weight: 950;
}

.finance-native-invoice-view-side .is-strong strong {
  color: #2139c4;
}

.finance-native-invoice-view-side .is-open strong {
  color: #e25547;
}

.finance-native-ledger {
  display: grid;
  gap: 14px;
  padding: 18px 36px 2px;
  background:
    radial-gradient(circle at 18% 0%, rgba(81, 127, 245, .06), transparent 32%),
    linear-gradient(180deg, rgba(248,251,255,.98), rgba(255,255,255,.96));
}

.finance-native-ledger-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.finance-native-ledger-head span {
  color: #5d6d88;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.finance-native-ledger-head h4 {
  margin: 4px 0 0;
  color: #101d38;
  font-size: 1.1rem;
}

.finance-native-ledger-head dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  margin: 0;
}

.finance-native-ledger-head dl div {
  min-width: 104px;
  padding: 8px 10px;
  border: 1px solid rgba(219, 228, 241, .92);
  border-radius: 10px;
  background: #fff;
}

.finance-native-ledger-head dt {
  color: #6a7790;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-native-ledger-head dd {
  margin: 3px 0 0;
  color: #0e1834;
  font-weight: 950;
}

.finance-native-ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-native-ledger-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid rgba(219, 228, 241, .92);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(22, 34, 62, .045);
}

.finance-native-ledger-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finance-native-ledger-card header span {
  color: #52617a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.finance-native-ledger-card header strong {
  display: inline-flex;
  min-width: 26px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2036ad;
  background: #eef3ff;
  font-size: .75rem;
}

.finance-native-ledger-list {
  display: grid;
  gap: 7px;
}

.finance-native-ledger-list a,
.finance-native-ledger-list div,
.finance-native-ledger-list p {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(228, 234, 245, .88);
  border-radius: 9px;
  background: #fbfcff;
  color: #17233d;
  text-decoration: none;
}

.finance-native-ledger-list a.is-primary {
  border-color: rgba(41, 71, 213, .22);
  background: #f2f5ff;
}

.finance-native-ledger-list div.is-credit {
  background: #f7fbff;
}

.finance-native-ledger-list div.is-warning {
  background: #fff8ec;
}

.finance-native-ledger-list b {
  display: block;
  overflow: hidden;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-native-ledger-list small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #687692;
  font-size: .68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-native-ledger-list p {
  color: #6c7890;
  font-size: .76rem;
}

.invoice-editor-ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.invoice-editor-ledger-summary div {
  padding: 11px 12px;
  border: 1px solid rgba(214, 224, 241, .86);
  border-radius: 12px;
  background: #f8fbff;
}

.invoice-editor-ledger-summary span {
  display: block;
  color: #687692;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.invoice-editor-ledger-summary strong {
  display: block;
  margin-top: 4px;
  color: #101d38;
}

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

.invoice-editor-ledger section {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(214, 224, 241, .86);
  border-radius: 12px;
  background: #fff;
}

.invoice-editor-ledger h4 {
  margin: 0;
  color: #101d38;
  font-size: .9rem;
}

.invoice-editor-ledger div,
.invoice-editor-ledger p {
  margin: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f7faff;
}

.invoice-editor-ledger strong,
.invoice-editor-ledger span {
  display: block;
}

.invoice-editor-ledger strong {
  color: #10203d;
  font-size: .82rem;
}

.invoice-editor-ledger span,
.invoice-editor-ledger p,
.invoice-editor-ledger-note {
  color: #66748d;
  font-size: .74rem;
  line-height: 1.4;
}

.invoice-editor-ledger-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f1f5ff;
}

.finance-native-continue-footer {
  display: grid;
  grid-template-columns: 144px minmax(180px, 210px) minmax(170px, 190px);
  justify-content: space-between;
  gap: 14px;
  padding: 23px 36px;
  border-top: 1px solid #dbe4f1;
}

.finance-native-continue-footer .btn {
  min-height: 38px;
  border-radius: 8px;
}

.finance-native-continue-footer .btn:nth-child(2) {
  margin-left: auto;
}

/* Accounting uses the same application navigation as every other ERP workspace. */
@media (min-width: 1181px) {
  body.page-accounting,
  body.page-offers,
  body.page-invoices {
    --sidebar-w: 244px;
  }

  body.page-accounting .sidebar,
  body.page-offers .sidebar,
  body.page-invoices .sidebar {
    width: var(--sidebar-w);
    padding: 18px 18px 24px;
    border-right: 1px solid rgba(11,32,66,.08);
    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);
    backdrop-filter: blur(18px);
  }

  body.page-accounting .sidebar-brand,
  body.page-offers .sidebar-brand,
  body.page-invoices .sidebar-brand {
    width: auto;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 16px 14px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
    box-shadow: 0 14px 28px rgba(19, 36, 70, .05);
  }

  body.page-accounting .sidebar-brand img,
  body.page-offers .sidebar-brand img,
  body.page-invoices .sidebar-brand img {
    width: 118px;
    height: auto;
    object-fit: contain;
  }

  body.page-accounting .sidebar-nav,
  body.page-accounting .sidebar-nav-shell,
  body.page-offers .sidebar-nav,
  body.page-offers .sidebar-nav-shell,
  body.page-invoices .sidebar-nav,
  body.page-invoices .sidebar-nav-shell {
    gap: 20px;
    margin-top: 18px;
  }

  body.page-accounting .sidebar-section-title,
  body.page-accounting .sidebar-group-heading,
  body.page-offers .sidebar-section-title,
  body.page-offers .sidebar-group-heading,
  body.page-invoices .sidebar-section-title,
  body.page-invoices .sidebar-group-heading {
    display: flex !important;
    margin: 0 4px;
    padding: 0;
    color: #6e809b;
    font-size: .74rem;
  }

  body.page-accounting .sidebar-link-stack,
  body.page-offers .sidebar-link-stack,
  body.page-invoices .sidebar-link-stack {
    gap: 6px;
  }

  body.page-accounting .sidebar-link-stack a,
  body.page-accounting .sidebar-link-stack .nav-group-toggle,
  body.page-offers .sidebar-link-stack a,
  body.page-offers .sidebar-link-stack .nav-group-toggle,
  body.page-invoices .sidebar-link-stack a,
  body.page-invoices .sidebar-link-stack .nav-group-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 16px;
  }

  body.page-accounting .sidebar-link-stack a,
  body.page-offers .sidebar-link-stack a,
  body.page-invoices .sidebar-link-stack a {
    color: #324764;
    border: 1px solid rgba(218, 227, 240, .7);
    background: rgba(255,255,255,.74);
  }

  body.page-accounting .sidebar-link-stack a.active,
  body.page-offers .sidebar-link-stack a.active,
  body.page-invoices .sidebar-link-stack a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #6f7cff, #5754e5);
    box-shadow: 0 14px 30px rgba(87, 84, 229, .28);
  }

  body.page-offers .nav-label,
  body.page-invoices .nav-label,
  body.page-offers .nav-text,
  body.page-invoices .nav-text,
  body.page-offers .nav-group-toggle .nav-label,
  body.page-invoices .nav-group-toggle .nav-label {
    display: inline !important;
  }

  body.page-offers .nav-link-icon,
  body.page-invoices .nav-link-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

.finance-native-liabilities {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--fn-line);
  scroll-margin-top: 18px;
}

.finance-native-liabilities .finance-native-section-head {
  align-items: end;
}

.finance-native-liabilities .finance-native-section-head > span {
  color: var(--fn-muted);
  font-size: .75rem;
  font-weight: 850;
  white-space: nowrap;
}

.finance-native-payable-head,
.finance-native-payable {
  display: grid;
  grid-template-columns: minmax(132px, .8fr) minmax(180px, 1.25fr) minmax(96px, .65fr) minmax(78px, .5fr) minmax(112px, .7fr) 76px 42px;
  gap: 12px;
  align-items: center;
}

.finance-native-payable-head {
  padding: 0 14px;
  color: var(--fn-muted);
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.finance-native-payable-list {
  display: grid;
  gap: 8px;
}

.finance-native-payable {
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid var(--fn-line);
  border-left: 3px solid #f2a31c;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
}

.finance-native-payable.is-focused {
  border-color: rgba(242, 163, 28, .72);
  box-shadow: 0 0 0 4px rgba(242, 163, 28, .12);
}

.finance-native-payable strong,
.finance-native-payable small {
  display: block;
  min-width: 0;
}

.finance-native-payable strong {
  overflow: hidden;
  color: var(--fn-ink);
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-native-payable small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--fn-muted);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-native-payable-status {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #8a5600;
  background: #fff1d2;
  font-size: .68rem;
  font-weight: 850;
}

/* Compact finance document dialogs: one decision per row, details on demand. */
.finance-compact-modal {
  place-items: center;
  padding: 24px;
  z-index: 5200;
}

.finance-compact-dialog {
  width: min(780px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 18px;
}

.finance-compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: center;
  min-height: 148px;
  padding: 28px 52px 26px 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(64, 231, 221, .32), transparent 38%),
    repeating-radial-gradient(ellipse at 64% 20%, rgba(255,255,255,.42) 0 1px, transparent 1px 21px),
    linear-gradient(134deg, #c7f8f7 0%, #e6fbfd 54%, #f9fdff 100%);
}

.finance-compact-title > span,
.finance-compact-action-kicker {
  display: block;
  color: #5a6881;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-compact-title h3 {
  margin: 7px 0 6px;
  color: #0d1934;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.finance-compact-title p {
  margin: 0;
  color: #26334c;
  font-size: .88rem;
}

.finance-compact-title p strong,
.finance-compact-title p small {
  display: block;
}

.finance-compact-title p small {
  margin-top: 4px;
  color: #52637c;
  font-size: .76rem;
}

.finance-compact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(208, 221, 239, .92);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 28px rgba(25, 43, 76, .08);
}

.finance-compact-summary div {
  min-width: 0;
  padding: 7px 9px;
}

.finance-compact-summary dt {
  color: #68758c;
  font-size: .62rem;
}

.finance-compact-summary dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #0e1932;
  font-size: .76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-compact-summary dd span {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  color: #2458c8;
  background: #eaf2ff;
  font-size: .64rem;
}

.finance-compact-overview,
.finance-compact-action-stack,
.finance-compact-documents {
  margin: 12px 18px 0;
  padding: 12px;
  border: 1px solid #dbe4f1;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(31, 51, 93, .05);
}

.finance-compact-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e9f4;
}

.finance-compact-overview .finance-compact-section-title h4,
.finance-compact-action-stack .finance-compact-section-title h4,
.finance-compact-documents .finance-compact-section-title h4 {
  text-align: right;
}

.finance-compact-section-title span {
  color: #5a6881;
  font-size: .63rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-compact-section-title h4 {
  margin: 0;
  color: #111d39;
  font-size: .95rem;
}

.finance-compact-facts,
.finance-compact-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.finance-compact-facts span,
.finance-compact-totals span,
.finance-compact-info-line {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f5f8fd;
  color: #4f5f79;
  font-size: .72rem;
}

.finance-compact-facts b,
.finance-compact-totals b,
.finance-compact-info-line strong {
  display: block;
  margin-bottom: 4px;
  color: #16233f;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.finance-compact-item-list,
.finance-compact-document-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.finance-compact-item-list div,
.finance-compact-document-list > span,
.finance-compact-document-list > a,
.finance-compact-document-list > button {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fff;
  color: #526079;
  font-size: .7rem;
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.finance-compact-item-list div {
  grid-template-columns: minmax(180px, .95fr) minmax(0, 1.35fr) minmax(90px, auto);
}

.finance-compact-item-list div.is-group {
  grid-template-columns: 1fr auto;
  background: #eef4ff;
}

.finance-compact-item-list strong,
.finance-compact-document-list b {
  overflow: hidden;
  color: #14213e;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-compact-item-list span,
.finance-compact-document-list > span > span,
.finance-compact-document-list > a > span,
.finance-compact-document-list > button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-compact-item-list div:hover,
.finance-compact-document-list a:hover,
.finance-compact-document-list button:hover {
  border-color: rgba(65, 96, 228, .32);
  background: #f8fbff;
}

.finance-compact-item-list b {
  color: #0b3bb5;
  font-size: .74rem;
  text-align: right;
  white-space: nowrap;
}

.finance-compact-totals {
  margin-top: 10px;
}

.finance-compact-action-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) repeat(2, minmax(150px, 1fr));
  gap: 8px;
}

.finance-compact-action-tile {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #d7e2f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7faff);
  color: #172541;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.finance-compact-action-tile--primary {
  border-color: rgba(49, 84, 223, .42);
  background: linear-gradient(135deg, #2f55e5, #2841bf);
  color: #fff;
  box-shadow: 0 14px 28px rgba(49, 84, 223, .18);
}

.finance-compact-action-tile strong,
.finance-compact-action-tile button strong {
  color: #0f1d3a;
  font-size: .82rem;
}

.finance-compact-action-tile--primary strong,
.finance-compact-action-tile--primary .finance-compact-action-copy small,
.finance-compact-action-tile--primary .finance-compact-action-copy span {
  color: #fff;
}

.finance-compact-action-tile span,
.finance-compact-action-tile button span,
.finance-compact-action-copy small {
  color: #64738d;
  font-size: .69rem;
  line-height: 1.35;
}

.finance-compact-action-tile button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.finance-compact-action-tile > button {
  grid-column: 1 / -1;
  padding: 0;
}

.finance-compact-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.finance-compact-action-copy small {
  display: block;
  font-weight: 700;
}

.finance-compact-action-icon,
.finance-compact-document-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #edf4ff;
  color: #3155df;
  position: relative;
  flex: 0 0 auto;
}

.finance-compact-action-tile--primary .finance-compact-action-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.finance-compact-action-icon::before,
.finance-compact-document-icon::before {
  content: "";
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.finance-compact-action-icon--send::before,
.finance-compact-document-icon--send::before {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
  border-radius: 1px;
  transform: rotate(-45deg);
}

.finance-compact-action-icon--edit::before,
.finance-compact-document-icon--edit::before {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.finance-compact-action-icon--payment::before {
  width: 15px;
  height: 9px;
  border-radius: 3px;
}

.finance-compact-action-icon--check::before {
  width: 13px;
  height: 7px;
  border-top: 0;
  border-right: 0;
  border-radius: 0;
  transform: rotate(-45deg);
}

.finance-compact-document-icon--plus::before {
  width: 14px;
  height: 14px;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
}

.finance-compact-document-icon--link::before {
  width: 14px;
  height: 8px;
  border-radius: 999px;
}

.finance-compact-document-icon--warning::before {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid currentColor;
  border-top: 0;
  border-radius: 0;
}

.finance-compact-document-card {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  min-height: 46px !important;
  background: linear-gradient(180deg, #fff, #f8fbff) !important;
}

.finance-compact-document-card > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.finance-compact-document-card small {
  overflow: hidden;
  color: #66758d;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-compact-document-card > strong {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1c3cbb;
  font-size: .65rem;
  white-space: nowrap;
}

.finance-compact-payable-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.finance-compact-payable-form label {
  display: grid;
  gap: 5px;
}

.finance-compact-payable-form label span {
  color: #64738d;
  font-size: .65rem;
  font-weight: 850;
}

.finance-compact-payable-form input,
.finance-compact-payable-form select {
  min-height: 38px;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.finance-simple-editor-shell {
  width: min(1180px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  margin: 0 auto 28px;
  padding: 18px;
}

.finance-simple-editor-hero,
.finance-simple-card,
.finance-simple-lock {
  border: 1px solid rgba(194, 209, 235, .86);
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 52px rgba(20, 40, 84, .08);
}

.finance-simple-editor-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(56, 220, 213, .18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(238,246,255,.94));
}

.finance-simple-editor-hero span,
.finance-simple-section-title span {
  color: #596984;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-simple-editor-hero h2 {
  margin: 6px 0 4px;
  color: #0f1a35;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  letter-spacing: -.045em;
}

.finance-simple-editor-hero p {
  max-width: 62ch;
  margin: 0;
  color: #5f6f88;
}

.finance-simple-editor-status {
  min-width: 180px;
  display: grid;
  gap: 4px;
  justify-items: end;
  padding: 13px 16px;
  border: 1px solid #d9e4f3;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.finance-simple-editor-status strong {
  color: #2448c8;
}

.finance-simple-editor-status small {
  color: #5c6d86;
  font-weight: 800;
}

.finance-simple-editor-form {
  display: grid;
  gap: 14px;
}

.finance-simple-card,
.finance-simple-lock {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.finance-simple-lock {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #fff8ea, #fff);
}

.finance-simple-lock strong,
.finance-simple-lock span {
  display: block;
}

.finance-simple-lock span {
  color: #6a5b41;
}

.finance-simple-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e9f4;
}

.finance-simple-section-title span {
  display: inline-grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #2448c8;
  background: #eef3ff;
  letter-spacing: 0;
}

.finance-simple-section-title h3 {
  margin: 0;
  color: #101c38;
  font-size: 1.06rem;
}

.finance-simple-grid {
  display: grid;
  gap: 10px;
}

.finance-simple-grid--customer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.finance-simple-editor-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.finance-simple-editor-form label span {
  color: #5d6b83;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.finance-simple-editor-form input,
.finance-simple-editor-form select,
.finance-simple-editor-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #13203d;
  font: inherit;
}

.finance-simple-editor-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.finance-simple-editor-form input[readonly],
.finance-simple-editor-form textarea[readonly],
.finance-simple-editor-form select:disabled {
  background: #f2f6fc;
  color: #64738d;
}

.finance-simple-wide {
  margin-bottom: 10px;
}

.finance-simple-items {
  display: grid;
  gap: 8px;
}

.finance-simple-items-head,
.finance-simple-item {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 96px 90px 120px 96px;
  gap: 8px;
  align-items: end;
}

.finance-simple-items-head {
  align-items: center;
  padding: 0 8px;
  color: #697891;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-simple-item {
  padding: 10px;
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  background: #fbfdff;
}

.finance-simple-item.is-group {
  align-items: center;
  background: #eef4ff;
}

.finance-simple-item-title textarea {
  min-height: 58px;
}

.finance-simple-footer {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(203, 216, 234, .88);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 36px rgba(20, 40, 84, .12);
  backdrop-filter: blur(14px);
}

@media (max-width: 1180px) {
  .finance-simple-grid--customer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-simple-items-head,
  .finance-simple-item {
    grid-template-columns: minmax(220px, 1fr) 86px 82px 106px 82px;
  }
}

@media (max-width: 760px) {
  .finance-compact-modal {
    padding: 12px;
  }

  .finance-compact-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .finance-compact-hero,
  .finance-simple-editor-hero,
  .finance-simple-lock {
    grid-template-columns: 1fr;
    display: grid;
  }

  .finance-compact-hero {
    padding: 22px 18px;
  }

  .finance-compact-summary,
  .finance-compact-facts,
  .finance-compact-totals,
  .finance-compact-action-grid,
  .finance-simple-grid--customer,
  .finance-simple-grid--texts {
    grid-template-columns: 1fr;
  }

  .finance-compact-item-list div,
  .finance-compact-document-list > span,
  .finance-compact-document-list > a,
  .finance-compact-document-list > button {
    grid-template-columns: 1fr;
  }

  .finance-simple-editor-shell {
    width: calc(100vw - 16px);
    padding: 8px;
  }

  .finance-simple-items-head {
    display: none;
  }

  .finance-simple-item {
    grid-template-columns: 1fr;
  }

  .finance-simple-footer {
    position: static;
    flex-direction: column;
  }
}

.finance-compact-documents {
  margin-bottom: 14px;
}

.finance-compact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #f8faff;
}

.finance-compact-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px solid #dbe4f1;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
}

.finance-compact-action--next {
  border-color: rgba(96, 132, 224, .34);
  background: linear-gradient(145deg, #fff, #f5f8ff);
}

.finance-compact-action h4 {
  margin: 6px 0 5px;
  color: #101c38;
  font-size: 1rem;
}

.finance-compact-action p {
  margin: 0;
  color: #65738b;
  font-size: .73rem;
  line-height: 1.4;
}

.finance-compact-action-buttons {
  display: grid;
  gap: 7px;
  min-width: 116px;
}

.finance-compact-action .btn {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 9px;
  font-size: .72rem;
  white-space: nowrap;
}

.finance-compact-action > form {
  margin: 0;
}

.finance-compact-choice {
  position: relative;
  min-width: 154px;
}

.finance-compact-choice > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, #4160e4, #2747c8);
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.finance-compact-choice > summary::-webkit-details-marker {
  display: none;
}

.finance-compact-choice > div {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 5;
  width: 220px;
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #dbe4f1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 33, 70, .16);
}

.finance-compact-choice form,
.finance-compact-choice button {
  width: 100%;
  margin: 0;
}

.finance-compact-choice button {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: #12203d;
  background: #f5f8fd;
  text-align: left;
  cursor: pointer;
}

.finance-compact-choice button strong {
  font-size: .75rem;
}

.finance-compact-choice button small {
  color: #6b7890;
  font-size: .65rem;
}

.finance-compact-details {
  margin: 0 20px 16px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: #fff;
}

.finance-compact-details > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #263550;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

.finance-compact-details > div {
  border-top: 1px solid #e3e9f3;
}

.finance-compact-details > div:not(.finance-compact-history):not(.finance-compact-secondary-actions) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
}

.finance-compact-details span {
  min-width: 0;
  color: #5d6b84;
  font-size: .7rem;
}

.finance-compact-details span b {
  display: block;
  margin-bottom: 3px;
  color: #172541;
  font-size: .66rem;
}

.finance-compact-details a:not(.btn) {
  align-self: center;
  color: #254dcc;
  font-size: .72rem;
  font-weight: 900;
}

.finance-compact-ledger-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.finance-compact-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
  border-top: 0 !important;
}

.finance-compact-history span {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f8fd;
}

.finance-compact-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.finance-compact-secondary-actions form {
  margin: 0;
}

.finance-compact-secondary-actions .btn {
  min-height: 34px;
  font-size: .7rem;
}

.finance-compact-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 18px;
}

.finance-compact-footer .btn {
  min-width: 100px;
  min-height: 36px;
  border-radius: 9px;
}

@media (max-width: 1320px) {
  .finance-native-cockpit {
    grid-template-columns: 1fr;
  }

  .finance-native-workbench {
    min-height: auto;
  }

  .finance-native-open-posts {
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .finance-native-payment-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 0;
    margin-top: 18px;
  }

  .finance-native-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-native-kpis {
    gap: 14px;
  }

  .finance-native-document-row {
    grid-template-columns: 28px minmax(190px, 1.45fr) 78px 88px 94px 94px 50px;
    gap: 8px;
  }

  .finance-native-payable-head,
  .finance-native-payable {
    grid-template-columns: minmax(120px, .8fr) minmax(160px, 1.2fr) 92px 88px 108px 70px 42px;
    gap: 8px;
  }
}

@media (max-width: 1180px) {
  body.page-finance {
    --sidebar-w: 244px;
  }

  body.page-finance .app-topbar-shell {
    display: flex !important;
  }

  .finance-native {
    padding: 14px;
  }

  .finance-native-topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .finance-native-topbar-actions {
    justify-self: stretch;
    flex-wrap: wrap;
  }

  .finance-native-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .finance-native-tabs a {
    flex: 1;
  }

  .finance-native-hero--dark,
  .finance-native-cockpit,
  .finance-native-doc-layout,
  .finance-native-doc-head,
  .finance-native-continue-hero,
  .finance-native-invoice-view,
  .finance-native-ledger-head,
  .finance-native-continue-grid {
    grid-template-columns: 1fr;
  }

  .finance-native-hero--dark {
    height: auto;
    min-height: 0;
    gap: 18px;
  }

  .finance-native-ledger-grid,
  .invoice-editor-ledger {
    grid-template-columns: 1fr;
  }

  .finance-native-kpis,
  .finance-native-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-native-workbench {
    padding: 18px;
  }

  .finance-native-table-head {
    grid-template-columns: 126px minmax(140px, 1fr) 78px 86px minmax(124px, .72fr) minmax(102px, .64fr);
  }

  .finance-native-payable-head {
    display: none;
  }

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

  .finance-native-payable-status {
    justify-self: stretch;
    text-align: center;
  }

  .finance-native-post {
    grid-template-columns: 22px minmax(92px, .7fr) minmax(140px, 1.25fr) 78px 86px minmax(124px, .72fr) minmax(102px, .64fr);
  }

  .finance-native-doc-rail {
    border-right: 0;
    border-bottom: 1px solid #dce4f0;
  }

  .finance-native-document-row {
    grid-template-columns: 32px minmax(180px, 1fr) 88px 96px 104px 44px;
  }

  .finance-native-offer-invoice-row {
    grid-template-columns: minmax(160px, 1.2fr) 88px 92px 24px;
  }

  .finance-native-offer-invoice-row > span:nth-child(3) {
    display: none;
  }

  .finance-native-document-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .finance-native-document-row > span:nth-of-type(3) {
    display: none;
  }

  .finance-native-continue-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .finance-native-kpis,
  .finance-native-side,
  .finance-native-searchbar,
  .finance-native-booking-form,
  .finance-native-manual-form,
  .finance-native-voucher-grid,
  .finance-native-doc-search,
  .finance-native-document-row,
  .finance-native-post,
  .finance-native-invoice-view,
  .finance-native-invoice-view-side,
  .finance-native-continue-footer {
    grid-template-columns: 1fr;
  }

  .finance-native-table-head {
    display: none;
  }

  .finance-native-offer-billing {
    width: calc(100% - 18px);
    margin-left: 18px;
  }

  .finance-native-offer-billing summary {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .finance-native-offer-billing summary small,
  .finance-native-offer-billing summary > b {
    display: none;
  }

  .finance-native-offer-billing-list {
    padding-left: 9px;
  }

  .finance-native-offer-invoice-row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
  }

  .finance-native-offer-invoice-row > span:nth-child(3),
  .finance-native-offer-invoice-row > span:nth-child(4) {
    display: none;
  }

  .finance-native-side {
    grid-template-columns: 1fr;
  }

  .finance-native-continue-dialog {
    width: calc(100vw - 22px);
  }

  .finance-native-continue-hero,
  .finance-native-invoice-view,
  .finance-native-ledger,
  .finance-native-continue-grid,
  .finance-native-continue-footer {
    padding-inline: 18px;
  }

  .finance-native-ledger-head {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-native-ledger-head dl,
  .invoice-editor-ledger-summary {
    grid-template-columns: 1fr;
  }

  .finance-native-continue-hero h3 {
    font-size: 1.65rem;
  }

  .finance-compact-modal {
    padding: 12px;
  }

  .finance-compact-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .finance-compact-hero,
  .finance-compact-actions,
  .finance-compact-action-grid,
  .finance-compact-payable-form {
    grid-template-columns: 1fr;
  }

  .finance-compact-hero {
    gap: 16px;
    padding: 24px 46px 20px 20px;
  }

  .finance-compact-action {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .finance-compact-action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-compact-choice,
  .finance-compact-choice > div {
    width: 100%;
  }

  .finance-compact-choice > div {
    position: static;
    margin-top: 7px;
  }

  .finance-compact-details > div:not(.finance-compact-history):not(.finance-compact-secondary-actions),
  .finance-compact-ledger-summary,
  .finance-compact-history,
  .finance-compact-facts,
  .finance-compact-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .finance-compact-item-list div,
  .finance-compact-document-list > span,
  .finance-compact-document-list > a,
  .finance-compact-document-list > button {
    grid-template-columns: 1fr;
  }
}

.finance-flow-modal,
.finance-native-modal,
.finance-compact-modal {
  z-index: 5200;
}

.finance-light-editor-panel {
  margin-top: 10px;
  padding: 10px 12px 12px;
  border-color: rgba(142, 159, 203, .38);
  background: rgba(255,255,255,.98);
  box-shadow: none;
}

.finance-light-inline-form {
  display: grid;
  gap: 9px;
}

.finance-light-grid,
.finance-light-texts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

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

.finance-light-inline-form label,
.finance-light-item label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.finance-light-inline-form label span,
.finance-light-items-head span,
.finance-light-item-title span {
  color: #5f6b86;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-light-inline-form input,
.finance-light-inline-form select,
.finance-light-inline-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(142, 159, 203, .58);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #08132e;
  font: inherit;
  font-size: .78rem;
  padding: 6px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.finance-light-inline-form textarea {
  resize: vertical;
}

.finance-light-wide {
  grid-column: 1 / -1;
}

.finance-light-items {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 159, 203, .45);
  border-radius: 10px;
  background: linear-gradient(180deg, #eef5ff, #f7fbff);
}

.finance-light-items-head,
.finance-light-item {
  display: grid;
  grid-template-columns: minmax(260px, 2.8fr) minmax(70px, .55fr) minmax(66px, .48fr) minmax(82px, .62fr) minmax(68px, .5fr);
  gap: 0;
  align-items: stretch;
}

.finance-light-items-head {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(142, 159, 203, .35);
  background: linear-gradient(90deg, #e7effc, #f2f7ff);
}

.finance-light-item {
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid rgba(142, 159, 203, .28);
  border-radius: 0;
  background: rgba(255,255,255,.9);
  padding: 0;
}

.finance-light-item:not(.is-group):nth-child(even) {
  background: rgba(250, 253, 255, .96);
}

.finance-light-item:last-child {
  border-bottom: 0;
}

.finance-light-item > label,
.finance-light-item > span {
  min-width: 0;
  padding: 5px 6px;
  border-right: 1px solid rgba(142, 159, 203, .22);
}

.finance-light-item > label:last-child,
.finance-light-item > span:last-child {
  border-right: 0;
}

.finance-light-item input,
.finance-light-item textarea,
.finance-light-item select {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: .75rem;
}

.finance-light-item:not(.is-group) label > span:not(.finance-light-cell-caption) {
  display: none;
}

.finance-light-item:not(.is-group) > label:not(.finance-light-item-title) {
  align-content: center;
}

.finance-light-item:not(.is-group) .finance-light-item-title {
  gap: 4px;
  background: rgba(255,255,255,.7);
}

.finance-light-cell-caption {
  display: block !important;
  color: #3155df !important;
  font-size: .55rem !important;
  letter-spacing: .09em !important;
}

.finance-light-cell-caption--description {
  margin-top: 2px;
  color: #65728d !important;
}

.finance-light-item.is-group {
  min-height: 38px;
  background: #eef3ff;
}

.finance-light-item.is-group .finance-light-item-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-right: 0;
}

.finance-light-item.is-group > span {
  display: none;
}

.finance-light-item.is-group .finance-light-item-title input {
  font-weight: 900;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-left: 0;
}

.finance-light-item-title textarea {
  min-height: 28px;
  height: 30px;
}

.finance-light-total-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-top: 1px solid rgba(142, 159, 203, .35);
  background:
    radial-gradient(circle at 88% 50%, rgba(65, 96, 228, .12), transparent 32%),
    linear-gradient(90deg, #f8fbff, #eef5ff);
}

.finance-light-total-row span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(142, 159, 203, .3);
  border-radius: 9px;
  background: rgba(255,255,255,.82);
}

.finance-light-total-row b {
  color: #5e6b83;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-light-total-row strong {
  color: #0b3bb5;
  font-size: .82rem;
  white-space: nowrap;
}

.finance-light-total-row .finance-light-total-row-main {
  border-color: rgba(49, 84, 223, .28);
  background: #fff;
  box-shadow: 0 10px 22px rgba(49, 84, 223, .08);
}

.finance-light-add-row {
  justify-self: start;
  margin-top: 2px;
}

.finance-light-dirty-banner,
.finance-light-lock,
.live-document-sync-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(78, 94, 229, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(237, 241, 255, .96), rgba(232, 252, 250, .86));
  color: #162142;
  padding: 12px 14px;
}

.finance-light-dirty-banner[hidden],
.live-document-sync-banner[hidden] {
  display: none !important;
}

.finance-light-dirty-banner strong,
.finance-light-lock strong,
.live-document-sync-banner strong {
  color: #0b1535;
  font-weight: 900;
}

.finance-light-dirty-banner span,
.finance-light-lock span,
.live-document-sync-banner span {
  flex: 1 1 auto;
  color: #52617f;
  font-size: .86rem;
}

.live-document-sync-banner {
  margin: 12px auto 0;
  max-width: min(1180px, calc(100vw - 40px));
  box-shadow: 0 18px 45px rgba(35, 56, 134, .12);
}

.live-document-sync-banner--active {
  border-color: rgba(50, 185, 171, .32);
  background: linear-gradient(135deg, rgba(214, 252, 248, .94), rgba(245, 248, 255, .96));
}

.live-document-sync-banner.is-error {
  border-color: rgba(215, 74, 74, .35);
  background: linear-gradient(135deg, rgba(255, 235, 235, .94), rgba(250, 244, 255, .94));
}

@media (max-width: 1080px) {
  .finance-light-grid,
  .finance-light-texts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-light-items {
    overflow-x: auto;
  }

  .finance-light-items-head,
  .finance-light-item,
  .finance-light-total-row {
    min-width: 620px;
  }
}

@media (max-width: 680px) {
  .finance-light-grid,
  .finance-light-texts {
    grid-template-columns: 1fr;
  }

  .finance-light-dirty-banner,
  .finance-light-lock,
  .live-document-sync-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-light-total-row {
    grid-template-columns: 1fr;
  }
}

.finance-compact-action-stack--focus {
  position: relative;
  margin-top: 14px;
  border-color: rgba(49, 84, 223, .42);
  background:
    radial-gradient(circle at 88% 10%, rgba(63, 105, 232, .14), transparent 34%),
    linear-gradient(135deg, #f8fbff, #edf4ff);
  box-shadow: 0 18px 38px rgba(38, 69, 171, .14);
}

.finance-compact-action-stack--focus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #3154df, #12a6bc);
}

.finance-compact-action-tile--send {
  border-color: rgba(24, 155, 144, .34);
  background: linear-gradient(180deg, #f3fffd, #e9fbf8);
}

.finance-compact-action-tile--send .finance-compact-action-icon {
  background: #d9f6f1;
  color: #087d73;
}

.finance-compact-billing-open {
  justify-self: start;
  margin-top: 10px;
  min-height: 40px;
  border-radius: 10px;
}

.finance-document-preview-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(142, 159, 203, .40);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 38px rgba(18, 35, 78, .08);
}

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

.finance-document-preview-head > strong {
  color: #0e1b39;
  font-size: .86rem;
  white-space: nowrap;
}

.finance-document-preview-frame {
  height: 460px;
  overflow: hidden;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #eef3fb;
}

.finance-document-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.finance-document-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-document-preview-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #43536f;
  background: #f2f6fc;
  font-size: .68rem;
  font-weight: 850;
}

.finance-document-preview-empty {
  min-height: 280px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px dashed #cbd7ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f5f8fd);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.finance-document-preview-empty:hover,
.finance-document-preview-empty:focus-visible {
  border-color: rgba(49, 84, 223, .48);
  box-shadow: 0 12px 30px rgba(40, 69, 150, .13);
  transform: translateY(-1px);
  outline: none;
}

.finance-document-preview-empty strong,
.finance-document-preview-empty p {
  margin: 0;
}

.finance-document-preview-empty strong {
  color: #12203d;
}

.finance-document-preview-empty p {
  margin-top: 4px;
  color: #63728c;
  font-size: .78rem;
  line-height: 1.45;
}

.finance-billing-choice-modal[hidden] {
  display: none !important;
}

.finance-billing-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 5600;
  display: grid;
  place-items: center;
  padding: 24px;
}

.finance-billing-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 35, .62);
  backdrop-filter: blur(10px);
}

.finance-billing-choice-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid rgba(218, 227, 242, .92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(5, 16, 48, .32);
  outline: none;
}

.finance-billing-choice-dialog header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dfe7f2;
  background: linear-gradient(180deg, #fbfdff, #f4f8fd);
}

.finance-billing-choice-dialog header span {
  color: #3154df;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.finance-billing-choice-dialog h4,
.finance-billing-choice-dialog p {
  margin: 0;
}

.finance-billing-choice-dialog h4 {
  margin-top: 6px;
  color: #0c1835;
  font-size: 1.18rem;
  letter-spacing: -.03em;
}

.finance-billing-choice-dialog p {
  margin-top: 8px;
  color: #62708a;
  font-size: .82rem;
  line-height: 1.5;
}

.finance-billing-choice-grid {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.finance-billing-choice-grid form {
  margin: 0;
}

.finance-billing-choice-grid button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d7e1f2;
  border-radius: 13px;
  background: #fff;
  color: #07152f;
  text-align: left;
  cursor: pointer;
}

.finance-billing-choice-grid button::after {
  content: ">";
  color: #3154df;
  font-size: 1.2rem;
  font-weight: 900;
}

.finance-billing-choice-grid strong,
.finance-billing-choice-grid small {
  display: block;
  grid-column: 1;
}

.finance-billing-choice-grid strong {
  font-size: .9rem;
}

.finance-billing-choice-grid small {
  margin-top: 4px;
  color: #667994;
  font-size: .74rem;
}

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

.live-document-workspace--document-only .live-document-form--word {
  grid-column: 1;
}

.live-document-workspace--document-only .live-document-canvas {
  box-sizing: border-box;
}

.document-mail-modal,
.document-download-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.document-mail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 42, .66);
  backdrop-filter: blur(8px);
}

.document-mail-dialog,
.document-download-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(203, 215, 235, .95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(5, 16, 48, .3);
}

.document-mail-dialog:focus,
.document-download-dialog:focus {
  outline: 3px solid rgba(49, 84, 223, .25);
  outline-offset: 3px;
}

.document-mail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dfe7f2;
  background: linear-gradient(180deg, #fbfdff, #f4f8fd);
}

.document-mail-head span,
.document-download-dialog > span {
  color: #3154df;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-mail-head h2,
.document-download-dialog h2 {
  margin: 5px 0 0;
  color: #0c1835;
  font-size: 1.28rem;
  letter-spacing: -.03em;
}

.document-mail-head p,
.document-download-dialog p {
  margin: 7px 0 0;
  color: #62708a;
  font-size: .8rem;
  line-height: 1.5;
}

.document-mail-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e0ed;
  border-radius: 999px;
  background: #fff;
  color: #24324e;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.document-mail-form {
  display: grid;
}

.document-mail-address {
  display: grid;
  border-bottom: 1px solid #dfe7f2;
}

.document-mail-address label {
  min-height: 48px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #edf1f7;
}

.document-mail-address label:last-child {
  border-bottom: 0;
}

.document-mail-address span {
  padding-left: 24px;
  color: #68758c;
  font-size: .74rem;
  font-weight: 850;
}

.document-mail-address input {
  width: 100%;
  height: 48px;
  padding: 0 24px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14213e;
  font: inherit;
  font-size: .88rem;
}

.document-mail-editor {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
}

.document-mail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 18px;
  border-bottom: 1px solid #dfe7f2;
  background: #f8fafd;
}

.document-mail-toolbar button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #172541;
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}

.document-mail-toolbar button:hover,
.document-mail-toolbar button:focus-visible {
  border-color: #cdd9ea;
  background: #fff;
}

.document-mail-content {
  min-height: 260px;
  padding: 22px 24px;
  outline: 0;
  color: #1b2945;
  font-size: .92rem;
  line-height: 1.65;
}

.document-mail-content:focus {
  box-shadow: inset 0 0 0 2px rgba(49, 84, 223, .16);
}

.document-mail-content p {
  margin: 0 0 14px;
}

.document-mail-content ul,
.document-mail-content ol {
  margin: 0 0 14px;
  padding-left: 28px;
}

.document-mail-content a {
  color: #2548cc;
  text-decoration: underline;
}

.document-mail-attachment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 24px 18px;
  padding: 11px 12px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f8fbff;
}

.document-mail-attachment-icon {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7edff;
  color: #2947c4;
  font-size: .66rem;
  font-weight: 950;
}

.document-mail-attachment strong,
.document-mail-attachment small {
  display: block;
}

.document-mail-attachment strong {
  color: #13203c;
  font-size: .78rem;
}

.document-mail-attachment small {
  margin-top: 3px;
  color: #6d7890;
  font-size: .68rem;
}

.document-mail-attachment > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f8f5;
  color: #087d73;
  font-size: .64rem;
}

.document-mail-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px;
  border-top: 1px solid #dfe7f2;
  background: #f8fafd;
}

.document-mail-blocked {
  margin: 24px;
  padding: 18px;
  border: 1px solid #edd8b5;
  border-radius: 12px;
  background: #fff8e8;
  color: #795719;
}

.document-download-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 26px;
}

.document-download-dialog .document-mail-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.document-download-dialog h2 {
  max-width: 440px;
  margin-top: 8px;
}

.document-download-dialog p {
  margin-top: 14px;
}

.document-download-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.document-download-actions form {
  margin: 0;
}

.finance-native-email-search {
  grid-template-columns: minmax(210px, 1.5fr) minmax(140px, .8fr) minmax(140px, .8fr) 132px 132px auto;
}

.finance-native-email-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.finance-native-email-head .finance-native-email-search {
  grid-column: 1 / -1;
  width: 100%;
}

.finance-native-email-compose {
  min-width: 120px;
  white-space: nowrap;
}

.finance-native-email-row {
  cursor: default;
  grid-template-columns: 28px minmax(250px, 1.8fr) minmax(100px, .65fr) minmax(130px, .8fr) minmax(130px, .8fr) minmax(170px, 1fr) minmax(90px, .55fr);
}

.finance-native-email-row:hover {
  transform: none;
}

.finance-native-email-row > span:last-child small {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .finance-native-email-head {
    grid-template-columns: 1fr;
  }

  .finance-native-email-search,
  .finance-native-email-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-native-email-compose {
    justify-self: start;
  }

  .finance-native-email-row .finance-native-row-title {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .document-mail-modal,
  .document-download-modal {
    padding: 10px;
  }

  .document-mail-dialog,
  .document-download-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .document-mail-head {
    padding: 18px;
  }

  .document-mail-address label {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .document-mail-address span {
    padding-left: 18px;
  }

  .document-mail-content {
    padding: 18px;
  }

  .document-mail-attachment {
    margin-inline: 18px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .document-mail-attachment > b {
    display: none;
  }

  .document-mail-footer,
  .document-download-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .document-mail-footer .btn,
  .document-download-actions .btn,
  .document-download-actions form {
    width: 100%;
  }

  .finance-native-email-search,
  .finance-native-email-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .live-document-workspace--document-only .live-document-form--word {
    grid-template-columns: minmax(0, 100%) !important;
  }
}
