/* FILE: public/css/bsp-true-theme-205.css (BUILD_ADDON_205 — True-BSP Eye-Comfort Monochrome + Spiral Lighthouse 37 + OS Contrast Lock) */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bsp-bg-canvas: #111317;
  --bsp-bg-card: #242933;
  --bsp-border-silver: #9CA3AF;
  --bsp-text-primary: #F1F5F9;
  --bsp-text-muted: #9CA3AF;
  --bsp-cta-amber: #F59E0B;
  --bsp-cta-text: #111317;
  --bsp-inline-accent: #F59E0B;
  --bsp-profit-emerald: #10B981;
  --bsp-overlay-fog: rgba(17, 19, 23, 0.84);
}

html[data-theme="light"] {
  color-scheme: light;
  --bsp-bg-canvas: #F1F5F9;
  --bsp-bg-card: #E2E8F0;
  --bsp-border-silver: #64748B;
  --bsp-text-primary: #111317;
  --bsp-text-muted: #334155;
  --bsp-cta-amber: #F59E0B;
  --bsp-cta-text: #111317;
  /* Daytime Contrast Fix: Deep Burnished Amber #92400E delivers 5.75:1 WCAG AA on #F1F5F9/#E2E8F0 */
  --bsp-inline-accent: #92400E;
  --bsp-profit-emerald: #047857;
  --bsp-overlay-fog: rgba(241, 245, 249, 0.88);
}

html, body {
  background-color: var(--bsp-bg-canvas);
  color: var(--bsp-text-primary);
  overflow-x: clip;
  padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px));
}

/* Prevent iOS/Android OS Auto-Dark-Mode from double-inverting emblems & CTAs */
.bsp-lighthouse-emblem,
.bsp-monochrome-flag,
.bsp-cta-amber,
.bsp-call-michael-btn,
button[data-bsp-cta] {
  forced-color-adjust: none;
}

/* Primary Golden-Amber CTA (8.66:1 WCAG AAA contrast with #111317 dark text) */
.bsp-cta-amber,
.bsp-call-michael-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background-color: #F59E0B;
  color: #111317 !important;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid #F59E0B;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.bsp-inline-amber-accent {
  color: var(--bsp-inline-accent);
  font-weight: 700;
}

.bsp-profit-badge {
  background-color: rgba(16, 185, 129, 0.16);
  color: var(--bsp-profit-emerald);
  border: 1px solid var(--bsp-profit-emerald);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-weight: 700;
}

/* 44px Min-Height 5-Button Top Control Bar (z-index: 100700) */
.bsp-top-control-bar {
  position: sticky;
  top: 0;
  z-index: 100700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: var(--bsp-bg-canvas);
  border-bottom: 1px solid var(--bsp-border-silver);
}

.bsp-top-control-bar button,
.bsp-top-control-bar a {
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
}

/* Mobile 16px Input Floor & High Contrast Field Text in Day and Night Modes */
input, select, textarea {
  font-size: 16px !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
select,
textarea {
  color: #F1F5F9 !important;
  background-color: #1a202c !important;
  border: 1px solid #4B5563 !important;
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1.5px solid #64748B !important;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF !important;
  opacity: 1;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #475569 !important;
  opacity: 1;
}

/* UI Fix #1 & #2: Login Modal "CREAT" Left-Edge Clip & 12px Top Scroll Padding on "CREATE NEW ACCOUNT" */
.bsp-auth-modal-tabs,
#bsp-login-modal .auth-tab-row {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 12px;
  scroll-padding-top: 12px;
  box-sizing: border-box;
  overflow-x: auto;
}

#bsp-create-account-btn,
[data-auth-tab="register"] {
  margin-top: 12px;
  scroll-margin-top: 12px;
  white-space: nowrap;
  padding-inline: 14px;
}

/* UI Fix #5: Bottom Dock "20-" Mid-Hyphen Wrap Guard */
.bsp-bottom-dock a,
.bsp-bottom-dock button,
.bsp-dock-chip {
  white-space: nowrap;
  word-break: keep-all;
}

/* Command Shell & Bento Tile Radius Hygiene */
.bsp-cmd-shell {
  overflow-x: clip;
}

.bsp-bento-tile {
  border-radius: 16px !important;
  background-color: var(--bsp-bg-card);
  border: 1px solid var(--bsp-border-silver);
}

/* BUG-03 Video 16:9 Anti-Zoom Parity */
video,
.bsp-video-frame,
.bsp-drive-video-embed {
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  transform: none !important;
  max-width: 100%;
}

/* FILE: public/css/bsp-ui-contrast-and-badge-heal-231.css (BUILD_ADDON_231..233 — AAA Amber CTA Contrast, 360px Badge Wrap & Gemini-Style Viewport Polish) */
a.bsp-cta-amber,
button.bsp-cta-amber,
.bsp-cta-amber,
.bsp-call-michael-btn,
a[style*="#F59E0B"],
a[style*="#f59e0b"],
a[style*="rgb(245, 158, 11)"],
button[style*="#F59E0B"],
button[style*="#f59e0b"] {
  color: #111317 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
  forced-color-adjust: none !important;
}

.bsp-profit-badge {
  display: inline-block !important;
  border-radius: 10px !important;
  line-height: 1.35 !important;
  padding: 0.32rem 0.65rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.bsp-personal-assistant-drawer {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(17, 19, 23, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}
.bsp-personal-assistant-drawer[data-open="true"] {
  display: flex;
}
