/* Layout: cabecera editorial, selector de cuenta, resumen en cinta, y una línea de tiempo por mes donde cada cambio muestra sus tres lecturas: positivo, consecuencia, negativo. */
:root {
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --navy: #0B1B4D;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --border: #E5E7EB;
  --blue: #1946E3;
  --blue-hover: #1238B5;
  --blue-press: #0E2B8C;
  --blue-tint: #EEF2FE;
  --up: #3E9B6B;
  --warn: #C6902F;
  --down: #C0544B;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--white); }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  padding-block: 40px 96px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1120px; margin: 0 auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera */
.brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 56px; flex-wrap: wrap; }
.brand b { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--blue); }
.brand span { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ""; width: 20px; height: 2px; background: var(--blue); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin: 16px 0 14px; text-wrap: balance; max-width: 18ch; }
h1 em { font-style: normal; color: var(--blue); }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0; text-wrap: pretty; }

/* Selector de cuenta */
.accounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 48px 0 24px; }
.tab { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: 10px 18px; font-weight: 500; cursor: pointer; transition: border-color 150ms, background-color 150ms, color 150ms; }
.tab:hover { border-color: var(--blue); }
.tab .n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tab[aria-selected="true"] .n { color: #CFD9FB; }

/* Resumen */
.summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 32px; }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .num { font-size: 40px; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat.total .num { color: var(--blue); }
.stat .lab { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stat .lab .ic { width: 16px; height: 16px; }

/* Barra de herramientas */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.search { position: relative; flex: 1 1 240px; min-width: 0; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; width: 100%; }
.field-in, .toolbar select, .search input { height: 42px; border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; background: var(--white); transition: border-color 150ms; }
.toolbar select { appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.toolbar select:hover, .search input:hover, .field-in:hover { border-color: var(--faint); }
.toolbar select:focus, .search input:focus { border-color: var(--blue); outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); font-weight: 500; cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }
.btn.primary:active { background: var(--blue-press); border-color: var(--blue-press); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: var(--border); }
.btn.danger:hover { border-color: var(--down); color: var(--down); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* Línea de tiempo */
.month { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.month::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.group { margin-bottom: 48px; }
.entry { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.when { display: flex; flex-direction: column; align-items: flex-start; padding-top: 22px; }
.when .d { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.when .m { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; min-width: 0; transition: border-color 150ms; }
.card:hover { border-color: var(--blue); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); color: var(--muted); }
.tag.soft { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue); }
.verdict { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.verdict .ic { width: 16px; height: 16px; }
.v-pos .ic { color: var(--up); } .v-mix .ic { color: var(--warn); } .v-neg .ic { color: var(--down); } .v-pen .ic { color: var(--muted); }
.v-pen { color: var(--muted); }
.camp { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; overflow-wrap: anywhere; }
.change { font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.why { margin: 10px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 78ch; }
.why b { font-weight: 500; color: var(--ink); }
.meas { margin-top: 14px; }
.meas summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--blue); list-style: none; transition: color 150ms; }
.meas summary::-webkit-details-marker { display: none; }
.meas summary::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat; }
.meas[open] summary::after { transform: rotate(180deg); }
.meas summary:hover { color: var(--blue-hover); }
.meas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; padding: 16px; background: var(--blue-tint); border-radius: 12px; }
.meas-grid > div { min-width: 0; }
.meas-grid h5 { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.meas-grid p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.effects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--border); }
.eff { padding: 16px 18px 4px 0; min-width: 0; }
.eff + .eff { padding-left: 18px; border-left: 1px solid var(--border); }
.eff h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.eff h4 .ic { width: 16px; height: 16px; }
.eff.pos h4 .ic { color: var(--up); } .eff.neg h4 .ic { color: var(--down); } .eff.con h4 .ic { color: var(--blue); }
.eff p { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.eff p.none { color: var(--faint); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.card-foot .meta { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; min-width: 0; }
.card-foot .meta span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.card-foot .meta .ic { width: 15px; height: 15px; }

/* Estados vacíos y avisos */
.empty { border: 1px dashed var(--border); border-radius: 24px; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.empty p { margin: 0; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.empty .btn { margin-top: 8px; }
.notice { border: 1px solid var(--border); background: var(--blue-tint); border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.notice .ic { color: var(--blue); }

/* Formulario */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.4); display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); z-index: 10; }
.overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 24px; border: 1px solid var(--border); width: 100%; max-width: 720px; padding: 32px; margin: auto 0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 150ms, color 150ms; flex: none; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label, .f .lbl { font-size: 13px; font-weight: 500; }
.f .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.f input[type="text"], .f input[type="date"], .f select, .f textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--white); transition: border-color 150ms; }
.f select { height: 44px; }
.f input[type="text"], .f input[type="date"] { height: 44px; }
.f textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--faint); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--blue); outline: none; }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--down); }
.sect { grid-column: 1 / -1; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-weight: 500; transition: border-color 150ms, background-color 150ms; }
.seg label:hover { border-color: var(--blue); }
.seg input:checked + label { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg label .ic { width: 16px; height: 16px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-foot .right { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.err { color: var(--down); font-size: 13px; margin: 12px 0 0; min-height: 1em; }

@media (max-width: 860px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); overflow: hidden; }
  .stat { background: var(--white); }
  .stat + .stat { border-left: 0; }
  .stat.total { grid-column: 1 / -1; }
  .effects, .meas-grid { grid-template-columns: 1fr; }
  .eff, .eff + .eff { padding: 16px 0 4px; border-left: 0; }
  .eff + .eff { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  body { padding-block: 24px 72px; }
  .brand { margin-bottom: 36px; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .when { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  .when .d { font-size: 24px; } .when .m { margin-top: 0; }
  .card { padding: 18px 16px; }
  .change { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .toolbar .btn.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Acceso y sesión */
.brand .who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.login .login-box { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-height: 80px; }

[hidden] { display: none !important; }

.warn { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--blue-tint); font-size: 13px; }

/* ---------- Vista compacta ---------- */
.brand { margin-bottom: 28px; }
#app h1 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 0; max-width: none; }
.accounts { margin: 24px 0 16px; }
.summary { margin-bottom: 20px; }
.stat { padding: 14px 18px; gap: 4px; }
.stat .num { font-size: 28px; }
.toolbar { margin-bottom: 20px; }

.viewbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.month-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.month-title { margin: 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-transform: capitalize; min-width: 8.5em; text-align: center; }
.icon-btn.sm { width: 34px; height: 34px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer; transition: background-color 150ms, color 150ms; }
.vbtn:hover { color: var(--ink); }
.vbtn[aria-selected="true"] { background: var(--blue); color: var(--white); }
.vbtn .ic { width: 16px; height: 16px; }

/* Calendario */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--border); gap: 1px; }
.cal-dow { background: var(--white); padding: 10px 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-cell { background: var(--white); min-height: 118px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.out { background: #FAFAFB; }
.cal-cell.out .cal-day { color: var(--faint); }
.cal-cell.multi { cursor: pointer; }
.cal-day { align-self: flex-start; min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-day { background: var(--blue); color: var(--white); }
.chip { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color 150ms; }
.chip:hover { border-color: var(--blue); }
.chip.approx { border-style: dashed; }
.chip .ic { width: 14px; height: 14px; }
.chip-t { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.more { align-self: flex-start; border: 0; background: transparent; padding: 2px 6px; font-size: 12px; font-weight: 500; color: var(--blue); cursor: pointer; border-radius: 999px; }
.more:hover { background: var(--blue-tint); }
.cal-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .ic { width: 14px; height: 14px; }
.cal-legend .v-pen { color: var(--muted); }
.cal-legend .lg-count { margin-left: auto; color: var(--ink); font-weight: 500; }

/* Lista compacta */
.row { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; transition: border-color 150ms; overflow: hidden; }
.row:hover, .row.open { border-color: var(--blue); }
.row-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto 18px; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.row-date { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.row-date b { font-size: 18px; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main .camp { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-change { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-fx { display: inline-flex; gap: 4px; }
.fx .ic { width: 15px; height: 15px; color: var(--border); }
.fx.on.pos .ic { color: var(--up); } .fx.on.con .ic { color: var(--blue); } .fx.on.neg .ic { color: var(--down); }
.row-head > .ic { color: var(--muted); transition: transform 150ms; }
.row.open .row-head > .ic { transform: rotate(180deg); }
.row-body { padding: 0 20px 18px 94px; }
.row-body .card-head { margin-top: 4px; }

/* Panel de detalle */
.modal.wide { max-width: 860px; }
.modal.wide .modal-head h2 { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.modal.wide .modal-head { margin-bottom: 16px; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); text-align: left; cursor: pointer; transition: border-color 150ms; }
.day-item:hover { border-color: var(--blue); }
.day-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-main .camp { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .row-head { grid-template-columns: 54px minmax(0, 1fr) auto 18px; }
  .row-tags, .row-fx { display: none; }
  .row-body { padding: 0 16px 16px; }
  .cal-cell { min-height: 92px; }
}
@media (max-width: 600px) {
  .month-title { font-size: 18px; min-width: 7em; margin: 0 2px; }
  .cal-dow { padding: 8px 2px; font-size: 10px; letter-spacing: 0.04em; }
  .cal-cell { min-height: 64px; padding: 4px 3px 6px; align-items: center; gap: 3px; }
  .cal-day { align-self: center; }
  .chip { height: 22px; justify-content: center; padding: 0; }
  .chip-t { display: none; }
  .more { font-size: 11px; padding: 0 2px; align-self: center; }
  .row-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date verdict" "main main"; gap: 8px 10px; }
  .row-date { grid-area: date; }
  .row-head .verdict { grid-area: verdict; }
  .row-main { grid-area: main; }
  .row-head > .ic { display: none; }
  .cal-legend .lg-count { margin-left: 0; }
}

/* Ajustes */
.toolbar .search input { padding-left: 42px; }
.month-title { text-transform: none; }
.month-title::first-letter { text-transform: uppercase; }
.month-nav > .month-title:first-child { margin-left: 0; text-align: left; min-width: 0; }
.row.open .row-change { display: block; -webkit-line-clamp: unset; overflow: visible; }
.row.open .row-main .camp { white-space: normal; }
.row-body .tags { margin: 2px 0 12px; }
.row-body .effects { margin-top: 12px; }

@media (max-width: 600px) {
  .toolbar { gap: 8px; }
  .toolbar select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .stat { padding: 10px 14px; }
  .stat .num { font-size: 24px; }
}

.notice.error { background: #FDF1F0; }
.notice.error .ic { color: var(--down); }

.chip.draft { background: var(--blue-tint); border-color: var(--blue-tint); }
.chip.draft:hover { border-color: var(--blue); }
.tag.draft { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue); }
.row-tags { display: inline-flex; gap: 6px; }

.row-change { white-space: pre-line; }
.toolbar .search { flex: 1 1 180px; }
.verdict { white-space: nowrap; flex: none; }
