.phone-layout body>header{display:flex;min-height:48px;padding:6px 12px;justify-content:space-between}.phone-layout body>header .brand span,.phone-layout .window-controls{display:none}.phone-layout #phone-menu{position:relative}.phone-layout #phone-menu summary{font-size:26px;list-style:none;cursor:pointer}.phone-layout .phone-menu-content{position:absolute;left:0;top:40px;width:min(310px,85vw);background:white;color:#172a48;z-index:1200;padding:16px;box-shadow:0 5px 22px #0003;border-radius:12px}.phone-layout #phone-menu:not([open]) .phone-menu-content{display:none}.phone-layout .phone-menu-content .header-note,.phone-layout .phone-menu-content .principles,.phone-layout .phone-menu-content .side-nav{display:grid!important;gap:10px}.phone-layout #friends-arch{width:100%;max-width:340px;margin:8px auto 14px}.phone-layout #phone-selector{position:fixed;right:0;top:65px;bottom:0;width:min(340px,90vw);overflow:auto;background:#f4f8ff;z-index:1000;transform:translateX(105%);transition:transform .2s;padding:12px;box-shadow:-4px 0 20px #0003;box-sizing:border-box}.phone-layout #phone-selector.is-open{transform:translateX(0)}.phone-layout #phone-selector #media-rail{display:block!important;width:100%;position:static}.phone-layout .phone-drawer-heading{display:flex;justify-content:space-between;align-items:center}.phone-layout #phone-selector-tab{position:fixed;right:0;top:45%;border-radius:16px 0 0 16px;z-index:999;padding:12px 10px;font-size:24px;background:#2459bd;color:white}.phone-layout #now-playing,.phone-layout #stream-window.phone-floating{position:fixed!important;top:70px;right:10px;left:auto;bottom:auto;width:min(270px,76vw)!important;max-height:55dvh;overflow:auto;z-index:1100;background:white;box-shadow:0 6px 24px #0005;border-radius:12px}.phone-layout #now-playing[hidden]{display:none!important}.phone-layout #now-playing video,.phone-layout #now-playing audio,.phone-layout #stream-window.phone-floating video,.phone-layout #stream-window.phone-floating iframe{width:100%;max-height:180px}.phone-layout #player-title{cursor:move;min-height:30px;padding:6px}.phone-layout .phone-player-controls{display:flex;justify-content:space-around;gap:8px;padding:8px}.phone-layout #now-playing #close-player,.phone-layout #now-playing .dock-preview-tools{display:none}.phone-layout #stream-window.phone-floating #stream-surface{height:150px!important;min-height:0!important}.phone-layout #stream-window.phone-floating .stream-controls{flex-wrap:wrap}.phone-layout #stream-window.phone-floating .stream-drag{cursor:move}.phone-layout .workspace{display:block}.phone-layout .workspace>aside:first-child{display:none}.phone-layout #widget-picker{position:fixed;left:auto;right:0;top:65px;bottom:0;margin:0;width:min(340px,90vw);max-height:calc(100dvh - 65px);border-radius:16px 0 0 16px}.phone-layout #content{min-width:0}

.phone-layout body.signed-in>header{min-height:36px;height:42px;padding:3px 10px;box-sizing:border-box}.phone-layout body>header .brand img{width:30px;height:30px}.phone-layout #phone-menu summary{font-size:23px}.phone-layout .post>.post-top.frame-header{padding:7px 10px;gap:8px;align-items:flex-start}.phone-layout .post .author-row{display:flex!important;align-items:center;gap:7px;min-width:0;flex:1}.phone-layout .post .author-row>.avatar,.phone-layout .post .author-row>img{display:block!important;width:32px!important;height:32px!important;flex:0 0 32px;object-fit:cover;border-radius:50%;margin:0}.phone-layout .post .author-row>div{min-width:0}.phone-layout .post .author-row .person-link{font-size:14px;padding:0}.phone-layout .post .audience-badge{font-size:10px}.phone-layout .post .phone-post-time,.phone-layout .phone-post-meta time{display:block;font-size:10px;line-height:1.3;margin-top:3px;text-align:right;white-space:normal}.phone-layout .post .post-top>span{flex-shrink:0;max-width:42%}.phone-layout .post .post-top button.delete{font-size:11px;padding:3px}

.phone-layout .post>.post-top.frame-header{padding:7px 10px!important;min-height:0!important;gap:7px;display:flex;align-items:flex-start!important}
.phone-layout .post .author-row{align-items:flex-start!important;gap:6px!important}
.phone-layout .post .author-row>.avatar,.phone-layout .post .author-row>img{align-self:flex-start!important;margin:0!important;width:28px!important;height:28px!important;flex-basis:28px!important}
.phone-layout .post .author-row>div{line-height:1.15!important;margin:0!important;padding:0!important}
.phone-layout .post .author-row .person-link{display:block!important;font-size:13px!important;line-height:1.15!important;margin:0!important;padding:0!important;min-height:0!important;text-align:left}
.phone-layout .post .author-row .person-link small{display:block;font-size:10px!important;line-height:1.15!important;margin:2px 0 0!important}
.phone-layout .post .audience-badge{display:block!important;font-size:9px!important;line-height:1.1!important;padding:0!important;margin:3px 0 0!important;min-height:0!important}
.phone-layout .post .phone-post-time{font-size:9px!important;line-height:1.2!important;margin:2px 0 0!important}
.phone-layout .post>.post-top>span:not(.feed-item-controls){max-width:46%;text-align:right;line-height:1.15}
.phone-layout .post .post-top button.delete{font-size:10px!important;line-height:1.2!important;min-height:0!important;padding:2px!important;margin:0!important}
.phone-layout .post .feed-item-controls{gap:2px!important}.phone-layout .post .feed-item-controls button{padding:2px!important;font-size:14px!important;min-width:20px!important}

/* Separate phone post actions while retaining a compact author row. */
.phone-layout .post>.post-top>span:has(>[data-delete]){display:grid!important;grid-template-columns:auto auto;gap:4px 10px!important;max-width:52%;align-items:start;justify-items:end}
.phone-layout .post .post-top button.delete{font-size:13px!important;line-height:1.2!important;min-height:44px!important;min-width:44px!important;padding:10px 6px!important;margin:0!important;touch-action:manipulation}
.phone-layout .post>.post-top>span:has(>[data-delete])>.phone-post-time{grid-column:1 / -1;margin-top:0!important}

/* Phone composer: one compact row for lettering, backdrop and background. */
.phone-layout #compose{padding:12px!important;margin-bottom:16px}
.phone-layout #compose>.frame-header{margin:-12px -12px 10px!important;padding:8px 12px!important;font-size:14px;line-height:1.3}
.phone-layout #compose #post-text{min-height:72px!important;height:72px;padding:9px!important;font-size:16px;margin:0 0 8px;box-sizing:border-box}
.phone-layout #compose .photo-attachment{gap:6px;margin:4px 0 8px;padding:0;flex-wrap:wrap}
.phone-layout #compose .photo-attachment input[name=photoAlt]{min-width:0;flex:1;padding:8px;font-size:16px}
.phone-layout #compose .composer-options{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:8px!important;align-items:start;margin:6px 0!important}
.phone-layout #compose .post-lettering,.phone-layout #compose .post-background-tools{display:contents!important}
.phone-layout #compose .composer-options label{display:flex;flex-direction:column;gap:4px!important;margin:0!important;font-size:11px;line-height:1.25;min-width:0}
.phone-layout #compose .composer-options input[type=color]{width:100%!important;max-width:70px;height:44px!important;padding:4px!important;margin:0!important;box-sizing:border-box}
.phone-layout #compose .composer-options select{width:100%;min-width:0;min-height:44px;font-size:14px;padding:6px!important;margin:0!important;box-sizing:border-box}
.phone-layout #compose .post-permissions{grid-column:1 / -1;display:flex!important;align-items:center;gap:12px!important;padding:4px 0!important;margin:0!important}
.phone-layout #compose .post-permissions>label:first-child{flex:1}
.phone-layout #compose .post-permissions>label:has(input[type=checkbox]){flex-direction:row;align-items:center;font-size:12px;min-height:44px}
.phone-layout #compose>.frame-footer{margin:8px -12px -12px!important;padding:8px 12px!important;display:flex;align-items:center;justify-content:space-between;gap:8px}
.phone-layout #compose>.frame-footer>span{font-size:10px;max-width:42%}
.phone-layout #compose>.frame-footer>button{margin:0!important;padding:10px 12px!important;font-size:13px;min-height:44px}

.phone-layout .phone-search-toggle{font-size:12px;min-height:36px;padding:6px;border:0;background:transparent;color:inherit}.phone-layout .phone-search-hidden>.media-search,.phone-layout .phone-search-hidden>.music-import-tools,.phone-layout .phone-search-hidden>.media-results,.phone-layout .phone-search-hidden>p.muted{display:none!important}

.phone-layout body[data-page-artwork]{background-size:100% 100%,100% auto!important;background-repeat:no-repeat,repeat-y!important;background-position:center top!important;background-attachment:scroll!important}.phone-layout body[data-fantasy-art]{background-size:100% 100%,300% auto!important;background-repeat:no-repeat,repeat-y!important}

.phone-layout body[data-fantasy-art=druid]{background-position:center top,left top!important}.phone-layout body[data-fantasy-art=cleric]{background-position:center top,center top!important}.phone-layout body[data-fantasy-art=wizard]{background-position:center top,right top!important}
.phone-layout #stream-options>label:not(:has(#stream-speed)),.phone-layout #stream-options>button{display:none!important}#stream-guide-search-results{display:grid;gap:7px;margin:8px 0}#stream-guide-search{width:100%;box-sizing:border-box;padding:9px;font-size:16px}
