/* Benvelia Setup Pack — UI mockup (Segno, 11/11/2026, Europe/Rome)
   Static screens for Cantiere. Not production code, but tokens and
   components follow the live site (benvelia.com/styles.css, patch 10/11).
   Fonts: Inter 400/600, Fraunces 600/700, SIL OFL 1.1, self-hosted.
*/

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }

:root {
  --sage: #8FA58C;
  --cream: #F6F1E7;
  --terracotta: #C9734F;      /* decorative only */
  --anthracite: #2F3437;
  --sand: #E3D3B6;
  --white: #ffffff;
  --terracotta-ink: #9A4E32;  /* links, 5.31:1 on cream */
  --terracotta-cta: #A04A2E;  /* CTA fill, white text 5.98:1 */
  --ink-muted: #4A5154;       /* secondary text, 7.19:1 on cream */
  --error: #A3311B;           /* 6.19:1 on cream */
  --error-bg: #F8E8E3;
  --ok-ink: #3F5A3C;          /* 6.81:1 on cream */
  --ok-bg: #E7EFE6;
  --sage-ink: #4F6A4C;        /* 5.33:1 on cream; chips only if needed */
  --radius: 12px;
  --radius-card: 14px;
  --radius-input: 10px;
  --shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--anthracite);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143, 165, 140, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 115, 79, 0.12), transparent 55%),
    var(--cream);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--anthracite); margin: 0; }
p { margin: 0; }

/* ----- Focus (live site tokens, 10/11 patch) ----- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--anthracite);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----- Shell ----- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 14px 20px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--anthracite);
  background: rgba(143, 165, 140, 0.22);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 2px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 0;
  text-decoration: none;
  color: var(--ink-muted);
}
.lang-switch [aria-current="true"] {
  color: var(--terracotta-ink);
}
.lang-switch [aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 2px;
  background: var(--terracotta-ink);
  border-radius: 1px;
}
.session {
  display: none;
  align-items: center;
  gap: 10px;
}
.session-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.btn.signout, .btn.signout-mobile { white-space: nowrap; }

main {
  flex: 1;
  padding: 0 20px 28px;
}
.footer-mini {
  padding: 8px 20px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ----- Auth column ----- */
.auth {
  width: min(420px, 100%);
  margin: 8px auto 0;
}
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  margin: 0 0 8px;
}
h1.screen-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.lede {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin: 0 0 24px;
  max-width: 36rem;
}
.lede strong { color: var(--anthracite); font-weight: 600; }

.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px 20px 24px;
}

/* ----- Form ----- */
.field { margin: 0 0 18px; }
.field label.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-input);
  background: var(--cream);
  color: var(--anthracite);
  font-size: 1rem;
}
.field input::placeholder { color: var(--ink-muted); opacity: 1; }
.field input:focus-visible {
  border-color: var(--terracotta-ink);
  background: var(--white);
}
.field.is-focus input {
  border-color: var(--terracotta-ink);
  background: var(--white);
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 3px;
}
.field.is-error input {
  border-color: var(--error);
  background: var(--error-bg);
}
.field.is-error input:focus-visible {
  outline-color: var(--error);
}
.field-msg {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--error);
  min-height: 0;
}
.field-msg:empty { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 8px;
  min-height: var(--tap);
  padding: 8px 0;
  cursor: pointer;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 22px;
  border: 1.5px solid var(--anthracite);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.check input[type="checkbox"]:checked {
  background: var(--terracotta-cta);
  border-color: var(--terracotta-cta);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--terracotta-ink);
  outline-offset: 3px;
}
.field.is-error .check input[type="checkbox"] {
  border-color: var(--error);
}
.check .check-label {
  font-size: 0.95rem;
  line-height: 1.4;
  padding-top: 2px;
}

.ttl-line {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-muted); /* 8.09:1 on white, 7.19:1 on cream — AA */
}
.hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.hint a { color: var(--terracotta-ink); font-weight: 600; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.legal-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.legal-note a { color: var(--terracotta-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--terracotta-cta);
  color: var(--white);
  width: 100%;
}
.btn-primary:hover { filter: brightness(0.96); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--anthracite);
  border-color: var(--sand);
}
.btn-secondary:hover { border-color: var(--anthracite); color: var(--anthracite); }
.btn-ghost {
  background: transparent;
  color: var(--terracotta-ink);
  padding: 0.5rem 0.75rem;
  min-height: var(--tap);
}
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { min-height: var(--tap); padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn[disabled],
.btn.is-disabled {
  background: var(--sand);
  color: var(--ink-muted);
  border-color: var(--sand);
  cursor: not-allowed;
  filter: none;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-row .btn { width: auto; flex: 1 1 auto; }

/* ----- Illustrations ----- */
.illu {
  width: 88px;
  height: 88px;
  margin: 4px auto 16px;
}
.illu svg { width: 100%; height: 100%; }

/* ----- Dashboard ----- */
.dash {
  width: min(980px, 100%);
  margin: 0 auto;
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
}
.dash-head h1 { font-size: 1.85rem; }
.dash-head .lede { margin: 8px 0 0; }

.prop-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}
.prop-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px 14px;
  align-items: start;
}
.prop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: grid;
  place-items: center;
}
.prop-icon svg { width: 32px; height: 32px; }
.prop-body { min-width: 0; }
.prop-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 2px;
}
.prop-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(143, 165, 140, 0.22);
  color: var(--anthracite);
  margin: 0 6px 8px 0;
}
.chip-wait {
  background: rgba(227, 211, 182, 0.7);
}
.prop-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prop-actions .btn { width: auto; flex: 1 1 140px; }

.empty {
  text-align: center;
  padding: 36px 20px 32px;
  background: var(--white);
  border: 1px dashed var(--sand);
  border-radius: var(--radius-card);
}
.empty .illu { margin-bottom: 12px; }
.empty h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.empty p {
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.empty .btn { width: auto; min-width: 220px; }

/* Placeholder copy is marked in the kicker, not as a corner chip. */

/* ----- Desktop rhythm ----- */
@media (min-width: 800px) {
  .topbar { padding: 18px 32px; }
  main { padding: 8px 32px 40px; display: flex; flex-direction: column; flex: 1; }
  h1.screen-title, .dash-head h1 { font-size: 2.15rem; }
  .auth { margin-top: auto; margin-bottom: auto; }
  .card { padding: 28px 28px 30px; }
  .prop-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .session { display: flex; }
  .prop-card { padding: 20px; }
}

/* Hide session email on tight mobile — shown in topbar on desktop only.
   A Sign out control stays available on both. */
@media (max-width: 799px) {
  .topbar-right .btn-ghost.signout { padding-inline: 10px; }
}

/* Glance / 360 px: keep type from overflowing */
@media (max-width: 400px) {
  .prop-actions { flex-direction: column; }
  .prop-actions .btn { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 360px) {
  .topbar, main { padding-left: 14px; padding-right: 14px; }
  h1.screen-title { font-size: 1.65rem; }
  .brand-tag { display: none; }
}

/* ----- v1.2: status banners, photo warning, signs list (new classes only) ----- */
.status-banner {
  margin: 0 0 16px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-input);
  background: var(--error-bg);
  color: var(--error); /* 5.86:1 on #F8E8E3 — AA */
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.photo-warn {
  margin: 0 0 12px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--anthracite); /* 8.55:1 on sand — AA */
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.dash:has(.sign-list) .screen-title { margin-bottom: 4px; }
.dash:has(.sign-list) .lede { margin-bottom: 12px; }
.back-row { margin: 0 0 4px; }
.back-row .btn { padding-left: 0; min-height: 40px; }
.opt-card { margin: 0 0 12px; padding: 10px 14px 12px; }
.opt-card .check { margin-bottom: 2px; padding-top: 0; padding-bottom: 2px; min-height: var(--tap); }
.sign-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sign-row {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 10px 14px 12px;
}
.sign-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.sign-row .prop-actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; }
.sign-row .prop-actions .btn { width: auto; flex: 1 1 0; min-height: var(--tap); }
@media (max-width: 400px) {
  .sign-row .prop-actions { flex-direction: row; }
  .sign-row .prop-actions .btn { flex: 1 1 0; width: auto; min-height: var(--tap); }
}

/* ===================== v2 (Segno, 11/11/2026) — new classes only ===================== */

/* Pictograms as <img> (Cantiere): same box as the old inline .illu svg */
.illu img { width: 100%; height: 100%; display: block; }
.prop-icon img { width: 32px; height: 32px; display: block; }

/* 03: rate-limit button states */
.btn-wait { display: inline-flex; gap: 8px; align-items: center; }
.btn-wait .clock {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; position: relative; flex: none;
}
.btn-wait .clock::after {
  content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 5px;
  background: currentColor; transform: translateX(-50%); border-radius: 1px;
}
.state-note {
  margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45;
}
.status-ok {
  margin: 0 0 16px; padding: 0.7rem 0.85rem; border-radius: var(--radius-input);
  background: #E7EFE5; color: #2F4A2C; /* 9.07:1 */
  font-size: 0.95rem; font-weight: 600; line-height: 1.4;
}

/* 05: sign-language selector (matches Cantiere's <select>) */
.field-lang { margin: 10px 0 0; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--anthracite); border-radius: 999px; overflow: hidden;
  background: var(--white);
}
.seg label {
  min-height: var(--tap); display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; color: var(--anthracite);
  position: relative;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label + label { border-left: 1.5px solid var(--anthracite); }
.seg input:checked + span { color: var(--white); }
.seg label:has(input:checked) { background: var(--anthracite); color: var(--white); }
.seg label:has(input:checked)::before {
  content: ""; width: 7px; height: 12px; border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg); margin-top: -3px;
}
.seg label:has(input:focus-visible) { outline: 2px solid var(--terracotta-ink); outline-offset: -4px; }
.field-lang .field-label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; }

/* 06: stepper */
.stepper {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.stepper li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--sand);
  background: var(--white); font-size: 0.88rem; font-weight: 600; color: var(--ink-muted);
  min-height: var(--tap);
}
.stepper .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink-muted); color: var(--ink-muted); font-size: 0.85rem;
}
.stepper li[aria-current="step"] { border-color: var(--anthracite); color: var(--anthracite); }
.stepper li[aria-current="step"] .num { background: var(--anthracite); border-color: var(--anthracite); color: var(--white); }
.stepper li.done { color: var(--anthracite); }
.stepper li.done .num { background: var(--sand); border-color: var(--sand); color: var(--anthracite); }
.stepper .step-txt { line-height: 1.2; }
.step-count { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 6px; font-weight: 600; }

/* 06: fields */
.field .field-help { font-size: 0.85rem; color: var(--ink-muted); margin: 4px 0 0; line-height: 1.4; }
.field .req { color: var(--ink-muted); font-weight: 400; font-size: 0.85rem; }
.field textarea,
.field input.time,
.field input[type="password"] {
  width: 100%; font: inherit; color: var(--anthracite); background: var(--cream);
  border: 1.5px solid var(--sand); border-radius: var(--radius-input);
  padding: 0.7rem 0.85rem; min-height: var(--tap);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field textarea:focus-visible,
.field input.time:focus-visible,
.field input[type="password"]:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 1px; border-color: var(--terracotta-ink); background: var(--white); }
.field.is-error textarea,
.field.is-error input.time,
.field.is-error input[type="password"] { border-color: var(--error); background: var(--white); }
.field input[disabled] { background: #EFEAE0; color: var(--ink-muted); border-style: dashed; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-row .field { margin-bottom: 0; }
.time-wrap { position: relative; }
.time-wrap input.time { padding-left: 2.4rem; }
.time-wrap::before {
  content: ""; position: absolute; left: 0.8rem; top: 50%; width: 16px; height: 16px;
  margin-top: -8px; border-radius: 50%; border: 2px solid var(--ink-muted);
}
.time-wrap::after {
  content: ""; position: absolute; left: calc(0.8rem + 7px); top: calc(50% - 5px); width: 2px; height: 6px;
  background: var(--ink-muted);
}
.field-group { margin: 0 0 18px; }
.field-group > h2 { font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 10px; }
.form-actions { display: grid; gap: 10px; margin-top: 4px; }
.error-summary {
  margin: 0 0 16px; padding: 0.75rem 0.9rem; border-radius: var(--radius-input);
  background: var(--error-bg); color: var(--error); font-weight: 600; font-size: 0.95rem; line-height: 1.4;
}
.error-summary ul { margin: 6px 0 0; padding-left: 1.1rem; font-weight: 400; }
.error-summary a { color: var(--error); text-decoration: underline; }
.pw-row { position: relative; }
.pw-row input { padding-right: 5.2rem; }
.pw-row .btn-show {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 12px; border: 0; background: transparent;
  color: var(--terracotta-ink); font: inherit; font-weight: 600; font-size: 0.9rem; border-radius: 999px;
}

/* 06/07: encryption note — clearly visible */
.crypt-note {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start;
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--anthracite); color: var(--white); /* 12.47:1 */
}
.crypt-note img { width: 32px; height: 32px; background: var(--white); border-radius: 8px; padding: 2px; }
.crypt-note p { margin: 0; font-size: 0.93rem; line-height: 1.45; }
.crypt-note strong { display: block; font-size: 1rem; margin-bottom: 2px; }

/* 07: guest guide */
.guide-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; position: sticky; top: 0; z-index: 2;
  background: rgba(246, 241, 231, 0.96); border-bottom: 1px solid var(--sand);
}
.guide-top .brand-name { font-size: 1.1rem; }
.guide-tag { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.guide-lang {
  display: grid; grid-template-columns: auto auto; border: 1.5px solid var(--anthracite);
  border-radius: 999px; overflow: hidden; background: var(--white);
}
.guide-lang a {
  min-width: 52px; min-height: var(--tap); display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--anthracite); text-decoration: none; font-size: 0.95rem;
}
.guide-lang a + a { border-left: 1.5px solid var(--anthracite); }
.guide-lang a[aria-current="true"] { background: var(--anthracite); color: var(--white); }
.guide-lang a:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: -4px; }
.guide-main { padding: 14px 18px 24px; }
.guide-hero {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-card);
  padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.guide-hero h1 { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.1; margin: 0 0 4px; }
.guide-hero .area { color: var(--ink-muted); margin: 0 0 12px; font-size: 0.95rem; }
.guide-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-times div { background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.guide-times .lbl { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.guide-times .val { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; margin: 2px 0 0; }
.guide-nav { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.guide-nav a {
  display: grid; grid-template-columns: 36px 1fr 16px; gap: 12px; align-items: center;
  min-height: 60px; padding: 10px 14px; background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius-card); color: var(--anthracite); text-decoration: none; box-shadow: var(--shadow);
}
.guide-nav a:focus-visible { outline: 2px solid var(--anthracite); outline-offset: 2px; }
.guide-nav img { width: 36px; height: 36px; }
.guide-nav .t { font-weight: 600; font-size: 1rem; display: block; }
.guide-nav .s { font-size: 0.85rem; color: var(--ink-muted); display: block; }
.guide-nav .chev { width: 9px; height: 9px; border: solid var(--anthracite); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.guide-nav a.locked { border: 1.5px dashed var(--anthracite); }
.guide-back { margin: 0 0 6px; }
.guide-back .btn { padding-left: 0; min-height: var(--tap); }
.guide-sec h1 { font-family: var(--font-serif); font-size: 1.7rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.guide-sec h1 img { width: 36px; height: 36px; }
.guide-card {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-card);
  padding: 14px 16px; margin: 0 0 10px;
}
.guide-card h2 { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 6px; }
.guide-card p, .guide-card li { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.guide-card ul, .guide-card ol { margin: 0; padding-left: 1.2rem; }
.guide-card li + li { margin-top: 4px; }
.guide-card .muted { color: var(--ink-muted); font-size: 0.88rem; margin-top: 6px; }
.mt-label { display: inline-block; font-size: 0.78rem; color: var(--ink-muted); background: var(--white); border: 1px solid var(--sand); border-radius: 999px; padding: 3px 10px; margin: 0 0 12px; }
.pin-card {
  background: var(--white); border: 1.5px solid var(--anthracite); border-radius: var(--radius-card);
  padding: 16px; margin: 0 0 12px;
}
.pin-card h2 { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.pin-card h2 img { width: 28px; height: 28px; }
.pin-card > p { margin: 0 0 12px; color: var(--ink-muted); font-size: 0.93rem; line-height: 1.45; }
.field input.pin {
  width: 100%; font: inherit; font-family: var(--font-sans); font-weight: 600; font-size: 1.5rem;
  letter-spacing: 0.35em; text-align: center; color: var(--anthracite);
  background: var(--cream); border: 1.5px solid var(--sand); border-radius: var(--radius-input);
  padding: 0.55rem 0.5rem; min-height: 56px;
}
.field input.pin::placeholder { color: var(--ink-muted); letter-spacing: 0.35em; opacity: 1; }
.field input.pin:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 1px; border-color: var(--terracotta-ink); background: var(--white); }
.field.is-error input.pin { border-color: var(--error); background: var(--white); }
;.browser-note { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.45; margin: 12px 0 0; }
.browser-note.is-after {
  font-size: 14px; /* minimo 14 px a 1x; #4A5154 su crema 7.19:1 */
  margin: 16px 0 0;
}
.guide-foot { text-align: center; font-size: 0.82rem; color: var(--ink-muted); padding: 8px 18px 18px; }
.guide-foot a { color: var(--terracotta-ink); font-weight: 600; }
@media (max-width: 360px) {
  .guide-top, .guide-main { padding-left: 14px; padding-right: 14px; }
  .guide-lang a { min-width: 46px; }
  .guide-tag { display: none; }
  .stepper li { font-size: 0.82rem; padding: 6px 8px; }
}
.field-group > .field-help { font-size: 0.85rem; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.4; }

/* ===================== v2.1 ===================== */
.select-wrap { position: relative; }
.select-wrap select, .select-btn {
  width: 100%; min-height: var(--tap); font: inherit; color: var(--anthracite); text-align: left;
  background: var(--cream); border: 1.5px solid var(--sand); border-radius: var(--radius-input);
  padding: 0.7rem 2.4rem 0.7rem 0.85rem; appearance: none; -webkit-appearance: none;
}
.select-wrap::after, .select-btn::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--anthracite); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none;
}
.select-btn { position: relative; display: block; }
.select-btn.is-open { border-color: var(--terracotta-ink); background: var(--white); outline: 2px solid var(--terracotta-ink); outline-offset: 1px; }
.select-btn.is-open::after { transform: rotate(-135deg); margin-top: -2px; }
.select-wrap select:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 1px; border-color: var(--terracotta-ink); background: var(--white); }
.select-list {
  list-style: none; margin: 6px 0 0; padding: 6px; background: var(--white);
  border: 1.5px solid var(--anthracite); border-radius: var(--radius-input); box-shadow: var(--shadow);
}
.select-list li { min-height: var(--tap); display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 0.95rem; }
.select-list li[aria-selected="true"] { background: var(--anthracite); color: var(--white); font-weight: 600; }
.select-list li[aria-selected="true"]::after { content: "✓"; margin-left: auto; }
.status-ok img { width: 20px; height: 20px; vertical-align: -4px; background: var(--white); border-radius: 4px; }
.big-val { font-weight: 600; font-size: 1.15rem !important; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; align-items: center; }
.kv dt { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-copy { width: auto; }
.guide-card h2 img { vertical-align: -5px; }
.status-ok img, .guide-card h2 img { display: inline-block; margin-right: 6px; }

/* ===================== v2.2: guide languages ===================== */
.lang-set { border: 0; padding: 0; margin: 0 0 18px; }
.lang-set legend { display: flex; width: 100%; align-items: center; justify-content: space-between; font-weight: 600; margin: 0 0 2px; }
.lang-count { font-size: 0.85rem; font-weight: 600; color: var(--anthracite); background: var(--sand); border-radius: 999px; padding: 2px 10px; } /* 8.55:1 */
.lang-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.lang-row { align-items: center; margin: 0; min-height: var(--tap); flex-wrap: wrap; row-gap: 2px; }
.lang-row input[type="checkbox"] { margin-top: 0; }
.lang-row .check-label { padding-top: 0; }
/* locked: checked + disabled, kept fully legible */
.check.is-locked { cursor: default; }
.check.is-locked input[type="checkbox"] { background: var(--anthracite); border-color: var(--anthracite); cursor: default; }
.check.is-locked .check-label { color: var(--anthracite); font-weight: 600; }
.lock-tag { flex-basis: 100%; margin-left: 34px; font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); line-height: 1.2; } /* 8.09:1 on white */
/* at limit: unchecked + disabled */
.check.is-off { cursor: not-allowed; }
.check.is-off input[type="checkbox"] { border-style: dashed; border-color: var(--ink-muted); background: #EFEAE0; cursor: not-allowed; }
.check.is-off .check-label { color: var(--ink-muted); } /* 8.09:1 on white */
.lang-max { margin: 8px 0 0; padding: 0.55rem 0.8rem; border-radius: var(--radius-input); background: var(--sand); color: var(--anthracite); font-weight: 600; font-size: 0.92rem; } /* 8.55:1 */
@media (max-width: 360px) { .lang-list { gap: 2px 8px; } }
/* v2.2: step-1 safety line (G3) */
.safe-line { margin: -4px 0 14px; padding: 0.65rem 0.85rem; border-radius: var(--radius-input); border-left: 4px solid var(--anthracite); background: var(--sand); color: var(--anthracite); font-weight: 600; font-size: 0.93rem; line-height: 1.4; } /* 8.55:1 */
.lock-tag { display: flex; flex-direction: column; gap: 1px; } .lock-tag span { white-space: nowrap; }
.lang-list { grid-template-columns: 1fr; gap: 0; } .lang-list li + li { border-top: 1px solid var(--sand); } .lock-tag { flex-direction: row; flex-wrap: wrap; gap: 2px 10px; }
