:root{
  --bg:#f4f7fb;
  --primary:#1f5eff;
  --primary-dark:#10245f;
  --navy:#06152f;
  --cyan:#35c7ff;
  --orange:#ff8a00;
  --card:#ffffff;
  --muted:#64748b;
  --line:#e2e8f0;
  --shadow:0 18px 45px rgba(15,23,42,.10);
}
*{box-sizing:border-box}
body{background:var(--bg); color:#0f172a; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.edaxs-navbar{min-height:94px; background:linear-gradient(100deg,#07142e 0%,#0d2a73 48%,#1f62f2 100%); box-shadow:0 16px 45px rgba(15,23,42,.24); border-bottom:1px solid rgba(255,255,255,.12);}
.brand-wrap{display:flex; align-items:center; padding:0; margin-right:18px}.brand-logo{height:70px; width:auto; object-fit:contain; filter:drop-shadow(0 8px 18px rgba(0,0,0,.22));}
.nav-pills-soft .nav-link{color:rgba(255,255,255,.86); font-weight:750; border-radius:14px; padding:12px 18px; transition:.18s ease;}
.nav-pills-soft .nav-link:hover,.nav-pills-soft .nav-link.active{color:#fff; background:rgba(255,255,255,.13); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.system-title{color:#fff; line-height:1.15; min-width:280px}.system-main{font-weight:850; font-size:1.04rem}.system-sub{font-size:.86rem; color:rgba(255,255,255,.82)}
.hero-card{position:relative; overflow:hidden; border-radius:28px; padding:52px; color:#fff; background:radial-gradient(circle at 10% 0%,rgba(83,166,255,.75),transparent 32%),linear-gradient(135deg,#07142e 0%,#1035a0 55%,#38bdf8 100%); box-shadow:0 28px 80px rgba(30,64,175,.32); border:1px solid rgba(255,255,255,.18)}
.hero-bg-lines{position:absolute; inset:auto -8% -22% 38%; height:70%; opacity:.28; background:repeating-radial-gradient(ellipse at center, transparent 0 26px, rgba(255,255,255,.30) 28px 30px); transform:rotate(-10deg); pointer-events:none;}
.hero-card h1{font-weight:900; font-size:clamp(2rem,3.9vw,4.25rem); letter-spacing:-.045em; line-height:1.06; text-shadow:0 10px 32px rgba(0,0,0,.20)}
.hero-card .lead{color:rgba(255,255,255,.88); max-width:850px}.hero-badge{background:rgba(255,255,255,.18); color:#fff; border:1px solid rgba(255,255,255,.42); padding:8px 14px; font-weight:800}
.upload-box{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.27); border-radius:20px; padding:22px; backdrop-filter:blur(12px); box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
.upload-box .form-control{border:0; border-radius:12px}.btn-gradient{background:linear-gradient(135deg,#1f5eff,#2ecbff); border:0; color:#fff; font-weight:850; box-shadow:0 14px 30px rgba(31,94,255,.35)}.btn-gradient:hover{color:#fff; transform:translateY(-1px); box-shadow:0 18px 40px rgba(31,94,255,.44)}
.hero-logo-card{display:flex; justify-content:center; align-items:center; min-height:145px; border-radius:24px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(14px); padding:18px;}.hero-logo{max-width:100%; max-height:125px; object-fit:contain; filter:drop-shadow(0 14px 24px rgba(0,0,0,.25));}
.glass-card{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); border-radius:24px; padding:26px; backdrop-filter:blur(14px)}
.feature{display:flex; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.16)}.feature:last-child{border-bottom:0}.feature i{font-size:1.55rem}.feature span{font-weight:750}
.info-card,.metric-card,.sheet-card,.panel{background:var(--card); border:1px solid var(--line); border-radius:22px; padding:24px; box-shadow:var(--shadow)}
.info-card{display:flex; flex-direction:column; gap:6px; transition:.18s ease}.info-card:hover{transform:translateY(-3px); box-shadow:0 22px 55px rgba(15,23,42,.13)}.icon-tile{width:72px; height:72px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(135deg,#eef4ff,#f8fbff)}.icon-tile i,.info-card i{font-size:2.15rem; color:var(--primary)}.info-card h5{font-weight:900; margin-top:10px}.info-card p{color:var(--muted); margin-bottom:0; line-height:1.55}
.page-header{display:flex; justify-content:space-between; align-items:center; gap:18px;}.page-header h2{letter-spacing:-.03em}.metric-card span{color:var(--muted); font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em}.metric-card strong{display:block; margin-top:6px; font-size:2rem; line-height:1; color:#0f172a}.sheet-card{transition:.18s ease}.sheet-card:hover{transform:translateY(-3px); box-shadow:0 18px 45px rgba(15,23,42,.12)}
.chips{display:flex; flex-wrap:wrap; gap:8px}.chips span,.type-badge{background:#eef4ff!important; color:#1d4ed8!important; border:1px solid #dbeafe; font-weight:800; border-radius:999px; padding:6px 10px; font-size:.78rem;}.analysis-box{border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:14px; background:#f8fafc}.analysis-box .form-label{font-weight:800; font-size:.9rem}.mini-metric{background:#f8fafc; border:1px solid var(--line); border-radius:16px; padding:14px}.mini-metric span{display:block; color:var(--muted); font-weight:800; font-size:.76rem; text-transform:uppercase}.mini-metric strong{font-size:1.25rem}.chart-wrap{border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff}.comment-card{background:#f8fafc; border:1px solid var(--line); border-left:4px solid var(--primary); border-radius:14px; padding:14px; margin-bottom:10px}.preview-table{max-height:420px}.table{font-size:.92rem}.sticky-lg-top{top:116px}.btn-primary{background:var(--primary); border-color:var(--primary); font-weight:750}.btn-primary:hover{background:var(--primary-dark); border-color:var(--primary-dark)}.btn-outline-primary{font-weight:750}.alert{border-radius:16px}
@media(max-width:1100px){.system-title{min-width:auto}.brand-logo{height:58px}.edaxs-navbar{min-height:82px}.hero-card{padding:38px}.hero-logo-card{min-height:120px}.hero-logo{max-height:105px}}
@media(max-width:768px){.hero-card{padding:28px}.page-header{align-items:flex-start; flex-direction:column}.metric-card strong{font-size:1.55rem}.brand-logo{height:52px}.nav-pills-soft .nav-link{padding:10px 12px}.system-title{text-align:left!important}.hero-card h1{font-size:2.25rem}}

/* Ajustes visuais EDAXs: hero mais limpo, menos redundância de logotipo e cards funcionais */
.hero-capabilities{display:flex; flex-wrap:wrap; gap:10px 12px; max-width:900px}
.hero-capabilities span{display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border-radius:999px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.20); color:rgba(255,255,255,.94); font-weight:800; font-size:.92rem; backdrop-filter:blur(10px)}
.hero-capabilities i{color:#8ee6ff; font-size:1rem}
.feature-panel{min-height:100%; padding:32px}
.feature-panel h5{font-size:1.35rem}
.card-link{text-decoration:none; color:inherit; cursor:pointer; position:relative; overflow:hidden}
.card-link::after{content:""; position:absolute; inset:auto -30% -55% 30%; height:110px; background:radial-gradient(circle,rgba(31,94,255,.12),transparent 70%); transition:.2s ease; opacity:0}
.card-link:hover::after{opacity:1; transform:translateY(-10px)}
.card-action{margin-top:auto; display:inline-flex; align-items:center; gap:8px; color:#1d4ed8; font-weight:900; font-size:.92rem}
.card-action i{font-size:1rem; transition:.18s ease}.card-link:hover .card-action i{transform:translateX(4px)}
.info-card h5{font-size:1.25rem}.info-card p{font-size:.98rem}

@media(max-width:768px){
  .hero-capabilities span{font-size:.84rem; padding:8px 10px}
  .feature-panel{padding:24px}
}

/* EDAXs ajuste: home limpa, sem KPIs demonstrativos e com foco em sentimento */
.ai-focus-card{display:inline-flex; align-items:center; gap:14px; max-width:520px; padding:16px 20px; border-radius:18px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(12px)}
.ai-focus-card .ai-icon{width:54px; height:54px; border-radius:16px; display:grid; place-items:center; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.22)}
.ai-focus-card i{font-size:1.9rem; color:#9ee7ff}.ai-focus-card strong{display:block; font-weight:900; font-size:1.02rem}.ai-focus-card span{display:block; color:rgba(255,255,255,.82); margin-top:2px; font-size:.94rem}
.upload-box-clean{max-width:860px}.upload-inline{display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center}.upload-help{display:block; margin-top:10px; color:rgba(255,255,255,.82); font-weight:600}.icon-tile-green{background:linear-gradient(135deg,#eafff4,#f8fffb)}.icon-tile-green i{color:#12a766!important}
@media(max-width:768px){.upload-inline{grid-template-columns:1fr}.ai-focus-card{display:flex; max-width:100%; padding:14px}.ai-focus-card .ai-icon{width:46px;height:46px}.ai-focus-card i{font-size:1.55rem}}
.sentiment-box{background:linear-gradient(135deg,#f0fff7,#ffffff); border-color:#bbf7d0}.sentiment-box .form-label{color:#065f46}.btn-success{font-weight:850; box-shadow:0 12px 28px rgba(22,163,74,.22)}.ai-result{border:1px solid #dbeafe; background:#f8fbff; border-radius:18px; padding:18px}


/* Ajuste final da arquitetura congelada: home sem repetição e foco direto no upload */
.hero-compact .upload-box-clean{margin-top:28px; max-width:900px;}
.hero-compact .feature-panel h5{font-size:1.25rem;}
.hero-compact .feature span{font-weight:760;}
.hero-compact .info-note{color:rgba(255,255,255,.85)}
.ai-focus-card{display:none!important;}
@media(max-width:992px){.hero-compact .upload-box-clean{max-width:100%;}.system-title{display:none;}}

/* Ajustes da tela de leitura das abas */
.section-intro{background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px 22px; box-shadow:0 8px 26px rgba(15,23,42,.06)}
.column-chips{max-height:96px; overflow:auto; padding-right:4px}
.column-chips span{max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Sprint: painel guiado do conjunto de dados */
.section-kicker{display:inline-flex; align-items:center; gap:6px; text-transform:uppercase; letter-spacing:.07em; font-size:.74rem; font-weight:900; color:#1d4ed8; background:#eef4ff; border:1px solid #dbeafe; border-radius:999px; padding:6px 10px; margin-bottom:8px}
.readable-chips span{font-size:.86rem; padding:8px 12px; background:#f1f5ff!important; color:#1e3a8a!important}
.small-metric{font-size:.95rem!important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; display:block}
.action-grid{display:grid; gap:12px}.action-card-form{margin:0}.action-card{width:100%; display:flex; align-items:center; gap:14px; text-align:left; padding:16px; border:1px solid var(--line); border-radius:18px; background:#fff; color:#0f172a; transition:.18s ease; box-shadow:0 8px 20px rgba(15,23,42,.04)}
.action-card:hover:not(:disabled){transform:translateY(-2px); border-color:#bfdbfe; box-shadow:0 16px 34px rgba(15,23,42,.10)}.action-card:disabled{opacity:.55; cursor:not-allowed}.action-card i{width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:#eef4ff; color:#1d4ed8; font-size:1.45rem; flex:0 0 auto}.action-card strong{display:block; font-weight:900}.action-card small{display:block; margin-top:3px; color:var(--muted); line-height:1.35}.sentiment-action i{background:#ecfdf5; color:#059669}.result-panel{border-color:#bfdbfe}.preview-table-simple{max-height:360px; overflow:auto}.preview-table-simple td{max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}.empty-state{min-height:240px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:10px; color:var(--muted); border:1px dashed #cbd5e1; border-radius:18px; background:#f8fafc; padding:26px}.empty-state i{font-size:2rem; color:#94a3b8}.empty-state strong{color:#334155}
@media(max-width:768px){.action-card{align-items:flex-start}.preview-table-simple td{max-width:220px}}


/* Sheet guided layout */
.recommended-box{background:#f6f9ff;border:1px solid #dfe8ff;border-radius:16px;padding:14px 18px;min-width:230px}
.recommended-box span{display:block;text-transform:uppercase;font-size:.72rem;font-weight:800;color:#6b7b96;letter-spacing:.06em}
.recommended-box strong{display:block;color:#071f4f;margin-top:3px}
.overview-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.overview-strip div{background:#f8fbff;border:1px solid #e3ebf7;border-radius:16px;padding:14px 16px}
.overview-strip span{display:block;text-transform:uppercase;font-size:.7rem;font-weight:800;color:#6d7b90;letter-spacing:.05em}
.overview-strip strong{display:block;font-size:1.35rem;color:#071f4f;margin-top:4px}
.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.subpanel{background:#fbfdff;border:1px solid #e4ebf5;border-radius:18px;padding:18px}
.metric-line{padding:12px 0;border-bottom:1px solid #e9eef6}.metric-line:last-child{border-bottom:0}
.metric-line strong,.frequency-block strong{display:block;color:#071f4f}.metric-line span,.frequency-block span{display:block;color:#65748a;font-size:.9rem;margin-top:2px}
.frequency-block{padding:10px 0;border-bottom:1px solid #e9eef6}.frequency-block:last-child{border-bottom:0}
.compact-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;background:#f8fbff;border:1px dashed #cdd8ea;border-radius:18px;padding:20px;color:#6b7b90}.compact-empty i{font-size:2rem;color:#2b6df6}.compact-empty strong{color:#071f4f}
.preview-table-simple{max-height:360px;overflow:auto;border-radius:14px;border:1px solid #e5ebf5}.preview-table-simple table{margin-bottom:0}.preview-table-simple th{white-space:nowrap;background:#f5f8fd;position:sticky;top:0;z-index:1}.preview-table-simple td{max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sentiment-section .btn-success{background:#168a55;border-color:#168a55;font-weight:800}
@media (max-width: 992px){.overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 576px){.overview-strip{grid-template-columns:1fr}.recommended-box{width:100%}}

/* Patch: fluxo com botões e status real da IA */
.action-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.action-toggle{min-height:92px;background:#fff;border:1px solid #e1e8f4;border-radius:22px;box-shadow:0 12px 32px rgba(15,23,42,.07);padding:22px;text-align:left;display:flex;align-items:center;gap:18px;transition:.18s ease;color:#071f4f}
.action-toggle:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.11);border-color:#bfdbfe}
.action-toggle:disabled{opacity:.55;cursor:not-allowed}
.action-toggle i{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#eef4ff;color:#2563eb;font-size:1.7rem;flex:0 0 auto}
.action-toggle strong{font-size:1.08rem;font-weight:900;display:block}.action-toggle small{display:block;color:#64748b;margin-top:4px;line-height:1.35}.sentiment-action i{background:#e9fff5;color:#059669}.overview-simple{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.ai-status-card{border-radius:18px;padding:14px 18px;min-width:260px;border:1px solid #e2e8f0;background:#f8fafc}.ai-status-card span{display:block;text-transform:uppercase;font-size:.72rem;font-weight:900;color:#64748b;letter-spacing:.06em}.ai-status-card strong{display:block;font-size:1.05rem;margin-top:2px;color:#0f172a}.ai-status-card small{display:block;color:#64748b;margin-top:4px}.ai-status-card.ready{background:#ecfdf5;border-color:#bbf7d0}.ai-status-card.ready strong{color:#047857}.ai-status-card.warning{background:#fff7ed;border-color:#fed7aa}.ai-status-card.warning strong{color:#c2410c}.ai-config-help{background:#f8fbff;border:1px solid #e3ebf7;border-radius:14px;padding:12px 14px;color:#475569}.sentiment-distribution{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sentiment-distribution div{border:1px solid #e3ebf7;border-radius:16px;background:#fff;padding:14px 16px}.sentiment-distribution span{display:block;color:#64748b;font-size:.82rem;font-weight:800}.sentiment-distribution strong{display:block;color:#071f4f;font-size:1.45rem}.ai-result pre{white-space:pre-wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}
@media(max-width:900px){.action-choice-grid{grid-template-columns:1fr}.sentiment-distribution{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-status-card{width:100%}}

/* Patch: exploração mais interpretativa e relatório de exploração */
.overview-strip small{display:block;color:#718096;font-size:.78rem;line-height:1.35;margin-top:4px}
.insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.insight-card{background:#f8fbff;border:1px solid #e3ebf7;border-radius:18px;padding:16px 18px;min-height:118px}
.insight-card span{display:block;text-transform:uppercase;font-size:.72rem;font-weight:900;color:#6d7b90;letter-spacing:.05em}
.insight-card strong{display:block;font-size:1.6rem;color:#071f4f;margin:4px 0}
.insight-card small{display:block;color:#64748b;line-height:1.35}
.exploration-meaning{display:flex;gap:14px;align-items:flex-start;background:#f8fbff;border:1px solid #dbeafe;border-radius:18px;padding:16px 18px;color:#334155}
.exploration-meaning i{color:#2563eb;font-size:1.35rem;margin-top:2px}.exploration-meaning p{margin:4px 0 0;color:#64748b;line-height:1.5}
.preview-table-simple.preview-full{max-height:620px}
.frequency-block small{display:block;color:#94a3b8;font-size:.78rem;margin:1px 0 5px}
.metric-line span+span{margin-top:4px}
@media(max-width:768px){.exploration-meaning{flex-direction:column}.insight-card{min-height:auto}}


/* Rodapé institucional e ajustes da exploração */
.edaxs-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 42px 24px;color:#64748b;font-size:.84rem}
.edaxs-footer strong{color:#0f2f6f}
.explore-section .insight-grid:empty{display:none}
.section-title-row .btn-outline-danger{border-color:#ef4444;color:#b91c1c;font-weight:800}
.section-title-row .btn-outline-danger:hover{background:#ef4444;color:#fff}
@media(max-width:768px){.edaxs-footer{padding:14px 24px 24px}}

/* Sentiment analysis details */
.sentiment-distribution.detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.sentiment-distribution.detailed > div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.sentiment-distribution.detailed span {
  display: block;
  color: #64748b;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sentiment-distribution.detailed strong {
  display: inline-block;
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-top: 6px;
}
.sentiment-distribution.detailed small {
  display: inline-block;
  margin-left: 8px;
  color: #2563eb;
  font-weight: 800;
}
.sentiment-summary-box {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px 18px;
}
.sentiment-summary-box span {
  display: block;
  color: #1d4ed8;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.sentiment-summary-box p {
  margin: 0;
  color: #1e293b;
  line-height: 1.55;
}
.sentiment-summary-box.compact {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.classification-detail-card {
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  padding: 18px;
}
.classification-tabs .nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 800;
  color: #1e3a8a;
  background: #eef5ff;
  margin-right: 8px;
  margin-bottom: 8px;
}
.classification-tabs .nav-pills .nav-link.active {
  background: #2563eb;
  color: #fff;
}
.evidence-card {
  border-left: 4px solid #2563eb;
  margin-bottom: 12px;
}
.muted-chips span {
  background: #f1f5f9;
  color: #334155;
}

/* Patch: análise de sentimento institucional */
.executive-layer{
  background:linear-gradient(135deg,#eff6ff,#ffffff);
  border:1px solid #dbeafe;
  border-radius:18px;
  padding:18px 20px;
  margin-bottom:18px;
}
.executive-layer p{margin:0;color:#1f2937;line-height:1.6;font-size:1rem}
.theme-table-wrap{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff}
.theme-table-wrap table{margin-bottom:0}
.word-cloud{
  min-height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
  align-content:center;
  flex-wrap:wrap;
  gap:10px 14px;
  padding:14px;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
  border:1px dashed #dbeafe;
  border-radius:18px;
}
.word-cloud.small-cloud{min-height:120px;justify-content:flex-start}
.word-cloud span{display:inline-block;font-weight:800;color:#1d4ed8;line-height:1.1}
.word-cloud .wc-1{font-size:.9rem;opacity:.68}
.word-cloud .wc-2{font-size:1.05rem;opacity:.78}
.word-cloud .wc-3{font-size:1.25rem;opacity:.86}
.word-cloud .wc-4{font-size:1.5rem;opacity:.94}
.word-cloud .wc-5{font-size:1.85rem;opacity:1}
.classification-detail-card .chips span{margin-bottom:8px}
.comment-card.evidence-card{background:#ffffff;border:1px solid #e5eaf3;border-left:4px solid #2563eb;border-radius:16px;padding:14px 16px;margin-bottom:12px}
.comment-card.evidence-card p{color:#334155;line-height:1.5}
@media(max-width:768px){.word-cloud{justify-content:flex-start}.word-cloud .wc-5{font-size:1.45rem}.word-cloud .wc-4{font-size:1.25rem}}

/* Refinamento da análise de sentimento */
.sentiment-form {
  background: #f8fbff;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  padding: 18px;
}
.recorte-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.recorte-option {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.recorte-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.recorte-option span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d7e4f7;
  background: #ffffff;
  color: #183b72;
  font-weight: 700;
  font-size: .9rem;
  transition: .18s ease;
}
.recorte-option input:checked + span {
  background: #1d65f2;
  border-color: #1d65f2;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29,101,242,.18);
}
.sentiment-submit {
  min-width: 280px;
  font-weight: 800;
  border-radius: 12px;
}
.sentiment-summary-box.executive {
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  border-color: #dbeafe;
}
.sentiment-summary-box.executive p {
  font-size: 1rem;
  line-height: 1.55;
}
.sentiment-distribution.detailed {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.sentiment-count.positivo {
  border-left: 5px solid #16a34a;
}
.sentiment-count.negativo {
  border-left: 5px solid #dc2626;
}
.sentiment-count.neutro {
  border-left: 5px solid #64748b;
}
.sentiment-count.misto {
  border-left: 5px solid #f59e0b;
}
.point-list {
  display: grid;
  gap: 10px;
}
.point-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5edf7;
}
.point-row strong {
  color: #0f2554;
}
.point-row span {
  color: #64748b;
  font-size: .9rem;
}
.classification-detail-card {
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  padding: 18px;
}
.evidence-card {
  border-left: 4px solid #1d65f2;
}
@media (max-width: 768px) {
  .sentiment-submit { width: 100%; min-width: 0; }
  .point-row { flex-direction: column; }
}

/* Leitura por período/critério na análise de sentimento */
.analysis-mode-grid .recorte-option span {
  min-height: 42px;
}
.analysis-mode-grid .recorte-option small {
  display: block;
  max-width: 210px;
  margin-top: 6px;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.25;
}
.analysis-mode-grid .recorte-option input:checked ~ small {
  color: #1d4ed8;
}
.analysis-filter-panels {
  display: grid;
  gap: 14px;
}
.analysis-filter-panel {
  border: 1px solid #e5edf7;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
}
.analysis-filter-panel > strong,
.filter-panel-header strong {
  display: block;
  color: #0f2554;
  font-weight: 800;
  margin-bottom: 4px;
}
.analysis-filter-panel > span,
.filter-panel-header span {
  display: block;
  color: #64748b;
  font-size: .9rem;
  margin-bottom: 12px;
}
.selection-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
}
.selection-chip-grid.criterion-list {
  max-height: 280px;
}
.compact-selection {
  max-height: 200px;
}
.selection-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.selection-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.selection-chip span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe7f6;
  background: #f8fbff;
  color: #183b72;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: .86rem;
}
.selection-chip small {
  display: inline-flex;
  margin-left: 6px;
  color: #64748b;
  font-size: .76rem;
}
.selection-chip input:checked + span {
  background: #1d65f2;
  border-color: #1d65f2;
  color: #ffffff;
}
.selection-chip input:checked ~ small {
  color: #1d4ed8;
}
.selected-analysis-context {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 12px 14px;
  color: #334155;
}
.selected-analysis-context strong {
  color: #0f2554;
}
.selected-analysis-context span {
  background: #eaf2ff;
  color: #1d4ed8;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}
.selected-analysis-context small {
  color: #64748b;
}

/* Análise de sentimento simplificada */
.sentiment-simple-box{
  border:1px solid rgba(22,93,255,.10);
  border-radius:22px;
  background:#f8fbff;
  padding:20px;
}
.analysis-choice-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
}
.analysis-choice{
  display:block;
  cursor:pointer;
  border:1px solid #dbe7ff;
  border-radius:18px;
  padding:14px 16px;
  background:#fff;
  min-height:94px;
  transition:.18s ease;
}
.analysis-choice input{display:none;}
.analysis-choice span{
  display:block;
  color:#0f2b5c;
  font-weight:800;
  margin-bottom:4px;
}
.analysis-choice small{
  color:#6b7890;
  display:block;
  line-height:1.35;
}
.analysis-choice:has(input:checked){
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#2563eb;
  box-shadow:0 10px 22px rgba(37,99,235,.22);
}
.analysis-choice:has(input:checked) span,
.analysis-choice:has(input:checked) small{color:#fff;}
.simple-panel{
  border:1px solid #e2ebfb;
  border-radius:18px;
  background:#fff;
  padding:16px;
}
.simple-panel strong{color:#0f2b5c; display:block; margin-bottom:4px;}
.simple-panel span{color:#6b7890;}
.clean-selection{
  max-height:260px;
  overflow:auto;
  padding-right:6px;
}
.sentiment-submit-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
}
.sentiment-submit-row span{color:#6b7890;}

/* Ajuste: fluxo profissional por área selecionada */
.chooser-panel{padding:24px}.compact-title-row{align-items:flex-start}.workspace-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.workspace-card{border:1px solid #e4ebf7;background:#fff;border-radius:20px;padding:22px;display:flex;align-items:center;gap:16px;text-align:left;box-shadow:0 14px 35px rgba(15,23,42,.06);transition:.18s ease;color:#102044}.workspace-card:hover:not(:disabled){transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 18px 40px rgba(37,99,235,.12)}.workspace-card.active{border-color:#2563eb;background:#f7fbff;box-shadow:0 18px 44px rgba(37,99,235,.15)}.workspace-card:disabled{opacity:.55;cursor:not-allowed}.workspace-card i{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#eef4ff;color:#1d4ed8;font-size:1.55rem;flex:0 0 auto}.workspace-card.sentiment i{background:#e9fff5;color:#059669}.workspace-card strong{display:block;font-weight:900;font-size:1.08rem}.workspace-card small{display:block;margin-top:3px;color:#64748b;line-height:1.35}.workspace-section{display:none}.workspace-section.show{display:block}.field-exploration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.field-card{border:1px solid #e4ebf7;border-radius:18px;background:#fbfdff;padding:16px}.field-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.field-card-head strong{font-size:1rem;color:#0f214f}.field-card-head span{font-size:.72rem;text-transform:uppercase;font-weight:900;color:#2563eb;background:#eef4ff;border-radius:999px;padding:5px 9px;white-space:nowrap}.field-card p{margin:10px 0 0;color:#64748b}.field-values{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.field-values span{font-size:.78rem;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:5px 9px;color:#475569}.sentiment-wizard{border:1px solid #e4ebf7;background:#f8fbff;border-radius:20px;padding:18px}.wizard-step{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(260px,420px);gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e4ebf7}.wizard-step:first-child{padding-top:0}.wizard-step > span{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:900}.wizard-step strong{display:block;color:#0f214f;font-weight:900}.wizard-step small{display:block;color:#64748b;margin-top:2px}.analysis-step{grid-template-columns:auto minmax(220px,1fr) 2fr;border-bottom:0}.analysis-main-buttons{display:flex;flex-wrap:wrap;gap:10px}.analysis-main-option{cursor:pointer}.analysis-main-option input{display:none}.analysis-main-option span{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe7fb;background:#fff;color:#18346d;border-radius:999px;padding:10px 15px;font-weight:900;transition:.15s ease}.analysis-main-option input:checked + span{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.22)}.analysis-filter-panel{border:1px solid #e4ebf7;background:#fff;border-radius:16px;padding:16px;margin-top:14px}.analysis-filter-panel strong{display:block;color:#0f214f;font-weight:900}.analysis-filter-panel p{margin:4px 0 12px;color:#64748b}.sentiment-submit-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px}.sentiment-submit-row span{color:#64748b}.sentiment-submit{min-width:230px}.selected-analysis-context{border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:12px 14px}.selected-analysis-context span{display:inline-block;background:#fff;border:1px solid #bfdbfe;border-radius:999px;padding:5px 10px;margin:4px;color:#1d4ed8;font-weight:800}.selected-analysis-context small{display:block;color:#64748b;margin-top:4px}.custom-file-pt{display:flex;align-items:center;border:1px solid #d6e1f2;background:#fff;border-radius:12px;min-height:52px;overflow:hidden;flex:1}.custom-file-pt input{position:absolute;opacity:0;pointer-events:none}.custom-file-pt .file-button{background:#f1f5fb;border-right:1px solid #d6e1f2;padding:14px 18px;font-weight:800;color:#0f214f;white-space:nowrap}.custom-file-pt .file-name{padding:14px 16px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-inline-pt{display:flex;gap:14px;align-items:center}.sentiment-results .chart-wrap{background:#fff}.alert-warning{border-radius:16px}.point-list{display:grid;gap:10px}.point-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding:9px 0}.point-row:last-child{border-bottom:0}.point-row span{color:#64748b}.classification-detail-card{border:1px solid #e4ebf7;background:#fff;border-radius:18px;padding:18px}.evidence-card{border:1px solid #e4ebf7;background:#fbfdff;border-radius:16px;padding:14px;margin-bottom:10px}
@media(max-width:992px){.workspace-choice-grid{grid-template-columns:1fr}.wizard-step,.analysis-step{grid-template-columns:1fr}.wizard-step > span{display:none}.sentiment-submit-row{flex-direction:column;align-items:stretch}.sentiment-submit{width:100%}.upload-inline-pt{flex-direction:column;align-items:stretch}.custom-file-pt{width:100%}}

/* Ajustes de fluxo profissional e genérico */
.overview-panel > p.text-muted:first-of-type { display: none; }
.chooser-panel .compact-title-row p { display: none; }
.workspace-choice-grid .workspace-card { cursor: pointer; }
.workspace-section { display: none; }
.workspace-section.show { display: block; }
.field-card-head span { display: none; }
.field-card p { color: #475569; }
.field-values span { white-space: normal; }
.sentiment-clean-box {
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  padding: 22px;
}
.sentiment-field-row {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 16px;
}
.analysis-clean-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.analysis-mode-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #0f2b59;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 43, 89, .06);
}
.analysis-mode-card input { display: none; }
.analysis-mode-card:has(input:checked) {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.clean-panel {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  padding: 16px;
}
.clean-panel > strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.clean-panel > span {
  display: block;
  color: #64748b;
  margin-bottom: 12px;
}
.compact-values {
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
}
.clean-submit {
  margin-top: 16px;
  border-top: 1px solid #e5edf7;
  padding-top: 16px;
}
@media (max-width: 768px) {
  .sentiment-field-row { grid-template-columns: 1fr; }
  .analysis-mode-card { width: 100%; justify-content: center; }
}

/* EDAXs - exploração em cards por campo */
.field-cards-panel {
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}
.field-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.field-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}
.detected-field-card {
  border: 1px solid #e5edf7;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.detected-field-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.detected-field-head h6 {
  margin: 4px 0 0;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.field-role-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}
.field-summary-pill {
  background: #eaf3ff;
  color: #075985;
  border: 1px solid #cfe4ff;
  border-radius: 999px;
  padding: 7px 11px;
  white-space: nowrap;
  font-size: .82rem;
}
.field-values-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #edf2f7;
}
.field-value-row span {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-value-row strong {
  color: #0f172a;
  font-size: .9rem;
  white-space: nowrap;
}
.field-card-collapse {
  margin-top: 14px;
}
.field-card-detail-table {
  border: 1px solid #e5edf7;
  border-radius: 16px;
  overflow: auto;
  max-height: 320px;
  background: #ffffff;
}
.field-card-detail-table th {
  background: #f8fafc;
  color: #475569;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.numeric-field-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.numeric-field-summary div {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px;
}
.numeric-field-summary span {
  display: block;
  color: #64748b;
  font-size: .78rem;
  margin-bottom: 4px;
}
.numeric-field-summary strong {
  color: #0f172a;
  font-size: 1.05rem;
}
.comment-field-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
.comment-field-summary i {
  color: #0284c7;
  font-size: 1.4rem;
}
.comment-field-summary strong,
.comment-field-summary span {
  display: block;
}
.comment-field-summary strong {
  color: #0f172a;
  margin-bottom: 4px;
}
.comment-field-summary span {
  color: #475569;
  font-size: .9rem;
}
.empty-field-card-message {
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
}
@media (max-width: 768px) {
  .field-cards-panel { padding: 18px; }
  .field-cards-grid { grid-template-columns: 1fr; }
  .detected-field-head { flex-direction: column; }
  .field-summary-pill { white-space: normal; }
}


/* =========================================================
   EDAXs · Visual dashboard com sidebar
   Cole este bloco no FINAL de static/css/style.css
   ========================================================= */

:root{
  --edaxs-primary:#0b2b64;
  --edaxs-bg:#f3f6fb;
  --edaxs-card:#ffffff;
  --edaxs-border:#dce6f2;
  --edaxs-text:#10233f;
  --edaxs-muted:#64748b;
  --edaxs-shadow:0 16px 36px rgba(15,47,111,.08);
  --edaxs-radius:20px;
}

body.edaxs-dashboard-body{
  margin:0;
  min-height:100vh;
  background:var(--edaxs-bg);
  color:var(--edaxs-text);
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:14px;
}

.edaxs-layout{
  display:grid;
  grid-template-columns:292px minmax(0,1fr);
  min-height:100vh;
}

.edaxs-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:24px 18px;
  background:linear-gradient(180deg,#082554 0%,#0e3d7a 100%);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:16px;
  box-shadow:18px 0 40px rgba(8,37,84,.18);
  z-index:20;
}

.sidebar-logo-card{
  background:#fff;
  border-radius:18px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:78px;
}

.sidebar-logo{
  max-width:180px;
  max-height:58px;
  object-fit:contain;
}

.sidebar-welcome{padding:6px 4px 0}
.sidebar-welcome span{display:block;color:#c8d9f5;font-size:.82rem}
.sidebar-welcome strong{display:block;font-size:.95rem;line-height:1.25}

.sidebar-menu{display:flex;flex-direction:column;gap:7px;margin-top:4px}
.sidebar-menu a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:11px 12px;
  border-radius:14px;
  color:#dbeafe;
  font-weight:700;
  text-decoration:none;
  transition:.18s ease;
}
.sidebar-menu a i{width:22px;text-align:center;font-size:1rem}
.sidebar-menu a:hover,.sidebar-menu a.active{
  background:rgba(255,255,255,.12);
  color:#fff;
  transform:translateX(2px);
}

.sidebar-session-card{
  margin-top:auto;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  padding:14px;
}
.sidebar-session-card span{
  display:block;
  color:#93c5fd;
  font-weight:900;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.sidebar-session-card strong{
  display:block;
  margin-top:5px;
  font-size:.88rem;
  line-height:1.25;
  word-break:break-word;
}
.sidebar-session-card small{display:block;color:#c8d9f5;margin-top:6px}

.sidebar-exit{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border-radius:12px;
  background:#fff;
  color:#0b2b64;
  font-weight:900;
  text-decoration:none;
}

.sidebar-footer-card{
  background:rgba(0,0,0,.14);
  border-radius:14px;
  padding:12px;
}
.sidebar-footer-card strong{display:block;font-size:.82rem}
.sidebar-footer-card span{display:block;color:#c8d9f5;font-size:.74rem;margin-top:3px}

.edaxs-main-area{min-width:0;display:flex;flex-direction:column}

.edaxs-topbar{
  position:sticky;
  top:0;
  z-index:15;
  min-height:72px;
  padding:16px 34px;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(220,230,242,.9);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.topbar-title strong{display:block;color:#0b2b64;font-weight:900}
.topbar-title span{display:block;color:var(--edaxs-muted);font-size:.82rem;margin-top:2px}

.mobile-sidebar-toggle{
  display:none;
  border:0;
  background:#0b2b64;
  color:#fff;
  width:42px;
  height:42px;
  border-radius:12px;
  font-size:1.2rem;
}

.edaxs-content-area{
  width:100%;
  max-width:1720px;
  margin:0 auto;
  padding:28px 34px 26px;
}

.edaxs-footer{
  margin-top:auto;
  padding:18px 34px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#64748b;
  font-size:.78rem;
}
.edaxs-footer strong{color:#0b2b64}

.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px!important;
}
.page-header h2{color:#0b2b64;letter-spacing:-.02em}

.page-header .btn,.btn{border-radius:12px;font-weight:800;box-shadow:none!important}
.btn-primary{background:linear-gradient(135deg,#1d4ed8,#0ea5e9);border:0}
.btn-outline-primary{border-color:#93c5fd;color:#1d4ed8}
.btn-outline-primary:hover{background:#eef5ff;color:#0b2b64}

.panel,.panel-pro,.reading-card,.status-card,.sentiment-summary,.result-context div,
.exploration-kpi,.field-table,.theme-comment,.topic-line,.comment-box{
  border:1px solid var(--edaxs-border)!important;
  border-radius:var(--edaxs-radius)!important;
  background:var(--edaxs-card)!important;
  box-shadow:var(--edaxs-shadow)!important;
}

.panel,.panel-pro{padding:20px!important}

.section-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:6px 10px;
  background:#eaf2ff;
  color:#1d4ed8;
  font-weight:900;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:8px;
}

.entry-action-card,.sentiment-entry-card,.category-compact-item,.category-item,
.institutional-card,.priority-card,.actions-card,.period-mini-card,.period-chart-card{
  border:1px solid var(--edaxs-border)!important;
  border-radius:18px!important;
  box-shadow:0 10px 26px rgba(15,47,111,.045)!important;
}

.entry-action-card:hover,.sentiment-entry-card:hover,.category-compact-item:hover,.category-item:hover{
  border-color:#93c5fd!important;
  box-shadow:0 16px 32px rgba(15,47,111,.09)!important;
}

.result-context,.sentiment-summary-row,.dashboard-grid,.overview-grid,.work-grid,.analysis-grid,
.institutional-grid-clean,.sentiment-entry-grid,.exploration-kpi-grid,.explore-charts-grid{
  gap:16px!important;
}

.flash-stack{margin-bottom:16px}
.sidebar-backdrop{display:none}

.table{--bs-table-bg:transparent}
.table th{color:#0b2b64;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.table td{color:#334155}

@media(max-width:1200px){
  .edaxs-layout{grid-template-columns:1fr}
  .edaxs-sidebar{
    position:fixed;
    left:0;
    top:0;
    width:292px;
    transform:translateX(-105%);
    transition:.25s ease;
  }
  body.sidebar-open .edaxs-sidebar{transform:translateX(0)}
  body.sidebar-open .sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:10;
  }
  .mobile-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center}
  .edaxs-content-area{padding:22px 18px}
  .edaxs-topbar{padding:12px 18px}
  .edaxs-footer{padding:16px 18px;flex-direction:column;align-items:flex-start}
}

@media(max-width:900px){
  .page-header{flex-direction:column}
  .overview-strip,.result-context,.sentiment-summary-row,.dashboard-grid,.overview-grid,
  .work-grid,.analysis-grid,.institutional-grid-clean,.sentiment-entry-grid,
  .exploration-kpi-grid,.explore-charts-grid{grid-template-columns:1fr!important}
  .panel,.panel-pro{padding:16px!important}
}
