/* EGC · Electric Global Cost — v1.2.0 · Firmado por Priscila Torres · powered by Priscila Torres */

/* ───────── Tokens ───────── */
:root {
  --red: #D7141A;
  --red-press: #B00F14;
  --red-soft: #FCEBEC;
  --red-line: #F4C3C5;
  --black: #111214;
  --on-black: #FFFFFF;
  --on-black-2: #A9ACB3;
  --bg: #F3F3F5;
  --surface: #FFFFFF;
  --surface-2: #ECECEF;
  --surface-3: #E2E3E7;
  --ink: #111214;
  --ink-2: #4A4D55;
  --ink-3: #767A84;
  --line: #DCDDE2;
  --line-strong: #C4C6CD;
  --blue: #1D5FD1;
  --blue-soft: #E7EFFC;
  --green: #147A45;
  --green-soft: #E3F3EA;
  --amber: #9A6200;
  --amber-soft: #FFF2D6;
  --focus: #1D5FD1;
  --shadow-sheet: 0 -8px 40px rgba(17, 18, 20, .18);
  --shadow-pop: 0 10px 30px rgba(17, 18, 20, .16);

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --tap: 48px;
  --gutter: 16px;
  --topbar-h: 56px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #F2353B;
    --red-press: #FF5C61;
    --red-soft: #3A1517;
    --red-line: #6A2427;
    --black: #000000;
    --on-black: #FFFFFF;
    --on-black-2: #9FA2A9;
    --bg: #0B0B0D;
    --surface: #161719;
    --surface-2: #1F2023;
    --surface-3: #2A2B2F;
    --ink: #F2F2F4;
    --ink-2: #B9BCC3;
    --ink-3: #878B95;
    --line: #2B2D31;
    --line-strong: #3C3E43;
    --blue: #7BA8FF;
    --blue-soft: #15233D;
    --green: #56C98C;
    --green-soft: #11291C;
    --amber: #F2B650;
    --amber-soft: #2E2410;
    --focus: #7BA8FF;
    --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, .6);
    --shadow-pop: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #F2353B;
  --red-press: #FF5C61;
  --red-soft: #3A1517;
  --red-line: #6A2427;
  --black: #000000;
  --on-black: #FFFFFF;
  --on-black-2: #9FA2A9;
  --bg: #0B0B0D;
  --surface: #161719;
  --surface-2: #1F2023;
  --surface-3: #2A2B2F;
  --ink: #F2F2F4;
  --ink-2: #B9BCC3;
  --ink-3: #878B95;
  --line: #2B2D31;
  --line-strong: #3C3E43;
  --blue: #7BA8FF;
  --blue-soft: #15233D;
  --green: #56C98C;
  --green-soft: #11291C;
  --amber: #F2B650;
  --amber-soft: #2E2410;
  --focus: #7BA8FF;
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, .6);
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ───────── Boot ───────── */
.boot { min-height: 100dvh; display: grid; place-content: center; gap: 14px; justify-items: center; background: var(--black); color: var(--on-black-2); }
.boot-mark { filter: invert(1) hue-rotate(180deg); }
.boot-text { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; }

/* ───────── Shell ───────── */
.app { min-height: 100dvh; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--black); color: var(--on-black);
  padding-top: var(--safe-t);
}
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding-inline: 8px 12px; }
.topbar-title { flex: 1; min-width: 0; font-family: var(--f-display); font-weight: 750; font-stretch: 108%; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 6px; }
.topbar-brand img { height: 30px; width: auto; }
.topbar-brand .wordmark { font-family: var(--f-display); font-weight: 900; font-stretch: 115%; font-size: 22px; letter-spacing: .01em; }
.topbar-brand .wordmark-sub { font-family: var(--f-mono); font-size: 10.5px; color: var(--on-black-2); letter-spacing: .08em; text-transform: uppercase; display: block; margin-top: -2px; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; color: inherit;
  display: inline-grid; place-items: center; border-radius: 50%; flex: none;
}
.icon-btn:active { background: rgba(127, 127, 127, .18); }
.icon-btn svg { width: 24px; height: 24px; }

.content { flex: 1; width: 100%; max-width: 760px; margin-inline: auto; padding: 16px var(--gutter) calc(var(--tabbar-h) + var(--safe-b) + 28px); }
.content.has-dock { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 116px); }
.content.no-tabbar { padding-bottom: calc(var(--safe-b) + 120px); }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-in { height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; max-width: 560px; margin-inline: auto; }
.tab {
  height: 100%; border: 0; background: transparent; color: var(--ink-3);
  display: grid; justify-items: center; align-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { color: var(--red); }
.tab-plus { display: grid; place-items: center; }
.tab-plus span {
  width: 56px; height: 56px; border-radius: 18px; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(215, 20, 26, .38);
  transform: translateY(-10px);
}
.tab-plus span svg { width: 28px; height: 28px; }
.tab-plus:active span { background: var(--red-press); }

/* Desktop rail */
.rail { display: none; }
@media (min-width: 960px) {
  .shell { flex-direction: row; }
  .rail {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; width: 248px; flex: none;
    background: var(--black); color: var(--on-black); padding: 18px 12px;
  }
  .rail-logo { padding: 4px 10px 18px; }
  .rail-logo img { width: 180px; }
  .rail a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--on-black-2); text-decoration: none; font-weight: 600; }
  .rail a svg { width: 20px; height: 20px; }
  .rail a:hover { color: var(--on-black); background: rgba(255,255,255,.06); }
  .rail a[aria-current="page"] { color: var(--on-black); background: rgba(255,255,255,.1); }
  .rail a[aria-current="page"] svg { color: var(--red); }
  .rail .rail-new { margin: 6px 0 14px; background: var(--red); color: #fff; justify-content: center; }
  .rail .rail-new:hover { background: var(--red-press); color: #fff; }
  .rail-sign { margin-top: auto; padding: 12px; font-size: 12px; color: var(--on-black-2); line-height: 1.4; }
  .main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .tabbar { display: none; }
  .content { padding-bottom: 48px; padding-top: 24px; }
  .content.has-dock { padding-bottom: 140px; }
  .topbar .only-mobile { display: none; }
}

/* ───────── Typography helpers ───────── */
.h-display { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.05; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 2px 10px; }
.section-title h2 { font-family: var(--f-display); font-weight: 750; font-stretch: 106%; font-size: 18px; letter-spacing: -.01em; }
.section-title .link-btn { font-size: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.center { text-align: center; }

/* ───────── Buttons ───────── */
.btn {
  min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color .12s, border-color .12s, transform .08s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--red-press); }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:active { background: var(--surface-2); }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red-line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--red); font-weight: 700; text-decoration: none; }
.chip-btn {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ───────── Surfaces & lists ───────── */
.panel { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.panel-pad { padding: 16px; }
.list { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 64px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: transparent; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0;
}
.row:last-child { border-bottom: 0; }
a.row:active, button.row:active { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 650; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.row-meta { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }
.row-end { text-align: right; flex: none; display: grid; gap: 4px; justify-items: end; }
.row-amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.row-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ink-2); font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.row-icon svg { width: 20px; height: 20px; }
.chev { color: var(--ink-3); width: 18px; height: 18px; flex: none; }

.empty { text-align: center; padding: 34px 20px; display: grid; gap: 10px; justify-items: center; }
.empty svg { width: 42px; height: 42px; color: var(--ink-3); }
.empty h3 { font-family: var(--f-display); font-weight: 750; font-size: 18px; }
.empty p { color: var(--ink-3); max-width: 34ch; font-size: 15px; }

/* Pills (estado) */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-borrador { background: var(--surface-2); color: var(--ink-2); }
.pill-enviado { background: var(--blue-soft); color: var(--blue); }
.pill-aceptado { background: var(--green-soft); color: var(--green); }
.pill-rechazado { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red-line); }
.pill-pagado { background: var(--ink); color: var(--surface); }
.pill-pagado::before { background: var(--green); }
.pill-neutral { background: var(--surface-2); color: var(--ink-2); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }
.pill-info { background: var(--blue-soft); color: var(--blue); }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-plain::before { display: none; }

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-dark { background: var(--ink); color: var(--surface); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }

/* ───────── Home ───────── */
.hero-meter {
  background: var(--black); color: var(--on-black); border-radius: var(--r-lg); padding: 18px 18px 16px;
  position: relative; overflow: hidden;
}
.hero-meter::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 53, 59, .32), transparent 65%);
  pointer-events: none;
}
.hero-meter .eyebrow { color: var(--on-black-2); }
.hero-amount { font-family: var(--f-display); font-weight: 850; font-stretch: 118%; font-size: clamp(34px, 10vw, 46px); letter-spacing: -.02em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hero-amount small { font-size: .45em; font-weight: 700; color: var(--on-black-2); margin-right: 4px; vertical-align: .55em; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-split b { display: block; font-family: var(--f-display); font-weight: 750; font-size: 18px; font-variant-numeric: tabular-nums; }
.hero-split span { font-size: 12.5px; color: var(--on-black-2); }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); margin-right: 6px; vertical-align: 1px; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 620px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.kpi:active { background: var(--surface-2); }
.kpi b { font-family: var(--f-display); font-weight: 800; font-size: 26px; font-stretch: 110%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--ink-3); line-height: 1.25; }
.kpi.attn b { color: var(--red); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick a, .quick button { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 78px; display: grid; justify-items: center; align-content: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 650; text-align: center; padding: 8px 4px; line-height: 1.15; }
.quick svg { width: 24px; height: 24px; color: var(--red); }
.quick a:active, .quick button:active { background: var(--surface-2); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--amber-soft); color: var(--ink); margin-bottom: 12px; font-size: 14.5px; }
.banner svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 1px; }
.banner.info { background: var(--blue-soft); }
.banner.info svg { color: var(--blue); }
.banner.danger { background: var(--red-soft); }
.banner.danger svg { color: var(--red); }
.banner .btn-sm { margin-top: 8px; }

/* ───────── Search & filters ───────── */
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 44px !important; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; margin-inline: -2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.toolbar { display: grid; gap: 4px; margin-bottom: 12px; }
.sticky-tools { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 10; background: var(--bg); padding-top: 4px; margin-top: -4px; }

/* ───────── Forms ───────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
.field .req { color: var(--red); }
.hint { font-size: 13px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 1.3; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input.invalid { border-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 360px) { .grid-2 { grid-template-columns: 1fr; } }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; font-size: 15px; }
.input-affix .affix.l { left: 14px; }
.input-affix .affix.r { right: 14px; }
.input-affix .input.pl { padding-left: 30px; }
.input-affix .input.pr { padding-right: 34px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { min-height: 40px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.check .check-text { display: grid; gap: 2px; }
.check .check-text b { font-weight: 650; }
.check .check-text span { font-size: 13.5px; color: var(--ink-3); }

.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: 260px; overflow-y: auto; }
.combo-list button { width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.combo-list button:last-child { border-bottom: 0; }
.combo-list button:active, .combo-list button.hl { background: var(--surface-2); }
.combo-list .combo-new { color: var(--red); font-weight: 700; }

/* ───────── Sheets / dialogs ───────── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 12, .5); animation: fade .16s ease-out; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-sheet);
  max-height: calc(100dvh - 24px - var(--safe-t)); display: flex; flex-direction: column;
  animation: rise .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet.full { height: calc(100dvh - 12px - var(--safe-t)); }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 48px)); border-radius: 20px; max-height: min(86dvh, 860px); animation: pop .18s ease-out; }
  .sheet.full { height: min(86dvh, 860px); }
}
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
@media (min-width: 720px) { .sheet-grab { display: none; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; flex: none; }
.sheet-head h2 { flex: 1; font-family: var(--f-display); font-weight: 780; font-stretch: 106%; font-size: 19px; letter-spacing: -.01em; }
.sheet-body { padding: 4px 18px 18px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; background: var(--surface); border-radius: 0 0 20px 20px; }
.sheet-foot .btn { flex: 1; }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translate(-50%, -48%) scale(.98); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.action-list { display: grid; }
.action-list button, .action-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 4px; border: 0; background: transparent; text-align: left; font-weight: 650; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.action-list button:last-child, .action-list a:last-child { border-bottom: 0; }
.action-list svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.action-list .danger, .action-list .danger svg { color: var(--red); }
.action-list .al-sub { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }

/* Toast */
.toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 120; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-pop); pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; animation: rise .2s ease-out; }
.toast button { background: transparent; border: 0; color: var(--red); font-weight: 800; padding: 4px; }
:root[data-theme="dark"] .toast button { color: #FF6B70; }

/* ───────── Budget ───────── */
.budget-head { display: grid; gap: 8px; }
.budget-number { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.budget-title { font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: 25px; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }

.meter {
  background: var(--black); color: var(--on-black); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 4px; margin-top: 14px;
}
.meter .eyebrow { color: var(--on-black-2); display: flex; justify-content: space-between; gap: 10px; }
.meter-amount { font-family: var(--f-display); font-weight: 850; font-stretch: 118%; font-size: clamp(32px, 9.5vw, 42px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.meter-sub { font-size: 13.5px; color: var(--on-black-2); }
.meter-bar { height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.meter-bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.meter-bar i.done { background: #3DBE7A; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

.lines { display: grid; }
.line { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.line:last-child { border-bottom: 0; }
.line-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.line-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-meta { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.group-head h3 { font-family: var(--f-display); font-weight: 750; font-size: 15.5px; letter-spacing: 0; }
.group-head span { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }

.summary { display: grid; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .minus { color: var(--green); }
.summary .total { border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; font-family: var(--f-display); font-weight: 800; font-size: 20px; }

/* Editor */
.editor-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 12; background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.editor-nav::-webkit-scrollbar { display: none; }
.editor-nav a { flex: none; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.ed-section { scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 60px); margin-top: 18px; }
.ed-section > h2 { font-family: var(--f-display); font-weight: 780; font-stretch: 106%; font-size: 19px; margin: 0 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.eline { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.eline:last-child { border-bottom: 0; }
.eline-head { display: flex; gap: 8px; align-items: flex-start; }
.eline-name { flex: 1; min-width: 0; font-weight: 650; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.eline-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; font-size: 13px; color: var(--ink-3); }
.eline-grid { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 10px; align-items: end; }
.eline-grid .field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.eline-total { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.eline-total b { font-size: 16.5px; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); min-height: var(--tap); }
.stepper button { border: 0; background: var(--surface-2); font-size: 20px; font-weight: 700; color: var(--ink); }
.stepper button:active { background: var(--surface-3); }
.stepper input { border: 0; min-width: 0; text-align: center; font-weight: 700; font-size: 16px; background: transparent; padding: 0 2px; font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--ink); }
.hint-chip { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--blue-soft); color: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.hint-chip button { border: 0; background: var(--blue); color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px; padding: 6px 10px; flex: none; }
.hint-chip.warn { background: var(--amber-soft); }

/* Tablero: dock inferior de totales */
.dock {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 35;
  background: var(--black); color: var(--on-black); border-top: 2px solid var(--red);
}
.content.no-tabbar ~ .dock, .dock.no-tabbar { bottom: 0; padding-bottom: var(--safe-b); }
.dock-in { max-width: 760px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); }
.dock-read { flex: 1; min-width: 0; }
.dock-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-black-2); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-amount { font-family: var(--f-display); font-weight: 850; font-stretch: 116%; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { flex: none; }
@media (min-width: 960px) { .dock { left: 248px; bottom: 0; } }

/* Picker */
.pick-row { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; background: transparent; }
.pick-row:active { background: var(--surface-2); }
.pick-main { flex: 1; min-width: 0; }
.pick-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pick-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.pick-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.pick-add { width: 36px; height: 36px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.pick-add svg { width: 20px; height: 20px; }
.pick-row.added .pick-add { background: var(--green-soft); color: var(--green); }
.pick-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 2px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* Tabs internos */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; padding: 12px 12px 10px; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; font-size: 15px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs .count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* Price items */
.price { font-variant-numeric: tabular-nums; font-weight: 700; }
.price-sub { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-3); }
.noprice { color: var(--amber); font-weight: 700; font-size: 13.5px; }

/* Import */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); }
.steps span.on { background: var(--red); }
.steps-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 26px 16px; text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--surface); }
.dropzone svg { width: 36px; height: 36px; color: var(--red); }
.dropzone.drag { border-color: var(--red); background: var(--red-soft); }
.map-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.map-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.map-table th, .map-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.map-table th { background: var(--surface-2); vertical-align: top; }
.map-table th .select { min-height: 40px; font-size: 14px; padding: 6px 30px 6px 10px; min-width: 130px; border-radius: 9px; background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; }
.map-table th .col-head { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.map-table tr.is-header td { color: var(--ink-3); font-style: italic; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--ink-3); }
.stat.good b { color: var(--green); }
.stat.warn b { color: var(--amber); }
.stat.info b { color: var(--blue); }
.stat.bad b { color: var(--red); }
.diff-up { color: var(--red); font-weight: 700; }
.diff-down { color: var(--green); font-weight: 700; }

/* Progress */
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); }

/* Images */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.thumb button svg { width: 16px; height: 16px; }

/* Auth / onboarding */
.auth { min-height: 100dvh; background: var(--black); color: var(--on-black); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 28px) 20px calc(var(--safe-b) + 20px); }
.auth-in { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.auth-logo { width: min(300px, 78vw); margin: 6px auto 4px; }
.auth h1 { font-family: var(--f-display); font-weight: 850; font-stretch: 112%; font-size: 30px; letter-spacing: -.02em; line-height: 1.05; }
.auth p.lead { color: var(--on-black-2); font-size: 16px; }
.auth .panel { background: #1A1B1E; border-color: #2A2C30; color: #F2F2F4; }
.auth .input { background: #0F1012; border-color: #3A3C42; color: #F2F2F4; }
.auth .input:focus { border-color: #fff; }
.auth .field > label { color: #C3C6CC; }
.auth .hint, .auth .muted { color: #9FA2A9; }
.auth .btn-outline { background: transparent; color: #fff; border-color: #4A4D55; }
.auth .link-btn { color: #FF5C61; }
.auth .banner { color: #111214; }
.sign { text-align: center; font-size: 12.5px; color: var(--on-black-2); line-height: 1.5; margin-top: auto; padding-top: 18px; }
.sign b { color: var(--on-black); font-weight: 650; }

.sign-card { text-align: center; padding: 22px 16px; display: grid; gap: 6px; justify-items: center; }
.sign-card img { width: 220px; }
.sign-card .signature { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 20px; }

/* Settings */
.set-group { margin-top: 18px; }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong); }
.color-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); padding: 8px; display: grid; gap: 6px; font-weight: 700; font-size: 13px; text-align: center; }
.tpl[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tpl-prev { aspect-ratio: .72; border-radius: 6px; background: #fff; border: 1px solid #e3e3e6; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.tpl-prev i { display: block; }
.tpl-lines { padding: 6px; display: grid; gap: 4px; align-content: start; }
.tpl-lines span { height: 4px; border-radius: 2px; background: #e6e6ea; }
.tpl-lines span.acc { width: 50%; }

.logo-box { width: 100%; max-width: 240px; aspect-ratio: 16 / 7; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--ink-3); font-size: 14px; }
.logo-box img { max-height: 100%; object-fit: contain; }

/* Checklist cómputo */
.check-line { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.check-line:last-child { border-bottom: 0; }
.check-line input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--green); flex: none; }
.check-line.done .row-title { text-decoration: line-through; color: var(--ink-3); }

.divider { height: 1px; background: var(--line); margin: 16px 0; }
.spacer { height: 12px; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 8px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.foot-sign { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 28px; line-height: 1.5; }
.foot-sign b { color: var(--ink-2); font-weight: 650; }

.sign-card > svg { width: 44px; height: 44px; color: var(--green); }
details summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.only-mobile { display: inline-flex; }
@media (min-width: 960px) { .only-mobile { display: none !important; } }
.grid-2 > *, .grid-3 > *, .field, .eline-grid > * { min-width: 0; }
.input, .select, .textarea { min-width: 0; max-width: 100%; }
input[type="date"].input { display: block; -webkit-appearance: none; appearance: none; min-height: var(--tap); }
.empty .btn svg { width: 20px; height: 20px; color: inherit; }
.check-line .row-main { min-width: 0; }

/* EGC v1.3 · Mi plan */
.plan-bolt { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--black); color: var(--red); display: grid; place-items: center; }
.plan-bolt svg { width: 24px; height: 24px; }
.panel .btn-block { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; }

/* ── Tareas rápidas (editor de presupuesto) ── */
.qt { padding: 12px; margin-bottom: 12px; }
.qt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 2px 10px; }
.qt-head h3 { margin: 0; font-size: 16px; }
.qt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .qt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qt-tile { border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 10px; display: grid; gap: 6px; align-content: space-between; background: var(--surface); }
.qt-tile.on { border-color: var(--red); background: var(--red-soft); }
.qt-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.qt-price { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.qt-price span { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.qt-ctl { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line-strong); background: var(--surface); min-height: 44px; }
.qt-ctl button { border: 0; background: var(--surface-2); font-size: 22px; font-weight: 700; color: var(--ink); height: 100%; }
.qt-ctl button[data-quick-step="1"] { background: var(--red); color: #fff; }
.qt-ctl button:disabled { opacity: .4; }
.qt-ctl b { text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Calculadora AEA ── */
.calc-res { margin-top: 14px; }
.calc-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-main > div { background: var(--surface-2); border-radius: var(--r-md); padding: 12px; display: grid; gap: 2px; }
.calc-main b { font-family: var(--f-display); font-size: 28px; line-height: 1.1; }
.calc-main small { color: var(--ink-3); font-size: 13px; }
.calc-lbl { font-size: 13px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.calc-rows { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.calc-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-rows b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--green); font-weight: 650; font-size: 14.5px; }
.calc-check svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.calc-badge-ok { background: var(--green-soft); color: var(--green); }
.calc-tabla { margin-top: 14px; }
.calc-tabla summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.calc-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-tabla th, .calc-tabla td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.calc-tabla th { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.calc-tabla tr.on td { font-weight: 700; background: var(--green-soft); }
.calc-ok { color: var(--green); font-weight: 800; }
.calc-no { color: var(--red); font-weight: 800; }
.calc-home { margin-top: 10px; background: var(--red-soft); border: 1px solid var(--red-line); border-radius: var(--r-md); }
.calc-home .row-icon { background: var(--red); color: #fff; }
.calc-home .row-title { color: var(--ink); }
.calc-home .chev { color: var(--red); }
.calc-home:hover { border-color: var(--red); }

/* EGC 1.5 · Ajuste por IPC dentro de "Ajustar precios" */
.ipc-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--surface); }
.ipc-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ipc-title svg { width: 20px; height: 20px; color: var(--red, #D7141A); flex: none; }
.ipc-box .field { margin-bottom: 8px; }
.ipc-res { margin: 0 0 10px; font-size: 15px; }

/* EGC 1.5.4 · "Qué incluye" en el editor de presupuestos */
.incl-chip[data-state="si"] { background: rgba(22, 163, 74, .14); border-color: #16A34A; color: #15803D; }
.incl-chip[data-state="no"] { background: rgba(215, 20, 26, .10); border-color: #D7141A; color: #B00F14; }
[data-theme="dark"] .incl-chip[data-state="si"], .dark .incl-chip[data-state="si"] { color: #4ADE80; }
[data-theme="dark"] .incl-chip[data-state="no"], .dark .incl-chip[data-state="no"] { color: #F87171; }

/* EGC 1.6.0 · selector de tareas rápidas (electricidad / aire) */
.qt-head { flex-wrap: wrap; gap: 8px; }
.qt-set button { font-size: 13px; padding-inline: 10px; }

/* EGC 1.6.2 · todas las pestañas visibles y aviso de "otras listas" */
.tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
.other-lists { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-2); }
.other-lists > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.other-lists .chip-btn b { font-family: var(--f-mono); margin-left: 4px; }

/* EGC 1.9 · Protocolo SRT 900/15 */
.proto-aviso { margin: 0 0 14px; border: 2px solid var(--amber); }
.proto-pasos { position: sticky; top: calc(var(--topbar-h) + var(--safe-t, 0px)); z-index: 5; box-shadow: 0 0 0 6px var(--bg); }
.proto-toma { margin-top: 12px; border: 2px solid var(--line); }
.proto-toma.bad { border-color: var(--red); }
.proto-yn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.proto-yn > span { font-size: 15px; line-height: 1.3; }
.proto-yn .segmented { flex: none; min-width: 124px; }

/* EGC 1.9.3 · Rubros de las listas: todos a la vista, sin scroll lateral */
.filters.wrap { flex-wrap: wrap; overflow: visible; }
