/* Forge — BlueBook-style Assessment Stylesheet
   Student-facing only. consultant.html uses styles.css. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --bg-surface:   #F5F5F5;
  --bg-card:      #FFFFFF;
  --bg-hover:     #F0F0F0;
  --border:       #CBCBCB;
  --border-light: #E3E3E3;

  --text:         #1A1A1A;
  --text-muted:   #595959;
  --text-dim:     #767676;

  --blue:         #0077C8;
  --blue-light:   #EBF5FF;
  --blue-dark:    #005FA3;
  --blue-border:  #99D0F7;

  --danger:       #CC0000;
  --danger-light: #FFE8E8;
  --success:      #1A7A3F;
  --success-light:#E8F7EE;

  --header-bg:    #1E1E1E;
  --header-text:  #FFFFFF;

  --font: 'DM Sans', -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --panel-padding: 28px 32px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── PROGRESS BAR ──────────────────────────────────────────────────────── */
#progress-bar-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: #3A3A3A; z-index: 1001;
}
#progress-bar {
  height: 100%;
  background: var(--blue);
  transition: width 0.4s ease;
}

/* ─── HEADER ────────────────────────────────────────────────────────────── */
/* Authentic Bluebook: white header, black text, dashed separator beneath. */
#top-nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: 52px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  gap: 16px;
}
#top-nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: repeating-linear-gradient(90deg, #BDB8AF 0 7px, transparent 7px 14px);
}

.nav-logo {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo span {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

/* Timer — center, prominent */
#nav-timer {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  min-width: 80px;
  text-align: center;
  display: none;
  font-variant-numeric: tabular-nums;
}
#nav-timer.active { display: block; }
#nav-timer.warn { color: #B26A00; }
#nav-timer.critical { color: var(--danger); animation: pulse-timer 1s infinite; }

@keyframes pulse-timer { 0%,100%{opacity:1} 50%{opacity:0.6} }
@media (prefers-reduced-motion: reduce) { #nav-timer.critical { animation: none; } }

.nav-step {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-step strong { color: var(--text); font-weight: 600; }

/* ─── APP WRAPPER ───────────────────────────────────────────────────────── */
#app { padding-top: 55px; min-height: 100vh; }

/* ─── PRE-TEST SCREENS (intake, personality, intro, confirmation) ────────── */
.bb-screen {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
}
.bb-screen-wide {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

.bb-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.bb-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Forms */
.bb-form-group { margin-bottom: 20px; }
.bb-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.bb-input, .bb-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.bb-input:focus, .bb-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,200,0.12);
}
.bb-input::placeholder { color: var(--text-dim); }
.bb-select option { background: #fff; }

.bb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .bb-form-row { grid-template-columns: 1fr; } }

/* Buttons */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.bb-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.bb-btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
}
.bb-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.bb-btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.bb-btn-secondary:hover { background: var(--blue-light); }

.bb-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.bb-btn-ghost:hover { background: var(--bg-surface); color: var(--text); }

.bb-btn-lg { padding: 12px 32px; font-size: 15px; }
.bb-btn-full { width: 100%; }

.bb-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

/* Error */
.bb-error { font-size: 13px; color: var(--danger); margin-bottom: 8px; min-height: 20px; }

/* ─── PERSONALITY / CHOICE PAIRS ────────────────────────────────────────── */
.bb-pair-counter {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-weight: 500;
}
.bb-pair-counter strong { color: var(--blue); }

.bb-choice-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.bb-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.bb-choice-card:hover { border-color: var(--blue-border); background: var(--blue-light); }
.bb-choice-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.bb-choice-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
  background: var(--bg);
}
.bb-choice-card.selected .bb-choice-letter {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}

/* Q dots (personality + question nav) */
.bb-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 24px;
}
.bb-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
  background: var(--bg);
}
.bb-dot:hover { border-color: var(--blue); color: var(--blue); }
.bb-dot.answered { background: var(--bg-surface); border-color: #AAAAAA; color: var(--text-muted); }
.bb-dot.current  { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

/* ─── MODULE INTRO ──────────────────────────────────────────────────────── */
.bb-intro-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.bb-intro-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.bb-intro-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 28px 0 32px;
}
.bb-intro-stat-val {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.bb-intro-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}
.bb-intro-divider { width: 1px; height: 44px; background: var(--border); }
.bb-intro-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ─── SPLIT-PANE QUESTION LAYOUT ────────────────────────────────────────── */
/* Full viewport below header */
.bb-question-layout {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  height: calc(100vh - 55px);
  overflow: hidden;
}

.bb-left-panel {
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--panel-padding);
  background: var(--bg);
  scroll-behavior: smooth;
}
.bb-divider-line {
  background: var(--border);
  width: 2px;
  align-self: stretch;
}
.bb-right-panel {
  overflow-y: auto;
  padding: 24px 32px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Panel header labels */
.bb-panel-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* Question number in right panel — Bluebook black square badge */
.bb-q-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bb-q-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px;
  background: var(--text); color: #fff; border-radius: 4px;
  font-weight: 700; font-size: 14px;
}
.bb-q-type-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Passage text */
.bb-passage {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  max-width: 65ch; /* keep prose at a readable measure on wide panes */
  text-align: justify;
  hyphens: auto;
}
/* p tags inside paragraphized passage need the same spacing */
.bb-passage p { margin-bottom: 1em; }
.bb-passage p:last-child { margin-bottom: 0; }
.bb-passage u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--blue);
}

/* Dual text */
.bb-dual-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bb-text-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--bg);
}
.bb-text-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

/* Notes (EOI synthesis) */
.bb-notes-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: var(--bg);
  margin-bottom: 4px;
}
.bb-notes-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bb-notes-box li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bb-notes-box li::before { content: '•'; position: absolute; left: 0; color: var(--blue); }
.bb-notes-task {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  font-style: italic;
  color: var(--text);
}

/* Data table */
.bb-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.bb-data-table th {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.bb-data-table td {
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  color: var(--text);
}
.bb-data-table tr:hover td { background: var(--bg-surface); }

/* Question stem */
.bb-question-stem {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Fill-in blank highlight */
.bb-blank {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2px solid var(--text);
  margin: 0 3px;
  vertical-align: bottom;
}

/* Math question (no left panel) */
.bb-math-layout {
  height: calc(100vh - 55px);
  overflow-y: auto;
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
}
.bb-math-stem {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ─── ANSWER CHOICES ────────────────────────────────────────────────────── */
.bb-choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.bb-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  text-align: left;
}
.bb-choice:hover { border-color: var(--blue-border); background: var(--blue-light); }
.bb-choice.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}

.bb-choice-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--bg);
  transition: all 0.12s;
}
.bb-choice.selected .bb-choice-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}

/* ─── HIGHLIGHT SPANS ───────────────────────────────────────────────────── */
.bb-hl { background: rgba(252,211,77,0.55); border-radius: 2px; cursor: pointer; transition: background 0.12s; padding: 0 1px; }
.bb-hl:hover { background: rgba(252,191,36,0.85); }

/* SPR */
.bb-spr-wrap { margin-bottom: 24px; }
.bb-spr-input {
  display: block;
  width: 180px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bb-spr-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,200,0.12);
}
.bb-spr-hint { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ─── QUESTION NAVIGATION (bottom of right panel) ────────────────────────── */
.bb-q-nav {
  /* Sticks to the bottom of its scrolling panel. On a long passage this row used
     to sit below the fold, so answering meant scrolling down to reach Next and
     back up for the next question. Real Bluebook keeps a persistent bottom bar,
     so this is closer to the exam, not further from it. */
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: auto;
  margin-left: -32px;
  margin-right: -32px;
  padding: 14px 32px 10px;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.bb-math-layout > .bb-q-nav { background: var(--bg-surface); }
@media (max-width: 900px) {
  .bb-q-nav { margin-left: -16px; margin-right: -16px; padding: 12px 16px 8px; }
}
.bb-submit-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: right;
}

/* Inline timer block (above dots) */
.bb-timer-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--header-bg);
  border-radius: var(--radius);
  width: fit-content;
}
.bb-timer-val {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  min-width: 58px;
  text-align: center;
}
.bb-timer-lbl { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.bb-timer-inline.warn .bb-timer-val { color: #FFD166; }
.bb-timer-inline.critical .bb-timer-val { color: #FF6B6B; animation: pulse-timer 1s infinite; }

/* Dots strip above navigation */
.bb-dots-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

/* ─── CONFIRMATION ──────────────────────────────────────────────────────── */
.bb-confirm {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.bb-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F7EE;
  border: 2px solid #1A7A3F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 26px;
  color: #1A7A3F;
}
.bb-confirm-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.bb-confirm-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.bb-confirm-name { font-size: 13px; color: var(--text-dim); margin-top: 20px; }

/* ─── SHARED VISUAL AIDS (qa-* classes) ─────────────────────────────────── */
/* Rendered in the Bluebook content area (white/light background). */

/* Table */
.qa-table-wrapper {
  margin: 12px 0 16px;
  overflow-x: auto;
}
.qa-table-title {
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.qa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.qa-table th {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.qa-table td {
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  color: var(--text);
}
.qa-table tr:hover td { background: var(--bg-surface); }

/* Notes (student notes / rhetorical synthesis) */
.qa-notes-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: var(--bg);
  margin-bottom: 4px;
}
.qa-notes-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.qa-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qa-notes-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.qa-notes-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--blue);
}
.qa-note-task {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* Dual text */
.qa-dual-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa-text-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--bg);
}
.qa-text-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.qa-text-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

/* Graph */
.qa-graph {
  margin: 12px 0;
  text-align: center;
  max-width: 100%;
  overflow-x: auto;
}
.qa-graph svg {
  max-width: 100%;
  height: auto;
}
.qa-graph-blocked {
  font-size: 13px;
  color: var(--text-dim);
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bb-question-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
    height: auto;
    overflow: visible;
  }
  .bb-left-panel  { max-height: 45vh; overflow-y: auto; padding: 20px 16px; }
  .bb-divider-line { height: 1px; width: auto; }
  .bb-right-panel { overflow-y: visible; min-height: 55vh; padding: 20px 16px; }
  .bb-math-layout { padding: 20px 16px; }
}

/* ─── KATEX OVERRIDE ────────────────────────────────────────────────────── */
.katex { font-size: 1em !important; color: var(--text); }

/* ─── CALCULATOR PANEL ───────────────────────────────────────────────────── */
.bb-calc-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: var(--header-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  z-index: 2000;
  flex-direction: column;
  overflow: hidden;
}
.bb-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.bb-calc-iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #fff;
}