/* RFSX Exposure tool (standalone) */

.rfsx-exposure .exp-card {
  padding: 18px;
}

/* Topbar subtitle (under the title) */
.rfsx-exposure .exp-top-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 46rem;
}

/* Bullets used in the right sidebar */
.rfsx-exposure .rfsx-bullets {
  margin: 8px 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.rfsx-exposure .rfsx-bullets li {
  margin: 6px 0;
}

/* Share block styles (ported from RFSX sidebar styles) */
.rfsx-exposure .rfsx-share {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.rfsx-exposure .rfsx-share a {
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
}

.rfsx-exposure .rfsx-share a:hover {
  text-decoration: underline;
}

.rfsx-exposure .rfsx-share-copy {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.rfsx-exposure .rfsx-share-copy:hover {
  background: rgba(255,255,255,0.09);
}

.rfsx-exposure .rfsx-share-copy:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.rfsx-exposure .exp-copyhint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sticky header stepper (clickable) */
.rfsx-exposure .exp-stepper {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rfsx-exposure .exp-stepper::-webkit-scrollbar {
  height: 0;
}

.rfsx-exposure .exp-stepbtn {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rfsx-exposure .exp-stepbtn:hover {
  background: rgba(255,255,255,0.06);
}

.rfsx-exposure .exp-stepbtn.active {
  background: rgba(255,255,255,0.10);
  color: var(--text);
  border-color: rgba(255,255,255,0.20);
}

.rfsx-exposure .exp-stepbtn.done {
  color: var(--text);
}

.rfsx-exposure .exp-stepbtn.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.rfsx-exposure .exp-stepdot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.rfsx-exposure .exp-stepbtn.done .exp-stepdot {
  border-color: rgba(47,179,68,0.45);
  background: rgba(47,179,68,0.16);
  color: #d6ffdd;
}

.rfsx-exposure .exp-stepbtn.generating .exp-stepdot {
  border-color: rgba(93,168,255,0.55);
  background: rgba(93,168,255,0.12);
  color: rgba(255,255,255,0.90);
  position: relative;
}

.rfsx-exposure .exp-stepbtn.generating .exp-stepdot:after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.85);
  animation: expSpin 0.9s linear infinite;
}

.exp-intro p {
  margin: 0 0 12px 0;
}

.exp-disclaimer {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
}

.exp-app {
  margin-top: 16px;
}

.exp-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px 0;
}

.exp-step-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70);
  background: rgba(0,0,0,0.15);
}

.exp-step-pill.active {
  color: #fff;
  border-color: rgba(93, 168, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(93,168,255,0.12);
}

.exp-step-title {
  font-size: 18px;
  margin: 8px 0 6px 0;
}

.exp-step-desc {
  color: rgba(255,255,255,0.72);
  margin: 0 0 14px 0;
}

.exp-q {
  margin: 0 0 14px 0;
}

.exp-q label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.exp-q .exp-help {
  margin-top: 6px;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
}

.exp-input,
.exp-q select,
.exp-q textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}

.exp-q textarea {
  border-radius: 14px;
  min-height: 110px;
}

.exp-q .exp-multi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.exp-q .exp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

.exp-q .exp-check input {
  margin-top: 3px;
}

.exp-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.exp-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.18);
  color: #fff;
  cursor: pointer;
}

.exp-btn.primary {
  border-color: rgba(93, 168, 255, 0.55);
  background: linear-gradient(135deg, rgba(93,168,255,0.25), rgba(93,168,255,0.12));
}

.exp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.exp-error {
  margin-top: 8px;
  color: #ff9b9b;
  font-size: 13px;
}

.exp-report {
  margin-top: 18px;
}

.exp-report .exp-report-h {
  font-size: 20px;
  margin: 0 0 10px 0;
}

.exp-report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px 0;
}

.exp-report .exp-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px 0;
}

.exp-kpi .exp-kpi-box {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 160px;
}

.exp-kpi .exp-kpi-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.exp-kpi .exp-kpi-value {
  font-size: 16px;
  font-weight: 700;
}

.exp-cat {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
}

.exp-cat h4 {
  margin: 0 0 6px 0;
}

.exp-cat .exp-risk {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.18);
}

.exp-list {
  margin: 10px 0 0 18px;
  color: rgba(255,255,255,0.85);
}

.exp-muted {
  color: rgba(255,255,255,0.65);
}

.exp-spinner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
}

.exp-spinner:before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(93,168,255,0.85);
  animation: expSpin 1s linear infinite;
}

@keyframes expSpin {
  to { transform: rotate(360deg); }
}

/* Print-friendly layout */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .rfsx-nav,
  .rfsx-side,
  .rfsx-topbar,
  .rfsx-modal,
  #expApp,
  .exp-intro,
  .exp-stepper,
  .exp-nav,
  .exp-report-actions {
    display: none !important;
  }

  .rfsx-layout {
    display: block !important;
  }

  .rfsx-feedcol {
    width: 100% !important;
  }

  .rfsx-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .exp-cat,
  .exp-kpi .exp-kpi-box {
    background: transparent !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
  }

  .exp-muted {
    color: #333 !important;
  }
}

