@font-face {
  font-family: 'Nebulas';
  src: url('/fonts/Nebulas-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suit';
  src: url('/fonts/SUIT-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0b0f12;
  padding: 2rem 3rem;
  position: relative;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
  opacity: 0;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 0;
  background: rgba(18, 22, 27, 0.9);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(8px);
  animation: float-in 0.7s ease;
}

.brand {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}


.topbar h1 {
  margin: 0 0 0.35rem;
  font-family: 'Nebulas', serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}

.topbar__actions,
.flow-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.flow-header__center {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.ops-avatar {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid var(--border);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



.ops-rail {
  position: absolute;
  left: 85px;
  transform: translateX(-50%);
  top: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 5;
  padding: 0;
  background: transparent;
  border: none;
}

.ops-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nebulas', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #1b1b1b;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

.flow-header__left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
}

.ops-rail__btn {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1c;
  cursor: pointer;
}

.ops-rail__btn svg,
.flow__req-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.ops-rail__btn img {
  width: 18px;
  height: 18px;
}

.ops-rail__btn.is-active {
  background: #1c1c1c;
  color: #ffffff;
  border-color: #1c1c1c;
}
.ops-rail__btn.is-active img {
  filter: invert(1);
}

.wizard {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.85);
  display: grid;
  place-items: center;
  z-index: 30;
}

.wizard.hidden,
.edit-mode.hidden,
body.is-edit-mode .flow-header,
.flow-subtabs .subtab.is-hidden,
#flowEditPanel.is-hidden,
.flow__req-card.is-collapsed .flow__req-body,
thead,
.modal.hidden {
  display: none;
}

.wizard__panel {
  width: min(640px, 92vw);
  background: #10151b;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.wizard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.wizard__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.wizard__progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.wizard__dot {
  flex: 1;
  height: 2px;
  background: rgba(230, 230, 230, 0.15);
}

.wizard__dot.is-active {
  background: #e6e6e6;
}

.wizard__body,
.modal__body {
  display: grid;
  gap: 1rem;
}

.wizard__field,
.flow__req-input {
  display: grid;
  gap: 0.4rem;
}

.wizard__field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.wizard__field input,
.wizard__field select,
.wizard__field textarea {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.wizard__field textarea {
  min-height: 90px;
  resize: vertical;
}

.wizard__grid,
.modal__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.wizard__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.edit-mode {
  padding: 2rem 3rem 3rem;
}



.edit-mode--flow {
  padding: 0;
  background: transparent;
}

body.is-edit-mode .app,
body.is-edit-mode .tabs,


.edit-mode__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.edit-mode__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.edit-mode__header h2 {
  margin: 0.5rem 0;
  font-size: 2rem;
}

.edit-mode__grid {
  --card-unit: 300px;
  display: grid;
  grid-template-columns: repeat(3, var(--card-unit));
  grid-auto-rows: calc(var(--card-unit) * 0.5);
  grid-auto-flow: dense;
  gap: 1.25rem;
}

.edit-card {
  background: #14181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.edit-card.is-warning {
  background: rgba(225, 177, 73, 0.2);
  border-color: rgba(225, 177, 73, 0.5);
}

.edit-card.is-critical {
  background: rgba(210, 65, 65, 0.22);
  border-color: rgba(210, 65, 65, 0.6);
}

.edit-card--highlight {
  background: var(--accent);
  color: #f2fff7;
}

.edit-card--highlight p,
.edit-card--highlight .edit-card__meta {
  color: rgba(242, 255, 247, 0.95);
}

.edit-card--half,
.overview-card--half {
  grid-row: span 1;
}

.edit-card--highlight h3 {
  color: var(--accent);
}

.edit-card__value--accent {
  color: var(--accent);
}

.edit-card--wide,
.overview-card--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.edit-card--bars {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.edit-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  align-items: stretch;
  height: 100%;
  padding-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
}

.edit-bar {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  width: 100%;
  height: 100%;
}

.edit-bar__value {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.75);
  padding: 0.1rem 0.25rem 0;
  text-align: center;
}

.edit-bar__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(28, 28, 28, 0.55);
  padding-left: 0.35rem;
  margin-top: 0.05rem;
}

.edit-bar__track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.edit-bar__fill {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f4f4f4;
  border-radius: 12px 12px 0 0;
  height: 10%;
  transition: height 0.3s ease;
  margin: 0;
  padding-top: 0.1rem;
}

.edit-bar__fill--accent {
  background: var(--accent);
}

.edit-bar__fill--neutral {
  background: #f4f4f4;
}


.edit-bar__fill.is-negative {
  background: #ededed;
}

.edit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.edit-card h3 {
  margin: 0;
  font-size: 2.6rem;
}

.edit-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

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

.edit-card__meta-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.edit-card__list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
  max-height: calc(var(--card-unit) - 120px);
  overflow: auto;
  padding-right: 0.2rem;
}

.edit-billing-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
  max-height: calc(var(--card-unit) - 190px);
  overflow: auto;
  padding-right: 0.2rem;
}


.edit-billing-row {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.edit-billing-row__main,
.edit-billing-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.edit-billing-row__main {
  align-items: center;
}

.edit-billing-row__main span:nth-child(2) {
  color: #f2f2f2;
}

.edit-billing__status {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle__thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f2f2f2;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__track {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked + .toggle__track .toggle__thumb {
  transform: translateX(14px);
}

.toggle.is-disabled {
  opacity: 0.5;
}

.edit-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.edit-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.edit-calendar-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.6rem;
}

.edit-calendar-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-calendar-card__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
}

.edit-calendar-card__date {
  color: #f2f2f2;
  font-weight: 600;
  font-size: 0.8rem;
}

.edit-calendar-card__body {
  display: grid;
  gap: 0.35rem;
}

.edit-calendar-card__event {
  font-size: 0.75rem;
  color: #f2f2f2;
}

.edit-calendar-card__empty {
  font-size: 0.7rem;
  color: var(--muted);
}

.edit-calendar-card__more {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.edit-calendar-swap {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.edit-calendar-swap label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.edit-calendar-swap__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-calendar-swap select {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  appearance: none;
}

.ghost-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.edit-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  margin-top: 0.6rem;
}

.edit-meta__item {
  display: grid;
  gap: 0.3rem;
}

.edit-meta__label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.edit-meta__value {
  font-size: 0.95rem;
  color: #f2f2f2;
  line-height: 1.2;
}





.edit-tracking__group {
  margin-top: 1.5rem;
}

.edit-tracking__tabs,
.overview-panel--todos {
  margin-bottom: 1.5rem;
}

.tracking-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tracking-form input,
.tracking-form select {
  border: 1px solid var(--border);
  background: #0b0f12;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.tracking-form .ghost-btn {
  align-self: stretch;
}

.line-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.line-item-actions {
  display: flex;
  justify-content: flex-end;
  width: 45px;
}



.line-item-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tracking-table td:last-child {
  text-align: right;
}

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

.tracking-section {
  margin-bottom: 0.9rem;
}

.tracking-section__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tracking-item {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 0.55rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 240px;
  box-shadow: none;
}

.tracking-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.tracking-item__badge {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.tracking-item__icon {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #ffffff;
  flex-shrink: 0;
}

.tracking-item__icon img {
  width: 18px;
  height: 18px;
}

.tracking-item__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(28, 28, 28, 0.55);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracking-card__list {
  display: grid;
  gap: 0.6rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.tracking-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tracking-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
  letter-spacing: 0.01em;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.tracking-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tracking-item__action,
.tracking-item__remove {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #1c1c1c;
  cursor: pointer;
  flex-shrink: 0;
}

.tracking-item__action img,
.tracking-item__remove img {
  width: 18px;
  height: 18px;
}

.tracking-item__action.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1c1c;
}

.tracking-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
}


.tracking-item__detail {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tracking-item__notes {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

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

.line-item-table {
  display: grid;
  gap: 0.45rem;
}

.line-item-row {
  display: grid;
  grid-template-columns: 2.6fr 1.2fr 1.4fr 1.2fr 2fr 45px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(237, 241, 243, 0.12);
  background: #ffffff;
  border-radius: 10px;
  font-size: 1.8rem;
}

.line-item-row--head {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.line-item-cell input,
.line-item-cell select {
  width: 100%;
  border: 1px solid rgba(237, 241, 243, 0.12);
  background: transparent;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 1.7rem;
}

.line-item-cell input[data-line-item-field='amount'] {
  text-align: right;
  padding-right: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-family: 'Suit', system-ui, sans-serif;
}

.line-item-cell--amount {
  justify-self: end;
}

/* Remove number spinners for amount fields */
.line-item-cell input[type='number']::-webkit-outer-spin-button,
.line-item-cell input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.line-item-cell input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.line-item-statuses {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-start;
}

.line-item-status {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.line-item-status img {
  width: 18px;
  height: 18px;
}

.line-item-status.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1c1c;
}

.line-item-status[data-line-item-status='Paid'].is-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

.invoice-grid {
  display: grid;
  gap: 0.45rem;
}

.invoice-row {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(237, 241, 243, 0.12);
  background: #ffffff;
  border-radius: 10px;
  font-size: 1.4rem;
}

.invoice-row--head {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.invoice-cell {
  min-width: 0;
}

.invoice-cell--amount {
  text-align: right;
  padding-right: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.invoice-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.invoice-grid--ap .invoice-row,
.invoice-grid--ar .invoice-row {
  grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr 90px;
}

.invoice-grid--payments .invoice-row {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
}

.invoice-grid--vault .invoice-row {
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr 1fr 90px;
}

.data-grid {
  display: grid;
  gap: 0.45rem;
}

.data-grid__row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) 90px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(237, 241, 243, 0.12);
  background: #ffffff;
  border-radius: 10px;
  font-size: 1.2rem;
}

.data-grid__row--head {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.line-item-row.is-done {
  border-color: rgba(199, 243, 60, 0.6);
  background: rgba(199, 243, 60, 0.08);
}

.line-item-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.line-item-remove:hover,
.tracking-item__remove:hover {
  color: #1c1c1c;
  border-color: #1c1c1c;
}

.line-item-remove img {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .line-item-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .line-item-row {
    grid-template-columns: 1fr 1fr;
  }

  .line-item-row--head {
    display: none;
  }
}

.tracking-item.is-done .tracking-item__title {
  color: #1c1c1c;
}

.tracking-item .ghost-btn.danger {
  padding: 0.25rem 0.55rem;
  font-size: 0.55rem;
}

@media (max-width: 900px) {
  .tracking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edit-meta {
    grid-template-columns: 1fr;
  }

  .edit-calendar-grid {
    grid-template-columns: 1fr;
  }
}

.edit-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.edit-card__item span {
  color: var(--muted);
  font-size: 0.7rem;
}

.edit-card__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  height: 80px;
  align-items: end;
}

.edit-card__timeline span {
  background: rgba(255, 255, 255, 0.12);
  height: 100%;
}

.edit-card__timeline span:nth-child(3) {
  background: var(--accent);
  height: 70%;
}

@media (max-width: 960px) {
  .edit-mode__grid {
    grid-template-columns: repeat(2, var(--card-unit));
  }

  .edit-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .edit-mode {
    padding: 1.5rem;
  }

  .edit-mode__grid {
    grid-template-columns: repeat(1, var(--card-unit));
  }

  .edit-card--wide {
    grid-column: span 1;
  }
}

.status-pill {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(230, 230, 230, 0.12);
  color: #f3f3f3;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  height: 45px;
  padding: 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.62rem;
  cursor: pointer;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.tab.is-active,
.subtab.is-active {
  color: #0b0f12;
  background: transparent;
}

.tab-indicator,
.subtab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  padding-left: 120px;
}

.section {
  display: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  box-shadow: none;
  animation: rise 0.6s ease;
}

.section.is-active,
.subtab-panel.is-active {
  display: block;
}

.constants-stack {
  display: grid;
  gap: 2rem;
}

.subtabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  position: relative;
  background: transparent;
  border-radius: 999px;
  padding: 0;
}

.subtabs.is-hidden {
  display: none;
}

.flow-tracking-subtabs {
  margin-bottom: 0.6rem;
  justify-content: flex-end;
  width: 100%;
}

.subtab {
  background: transparent;
  border: none;
  color: var(--muted);
  height: 45px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 1;
}





.subtab-panel {
  display: none;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid rgba(237, 241, 243, 0.1);
  padding: 1.5rem;
}



.subtab-panel .section__header {
  margin-bottom: 1.25rem;
}

.invoice-panel {
  border: 1px solid rgba(237, 241, 243, 0.16);
  padding: 1.5rem;
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
}

.section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.section__header .subtabs {
  margin-bottom: 0;
}

.section__header h2 {
  margin: 0 0 0.4rem;
  font-family: 'Nebulas', serif;
  letter-spacing: 0.03em;
  font-size: 2rem;
}

.section__eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
  margin-top: -0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section__eyebrow::before {
  content: "📄";
  font-size: 0.7rem;
  line-height: 1;
  display: inline-block;
}

.section__header--hero h2 {
  font-size: 6rem;
  line-height: 0.9;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.overview-card,
.overview-panel {
  border: 1px solid rgba(237, 241, 243, 0.16);
  padding: 1.1rem;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
}

.overview-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.overview-card .value {
  font-size: 1.45rem;
  font-family: 'Nebulas', serif;
}



.overview-panel--wide {
  grid-column: span 2;
}

.overview-panel--grid {
  height: calc(var(--card-unit) * 1);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.4rem;
}

.overview-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: rgba(28, 28, 28, 0.55);
  padding: 0 0.2rem;
}

.overview-panel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.overview-panel__body {
  min-height: 0;
  overflow: hidden;
}

.overview-panel__controls .ghost-btn.is-icon {
  width: 32px;
  height: 32px;
}

.overview-panel__controls .ghost-btn.is-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.overview-panel--grid .table-shell {
  border-radius: var(--radius-sm);
  height: 100%;
  overflow: auto;
}



.overview-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



.section__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flow-copyright {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0.4rem;
  vertical-align: top;
}

.section[data-section="flow"] .section__header {
  position: relative;
}

.section[data-section="flow"] .flow-copyright {
  position: static;
}

.search {
  border-radius: 999px;
  border: 1px solid var(--border);
  height: 45px;
  padding: 0 1rem;
  font-size: 0.9rem;
  min-width: 180px;
  background: #0f1318;
  color: var(--ink);
}

.primary-btn {
  border: none;
  background: var(--accent);
  color: #0b1012;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}

.ghost-btn.danger {
  border-color: rgba(255, 88, 88, 0.4);
  color: #ff9c9c;
}

.ghost-btn.tiny {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-inline-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.table-shell {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.flow {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.15rem;
  margin: 1.5rem 0 2rem;
  position: relative;
}

.flow-vertical {
  display: grid;
  grid-template-columns: 280px 80px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 0.5rem 0 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.flow-vertical__list {
  align-self: stretch;
}

.flow-vertical__main {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 360px);
  gap: 2rem;
  align-items: start;
  padding-left: 24px;
}

.flow-vertical__headline {
  grid-column: 1;
  justify-self: start;
}

.flow-req-panel {
  grid-column: 2;
}



.flow-vertical__track {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  justify-items: start;
}

.flow-vertical__track,
.flow-vertical__nav {
  pointer-events: none;
}

.flow-vertical__nav {
  position: relative;
  width: 80px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  justify-self: start;
}

.flow-vline {
  position: absolute;
  left: 20px;
  top: 36px;
  bottom: 36px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0) 0%,
    rgba(28, 28, 28, 0.5) 18%,
    rgba(28, 28, 28, 0.5) 82%,
    rgba(28, 28, 28, 0) 100%
  );
  transform: translateY(0);
  will-change: transform;
  z-index: 2;
  pointer-events: none;
}

.flow-vline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--flow-indicator-pct, 50%);
  width: 14px;
  height: 14px;
  background: #1c1c1c;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(28, 28, 28, 0.12);
}

.flow-vline.scroll-up {
  animation: flowLineScrollUp 720ms cubic-bezier(.16,1,.3,1) both;
}

.flow-vline.scroll-down {
  animation: flowLineScrollDown 720ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes flowLineScrollUp {
  0% { transform: translateX(-50%) translateY(0); }
  60% { transform: translateX(-50%) translateY(22px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@keyframes flowLineScrollDown {
  0% { transform: translateX(-50%) translateY(0); }
  60% { transform: translateX(-50%) translateY(-22px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.flow-vfill {
  position: absolute;
  left: 50%;
  width: 360px;
  height: 230px;
  background: #f7f6f4;
  transform: translate(-50%, 0) scale(1);
  border-radius: 20px;
  overflow: hidden;
  z-index: 5;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  will-change: transform, filter;
  pointer-events: none;
}

.flow-vfill {
  display: none;
}

.flow-vfill::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: #f7f6f4;
  border-radius: 24px;
}

.flow-vfill.bump {
  animation: flowSquareBump 420ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes flowSquareBump {
  0% { transform: translate(-50%,0) scale(1); filter: brightness(1); }
  38% { transform: translate(-50%,0) scale(.94); filter: brightness(1.03); }
  72% { transform: translate(-50%,0) scale(1.015); filter: brightness(1.02); }
  100% { transform: translate(-50%,0) scale(1); filter: brightness(1); }
}

.flow-vzones {
  position: absolute;
  left: 0;
  right: auto;
  width: 40px;
  top: calc(50% - 100px);
  height: 200px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  z-index: 6;
}

.flow-vbtn {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.flow-vbtn:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.flow-vertical__text {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.flow-step-head {
  position: relative;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flow-text-wrap {
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.flow-connector {
  position: absolute;
  display: none;
  top: 50%;
  width: 20px;
  height: 1px;
  background: rgba(28, 28, 28, 0.45);
  transform: translateY(-50%) scaleX(1);
  transform-origin: left center;
  will-change: transform, opacity;
}

.flow-connector.pull {
  animation: flowConnectorPull 420ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes flowConnectorPull {
  0% { transform: translateY(-50%) scaleX(1); opacity: .45; }
  55% { transform: translateY(-50%) scaleX(1.8); opacity: .65; }
  100% { transform: translateY(-50%) scaleX(1); opacity: .45; }
}

.flow-step {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.flow-step .inner {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(0);
  will-change: transform, opacity;
}

.flow-step.is-current .inner {
  opacity: 1;
}

.flow-step.enter-from-line-bottom .inner {
  animation: flowFromLineBottom 680ms cubic-bezier(.16,1,.3,1) both;
}

.flow-step.enter-from-line-top .inner {
  animation: flowFromLineTop 680ms cubic-bezier(.16,1,.3,1) both;
}

.flow-step.exit-to-line-top .inner {
  animation: flowToLineTop 520ms cubic-bezier(.4,0,.6,1) both;
}

.flow-step.exit-to-line-bottom .inner {
  animation: flowToLineBottom 520ms cubic-bezier(.4,0,.6,1) both;
}

@keyframes flowFromLineBottom {
  from { transform: translateY(240px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes flowFromLineTop {
  from { transform: translateY(-240px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes flowToLineTop {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-240px); opacity: 0; }
}

@keyframes flowToLineBottom {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(240px); opacity: 0; }
}

.flow-task-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.06);
  border: 1px solid rgba(28, 28, 28, 0.12);
  margin-left: 0;
  width: 100%;
  justify-content: space-between;
  max-width: 240px;
}

.flow-req-box {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 28, 28, 0.14);
  width: 320px;
  height: 190px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.flow-req-box #flowRequirements {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding-right: 0.2rem;
}

.flow-req-box .flow__req-grid {
  display: grid;
  gap: 0.4rem;
}

.flow-req-box .flow__req-card,
.flow-req-box .flow__req-card.is-active {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 28, 28, 0.12);
}

.flow-req-box .flow__req-card-header {
  gap: 0.4rem;
  align-items: center;
}

.flow-req-box .flow__req-card-title {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.flow-req-box .flow__req-pill {
  font-size: 0.55rem;
  padding: 0.15rem 0.35rem;
}

.flow-req-panel {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 28, 28, 0.14);
  width: min(360px, 100%);
  min-height: 190px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  justify-self: start;
}

.flow-req-panel #flowRequirements {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding-right: 0.2rem;
}

.flow-req-panel .flow__req-grid {
  display: grid;
  gap: 0.4rem;
}

.flow-req-panel .flow__req-card,
.flow-req-panel .flow__req-card.is-active {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 28, 28, 0.12);
}

.flow-req-panel .flow__req-card-header {
  gap: 0.4rem;
  align-items: center;
}

.flow-req-panel .flow__req-card-title {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.flow-req-panel .flow__req-pill {
  font-size: 0.55rem;
  padding: 0.15rem 0.35rem;
}

.flow-task-label {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-task-value {
  font-size: 0.8rem;
  color: var(--ink);
}

.flow__step-list {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid rgba(28, 28, 28, 0.12);
  padding-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.flow__step-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.flow__step-list-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.flow__step-list-actions .ghost-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow__step-list-body {
  display: grid;
  gap: 0.45rem;
  max-height: none;
  overflow: hidden;
  padding-right: 0.2rem;
  position: relative;
  will-change: transform;
  transition: transform 420ms cubic-bezier(.16,1,.3,1);
  z-index: 1;
}

.flow__step-list-body.flow-list-scroll {
  transition: transform 520ms cubic-bezier(.16,1,.3,1);
}

.flow__step-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.flow__step-item:hover:not(:disabled) {
  border-color: rgba(28, 28, 28, 0.4);
}

.flow__step-item:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.flow__step-item.is-current {
  border-color: rgba(28, 28, 28, 0.8);
  background: rgba(255, 255, 255, 1);
}

.flow__step-item.is-done {
  background: rgba(230, 230, 230, 0.4);
}

.flow__step-item.is-hidden {
  display: none;
}

.flow__step-index {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.flow__step-title {
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow__step-status {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.2);
  color: var(--muted);
  white-space: nowrap;
}

.flow__step-status.current {
  border-color: rgba(28, 28, 28, 0.8);
  color: var(--ink);
}

.flow__step-status.done {
  border-color: rgba(28, 28, 28, 0.5);
  color: var(--ink);
}

.flow__step-status.seen {
  border-color: rgba(28, 28, 28, 0.3);
  color: var(--muted);
}

.flow__step-status.locked {
  border-color: rgba(28, 28, 28, 0.15);
  color: rgba(28, 28, 28, 0.4);
}

@media (max-width: 900px) {
  .flow-vertical {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-vertical__main {
    justify-items: start;
    grid-template-columns: 1fr;
  }

  .flow-vertical__headline {
    grid-column: auto;
  }

  .flow-vertical__list {
    grid-row: 2;
  }

  .flow-vertical__track {
    grid-row: 3;
  }

  .flow-vertical__nav {
    width: 100%;
    height: 220px;
  }

  .flow-vertical__text {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-task-row {
    margin-left: 0;
  }

  .section[data-section="flow"] .flow__requirements {
    margin-left: 0;
  }
}

.flow__slider {
  display: block;
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  margin-top: 0.3rem;
  padding: 0.2rem 0;
  height: 18px;
}

.flow__slider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(28, 28, 28, 0.12);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.flow__node-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1c1c1c;
  transition: transform 0.34s ease;
  z-index: 1;
  transform: translateY(-50%);
}

.flow__cursor {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  transform: translateY(-50%);
  z-index: 2;
  flex-wrap: nowrap;
}

.flow__cursor-row {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.flow__node {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.35);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.flow__node--current {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border-color: #1c1c1c;
  background: #1c1c1c;
  cursor: default;
}

.flow__node--nav:hover:not(:disabled) {
  transform: scale(1.6);
  border-color: #1c1c1c;
}

.flow__node:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flow__slider.is-animating .flow__node--current,
tbody tr {
  background: transparent;
}

.flow__stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: start;
}

.flow__card-wrap {
  position: relative;
  width: 100%;
  height: auto;
}

.flow__pills {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.flow__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  min-height: 45px;
}

.flow__pill--step {
  min-width: 320px;
  justify-content: space-between;
}

.flow__pill--task {
  min-width: 220px;
  justify-content: space-between;
}

.flow__pill-nav,
.flow__pill-check {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #1c1c1c;
  cursor: pointer;
}

.flow__pill-nav svg,
.flow__pill-check svg {
  width: 16px;
  height: 16px;
}
.flow__pill-nav img,
.flow__pill-check img {
  width: 16px;
  height: 16px;
}

.flow__pill-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flow__pill-text {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 120px;
  color: #1c1c1c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
  height: 1.2em;
  flex: 1;
  text-align: center;
}

.flow__pill-text .pill-text-stack {
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
}

.flow__pill-text .pill-text-stack span {
  height: 1.2em;
  line-height: 1.2em;
}

.flow__pill-text .pill-text-stack.is-next,
.flow__pill-text .pill-text-stack.is-prev.is-animating {
  transform: translateY(0);
}

.flow__pill-text .pill-text-stack.is-next.is-animating,
.flow__pill-text .pill-text-stack.is-prev {
  transform: translateY(-100%);
}





.flow__track {
  display: flex;
  gap: 0;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease;
  z-index: 1;
  display: none;
}

.flow__step {
  width: 220px;
  height: 120px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

.flow__step.is-main {
  border-color: rgba(230, 230, 230, 0.4);
  background: rgba(230, 230, 230, 0.12);
  color: #f1f1f1;
}

.flow__phase {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6d6d6;
}

.flow__step.is-active {
  border-color: #f1f1f1;
  color: #f1f1f1;
}

.flow__step.is-locked::after {
  content: "LOCK";
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: #8a8a8a;
}

.flow__project {
  width: 100%;
  height: auto;
  background: transparent;
  border: none;
  color: #111;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  z-index: 2;
  text-align: left;
  padding: 0;
  border-radius: var(--radius-lg);
}

.flow__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.flow__subtitle {
  font-size: 0.85rem;
  color: #3b3b3b;
}

.flow__step-label {
  margin-top: auto;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2b2b2b;
}

.flow__step-label--cursor {
  margin-left: 0;
  margin-top: 0;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(28, 28, 28, 0.55);
  white-space: nowrap;
  transform: translateY(-2px);
}


.flow__requirements {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0;
}

.section[data-section="flow"] .flow__requirements {
  margin-left: 0;
  max-width: none;
}

.flow__req-title {
  font-size: 1.4rem;
  font-family: 'Nebulas', serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flow__req-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.flow__req-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.flow__req-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.flow__req-card {
  border: 1px solid rgba(28, 28, 28, 0.12);
  padding: 0.35rem 0.6rem;
  background: transparent;
  border-radius: 999px;
  transform: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.flow__req-card.is-done {
  opacity: 0.55;
}

.flow__req-card.is-pending {
  box-shadow: none;
}



.flow__req-card.is-collapsed {
  opacity: 0.6;
}

.flow__req-card.is-active {
  opacity: 1;
}

.flow__req-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flow__req-card-title {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow__req-pill {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(28, 28, 28, 0.2);
  color: rgba(28, 28, 28, 0.6);
}

.flow__req-pill.done {
  color: #0b0f12;
  background: #c7f33c;
  border-color: transparent;
}

.flow__req-body {
  padding-top: 0.5rem;
  display: block;
}

.flow__req-card.is-active {
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  flex: 1 1 220px;
  align-items: flex-start;
  flex-direction: column;
}

.flow__req-card.is-active .flow__req-body {
  width: 100%;
}

.flow__req-pill.pending {
  color: var(--muted);
}

.flow__req-pill.auto {
  color: #0b0f12;
  background: rgba(230, 230, 230, 0.6);
  border-color: transparent;
}

.flow__req-toggle,
.flow__req-inline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}



.flow__req-input label,
.flow__req-upload .flow__req-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.flow__req-upload {
  display: grid;
  gap: 0.5rem;
}





.flow__req-inline input,
.flow__req-inline select {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #1c1c1c;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.flow__req-inline button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1c1c1c;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: 999px;
}

.flow__req-auto {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.overview-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.flow__req-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}



.project-group {
  border: 1px solid rgba(237, 241, 243, 0.08);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.project-group h4 {
  margin: 0 0 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem 1rem;
}

.project-field {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  border-bottom: none;
}

.project-field span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.project-field strong {
  font-size: 0.85rem;
  color: #e6e6e6;
  line-height: 1.4;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 720px;
}

thead th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 0.75rem;
  border-bottom: none;
}



tbody td {
  padding: 0.85rem 0.75rem;
  border-bottom: none;
  font-size: 0.92rem;
}

tbody tr:hover {
  background: rgba(0, 0, 0, 0.04);
}



tbody tr td:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

tbody tr td:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

tbody tr td {
  background: rgba(0, 0, 0, 0.03);
}

.pill {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(230, 230, 230, 0.12);
  color: #f3f3f3;
}

.link {
  color: #f2f2f2;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 230, 230, 0.4);
}
.link--button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 5;
}

.modal__panel {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: min(720px, 100%);
}


.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}



.modal__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal__form input,
.modal__form select,
.modal__form textarea {
  border-radius: 0;
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: #0f1318;
  color: var(--ink);
}

.modal__form textarea {
  min-height: 80px;
  resize: vertical;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(230, 230, 230, 0.08);
  border-radius: 0;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.vault-upload,
.flow-stack,
.subtab-panels,
.ops-main {
  display: grid;
  gap: 1.5rem;
}

.vault-upload__drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.vault-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vault-upload__drop p {
  margin: 0;
}

.vault-upload__drop .muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.vault-upload__drop.is-dragover {
  border-color: rgba(237, 241, 243, 0.6);
  background: var(--surface);
}

.vault-upload__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.vault-upload__list {
  display: grid;
  gap: 0.75rem;
}

.vault-upload__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.vault-upload__name {
  flex: 1;
  min-width: 180px;
}

.vault-upload__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.vault-upload__field select {
  background: #0b0f12;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.vault-upload__status {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.vault-upload__status.is-success {
  color: #9fffd7;
}

.vault-upload__status.is-error {
  color: #ff8a8a;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.icon-btn img {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  border-color: rgba(237, 241, 243, 0.4);
  background: rgba(237, 241, 243, 0.08);
}

.icon-btn.danger {
  color: #ffb4b4;
}

@media (max-width: 720px) {
  body {
    padding: 1.2rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__header {
    flex-direction: column;
  }

  .section__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Light dashboard skin inspired by the provided reference. */
:root {
  color-scheme: light;
  --ink: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.55);
  --accent: #c7f33c;
  --accent-ink: #1c1c1c;
  --accent-dark: #f6f4f1;
  --accent-glow: rgba(0, 0, 0, 0.08);
  --paper: #ecebe8;
  --card: #f8f7f4;
  --border: rgba(25, 25, 25, 0.08);
  --shadow: 0 24px 60px rgba(15, 15, 15, 0.08);
  --radius-lg: 22.5px;
  --radius-md: 22.5px;
  --radius-sm: 22.5px;
  --surface: #f4f3f0;
  --surface-soft: #f9f8f6;
  --surface-strong: #ffffff;
  font-family: 'Suit', system-ui, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.ambient {
  opacity: 1;
  background: radial-gradient(circle at top left, #f6f5f3 0%, transparent 55%),
    radial-gradient(circle at top right, #f2f1ef 0%, transparent 50%),
    linear-gradient(180deg, #f3f2f0 0%, #e8e6e2 100%);
}

.brand__badge {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #1c1c1c;
  letter-spacing: 0.28em;
}

.status-pill {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border);
  height: 45px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
}

.status-pill--icon {
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
}

.status-pill--icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.status-pill--icon img {
  width: 18px;
  height: 18px;
}

.status-pill--icon.is-ok {
  color: #0f766e;
  border-color: #0f766e;
}

.status-pill--icon.is-error {
  color: #cc4133;
  border-color: #cc4133;
}

.status-pill--icon.is-warn {
  color: #6b7280;
  border-color: #6b7280;
}

.tabs,
.subtabs {
  background: transparent;
  border: none;
  box-shadow: none;
}

.tab,
.subtab {
  color: rgba(28, 28, 28, 0.6);
}

.flow-project-select {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: transparent !important;
  background-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-right: 1rem;
}

.flow-project-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.flow-project-select__hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(-4px);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.9);
  color: #f7f6f4;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.flow-project-select-wrap:hover .flow-project-select__hint,
.flow-project-select-wrap:focus-within .flow-project-select__hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.flow-project-select.is-scrolling {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.tab-indicator,
.subtab-indicator {
  background: #1c1c1c;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tab.is-active,
.subtab.is-active,
.tabs--vertical .tab.is-active {
  color: #f7f6f4;
}

.section__header h2,
.tracking-item__title {
  color: #1c1c1c;
}

.subtab-panel,
.invoice-panel,
.overview-card,
.overview-panel,
.edit-card,
.edit-card__item,
.tracking-item,
.line-item-row,
.line-item-row--head {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.line-item-row--head {
  background: transparent;
  border: none;
  box-shadow: none;
}

.subtab-panel,
.invoice-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.overview-card h4,
.overview-panel h3,
.edit-card p,
.edit-card__meta,
.tracking-section__title,
.line-item-summary {
  color: rgba(28, 28, 28, 0.55);
}



.search,
.tracking-form input,
.tracking-form select,
.line-item-form input,
.line-item-form select,
.modal__form input,
.modal__form select,
.modal__form textarea,
.wizard__field input,
.wizard__field select,
.wizard__field textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #1c1c1c;
}

.primary-btn {
  background: #1c1c1c;
  color: #f7f6f4;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.primary-btn.is-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-plus {
  background: #1c1c1c;
  border: 1px solid #1c1c1c;
  color: #ffffff;
}

.btn-plus .icon-img {
  filter: invert(1);
}

.ghost-btn.btn-plus,
.primary-btn.btn-plus {
  background: #1c1c1c;
  border-color: #1c1c1c;
  color: #ffffff;
}

.ghost-btn {
  border: 1px solid rgba(28, 28, 28, 0.2);
  color: #1c1c1c;
  background: rgba(255, 255, 255, 0.7);
}

.table-shell {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

thead th {
  border-bottom: 1px solid var(--border);
  color: rgba(28, 28, 28, 0.6);
}

tbody td {
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}



.pill {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #1c1c1c;
}

.pill--paid {
  background: var(--accent);
  color: #1c1c1c;
}

.link {
  color: #1c1c1c;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.modal {
  background: rgba(30, 30, 30, 0.3);
}

.icon-btn {
  border-color: rgba(28, 28, 28, 0.2);
}

.icon-btn:hover {
  border-color: rgba(28, 28, 28, 0.35);
  background: rgba(0, 0, 0, 0.05);
}

/* Vertical subtab layout */
.subtab-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}



.subtabs--vertical {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0;
  border-radius: 0;
  min-width: 0;
}


.subtabs--vertical .subtab {
  width: auto;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.subtabs--vertical .subtab-indicator,
.tabs--vertical .tab-indicator {
  border-radius: 18px;
}



/* Overview fit-to-screen tweaks */
.section[data-section="overview"] .section__header,
.section[data-section="overview"] .subtabs {
  margin-bottom: 0.6rem;
}

.section[data-section="overview"] .section__header {
  margin-top: 0.3rem;
}

.section[data-section="overview"] .section__header--hero h2 {
  font-size: 3.8rem;
  line-height: 0.95;
}

.section[data-section="flow"] .section__header--hero h2,
.section[data-section="invoices"] .section__header--hero h2,
.section[data-section="vault"] .section__header--hero h2,
.section[data-section="constants"] .section__header--hero h2 {
  font-size: 3.8rem;
  line-height: 0.95;
}

.section[data-section="flow"] .section__header,
.section[data-section="invoices"] .section__header,
.section[data-section="vault"] .section__header {
  margin-bottom: 0.6rem;
}

.section[data-section="overview"] .section__actions {
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.section[data-section="overview"] .subtab {
  height: 45px;
  padding: 0 0.85rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.section[data-section="invoices"] .subtab-panel,
.section[data-section="vault"] .subtab-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.section[data-section="flow"] .flow-stack {
  display: grid;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

.section[data-section="flow"] .flow-stack > .subtab-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.section[data-section="flow"] .flow-stack > .subtab-panel[data-subtab-panel="flow"] {
  background: transparent;
  border: none;
  padding: 0;
}

.section[data-section="flow"] .flow-stack > .subtab-panel:not(.is-active) {
  display: none;
}

.section[data-section="flow"] .flow-stack,
.section[data-section="invoices"] .subtab-panels,
.section[data-section="vault"] .subtab-panels {
  max-width: calc(var(--card-unit) * 1.8 + var(--card-unit) * 1.1 + var(--card-unit) * 1.1 + 1.5rem);
}

.section[data-section="flow"] .flow__requirements,
.section[data-section="flow"] .flow__requirements #flowRequirements {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section[data-section="flow"] .edit-mode__grid {
  --card-unit: 300px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: calc(var(--card-unit) * 0.1);
  row-gap: 0.06rem;
  column-gap: 0.75rem;
}

.section[data-section="flow"] .edit-mode__grid .edit-card {
  grid-row: span 10;
  height: calc(var(--card-unit) * 1);
}

.section[data-section="flow"] .flow__req-card,
.section[data-section="flow"] .flow__req-card.is-active {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.section[data-section="flow"] .flow {
  background: transparent;
  border: none;
  padding: 0;
}

.section[data-section="flow"] .flow__pills {
  margin-top: 0;
}

.section[data-section="invoices"] .subtab-panels,
.section[data-section="vault"] .subtab-panels {
  display: grid;
  gap: 0.75rem;
}



.section[data-section="overview"] .overview-grid {
  --card-unit: 300px;
  grid-template-columns: calc(var(--card-unit) * 1.8) calc(var(--card-unit) * 1.1) calc(var(--card-unit) * 1.1);
  grid-auto-rows: calc(var(--card-unit) * 0.1);
  row-gap: 0.06rem;
  column-gap: 0.75rem;
}

.section[data-section="overview"] .overview-card {
  padding: 1rem;
  grid-row: span 10;
  height: calc(var(--card-unit) * 1);
}

.section[data-section="overview"] .overview-card__value {
  font-size: 3rem;
}

.section[data-section="overview"] .overview-panel--grid {
  grid-row: span 10;
  height: calc(var(--card-unit) * 1);
}

/* flow-header styles consolidated below */

@media (max-width: 1000px) {
  .subtab-layout {
    grid-template-columns: 1fr;
  }

  .subtabs--vertical {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .subtabs--vertical .subtab {
    justify-content: center;
  }
}

/* Sidebar + dashboard layout */
.ops-shell {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: calc(100vh - 4rem);
}

.ops-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.2rem 0.8rem;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  align-items: center;
}

.ops-sidebar__brand {
  font-family: 'Nebulas', serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
}

.ops-sidebar__footer {
  margin-top: auto;
}



.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: -40px;
  margin-bottom: 2.8rem;
  padding: 1rem 4.5rem 4rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ops-title {
  font-family: 'Nebulas', serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.tabs--vertical {
  flex-direction: column;
  padding: 0.4rem;
  width: 100%;
  align-items: center;
}

.tabs--vertical .tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.7rem;
  border-radius: 18px;
}

.tab__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.tab__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.tab__label {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}





.tabs--vertical .tab.is-active svg {
  stroke: #f7f6f4;
}

/* Overview cards grouping */
.overview-grid {
  --card-unit: 300px;
  grid-template-columns: repeat(3, var(--card-unit));
  grid-auto-rows: calc(var(--card-unit) * 0.5);
  grid-auto-flow: dense;
  gap: 1.25rem;
}

.overview-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.4rem;
  overflow: hidden;
  grid-row: span 2;
}





.overview-card--tall {
  grid-row: span 3;
}

.overview-card--wide-1_5 {
  grid-column: span 1;
  grid-row: span 10;
  width: calc(var(--card-unit) * 1.8);
  justify-self: start;
}

.overview-card--tall-1_8 {
  grid-row: span 18;
  height: calc(var(--card-unit) * 1.8);
}



.overview-card__header h4 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-card__subtext {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
  text-align: left;
}

.overview-card__badge {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.05);
}

.overview-card__badge--accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

.overview-card__value {
  font-size: 3.4rem;
  font-family: 'Nebulas', serif;
}

.overview-card__value+.overview-card__chart {
  margin-top: -0.2rem;
}

.overview-card__chart {
  height: 80px;
  max-width: 100%;
  overflow: visible;
}

.overview-card__chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.35rem;
  height: 100%;
}

.mini-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  height: 100%;
}

.mini-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mini-bar::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mini-bar:hover::after,
.mini-bar:focus-visible::after,
.mini-bar:hover::before,
.mini-bar:focus-visible::before {
  opacity: 1;
}

.mini-bar:hover::after,
.mini-bar:focus-visible::after {
  transform: translate(-50%, 0);
}

.mini-bar[data-tooltip=""]::after,
.mini-bar[data-tooltip=""]::before {
  display: none;
}

.mini-bar__fill {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: #EEEEEE;
}

.mini-bar__label {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-bar.is-today .mini-bar__label {
  color: var(--accent, #c7f33c);
}

.overview-card__bars {
  display: grid;
  gap: 0.6rem;
  max-width: 100%;
}

.overview-card__bar {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(28, 28, 28, 0.55);
}

.overview-card__bar-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.overview-card__bar-fill {
  height: 100%;
  background: #EEEEEE;
  border-radius: 999px;
}

.overview-card__bar-fill.is-muted {
  background: rgba(0, 0, 0, 0.35);
}

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

.overview-card__stat {
  display: grid;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.overview-card__stat span {
  color: rgba(28, 28, 28, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.overview-card__stat strong {
  font-size: 1.7rem;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .ops-shell {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .overview-grid {
    grid-template-columns: repeat(2, var(--card-unit));
  }

  .overview-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .flow-vertical {
    grid-template-columns: 1fr;
  }
  .ops-shell {
    grid-template-columns: 1fr;
  }

  .ops-sidebar {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 999px;
  }

  .tabs--vertical {
    flex-direction: row;
  }

  .overview-grid {
    grid-template-columns: repeat(1, var(--card-unit));
    grid-auto-rows: var(--card-unit);
  }

  .overview-card--wide {
    grid-column: span 1;
  }

  .overview-card--tall {
    grid-row: span 1;
  }
}

/* Unified rounding + icon-only pills */
.overview-card,
.overview-panel,
.table-shell,
.wizard__field textarea {
  border-radius: var(--radius-md);
}





.search,
.tracking-form input,
.tracking-form select,
.line-item-form input,
.line-item-form select,
.modal__form input,
.modal__form select,
.modal__form textarea,
.wizard__field input,
.wizard__field select,
.wizard__field textarea,
.ghost-btn {
  border-radius: 999px;
}

.modal__form textarea,


.primary-btn,


.ghost-btn.is-icon,
.primary-btn.is-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-btn.is-icon svg,
.primary-btn.is-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.ghost-btn.is-icon img,
.primary-btn.is-icon img {
  width: 18px;
  height: 18px;
}

.icon-img {
  display: block;
}

.ghost-btn.date-range {
  gap: 0.6rem;
  padding: 0 1rem;
  height: 45px;
  align-items: center;
  display: inline-flex;
  background: #f7f6f4;
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  min-width: max-content;
  white-space: nowrap;
}

.ghost-btn.date-range .icon-img {
  width: 18px;
  height: 18px;
}

.date-range__label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Remove all drop shadows across ops UI */
*,
*::before,
*::after {
  box-shadow: none !important;
}
.tracking-item__add {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid #1c1c1c;
  background: #1c1c1c;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tracking-item__add img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}
