/* AVBG Free calculator shell — v55.0.7. Visual overrides only. */
.free-mode-bar {
  position: relative;
  z-index: 10001;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #26154f 0%, #3b2479 55%, #293f8d 100%);
  border-bottom: 1px solid #806bff;
  color: #cad2e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.free-mode-brand { display: inline-flex; align-items: center; gap: 9px; color: #f5f7ff; text-decoration: none; }
.free-mode-brand > img { width: 32px; height: 32px; display: block; border-radius: 7px; }
.free-mode-brand b { font-size: 14px; }
.free-mode-bar p { margin: 0; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.free-mode-bar p strong { color: #8f83ff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.free-mode-bar p span { color: #8f9bb8; font-size: 12px; }
.free-mode-links { display: flex; gap: 14px; }
.free-mode-links a { color: #cad2e8; font-size: 12px; font-weight: 700; text-decoration: none; }
.free-mode-links a:hover { color: #8ec5ff; }

.clinical-app-header.header-box {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 24px auto 0 !important;
  padding: 36px clamp(22px, 5vw, 58px) !important;
  border: 1px solid #8b78ff !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 93, 204, .24), transparent 25%),
    radial-gradient(circle at 66% 84%, rgba(90, 160, 255, .24), transparent 30%),
    linear-gradient(135deg, #291458 0%, #5934c8 52%, #315dd8 100%) !important;
  color: #f5f7ff !important;
  box-shadow: 12px 12px 0 rgba(123,87,255,.13), 0 18px 44px rgba(74,44,164,.22) !important;
  text-align: left !important;
}
.clinical-app-header::after { content: ""; position: absolute; right: 28px; top: 24px; width: clamp(84px, 12vw, 142px); aspect-ratio: 1; border-radius: 25%; background: url('/icon-512.png') center/cover no-repeat; opacity: .14; pointer-events: none; }
.clinical-app-header .app-kicker { position: relative; z-index: 1; margin-bottom: 13px; color: #d7d1ff; font: 700 10px/1.2 Consolas, monospace; letter-spacing: .12em; }
.clinical-app-header .header-title { position: relative; z-index: 1; margin: 0 !important; color: #f5f7ff !important; font-size: clamp(2.3rem, 6vw, 4.3rem) !important; line-height: 1 !important; letter-spacing: -.055em !important; text-shadow: none !important; }
.clinical-app-header .header-sub { position: relative; z-index: 1; margin-top: 18px; text-align: left !important; }
.clinical-app-header .header-sub p { max-width: 570px; margin: 0 0 16px; color: #f0edff; font-size: 15px; }
.app-header-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #c9e4ff; font: 700 10px/1.3 Consolas, monospace; letter-spacing: .07em; }
.app-about-btn { margin-top: 20px !important; padding: 11px 15px !important; border: 2px solid rgba(255,255,255,.94) !important; border-radius: 8px !important; background: rgba(255,255,255,.08) !important; color: #fff !important; font-size: 12px !important; font-weight: 800 !important; box-shadow: 0 0 0 1px rgba(65,35,142,.18), 0 8px 22px rgba(34,17,84,.2) !important; backdrop-filter: blur(6px) !important; }
.app-about-btn:hover { border-color: #fff !important; background: #fff !important; color: #4c2e9a !important; transform: translateY(-1px) !important; }

body > .container { max-width: 1180px !important; }
.container > div[style*="text-align: center"]:first-child > button {
  max-width: none !important;
  padding: 17px 24px !important;
  border: 1px solid #907dff !important;
  border-radius: 10px !important;
  background: linear-gradient(100deg, #4b2a94 0%, #7555fa 52%, #4b75ef 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(89,52,200,.22), inset 0 1px 0 rgba(255,255,255,.2) !important;
  font-size: 14px !important;
  letter-spacing: .05em !important;
}
.card { border: 1px solid rgba(123,87,255,.16) !important; border-radius: 10px !important; box-shadow: 0 1px 0 rgba(91,57,176,.04), 0 14px 34px rgba(78,54,138,.09) !important; }
.card > details, .ccp-toggle, .preview-box, .about-modal, .reference-modal,
.about-modal-content > div[style*="border-radius:14px"] { border-radius: 10px !important; }
.companion-app-card { margin: 22px 0 20px; padding: 22px; border: 1px solid #c7bbff; border-radius: 10px; background: linear-gradient(135deg, #f5f1ff 0%, #eef3ff 100%); text-align: left; box-shadow: 0 10px 26px rgba(91,57,176,.10); }
.companion-app-kicker { margin-bottom: 8px; color: #6748d8; font: 800 10px/1.2 Consolas, monospace; letter-spacing: .11em; }
.companion-app-card h3 { margin: 0 0 9px; color: #24164f; font-size: 1.35rem; letter-spacing: -.02em; }
.companion-app-card p { margin: 0 0 17px; color: #4a4560; font-size: .92rem; line-height: 1.65; }
.companion-app-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid #7256e8; border-radius: 8px; background: linear-gradient(100deg, #5a35c4, #7657ff 55%, #4f78ef); color: #fff; font-size: .86rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px rgba(90,53,196,.18); }
.companion-app-link:hover { color: #fff; transform: translateY(-1px); }
.section-title { letter-spacing: -.01em !important; }
#analyzeBtn { background: linear-gradient(100deg, #5a35c4, #7657ff 55%, #4f78ef) !important; }
.footer-card { border-radius: 10px !important; }

@media (max-width: 760px) {
  .free-mode-bar { grid-template-columns: auto 1fr; gap: 8px 12px; padding: 9px 14px; }
  .free-mode-bar p { display: block; }
  .free-mode-bar p strong, .free-mode-bar p span { display: block; white-space: normal; }
  .free-mode-links { grid-column: 1 / -1; justify-content: flex-end; }
  .clinical-app-header.header-box { margin: 14px 12px 0 !important; padding: 27px 20px !important; box-shadow: 6px 6px 0 rgba(123,87,255,.13), 0 14px 30px rgba(74,44,164,.18) !important; }
  .clinical-app-header::after { right: 12px; top: 18px; width: 78px; }
  .app-header-meta { display: grid; gap: 5px; }
}
