:root{
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --blur-accent: #d97706;
  --blur-soft: #fffbeb;
  --shot-accent: #16a34a;
  --shot-soft: #f0fdf4;
  --combine-accent: #7c3aed;
  --combine-soft: #f5f3ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px -4px rgba(37,99,235,0.12), 0 4px 8px -2px rgba(0,0,0,0.04);
}

html[data-theme="dark"]{
  --bg: #090d16;
  --bg-soft: #111827;
  --panel: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --blur-soft: rgba(217, 119, 6, 0.18);
  --shot-soft: rgba(22, 163, 74, 0.18);
  --combine-soft: rgba(124, 58, 237, 0.2);
  --danger-soft: rgba(220, 38, 38, 0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.5);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* Critical Fix: Ensures CSS display rules NEVER override HTML hidden attribute */
[hidden] { display: none !important; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

/* ---------- top bar ---------- */
.topbar{
  position: sticky; top:0; z-index: 60;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .topbar{ background: rgba(9, 13, 22, 0.85); }

.topbar-inner{ display:flex; align-items:center; gap: 14px; padding: 12px 28px; width: 100%; }
.brand{ display:flex; align-items:center; gap:10px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration:none; letter-spacing: -0.01em; }
.brand-dot{ width:10px; height:10px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.badge-offline{
  margin-left:auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 100px;
  white-space: nowrap; border: 1px solid rgba(37,99,235,0.15);
}

.icon-btn{
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  width: 38px; height: 38px; color: var(--text); cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  transition: all .15s ease; box-shadow: var(--shadow-sm);
}
.icon-btn:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;
  padding: 6px; margin-left: 4px;
}
.hamburger span{ width: 22px; height: 2px; background: var(--text); border-radius:2px; transition: all .2s; }

.topnav-mobile{ display:none; flex-direction:column; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--panel); }
.topnav-mobile a{ padding: 12px 0; color: var(--text); text-decoration:none; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.topnav-mobile.open{ display:flex; }

/* ---------- full width fluid layout ---------- */
.layout{ 
  display:flex; 
  align-items:flex-start; 
  width: 100%; 
  margin: 0; 
  padding: 0 28px 0 0; 
}

.side-nav{
  width: 220px; flex-shrink:0;
  position: sticky; top: 63px;
  height: calc(100vh - 63px);
  padding: 24px 16px 24px 28px;
  border-right: 1px solid var(--line);
  overflow-y:auto;
}
.side-nav-label{
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700; margin: 0 0 10px 8px;
}
.side-nav nav{ display:flex; flex-direction:column; gap: 4px; }
.side-nav a{
  display:flex; align-items:center; gap: 12px;
  color: var(--muted); text-decoration:none; font-size: 14px; font-weight: 500;
  line-height: 1.2;
  padding: 10px 12px; border-radius: 10px;
  transition: all .15s ease;
}
.side-nav a:hover{ background: var(--bg-soft); color: var(--text); }
.side-nav a.active{ background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav a svg{ flex-shrink:0; }

.content-wrap{ flex:1; min-width:0; padding-left: 12px; }

/* ---------- hero ---------- */
.hero{ padding: 56px 24px 40px; text-align:center; }
.hero h1{
  font-size: clamp(26px, 3.6vw, 42px); line-height:1.25; margin: 0 0 18px;
  max-width: 32ch; margin-left:auto; margin-right:auto; letter-spacing: -0.02em; font-weight: 800;
}
.hero-word{
  display:inline-block; opacity:0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
#heroTitle.is-visible .hero-word{ opacity:1; transform: translateY(0); }

.hero-sub{ color: var(--muted); font-size: 16px; max-width: 800px; margin: 0 auto 28px; line-height:1.65; }
.trust-list{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap: 10px 16px; padding:0; margin: 0; }
.trust-list li{
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--panel); padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}

/* ---------- tool grid ---------- */
.tool-grid-section{ padding: 10px 24px 60px; }
.eyebrow-center{ text-align:center; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--muted); font-weight: 700; margin: 0 0 20px; }
.tool-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tool-card{
  display:flex; flex-direction:column; gap: 12px; text-decoration:none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.tool-card:hover{ border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-icon{ width: 44px; height: 44px; border-radius: 12px; display:flex; align-items:center; justify-content:center; }
.tool-icon.rec{ background: var(--danger-soft); color: var(--danger); }
.tool-icon.edit{ background: var(--accent-soft); color: var(--accent); }
.tool-icon.audio{ background: var(--blur-soft); color: var(--blur-accent); }
.tool-icon.shot{ background: var(--shot-soft); color: var(--shot-accent); }
.tool-icon.combine{ background: var(--combine-soft); color: var(--combine-accent); }
.tool-name{ font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.tool-desc{ font-size: 12.5px; color: var(--muted); line-height:1.5; }

/* ---------- scroll reveal ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1), transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- tool sections ---------- */
.tool-section{ padding: 56px 24px; scroll-margin-top: 64px; border-top: 1px solid var(--line); }
.eyebrow{ text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; color: var(--accent); font-weight: 700; margin: 0 0 16px; }

.panel{ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel h2{ font-size: 18px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.panel .hint{ font-size: 13.5px; color: var(--muted); margin: 0 0 18px; line-height:1.6; max-width: none; }

/* ---------- live teleprompter pill during recording ---------- */
.live-teleprompter-box{
  margin-top: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.live-teleprompter-label{
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.live-teleprompter-text{
  font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.5; min-height: 24px;
}

/* ---------- fallback banners ---------- */
.mobile-fallback{
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.mobile-fallback p{ margin: 0; font-size: 14px; color: var(--text); line-height: 1.6; }

/* ---------- audio/webcam recording toggles ---------- */
.audio-options-row{ display:flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.audio-toggle-card{
  display:flex; align-items:flex-start; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; flex: 1; min-width: 240px;
  transition: all .15s ease; user-select: none;
}
.audio-toggle-card:hover{ border-color: var(--muted); }
.audio-toggle-card:has(input:checked){ background: var(--accent-soft); border-color: var(--accent); }
.audio-toggle-card input[type="checkbox"]{
  margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; flex-shrink: 0;
}
.audio-toggle-text{ display:flex; flex-direction:column; gap: 4px; }
.audio-toggle-title{ font-size: 14px; font-weight: 600; color: var(--text); }
.audio-toggle-desc{ font-size: 12px; color: var(--muted); line-height: 1.4; }

.row{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }

.btn{
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s ease; box-shadow: var(--shadow-sm); text-decoration: none;
}
.btn:hover{ border-color: var(--muted); background: var(--bg-soft); }
.btn:active{ transform: scale(0.98); }
.btn:disabled{ opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary{ background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.btn.primary:hover{ background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.danger{ color: var(--danger); border-color: rgba(220,38,38,0.2); background: var(--danger-soft); }
.btn.danger:hover{ border-color: var(--danger); }
.btn.toggled{ background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn.toggled.blur-mode{ background: var(--blur-soft); border-color: var(--blur-accent); color: var(--blur-accent); }

.status{ font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; font-weight: 500; }
.status .rec-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--danger); margin-right: 8px; }
.status .rec-dot.pulsing{ animation: pulse 1.1s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform: scale(1); } 50%{ opacity:.3; transform: scale(0.85); } }

.empty{ color: var(--muted); font-size: 13.5px; text-align:center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); }

input[type=file]{ font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button{
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer; margin-right: 12px; transition: all .15s ease;
}
input[type=file]::file-selector-button:hover{ border-color: var(--accent); color: var(--accent); }

.hidden-source{ display:none; }

.stage{ display:flex; flex-direction:column; align-items:center; gap: 16px; width: 100%; }
.readout{ width:100%; display:flex; justify-content:space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
canvas{ max-width:100%; width:100%; border-radius: 12px; background:#000; cursor: crosshair; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
#shotCanvas, #areaPickCanvas{ background: #f1f5f9; }
html[data-theme="dark"] #shotCanvas, html[data-theme="dark"] #areaPickCanvas{ background: #0f172a; }

.slider-row{ display:flex; align-items:center; gap: 14px; margin-bottom: 16px; width: 100%; }
.slider-row label{ font-size: 13px; font-weight: 600; color: var(--muted); width: 64px; flex-shrink:0; }
.slider-row span{ font-size: 13px; font-weight: 600; color: var(--text); width: 50px; text-align:right; font-variant-numeric: tabular-nums; }
input[type=range]{ flex:1; accent-color: var(--accent); height: 6px; border-radius: 3px; }

/* ---------- pro feature controls ---------- */
.pro-controls-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}
.pro-control-box{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pro-control-label{
  font-size: 12.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between;
}
.pro-select{
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer; width: 100%;
}
.shortcut-badge{
  font-size: 11px; background: var(--panel); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; font-family: monospace; color: var(--muted);
}

/* ---------- subtitle and region timeline lists ---------- */
.region-list, .caption-list{ display:flex; flex-direction:column; gap: 10px; margin-top: 14px; }
.region-item, .caption-item{ display:flex; flex-wrap:wrap; align-items:center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.region-item .swatch{ width:10px; height:10px; border-radius:3px; flex-shrink:0; }
.region-item span.label{ font-weight: 600; color: var(--text); min-width: 100px; }
.region-time-controls, .caption-time-controls{ display:flex; align-items:center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.region-time-group, .caption-time-group{ display:flex; align-items:center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.region-time-input, .caption-time-input{ width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 12px; font-weight: 600; text-align: center; }
.caption-text-input{ flex: 1; min-width: 180px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 13px; font-weight: 500; }
.region-item button.remove-btn, .caption-item button.remove-btn{ background:none; border:none; color: var(--danger); cursor:pointer; font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.region-item button.remove-btn:hover, .caption-item button.remove-btn:hover{ background: var(--danger-soft); }

.progress-wrap{ width:100%; height:6px; background: var(--line); border-radius: 100px; overflow:hidden; display:none; margin-top: 10px; }
.progress-wrap.show{ display:block; }
.progress-bar{ height:100%; width:0%; background: var(--accent); transition: width .1s linear; }

.link-btn{ color: #fff; font-size: 13.5px; font-weight: 600; text-decoration:none; background: var(--accent); padding: 10px 18px; border-radius: 10px; display:inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(37,99,235,0.25); transition: all .15s ease; }
.link-btn:hover{ background: var(--accent-hover); }

/* ---------- color swatches ---------- */
.color-row{ display:flex; gap: 10px; align-items:center; margin-right: 8px; }
.color-swatch{ width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding:0; transition: transform .15s ease; }
.color-swatch:hover{ transform: scale(1.15); }
.color-swatch.active{ border-color: var(--text); box-shadow: 0 0 0 2px var(--panel) inset; transform: scale(1.1); }

/* ---------- area picker ---------- */
.area-picker{ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.area-picker-stage canvas{ cursor: crosshair; }

/* ---------- combine lists ---------- */
.combine-list{ display:flex; flex-direction:column; gap: 8px; margin-top: 16px; }
.combine-item{ display:flex; align-items:center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.combine-item .combine-index{
  width: 22px; height: 22px; border-radius: 50%; background: var(--combine-soft); color: var(--combine-accent);
  font-size: 11.5px; font-weight: 700; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.combine-item span.label{ flex:1; color: var(--text); font-weight: 500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.combine-item button{ background:none; border:none; color: var(--muted); cursor:pointer; font-size: 14px; padding: 4px 8px; border-radius: 6px; transition: all .15s ease; }
.combine-item button:hover{ color: var(--accent); background: var(--panel); }
.combine-item button.remove-btn:hover{ color: var(--danger); background: var(--danger-soft); }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 52px 28px 28px; margin-top: 20px; background: var(--bg-soft); }
.footer-top{ display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand p{ font-size: 13px; color: var(--muted); line-height:1.6; margin: 12px 0 0; max-width: none; }
.footer-heading{ font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.footer-col{ display:flex; flex-direction:column; gap: 10px; }
.footer-col a{ color: var(--text); text-decoration:none; font-size: 13.5px; font-weight: 500; transition: color .15s ease; }
.footer-col a:hover{ color: var(--accent); }
.footer-col span{ color: var(--muted); font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: row;        /* Displays all items in a single horizontal line */
  flex-wrap: wrap;           /* Allows items to wrap cleanly on mobile screens */
  justify-content: center;   /* Centers the items horizontally */
  align-items: center;
  gap: 8px 16px;             /* Adds spacing between items */
}

.footer-bottom span {
  display: inline-block; /* Prevents text from stacking vertically */
}

/* Optional: Adds a subtle bullet separator (•) between each item on desktop */
.footer-bottom span:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  opacity: 0.4;
}
.visit-counter{ font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- responsive: tablet ---------- */
@media (max-width: 1080px){
  .side-nav{ width: 190px; padding-left: 20px; }
  .layout{ padding-right: 20px; }
  .topbar-inner{ padding: 12px 20px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

/* ---------- responsive: phone ---------- */
@media (max-width: 720px){
  .side-nav{ display:none; }
  .badge-offline{ display:none; }
  .layout{ padding-right: 0; }
  .content-wrap{ padding-left: 0; }
  .hamburger{ display:flex; margin-left:auto; }
  .tool-grid{ grid-template-columns: 1fr; }
  .tool-section{ padding: 36px 18px; }
  .tool-grid-section{ padding: 10px 18px 40px; }
  .hero{ padding: 40px 18px 32px; }
  .hero h1{ max-width: none; }
  .panel{ padding: 20px 18px; }
  .slider-row label{ width: 48px; }
  .footer-top{ grid-template-columns: 1fr; gap: 24px; }
  .site-footer{ padding: 36px 18px 24px; }
}
/* ---------- Proof Points & Author Card CSS ---------- */
.proof-points-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.proof-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.proof-item strong {
  font-size: 13.5px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.proof-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.author-box {
  background: var(--panel);
  border: 1px solid var(--line);
}

.author-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- SEO Audit: Extracted Inline Styles ---------- */
.panel h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.eyebrow-center h2 { font-size: 11px; margin: 0 0 20px; font-weight: 700; }

.mt-2 { margin-top: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mb-12 { margin-bottom: 12px !important; }
.m-0 { margin: 0 !important; }

.blue-dot { background: #2563eb !important; }
.warning-fallback { border-color: #d97706; background: rgba(217, 119, 6, 0.05); }
.btn.warning-btn { background: #d97706; border-color: #d97706; }
.btn.warning-btn:hover { background: #b45309; border-color: #b45309; }
.file-select-sm { padding: 4px; }
.export-audio-row { margin: 8px 0 18px; width: 100%; }

/* Color Swatches based on Data Attributes instead of inline styles */
.color-swatch[data-color="#e35d5d"] { background: #e35d5d; }
.color-swatch[data-color="#2563eb"] { background: #2563eb; }
.color-swatch[data-color="#16a34a"] { background: #16a34a; }
.color-swatch[data-color="#f2a63f"] { background: #f2a63f; }
.color-swatch[data-color="#111318"] { background: #111318; }

.ocr-textarea { width: 100%; height: 110px; font-family: monospace; margin-top: 14px; resize: vertical; }

.author-hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.author-desc { max-width: none; margin: 0 0 12px; color: var(--text); }
.accent-link { color: var(--accent); text-decoration: none; }
.accent-link:hover { text-decoration: underline; }
.badge-neutral { background: var(--bg-soft); color: var(--text); border-color: var(--line); }

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: center;
    max-width: 420px; /* Keeps the grid from stretching too wide */
    margin-top: 16px;
  }
  
  .badge-grid a,
  .badge-grid div {
    display: flex;
    justify-content: flex-start; /* Aligns badges to the left within their cell */
    margin: 0 !important; /* Removes any conflicting inline margins */
  }

  .badge-grid img {
    height: 48px !important; /* Forces all badges to be the exact same height */
    width: auto !important;  /* Maintains original aspect ratio without stretching */
    object-fit: contain;
  }