    /* Task 273: dense projection table, shared by both cashflow surfaces. */
    .cashflow-projection-table-wrap {
      padding: 10px 12px;
    }

    #cfProjectionTable {
      font-size: 12px;
      line-height: 1.2;
    }

    #cfProjectionTable th,
    #cfProjectionTable td {
      min-width: 68px;
      padding: 6px 9px;
    }

    #cfProjectionTable th:first-child,
    #cfProjectionTable td:first-child {
      min-width: 88px;
    }

    #cfProjectionTable th:nth-child(2),
    #cfProjectionTable td:nth-child(2) {
      min-width: 48px;
    }

    .cf-scenario-manager {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(96, 165, 250, 0.2);
      border-radius: 12px;
      background: rgba(59, 130, 246, 0.06);
    }

    .cf-scenario-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text-primary);
    }

    .cf-scenario-title strong {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
    }

    .cf-scenario-title strong i {
      width: 18px;
      height: 18px;
      color: #60a5fa;
    }

    #cfScenarioStatus {
      color: var(--text-secondary);
      font-size: 0.76rem;
      text-align: right;
    }

    #cfScenarioStatus.is-error {
      color: #f87171;
    }

    #cfScenarioStatus.is-success {
      color: #4ade80;
    }

    .cf-scenario-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    #cfScenarioSelect {
      min-width: 220px;
    }

    #cfScenarioName {
      min-width: 220px;
      flex: 1 1 260px;
    }

    .cf-scenario-btn,
    .cf-sim-cancel {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 36px;
      padding: 7px 12px;
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 9px;
      background: rgba(148, 163, 184, 0.08);
      color: var(--text-primary);
      font: 600 0.8rem "Outfit", sans-serif;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    }

    .cf-scenario-btn i {
      width: 15px;
      height: 15px;
    }

    .cf-scenario-btn:hover,
    .cf-sim-cancel:hover {
      background: rgba(148, 163, 184, 0.15);
      border-color: rgba(148, 163, 184, 0.4);
    }

    .cf-scenario-btn:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .cf-scenario-btn-primary {
      color: #bfdbfe;
      border-color: rgba(96, 165, 250, 0.35);
      background: rgba(59, 130, 246, 0.14);
    }

    .cf-scenario-btn-danger {
      color: #fca5a5;
      border-color: rgba(248, 113, 113, 0.25);
    }

    .cf-simulation-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 4px;
    }

    .cf-sim-entry.is-editing {
      border-color: rgba(96, 165, 250, 0.5);
      background: rgba(59, 130, 246, 0.1);
    }

    .cf-sim-actions {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      margin-left: auto;
    }

    .cf-sim-edit {
      background: none;
      border: none;
      color: #93c5fd;
      font-size: 0.95rem;
      cursor: pointer;
      padding: 3px 7px;
      border-radius: 6px;
    }

    .cf-sim-edit:hover {
      background: rgba(96, 165, 250, 0.15);
    }

    .cf-sim-cancel {
      color: var(--text-secondary);
      white-space: nowrap;
    }

    .cf-sim-cancel[hidden] {
      display: none !important;
    }

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

    .cf-open-view-control {
      display: flex;
      flex-direction: column;
      gap: 4px;
      color: var(--text-secondary);
      font-size: 0.75rem;
    }

    .cf-open-view-control[hidden] { display: none; }

    .cf-open-view-control select {
      max-width: 100%;
      padding: 7px 9px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 7px;
      background: var(--bg-secondary, #202027);
      color: var(--text-primary);
      font: inherit;
      cursor: pointer;
    }

    .cf-table-panel-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .cf-table-panel-heading h3 {
      margin: 0;
    }

    .cf-open-selection-count {
      color: var(--text-secondary);
      font-size: 0.78rem;
      white-space: nowrap;
    }

    .cf-title-action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 32px;
      padding: 5px 10px;
      border: 1px solid rgba(96, 165, 250, 0.35);
      border-radius: 8px;
      background: rgba(59, 130, 246, 0.12);
      color: #bfdbfe;
      font: 600 0.76rem "Outfit", sans-serif;
      cursor: pointer;
    }

    .cf-title-action-btn:disabled {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .cf-title-action-btn i {
      width: 14px;
      height: 14px;
    }

    .cf-title-check {
      width: 16px;
      height: 16px;
      accent-color: #60a5fa;
      cursor: pointer;
    }

    .cf-title-select-cell {
      width: 38px;
      min-width: 38px !important;
      text-align: center;
    }

    .cf-title-row.is-selected {
      background: rgba(59, 130, 246, 0.09);
    }

    .cf-title-edit-modal {
      position: fixed;
      inset: 0;
      z-index: 4000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(3, 7, 18, 0.78);
      backdrop-filter: blur(7px);
    }

    .cf-title-edit-modal[hidden] {
      display: none !important;
    }

    .cf-title-edit-dialog {
      width: min(720px, 100%);
      max-height: calc(100vh - 36px);
      overflow: auto;
      padding: 20px;
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 16px;
      background: #181719;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    }

    .cf-title-edit-header,
    .cf-title-edit-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .cf-title-edit-header h3 {
      margin: 0;
      font-size: 1.05rem;
    }

    .cf-title-edit-subtitle {
      margin: 5px 0 0;
      color: var(--text-secondary);
      font-size: 0.8rem;
    }

    .cf-title-modal-close {
      border: 0;
      background: transparent;
      color: var(--text-secondary);
      font-size: 1.4rem;
      cursor: pointer;
    }

    .cf-title-edit-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 18px 0;
    }

    .cf-title-edit-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
      color: var(--text-secondary);
      font-size: 0.78rem;
    }

    .cf-title-edit-field-label {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .cf-title-edit-field input:not([type="checkbox"]),
    .cf-title-edit-field select {
      width: 100%;
      min-height: 40px;
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 9px;
      background: #111012;
      color: var(--text-primary);
      font: 500 0.86rem "Outfit", sans-serif;
    }

    .cf-title-searchable-select {
      position: relative;
    }

    .cf-title-searchable-select > select {
      display: none;
    }

    .cf-title-searchable-select > input {
      padding-right: 32px !important;
      text-overflow: ellipsis;
    }

    .cf-title-searchable-chevron {
      position: absolute;
      right: 13px;
      top: 50%;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--text-secondary);
      border-bottom: 2px solid var(--text-secondary);
      transform: translateY(-70%) rotate(45deg);
      pointer-events: none;
    }

    .cf-title-searchable-options {
      position: absolute;
      z-index: 20;
      left: 0;
      right: 0;
      top: calc(100% + 4px);
      max-height: 240px;
      overflow-y: auto;
      padding: 4px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 9px;
      background: #171619;
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
    }

    .cf-title-searchable-option {
      display: block;
      width: 100%;
      padding: 9px 10px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--text-primary);
      font: 500 0.82rem "Outfit", sans-serif;
      text-align: left;
      cursor: pointer;
    }

    .cf-title-searchable-option:hover,
    .cf-title-searchable-option[aria-selected="true"] {
      background: rgba(59, 130, 246, 0.22);
    }

    .cf-title-searchable-empty {
      padding: 10px;
      color: var(--text-secondary);
      font-size: 0.78rem;
    }

    .cf-title-edit-field.is-disabled {
      opacity: 0.5;
    }

    #cfTitleEditStatus {
      min-height: 20px;
      color: var(--text-secondary);
      font-size: 0.8rem;
    }

    #cfTitleEditStatus.is-error {
      color: #f87171;
    }

    #cfTitleEditStatus.is-success {
      color: #4ade80;
    }

    .cf-title-edit-footer {
      margin-top: 14px;
      justify-content: flex-end;
    }

    .cf-title-secondary-btn {
      border-color: rgba(148, 163, 184, 0.28);
      background: rgba(148, 163, 184, 0.08);
      color: var(--text-secondary);
    }

    @media (max-width: 720px) {
      #appContainer:has(#cashflowSection:not(.hidden)) > .content {
        padding: 12px;
        min-width: 0;
      }

      #appContainer:has(#cashflowSection:not(.hidden)).sidebar-collapsed .sidebar {
        width: 56px;
        padding: 12px 6px;
      }

      #appContainer #cashflowSection {
        padding: 0;
        min-width: 0;
      }

      #appContainer #cashflowSection .cashflow-simulation {
        padding: 12px;
        min-width: 0;
      }

      #appContainer #cashflowSection .cf-sim-sort {
        min-width: 0;
        width: 100%;
      }

      #appContainer #cashflowSection .cf-simulation-heading {
        flex-wrap: wrap;
      }

      .cashflow-section {
        padding: 14px;
      }

      .cashflow-projection-table-wrap {
        padding: 8px;
      }

      #cfProjectionTable th,
      #cfProjectionTable td {
        min-width: 64px;
        padding: 5px 8px;
        font-size: 11px;
      }

      #cfProjectionTable th:first-child,
      #cfProjectionTable td:first-child {
        min-width: 82px;
      }

      .cf-scenario-title {
        align-items: flex-start;
        flex-direction: column;
      }

      #cfScenarioStatus {
        text-align: left;
      }

      .cf-scenario-controls {
        align-items: stretch;
      }

      #cfScenarioSelect,
      #cfScenarioName {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
      }

      .cf-scenario-btn {
        flex: 1 1 auto;
      }

      .cashflow-sim-form {
        align-items: stretch;
      }

      .cashflow-sim-form .cashflow-sim-input {
        width: 100%;
      }

      .cashflow-open-header,
      .cf-table-panel-heading,
      .cf-open-actions {
        align-items: flex-start;
        flex-direction: column;
      }

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