.game-workspace{border:1px solid #343a44;border-radius:16px;overflow:hidden;background:#171c24;min-width:0}.game-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#1d222b}.game-workspace-head a{font-size:10px;color:#9aabbc}.game-workspace-head h2{font-size:23px;margin:7px 0}.game-workspace-head h2 span{font-size:11px;font-weight:400;color:#b9a789;margin-left:10px;letter-spacing:2px}.game-workspace-head p{font-size:10px;color:#8795a7}.game-head-actions,.game-tools,.game-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.game-head-actions button,.game-tools button,.game-quick-actions button{font-size:11px;padding:7px 11px}.game-tools{padding:12px 22px;border-block:1px solid #343b47;background:#171c24}.game-workspace-body{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,1fr);height:calc(100dvh - 310px);min-height:560px}.game-original{min-width:0;display:flex;flex-direction:column;border-right:1px solid #3d424b;background:#eadfc6}.game-frame-label{display:flex;justify-content:space-between;gap:12px;padding:8px 13px;font-size:9px;color:#655b4b;background:#ded0af;border-bottom:1px solid #c4b897}.game-original iframe{display:block;width:100%;flex:1;min-height:0;border:0;color-scheme:light}.game-original.is-hidden{display:none}.game-workspace-body:has(.is-hidden){grid-template-columns:1fr}.game-dialogue{display:flex;flex-direction:column;min-width:0;min-height:0;background:#161b23}.game-dialogue-title{display:flex;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #303640;gap:10px}.game-dialogue-title h3{font-size:13px}.game-dialogue-title span{font-size:10px;color:#9fa987}.game-dialogue .story-messages{padding:20px 18px;flex:1}.game-dialogue .story-bubble{font-size:12px}.game-dialogue .story-compose{padding:13px}.game-dialogue .story-model-metrics{display:none}.game-dialogue .story-compose-note{line-height:1.8}.game-quick-actions{padding:9px 13px;border-top:1px solid #303640}.game-source-note{padding:10px 20px;font-size:10px;color:#b0a58d;line-height:1.7;border-top:1px solid #343a44}.game-context-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9;max-height:65dvh;overflow:auto;margin-top:20px;padding:18px;background:#141820;border:1px solid #343b47;border-radius:9px}.game-opening-choices{display:grid;gap:12px;margin-top:20px}.modal:has(#story-studio),.modal:has(#story-lore){max-width:850px}.modal #story-studio details{padding:18px 0;border-bottom:1px solid #354051}.modal #story-studio summary{font-size:14px;cursor:pointer;color:#cdd7bd}.modal #story-studio textarea{font-size:12px;line-height:1.7}.story-checks{flex-wrap:wrap}.story-lore-edit[hidden]{display:none}.story-lore-edit select,.modal .field select{width:100%;padding:10px;background:#191e28;border:1px solid #3a4352;border-radius:7px;color:#d6dde6}.story-message-actions{opacity:1}.game-dialogue .story-message{max-width:100%}.game-ui-opening{display:block;width:100%;height:520px;border:0;border-radius:12px;margin:14px 0}.game-workspace .story-compose textarea{min-height:65px}
@media(min-width:1500px){.game-workspace-body{grid-template-columns:minmax(0,1.35fr) minmax(380px,1fr)}}
@media(min-width:1051px){.game-workspace-head{padding:14px 22px}.game-workspace-head h2{line-height:1.3;margin:6px 0}.game-workspace-head a,.game-workspace-head p{line-height:1.5}.game-workspace-body{height:calc(100dvh - 320px);min-height:400px}}
.game-state-panel{padding:12px 18px;background:#20281f;border-block:1px solid #3e4c35;font-size:11px;line-height:1.8;max-height:300px;overflow:auto}.game-state-panel summary{cursor:pointer;color:#d5e3bc}.game-state-panel p{margin:7px 0;color:#aab5a0}.game-stats,.game-items,.game-native-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.game-stats span,.game-items span{padding:4px 8px;border:1px solid #43503b;border-radius:5px}.game-native-actions button{font-size:10px;padding:6px 9px}
.game-dialogue .story-date{display:none}.game-dialogue .story-messages{padding:12px 16px}.game-dialogue .story-message{margin-bottom:8px}
.story-foldout{margin:12px 0;border:1px solid #43503d;border-radius:8px;background:#1b231d;white-space:normal}.story-foldout>summary{padding:9px 12px;color:#c8d9b6;cursor:pointer;font-weight:600;font-size:12px}.story-foldout>div{padding:10px 13px 15px;white-space:pre-wrap;border-top:1px solid #354230;font-size:12px;line-height:1.9;overflow-wrap:anywhere}.story-foldout[open]>summary{background:#253023;border-radius:8px 8px 0 0}
@media(max-width:1050px){.game-workspace-body{grid-template-columns:1fr;height:auto;min-height:0}.game-original{height:600px;border-right:0;border-bottom:1px solid #3d424b}.game-dialogue{height:680px}.game-workspace-head{padding:15px}.game-tools{padding:12px 15px}.game-head-actions button{font-size:10px}.game-source-note{padding:10px 15px}}
@media(max-width:620px){.game-workspace-head{align-items:flex-start;flex-direction:column;gap:10px}.game-workspace-head h2{font-size:20px}.game-tools{gap:6px}.game-tools button{font-size:10px;padding:7px 8px}.game-original{height:620px}.game-dialogue{height:650px}.game-frame-label{font-size:8px}.game-workspace{border-radius:10px}.game-source-note{font-size:9px}}
