/* Tejido brand: cool crisp white, navy #0B1322, blue #0173E6, orange #FF8600, cyan #00D4FC.
   Poppins 700 headings, Rubik body. Never beige or cream. Never uppercase "Qatom" via CSS:
   eyebrows below use letter-spacing only, no text-transform.
   Surface language: frosted glass (translucent cool white, backdrop blur, hairline light edge)
   over a fixed cool mesh of blue and cyan light. */
:root {
  --navy: #0B1322; --blue: #0173E6; --blue-d: #0559B8; --orange: #FF8600; --cyan: #00D4FC;
  --bg: #F3F7FC; --white: #FFFFFF; --line: rgba(11,19,34,.09); --line-solid: #E1E7EF; --text: #0B1322; --muted: #4A5567; --soft: rgba(1,115,230,.09);
  --ok: #08754A; --ok-bg: rgba(10,160,95,.12);
  --r: 16px; --r-sm: 12px;
  --glass: rgba(255,255,255,.58);
  --glass-strong: rgba(255,255,255,.78);
  --glass-edge: rgba(255,255,255,.75);
  --glass-dark: rgba(11,19,34,.62);
  --blur: saturate(180%) blur(22px);
  --shadow: 0 1px 1px rgba(11,19,34,.03), 0 10px 30px -8px rgba(11,40,90,.14);
  --shadow-lg: 0 30px 80px -20px rgba(11,40,90,.35);
  --hi: inset 0 1px 0 rgba(255,255,255,.9);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 Rubik, Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip; }
/* Fixed cool light field behind every glass surface */
body::before { content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 8% 12%, rgba(1,115,230,.20), transparent 62%),
    radial-gradient(34vmax 34vmax at 92% 8%, rgba(0,212,252,.22), transparent 60%),
    radial-gradient(40vmax 40vmax at 78% 78%, rgba(1,115,230,.14), transparent 62%),
    radial-gradient(30vmax 30vmax at 12% 88%, rgba(0,212,252,.14), transparent 60%),
    linear-gradient(180deg, #F6F9FD, #EEF4FB);
  animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(2vmax, -2vmax, 0) scale(1.04); } }
img { max-width: 100%; }
a { color: var(--blue-d); }
h1, h2, h3 { font-family: Poppins, Rubik, sans-serif; font-weight: 700; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 6vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; font-family: Rubik, sans-serif; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.eyebrow { color: var(--blue-d); font-weight: 600; letter-spacing: .14em; font-size: 13px; margin-bottom: 10px; }
.gloss { display: block; font-size: .58em; font-weight: 400; color: var(--muted); font-family: Rubik, sans-serif; letter-spacing: 0; margin-top: 2px; }
.gloss:empty { display: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Glass primitive */
.glass, .card, .top, .tabbar, .notice, details.grp, .tbl, .langs, dialog {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--hi), var(--shadow); }

/* Header: floating glass bar */
.top { position: sticky; top: 10px; z-index: 20; margin: 10px 12px 0; border-radius: 16px; background: rgba(255,255,255,.66); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 66px; padding: 0 18px; max-width: 1200px; }
.brand { flex: none; }
.brand img { display: block; height: 34px; width: auto; }
.mainnav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.mainnav a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 12px; font-size: 15px; line-height: 1.25; transition: background .2s; }
.mainnav a:hover { background: rgba(255,255,255,.7); }
.mainnav a.on { color: var(--blue-d); background: rgba(1,115,230,.10); }
.mainnav .navgloss { display: block; font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1; }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.langs { display: flex; border-radius: 12px; padding: 3px; background: rgba(255,255,255,.55); box-shadow: var(--hi); }
.langs button { border: 0; background: none; font: 600 13px Rubik, sans-serif; padding: 7px 11px; border-radius: 12px; cursor: pointer; color: var(--text); min-width: 38px; transition: background .2s, color .2s; }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(11,19,34,.25); }

/* Buttons and chips */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 13px 22px; font: 600 17px Rubik, sans-serif; text-decoration: none; cursor: pointer; min-height: 48px; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 18px; min-height: 42px; font-size: 16px; border-radius: 12px; }
.btn-orange { background: linear-gradient(180deg, #FF9A2E, var(--orange)); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 22px -6px rgba(255,134,0,.55); }
.btn-blue { background: linear-gradient(180deg, #1A84EE, var(--blue-d)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 22px -6px rgba(1,115,230,.55); }
.btn-ghost { background: rgba(255,255,255,.6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--blue-d); border-color: rgba(5,89,184,.28); box-shadow: var(--hi); }
.btn-ghost:hover { background: rgba(255,255,255,.85); }
.btn-ghost-w { background: rgba(255,255,255,.14); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; border-color: rgba(255,255,255,.45); border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.65); border: 1px solid rgba(11,19,34,.08); color: var(--text); }
.chip-blue { background: rgba(1,115,230,.10); border-color: rgba(1,115,230,.18); color: var(--blue-d); }
.chip-live { background: var(--orange); border-color: var(--orange); color: var(--navy); box-shadow: 0 0 0 4px rgba(255,134,0,.15); }
.chip-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); animation: pulse 1.6s infinite; }
.chip-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-ok { background: var(--ok-bg); border-color: rgba(10,160,95,.2); color: var(--ok); }
.chip-outline { background: rgba(255,255,255,.7); border: 1.5px solid var(--orange); }
.chip-example { background: rgba(255,255,255,.55); border: 1.5px dashed #8A94A6; color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }
.pill-btn { border: 1px solid var(--glass-edge); background: rgba(255,255,255,.6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--hi); border-radius: 12px; padding: 8px 16px; font: 600 15px Rubik, sans-serif; cursor: pointer; }
.pill-btn[aria-pressed="true"] { background: var(--navy); color: #fff !important; border-color: var(--navy); }

/* Layout pieces */
section { padding: 56px 0; }
.page-head { padding-top: 48px; padding-bottom: 24px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.card { border-radius: var(--r); padding: 24px; transition: transform .25s var(--ease), box-shadow .25s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow-lg); }
.card .card { background: rgba(255,255,255,.55); }
.card-example { border: 1.5px dashed rgba(120,135,160,.55); }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid > *, .side > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.notice { border-radius: var(--r-sm); padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; border-left: 4px solid var(--orange); }
.notice-blue { border-left-color: var(--blue); background: rgba(232,242,253,.7); }
.dark { background: rgba(11,19,34,.88); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; border-radius: var(--r); padding: 28px; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-lg); }
.dark .eyebrow { color: var(--orange); }
.dark p, .dark li { color: #D5DCE6; }

/* Hero: deep blue light with glass on top */
.hero { position: relative; overflow: hidden; color: #fff; padding: 84px 0 132px; margin-top: -86px; padding-top: 170px;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(0,212,252,.45), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(1,115,230,.7), transparent 60%),
    linear-gradient(160deg, #0173E6 0%, #0A3F86 45%, #0B1322 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(243,247,252,.0)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #FFB25C; }
.hero .lead { color: #D3E0F2; }
.hero h1 { margin-bottom: 18px; max-width: 900px; }
.hero .tag { color: #fff; font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.stats { margin-top: -80px; position: relative; z-index: 2; }
.stats .card { background: rgba(255,255,255,.74); box-shadow: var(--hi), var(--shadow-lg); }
.stat .num { font-family: Poppins, sans-serif; font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); }
.step-n { font-family: Poppins, sans-serif; font-weight: 700; font-size: 15px; color: #fff; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, var(--blue), var(--navy)); margin-bottom: 14px; box-shadow: 0 8px 18px -6px rgba(1,115,230,.6); }

/* Needs */
.bar { height: 10px; background: rgba(11,19,34,.08); border-radius: 12px; overflow: hidden; margin: 14px 0 8px; box-shadow: inset 0 1px 2px rgba(11,19,34,.08); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 12px; transition: width .9s var(--ease); }
.bar.big { height: 22px; }
.need h3 { margin-top: 4px; }
.need .who { color: var(--muted); font-size: 15px; }
.need .amt { font-size: 16px; }
.need .amt b { font-size: 18px; }
.split-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--muted); margin: 8px 0 14px; }
.split-row b { color: var(--text); }
.need-live { border: 1.5px solid rgba(255,134,0,.65); box-shadow: var(--hi), 0 0 0 6px rgba(255,134,0,.07), var(--shadow); }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 10px rgba(255,134,0,.25); } 100% { box-shadow: var(--hi), var(--shadow); } }
.linklike { background: none; border: 0; color: var(--blue-d); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 0; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .amt { font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; min-width: 64px; }
.feed .mono { white-space: nowrap; }
.feed .when { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.feed li.new { animation: slidein .6s ease; }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Amount picker */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 20px; }
.amounts button { border: 1px solid var(--glass-edge); background: rgba(255,255,255,.6); box-shadow: var(--hi), 0 4px 14px -6px rgba(11,40,90,.2); border-radius: 16px; padding: 18px 8px; font: 700 28px Poppins, sans-serif; cursor: pointer; color: var(--text); transition: all .2s var(--ease); }
.amounts button[aria-pressed="true"] { border-color: var(--blue); background: rgba(1,115,230,.12); color: var(--blue-d); box-shadow: 0 0 0 4px rgba(1,115,230,.15); }

/* Timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl > li { position: relative; padding: 0 0 30px 64px; }
.tl > li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 3px; background: rgba(11,19,34,.1); border-radius: 3px; }
.tl > li:last-child::before { display: none; }
.tl > li.ok::before { background: linear-gradient(180deg, var(--blue), var(--cyan)); }
.tl .dot { position: absolute; left: 0; top: 0; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font: 700 18px Poppins, sans-serif; background: rgba(255,255,255,.75); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--hi), var(--shadow); color: var(--muted); }
.tl li.ok .dot { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.tl li.now .dot { background: var(--orange); border-color: var(--orange); color: var(--navy); box-shadow: 0 0 0 6px rgba(255,134,0,.18); }
.tl h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 21px; }
.tl h3 small { font: 400 15px Rubik, sans-serif; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.role { border: 1px solid var(--glass-edge); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.6); box-shadow: var(--hi); }
.role.ok { border-color: rgba(1,115,230,.4); background: rgba(1,115,230,.12); }
.role b { display: block; }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.tbl th { background: rgba(255,255,255,.55); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

/* Skills */
details.grp { border-radius: 16px; margin-bottom: 10px; }
details.grp[open] { background: var(--glass-strong); }
details.grp summary { cursor: pointer; padding: 13px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 500; list-style: none; }
details.grp summary::-webkit-details-marker { display: none; }
details.grp > div { padding: 0 16px 14px; color: var(--muted); font-size: 15px; }
.tier { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.tier-0 { background: rgba(11,19,34,.07); color: var(--text); }
.tier-1 { background: rgba(1,115,230,.12); color: var(--blue-d); }
.tier-2 { background: var(--navy); color: #fff; }
.tier-3 { background: var(--orange); color: var(--navy); }
details.why summary { color: var(--blue-d); font-weight: 600; cursor: pointer; margin: 8px 0; }
.av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(160deg, rgba(1,115,230,.18), rgba(0,212,252,.2)); color: var(--blue-d); display: grid; place-items: center; font-weight: 700; flex: none; box-shadow: var(--hi); }

/* QR */
.qrbox { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; box-shadow: var(--shadow); }
.qrbox svg, .qrbox img { display: block; width: 100%; height: auto; }

/* Confirm page (phone) */
.phone { max-width: 480px; margin: 0 auto; }
textarea, input[type=text], select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid rgba(11,19,34,.12); border-radius: 12px; background: rgba(255,255,255,.75) !important; box-shadow: inset 0 1px 2px rgba(11,19,34,.05); }
.big-count { font-family: Poppins, sans-serif; font-weight: 700; font-size: clamp(28px, 8vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }

/* Stage view (projector) */
.stage { min-height: 100vh; color: #fff; padding: 32px 0; position: relative;
  background: radial-gradient(50% 60% at 85% 15%, rgba(0,212,252,.3), transparent 60%), radial-gradient(60% 70% at 10% 90%, rgba(1,115,230,.45), transparent 60%), #0B1322; }
.stage .grid { align-items: stretch; }
.stage .card { background: rgba(255,255,255,.95); color: var(--text); }
.stage .huge { font-family: Poppins, sans-serif; font-weight: 700; font-size: clamp(56px, 8vw, 110px); line-height: 1; letter-spacing: -.03em; }
.stage .of { font-size: 26px; color: #C9D6E8; }
.stage .role { color: #fff; font-size: 20px; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.stage .role.ok { background: rgba(1,115,230,.45); border-color: rgba(0,212,252,.6); }
.stage .langs { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.2) !important; }
.stage .feed .amt { font-size: 30px; }
.stage-on .top, .stage-on .foot, .stage-on .tabbar, .confirm-on .tabbar { display: none; }
.stage-on .hero { margin-top: 0; }

/* Footer */
.foot { color: #fff; padding: 40px 0 120px; margin-top: 48px; background: linear-gradient(160deg, #0A2F63, #0B1322 60%); border-radius: 16px 16px 0 0; }
.foot p { color: #C9D6E8; margin: 8px 0 0; font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: #fff; font-size: 15px; }

/* Tab bar (phones): floating glass dock */
.tabbar { display: none; }
dialog { border-radius: 16px; padding: 24px; max-width: 420px; background: rgba(255,255,255,.82); box-shadow: var(--hi), 0 30px 80px rgba(11,19,34,.35); }
dialog::backdrop { background: rgba(11,19,34,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Browsers without backdrop-filter get solid cool white */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .card, .top, .tabbar, .notice, details.grp, .tbl, .langs, dialog, .btn-ghost, .pill-btn { background: rgba(255,255,255,.95); }
  .dark { background: var(--navy); }
}

@media (max-width: 1300px) { #cta-back { display: none; } }
@media (max-width: 1000px) {
  .stage .grid { grid-template-columns: minmax(0,1fr) !important; }
  .mainnav { display: none; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; padding: 8px 4px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: var(--hi), 0 14px 40px -10px rgba(11,40,90,.35); }
  .tabbar a { text-align: center; color: var(--muted); text-decoration: none; font-size: 11px; padding: 5px 2px; line-height: 1.2; border-radius: 16px; transition: background .2s; }
  .tabbar a.on { color: var(--blue-d); font-weight: 600; background: rgba(1,115,230,.10); }
  .tabbar svg { display: block; margin: 0 auto 3px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { margin: 8px 8px 0; top: 8px; border-radius: 16px; }
  .top-row { gap: 10px; min-height: 58px; padding: 0 12px; }
  .brand img { height: 26px; }
  .langs button { padding: 6px 7px; min-width: 30px; font-size: 12px; }
  .hide-sm { display: none; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 110px; margin-top: -74px; }
  .card { padding: 18px; border-radius: 16px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl td { border: 0; padding: 4px 14px; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .tl > li { padding-left: 56px; }
  .amounts button { font-size: 24px; }
  .chip { white-space: normal; }
  .feed .when { margin-left: 0; flex-basis: 100%; padding-left: 76px; }
  .page-head { padding-top: 32px; }
}
@media print {
  .top, .foot, .tabbar, .noprint { display: none !important; }
  body { background: #fff; } body::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Photo led home (giving site layout): photo hero and photo tiles */
.hero { background:
    linear-gradient(105deg, rgba(11,19,34,.92) 0%, rgba(6,61,130,.78) 48%, rgba(1,115,230,.35) 100%),
    url("assets/photos/hands.jpg") center 45% / cover no-repeat,
    linear-gradient(160deg, #0173E6 0%, #0A3F86 45%, #0B1322 100%); }
.photo { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 80% 10%, rgba(0,212,252,.55), transparent 60%), linear-gradient(160deg, #0173E6, #0B1322); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.card.tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.tile .photo { aspect-ratio: 16 / 10; }
.tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tile-body p { flex: 1; }
.tile .more { color: var(--blue-d); font-weight: 600; }
a.card.tile:hover .photo img { transform: scale(1.04); }

/* ---------- Interaction layer: menus and buttons respond to touch, mouse and keyboard ---------- */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.btn, .pill-btn, .langs button, .amounts button, .menu-btn, .mainnav a, .mnav a, .tabbar a, .foot a, details.grp summary, a.card {
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .2s; }
.btn:active, .pill-btn:active, .langs button:active, .amounts button:active, .menu-btn:active { transform: scale(.96); }
.btn:focus-visible, .pill-btn:focus-visible, .langs button:focus-visible, .menu-btn:focus-visible, .mainnav a:focus-visible, .mnav a:focus-visible, .tabbar a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (hover: hover) {
  .btn:not([disabled]):hover { transform: translateY(-1px); }
  .btn-orange:not([disabled]):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 28px -8px rgba(255,134,0,.7); filter: saturate(1.08); }
  .btn-blue:not([disabled]):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 28px -8px rgba(1,115,230,.7); }
  .btn-ghost:hover { border-color: rgba(5,89,184,.5); }
  .btn-ghost-w:hover { background: rgba(255,255,255,.22); }
  .langs button:not([aria-pressed="true"]):hover { background: rgba(1,115,230,.10); color: var(--blue-d); }
  .pill-btn:not([aria-pressed="true"]):hover { border-color: rgba(5,89,184,.35); }
  .amounts button:not([aria-pressed="true"]):hover { border-color: rgba(1,115,230,.45); transform: translateY(-1px); }
  .mainnav a:hover, .mnav a:not(.btn):hover { background: rgba(1,115,230,.08); color: var(--blue-d); }
  .menu-btn:hover { background: rgba(255,255,255,.9); }
  details.grp summary:hover { background: rgba(255,255,255,.5); }
  .foot a:hover { color: #fff; text-decoration-color: var(--cyan); }
}
.mainnav a { position: relative; }
.mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease); }
.mainnav a.on::after { transform: scaleX(1); }
@media (hover: hover) { .mainnav a:hover::after { transform: scaleX(.5); } }

/* Menu button and drop down panel */
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.6); cursor: pointer; padding: 0; position: relative; box-shadow: var(--hi); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); }
.menu-btn[aria-expanded="true"] span { background: #fff; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { display: grid; gap: 2px; padding: 4px 12px 14px; max-width: 1200px; margin: 0 auto; opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.mnav.open { opacity: 1; transform: none; }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { display: flex; align-items: center; min-height: 46px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.mnav a.on { color: var(--blue-d); background: rgba(1,115,230,.10); }
.mnav .btn { margin-top: 8px; }
.mnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.mnav-grid > div { display: grid; gap: 2px; align-content: start; }
.mnav-grid > div + div { border-left: 1px solid var(--line); padding-left: 12px; }

/* Header tightens a little once you scroll */
.top { transition: box-shadow .25s var(--ease), background-color .25s; }
.scrolled .top { background: rgba(255,255,255,.8); box-shadow: var(--hi), 0 12px 30px -12px rgba(11,40,90,.28); }
.top-row { transition: min-height .25s var(--ease); }
.scrolled .top-row { min-height: 58px; }

/* Phone tab bar: pressed and current states */
.tabbar a:active { transform: scale(.94); }
.tabbar a.on svg { transform: translateY(-1px); }
.tabbar svg { transition: transform .2s var(--ease); }

@media (max-width: 1000px) { .menu-btn { display: block; } }
@media (max-width: 640px) { .mnav-grid { grid-template-columns: 1fr; } .mnav-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { .mnav { transform: none; } }

/* Long button labels wrap instead of pushing the page sideways */
.btn { max-width: 100%; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Journeys (same design as tejido.org) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--blue-d); text-decoration: none; }
.h-sm { font-size: clamp(22px, 2.6vw, 28px); }
.persona { font-weight: 600; color: var(--blue-d); margin: 0; }
.jcard { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.jcard h3 { margin: 12px 0 6px; } .jcard .more { margin-top: auto; color: var(--blue-d); font-weight: 600; }
.jc-top { display: flex; align-items: center; gap: 10px; }
.jc-n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 16px Poppins, sans-serif; color: #fff; background: linear-gradient(160deg, var(--blue), var(--navy)); }
.jc-lanes { display: flex; gap: 4px; margin-bottom: 14px; } .jc-lanes i { width: 18px; height: 6px; border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; padding: 16px 20px; font-size: 14px; }
.legend span { display: inline-flex; gap: 8px; align-items: center; } .legend i { width: 12px; height: 12px; border-radius: 4px; }
.chip-money { background: rgba(11,19,34,.08); color: var(--navy); font-size: 12px; }
.dg { margin: 0; padding: 22px; } .dg-cap { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 18px; }
.swim-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.swim { display: grid; min-width: 560px; }
.sw-h { font: 700 13px Poppins, sans-serif; color: var(--muted); text-align: center; padding: 0 0 8px; }
.sw-lane { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; padding: 8px 8px 8px 0; border-top: 1px solid var(--line); }
.sw-lane i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-cell { border-top: 1px solid var(--line); display: grid; place-items: center; min-height: 40px; position: relative; }
.sw-cell::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(11,19,34,.06); }
.sw-dot { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 13px Rubik, sans-serif; text-decoration: none; box-shadow: 0 4px 10px -2px rgba(11,40,90,.35); transition: transform .15s var(--ease); }
.sw-dot:hover { transform: scale(1.12); }
.side.jsplit { margin-top: 28px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.jsteps { list-style: none; margin: 0; padding: 0; }
.jsteps li { position: relative; padding: 0 0 16px 52px; }
.jsteps li::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: rgba(11,19,34,.12); }
.jsteps li:last-child::before { display: none; }
.js-n { position: absolute; left: 0; top: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px Poppins, sans-serif; color: #fff; background: var(--rc); box-shadow: 0 6px 14px -4px rgba(11,40,90,.4); }
.js-card { padding: 16px 18px; border-left: 4px solid var(--rc); scroll-margin-top: 110px; }
.js-card h3 { margin: 8px 0 4px; font-size: 18px; }
.js-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.js-role { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); } .js-role i { width: 10px; height: 10px; border-radius: 3px; background: var(--rc); }
.jsteps li.pulse .js-card { box-shadow: 0 0 0 4px rgba(0,212,252,.45), var(--shadow); }
.jside { display: grid; gap: 22px; align-content: start; position: sticky; top: 100px; }
.branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.branches li { display: flex; gap: 12px; align-items: flex-start; }
.diamond { flex: none; width: 12px; height: 12px; margin-top: 6px; transform: rotate(45deg); border: 2px solid var(--orange); border-radius: 2px; }
.jguard ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pager .card { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: inherit; text-decoration: none; }
/* Photo banners on inner pages */
.banner-wrap { margin: 4px auto 8px; }
.banner { border-radius: 16px; aspect-ratio: 21 / 6; box-shadow: var(--shadow-lg); }
/* Exhaustive footer */
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand p { color: #C9D6E8; font-size: 15px; margin: 10px 0 0; max-width: 460px; }
.foot-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.fcol h4 { font: 600 15px Rubik, sans-serif; color: #fff; margin: 0 0 12px; }
.fcol a { display: block; color: #D5DCE6; text-decoration: none; padding: 5px 0; font-size: 14px; line-height: 1.4; }
.foot-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #AEBBCD; font-size: 14px; }
.langs-dark { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; box-shadow: none !important; display: inline-flex; }
.langs-dark button { color: #fff; } .langs-dark button[aria-pressed="true"] { background: #fff; color: var(--navy); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jside { position: static; } }
@media (max-width: 860px) { .side.jsplit { grid-template-columns: minmax(0, 1fr); } .pager { grid-template-columns: minmax(0, 1fr); } .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .banner { aspect-ratio: 16 / 7; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; } .fcol { border-bottom: 1px solid rgba(255,255,255,.1); padding: 10px 0; } }
/* Header: nav never runs under the language toggle; the full menu button shows at every width */
.mainnav { overflow: hidden; }
.menu-btn { display: block; }
@media (max-width: 1440px) { .mainnav a:last-child { display: none; } }
@media (max-width: 1180px) { .mainnav a { padding: 8px 8px; font-size: 14px; } }

/* =====================================================================
   UI/UX refinement pass (shared by tejido.org and tejido.net)
   Type scale, spacing rhythm, contrast, 12px buttons, readable footer.
   ===================================================================== */
:root { --muted: #475366; --text: #0B1322; }
body { font-size: 17px; line-height: 1.62; letter-spacing: .002em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.028em; margin-bottom: .35em; }
h2 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.12; letter-spacing: -.022em; }
h3 { font-size: 19px; line-height: 1.3; }
p, li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
.lead { font-size: clamp(17.5px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 68ch; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; font-weight: 600; color: var(--blue-d); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.55; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Spacing rhythm */
section { padding: 88px 0; }
section.tight { padding: 36px 0; }
.page-head { padding-top: 52px; padding-bottom: 20px; }
.sec-head { margin-bottom: 36px; }
.grid { gap: 24px; }
.card { padding: 28px; }
.wrap { padding-left: 28px; padding-right: 28px; }

/* Buttons: 12px corners everywhere, calmer sizes */
.btn, .btn-sm, .btn-ghost-w, .pill-btn, .menu-btn { border-radius: 12px; }
.btn { min-height: 48px; padding: 12px 22px; font-size: 16px; font-weight: 600; letter-spacing: .005em; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.actions { gap: 12px; }

/* Chips and labels: smaller, quieter */
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; letter-spacing: .01em; }
.tier { border-radius: 8px; }

/* Header: lighter nav weight, clear current page */
.mainnav a { font-size: 15px; font-weight: 500; color: #1C2638; }
.langs button { font-size: 12.5px; }

/* Footer: readable, airy columns */
.foot { padding: 72px 0 56px; }
.foot-top { padding-bottom: 40px; margin-bottom: 44px; }
.foot-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; gap: 44px 48px !important; }
.fcol h4, .foot-grid h4 { font: 600 12.5px Rubik, sans-serif; letter-spacing: .12em; color: #8FD3F0; margin: 0 0 18px; }
.fcol a, .foot-grid a { display: block; font-size: 15.5px !important; line-height: 1.45 !important; color: #E3EAF3 !important; padding: 7px 0 !important; text-decoration: none; opacity: .92; }
.fcol a:hover, .foot-grid a:hover { opacity: 1; color: #fff !important; text-decoration: underline; text-decoration-color: var(--cyan); }
.fcol a + a, .foot-grid a + a { margin-top: 2px; }
.foot-brand p { font-size: 15.5px; line-height: 1.6; color: #C9D6E8; }
.foot-base { margin-top: 56px; padding-top: 28px; font-size: 14.5px; line-height: 1.6; color: #B4C1D3; display: grid; gap: 10px; }
.foot-base p { margin: 0; max-width: 80ch; }
.foot-base .langs { margin-top: 8px; justify-self: start; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .card { padding: 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 28px !important; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  section { padding: 52px 0; }
  section.tight { padding: 24px 0; }
  .page-head { padding-top: 32px; padding-bottom: 12px; }
  .sec-head { margin-bottom: 26px; }
  .card { padding: 20px; }
  .foot { padding: 52px 0 120px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .fcol { padding: 20px 0 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .fcol h4 { margin-bottom: 10px; }
  .fcol a { padding: 9px 0 !important; }
}
/* Footer: deliberate three column layout on desktop, two on tablets, one on phones */
.foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 48px 64px !important; }
.foot-grid .fcol { max-width: 340px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 32px !important; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; } .foot-grid .fcol { max-width: none; } .foot-grid .fcol:last-child { border-bottom: 0; } .foot-base { margin-top: 24px; } }

/* =====================================================================
   Grouped header: hover dropdowns on desktop, accordion panel on phones,
   language dropdown. Shared by tejido.org and tejido.net.
   ===================================================================== */
.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: visible !important; }
.mainnav > a, .dd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px !important; border-radius: 12px; border: 0; background: none; font: 500 15px Rubik, sans-serif !important; color: #1C2638; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mainnav > a:last-child { display: inline-flex !important; }
.mainnav > a::after { display: none !important; }
.mainnav > a.on, .dd.on > .dd-btn { color: var(--blue-d); background: rgba(1,115,230,.09); }
@media (hover: hover) { .mainnav > a:hover, .dd-btn:hover, .dd:hover > .dd-btn { background: rgba(1,115,230,.08); color: var(--blue-d); } }
.chev { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px; border-radius: 16px; z-index: 40;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--hi), 0 24px 50px -16px rgba(11,40,90,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.dd-right .dd-menu, .dd-menu.dd-right { left: auto; right: 0; min-width: 180px; }
.dd.open > .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd.open > .dd-btn .chev { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1001px) { .dd:hover > .dd-menu { opacity: 1; visibility: visible; transform: none; } .dd:hover > .dd-btn .chev { transform: rotate(180deg); } }
.dd-menu a, .dd-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--text); text-decoration: none; font: 500 15px Rubik, sans-serif; text-align: left; cursor: pointer; }
.dd-menu a small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.dd-menu a:hover, .dd-menu button:hover, .dd-menu a:focus-visible, .dd-menu button:focus-visible { background: rgba(1,115,230,.08); color: var(--blue-d); }
.dd-menu a.on { color: var(--blue-d); background: rgba(1,115,230,.06); }
/* Language dropdown */
.lang-dd .dd-btn { gap: 6px; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.6); box-shadow: var(--hi); font-weight: 600 !important; font-size: 14px !important; }
.lang-dd .dd-menu button { flex-direction: row; justify-content: space-between; align-items: center; }
.lang-dd .dd-menu button[aria-pressed="true"] { color: var(--blue-d); font-weight: 600; }
.lang-dd .dd-menu button span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lang-dd .ico { color: var(--blue-d); }
/* Phone and tablet: accordion panel */
.mnav-groups { display: grid; gap: 4px; }
.mnav-groups details { border-radius: 12px; }
.mnav-groups summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.mnav-groups summary::-webkit-details-marker { display: none; }
.mnav-groups details[open] summary { color: var(--blue-d); background: rgba(1,115,230,.06); }
.mnav-groups details[open] summary .chev { transform: rotate(180deg); }
.mnav-groups details > div { display: grid; gap: 2px; padding: 4px 0 8px 12px; }
.mnav-groups a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.mnav-groups a.on { color: var(--blue-d); background: rgba(1,115,230,.08); }
.mnav-groups > a { font-weight: 600; }
.mnav-langs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mnav-langs button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font: 600 14px Rubik, sans-serif; cursor: pointer; }
.mnav-langs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.menu-btn { display: none !important; }
@media (max-width: 1000px) { .mainnav { display: none !important; } .menu-btn { display: block !important; } .top-right .lang-dd { display: none; } }
@media (min-width: 1001px) { .mnav { display: none !important; } }

/* =====================================================================
   Skills first: hero line, "not crowdfunding" comparison, skilled examples
   ===================================================================== */
.hero .skills-first { display: inline-block; margin: 6px 0 14px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: 17px; line-height: 1.4; }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-row h2 { margin: 0; }
.sx-title { margin: 28px 0 16px; }
.sk-top { padding-top: 8px; padding-bottom: 40px; }
.sk-top .grid.g4 { margin-bottom: 8px; }
.cmp { margin-top: 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-solid); background: rgba(255,255,255,.75); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 2fr); }
.cmp-row > * { padding: 14px 18px; border-top: 1px solid var(--line); line-height: 1.5; }
.cmp-head > * { border-top: 0; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.cmp .cmp-a { color: var(--muted); }
.cmp .cmp-b { background: rgba(1,115,230,.07); color: var(--navy); font-weight: 500; }
.cmp-head .cmp-b { background: var(--blue); color: #fff; }
@media (max-width: 760px) {
  .cmp { border: 0; background: none; overflow: visible; display: grid; gap: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-solid); background: rgba(255,255,255,.85); }
  .cmp-row > * { border-top: 0; padding: 10px 16px; }
  .cmp-row > b { padding-top: 14px; }
  .cmp-row .cmp-a::before, .cmp-row .cmp-b::before { content: attr(data-l); display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }
  .cmp-row .cmp-a::before { color: var(--muted); }
  .cmp-row .cmp-b { border-left: 4px solid var(--blue); }
  .cmp-row .cmp-b::before { color: var(--blue-d); }
}

/* the old "hide last nav link" rule must not hide the last dropdown item */
.mainnav .dd-menu a:last-child { display: flex !important; }

/* accessibility: focus ring with sufficient contrast (replaces cyan) */
:focus-visible { outline: 3px solid #0559B8; outline-offset: 2px; }
.btn:focus-visible, .pill-btn:focus-visible, .langs button:focus-visible, .menu-btn:focus-visible, .mainnav a:focus-visible, .mnav a:focus-visible, .tabbar a:focus-visible { outline: 3px solid #0559B8; outline-offset: 2px; }

/* journey swimlane: scroll hint and right edge fade on phones */
.swim-hint { display: none; margin: 0 0 6px; }
.swim-fade { position: relative; }
.nf { padding-bottom: 48px; }
@media (max-width: 640px) {
  .mnav-langs button, .langs button { min-height: 44px; min-width: 44px; }
  .swim-hint { display: block; }
  .swim-fade::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none; background: linear-gradient(to right, rgba(255,255,255,0), #fff); }
}

.stats-wait { margin: 12px 0 0; }

/* Tonight and pledge */
.tn-card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; min-height: 220px; }
.tn-card h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.tn-card .btn { align-self: flex-start; margin-top: auto; }
.tn-pledge { border: 1.5px solid rgba(255,134,0,.55); }
.pledge { display: grid; gap: 14px; }
.pledge label { display: grid; gap: 6px; font-size: 15px; }
.pledge select, .pledge input[type=text] { min-height: 48px; }
.pl-consent { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; }
.pl-consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

/* =====================================================================
   tejido.net app layer (2026-10-31). New class names only (x-*), plus the
   shared header, footer and tab bar. The #/back page keeps its own styles:
   nothing here targets .page-head, .side, .card spacing or the give form.
   ===================================================================== */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { flex: none; display: inline-block; vertical-align: middle; }
input[type=email], input[type=password], input[type=number], input[type=date], input[type=search] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid rgba(11,19,34,.14); border-radius: 12px;
  background: rgba(255,255,255,.85); box-shadow: inset 0 1px 2px rgba(11,19,34,.05); color: var(--text); }
.x-form input[type=text], .x-form select, .x-form textarea, .sheet input[type=text], .sheet select, .sheet textarea { min-height: 48px; font-size: 16px; border-color: rgba(11,19,34,.14); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(1,115,230,.45); outline-offset: 1px; border-color: var(--blue); }

/* Page enter, toasts, skeletons */
body:not([data-route="back"]) #main.enter { animation: xenter .26s var(--ease); }
@keyframes xenter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; z-index: 80; left: 50%; top: 88px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 12px; background: rgba(11,19,34,.94); color: #fff; font-weight: 500; font-size: 15px; line-height: 1.4;
  box-shadow: 0 18px 40px -12px rgba(11,19,34,.55); opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast .i { color: var(--cyan); }
.toast-err { background: #A32020; } .toast-err .i { color: #fff; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(11,19,34,.06) 0%, rgba(11,19,34,.12) 50%, rgba(11,19,34,.06) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-chip { width: 90px; height: 22px; margin-bottom: 16px; } .sk-t { width: 80%; height: 20px; margin-bottom: 12px; } .sk-l { width: 95%; height: 12px; margin-bottom: 8px; } .sk-l2 { width: 60%; height: 12px; }
.sk-h { width: 55%; height: 34px; margin: 8px 0 16px; } .sk-n { width: 56px; height: 30px; display: inline-block; vertical-align: middle; }
.x-skc { min-height: 168px; }
.x-skpage { padding: 28px 0; display: grid; gap: 4px; }
.acct-sk { display: inline-block; width: 120px; height: 40px; border-radius: 12px; background: rgba(11,19,34,.06); }

/* Layout */
.x-head { padding-top: 40px; padding-bottom: 8px; }
.x-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.x-head-tight { padding-top: 24px; padding-bottom: 0; }
.x-lead { font-size: 17.5px; color: var(--muted); max-width: 56ch; margin: 0 0 8px; }
.x-sec { padding: 36px 0; }
.x-sec-last { padding-bottom: 8px; }
.x-h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 18px; }
.x-h3 { font: 600 18px Rubik, sans-serif; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.x-mt { margin-top: 32px; }
.x-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.x-row .x-h2 { margin: 0; }
.x-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.x-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.x-grid > * { min-width: 0; }
.x-grid-1 { grid-template-columns: minmax(0, 1fr); }
.x-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.x-narrow { max-width: 600px; }
.wrap.x-narrow { margin-left: auto; margin-right: auto; }
.x-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 12px; }
.x-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.x-center { justify-content: center; }
.x-pad { padding-top: 48px; }
.x-backlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 14px; padding: 6px 10px 6px 4px; border-radius: 12px; }
.x-backlink:active { background: rgba(1,115,230,.08); }
.x-banner { padding-top: 16px; }

/* Hero */
.x-hero { padding: 150px 0 72px; }
.x-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 820px; margin-bottom: 14px; }
.x-tagline { color: #FFB25C; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; font-size: 15px; }
.x-tagline span { color: #D3E0F2; font-weight: 400; }
.x-hero-lead { color: #D3E0F2; font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 0; }
.x-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.x-btn-lg { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.x-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin-top: -32px; position: relative; z-index: 2; background: rgba(255,255,255,.8); box-shadow: var(--hi), var(--shadow-lg); }
.x-stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.x-stat + .x-stat { border-left: 1px solid var(--line); }
.x-stat b { font: 700 30px/1.1 Poppins, sans-serif; letter-spacing: -.02em; }
.x-stat span { color: var(--muted); font-size: 14.5px; }
.x-stats-cc { margin-top: 8px; }

/* Launcher tiles */
.x-launch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.x-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: inherit; min-height: 150px; }
.x-tile-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--blue), var(--blue-d)); margin-bottom: 8px; box-shadow: 0 8px 18px -8px rgba(1,115,230,.7); flex: none; }
.t-orange .x-tile-ic { background: linear-gradient(160deg, #FF9A2E, #E07000); box-shadow: 0 8px 18px -8px rgba(255,134,0,.7); }
.t-green .x-tile-ic { background: linear-gradient(160deg, #13A57A, #08754A); box-shadow: 0 8px 18px -8px rgba(10,143,106,.7); }
.t-cyan .x-tile-ic { background: linear-gradient(160deg, #10C3E8, #0090B8); box-shadow: 0 8px 18px -8px rgba(0,166,200,.7); }
.t-navy .x-tile-ic { background: linear-gradient(160deg, #2A3A57, var(--navy)); box-shadow: 0 8px 18px -8px rgba(11,19,34,.6); }
.x-tile-t { font-weight: 600; font-size: 17px; line-height: 1.3; }
.x-tile-d { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
a.card:active, .x-tile:active, .x-opp:active, .x-jcard:active { transform: scale(.98); }

/* How it works and big numbered steps */
.x-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.x-how li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.5); border: 1px solid var(--glass-edge); }
.x-how h3 { margin: 4px 0 4px; font-size: 17px; }
.x-how p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.x-how-ic { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-d); background: rgba(1,115,230,.1); }
.x-how-ic i, .bs-ic i { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 12px/22px Poppins, sans-serif; text-align: center; font-style: normal; }
.x-how-sm li { padding: 14px; align-items: center; }
.x-how-sm h3 { margin: 0; font-size: 15.5px; }
.x-how li.ok .x-how-ic { background: var(--ok-bg); color: var(--ok); }
.x-bigsteps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; position: relative; }
.x-bigsteps li { position: relative; padding: 22px 20px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid var(--glass-edge); box-shadow: var(--hi), var(--shadow); }
.x-bigsteps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -14px; width: 12px; height: 12px; border-top: 2px solid rgba(1,115,230,.5); border-right: 2px solid rgba(1,115,230,.5); transform: rotate(45deg); }
.bs-ic { position: relative; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--blue), var(--navy)); margin-bottom: 16px; box-shadow: 0 10px 22px -10px rgba(1,115,230,.8); }
.bs-ic i { background: var(--orange); color: var(--navy); }
.x-bigsteps h3 { font-size: 18px; margin: 0 0 6px; }
.x-bigsteps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.x-flow { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(1,115,230,.08); border: 1px solid rgba(1,115,230,.16); }
.x-flow span { font-size: 12.5px; letter-spacing: .08em; color: var(--blue-d); font-weight: 600; }
.x-flow b { font-weight: 600; }
.x-jgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-jcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: inherit; }
.x-jcard > .i { color: var(--blue-d); }
.x-jn { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 15px Poppins, sans-serif; color: #fff; background: linear-gradient(160deg, var(--blue), var(--navy)); }
.x-jtx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.x-jlink { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; }
.x-jlink > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.x-jlink .x-tile-ic { margin: 0; }
.x-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.x-pager .card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: inherit; }
.x-pager .card:last-child { text-align: right; }

/* Explore */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(11,19,34,.06); margin: 4px 0 14px; }
.seg button { border: 0; background: none; font: 600 15px Rubik, sans-serif; padding: 9px 22px; border-radius: 10px; cursor: pointer; color: var(--muted); min-height: 40px; }
.seg button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -2px rgba(11,19,34,.2); }
.x-search { position: relative; max-width: 640px; }
.x-search > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.x-search input { padding-left: 44px; min-height: 52px; border-radius: 14px; background: rgba(255,255,255,.9); }
.x-filters { display: grid; gap: 8px; margin: 14px 0 6px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fg-l { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 74px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(11,19,34,.12); background: rgba(255,255,255,.7); border-radius: 12px; padding: 7px 13px; font: 500 14px Rubik, sans-serif; color: var(--text); cursor: pointer; min-height: 38px; white-space: nowrap; transition: background .15s, color .15s, transform .12s; }
.fchip:active { transform: scale(.95); }
.fchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) { .fchip:not([aria-pressed="true"]):hover { border-color: rgba(1,115,230,.4); background: #fff; } }
.x-countrow { display: flex; align-items: center; gap: 14px; min-height: 36px; margin: 6px 0 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.x-opp { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.x-opp h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; }
.x-stretch { color: inherit; text-decoration: none; }
.x-stretch::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.x-stretch:focus-visible { outline: none; }
.x-stretch:focus-visible::after { outline: 3px solid #0559B8; outline-offset: 2px; }
@media (hover: hover) { .x-opp:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow-lg); } }
.x-opp-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: rgba(1,115,230,.1); color: var(--blue-d); white-space: nowrap; }
.tchip.t-funds { background: rgba(255,134,0,.14); color: #9A4A00; }
.tchip.t-inkind { background: rgba(0,166,200,.13); color: #00657E; }
.tchip.t-mentorship { background: rgba(107,91,214,.13); color: #4A3BB0; }
.tchip.t-networking { background: rgba(10,143,106,.13); color: #08664B; }
.x-mode { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.x-place { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 14.5px; }
.x-line { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.x-opp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.x-org { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.x-org > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtick { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue); color: #fff; }
.x-cta { pointer-events: none; min-height: 38px; padding: 7px 14px; font-size: 14.5px; }
.x-person { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.x-person-top { display: flex; gap: 12px; align-items: center; }
.x-person h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.x-person-top p { margin: 0; }
.x-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.x-meta span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.x-offers { display: flex; flex-wrap: wrap; gap: 6px; }
.x-svc { font-weight: 600; margin: 0; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; font: 600 13px Rubik, sans-serif; letter-spacing: .02em; }
.avatar.xs { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.md { width: 46px; height: 46px; font-size: 15px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* Empty states */
.x-empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.x-empty h2 { font-size: 22px; margin: 8px 0 2px; }
.x-empty p { color: var(--muted); margin: 0; max-width: 44ch; }
.x-empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,115,230,.1); color: var(--blue-d); }
.x-empty.x-ok .x-empty-ic { background: var(--ok-bg); color: var(--ok); }
.x-empty-in { grid-column: 1 / -1; }
.x-empty-sm { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.x-empty-sm p { margin: 0; color: var(--muted); }

/* Opportunity detail */
.x-detail { max-width: 760px; display: grid; gap: 14px; padding-bottom: 12px; }
.x-dh1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.x-orgline { display: flex; align-items: center; gap: 10px; margin: 0; }
.x-orgline > span:last-child { display: flex; flex-direction: column; }
.x-vlabel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue-d); }
.x-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-kpis > div { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid var(--glass-edge); display: flex; flex-direction: column; }
.x-kpis b { font: 700 28px/1.1 Poppins, sans-serif; }
.x-kpis span { color: var(--muted); font-size: 14px; }
.x-desc { white-space: pre-line; font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.x-sticky-actions { margin-top: 6px; }

/* Forms */
.x-auth-head { text-align: center; padding-top: 36px; }
.x-auth-head .x-lead { margin-left: auto; margin-right: auto; }
.x-auth-ic { width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--blue), var(--navy)); margin-bottom: 14px; }
.x-form { display: grid; gap: 18px; }
.x-field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.x-field > span:first-child, .x-field > label, .x-field legend, .x-lbl { font-weight: 600; font-size: 15px; padding: 0; }
.x-field legend { margin-bottom: 7px; }
.x-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.x-ro { margin: 0; font-weight: 600; font-size: 17px; }
.x-alt { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.x-alt-r { text-align: right; margin-top: -8px; }
.x-err { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(200,30,30,.08); color: #8E1B1B; font-weight: 500; font-size: 15px; }
.x-err[hidden] { display: none; }
.x-err .linklike { color: #8E1B1B; font-weight: 600; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--blue-d); font: 600 14px Rubik, sans-serif; padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.pw-eye[aria-pressed="true"] { background: rgba(1,115,230,.1); }
.pw-meter { height: 6px; border-radius: 6px; background: rgba(11,19,34,.08); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: #C0392B; transition: width .25s var(--ease), background .25s; }
.pw-meter[data-s="1"] i { width: 34%; background: #E08A00; }
.pw-meter[data-s="2"] i { width: 67%; background: #0A8F6A; }
.pw-meter[data-s="3"] i { width: 100%; background: var(--ok); }
.rolecards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rolecard, .ochip, .segr label { position: relative; cursor: pointer; }
.rolecard input, .ochip input, .segr input, .x-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rolecard > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid rgba(11,19,34,.12); background: rgba(255,255,255,.7); transition: border-color .15s, background .15s, box-shadow .15s; }
.rolecard > span .i { color: var(--blue-d); margin-bottom: 4px; }
.rolecard small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.rolecard input:checked + span { border-color: var(--blue); background: rgba(1,115,230,.08); box-shadow: 0 0 0 3px rgba(1,115,230,.15); }
.rolecard input:focus-visible + span, .ochip input:focus-visible + span, .segr input:focus-visible + span, .x-toggle input:focus-visible + .x-toggle-ui { outline: 3px solid #0559B8; outline-offset: 2px; }
.ochips { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(11,19,34,.14); background: rgba(255,255,255,.75); font-weight: 500; font-size: 15px; min-height: 42px; transition: background .15s, color .15s; }
.ochip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.segr { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(11,19,34,.06); }
.segr label { flex: 1 1 auto; }
.segr span, .segr-lang button { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border-radius: 10px; font: 600 15px Rubik, sans-serif; color: var(--muted); text-align: center; transition: background .15s, color .15s; }
.segr input:checked + span, .segr-lang button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -2px rgba(11,19,34,.2); }
.segr-lang button { flex: 1 1 auto; border: 0; background: none; cursor: pointer; }
.stepper { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; max-width: 260px; }
.stepper button { min-height: 48px; border-radius: 12px; border: 1px solid rgba(11,19,34,.12); background: rgba(255,255,255,.8); display: grid; place-items: center; color: var(--blue-d); cursor: pointer; }
.stepper button:active { transform: scale(.94); background: rgba(1,115,230,.1); }
.stepper input { text-align: center; font-weight: 600; font-size: 18px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x-money { position: relative; display: block; max-width: 260px; }
.x-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.x-money input { padding-left: 30px; }
.x-two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-toggle { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 14px 16px; border-radius: 16px; background: rgba(1,115,230,.06); }
.x-toggle > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.x-toggle small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.x-toggle-ui, .switch { flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: rgba(11,19,34,.2); transition: background .2s; border: 0; padding: 0; cursor: pointer; }
.x-toggle-ui i, .switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11,19,34,.3); transition: transform .2s var(--ease); }
.x-toggle input:checked + .x-toggle-ui, .switch[aria-checked="true"] { background: var(--ok); }
.x-toggle input:checked + .x-toggle-ui i, .switch[aria-checked="true"] i { transform: translateX(20px); }
.x-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.x-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.x-tip summary { color: var(--blue-d); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.x-tip p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(11,19,34,.25); border-top-color: var(--navy); animation: spin .7s linear infinite; }
.btn-blue.is-busy::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-danger { background: #B42318; color: #fff; box-shadow: 0 8px 22px -8px rgba(180,35,24,.6); }
.x-danger summary { cursor: pointer; font-weight: 600; color: #B42318; }
.x-danger form { margin-top: 14px; }
.x-settings { display: grid; gap: 16px; padding-top: 8px; }
.x-set .x-h3 { margin-bottom: 10px; }

/* Bottom sheet */
dialog.sheet { padding: 0; width: min(540px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 820px); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.96); }
dialog.sheet[open] { display: block; animation: sheetin .24s var(--ease); }
@keyframes sheetin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet-in { display: flex; flex-direction: column; max-height: inherit; }
.sheet-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: rgba(11,19,34,.18); margin: 8px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.sheet-head h2 { margin: 0; font-size: 21px; }
.sheet-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11,19,34,.06); display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; }
.sheet-body { overflow: auto; padding: 4px 20px 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-body form { display: grid; gap: 18px; }
.x-sheet-sub { margin: 0 0 14px; color: var(--muted); font-weight: 500; }
.sheet-actions { position: sticky; bottom: 0; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.97) 28%); }

/* Dashboard */
.me-head { padding-bottom: 4px; }
.me-id { display: flex; align-items: center; gap: 16px; }
.me-id h1 { margin: 0 0 4px; font-size: clamp(26px, 3.4vw, 38px); overflow-wrap: anywhere; }
.me-sub { margin: 0; color: var(--muted); }
.x-vbanner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,134,0,.1); border: 1px solid rgba(255,134,0,.35); color: var(--navy); }
.x-vbanner > div { flex: 1; display: flex; flex-direction: column; font-size: 15px; }
.x-vbanner .i { color: #C26A00; }
.x-bignums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.x-bn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-bn { padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.x-bn b { font: 700 clamp(34px, 5vw, 48px)/1.05 Poppins, sans-serif; letter-spacing: -.03em; color: var(--navy); }
.x-bn .x-bn-sm { font-size: 22px; letter-spacing: -.01em; }
.x-bn span { color: var(--muted); font-size: 14.5px; }
.x-bn.bn-pending b { color: #C26A00; }
.x-block { margin-top: 30px; }
.x-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--orange); color: var(--navy); font-size: 13px; font-weight: 700; }
.x-items { list-style: none; margin: 0; padding: 4px 18px; }
.x-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.x-item:first-child { border-top: 0; }
.x-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.x-item-main b, .x-item-main a { overflow-wrap: anywhere; }
.x-item-main a { color: inherit; text-decoration: none; }
.x-item-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.x-note { font-size: 14px; color: var(--text); background: rgba(11,19,34,.04); padding: 6px 10px; border-radius: 10px; margin-top: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-pending { background: rgba(255,134,0,.15); color: #8A4500; }
.st-confirmed { background: var(--ok-bg); color: var(--ok); }
.st-rejected { background: rgba(11,19,34,.08); color: var(--muted); }
.x-vlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; text-decoration: none; }
.x-rev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rej-form { display: grid; gap: 8px; width: min(320px, 100%); }
.rej-form input { min-height: 42px; }
.hash { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; word-break: break-all; background: rgba(11,19,34,.05); padding: 10px 12px; border-radius: 12px; color: var(--navy); }
.hash-sm { font-size: 11.5px; padding: 6px 8px; margin-top: 6px; }
.x-note-line { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }
.x-rows { display: grid; padding: 4px 8px; margin-top: 30px; }
.x-rows a, .x-rows button { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border: 0; background: none; font: 500 16px Rubik, sans-serif; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; border-radius: 12px; min-height: 52px; }
.x-rows a + a, .x-rows a + button { border-top: 1px solid var(--line); border-radius: 0; }
.x-rows span { flex: 1; }
.x-rows .i { color: var(--blue-d); }
.x-rows button { color: #B42318; } .x-rows button .i { color: #B42318; }
.x-rows a:active, .x-rows button:active { background: rgba(1,115,230,.06); }

/* Proof */
.x-proof { display: grid; gap: 18px; }
.x-proof-top { display: flex; align-items: center; gap: 14px; }
.x-proof-badge { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.x-proof-badge.ok { background: var(--ok); color: #fff; box-shadow: 0 0 0 6px var(--ok-bg); }
.x-proof-badge.bad { background: #B42318; color: #fff; }
.x-proof-st { font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.x-proof-st.ok { color: var(--ok); } .x-proof-st.bad { color: #B42318; }
.x-proof-hours { display: flex; align-items: baseline; gap: 10px; }
.x-proof-hours b { font: 700 52px/1 Poppins, sans-serif; letter-spacing: -.03em; }
.x-proof-hours span { color: var(--muted); }
.x-dl { margin: 0; display: grid; gap: 0; }
.x-dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.x-dl dt { color: var(--muted); font-size: 14.5px; }
.x-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.x-hash { display: grid; gap: 8px; }
.x-hash-l { font-weight: 600; font-size: 14px; }
.x-hash .x-actions { margin-top: 0; }
.x-mine { display: grid; gap: 14px; border: 1.5px solid rgba(10,143,106,.35); }
.x-proof-row { display: flex; gap: 14px; align-items: center; }
.x-gift-ok { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid rgba(10,143,106,.35); }
.x-gift-ok h3 { margin: 4px 0 4px; }
.x-trail { display: grid; gap: 16px; padding-top: 8px; }
.x-trail-sum .bar { margin-top: 0; }
.x-needs { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }

/* Disclosures */
.x-discs { display: grid; gap: 10px; }
.x-disc { padding: 0; }
.x-disc > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 16.5px; }
.x-disc > summary::-webkit-details-marker { display: none; }
.x-disc > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--blue-d); border-bottom: 2px solid var(--blue-d); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
.x-disc[open] > summary::after { transform: rotate(225deg); }
.x-disc > summary > span { display: flex; flex-direction: column; gap: 2px; }
.x-disc > summary small { font-weight: 400; color: var(--muted); font-size: 14px; }
.x-disc > :not(summary) { margin-left: 20px; margin-right: 20px; }
.x-disc > :last-child:not(summary) { margin-bottom: 18px; }
.x-disc p { color: var(--muted); }
.x-grp-list { display: grid; gap: 6px; }
.x-plain { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.x-plan { list-style: none; margin: 0; padding: 8px 18px; }
.x-plan li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.x-plan li:first-child { border-top: 0; }
.x-plan li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px Poppins, sans-serif; background: rgba(11,19,34,.07); color: var(--muted); }
.x-plan li.ok > span { background: var(--ok); color: #fff; }

/* Header: account area */
.acct { display: flex; align-items: center; gap: 8px; }
.acct-btn { gap: 8px !important; padding: 4px 10px 4px 4px !important; border: 1px solid var(--glass-edge) !important; background: rgba(255,255,255,.6) !important; }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-dd .dd-menu a, .acct-dd .dd-menu button { flex-direction: row; align-items: center; gap: 10px; }
.acct-dd .dd-menu button { color: #B42318; }
.mnav-acct { display: grid; gap: 2px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.mnav-acct a, .mnav-acct button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font: 500 16px Rubik, sans-serif; border: 0; background: none; text-align: left; cursor: pointer; }
.mnav-acct .mnav-out { color: #B42318; }
.mnav-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Footer: compact */
.foot { padding: 40px 0 36px; margin-top: 56px; }
.fa { display: grid; gap: 22px; }
.fa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fa-top p { margin: 0; color: #C9D6E8; font-size: 15px; max-width: 520px; }
.fa-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.fa-links a { color: #E3EAF3; text-decoration: none; font-size: 15px; padding: 6px 0; }
.fa-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); }
.fa-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.fa-base p { margin: 0; color: #AEBBCD; font-size: 13.5px; max-width: 70ch; }

/* Phones and tablets: app tab bar */
@media (max-width: 1000px) {
  .tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; gap: 4px; border-radius: 16px; background: rgba(255,255,255,.82); z-index: 50; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 2px; font-size: 11.5px; font-weight: 500; border-radius: 12px; color: var(--muted); }
  .tabbar a.on { color: var(--blue-d); font-weight: 600; background: rgba(1,115,230,.12); }
  .tabbar .tb-ic { display: grid; place-items: center; height: 26px; }
  .tabbar .tb-ic svg { margin: 0; }
  .tabbar .tb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar a.on .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
  .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .toasts { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .x-sticky-actions { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -4px; padding: 10px 4px 4px; background: linear-gradient(rgba(243,247,252,0), rgba(243,247,252,.96) 30%); }
  .x-form .x-sticky-actions { margin: 0 -8px; padding: 12px 8px 6px; background: linear-gradient(rgba(255,255,255,0), rgba(250,252,255,.97) 30%); border-radius: 0 0 16px 16px; }
  .x-launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-needs { grid-template-columns: minmax(0, 1fr); }
  .x-two { grid-template-columns: minmax(0, 1fr); }
  .x-bigsteps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .x-bigsteps li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px; }
  .x-bigsteps .bs-ic { grid-row: span 2; margin: 0; }
  .x-bigsteps li:not(:last-child)::after { top: auto; bottom: -12px; right: auto; left: 44px; width: 2px; height: 12px; border: 0; background: rgba(1,115,230,.35); transform: none; }
  .x-bigsteps h3 { margin: 0; align-self: end; } .x-bigsteps p { align-self: start; }
}
@media (max-width: 760px) {
  .x-how { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .x-jgrid { grid-template-columns: minmax(0, 1fr); }
  .x-bn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .x-bn3 .x-bn { padding: 14px; }
  .x-bn3 .x-bn b { font-size: 28px; }
  .x-bn3 .x-bn span { font-size: 12.5px; line-height: 1.3; }
}
@media (max-width: 640px) {
  .acct { display: none; }
  .x-head { padding-top: 24px; }
  .x-head h1 { font-size: 30px; }
  .x-lead { font-size: 16.5px; }
  .x-sec { padding: 26px 0; }
  .x-hero { padding: 108px 0 52px; }
  .x-hero h1 { font-size: 31px; }
  .x-hero-lead { font-size: 16.5px; }
  .x-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .x-hero-actions .btn { padding: 12px 10px; font-size: 16px; min-height: 54px; }
  .x-stats { margin-top: -26px; }
  .x-stat { padding: 14px 12px; }
  .x-stat b { font-size: 24px; }
  .x-stat span { font-size: 12.5px; line-height: 1.3; }
  .x-tile { min-height: 0; padding: 16px; }
  .x-tile-ic { width: 40px; height: 40px; margin-bottom: 4px; }
  .x-tile-t { font-size: 15.5px; }
  .x-tile-d { font-size: 13.5px; }
  .x-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .x-opp, .x-person { padding: 18px; }
  .x-filters { margin: 12px -18px 4px; }
  .fgroup { flex-wrap: nowrap; overflow-x: auto; padding: 2px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fgroup::-webkit-scrollbar { display: none; }
  .fg-l { min-width: 0; padding-right: 2px; }
  .seg { display: grid; width: 100%; }
  .x-pager { grid-template-columns: minmax(0, 1fr); }
  .x-pager .card:last-child { text-align: left; }
  .rolecards { grid-template-columns: minmax(0, 1fr); }
  .rolecard > span { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .rolecard small { flex-basis: 100%; }
  .x-two-f { grid-template-columns: minmax(0, 1fr); }
  .x-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .x-items { padding: 2px 14px; }
  .x-item { flex-wrap: wrap; }
  .x-rev .x-item-side { width: 100%; justify-content: flex-start; }
  .x-stack { row-gap: 8px; }
  .x-stack .x-item-main { flex: 1 1 100%; }
  .x-stack .x-item-side { width: 100%; justify-content: flex-start; }
  .x-sticky-phone { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; padding: 10px 0 4px; background: linear-gradient(rgba(243,247,252,0), rgba(243,247,252,.96) 30%); }
  .x-sticky-phone .btn { flex: 1; }
  .x-detail .x-sticky-actions .btn { min-height: 54px; }
  .x-empty { padding: 36px 8px; }
  .x-vbanner { flex-wrap: wrap; }
  .x-vbanner .btn { width: 100%; }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92vh; }
  dialog.sheet[open] { animation: sheetup .28s var(--ease); }
  .sheet-grab { display: block; }
  .sheet-head { padding-top: 10px; }
  .fa-top { flex-direction: column; align-items: flex-start; }
}
@keyframes sheetup { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
@media print { .toasts, dialog.sheet { display: none !important; } }
.fg-l { flex: none; }
.x-cta { white-space: nowrap !important; flex: none; }
@media (max-width: 640px) { .x-block { margin-top: 22px; } .x-sticky-phone { margin-top: 12px; } }

/* ---- QA fixes ---- */
/* #/me and two-column pages: the generic section padding does not apply to these blocks */
.x-block { padding: 0; margin-top: 28px; }
.x-two > section { padding: 0; }
.x-rows { margin-top: 28px; }
/* Next step under "Payments are not available", and "See everyone" */
.x-next { margin: 12px 0 0; }
.x-next a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
/* Clear Accounting: the stats card sits below the subtitle, never over it */
.x-stats.x-stats-cc { margin-top: 8px; }
/* Error box: the icon stays on the first line, long messages wrap beside it */
.x-err { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 6px; align-items: start; }
.x-err > svg { margin-top: 2px; }
.x-err > .linklike { grid-column: 2; justify-self: start; }
/* Field errors */
.x-ferr { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: #8E1B1B; font-size: 14.5px; font-weight: 500; }
.x-ferr svg { flex: none; margin-top: 2px; }
.x-form [aria-invalid="true"] { border-color: #C0392B !important; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
/* Dashboard */
.x-bn-note { color: var(--muted); font-size: 12.5px; line-height: 1.3; margin-top: 6px; }
.x-rej-note { color: #8E1B1B; }
/* Proof page: result of the check made in the browser */
.x-proof-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 14.5px; font-weight: 500; }
.x-proof-check svg { flex: none; margin-top: 2px; }
.x-proof-check.ok { color: #08754A; }
.x-proof-check.bad { color: #8E1B1B; }
/* Tap targets of at least 44px */
.fchip, .seg button { min-height: 44px; }
.x-more { display: inline-flex; align-items: center; min-height: 44px; }
.fa-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.x-alt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.x-danger summary { display: flex; align-items: center; min-height: 44px; }
.x-check { min-height: 44px; align-items: center; padding: 6px 0; cursor: pointer; }
.x-check input { width: 24px; height: 24px; margin: 0; }
@media (max-width: 1000px) {
  /* Tab bar: opaque enough that page text never shows through */
  .tabbar { background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
  /* The footer ends every page, so its padding keeps the last links above the bar (66px bar + 8px gap + room) */
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .segr-lang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-cta-row { margin-bottom: 16px; }
  .x-cta-row .btn { flex: 1 1 100%; }
}
