@media screen and (max-width:700px){

body{background:#141b26!important}.masthead{padding:10px!important}.content{padding:10px!important}.character-sheet{padding:12px!important}.sheet-identity{padding:10px 4px 16px!important}.sheet-calling h1{font-size:23px!important}.sheet-identity .eyebrow{font-size:13px}.preview-banner{font:11px Overpass;color:#d8c187;padding:8px 12px;background:#263343}.mobile-play-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;position:sticky;top:0;z-index:12;background:#19222e;padding:8px 0 14px}.mobile-play-tabs button{font:11px Overpass;padding:8px 2px;min-height:44px;border:1px solid #77879b55;background:#202936;color:#d7dce5;border-radius:5px}.mobile-play-tabs button[aria-selected=true],.mobile-detail-tabs button.active,.collection-tabs button.active{color:#efd28c;border-color:#b39b62;background:#b39b6219}
.sheet-tracks{display:block!important;margin-top:12px!important}.sheet-tracks>.sheet-section[hidden]{display:none!important}.sheet-tracks>.sheet-section{margin-top:8px;min-height:0!important;height:auto!important;padding-bottom:16px}.play-features .feature-layout{height:auto!important;max-height:none!important;overflow:visible!important}.experiences-section .experience-list{max-height:none!important;overflow:visible!important}.experience-line span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.mobile-detail-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible!important;border:0!important;margin:12px 0!important}.mobile-detail-tabs button{white-space:normal;font:11px Overpass!important;padding:8px 4px!important;min-height:44px;border:1px solid #71809755!important;border-radius:5px!important}.mobile-detail-label{font:12px Eveleth;color:#d6bc7d;margin:24px 0 8px}.collection-tabs{display:flex;gap:6px;margin:12px 0}.collection-tabs button{flex:1;min-height:40px}.sheet-card-navigation{display:none!important}.sheet-card-row{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:12px!important}.sheet-card-row .domain-card{width:100%!important;flex:0 0 100%!important;scroll-snap-align:start}.footer{display:none!important}.conditions-row{margin-top:16px}.condition-group>.boundary-label{width:100%}.inline-rest-controls{margin-top:8px}.class-tools{margin-top:14px}.inventory-tools{display:flex;flex-wrap:wrap;gap:8px}.inventory-tools>*{max-width:100%!important;min-width:0!important}.pack-item{min-width:0}.pack-description{min-width:0}.pack-description .item-name{white-space:normal!important}.sheet-upper{margin-bottom:12px!important}
#sheet-content>[hidden],.play-features [role=tabpanel][hidden]{display:none!important}
.mobile-play-tabs{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:8px}
.rolls-panel[hidden]{display:none!important}.rolls-panel>.sheet-section{margin:20px 0 30px!important}
.character-sheet .conditions-row{margin:0 0 22px;padding:4px 0 14px;gap:10px}.condition-group{gap:5px}.condition-group .condition{padding:0 9px;font-size:11px;height:36px;min-height:36px}.condition-group .icon-action{width:36px;min-width:36px;height:36px;min-height:36px}
.boundary-controls .boundary-label{display:none}.inline-rest-controls.boundary-controls{display:flex!important;flex-wrap:wrap;gap:6px!important}.boundary-controls .rest-pair,.boundary-controls .session-pair{flex:1;margin:0!important;padding:0!important;border:0!important;display:flex!important;gap:3px}.boundary-controls button{padding:0 5px!important;font-size:12px!important;min-height:44px!important;height:44px!important;flex:1;white-space:nowrap}
.play-features h3{font-size:12px!important}.play-features .feature-layout summary{font-size:13px!important}.play-features .feature-layout>section{margin:0!important;padding-bottom:12px!important}.play-features .feature-layout>section+section{padding-top:14px!important}.play-features .feature-layout h3{margin-top:0!important}.play-features .feature-layout{font-size:13px!important}
.weapon-summary .weapon-compact,.weapon-summary .armor-summary{grid-template-columns:minmax(0,1fr) 38px 78px 62px!important;gap:6px!important}.weapon-summary .weapon-name h3,.weapon-summary .armor-name strong{font-size:12px!important;line-height:1.3!important}.weapon-summary .weapon-name small,.weapon-summary small{font-size:9px!important}.weapon-summary .weapon-attack strong,.weapon-summary .weapon-damage strong{font-size:13px!important}.weapon-rolls{gap:3px!important}.weapon-rolls button{min-width:28px!important;width:28px!important;padding:4px!important}.weapon-summary .armor-summary{grid-template-columns:minmax(0,1fr) 45px 90px!important}
.experience-line{height:auto!important;min-height:44px;padding:10px 0!important;gap:12px!important;align-items:center!important}.experience-line span{font-size:13px!important;line-height:1.4!important}.experience-line b{font-size:13px!important;flex:none}
.mobile-detail-tabs{margin:14px 0!important;gap:5px}.mobile-detail-tabs button{min-height:36px!important;padding:5px 3px!important;font-size:10px!important}
.preview-loadout-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.preview-loadout-heading h2{font-size:17px;margin:0}.preview-loadout-heading small{color:#cbb67e}.preview-loadout-heading button{min-height:40px}
.preview-vault{width:calc(100% - 16px);max-width:440px;height:calc(100% - 24px);max-height:none;padding:12px;background:#19222e;color:#e3e7ee;border:1px solid #b39b62;border-radius:10px}.preview-vault::backdrop{background:#080c13bb}.preview-vault header{position:sticky;top:-12px;background:#19222e;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #b39b6244;margin-bottom:14px}.preview-vault h2{font-size:18px;margin:0}.preview-vault small{font-size:10px;color:#b3bfce}.vault-list{display:grid;gap:16px}.vault-list .domain-card{width:100%!important;position:relative}.vault-replace{position:absolute;inset:auto 5px 4px;background:#263343;padding:10px;border:1px solid #b39b62;display:grid;gap:6px;z-index:3}

html:has(dialog[open]),body:has(dialog[open]){overflow:hidden!important}.preview-vault{overflow:hidden!important;display:none;flex-direction:column;padding:12px!important}.preview-vault[open]{display:flex}.preview-vault header{flex-shrink:0;position:static!important}.vault-search{display:block;padding:8px 0;flex-shrink:0}.vault-search input{width:100%;min-height:40px}.vault-list{overflow-y:auto;min-height:0;overscroll-behavior:contain}.vault-list [hidden]{display:none!important}.vault-list .domain-card{flex-shrink:0}.card-collection .rules,.vault-list .rules{overflow:hidden!important;cursor:pointer}.card-position{font-size:11px;color:#bac7d6;margin:6px 0 12px}.preview-reader{background:#202a38;color:#e8e2d2;border:1px solid #c9ad66;border-radius:10px;width:calc(100% - 24px);max-width:440px;max-height:85dvh;overflow-y:auto;padding:18px;font-size:14px;line-height:1.55}.preview-reader>button{float:right;min-height:40px}.preview-reader h2{font-size:18px;padding-right:65px}.preview-reader::backdrop{background:#080e18cc}

.vault-result{font-size:12px;line-height:1.4;margin:0 0 10px;flex:none;color:#bac7d6}
.mobile-detail-tabs button,.character-sheet .conditions-row .boundary-controls button{min-height:44px;font-size:12px}

.sheet-identity{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;grid-template-rows:auto auto;align-items:start!important;gap:14px!important}.sheet-calling{grid-column:1;grid-row:1;min-width:0}.sheet-identity>.sheet-crest{grid-column:2;grid-row:1;align-self:start!important;position:relative!important;inset:auto!important;margin:0!important;width:76px!important}.identity-fields{grid-column:1/-1;grid-row:2}.sheet-calling h1{margin-top:6px!important}
.panel-switcher{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:start;margin:12px 0 8px}.panel-switcher>button,.vault-paging button{height:44px;min-width:44px;font-size:28px;padding:0;color:#e7c982;border:1px solid #b39b62;background:#263343}.panel-switcher>div{text-align:center;min-width:0}.panel-switcher .ribbon-title{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;margin:0!important;font-size:12px!important;min-height:36px;display:flex;align-items:center;justify-content:center}.panel-switcher small{font-size:11px;color:#cbb67e}.sheet-tracks{margin-top:0!important}.vitals{margin-top:0!important}
.mobile-detail-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}.mobile-detail-tabs button{height:48px!important;min-height:48px!important;display:flex;align-items:center;justify-content:center;border-color:#8c9baa55!important}.mobile-detail-tabs button svg{width:27px;height:27px}.mobile-detail-tabs button.active{color:#efd28c!important;border-color:#d2b66f!important;background:#b39b6222!important;box-shadow:inset 0 -2px #d2b66f}
.vault-list{display:flex!important;gap:16px;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;flex:none;padding:0 0 6px}.vault-list .domain-card{flex:0 0 100%!important;min-width:0;scroll-snap-align:start;height:440px!important}.vault-paging{display:flex;align-items:center;justify-content:space-between;margin-top:8px;flex:none}.vault-paging span{font-size:12px;color:#d4bd85}.preview-vault{height:auto!important;max-height:calc(100dvh - 16px)!important}.preview-vault header{margin-bottom:0;padding:6px 0}.vault-search{font-size:12px}.vault-result{margin-bottom:6px}.preview-vault:has(.vault-replace){overflow-y:auto!important}

/* Phone feature reading: compact type, generous action targets. */
.play-features .feature-layout summary,.play-features .feature-layout summary strong{font-size:12px!important;line-height:1.45!important}
.play-features .feature-layout,.play-features .feature-layout p,.play-features .feature-layout li{font-size:12px!important;line-height:1.5!important}
.play-features .feature-layout h3{font-size:11px!important;letter-spacing:.035em}
.play-features .feature-layout summary{box-sizing:border-box;min-height:40px;padding:9px 0!important}
.play-features .feature-layout>section{padding-bottom:8px!important}
.play-features .feature-layout>section+section{padding-top:12px!important}
.play-features{padding-top:14px!important}

.panel-switcher>div{position:relative;min-height:44px;display:flex;align-items:center}.panel-switcher .ribbon-title{min-height:44px;padding:0 35px 0 10px!important;font-size:11px!important}.panel-switcher small{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10px;line-height:1;color:#cbb67e;pointer-events:none}
.panel-switcher small{display:none!important}.panel-switcher .ribbon-title{padding:0 8px!important}
.mobile-vault-source{display:none!important}.mobile-detail-tabs button[aria-pressed=true]{color:#efd28c!important;border-color:#d2b66f!important}.mobile-reader .rules{overflow:visible!important;max-height:none!important;height:auto!important}.mobile-hidden{display:none!important}

}
/* A dedicated phone navigation row leaves every card surface unobstructed. */
.card-position{display:none}
@media(max-width:700px){
 .sheet-card-navigation.mobile-card-navigation{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:8px 2px 0}
 .mobile-card-navigation .card-position{display:block;font:12px Overpass;color:#d9c38e;font-variant-numeric:tabular-nums}
 .mobile-card-navigation button{width:44px;height:44px;padding:0;font-size:28px;color:#e7c982;border:1px solid #897953;background:#263343}
 .mobile-card-navigation button:disabled{opacity:.35}
 html[data-theme="paper"] .mobile-card-navigation button{color:#705019;border-color:#b7aa91;background:#eee7d9}
 html[data-theme="paper"] .mobile-card-navigation .card-position{color:#705019}
}
@media(max-width:700px){.character-sheet:has(.mobile-card-navigation){padding-bottom:76px!important}}
