/* «Ayuda», the Help Center (web/js/help.js, docs/HELP_CENTER.md), drawn in the brand book's
   language (docs/BRAND.md): Inter ExtraBold headings with tight tracking and one green idea,
   JetBrains Mono for labels, numbers and dates, numbered steps, and the data rain on the cover.
   Backgrounds, surfaces and text colours stay the app's tokens (styles.css), so both themes work
   and the screen sits inside the app; the brand's own greys are for marketing pieces.
   The two fonts are served from web/fonts/ (Latin subset, SIL OFL) and only download when this
   screen shows text in them. Desktop: the sections on the left, the reading in the middle, the
   article's own index on the right on wide screens. Phone: one column. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

.help-screen {
    --help-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --help-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
    --help-ink: #F5F2ED;                 /* headings: the brand's Blanco, warmed to the app's dark */
    --help-label: var(--primary-light);  /* Verde claro: labels and links on dark */
    --help-green: var(--primary-text);   /* Verde señal: the one green idea, numbers */
    display: flex; flex-direction: column; gap: 28px;
    font-family: var(--help-sans); font-feature-settings: "cv11", "ss01";
    color: var(--text);
}
:root[data-theme="light"] .help-screen {
    --help-ink: var(--text);
    --help-label: var(--primary-text);   /* Verde hondo on light: the light green can't be read */
}

/* The header's «?» while Ayuda is on show. */
#help-btn.active { color: var(--primary-text); background: color-mix(in srgb, var(--primary) 13%, transparent); }

/* ── Shared pieces ────────────────────────────────────────────────────────── */
.help-eyebrow, .help-label {
    margin: 0; font-family: var(--help-mono); font-size: 12px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--help-label);
}
.help-label { color: var(--text-muted); font-weight: 600; }
.help-num {
    font-family: var(--help-mono); font-weight: 700; color: var(--help-green);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.help-arrow { font-family: var(--help-mono); color: var(--help-label); transition: transform .15s; }
.help-mono { font-family: var(--help-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.help-screen mark { background: color-mix(in srgb, var(--primary) 22%, transparent); color: inherit; border-radius: 2px; padding: 0; }

/* ── The cover (home) and the compact bar (every other view) ─────────────── */
.help-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 52px 56px 44px; border-radius: 18px;
    background: var(--bg-2); border: 1px solid var(--border);
}
.help-hero-text { position: relative; z-index: 1; max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.help-headline {
    margin: 0; font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; line-height: 1.04;
    letter-spacing: -0.035em; color: var(--help-ink); text-wrap: balance;
}
.help-headline em { font-style: normal; color: var(--help-green); }
.help-sub { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-muted); max-width: 560px; }

.help-search {
    display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin-top: 8px;
    padding: 0 16px; height: 54px; background: var(--input-bg);
    border: 1px solid var(--border-light); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.help-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.help-search-icon { display: flex; color: var(--text-muted); }
.help-search-icon svg { width: 18px; height: 18px; }
.help-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    color: var(--text); font: inherit; font-size: 16px;
}
.help-search kbd {
    font-family: var(--help-mono); font-size: 11px; color: var(--text-muted);
    padding: 2px 6px; border: 1px solid var(--border-light); border-radius: 5px;
}
.help-try { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.help-try .help-mono { margin-right: 4px; }
.help-try button {
    font-family: var(--help-mono); font-size: 12px; color: var(--help-label); cursor: pointer;
    background: transparent; border: 1px solid var(--border-light); border-radius: 999px; padding: 4px 11px;
}
.help-try button:hover { border-color: var(--primary); }

/* The data rain: an SMB's own figures falling behind the cover, fading toward the words. */
.help-rain {
    position: absolute; inset: 0 0 0 48%; z-index: 0; pointer-events: none; overflow: hidden;
    font-family: var(--help-mono); font-size: 15px; font-weight: 500; line-height: 1.55;
    color: var(--primary-text); opacity: .5;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(#000 30%, transparent 95%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(#000 30%, transparent 95%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
:root[data-theme="light"] .help-rain { opacity: .28; }
.help-rain span {
    position: absolute; top: 0; display: block; writing-mode: vertical-rl; text-orientation: upright;
    letter-spacing: .25em; white-space: nowrap;
    -webkit-mask-image: linear-gradient(#000 20%, transparent 100%); mask-image: linear-gradient(#000 20%, transparent 100%);
}
.help-rain span::first-letter { color: var(--primary-light); }
.help-rain span:nth-child(1)  { left: 4%;  top: -40px; }
.help-rain span:nth-child(2)  { left: 11%; top: 30px; opacity: .6; }
.help-rain span:nth-child(3)  { left: 18%; top: -90px; }
.help-rain span:nth-child(4)  { left: 25%; top: 70px; opacity: .45; }
.help-rain span:nth-child(5)  { left: 32%; top: -20px; }
.help-rain span:nth-child(6)  { left: 39%; top: 10px; opacity: .7; }
.help-rain span:nth-child(7)  { left: 46%; top: -120px; }
.help-rain span:nth-child(8)  { left: 53%; top: 50px; opacity: .5; }
.help-rain span:nth-child(9)  { left: 60%; top: -60px; }
.help-rain span:nth-child(10) { left: 67%; top: 20px; opacity: .65; }
.help-rain span:nth-child(11) { left: 74%; top: -100px; }
.help-rain span:nth-child(12) { left: 81%; top: 40px; opacity: .5; }
.help-rain span:nth-child(13) { left: 88%; top: -30px; }
.help-rain span:nth-child(14) { left: 95%; top: 80px; opacity: .55; }

/* Every view but the cover: the same search in a compact bar. */
.help-screen[data-hero="bar"] .help-hero { padding: 14px 18px; border-radius: 14px; }
.help-screen[data-hero="bar"] .help-hero-text { max-width: none; flex-direction: row; align-items: center; gap: 16px; }
.help-screen[data-hero="bar"] .help-hero :is(.help-rain, .help-sub, .help-try, .help-headline, .help-eyebrow) { display: none; }
.help-bar-title { display: none; }
.help-screen[data-hero="bar"] .help-bar-title {
    display: block; padding: 0; background: transparent; border: 0; cursor: pointer; white-space: nowrap;
    font: 800 21px/1 var(--help-sans); letter-spacing: -0.03em; color: var(--help-ink);
}
.help-screen[data-hero="bar"] .help-bar-title:hover { color: var(--help-green); }
.help-screen[data-hero="bar"] .help-search { margin: 0 0 0 auto; height: 42px; width: min(440px, 100%); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.help-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: start; }
.help-screen[data-hero="full"] .help-layout { grid-template-columns: minmax(0, 1fr); }
.help-screen[data-hero="full"] .help-nav { display: none; }
.help-main { min-width: 0; }

/* The sections on the left; the open one shows its articles. */
.help-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.help-nav-section, .help-nav-item {
    display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
    background: transparent; border: 0; border-radius: 8px; cursor: pointer; font: inherit;
}
.help-nav-section { padding: 7px 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.help-nav-section .help-num { font-size: 11px; color: var(--text-muted); }
.help-nav-section.open .help-num, .help-nav-section.active .help-num { color: var(--help-green); }
.help-nav-items { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 18px; padding-left: 12px; border-left: 1px solid var(--border-light); }
.help-nav-item { padding: 6px 10px; font-size: 13px; color: var(--text-muted); line-height: 1.35; }
.help-nav-section:hover, .help-nav-item:hover { background: var(--surface-hover); color: var(--text); }
.help-nav-item.active { color: var(--help-green); font-weight: 600; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.help-nav-section.active { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.help-loading, .help-lead { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.55; }

.help-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.help-crumbs button, .help-back {
    font-family: var(--help-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); background: transparent; border: 0; padding: 0; cursor: pointer;
}
.help-crumbs button:hover, .help-back:hover { color: var(--help-label); }
.help-crumbs .sep { font-family: var(--help-mono); font-size: 11.5px; color: var(--border-light); }
.help-crumbs .here { font-family: var(--help-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.help-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--help-label); }

/* ── The cover's content ──────────────────────────────────────────────────── */
.help-block { display: flex; flex-direction: column; gap: 16px; }
.help-block + .help-block { margin-top: 44px; }
.help-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* «Empieza aquí»: the first section's first three articles, as the carousel's numbered slides. */
.help-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-start-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 22px;
    text-align: left; cursor: pointer; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    transition: border-color .15s, transform .15s, background .15s;
}
.help-start-card .help-num { font-size: 44px; letter-spacing: -0.02em; }
.help-start-title { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--help-ink); }
.help-start-text { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.help-start-card .help-arrow { margin-top: auto; font-size: 13px; }
.help-start-card:hover, .help-card:hover, .help-next-card:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border-light)); background: var(--surface-hover);
}
.help-start-card:hover .help-arrow, .help-next-card:hover .help-arrow, .help-row:hover .help-arrow { transform: translateX(3px); }

/* Every section: a card with its guides listed. */
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.help-card {
    display: flex; flex-direction: column; padding: 20px 20px 14px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .15s, background .15s;
}
.help-card-head {
    display: flex; flex-direction: column; gap: 8px; padding: 0 0 14px; text-align: left; cursor: pointer;
    background: transparent; border: 0; font: inherit; color: inherit;
}
.help-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.help-card-top .help-num { font-size: 13px; }
.help-card-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--help-ink); }
.help-card-text { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.help-card-list { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.help-card-list button {
    display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 0; text-align: left; cursor: pointer;
    background: transparent; border: 0; font: inherit; font-size: 13.5px; color: var(--text);
}
.help-card-list button::before { content: "→"; font-family: var(--help-mono); font-size: 12px; color: var(--help-label); }
.help-card-list button:hover { color: var(--help-green); }
.help-card-more { font-family: var(--help-mono); font-size: 11.5px; color: var(--text-muted); padding: 6px 0 2px; }

/* ── A section, and search results: a numbered index ─────────────────────── */
.help-page-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; max-width: 720px; }
.help-title {
    margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.08;
    letter-spacing: -0.035em; color: var(--help-ink); text-wrap: balance;
}
.help-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 820px; }
.help-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: baseline; gap: 14px;
    padding: 18px 8px; text-align: left; cursor: pointer;
    background: transparent; border: 0; border-bottom: 1px solid var(--border); font: inherit; color: var(--text);
}
.help-row:hover { background: color-mix(in srgb, var(--surface-hover) 70%, transparent); }
.help-row .help-num { font-size: 16px; }
.help-row-body { display: flex; flex-direction: column; gap: 5px; }
.help-row-kicker { font-family: var(--help-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--help-label); }
.help-row-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--help-ink); }
.help-row-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.help-empty { padding: 40px 0; color: var(--text-muted); font-size: 15px; }
.help-empty p { margin: 0 0 14px; }

/* ── An article ───────────────────────────────────────────────────────────── */
.help-article-wrap { display: grid; grid-template-columns: minmax(0, 720px); gap: 56px; align-items: start; }
.help-article .help-page-head { margin-bottom: 26px; }
.help-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 4px 0 34px; padding: 0 0 22px; border-bottom: 1px solid var(--border); }
.help-meta .help-mono + .help-mono::before { content: "·"; margin-right: 12px; }
.help-meta .btn-primary { height: 38px; padding: 0 16px; font-family: var(--help-sans); font-size: 13.5px; border-radius: 10px; margin-left: auto; }

.help-body { font-size: 15.5px; line-height: 1.72; color: var(--text); counter-reset: help-h2; }
.help-body > p:first-child { font-size: 18px; line-height: 1.55; color: var(--text-muted); margin-bottom: 8px; }
.help-body h2 {
    counter-increment: help-h2; display: flex; flex-direction: column; gap: 8px;
    margin: 46px 0 14px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em;
    color: var(--help-ink); scroll-margin-top: 16px;
}
.help-body h2::before {
    content: counter(help-h2, decimal-leading-zero); font-family: var(--help-mono);
    font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--help-green);
}
.help-body h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--help-ink); scroll-margin-top: 16px; }
.help-body h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: var(--help-ink); }
.help-body p { margin: 0 0 14px; }
.help-body strong { font-weight: 650; color: var(--help-ink); }
.help-body code { font-family: var(--help-mono); font-size: 13px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); }
.help-body a { color: var(--help-label); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:root[data-theme="light"] .help-body a { color: var(--primary-text); }
.help-body a:hover { text-decoration-thickness: 2px; }
/* A link to a screen: a small green tag that reads «go there». */
.help-body a.help-screen-link {
    text-decoration: none; font-weight: 600; color: var(--help-green); white-space: nowrap;
    padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.help-body a.help-screen-link::after { content: " →"; font-family: var(--help-mono); font-size: .85em; }
.help-body a.help-screen-link:hover { background: color-mix(in srgb, var(--primary) 20%, transparent); }

/* Bullets: a small green square, like a data point. */
.help-body ul { list-style: none; margin: 0 0 16px; padding: 0; }
.help-body ul > li { position: relative; margin: 8px 0; padding-left: 22px; }
.help-body ul > li::before {
    content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 1.5px;
    background: var(--primary);
}
/* Steps: the carousel's big numbers, joined by a line. */
.help-body ol { list-style: none; margin: 6px 0 20px; padding: 0; counter-reset: help-step; }
.help-body ol > li { counter-increment: help-step; position: relative; margin: 0; padding: 4px 0 16px 52px; }
.help-body ol > li::before {
    content: counter(help-step, decimal-leading-zero); position: absolute; left: 0; top: 2px;
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
    font-family: var(--help-mono); font-size: 13px; font-weight: 700; color: var(--help-green);
    background: var(--surface); border: 1px solid var(--border-light);
}
.help-body ol > li::after {
    content: ""; position: absolute; left: 17px; top: 40px; bottom: 2px; width: 1px; background: var(--border-light);
}
.help-body ol > li:last-child::after { display: none; }
.help-body li > ul, .help-body li > ol { margin: 8px 0 0; }

/* A note: a dark card with a label, the way a carousel boxes a figure. */
.help-body blockquote {
    margin: 0 0 18px; padding: 16px 20px 6px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border-light);
}
.help-note-label {
    display: block; margin-bottom: 6px;
    font-family: var(--help-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--help-label);
}
.help-body hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.help-body .tablewrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.help-body table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.help-body th {
    text-align: left; padding: 11px 14px; background: var(--surface);
    font-family: var(--help-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}
.help-body td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.help-body tr:last-child td { border-bottom: 0; }

/* A screenshot of the demo company (help/img/, scripts/help_shots.py): framed like a card, at its
   own size or the column's, whichever is smaller; a click opens it whole in a new tab. */
.help-body .help-figure { margin: 8px 0 28px; }
.help-body .help-figure a {
    display: inline-block; max-width: 100%; vertical-align: top; text-decoration: none; overflow: hidden;
    border-radius: 14px; border: 1px solid var(--border-light); background: var(--bg); box-shadow: var(--card-shadow);
    transition: border-color .15s;
}
.help-body .help-figure a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-light)); }
.help-body .help-figure img { display: block; max-width: 100%; height: auto; }
.help-body .help-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* «Sigue con»: the related guides as the carousel's last slide. */
.help-next { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.help-next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.help-next-card {
    display: flex; flex-direction: column; gap: 8px; padding: 18px; text-align: left; cursor: pointer; font: inherit;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    transition: border-color .15s, background .15s;
}
.help-next-title { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--help-ink); }
.help-next-text { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.help-next-card .help-arrow { margin-top: auto; font-size: 12px; }

/* «En esta guía»: the article's own index, on wide screens. */
.help-toc { display: none; }
@media (min-width: 1500px) {
    .help-article-wrap { grid-template-columns: minmax(0, 720px) 220px; }
    .help-toc { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; padding-top: 6px; }
    .help-toc .help-label { margin-bottom: 8px; }
    .help-toc a {
        display: flex; gap: 10px; padding: 5px 0; font-size: 13px; line-height: 1.35; text-decoration: none; color: var(--text-muted);
    }
    .help-toc a .help-num { font-size: 11px; padding-top: 2px; }
    .help-toc a:hover { color: var(--text); }
}

/* ── «Escríbenos» and «Mis mensajes» (web/js/help_feedback.js) ─────────────── */
.help-fb-card {
    margin-top: 44px; padding: 30px 32px 26px; border-radius: 18px; gap: 14px;
    background: var(--bg-2); border: 1px solid var(--border);
}
.help-fb-card-title {
    margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.1;
    letter-spacing: -0.035em; color: var(--help-ink); text-wrap: balance;
}
.help-fb-card-title em { font-style: normal; color: var(--help-green); }
.help-fb-card-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); max-width: 620px; }
.help-fb-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.help-fb-kind {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; text-align: left;
    cursor: pointer; font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, background .15s;
}
.help-fb-kind:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-light)); background: var(--surface-hover); }
.help-fb-kind:hover .help-arrow { transform: translateX(3px); }
.help-fb-kind-title { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--help-ink); }
.help-fb-kind-text { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.help-fb-kind .help-arrow { margin-top: auto; font-size: 12px; }
.help-fb-mine-link, .help-fb-shot-link {
    align-self: flex-start; padding: 0; background: transparent; border: 0; cursor: pointer;
    font-family: var(--help-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--help-label); text-decoration: none;
}
.help-fb-mine-link:hover, .help-fb-shot-link:hover { color: var(--help-green); }

.help-fb-note {
    display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
    margin-top: 36px; padding: 18px 20px; border-radius: 14px;
    background: var(--surface); border: 1px dashed var(--border-light);
    font-size: 14.5px; color: var(--text-muted);
}

.help-nav-fb { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.help-nav-fb .help-num { font-size: 12px; }

.help-fb-form { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.help-fb-field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.help-fb-field legend { padding: 0; margin-bottom: 10px; }
.help-fb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.help-fb-pill { position: relative; cursor: pointer; }
.help-fb-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.help-fb-pill span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface);
    border: 1px solid var(--border-light); transition: border-color .15s, background .15s;
}
.help-fb-pill:hover span { border-color: color-mix(in srgb, var(--primary) 45%, var(--border-light)); }
.help-fb-pill input:checked + span {
    color: var(--help-green); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.help-fb-pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-glow); }
.help-fb-form textarea {
    width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border-radius: 12px;
    font: inherit; font-size: 15px; line-height: 1.55; color: var(--text);
    background: var(--input-bg); border: 1px solid var(--border-light); outline: 0;
    transition: border-color .15s, box-shadow .15s;
}
.help-fb-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.help-fb-count { align-self: flex-end; font-size: 11px; }
.help-fb-drop {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px;
    border: 1px dashed var(--border-light); background: var(--surface); transition: border-color .15s, background .15s;
}
.help-fb-drop.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.help-fb-drop-text { font-size: 13.5px; color: var(--text-muted); }
.help-fb-preview { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.help-fb-preview img {
    display: block; max-width: min(360px, 100%); max-height: 220px; border-radius: 10px;
    border: 1px solid var(--border-light); background: var(--bg);
}
.help-fb-goes { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.help-fb-error {
    margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px;
    color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.help-fb-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.help-fb-actions .btn-primary { min-width: 140px; }
.help-fb-whatsapp { font-size: 14px; color: var(--text-muted); }
.help-fb-whatsapp a { color: var(--help-label); font-weight: 600; text-decoration: none; }
.help-fb-whatsapp a:hover { text-decoration: underline; }

.help-fb-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; max-width: 760px; }
.help-fb-msg {
    display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
}
.help-fb-msg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.help-fb-msg-body, .help-fb-reply p { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.help-fb-status {
    font-family: var(--help-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-muted);
}
.help-fb-status.is-nuevo { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.help-fb-status.is-en_curso { color: var(--help-label); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.help-fb-status.is-resuelto {
    color: var(--help-green); border-color: color-mix(in srgb, var(--primary) 55%, transparent);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.help-fb-reply {
    display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 10px 0 2px 14px;
    border-left: 2px solid var(--primary);
}
.help-fb-reply .help-mono { color: var(--help-label); }

/* Cuenta → Plataforma → «Mensajes»: the team's inbox (web/js/support_inbox.js). It sits in the
   Cuenta modal, so it uses that modal's cards and tags (styles.css .acct-*). */
.sup-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sup-filter {
    height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px;
    color: var(--text-muted); background: transparent; border: 1px solid var(--border-light);
}
.sup-filter.on { color: var(--primary-text); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sup-layout { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 14px; align-items: start; max-width: 1100px; }
.sup-layout .acct-card { max-width: none; margin-bottom: 0; }
.sup-list { padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.sup-list > .acct-hint { padding: 12px; }
.sup-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 10px 12px;
    text-align: left; cursor: pointer; font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 8px;
}
.sup-row:hover { background: var(--surface-hover); }
.sup-row.on { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sup-row-top { display: flex; flex-direction: column; gap: 2px; }
.sup-row-top .acct-hint { margin: 0; }
.sup-row-text {
    font-size: 13px; line-height: 1.4; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sup-kind { font-weight: 600; color: var(--text); }
.sup-detail { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.sup-empty { min-height: 120px; justify-content: center; }
.sup-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sup-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.sup-body, .sup-reply p { margin: 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sup-facts {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 16px; margin: 0;
    padding: 12px 14px; border-radius: 8px; background: var(--bg-2);
}
.sup-facts dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.sup-facts dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.sup-shot img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--border-light); }
.sup-reply { padding-left: 12px; border-left: 2px solid var(--primary); display: flex; flex-direction: column; gap: 4px; }
.sup-answer { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.sup-answer textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text);
    background: var(--input-bg); border: 1px solid var(--border-light); resize: vertical;
}
.sup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
    .sup-layout { grid-template-columns: minmax(0, 1fr); }
    .sup-list { max-height: none; }
}

/* ── Phone and narrow screens ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .help-start { grid-template-columns: minmax(0, 1fr); }
    .help-start-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
    .help-start-card .help-num { font-size: 34px; grid-row: span 2; }
    .help-start-card .help-arrow { display: none; }
}
@media (max-width: 768px) {
    .help-screen { gap: 20px; }
    .help-hero { padding: 132px 22px 26px; border-radius: 16px; }
    .help-rain {
        inset: 0 0 auto 0; height: 150px; font-size: 13px;
        -webkit-mask-image: linear-gradient(#000 25%, transparent 100%); mask-image: linear-gradient(#000 25%, transparent 100%);
    }
    .help-headline { font-size: 31px; }
    .help-sub { font-size: 15.5px; }
    .help-search { height: 50px; }
    .help-search kbd { display: none; }
    .help-screen[data-hero="bar"] .help-hero { padding: 10px; }
    .help-screen[data-hero="bar"] .help-bar-title { display: none; }   /* the app's header already says «Ayuda» */
    .help-screen[data-hero="bar"] .help-hero-text { flex-direction: column; align-items: stretch; gap: 10px; }
    .help-screen[data-hero="bar"] .help-search { margin: 0; width: 100%; height: 46px; }
    .help-layout { grid-template-columns: minmax(0, 1fr); }
    .help-nav { display: none; }
    .help-cards { grid-template-columns: minmax(0, 1fr); }
    .help-title { font-size: 29px; }
    .help-row { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; padding: 16px 4px; min-height: 44px; }
    .help-body { font-size: 15.5px; }
    .help-body h2 { font-size: 21px; margin-top: 38px; }
    .help-body ol > li { padding-left: 46px; }
    .help-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
    .help-meta .help-mono + .help-mono::before { content: none; }
    .help-meta .btn-primary { margin: 10px 0 0; width: 100%; height: 44px; }
    .help-card-list button, .help-crumbs button, .help-back, .help-try button { min-height: 44px; }
    .help-fb-card { padding: 22px 18px 20px; }
    .help-fb-kinds { grid-template-columns: minmax(0, 1fr); }
    .help-fb-note .btn-secondary, .help-fb-actions .btn-primary, .help-fb-actions .btn-secondary { width: 100%; min-height: 44px; }
    .help-fb-mine-link { min-height: 44px; }
}
