:root{--bg:#101011;--surface:#101011;--surface2:#141415;--line:#1c1c1e;--text:#e4e3e0;--muted:#96969e;--accent:#bcbcc3;--accent-dark:#1c1c1e;--gold:#bcbcc3;--teal:#bcbcc3;--danger:#db9b90;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
body{background:var(--bg)}button{box-shadow:none}button.primary{background:#bcbcc3;color:#101011;box-shadow:none}button.primary:hover{background:#e4e3e0}button:hover{background:#1c1c1e}input,select,textarea{background:#101011;border-color:#1c1c1e}input:focus,textarea:focus,select:focus{border-color:#bcbcc3;box-shadow:0 0 0 3px #bcbcc310}.ui-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.row>.ui-icon{width:18px;height:18px}.reference-shell{grid-template-columns:66px minmax(0,1fr)}.rail{background:#101011;border-right:1px solid #1c1c1e;display:flex;flex-direction:column;align-items:center;min-height:0;z-index:65}.rail button{display:grid;place-items:center;background:none;color:#96969e;border-radius:9px;width:44px;height:44px;padding:0;position:relative;flex-shrink:0}.rail button:hover{color:#e4e3e0;background:#bcbcc312}.rail button:focus-visible{outline:1px solid #bcbcc3;outline-offset:0}.rail .rail-brand{font-family:ui-serif,serif;font-size:33px;color:#bcbcc3;height:68px;border-radius:0;border-bottom:1px solid #1c1c1e;width:100%}.rail-nav{display:flex;flex-direction:column;gap:10px;align-items:center;padding:20px 0;overflow:auto;flex:1;width:100%;scrollbar-width:none}.rail-nav .ui-icon{width:22px;height:22px}.rail-bottom{border-top:1px solid #1c1c1e;padding:12px 0 16px;display:flex;flex-direction:column;align-items:center;gap:6px;width:44px}.rail-user{width:25px;height:25px;background:#1c1c1e;color:#e4e3e0;font-size:.75rem;border-radius:50%;display:grid;place-content:center;margin-top:7px}.workspace{background:#101011}.topbar{min-height:54px;padding:10px 24px;background:#101011;border-bottom:1px solid #1c1c1e}.top-brand{font-family:ui-serif,"Songti SC",serif;color:#e4e3e0;font-size:1rem;letter-spacing:.2em}.topbar .crumb{padding-left:15px;border-left:1px solid #1c1c1e;color:#96969e;font-size:.8rem}.topbar .model-picker{background-color:#141415;border:1px solid #1c1c1e;font-size:.75rem;max-width:260px;padding:7px 31px 7px 11px}.topbar button{display:grid;place-content:center;padding:6px 8px;color:#bcbcc3}.topbar .ui-icon{width:19px;height:19px}.topbar .row{gap:12px}.mock-notice{border-radius:0;padding:6px 16px;font-size:.75rem}.game{grid-template-columns:minmax(0,1fr) 300px;background:#101011}.story-column{background:#101011}.story-scroll{scrollbar-color:#2c2c2f transparent}.story-inner{max-width:1100px;padding:23px 46px 38px}.scene-banner{height:148px;border-radius:15px;padding:20px 25px;margin-bottom:26px;background:radial-gradient(ellipse at 85% 15%,#96969e30,transparent 60%),linear-gradient(160deg,#1c1c1e,#141415 50%,#101011);border:1px solid #2c2c2f5c;position:relative;overflow:hidden;box-shadow:inset 0 -35px 40px #09090a70}.scene-top,.scene-bottom{position:relative;z-index:1}.scene-top{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:#bcbcc3}.scene-era{display:flex;align-items:center;gap:9px}.scene-era i{width:6px;height:6px;background:#bcbcc3;border-radius:50%}.scene-currency{display:flex;align-items:center;gap:8px;color:#bcbcc3}.scene-currency .ui-icon{width:17px;height:17px}.scene-currency b{color:#e4e3e0;font-size:.9rem}.scene-bottom{margin-top:13px}.scene-bottom h1{font:500 1.08rem ui-serif,"Songti SC",serif;letter-spacing:.1em;color:#e4e3e0;margin-bottom:9px}.scene-bottom>div{display:flex;gap:8px;align-items:center;font-size:.75rem;color:#bcbcc3;line-height:1.5}.scene-bottom .ui-icon{width:13px;height:13px}.scene-bottom .scene-time{font:11px ui-monospace,monospace;margin-left:21px;gap:10px;line-height:1.8;color:#96969e}.scene-time i{font-style:normal;opacity:.5}.scene-lines{position:absolute;width:50%;height:120%;right:1%;top:-25%;border:1px solid #bcbcc317;border-radius:50%;box-shadow:0 0 0 30px #bcbcc308,0 0 0 65px #bcbcc305}.story-text{font-family:ui-sans-serif,system-ui,"Microsoft YaHei",sans-serif;font-size:1.075rem;color:#e4e3e0;line-height:2.12;letter-spacing:.015em}.dialogue{color:#bcbcc3}.turn{padding:0 5px;margin-bottom:32px}.turn-meta{font-size:.75rem;color:#96969e;border-color:#1c1c1e;padding-top:12px;gap:13px}.turn-meta span:nth-child(2){color:#96969e}.turn-meta button{font-size:.75rem;color:#96969e;padding:5px 8px}.user-turn{background:none;border:0;border-left:1px solid #2c2c2f;border-radius:0;padding:0 0 0 13px;margin:15px 4px 22px;color:#96969e;max-width:100%;font-size:.8rem}.user-turn summary{cursor:pointer;list-style:none;padding:5px 0}.user-turn summary:before{content:'＋';margin-right:8px;color:#5a5a60}.user-turn[open] summary:before{content:'−'}.user-turn p{padding:7px 0 10px;font-size:.875rem;line-height:1.85;white-space:pre-wrap;color:#bcbcc3}.action-choices{border:1px solid #1c1c1e;border-radius:10px;margin-top:20px;background:#101011}.action-choices>summary{cursor:pointer;list-style:none;font-size:.875rem;color:#bcbcc3;display:flex;justify-content:space-between;padding:14px 17px}.action-choices>summary span{font-size:.75rem;background:#1c1c1e;border-radius:4px;padding:0 7px;color:#bcbcc3}.options{padding:0 12px 12px;gap:7px;margin-top:0}.option{background:#141415;border-color:#1c1c1e;color:#bcbcc3;font-size:.875rem;padding:12px 14px;line-height:1.8}.option:hover{background:#141415;border-color:#5a5a60}.option:before{color:#96969e}.composer-wrap{padding:12px 26px 8px;border-top:1px solid #1c1c1e;background:#101011}.composer{display:flex;align-items:center;gap:12px;background:#141415;border:1px solid #1c1c1e;border-radius:12px;padding:8px 10px;max-width:1020px;box-shadow:none}.composer:focus-within{border-color:#96969e}.composer-tools{display:flex;gap:3px;border-right:1px solid #2c2c2f;padding-right:8px;align-items:center}.composer-tools button{display:grid;place-content:center;width:33px;height:35px;padding:0;color:#96969e}.composer-tools .ui-icon{width:18px;height:18px}.composer textarea{flex:1;min-height:39px;max-height:160px;background:transparent;padding:8px 2px;border:0;border-radius:0;font-size:1rem;line-height:1.55;box-shadow:none;color:#e4e3e0}.composer textarea::placeholder{color:#96969e}.composer .send-button{border:1px solid #96969e;color:#bcbcc3;background:#141415;border-radius:9px;width:39px;height:39px;padding:8px;flex-shrink:0}.send-button:hover{background:#1c1c1e}.send-button .ui-icon{width:19px;height:19px}.composer-hint{max-width:1020px;margin:6px auto 0;font-size:.65rem;color:#5a5a60;text-align:right;line-height:1.4}.summary-panel{background:#101011;border-left:1px solid #1c1c1e;padding:0;display:flex;flex-direction:column}.summary-panel-head{display:flex;justify-content:space-between;align-items:center;color:#96969e;font-size:.75rem;letter-spacing:.1em;padding:19px 20px 11px}.summary-scroll{flex:1;overflow:auto;padding:0 16px 20px;scrollbar-width:thin;scrollbar-color:#2c2c2f transparent}.summary-section{border-bottom:1px solid #1c1c1e6b}.summary-section>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:15px 3px;cursor:pointer;font-size:.875rem;color:#bcbcc3;line-height:1.5}.summary-section>summary::-webkit-details-marker{display:none}.summary-section>summary>.ui-icon{width:17px;height:17px;color:#96969e}.summary-section:first-child>summary>.ui-icon{color:#c7877d}.summary-chevron{margin-left:auto;color:#5a5a60;font-size:.875rem}.summary-section[open] .summary-chevron{transform:rotate(180deg)}.summary-count{min-width:18px;height:18px;display:grid;place-content:center;background:#875548;color:#f0d5ca;border-radius:50%;font-size:.65rem;font-weight:500}.summary-section-body{padding:1px 3px 16px;font-size:.875rem;color:#bcbcc3;line-height:1.9;overflow-wrap:anywhere}.summary-empty{font-size:.8rem;color:#96969e;line-height:1.8}.summary-goal{font-size:.875rem}.summary-meter{display:grid;grid-template-columns:1fr auto;gap:5px;margin:9px 0 15px;font-size:.75rem;color:#bcbcc3}.summary-meter strong{font-size:.8rem;font-weight:500;color:#bcbcc3}.summary-meter meter{grid-column:1/-1;width:100%;height:4px;appearance:none}.summary-meter meter::-webkit-meter-bar{background:#1c1c1e;border:0;border-radius:4px}.summary-meter meter::-webkit-meter-optimum-value{background:#96969e;border-radius:4px}.summary-item{padding:6px 0 10px;border-bottom:1px solid #1c1c1e}.summary-item:last-child{border:0;padding-bottom:0}.summary-item strong{display:block;font-weight:500;font-size:.875rem}.summary-item small{display:block;color:#96969e;font-size:.75rem;line-height:1.8}.summary-item p{font-size:.875rem}.risk-label,.chance-label{font-size:.8rem;font-weight:550;margin:9px 0 6px}.risk-label{color:#d18b7d}.chance-label{color:#96969e}.summary-chip{border-radius:7px;padding:6px 9px;margin-bottom:8px;font-size:.8rem;background:#141415;line-height:1.8}.summary-chip.risk{background:#1c1c1e;color:#d7b29c}.summary-chip.risk>span{color:#dd9a84;margin-right:8px}.summary-chip small{display:block;color:#96969e;font-size:.7rem}.summary-world{margin:0}.summary-world>div{padding:6px 0 9px}.summary-world dt{font-size:.75rem;color:#bcbcc3;margin-bottom:2px}.summary-world dd{margin:0;font-size:.875rem;color:#bcbcc3;line-height:1.9}.summary-world ul{margin:0;padding-left:17px}.summary-full{margin:0 13px 14px;border:1px solid #2c2c2f;border-radius:8px;padding:11px;display:flex;justify-content:center;gap:12px;align-items:center;background:#141415;color:#bcbcc3;font-size:.8rem}.summary-full .ui-icon{width:15px;height:15px}
dialog{background:#141415;border:1px solid #2c2c2f;border-radius:15px;box-shadow:0 30px 100px #03030388;color:#e4e3e0}dialog::backdrop{background:#09090ad0;backdrop-filter:blur(7px)}.modal-head{border-color:#1c1c1e;padding:19px 23px}.modal-head h2{font-family:inherit;font-size:1.15rem;font-weight:600;color:#e4e3e0}.modal-head>button{border:1px solid #2c2c2f;border-radius:50%;width:33px;height:33px;padding:0;font-size:1rem}.modal-body{padding:25px;color:#bcbcc3}.drawer-modal{position:fixed;inset:12px auto 12px 78px;margin:0;width:min(1040px,calc(100vw - 102px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:0 19px 19px 0}.drawer-modal .modal-body{height:calc(100% - 74px);max-height:none}.ledger-modal .modal-body{display:flex;flex-direction:column;padding:0;overflow:hidden}.drawer-toolbar{padding:16px 22px;display:flex;align-items:center;gap:20px;border-bottom:1px solid #1c1c1e}.drawer-toolbar .search-box{flex:1;max-width:390px}.drawer-toolbar>span{font-size:.8rem;color:#96969e;line-height:1.7}.drawer-tabs{display:flex;gap:5px;flex-shrink:0;overflow:auto;padding:12px 20px;background:#101011;border-bottom:1px solid #1c1c1e}.drawer-tabs button{display:flex;align-items:center;gap:8px;flex-shrink:0;background:none;color:#96969e;font-size:.875rem;padding:10px 13px;border:1px solid transparent;border-radius:8px}.drawer-tabs .ui-icon{width:17px;height:17px}.drawer-tabs button.active{border-color:#5a5a60;background:#1c1c1e;color:#e4e3e0}.ledger-content{padding:24px;flex:1;min-height:0;overflow:auto;background:#141415;scrollbar-color:#2c2c2f transparent}.data-card{background:#141415;border-color:#2c2c2f;border-radius:10px}.data-card>summary{color:#bcbcc3}.card-count{color:#96969e}.data-card-body{border-color:#1c1c1e}.data-card .data-card{background:#141415;border-color:#1c1c1e}.data-card .data-card>summary{color:#bcbcc3}.data-card .data-card .data-card{border-color:#2c2c2f}.field{border-color:#1c1c1e7a;color:#bcbcc3}.field dt{color:#96969e}.field dd{color:#bcbcc3}.unrecorded{color:#96969e}.metric{border-color:#1c1c1e}.metric strong{color:#bcbcc3}.metric .row span{color:#bcbcc3}.metric meter::-webkit-meter-bar{background:#1c1c1e}.metric meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#5a5a60,#bcbcc3)}.metric meter::-moz-meter-bar{background:#96969e}.meter-scale{color:#5a5a60}.search-box{background:#101011;border-color:#2c2c2f;border-radius:8px}.search-box input{color:#e4e3e0;font-size:.875rem}.search-box>.ui-icon{width:17px;height:17px;color:#96969e}.search-result{border-color:#2c2c2f}.search-result small{color:#96969e}.search-result p{color:#bcbcc3}.empty-record{border-color:#2c2c2f;color:#bcbcc3;background:#14141555}.empty-record small{color:#96969e}.empty-symbol{color:#96969e}.person-card{background:#141415;border:1px solid #2c2c2f;border-top:3px solid #96969e;border-radius:12px;overflow:hidden}.people-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px;align-items:start}.people-results>.empty-record{grid-column:1/-1}.person-card{margin:0}.person-card>summary{display:flex;flex-wrap:wrap;gap:9px;padding:17px 15px;position:relative;align-items:start;min-height:170px}.person-avatar{width:34px;height:37px;font-size:17px;border-color:#5a5a60;background:#1c1c1e;color:#bcbcc3;display:none}.person-heading{flex:1 1 calc(100% - 29px)}.person-heading strong{font-size:1rem;color:#e4e3e0}.person-heading small{font-size:.8rem;color:#96969e;line-height:1.8;margin-top:5px}.person-marker{position:absolute;right:14px;top:15px;font-size:.9rem;color:#96969e}.person-preview{display:flex;flex-direction:column;width:100%;gap:9px;margin-top:9px}.person-preview-meter{display:flex;flex-direction:column;gap:5px;color:#96969e;font-size:.75rem}.person-preview-meter meter{width:100%;height:4px;appearance:none;display:block}.person-preview-meter meter::-webkit-meter-bar{background:#1c1c1e;border:0;border-radius:5px}.person-preview-meter meter::-webkit-meter-optimum-value{background:#96969e;border-radius:5px}.person-card[open]{grid-column:1/-1}.person-card[open]>summary{min-height:0;padding-bottom:16px;border-bottom:1px solid #2c2c2f}.person-card[open] .person-avatar{display:grid}.person-card[open] .person-heading{flex:1}.person-card[open] .person-preview{flex-direction:row;gap:22px;margin-left:43px;width:calc(100% - 43px)}.person-card[open] .person-preview-meter{width:150px}.person-body{border:0;padding:0 18px 16px}.person-actions button{color:#bcbcc3;background:#1c1c1e;font-size:.8rem;padding:8px 12px}.person-actions .ghost{background:none}.person-body .data-card{max-width:none}.ledger-content .person-card{max-width:none}.people-toolbar{margin-bottom:16px}.people-count{font-size:.75rem;margin:0 0 16px;color:#96969e}.follow-filter{font-size:.8rem;color:#bcbcc3}.follow-filter input{accent-color:#96969e}.profile-monogram{background:#1c1c1e;border-color:#5a5a60;color:#e4e3e0}.mode-note{color:#bcbcc3;background:#141415;border-color:#2c2c2f}.quiet-note{color:#bcbcc3;background:#141415;border-color:#2c2c2f}.system-details{color:#96969e}.pill{background:#1c1c1e;color:#bcbcc3}.pill.on{background:#2c2c2f;color:#e4e3e0}.memory-list>li{border-color:#5a5a60;color:#bcbcc3}.memory-list>li:before{background:#96969e}.notes-tabs{display:flex;gap:8px;border-bottom:2px solid #2c2c2f;padding:0 0 14px;margin-bottom:23px}.notes-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:none;color:#bcbcc3;font-size:.875rem;padding:13px 8px;border-radius:9px}.notes-tabs button.active{background:#96969e;color:#101011;font-weight:600}.notes-tabs button span{font-size:.75rem}.notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.notes-grid[hidden]{display:none}.note-card{border:1px solid #2c2c2f;border-top:3px solid #96969e;border-radius:14px;padding:21px;background:#141415;overflow-wrap:anywhere}.note-card header{display:flex;align-items:start;gap:10px;margin-bottom:13px}.note-card h3{font-size:1rem;line-height:1.65;color:#e4e3e0}.note-dot{display:block;width:9px;height:9px;border-radius:50%;background:#c99b76;flex-shrink:0;margin-top:9px}.note-card.chance{border-top-color:#96969e}.note-card.chance .note-dot{background:#96969e}.note-card.todo{border-top-color:#96969e}.note-card.todo .note-dot{background:#96969e}.note-card .field{display:block;font-size:.875rem}.note-card .field dt{margin-bottom:5px}.note-card .field dd{line-height:1.9}
.preset-modal .modal-body{padding:24px;overflow:auto;display:block}.preset-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:21px}.preset-header .eyebrow{font-size:.65rem;color:#96969e}.preset-header h3{font-size:1.2rem;color:#e4e3e0;margin:6px 0}.preset-header p{font-size:.875rem;color:#96969e}.preset-header button{font-size:.8rem;flex-shrink:0;border:1px solid #2c2c2f;color:#bcbcc3;padding:9px 12px}.preset-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#101011;border:1px solid #2c2c2f;border-radius:12px;padding:12px;margin-bottom:20px}.preset-overview>div{background:#141415;border:1px solid #1c1c1e;border-radius:8px;padding:13px 14px;min-width:0}.preset-overview small{display:block;font-size:.75rem;color:#96969e;margin-bottom:6px}.preset-overview strong{font-size:.875rem;color:#bcbcc3;font-weight:550;line-height:1.7}.preset-toolbar{display:flex;gap:12px;padding:12px 0;background:#141415;position:sticky;top:-24px;z-index:3}.preset-toolbar .search-box{flex:1}.preset-toolbar select{max-width:160px;font-size:.875rem;background-color:#141415;border-color:#2c2c2f}.preset-group{margin:14px 0 27px}.preset-group>h4{font-size:.8rem;font-weight:500;letter-spacing:.07em;color:#96969e;display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.preset-group>h4 span{color:#96969e;font-size:.75rem}.preset-row{border:1px solid #2c2c2f;border-radius:10px;background:#141415;padding:16px 18px;margin-bottom:10px}.preset-row[hidden],.preset-group[hidden]{display:none}.preset-row-top{display:flex;justify-content:space-between;align-items:center;gap:18px}.preset-name{min-width:0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.preset-name strong{font-weight:500;font-size:.94rem;line-height:1.7;color:#e4e3e0}.group-badge{font-size:.65rem;color:#bcbcc3;background:#1c1c1e;border:1px solid #2c2c2f;border-radius:4px;padding:2px 6px;line-height:1.6}.preset-content{margin-top:7px}.preset-content>summary{font-size:.75rem;color:#96969e;cursor:pointer;line-height:1.9}.preset-content p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem;line-height:1.85;color:#bcbcc3;margin:12px 0 0;border-top:1px solid #2c2c2f;padding:13px 0 2px;max-height:400px;overflow:auto}.switch{position:relative;display:block;width:42px;height:24px;flex-shrink:0;cursor:pointer}.switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;z-index:1}.switch-track{display:block;width:42px;height:24px;border:1px solid #2c2c2f;background:#1c1c1e;border-radius:20px;transition:.18s}.switch-track:after{content:'';position:absolute;width:16px;height:16px;top:4px;left:4px;border-radius:50%;background:#5a5a60;transition:.18s}.switch input:checked+.switch-track{background:#bcbcc3;border-color:#bcbcc3}.switch input:checked+.switch-track:after{transform:translateX(18px);background:#141415}.switch input:focus-visible+.switch-track{outline:2px solid #e4e3e0;outline-offset:3px}.switch input:disabled+.switch-track{opacity:.5}.journey-tools{display:flex;gap:12px;margin-bottom:23px}.journey-tools button{display:flex;align-items:center;gap:9px}.journey-tools .ui-icon{width:17px;height:17px}.journey-list{display:grid;gap:10px;margin-bottom:20px}.journey-list>button{display:flex;align-items:center;gap:14px;background:#141415;border:1px solid #2c2c2f;padding:19px;text-align:left}.journey-list>button>span{display:flex;align-items:center;gap:13px;flex:1}.journey-list strong{font-size:1rem;font-weight:500;color:#e4e3e0}.journey-list small{font-size:.75rem;color:#96969e}.journey-list .ui-icon{width:18px;height:18px;color:#96969e}.account-profile{display:flex;gap:18px;align-items:center;margin:3px 0 28px}.account-profile h3{font-size:1.2rem}.account-profile p{font-size:.8rem;margin-top:5px}.home{max-width:1240px;padding:50px 55px}.home-heading h1{color:#e4e3e0;font-family:inherit;font-size:2.05rem;font-weight:500;letter-spacing:-.03em}.home-heading .eyebrow{font-size:.65rem;color:#96969e}.hero{border-color:#2c2c2f;background:radial-gradient(ellipse at 90% 50%,#5a5a6023,transparent 65%),#141415;box-shadow:none;min-height:265px;padding:34px}.hero h2{color:#e4e3e0;font-family:inherit;font-weight:500;font-size:1.9rem;letter-spacing:-.03em}.hero p{color:#96969e;font-size:.94rem}.hero-content{max-width:70%}.hero-architecture{height:230px;opacity:.5}.arch-outer,.arch-inner{border-color:#5a5a6077;box-shadow:none;background:none}.arch-star{color:#96969e}.arch-horizon{background:#96969e44;box-shadow:0 12px 0 #96969e22,0 24px 0 #96969e11}.arch-steps{background:repeating-linear-gradient(0deg,transparent 0 8px,#96969e2e 8px 9px)}.save-card{background:#141415;border-color:#2c2c2f}.save-card:hover{background:#141415;border-color:#5a5a60}.save-card strong{font-family:inherit;font-size:1.05rem;color:#e4e3e0}.save-card:after{color:#bcbcc314}.save-card small{color:#96969e}.eyebrow{color:#96969e}.home-foot{border-color:#1c1c1e;color:#96969e}.home-foot .ghost{color:#bcbcc3}.setup h1{font-family:inherit;color:#e4e3e0}.form-section{background:#141415;border-color:#2c2c2f}.form-section h2{color:#bcbcc3;border-color:#2c2c2f}.auth{background:none}.auth-card{background:#141415;border-color:#2c2c2f;box-shadow:0 22px 90px #03030333}.auth-art h1,.auth-card h2{font-family:inherit;color:#e4e3e0}.auth-art p,.auth-foot{color:#96969e}.portal{border-color:#5a5a60;background:radial-gradient(ellipse at 50% 30%,#5a5a6025,transparent 75%),#141415;box-shadow:0 0 80px #96969e0d}.portal:after{color:#bcbcc3;filter:none}.auth-tabs{border-color:#2c2c2f}.auth-tabs button.active{border-color:#96969e}.auth-tabs button{color:#96969e}.admin-card{background:#141415;border-color:#2c2c2f}.audit-item,.admin .user-row{border-color:#2c2c2f}.task-box{background:#141415;border-color:#5a5a60}.notice{background:#141415;color:#bcbcc3;border-color:#5a5a60}.task-detail{color:#96969e}.task-steps .active{color:#bcbcc3}.begin-card{background:#141415;border-color:#2c2c2f}.begin-card p{color:#96969e}.begin-card .helper{color:#96969e}.muted,small{color:#96969e}#toast{background:#1c1c1e;border-color:#5a5a60;color:#e4e3e0}.search-count{color:#bcbcc3}.dossier-footer{border-color:#2c2c2f}.ledger-heading h3{color:#e4e3e0}.ledger-heading p{color:#96969e}.ledger-top{background:#141415}.ledger-nav{background:#141415}.ledger-nav button.active{background:#1c1c1e;color:#e4e3e0}.topbar .small .ui-icon{width:18px;height:18px}
@media(min-width:1650px){.story-inner{max-width:1180px;padding-left:60px;padding-right:60px}.game{grid-template-columns:minmax(0,1fr) 325px}.story-text{font-size:1.125rem}.scene-banner{height:160px}}
@media(max-width:1250px){.reference-shell{grid-template-columns:62px minmax(0,1fr)}.game{grid-template-columns:minmax(0,1fr) 270px}.story-inner{padding:22px 30px 32px}.scene-banner{padding:18px 20px;height:140px}.home{padding:38px 38px}.hero h2{font-size:1.7rem}.drawer-modal{left:74px;width:calc(100vw - 94px)}}
@media(max-width:1100px){.game{grid-template-columns:1fr}.summary-panel{position:fixed;inset:0 0 0 auto;width:310px;z-index:70;transform:translateX(100%);border-radius:0;transition:transform .2s}.summary-panel.open{transform:none}.summary-panel.open+.backdrop{display:block;position:fixed;inset:0;background:#09090ad0;backdrop-filter:blur(3px);z-index:60}.summary-panel .drawer-close{display:block!important}.summary-panel-head{padding-top:24px}.story-inner{max-width:1000px;padding:25px 40px 35px}}
@media(max-width:720px){.reference-shell{grid-template-columns:50px minmax(0,1fr)}.rail .rail-brand{height:56px;font-size:27px}.rail button{width:36px;height:39px}.rail-nav{padding:15px 0;gap:9px}.rail-nav .ui-icon{width:19px;height:19px}.rail-bottom{width:34px;padding-bottom:14px;gap:3px}.rail-user{width:22px;height:22px;font-size:.65rem}.topbar{min-height:52px;padding:9px 10px}.top-brand{display:none}.topbar .crumb{display:none}.topbar>.row:first-child{display:none}.topbar>.row:last-child{justify-content:space-between;width:100%;gap:8px}.topbar .model-picker{max-width:calc(100% - 70px);font-size:.7rem;padding:7px 27px 7px 8px;flex:1}.topbar button{padding:5px}.story-inner{padding:15px 15px 25px}.scene-banner{height:133px;padding:16px 17px;margin-bottom:20px;border-radius:11px}.scene-top{font-size:.7rem}.scene-currency{font-size:.65rem;gap:5px}.scene-currency b{font-size:.8rem}.scene-bottom h1{font-size:.95rem;margin-bottom:8px}.scene-bottom>div{font-size:.65rem}.scene-bottom .scene-time{font-size:10px}.story-text{font-size:1rem;line-height:2.05;letter-spacing:0}.turn{padding:0}.user-turn{margin:9px 0 19px;font-size:.75rem}.turn-meta{font-size:.65rem;gap:7px;line-height:1.7}.turn-meta button{font-size:.65rem}.composer-wrap{padding:8px 8px max(7px,env(safe-area-inset-bottom))}.composer{border-radius:9px;gap:6px;padding:5px 6px}.composer-tools{padding-right:5px;gap:0}.composer-tools button{width:25px;height:32px}.composer-tools button:nth-child(2){display:none}.composer-tools .ui-icon{width:16px;height:16px}.composer textarea{font-size:1rem;min-height:37px;padding:7px 0}.composer .send-button{width:32px;height:33px;padding:6px}.composer-hint{font-size:.55rem;margin-top:4px}.summary-panel{width:min(340px,calc(100vw - 50px));top:0;border-radius:0}.summary-scroll{padding:0 16px 20px}.drawer-modal{inset:0 0 0 50px;margin:0;width:calc(100vw - 50px);max-width:none;height:100dvh;max-height:100dvh;border-radius:0;border-right:0;border-top:0;border-bottom:0}.modal-head{padding:16px 17px}.modal-head h2{font-size:1.05rem}.modal-head>button{width:30px;height:30px}.drawer-modal .modal-body{height:calc(100% - 67px)}.drawer-toolbar{padding:12px 13px}.drawer-toolbar>span{display:none}.drawer-toolbar .search-box{max-width:none}.drawer-tabs{padding:10px 12px;gap:3px}.drawer-tabs button{padding:9px 10px;font-size:.8rem;gap:6px}.drawer-tabs .ui-icon{width:15px;height:15px}.ledger-content{padding:16px 13px}.preset-modal .modal-body{padding:17px 13px}.preset-header{display:block;margin-bottom:16px}.preset-header h3{font-size:1.1rem}.preset-header p{font-size:.8rem}.preset-header button{margin-top:12px;font-size:.75rem;padding:8px 10px}.preset-overview{grid-template-columns:1fr 1fr;padding:8px;gap:7px}.preset-overview>div{padding:10px}.preset-overview strong{font-size:.75rem}.preset-overview small{font-size:.65rem}.preset-toolbar{top:-17px;gap:8px;padding:10px 0}.preset-toolbar select{max-width:100px;font-size:.75rem;padding-left:8px;padding-right:23px}.preset-toolbar input{font-size:.8rem}.preset-row{padding:13px 12px}.preset-name strong{font-size:.875rem}.preset-row-top{gap:10px}.preset-name{gap:5px}.preset-content p{font-size:.8rem}.group-badge{font-size:.6rem}.people-results{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:11px}.person-card>summary{min-height:155px}.person-card[open] .person-preview{margin-left:0;width:100%}.person-card[open] .person-preview-meter{width:calc(50% - 11px)}.people-toolbar{gap:10px}.notes-tabs{gap:3px;padding-bottom:11px;margin-bottom:16px}.notes-tabs button{padding:11px 5px;font-size:.75rem;gap:4px;flex-wrap:wrap}.notes-grid{grid-template-columns:1fr}.note-card{padding:17px}.note-card h3{font-size:.94rem}.home{padding:30px 19px}.home-heading h1{font-size:1.65rem}.home-heading .eyebrow{font-size:.55rem}.home-heading p{font-size:.875rem}.hero{min-height:310px;padding:23px 20px;border-radius:12px;align-items:flex-start}.hero h2{font-size:1.6rem;max-width:250px;line-height:1.55}.hero p{font-size:.8rem;max-width:225px}.hero-content{max-width:100%}.hero-architecture{right:0;width:105px;height:140px;opacity:.23}.hero .primary{padding:11px 14px;font-size:.875rem}.cards{gap:12px}.save-card{padding:20px;min-height:125px}.home-foot{gap:7px}.home-foot span{font-size:.7rem}.journey-tools{gap:8px}.journey-tools button{font-size:.8rem;padding:10px 11px}.journey-list>button{padding:15px 12px;gap:8px;flex-wrap:wrap}.journey-list>button>span{flex-basis:100%}.journey-list strong{font-size:.94rem}.journey-list small{font-size:.7rem}.journey-list>button>.ui-icon{margin-left:auto}.setup{padding:25px 17px 50px}.setup h1{font-size:1.55rem}.form-section{padding:20px 15px}.grid2{grid-template-columns:1fr}.auth{padding:35px 24px;gap:25px}.auth-art h1{font-size:2rem}.auth-card{padding:24px}.auth-card h2{font-size:1.4rem}.admin{padding:24px 16px}.admin-card{padding:18px}.account-profile{gap:14px}.scene-lines{width:65%}.action-choices>summary{font-size:.8rem;padding:12px 13px}.option{font-size:.8rem;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
