:root{color-scheme:dark;--ink:#eefbf3;--muted:#96aa9d;--panel:#102119;--line:#294537;--green:#54e887;--red:#ff6f64;--black:#06100b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% -20%,#183e29 0,var(--black) 48%);color:var(--ink);font:16px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100svh}main{width:min(100%,620px);margin:auto;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;gap:12px;margin-bottom:22px}.mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--green);border-radius:10px;color:var(--green);font-weight:900;letter-spacing:-.08em}h1{font-size:1.2rem;margin:0;flex:1}header #status{font-size:.86rem;color:var(--muted)}.panel{display:none}.panel.active{display:block}.metric{display:flex;align-items:center;justify-content:space-between;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:18px;margin-bottom:14px}.metric span{color:var(--muted)}.metric strong{font-size:1.35rem}select{font:inherit;font-weight:800;color:var(--ink);background:#172d21;border:1px solid #41604e;border-radius:8px;padding:7px}fieldset{border:1px solid var(--line);border-radius:18px;padding:10px 16px 4px;margin:0 0 20px;background:var(--panel)}legend{padding:0 7px;color:var(--muted)}label{display:flex;gap:12px;align-items:flex-start;padding:12px 2px;border-bottom:1px solid #203a2d}label:last-child{border:0}label input{margin-top:5px;accent-color:var(--green);transform:scale(1.25)}label span{display:flex;flex-direction:column}small{color:var(--muted);margin-top:3px}.primary,button{appearance:none;border:0;border-radius:14px;padding:16px 20px;font:800 1.05rem/1 system-ui;cursor:pointer}.primary{width:100%;background:var(--green);color:#041108}.danger{background:var(--red);color:#180300}.quiet{background:#263b30;color:var(--ink)}button:disabled{opacity:.45}.camera{position:relative;overflow:hidden;background:#000;border:1px solid var(--line);border-radius:18px;aspect-ratio:3/4;margin-bottom:16px}.camera video{width:100%;height:100%;object-fit:cover}.recording{position:absolute;top:12px;left:12px;background:#050a07cc;padding:7px 10px;border-radius:20px;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.recording i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--red);margin-right:6px}.center{text-align:center;padding:20vh 0}.spinner{width:46px;height:46px;border:4px solid #244333;border-top-color:var(--green);border-radius:50%;margin:0 auto 18px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.progress{height:9px;background:#1b3025;border-radius:20px;overflow:hidden}.progress div{width:0;height:100%;background:var(--green);transition:width .35s}.progressCopy{display:flex;justify-content:space-between;align-items:baseline;margin:10px 0 18px}.progressCopy span{color:var(--muted);font-size:.9rem}#reportImage{display:block;width:100%;max-height:55vh;object-fit:contain;background:#020503;border:1px solid var(--line);border-radius:16px}.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:12px 0}.summary div{padding:12px 8px;text-align:center;background:var(--panel);border-radius:12px}.summary b{display:block;font-size:1.3rem}.summary span{font-size:.78rem;color:var(--muted)}.values{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 18px}.values i{font-style:normal;display:grid;place-items:center;width:38px;height:38px;background:#193323;border:1px solid #356246;border-radius:9px;font-weight:850}details{margin:0 0 18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:11px 13px}details summary{cursor:pointer;font-weight:750}#detailRows{margin-top:9px;color:var(--muted);font-size:.88rem}#detailRows div{padding:5px 0;border-top:1px solid #20372b}.warning,.complete{padding:16px;border-radius:14px;margin:12px 0 18px}.warning{display:flex;flex-direction:column;gap:8px;background:#342b14;border:1px solid #715f29}.warning span{color:#dbcfae}.warning div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.complete{background:#123d23;border:1px solid #318452}.complete span{display:block;color:var(--green);font-size:1.35rem;font-weight:900}.complete code{display:block;overflow-wrap:anywhere;margin-top:8px;font-size:.86rem}.nextActions{display:flex;align-items:center;justify-content:space-between;gap:10px}.error{position:fixed;left:16px;right:16px;bottom:16px;max-width:588px;margin:auto;padding:14px 40px 14px 14px;background:#4a1714;border:1px solid var(--red);border-radius:12px}.hidden{display:none!important}footer{color:#789083;font-size:.75rem;margin-top:24px;text-align:center}@media(min-width:650px){.camera{aspect-ratio:4/3}.primary{width:auto;min-width:190px}.panel:after{content:"";display:block;clear:both}}
.camera video{object-fit:contain}.camera #overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.liveCount{display:flex;justify-content:space-between;align-items:baseline;margin:-4px 2px 10px}.liveCount strong{color:var(--green);font-size:1.25rem}.liveCount span{color:var(--muted)}.rollPrompt{padding:24px 0}.rollPrompt h2{font-size:2rem;margin:0 0 8px}.rollPrompt>p{color:var(--muted);margin:0 0 18px}.rollInstructions{margin:18px 0;padding:15px 17px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.rollInstructions>b{display:block;margin-bottom:8px}.rollInstructions ul{margin:0;padding-left:20px;color:var(--muted)}.rollInstructions li{margin:7px 0}.rollPrompt .rollReady{color:var(--ink);margin:18px 0 14px}
.reportVisual{position:relative}.reportVisual #reportOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.values button{display:grid;grid-template-rows:auto auto;place-items:center;width:42px;height:48px;padding:3px 0;background:#193323;color:var(--ink);border:1px solid #356246;border-radius:9px}.values button small{margin:0;color:var(--muted);font:650 .62rem/1 system-ui}.values button b{font:850 1.05rem/1 system-ui}.values button.selected{background:#ffe36c;color:#171000;border-color:#fff3a8;box-shadow:0 0 0 3px #ffe36c55}.values button.selected small{color:#604f00}#detailRows button{display:block;width:100%;padding:9px 2px;text-align:left;background:transparent;color:var(--muted);font:inherit;border:0;border-top:1px solid #20372b;border-radius:0}#detailRows button:hover,#detailRows button:focus{color:var(--ink);background:#173022}
.orderGuide{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-top:16px}.orderGuide span{color:var(--muted);font-size:.8rem;text-align:right}.values{margin-top:8px}#detailRows b{display:block;color:var(--ink);font-size:.9rem}#detailRows small{display:block;margin-top:3px;line-height:1.45}#detailRows div{padding:9px 2px}.complete label{display:block;color:var(--muted);font-size:.78rem;margin:12px 0 5px}.complete select{width:100%}.complete code{padding:10px;background:#071b10;border-radius:8px}.complete button{width:100%;margin-top:10px;padding:12px}.complete p{margin:8px 0 0;color:var(--muted)}
.liveTiming{display:block;color:var(--muted);text-align:right;margin:-8px 2px 12px}.reportVisual #reportImage{cursor:zoom-in}.reportVisual #zoomReport{position:absolute;right:10px;bottom:10px;padding:9px 11px;border-radius:9px;background:#07100cdd;color:var(--ink);font-size:.75rem}.selectedInspection{display:grid;grid-template-columns:220px 1fr;gap:14px;align-items:center;margin:12px 0;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:14px}.selectedInspection canvas{display:block;width:220px;height:160px;border-radius:9px}.selectedInspection div{display:flex;flex-direction:column}.selectedInspection span{color:var(--muted);font-size:.78rem;margin-top:4px}.orderMethod p{color:var(--muted);font-size:.88rem}.orderLinks{display:flex;gap:8px;align-items:center}.orderLinks button,.orderLinks a{flex:1;text-align:center;padding:12px;border-radius:10px;font-weight:800}.orderLinks a{background:#1d3929;color:var(--ink);text-decoration:none}.imageZoom{position:fixed;z-index:20;inset:0;background:#020604f2;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.zoomToolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.zoomToolbar button{padding:11px 15px;border-radius:9px;background:#1a3024;color:var(--ink)}.zoomToolbar button.active{background:#52d9ff;color:#031319}.zoomToolbar strong{display:flex;align-items:center;color:#ffe36c;font-size:.85rem;padding:0 4px}#zoomViewport{flex:1;overflow:auto;border:1px solid var(--line);background:#000}#zoomStage{position:relative;width:100%}#zoomImage{display:block;width:100%;max-width:none;height:auto}#zoomOverlay{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;touch-action:pan-x pan-y}.noScroll{overflow:hidden}.technique section{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;margin:0 0 14px}.technique h2{font-size:1.1rem;margin:0 0 8px}.technique p{color:var(--muted);margin:7px 0}.technique svg{display:block;width:min(100%,360px);height:auto;margin:16px auto}.technique a{color:var(--green)}@media(max-width:520px){.selectedInspection{grid-template-columns:1fr}.selectedInspection canvas{width:100%;height:auto}}
.recoveryTool{margin-top:18px}.recoveryTool p,.localOnly{color:var(--muted);font-size:.86rem}.recoveryTool label{display:block;border:0;padding:8px 0 4px;color:var(--muted);font-size:.78rem}.recoveryTool select,.recoveryTool textarea{width:100%}.recoveryTool textarea{resize:vertical;min-height:110px;padding:10px;background:#071b10;color:var(--ink);border:1px solid #41604e;border-radius:8px;font:650 .86rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}.recoveryTool button{width:100%;margin-top:10px;padding:12px}.recoveryResult{margin-top:12px;padding-top:10px;border-top:1px solid #20372b}.recoveryResult label{margin-top:6px}.recoveryResult code{display:block;padding:9px;background:#071b10;border-radius:8px;overflow-wrap:anywhere}.recoveryResult code.binary{max-height:130px;overflow:auto;font-size:.72rem;word-break:break-all}.representationPicker{margin-top:10px}.representationChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;margin-top:8px}.representationChoices label{border:0;padding:6px 2px;align-items:center;font-size:.83rem}.representationChoices label input{margin-top:0;transform:scale(1.05)}.representationChoices label span{display:block}.representationOutputs{display:grid;gap:9px;margin-top:10px}.representationCard{padding:10px;background:#071b10;border:1px solid #29533a;border-radius:10px}.representationCard>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.representationCard button{width:auto!important;margin:0!important;padding:7px 10px!important;font-size:.75rem}.representationCard code{display:block;padding:0!important;background:transparent!important;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;font-size:.8rem;line-height:1.45}.representationCard code.encodingError{color:#ffc4bd}.localOnly{margin:8px 0 10px}
@media(max-width:460px){.representationChoices{grid-template-columns:1fr}}

.trustNote{margin:10px 2px 8px;color:#c2b78f;font-size:.78rem;line-height:1.45}.secretSourceStatus{margin:8px 0 10px;padding:10px 11px;border:1px solid #318452;border-radius:9px;background:#0b2917;color:#c9f6d8;font-size:.84rem;line-height:1.45}.secretSourceStatus.diceOnly{border-color:#7b6631;background:#332b16;color:#f1dfaa}
.verificationDetails{margin-top:10px}.verificationDetails>p{color:var(--muted);font-size:.82rem;line-height:1.45}.verificationValue{margin-top:10px;padding:10px;background:#0a2415;border:1px solid #2b5d3d;border-radius:9px}.verificationValue>b{display:block;font-size:.86rem}.verificationValue>b small{font-weight:600}.verificationHeading{display:flex;align-items:center;justify-content:space-between;gap:10px}.verificationHeading button{width:auto!important;margin:0!important;padding:7px 10px!important;font-size:.75rem}.verificationValue code{margin-top:7px!important;padding:8px!important;background:#06160d!important;font-size:.78rem!important}.verificationValue>small{display:block;color:var(--muted);margin-top:7px;font-size:.72rem;line-height:1.4}.mixVerificationStatus{margin-top:11px!important;padding:9px 10px;border-radius:8px;background:#0b2917;color:#bdf4ce!important;font-weight:750;font-size:.8rem!important}.mixVerificationStatus.verificationFailed{background:#431c18;color:#ffd0ca!important}.startAnother{width:100%!important;margin-top:14px!important}
.recoveryKitImport input[type=file]{display:block;width:100%;padding:9px;background:#071b10;color:var(--muted);border:1px solid #41604e;border-radius:8px}.recoveryExport{margin-top:16px;padding:13px;background:#0a2415;border:1px solid #2f7048;border-radius:12px}.recoveryExport h3{margin:0 0 7px;font-size:1rem}.recoveryExport>p{font-size:.82rem;line-height:1.45}.recoveryActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.recoveryActions button{width:100%!important;margin:0!important;padding:10px!important;font-size:.78rem}.recoveryQr{display:grid;place-items:center;padding:12px;background:#fff;border-radius:10px;margin:12px auto;width:min(100%,390px)}.recoveryQr svg{display:block;width:100%;height:auto;max-width:360px}.qrWarning{padding:9px 10px;border:1px solid #856d2f;border-radius:8px;background:#342b14;color:#f0dfae!important}.qrPayloadDetails{margin:10px 0 0!important}.qrPayloadDetails code{font-size:.7rem!important;word-break:break-all}.recoveryResult .representationOutputs{margin-top:10px}@media(max-width:460px){.recoveryActions{grid-template-columns:1fr}}

.recoveryProtection{margin:12px 0;padding:8px 12px;border-radius:10px}.recoveryProtection label{padding:7px 2px}.encryptedRecoveryControls{padding:12px;background:#0b1d13;border:1px solid #41604e;border-radius:10px;margin:10px 0}.encryptedRecoveryControls label{display:block;border:0;padding:5px 0 3px;color:var(--muted);font-size:.8rem}.encryptedRecoveryControls input{width:100%;padding:10px;background:#071b10;color:var(--ink);border:1px solid #41604e;border-radius:8px;font:inherit}.encryptedRecoveryControls small{display:block;margin:8px 0}.encryptedRecoveryControls button{width:100%;margin-top:8px;padding:12px}
.qrImportActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.qrImportActions button{margin:0!important}.recoveryQrScanner{margin:10px 0;padding:10px;border:1px solid #41604e;border-radius:10px;background:#071b10}.recoveryQrScanner video{display:block;width:100%;max-height:360px;object-fit:contain;background:#000;border-radius:8px}.recoveryQrScanner small{display:block;margin:8px 0;color:var(--muted)}.encryptedEnvelopeImport{margin-top:14px;padding-top:10px;border-top:1px solid #20372b}.encryptedEnvelopeImport input,.encryptedEnvelopeImport select{width:100%;padding:10px;background:#071b10;color:var(--ink);border:1px solid #41604e;border-radius:8px;font:inherit}.encryptedRepresentationPicker{margin:12px 0;padding:8px 10px;border:1px solid #41604e;border-radius:10px}.encryptedRepresentationPicker legend{padding:0 6px}.encryptedRepresentationPicker small{margin-top:6px}.encryptedEnvelopeMeta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:10px 0;padding:9px 10px;border:1px solid #41604e;border-radius:8px;background:#071b10}.encryptedEnvelopeMeta code{font-size:.76rem;overflow-wrap:anywhere}.encryptedRepresentationOutputs{margin-bottom:12px}@media(max-width:460px){.qrImportActions{grid-template-columns:1fr}}
.recoveryMetadataEditor,.printSheetChoices{margin:12px 0;padding:12px;background:#0b1d13;border:1px solid #41604e;border-radius:10px}.recoveryMetadataEditor h4,.printSheetChoices h4{margin:0 0 6px;font-size:.92rem}.recoveryMetadataEditor h4 small{font-weight:600}.recoveryMetadataEditor>label{display:block;border:0;padding:6px 0 3px;color:var(--muted);font-size:.78rem}.recoveryMetadataEditor input,.recoveryMetadataEditor textarea{width:100%;padding:10px;background:#071b10;color:var(--ink);border:1px solid #41604e;border-radius:8px;font:inherit}.recoveryMetadataEditor textarea{resize:vertical;min-height:82px;line-height:1.4}.recoveryMetadataEditor>small{display:block;margin-top:9px;line-height:1.45}.recoveryMetadataFacts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.recoveryMetadataFacts span{display:flex;flex-direction:column;padding:8px 9px;background:#071b10;border:1px solid #2e513d;border-radius:8px}.recoveryMetadataFacts b{font-size:.76rem}.recoveryMetadataFacts small,.recoveryMetadataFacts code{margin-top:3px;color:var(--muted);font-size:.72rem;overflow-wrap:anywhere}.printSheetChoices>p{font-size:.8rem!important;line-height:1.45}.printSheetChoices .recoveryActions{margin-bottom:0}@media(max-width:460px){.recoveryMetadataFacts{grid-template-columns:1fr}}
.infoNav{display:flex;justify-content:flex-end;gap:14px;margin:-12px 0 18px;font-size:.78rem}.infoNav a{color:var(--green);text-decoration:none}.infoNav a:hover,.infoNav a:focus{text-decoration:underline}.backgroundPage{width:min(100%,840px)}.backgroundPage header a{color:var(--green)}.backgroundPage section{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;margin:0 0 16px}.backgroundPage h2{font-size:1.2rem;margin:0 0 10px}.backgroundPage h3{font-size:1rem;margin:0 0 6px}.backgroundPage p,.backgroundPage li{color:var(--muted)}.backgroundPage p{margin:8px 0}.backgroundPage b{color:var(--ink)}.backgroundHero{border-color:#318452!important;background:#0d2d1a!important}.backgroundLead{font-size:1.08rem;line-height:1.55}.backgroundCallout{margin-top:14px;padding:14px 16px;border-left:4px solid var(--green);background:#071b10;border-radius:8px}.backgroundCallout ol{margin:8px 0 4px;padding-left:22px}.principleGrid,.historyGrid,.entropyMath{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.principleGrid>div,.entropyMath>div,.historyGrid article{padding:14px;background:#071b10;border:1px solid #29533a;border-radius:10px}.principleGrid span,.entropyMath span{display:block;color:var(--muted);font-size:.86rem;margin-top:4px}.historyGrid article p{font-size:.88rem}.ceremonyFlow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:14px 0;padding:14px;background:#071b10;border-radius:10px}.ceremonyFlow span{padding:7px 9px;border:1px solid #356246;border-radius:8px;font-weight:750}.ceremonyFlow i{font-style:normal;color:var(--green);font-weight:900}.limitsSection{border-color:#715f29!important}.limitsSection ul,.referenceList{padding-left:20px}.limitsSection li,.referenceList li{margin:8px 0}.referenceList a{color:var(--green)}.backgroundFooter{border-top:1px solid var(--line);padding-top:16px;margin-top:20px;line-height:1.5}@media(max-width:620px){.principleGrid,.historyGrid,.entropyMath{grid-template-columns:1fr}.infoNav{justify-content:flex-start;flex-wrap:wrap}}

.offlineSection .offlineInterest{margin-top:18px}
.offlineInterest .contactPending{margin-bottom:0;color:#b8cbbf}

.rejectedDice{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 16px}.rejectedDice button{padding:10px 12px;background:#401b18;color:#ffd9d5;border:1px solid #a84f47;border-radius:10px;font-size:.78rem}.selectedInspection button{margin-top:10px;padding:11px 12px;width:100%}#detailRows button.rejectedRow{color:#ffd1cc;background:#301512;border-color:#6f302b}.zoomToolbar #zoomDieAction.danger{background:#b9433a;color:#fff}.zoomToolbar #zoomDieAction.quiet{background:#31503e;color:var(--ink)}
.scanHelp{display:flex;flex-direction:column;gap:4px;margin:0 0 14px;padding:11px 13px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.scanHelp b{color:var(--ink)}.scanHelp span{color:var(--muted);font-size:.88rem;line-height:1.45}
