@import url('./typesetter.css');
@import url('../journey.css');
:root{font-family:Inter,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:#eee8f7;background:#25213d;font-synthesis:none;--cipher-accent:#376d9c;--cipher-ink:#3c5465}*{box-sizing:border-box}body{margin:0}button,input,textarea,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default;transform:none}button:focus-visible,a:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d7ad68;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.cipher-nav{height:76px;max-width:1540px;padding:0 34px;margin:auto;display:flex;align-items:center;gap:34px;border-bottom:1px solid #ffffff12}.cipher-brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:750;letter-spacing:1px}.cipher-brand img{width:35px;height:35px}.cipher-nav>span{font-size:9px;letter-spacing:2px;color:#a7a0bb}.cipher-nav>div{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:12px}.cipher-nav button{border:1px solid #9a8db844;background:#ffffff05;color:#d5cde7;border-radius:9px;min-height:44px;padding:9px 17px}#cipher-root{max-width:1472px;margin:auto;padding:38px 34px 0}.cipher-title{display:flex;gap:25px;align-items:center;margin-bottom:25px}.cipher-title span{font-size:9px;letter-spacing:2px;color:#a59bb8}.cipher-title h1{font-size:27px;letter-spacing:2px;font-weight:650;margin:8px 0 0}.cipher-title>p{font-size:12px;color:#b6aec6;margin:23px 0 0}.cipher-title>button{margin-left:auto;border:1px solid #ffffff15;border-radius:7px;background:#37304b;color:#c3b7d6;font-size:12px;min-height:44px;padding:9px 18px}.cipher-studio{display:grid;grid-template-columns:minmax(0,1fr) 362px;background:#eddfc5;border-radius:13px;overflow:hidden;box-shadow:0 22px 60px #18132950;color:var(--cipher-ink);position:relative}.cipher-desk{min-width:0;background:#ebd9b9}.cipher-hud{display:flex;align-items:center;gap:29px;padding:16px 22px;min-height:76px;background:#e8d5b1;border-bottom:1px solid #b5a08044}.cipher-hud>div{margin-right:auto}.cipher-hud small{display:block;font-size:9px;letter-spacing:1px;color:#917f68}.cipher-hud b{font-size:16px;display:block;font-weight:550;margin-top:7px}.cipher-hud>span{text-align:center;min-width:40px}.cipher-hud strong{font-size:20px;font-weight:500;line-height:1.3;color:#4c6578;font-variant-numeric:tabular-nums}.cipher-hud i{font-size:10px;color:#9c947f;font-style:normal}.cipher-hud>span small{font-size:8px;letter-spacing:0;margin-top:3px}.cipher-hud-clock strong{font-size:16px}.cipher-stage{position:relative;aspect-ratio:16/9;background:#aacbdb;scroll-margin-top:15px}.cipher-stage canvas{width:100%;height:100%;display:block;image-rendering:pixelated;outline-offset:-4px}.cipher-stage-actions{position:absolute;bottom:13px;left:15px;display:flex;gap:6px;z-index:2}.cipher-stage-actions button{font-size:10px;min-height:38px;padding:7px 12px;border:1px solid #b59a7777;border-radius:5px;color:#8d765e;background:#f1dfbccf;backdrop-filter:blur(10px)}.cipher-stage-actions button:hover{background:#f7e6c4}.cipher-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:20px;background:#dbe2d23b;backdrop-filter:blur(3px);z-index:4}.cipher-intro{width:100%;max-width:390px;padding:27px 31px;background:#f5e7cdeb;border:1px solid #fff1d2;border-radius:8px;text-align:center;color:#536d7d;box-shadow:0 12px 38px #5d6f781c;animation:cipher-appear .35s ease-out}.cipher-intro>span{font-size:8px;letter-spacing:2px;color:#a28d72}.cipher-intro h2{font-family:'Songti SC','Noto Serif SC',Georgia,serif;font-size:25px;line-height:1.4;font-weight:450;letter-spacing:1px;margin:16px 0}.cipher-intro p{font-size:12px;line-height:1.9;color:#96846c}.cipher-intro>div:not(.cipher-stars){display:flex;justify-content:center;gap:14px;font-size:10px;color:#a48d6d;margin:20px 0}.cipher-intro button{display:block;width:100%;min-height:44px;padding:12px 18px;background:var(--cipher-accent);border:1px solid var(--cipher-accent);border-radius:5px;color:#f4e5c8;font-size:13px;margin-top:17px}.cipher-intro .secondary{margin-top:7px;background:transparent;border-color:#b29e7d66;color:var(--cipher-accent)}.cipher-stars{font-size:29px;color:#b98b4b;letter-spacing:5px}.cipher-stars i{font-style:normal;color:#c7b69b}.cipher-editor{padding:19px 22px 20px;background:#f0dfbe;border-top:1px solid #c4a77f66}.cipher-paper-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cipher-paper-fields.single{grid-template-columns:1fr}.cipher-paper-fields label{display:block;min-width:0;background:#f7ecd0;border:1px solid #bea78577;border-radius:5px;padding:11px 13px 5px;transition:border-color .15s}.cipher-paper-fields label.active{border-color:var(--cipher-accent);box-shadow:inset 0 2px #5588a81c}.cipher-paper-fields label>span{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#9c8a6a;margin-bottom:6px}.cipher-paper-fields small{font-size:9px;letter-spacing:0;color:#aaa189}.cipher-paper-fields textarea{width:100%;resize:vertical;min-height:58px;max-height:170px;display:block;background:none;border:0;color:#385b79;font:16px/1.8 Consolas,'Microsoft YaHei',monospace;letter-spacing:.6px;padding:4px 0 2px;outline:0!important;word-break:break-all}.cipher-paper-fields textarea::placeholder{color:#b4a387;font-size:12px;letter-spacing:0}.cipher-edit-tools{display:flex;align-items:center;gap:8px;margin:8px 0 10px}.cipher-edit-tools>span{font-size:9px;color:#a48c6a;margin-right:auto}.cipher-edit-tools button{background:transparent;border:0;color:#8b826c;font-size:10px;min-height:36px;padding:6px}.cipher-edit-tools button:hover{background:#bca17220;border-radius:4px}.cipher-rotor{padding:12px 14px 13px;border:1px solid #b8a27d66;background:#e3d3b4;border-radius:5px;margin:9px 0 15px}.cipher-dial{display:flex;align-items:center;gap:11px}.cipher-dial>span{font-size:10px;color:#917d5e;margin-right:auto}.cipher-dial button{min-height:44px;min-width:44px;background:#f2dfba;border:1px solid #b8a47b77;color:#677b86;border-radius:4px;padding:8px 12px;font-size:15px}.cipher-dial strong{font-size:23px;letter-spacing:3px;font-weight:400;color:#4a708c;font-variant-numeric:tabular-nums}.cipher-dial button:last-child{margin-left:9px;min-width:83px;font-size:11px}.cipher-dial button[aria-pressed=true]{background:var(--cipher-accent);color:#f4e0bc;border-color:var(--cipher-accent)}.cipher-alphabet{display:grid;grid-template-columns:1fr;margin:13px auto 0;text-align:center;max-width:100%;font:14px/1.9 Consolas,monospace;letter-spacing:5px;color:#9d8c70;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bca27e55 transparent}.cipher-alphabet span{white-space:nowrap}.cipher-alphabet span:last-child{color:#4b7392;background:#d2cbb54d}.cipher-rotor>small{display:block;text-align:center;font-size:9px;color:#a48d6e;margin-top:8px}.cipher-palette-tabs{display:flex;align-items:center;gap:5px;border-bottom:1px solid #b8a68444;padding-bottom:7px}.cipher-palette-tabs button{border:0;background:none;font-size:11px;min-height:36px;padding:7px 12px;color:#a28e6f;border-radius:4px}.cipher-palette-tabs button[aria-pressed=true]{background:#ddc9a7;color:#6d7d7d}.cipher-palette-tabs>span{font-size:9px;color:#b19a78;margin-left:auto}.cipher-palette-tray{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 0}.cipher-palette-tray button{min-height:42px;min-width:44px;padding:6px 12px;border:1px solid #bdac8a66;border-radius:4px;background:#f8e9c9;color:#8c8a71;font-size:12px;display:flex;align-items:center;justify-content:center;gap:8px}.cipher-palette-tray button:hover{background:#fff1d5;border-color:#ab9671}.cipher-palette-tray svg{width:29px;height:29px}.cipher-palette-tray i{display:block;width:15px;height:15px;box-shadow:inset 0 2px #ffffff15,inset 0 -2px #00000015}.cipher-bookmarks{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0 12px}.cipher-bookmarks>span{font-size:10px;color:#a48d6c;margin-right:4px}.cipher-bookmarks button{min-height:36px;padding:7px 12px;background:#dfd2b4;border:1px solid #bda88066;color:#7c826e;font-size:10px;border-radius:3px}.cipher-bookmarks button small{margin-left:7px;opacity:.55}.cipher-bookmarks>small{margin-left:auto;font-size:9px;color:#af9a79}.cipher-send{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #bdab8766;padding-top:16px}.cipher-send>span{font-size:11px;color:#ac8f68;line-height:1.7}.cipher-send b{font-weight:500;color:var(--cipher-accent)}.cipher-send>button{min-height:46px;min-width:149px;background:var(--cipher-accent);color:#f4e7c8;border:0;border-radius:5px;padding:10px 21px;font-size:13px}.cipher-ledger{background:#ede3cf;border-left:1px solid #b5a38355;display:flex;flex-direction:column;min-width:0}.cipher-ledger-heading{padding:24px 20px 13px;display:flex;align-items:center;gap:12px}.cipher-ledger-heading span{font-size:7px;letter-spacing:1.4px;color:#ad9d80}.cipher-ledger-heading h2{font-family:'Songti SC',Georgia,serif;font-size:19px;font-weight:450;margin:10px 0 0;letter-spacing:1px}.cipher-ledger-heading strong{font-size:18px;font-weight:400;margin-left:auto;color:#939a87;font-variant-numeric:tabular-nums;white-space:nowrap}.cipher-rule-tools{display:flex;gap:9px;padding:0 18px 12px;border-bottom:1px solid #bdad8f44}.cipher-rule-tools button{background:none;color:#9c9178;font-size:10px;border:1px solid #beae8e55;border-radius:4px;min-height:36px;padding:6px 10px}.cipher-rule-tools button[aria-pressed=true]{background:#ddd5bc;color:#617c83}.cipher-rules{display:flex;flex-direction:column;gap:6px;padding:14px 14px 20px;max-height:505px;min-height:230px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6b99c transparent}.cipher-rule{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:11px 10px;border:1px solid #c8b79466;border-radius:5px;background:#f1e6cb;color:#927b60;min-height:68px;width:100%}.cipher-rule>i{font-size:9px;font-style:normal;color:#b8a17d;border:1px solid #c9b48c77;min-width:24px;min-height:24px;display:grid;place-items:center}.cipher-rule>span{min-width:0;flex:1}.cipher-rule b{font-size:11px;font-weight:450;line-height:1.8;display:block}.cipher-rule small{font-size:9px;line-height:1.7;color:#b29572;margin-top:4px;display:block;word-break:break-all}.cipher-rule>em{font-size:11px;font-style:normal;color:#b6a68b;padding:5px 1px}.cipher-rule.done{background:#dce4cc;border-color:#b7c4a77a;color:#5f7a6a}.cipher-rule.done>i{color:#7e9b73;background:#d0ddbd;border-color:#a9bf9855}.cipher-rule.done small{color:#92a187}.cipher-rule[aria-pressed=true]{border-color:var(--cipher-accent);box-shadow:inset 2px 0 var(--cipher-accent)}.cipher-fold{width:100%;min-height:44px;background:none;border:1px dashed #baaa8c77;font-size:10px;line-height:1.8;color:#ab987b;border-radius:4px;padding:9px}.cipher-no-rule{font-size:11px;color:#99a38d;text-align:center;padding:25px 5px}.cipher-rule-detail{margin-top:auto;padding:20px;border-top:1px solid #c2b08b55;background:#e6d8ba}.cipher-rule-detail>span{font-size:8px;letter-spacing:.6px;color:#b39c79}.cipher-rule-detail h3{font-family:'Songti SC',Georgia,serif;font-weight:450;font-size:17px;line-height:1.7;margin:11px 0;color:#687c82}.cipher-rule-detail p{font-size:11px;line-height:1.9;color:#9c896c;margin:10px 0}.cipher-rule-detail .cipher-clue{padding:10px 12px;background:#f1e5c8;border-left:2px solid #9caf9f;color:#7c8a78}.cipher-rule-detail button{font-size:11px;background:#d3c8ac;color:#738274;border:1px solid #ada98766;min-height:40px;border-radius:4px;padding:8px 13px}.cipher-rule-detail button small{margin-left:14px;opacity:.6}.cipher-message{font-size:12px;line-height:1.8;color:#bcb1ce;min-height:28px;margin:13px 2px 28px}.cipher-atlas{background:#302a48;border:1px solid #ffffff0d;border-radius:12px;padding:26px;margin-bottom:28px}.cipher-atlas-heading{display:flex;align-items:center;gap:25px;margin-bottom:24px}.cipher-atlas-heading span{font-size:9px;letter-spacing:2px;color:#8e819f}.cipher-atlas-heading h2{font-family:'Songti SC',Georgia,serif;letter-spacing:1px;font-size:23px;font-weight:400;margin:11px 0}.cipher-atlas-heading p{font-size:11px;line-height:1.9;color:#a99cba;margin:0;max-width:750px}.cipher-atlas-heading>strong{margin-left:auto;color:#d5bd8c;font-size:13px;font-weight:500;white-space:nowrap}.cipher-letters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.cipher-letters article>button:first-child{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:1px solid #6f5d8355;background:#39304e;border-radius:6px;min-height:185px;padding:14px 12px;gap:13px;color:#c9bcd8}.cipher-letters small{font-size:8px;color:#9a89aa}.cipher-envelope{position:relative;display:flex;justify-content:flex-end;width:67px;height:39px;background:#dbc39b;border:1px solid #e9d5b0;box-shadow:0 4px 0 #201a3525;transform:rotate(-5deg);margin:5px auto 3px}.cipher-envelope::before,.cipher-envelope::after{content:'';position:absolute;height:1px;background:#b6a080;width:39px;top:17px;left:1px;transform:rotate(27deg)}.cipher-envelope::after{left:30px;width:36px;transform:rotate(-27deg)}.cipher-envelope svg{background:var(--stamp);width:19px;height:22px;margin:4px 5px 0;color:#e8d6af;z-index:1}.cipher-letters b{font-weight:500;font-size:12px}.cipher-letters i{font-style:normal;letter-spacing:3px;color:#bc9d67;font-size:13px;margin-top:auto}.cipher-letters article>button[aria-pressed=true]{background:#453952;border-color:#b8a17299}.cipher-open-letter{background:none;border:0;color:#a897b8;font-size:9px;min-height:38px;padding:6px}.cipher-atlas h3{font-size:13px;color:#c0b2cf;font-weight:500;margin:29px 0 14px}.cipher-research{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cipher-research button{display:grid;grid-template-columns:1fr auto;gap:7px;text-align:left;border:1px solid #7c638b44;background:#393049;border-radius:6px;color:#bfb0ce;padding:16px}.cipher-research b{font-size:12px;font-weight:500;letter-spacing:1px}.cipher-research span{grid-row:2;font-size:10px;color:#9d8dab}.cipher-research small{grid-column:2;grid-row:1/span 2;font-size:10px;color:#bca172;align-self:center}.cipher-atlas-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.cipher-atlas-actions button{font-size:10px;min-height:40px;padding:8px 14px;border-radius:4px;border:1px solid #7e699c33;background:none;color:#ab9aba}.cipher-atlas details{border-top:1px solid #ffffff0b;padding-top:17px;font-size:11px;color:#a79ab5;line-height:1.9}.cipher-atlas summary{cursor:pointer}.cipher-atlas details p{max-width:850px}.cipher-footer{max-width:1472px;padding:32px 35px;display:flex;gap:25px;align-items:center;margin:auto;color:#9f91b1;font-size:10px}.cipher-footer>span{margin-right:auto}.cipher-dialog{width:calc(100% - 30px);max-width:850px;max-height:88vh;overflow:auto;border:1px solid #e1c79b;background:#f0dfbd;color:#5f7786;border-radius:10px;padding:25px;box-shadow:0 25px 80px #14132e66}.cipher-dialog::backdrop{background:#201b37ad;backdrop-filter:blur(8px)}.cipher-dialog h2{font-family:'Songti SC',Georgia,serif;font-size:23px;font-weight:400;letter-spacing:1px;margin:0 0 19px}.cipher-dialog p{font-size:12px;line-height:1.9;color:#9e8767}.cipher-dialog button,.cipher-dialog>a{display:inline-block;min-height:44px;background:#dec9a1;border:1px solid #bda98277;border-radius:4px;color:#7f846c;font-size:12px;padding:11px 16px;margin:5px}.cipher-dialog>img{display:block;width:100%;image-rendering:pixelated;border-radius:4px}.cipher-dialog .cipher-album-letter{display:inline-flex;align-items:flex-start;flex-direction:column;gap:12px;min-width:190px;text-align:left;background:#e8d2aa}.cipher-album-letter span{font-size:8px;letter-spacing:1px;opacity:.6}.cipher-album-letter b{font-size:14px;font-weight:500}.cipher-album-letter small{font-size:10px;color:#ab8c56}.cipher-loading{min-height:60vh;padding:100px 30px;color:#c9bbd9}@keyframes cipher-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.cipher-studio{grid-template-columns:minmax(0,1fr) 385px}.cipher-rules{max-height:550px}}@media(max-width:1120px){#cipher-root{padding:28px 22px 0}.cipher-studio{grid-template-columns:minmax(0,1fr) 315px}.cipher-title>p{display:none}.cipher-ledger-heading{padding:20px 16px 12px}.cipher-ledger-heading h2{font-size:17px}.cipher-ledger-heading span{font-size:6px;letter-spacing:1px}.cipher-ledger-heading strong{font-size:16px}.cipher-editor{padding:17px}.cipher-hud{gap:20px;padding:15px 18px}.cipher-hud-clock{display:none}.cipher-intro{max-width:340px;padding:21px 25px}.cipher-intro h2{font-size:22px}.cipher-intro p{font-size:11px}.cipher-intro>div:not(.cipher-stars){margin:13px 0}.cipher-intro button{margin-top:12px}.cipher-letters{grid-template-columns:repeat(3,1fr)}.cipher-letters article>button:first-child{min-height:173px}.cipher-research button{grid-template-columns:1fr}.cipher-research small{grid-column:1;grid-row:3}.cipher-alphabet{font-size:12px;letter-spacing:3px}.cipher-bookmarks>small{display:none}}
@media(max-width:800px){.cipher-nav{height:64px;padding:0 17px}.cipher-brand{font-size:16px;gap:8px}.cipher-brand img{width:29px;height:29px}.cipher-nav>span{display:none}.cipher-nav>div{gap:9px;font-size:10px}.cipher-nav button{min-height:40px;padding:7px 9px}#cipher-root{padding:24px 12px 0}.cipher-title{margin:0 3px 19px;gap:15px;align-items:flex-end}.cipher-title h1{font-size:23px}.cipher-title span{font-size:7px;letter-spacing:1px}.cipher-title>button{font-size:10px;min-height:44px;padding:8px 11px}.cipher-studio{display:flex;flex-direction:column;border-radius:9px;overflow:clip}.cipher-desk,.cipher-editor{display:contents}.cipher-hud{order:0;padding:14px 16px;gap:20px;min-height:71px}.cipher-hud b{font-size:14px}.cipher-hud small{font-size:8px}.cipher-hud strong{font-size:19px}.cipher-stage{order:1;aspect-ratio:16/10}.cipher-stage canvas{object-fit:contain;background:#d2c4a8}.cipher-stage-actions{bottom:9px;left:9px;gap:4px}.cipher-stage-actions button{font-size:9px;min-height:44px;padding:7px 10px}.cipher-overlay{padding:12px;background:#dce4d144}.cipher-intro{max-width:360px;padding:14px 17px;border-radius:6px}.cipher-intro>span{font-size:6px;letter-spacing:1px}.cipher-intro h2{font-size:20px;margin:9px 0}.cipher-intro p{font-size:10px;line-height:1.7;margin:8px 0}.cipher-intro>div:not(.cipher-stars){font-size:8px;gap:10px;margin:9px 0}.cipher-intro button{font-size:12px;margin-top:11px;min-height:44px;padding:9px}.cipher-intro .secondary{min-height:36px;font-size:10px;padding:7px;margin-top:5px}.cipher-stars{font-size:23px}.cipher-paper-fields{order:2;position:sticky;top:0;z-index:5;padding:13px 12px 9px;gap:7px;background:#eddbb9;box-shadow:0 5px 12px #b69c7318;border-bottom:1px solid #cbb18a44}.cipher-paper-fields label{padding:9px 10px 4px;border-radius:4px}.cipher-paper-fields label>span{font-size:8px;letter-spacing:.5px}.cipher-paper-fields small{font-size:8px}.cipher-paper-fields textarea{font-size:16px;line-height:1.7;min-height:60px;max-height:115px;resize:none}.cipher-paper-fields textarea::placeholder{font-size:10px;line-height:1.7}.cipher-edit-tools{order:3;margin:0;padding:1px 14px 4px;background:#eddbb9;gap:6px}.cipher-edit-tools>span{font-size:8px;max-width:200px;line-height:1.6}.cipher-edit-tools button{min-height:44px;font-size:10px;padding:5px}.cipher-rotor{order:4;margin:0 12px 13px;padding:11px 12px;background:#e5d2af}.cipher-dial{gap:7px}.cipher-dial>span{font-size:9px}.cipher-dial strong{font-size:22px;letter-spacing:2px}.cipher-dial button{min-width:44px;padding:7px}.cipher-dial button:last-child{margin-left:4px;min-width:73px;font-size:10px}.cipher-alphabet{letter-spacing:2px;font-size:11px;line-height:2;justify-items:start;text-align:left}.cipher-rotor>small{font-size:8px;line-height:1.7}.cipher-palette{order:5;padding:0 13px;background:#f0dfbe}.cipher-palette-tabs button{min-height:44px;padding:7px 12px;font-size:10px}.cipher-palette-tabs>span{font-size:8px}.cipher-palette-tray{gap:5px;padding:10px 0 12px}.cipher-palette-tray button{min-width:40px;min-height:44px;padding:7px 10px;font-size:11px}.cipher-palette-tray svg{width:26px;height:26px}.cipher-bookmarks{order:6;padding:0 13px 13px;margin:0;background:#f0dfbe;gap:5px}.cipher-bookmarks>span{font-size:9px;min-width:55px}.cipher-bookmarks button{min-height:44px;padding:7px 10px;font-size:10px}.cipher-ledger{order:7;border-left:0;border-top:1px solid #b7a47f66;background:#eee2c9}.cipher-ledger-heading{padding:20px 17px 11px}.cipher-ledger-heading h2{font-size:18px}.cipher-ledger-heading span{font-size:6px;letter-spacing:1.5px}.cipher-ledger-heading strong{font-size:18px}.cipher-rule-tools{padding:0 16px 12px}.cipher-rule-tools button{min-height:44px;font-size:10px}.cipher-rules{max-height:360px;min-height:170px;padding:12px 13px 15px;gap:6px;overscroll-behavior:auto}.cipher-rule{min-height:66px;padding:12px}.cipher-rule b{font-size:11px;line-height:1.8}.cipher-rule small{font-size:9px}.cipher-rule-detail{padding:18px 17px}.cipher-rule-detail h3{font-size:16px}.cipher-rule-detail p{font-size:11px}.cipher-rule-detail button{min-height:44px;font-size:11px}.cipher-send{order:8;margin:0;padding:15px 15px 18px;background:#e9d7b3;border-top:1px solid #c0ab8466;position:sticky;bottom:0;z-index:4;box-shadow:0 -5px 12px #a48a6520}.cipher-send>span{font-size:10px}.cipher-send>button{min-width:135px;min-height:46px;padding:10px 15px;font-size:12px}.cipher-message{font-size:11px;line-height:1.8;margin:12px 3px 24px}.cipher-atlas{padding:21px 16px}.cipher-atlas-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.cipher-atlas-heading h2{font-size:21px}.cipher-atlas-heading span{font-size:7px}.cipher-atlas-heading p{font-size:10px}.cipher-atlas-heading>strong{margin-left:0;font-size:12px}.cipher-letters{grid-template-columns:repeat(2,1fr);gap:8px}.cipher-letters article>button:first-child{padding:14px 13px;min-height:181px}.cipher-letters b{font-size:12px}.cipher-letters small{font-size:8px}.cipher-open-letter{min-height:44px;font-size:10px}.cipher-research{grid-template-columns:1fr}.cipher-research button{grid-template-columns:1fr auto;padding:15px}.cipher-research small{grid-column:2;grid-row:1/span 2}.cipher-atlas-actions{gap:6px}.cipher-atlas-actions button{min-height:44px}.cipher-dialog{padding:20px 15px}.cipher-dialog h2{font-size:20px}.cipher-dialog .cipher-album-letter{min-width:0;width:calc(50% - 13px);padding:12px}.cipher-album-letter b{font-size:12px}.cipher-album-letter small{font-size:9px}.cipher-footer{font-size:9px;gap:15px;padding:26px 18px;flex-wrap:wrap}.cipher-footer>span{margin:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.cipher-studio:fullscreen{max-height:100vh;overflow-y:auto;border-radius:0}.cipher-studio:fullscreen .cipher-stage{max-height:58vh}.cipher-studio:fullscreen canvas{object-fit:contain}

@media(max-width:800px){.cipher-stage{aspect-ratio:16/9}.cipher-stage:has(.cipher-overlay:not([hidden])){min-height:320px}}

.cipher-rule{color:#7d684f}.cipher-rule b{font-size:12px;line-height:1.75}.cipher-rule small{font-size:10px;color:#977b59}.cipher-rule.done{color:#4f705f}.cipher-rule.done small{color:#7e9377}.cipher-rule-detail p{color:#8a765c}

@media(max-width:800px){.cipher-edit-tools button,.cipher-stage-actions button{min-width:44px}}
