/* All overrides require a phone identity AND coarse touch input. */
.manor-phone body{position:fixed;top:var(--phone-top,0);left:0;width:var(--phone-width,100%);height:var(--phone-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.manor-phone .masthead{flex:0 0 48px;width:100%;min-height:48px;max-height:48px;padding:2px 6px;gap:6px;flex-wrap:nowrap}
.manor-phone .masthead>div{order:0;width:auto;min-width:0;flex:1}.manor-phone .masthead h1{font-size:16px;line-height:1.05;margin:0}.manor-phone .masthead .eyebrow{display:none}.manor-phone .back{font-size:11px;width:58px;min-height:44px;display:flex;align-items:center}.manor-phone #rulesBtn{font-size:12px;padding:4px 7px;width:86px;line-height:1.2}
.manor-phone button,.manor-phone button.small,.manor-phone input,.manor-phone select{min-height:44px}.manor-phone button:disabled{opacity:1;color:#aebcaf;background:#23302b;border-color:#59665b}.manor-phone .fixed:disabled{color:#fff4dc;background:#596247}
.manor-phone main{width:100%;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:8px}.manor-phone .hero h2{font-size:27px}.manor-phone .hero>img{max-height:160px}.manor-phone .setup{margin:8px auto}.manor-phone .seatrow{min-width:0;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr)}.manor-phone .seatrow input{width:100%}
.manor-phone.manor-playing main{overflow:hidden;display:grid;grid-template-rows:auto minmax(80px,1fr) auto 44px;gap:5px;padding:4px}
.manor-phone .statusbar{grid-row:1;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}.manor-phone .statusbar .eyebrow{display:none}.manor-phone .statusbar h2{font-size:17px;line-height:1.2}.manor-phone .statusbar p{font:13px/1.3 system-ui}.manor-phone .statusbar>.row{gap:3px;flex-wrap:nowrap}.manor-phone .statusbar button{font:12px system-ui;padding:4px}.manor-phone .dice{gap:2px}.manor-phone .die{width:26px;height:32px;font-size:23px}
.manor-phone.manor-playing main>.players,.manor-phone .caption,.manor-phone .side>.panel:not(.actions-panel){display:none}
.manor-phone .table-layout,.manor-phone .side{display:contents}.manor-phone .table-layout>section{grid-row:2;min-width:0;min-height:0;display:flex;flex-direction:column;gap:4px}
.manor-phone .board-frame{flex:1;min-height:0;position:relative;padding:0;overflow:hidden;border-radius:7px;touch-action:none;overscroll-behavior:contain;background:#3b2b1c}.manor-phone .board{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;filter:none!important;touch-action:none;user-select:none}.manor-phone .board .roomname{font-size:24px}.manor-phone .board .pawn{transition:none}.manor-phone .active-ring{fill:#fff3;stroke:#fff5b5;stroke-width:4;stroke-dasharray:7 3;pointer-events:none}.manor-phone .board .legal{stroke-dasharray:8 3;stroke-width:5}.manor-phone .board .roomlegal{stroke-dasharray:10 4}
.manor-phone .boardtools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;margin:0;flex:none}.manor-phone .boardtools button{font:12px/1.15 system-ui;padding:4px}.manor-phone #phoneFollow{grid-column:1/3}.manor-phone #phoneCameraState{font:11px/1.2 system-ui;align-self:center;text-align:center}
.manor-phone .actions-panel{grid-row:3;padding:6px!important;min-height:0;max-height:200px;overflow:auto;overscroll-behavior:contain;border-radius:6px}.manor-phone .actions-panel h3{font-size:14px;margin:0 0 3px}.manor-phone #actions{display:grid;grid-template-columns:1fr 1fr;gap:4px}.manor-phone #actions button{font:13px/1.15 system-ui;padding:5px;min-width:0}.manor-phone #actions label{grid-column:1/-1;font:12px system-ui}.manor-phone #actions select{font-size:14px}.manor-phone #actions p{margin:2px;grid-column:1/-1;font:13px/1.3 system-ui}.manor-phone .actions-panel .notice{font:12px/1.3 system-ui;padding:5px;margin:4px 0}.manor-phone .phone-nav{grid-row:4;display:flex;gap:4px;min-width:0}.manor-phone .phone-nav button{flex:1;padding:4px;font:13px system-ui}
.manor-phone dialog{position:fixed;top:var(--phone-top,0);margin:auto;max-height:calc(var(--phone-height,100dvh) - 12px);width:calc(100% - 12px);max-width:900px;padding:10px;overflow:hidden}.manor-phone dialog[open]{display:flex;flex-direction:column}.manor-phone .dialoghead{flex:none;align-items:center}.manor-phone .dialoghead h2{font-size:21px;line-height:1.15;margin:0}.manor-phone .dialoghead button{font-size:13px;padding:5px}.manor-phone .dialogbody{min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:8px;padding:2px}.manor-phone .dialogbody>p:has(>button),.manor-phone .dialogbody>button:last-child{position:sticky;bottom:0;background:#284438;padding:7px;z-index:2}.manor-phone .formgrid{grid-template-columns:1fr}.manor-phone .formgrid label{font-size:14px}.manor-phone .formgrid select{font-size:16px}.manor-phone .evidence{gap:6px}.manor-phone .card{width:calc(50% - 3px);padding:8px;min-height:100px}.manor-phone .card strong{font-size:17px}.manor-phone .card small{font-size:11px}.manor-phone .notebookwrap{max-height:52vh;overscroll-behavior:contain}.manor-phone td button{min-width:44px;min-height:44px}.manor-phone th{position:sticky;top:0;background:#172b27;z-index:2}.manor-phone th:first-child,.manor-phone td:first-child{position:sticky;left:0;background:#172b27;min-width:132px;max-width:150px;font-size:13px;z-index:1}.manor-phone th:first-child{z-index:3}.manor-phone td,.manor-phone th{padding:3px}.manor-phone #privacy{inset:0;padding:12px;overflow:auto}.manor-phone #privacy h2{font-size:28px;margin:6px}.manor-phone #privacy .seal{font-size:44px}.manor-phone #privacy p{font-size:16px}.manor-phone #toast{bottom:8px;font:13px/1.3 system-ui;max-height:25%;overflow:auto}
@media(orientation:landscape){.manor-phone.manor-playing main{grid-template-columns:minmax(0,1fr) minmax(270px,34%);grid-template-rows:auto minmax(70px,1fr) 44px}.manor-phone .statusbar{grid-column:1/-1}.manor-phone .table-layout>section{grid-column:1;grid-row:2/4}.manor-phone .actions-panel{grid-column:2;grid-row:2;max-height:none}.manor-phone .phone-nav{grid-column:2;grid-row:3}.manor-phone .boardtools{grid-template-columns:repeat(4,1fr);gap:3px}.manor-phone #phoneFollow{grid-column:auto}.manor-phone #phoneCameraState{grid-column:1/-1}.manor-phone .formgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.manor-phone .evidence .card{width:calc(33.33% - 4px);min-height:90px}.manor-phone .evidenceart{height:40px;margin-bottom:4px}.manor-phone #privacy .seal{display:none}.manor-phone #privacy h2{font-size:25px}.manor-phone #privacy p{margin:5px}}
