@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-800.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --canvas: #000000;
  --canvas-soft: #0a1521;
  --surface: #0c1722;
  --surface-raised: #101e2c;
  --line: #263648;
  --line-soft: rgba(117, 139, 164, .19);
  --text: #f4f7fb;
  --text-soft: #d5dee9;
  --muted: #8f9db0;
  --green: #35db43;
  --green-soft: rgba(53, 219, 67, .12);
  --teal: #21c3c7;
  --teal-soft: rgba(33, 195, 199, .12);
  --amber: #ffb515;
  --amber-soft: rgba(255, 181, 21, .12);
  --danger: #ff6d7a;
  --shadow: 0 18px 48px rgba(0, 0, 0, .23);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #000;
  font: 500 14.85px/1.38 "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 46vw;
  height: 46vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .075;
  will-change: transform;
}
body::before {
  top: -28vw;
  left: -16vw;
  background: radial-gradient(circle, rgba(53, 219, 67, .9) 0%, rgba(33, 195, 199, .32) 38%, transparent 70%);
  animation: ambientDriftOne 22s ease-in-out infinite alternate;
}
body::after {
  right: -22vw;
  bottom: -32vw;
  background: radial-gradient(circle, rgba(53, 219, 67, .72) 0%, rgba(37, 188, 74, .22) 38%, transparent 70%);
  animation: ambientDriftTwo 27s ease-in-out infinite alternate;
}

.ambient-orbit {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(440px, 44vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 255, 91, .42) 0%, rgba(53, 219, 67, .18) 30%, rgba(53, 219, 67, .055) 53%, transparent 72%);
  filter: blur(46px);
  opacity: .82;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: greenLightLoop 18s ease-in-out infinite;
  will-change: transform;
}
.ambient-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 20vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 255, 119, .3) 0%, rgba(53, 219, 67, .09) 42%, transparent 72%);
  filter: blur(35px);
  opacity: .72;
  mix-blend-mode: screen;
  animation: greenLightLoop 18s ease-in-out -9s infinite reverse;
  will-change: transform;
}

button, input { font: inherit; }
button { cursor: pointer; }
button, input { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(14px);
}
.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #294057;
  border-radius: 16px;
  background: rgba(9, 21, 32, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 55px rgba(53, 219, 67, .08);
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  font: 400 27px/1 "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.auth-brand strong { padding: 5px 12px 6px; color: var(--green); border: 1px solid var(--green); border-radius: 8px; font-weight: 400; }
.auth-card h1 { margin: 0; text-align: center; font-size: 24px; letter-spacing: -.025em; }
.auth-card > p { margin: 8px 0 20px; color: var(--muted); text-align: center; }
.auth-card label { display: block; margin: 13px 0 6px; color: var(--text-soft); font-weight: 700; }
.auth-card input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid #38516a;
  border-radius: 8px;
  outline: 0;
  background: #06111b;
}
.auth-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(53, 219, 67, .13); }
.auth-error { min-height: 21px; margin: 10px 0 0; color: #ff9ca5; font-size: 13px; }
.auth-submit { width: 100%; margin-top: 8px; color: #031006; border-color: var(--green); background: var(--green); font-weight: 800; }
.setup-message { padding: 16px; border: 1px solid rgba(255, 181, 21, .35); border-radius: 10px; background: rgba(255, 181, 21, .06); }
.setup-message strong { color: var(--amber); }
.setup-message p { color: var(--text-soft); }
.setup-message .button { text-decoration: none; }
.auth-locked .app-shell { filter: blur(8px); pointer-events: none; user-select: none; }

.app-shell {
  width: min(1920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 15px 10px;
  position: relative;
  z-index: 1;
}

.site-header,
.identity-line,
.header-actions,
.period-nav,
.month-tabs,
.date-cluster,
.current-date,
.month-countdown,
.live-status,
.editor-bar,
.editor-actions,
.kpi-heading,
.card-heading,
.card-title-wrap,
.rank-cell,
.seller-cell,
.total-row,
.footer-note,
.annual-hero,
.annual-meta {
  display: flex;
  align-items: center;
}

.site-header {
  min-height: 64px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 1px;
}

.identity { min-width: 520px; }

.identity-line {
  justify-content: flex-start;
  gap: 13px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(30.8px, 2.2vw, 37.4px);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}
.identity-line strong {
  padding: 5px 16px 6px;
  color: var(--green);
  border: 1px solid rgba(53, 219, 67, .8);
  border-radius: 9px;
  background: rgba(53, 219, 67, .025);
  box-shadow: inset 0 0 0 1px rgba(53, 219, 67, .05);
  font-weight: 400;
}
.identity-line span { color: var(--text); white-space: nowrap; }

.header-actions { justify-content: flex-end; gap: 18px; flex-wrap: wrap; padding-top: 7px; }
.date-cluster { gap: 10px; }
.year-control {
  height: 40px;
  display: grid;
  grid-template-columns: 34px 58px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.year-control button { height: 100%; border: 0; color: var(--muted); background: transparent; font-size: 23.1px; }
.year-control button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.year-control span { text-align: center; color: var(--text-soft); font-variant-numeric: tabular-nums; font-weight: 750; }

.live-status { gap: 8px; color: var(--text-soft); white-space: nowrap; }
.live-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(53, 219, 67, .45); }
.live-status[data-status="saving"] i { background: var(--teal); box-shadow: 0 0 12px rgba(33, 195, 199, .45); animation: activeDotPulse 1s ease-in-out infinite; }
.live-status[data-status="offline"] i,
.live-status[data-status="conflict"] i { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 21, .4); }
.current-date { gap: 7px; color: var(--text-soft); white-space: nowrap; }
.current-date::before { content: "▦"; color: var(--green); font-size: .95em; }
.month-countdown {
  min-height: 40px;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  color: var(--green);
  border: 1px solid rgba(53, 219, 67, .38);
  border-radius: 10px;
  background: rgba(53, 219, 67, .07);
  box-shadow: inset 0 0 18px rgba(53, 219, 67, .025), 0 0 18px rgba(53, 219, 67, .035);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.countdown-icon { font-size: 18px; line-height: 1; }
.countdown-copy { display: grid; line-height: 1.05; text-align: left; }
.countdown-copy strong { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown-copy small { margin-top: 3px; color: var(--text-soft); font-size: 10px; font-weight: 600; }
.month-countdown[data-urgency="attention"] {
  color: var(--amber);
  border-color: rgba(255, 181, 21, .42);
  background: rgba(255, 181, 21, .075);
  box-shadow: inset 0 0 18px rgba(255, 181, 21, .025), 0 0 18px rgba(255, 181, 21, .04);
}
.month-countdown[data-urgency="urgent"],
.month-countdown[data-urgency="last-day"] {
  color: #ff7d87;
  border-color: rgba(255, 109, 122, .55);
  background: rgba(255, 109, 122, .09);
  box-shadow: inset 0 0 20px rgba(255, 109, 122, .04), 0 0 20px rgba(255, 109, 122, .07);
  animation: deadlinePulse 1.8s ease-in-out infinite;
}
.user-chip { max-width: 180px; overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.user-admin { color: var(--green); border-color: rgba(53, 219, 67, .35); text-decoration: none; }
.logout-button { min-width: 62px; }

.button {
  height: 40px;
  padding: 0 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.button:hover { border-color: #3e536c; background: #122235; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.button:active { transform: translateY(0) scale(.98); }
.button:focus-visible, .month-tab:focus-visible, .annual-tab:focus-visible, input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(53, 219, 67, .18);
}
.button-primary { min-width: 154px; color: var(--text); background: rgba(11, 20, 31, .86); font-weight: 720; }
.button-primary span { margin-right: 6px; font-size: 17.6px; }
.editing #editButton {
  color: #031006;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(53, 219, 67, .24), 0 8px 26px rgba(53, 219, 67, .18);
  font-weight: 800;
}
.editing #editButton:hover { color: #020b04; background: #47eb54; border-color: #47eb54; }
.button-danger { color: #ffdbe0; border-color: rgba(255, 109, 122, .32); }
.button:disabled { cursor: not-allowed; opacity: .46; transform: none; }

.period-nav {
  gap: 12px;
  min-height: 51px;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 10px;
}
.month-tabs {
  flex: 1;
  justify-content: space-evenly;
  gap: clamp(4px, .7vw, 14px);
}
.month-tab, .annual-tab {
  position: relative;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #b4bfcd;
  background: transparent;
  font-size: 14.3px;
  font-weight: 680;
  transition: .18s ease;
}
.month-tab { min-width: 48px; padding: 0 11px 7px; }
.month-tab:hover, .annual-tab:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.month-tab.active { color: var(--text); border-color: var(--green); background: rgba(53, 219, 67, .045); }
.month-tab.active { min-width: 88px; }
.month-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #586371;
}
.month-tab.has-data::after { background: var(--green); box-shadow: 0 0 9px rgba(53, 219, 67, .28); }
.month-tab.active::after { animation: activeDotPulse 1.8s ease-in-out infinite; }
.annual-tab {
  flex: 0 0 auto;
  min-width: 158px;
  padding: 0 15px;
  border-color: rgba(53, 219, 67, .72);
}
.annual-tab span { margin-right: 6px; }
.annual-tab.active { color: #06110a; background: var(--green); border-color: var(--green); font-weight: 800; }

.editor-bar {
  display: none;
  min-height: 48px;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  padding: 7px 11px 7px 15px;
  color: #c7d1dd;
  border: 1px solid #34506c;
  border-radius: 11px;
  background: #0f1d2b;
}
.editing .editor-bar { display: flex; }
.editor-bar p { margin: 0; }
.editor-bar strong { color: #fff; }
.editor-actions { gap: 8px; }

.kpi-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 13px;
}
.kpi-card {
  --accent: #718097;
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 28, 41, .98), rgba(8, 17, 27, .98));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.kpi-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 22px 54px rgba(0, 0, 0, .3); }
.kpi-card.green { --accent: var(--green); border-color: rgba(53, 219, 67, .23); }
.kpi-card.teal { --accent: var(--teal); border-color: rgba(33, 195, 199, .23); }
.kpi-card.amber { --accent: var(--amber); border-color: rgba(255, 181, 21, .23); }
.kpi-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-size: 26.4px;
  font-weight: 900;
}
.kpi-symbol.logo-box { width: 94px; padding: 8px; }
.kpi-symbol.logo-box.jornada { width: 110px; background: #00ef0c; }
.kpi-symbol.logo-box.ancora { width: 128px; background: #0e0e0e; }
.kpi-symbol.logo-box.jornada-svg {
  width: 118px;
  height: 58px;
  padding: 5px 7px;
  background: #07121c;
  border-color: rgba(53, 219, 67, .58);
}
.kpi-symbol.brand-mark {
  width: 58px;
  height: 58px;
  padding: 5px;
  overflow: hidden;
  background: #08131d;
}
.brand-logo.brand-mark {
  width: 52px;
  height: 48px;
  padding: 3px;
  background: #08131d;
}
.brand-mark.people-mark { color: var(--amber); border-color: rgba(255, 181, 21, .82); }
.mark-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.kpi-symbol img, .brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}
.kpi-content { min-width: 0; }
.kpi-heading { justify-content: space-between; gap: 8px; color: var(--text-soft); }
.kpi-card:not(:first-child) .kpi-heading { color: var(--accent); font-weight: 760; }
.kpi-value {
  margin-top: 8px;
  color: var(--accent);
  font-size: clamp(24.2px, 2.2vw, 37.4px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 830;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: valueRefresh .34s ease-out both;
}
.kpi-card:first-child .kpi-value { color: var(--text); }
.kpi-caption { margin-top: 7px; color: #66758a; font-size: 12.1px; }
.kpi-caption { display: none; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "primary primary" "anchor immersion";
  gap: 14px;
}
.ranking-card {
  --accent: var(--green);
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, #183047);
  border-radius: var(--radius);
  background: rgba(9, 19, 29, .96);
  box-shadow: var(--shadow);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ranking-card:hover { border-color: var(--accent); box-shadow: 0 22px 58px rgba(0, 0, 0, .3); }
.ranking-card.primary { grid-area: primary; --accent: var(--green); }
.ranking-card.anchor { grid-area: anchor; --accent: var(--teal); }
.ranking-card.immersion { grid-area: immersion; --accent: var(--amber); }

.card-heading {
  min-height: 67px;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.card-title-wrap { min-width: 0; gap: 14px; }
.brand-logo {
  width: 125px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 8px;
  overflow: hidden;
}
.brand-logo.jornada { width: 116px; background: #00ef0c; }
.brand-logo.jornada-svg {
  width: 124px;
  height: 50px;
  padding: 4px 7px;
  background: #07121c;
  border-color: rgba(53, 219, 67, .58);
}
.brand-logo.ancora { width: 164px; background: #0d0d0d; }
.brand-logo.simple { width: 48px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 25.3px; }
.card-heading h2 { margin: 0; color: var(--accent); font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13.2px; }
.card-tag { color: var(--accent); font-size: 12.1px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }

.table-scroll { width: 100%; overflow-x: auto; }
.ranking-table { width: 100%; min-width: 0; }
.table-header, .ranking-row, .total-row {
  display: grid;
  align-items: stretch;
}
.primary .table-header, .primary .ranking-row, .primary .total-row {
  grid-template-columns: 54px minmax(116px, 1.08fr) repeat(4, minmax(122px, 1.22fr)) minmax(132px, 1.18fr);
}
.anchor .table-header, .anchor .ranking-row, .anchor .total-row {
  grid-template-columns: 48px minmax(104px, 1.1fr) repeat(4, minmax(74px, .8fr)) minmax(112px, 1.05fr);
}
.immersion .table-header, .immersion .ranking-row, .immersion .total-row {
  grid-template-columns: 48px minmax(110px, 1.1fr) minmax(105px, 1fr) minmax(105px, 1fr) minmax(126px, 1.15fr);
}

.table-header {
  min-height: 42px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.475px;
  font-weight: 780;
  letter-spacing: .005em;
}
.header-cell, .data-cell, .total-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-right: 1px solid var(--line-soft);
}
.header-cell:last-child, .data-cell:last-child, .total-row > span:last-child { border-right: 0; }
.header-cell:not(:nth-child(-n+2)), .data-cell.money, .total-row .money { justify-content: flex-end; text-align: right; }
.header-cell.field-heading,
.header-cell.total-heading {
  justify-content: center !important;
  color: var(--accent);
  text-align: center !important;
}
.payment-header { display: grid; grid-template-rows: 1fr 1fr; padding: 0; text-align: center; justify-content: stretch !important; }
.payment-header > strong { display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); font-weight: 760; }
.payment-header > span {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--text-soft);
  font-size: 12.1px;
}
.payment-header > span i { display: block; text-align: right; font-style: normal; }

.ranking-row { min-height: 36px; border-bottom: 1px solid var(--line-soft); transition: background .16s ease; }
.ranking-row:hover { background: rgba(255, 255, 255, .025); }
.rank-cell { justify-content: center; font-weight: 860; font-variant-numeric: tabular-nums; }
.medal { font-size: 20.9px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .34)); }
.seller-cell { min-width: 0; gap: 7px; font-weight: 720; }
.seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-1 .seller-name,
.podium-1 .name-input,
.annual-ranking-row.podium-1 .seller { color: #f4c84e; }
.podium-2 .seller-name,
.podium-2 .name-input,
.annual-ranking-row.podium-2 .seller { color: #cbd4df; }
.podium-3 .seller-name,
.podium-3 .name-input,
.annual-ranking-row.podium-3 .seller { color: #d99055; }
.podium-1 .seller-name,
.podium-2 .seller-name,
.podium-3 .seller-name,
.annual-ranking-row[class*="podium-"] .seller { font-weight: 760; }
.data-cell { color: #d0dae6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-cell { font-size: 14.3px; }
.split-value {
  width: 100%;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 5px;
}
.split-value strong { color: #e0e6ee; text-align: right; font-weight: 620; }
.split-value small { color: var(--muted); text-align: right; }
.total-cell { position: relative; padding-bottom: 6px; color: var(--accent); font-weight: 820; }
.progress-track {
  position: absolute;
  right: 9px;
  bottom: 4px;
  width: calc(100% - 18px);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #263340;
}
.progress-track i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.progress-track i {
  transform: scaleX(0);
  transform-origin: left center;
  animation: progressGrow .68s cubic-bezier(.2, .82, .24, 1) forwards;
}

.total-row {
  min-height: 42px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
  font-weight: 820;
}
.total-row .total-label { grid-column: span 2; justify-content: flex-start; text-transform: uppercase; font-size: 15.4px; }
.total-row .split-value strong, .total-row .split-value small { color: inherit; }

.field-input, .name-input {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 0 6px;
  color: #fff;
  border: 1px solid #38516a;
  border-radius: 6px;
  outline: 0;
  background: #07111b;
}
.field-input { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.remove-seller {
  display: none;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--danger);
  border: 0;
  border-radius: 6px;
  background: rgba(255, 109, 122, .1);
}
.editing .remove-seller { display: grid; place-items: center; }

.annual-hero {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid rgba(53, 219, 67, .38);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(53, 219, 67, .08), rgba(33, 195, 199, .035));
}
.annual-hero h2 { margin: 0; font-size: 22px; }
.annual-hero p { margin: 3px 0 0; color: var(--muted); }
.annual-meta { gap: 10px; color: #b9c6d5; }
.annual-meta strong { color: var(--green); font-size: 18.7px; }

/* Resumo anual */
.annual-view .kpi-caption { display: block; }
.annual-view .kpi-card { min-height: 126px; }
.annual-view .dashboard-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(390px, 1fr);
  grid-template-areas: none;
  gap: 14px;
}
.annual-view .footer-note { display: none; }

.annual-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #293a4c;
  border-radius: var(--radius);
  background: #07121c;
  box-shadow: var(--shadow);
}
.annual-card-heading {
  margin: 0;
  padding: 13px 18px 4px;
  color: #f1f4f8;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.trend-card { min-height: 336px; }
.trend-toolbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 26px;
  padding: 0 20px 0 170px;
  color: var(--muted);
  font-size: 12.1px;
}
.trend-legend { display: inline-flex; align-items: center; gap: 8px; }
.trend-legend::before { content: ""; width: 24px; height: 3px; border-radius: 4px; background: var(--green); }
.trend-legend.future::before { height: 1px; background: repeating-linear-gradient(90deg, #8c98a6 0 7px, transparent 7px 11px); }
.annual-chart { display: block; width: 100%; height: 276px; overflow: visible; }
.annual-chart text { font-family: "Inter", sans-serif; fill: #b9c5d2; font-size: 13.2px; }
.annual-chart .grid-line { stroke: #253546; stroke-width: 1; stroke-dasharray: 3 3; }
.annual-chart .axis-line { stroke: #34475b; stroke-width: 1; }
.annual-chart .realized-line { fill: none; stroke: var(--green); stroke-width: 3; }
.annual-chart .future-line { fill: none; stroke: #9aa6b4; stroke-width: 1.5; stroke-dasharray: 7 5; }
.annual-chart .realized-dot { fill: var(--green); stroke: #baf7c0; stroke-width: 1; }
.annual-chart .future-dot { fill: #07121c; stroke: #a6b0bb; stroke-width: 1.5; }
.annual-chart .value-label { fill: #eef3f8; font-size: 12.1px; font-weight: 650; }

.share-card { min-height: 336px; }
.share-content {
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(210px, .95fr) minmax(185px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 8px 24px 18px;
}
.donut-wrap { position: relative; width: min(230px, 100%); aspect-ratio: 1; margin: auto; }
.annual-donut {
  position: absolute;
  inset: 0;
  border: 1px solid #d8e0e8;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 var(--anchor-share), var(--amber) var(--anchor-share) var(--immersion-share), var(--green) var(--immersion-share) 100%);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .07);
  animation: donutReveal .85s cubic-bezier(.22, .8, .24, 1) both;
}
.annual-donut::after {
  content: "";
  position: absolute;
  inset: 29%;
  border: 1px solid #d4dce6;
  border-radius: 50%;
  background: #06101a;
}
.donut-center {
  position: absolute;
  inset: 33%;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  color: #d8e0e9;
  text-align: center;
  font-size: 17.6px;
}
.donut-center strong { display: block; margin-top: 2px; color: #fff; font-size: 24.2px; }
.share-legend { display: grid; gap: 16px; }
.share-item { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.share-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--item-color); }
.share-copy { min-width: 0; }
.share-copy strong { display: block; color: var(--item-color); font-size: 15.4px; }
.share-copy span { display: block; margin-top: 3px; color: #d3dce7; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.share-copy small { display: block; margin-top: 2px; color: #aeb9c7; font-size: 14.3px; font-variant-numeric: tabular-nums; }

.annual-ranking-card { min-height: 312px; padding: 0 14px 12px; }
.annual-ranking-card .annual-card-heading { padding-left: 4px; }
.annual-ranking-table { overflow: hidden; border: 1px solid #34485c; border-radius: 8px; }
.annual-ranking-head, .annual-ranking-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.15fr 1.05fr 1.15fr 1.45fr;
  align-items: stretch;
}
.annual-ranking-head { min-height: 35px; color: #f0f4f8; font-size: 12.1px; font-weight: 650; }
.annual-ranking-row { min-height: 35px; border-top: 1px solid #2a3c4f; }
.annual-ranking-row { transition: background .18s ease; }
.annual-ranking-row:hover { background: rgba(255, 255, 255, .028); }
.annual-ranking-head > span, .annual-ranking-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #34485c;
  white-space: nowrap;
}
.annual-ranking-head > span:last-child, .annual-ranking-row > span:last-child { border-right: 0; }
.annual-ranking-head > span:not(:nth-child(-n+2)), .annual-ranking-row > span:not(:nth-child(-n+2)) { justify-content: flex-end; text-align: right; }
.annual-ranking-head .jornada-text, .annual-ranking-row .jornada-text { color: var(--green); }
.annual-ranking-head .anchor-text, .annual-ranking-row .anchor-text { color: var(--teal); }
.annual-ranking-head .immersion-text, .annual-ranking-row .immersion-text { color: var(--amber); }
.annual-rank { justify-content: center !important; padding: 0 !important; font-weight: 800; }
.annual-ranking-row .seller { font-weight: 680; }
.annual-ranking-row .annual-total { position: relative; padding-bottom: 5px; font-variant-numeric: tabular-nums; }
.annual-total .progress-track { right: 9px; bottom: 3px; }

.highlights-card { min-height: 312px; padding: 0 14px 14px; }
.highlights-card .annual-card-heading { padding-left: 4px; }
.highlight-list { display: grid; gap: 6px; }
.highlight-item {
  --highlight: var(--green);
  min-height: 80px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border: 1px solid #30465b;
  border-radius: 8px;
  background: #081520;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.highlight-item:hover { transform: translateX(4px); border-color: var(--highlight); background: color-mix(in srgb, var(--highlight) 5%, #081520); }
.highlight-item.teal { --highlight: var(--teal); }
.highlight-item.amber { --highlight: var(--amber); }
.highlight-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 7px;
  font-size: 26.4px;
}
.highlight-copy small { display: block; color: var(--highlight); }
.highlight-copy strong { display: block; margin-top: 3px; color: #f0f4f8; font-size: 22px; }
.highlight-value { color: var(--highlight); font-size: clamp(19.8px, 1.925vw, 28.6px); font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.annual-footnote { grid-column: 1 / -1; margin: 4px 0 0; color: #98a5b5; text-align: center; font-size: 14.3px; }

/* Transições de troca de guia */
.kpi-grid.view-enter .kpi-card,
.dashboard-grid.view-enter > * {
  animation: viewEnter .62s cubic-bezier(.2, .82, .2, 1) both;
  will-change: opacity, transform, filter;
}
.kpi-grid.view-enter .kpi-card:nth-child(2) { animation-delay: 45ms; }
.kpi-grid.view-enter .kpi-card:nth-child(3) { animation-delay: 90ms; }
.kpi-grid.view-enter .kpi-card:nth-child(4) { animation-delay: 135ms; }
.dashboard-grid.view-enter > *:nth-child(1) { animation-delay: 80ms; }
.dashboard-grid.view-enter > *:nth-child(2) { animation-delay: 130ms; }
.dashboard-grid.view-enter > *:nth-child(3) { animation-delay: 180ms; }
.dashboard-grid.view-enter > *:nth-child(4) { animation-delay: 230ms; }
.dashboard-grid.view-enter > *:nth-child(5) { animation-delay: 280ms; }
.dashboard-grid.view-enter .ranking-row { animation: rowViewEnter .5s cubic-bezier(.2, .8, .24, 1) .16s both; }
.month-tab.tab-enter,
.annual-tab.tab-enter { animation: tabSelect .52s cubic-bezier(.2, .86, .2, 1) both; }

.annual-chart .realized-line {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: chartLineDraw 1.15s cubic-bezier(.25, .8, .3, 1) .28s forwards;
}
.annual-chart .future-line { opacity: 0; animation: futureLineFade .7s ease-out .75s forwards; }
.annual-chart rect { transform-box: fill-box; transform-origin: center bottom; animation: chartBarGrow .9s cubic-bezier(.2, .82, .24, 1) .22s both; }
.annual-chart circle { transform-box: fill-box; transform-origin: center; animation: chartPointPop .42s ease-out .72s both; }

@keyframes ambientDriftOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18vw, 10vh, 0) scale(1.12); }
  100% { transform: translate3d(7vw, 23vh, 0) scale(.94); }
}
@keyframes ambientDriftTwo {
  0% { transform: translate3d(0, 0, 0) scale(.92); }
  50% { transform: translate3d(-19vw, -8vh, 0) scale(1.08); }
  100% { transform: translate3d(-6vw, -22vh, 0) scale(1); }
}
@keyframes greenLightLoop {
  0%, 100% { transform: translate(-50%, -50%) translate3d(-42vw, -32vh, 0) scale(.78); }
  25% { transform: translate(-50%, -50%) translate3d(40vw, -27vh, 0) scale(1.04); }
  50% { transform: translate(-50%, -50%) translate3d(38vw, 34vh, 0) scale(.86); }
  75% { transform: translate(-50%, -50%) translate3d(-39vw, 32vh, 0) scale(1.08); }
}
@keyframes activeDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 7px rgba(53, 219, 67, .32); }
  50% { transform: scale(1.4); box-shadow: 0 0 15px rgba(53, 219, 67, .62); }
}
@keyframes deadlinePulse {
  0%, 100% { box-shadow: inset 0 0 20px rgba(255, 109, 122, .04), 0 0 12px rgba(255, 109, 122, .035); }
  50% { box-shadow: inset 0 0 20px rgba(255, 109, 122, .07), 0 0 24px rgba(255, 109, 122, .14); }
}
@keyframes progressGrow { to { transform: scaleX(1); } }
@keyframes valueRefresh { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewEnter {
  from { opacity: 0; transform: translate3d(var(--view-shift, 26px), 9px, 0) scale(.988); filter: blur(5px); }
  65% { filter: blur(0); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes rowViewEnter {
  from { opacity: .2; transform: translateX(var(--view-shift, 26px)); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tabSelect {
  0% { transform: scale(.92); box-shadow: 0 0 0 rgba(53, 219, 67, 0); }
  55% { transform: scale(1.055); box-shadow: 0 0 22px rgba(53, 219, 67, .2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(53, 219, 67, 0); }
}
@keyframes donutReveal {
  from { opacity: 0; transform: rotate(-25deg) scale(.84); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes chartLineDraw { to { stroke-dashoffset: 0; } }
@keyframes futureLineFade { to { opacity: 1; } }
@keyframes chartBarGrow { from { transform: scaleY(0); opacity: .2; } to { transform: scaleY(1); opacity: .78; } }
@keyframes chartPointPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.footer-note { justify-content: center; gap: 9px; min-height: 27px; color: #657388; font-size: 12.1px; }
.footer-note i { width: 3px; height: 3px; border-radius: 50%; background: #566579; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(340px, calc(100vw - 36px));
  padding: 11px 14px;
  color: var(--text);
  border: 1px solid #37516c;
  border-radius: 10px;
  background: #101f2e;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1281px) and (max-height: 900px) {
  .app-shell { padding-top: 10px; }
  .site-header { min-height: 58px; }
  .identity-line { font-size: 29.7px; }
  .period-nav { min-height: 43px; margin-top: 0; margin-bottom: 7px; }
  .kpi-card { min-height: 92px; padding-block: 10px; }
  .kpi-symbol { width: 46px; height: 46px; }
  .card-heading { min-height: 58px; }
  .ranking-row { min-height: 32px; }
  .total-row { min-height: 37px; }
}

@media (max-width: 1280px) {
  .site-header { min-height: 64px; align-items: flex-start; }
  .identity { min-width: 320px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-nav { align-items: stretch; flex-direction: column; margin-top: 0; margin-left: 0; }
  .month-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .annual-tab { align-self: flex-end; }
  .dashboard-grid { grid-template-columns: 1fr; grid-template-areas: "primary" "anchor" "immersion"; }
  .annual-view .dashboard-grid { grid-template-columns: 1fr; }
  .annual-footnote { grid-column: 1; }
}

@media (max-width: 760px) {
  .app-shell { padding: 13px 12px 8px; }
  .site-header { align-items: center; flex-direction: column; gap: 14px; text-align: center; }
  .identity { min-width: 0; width: 100%; }
  .identity-line { align-items: center; justify-content: center; flex-direction: row; flex-wrap: wrap; gap: 9px; font-size: 27.5px; }
  .identity-line strong { padding: 5px 12px 6px; }
  .header-actions { width: 100%; justify-content: center; }
  .date-cluster { width: 100%; justify-content: center; flex-wrap: wrap; }
  .live-status { order: 3; width: 100%; justify-content: center; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-symbol.logo-box { width: 112px; }
  .editor-bar { align-items: flex-start; flex-direction: column; }
  .editor-actions { flex-wrap: wrap; }
  .card-tag { display: none; }
  .card-heading { align-items: flex-start; }
  .brand-logo.ancora { width: 135px; }
  .primary .ranking-table { min-width: 1040px; }
  .anchor .ranking-table { min-width: 670px; }
  .immersion .ranking-table { min-width: 560px; }
  .footer-note { flex-wrap: wrap; }
  .share-content { grid-template-columns: 1fr; }
  .donut-wrap { width: 200px; }
  .annual-ranking-table { overflow-x: auto; }
  .annual-ranking-head, .annual-ranking-row { min-width: 780px; }
  .highlight-item { grid-template-columns: 52px 1fr; }
  .highlight-value { grid-column: 2; }
}
