/* Live demo: interactive web + app view (#system) */
.wl-demo {
    --wl-ink: #35312B;
    --wl-muted: #6E685F;
    --wl-line: #E6DFD6;
    --wl-soft: #F5F3F0;
    --wl-accent: var(--PrimaryColor, #C06240);
    --wl-gold: #D9A441;
    border: 1px solid var(--wl-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    color: var(--wl-ink);
    text-align: left;
}
.wl-demo button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wl-demo svg { width: 1em; height: 1em; flex-shrink: 0; }

/* Top bar: modules + view switch */
.wl-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--wl-line); }
.wl-mods, .wl-views { display: flex; gap: 0.25rem; }
.wl-mods { overflow-x: auto; scrollbar-width: none; }
.wl-mods::-webkit-scrollbar { display: none; }
.wl-mods button { padding: 0.6rem 1rem; border-radius: 6px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.wl-mods button:hover { background: var(--wl-soft); }
.wl-mods button.on { background: var(--wl-ink); color: #fff; }
.wl-views { background: var(--wl-soft); border-radius: 8px; padding: 0.25rem; flex-shrink: 0; }
.wl-views button { padding: 0.45rem 0.8rem; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; }
.wl-views button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Stage */
.wl-stage { display: flex; gap: 2rem; align-items: flex-start; justify-content: center; padding: 2rem; background: var(--wl-soft); }
.wl-demo[data-view="web"] .wl-app,
.wl-demo[data-view="app"] .wl-web { display: none; }
.wl-note { margin: 0; padding: 0.75rem 1.5rem; font-size: 0.75rem; color: var(--wl-muted); border-top: 1px solid var(--wl-line); }

/* Web view */
.wl-web { flex: 1; min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--wl-line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(53,49,43,.06); }
.wl-chrome { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--wl-line); }
.wl-dots { display: flex; gap: 5px; }
.wl-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--wl-line); }
.wl-url { flex: 1; background: var(--wl-soft); border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.75rem; color: var(--wl-muted); }
.wl-url b { font-weight: 400; color: var(--wl-ink); }

.wl-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--wl-line); }
.wl-logo { height: 36px; width: auto; margin-right: 1rem; }
.wl-grow { flex: 1; }
.wl-pill { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 50px; padding: 0.35rem 0.8rem; font-size: 0.75rem; white-space: nowrap; border: 1px solid var(--wl-line); }
.wl-pill-line { border-color: var(--wl-accent); color: var(--wl-accent); }
.wl-pill-ai { border-color: var(--wl-accent); color: var(--wl-accent); font-weight: 500; }
.wl-pill-ai i { width: 6px; height: 6px; border-radius: 50%; background: var(--wl-accent); }
.wl-ico { width: 18px; height: 18px; color: var(--wl-muted); }
.wl-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--wl-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }

.wl-body { display: flex; height: 620px; }
.wl-side { width: 210px; flex-shrink: 0; border-right: 1px solid var(--wl-line); padding: 0.75rem 0.5rem; overflow-y: auto; }
.wl-demo .wl-ghead { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.6rem; font-size: 0.78rem !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 6px; }
.wl-ghead:hover { background: var(--wl-soft); }
.wl-ghead svg { width: 16px; height: 16px; }
.wl-ghead .wl-chev { margin-left: auto; width: 14px; height: 14px; color: var(--wl-muted); transition: transform .2s; }
.wl-group.on .wl-ghead { color: var(--wl-accent) !important; }
.wl-group.on .wl-chev { transform: rotate(90deg); color: var(--wl-accent); }
.wl-subs { display: none; padding: 0.15rem 0 0.5rem; }
.wl-group.on .wl-subs { display: block; }
.wl-subs button { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%; padding: 0.4rem 0.6rem 0.4rem 2.2rem; font-size: 0.8rem; border-radius: 6px; text-align: left; }
.wl-subs button:hover { background: var(--wl-soft); }
.wl-subs button.on { background: #FBF0EB; color: var(--wl-accent) !important; }
.wl-subs button.muted { color: #A8A196; }

.wl-tag { font-style: normal; font-size: 0.6rem; line-height: 1; padding: 0.25rem 0.4rem; border-radius: 4px; white-space: nowrap; background: var(--wl-soft); color: var(--wl-muted); }
.wl-tag.blue { background: #E8F0F8; color: #3D6A96; }
.wl-tag.orange { background: #FBEEDD; color: #A8662A; }
.wl-tag.green { background: #E6F2E8; color: #3C7A4A; }
.wl-count { font-style: normal; font-size: 0.65rem; background: var(--wl-soft); border-radius: 4px; padding: 0.1rem 0.4rem; }

.wl-main { flex: 1; min-width: 0; padding: 1.5rem 1.75rem; overflow-y: auto; }
.wl-screen { display: none; animation: wlFade .25s ease; }
.wl-screen.on { display: block; }
@keyframes wlFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wl-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wl-accent); margin-bottom: 0.3rem; }
.wl-main h3 { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.25rem; }
.wl-main h3 span { color: var(--wl-accent); }
.wl-sub { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--wl-muted); margin: 0 0 1.25rem; }
.wl-headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 0 1rem; flex-wrap: wrap; }
.wl-headrow .wl-actions { margin-bottom: 1.25rem; }
.wl-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wl-actions.end { justify-content: flex-end; }
.wl-btn { display: inline-block; text-align: center; padding: 0.45rem 0.9rem !important; font-size: 0.78rem !important; border: 1px solid var(--wl-line) !important; border-radius: 6px; background: #fff !important; white-space: nowrap; }
.wl-btn.primary { background: var(--wl-accent) !important; border-color: var(--wl-accent) !important; color: #fff !important; }
.wl-btn:disabled { opacity: .5; cursor: default; }

.wl-label { font-size: 0.75rem; color: var(--wl-muted); margin-bottom: 0.4rem; }
.wl-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--wl-line); font-size: 0.8rem; }
.wl-row b { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; }
.wl-row b.plus { color: #3C7A4A; }

.wl-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.5rem; align-items: start; }
.wl-big { font-family: "Outfit", sans-serif; font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.wl-big span { color: #A8A196; }
.wl-meter { height: 8px; background: #D8D2C8; border-radius: 4px; margin: 1rem 0 0.6rem; overflow: hidden; }
.wl-meter i { display: block; height: 100%; background: var(--wl-ink); }
.wl-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; }
.wl-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 0.3rem; }
.wl-legend i.d { background: var(--wl-ink); }
.wl-legend i.l { background: #D8D2C8; }
.wl-demo .wl-notice { display: flex !important; align-items: center; gap: 0.5rem; width: 100%; margin-top: 1.25rem; padding: 0.7rem 0.8rem !important; border: 1px solid var(--wl-line) !important; border-radius: 8px; font-size: 0.78rem; text-align: left; }
.wl-notice:hover { border-color: var(--wl-accent) !important; }
.wl-notice span { flex: 1; }
.wl-notice svg { color: var(--wl-accent); }

.wl-asset { background: linear-gradient(135deg, #3d3a35, #5a554e); color: #fff; border-radius: 10px; padding: 1.25rem; }
.wl-asset-tag { display: flex; justify-content: space-between; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wl-gold); }
.wl-asset-tag em { font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: #E6DFD6; display: inline-flex; align-items: center; gap: 0.25rem; }
.wl-asset h4 { color: #fff; font-size: 1.3rem; margin: 0.75rem 0 0.2rem; }
.wl-asset p { font-size: 0.72rem; color: #E6DFD6; margin: 0 0 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.wl-asset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; font-size: 0.95rem; }
.wl-asset-row small { display: block; font-size: 0.62rem; color: #CFC8BD; margin-bottom: 0.15rem; }
.wl-asset-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.65rem; color: var(--wl-gold); }

.wl-status { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--wl-line); font-size: 0.7rem; color: var(--wl-muted); }
.wl-status span { display: inline-flex; align-items: center; gap: 0.25rem; }
.wl-status b { color: var(--wl-ink); }
.wl-status svg { color: #3C7A4A; }

.wl-idcard { background: var(--wl-ink); color: #fff; border-radius: 10px; padding: 1.25rem; min-height: 170px; }
.wl-idcard small { font-size: 0.72rem; color: #CFC8BD; }
.wl-idcard h4 { color: #fff; font-size: 1.4rem; margin: 0.4rem 0; }
.wl-idcard p { font-size: 0.75rem; color: #E6DFD6; margin: 0 0 0.9rem; }
.wl-idkey { font-family: monospace; font-size: 0.7rem; color: var(--wl-gold); }

.wl-fact { font-weight: 600 !important; font-size: 0.75rem !important; padding: 0.2rem 0.55rem !important; border-radius: 4px; background: #E6F2E8 !important; color: #3C7A4A !important; white-space: nowrap; }
.wl-fact.off { background: var(--wl-soft) !important; color: var(--wl-muted) !important; }
.wl-req.done .wl-fact { pointer-events: none; opacity: .6; }
.wl-req-msg { display: none; margin-top: 0.75rem; font-size: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 6px; background: #E6F2E8; color: #3C7A4A; }
.wl-req.done .wl-req-msg { display: block; }
.wl-req.declined .wl-req-msg { background: var(--wl-soft); color: var(--wl-muted); }
.wl-req-msg button { text-decoration: underline; margin-left: 0.35rem; }

.wl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.wl-cards > div { border: 1px solid var(--wl-line); border-radius: 8px; padding: 0.9rem 1rem; }
.wl-cards small { display: block; font-size: 0.68rem; color: var(--wl-muted); margin-bottom: 0.3rem; }
.wl-cards b { font-family: "Outfit", sans-serif; font-size: 1.35rem; font-weight: 600; }
.wl-cards .dark { background: var(--wl-ink); border-color: var(--wl-ink); color: #fff; }
.wl-cards .dark small { color: #CFC8BD; }

.wl-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wl-biz-card { border: 1px solid var(--wl-line); border-radius: 8px; padding: 1rem; }
.wl-biz-card p { font-size: 0.72rem; color: var(--wl-muted); margin: 0.3rem 0 0.4rem; }
.wl-biz-card .wl-row:last-child { border-bottom: 0; }
.wl-biz-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

.wl-vault { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.wl-vault > div { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center; border: 1px solid var(--wl-line); border-radius: 8px; padding: 0.8rem 0.9rem; }
.wl-vault svg { grid-row: span 2; width: 20px; height: 20px; color: var(--wl-accent); }
.wl-vault b { font-size: 0.82rem; font-weight: 600; }
.wl-vault span { grid-column: 2; font-size: 0.7rem; color: var(--wl-muted); }
.wl-vault em { grid-column: 3; grid-row: 1 / span 2; }
.wl-vault .muted { opacity: .65; }

/* Portal-style top bar */
.wl-state { align-items: center; gap: 0.45rem; font-size: 0.7rem; line-height: 1.15; padding-bottom: 2px; border-bottom: 2px solid var(--wl-accent); }
.wl-state b { display: block; font-size: 0.75rem; }
.wl-state-ico { width: 26px; height: 26px; border-radius: 6px; background: var(--wl-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.wl-state-ico svg { width: 14px; height: 14px; }

/* Home overview (portal style) */
.wl-btn svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 0.2rem; }
.wl-btn-ico svg { margin: 0; }
.wl-label-row { display: flex; justify-content: space-between; align-items: center; }
.wl-label-row svg { color: var(--wl-accent); width: 16px; height: 16px; }
.wl-mini { font-size: 0.68rem; color: var(--wl-muted); margin-top: 0.3rem; }
.wl-asset-row span { display: block; }
.wl-asset .wl-asset-desc { font-size: 0.66rem; line-height: 1.5; color: #E6DFD6; margin: 0.9rem 0 0; padding: 0; border: 0; }
.wl-asset-btns { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.wl-abtn { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: 4px; }
.wl-abtn.line { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.wl-abtn.gold { background: var(--wl-gold); color: #fff; }
.wl-asset { transition: opacity .2s; }
.wl-asset.swap { opacity: .4; }

.wl-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0.2rem 0 0.9rem; }
.wl-sechead h4 { font-size: 1.15rem; font-weight: 500; margin: 0; }
.wl-sechead small { font-size: 0.62rem; color: var(--wl-muted); white-space: nowrap; }

.wl-eas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.wl-demo .wl-ea { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--wl-line); border-radius: 4px; padding: 0.75rem; transition: border-color .2s, background .2s; }
.wl-demo .wl-ea:hover { border-color: #D8C2B5; }
.wl-demo .wl-ea.on { border-color: var(--wl-accent); background: #FBF4F0; }
.wl-ea-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.7rem; }
.wl-ea-ico { width: 24px; height: 24px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wl-ea-ico svg { width: 13px; height: 13px; }
.wl-ea-ico.c1 { background: #35312B; }
.wl-ea-ico.c2 { background: #C06240; }
.wl-ea-ico.c3 { background: #7A9A5E; }
.wl-ea-ico.c4 { background: #5E7186; }
.wl-ea-ico.c5 { background: #D9A441; }
.wl-ea-ico.c6 { background: #3F5A3F; }
.wl-ea-arrow { width: 12px !important; height: 12px !important; color: var(--wl-muted); }
.wl-ea b { font-size: 0.78rem; font-weight: 500; }
.wl-ea small { font-size: 0.6rem; color: var(--wl-muted); }
.wl-ea strong { font-family: "Outfit", sans-serif; font-size: 1.15rem; font-weight: 600; margin: 0.6rem 0; }
.wl-ea-foot { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.56rem; padding-top: 0.5rem; border-top: 1px solid var(--wl-line); }
.wl-ea em { font-style: normal; font-size: 0.5rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #A8A196; margin-top: 0.4rem; }

.wl-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.wl-trio .wl-sechead small { display: none; }
.wl-trio > div { border-top: 1px solid var(--wl-line); padding-top: 0.9rem; min-width: 0; }
.wl-av { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; color: #fff; background: #A8A196; }
.wl-av.dark { background: var(--wl-ink); }
.wl-av.o { background: var(--wl-accent); }
.wl-av.g { background: #7A9A5E; }
.wl-av.b { background: #5E7186; }
.wl-da { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.6rem; font-size: 0.78rem; border-left: 2px solid transparent; }
.wl-da.on { background: var(--wl-soft); border-left-color: var(--wl-accent); }
.wl-da-r { margin-left: auto; text-align: right; }
.wl-da-r b { display: block; font-size: 0.78rem; font-weight: 500; }
.wl-da-r small { font-size: 0.58rem; color: var(--wl-muted); }
.wl-da-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; margin-bottom: 0.8rem; }
.wl-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; font-size: 0.8rem; padding-bottom: 0.8rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--wl-line); }
.wl-kv small { display: block; font-size: 0.6rem; color: var(--wl-muted); }
.wl-demo .wl-mg { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.1rem; border-bottom: 1px solid var(--wl-line); text-align: left; }
.wl-mg span:nth-child(2) { flex: 1; min-width: 0; }
.wl-mg b { display: block; font-size: 0.75rem; font-weight: 600; }
.wl-mg small { font-size: 0.58rem; color: var(--wl-muted); }
.wl-mg > svg { width: 12px; height: 12px; color: var(--wl-muted); }
.wl-demo .wl-mg:hover b { color: var(--wl-accent); }
.wl-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; padding-top: 0.8rem; border-top: 1px solid var(--wl-line); font-size: 0.6rem; color: var(--wl-muted); }
.wl-foot span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wl-peb { display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wl-accent); margin-top: 0.3rem; }
.wl-peb + h5 { margin-top: 0.1rem !important; }

/* Identity: LifeID tracker (portal style) */
.wl-hero { background: linear-gradient(100deg, #4a3527 0%, #8a3f28 45%, #d9502f 100%); color: #fff; border-radius: 8px; padding: 1.25rem 1.4rem; margin-bottom: 1rem; }
.wl-hero-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.wl-hero-title > svg { width: 20px; height: 20px; }
.wl-main .wl-hero h3 { color: #fff; font-size: 1.4rem; margin: 0; }
.wl-hero-badge { background: #F6EFD9; color: #5B4A14; font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 50px; }
.wl-hero p { font-size: 0.8rem; line-height: 1.5; margin: 0.6rem 0 0.9rem; max-width: 36rem; }
.wl-hero-feats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.75rem; }
.wl-hero-feats span { display: inline-flex; align-items: center; gap: 0.35rem; }
.wl-hero-feats svg { width: 14px; height: 14px; }

.wl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.25rem; }
.wl-stats > div { text-align: center; border: 1px solid var(--wl-line); border-radius: 8px; padding: 0.8rem 0.4rem; }
.wl-stats b { display: block; font-family: "Outfit", sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.wl-stats span { font-size: 0.68rem; color: var(--wl-muted); }
.wl-stats .s1, .wl-pstats .s1 { color: #C06240; }
.wl-stats .s2, .wl-pstats .s2 { color: #B5322A; }
.wl-stats .s3, .wl-pstats .s3 { color: var(--wl-ink); }
.wl-stats .s4, .wl-pstats .s4 { color: var(--wl-gold); }
.wl-sechead-lg { align-items: center; }
.wl-sechead-lg h4 { font-size: 1.3rem; font-weight: 600; }

.wl-lids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.wl-lid { border: 1px solid var(--wl-line); border-left: 3px solid var(--wl-accent); border-radius: 8px; padding: 0.85rem; display: flex; flex-direction: column; }
.wl-lid-top { display: flex; align-items: center; gap: 0.4rem; }
.wl-lid-top b { flex: 1; min-width: 0; font-size: 0.82rem; font-weight: 600; }
.wl-lid-emoji { font-size: 1rem; }
.wl-lid-top em { font-style: normal; font-size: 0.6rem; border: 1px solid #CFC8BD; border-radius: 50px; padding: 0.15rem 0.5rem; }
.wl-lid-code { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--wl-muted); margin: 0.25rem 0 0.6rem; }
.wl-lid-meta { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.7rem; }
.wl-lid-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.wl-lid-meta svg { width: 12px; height: 12px; }
.wl-lid-h { font-size: 0.75rem; font-weight: 600; margin: 0.7rem 0 0.4rem; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.wl-chip { font-size: 0.62rem; border: 1px solid #CFC8BD; border-radius: 50px; padding: 0.15rem 0.55rem; }
.wl-lid-panel { display: none; margin: 0.7rem 0 0; padding: 0.6rem; background: var(--wl-soft); border-radius: 6px; font-size: 0.65rem; }
.wl-lid-panel.on { display: block; animation: wlFade .2s ease; }
div.wl-lid-panel[data-panel="qr"].on { display: flex; align-items: center; gap: 0.6rem; }
.wl-qr { width: 44px; height: 44px; background: #fff; border: 1px solid var(--wl-line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.wl-qr svg { width: 30px; height: 30px; }
ul.wl-lid-panel { list-style: none; padding-left: 0.6rem; }
ul.wl-lid-panel li { padding: 0.15rem 0; }
ul.wl-lid-panel li + li { margin-top: 0.25rem; }
ul.wl-lid-panel b { display: block; font-weight: 600; color: var(--wl-muted); font-size: 0.58rem; }
div.wl-lid-panel[data-panel="details"].on { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.6rem; }
div.wl-lid-panel[data-panel="details"] span { color: var(--wl-muted); }
.wl-lid-btns { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; padding-top: 0.8rem; }
.wl-demo .wl-lbtn { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.62rem; font-weight: 500; padding: 0.35rem 0.55rem; border: 1px solid var(--wl-line); border-radius: 4px; background: #F1EEEA; color: var(--wl-ink); white-space: nowrap; }
.wl-lbtn svg { width: 11px; height: 11px; }
.wl-demo .wl-lbtn.gold { background: linear-gradient(135deg, #a8771f, #6a4a16); border-color: #6a4a16; color: #fff; }
.wl-demo .wl-lbtn.active { border-color: var(--wl-accent); color: var(--wl-accent); background: #FBF0EB; }
.wl-demo .wl-lbtn.gold.active { background: linear-gradient(135deg, #6a4a16, #4a3410); border-color: #4a3410; color: #fff; }
.wl-new { font-size: 0.72rem !important; padding: 0.45rem 0.8rem !important; }

.wl-phero { background: linear-gradient(100deg, #4a3527, #d9502f); color: #fff; border-radius: 10px; padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; }
.wl-phero b { display: block; font-size: 0.78rem; }
.wl-phero span { font-size: 0.56rem; opacity: .85; }
.wl-pstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-bottom: 0.6rem; }
.wl-pstats > div { border: 1px solid var(--wl-line); border-radius: 8px; padding: 0.45rem; text-align: center; }
.wl-pstats b { display: block; font-family: "Outfit", sans-serif; font-size: 1rem; }
.wl-pstats span { font-size: 0.55rem; color: var(--wl-muted); }

/* Wallet: balances (portal style) */
.wl-addr { display: flex; gap: 0.9rem; align-items: flex-start; border: 1px solid var(--wl-line); border-radius: 8px; padding: 0.9rem; margin-bottom: 0.9rem; }
.wl-addr-qr { width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--wl-line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.wl-addr-qr svg { width: 50px; height: 50px; }
.wl-addr-body { flex: 1; min-width: 0; }
.wl-addr-body > b { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.wl-demo .wl-addr-box { display: flex; align-items: center; gap: 0.6rem; width: 100%; border: 1px dashed #B9B0A4; border-radius: 6px; padding: 0.45rem 0.6rem; text-align: left; }
.wl-demo .wl-addr-box:hover { border-color: var(--wl-accent); }
.wl-addr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; font-size: 0.72rem; color: var(--wl-accent); }
.wl-addr-copy { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.65rem; color: var(--wl-muted); }
.wl-addr-copy em { font-style: normal; }
.wl-addr-copy svg { width: 13px; height: 13px; }
.wl-addr-box.copied .wl-addr-copy { color: #3C7A4A; }
.wl-addr-body small { display: block; font-size: 0.65rem; color: var(--wl-muted); margin-top: 0.45rem; }

.wl-seg { display: inline-flex; gap: 0.3rem; margin: 1.1rem 0 0.8rem; }
.wl-demo .wl-seg button { font-size: 0.75rem; font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 4px; background: #EFECE7; }
.wl-demo .wl-seg button.on { background: var(--wl-accent); color: #fff; }
.wl-segpane { display: none; }
.wl-segpane.on { display: block; animation: wlFade .2s ease; }

.wl-table { border: 1px solid var(--wl-line); border-radius: 8px; overflow: hidden; }
.wl-tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr 0.9fr 50px; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.75rem; border-top: 1px solid var(--wl-line); }
.wl-th { border-top: 0; font-weight: 600; font-size: 0.7rem; background: var(--wl-soft); }
.wl-tf { font-weight: 600; background: var(--wl-soft); }
.wl-asset-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.wl-asset-name b { display: block; font-size: 0.78rem; font-weight: 600; }
.wl-asset-name small { display: block; font-size: 0.6rem; color: var(--wl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-coin { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; }
.wl-coin.frnt { background: var(--wl-accent); }
.wl-coin.usd { background: #3D6A96; }
.wl-coin.dusd { background: #3C7A4A; }
.wl-coin.sm { width: 16px; height: 16px; font-size: 0.5rem; vertical-align: middle; margin-right: 0.2rem; }
.wl-chg { color: var(--wl-muted); }
.wl-tact { display: inline-flex; gap: 0.5rem; justify-content: flex-end; }
.wl-tact svg { width: 14px; height: 14px; color: var(--wl-ink); }

.wl-paddr { display: flex; align-items: center; gap: 0.5rem; border: 1px dashed #B9B0A4; border-radius: 8px; padding: 0.5rem 0.6rem; margin-bottom: 0.6rem; font-size: 0.58rem; font-family: monospace; color: var(--wl-accent); }
.wl-paddr svg { width: 26px; height: 26px; color: var(--wl-ink); }
.wl-paddr b { display: block; font-family: "Inter", sans-serif; font-size: 0.62rem; color: var(--wl-ink); }

/* Business: organizations (portal style) */
.wl-orgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; }
.wl-org-list { display: flex; flex-direction: column; gap: 0.6rem; }
.wl-org { border: 1px solid var(--wl-line); border-radius: 10px; padding: 0.75rem; transition: border-color .2s, background .2s; }
.wl-org.on { border-color: var(--wl-accent); background: #FBF4F0; }
.wl-demo .wl-org-main { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; padding-bottom: 0.6rem; border-bottom: 1px solid var(--wl-line); }
.wl-org-logo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; }
.wl-org-logo.r { background: #3F5A3F; }
.wl-org-logo.t { background: #5E7186; }
.wl-org-logo.sm { width: 26px; height: 26px; border-radius: 6px; font-size: 0.55rem; }
.wl-org-id { flex: 1; min-width: 0; }
.wl-org-id b { display: block; font-size: 0.85rem; font-weight: 500; color: var(--wl-accent); }
.wl-org-id small { display: block; font-size: 0.6rem; color: var(--wl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-org-stats { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.6rem; }
.wl-org-stats b { display: block; font-family: "Outfit", sans-serif; font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.wl-org-stats span { font-size: 0.65rem; color: var(--wl-muted); }
.wl-org-stats .wl-lbtn { margin-left: auto; }
.wl-benef { display: none; margin-top: 0.5rem; }
.wl-benef.on { display: block; animation: wlFade .2s ease; }
.wl-benef .wl-row { font-size: 0.7rem; padding: 0.4rem 0; }
.wl-org-assets { border: 1px solid var(--wl-line); border-radius: 10px; padding: 0.9rem; }
.wl-org-pane { display: none; }
.wl-org-pane.on { display: block; animation: wlFade .2s ease; }
.wl-org-pane h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.wl-org-pane .wl-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.wl-org-pane .wl-row svg { width: 13px; height: 13px; color: var(--wl-accent); }
.wl-row b.warn { color: #A8662A; }
.wl-empty { font-size: 0.8rem; color: var(--wl-muted); margin: 0 0 0.6rem; }
.wl-create { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 0.8rem; padding: 0.6rem; border: 1px dashed var(--wl-accent); border-radius: 6px; font-size: 0.78rem; color: var(--wl-accent); }
.wl-create svg { width: 13px; height: 13px; }
.wl-porg { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.2rem; }
.wl-porg b { display: block; font-size: 0.68rem; color: var(--wl-accent); font-weight: 600; }
.wl-porg small { font-size: 0.55rem; color: var(--wl-muted); }

/* Life: Vault / Access (portal style) */
.wl-pills { display: flex; gap: 0.35rem; margin-bottom: 1.25rem; }
.wl-demo .wl-pills button { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; padding: 0.4rem 0.8rem; border: 1px solid var(--wl-line); border-radius: 50px; color: var(--wl-muted); }
.wl-pills svg { width: 12px; height: 12px; }
.wl-demo .wl-pills button.on { border-color: var(--wl-accent); color: var(--wl-accent); }
.wl-vpane { display: none; }
.wl-vpane.on { display: block; animation: wlFade .2s ease; }
.wl-access { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0.9rem; align-items: start; }
.wl-keyhead { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.wl-keyhead > b { flex: 1; font-size: 0.8rem; font-weight: 600; color: var(--wl-accent); letter-spacing: 0.02em; }
.wl-search { width: 130px; font: inherit; font-size: 0.68rem; padding: 0.35rem 0.6rem; border: 1px solid var(--wl-line); border-radius: 6px; background: #fff; color: var(--wl-ink); }
.wl-search:focus { outline: none; border-color: var(--wl-accent); }
.wl-addbtn { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.68rem; font-weight: 600; padding: 0.35rem 0.6rem; border: 1px solid var(--wl-line); border-radius: 50px; }
.wl-addbtn svg { width: 11px; height: 11px; }
.wl-keys { border: 1px solid var(--wl-line); border-radius: 8px; overflow: hidden; }
.wl-demo .wl-key { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.7rem; text-align: left; border-top: 1px solid var(--wl-line); transition: background .15s; }
.wl-demo .wl-key:first-child { border-top: 0; }
.wl-demo .wl-key:hover { background: var(--wl-soft); }
.wl-demo .wl-key.on { background: #FBF0EB; }
.wl-key-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #FBEAE3; color: var(--wl-accent); display: inline-flex; align-items: center; justify-content: center; }
.wl-key-ico svg { width: 14px; height: 14px; }
.wl-key-txt { flex: 1; min-width: 0; }
.wl-key-txt b { display: block; font-size: 0.75rem; font-weight: 600; }
.wl-key-txt small { display: block; font-size: 0.6rem; color: var(--wl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-key-chev { width: 13px; height: 13px; color: #A8A196; }
.wl-key.hide { display: none !important; }
.wl-nokeys { display: none; margin: 0; padding: 1rem; text-align: center; font-size: 0.72rem; color: var(--wl-muted); }
.wl-keys.empty .wl-nokeys { display: block; }

.wl-inspect { border: 1px solid var(--wl-line); border-radius: 8px; padding: 1rem; min-height: 230px; }
.wl-inspect-empty { text-align: center; padding: 1.25rem 0.5rem; }
.wl-round { width: 46px; height: 46px; border-radius: 50%; background: #FBEAE3; color: var(--wl-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.wl-round svg { width: 20px; height: 20px; }
.wl-inspect-empty b { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; }
.wl-inspect-empty p { font-size: 0.7rem; color: var(--wl-muted); margin: 0; }
.wl-inspect-body { display: none; }
.wl-inspect.picked .wl-inspect-empty { display: none; }
.wl-inspect.picked .wl-inspect-body { display: block; animation: wlFade .2s ease; }
.wl-inspect-body h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
.wl-inspect-body > small { display: block; font-size: 0.62rem; color: var(--wl-muted); margin-bottom: 0.7rem; }
.wl-chain { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; font-size: 0.66rem; margin-bottom: 0.5rem; }
.wl-chain span { background: var(--wl-soft); border-radius: 4px; padding: 0.2rem 0.5rem; }
.wl-chain svg { width: 11px; height: 11px; color: var(--wl-accent); margin-left: 0.6rem; }
.wl-inspect .wl-row { font-size: 0.68rem; padding: 0.4rem 0; }
.wl-mono { font-family: monospace; font-weight: 500 !important; }
.wl-present { width: 100%; margin-top: 0.8rem; }
.wl-present svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 0.2rem; }
.wl-present-msg { display: none; margin-top: 0.6rem; font-size: 0.66rem; padding: 0.5rem 0.6rem; border-radius: 6px; background: #E6F2E8; color: #3C7A4A; }
.wl-present-msg.on { display: block; animation: wlFade .2s ease; }
.wl-zk { display: flex; gap: 0.6rem; margin-top: 0.9rem; padding: 0.8rem; border: 1px solid var(--wl-line); border-radius: 8px; background: var(--wl-soft); font-size: 0.7rem; }
.wl-zk svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.wl-zk b { display: block; font-size: 0.75rem; margin-bottom: 0.15rem; }

/* App view */
.wl-app { flex-shrink: 0; }
.wl-phone { position: relative; width: 270px; height: 560px; border: 9px solid #1d1b18; border-radius: 40px; background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(53,49,43,.15); }
.wl-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 22px; background: #1d1b18; border-radius: 20px; }
.wl-status-bar { display: flex; justify-content: space-between; padding: 0.7rem 1.1rem 0 1.4rem; font-size: 0.62rem; }
.wl-pscreens { flex: 1; overflow-y: auto; padding: 0.9rem 0.9rem 3rem; scrollbar-width: none; }
.wl-pscreens::-webkit-scrollbar { display: none; }
.wl-pscreen { display: none; animation: wlFade .25s ease; }
.wl-pscreen.on { display: block; }
.wl-pscreen h5 { font-size: 1rem; font-weight: 600; margin: 0.4rem 0 0.7rem; }
.wl-pbal { background: var(--wl-ink); color: #fff; border-radius: 10px; padding: 0.8rem 0.9rem; margin-bottom: 0.7rem; }
.wl-pbal small { display: block; font-size: 0.6rem; color: #CFC8BD; }
.wl-pbal b { display: block; font-family: "Outfit", sans-serif; font-size: 1.35rem; font-weight: 600; }
.wl-pbal span { font-size: 0.56rem; color: #CFC8BD; }
.wl-pcard { display: block; width: 100%; border: 1px solid var(--wl-line) !important; border-radius: 8px; padding: 0.55rem 0.7rem !important; margin-bottom: 0.6rem; text-align: left; }
.wl-plink:hover { border-color: var(--wl-accent) !important; }
.wl-plabel { display: block; font-size: 0.6rem; color: var(--wl-muted); margin-bottom: 0.2rem; }
.wl-prow { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.66rem; }
.wl-prow b { font-weight: 600; display: inline-flex; align-items: center; gap: 0.15rem; white-space: nowrap; }
.wl-prow.muted { opacity: .6; }
.wl-pcard .wl-fact { font-size: 0.6rem !important; padding: 0.15rem 0.4rem !important; }
.wl-pcard .wl-req-msg { font-size: 0.6rem; margin-top: 0.4rem; padding: 0.4rem 0.5rem; }
.wl-pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.wl-pbtns.one { grid-template-columns: 1fr; }
.wl-pbtns .wl-btn { font-size: 0.66rem !important; padding: 0.45rem 0.4rem !important; }
.wl-plist span { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.1rem; border-bottom: 1px solid var(--wl-line); font-size: 0.72rem; }
.wl-plist svg { color: #A8A196; }
.wl-ask { position: absolute; right: 12px; bottom: 62px; background: var(--wl-ink); color: #fff; font-size: 0.66rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 50px; }
.wl-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--wl-line); padding: 0.45rem 0.25rem 0.7rem; background: #fff; }
.wl-tabs button { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.55rem; color: var(--wl-muted) !important; }
.wl-tabs svg { width: 18px; height: 18px; }
.wl-tabs button.on { color: var(--wl-accent) !important; font-weight: 600; }

/* Responsive */
@media (max-width: 1199px) {
    .wl-stage { gap: 1.25rem; padding: 1.25rem; }
    .wl-side { width: 180px; }
    .wl-split { grid-template-columns: 1fr; }
    .wl-eas { grid-template-columns: repeat(2, 1fr); }
    .wl-orgs { grid-template-columns: 1fr; }
    .wl-access { grid-template-columns: 1fr; }
    .wl-trio { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    .wl-stage { flex-direction: column; align-items: center; }
    .wl-web { width: 100%; }
    .wl-body { height: auto; min-height: 480px; }
}
@media (max-width: 767px) {
    .wl-bar { flex-direction: column; align-items: stretch; padding: 1rem; }
    .wl-views { align-self: flex-start; }
    .wl-stage { padding: 1rem; }
    .wl-side { display: none; }
    .wl-main { padding: 1.1rem; }
    .wl-top { padding: 0.6rem 0.9rem; }
    .wl-logo { height: 28px; margin-right: 0; }
    .wl-cards, .wl-biz, .wl-vault { grid-template-columns: 1fr; }
    .wl-big { font-size: 2rem; }
    .wl-asset-row { grid-template-columns: 1fr 1fr; }
    .wl-eas { grid-template-columns: 1fr; }
    .wl-stats { grid-template-columns: repeat(2, 1fr); }
    .wl-tr { grid-template-columns: 1.4fr 1fr 1fr; }
    .wl-tr > span:nth-child(4), .wl-tr > span:nth-child(5), .wl-tr > span:nth-child(6) { display: none; }
    .wl-addr-qr { display: none; }
    .wl-sechead { flex-direction: column; gap: 0.2rem; }
}
