:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#122c3b;background:#f4f6f5;--ink:#102d3b;--teal:#087f79;--gold:#d9ad5a}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid #cad7d6;background:#fff;color:var(--ink);border-radius:12px;padding:11px 17px;font-weight:650}button:disabled{opacity:.5;cursor:wait}button:hover{border-color:#087f79}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #c99f4a;outline-offset:3px}[hidden]{display:none!important}header{max-width:1200px;margin:auto;padding:24px 32px;display:flex;justify-content:space-between;align-items:center}header a{text-decoration:none;font-size:23px;font-weight:850;color:var(--ink)}header a span{color:#ae791f}main{max-width:1200px;margin:auto;padding:16px 32px 32px}.hero{display:flex;align-items:center;gap:24px;margin:12px 0 38px}.vault-mark{width:88px;height:88px;border-radius:24px;background:var(--ink);box-shadow:0 6px 0 var(--gold);color:var(--gold);font-size:64px;text-align:center;line-height:88px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#087f79}h1{font-size:clamp(34px,5vw,57px);letter-spacing:-2px;margin:5px 0}.dot{color:#ae791f}.subtitle{color:#566f78;margin:8px 0}h2{letter-spacing:-.6px;margin:0 0 12px;font-size:27px}h3{font-size:22px}.gate{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #dbe4e2;border-radius:28px;overflow:hidden;box-shadow:0 18px 60px #163b4210}.gate>div{padding:40px}.gate aside{padding:42px;background:var(--ink);color:#c0d1d6;line-height:1.65}.gate aside h3{color:#fff}.gate aside p{font-size:14px}.card-art{max-width:350px;aspect-ratio:1.65;border:1px solid #66827e;background:linear-gradient(125deg,#1d515d,#102d3b);border-radius:20px;padding:26px;box-shadow:0 20px 25px #061b2560;color:#e8d19c;display:flex;flex-direction:column;justify-content:space-between}.card-art span{font-size:12px;letter-spacing:2px}.card-art strong{font-size:23px;letter-spacing:2px}.card-art small{font-size:9px;letter-spacing:2px}.chip{width:36px;height:27px;border:1px solid #dbbd78;background:linear-gradient(45deg,#b38337,#f3d796);border-radius:6px}label{display:block;font-size:13px;font-weight:700;margin:18px 0 8px}input{display:block;background:#f8faf9;border:1px solid #c9d6d4;border-radius:10px;width:100%;padding:13px;margin-top:8px;color:var(--ink);min-width:0}label span{font-size:11px;font-weight:400}.primary{background:var(--teal);color:white;border-color:var(--teal);width:100%;margin-top:12px}.fine{font-size:12px;line-height:1.6;color:#61757b}.link{padding:10px 0;border:0;color:#087f79;background:transparent;text-decoration:underline;font-size:13px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.toolbar p{color:#61757b;margin:0}.toolbar input{max-width:290px}nav{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.selected{background:var(--ink);color:#fff}.privacy-strip{font-size:12px;color:#44636c;display:flex;justify-content:space-between;gap:12px;margin:24px 0}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card-tile{text-align:left;padding:20px;min-height:168px;border:1px solid #d7e2df;border-radius:20px;display:flex;flex-direction:column;background:#fff;position:relative;overflow:hidden}.card-tile:before{content:'';position:absolute;width:80px;height:80px;border:1px solid #e9efec;border-radius:50%;right:-30px;top:-30px}.card-tile .symbol{font-size:25px;color:#0b847b;margin-bottom:22px}.card-tile strong{font-size:15px}.card-tile small{margin-top:8px;color:#698086;font-weight:400}.card-tile.saved{border-bottom:4px solid #087f79}.tools{margin-top:30px;padding:28px;border:1px solid #d9e3df;border-radius:22px;background:#eaf0ec}.tools p{color:#566f78}.tool-buttons{display:flex;flex-wrap:wrap;gap:10px}footer{padding-top:35px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#6b7d82}dialog{border:1px solid #d3dedb;border-radius:22px;padding:26px;width:min(620px,calc(100% - 24px));max-height:90dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#071c2ada;backdrop-filter:blur(6px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h2{font-size:23px;margin:0}.side{background:#fff;padding:18px;margin-top:20px;border:1px solid #dfe8e3;border-radius:16px}.side img{background:#fff;width:100%;max-height:380px;object-fit:contain;display:block;border-radius:8px;margin:15px 0}.side-actions{display:flex;gap:8px;flex-wrap:wrap}.side-actions button{font-size:13px;padding:10px}.empty-image{text-align:center;color:#74888a;padding:32px 10px;border:1px dashed #c5d4cf;border-radius:10px;margin:14px 0}.danger{color:#ae3442}#status,#gateStatus,#securityMessage{font-size:13px;line-height:1.6;color:#087f79;overflow-wrap:anywhere}@media(max-width:900px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){header{padding:18px}main{padding:12px 18px 25px}.hero{gap:15px;margin-bottom:25px}.vault-mark{width:57px;height:57px;line-height:57px;border-radius:16px;font-size:43px;flex-shrink:0}.eyebrow{font-size:9px;letter-spacing:1px}h1{font-size:34px;letter-spacing:-1.3px}.subtitle{font-size:13px;line-height:1.5}.gate{grid-template-columns:1fr}.gate>div,.gate aside{padding:25px}.gate aside{margin-top:10px}.card-art{max-width:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-tile{padding:17px;min-height:155px}.toolbar{align-items:flex-start;flex-direction:column;gap:8px}.toolbar input{max-width:none}.privacy-strip{flex-direction:column;font-size:11px;gap:6px}nav button{font-size:12px;padding:9px 12px}.tools{padding:22px}.tools h2{font-size:23px}footer span{max-width:130px;text-align:right}dialog{padding:20px}}
.crop-preview{background:#fff;position:relative;line-height:0;margin:20px 0}.crop-preview img{background:#fff;width:100%;display:block}.crop-preview #cropFrame{position:absolute;border:3px solid #15b8a9;box-shadow:0 0 0 1px #fff8;pointer-events:none}#cropControls{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}#cropControls label{margin:0;font-size:12px}#cropControls input{padding:0;accent-color:#087f79}#cropStatus{font-size:13px;line-height:1.5}
select{display:block;width:100%;max-width:100%;font:inherit;font-size:13px;border:1px solid #c9d6d4;border-radius:10px;background:#f8faf9;padding:12px 9px;margin-top:8px;color:#102d3b}.question-row{padding:12px 15px;border:1px solid #dbe6e0;border-radius:14px;margin:10px 0;background:#f6f9f7}.question-row label{margin:0;font-weight:600;line-height:1.6}.question-row input{background:#fff}.question-row select:focus-visible{outline:3px solid #c99f4a;outline-offset:2px}#gateQuestions h3{font-size:18px;margin-top:24px}

#whiteDialog{max-width:760px;width:94%}.white-stage{position:relative;background:#fff;margin:18px 0;line-height:0}.white-stage img{display:block;width:100%;height:auto}.white-stage svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:none}.white-stage polygon{fill:none;stroke:#087f79;stroke-width:.6;vector-effect:non-scaling-stroke}.white-stage circle{fill:#087f79;stroke:white;stroke-width:.5;cursor:grab}#whiteControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0}#whiteControls label{font-size:13px}

#gateStatus:empty,#securityMessage:empty{display:none}#gateStatus.error-message,#securityMessage.error-message,.error-message{color:#a52132;background:#fff0f1;border:1px solid #e6a4ad;border-left:4px solid #a52132;border-radius:10px;padding:13px 15px;font-weight:700;font-size:14px;line-height:1.5;scroll-margin-top:24px}#gateStatus:focus,#securityMessage:focus{outline:2px solid #a52132;outline-offset:3px}
#recoveryStatus.error-message{color:#a52132;background:#fff0f1;border:1px solid #e6a4ad;border-left:4px solid #a52132;border-radius:10px;padding:13px 15px;font-weight:700;font-size:14px;line-height:1.5}#recoveryStatus:empty{display:none}.recovery-code{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;resize:none;background:#f8faf9;border:1px solid #c9d6d4;border-radius:10px;padding:12px;margin-top:8px;color:var(--ink);font-family:ui-monospace,monospace;font-size:18px;line-height:1.8;letter-spacing:2px;overflow:hidden;height:188px}#recoveryFields select{max-width:100%}

/* Category colors are presentation only; card images retain white surfaces. */
body{background:linear-gradient(145deg,#edf4ff 0%,#f3f9ff 45%,#e8f7f3 100%);min-height:100vh}
.hero{background:linear-gradient(115deg,#173e9f,#1267a5 56%,#087f79);border-radius:24px;padding:26px;color:#fff;box-shadow:0 12px 30px #173e9f1c;position:relative;overflow:hidden}
.hero .eyebrow{color:#bfefed}.hero .subtitle{color:#e3efff}.hero .dot{color:#ffd16c}
.vault-mark{background:#102d3b;border:1px solid #78b8d4;box-shadow:0 5px 0 #f3c45c;flex-shrink:0}
.hero img{flex-shrink:0}.gate{border-color:#b5cbe8}.gate aside{background:linear-gradient(155deg,#183e91,#102d3b 75%);color:#dce8fa}.card-art{background:linear-gradient(125deg,#256aa1,#16857d);border-color:#72c5c0}
.primary{background:linear-gradient(110deg,#17619f,#087f79);border-color:#17619f}.primary:hover{border-color:#102d3b}
nav button{border-bottom:3px solid #1e4fb5}nav button[data-filter=identity]{border-bottom-color:#245dcc}nav button[data-filter=health]{border-bottom-color:#087f79}nav button[data-filter=payment]{border-bottom-color:#7445bb}nav button[data-filter=other]{border-bottom-color:#b85a14}
nav button.selected{background:#193e8b;border-color:#193e8b;color:#fff}nav button.selected[data-filter=health]{background:#087369;border-color:#087369}nav button.selected[data-filter=payment]{background:#683ba7;border-color:#683ba7}nav button.selected[data-filter=other]{background:#a64e11;border-color:#a64e11}
.card-tile{--category:#245dcc;--tint:#ecf3ff;background:linear-gradient(145deg,#fff 30%,var(--tint));border:1px solid #cedaeb;border-top:5px solid var(--category);box-shadow:0 4px 12px #163b4209}
.card-tile[data-category=health]{--category:#087f79;--tint:#e7f7f2}.card-tile[data-category=payment]{--category:#7445bb;--tint:#f1eaff}.card-tile[data-category=other]{--category:#b85a14;--tint:#fff1dc}
.card-tile:before{background:var(--tint);border-color:var(--category);opacity:.35}.card-tile .symbol{display:grid;place-items:center;width:42px;height:42px;background:var(--category);color:#fff;border-radius:12px;font-size:24px;margin-bottom:18px}.card-tile small{color:#506873}.card-tile.saved{border-bottom:4px solid var(--category)}.card-tile:hover{border-color:var(--category)}
.tools{background:linear-gradient(115deg,#e2efff,#e0f4ef);border:1px solid #adccd9;border-left:5px solid #087f79}.tools h2{color:#173e91}.tool-buttons button{border-color:#9fb8d4}.privacy-strip{color:#365d79}
dialog,.static-dialog{border-top:5px solid #17619f}.dialog-head h2{color:#174b87}.side{border-top:3px solid #087f79}.side img,.white-stage,.crop-preview{background:#fff}
@media(max-width:650px){.hero{padding:20px 16px;gap:13px;border-radius:20px}.hero h1{font-size:30px}.hero .eyebrow{font-size:8px;line-height:1.6}.hero .subtitle{font-size:12px}.card-tile .symbol{width:36px;height:36px;font-size:21px}}
