/* EUID Wallet Demo — Yoid style (tokens of yoid.es, approved prototype of 2026-11-22). */
:root { --blue: #3366ff; --blue-dark: #2348d3; --blue-soft: rgba(51,102,255,.10); --blue-mid: rgba(51,102,255,.15);
  --ink: #0f172a; --ink2: #1e293b;
  --g1: #f8fafc; --g2: #f1f5f9; --g3: #e2e8f0; --g4: #94a3b8; --t2: #475569; --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --acc: var(--blue); --acc-ink: #fff;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light; }
* { box-sizing: border-box; }
html, body { min-height: 100%; height: 100%; }
body { margin: 0; background: var(--g1); color: var(--ink); font-family: var(--font-body); font-size: 14px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; line-height: 1.6; }
a { color: var(--acc); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
@media (max-width: 600px) { .wrap { padding-left: 18px; padding-right: 18px; } }

/* persona header */
.ph { background: #fff; border-bottom: 1px solid var(--g3); }
.ph .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.brand .mk { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-size: 14px; }
.brand svg.ylogo { height: 22px; width: auto; }
.ph .wrap > nav { display: flex; gap: 18px; flex: 1; }
.ph .wrap > nav a { font-size: 13.5px; color: var(--t2); text-decoration: none; cursor: pointer; }
.ph .wrap > nav a.on { color: var(--ink); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--g3); border-radius: 7px; overflow: hidden; }
.lang button { border: 0; background: #fff; color: var(--t2); font-size: 12px; padding: 4px 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 600px) { .ph .wrap > nav { display: none; } .ph .wrap { justify-content: space-between; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 600;
  background: var(--acc); color: var(--acc-ink); padding: 12px 22px; border-radius: 10px; font-size: 14.5px; text-decoration: none; }
.btn:hover { filter: brightness(.94); }
.btn.sm { padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--g3); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.btn.block { width: 100%; }

.hero { background: var(--ink); color: #fff; }
.hero .wrap { padding-block: 44px 46px; display: flex; flex-direction: column; gap: 14px; }
.hero .kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #93a4c8; font-weight: 600; }
.hero h1 { font-size: 34px; font-weight: 700; line-height: 1.15; max-width: 640px; }
.hero p { color: #b6c2d9; max-width: 600px; font-size: 15.5px; }
@media (max-width: 600px) { .hero h1 { font-size: 26px; } .hero .wrap { padding-block: 30px; } }

.section { padding-block: 28px; }
.section > .wrap { display: flex; flex-direction: column; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--g3); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ocard { background: #fff; border: 1px solid var(--g3); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; }
.ocard:hover { border-color: var(--oc); box-shadow: 0 8px 24px -16px rgba(15,23,42,.4); }
.ocard .om { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; background: var(--oc); }
.ocard h3 { font-size: 15.5px; }
.ocard p { font-size: 13px; color: var(--t2); line-height: 1.5; }
.ocard .step { font-family: var(--font-mono); font-size: 11px; color: var(--g4); }
.ocard.start { border-color: var(--oc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc) 15%, transparent); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.field input, .field select { border: 1px solid var(--g3); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.hint { font-size: 12.5px; color: var(--t2); }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--warn); background: #fff7ed; border: 1px solid #fed7aa; padding: 2px 8px; border-radius: 99px; width: fit-content; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { font-size: 12.5px; padding: 6px 12px; border-radius: 99px; background: var(--g2); color: var(--t2); }
.steps span.on { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.steps span.done { background: #dcfce7; color: #166534; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--t2); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.wcard { border-radius: 14px; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 6px; justify-content: space-between;
  width: 100%; max-width: 360px; aspect-ratio: 750 / 473; background-size: cover; background-position: center; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.wcard .top { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wcard .t { font-family: var(--font-display); font-weight: 600; }
.wcard .n { font-family: var(--font-mono); letter-spacing: .08em; font-size: 14px; }

.result { border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.result.ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.result.no { background: #fef2f2; border: 1px solid #fecaca; }
.result .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; }
.result.ok .ic { background: var(--ok); } .result.no .ic { background: var(--bad); }
.result h2 { font-size: 22px; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--g3); border-radius: 12px; padding: 14px 16px; }

.prod { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; }
.prod .img { aspect-ratio: 1; max-width: 100%; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 13px; text-align: center; padding: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .prod { grid-template-columns: 90px 1fr; } .prod .price { grid-column: 2; } }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--t2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--g3); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--g2); vertical-align: middle; font-variant-numeric: tabular-nums; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--g1); }
.tscroll { overflow-x: auto; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #dcfce7; color: #166534; } .pill.warn { background: #ffedd5; color: #9a3412; }
.pill.bad { background: #fee2e2; color: #991b1b; } .pill.mute { background: var(--g2); color: var(--t2); } .pill.info { background: var(--blue-soft); color: var(--blue-dark); }
.meth { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.meth.POST { background: #dbeafe; color: #1e40af; } .meth.GET { background: #f1f5f9; color: #334155; } .meth.DELETE { background: #fee2e2; color: #991b1b; } .meth.PATCH { background: #fef3c7; color: #92400e; }

/* wallet dialog */
.scrim { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 18px; z-index: 40; }
.is-phone .scrim { align-items: end; padding: 0; }
.dlg { background: #fff; color: #0f172a; border-radius: 18px; width: min(680px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; font-family: var(--font-body); }
.is-phone .dlg { border-radius: 22px 22px 0 0; }
.dlg header { padding: 18px 22px 0; display: flex; align-items: center; gap: 10px; }
.dlg header .org { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--dacc); }
.dlg header .x { margin-left: auto; border: 0; background: #f1f5f9; color: #334155; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.dlg .body { padding: 14px 22px 20px; display: grid; grid-template-columns: 230px 1fr; gap: 22px; }
.is-phone .dlg .body { grid-template-columns: 1fr; }
.dlg h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 4px; }
.dlg .qr { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dlg .qr svg { width: 100%; height: auto; display: block; }
.dlg .qr small { color: #64748b; font-size: 11.5px; text-align: center; }
.dlg ul.ask { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dlg ul.ask li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8fafc; font-size: 13.5px; }
.dlg ul.ask li i { width: 26px; height: 18px; border-radius: 4px; background: var(--c, #3366ff); flex: none; }
.dlg .amount { font-family: var(--font-display); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.dlg .pin { display: flex; gap: 8px; } .dlg .pin span { width: 42px; height: 50px; border-radius: 10px; background: #0f172a; color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 700; display: grid; place-items: center; }
.status { display: flex; gap: 6px; flex-wrap: wrap; }
.status span { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: #f1f5f9; color: #64748b; display: inline-flex; gap: 6px; align-items: center; }
.status span.on { background: #eff6ff; color: #1d4ed8; } .status span.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3366ff; animation: pulse 1s infinite; }
.status span.done { background: #dcfce7; color: #166534; } .status span.fail { background: #fee2e2; color: #991b1b; }
@keyframes pulse { 50% { opacity: .3; } }

/* console */
.con { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; background: #f6f8fb; }
.side { background: #0f172a; color: #cbd5e1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.side .logo svg { height: 20px; width: auto; }
.side a { display: flex; align-items: center; justify-content: space-between; color: #cbd5e1; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.side a:hover { background: rgba(255,255,255,.06); }
.side a.on { background: #3366ff; color: #fff; }
.side .sub { padding-left: 14px; display: flex; flex-direction: column; gap: 2px; }
.side .sub a { font-size: 12.5px; padding: 6px 10px; }
.side .sep { height: 1px; background: rgba(255,255,255,.08); margin: 8px 4px; }
.side .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; padding: 6px 10px 2px; }
.cmain { min-width: 0; display: flex; flex-direction: column; }
.ctop { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.ctop .ten { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #475569; flex-wrap: wrap; }
.ctop .who { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.cbody { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cbody h1 { font-size: 21px; }
.chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 600; }
.tile .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; flex-direction: column; min-width: 0; }
.box > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.box > header h2 { font-size: 14px; }
.box > .in { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.scn { display: grid; grid-template-columns: 250px minmax(0,1fr) 300px; gap: 14px; align-items: start; }
.stepl { display: flex; flex-direction: column; gap: 2px; }
.stepl button { text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; color: #0f172a; display: flex; flex-direction: column; gap: 2px; }
.stepl button small { color: #64748b; font-size: 11.5px; }
.stepl button.on { background: #3366ff; color: #fff; }
.stepl button.on small { color: #dbe4ff; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tl li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; cursor: pointer; }
.tl li:hover { background: #f8fafc; }
.tl li .tm { font-family: var(--font-mono); font-size: 11px; color: #94a3b8; padding-top: 2px; }
.tl li .p { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl li .p code { font-family: var(--font-mono); font-size: 11.5px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl li.chk { cursor: default; } .tl li.chk .p { color: #166534; }
.tl li.new { animation: slidein .35s ease-out; }
@keyframes slidein { from { background: #eff6ff; } to { background: transparent; } }
.statebar { display: flex; gap: 0; } .statebar span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 7px 4px; background: #f1f5f9; color: #94a3b8; border-right: 2px solid #fff; }
.statebar span:first-child { border-radius: 8px 0 0 8px; } .statebar span:last-child { border-radius: 0 8px 8px 0; border-right: 0; }
.statebar span.done { background: #dcfce7; color: #166534; } .statebar span.on { background: #3366ff; color: #fff; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #0b1222; color: #e2e8f0; z-index: 45; display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0,0,0,.5); }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #1e293b; flex-wrap: wrap; }
.drawer header .x { margin-left: auto; border: 0; background: #1e293b; color: #e2e8f0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.drawer .tabs { display: flex; gap: 4px; padding: 8px 16px 0; }
.drawer .tabs button { border: 0; background: transparent; color: #94a3b8; padding: 6px 10px; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 12.5px; }
.drawer .tabs button[aria-pressed="true"] { background: #111a2e; color: #fff; }
.drawer pre { margin: 0; padding: 14px 16px; overflow: auto; flex: 1; background: #111a2e; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: #cbd5e1; }
.drawer pre .k { color: #93c5fd; } .drawer pre .s { color: #86efac; } .drawer pre .n { color: #fca5a5; }
.toggle { width: 38px; height: 22px; border-radius: 99px; background: #16a34a; position: relative; border: 0; cursor: pointer; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-pressed="false"] { background: #cbd5e1; } .toggle[aria-pressed="false"]::after { left: 3px; }
.tabsbar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #e2e8f0; }
.tabsbar button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; font-size: 13px; color: #64748b; border-bottom: 2px solid transparent; }
.tabsbar button.on { color: #0f172a; border-bottom-color: #3366ff; font-weight: 600; }
.confirm { border: 1px solid #fecaca; background: #fef2f2; border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #7f1d1d; }
.login { min-height: 100vh; display: grid; place-items: center; background: #0f172a; padding: 24px; }
.login .card { background: #fff; border-radius: 16px; padding: 28px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; }
.notice.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.notice.warn { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.notice code { font-family: var(--font-mono); font-size: 12px; background: rgba(15,23,42,.06); padding: 1px 5px; border-radius: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 100vh; }
@media (max-width: 900px) { .scn { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .con { grid-template-columns: 1fr; } .side { flex-direction: row; overflow-x: auto; padding: 8px; } .side .logo, .side .sep, .side .lbl, .side .sub { display: none; } .split { grid-template-columns: 1fr; } }
/* page = header + content + footer pinned to the bottom of the viewport */
.ppage { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ppage > .pfoot { margin-top: auto; }
/* phone: menu button (links + language), full-width actions, stacked key/value */
.menu-btn { display: none; border: 1px solid var(--g3); background: #fff; color: var(--ink); width: 38px; height: 38px; border-radius: 9px; cursor: pointer; place-items: center; font-size: 18px; flex: none; }
.mnav { display: none; }
.brand .bt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .ph .wrap { gap: 10px; justify-content: flex-start; }
  .ph .brand { margin-right: auto; min-width: 0; }
  .ph:not(.ph-land) .wrap > .lang { display: none; }
  .menu-btn { display: grid; }
  .mnav { display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--g3); }
  .mnav a { padding: 14px 18px; border-top: 1px solid var(--g2); color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; }
  .mnav a.on { color: var(--acc); font-weight: 700; }
  .mnav .lrow { padding: 12px 18px; border-top: 1px solid var(--g2); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--t2); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; overflow-wrap: anywhere; }
  .panel > .btn, .result .btn, .next .btn, .hero .btn, .row > .btn:first-child { width: 100% !important; flex: 1 1 100% !important; }
  .panel { padding: 18px; }
}
/* demo disclaimer footer on every audience page */
.pfoot { background: #fff; border-top: 1px solid var(--g3); margin-top: 8px; }
.pfoot .wrap { padding-block: 18px 22px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.pfoot .db { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 3px 8px; flex: none; }
.pfoot p { font-size: 12.5px; color: var(--t2); line-height: 1.55; flex: 1 1 320px; }
/* signed-in user in persona headers */
.uchip { display: flex; align-items: center; gap: 10px; }
.uchip .av { width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; font-family: var(--font-display); flex: none; }
.uchip .un { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.uchip .un small { color: var(--t2); font-size: 11.5px; }
@media (max-width: 600px) { .uchip .un { display: none; } }
/* presenter view: plain-language steps, technical detail on demand */
.pres { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; color: #0f172a; }
.pres .pk { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #64748b; font-weight: 600; }
.pres h2 { font-size: 24px; margin-top: 4px; color: #166534; }
.psteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.psteps details { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.psteps details[open] { background: #f8fafc; }
.psteps summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.psteps summary::-webkit-details-marker { display: none; }
.pn { width: 30px; height: 30px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-weight: 700; flex: none; font-family: var(--font-display); }
.pt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.pt span { color: #475569; font-size: 14px; line-height: 1.5; }
.chev { margin-left: auto; color: #94a3b8; font-size: 20px; line-height: 1; transition: transform .15s; }
.psteps details[open] .chev { transform: rotate(90deg); }
.tech { padding: 0 16px 16px 60px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tech .tline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tech .tl2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 600; }
.tech pre { background: #0b1222; color: #cbd5e1; border-radius: 10px; padding: 12px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; overflow: auto; margin: 0; max-height: 220px; }
.tech pre .k { color: #93c5fd; } .tech pre .s { color: #86efac; } .tech pre .n { color: #fca5a5; }
.tchk { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: #166534; }
@media (max-width: 640px) { .tech { padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- additions of the app (not in the prototype) ---- */
.ylogo { height: 22px; width: auto; display: block; }
.form-error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.dlg .wallet-link { word-break: break-all; font-size: 11px; color: #64748b; }
.dlg .pin-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dlg .qr img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.dlg .expired { font-size: 13px; color: #991b1b; }
.pending { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wait-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: pulse 1s infinite; margin-right: 6px; }
.lang a { display: inline-block; color: var(--t2); font-size: 12px; padding: 4px 8px; text-decoration: none; background: #fff; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.brand .mk { flex: none; }
.ph .wrap > .uchip, .ph .wrap > .btn { flex: none; }
.full-qr { position: fixed; inset: 0; background: #fff; z-index: 60; display: grid; place-items: center; padding: 4vh; cursor: zoom-out; }
.full-qr img { width: min(90vh, 90vw); height: auto; image-rendering: pixelated; }
.kv dd.ok { color: var(--ok); }
.muted { color: var(--t2); }
.notice.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice.bad { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline-form { display: inline; margin: 0; }
textarea.json { width: 100%; min-height: 200px; font-family: var(--font-mono); font-size: 12px; }
pre.json { background: #0b1222; color: #cbd5e1; border-radius: 10px; padding: 12px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; overflow: auto; margin: 0; max-height: 420px; white-space: pre; }
@media (max-width: 640px) { .con { align-content: start; } }

/* back to the landing page (all scenarios): demo chrome at the top-right edge of the window, outside the site's
   header content. Below 1160 px the header reserves room for it, so it never covers the header controls. */
.ph-home { position: relative; }
.home-btn { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--g3); border-radius: 9px; background: var(--g1, #f8fafc); color: var(--ink); text-decoration: none; }
.home-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 1160px) {
  .ph-home { padding-right: 58px; }
  .home-btn::before { content: ""; position: absolute; left: -9px; top: 6px; bottom: 6px; width: 1px; background: var(--g3); }
}
@media (max-width: 600px) {
  .ph-home { padding-right: 50px; }
  .home-btn { right: 8px; }
  .ph-home .mnav { margin-right: -50px; }
}

/* console: modal for the template JSON / compare views (server-rendered, closes back to the page) */
.cmodal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .55); display: flex; align-items: center;
  justify-content: center; padding: 3vh 16px; }
.cmodal-panel { width: min(1500px, 100%); max-height: 94vh; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.cmodal-panel > .in { overflow: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.cmodal-panel .grid2 { grid-template-columns: 1fr 1fr; }
.cmodal-panel pre.json { max-height: 68vh; }
@media (max-width: 760px) { .cmodal-panel .grid2 { grid-template-columns: 1fr; } }
body:has(.cmodal) { overflow: hidden; }
