.lore-workspace{padding:28px 35px 42px;color:#30463b}.lore-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}.lore-heading h2{font:27px/1.5 var(--serif);margin:9px 0 7px;color:#273f36}.lore-heading p{font-size:12px;color:#7c887d;line-height:1.9}.lore-heading>.btn{font-size:11px;margin-top:13px;flex:none}.lore-tabs{display:flex;gap:5px;border-bottom:1px solid #dce1d6;margin-bottom:24px;align-items:center}.lore-tabs>button{background:transparent;color:#7d897c;font-size:12px;padding:12px 20px;border-bottom:2px solid transparent;white-space:nowrap}.lore-tabs>button.active{color:#294b38;border-color:#294b38}.lore-tabs>button>span{font-size:9px;padding:2px 5px;background:#e8eddf;border-radius:3px;margin-left:7px}.lore-save-note{margin-left:auto;color:#8c9888;font-size:10px;white-space:nowrap}.world-layout{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);gap:25px}.world-cover{border:1px solid #dde2d5;background:linear-gradient(145deg,#eef0e5,#e3e9da);border-radius:9px;padding:35px 25px;position:relative;align-self:start;min-height:410px;overflow:hidden}.world-cover:after{content:'';position:absolute;bottom:-145px;right:-100px;width:380px;height:230px;background:#cbd7c4;border-radius:45%;transform:rotate(-20deg);opacity:.6}.world-seal{display:inline-block;font:32px/1.4 var(--serif);color:#a28a5f;border:1px solid #b9a780;padding:0 9px;margin-bottom:24px}.world-cover>.eyebrow{display:block;font-size:8px;letter-spacing:1.8px;color:#8f9b86}.world-cover h3{font:26px/1.8 var(--serif);color:#314b37;margin:12px 0;overflow-wrap:anywhere}.world-cover>p{font-size:12px;line-height:2;color:#7c8c73}.world-cover-rule{width:30px;height:1px;background:#b9c2aa;margin:25px 0}.world-cover>small{font-size:10px;line-height:2.1;color:#83947a;display:block;position:relative;z-index:1}.world-fields{background:#fffef9;border:1px solid #dfe4d7;border-radius:9px;padding:26px}.lore-field{display:flex;flex-direction:column;gap:8px;color:#63755c;font-size:12px;margin-bottom:20px}.lore-field input,.lore-field textarea,.lore-modal input,.lore-modal textarea,.lore-modal select{font-size:13px!important;color:#2f4538!important;background:#fcfcf7!important;line-height:1.8!important}.lore-field textarea{resize:vertical;min-height:90px;padding:12px}.lore-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lore-form-footer{border-top:1px solid #e7eadf;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.lore-form-footer>span{font-size:10px;line-height:1.8;color:#8e9a85;max-width:310px}.lore-form-footer>.btn{flex:none}.lore-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.lore-toolbar>.btn{flex:none;font-size:12px}.lore-search{display:flex;flex-direction:row;align-items:center;gap:14px;margin:0;width:340px;max-width:60%;font-size:11px;color:#8b9782}.lore-search>span{white-space:nowrap}.lore-search input{min-width:0;font-size:12px}.lore-character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.lore-character-card{background:#fffef9;border:1px solid #dce2d3;border-radius:9px;overflow:hidden;display:flex;align-items:stretch}.lore-portrait{width:140px;flex:none;min-height:230px;background:linear-gradient(165deg,#e4eadf,#eef0e6);display:flex;align-items:center;justify-content:center;overflow:hidden}.lore-portrait img{width:100%;height:100%;max-height:320px;object-fit:contain;display:block;object-position:center bottom}.lore-portrait>span{color:#9ba98f;font:53px var(--serif);border:1px solid #bcc7b2;padding:7px 10px}.lore-character-body{padding:20px 18px;flex:1;min-width:0}.lore-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.lore-card-heading h3{font:24px var(--serif);color:#2f4a37;margin:0 0 6px}.lore-card-heading>div>span{font-size:10px;color:#8c9780}.lore-card-heading>.text-btn{white-space:nowrap;font-size:10px;flex:none}.lore-aliases{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.lore-tag{display:inline-block;background:#edf0e5;color:#748966;font-size:9px;padding:3px 6px;border-radius:3px;vertical-align:middle}.lore-biography{font-size:12px;line-height:1.9;color:#78846d;margin:14px 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;min-height:60px}.lore-chapter-label{font-size:9px;color:#9aa48d}.lore-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.lore-card-actions>.btn{font-size:10px;padding:6px 8px}.lore-card-actions>.text-btn{font-size:9px}.lore-card-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf0e6;padding-top:11px;margin-top:14px}.lore-card-bottom>.text-btn{font-size:9px}.lore-empty{grid-column:1/-1;padding:55px 25px;text-align:center;border:1px dashed #d4deca;border-radius:8px;background:#f5f7ef;color:#829374}.lore-empty>span{font:36px var(--serif);display:block;margin-bottom:17px;color:#a7b296}.lore-empty h3{font:23px var(--serif);color:#5c7750;margin-bottom:12px}.lore-empty p{font-size:12px;line-height:1.8;margin-bottom:20px}.lore-empty.compact{padding:25px}.lore-empty.compact h3{font-size:18px}.lore-empty.compact p{margin-bottom:0}.lore-focus-label{display:flex;align-items:center;flex-direction:row;gap:12px;margin:0;font-size:11px;color:#8b9782}.lore-focus-label select{width:210px;font-size:12px}.lore-graph-board{border:1px solid #dde3d5;border-radius:10px;overflow:auto;background-color:#fafbf5;background-image:radial-gradient(#cbd4c1 1px,transparent 1px);background-size:20px 20px;position:relative}.lore-graph{display:block;width:100%;min-width:600px;max-height:660px}.lore-graph-edge>path{fill:none;stroke:#a7b39c;stroke-width:1.6}.lore-graph-edge>rect{fill:#fafbf5;stroke:#e0e6d7;stroke-width:.8}.lore-graph-edge>text{font:12px system-ui,sans-serif;fill:#6f7c62}.lore-graph-node{cursor:pointer;outline:none}.lore-graph-node>circle{fill:#e4eadc;stroke:#9caf8f;stroke-width:1.5;transition:fill .15s}.lore-graph-node:hover>circle,.lore-graph-node:focus>circle,.lore-graph-node.focused>circle{fill:#294b38;stroke:#294b38}.lore-graph-node .graph-initial{font:26px var(--serif);fill:#56744b}.lore-graph-node:hover .graph-initial,.lore-graph-node:focus .graph-initial,.lore-graph-node.focused .graph-initial{fill:#eee9d5}.lore-graph-node>rect{fill:#fafbf5;stroke:#e4e8db;stroke-width:.7}.graph-name{font:13px system-ui,sans-serif;fill:#405839}.lore-graph-caption{text-align:center;padding:12px;font-size:10px;color:#8e9b80;background:#f4f7ed;border-top:1px solid #e3e8da;min-width:600px}.lore-graph-empty{text-align:center;padding:80px 20px;color:#8b9b7d;font-size:13px}.lore-relationship-list{display:flex;flex-direction:column;gap:10px;margin-top:20px}.relationship-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;background:#fffef9;border:1px solid #e0e6d6;border-radius:7px;padding:19px 22px}.relationship-row>div{min-width:0}.relationship-people{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.relationship-people>strong{font-size:13px;color:#48603e;font-weight:500}.relationship-people>span:not(.lore-tag){font-size:15px;color:#acb798}.relationship-row p{font-size:12px;line-height:1.9;color:#859375;margin-top:8px;white-space:pre-wrap}.relationship-row small{font-size:9px;color:#a0ac91;display:block;margin-top:6px}.relationship-row>.text-btn{white-space:nowrap;font-size:10px}.lore-modal .form-error{color:#9b5548;line-height:1.8}.lore-modal .danger{color:#a06c5e}.lore-modal form>label{margin-bottom:17px}.lore-art-intro{display:flex;align-items:center;gap:20px;background:#f2f5eb;border:1px solid #e1e7d8;border-radius:7px;overflow:hidden;margin-bottom:20px}.lore-art-intro>.lore-portrait{width:95px;min-height:110px;height:135px}.lore-art-intro>div:last-child{padding:12px 16px 12px 0}.lore-art-intro strong{font:19px var(--serif);color:#537047}.lore-art-intro p{font-size:11px;line-height:1.9;color:#869979;margin-top:8px}.lore-art-actions{display:flex;gap:14px;align-items:center;margin:20px 0 13px}.lore-art-actions>.btn{font-size:12px}.lore-art-versions{border-top:1px solid #e2e7d8;padding-top:21px;margin-top:23px}.lore-art-versions h3{font:17px var(--serif);color:#647e54;margin-bottom:15px}.lore-art-versions>div{display:flex;gap:12px;overflow:auto}.lore-art-versions figure{flex:none;width:140px;border:1px solid #dce5d0;background:#f5f7ef;border-radius:6px;margin:0;overflow:hidden}.lore-art-versions img{height:155px;width:100%;object-fit:contain;background:#e8eddf}.lore-art-versions figcaption{padding:9px;display:flex;flex-direction:column;gap:7px;align-items:flex-start;font-size:11px;color:#6d825d}.lore-art-versions .text-btn{font-size:10px}.guide-profile{display:grid;grid-template-columns:180px 1fr;gap:25px;padding:10px 0 22px}.guide-profile .lore-portrait{width:100%;border-radius:7px;min-height:260px;max-height:370px}.guide-profile h3{font:28px var(--serif);color:#385333;margin:8px 0 12px}.guide-profile p{font-size:13px;line-height:2;color:#738366;white-space:pre-wrap;margin-top:15px}.guide-profile h4{font-size:12px;color:#5f774f;margin:21px 0 -5px}.guide-profile .guide-aliases{font-size:11px;color:#96a487}.story-guide{max-width:860px;width:calc(100vw - 40px);background:#fbfaf4;color:#314931}.story-guide .guide-content{min-height:250px}.story-guide .lore-tabs{margin-bottom:20px}.guide-world>h3{font:27px var(--serif);color:#3e5a34;margin-bottom:18px}.guide-world>p{font:15px/2.2 var(--serif);color:#6f7e62;white-space:pre-wrap}.guide-world>section{border-top:1px solid #e2e7d8;margin-top:22px;padding-top:20px}.guide-world h4{font:17px var(--serif);color:#648052;margin-bottom:10px}.guide-world section>p{font-size:13px;line-height:2;color:#8b9b7c;white-space:pre-wrap}.guide-character-list{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.guide-person-button{display:flex;flex-direction:column;border:1px solid #e0e5d6;background:#f5f6ed;overflow:hidden;border-radius:7px;text-align:left;padding:0 0 14px}.guide-person-button>.lore-portrait{width:100%;height:185px;min-height:185px}.guide-person-button>strong{font:20px var(--serif);color:#58724a;padding:12px 14px 4px}.guide-person-button>span{font-size:10px;color:#8c9d7b;padding:0 14px}.guide-relations>p{border-bottom:1px solid #e3e8da;padding:15px 5px;font-size:12px;line-height:1.8;color:#6c815b}.guide-relations small{display:block;font-size:11px;color:#8d9c7f}.story-guide::backdrop{background:#17271fd6;backdrop-filter:blur(5px)}.player-header-actions{display:flex;gap:12px;align-items:center}.player-guide-button{font-size:11px;color:#d8d9bd;border:1px solid #6c7e54;background:transparent;border-radius:5px;padding:7px 10px}.player-guide-button:hover{background:#405333}.workspace-tabs{overflow-x:auto;scrollbar-width:none}.workspace-tabs>button{flex:none}
@media(max-width:1200px){.lore-workspace{padding:24px}.lore-character-grid{grid-template-columns:1fr}.lore-character-card>.lore-portrait{width:150px}.world-layout{grid-template-columns:1fr}.world-cover{min-height:0;padding:24px;display:grid;grid-template-columns:65px 1fr;column-gap:20px}.world-cover>.world-seal{grid-row:1/4;align-self:start;justify-self:start}.world-cover h3{font-size:23px;margin:6px 0}.world-cover>p,.world-cover>small{grid-column:2}.world-cover-rule{display:none}.world-cover>small{margin-top:14px}.world-cover:after{display:none}.lore-heading{flex-wrap:wrap;gap:6px}.lore-heading>.btn{margin-top:5px}}
@media(max-width:760px){.lore-workspace{padding:22px 18px 32px}.lore-heading h2{font-size:24px}.lore-heading p{font-size:11px}.lore-tabs{gap:0;margin-bottom:20px}.lore-tabs>button{padding:11px 12px;font-size:11px}.lore-save-note{font-size:8px}.world-fields{padding:19px 16px}.lore-form-grid{grid-template-columns:1fr;gap:0}.world-cover{padding:20px;column-gap:13px}.world-cover h3{font-size:23px}.lore-form-footer{align-items:flex-start}.lore-form-footer>.btn{font-size:11px;padding:8px 11px}.lore-form-footer>span{font-size:9px}.lore-search{max-width:63%;gap:8px}.lore-search>span{display:none}.lore-toolbar>.btn{font-size:10px;padding:8px 10px}.lore-character-card{flex-direction:column}.lore-character-card>.lore-portrait{width:100%;height:250px;min-height:0}.lore-character-card>.lore-portrait img{max-height:250px}.lore-character-body{padding:20px}.lore-card-heading h3{font-size:25px}.lore-biography{font-size:13px}.lore-focus-label{gap:8px;font-size:10px}.lore-focus-label select{width:140px;font-size:11px}.lore-graph{min-width:520px}.lore-graph-caption{min-width:520px;font-size:9px}.relationship-row{padding:16px;gap:10px}.relationship-people{gap:7px}.relationship-row p{font-size:11px}.relationship-row>.text-btn{font-size:9px}.lore-modal .lore-form-grid{gap:0}.lore-modal .lore-form-grid label{margin-bottom:15px}.guide-profile{grid-template-columns:1fr;gap:16px}.guide-profile .lore-portrait{height:240px;min-height:240px;max-width:200px;margin:auto}.guide-profile h3{font-size:27px}.guide-profile p{font-size:13px}.guide-character-list{grid-template-columns:repeat(2,1fr);gap:12px}.guide-person-button>.lore-portrait{height:150px;min-height:150px}.guide-person-button>strong{font-size:18px}.story-guide{width:calc(100vw - 20px);padding:25px 18px}.player-guide-button{font-size:9px;padding:6px 7px;white-space:nowrap}.player-header-actions{gap:6px}.player-title{max-width:145px}.player-brand{display:none}}
