/* GreyMistLife CRPG-UI10.3 — chat/story is the permanent home; CRPG systems are tool overlays. */
body.gmcrpg-ui01.gmcrpg10-chat-home{overflow:hidden;background:#050809}
/* Header stays compact; story becomes the actual play surface. */
body.gmcrpg-ui01.gmcrpg10-chat-home .gmcrpg-shell{min-height:0!important;padding-bottom:0!important}
body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-story-layout{display:block!important;max-width:none!important;width:100%;height:calc(100dvh - 116px);min-height:0!important;margin:8px 0 0!important;padding:0 12px 12px!important;box-sizing:border-box;overflow:hidden}
body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-story{display:flex!important;flex-direction:column;max-width:1220px!important;width:100%;height:100%;min-height:0!important;margin:0 auto!important;border:1px solid rgba(188,147,86,.42)!important;background:linear-gradient(180deg,rgba(12,17,17,.98),rgba(6,9,10,.995))!important;box-shadow:0 18px 55px #000a,inset 0 0 0 1px rgba(225,182,112,.035)}
.gmcrpg10-story-head{height:60px;flex:0 0 60px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px;border-bottom:1px solid rgba(184,145,83,.28);background:linear-gradient(180deg,#111817,#0a0f10);box-sizing:border-box}
.gmcrpg10-story-place{min-width:0}.gmcrpg10-story-place small{display:block;font-size:8px;letter-spacing:.24em;color:#846e4d}.gmcrpg10-story-place b{display:inline-block;margin-top:3px;color:#dec79e;font:500 17px/1.2 Georgia,'Noto Serif SC','Songti SC',serif;letter-spacing:.06em}.gmcrpg10-story-place span{margin-left:10px;color:#707971;font-size:9px}
.gmcrpg10-story-tools{display:flex;gap:5px;align-items:center}.gmcrpg10-story-tools button{min-width:78px!important;height:38px!important;min-height:38px!important;padding:0 9px!important;border-radius:0!important;border:1px solid rgba(167,133,80,.25)!important;background:#0b1111!important;color:#a89d8d!important;display:flex!important;align-items:center;justify-content:center;gap:6px;font-size:10px!important}.gmcrpg10-story-tools button:hover{border-color:#9a7543!important;color:#e1c698!important;background:#151812!important}.gmcrpg10-story-tools kbd{font:8px/1 monospace;color:#665f54;border-left:1px solid #34362f;padding-left:5px}
/* Chat history */
body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode #screen{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:22px 26px 28px!important;background:radial-gradient(circle at 50% 0%,rgba(120,91,47,.055),transparent 42%),#080d0e!important;scroll-behavior:smooth}
body.gmcrpg-ui01.gmcrpg10-chat-home .ui-story-heading{position:sticky;top:-22px;z-index:3;margin:-22px -26px 18px!important;padding:10px 18px!important;background:rgba(8,13,14,.92)!important;border-bottom:1px solid rgba(167,132,79,.16)!important;backdrop-filter:blur(8px);color:#8d8272!important}
body.gmcrpg-ui01.gmcrpg10-chat-home .life-feed{gap:10px;margin:0 auto 18px;max-width:980px}
body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry{border-radius:0!important;padding:11px 14px!important;background:#0d1314!important;border:1px solid rgba(255,255,255,.055)!important;color:#c8c0b3!important;line-height:1.8!important;font-size:13px;box-shadow:none!important}
body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry.ai{border-left:2px solid #a78352!important;background:linear-gradient(90deg,rgba(159,121,66,.07),#0c1213 18%)!important;max-width:92%}
body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry.player{align-self:flex-end;max-width:76%;background:#16150f!important;border-color:rgba(182,142,82,.25)!important;color:#d4c6ae!important}
body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry.system{max-width:88%;border-left:2px solid #596b68!important;background:#0b1112!important;color:#a9aaa3!important}
body.gmcrpg-ui01.gmcrpg10-chat-home .feed-meta{font-size:9px!important;color:#696d67!important;letter-spacing:.03em;margin-bottom:5px!important}
body.gmcrpg-ui01.gmcrpg10-chat-home .scene-anchor,body.gmcrpg-ui01.gmcrpg10-chat-home .storylet-leads,body.gmcrpg-ui01.gmcrpg10-chat-home .ui-available,body.gmcrpg-ui01.gmcrpg10-chat-home .roll-card,body.gmcrpg-ui01.gmcrpg10-chat-home .action-settlement{max-width:980px;margin-left:auto!important;margin-right:auto!important}
/* Composer is the primary control, not a secondary strip. */
body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode #actionArea{flex:0 0 auto!important;position:relative!important;bottom:auto!important;margin:0!important;padding:8px 12px 10px!important;border-top:1px solid rgba(188,148,88,.30)!important;background:linear-gradient(180deg,#0c1212,#070b0c)!important;box-shadow:0 -12px 32px rgba(0,0,0,.32)!important;z-index:8}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row{display:grid!important;grid-template-columns:minmax(0,1fr) 92px;gap:7px;margin:0!important;align-items:stretch}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row textarea{width:100%!important;min-height:58px!important;max-height:120px!important;resize:vertical!important;border-radius:0!important;border:1px solid rgba(178,141,83,.34)!important;background:#070c0d!important;color:#ded4c4!important;padding:11px 12px!important;font:13px/1.55 Georgia,'Noto Serif SC','Songti SC',serif!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)!important}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row textarea:focus{border-color:#a47c45!important;outline:0!important;box-shadow:0 0 0 1px rgba(201,157,91,.22)!important}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row button{min-height:58px!important;border-radius:0!important;background:linear-gradient(180deg,#3b2d1d,#171713)!important;border:1px solid rgba(219,173,100,.55)!important;color:#ead0a4!important;font:12px Georgia,'Noto Serif SC','Songti SC',serif!important;letter-spacing:.12em}
/* Common actions are secondary and collapsed by default. */
.gmcrpg10-quick-toggle{width:100%;min-height:32px!important;margin:0 0 7px!important;padding:5px 9px!important;border-radius:0!important;border:1px solid rgba(151,126,87,.18)!important;background:#0a1010!important;color:#8c877e!important;display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;text-align:left;gap:8px}.gmcrpg10-quick-toggle span{color:#b49a71;font-size:10px}.gmcrpg10-quick-toggle small{font-size:8px;color:#5f6762}.gmcrpg10-quick-toggle i{font-style:normal;color:#9c7e50;font-size:16px}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-has-quick>.life-tools-head,body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-has-quick>.choices{display:none!important}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-quick-open>.life-tools-head{display:flex!important;margin:6px 2px!important}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-quick-open>.choices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:8px}
body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-quick-open>.choices .choice{min-height:44px!important;padding:7px 9px!important;border-radius:0!important;font-size:10px!important;background:#0b1111!important}
/* Map is now a modal tool overlay. */
.gmcrpg10-map-overlay{display:none;position:fixed;inset:0;z-index:3300;background:rgba(1,4,5,.80);backdrop-filter:blur(8px);padding:30px;box-sizing:border-box;align-items:center;justify-content:center}.gmcrpg10-map-overlay.open{display:flex}
.gmcrpg10-map-window{width:min(1480px,96vw);height:min(880px,91dvh);display:grid;grid-template-rows:58px minmax(0,1fr);border:1px solid rgba(195,153,91,.58);background:#070b0c;box-shadow:0 28px 90px #000e,inset 0 0 0 1px rgba(232,188,118,.035)}
.gmcrpg10-map-window>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 13px;border-bottom:1px solid rgba(180,142,84,.28);background:linear-gradient(180deg,#111817,#0a0f10)}.gmcrpg10-map-window>header small{display:block;font-size:8px;letter-spacing:.24em;color:#806b4c}.gmcrpg10-map-window>header b{display:inline-block;margin-top:2px;color:#dec59b;font:500 16px Georgia,'Noto Serif SC','Songti SC',serif;letter-spacing:.08em}.gmcrpg10-map-window>header span{margin-left:10px;color:#68706a;font-size:9px}.gmcrpg10-map-tools{display:flex;gap:6px}.gmcrpg10-map-tools button{min-height:34px!important;padding:6px 12px!important;border-radius:0!important;border:1px solid rgba(170,134,81,.28)!important;background:#0b1111!important;color:#ab9e8a!important;font-size:10px!important}.gmcrpg10-map-tools button:last-child{border-color:rgba(212,166,98,.50)!important;color:#dfc495!important}
.gmcrpg10-map-stage{min-height:0;position:relative;overflow:hidden}.gmcrpg10-map-stage>.gmcrpg-hub{height:100%!important}.gmcrpg10-map-stage .gmcrpg-mapframe{height:100%!important;min-height:0!important}.gmcrpg10-map-stage .gmcrpg-mapart{filter:saturate(.76) brightness(.71) contrast(1.08)}
/* Desktop shell no longer shows the old map grid/dock in ordinary play. */
body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-grid,body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-dock{display:none!important}
@media(max-width:1180px){body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-story-layout{height:calc(100dvh - 112px)}body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-story{max-width:1080px!important}.gmcrpg10-story-tools button{min-width:68px!important}.gmcrpg10-story-place span{display:none}}
@media(max-width:900px){body.gmcrpg-ui01.gmcrpg10-chat-home{overflow:hidden}body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-shell{padding-bottom:0!important}body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode .gmcrpg-story-layout{height:calc(100dvh - 166px - var(--crpg10-safe-b));margin:5px 0 0!important;padding:0 5px 5px!important}.gmcrpg10-story-head{height:48px;flex-basis:48px;padding:0 9px}.gmcrpg10-story-place b{font-size:14px}.gmcrpg10-story-place small{font-size:7px}.gmcrpg10-story-tools{gap:3px}.gmcrpg10-story-tools button{min-width:40px!important;width:40px;height:34px!important;padding:0!important}.gmcrpg10-story-tools button span,.gmcrpg10-story-tools button kbd{display:none}body.gmcrpg-ui01.gmcrpg10-chat-home.gmcrpg-story-mode #screen{padding:14px 12px 20px!important}body.gmcrpg-ui01.gmcrpg10-chat-home .ui-story-heading{top:-14px;margin:-14px -12px 12px!important;padding:8px 10px!important}body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry{font-size:12px!important;padding:9px 10px!important}body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry.player{max-width:88%}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea{padding:6px 7px 8px!important}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row{grid-template-columns:minmax(0,1fr) 70px}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row textarea{min-height:52px!important;font-size:12px!important;padding:8px 9px!important}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea .free-row button{min-height:52px!important;font-size:11px!important}.gmcrpg10-quick-toggle small{display:none}body.gmcrpg-ui01.gmcrpg10-chat-home #actionArea.gmcrpg10-quick-open>.choices{grid-template-columns:repeat(2,minmax(0,1fr))}.gmcrpg10-map-overlay{padding:0}.gmcrpg10-map-window{width:100vw;height:100dvh;border:0;grid-template-rows:54px minmax(0,1fr)}.gmcrpg10-map-window>header{padding-left:max(10px,var(--crpg10-safe-l));padding-right:max(10px,var(--crpg10-safe-r))}.gmcrpg10-map-window>header span{display:none}.gmcrpg10-map-tools button:first-child{display:none}.gmcrpg10-map-stage .gmcrpg-pin span{display:none}.gmcrpg10-map-stage .gmcrpg-pin.current span,.gmcrpg10-map-stage .gmcrpg-pin.selected span{display:block}}
@media(max-width:520px){.gmcrpg10-story-head{height:44px;flex-basis:44px}.gmcrpg10-story-place small{display:none}.gmcrpg10-story-place b{font-size:13px}.gmcrpg10-story-tools button{width:34px;min-width:34px!important;height:31px!important;font-size:10px!important}body.gmcrpg-ui01.gmcrpg10-chat-home .feed-entry{line-height:1.65!important}.gmcrpg10-map-window>header b{font-size:14px}.gmcrpg10-map-tools button{padding:5px 8px!important}}
@media(prefers-reduced-motion:reduce){.gmcrpg10-map-overlay,*{scroll-behavior:auto!important}}
