@font-face {
  font-family: "Wallet Sans";
  src: local("Inter"), local("SF Pro Display"), local("Segoe UI");
  font-display: swap;
}

:root {
  --ink: #f4f8f3;
  --muted: #98a59b;
  --muted-strong: #c7d0c8;
  --canvas: #07110b;
  --canvas-soft: #0b1710;
  --panel: #0f1e14;
  --panel-raised: #15271a;
  --line: rgba(198, 224, 201, 0.14);
  --line-strong: rgba(198, 224, 201, 0.26);
  --green: #00c805;
  --green-bright: #72ff78;
  --green-pale: #d7ffda;
  --amber: #f2c94c;
  --danger: #ff6b72;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  font-family: "Wallet Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; color: #061009; background: var(--green-bright); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 78% 2%, rgba(0, 200, 5, .09), transparent 30%), var(--canvas); }
.app-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: min(1500px, calc(100% - 64px)); min-height: 86px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; letter-spacing: -.02em; }
.wordmark svg { width: 35px; color: var(--green-bright); }
.wordmark span { font-size: 17px; font-weight: 540; }
.wordmark b { font-weight: 820; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.network-chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.network-chip i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.wallet-button { min-height: 38px; padding: 0 16px; color: #061009; background: var(--green-bright); border: 0; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; }
.wallet-button.is-connected { color: var(--green-pale); background: rgba(0, 200, 5, .12); border: 1px solid rgba(114, 255, 120, .34); }

.wallet-main { width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 60px; }
.app-screen { animation: screen-in .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }
.eyebrow { margin: 0 0 14px; color: var(--green-bright); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }

.home-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, .75fr); gap: 8%; align-items: center; min-height: 655px; padding: 52px 3% 45px; }
.hero-copy h1 { max-width: 790px; margin: 0; font-size: clamp(48px, 6.1vw, 94px); font-weight: 650; line-height: .96; letter-spacing: -.067em; }
.hero-copy h1 span { color: var(--green-bright); }
.hero-summary { max-width: 680px; margin: 28px 0 0; color: var(--muted-strong); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.62; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 32px; }
.primary-button, .secondary-button, .compact-button, .text-button { border: 0; cursor: pointer; }
.primary-button { display: inline-flex; gap: 26px; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 21px; color: #061009; background: var(--green-bright); border-radius: 13px; font-size: 14px; font-weight: 820; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { background: #99ff9e; transform: translateY(-2px); }
.primary-button:disabled { color: #6f7d70; background: #203126; cursor: not-allowed; transform: none; }
.primary-button b { font-size: 19px; }
.secondary-button { min-height: 48px; padding: 0 18px; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 13px; font-weight: 720; }
.secondary-button:hover { border-color: rgba(114, 255, 120, .55); }
.text-button { color: var(--muted-strong); background: transparent; font-size: 13px; font-weight: 720; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.compact-button { min-height: 38px; padding: 0 14px; color: var(--green-pale); background: rgba(0, 200, 5, .1); border: 1px solid rgba(0, 200, 5, .2); border-radius: 10px; font-size: 12px; font-weight: 750; }
.proof-strip { display: flex; gap: 0; margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip span { flex: 1; padding: 15px 16px 15px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.proof-strip span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.proof-strip i { margin-right: 8px; color: var(--green-bright); font-style: normal; }

.identity-visual { position: relative; min-height: 500px; isolation: isolate; }
.visual-grid { position: absolute; inset: 5% 2%; background-image: linear-gradient(rgba(114,255,120,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(114,255,120,.08) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(650px) rotateX(64deg) rotateZ(-7deg); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.object-core { position: absolute; inset: 17% 15%; display: grid; place-items: center; filter: drop-shadow(0 24px 55px rgba(0,200,5,.18)); animation: core-float 6s ease-in-out infinite; }
.object-core svg { width: min(100%, 360px); }
@keyframes core-float { 50% { transform: translateY(-9px) rotate(1deg); } }
.scan-orbit { position: absolute; inset: 10%; border: 1px solid rgba(114,255,120,.24); border-radius: 50%; transform: rotate(-18deg); }
.scan-orbit::after { position: absolute; width: 8px; height: 8px; content: ""; background: var(--green-bright); border-radius: 50%; box-shadow: 0 0 16px var(--green); animation: orbit 8s linear infinite; }
.orbit-two { inset: 21% 5%; transform: rotate(67deg); opacity: .55; }
.orbit-two::after { animation-duration: 11s; animation-direction: reverse; }
@keyframes orbit { from { offset-distance: 0; } to { offset-distance: 100%; } }
.scan-orbit::after { offset-path: ellipse(50% 50% at 50% 50%); }
.visual-label { position: absolute; min-width: 128px; padding: 10px 12px; background: rgba(7,17,11,.82); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); }
.visual-label small, .visual-label strong { display: block; }
.visual-label small { color: var(--muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.visual-label strong { margin-top: 4px; color: var(--green-pale); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.label-top { top: 9%; right: 4%; }
.label-bottom { bottom: 9%; left: 1%; }

.passport-section { padding: 72px 3%; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.045em; }
.passport-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.passport-card { position: relative; min-height: 260px; padding: 23px; overflow: hidden; text-align: left; background: linear-gradient(145deg, var(--panel-raised), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.passport-card:hover { border-color: rgba(114,255,120,.4); transform: translateY(-3px); }
.passport-card::after { position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; content: ""; background: radial-gradient(circle, rgba(0,200,5,.18), transparent 68%); }
.passport-card-top { display: flex; justify-content: space-between; align-items: center; }
.passport-card .status { padding: 6px 8px; color: var(--muted-strong); background: rgba(255,255,255,.04); border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.passport-card .status.is-anchored { color: var(--green-pale); background: rgba(0,200,5,.12); }
.passport-card h3 { max-width: 80%; margin: 46px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.passport-card p { margin: 0; color: var(--muted); font-size: 12px; }
.passport-card code { display: block; margin-top: 26px; color: var(--green-bright); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.passport-class-badge { padding: 6px 9px; color: #061009; background: var(--green-bright); border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.empty-passports { display: grid; justify-items: center; padding: 66px 20px; text-align: center; background: rgba(15,30,20,.42); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 52px; height: 52px; background: linear-gradient(145deg, rgba(114,255,120,.17), transparent); border: 1px solid rgba(114,255,120,.28); border-radius: 16px; transform: rotate(45deg); }
.empty-passports h3 { margin: 25px 0 8px; font-size: 22px; }
.empty-passports p { max-width: 430px; margin: 0 0 21px; color: var(--muted); line-height: 1.6; }
.architecture-band { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 24px; align-items: center; margin: 0 3%; padding: 35px; background: var(--green-pale); border-radius: var(--radius-xl); color: #07110b; }
.architecture-band > b { opacity: .28; font-size: 24px; }
.architecture-band span { display: block; margin-bottom: 17px; color: #168f1a; font: 800 10px ui-monospace, monospace; }
.architecture-band strong { font-size: 18px; }
.architecture-band p { margin: 7px 0 0; color: #335a37; font-size: 12px; line-height: 1.55; }

.flow-screen { min-height: calc(100vh - 86px); padding: 28px 3% 80px; }
.flow-header { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 25px 0 31px; border-bottom: 1px solid var(--line); }
.flow-header .eyebrow { margin-bottom: 7px; }
.flow-header h1 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.045em; }
.back-button { display: grid; width: 42px; height: 42px; place-items: center; color: var(--muted-strong); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; cursor: pointer; }
.step-count { color: var(--muted); font: 700 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .11em; }
.flow-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(250px, 330px); gap: 6%; justify-content: center; padding: 54px 0; }
.flow-content { min-width: 0; }
.step-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.step-heading > span { display: grid; flex: 0 0 35px; height: 35px; place-items: center; color: var(--green-bright); border: 1px solid rgba(114,255,120,.28); border-radius: 50%; font: 700 10px ui-monospace, monospace; }
.step-heading h2 { margin: 0; font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -.035em; }
.step-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.mesh-drop { display: grid; min-height: 280px; padding: 30px; place-items: center; align-content: center; text-align: center; background: linear-gradient(145deg, rgba(21,39,26,.74), rgba(11,23,16,.64)); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); cursor: pointer; transition: border .2s ease, background .2s ease; }
.mesh-drop:hover, .mesh-drop.is-dragging { background: rgba(0,200,5,.06); border-color: var(--green-bright); }
.mesh-drop-icon { display: grid; width: 66px; height: 66px; margin-bottom: 17px; place-items: center; color: var(--green-bright); background: rgba(0,200,5,.08); border: 1px solid rgba(114,255,120,.2); border-radius: 18px; }
.mesh-drop-icon svg { width: 35px; }
.mesh-drop strong { font-size: 18px; }
.mesh-drop > span:not(.mesh-drop-icon) { margin-top: 7px; color: var(--muted); font-size: 12px; }
.mesh-drop small { margin-top: 19px; padding: 6px 9px; color: var(--muted); background: rgba(255,255,255,.04); border-radius: 999px; }
.mesh-file-card { display: flex; gap: 14px; align-items: center; margin-top: 13px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.file-cube { width: 39px; height: 39px; background: rgba(0,200,5,.15); border: 1px solid rgba(114,255,120,.25); border-radius: 10px; }
.mesh-file-card div:nth-child(2) { min-width: 0; flex: 1; }
.mesh-file-card strong, .mesh-file-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mesh-file-card strong { font-size: 13px; }
.mesh-file-card span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mesh-file-card button { width: 34px; height: 34px; color: var(--muted); background: transparent; border: 0; font-size: 22px; cursor: pointer; }
.recognition-progress, .recognition-result { margin-top: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; }
.progress-row span { color: var(--green-bright); font: 700 11px ui-monospace, monospace; }
.progress-track { height: 5px; margin-top: 13px; overflow: hidden; background: #213127; border-radius: 999px; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--green-bright); box-shadow: 0 0 12px rgba(114,255,120,.6); transition: width .3s ease; }
.recognition-progress p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.recognition-result { display: flex; gap: 13px; align-items: center; border-color: rgba(114,255,120,.26); }
.result-check { display: grid; width: 38px; height: 38px; place-items: center; color: #061009; background: var(--green-bright); border-radius: 50%; font-weight: 900; }
.recognition-result div { min-width: 0; flex: 1; }
.recognition-result strong { font-size: 13px; }
.recognition-result p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.hash-toggle { color: var(--green-bright); background: transparent; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.hash-list { max-height: 190px; margin: 9px 0 0; padding: 15px; overflow: auto; color: var(--green-pale); background: #050b07; border: 1px solid var(--line); border-radius: 12px; font: 9px/1.8 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-guidance { margin-top: 21px; padding: 22px; background: rgba(255,255,255,.025); border-left: 2px solid var(--green-bright); }
.source-guidance > strong { font-size: 13px; }
.source-guidance ol { margin: 13px 0 12px; padding-left: 20px; color: var(--muted-strong); font-size: 12px; line-height: 1.65; }
.source-guidance p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 25px; }
.flow-aside { padding-top: 63px; }
.aside-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.aside-kicker { color: var(--muted); font: 700 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.aside-card dl { margin: 21px 0; }
.aside-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; color: var(--green-pale); font-family: ui-monospace, monospace; }
.aside-card a { color: var(--green-bright); font-size: 10px; text-underline-offset: 4px; }
.aside-note { margin: 17px 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.asset-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--muted-strong); font-size: 11px; font-weight: 650; }
.field > span b { margin-left: 6px; color: var(--green-bright); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.full-field { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; outline: none; }
.field input, .field select { min-height: 50px; padding: 0 14px; }
.field textarea { padding: 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(0,200,5,.09); }
.field input::placeholder, .field textarea::placeholder { color: #68746a; }
.photo-field { display: flex; gap: 16px; align-items: center; padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.photo-field > div:first-child { min-width: 0; flex: 1; }
.photo-field strong, .photo-field span { display: block; }
.photo-field strong { font-size: 12px; }
.photo-field span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.photo-button { padding: 10px 12px; color: var(--green-pale); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; }
.photo-preview { position: relative; width: 90px; height: 70px; overflow: hidden; border-radius: 9px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview button { position: absolute; right: 3px; bottom: 3px; padding: 3px 5px; background: rgba(0,0,0,.75); border: 0; border-radius: 4px; font-size: 8px; cursor: pointer; }
.review-check { display: flex; gap: 12px; align-items: flex-start; padding: 18px; color: var(--muted-strong); background: rgba(242,201,76,.04); border: 1px solid rgba(242,201,76,.18); border-radius: 13px; font-size: 11px; line-height: 1.55; }
.review-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.review-check b { color: var(--ink); }
.form-message, .dialog-message { min-height: 18px; color: var(--danger); font-size: 11px; }
.anchor-review-card { padding: 27px; background: linear-gradient(145deg, var(--green-pale), #bdf9c2); border-radius: var(--radius-lg); color: #07110b; }
.anchor-card-top { display: flex; justify-content: space-between; align-items: center; color: #39763e; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.anchor-card-top .passport-class-badge { color: var(--green-pale); background: #07110b; }
.anchor-review-card h3 { margin: 35px 0 23px; font-size: 31px; letter-spacing: -.045em; }
.anchor-review-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.anchor-review-card dl div { min-width: 0; padding: 13px; background: rgba(7,17,11,.07); border-radius: 10px; }
.anchor-review-card dt { color: #4c7450; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.anchor-review-card dd { margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; font: 700 10px ui-monospace, monospace; white-space: nowrap; }
.privacy-callout { display: flex; gap: 14px; margin-top: 17px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.privacy-callout svg { flex: 0 0 27px; color: var(--green-bright); }
.privacy-callout strong { font-size: 12px; }
.privacy-callout p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.anchor-status { margin-top: 17px; padding: 16px; color: var(--muted-strong); background: rgba(0,200,5,.06); border: 1px solid rgba(114,255,120,.2); border-radius: 12px; font-size: 11px; line-height: 1.55; }
.anchor-status a { color: var(--green-bright); }

.verify-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1000px; margin: 48px auto; }
.verify-panel { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.reference-summary { margin-top: 17px; padding: 16px; color: var(--muted-strong); background: rgba(0,200,5,.05); border-radius: 11px; font-size: 11px; line-height: 1.6; }
.compact-drop { display: flex; min-height: 70px; padding: 14px; align-items: center; justify-content: space-between; border: 1px dashed var(--line-strong); border-radius: 12px; cursor: pointer; }
.compact-drop span { color: var(--green-bright); font-size: 12px; font-weight: 750; }
.compact-drop small { max-width: 55%; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.full-button { width: 100%; margin-top: 16px; }
.verification-outcome { grid-column: 1 / -1; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.verification-outcome.is-match { border-color: rgba(114,255,120,.42); }
.verification-outcome.is-no-match { border-color: rgba(255,107,114,.42); }
.verification-outcome h2 { margin: 0; font-size: 26px; }
.verification-outcome p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.verification-outcome dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0 0; }
.verification-outcome dl div { padding: 13px; background: rgba(255,255,255,.035); border-radius: 10px; }
.verification-outcome dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.verification-outcome dd { margin: 6px 0 0; font: 700 12px ui-monospace, monospace; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1050px; margin: 48px auto; }
.settings-card { display: flex; gap: 18px; padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.settings-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; color: #061009; background: var(--green-bright); border-radius: 12px; font-weight: 900; }
.settings-card > div { min-width: 0; flex: 1; }
.settings-card h2 { margin: 2px 0 8px; font-size: 18px; }
.settings-card p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-button { display: inline-grid; place-items: center; }
.network-details { margin: 12px 0 0; }
.network-details div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.network-details dt { color: var(--muted); }
.network-details dd { margin: 0; overflow: hidden; color: var(--muted-strong); text-overflow: ellipsis; }
.caution-card .settings-icon { color: #2b240b; background: var(--amber); }

.bottom-nav { display: none; }
.passport-dialog, .wallet-dialog { width: min(620px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 30px; overflow: auto; color: var(--ink); background: #0d1b12; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(2,7,4,.78); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; cursor: pointer; }
.dialog-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 18px; padding-right: 40px; }
.dialog-brand { display: grid; width: 49px; height: 49px; place-items: center; color: #061009; background: var(--green-bright); border-radius: 14px; font-size: 20px; font-weight: 900; }
.dialog-heading .eyebrow { margin-bottom: 4px; }
.dialog-heading h2 { margin: 0; font-size: 25px; }
.wallet-dialog > p { color: var(--muted-strong); font-size: 12px; line-height: 1.65; }
.wallet-help { margin-top: 18px; padding: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; }
.wallet-help strong { font-size: 12px; }
.wallet-help p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.wallet-help a { color: var(--green-bright); font-size: 10px; }
.wallet-provider-section { margin-top: 14px; padding: 14px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 12px; }
.wallet-provider-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wallet-provider-heading strong { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.wallet-provider-refresh { padding: 0; color: var(--green-bright); background: transparent; border: 0; font: inherit; font-size: 10px; cursor: pointer; }
.wallet-provider-list { display: grid; gap: 8px; }
.wallet-provider-empty { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.wallet-provider-button { margin-top: 0; }
.detail-hero { padding: 25px; color: #07110b; background: var(--green-pale); border-radius: 18px; }
.detail-hero h2 { margin: 30px 0 6px; font-size: 30px; letter-spacing: -.045em; }
.detail-hero p { margin: 0; color: #3c6a40; font-size: 11px; }
.detail-section { margin-top: 23px; }
.detail-section h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.detail-list { margin: 0; }
.detail-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--muted-strong); font: 10px/1.55 ui-monospace, monospace; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 23px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 350px; padding: 13px 16px; color: #07110b; background: var(--green-pale); border-radius: 10px; box-shadow: 0 14px 45px rgba(0,0,0,.4); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(14px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { color: #fff; background: #8d242a; }

@media (max-width: 980px) {
  .app-header, .wallet-main { width: min(100% - 38px, 900px); }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .identity-visual { min-height: 440px; }
  .passport-grid { grid-template-columns: 1fr 1fr; }
  .architecture-band { grid-template-columns: 1fr; }
  .architecture-band > b { display: none; }
  .architecture-band > div + div { padding-top: 22px; border-top: 1px solid rgba(7,17,11,.15); }
  .flow-layout { grid-template-columns: 1fr; }
  .flow-aside { padding-top: 0; }
  .aside-card { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  body { padding-bottom: calc(75px + var(--safe-bottom)); }
  .app-shell { overflow: visible; }
  .app-header { position: sticky; top: 0; width: 100%; min-height: 66px; padding: env(safe-area-inset-top, 0px) 16px 0; background: rgba(7,17,11,.9); backdrop-filter: blur(18px); }
  .wordmark span { display: none; }
  .wordmark svg { width: 31px; }
  .network-chip { display: none; }
  .wallet-button { min-height: 34px; padding: 0 12px; font-size: 10px; }
  .wallet-main { width: 100%; padding-bottom: 18px; }
  .home-hero { display: block; padding: 51px 20px 35px; overflow: hidden; }
  .hero-copy h1 { font-size: clamp(45px, 14vw, 64px); }
  .hero-summary { margin-top: 22px; font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button { min-height: 52px; }
  .text-button { min-height: 40px; }
  .proof-strip { margin-top: 32px; overflow-x: auto; }
  .proof-strip span { min-width: 150px; }
  .identity-visual { min-height: 370px; margin: 5px -50px -35px; }
  .visual-label { transform: scale(.84); }
  .label-top { right: 12%; }
  .label-bottom { left: 13%; }
  .passport-section { padding: 45px 20px; }
  .section-heading { align-items: start; }
  .section-heading .compact-button { margin-top: 4px; }
  .passport-grid { grid-template-columns: 1fr; }
  .passport-card { min-height: 230px; }
  .architecture-band { margin: 0 12px; padding: 28px 22px; border-radius: 22px; }
  .flow-screen { padding: 0 20px 30px; }
  .flow-header { grid-template-columns: 40px 1fr; padding: 22px 0 24px; }
  .flow-header .step-count { display: none; }
  .flow-header h1 { font-size: 29px; }
  .back-button { width: 37px; height: 37px; }
  .flow-layout { padding: 34px 0; }
  .step-heading > span { flex-basis: 31px; height: 31px; }
  .step-heading h2 { font-size: 26px; }
  .step-heading p { font-size: 12px; }
  .mesh-drop { min-height: 245px; }
  .source-guidance { padding: 18px; }
  .step-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions > * { width: 100%; justify-content: center; }
  .asset-form { grid-template-columns: 1fr; }
  .field, .full-field { grid-column: 1; }
  .photo-field { align-items: flex-start; flex-wrap: wrap; }
  .photo-field > div:first-child { flex-basis: 100%; }
  .anchor-review-card { padding: 22px; }
  .anchor-review-card dl { grid-template-columns: 1fr; }
  .verify-layout { grid-template-columns: 1fr; margin: 32px 20px; }
  .verification-outcome { grid-column: 1; }
  .verification-outcome dl { grid-template-columns: 1fr; }
  .verify-panel { padding: 20px; }
  .settings-grid { margin: 32px 20px; }
  .settings-card { padding: 20px; }
  .bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(65px + var(--safe-bottom)); padding: 5px 8px var(--safe-bottom); background: rgba(7,17,11,.94); border-top: 1px solid var(--line); backdrop-filter: blur(20px); }
  .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 5px; color: #728076; background: transparent; border: 0; font-size: 9px; cursor: pointer; }
  .bottom-nav button.is-active { color: var(--green-bright); }
  .nav-icon { position: relative; display: block; width: 20px; height: 20px; border: 1.6px solid currentColor; border-radius: 6px; }
  .nav-home::after { position: absolute; inset: 5px; content: ""; background: currentColor; border-radius: 2px; }
  .nav-scan::before, .nav-scan::after { position: absolute; inset: 3px; content: ""; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .nav-verify { border-radius: 50%; }
  .nav-verify::after { position: absolute; right: -4px; bottom: -3px; width: 7px; content: ""; border-top: 2px solid currentColor; transform: rotate(45deg); }
  .nav-settings { border-radius: 50%; }
  .nav-settings::after { position: absolute; inset: 5px; content: ""; border: 1.5px solid currentColor; border-radius: 50%; }
  .passport-dialog, .wallet-dialog { width: 100%; max-height: calc(100vh - 30px); margin: auto 0 0; padding: 25px 20px calc(25px + var(--safe-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 25px 25px 0 0; }
  .toast { right: 14px; bottom: calc(78px + var(--safe-bottom)); left: 14px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
