/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #eef1f5;
  --bg-mist: radial-gradient(1200px 600px at 12% -10%, #dfe8f2 0%, transparent 55%),
    radial-gradient(900px 500px at 88% 0%, #d8ece3 0%, transparent 50%),
    linear-gradient(180deg, #f4f6f9 0%, #e8ecf2 100%);
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: #d3dae3;
  --border-strong: #aeb8c6;
  --text: #101820;
  --muted: #5a6878;
  --accent: #0b6e4f;
  --accent-hover: #085a41;
  --accent-dim: #e4f3ec;
  --accent-text: #ffffff;
  --danger: #b42318;
  --danger-dim: #fef3f2;
  --ok: #0b6e4f;
  --ok-dim: #e4f3ec;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(16, 24, 32, 0.06);
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-mist);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

input, select, textarea, button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.45s ease both;
}

.section:last-child { border-bottom: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card.flat {
  box-shadow: none;
  background: transparent;
  border: none;
  padding: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.muted { color: var(--muted); font-size: 0.92rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge.pos { background: var(--ok-dim); color: var(--ok); border-color: transparent; }
.badge.neg { background: var(--danger-dim); color: var(--danger); border-color: transparent; }
.badge.neu { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.badge.pulse { animation: pulseSoft 1.6s ease infinite; }

.mention-media-thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  color: inherit;
}
.mention-media-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mention-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mention-media-count,
.mention-media-video {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.72);
  color: #fff;
}
.mention-media-video { left: 4px; right: auto; }
.mention-media-ocr {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(11, 110, 79, 0.9);
  color: #fff;
}
.mention-media-ocr.is-hit {
  background: rgba(180, 60, 40, 0.92);
}
.mention-media-open {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mention-media-open:hover { opacity: 0.85; }

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 18, 24, 0.72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.media-lightbox-panel {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.media-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.media-lightbox-heading { min-width: 0; }
.media-lightbox-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}
.media-lightbox-counter { margin: 0.2rem 0 0; font-size: 0.85rem; }
.media-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.media-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 280px;
}
.media-lightbox-frame {
  position: relative;
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: min(58vh, 560px);
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.media-lightbox-image,
.media-lightbox-video {
  max-width: 100%;
  max-height: min(58vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.media-lightbox-kind {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.72);
  color: #fff;
}
.media-lightbox-ocr {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(11, 110, 79, 0.9);
  color: #fff;
}
.media-lightbox-ocr.is-hit {
  background: rgba(180, 60, 40, 0.92);
}
.media-lightbox-ocr-snippet {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  max-height: 3.2em;
  overflow: hidden;
}
.media-lightbox-thumb-ocr {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.05rem 0.2rem;
  border-radius: 3px;
  background: rgba(11, 110, 79, 0.9);
  color: #fff;
}
.media-lightbox-thumb-ocr.is-hit {
  background: rgba(180, 60, 40, 0.92);
}
.media-lightbox-nav {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.media-lightbox-nav:hover { background: var(--accent-dim); }
.media-lightbox-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.media-lightbox-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.media-lightbox-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
}
.media-lightbox-thumb.is-active {
  border-color: var(--accent);
}
.media-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-lightbox-thumb-video {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  background: rgba(16, 24, 32, 0.75);
  color: #fff;
}

@media (max-width: 640px) {
  .media-lightbox-title { max-width: 42vw; font-size: 0.95rem; }
  .media-lightbox-nav { width: 2rem; height: 2rem; font-size: 1.2rem; }
  .media-lightbox-frame { min-height: 200px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn.secondary:hover { background: var(--surface-2); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn.cta {
  background: var(--accent);
  color: var(--accent-text);
}

.input, select, textarea.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
}

.input:focus, select:focus, textarea.input:focus {
  outline: 2px solid var(--accent-dim);
  border-color: var(--accent);
}

label.field {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.shell-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  flex: 1 1;
  min-width: 0;
}

.nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-right: 0.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav .brand:hover { text-decoration: none; color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.75rem;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); text-decoration: none; }

.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: growX 0.25s ease;
}

.nav .sources-link { color: var(--accent); font-weight: 600; }
.nav-spacer { flex: 1 1; min-width: 0.5rem; }
.nav-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.nav-logout {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.banner-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
}

.banner-ok {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--ok-dim);
  color: var(--ok);
  font-size: 0.92rem;
  font-weight: 600;
}

.locale-wrap { flex-shrink: 0; }

@media (max-width: 720px) {
  .shell-top {
    flex-wrap: wrap;
    padding: 0.55rem 0.85rem;
  }
  .nav-links {
    width: 100%;
    order: 3;
    padding-top: 0.25rem;
    gap: 0.35rem 0.65rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-spacer { display: none; }
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.grid { display: grid; }
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.empty {
  padding: 1.5rem 0;
  color: var(--muted);
}

.setup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.setup-list li {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.4s ease both;
}

.setup-list li:nth-child(2) { animation-delay: 0.05s; }
.setup-list li:nth-child(3) { animation-delay: 0.1s; }
.setup-list li:nth-child(4) { animation-delay: 0.15s; }
.setup-list li:last-child { border-bottom: none; }

.setup-list .cta { margin-top: 0.25rem; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background-image: var(--bg-mist);
}

.login-hero {
  width: min(420px, 100%);
  text-align: left;
}

.login-hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.login-hero form {
  margin-top: 1.75rem;
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.cron-panel {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cron-panel:last-child { border-bottom: none; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.toggle-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes growX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 110, 79, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(11, 110, 79, 0); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash { display: grid; grid-gap: 0.25rem; gap: 0.25rem; }

.dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.dash-filter {
  min-width: 200px;
  margin: 0;
}

.dash-filter .input {
  min-width: 220px;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 1.25rem 1.5rem;
  gap: 1.25rem 1.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 900px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dash-kpis { grid-template-columns: 1fr; }
}

.dash .stat .label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.neg-text { color: var(--danger); }

.dash-attention-head {
  margin-bottom: 0.75rem;
}

.dash-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

@media (max-width: 700px) {
  .dash-attention-grid { grid-template-columns: 1fr; }
}

.dash-attn-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 2px solid var(--accent);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.dash-attn-item:hover {
  text-decoration: none;
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.dash-attn-item.warn { border-color: var(--danger); }

.dash-attn-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-attn-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.dash-charts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-gap: 1.75rem;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 860px) {
  .dash-charts { grid-template-columns: 1fr; }
}

.dash-chart h3 { margin-bottom: 0.65rem; }

.chart-box {
  height: 240px;
  width: 100%;
}

.dash-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.dash-section-head h2 { margin: 0; }

.dash-sov {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}

.dash-sov-row {
  width: 100%;
  display: grid;
  grid-gap: 0.45rem;
  gap: 0.45rem;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  animation: fadeUp 0.4s ease both;
}

.dash-sov-row:hover .dash-sov-fill {
  background: var(--accent-hover);
}

.dash-sov-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.dash-sov-bars {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dash-sov-track {
  flex: 1 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.dash-sov-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.45s ease, background 0.15s ease;
}

.dash-table a { font-weight: 500; }

.linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.linkish:hover { text-decoration: underline; }

.dash-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.5rem;
}

.dash-empty ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.setup-list .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.setup-list .n.done {
  background: var(--ok-dim);
  color: var(--ok);
}

.setup-list .n.warn {
  background: var(--danger-dim);
  color: var(--danger);
}

.setup-list li {
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 0.75rem;
}

.setup-list .body {
  display: grid;
  grid-gap: 0.15rem;
  gap: 0.15rem;
}

.setup-list .body span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .setup-list li {
    grid-template-columns: auto 1fr;
  }
  .setup-list .cta { grid-column: 2; }
}

