:root {
  --bg: #f5f6f1;
  --panel: #ffffff;
  --ink: #202632;
  --muted: #667085;
  --line: #d9ded5;
  --teal: #0f766e;
  --blue: #2563eb;
  --red: #b42318;
  --yellow: #b7791f;
  --green: #1e7f58;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }

nav { display: grid; gap: 6px; }
nav a, .logout {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

nav a.active, nav a:hover { background: #edf2f0; color: var(--teal); }
.logout { margin-top: auto; color: var(--muted); }

.content {
  margin-left: 260px;
  padding: 28px clamp(18px, 4vw, 48px) 48px;
}

.page-head {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.page-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 880px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  font-size: 34px;
}

.kpi small { color: var(--muted); line-height: 1.35; }
.risk { border-left: 8px solid var(--muted); }
.risk.rojo { border-left-color: var(--red); }
.risk.amarillo { border-left-color: var(--yellow); }
.risk.verde { border-left-color: var(--green); }
.risk.rojo strong { color: var(--red); }
.risk.amarillo strong { color: var(--yellow); }
.risk.verde strong { color: var(--green); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

h2 { margin: 0 0 14px; font-size: 20px; }
h3 { margin: 18px 0 8px; font-size: 17px; }

.bar-row {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.bar-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bar-row i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf0ea;
  overflow: hidden;
}

.bar-row b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

ul { margin: 0; padding-left: 20px; }
li { margin: 8px 0; line-height: 1.35; }

.risk-list {
  display: grid;
  gap: 10px;
}

.risk-list article {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.risk-list p { margin: 0; }
a { color: var(--blue); font-weight: 700; text-decoration: none; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { color: var(--muted); font-size: 13px; text-transform: uppercase; }

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
}

.pill.rojo { color: var(--red); background: #fff1f0; }
.pill.amarillo { color: var(--yellow); background: #fff8e6; }
.pill.verde { color: var(--green); background: #ecfdf3; }

.markdown {
  max-width: 980px;
}

.markdown h1 {
  font-size: 30px;
  margin: 8px 0 18px;
}

.markdown h2 {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.markdown p {
  line-height: 1.52;
}

.actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

code {
  background: #eef2f7;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 2px 6px;
}

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

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.login-brand { margin-bottom: 20px; }
.login h1 { font-size: 28px; margin-bottom: 18px; }

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
}

.filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px;
}

.filterbar button {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.split-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.query-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.query-help span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #f8faf7;
}

.mention-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.mention-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 150px;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.compact-list .mention-card {
  grid-template-columns: 140px minmax(0, 1fr) 130px;
}

.mention-meta,
.mention-score {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.mention-meta strong {
  color: var(--ink);
}

.mention-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mention-title h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.mention-card p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.mention-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mention-tags span {
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.mention-score strong {
  color: var(--teal);
  font-size: 36px;
  line-height: 1;
}

.pill.positivo { color: var(--green); background: #ecfdf3; }
.pill.neutro { color: #475467; background: #eef2f7; }
.pill.negativo { color: var(--red); background: #fff1f0; }

td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.sent-stack {
  display: flex;
  width: 150px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.sent-stack b { display: block; height: 100%; }
.sent-stack .pos { background: var(--green); }
.sent-stack .neu { background: #98a2b3; }
.sent-stack .neg { background: var(--red); }

.score {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #edf2f0;
  color: var(--teal);
  font-weight: 900;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  color: var(--muted);
}

.tabs .active-tab {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8faf7;
}

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

.assistant {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.prompt-bank {
  display: grid;
  gap: 10px;
}

.prompt-bank button {
  margin: 0;
  width: 100%;
  background: #f8faf7;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
}

.error {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .content { margin-left: 0; }
  .kpi-grid, .two-col, .filterbar, .action-grid, .assistant { grid-template-columns: 1fr; }
  .risk-list article { grid-template-columns: 1fr; }
  .split-head { display: block; }
  .query-help { justify-content: flex-start; margin-top: 12px; }
  .mention-card, .compact-list .mention-card { grid-template-columns: 1fr; }
}

/* Pulso360 executive UI refresh */
:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #17202e;
  --muted: #667085;
  --line: #d8dee7;
  --nav: #101828;
  --nav-soft: #182230;
  --teal: #0f766e;
  --blue: #2f5fbb;
  --red: #b42318;
  --yellow: #b7791f;
  --green: #1e7f58;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

body.app-body {
  background:
    linear-gradient(180deg, rgba(47, 95, 187, 0.07), rgba(47, 95, 187, 0) 260px),
    var(--bg);
}

.sidebar {
  width: 292px;
  padding: 18px 16px;
  background: var(--nav);
  border-right: 0;
  color: #fff;
  gap: 18px;
}

.brand {
  min-height: 58px;
  padding: 4px 4px 10px;
}

.mark {
  background: linear-gradient(135deg, #12a394, #2f5fbb);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.brand strong {
  color: #fff;
  font-size: 19px;
}

.brand small {
  color: #98a2b3;
}

.project-switch {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: var(--nav-soft);
}

.project-switch span,
.project-switch small,
.nav-label {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-switch strong {
  color: #fff;
  line-height: 1.2;
}

.side-nav {
  overflow-y: auto;
  padding-right: 2px;
}

.nav-label {
  display: block;
  margin: 14px 8px 6px;
}

nav a,
.logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #d0d5dd;
  border-radius: 8px;
  padding: 9px 10px;
}

nav a span {
  flex: 0 0 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
}

nav a.active,
nav a:hover {
  background: #ffffff;
  color: var(--nav);
}

nav a.active span,
nav a:hover span {
  color: #fff;
  background: var(--teal);
}

.logout {
  margin-top: auto;
  color: #98a2b3;
}

.content {
  margin-left: 292px;
  padding: 22px clamp(20px, 3vw, 42px) 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  margin: -22px calc(clamp(20px, 3vw, 42px) * -1) 26px;
  padding: 12px clamp(20px, 3vw, 42px);
  background: rgba(238, 241, 244, 0.92);
  border-bottom: 1px solid rgba(216, 222, 231, 0.85);
  backdrop-filter: blur(12px);
}

.topbar div:first-child {
  display: grid;
  gap: 2px;
}

.topbar strong {
  font-size: 15px;
}

.topbar span {
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.top-actions a,
.ghost-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.top-actions a:last-child {
  color: #fff;
  background: var(--nav);
  border-color: var(--nav);
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--blue);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 40px);
}

.page-head p:not(.eyebrow) {
  max-width: 760px;
}

.panel,
.actions,
.login {
  border-color: rgba(216, 222, 231, 0.95);
  box-shadow: var(--shadow);
}

.panel {
  overflow-x: auto;
}

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

.kpi {
  min-height: 136px;
  position: relative;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.kpi strong {
  font-size: 36px;
  letter-spacing: 0;
}

.risk {
  border-left-width: 0;
  color: #fff;
  background: var(--nav);
}

.risk span,
.risk small {
  color: rgba(255, 255, 255, 0.74);
}

.risk.rojo { background: linear-gradient(135deg, #7f1d1d, #b42318); }
.risk.amarillo { background: linear-gradient(135deg, #854d0e, #b7791f); }
.risk.verde { background: linear-gradient(135deg, #065f46, #1e7f58); }
.risk.rojo strong,
.risk.amarillo strong,
.risk.verde strong { color: #fff; }

.filter-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  box-shadow: none;
  background: #f8fafc;
}

.filter-note span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}

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

h2 {
  font-size: 18px;
}

.bar-row {
  margin: 14px 0;
}

.bar-row i {
  height: 8px;
  background: #e7ecf2;
}

.bar-row b {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.risk-list article {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  border-top-color: #edf1f5;
}

table {
  min-width: 760px;
}

th {
  color: #475467;
  background: #f8fafc;
}

tr:hover td {
  background: #fbfcfe;
}

.pill {
  align-items: center;
  min-height: 25px;
  text-transform: capitalize;
}

.filterbar {
  position: sticky;
  top: 72px;
  z-index: 4;
  box-shadow: var(--shadow);
}

.filterbar input,
.filterbar select,
input,
select {
  min-height: 42px;
  background: #fff;
}

button {
  min-height: 42px;
  border-radius: 8px;
  background: var(--teal);
}

.mention-list {
  gap: 14px;
}

.mention-card {
  grid-template-columns: 180px minmax(0, 1fr) 158px;
  border: 1px solid rgba(216, 222, 231, 0.95);
  box-shadow: var(--shadow);
}

.mention-card:hover {
  border-color: rgba(47, 95, 187, 0.35);
}

.mention-title {
  align-items: start;
}

.mention-title h3 {
  font-size: 16px;
}

.mention-card p {
  color: #344054;
}

.mention-tags span {
  color: #344054;
  background: #edf2f7;
}

.mention-score {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.mention-score strong {
  color: var(--blue);
}

.tabs {
  box-shadow: none;
}

.action-grid article {
  background: #fff;
}

.assistant {
  align-items: start;
}

.prompt-bank button {
  min-height: auto;
  padding: 13px 14px;
}

.login-body {
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 118, 110, 0.12), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(47, 95, 187, 0.14), transparent 30%),
    var(--bg);
}

.login {
  padding: 28px;
}

.login button {
  width: 100%;
}

@media (max-width: 1120px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mention-card,
  .compact-list .mention-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .mention-score {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    border-bottom: 0;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .content {
    margin-left: 0;
    padding: 18px;
  }

  .topbar {
    position: static;
    margin: -18px -18px 20px;
    padding: 14px 18px;
    align-items: start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a {
    flex: 1;
  }

  .filterbar {
    position: static;
  }
}

@media (max-width: 680px) {
  .kpi-grid,
  .two-col,
  .filterbar,
  .action-grid,
  .assistant {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .page-head {
    display: block;
  }

  .mention-card,
  .compact-list .mention-card {
    grid-template-columns: 1fr;
  }

  .mention-score {
    grid-column: auto;
  }
}

/* Daily operator layer */
.global-search {
  flex: 1;
  max-width: 640px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
}

.global-search input {
  min-height: 38px;
  border-color: rgba(216, 222, 231, 0.95);
  background: rgba(255, 255, 255, 0.9);
}

.global-search button {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  background: var(--blue);
  white-space: nowrap;
}

.period-nav {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 222, 231, 0.95);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.period-nav > div {
  display: grid;
  gap: 3px;
}

.period-nav span,
.period-nav small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.period-nav span {
  text-transform: uppercase;
}

.period-nav strong {
  font-size: 19px;
}

.period-nav nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.period-nav nav a {
  min-height: 38px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #f8fafc;
  font-size: 13px;
}

.period-nav nav a.active,
.period-nav nav a:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.pulse-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.pulse-strip article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(216, 222, 231, 0.95);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pulse-strip article:first-child {
  color: #fff;
  background: var(--nav);
  border-color: var(--nav);
}

.pulse-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-strip article:first-child span,
.pulse-strip article:first-child small {
  color: rgba(255, 255, 255, 0.72);
}

.pulse-strip strong {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.pulse-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.crisis-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-center {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.25fr;
  gap: 14px;
  margin-bottom: 18px;
}

.command-center article {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(216, 222, 231, 0.95);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.command-center article:first-child {
  color: #fff;
  background: linear-gradient(135deg, #101828, #26344f);
  border-color: transparent;
}

.command-center span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-center article:first-child span,
.command-center article:first-child p {
  color: rgba(255, 255, 255, 0.76);
}

.command-center h2 {
  margin: 12px 0;
  font-size: 23px;
  line-height: 1.08;
}

.command-center p {
  margin: 0;
  color: #475467;
  line-height: 1.42;
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.v2-card {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  margin-bottom: 0;
}

.v2-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-card strong {
  margin-top: 12px;
  font-size: 34px;
}

.v2-card small {
  color: var(--muted);
  font-weight: 800;
}

.v2-card.up small { color: var(--red); }
.v2-card.down small { color: var(--green); }

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-cloud b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  background: #f8fafc;
  font-size: 12px;
}

.chip-cloud small {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}

.data-quality {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: 18px;
  align-items: center;
}

.data-quality span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-quality h2 {
  margin: 8px 0;
}

.data-quality p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.source-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--nav);
  font-size: 11px;
  font-weight: 900;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.metric-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #475467;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.metric-row .danger-dot {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

@media (max-width: 1120px) {
  .command-center {
    grid-template-columns: 1fr;
  }

  .v2-grid,
  .pulse-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-nav {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .global-search {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .global-search {
    grid-template-columns: 1fr;
  }

  .v2-grid,
  .pulse-strip,
  .crisis-strip {
    grid-template-columns: 1fr;
  }

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

  .data-quality {
    grid-template-columns: 1fr;
  }
}
