/* account-mesa.css — signing in and the account in «La mesa de corte» (r1756, 14-11-2026; /account/sign-in/,
   /es/cuenta/entrar/, /account/, /es/cuenta/ and the four other languages built from them).
   ==========================================================================
   Elam: the sign-in of r1750 was cleaner but did not look like the rest of the site. This sheet comes after mesa.css
   (the language of the home and the optimisers: ink and paper, one flat colour per band, ink edges and hard shadows,
   pill buttons, the condensed Archivo for headings) and gives the account its own band colour, lilac (--mc-lilac, the
   fifth colour of the home's pieces), so it reads as part of the product and not as a generic form:
    · the band: eyebrow, a large title, one sentence of why and three chips; on a wide screen a small cutting plan drawn
      in the page (an inline SVG, no image) at its right;
    · ONE card with an ink edge and a hard shadow: two tabs at its top («Sign in» | «Create an account», the page's own
      buttons, moved there), the providers' buttons (their brand colours untouched, as r1750 left them), «or», the
      fields 52 px high and the black pill; creating an account shows its three steps, the current one marked by where
      the cursor is (:focus-within; no script);
    · at its right on a wide screen, under it on a phone, the dark table («Do you need an account?») in paper on ink;
    · the account: a grid of cards, each with its icon in a lilac disc and its main action as the black pill.
   The logic (assets/js/sf/account-ui.js) is not touched: every id and every button is the page's own, and the cards
   are shown and hidden by it as before. Screen only; print keeps the site's print sheet. Contrast: ink #0b0f0e on
   lilac #b9a7ff 9.2:1; paper #f4f1ea on ink 17.1:1; mint #79e0cc on ink 12.3:1 (links on the dark table).
   ========================================================================== */
@media screen{
body:has(#sf-signin, #sf-account){ --mc-mat:var(--mc-lilac); --ac-r:18px; --ac-edge:2.5px solid var(--mc-ink); --ac-shadow:6px 6px 0 var(--mc-ink); }

/* ---------- the band ---------- */
body:has(#sf-signin, #sf-account) main > .hero:first-of-type{ display:grid; grid-template-columns:minmax(0,1fr); column-gap:48px; align-items:center; padding-top:34px !important; padding-bottom:28px !important; }
body:has(#sf-signin, #sf-account) main > .hero:first-of-type::after{ display:none; }
body:has(#sf-signin, #sf-account) main > .hero:first-of-type > *{ grid-column:1; margin-inline:0; max-width:760px; }
body:has(#sf-signin, #sf-account) main > .hero:first-of-type > h1{ font-size:clamp(2.3rem, 1.4rem + 3.2vw, 4rem); font-weight:900; font-stretch:100%; letter-spacing:-.035em; line-height:.95; margin:4px 0 10px; color:var(--mc-ink); }
.ac-lead{ margin:0 0 12px; font-size:clamp(1.12rem, 1rem + .5vw, 1.4rem); font-weight:700; line-height:1.3; color:var(--mc-ink); }
.ac-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; padding:0; list-style:none; }
.ac-chips li{ display:inline-flex; align-items:center; gap:8px; padding:7px 14px 7px 10px; border:2px solid var(--mc-ink); border-radius:999px; background:var(--mc-paper); color:var(--mc-ink); font-size:.9rem; font-weight:700; line-height:1.2; }
.ac-chips li::before{ content:""; flex:0 0 16px; height:16px; border-radius:50%; background:var(--mc-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.5' fill='none' stroke='%23f4f1ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
body:has(#sf-signin, #sf-account) main > .hero:first-of-type > .answer{ padding:2px 0 2px 14px; font-size:.95rem; }
.ac-art{ display:none; }
@media (min-width:980px){
  body:has(#sf-signin) main > .hero:first-of-type{ grid-template-columns:minmax(0,1fr) 300px; }
  .ac-art{ display:block; grid-column:2 !important; grid-row:1 / span 6; width:300px; height:auto; max-width:none !important; filter:drop-shadow(6px 6px 0 var(--mc-ink)); }
}
@media (max-width:600px){
  body:has(#sf-signin, #sf-account) main > .hero:first-of-type{ padding-top:22px !important; padding-bottom:18px !important; }
  body:has(#sf-signin, #sf-account) main > .hero:first-of-type > h1{ font-size:2.35rem; margin-bottom:8px; }
  .ac-lead{ font-size:1.08rem; margin-bottom:10px; }
  .ac-chips{ gap:6px; margin-bottom:4px; }
  .ac-chips li{ font-size:.82rem; padding:5px 11px 5px 7px; }
  #sf-signin, #sf-account{ margin-top:18px; }
}

/* ---------- the card ---------- */
#sf-signin{ max-width:1160px; display:grid; grid-template-columns:minmax(0,1fr); gap:22px; align-items:start; margin-top:26px; }
#sf-signin > *{ grid-column:1; }
@media (min-width:980px){
  #sf-signin{ grid-template-columns:minmax(0,540px) minmax(0,1fr); column-gap:40px; }
  #sf-signin > #ac-why{ grid-column:2; grid-row:1 / span 30; position:sticky; top:84px; }
}
#sf-signin > .md-card:not(#ac-why), #sf-account > .md-card{ background:var(--surface, #fff); border:var(--ac-edge); border-radius:var(--ac-r); box-shadow:var(--ac-shadow); }
#sf-signin #ac-pw, #sf-signin > .md-card:not(#ac-why){ display:grid; gap:14px; padding:22px 20px 20px; }
#sf-signin > .md-card[hidden]{ display:none !important; }
@media (min-width:600px){ #sf-signin #ac-pw, #sf-signin > .md-card:not(#ac-why){ padding:28px 28px 24px; } }
#sf-signin .md-card h2{ margin:0; font-size:1.3rem; font-weight:900; letter-spacing:-.02em; }
#sf-signin .md-card h2::before{ display:none; }   /* the red-pencil mark of the documents: the card is the mark now */

/* the two tabs: the page's own buttons, the current one as ink */
/* r1756b: each tab as wide as its words, in one line (two halves broke «Crear una cuenta» in two on a phone) */
.ac-tabs{ display:flex; gap:4px; padding:4px; border:var(--ac-edge); border-radius:999px; background:var(--mc-paper); }
.ac-tab-on, .ac-tabs .btn{ flex:1 1 auto; display:flex; align-items:center; justify-content:center; min-height:44px; margin:0; padding:6px 12px; border-radius:999px; font-weight:800; font-size:.98rem; line-height:1.15; text-align:center; white-space:nowrap; }
@media (max-width:440px){ .ac-tab-on, body:has(#sf-signin) main .ac-tabs .btn{ font-size:.9rem; padding-inline:8px; letter-spacing:-.01em; } }
.ac-tab-on{ background:var(--mc-ink); color:var(--mc-paper); }
body:has(#sf-signin) main .ac-tabs .btn{ border:0; background:transparent; color:var(--mc-ink); text-decoration:none; min-height:44px; padding-block:6px; }
body:has(#sf-signin) main .ac-tabs .btn:hover{ background:rgba(11,15,14,.08); transform:none; }

/* the providers: their own colours (r1750, brand guidelines), the site's pill shape */
.ac-sso-btn{ min-height:52px; border-radius:999px; font-weight:700; }
.ac-or{ font-weight:700; text-transform:lowercase; color:var(--ink-2); }
.ac-or::before, .ac-or::after{ height:2px; background:var(--mc-ink); opacity:.18; }

/* the fields and the black pill */
#sf-signin .field{ margin:0; }
#sf-signin .field label, #sf-account .field label{ font-weight:800; color:var(--ink); }
#sf-signin .field input, #sf-account .field input{ min-height:52px; border:2px solid var(--rule-2); border-radius:12px; background:#fff; padding:10px 14px; }
#sf-signin .field input:focus-visible, #sf-account .field input:focus-visible{ outline:3px solid var(--mc-ink); outline-offset:2px; border-color:var(--mc-ink); }
#sf-signin .field input[aria-invalid="true"], #sf-account .field input[aria-invalid="true"]{ border-color:var(--fail, #b3261e); box-shadow:0 0 0 3px rgba(179,38,30,.15); }
#sf-signin .ac-pass, #sf-account .ac-pass{ display:flex; gap:8px; }
#sf-signin .ac-pass input, #sf-account .ac-pass input{ flex:1 1 auto; min-width:0; }
body:has(#sf-signin, #sf-account) main .ac-eye{ min-height:52px; min-width:92px; border-radius:12px; }
body:has(#sf-signin, #sf-account) main .md-card .btn.primary, body:has(#sf-signin) main #ac-pw-go{ background:var(--mc-ink); border-color:var(--mc-ink); color:var(--mc-paper); }
#sf-signin .md-acts{ margin:4px 0 0; }
#sf-signin .md-acts .btn.primary{ width:100%; min-height:54px; font-size:1.05rem; }
body:has(#sf-signin) main .ac-alt{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; }
body:has(#sf-signin) main .ac-alt .btn{ border:0; background:none; min-height:44px; padding:6px 0; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; font-weight:700; color:var(--ink); }
body:has(#sf-signin) main .ac-alt .btn:hover{ transform:none; }
#sf-signin #ac-pw .ac-alt .btn, #sf-signin .md-card .ac-alt .btn{ min-height:44px; }   /* signin.css (r1750) left them at 40 px: 44, as every target */
#sf-signin .hint{ font-size:.88rem; color:var(--ink-3); margin:-4px 0 0; }
#sf-signin .ac-h3{ margin:6px 0 0; font-size:1.02rem; font-weight:800; }
#sf-signin .ac-sub{ border-top:2px dashed var(--rule); padding-top:16px; margin-top:4px; }
#sf-signin .md-check, #sf-signin .ac-accept{ align-items:flex-start; font-size:.92rem; }
#sf-signin .md-msg:empty{ display:none; }
#sf-signin .md-msg:not(:empty){ padding:10px 12px; border-radius:12px; background:var(--mc-paper); border-left:5px solid var(--mc-ink); font-weight:600; }

/* the heading of «Create an account» says what its tab says: kept for a screen reader (and the focus the page gives it), out of sight */
#sf-signin #ac-h-reg{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#sf-signin .md-card h2[tabindex="-1"]:focus{ outline:none; }   /* a heading the page moves the focus to (for a screen reader): no ring on it, the next Tab goes on */

/* creating an account: three steps, the one being filled in marked */
.ac-steps{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; margin:0; padding:0; list-style:none; counter-reset:acs; }
/* r1756b: the number over its label, the label centred and broken where it must: three labels in a row did not fit a phone */
.ac-steps li{ display:flex; flex-direction:column; align-items:center; gap:5px; min-width:0; counter-increment:acs; font-size:.8rem; font-weight:800; line-height:1.15; text-align:center; overflow-wrap:anywhere; hyphens:auto; color:var(--ink-3); }
.ac-steps li::before{ content:counter(acs); flex:0 0 auto; width:28px; height:28px; display:grid; place-items:center; border:2px solid var(--mc-ink); border-radius:50%; background:#fff; color:var(--mc-ink); font-size:.9rem; }
.ac-steps li:nth-child(1){ color:var(--ink); }
.ac-steps li:nth-child(1)::before{ background:var(--mc-lilac); }
#ac-reg:has(#ac-reg-pass:focus, #ac-reg-pass2:focus, #ac-reg-accept:focus, #ac-reg-go:focus) .ac-steps li:nth-child(1)::before{ background:var(--mc-ink); color:var(--mc-paper); content:"✓"; }
#ac-reg:has(#ac-reg-pass:focus, #ac-reg-pass2:focus, #ac-reg-accept:focus, #ac-reg-go:focus) .ac-steps li:nth-child(2){ color:var(--ink); }
#ac-reg:has(#ac-reg-pass:focus, #ac-reg-pass2:focus, #ac-reg-accept:focus, #ac-reg-go:focus) .ac-steps li:nth-child(2)::before{ background:var(--mc-lilac); }
#ac-code .ac-steps li:nth-child(-n+2)::before{ background:var(--mc-ink); color:var(--mc-paper); content:"✓"; }
#ac-code .ac-steps li{ color:var(--ink); }
#ac-code .ac-steps li:nth-child(3)::before{ background:var(--mc-lilac); }
@media (max-width:380px){ .ac-steps li{ font-size:.76rem; } }

/* the state above the card (checking, accounts off, an error) */
#sf-account > .ac-state:not(:empty){ grid-column:1 / -1; }   /* signing in: the state stays over the card, in its column (the dark table holds the other) */
#sf-signin > .ac-state, #sf-account > .ac-state{ padding:14px 16px; border:var(--ac-edge); border-left-width:8px; border-radius:14px; background:var(--surface, #fff); box-shadow:4px 4px 0 var(--mc-ink); font-weight:600; }
#sf-signin > .ac-state.warn, #sf-account > .ac-state.warn{ border-left-color:var(--warn, #b5530a); }
#sf-signin > .ac-state.ok, #sf-account > .ac-state.ok{ border-left-color:var(--pass, #1d7a4a); }
.ac-state .ac-wait{ display:flex; align-items:center; gap:10px; }
.ac-state .ac-wait::before{ content:""; width:16px; height:16px; border-radius:50%; border:2.5px solid var(--mc-ink); border-right-color:transparent; animation:ac-spin .8s linear infinite; }
@keyframes ac-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .ac-state .ac-wait::before{ animation:none; } }

/* ---------- the dark table: why an account ---------- */
#sf-signin > #ac-why{ display:grid; gap:12px; padding:26px 24px; border:0; border-radius:var(--ac-r); background:var(--mc-ink); color:var(--mc-paper); box-shadow:none;
  --ink:var(--mc-paper); --ink-2:#d9d4c8; --ink-3:#b9b6ae; --rule:rgba(244,241,234,.22); --surface:transparent; --glass:var(--mc-mint); }
#sf-signin > #ac-why h2{ margin:0; font-size:clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight:900; letter-spacing:-.03em; line-height:1.02; color:var(--mc-paper); }
#sf-signin > #ac-why h2::before{ display:none; }
#sf-signin > #ac-why p, #sf-signin > #ac-why li{ color:#e6e1d6; line-height:1.55; }
#sf-signin > #ac-why a{ color:var(--mc-mint); text-decoration-thickness:2px; text-underline-offset:3px; }
#sf-signin > #ac-why details{ border:2px solid rgba(244,241,234,.28); border-radius:14px; background:rgba(244,241,234,.05); padding:2px 16px; }
#sf-signin > #ac-why summary{ min-height:48px; display:flex; align-items:center; font-weight:800; color:var(--mc-paper); cursor:pointer; }
#sf-signin > #ac-why b{ color:var(--mc-paper); }
#sf-signin > #ac-why::before{ content:""; height:10px; border-radius:6px; background:linear-gradient(90deg, var(--mc-mint) 0 34%, var(--mc-amber) 34% 58%, var(--mc-coral) 58% 76%, var(--mc-lilac) 76% 100%); }

/* ---------- the account: a grid of cards, each with its icon ---------- */
#sf-account{ max-width:1160px; display:grid; grid-template-columns:minmax(0,1fr); gap:22px; align-items:start; margin-top:26px; }
/* the order of the cards: who you are and your Pro first, then sync and the password, then the rest */
#ac-who{ order:1; } #ac-pro{ order:2; } #ac-sync{ order:3; } #ac-security{ order:4; } #ac-sessions{ order:5; } #ac-export{ order:6; } #ac-delete{ order:7; } #sf-account > .ac-foot{ order:8; }
#sf-account > *{ grid-column:1; }
@media (min-width:900px){
  #sf-account{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  #sf-account > *{ grid-column:auto; }
  #sf-account > :is(.ac-state, noscript, #ac-delete, .ac-foot){ grid-column:1 / -1; }
}
#sf-account > .md-card{ display:grid; gap:12px; padding:22px 20px 20px; }
@media (min-width:600px){ #sf-account > .md-card{ padding:26px 26px 22px; } }
#sf-account > .md-card[hidden]{ display:none !important; }
.ac-head{ display:flex; align-items:center; gap:14px; }
.ac-head h2{ margin:0; font-size:1.25rem; font-weight:900; letter-spacing:-.02em; line-height:1.1; }
.ac-head h2::before{ display:none; }
.ac-ico{ flex:0 0 48px; width:48px; height:48px; display:grid; place-items:center; border:2.5px solid var(--mc-ink); border-radius:50%; background:var(--mc-lilac); color:var(--mc-ink); }
.ac-ico svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#ac-pro .ac-ico{ background:var(--mc-amber); }
#ac-sync .ac-ico{ background:var(--mc-mint); }
#ac-delete .ac-ico{ background:#ffd9cf; }
#sf-account .md-acts{ display:flex; flex-wrap:wrap; gap:10px; margin:2px 0 0; }
body:has(#sf-account) main #sf-account .md-card .md-acts > .btn:first-child:not(.danger):not(.small){ background:var(--mc-ink); border-color:var(--mc-ink); color:var(--mc-paper); }
#sf-account .ac-list{ margin:0; padding:0; list-style:none; display:grid; gap:8px; }
#sf-account .ac-list > li{ padding:10px 12px; border:2px solid var(--rule); border-radius:12px; background:var(--surface-2, #faf8f3); }
#sf-account .ac-sub{ border-top:2px dashed var(--rule); padding-top:14px; margin-top:4px; display:grid; gap:10px; }
#sf-account .ac-form{ display:grid; gap:12px; }
@media (max-width:600px){ #sf-account .sf-row{ display:grid; grid-template-columns:minmax(0,1fr); gap:0; } }   /* the two fields of «Keep it here» one under the other on a phone */
#sf-account .md-msg:empty{ display:none; }
#sf-account .md-msg:not(:empty){ padding:10px 12px; border-radius:12px; background:var(--mc-paper); border-left:5px solid var(--mc-ink); font-weight:600; }
#sf-account > #ac-delete{ border-color:var(--fail, #b3261e); box-shadow:6px 6px 0 var(--fail, #b3261e); }
#sf-account .ac-foot{ margin:0; font-weight:700; }
/* the small headings inside a card: a label, not a second red-pencil heading */
:is(#sf-account, #sf-signin) .sf-panel > h3::before, :is(#sf-account, #sf-signin) .ac-h3::before{ display:none; }
:is(#sf-account, #sf-signin) .ac-h3{ margin:4px 0 0; font-size:.8rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-2); }

/* ---------- dark theme: the same, ink on the dark page (mesa.css's dark screens) ---------- */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) body:has(#sf-signin, #sf-account){ --ac-edge:2.5px solid var(--mc-paper); --ac-shadow:6px 6px 0 rgba(244,241,234,.55); }
  :root:not([data-theme="light"]) #sf-signin > .md-card:not(#ac-why), :root:not([data-theme="light"]) #sf-account > .md-card{ background:var(--mc-sheet); }
  :root:not([data-theme="light"]) #sf-signin .field input, :root:not([data-theme="light"]) #sf-account .field input{ background:#0f1513; }
  :root:not([data-theme="light"]) #sf-signin > #ac-why{ border:2.5px solid var(--mc-paper); }
}
:root[data-theme="dark"] body:has(#sf-signin, #sf-account){ --ac-edge:2.5px solid var(--mc-paper); --ac-shadow:6px 6px 0 rgba(244,241,234,.55); }
:root[data-theme="dark"] #sf-signin > .md-card:not(#ac-why), :root[data-theme="dark"] #sf-account > .md-card{ background:var(--mc-sheet); }
:root[data-theme="dark"] #sf-signin .field input, :root[data-theme="dark"] #sf-account .field input{ background:#0f1513; }
:root[data-theme="dark"] #sf-signin > #ac-why{ border:2.5px solid var(--mc-paper); }
}
