/* ============================================================
   SIEM 3.0 — Unified Stylesheet
   ============================================================ */

/* ── 1. TOKENS & RESET ────────────────────────────────────── */
:root {
  --bg: #070A10; --bg-0: #070A10;
  --bg-1: #0C1018;
  --bg-2: #111620;
  --bg-3: #16202E;
  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(74,229,196,0.3); --border-hover: rgba(74,229,196,0.3);
  --mint: #4AFFD4;
  --mint-dim: rgba(74,255,212,0.12); --mint-glow: rgba(74,255,212,0.25);
  --amber: #F5A623; --amber-dim: rgba(245,166,35,0.12);
  --red: #FF5564; --red-dim: rgba(255,85,100,0.12);
  --purple: #A78BFA; --purple-dim: rgba(167,139,250,0.12);
  --blue: #60A5FA; --blue-dim: rgba(96,165,250,0.12);
  --text: #FFFFFF; --text-primary: #E8ECF2;
  --text-2: rgba(255,255,255,0.7); --text-secondary: #8A94A6;
  --text-3: rgba(255,255,255,0.4); --text-muted: #5A6478;
  --r: 12px; --radius-card: 12px;
  --r-sm: 8px; --radius-input: 8px;
  --mono: 'JetBrains Mono', monospace; --font-mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif; --font-body: 'DM Sans', sans-serif;
  --serif: 'Fraunces', serif; --font-title: 'Fraunces', serif;
  --trans: all 0.25s cubic-bezier(0.16,1,0.3,1); --ease: cubic-bezier(0.16,1,0.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.6; min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(74,255,212,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(74,255,212,0.02) 1px, transparent 1px); background-size: 48px 48px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 99px; }

/* ── 2. LAYOUT & NAV ──────────────────────────────────────── */
.shell { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; width: 100%; }
.shell-home { display: flex; flex-direction: column; flex: 1; }
.shell-wide { max-width: 1300px; padding-top: 32px; }
.shell-app { padding-top: 32px; }
.page { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; width: 100%; }
.page-sm { max-width: 780px; }

.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; padding: 0 32px; height: 56px; background: rgba(7,10,16,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--mint); text-decoration: none; letter-spacing: -0.5px; margin-right: 32px; }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li { display: flex; align-items: center; }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }
.nav-links a { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); text-decoration: none; padding: 6px 14px; border-radius: 100px; transition: var(--trans); }
.nav-links a:hover { color: var(--text-2); background: var(--bg-2); }
.nav-links a.active { color: var(--bg); background: var(--mint); font-weight: 600; }
@media (max-width: 900px) { .nav-links { display: none; } .nav { padding: 0 16px; } }

/* ── 3. COMMON COMPONENTS ─────────────────────────────────── */
.btn { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 16px; border-radius: var(--r-sm); cursor: pointer; transition: var(--trans); border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--bg-3); color: var(--text); border-color: var(--text-3); }
.btn-primary, .btn.primary { background: var(--mint); color: var(--bg-0); border: none; }
.btn-primary:hover, .btn.primary:hover { background: #3de6bf; box-shadow: 0 0 16px rgba(74,255,212,0.3); color: var(--bg-0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-outline-mint { color: var(--mint); background: var(--mint-dim); border: 1px solid rgba(74,255,212,0.2); }
.btn-outline-mint:hover { background: rgba(74,255,212,0.25); border-color: var(--mint); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid transparent; white-space: nowrap; flex-shrink: 0; }
.tag-mint, .tag-ok { background: var(--mint-dim); color: var(--mint); border-color: var(--border-hi); }
.tag-amber, .tag-rev { background: var(--amber-dim); color: var(--amber); border-color: rgba(245,166,35,0.3); }
.tag-red { background: var(--red-dim); color: var(--red); border-color: rgba(255,85,100,0.3); }
.tag-purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(167,139,250,0.3); }
.tag-blue { background: var(--blue-dim); color: var(--blue); border-color: rgba(96,165,250,0.3); }

.toast { position: fixed; bottom: 32px; right: 32px; padding: 14px 24px; border-radius: var(--r-sm); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.03em; z-index: 200; transform: translateY(100px); opacity: 0; transition: var(--trans); max-width: 380px; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast.success { background: var(--mint-dim); color: var(--mint); border: 1px solid var(--border-hi); }
.toast.error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,85,100,0.3); }
.toast.info { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,166,35,0.3); }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }

/* Forms Shared */
.field-row { display: flex; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.field:last-of-type { margin-bottom: 0; }
.field-label, label { font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); display: block; margin-bottom: 2px; }
input[type="text"], input[type="number"], input[type="password"], select, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; font-family: var(--sans); font-size: 13px; transition: var(--trans); outline: none; appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--border-hi); background: var(--bg-3); box-shadow: 0 0 0 3px var(--mint-glow); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A94A6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: var(--bg-2); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field-hint { font-size: 11px; color: var(--text-3); }
@media (max-width: 900px) { .field-row { flex-direction: column; gap: 12px; } }

/* ── 4. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .8; box-shadow: 0 0 0 0 rgba(74,255,212,0.3); } 50% { opacity: .3; box-shadow: 0 0 0 16px rgba(74,255,212,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes scan { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: 100vh; opacity: 0; } }

/* ── 5. INDEX ─────────────────────────────────────────────── */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px 0 40px; }
.hero-label { font-family: var(--mono); font-size: 10px; color: var(--mint); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 16px; animation: fadeUp .5s .15s ease both; opacity: 0; }
.hero-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 300; color: var(--text); line-height: 1.25; max-width: 600px; animation: fadeUp .6s .25s ease both; opacity: 0; }
.hero-title strong { font-weight: 700; color: var(--mint); }
.hero-sub { font-size: 15px; color: var(--text-3); max-width: 500px; margin-top: 16px; line-height: 1.7; animation: fadeUp .6s .35s ease both; opacity: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 60px; animation: fadeUp .6s .45s ease both; opacity: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.hm-card { position: relative; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; cursor: pointer; transition: var(--trans); overflow: hidden; text-decoration: none; min-height: 220px; }
.hm-card::before { content: ''; position: absolute; inset: -1px; border-radius: var(--r); background: linear-gradient(135deg, rgba(74,255,212,0.15), transparent 60%); opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 0; }
.hm-card::after { content: ''; position: absolute; bottom: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--mint), transparent); opacity: 0; transition: opacity .4s ease; }
.hm-card:hover { border-color: var(--border-hi); transform: translateY(-4px); }
.hm-card:hover::before { opacity: 1; }
.hm-card:hover::after { opacity: .4; }
.hm-card:hover .card-icon { border-color: var(--mint); box-shadow: 0 0 20px rgba(74,255,212,0.2); }
.hm-card:hover .card-arrow { opacity: 1; transform: translate(2px, -2px); }
.hm-card > * { position: relative; z-index: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: var(--trans); flex-shrink: 0; }
.card-icon svg { width: 20px; height: 20px; stroke: var(--mint); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.card-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-status { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; }
.status-ready { background: var(--mint-dim); color: var(--mint); border: 1px solid var(--border-hi); }
.card-arrow { width: 20px; height: 20px; opacity: 0; transition: var(--trans); }
.card-arrow svg { width: 20px; height: 20px; stroke: var(--mint); fill: none; stroke-width: 1.5; }
.scan-line { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent 20%, rgba(74,255,212,0.15) 50%, transparent 80%); animation: scan 8s ease-in-out infinite; pointer-events: none; }
footer { position: relative; z-index: 1; text-align: center; padding: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }
.footer-dots { display: flex; gap: 6px; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .3; }
.footer-dot:first-child { opacity: .8; animation: pulse 2s ease infinite; }

/* ── 6. ONBOARDING & BASE CONHECIMENTO ───────────────────── */
.page-header { margin-bottom: 40px; }
.page-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); background: var(--mint-dim); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.page-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.page-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; color: var(--text); }
.page-subtitle { font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 620px; }

.onb-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 24px; animation: fadeUp 0.4s var(--ease); }
.flow-steps { display: flex; align-items: center; margin-bottom: 40px; padding: 20px 24px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); }
.flow-step { display: flex; align-items: center; gap: 10px; }
.flow-step .step-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); flex-shrink: 0; }
.flow-step .step-text { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.flow-step.active .step-num { background: var(--mint); color: var(--bg-0); border-color: var(--mint); box-shadow: 0 0 12px rgba(74,255,212,0.25); }
.flow-step.active .step-text { color: var(--text); }
.flow-step.done .step-num { background: var(--mint-dim); color: var(--mint); border-color: rgba(74,255,212,0.3); }
.flow-step.done .step-text { color: var(--text-2); }
.flow-arrow { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; min-width: 32px; }
.flow-arrow.done { color: rgba(74,255,212,0.4); }

.doctor-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--r); padding: 36px 24px; text-align: center; cursor: pointer; transition: all 0.3s var(--ease); background: var(--bg-1); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--mint); background: rgba(74,255,212,0.03); }
.upload-icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--mint-dim); display: flex; align-items: center; justify-content: center; }
.upload-icon svg { width: 20px; height: 20px; color: var(--mint); }
.upload-title { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.upload-hint { font-size: 12px; color: var(--text-3); }

.file-loaded { display: none; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-2); border: 1px solid rgba(74,255,212,0.2); border-radius: var(--r-sm); margin-top: 12px; }
.file-loaded.show { display: flex; }
.file-loaded .fl-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--red-dim); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--red); flex-shrink: 0; }
.file-loaded .fl-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-loaded .fl-size { font-family: var(--mono); font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.file-loaded .fl-remove { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 18px; padding: 2px 4px; transition: color 0.2s; }
.file-loaded .fl-remove:hover { color: var(--red); }

.profile-container { display: none; }
.profile-container.visible { display: block; }
.profile-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 20px 22px; margin-bottom: 14px; }
.profile-section-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.profile-text { font-size: 14px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.profile-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-meta-item { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.04em; }
.profile-meta-item span { color: var(--text-2); }

.notes-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; margin-bottom: 16px; }
.note-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.note-card .note-text { font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.note-badge { font-family: var(--mono); font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.note-badge.pending { background: var(--amber-dim); color: var(--amber); }
.note-badge.incorporated { background: var(--mint-dim); color: var(--mint); }
.note-meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; }
.add-note-row { display: flex; gap: 12px; }

.generating-overlay { display: none; text-align: center; padding: 48px 24px; }
.generating-overlay.show { display: block; }
.generating-pulse { width: 56px; height: 56px; border-radius: 50%; background: var(--mint-dim); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; animation: pulse 1.5s ease-in-out infinite; }
.generating-text { font-family: var(--mono); font-size: 12px; color: var(--text-2); letter-spacing: 0.04em; }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* BC specifics */
.doctor-selector { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.upload-queue { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.queue-item { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 18px; display: flex; align-items: center; gap: 14px; animation: fadeUp 0.3s var(--ease); }
.queue-item .file-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--red-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--red); }
.queue-item .file-info { flex: 1; min-width: 0; }
.queue-item .file-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item .file-size { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }
.file-status { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; flex-shrink: 0; }
.file-status.uploading { color: var(--amber); background: var(--amber-dim); }
.file-status.processing { color: var(--mint); background: var(--mint-dim); }
.file-status.done { color: var(--mint); background: var(--mint-dim); }
.file-status.error { color: var(--red); background: var(--red-dim); }
.queue-item .progress-bar { width: 100%; height: 3px; background: var(--bg-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.queue-item .progress-fill { height: 100%; background: var(--mint); border-radius: 2px; width: 0%; transition: width 0.5s var(--ease); }

.library-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.library-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); }
.library-count { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.05em; }
.search-bar { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px 10px 38px; font-family: var(--sans); font-size: 13px; width: 260px; transition: border-color 0.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235A6478' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%235A6478' stroke-width='2' fill='none'/%3E%3Cline x1='16' y1='16' x2='21' y2='21' stroke='%235A6478' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
.search-bar:focus { outline: none; border-color: var(--mint); }
.library-table { width: 100%; border-collapse: collapse; }
.library-table thead th { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.library-table tbody tr { transition: background 0.15s; }
.library-table tbody tr:hover { background: var(--bg-1); }
.library-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); vertical-align: middle; }
.library-table .td-title { color: var(--text); font-weight: 500; }
.library-table .td-date { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.library-table .td-actions { text-align: right; }
.btn-icon { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 6px; transition: all 0.2s; }
.btn-icon:hover { color: var(--mint); background: var(--mint-glow); }
.btn-icon.danger:hover { color: var(--red); background: var(--red-dim); }

.bc-empty-state { text-align: center; padding: 48px 24px; color: var(--text-3); }
.bc-empty-state .empty-icon { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.4; }

.embed-badge { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.embed-badge.ready { color: var(--mint); background: var(--mint-dim); }
.embed-badge.pending { color: var(--amber); background: var(--amber-dim); }

/* ── 7. CLIENTES ──────────────────────────────────────────── */
.client-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; animation: fadeUp 0.5s ease both; }
.client-list-panel { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 120px); position: sticky; top: 80px; }
.list-header { padding: 20px; border-bottom: 1px solid var(--border); }
.list-title { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.search-input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: var(--sans); font-size: 13px; padding: 10px 14px; outline: none; transition: var(--trans); }
.search-input:focus { border-color: var(--border-hi); }
.list-body { flex: 1; overflow-y: auto; }
.client-item { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--trans); border-left: 3px solid transparent; }
.client-item:hover { background: var(--bg-2); }
.client-item.active { background: var(--mint-dim); border-left-color: var(--mint); }
.ci-name { font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.client-item.active .ci-name { color: var(--mint); }
.ci-esp { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.dashboard-panel { display: none; flex-direction: column; gap: 24px; }
.dashboard-panel.visible { display: flex; animation: fadeIn 0.4s ease both; }
.dash-header { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dh-info h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.dh-meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 12px; align-items: center; }
.dh-meta span { display: flex; align-items: center; gap: 6px; }
.dh-actions { display: flex; gap: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; }
.stat-label { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-val { font-size: 28px; font-weight: 600; font-family: var(--serif); line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: 11px; color: var(--text-3); }
.val-mint { color: var(--mint); }
.val-amber { color: var(--amber); }

.dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.pc-title { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pc-title-icon { width: 24px; height: 24px; background: var(--mint-dim); color: var(--mint); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.dna-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.dna-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.dna-label { font-family: var(--mono); font-size: 10px; color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dna-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.timeline { display: flex; flex-direction: column; gap: 16px; }
.tl-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tl-tema { font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--text); }
.tl-date { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.empty-hint { padding: 32px 0; text-align: center; font-size: 13px; color: var(--text-3); font-family: var(--mono); }

/* ── 8. GERAR ROTEIROS ────────────────────────────────────── */
.config-banner { background: var(--amber-dim); border: 1px solid rgba(245,166,35,0.25); border-radius: var(--r); padding: 16px 20px; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; animation: fadeUp 0.5s 0.1s ease both; }
.config-banner.hidden { display: none; }
.config-icon { font-size: 18px; flex-shrink: 0; }
.config-text { flex: 1; font-size: 13px; color: var(--amber); }
.config-text strong { font-weight: 500; }
.config-toggle { background: none; border: 1px solid rgba(245,166,35,0.4); color: var(--amber); font-family: var(--mono); font-size: 11px; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; transition: var(--trans); white-space: nowrap; }
.config-toggle:hover { background: var(--amber-dim); }
.config-panel { background: var(--bg-1); border: 1px solid rgba(245,166,35,0.2); border-radius: var(--r); padding: 24px; margin-bottom: 32px; animation: fadeUp 0.3s ease both; }
.config-panel.hidden { display: none; }
.config-panel h3 { font-family: var(--mono); font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.config-grid .field:last-child { grid-column: 1 / -1; }

.main-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.gr-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--trans); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--mint-dim); border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.card-head h2 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.2; }
.card-head p { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.card-body { padding: 22px; }

.counter-wrap { display: flex; align-items: center; gap: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.counter-btn { background: none; border: none; color: var(--mint); font-size: 18px; width: 40px; height: 42px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--trans); flex-shrink: 0; }
.counter-btn:hover { background: var(--mint-dim); }
.counter-val { flex: 1; text-align: center; font-family: var(--mono); font-size: 15px; color: var(--text); border: none; background: transparent; padding: 0; pointer-events: none; }

.btn-submit { width: 100%; margin-top: 20px; background: var(--mint); color: #070A10; border: none; border-radius: var(--r-sm); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 24px; cursor: pointer; transition: var(--trans); display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.btn-submit::before { content: ''; position: absolute; inset: 0; opacity: 0; }
.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover { background: #3de6bf; box-shadow: 0 0 24px rgba(74,255,212,0.3); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: var(--bg-2); color: var(--text-3); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-submit .spinner { width: 14px; height: 14px; border: 2px solid rgba(7,10,16,0.3); border-top-color: #070A10; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.btn-submit.loading .spinner { display: block; }

.output-panel { display: flex; flex-direction: column; gap: 16px; }
.terminal { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; min-height: 200px; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5564; }
.dot-y { background: #F5A623; }
.dot-g { background: #4AFFD4; }
.terminal-title { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-left: 4px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.8; min-height: 160px; color: var(--text-2); }
.log-line { display: flex; align-items: flex-start; gap: 10px; opacity: 0; transform: translateY(6px); animation: logIn 0.35s ease forwards; }
.log-time { color: var(--text-3); flex-shrink: 0; font-size: 10px; padding-top: 2px; }
.log-text { flex: 1; }
.log-text.mint  { color: var(--mint); }
.log-text.amber { color: var(--amber); }
.log-text.red   { color: var(--red); }
.log-text.dim   { color: var(--text-3); }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--mint); vertical-align: middle; animation: blink 1s steps(1) infinite; border-radius: 1px; margin-left: 2px; }

.steps { display: flex; gap: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.step::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 1px; background: var(--border); transition: var(--trans); z-index: 0; }
.step:last-child::after { display: none; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); transition: var(--trans); position: relative; z-index: 1; flex-shrink: 0; }
.step-label { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.step.active .step-dot { background: var(--mint-dim); border-color: var(--mint); color: var(--mint); box-shadow: 0 0 0 4px var(--mint-glow); }
.step.active .step-label { color: var(--mint); }
.step.done .step-dot { background: var(--mint); border-color: var(--mint); color: #070A10; font-weight: 700; }
.step.done .step-label { color: var(--text-2); }
.step.done::after { background: var(--mint); opacity: 0.4; }
.step.active .step-dot::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--mint); opacity: 0.4; animation: pulse-ring 1.5s ease infinite; }

.results-section { display: none; flex-direction: column; gap: 16px; animation: fadeUp 0.5s ease both; }
.results-section.visible { display: flex; }
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.result-title { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--text); }
.result-meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); display: flex; gap: 12px; }

.script-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--trans); }
.script-card:hover { border-color: var(--border-hi); }
.script-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.script-card-head:hover { background: var(--bg-2); }
.script-topic { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3; flex: 1; padding-right: 16px; }
.script-badge-group { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.script-sections { display: none; flex-direction: column; }
.script-card.open .script-sections { display: flex; }
.script-section { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; }
.script-section:last-child { border-bottom: none; }
.section-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); width: 80px; flex-shrink: 0; padding-top: 2px; }
.section-label.hook-l { color: var(--mint); }
.section-label.cta-l { color: var(--amber); }
.section-content { font-size: 13px; color: var(--text); line-height: 1.65; flex: 1; }
.legend-block { background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; margin-top: 12px; }
.legend-label { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.legend-text { font-size: 12px; color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.hashtags-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hashtag { font-family: var(--mono); font-size: 10px; color: var(--mint); background: var(--mint-dim); padding: 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--border-hi); }
.hooks-alt { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hooks-alt-item { font-size: 12px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; transition: var(--trans); position: relative; padding-left: 28px; }
.hooks-alt-item::before { content: '↳'; position: absolute; left: 10px; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.hooks-alt-item:hover { border-color: var(--border-hi); color: var(--text); }
.action-bar { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-2); }
.words-badge { font-family: var(--mono); font-size: 10px; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; }
.review-banner { display: none; align-items: center; gap: 12px; padding: 14px 18px; background: var(--red-dim); border: 1px solid rgba(255,85,100,0.3); border-radius: var(--r); font-size: 13px; color: var(--red); animation: fadeUp 0.4s ease both; }
.review-banner.visible { display: flex; }
.success-banner { display: none; align-items: center; gap: 12px; padding: 14px 18px; background: var(--mint-dim); border: 1px solid var(--border-hi); border-radius: var(--r); font-size: 13px; color: var(--mint); animation: fadeUp 0.4s ease both; }
.success-banner.visible { display: flex; }

.gr-empty-state { padding: 48px 24px; text-align: center; color: var(--text-3); font-family: var(--mono); font-size: 12px; line-height: 2; border: 1px dashed var(--border); border-radius: var(--r); }
.gr-empty-state .empty-icon { font-size: 32px; display: block; margin-bottom: 12px; opacity: 0.4; }

/* ── 9. PAINEL ROTEIROS ───────────────────────────────────── */
.header-stats { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.header-stats strong { font-weight: 500; }
.val-total { color: var(--text); } .val-ok { color: var(--mint); } .val-rev { color: var(--amber); }

.filters-bar { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; margin-bottom: 28px; animation: fadeUp .5s .1s ease both; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ff { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: var(--sans); font-size: 13px; padding: 10px 14px; transition: var(--trans); outline: none; appearance: none; -webkit-appearance: none; }
.ff:focus { border-color: var(--border-hi); background: var(--bg-3); box-shadow: 0 0 0 3px var(--mint-glow); }
.ff::placeholder { color: var(--text-3); }
select.ff { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234AFFD4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.ff option { background: var(--bg-2); }
.filter-search { flex: 1; min-width: 200px; position: relative; }
.filter-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-3); }
.filter-search input { width: 100%; padding-left: 36px; }
.btn-clear { background: none; border: 1px solid var(--border); color: var(--text-3); font-family: var(--mono); font-size: 10px; padding: 7px 12px; border-radius: var(--r-sm); cursor: pointer; transition: var(--trans); text-transform: uppercase; letter-spacing: .06em; display: none; }
.btn-clear:hover { border-color: var(--border-hi); color: var(--mint); background: var(--mint-dim); }
.btn-clear.visible { display: block; }

.ht-bar { display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); align-items: center; }
.ht-bar.visible { display: flex; }
.ht-bar .lbl { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.ht-rm { font-family: var(--mono); font-size: 10px; color: var(--mint); background: var(--mint-glow); padding: 3px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-hi); cursor: pointer; transition: var(--trans); }
.ht-rm:hover { background: var(--red-dim); color: var(--red); border-color: rgba(255,85,100,.3); }

.ht-pill { font-family: var(--mono); font-size: 10px; color: var(--mint); background: var(--mint-dim); padding: 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--border-hi); cursor: pointer; transition: var(--trans); }
.ht-pill:hover { background: var(--mint-glow); }
.ht-pill.active { background: var(--mint-glow); box-shadow: 0 0 0 2px var(--mint-glow); }

.mg { margin-bottom: 40px; }
.mh { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mt { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--text); }
.mc { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }

.sc { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--trans); margin-bottom: 10px; }
.sc:hover { border-color: var(--border-hi); }
.sch { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; user-select: none; gap: 12px; }
.sch:hover { background: var(--bg-2); }
.st { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3; flex: 1; }
.sm { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 4px; flex-wrap: wrap; }
.sbg { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.chev { color: var(--text-3); font-size: 12px; transition: transform .25s ease; flex-shrink: 0; }
.sc.open .chev { transform: rotate(180deg); }
.scs { display: none; flex-direction: column; }
.sc.open .scs { display: flex; }

.ss { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 16px; }
.sl { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); width: 80px; flex-shrink: 0; padding-top: 2px; }
.sl.hook-l { color: var(--mint); } .sl.cta-l { color: var(--amber); }
.scn { font-size: 13px; color: var(--text); line-height: 1.65; flex: 1; }

.lb { background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; }
.ll { font-family: var(--mono); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.lt { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.htl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.rn { background: var(--amber-dim); border: 1px solid rgba(245,166,35,.25); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 12px; }
.rnh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rnh svg { width: 14px; height: 14px; color: var(--amber); flex-shrink: 0; }
.rnh span { font-family: var(--mono); font-size: 9px; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.rn p { font-size: 12px; color: var(--amber); line-height: 1.6; opacity: .85; }

.fontes-section { padding: 16px 20px; border-top: 1px solid var(--border); }
.fontes-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fontes-header svg { width: 14px; height: 14px; color: var(--mint); flex-shrink: 0; }
.fontes-header span { font-family: var(--mono); font-size: 9px; color: var(--mint); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.fonte-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--bg-2); border-radius: var(--r-sm); margin-bottom: 6px; border: 1px solid var(--border); }
.fonte-item:last-child { margin-bottom: 0; }
.fonte-badge { font-family: var(--mono); font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 99px; flex-shrink: 0; margin-top: 2px; }
.fonte-badge.pubmed { background: var(--blue-dim); color: var(--blue); }
.fonte-badge.scholar { background: var(--purple-dim); color: var(--purple); }
.fonte-badge.europe_pmc { background: var(--amber-dim); color: var(--amber); }
.fonte-badge.material { background: var(--mint-dim); color: var(--mint); }
.fonte-info { flex: 1; min-width: 0; }
.fonte-titulo { font-size: 12px; color: var(--text); line-height: 1.4; font-weight: 500; }
.fonte-meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.fonte-link { font-family: var(--mono); font-size: 10px; color: var(--mint); text-decoration: none; transition: var(--trans); margin-top: 2px; display: inline-block; }
.fonte-link:hover { text-decoration: underline; }

.card-actions { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.btn-pdf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mint); background: var(--mint-dim); border: 1px solid var(--border-hi); padding: 7px 14px; border-radius: var(--r-sm); cursor: pointer; transition: var(--trans); text-decoration: none; }
.btn-pdf:hover { background: var(--mint-glow); box-shadow: 0 0 12px rgba(74,255,212,.15); }
.btn-pdf svg { width: 12px; height: 12px; }
.btn-pdf.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.es { padding: 64px 24px; text-align: center; color: var(--text-3); font-family: var(--mono); font-size: 12px; line-height: 2; border: 1px dashed var(--border); border-radius: var(--r); }
.ei { font-size: 32px; display: block; margin-bottom: 12px; opacity: .4; }

@media (max-width: 768px) { .filters-row { flex-direction: column; } .ff { width: 100%; } .filter-search { min-width: 100%; } .ss { flex-direction: column; gap: 6px; } .sl { width: auto; } .header-stats { display: none; } }
```

<!--
[PROMPT_SUGGESTION]O arquivo `siem.css` foi salvo. Agora por favor mande o código para limpar a tag `<style>` do arquivo `index.html` e `clientes.html`.[/PROMPT_SUGGESTION]
[PROMPT_SUGGESTION]O arquivo `siem.css` foi salvo. Mande logo de uma vez o código para limpar `gerar-roteiros.html` e `painel-roteiros.html`.[/PROMPT_SUGGESTION]
