/*!*****************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./wwwroot/src/scss/styles.scss ***!
  \*****************************************************************************************************************************************************************/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

textarea {
  overflow: auto;
}

table {
  border-collapse: collapse;
  caption-side: bottom;
}

thead, tbody, tfoot, tr, td, th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --surface2: #1a1a1f;
  --border: #252530;
  --accent: #00c896;
  --accent2: #00ffb3;
  --danger: #8b1a3a;
  --text: #f0f0f2;
  --text-muted: #b6b6b6;
  --text-mid: #9090a8;
  --gold: #c9a84c;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27 opacity=%270.04%27/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo span {
  color: var(--accent);
}

.auth-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

#chartContainer {
  width: 100%;
  height: 200px;
}

#loadAllBtn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.15s;
}
#loadAllBtn:hover {
  background: var(--border);
}

@media (min-width: 1024px) {
  #chartContainer {
    height: 260px;
  }
  .detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
  }
  .detail-col-left {
    border-right: 1px solid var(--border);
  }
  .detail-col-right .log-section {
    padding: 1.5rem 2rem;
  }
  .detail-actions {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }
  .add-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
  }
  .add-exercise-name {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }
}
.add-page {
  padding: 1.5rem;
}
.add-page .add-exercise-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}
.add-page .add-exercise-name span {
  color: var(--accent);
}

.marcas {
  padding: 1.5rem;
}

.exercise-group {
  margin-bottom: 1.5rem;
}

.group-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.4rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .marcas {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem;
  }
  .exercise-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  .exercise-group-grid .exercise-row {
    background: var(--surface);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .exercise-group-grid .exercise-row:nth-last-child(1), .exercise-group-grid .exercise-row:nth-last-child(2) {
    border-bottom: none;
  }
}
.big3 {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-list {
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .stats-row {
    max-width: 1100px;
    margin: 0 auto;
  }
  .stat-cell {
    padding: 1.5rem 1.5rem;
  }
  .stat-val {
    font-size: 2.5rem;
  }
  .home-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .home-col {
    min-width: 0;
  }
  .home-col .section-head {
    padding: 1.5rem 0 0.75rem;
  }
  .big3,
  .recent-list {
    padding: 0;
  }
}
.welcome-card {
  padding: 3rem 1.5rem;
  text-align: center;
}
.welcome-card h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.welcome-card h1 span {
  color: var(--accent);
}
.welcome-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto 2rem;
}
.welcome-card .btn-primary {
  max-width: 280px;
  margin: 0 auto 0.75rem;
}
.welcome-card .btn-ghost {
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .welcome-card {
    padding: 6rem 2rem;
  }
  .welcome-card h1 {
    font-size: 4rem;
  }
  .welcome-card p {
    max-width: 400px;
    font-size: 1rem;
  }
  .welcome-card .btn-primary, .welcome-card .btn-ghost {
    max-width: 240px;
  }
}
.wod-description {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.wod-description p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
  white-space: pre-wrap;
}

.wod-meta {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.wod-list {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.wod-card:hover {
  border-color: var(--text-muted);
}

.wod-card-date {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.wod-card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.wod-card-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .wod-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .wod-card {
    display: flex;
    flex-direction: column;
  }
  .section-head {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .wod-description {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem;
  }
  .wod-description p {
    font-size: 1rem;
    max-width: 70ch;
    line-height: 1.8;
  }
  .wod-meta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
}
.btn-primary {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 0.85rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(139, 26, 58, 0.15);
  border: 1px solid rgba(139, 26, 58, 0.3);
  color: #f87171;
  font-size: 0.7rem;
  transition: background 0.15s;
}
.btn-danger:hover {
  background: rgba(139, 26, 58, 0.3);
}

.btn-inline {
  width: auto;
  display: inline-block;
}

[data-url] {
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .btn-primary,
  .btn-ghost {
    display: inline-block;
    width: auto;
    min-width: 180px;
  }
  .form-actions {
    flex-direction: row;
    align-items: center;
  }
}
.lift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.lift-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.lift-card.no-data::before {
  background: var(--border);
}

.lift-name {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.lift-weight {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1;
}
.lift-weight span {
  font-size: 0.9rem;
  font-family: "DM Sans", sans-serif;
  color: var(--text-muted);
}

.lift-date {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.lift-badge {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 200, 150, 0.12);
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.lift-badge.empty {
  background: var(--surface2);
  color: var(--text-muted);
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.recent-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.recent-exercise {
  font-size: 0.82rem;
  font-weight: 500;
}

.recent-date {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.recent-score {
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.exercise-row:last-child {
  border-bottom: none;
}
.exercise-row:hover {
  background: var(--surface2);
}

.ex-name {
  font-size: 0.88rem;
  font-weight: 500;
}

.ex-date {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ex-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ex-rm {
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.ex-count {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Mono", monospace;
}

.ex-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.stat-cell {
  background: var(--surface);
  padding: 1.2rem 1rem;
  text-align: center;
}

.stat-val {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.chip.active {
  background: rgba(0, 200, 150, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.predicted-rm {
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pred-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.pred-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
}

.pred-unit {
  font-size: 0.75rem;
  color: rgba(0, 200, 150, 0.6);
}

main {
  min-height: 100vh;
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0.75rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .page-wrap {
    max-width: 540px;
    margin: 0 auto;
  }
}
.field-group {
  margin-bottom: 1.5rem;
}

.field-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.field-input {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.field-input:focus {
  border-color: var(--accent);
}
.field-input::placeholder {
  color: var(--text-muted);
}

textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath fill=%27none%27 stroke=%27%235a5a6e%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 0.8rem;
  padding-right: 2.5rem;
}

.reps-weight {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.reps-x {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
  font-weight: 300;
}

.weight-wrap {
  position: relative;
}
.weight-wrap .field-input {
  padding-right: 2.5rem;
}

.weight-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.25rem;
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  flex: 1;
}
.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}
.form-error:empty {
  display: none;
}

@media (min-width: 768px) {
  .field-group {
    max-width: 480px;
  }
  .field-group:has(textarea) {
    max-width: 100%;
  }
}
@media (min-width: 1024px) {
  .field-group {
    max-width: 520px;
  }
  .field-group:has(textarea) {
    max-width: 680px;
  }
  .search-bar {
    max-width: 480px;
  }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--text-mid);
}

.page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero {
  background: linear-gradient(160deg, #0f1a16 0%, var(--bg) 60%);
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-greeting {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.03em;
}
.hero-name span {
  color: var(--accent);
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.detalle-hero {
  background: linear-gradient(160deg, #0f1a16 0%, var(--bg) 80%);
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.detalle-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1;
}

.pr-row {
  display: flex;
  gap: 1rem;
}

.pr-block {
  flex: 1;
}

.pr-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pr-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
}
.pr-value.gold {
  color: var(--gold);
}
.pr-value.green {
  color: var(--accent);
}

.pr-unit {
  font-size: 0.75rem;
  font-family: "DM Sans", sans-serif;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .hero {
    padding: 3.5rem max(2rem, (100% - 1100px) / 2) 2.5rem;
  }
  .hero-name {
    font-size: 4rem;
  }
  .detalle-hero {
    padding: 2rem 2rem 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .detalle-title {
    font-size: 3.2rem;
  }
}
.chart-wrap {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.chart-title {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.top-navbar {
  display: none;
}

.nav-brand {
  display: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.8rem 0 0.6rem;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-item.active {
  color: var(--accent);
}
.nav-item:hover:not(.active) {
  color: var(--text-mid);
}

.nav-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: -18px;
  box-shadow: 0 0 20px rgba(0, 200, 150, 0.3);
  transition: opacity 0.2s;
}
.nav-add:hover {
  opacity: 0.85;
}

.page-spacer {
  height: 80px;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
  .page-spacer {
    height: 0;
  }
  main {
    padding-top: 0;
  }
  .top-navbar {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 2rem;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .top-navbar__logo {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    margin-right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }
  .top-navbar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .top-navbar__links {
    display: flex;
    align-items: stretch;
    height: 100%;
    flex: 1;
  }
  .top-navbar__link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 1.1rem;
    height: 100%;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  .top-navbar__link svg {
    flex-shrink: 0;
  }
  .top-navbar__link:hover {
    color: var(--text-mid);
  }
  .top-navbar__link.active {
    color: var(--text);
    border-bottom-color: var(--accent);
  }
  .top-navbar__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .top-navbar__add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
    flex-shrink: 0;
  }
  .top-navbar__add:hover {
    opacity: 0.85;
  }
  .top-navbar__add:active {
    transform: scale(0.94);
  }
  .top-navbar__user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px 5px 6px;
    transition: border-color 0.15s;
  }
  .top-navbar__user-pill:hover {
    border-color: #3a3a50;
  }
  .top-navbar__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .top-navbar__email {
    font-size: 0.72rem;
    color: var(--text-mid);
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-navbar__logout {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0;
    border: none;
    background: none;
  }
  .top-navbar__logout:hover {
    color: var(--text);
  }
}
@media (min-width: 1024px) {
  .top-navbar {
    padding: 0 max(2rem, (100% - 1100px) / 2);
  }
}
.log-section {
  padding: 1.5rem;
}

.log-title {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.log-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.log-row:last-child {
  border-bottom: none;
}

.log-date {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.log-reps {
  font-size: 0.8rem;
  font-weight: 500;
}

.log-rm {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.log-delta {
  font-size: 0.62rem;
  font-family: "DM Mono", monospace;
  text-align: right;
}
.log-delta.up {
  color: #34d399;
}
.log-delta.down {
  color: #f87171;
}
.log-delta.neutral {
  color: var(--text-muted);
}

.rm-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.rm-title {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rm-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rm-cell {
  flex-shrink: 0;
  min-width: 64px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.rm-cell:last-child {
  border-right: none;
}
.rm-cell.highlight {
  background: rgba(0, 200, 150, 0.06);
}

.rm-cell-label {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rm-cell-val {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

[data-url] {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .rm-scroll {
    overflow-x: visible;
  }
  .rm-cell {
    min-width: 76px;
    padding: 0.75rem 0.6rem;
  }
  .rm-cell-val {
    font-size: 0.9rem;
  }
  .log-row {
    grid-template-columns: 4rem 1fr 1fr auto;
    padding: 0.9rem 0;
  }
}
.text-muted {
  color: var(--text-muted);
}
