:root {
  --bg: #05060a;
  --ink: #f4f6fb;
  --muted: #9aa3b5;
  --blue: #2f6bff;
  --blue-2: #4b86ff;
  --violet: #8a4dff;
  --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --danger: #f87171;
  --ok: #34d399;
  --warn: #fbbf24;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(47, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 85% 35%, rgba(138, 77, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #0a0d18 0%, #05060a 30%, #05060a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--blue-2);
}

.min-w-0 {
  min-width: 0;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e8ecf6;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand img {
  display: block;
  border-radius: 0;
  flex-shrink: 0;
}

.brand .q {
  color: var(--blue);
}

.btn-text {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.btn-text:hover {
  color: #fff;
}

.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 20px 14px 48px;
  min-width: 0;
  overflow-x: hidden;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-width: 0;
}

.login-card {
  max-width: 420px;
  margin: 24px auto 0;
}

.login-card h1,
.dash-head h1 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.lead,
.hint,
.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  overflow-wrap: anywhere;
}

.hint {
  margin-top: 18px;
  font-size: 0.85rem;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.form input {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.form input:focus {
  outline: 2px solid rgba(47, 107, 255, 0.45);
  border-color: transparent;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.35);
  width: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.btn-secondary.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.dash-block {
  margin-bottom: 18px;
  min-width: 0;
}

.block-head h2 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.block-head .section-hint,
.section-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.list-card .section-hint {
  margin: -2px 0 12px;
}

/* —— Estado del comercio —— */
.status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.status-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}

.status-card--ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
}

.status-card--ok .status-card__dot {
  background: var(--ok);
  color: var(--ok);
}

.status-card--warn {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.07);
}

.status-card--warn .status-card__dot {
  background: var(--warn);
  color: var(--warn);
}

.status-card--danger {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.07);
}

.status-card--danger .status-card__dot {
  background: var(--danger);
  color: var(--danger);
}

.status-card__title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.status-card__detail {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* —— Atención (F4D) —— */
.attention-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.attention-badges {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  max-width: 100%;
  min-width: 0;
}

.attention-empty {
  padding: 14px 16px;
}

.attention-empty__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.attention-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.attention-item__mark {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  line-height: 1.2;
  white-space: nowrap;
}

.attention-item__body {
  min-width: 0;
  flex: 1;
}

.attention-item__title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.attention-item__msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.attention-item--critical {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.07);
}

.attention-item--critical .attention-item__mark {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
}

.attention-item--warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.07);
}

.attention-item--warning .attention-item__mark {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

.attention-item--info {
  border-color: rgba(75, 134, 255, 0.35);
  background: rgba(47, 107, 255, 0.06);
}

.attention-item--info .attention-item__mark {
  color: var(--blue-2);
  border-color: rgba(75, 134, 255, 0.4);
  background: rgba(47, 107, 255, 0.12);
}

.attention-toggle {
  margin-top: 8px;
  padding: 6px 0;
  color: var(--blue-2);
}

.attention-toggle:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* —— KPIs —— */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.kpi-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.kpi--primary {
  border-color: rgba(47, 107, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(47, 107, 255, 0.14), transparent 70%),
    var(--surface);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kpi-value--sm {
  font-size: clamp(0.95rem, 3.4vw, 1.2rem);
  white-space: normal;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kpi-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.kpi-hint.up {
  color: var(--ok);
}

.kpi-hint.down {
  color: var(--danger);
}

.kpi-hint.flat {
  color: var(--muted);
}

.kpi-sub {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.kpi-sub--strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.sync-footnote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* —— Filtros de período —— */
.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  min-width: 0;
  width: 100%;
}

.period-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.period-tab.is-active {
  color: #fff;
  border-color: rgba(47, 107, 255, 0.55);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.45), rgba(138, 77, 255, 0.35));
}

.period-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chart-card {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.period-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

/* Hoy sin gráfico: resumen centrado, mismo peso visual que Para pedir */
.chart-card--solo .period-summary {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 4px 4px;
}

.chart-card--solo .period-summary__side {
  text-align: center;
}

.chart-card--solo .period-summary__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

/* Fallback si el JS aún no marcó --solo (Hoy con chart oculto) */
.chart-card:has(#week-chart[hidden]) .period-summary {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 4px 4px;
}

.chart-card:has(#week-chart[hidden]) .period-summary__side {
  text-align: center;
}

.chart-card:has(#week-chart[hidden]) .period-summary__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 132px;
  min-width: 0;
}

.bar-chart--flat {
  height: 64px;
}

.bar-chart--dense {
  height: 148px;
  gap: 2px;
  padding-bottom: 4px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.chart-foot {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.chart-foot:empty {
  display: none;
}

.period-summary__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.period-summary__total {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-summary__side {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.period-summary__side strong {
  color: var(--ink);
}

.period-summary__note {
  color: var(--muted);
  font-size: 0.85rem;
}

.stock-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stock-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
  text-align: center;
}

.stock-pill span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stock-pill strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.stock-pill--critical {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.stock-pill--critical strong {
  color: var(--danger);
}

.stock-pill--low {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.stock-pill--low strong {
  color: var(--warn);
}

.stock-pill--ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.07);
}

.stock-pill--ok strong {
  color: var(--ok);
}

.bar-chart--dense .bar-val {
  font-size: 0;
  height: 0;
  overflow: hidden;
}

.bar-chart--dense .bar-label {
  font-size: 0.55rem;
  transform: rotate(-45deg);
  transform-origin: center;
  max-width: 100%;
  height: 1.6rem;
  overflow: hidden;
}

.bar-chart--empty {
  display: block;
  height: auto;
  grid-template-columns: none;
}

/* —— Cajas —— */
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

@media (min-width: 520px) {
  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .register-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.register-card {
  padding: 14px 16px;
}

.register-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-card__total {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-card__meta,
.register-card__avg {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.register-card__avg {
  font-weight: 600;
  color: #c5cce0;
}

.register-empty {
  padding: 16px;
}

.compare-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

/* —— Layout desktop —— */
.dash-grid--main {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

@media (min-width: 860px) {
  .dash-grid--main {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.bar {
  width: 100%;
  max-width: 36px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue-2), rgba(47, 107, 255, 0.35));
  min-height: 4px;
  transition: height 0.35s ease;
}

.bar.is-today {
  background: linear-gradient(180deg, #a78bfa, var(--violet));
}

.bar-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.bar-val {
  font-size: 0.58rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.lists {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .lists-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lists-1 {
  grid-template-columns: minmax(0, 1fr);
}

.list-card h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.list {
  list-style: none;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  min-width: 0;
}

.list li:last-child {
  border-bottom: 0;
}

.list .left {
  min-width: 0;
  overflow: hidden;
}

.list .left strong,
.list .left span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list .left span {
  color: var(--muted);
  font-size: 0.8rem;
}

.list .right {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.list li.stock-warn .right {
  color: var(--warn);
}

.list li.stock-critical .right {
  color: var(--danger);
}

.list-more {
  border-bottom: 0 !important;
  padding-top: 4px !important;
}

.list-more span {
  color: var(--muted);
  font-size: 0.78rem;
}

.state-card {
  text-align: center;
  padding: 28px 18px;
}

.state-card--error {
  border-color: rgba(248, 113, 113, 0.35);
}

.state-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.state-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.empty h2 {
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 16px 32px;
}

/* Móvil muy angosto */
@media (max-width: 380px) {
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .kpi {
    padding: 12px;
  }

  .bar-val {
    font-size: 0.52rem;
  }

  .period-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Inteligencia WalQo (F4E-4) —— */
.intelligence-head {
  margin-bottom: 4px;
}

.intelligence-card {
  padding: 16px 16px 14px;
  min-width: 0;
}

.intelligence-stale {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.intelligence-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.intelligence-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.intelligence-actions .btn-secondary {
  width: auto;
  min-width: min(100%, 200px);
}

.intelligence-actions .btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.intelligence-actions .btn-secondary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.intelligence-period-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.intelligence-loading {
  margin-top: 14px;
}

.intelligence-loading__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.intelligence-skeleton {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.intelligence-skeleton span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  background-size: 200% 100%;
  animation: intelligence-shimmer 1.2s ease-in-out infinite;
}

.intelligence-skeleton span:nth-child(1) {
  width: 92%;
}
.intelligence-skeleton span:nth-child(2) {
  width: 78%;
}
.intelligence-skeleton span:nth-child(3) {
  width: 64%;
}

@keyframes intelligence-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.intelligence-error {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  min-width: 0;
}

.intelligence-error__msg {
  margin: 0 0 8px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.intelligence-error .btn-text:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.intelligence-result {
  margin-top: 16px;
  min-width: 0;
}

.intelligence-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.intelligence-section {
  margin-bottom: 14px;
  min-width: 0;
}

.intelligence-section:last-child {
  margin-bottom: 0;
}

.intelligence-section__title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.intelligence-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.intelligence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.intelligence-list li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.intelligence-list li:empty,
.intelligence-list[data-empty="1"]::before {
  content: none;
}

.intelligence-list[data-empty="1"] {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  border: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 430px) {
  .intelligence-actions .btn-secondary {
    width: 100%;
  }
}

