.rfp-scope {
  --rfp-surface: #f9f9f9;
  --rfp-surface-container-lowest: #fff;
  --rfp-surface-container-low: #f3f3f4;
  --rfp-surface-container: #eee;
  --rfp-surface-container-high: #e8e8e8;
  --rfp-surface-variant: #e2e2e2;
  --rfp-on-surface: #1a1c1c;
  --rfp-on-surface-variant: #5a403f;
  --rfp-outline: #8e706e;
  --rfp-outline-variant: #e2bebc;
  --rfp-primary: #b0232b;
  --rfp-primary-bright: #f85858;
  --rfp-primary-container: #d33d40;
  --rfp-on-primary: #fff;
  --rfp-primary-fixed: #ffdad7;
  --rfp-status-draft: #e2e2e2;
  --rfp-status-pending: #fff4e5;
  --rfp-status-review: #e5f2ff;
  --rfp-status-approved: #dff5e5;
  --rfp-status-rejected: #ffdad6;
  --rfp-status-funded: #e0f3ea;
  --rfp-status-completed: #d6ead9;
  --rfp-status-closed: #ebe4e3;
  --rfp-error: #ba1a1a;
  --rfp-error-container: #ffdad6;
  --rfp-shadow-surface: 0px 4px 20px #0000000a;
  --rfp-shadow-hover: 0px 10px 30px #00000014;
  --rfp-font: "Spline Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--rfp-font);
  color: var(--rfp-on-surface);
  background: var(--rfp-surface);
}

.rfp-page {
  background: var(--rfp-surface);
  min-height: 100vh;
  padding: 48px 32px;
}

.rfp-page-inner {
  flex-direction: column;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
}

.rfp-card {
  background: var(--rfp-surface-container-lowest);
  box-shadow: var(--rfp-shadow-surface);
  border-radius: 1rem;
  padding: 24px;
  transition: box-shadow .2s;
}

.rfp-card:hover {
  box-shadow: var(--rfp-shadow-hover);
}

.rfp-section {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.rfp-section-title {
  letter-spacing: -.005em;
  color: var(--rfp-on-surface);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.rfp-section-subtitle {
  color: var(--rfp-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.rfp-divider {
  background: #f2f2f7;
  border: 0;
  width: 100%;
  height: 1px;
  margin: 0;
}

.rfp-row {
  flex-flow: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}

.rfp-col {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

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

.rfp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.rfp-h1 {
  letter-spacing: -.01em;
  color: var(--rfp-on-surface);
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.rfp-h2 {
  color: var(--rfp-on-surface);
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.rfp-body {
  color: var(--rfp-on-surface);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.rfp-hint {
  color: var(--rfp-on-surface-variant);
  font-size: 13px;
  line-height: 18px;
}

.rfp-field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.rfp-label {
  color: var(--rfp-on-surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rfp-input, .rfp-textarea, .rfp-select {
  font-family: var(--rfp-font);
  color: var(--rfp-on-surface);
  box-sizing: border-box;
  background: #fafafa;
  border: 0;
  border-radius: .5rem;
  outline: none;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  transition: box-shadow .15s, background .15s;
}

.rfp-input:focus, .rfp-textarea:focus, .rfp-select:focus {
  box-shadow: 0 0 0 2px var(--rfp-primary);
  background: #fff;
}

.rfp-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 22px;
}

.rfp-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%235a403f' d='M2 4l4 4 4-4'/></svg>");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.rfp-btn-primary, .rfp-btn-secondary, .rfp-btn-ghost {
  font-family: var(--rfp-font);
  cursor: pointer;
  border: 0;
  border-radius: .5rem;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: all .15s;
  display: inline-flex;
}

.rfp-btn-primary {
  background: var(--rfp-primary);
  color: var(--rfp-on-primary);
}

.rfp-btn-primary:hover {
  background: var(--rfp-primary-container);
  box-shadow: var(--rfp-shadow-hover);
}

.rfp-btn-secondary {
  color: var(--rfp-on-surface);
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e5e5;
}

.rfp-btn-secondary:hover {
  box-shadow: inset 0 0 0 1px var(--rfp-primary), var(--rfp-shadow-surface);
  color: var(--rfp-primary);
}

.rfp-btn-ghost {
  color: var(--rfp-on-surface-variant);
  background: none;
  padding: 8px 12px;
}

.rfp-btn-ghost:hover {
  background: var(--rfp-surface-container-low);
  color: var(--rfp-on-surface);
}

.rfp-btn-primary:disabled, .rfp-btn-secondary:disabled, .rfp-btn-ghost:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.rfp-chip {
  color: #1a1a1a;
  background: #f2f2f7;
  border-radius: 9999px;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  display: inline-flex;
}

.rfp-chip-primary {
  background: var(--rfp-primary-fixed);
  color: var(--rfp-primary);
}

.rfp-status-badge {
  letter-spacing: .02em;
  text-transform: capitalize;
  border-radius: 9999px;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  display: inline-flex;
}

.rfp-status-draft {
  background: var(--rfp-status-draft);
  color: #1a1a1a;
}

.rfp-status-pending {
  background: var(--rfp-status-pending);
  color: #7a4e00;
}

.rfp-status-review {
  background: var(--rfp-status-review);
  color: #08457a;
}

.rfp-status-approved {
  background: var(--rfp-status-approved);
  color: #156b3a;
}

.rfp-status-rejected {
  background: var(--rfp-status-rejected);
  color: #93000a;
}

.rfp-status-funded {
  background: var(--rfp-status-funded);
  color: #175b3a;
}

.rfp-status-completed {
  background: var(--rfp-status-completed);
  color: #0e4b2a;
}

.rfp-status-closed {
  background: var(--rfp-status-closed);
  color: #4a3837;
}

.rfp-chip-close {
  cursor: pointer;
  color: inherit;
  opacity: .6;
  background: none;
  border: 0;
  margin-left: 4px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.rfp-chip-close:hover {
  opacity: 1;
}

.rfp-header {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.rfp-header-row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.rfp-meta {
  color: var(--rfp-on-surface-variant);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
}

.rfp-list {
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.rfp-list-item {
  background: var(--rfp-surface-container-lowest);
  border-radius: .5rem;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  display: flex;
}

.rfp-list-item:hover {
  background: var(--rfp-surface-container-low);
}

.rfp-empty {
  color: var(--rfp-on-surface-variant);
  text-align: center;
  background: var(--rfp-surface-container-low);
  border-radius: .5rem;
  padding: 16px;
  font-size: 13px;
}

.rfp-hero {
  border: 1px solid var(--rfp-outline-variant);
  background: linear-gradient(135deg, #fff 0%, #fff5f4 100%);
  border-radius: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  box-shadow: 0 10px 40px #b0232b14;
}

.rfp-hero-badge {
  background: var(--rfp-primary-fixed);
  color: var(--rfp-primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 9999px;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.rfp-hero-title {
  letter-spacing: -.01em;
  color: var(--rfp-on-surface);
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.rfp-hero-body {
  color: var(--rfp-on-surface-variant);
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.rfp-btn-primary-lg {
  font-family: var(--rfp-font);
  cursor: pointer;
  background: var(--rfp-primary);
  color: var(--rfp-on-primary);
  border: 0;
  border-radius: .75rem;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  transition: all .15s;
  display: inline-flex;
  box-shadow: 0 6px 20px #b0232b40;
}

.rfp-btn-primary-lg:hover {
  background: var(--rfp-primary-container);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px #b0232b59;
}

.rfp-btn-primary-lg:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.rfp-step-index {
  background: var(--rfp-primary);
  width: 24px;
  height: 24px;
  color: var(--rfp-on-primary);
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.rfp-step-index.rfp-step-locked {
  background: var(--rfp-surface-container-high);
  color: var(--rfp-on-surface-variant);
}

.rfp-step-header {
  align-items: center;
  gap: 10px;
  display: flex;
}

.rfp-card-locked {
  opacity: .6;
  pointer-events: none;
  position: relative;
}

.rfp-card-locked:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, #0000 0 12px, #00000004 12px 14px);
  position: absolute;
  inset: 0;
}

.rfp-locked-hint {
  color: var(--rfp-on-surface-variant);
  margin: 0;
  font-size: 12px;
  font-style: italic;
}

.rfp-stage-column {
  background: var(--rfp-surface-container-low);
  border-radius: .75rem;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  padding: 16px;
  display: flex;
}

.rfp-stage-column-header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.rfp-stage-column-title {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rfp-on-surface-variant);
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.rfp-doc-card {
  background: var(--rfp-surface-container-lowest);
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: .625rem;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  transition: all .15s;
  display: flex;
  box-shadow: 0 1px 3px #0000000a;
}

.rfp-doc-card:hover {
  border-color: var(--rfp-outline-variant);
  box-shadow: var(--rfp-shadow-hover);
  transform: translateY(-1px);
}

.rfp-doc-card-title {
  color: var(--rfp-on-surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rfp-doc-card-meta {
  color: var(--rfp-on-surface-variant);
  letter-spacing: .02em;
  font-size: 11px;
}

.rfp-stat-tile {
  background: var(--rfp-surface-container-lowest);
  box-shadow: var(--rfp-shadow-surface);
  border-radius: .75rem;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  display: flex;
}

.rfp-stat-tile-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rfp-on-surface-variant);
  font-size: 11px;
  font-weight: 500;
}

.rfp-stat-tile-value {
  color: var(--rfp-on-surface);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
}

.rfp-status-open {
  background: var(--rfp-status-approved);
  color: #156b3a;
}

.rfp-status-awarded {
  background: var(--rfp-status-funded);
  color: #175b3a;
}

.rfp-status-cancelled {
  background: var(--rfp-status-closed);
  color: #4a3837;
}

.rfp-status-upcoming {
  background: var(--rfp-status-review);
  color: #08457a;
}

.rfp-status-rfc {
  background: var(--rfp-status-pending);
  color: #7a4e00;
}

.rfp-browser {
  background: var(--rfp-surface-container-lowest);
  border-right: 1px solid var(--rfp-outline-variant);
  box-sizing: border-box;
  flex-direction: column;
  gap: 4px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100%;
  padding: 20px 12px 24px;
  display: flex;
  overflow-y: auto;
}

.rfp-browser-header {
  border-bottom: 1px solid var(--rfp-outline-variant);
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  padding: 0 8px 12px;
  display: flex;
}

.rfp-browser-home-button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  border-bottom: 1px solid var(--rfp-outline-variant);
  font-family: var(--rfp-font);
  color: var(--rfp-on-surface);
  border-radius: .5rem .5rem 0 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 10px 12px;
  transition: background .15s, color .15s;
  display: flex;
}

.rfp-browser-home-button:hover, .rfp-browser-home-button:focus-visible {
  background: var(--rfp-surface-container-low);
  color: var(--rfp-primary);
  outline: none;
}

.rfp-browser-home-button:hover .rfp-browser-title, .rfp-browser-home-button:focus-visible .rfp-browser-title {
  color: var(--rfp-primary);
}

.rfp-browser-home-button-inner {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.rfp-browser-back-hint {
  color: var(--rfp-primary);
  background: var(--rfp-primary-fixed);
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  transition: background .15s;
}

.rfp-browser-home-button:hover .rfp-browser-back-hint {
  background: var(--rfp-primary);
  color: var(--rfp-on-primary);
}

.rfp-browser-title {
  color: var(--rfp-on-surface);
  letter-spacing: -.005em;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}

.rfp-browser-group {
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  display: flex;
}

.rfp-browser-group-header {
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: .375rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  font-family: inherit;
  display: flex;
}

.rfp-browser-group-header:hover {
  background: var(--rfp-surface-container-low);
}

.rfp-browser-group-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rfp-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
}

.rfp-browser-group-count {
  color: var(--rfp-on-surface-variant);
  background: var(--rfp-surface-container);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

.rfp-browser-item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--rfp-on-surface);
  background: none;
  border: 0;
  border-radius: .375rem;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  transition: background .1s;
  display: flex;
}

.rfp-browser-item:hover {
  background: var(--rfp-surface-container-low);
}

.rfp-browser-item.rfp-browser-item-active {
  background: var(--rfp-primary-fixed);
  color: var(--rfp-primary);
  font-weight: 600;
}

.rfp-browser-item-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.rfp-browser-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--rfp-surface-container-lowest) inset;
  border-radius: 9999px;
  flex-shrink: 0;
}

.rfp-browser-create {
  border: 1px dashed var(--rfp-outline-variant);
  color: var(--rfp-on-surface-variant);
  cursor: pointer;
  background: none;
  border-radius: .375rem;
  margin: 12px 8px 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
}

.rfp-browser-create:hover {
  border-color: var(--rfp-primary);
  color: var(--rfp-primary);
}

.rfp-browser-empty {
  color: var(--rfp-on-surface-variant);
  padding: 6px 14px;
  font-size: 12px;
  font-style: italic;
}

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

.rfp-kanban {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
  overflow-x: auto;
}

.rfp-link-button {
  font: inherit;
  color: var(--rfp-primary, var(--rfp-on-surface-variant));
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background .15s;
}

.rfp-link-button:hover {
  background: var(--rfp-surface-container-low);
  text-decoration: underline;
}

.rfp-link-button:focus-visible {
  outline: 2px solid var(--rfp-primary, var(--rfp-on-surface-variant));
  outline-offset: 2px;
}

.rfp-kanban-more {
  color: var(--rfp-on-surface-variant);
  align-self: flex-start;
  margin-top: 2px;
}

.rfp-activity-scroll {
  scrollbar-gutter: stable;
  max-height: 360px;
  padding-right: 4px;
  overflow-y: auto;
}

.rfp-activity-scroll::-webkit-scrollbar {
  width: 8px;
}

.rfp-activity-scroll::-webkit-scrollbar-thumb {
  background: var(--rfp-surface-container-low);
  border-radius: 4px;
}

.rfp-activity-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--rfp-on-surface-variant);
}

.rfp-feedback-card {
  background: var(--rfp-status-pending);
  border-left: 4px solid #c07a00;
  border-radius: .75rem;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  display: flex;
}

.rfp-feedback-card-title {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a4e00;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.rfp-feedback-card-body {
  color: #1a1c1c;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.rfp-fusion-card {
  border: 1px solid var(--rfp-outline-variant);
  background: linear-gradient(135deg, #fff 0%, #fff5f4 100%);
  border-radius: .875rem;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  display: flex;
}

.rfp-fusion-link {
  color: var(--rfp-primary);
  cursor: pointer;
  background: none;
  border: 0;
  align-self: flex-start;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.rfp-fusion-link:hover {
  text-decoration: underline;
}

.rfp-stat-tile-danger .rfp-stat-tile-value {
  color: var(--rfp-error);
}

.rfp-activity-row {
  cursor: pointer;
  border-radius: .5rem;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  transition: background .1s;
  display: flex;
}

.rfp-activity-row:hover {
  background: var(--rfp-surface-container-low);
}

.rfp-activity-dot {
  background: var(--rfp-primary);
  border-radius: 9999px;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.rfp-activity-body {
  flex: 1;
  min-width: 0;
}

.rfp-activity-title {
  color: var(--rfp-on-surface);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}

.rfp-activity-meta {
  color: var(--rfp-on-surface-variant);
  font-size: 11px;
}

.rfp-dot-draft {
  background: var(--rfp-outline);
}

.rfp-dot-pending {
  background: #c07a00;
}

.rfp-dot-review {
  background: #08457a;
}

.rfp-dot-approved {
  background: #156b3a;
}

.rfp-dot-rejected {
  background: #93000a;
}

.rfp-dot-funded {
  background: #175b3a;
}

.rfp-dot-completed {
  background: #0e4b2a;
}

.rfp-dot-closed {
  background: #4a3837;
}

.rfp-dot-open {
  background: #156b3a;
}

.rfp-dot-upcoming {
  background: #08457a;
}

.rfp-dot-awarded {
  background: #175b3a;
}

.rfp-dot-cancelled {
  background: #4a3837;
}

.rfp-dot-rfc {
  background: #c07a00;
}
