:root {
  --ink: #0f1f35;
  --muted: #5c6b7f;
  --line: #d7dee8;
  --panel: #ffffff;
  --bg: #f3f6fa;
  --accent: #1f4b7a;
  --accent-soft: #e8f0f8;
  --success: #1f6b43;
  --warning: #8a5a00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 53, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f8 0%, var(--bg) 220px);
}

.topbar {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem 1rem 1.5rem;
}

.trial-banner {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.trial-banner-copy {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
}

.trial-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.trial-banner-subscribe.btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.trial-banner-subscribe.btn-primary:hover {
  background: #eef3f8;
  border-color: #eef3f8;
}

.trial-banner-subscribe.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.trial-banner-subscribe.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.trial-banner-label {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.trial-banner-app {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.trial-banner-tile {
  margin-top: 0;
  width: 100%;
  border-radius: 999px;
  justify-content: center;
  background: rgba(92, 107, 127, 0.08);
  border: 1px solid rgba(92, 107, 127, 0.18);
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

.module-hub-tile-trial {
  padding-top: 0;
  overflow: hidden;
}

.module-hub-trial-banner {
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem 0.65rem;
  padding: 0.6rem 1rem;
  text-align: center;
  background: linear-gradient(90deg, rgba(53, 56, 205, 0.12), rgba(53, 56, 205, 0.05));
  border-bottom: 1px solid rgba(53, 56, 205, 0.16);
  color: #3538cd;
  flex: 0 0 auto;
}

.module-hub-trial-banner-label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.module-hub-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.module-icon-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.module-hub-icon .module-icon-text {
  font-size: 0.72rem;
}

.topbar .trial-banner {
  margin-bottom: 1.5rem;
}

.topbar-head {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.topbar-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-title-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.topbar-subrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.advisor-nav {
  max-width: 960px;
  margin: 1.45rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.advisor-nav:empty {
  display: none;
}

.advisor-nav-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.nav-back-modules-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.nav-back-modules-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-primary,
.nav-utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.nav-utilities {
  margin-left: auto;
}

@media (max-width: 720px) {
  .advisor-nav-body {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-utilities {
    margin-left: 0;
    justify-content: flex-end;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.nav-link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-dropdown-item:hover {
  background: #f2f4f7;
  color: #101828;
}

.nav-link-external::after {
  content: " ↗";
  font-size: 0.75em;
}

.topbar-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}

.topbar-support-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.topbar-support-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-menu {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0.35rem;
}

.profile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.profile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer-support {
  margin: 0.35rem 0 0;
  text-align: center;
}

.site-footer-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.site-footer-support-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer-support-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.site-footer-support-icon svg {
  width: 100%;
  height: 100%;
}

.site-footer-sep {
  margin: 0 0.45rem;
  opacity: 0.55;
}

.auth-card-wide {
  width: min(720px, calc(100% - 2rem));
}

.user-agreement-meta {
  margin: 0 0 0.75rem;
}

.user-agreement-scroll {
  max-height: min(48vh, 28rem);
  overflow: auto;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 31, 53, 0.03);
  text-align: left;
}

.user-agreement-section {
  margin: 0 0 1rem;
}

.user-agreement-section:last-child {
  margin-bottom: 0;
}

.user-agreement-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.35;
}

.user-agreement-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}

.user-agreement-form {
  margin-top: 0.25rem;
}

.user-agreement-checkbox {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 500 !important;
}

.user-agreement-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
}

.user-agreement-page .auth-card-wide {
  margin-bottom: 1.5rem;
}

.profile-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.profile-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  z-index: 30;
}

.profile-menu.is-open .profile-menu-dropdown {
  display: block;
}

.profile-menu-heading {
  padding: 0.45rem 0.65rem 0.55rem;
  border-bottom: 1px solid #eaecf0;
  margin-bottom: 0.25rem;
}

.profile-menu-heading strong {
  display: block;
  color: #101828;
  font-size: 0.92rem;
}

.profile-menu-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: #667085;
  font-size: 0.8rem;
}

.profile-menu-item {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-menu-item:hover {
  background: #f2f4f7;
  color: #101828;
}

.profile-menu-item.is-active {
  background: #f2f4f7;
  font-weight: 600;
}

.profile-menu-logout {
  color: #b42318;
}

.profile-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.profile-section-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.profile-section-tab:hover {
  border-color: #b8cce4;
}

.profile-section-tab.is-active {
  background: var(--accent-soft);
  border-color: #b8cce4;
  color: var(--accent);
  font-weight: 600;
}

.profile-save-header {
  margin-top: 1.5rem;
}

.profile-page-locked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.module-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
  align-items: stretch;
}

.module-hub-reorder-hint {
  margin: 0.55rem 0 0;
}

.module-hub-reorder-status {
  margin-top: 0.85rem;
}

.module-hub-reorder-status.is-error {
  color: #b42318;
}

.module-hub-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 15.5rem;
  cursor: grab;
}

.module-hub-item:active {
  cursor: grabbing;
}

.module-hub-item.is-dragging {
  opacity: 0.55;
}

.module-hub-grid.is-reordering .module-hub-item:not(.is-dragging) {
  transition: transform 0.12s ease;
}

.module-hub-drag-handle {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.12em;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.module-hub-drag-handle:hover {
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.22);
}

.module-hub-drag-handle:active {
  cursor: grabbing;
}

.module-hub-item > .module-hub-tile {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

.module-hub-tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 15.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.module-hub-tile:hover {
  transform: translateY(-2px);
  border-color: #b8cce4;
}

.module-hub-tile-trial {
  text-decoration: none;
  color: inherit;
  padding-top: 0;
}

.module-hub-tile-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.35rem 0;
  text-align: center;
}

.module-hub-tile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.module-hub-tile-link:hover .module-hub-title {
  color: var(--accent);
}

.module-hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-hub-icon-gear .nav-link-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.module-hub-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  width: 100%;
}

.module-hub-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  width: 100%;
  max-width: 100%;
  white-space: pre-line;
}

.module-hub-tile-locked {
  border-style: dashed;
  background: #fafbfc;
}

.module-hub-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.module-hub-meta {
  margin-top: 0.15rem;
}

.module-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  flex: 0 0 auto;
}

.module-hub-actions-centered {
  justify-content: center;
  width: 100%;
}

.module-hub-stripe-hint {
  margin-top: 1rem;
}

.module-checkout-card {
  max-width: 40rem;
}

.module-checkout-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0;
}

.stripe-test-hint {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #f5dfa5;
  color: #6b4f00;
  font-size: 0.88rem;
  line-height: 1.5;
}

.module-checkout-note {
  margin-top: 1rem;
}

.account-panel .panel-header:first-child {
  margin-bottom: 0.15rem;
}

.account-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcff 0%, #f4f7fb 100%);
}

.account-meta-item {
  flex: 1 1 12rem;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.account-meta-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-meta-value {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
}

.account-meta-divider {
  width: 1px;
  align-self: stretch;
  margin: 0 1rem;
  background: var(--line);
}

.account-callout {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #cfe0f2;
  background: var(--accent-soft);
}

.account-callout-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent);
}

.account-callout-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.account-form {
  margin-top: 0.35rem;
}

.account-subsection-header {
  margin-top: 0.35rem;
}

.account-fields-grid {
  margin-top: 0.65rem;
}

.account-fields-grid .branding-row {
  align-items: center;
}

.account-save-bar {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.account-save-actions {
  margin-top: 0;
  margin-left: auto;
}

.account-status {
  margin: 0;
  flex: 1 1 14rem;
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.account-status.is-success {
  color: #027a48;
}

.account-status.is-error {
  color: #b42318;
}

.account-mfa-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.account-mfa-status {
  margin: 0 0 1rem;
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-mfa-status.is-success {
  color: #027a48;
}

.account-mfa-status.is-error {
  color: #b42318;
}

.account-mfa-setup {
  margin-top: 1rem;
}

.account-mfa-qr-wrap {
  margin: 1rem 0;
}

.account-mfa-qr {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.account-mfa-manual {
  font-size: 0.92rem;
  color: var(--muted);
  word-break: break-all;
}

.account-mfa-code-label {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-mfa-qr {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.auth-mfa-manual {
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .account-summary {
    flex-direction: column;
    gap: 0.75rem;
  }

  .account-meta-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .account-save-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .account-save-actions {
    margin-left: 0;
  }

  .account-save-actions .btn {
    width: 100%;
  }
}

.account-form-grid {
  max-width: 42rem;
}

.account-password-header {
  margin-top: 1.5rem;
}

.nav-link-button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.78);
}

.nav-link-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.page a:not(.btn) {
  color: var(--accent);
}

a.btn {
  text-decoration: none;
}

.page a.btn-primary {
  color: #fff;
}

.page a.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.page a.btn-secondary {
  color: var(--accent);
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
}

.topbar-brand-text {
  min-width: 0;
}

.topbar-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex: 0 0 auto;
}

.topbar-brand-icon svg {
  width: 1rem;
  height: 1rem;
}

.topbar-brand-icon .module-icon-text {
  font-size: 0.62rem;
  color: #fff;
}

.topbar h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 650;
}

.topbar h1.topbar-brand-heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  opacity: 0.92;
}

.topbar-title-block.is-brand-only {
  padding-top: 0.1rem;
}

.topbar h1.topbar-brand-heading .topbar-brand-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
}

.topbar h1.topbar-brand-heading .topbar-brand-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.topbar-note {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  font-size: 0.92rem;
}

.topbar-note-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topbar-note-link:hover,
.topbar-note-link:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.page {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.4rem;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-header-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.panel-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

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

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-title-row h2 {
  margin: 0;
}

.info-popup {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.info-popup-trigger {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font: 700 0.78rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-popup-trigger:hover,
.info-popup-trigger:focus-visible,
.info-popup.is-open .info-popup-trigger {
  background: var(--accent-soft);
  outline: none;
}

.info-popup-glyph {
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1;
}

.info-popup-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 40;
  width: min(28rem, calc(100vw - 2.5rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.info-popup-panel p {
  margin: 0;
  color: inherit;
}

.info-popup-panel a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .info-popup-panel {
    left: auto;
    right: 0;
  }
}

.settings-subsection-header {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.field-label {
  display: block;
  margin: 1rem 0 0.45rem;
  font-weight: 600;
}

.select-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}

.helper-text {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.upload-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.upload-card {
  border: 1px dashed #b7c5d6;
  border-radius: 12px;
  padding: 1rem;
  background: #fbfdff;
}

.upload-card.is-filled {
  border-style: solid;
  border-color: #9ec2e8;
  background: var(--accent-soft);
}

.upload-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.upload-card h3 {
  margin: 0;
  font-size: 1rem;
}

.upload-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.file-meta {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--accent);
}

.slot-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.format-tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: #eef3f8;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.upload-card input[type="file"] {
  margin-top: 0.75rem;
  width: 100%;
}

.actions {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: #e8f0f8;
  color: var(--accent);
}

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

.btn-danger {
  background: #fde8e8;
  color: #9b1c1c;
}

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

.batch-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.65rem;
  align-items: center;
}

@media (max-width: 720px) {
  .batch-row {
    grid-template-columns: 1fr;
  }
}

.coming-soon {
  padding: 0.5rem 0;
}

.coming-soon h2 {
  margin: 0 0 0.5rem;
}

.planned-slots {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.planned-slots h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.planned-list {
  margin: 0.75rem 0 0;
  padding-left: 0;
  list-style-type: disc;
  list-style-position: outside;
  display: grid;
  gap: 0.65rem;
}

.planned-list li {
  display: list-item;
  margin-left: 1.25rem;
  line-height: 1.45;
}

.planned-list span {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.planned-list em {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.download-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.download-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: #fafcff;
}

.download-link:hover {
  border-color: #9ec2e8;
  background: var(--accent-soft);
}

.download-link strong {
  font-size: 0.96rem;
}

.download-link span {
  color: var(--muted);
  font-size: 0.88rem;
}

.warnings-list {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style-type: disc;
  list-style-position: outside;
  color: var(--warning);
}

.warnings-list li {
  display: list-item;
  margin-left: 1.25rem;
}

.assumptions-accordion {
  border: 0;
}

.assumptions-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.assumptions-summary::-webkit-details-marker {
  display: none;
}

.assumptions-summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.assumptions-accordion[open] .assumptions-summary::after {
  transform: rotate(180deg);
}

.assumptions-summary-text {
  display: grid;
  gap: 0.2rem;
}

.assumptions-summary-text strong {
  font-size: 1.05rem;
}

.assumptions-summary-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.assumptions-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.settings-shell {
  padding-top: 0;
}

.settings-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0 -1.35rem;
}

.settings-tab {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: -1px;
  padding: 0.55rem 0.85rem;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.settings-tab:hover {
  color: var(--ink);
  background: #f4f7fb;
}

.settings-tab.is-active {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.settings-tab-panels {
  padding-top: 1rem;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.is-active {
  display: block;
}

.settings-shell-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.assumption-group-tiles {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.assumption-group-tile {
  margin: 0;
}

.assumption-group-header {
  margin-bottom: 0.35rem;
}

.assumption-group-header h3 {
  margin: 0;
  font-size: 1rem;
}

.assumption-group-header p {
  margin-top: 0.25rem;
}

.assumptions-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.assumption-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}

.assumption-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.assumption-used-for {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.profile-name-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
}

.prepared-by-field {
  width: 100%;
}

.symbol-insert-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.symbol-insert-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.symbol-insert-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.symbol-insert-btn:hover {
  border-color: var(--primary);
  background: rgba(85, 27, 36, 0.06);
}

.disclosure-editor {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.disclosure-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.disclosure-editor-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}

.disclosure-editor-btn.is-bold {
  font-weight: 700;
}

.disclosure-editor-btn.is-underline {
  text-decoration: underline;
}

.disclosure-editor-btn.is-link {
  font-size: 0.78rem;
  font-weight: 600;
}

.disclosure-editor-btn.is-symbol {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.disclosure-editor-btn.is-active {
  border-color: var(--primary);
  background: rgba(85, 27, 36, 0.08);
  color: var(--primary);
}

.disclosure-editor-surface {
  min-height: 10rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  outline: none;
}

.disclosure-editor-surface:empty::before,
.disclosure-editor-surface.is-empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.disclosure-editor-surface p {
  margin: 0 0 0.65rem;
}

.disclosure-editor-surface ul {
  margin: 0 0 0.65rem;
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 0;
}

.disclosure-editor-surface ol {
  margin: 0 0 0.65rem;
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 0;
}

.disclosure-editor-surface li {
  display: list-item;
  margin: 0 0 0.25rem 1.25rem;
  padding-left: 0;
}

.disclosure-editor-surface ol li {
  margin-left: 1.45rem;
}

.disclosure-editor-surface a {
  color: var(--primary);
  text-decoration: underline;
}

.disclosure-link-dialog {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.35);
}

.disclosure-link-dialog.hidden {
  display: none;
}

.disclosure-link-dialog-panel {
  width: min(100%, 24rem);
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.disclosure-link-dialog-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.disclosure-link-field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.disclosure-link-field span {
  color: var(--muted);
  font-size: 0.82rem;
}

.disclosure-link-hint {
  margin: 0 0 0.75rem;
}

.disclosure-link-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.assumption-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
}

.assumption-input-select {
  background: #fff;
}

.assumption-row-checkbox {
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.2fr);
}

.assumption-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.assumption-input-checkbox {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.assumption-default {
  color: var(--muted);
  font-size: 0.82rem;
}

.published-assumptions-meta {
  margin-top: 0.35rem;
}

.published-assumptions-meta .helper-text {
  margin-top: 0;
}

.assumptions-actions-inline {
  margin-top: 0.45rem;
}

.btn-small {
  padding: 0.42rem 0.62rem;
  font-size: 0.82rem;
}

.assumptions-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.branding-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.branding-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}

.branding-logo-field {
  display: grid;
  gap: 0.5rem;
}

.branding-logo-preview {
  max-height: 56px;
  max-width: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem;
}

.branding-row-full {
  grid-template-columns: 1fr;
}

.homepage-panels-section {
  margin-top: 1.5rem;
}

.homepage-cloud-controls {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  width: 100%;
}

.homepage-cloud-controls-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.homepage-cloud-control {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.homepage-cloud-control .assumption-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.homepage-cloud-value {
  font-weight: 600;
  color: var(--muted, #5c6778);
  font-variant-numeric: tabular-nums;
}

.homepage-cloud-control input[type="range"] {
  width: 100%;
  margin: 0;
}

.homepage-cloud-control input[type="color"] {
  width: 3rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.homepage-logo-cloud-preview {
  --ph-cloud-color: #ffffff;
  --ph-cloud-scale: 1;
  --ph-cloud-offset-y: 0%;
  --ph-cloud-opacity: 1;
  --ph-logo-scale: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 11.5rem;
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1b2d47;
}

.homepage-logo-cloud-preview-hero {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.homepage-logo-cloud-preview-brand {
  position: relative;
  z-index: 1;
  width: clamp(4.5rem, 28%, 9.5rem);
  max-width: 42%;
  line-height: 0;
  transform: scale(var(--ph-logo-scale, 1));
  transform-origin: center center;
  isolation: isolate;
}

.homepage-logo-cloud-preview-brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + var(--ph-cloud-offset-y, 0%));
  transform: translate(-50%, -50%) scale(var(--ph-cloud-scale, 1));
  width: min(42vw, 220px);
  height: clamp(88px, 18vw, 140px);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    var(--ph-cloud-color, #ffffff) 0%,
    var(--ph-cloud-color, #ffffff) 36%,
    color-mix(in srgb, var(--ph-cloud-color, #ffffff) 96%, transparent) 44%,
    color-mix(in srgb, var(--ph-cloud-color, #ffffff) 72%, transparent) 52%,
    color-mix(in srgb, var(--ph-cloud-color, #ffffff) 28%, transparent) 62%,
    color-mix(in srgb, var(--ph-cloud-color, #ffffff) 6%, transparent) 70%,
    transparent 76%
  );
  filter: blur(7px);
  opacity: var(--ph-cloud-opacity, 1);
  pointer-events: none;
  z-index: -1;
}

.homepage-logo-cloud-preview-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.homepage-logo-cloud-preview-logo:not([src]),
.homepage-logo-cloud-preview-logo[src=""] {
  display: none;
}

.homepage-logo-cloud-preview-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  margin: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 31, 53, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

@media (max-width: 900px) {
  .homepage-cloud-controls,
  .homepage-cloud-controls-wide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .homepage-cloud-controls,
  .homepage-cloud-controls-wide {
    grid-template-columns: 1fr;
  }
}

.homepage-panels-heading {
  margin-bottom: 0.75rem;
}

.homepage-panels-mount {
  margin-top: 0.35rem;
}

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

.homepage-panel-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.homepage-panel-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 2rem;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: #eef3fb;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.homepage-panel-fields {
  display: grid;
  gap: 0.75rem;
}

.homepage-panel-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.homepage-panel-field .assumption-used-for {
  margin-top: 0;
}

.homepage-panel-textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.45;
}

.homepage-panel-textarea-bullets {
  min-height: 5.5rem;
}

.homepage-logo-settings {
  display: grid;
  gap: 0.65rem;
}

.homepage-logo-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.homepage-nav-bg-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.homepage-clear-color {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.homepage-panel-advanced {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem 0.75rem;
  background: #fff;
}

.homepage-panel-advanced-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  list-style: none;
}

.homepage-panel-advanced-summary::-webkit-details-marker {
  display: none;
}

.homepage-panel-advanced-summary::before {
  content: "+ ";
  color: var(--muted);
}

.homepage-panel-advanced[open] .homepage-panel-advanced-summary::before {
  content: "− ";
}

.homepage-panel-advanced-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.homepage-panel-field-full {
  grid-column: 1 / -1;
}

.homepage-panel-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.homepage-panel-pdf-input {
  max-width: 100%;
}

.homepage-panel-pdf-current {
  font-size: 0.86rem;
  font-weight: 600;
  word-break: break-all;
}

.chart-colors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.chart-color-field {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.chart-color-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.chart-color-input {
  width: 3rem;
  height: 2rem;
  padding: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 720px) {
  .chart-colors-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .assumption-row {
    grid-template-columns: 1fr;
  }

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

  .homepage-panel-advanced-grid .branding-row {
    grid-template-columns: 1fr;
  }

  .homepage-panels-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none;
}

.dashboard-shell {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.stat-card {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.45rem;
  color: var(--accent);
}

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

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.kpi-value {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.kpi-detail {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.kpi-benchmark {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dashboard-table th,
.dashboard-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.dashboard-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-table tbody tr:hover {
  background: rgba(31, 75, 122, 0.04);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.table-action {
  white-space: nowrap;
}

.lineup-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.lineup-upload-hint {
  margin: -0.35rem 0 0.75rem;
}

.lineup-mapping-table input[type="text"] {
  width: 100%;
  min-width: 8rem;
}

.lineup-actions-col {
  width: 11rem;
  white-space: nowrap;
}

.lineup-equity-col {
  width: 6rem;
  white-space: nowrap;
}

.lineup-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lineup-row-actions .btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}

.unmapped-holdings-section {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.unmapped-holdings-section .settings-subsection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lineup-count-col {
  width: 5rem;
  white-space: nowrap;
  text-align: right;
}

.text-input {
  width: 100%;
  max-width: 420px;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.record-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.record-link:hover {
  color: #163a5f;
}

.record-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.record-editor-modal.hidden {
  display: none;
}

.record-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 53, 0.45);
}

.record-editor-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 1rem;
}

.record-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.record-editor-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.record-editor-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.record-editor-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.record-editor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.record-editor-form > .record-editor-field,
.record-editor-form > .helper-text {
  width: 100%;
}

.record-editor-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.record-editor-field-group > .record-editor-field + .helper-text {
  align-self: end;
  margin: 0;
}

.record-editor-section-note {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
}

.benefit-mall-invite-form {
  grid-template-columns: 1fr;
}

.benefit-mall-invite-intro,
.benefit-mall-invite-form .helper-text,
.benefit-mall-invite-link-row {
  grid-column: 1 / -1;
}

.record-editor-detail {
  margin-bottom: 1rem;
}

.record-editor-detail.hidden {
  display: none;
}

.record-editor-field-group .record-editor-table-wrap,
.record-editor-field-group .record-editor-holdings-header,
.record-editor-field-group .record-editor-holdings-empty,
.record-editor-field-group .record-editor-warnings {
  grid-column: 1 / -1;
}

.record-editor-field-group .record-editor-exposure-summary {
  margin: 0;
}

.record-editor-section {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.record-editor-section:first-of-type {
  margin-top: 0;
}

.record-editor-holdings-header {
  margin-bottom: 0.65rem;
}

.record-editor-exposure-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.record-editor-table-wrap {
  overflow-x: auto;
}

.record-editor-holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.record-editor-holdings-table th,
.record-editor-holdings-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}

.record-editor-holdings-table th {
  color: var(--muted);
  font-weight: 600;
}

.record-editor-warnings {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.record-editor-field .text-input {
  max-width: none;
  margin-bottom: 0;
  width: 100%;
}

.record-editor-field .select-input {
  max-width: none;
  margin-bottom: 0;
  width: 100%;
}

.record-editor-actions {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.record-editor-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .record-editor-field-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .topbar-title-actions {
    align-items: flex-start;
  }

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

.site-footer {
  max-width: 960px;
  margin: 2rem auto 2.5rem;
  padding: 0 1rem;
}

.site-footer .copyright-notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f1f35;
}

.auth-hero {
  background: #0f1f35;
  flex-shrink: 0;
}

.auth-hero-stage {
  position: relative;
  min-height: clamp(240px, 42vw, 400px);
  overflow: hidden;
}

.auth-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 18%),
    linear-gradient(0deg, rgba(15, 31, 53, 0.82) 0%, rgba(15, 31, 53, 0.35) 38%, transparent 68%),
    url("hero-background.png?v=3") center center / cover no-repeat;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 2rem));
  margin: -3.5rem auto 1rem;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-page-login {
  min-height: 100vh;
}

.auth-page-login .auth-hero-with-card {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.auth-page-login .auth-hero-stage {
  flex: none;
  width: 100%;
  /* Match hero-background.png (1024×682) so peaks are not cropped */
  min-height: max(calc(100vw * 682 / 1024), 34rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem clamp(1.5rem, 4vw, 2.5rem);
}

.auth-page-login .auth-card {
  margin: 0;
  z-index: 2;
  flex-shrink: 0;
}

.auth-page-login .auth-hero-backdrop {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 18%),
    linear-gradient(0deg, rgba(15, 31, 53, 0.82) 0%, rgba(15, 31, 53, 0.35) 38%, transparent 68%),
    url("hero-background.png?v=3") center top / 100% auto no-repeat;
}

.auth-page .site-footer {
  margin-top: auto;
  padding-bottom: 1.5rem;
}

.auth-page .site-footer .copyright-notice {
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.auth-card h1 {
  margin: 0.25rem 0 0.75rem;
}

.auth-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]) {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.auth-form input[type="radio"],
.auth-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  accent-color: #1f4b7a;
}

.auth-form .easy-rfp-choice-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
}

.auth-form .easy-rfp-likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-weight: 400;
  text-align: center;
}

.auth-form-secondary {
  margin-top: 1rem;
}

.auth-form-actions {
  display: grid;
  gap: 0.75rem;
}

.auth-form-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-flash-error {
  background: #fdecec;
  color: #8b1e1e;
}

.auth-flash-success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.easy-rfp-success-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 2px solid #12b76a;
  border-radius: 12px;
  background: linear-gradient(180deg, #ecfdf3 0%, #f6fef9 100%);
  box-shadow: 0 10px 24px rgba(18, 183, 106, 0.12);
}

.easy-rfp-success-banner-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 2.5rem;
  text-align: center;
}

.easy-rfp-success-banner-content {
  flex: 1 1 auto;
  min-width: 0;
}

.easy-rfp-success-banner-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #027a48;
}

.easy-rfp-success-banner-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #054f31;
}

.easy-rfp-success-banner-body {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #05603a;
}

.easy-rfp-success-banner-action {
  display: inline-block;
  text-decoration: none;
}

.easy-rfp-public-form-page--submitted .easy-rfp-form-card h1 {
  margin-bottom: 0.35rem;
}

.easy-rfp-form-links {
  margin: 0;
  padding-left: 1.25rem;
}

.easy-rfp-form-links li + li {
  margin-top: 0.35rem;
}

.easy-rfp-public-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.easy-rfp-public-link-row .field-input {
  flex: 1 1 18rem;
  min-width: 0;
}

.easy-rfp-actions {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.easy-rfp-inline-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}

.easy-rfp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.easy-rfp-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.easy-rfp-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.easy-rfp-tab-panel {
  display: none;
}

.easy-rfp-tab-panel.is-active {
  display: block;
}

.easy-rfp-priority-row {
  max-width: 36rem;
}

.easy-rfp-section-meta,
.easy-rfp-grade-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.easy-rfp-questions:not(.easy-rfp-questions-rich),
.easy-rfp-answer {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  overflow-x: auto;
}

.easy-rfp-questions-rich {
  white-space: normal;
  font-family: inherit;
  font-size: 0.9rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  overflow-x: auto;
}

.easy-rfp-questions-rich .easy-rfp-question-list,
.easy-rfp-questions-rich .easy-rfp-question-sublist,
.easy-rfp-questions-rich .easy-rfp-question-detail-list {
  margin: 0;
  padding-left: 1.65rem;
  list-style-position: outside;
}

.easy-rfp-questions-rich .easy-rfp-question-list > li {
  display: list-item;
  margin: 0 0 0.75rem;
  padding-left: 0.2rem;
}

.easy-rfp-questions-rich .easy-rfp-question-list > li:last-child {
  margin-bottom: 0;
}

.easy-rfp-questions-rich .easy-rfp-question-sublist,
.easy-rfp-questions-rich .easy-rfp-question-detail-list {
  margin-top: 0.4rem;
}

.easy-rfp-questions-rich .easy-rfp-question-detail-list {
  list-style-type: none;
  padding-left: 1.15rem;
}

.easy-rfp-questions-rich .easy-rfp-question-detail-list > li {
  display: list-item;
  margin: 0 0 0.25rem;
  padding-left: 0.2rem;
}

.easy-rfp-questions-rich .easy-rfp-question-detail-list > li:last-child {
  margin-bottom: 0;
}

.easy-rfp-questions-rich .easy-rfp-question-sublist-alpha {
  list-style-type: lower-alpha;
}

.easy-rfp-questions-rich .easy-rfp-question-sublist-roman {
  list-style-type: lower-roman;
}

.easy-rfp-answer-rich {
  white-space: normal;
}

.easy-rfp-answer-rich p {
  margin: 0 0 0.65rem;
}

.easy-rfp-answer-rich p:last-child {
  margin-bottom: 0;
}

.easy-rfp-answer-rich ul {
  margin: 0.35rem 0 0.65rem;
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 0;
}

.easy-rfp-answer-rich ol {
  margin: 0.35rem 0 0.65rem;
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 0;
}

.easy-rfp-answer-rich li {
  display: list-item;
  margin: 0 0 0.25rem 1.25rem;
  padding-left: 0;
}

.easy-rfp-answer-rich ol li {
  margin-left: 1.45rem;
}

.easy-rfp-answer-rich li + li {
  margin-top: 0.25rem;
}

.easy-rfp-answer-rich a {
  color: var(--primary);
  text-decoration: underline;
}

.easy-rfp-advisor-response-page .easy-rfp-public-page .panel {
  max-width: min(1200px, calc(100vw - 2rem));
  width: 100%;
}

.easy-rfp-advisor-response-form {
  width: 100%;
}

.easy-rfp-advisor-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.easy-rfp-response-section,
.easy-rfp-response-field,
.easy-rfp-response-editor {
  width: 100%;
}

.easy-rfp-response-field {
  display: grid;
  gap: 0.45rem;
}

.easy-rfp-response-editor .disclosure-editor-surface {
  min-height: 12rem;
}

.easy-rfp-finalist-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.easy-rfp-scorecard-table .helper-text {
  font-weight: normal;
}

.easy-rfp-final-row td {
  background: var(--accent-soft);
}

.easy-rfp-scorecard-panel,
.easy-rfp-sponsor-decision-panel,
.easy-rfp-sponsor-advisor-notifications {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcff;
}

.easy-rfp-scorecard-panel h2,
.easy-rfp-sponsor-decision-panel h2,
.easy-rfp-sponsor-advisor-notifications h2 {
  margin: 0 0 0.5rem;
}

.easy-rfp-scorecard-panel h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.easy-rfp-scorecard-ranking-list {
  margin: 0;
  padding-left: 0;
  list-style-type: decimal;
  list-style-position: outside;
}

.easy-rfp-scorecard-ranking-list li {
  display: list-item;
  margin: 0 0 0.35rem 1.45rem;
}

.easy-rfp-scorecard-ranking-score {
  float: right;
  font-weight: 700;
  color: var(--accent);
}

.easy-rfp-presentation-goals {
  margin-top: 1.25rem;
}

.easy-rfp-presentation-goals-table td:last-child {
  white-space: normal;
}

.easy-rfp-sponsor-decision-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.easy-rfp-decision-outcome-field .easy-rfp-decision-other-wrap {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.easy-rfp-decision-outcome-field .easy-rfp-decision-other-wrap.hidden {
  display: none;
}

.easy-rfp-decision-saved-note {
  margin-bottom: 0.75rem;
}

.easy-rfp-rationale-suggestions {
  margin: 0.35rem 0 0.75rem;
}

.easy-rfp-rationale-suggestion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.easy-rfp-rationale-suggestion-buttons .btn {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.easy-rfp-textarea {
  min-height: 8rem;
  resize: vertical;
}

.easy-rfp-textarea-compact {
  min-height: 2.75rem;
  resize: vertical;
}

.easy-rfp-sponsor-form {
  gap: 0.45rem;
}

.easy-rfp-sponsor-form label {
  gap: 0.12rem;
  font-size: 0.88rem;
}

.easy-rfp-sponsor-form .field-label {
  margin: 0;
  font-weight: 600;
}

.easy-rfp-sponsor-form .text-input {
  max-width: none;
  margin-bottom: 0;
  padding: 0.48rem 0.62rem;
}

.easy-rfp-sponsor-form .easy-rfp-textarea-compact {
  min-height: 2.35rem;
  line-height: 1.35;
}

.easy-rfp-sponsor-form .easy-rfp-submit-btn {
  margin-top: 0.35rem;
}

.easy-rfp-sponsor-form label.easy-rfp-sponsor-form-break {
  margin-top: 0.85rem;
}

.auth-card.easy-rfp-public-card:has(.easy-rfp-sponsor-form) {
  padding: 1.35rem 1.4rem;
}

.auth-card.easy-rfp-public-card:has(.easy-rfp-sponsor-form) h1 {
  margin: 0.1rem 0 0.35rem;
}

.auth-card.easy-rfp-public-card:has(.easy-rfp-sponsor-form) .auth-lead {
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.auth-card.easy-rfp-public-card:has(.easy-rfp-sponsor-form) .auth-flash {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}

.easy-rfp-video-upload input[type="file"] {
  width: 100%;
}

.easy-rfp-video-player {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: #000;
}

.easy-rfp-training-video {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.easy-rfp-training-video-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.easy-rfp-training-video-lead {
  margin: 0 0 0.45rem;
}

.easy-rfp-training-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.easy-rfp-training-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

.easy-rfp-training-video-player {
  max-width: none;
  margin-top: 0;
}

.easy-rfp-training-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.easy-rfp-training-video-poster-inline {
  z-index: 0;
  opacity: 0.18;
}

.easy-rfp-training-video-lazy {
  cursor: pointer;
}

.easy-rfp-training-video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 31, 53, 0.18);
  cursor: pointer;
}

.easy-rfp-training-video-lazy.is-playing .easy-rfp-training-video-poster,
.easy-rfp-training-video-lazy.is-playing .easy-rfp-training-video-play-btn {
  display: none;
}

.easy-rfp-public-form-page {
  margin: 0;
  min-height: 100vh;
  padding: 1.5rem 0 2.5rem;
  box-sizing: border-box;
  background: #f4f7fb;
  color: #1b2a41;
}

.easy-rfp-form-card {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.easy-rfp-public-form-page .easy-rfp-landing-header + .easy-rfp-form-card {
  margin-top: 1.25rem;
}

.easy-rfp-public-form-page .easy-rfp-form-card h1 {
  margin: 0.1rem 0 0.35rem;
}

.easy-rfp-public-form-page .easy-rfp-form-card .auth-lead {
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.easy-rfp-public-form-page .easy-rfp-form-card .auth-flash {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
}

.easy-rfp-public-form-page .easy-rfp-sponsor-form {
  gap: 0.45rem;
}

.easy-rfp-training-video-fallback {
  margin: 0;
}

.easy-rfp-training-document-link {
  margin: 0.75rem 0 0;
}

.auth-flash-error {
  color: #b42318;
}

.easy-rfp-public-card {
  max-width: 42rem;
}

.easy-rfp-public-page .panel {
  max-width: 960px;
  margin: 2rem auto;
}

.easy-rfp-workflow-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.easy-rfp-workflow-steps li + li {
  margin-top: 0.35rem;
}

.easy-rfp-progress-nav {
  margin: 0 0 1rem;
}

.easy-rfp-progress-nav a {
  font-weight: 600;
}

.easy-rfp-progress-role {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.easy-rfp-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.easy-rfp-progress-step {
  position: relative;
  padding: 0 0 1.25rem 2rem;
  border-left: 2px solid var(--border-subtle, #d8dee8);
}

.easy-rfp-progress-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.easy-rfp-progress-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.easy-rfp-progress-step-badge {
  position: absolute;
  left: -0.55rem;
  top: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-subtle, #d8dee8);
}

.easy-rfp-progress-step.is-complete .easy-rfp-progress-step-badge {
  background: var(--brand-primary, #0b5cab);
  border-color: var(--brand-primary, #0b5cab);
}

.easy-rfp-progress-step.is-active .easy-rfp-progress-step-badge {
  border-color: var(--brand-primary, #0b5cab);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
}

.easy-rfp-progress-step-status {
  font-size: 0.85rem;
  text-transform: capitalize;
  color: var(--text-muted, #5c6778);
}

.easy-rfp-progress-step.is-complete .easy-rfp-progress-step-status,
.easy-rfp-progress-step.is-active .easy-rfp-progress-step-status {
  color: var(--brand-primary, #0b5cab);
}

.easy-rfp-progress-step.is-active .easy-rfp-progress-step-status {
  font-weight: 600;
}

.easy-rfp-progress-step-detail {
  margin: 0.35rem 0 0.75rem;
}

.easy-rfp-progress-step-milestone {
  margin: -0.35rem 0 0.75rem;
  color: var(--text-muted, #5c6778);
  font-style: italic;
}

.easy-rfp-progress-step-target {
  margin: -0.35rem 0 0.75rem;
}

.easy-rfp-progress-participants {
  list-style: none;
  margin: 0.15rem 0 0.85rem;
  padding: 0;
  border: 1px solid var(--border-subtle, #d8dee8);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.easy-rfp-progress-participant {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border-subtle, #d8dee8);
  font-size: 0.92rem;
}

.easy-rfp-resend-email-form {
  margin: 0;
}

.easy-rfp-progress-participant-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: stretch;
  min-width: min(22rem, 100%);
}

.easy-rfp-direct-link {
  display: grid;
  gap: 0.35rem;
  justify-items: stretch;
  width: 100%;
}

.easy-rfp-direct-link-hint {
  margin: 0;
  text-align: left;
  font-size: 0.78rem;
}

.easy-rfp-direct-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.easy-rfp-invite-url-field {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-subtle, #d8dee8);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--text, #1c2430);
  font: inherit;
  font-size: 0.78rem;
}

.easy-rfp-direct-link-open {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent, #0f4c81);
  text-decoration: none;
}

.easy-rfp-direct-link-open:hover {
  text-decoration: underline;
}

.easy-rfp-copy-invite-link.is-copied {
  border-color: color-mix(in srgb, var(--accent, #0f4c81) 45%, #fff);
  color: var(--accent, #0f4c81);
}

.easy-rfp-resend-email-form,
.easy-rfp-correct-email-details {
  justify-self: end;
}

.easy-rfp-correct-email-details {
  width: min(18rem, 100%);
}

.easy-rfp-correct-email-summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-subtle, #d8dee8);
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary, #1f2937);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.easy-rfp-correct-email-summary::-webkit-details-marker {
  display: none;
}

.easy-rfp-correct-email-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--border-subtle, #d8dee8);
  border-radius: 8px;
  background: #f8fafc;
}

.easy-rfp-correct-email-label input {
  width: 100%;
  margin-top: 0.2rem;
}

.easy-rfp-correct-email-send {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6778);
}

.easy-rfp-resend-email-form .btn,
.easy-rfp-resend-email-btn {
  white-space: nowrap;
}

.easy-rfp-progress-participant:first-child {
  border-top: none;
}

.easy-rfp-progress-participant-main {
  display: grid;
  gap: 0.15rem;
}

.easy-rfp-progress-participant-email {
  font-weight: 600;
  word-break: break-word;
}

.easy-rfp-progress-participant-role {
  font-size: 0.82rem;
  color: var(--text-muted, #5c6778);
}

.easy-rfp-progress-participant-status {
  text-align: right;
  color: var(--text-muted, #5c6778);
}

.easy-rfp-progress-participant-detail {
  display: block;
}

.easy-rfp-training-indicators {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.easy-rfp-training-indicators li + li {
  margin-top: 0.1rem;
}

.easy-rfp-progress-participant.is-complete .easy-rfp-progress-participant-status {
  color: #166534;
}

.easy-rfp-progress-participant.is-pending .easy-rfp-progress-participant-status {
  color: #92400e;
}

.easy-rfp-progress-participant.is-waiting .easy-rfp-progress-participant-status {
  color: var(--text-muted, #5c6778);
}

.easy-rfp-progress-participant.is-excluded .easy-rfp-progress-participant-status {
  color: #991b1b;
}

@media (max-width: 640px) {
  .easy-rfp-progress-participant {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .easy-rfp-progress-participant-status {
    text-align: left;
  }

  .easy-rfp-progress-participant-actions {
    min-width: 0;
  }

  .easy-rfp-direct-link-row {
    grid-template-columns: 1fr;
  }

  .easy-rfp-resend-email-form,
  .easy-rfp-correct-email-details {
    justify-self: stretch;
  }
}

.easy-rfp-progress-primary-action {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle, #d8dee8);
}

.easy-rfp-grade-section {
  margin-top: 0;
}

.easy-rfp-grade-topic {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.easy-rfp-grade-topic-header {
  margin: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.easy-rfp-grade-topic-responses .easy-rfp-grade-card {
  margin: 0;
  border: none;
  border-radius: 0;
  background: #fff;
}

.easy-rfp-grade-topic-responses .easy-rfp-grade-card + .easy-rfp-grade-card {
  border-top: 1px solid var(--line);
}

.easy-rfp-grade-questions {
  display: grid;
  gap: 0.35rem;
}

.easy-rfp-grade-response {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0;
}

.easy-rfp-grade-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.easy-rfp-grade-card-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: min(100%, 16rem);
}

.easy-rfp-grade-card-identity strong {
  font-size: 1rem;
}

.easy-rfp-grade-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.easy-rfp-grade-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink, #1e293b);
  cursor: pointer;
}

.easy-rfp-grade-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.easy-rfp-grade-btn.is-selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.easy-rfp-grade-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.easy-rfp-video-grade-section {
  margin-top: 1.5rem;
}

.easy-rfp-sponsor-controls {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 0.35rem;
  border: 1px solid #f0c987;
  border-radius: 10px;
  background: #fffaf3;
}

.easy-rfp-sponsor-controls > h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.easy-rfp-sponsor-force-panel {
  margin: 0 0 1rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid #f3dfc0;
  border-radius: 0;
  background: transparent;
}

.easy-rfp-sponsor-force-panel.is-pending {
  background: #f8fafc;
}

.easy-rfp-sponsor-targets {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.easy-rfp-sponsor-targets h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.easy-rfp-status-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.easy-rfp-status-notice-success {
  border-left-color: #12b76a;
  background: #ecfdf3;
  color: #027a48;
}

.easy-rfp-status-notice-error {
  border-left-color: #b42318;
  background: #fdecec;
  color: #8b1e1e;
}

.easy-rfp-status-notice-info,
.easy-rfp-step-target-notice {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}

.easy-rfp-step-target-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.easy-rfp-sponsor-force-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.easy-rfp-sponsor-force-form {
  margin-top: 0.85rem;
}

.easy-rfp-workflow-links {
  margin-top: 1rem;
}

.easy-rfp-request-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.easy-rfp-request-meta > div:nth-child(4) {
  grid-column: 1;
}

.easy-rfp-request-meta dt {
  font-size: 0.8rem;
  color: var(--text-muted, #667085);
  margin: 0;
}

.easy-rfp-request-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.easy-rfp-request-meta-stat dd {
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 700;
  color: #1b2a41;
}

.easy-rfp-request-meta-stat dt {
  font-size: 0.88rem;
  font-weight: 600;
  color: #344054;
}

.easy-rfp-request-meta-compact {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  max-width: 28rem;
}

.easy-rfp-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.easy-rfp-landing-page {
  margin: 0;
  background: #f4f7fb;
  color: #1b2a41;
}

.easy-rfp-landing-header {
  background: #fff;
  border-bottom: 1px solid #dbe3ef;
}

.easy-rfp-landing-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.easy-rfp-landing-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b2a41;
  text-decoration: none;
}

.easy-rfp-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.easy-rfp-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: #eef2ff;
  color: #3538cd;
  flex: 0 0 auto;
}

.easy-rfp-brand-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.easy-rfp-brand-icon .module-icon-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.easy-rfp-brand-text {
  line-height: 1;
}

.easy-rfp-landing-hero,
.easy-rfp-landing-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.easy-rfp-landing-hero {
  text-align: center;
}

.easy-rfp-landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.35rem 0 1rem;
}

.easy-rfp-landing-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.easy-rfp-landing-steps {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.easy-rfp-landing-steps li + li {
  margin-top: 0.65rem;
}

.easy-rfp-landing-advisor {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27, 42, 65, 0.08);
}

.easy-rfp-landing-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.875rem;
  color: #667085;
  line-height: 1.6;
}

.easy-rfp-public-footer {
  margin-top: 2rem;
  padding: 0 1.25rem 2rem;
  text-align: center;
}

.easy-rfp-public-footer .helper-text,
.easy-rfp-public-copyright {
  margin: 0;
}

.easy-rfp-landing-footer .easy-rfp-public-copyright {
  padding-top: 0.75rem;
}

.easy-rfp-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.easy-rfp-report-note {
  margin-bottom: 1rem;
}

.easy-rfp-report-decision {
  margin-top: 1.5rem;
}

.easy-rfp-report-decision-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.easy-rfp-report-decision-value {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.easy-rfp-report-rationale {
  max-width: 48rem;
}

.easy-rfp-report-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.easy-rfp-report-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.easy-rfp-report-block h2 {
  margin: 0 0 0.65rem;
}

.easy-rfp-report-summary-table {
  max-width: 42rem;
}

.easy-rfp-report-section-head {
  margin-bottom: 0.85rem;
}

.easy-rfp-report-response-card {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.easy-rfp-report-response-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.easy-rfp-report-grade-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.master-admin-list-header {
  align-items: center;
}

.master-admin-publish-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 12px;
  background: #f7fafc;
}

.master-admin-publish-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.master-admin-publish-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.master-admin-publish-header .helper-text {
  margin: 0;
  max-width: 46rem;
}

.master-admin-publish-modules {
  display: grid;
  gap: 0.55rem;
}

.ma-release-row {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr) minmax(9rem, 11rem);
  align-items: center;
  gap: 0.65rem;
  max-width: 34rem;
}

.ma-release-row.is-locked {
  opacity: 0.8;
}

.ma-release-select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.3rem 0.45rem;
  font-size: 0.88rem;
}

.master-admin-subscribers-table .ma-module-col.is-unpublished,
.master-admin-modules-create .ma-module-toggle.is-unpublished {
  opacity: 0.72;
}

.module-hub-tile-coming-soon {
  cursor: default;
  opacity: 0.96;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.module-hub-coming-soon-banner {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  background: #fff4df;
  border-bottom: 1px solid #f0d9a8;
}

.module-hub-coming-soon-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a4d00;
}

#master-admin-publish-status {
  margin: 0.65rem 0 0;
}

.master-admin-create-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
}

.master-admin-modules-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0;
}

.master-admin-modules-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #344054;
}

.ma-module-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.ma-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #eef2ff;
  color: #3538cd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ma-module-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ma-module-icon .module-icon-text {
  font-size: 0.68rem;
}

.ma-module-name {
  color: #475467;
}

.master-admin-subscribers-table {
  width: 100%;
}

.master-admin-subscribers-table th,
.master-admin-subscribers-table td {
  vertical-align: middle;
}

.master-admin-subscribers-table .ma-col-subscriber {
  min-width: 12rem;
}

.master-admin-subscribers-table .ma-col-login {
  white-space: nowrap;
}

.master-admin-subscribers-table .ma-module-col {
  width: 3rem;
  text-align: center;
}

.master-admin-subscribers-table .ma-module-col input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.master-admin-subscribers-table thead .ma-module-col {
  vertical-align: middle;
}

.master-admin-subscribers-table .ma-module-included-cell .ma-module-icon {
  background: #ecfdf3;
  color: #027a48;
}

.ma-subscriber-meta {
  display: block;
  margin-top: 0.15rem;
}

.ma-status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f2f4f7;
  color: #667085;
}

.ma-status-badge.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.ma-status-badge.is-pending {
  background: #fffaeb;
  color: #b54708;
}

.ma-status-badge.is-awaiting {
  background: #eff8ff;
  color: #175cd3;
}

.ma-status-badge.is-rejected {
  background: #fef3f2;
  color: #b42318;
}

.ma-col-actions {
  white-space: normal;
  min-width: 8.5rem;
}

.ma-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.ma-row-actions form {
  margin: 0;
}

.master-admin-subscribers-table tr.is-dirty .ma-save-apps-btn:not(:disabled) {
  box-shadow: 0 0 0 2px rgba(21, 112, 239, 0.35);
}

.ma-impersonate-btn {
  min-width: 6.5rem;
}

.master-admin-modules label {
  display: block;
  margin-bottom: 0.25rem;
}

#master-admin-create-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

#master-admin-create-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

#master-admin-create-form input[type="text"],
#master-admin-create-form input[type="password"],
#master-admin-create-form input[type="email"] {
  width: 100%;
}

.master-admin-inline-check {
  display: block;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

#master-admin-create-form .form-actions {
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  #master-admin-create-form .form-grid {
    grid-template-columns: 1fr;
  }
}

body:has(.impersonation-bar) {
  padding-bottom: 3.75rem;
}

.impersonation-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #ffe600;
  box-shadow: 0 -4px 16px rgba(15, 31, 53, 0.18);
}

.impersonation-bar-stripe {
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    #111 0 10px,
    #ffe600 10px 20px
  );
}

.impersonation-bar-form {
  margin: 0;
}

.impersonation-bar-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: none;
  background: #ffe600;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
}

.impersonation-bar-button:hover,
.impersonation-bar-button:focus-visible {
  background: #ffd900;
  outline: none;
}

.impersonation-bar-button strong {
  font-weight: 800;
}

.upload-destination-fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.upload-destination-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.55rem 0;
}

.upload-destination-option strong {
  display: block;
}

.upload-destination-option .helper-text {
  display: block;
  margin-top: 0.15rem;
}

.easy-rfp-form-step[hidden] {
  display: none !important;
}

.easy-rfp-form-step-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.easy-rfp-form-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.easy-rfp-choice-fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.easy-rfp-choice-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
}

.easy-rfp-assessment-mode-fieldset {
  display: grid;
  gap: 0.75rem;
}

.easy-rfp-mode-card {
  display: block;
  position: relative;
  cursor: pointer;
}

.easy-rfp-mode-card:has(input:checked) .easy-rfp-mode-card-body {
  border-color: #1f4b7a;
  background: #f4f8fc;
  box-shadow: 0 0 0 1px #1f4b7a;
}

.easy-rfp-mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.easy-rfp-mode-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: start;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.easy-rfp-mode-card-body::before {
  content: "";
  grid-row: 1 / -1;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  border: 2px solid #9db3cc;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.easy-rfp-mode-card:has(input:checked) .easy-rfp-mode-card-body::before {
  border-color: #1f4b7a;
  background: radial-gradient(circle at center, #1f4b7a 0 32%, #fff 35%);
}

.easy-rfp-mode-card-body strong {
  grid-column: 2;
  font-size: 1rem;
  color: #1b2a41;
}

.easy-rfp-mode-card-body > span {
  grid-column: 2;
  font-weight: 400;
  font-size: 0.92rem;
  color: #4a5b73;
  line-height: 1.45;
}

.auth-form .easy-rfp-mode-card {
  display: block;
  font-weight: normal;
}

.easy-rfp-priority-group {
  margin-bottom: 1.25rem;
}

.easy-rfp-priority-group-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #1f4b7a;
}

.easy-rfp-category-description {
  margin: 0.25rem 0 0.55rem;
}

.easy-rfp-likert-table {
  margin-bottom: 1rem;
}

.easy-rfp-likert-table-header {
  display: none;
}

.easy-rfp-likert-row {
  border: 0;
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.easy-rfp-likert-table .easy-rfp-likert-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.easy-rfp-likert-statement {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.easy-rfp-likert-statement-text {
  flex: 1 1 auto;
}

.easy-rfp-info {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.05rem;
}

.easy-rfp-info-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid #7f93a8;
  border-radius: 999px;
  background: #fff;
  color: #1f4b7a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.easy-rfp-info-summary::-webkit-details-marker,
.easy-rfp-info-summary::marker {
  display: none;
}

.easy-rfp-info-summary:hover,
.easy-rfp-info-summary:focus-visible,
.easy-rfp-info[open] > .easy-rfp-info-summary {
  border-color: #1f4b7a;
  background: #eef4fa;
}

.easy-rfp-info-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(18rem, 70vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid #d0dbeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.12);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
  color: #243447;
}

.easy-rfp-info-panel p {
  margin: 0;
}

.easy-rfp-languages-followup {
  margin: 0.35rem 0 0.85rem 0.25rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #1f4b7a;
  background: #f7fafc;
}

.easy-rfp-likert-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.easy-rfp-likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.3rem;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
}

.easy-rfp-likert-option:has(input:checked) {
  border-color: #1f4b7a;
  background: #f4f8fc;
}

.easy-rfp-likert-option input {
  margin: 0;
}

@media (min-width: 720px) {
  .easy-rfp-likert-table-header {
    display: grid;
    grid-template-columns: minmax(12rem, 2fr) repeat(4, minmax(5rem, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475467;
  }

  .easy-rfp-likert-table-header .easy-rfp-likert-statement-col {
    grid-column: 1;
  }

  .easy-rfp-likert-row {
    display: grid;
    grid-template-columns: minmax(12rem, 2fr) repeat(4, minmax(5rem, 1fr));
    gap: 0.35rem;
    align-items: center;
  }

  .easy-rfp-likert-statement {
    margin: 0;
    grid-column: 1;
  }

  .easy-rfp-likert-options {
    grid-column: 2 / -1;
  }

  .easy-rfp-likert-option-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.easy-rfp-payroll-cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.easy-rfp-payroll-response-section {
  margin-bottom: 1.1rem;
  padding-bottom: 0.35rem;
}

.easy-rfp-payroll-goal {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #475467;
}

.easy-rfp-payroll-services-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.easy-rfp-payroll-apply-all {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.easy-rfp-payroll-apply-all .text-input {
  min-width: 12rem;
  max-width: none;
  margin-bottom: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
}

.easy-rfp-payroll-apply-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.easy-rfp-payroll-services-hint {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.easy-rfp-payroll-service-table {
  display: grid;
  gap: 0;
  margin: 0 0 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.easy-rfp-payroll-service-header,
.easy-rfp-payroll-service-row {
  display: grid;
  gap: 0.3rem 0.45rem;
  align-items: center;
}

.easy-rfp-payroll-service-header {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475467;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.easy-rfp-payroll-service-row {
  padding: 0.12rem 0.45rem;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.easy-rfp-payroll-service-row:last-child {
  border-bottom: 0;
}

.easy-rfp-payroll-service-label {
  font-weight: 550;
  font-size: 0.86rem;
  line-height: 1.2;
  color: #111827;
}

.easy-rfp-payroll-service-coverage .text-input,
.easy-rfp-payroll-service-fee .text-input {
  max-width: none;
  margin-bottom: 0;
  padding: 0.15rem 0.4rem;
  font-size: 0.82rem;
  min-height: 1.65rem;
  line-height: 1.2;
  border-radius: 6px;
}

.easy-rfp-payroll-service-fee .text-input {
  opacity: 0.5;
}

.easy-rfp-payroll-service-row.is-additional-fee .easy-rfp-payroll-service-fee .text-input {
  opacity: 1;
}

.easy-rfp-payroll-differentiation {
  margin: 1.25rem 0 1rem;
}

.easy-rfp-payroll-response-page .easy-rfp-response-editor .disclosure-editor-surface {
  min-height: 4.25rem;
  max-height: none;
  overflow-y: auto;
  resize: vertical;
}

.easy-rfp-payroll-inclusion-table .easy-rfp-likert-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.easy-rfp-uploaded-documents {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

@media (min-width: 720px) {
  .easy-rfp-payroll-service-header,
  .easy-rfp-payroll-service-row {
    grid-template-columns: minmax(10rem, 1.5fr) minmax(11rem, 1.3fr) minmax(7.5rem, 0.9fr);
  }

  .easy-rfp-payroll-service-header {
    display: grid;
    padding: 0.22rem 0.45rem;
  }

  .easy-rfp-payroll-inclusion-header,
  .easy-rfp-payroll-inclusion-table .easy-rfp-likert-row {
    grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(5rem, 1fr));
  }

  .easy-rfp-payroll-inclusion-header {
    display: grid;
  }
}

.required-mark {
  color: #b42318;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .easy-rfp-download-btn,
  .topbar,
  .site-footer,
  .impersonation-bar {
    display: none !important;
  }

  .easy-rfp-report-shell {
    margin: 0;
    padding: 0;
  }
}

.easy-rfp-disparity-card {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.easy-rfp-disparity-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #9a3412;
}

.easy-rfp-disparity-entries {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.easy-rfp-disparity-rationales blockquote {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #1f4b7a;
  background: #f8fafc;
}
