.trpg-shell{max-width:1000px}.trpg-title{margin-bottom:24px}.trpg-title h1{font-size:28px}.trpg-media,.trpg-story,.trpg-work{margin-bottom:20px}.trpg-media h2,.trpg-story h2,.trpg-work h2{font-size:17px;margin:18px 0 12px}.trpg-scene{position:relative;background:var(--reading,#f0f1ee);border-radius:14px;overflow:hidden;min-height:110px}.trpg-scene-image{width:100%;height:min(32vh,320px);object-fit:cover;display:block}.trpg-scene-label{padding:16px;margin:0;font-size:14px}.trpg-scene-upload{margin:0 12px 12px}.trpg-characters,.trpg-inventory{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}.trpg-image-tile{display:flex;flex-direction:column;align-items:center;gap:6px;background:transparent!important;color:var(--text)!important;padding:6px!important;max-width:120px;font-size:12px!important}.trpg-image-tile img,.trpg-placeholder{width:62px;height:62px;object-fit:cover;border-radius:14px;display:grid;place-items:center;background:var(--reading,#f0f1ee);font-size:23px;color:var(--text)}.trpg-image-tile.is-selected img,.trpg-image-tile.is-selected .trpg-placeholder{outline:2px solid #d0b600;outline-offset:2px}.trpg-prose{white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere;font-size:var(--reading-font-size,16px);line-height:var(--reading-line-height,1.95)}.trpg-turn{padding:16px 0;border-bottom:1px solid var(--edge)}.trpg-turn h3{font-size:13px;color:var(--subtext);margin:0 0 12px}.trpg-turn details,.trpg-map{font-size:12px;color:var(--subtext)}.trpg-map{padding:12px 16px}.trpg-map p{line-height:1.7}.trpg-status{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.trpg-member-status{padding:7px 10px;background:var(--reading,#f0f1ee);border-radius:8px;font-size:12px}.trpg-tools{display:flex;gap:8px;flex-wrap:wrap}.trpg-tools button{font-size:12px}.trpg-composer{border:1px solid var(--edge);border-radius:22px;background:var(--surface,#fff);padding:20px;margin-top:18px;box-sizing:border-box}.trpg-drag{display:flex;align-items:center;gap:8px;margin-bottom:14px;touch-action:none}.trpg-drag strong{margin-right:auto;font-size:13px}.trpg-drag button{font-size:12px;padding:7px 10px}.trpg-tabs{display:flex;gap:6px;margin-bottom:14px}.trpg-tabs button{font-size:13px;padding:8px 12px}.trpg-tabs [aria-pressed=true]{background:var(--yellow,#ffeb00)!important;color:#222!important}.trpg-composer label{display:block;font-size:13px;margin:12px 0 7px}.trpg-composer textarea{margin:0;min-height:110px;padding-bottom:42px;resize:vertical;font-size:16px;line-height:1.75}.trpg-composer .draft-counter{font-variant-numeric:tabular-nums;min-width:84px;text-align:center}.trpg-compose-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.trpg-compose-actions button{font-size:13px}.trpg-composer.floating{position:fixed;z-index:80;right:24px;bottom:calc(20px + var(--trpg-keyboard,0px));width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;resize:both;box-shadow:0 12px 60px #0003;margin:0}.trpg-composer.floating .trpg-drag{cursor:move}.trpg-precise{font-size:12px;margin-top:12px}.trpg-precise select,.trpg-create select{display:block;width:100%;padding:10px;background:var(--surface);color:var(--text);border:1px solid var(--edge);border-radius:8px;font:inherit}.trpg-follow{display:flex!important;align-items:center;gap:8px}.trpg-follow input{width:auto}.trpg-vote{margin-top:14px}.trpg-vote button{margin:0 6px 8px 0}.trpg-chat{margin-top:18px;font-size:13px}.trpg-create{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.trpg-create label{font-size:13px}.trpg-image-dialog{padding:16px;border:0;border-radius:16px;max-width:95vw;background:var(--surface);color:var(--text)}.trpg-image-dialog img{display:block;max-width:85vw;max-height:80vh;object-fit:contain}.trpg-image-dialog::backdrop{background:#000a}.trpg-composer[hidden]{display:none!important}.trpg-create input{font-size:16px}.trpg-page .topbar{flex-wrap:wrap}.trpg-page .brand{margin-right:auto}
@media(max-width:760px){.trpg-shell{padding:20px 12px 80px}.trpg-title h1{font-size:23px}.trpg-media,.trpg-story,.trpg-work{padding:18px 15px}.trpg-image-tile{max-width:90px}.trpg-image-tile img,.trpg-placeholder{width:50px;height:50px}.trpg-composer{padding:14px}.trpg-composer.floating{left:10px!important;right:10px!important;top:auto!important;bottom:calc(8px + var(--trpg-keyboard,0px) + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:60dvh;resize:none;border-radius:24px}.trpg-composer textarea{min-height:100px}.trpg-create{grid-template-columns:1fr 1fr}.trpg-page .topbar{gap:5px}.trpg-page .brand{font-size:18px}.trpg-page .topbar button{font-size:11px}.trpg-tools button{padding:9px}.trpg-precise[open]{max-height:160px;overflow:auto}}

.relay-composer-open{display:block;margin:18px 0 0 auto}.relay-floating-composer .compose-head{margin-top:0}.relay-floating-composer.floating .setup-box{max-height:180px;overflow:auto}.relay-floating-composer .compose-actions{flex-wrap:wrap}.relay-floating-composer .draft-counter{width:84px;text-align:center;font-variant-numeric:tabular-nums}.relay-floating-composer.floating .compose-head h2{font-size:15px}.relay-floating-composer.floating .ai-preview{max-height:220px;overflow:auto}
