/* Compact sea ledger: painted vessels, routes and numbers carry the overview. */
:root body[data-ui-theme] #workspace .fleet-overview{gap:7px;margin:0 0 10px}
:root body[data-ui-theme] #workspace .fleet-overview-card{display:flex;align-items:center;justify-content:flex-start;min-height:46px;padding:5px 10px;gap:8px;text-align:left;border-width:1px;border-radius:0}
:root body[data-ui-theme] #workspace .fleet-overview-card>img{width:40px;height:34px}
:root body[data-ui-theme] #workspace .fleet-overview-card>div{display:flex;align-items:baseline;gap:8px;min-width:0}
:root body[data-ui-theme] #workspace .fleet-overview-card strong{font-size:20px;line-height:1.1}
:root body[data-ui-theme] #workspace .fleet-overview-card span{font:13px/1.2 var(--font-body);margin:0}
:root body[data-ui-theme] #workspace .painted-fleet-row{grid-template-columns:84px minmax(160px,.9fr) minmax(160px,1.15fr) 180px;gap:10px;padding:9px 12px 9px 5px;margin-bottom:8px;border-width:1px;min-height:105px}
:root body[data-ui-theme] #workspace .fleet-painting{min-height:75px;background:none;border:0;align-self:center;grid-row:auto;grid-column:auto}
:root body[data-ui-theme] #workspace .fleet-painting>img{width:84px;height:75px;filter:drop-shadow(0 3px 2px #51351745)}
:root body[data-ui-theme] #workspace .fleet-unknown-flag{top:0;left:3px;font-size:16px;line-height:1.2;color:#fff3d7;background:#563322}
:root body[data-ui-theme] #workspace .fleet-order{grid-column:auto;grid-row:auto;padding:0;min-width:0}
:root body[data-ui-theme] #workspace .fleet-order h3{font-size:18px;line-height:1.2;margin:0 0 3px;gap:5px}
:root body[data-ui-theme] #workspace .fleet-order h3 svg{width:16px;height:16px}
:root body[data-ui-theme] #workspace .fleet-captain{font-size:12px;line-height:1.2;gap:5px;color:#59432e}
:root body[data-ui-theme] #workspace .fleet-captain>img{width:21px;height:21px}
:root body[data-ui-theme] #workspace .fleet-captain small{font-size:11px;display:inline;margin-left:6px}
:root body[data-ui-theme] #workspace .fleet-manifest{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;margin-top:4px}
:root body[data-ui-theme] #workspace .fleet-manifest .painted-ship-tokens{gap:5px;margin:0}
:root body[data-ui-theme] #workspace .fleet-manifest .painted-ship-token{gap:2px}
:root body[data-ui-theme] #workspace .fleet-manifest .painted-ship-token>img{width:25px;height:24px}
:root body[data-ui-theme] #workspace .fleet-manifest .painted-ship-token strong{font-size:14px;line-height:1.1}
:root body[data-ui-theme] #workspace .fleet-manifest .troop-tokens{margin:0;gap:5px;font-size:13px}
:root body[data-ui-theme] #workspace .fleet-manifest .troop-tokens img{width:16px;height:22px}
:root body[data-ui-theme] #workspace .fleet-manifest .troop-tokens b{font-size:13px}
:root body[data-ui-theme] #workspace .fleet-cargo{font-size:13px;gap:5px;margin:0;flex-wrap:wrap}
:root body[data-ui-theme] #workspace .fleet-cargo img{width:18px;height:18px}
:root body[data-ui-theme] #workspace .fleet-force-unknown{font-size:12px;color:#59432e}
:root body[data-ui-theme] #workspace .painted-fleet-row .fleet-route{grid-column:auto;grid-row:auto;padding:0;min-width:0}
:root body[data-ui-theme] #workspace .fleet-endpoints{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:center;gap:5px}
:root body[data-ui-theme] #workspace .fleet-route-port{font-size:13px;line-height:1.3;gap:4px;min-width:0}
:root body[data-ui-theme] #workspace .fleet-route-port .fleet-port-marker{display:none}
:root body[data-ui-theme] #workspace .fleet-route-port.destination{text-align:right}
:root body[data-ui-theme] #workspace .fleet-course-arrow{color:#664720;text-align:center;font-size:17px}
:root body[data-ui-theme] #workspace .fleet-route .voyage-progress{height:5px;margin:15px 8px 5px}
:root body[data-ui-theme] #workspace .fleet-route .voyage-progress img{width:30px;height:28px;right:-13px;bottom:-3px}
:root body[data-ui-theme] #workspace .fleet-time{grid-column:auto;grid-row:auto;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;padding:0;border:0;text-align:right}
:root body[data-ui-theme] #workspace .fleet-arrival{min-width:0;flex:1 1 auto}
:root body[data-ui-theme] #workspace .fleet-arrival>small{display:block;margin:0;font-size:11px;line-height:1.2;letter-spacing:0;color:#59432e}
:root body[data-ui-theme] #workspace .fleet-arrival>strong{display:block;font:16px/1.25 var(--font-body);color:#2d2117;white-space:normal}
:root body[data-ui-theme] #workspace .fleet-arrival>strong>time{font:inherit;line-height:inherit}
:root body[data-ui-theme] #workspace .fleet-arrival>time{display:block;font:11px/1.2 var(--font-body);color:#59432e;margin:2px 0 0}
:root body[data-ui-theme] #workspace .fleet-time>.fleet-map-button{min-height:44px;min-width:44px;flex:0 0 44px;display:grid;place-items:center;padding:6px;border:1px solid #ac8347;background:#e7d4b3;text-decoration:none}
:root body[data-ui-theme] #workspace .fleet-map-button svg{width:21px;height:21px}
:root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro{gap:10px;margin-bottom:9px}
:root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro .tab-strip{gap:5px}
:root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro .tab-strip button{min-height:44px;font-size:13px;line-height:1.25;padding:7px 10px;margin:0}
:root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro>button{font-size:14px;line-height:1.3;min-height:44px;padding:7px 12px;margin:0;white-space:nowrap;flex-shrink:0}

/* A route is one supply line, rather than a full-height illustration. */
:root body[data-ui-theme] #workspace .trade-introduction{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 8px;font-size:13px;line-height:1.2}
:root body[data-ui-theme] #workspace .trade-introduction>span{margin-right:auto}
:root body[data-ui-theme] #workspace .trade-introduction>.text-button{min-height:44px;font-size:13px;padding:6px;color:#fff3d7}
:root body[data-ui-theme] #workspace .compact-route{padding:10px 14px;margin-bottom:10px;border-width:1px}
:root body[data-ui-theme] #workspace .compact-route>.content-intro{justify-content:flex-start;gap:9px;margin:0;padding:0;border:0;min-height:0}
:root body[data-ui-theme] #workspace .compact-route .route-order-number{font-size:12px;letter-spacing:.3px}
:root body[data-ui-theme] #workspace .compact-route .tag{padding:3px 7px;font-size:11px;line-height:1.2}
:root body[data-ui-theme] #workspace .compact-route .route-progress-summary{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;font-size:12px}
:root body[data-ui-theme] #workspace .compact-route .route-status-pips{display:flex;gap:4px;margin:0}
:root body[data-ui-theme] #workspace .compact-route .route-status-pips i{width:6px;height:6px}
:root body[data-ui-theme] #workspace .compact-route .route-journey{display:grid;grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);gap:12px;padding:4px 0 8px;margin:0 0 7px}
:root body[data-ui-theme] #workspace .compact-route .route-port{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left;min-width:0}
:root body[data-ui-theme] #workspace .compact-route .route-port:last-child{justify-content:flex-end;text-align:right}
:root body[data-ui-theme] #workspace .compact-route .route-port>img{width:36px;height:36px;border-width:1px;flex-shrink:0}
:root body[data-ui-theme] #workspace .compact-route .route-port>strong{font:17px/1.2 var(--font-body);overflow-wrap:anywhere}
:root body[data-ui-theme] #workspace .compact-route .route-vessel{display:flex;align-items:center;justify-content:center;gap:4px;order:initial;flex-basis:auto}
:root body[data-ui-theme] #workspace .compact-route .route-vessel>img{width:60px;height:48px}
:root body[data-ui-theme] #workspace .compact-route .route-course-arrow{position:static;font-size:21px;color:#664720}
:root body[data-ui-theme] #workspace .compact-route .route-manifest{gap:10px;justify-content:space-between}
:root body[data-ui-theme] #workspace .compact-route .route-manifest .painted-ship-tokens{margin:0;gap:7px}
:root body[data-ui-theme] #workspace .compact-route .painted-ship-token>img{width:29px;height:26px}
:root body[data-ui-theme] #workspace .compact-route .painted-ship-token strong{font-size:14px}
:root body[data-ui-theme] #workspace .compact-route .route-manifest-cargo{gap:8px}
:root body[data-ui-theme] #workspace .compact-route .route-manifest-cargo .costs{font-size:14px;margin:0;gap:7px}
:root body[data-ui-theme] #workspace .compact-route .route-manifest-cargo img{width:21px;height:21px}
:root body[data-ui-theme] #workspace .compact-route .route-fuel{padding-left:8px;border-left:1px solid #b08b4860;font-size:14px;white-space:nowrap}
:root body[data-ui-theme] #workspace .compact-route .route-status-message{font-size:13px;line-height:1.4;margin:8px 0 0;padding:6px 8px;background:#f4d6b7;border-left:3px solid #8f3a23;color:#632b1c}
:root body[data-ui-theme] #workspace .route-command-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
:root body[data-ui-theme] #workspace .route-command-bar .community-actions{margin:0;gap:7px;align-items:center}
:root body[data-ui-theme] #workspace .route-command-bar button{min-height:44px;font-size:13px;margin:0;padding:6px 12px}
:root body[data-ui-theme] #workspace .route-command-bar .route-remove{width:44px;min-width:44px;font-size:22px;padding:5px;text-decoration:none}
:root body[data-ui-theme] #workspace .compact-route .route-next-departure{display:flex;align-items:center;gap:5px;font-size:13px;line-height:1.3;margin:0}
:root body[data-ui-theme] #workspace .route-next-departure svg{width:18px;height:18px}
:root body[data-ui-theme] #workspace .route-create-panel{padding:8px 14px;border-width:1px;margin-bottom:8px}
:root body[data-ui-theme] #workspace .route-create-panel>summary{font:15px/1.4 var(--font-body);min-height:44px;padding:10px 0}
:root body[data-ui-theme] #workspace .route-create-panel #route-form{margin:8px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
:root body[data-ui-theme] #workspace .route-create-panel .input-grid{margin:0;gap:8px;min-width:0}
:root body[data-ui-theme] #workspace .route-create-panel .input-grid>div{min-width:0}
:root body[data-ui-theme] #workspace .route-create-panel .route-port-inputs{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
:root body[data-ui-theme] #workspace .route-create-panel .route-ship-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}
:root body[data-ui-theme] #workspace .route-create-panel .route-resource-inputs{grid-template-columns:repeat(4,minmax(0,1fr))}
:root body[data-ui-theme] #workspace .route-create-panel :is(.route-ship-inputs,.route-resource-inputs) label{display:flex;align-items:center;gap:3px;flex-direction:column;margin:0 0 5px;font-size:11px;line-height:1.2;text-align:center}
:root body[data-ui-theme] #workspace .route-create-panel .route-input-ship{width:44px;height:36px;object-fit:contain;margin:0}
:root body[data-ui-theme] #workspace .route-create-panel .route-resource-inputs img{width:30px;height:36px;object-fit:contain}
:root body[data-ui-theme] #workspace .route-create-panel label{font-size:12px;margin:0 0 4px;line-height:1.3}
:root body[data-ui-theme] #workspace .route-create-panel :is(input,select){width:100%;min-width:0;min-height:44px;padding:8px;font-size:14px;margin:0}
:root body[data-ui-theme] #workspace .route-create-panel .route-repeat-inputs{grid-template-columns:repeat(2,minmax(0,1fr));align-self:end}
:root body[data-ui-theme] #workspace .route-create-panel form>.primary{min-height:44px;margin:0;align-self:end;font-size:14px}
:root body[data-ui-theme] #workspace .route-needs-colony{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:14px;flex-wrap:wrap}
:root body[data-ui-theme] #workspace .route-needs-colony>img{width:40px;height:40px;object-fit:contain}
:root body[data-ui-theme] #workspace .route-needs-colony button{min-height:44px;font-size:14px;margin-left:auto}

/* A ranking and a crew are readable lists with portraits, not another dashboard. */
:root body[data-ui-theme] #workspace .captain-standing{gap:12px;padding:8px 12px;margin-bottom:10px;border-width:1px}
:root body[data-ui-theme] #workspace .standing-portrait{width:44px;height:44px;border-width:2px;padding:1px}
:root body[data-ui-theme] #workspace .standing-identity h3{font:18px/1.2 var(--font-body);margin:0}
:root body[data-ui-theme] #workspace .standing-identity p{font-size:12px;line-height:1.3;margin:4px 0 0}
:root body[data-ui-theme] #workspace .standing-position,:root body[data-ui-theme] #workspace .standing-score{padding-left:12px}
:root body[data-ui-theme] #workspace .standing-summary{display:flex;gap:12px;margin-left:auto;border:0;padding:0}
:root body[data-ui-theme] #workspace .standing-summary strong{font:22px/1.2 var(--font-body);margin:0}
:root body[data-ui-theme] #workspace .standing-summary small{font-size:11px;letter-spacing:0;line-height:1.2}
:root body[data-ui-theme] #workspace .ranking-tabs{margin:0 0 10px;gap:5px}
:root body[data-ui-theme] #workspace .ranking-tabs button{min-height:44px;font-size:13px;padding:7px 10px}
:root body[data-ui-theme] #workspace .painted-ranking-table th{font-size:11px;padding:7px 10px;letter-spacing:0}
:root body[data-ui-theme] #workspace .painted-ranking-table td{font-size:14px;padding:5px 10px}
:root body[data-ui-theme] #workspace .ranking-identity{gap:8px}
:root body[data-ui-theme] #workspace .ranking-portrait{width:32px;height:34px}
:root body[data-ui-theme] #workspace .ranking-captain{font:15px/1.2 var(--font-body)}
:root body[data-ui-theme] #workspace .ranking-captain .ranking-crew{font-size:11px;margin:3px 0 0}
:root body[data-ui-theme] #workspace .ranking-score-value{font-size:15px}
:root body[data-ui-theme] #workspace .ranking-rank{font-size:16px}
:root body[data-ui-theme] #workspace .painted-ranking-table .ranking-message{min-height:44px;min-width:44px;padding:8px}
:root body[data-ui-theme] #workspace .captain-stats{margin-top:10px;gap:7px}
:root body[data-ui-theme] #workspace .captain-stats>div{padding:8px 8px 8px 45px;min-height:52px}
:root body[data-ui-theme] #workspace .captain-stat-art{width:28px;height:28px;top:10px;left:9px}
:root body[data-ui-theme] #workspace .captain-stats strong{font-size:20px;line-height:1.1}
:root body[data-ui-theme] #workspace .captain-stats small{font-size:11px;line-height:1.3;margin-top:3px}
:root body[data-ui-theme] #workspace .ranking-info{display:flex;justify-content:flex-end;margin-top:6px}
:root body[data-ui-theme] #workspace .brotherhood-index-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 5px}
:root body[data-ui-theme] #workspace .brotherhood-index-heading h3{font:18px/1.2 var(--font-body);color:#fff3d7;margin:0}
:root body[data-ui-theme] #workspace .crew-total{font-size:13px;margin-left:6px}
:root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-grid{gap:10px;margin-top:0;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-banner{padding:5px 10px;min-height:46px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-flag{width:40px;height:40px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-banner>span:last-child{font-size:10px;letter-spacing:.5px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-card-content{padding:10px 12px}
:root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-card h3{font:20px/1.2 var(--font-body);margin:0 0 7px}
:root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-card p{font-size:12px;line-height:1.4;margin:7px 0 3px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-portrait-roster img{width:32px;height:36px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-portrait-roster{min-height:36px;margin:0 0 5px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-joining{font-size:11px}
:root body[data-ui-theme] #workspace .brotherhood-page .community-actions{gap:7px;margin-top:8px}
:root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-card .community-actions{margin-top:8px;padding-top:7px;min-height:44px}
:root body[data-ui-theme] #workspace .brotherhood-page .community-actions button{min-height:44px;font-size:13px;padding:7px 10px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-contract{padding:0 12px 12px;border-width:1px;margin-bottom:10px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header{gap:10px;margin:0 -12px 8px;padding:8px 12px;border-width:1px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-standard{width:44px;height:44px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header .eyebrow{font-size:10px;letter-spacing:0}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header h3{font:20px/1.2 var(--font-body);margin:3px 0}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header>button{min-height:44px;padding:7px 10px;font-size:12px}
:root body[data-ui-theme] #workspace .brotherhood-page .member-row{padding:6px 8px;gap:8px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-member{gap:7px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-member-portrait{width:32px;height:36px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-member b{font-size:14px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-member small{font-size:11px;line-height:1.2}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-member-actions button{min-height:44px;min-width:44px;font-size:12px;padding:7px 9px}
:root body[data-ui-theme] #workspace .brotherhood-page .community-controls{padding:8px 10px;margin-top:8px;gap:10px}
:root body[data-ui-theme] #workspace .brotherhood-page .community-controls label{font-size:12px}
:root body[data-ui-theme] #workspace .brotherhood-page .community-controls :is(input,select,button){min-height:44px;font-size:13px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-create{padding:10px 12px;gap:10px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-create-standard{width:48px;height:48px;margin:0}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-create label{font-size:13px}
:root body[data-ui-theme] #workspace .brotherhood-page .crew-create :is(input,button){min-height:44px;font-size:14px}
:root body[data-ui-theme] #workspace .tavern-page .chat-toolbar{margin-bottom:8px;gap:8px}
:root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .tab-strip{gap:5px}
:root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .tab-strip button{min-height:44px;gap:5px;padding:5px 9px;font-size:13px}
:root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .community-atlas-icon{width:27px;height:27px}
:root body[data-ui-theme] #workspace .tavern-page .chat-message{padding:8px 10px;gap:8px}
:root body[data-ui-theme] #workspace .tavern-page .chat-captain-portrait{width:30px;height:34px}
:root body[data-ui-theme] #workspace .tavern-page .chat-message header{gap:6px;min-height:0}
:root body[data-ui-theme] #workspace .tavern-page .chat-message header b{font-size:13px;line-height:1.2}
:root body[data-ui-theme] #workspace .tavern-page .chat-message header time{font-size:11px}
:root body[data-ui-theme] #workspace .tavern-page .chat-message .text-button{min-height:44px;min-width:44px;font-size:14px;padding:8px}
:root body[data-ui-theme] #workspace .tavern-page .chat-message p{font-size:14px;line-height:1.5;margin:3px 0 0}
:root body[data-ui-theme] #workspace .tavern-page .chat-messages{height:clamp(180px,calc(var(--game-height,100dvh) - 430px),360px);min-height:180px;padding:8px}
:root body[data-ui-theme] #workspace .tavern-page .chat-empty-art{width:60px;height:60px}
:root body[data-ui-theme] #workspace .tavern-page #chat-form>label{font-size:12px;margin:8px 0 4px}
:root body[data-ui-theme] #workspace .tavern-page .chat-compose{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:stretch;gap:7px;padding:0}
:root body[data-ui-theme] #workspace .tavern-page .chat-compose textarea{min-height:64px;font-size:14px;line-height:1.4;padding:9px;margin:0}
:root body[data-ui-theme] #workspace .tavern-page .chat-compose button{width:100%;min-height:44px;margin:0;font-size:14px}
:root body[data-ui-theme] #workspace .chat-compose-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:4px}
:root body[data-ui-theme] #workspace .chat-compose-foot>small{font-size:12px;line-height:1.3;color:#fff3d7}

/* Keep the battle's visual balance of forces and the next round in one view. */
:root body[data-ui-theme] #workspace .battle-card{padding:12px;border-width:1px}
:root body[data-ui-theme] #workspace .battle-card>header{min-height:32px;gap:8px}
:root body[data-ui-theme] #workspace .battle-card>header:before{width:32px;height:32px}
:root body[data-ui-theme] #workspace .battle-card>header>span{font-size:12px;letter-spacing:.3px}
:root body[data-ui-theme] #workspace .battle-card>header>.text-button{min-height:44px;min-width:44px;display:grid;place-items:center;padding:7px}
:root body[data-ui-theme] #workspace .battle-card h3{font:22px/1.2 var(--font-body);margin:3px 0 9px}
:root body[data-ui-theme] #workspace .battle-card h4{font:15px/1.2 var(--font-body);margin:4px 0 7px}
:root body[data-ui-theme] #workspace .battle-card .battle-round{font-size:13px;line-height:1.4;padding-bottom:8px;gap:6px}
:root body[data-ui-theme] #workspace .battle-card .battle-round b{font-size:15px}
:root body[data-ui-theme] #workspace .battle-card .battle-forces{gap:8px;margin:10px 0}
:root body[data-ui-theme] #workspace .battle-card .battle-forces section{padding:8px;min-width:0;border-width:1px;border-top-width:3px}
:root body[data-ui-theme] #workspace .battle-card .battle-forces section>small{font-size:11px;letter-spacing:.5px}
:root body[data-ui-theme] #workspace .battle-card .battle-ships{gap:4px}
:root body[data-ui-theme] #workspace .battle-card .battle-ships .atlas-token{width:42px;height:38px;object-fit:contain;border:0;background:none;box-shadow:none}
:root body[data-ui-theme] #workspace .battle-card .battle-ships strong{font-size:16px;margin-top:2px}
:root body[data-ui-theme] #workspace .battle-card .troop-tokens{gap:7px;margin-top:5px}
:root body[data-ui-theme] #workspace .battle-card .troop-tokens img{width:17px;height:26px}
:root body[data-ui-theme] #workspace .battle-card .troop-tokens b{font-size:14px}
:root body[data-ui-theme] #workspace .battle-card .fort-health{gap:8px;padding:7px 9px;font-size:12px;line-height:1.3}
:root body[data-ui-theme] #workspace .battle-card .fort-health b{font-size:12px}
:root body[data-ui-theme] #workspace .battle-card .battle-actions{margin-top:8px;gap:7px}
:root body[data-ui-theme] #workspace .battle-card .battle-actions button{min-height:44px;font-size:14px;padding:7px 10px}
:root body[data-ui-theme] #workspace .battle-card .battle-playback{margin:10px 0 5px;padding:5px;border-width:1px}
:root body[data-ui-theme] #workspace .battle-card .battle-playback canvas{max-height:170px;aspect-ratio:3/1;object-fit:contain}
:root body[data-ui-theme] #workspace .battle-card .battle-playback>div{gap:7px;padding:3px 2px;margin:3px 0;align-items:end}
:root body[data-ui-theme] #workspace .battle-card .battle-playback :is(label,select){font-size:12px}
:root body[data-ui-theme] #workspace .battle-card .battle-playback select{min-height:44px;margin:3px 0 0;padding:6px}
:root body[data-ui-theme] #workspace .battle-card .battle-playback button{min-height:44px;font-size:13px;padding:6px 9px}
:root body[data-ui-theme] #workspace .battle-card .battle-playback>small{font-size:11px;line-height:1.4;padding:3px 2px}
:root body[data-ui-theme] #workspace .battle-card .battle-history{margin-top:5px}
:root body[data-ui-theme] #workspace .battle-card .battle-history summary{min-height:44px;font-size:13px;line-height:1.3;padding:10px 0}

@media(min-width:951px) and (max-width:1199px){
 :root body[data-ui-theme] #workspace .painted-fleet-row{grid-template-columns:84px minmax(0,1fr) 180px;gap:6px 10px}
 :root body[data-ui-theme] #workspace .fleet-painting{grid-column:1;grid-row:1/3}
 :root body[data-ui-theme] #workspace .fleet-order{grid-column:2;grid-row:1}
 :root body[data-ui-theme] #workspace .painted-fleet-row .fleet-route{grid-column:2;grid-row:2}
 :root body[data-ui-theme] #workspace .fleet-time{grid-column:3;grid-row:1/3}
 :root body[data-ui-theme] #workspace .fleet-route .voyage-progress{margin:8px 8px 3px}
 :root body[data-ui-theme] #workspace .fleet-manifest{margin-top:2px}
 :root body[data-ui-theme] #workspace .fleet-order h3{margin-bottom:2px}
 :root body[data-ui-theme] #workspace .route-create-panel #route-form{grid-template-columns:1fr}
 :root body[data-ui-theme] #workspace .route-create-panel .route-port-inputs{grid-column:auto}
}
@media(max-width:950px){
 :root body[data-ui-theme] #workspace .fleet-overview{display:none}
 :root body[data-ui-theme] #workspace .painted-fleet-row{grid-template-columns:54px minmax(0,1fr);gap:6px 9px;padding:9px;margin-bottom:8px}
 :root body[data-ui-theme] #workspace .fleet-painting{grid-column:1;grid-row:1;min-height:56px}
 :root body[data-ui-theme] #workspace .fleet-painting>img{width:54px;height:56px}
 :root body[data-ui-theme] #workspace .fleet-order{grid-column:2;grid-row:1}
 :root body[data-ui-theme] #workspace .fleet-order h3{font-size:18px;margin-bottom:3px}
 :root body[data-ui-theme] #workspace .fleet-captain{font-size:14px}
 :root body[data-ui-theme] #workspace .fleet-captain small{font-size:14px}
 :root body[data-ui-theme] #workspace .fleet-manifest{margin-top:3px;gap:3px 7px}
 :root body[data-ui-theme] #workspace .fleet-manifest .painted-ship-token strong,:root body[data-ui-theme] #workspace .fleet-manifest .troop-tokens b{font-size:16px}
 :root body[data-ui-theme] #workspace .fleet-cargo{font-size:16px}
 :root body[data-ui-theme] #workspace .fleet-force-unknown{font-size:14px}
 :root body[data-ui-theme] #workspace .painted-fleet-row .fleet-route{grid-column:1/-1;grid-row:2}
 :root body[data-ui-theme] #workspace .fleet-route-port{font-size:16px;line-height:1.3}
 :root body[data-ui-theme] #workspace .fleet-route .voyage-progress{margin:12px 8px 3px}
 :root body[data-ui-theme] #workspace .fleet-time{grid-column:1/-1;grid-row:3;justify-content:space-between;text-align:left;border-top:1px solid #b08b4860;padding-top:5px}
 :root body[data-ui-theme] #workspace .fleet-arrival{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
 :root body[data-ui-theme] #workspace .fleet-arrival{flex:1 1 auto;min-width:0}
 :root body[data-ui-theme] #workspace .fleet-arrival>small,:root body[data-ui-theme] #workspace .fleet-arrival>time{font-size:14px}
 :root body[data-ui-theme] #workspace .fleet-arrival>strong{font-size:16px;line-height:1.4}
 :root body[data-ui-theme] #workspace .fleet-time>.fleet-map-button{grid-column:auto;grid-row:auto;min-height:44px;min-width:44px}
 :root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-bottom:8px}
 :root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro .tab-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%}
 :root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro .tab-strip button{font-size:14px;line-height:1.3;min-height:44px;margin:0;padding:7px 5px;min-width:0}
 :root body[data-ui-theme][data-view="fleets"] #workspace #content-page>.content-intro>button{font-size:16px;min-height:44px;width:auto;margin:0;padding:7px 12px}
 :root body[data-ui-theme] #workspace .trade-introduction{font-size:14px;gap:8px}
 :root body[data-ui-theme] #workspace .trade-introduction>.text-button{font-size:14px}
 :root body[data-ui-theme] #workspace .compact-route{padding:9px;margin-bottom:8px}
 :root body[data-ui-theme] #workspace .compact-route .route-order-number,:root body[data-ui-theme] #workspace .compact-route .tag,:root body[data-ui-theme] #workspace .compact-route .route-progress-summary{font-size:14px}
 :root body[data-ui-theme] #workspace .compact-route .route-status-pips{display:none}
 :root body[data-ui-theme] #workspace .compact-route .route-journey{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:5px;padding:8px 0}
 :root body[data-ui-theme] #workspace .compact-route .route-port{flex-direction:column;gap:4px;justify-content:center;text-align:center}
 :root body[data-ui-theme] #workspace .compact-route .route-port:last-child{justify-content:center;text-align:center}
 :root body[data-ui-theme] #workspace .compact-route .route-port>img{width:30px;height:30px}
 :root body[data-ui-theme] #workspace .compact-route .route-port>strong{font-size:16px;line-height:1.25}
 :root body[data-ui-theme] #workspace .compact-route .route-vessel{flex-direction:column;gap:0}
 :root body[data-ui-theme] #workspace .compact-route .route-vessel>img{width:42px;height:35px}
 :root body[data-ui-theme] #workspace .compact-route .route-course-arrow{font-size:20px;line-height:1}
 :root body[data-ui-theme] #workspace .compact-route .route-manifest{gap:6px}
 :root body[data-ui-theme] #workspace .compact-route .route-manifest-cargo{gap:6px;flex-wrap:wrap}
 :root body[data-ui-theme] #workspace .compact-route .route-manifest-cargo .costs,:root body[data-ui-theme] #workspace .compact-route .route-fuel,:root body[data-ui-theme] #workspace .compact-route .painted-ship-token strong{font-size:16px}
 :root body[data-ui-theme] #workspace .compact-route .route-status-message{font-size:16px}
 :root body[data-ui-theme] #workspace .compact-route .route-next-departure{font-size:14px}
 :root body[data-ui-theme] #workspace .route-command-bar button{font-size:16px;min-height:44px}
 :root body[data-ui-theme] #workspace .route-create-panel{padding:6px 10px}
 :root body[data-ui-theme] #workspace .route-create-panel>summary{font-size:16px}
 :root body[data-ui-theme] #workspace .route-create-panel #route-form{grid-template-columns:1fr;gap:12px}
 :root body[data-ui-theme] #workspace .route-create-panel .route-port-inputs{grid-column:auto}
 :root body[data-ui-theme] #workspace .route-create-panel label{font-size:14px}
 :root body[data-ui-theme] #workspace .route-create-panel :is(.route-ship-inputs,.route-resource-inputs) label{font-size:14px}
 :root body[data-ui-theme] #workspace .route-create-panel .route-ship-inputs label span{line-height:1.2;hyphens:auto;overflow-wrap:anywhere}
 :root body[data-ui-theme] #workspace .route-create-panel :is(input,select){font-size:16px;min-height:44px;padding:7px 5px}
 :root body[data-ui-theme] #workspace .route-create-panel form>.primary{font-size:16px;min-height:44px}
 :root body[data-ui-theme] #workspace .route-needs-colony{font-size:16px;gap:7px}
 :root body[data-ui-theme] #workspace .route-needs-colony button{font-size:16px}
 :root body[data-ui-theme] #workspace .captain-standing{display:flex;flex-wrap:nowrap;gap:8px;padding:8px 10px}
 :root body[data-ui-theme] #workspace .standing-portrait{width:36px;height:36px}
 :root body[data-ui-theme] #workspace .standing-identity{flex:1 1 80px;min-width:0}
 :root body[data-ui-theme] #workspace .standing-identity h3{font-size:16px}
 :root body[data-ui-theme] #workspace .standing-identity p{font-size:16px}
 :root body[data-ui-theme] #workspace .standing-score{display:none}
 :root body[data-ui-theme] #workspace .standing-summary{gap:8px;margin-left:0}
 :root body[data-ui-theme] #workspace .standing-summary strong{font-size:18px}
 :root body[data-ui-theme] #workspace .standing-summary small{font-size:14px}
 :root body[data-ui-theme] #workspace .standing-position,:root body[data-ui-theme] #workspace .standing-score{padding:0 0 0 8px;border:0;text-align:left;min-width:0}
 :root body[data-ui-theme] #workspace .ranking-tabs button{font-size:14px;min-height:44px;padding:7px 9px}
 :root body[data-ui-theme] #workspace .painted-ranking-table table{min-width:0;width:100%}
 :root body[data-ui-theme] #workspace .painted-ranking-table th{font-size:14px;padding:6px 4px;overflow-wrap:anywhere}
 :root body[data-ui-theme] #workspace .painted-ranking-table td{font-size:14px;padding:4px}
 :root body[data-ui-theme] #workspace .painted-ranking-table tr{min-height:72px;padding:6px;grid-template-columns:24px minmax(0,1fr) 52px 44px;gap:2px 5px}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:first-child{grid-column:1;grid-row:1/3;padding:0}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:nth-child(2){grid-column:2;grid-row:1;padding:0}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:nth-child(3){grid-column:2;grid-row:2;padding:0;font-size:14px;line-height:1.2}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:nth-child(3):before{font-size:14px;line-height:1.2}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:nth-child(4){grid-column:3;grid-row:1/3;padding:0;text-align:right;min-width:0}
 :root body[data-ui-theme] #workspace .painted-ranking-table td:last-child{grid-column:4;grid-row:1/3;padding:0;justify-self:end}
 :root body[data-ui-theme] #workspace .ranking-captain{font-size:16px;overflow-wrap:anywhere}
 :root body[data-ui-theme] #workspace .ranking-captain .ranking-crew{font-size:14px;line-height:1.3}
 :root body[data-ui-theme] #workspace .ranking-portrait{width:28px;height:32px;flex-shrink:0}
 :root body[data-ui-theme] #workspace .ranking-identity{gap:5px;flex-wrap:wrap}
 :root body[data-ui-theme] #workspace .ranking-you{font-size:14px;padding:2px 3px}
 :root body[data-ui-theme] #workspace .ranking-score-value{font-size:16px}
 :root body[data-ui-theme] #workspace .captain-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 :root body[data-ui-theme] #workspace .captain-stats small{font-size:14px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header .crew-standard{width:44px;height:44px;grid-column:1;grid-row:1}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header>div{grid-column:2;grid-row:1}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header .eyebrow{font-size:14px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header h3{font-size:20px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-contract-header>button{grid-column:1/-1;grid-row:2;min-height:44px;font-size:16px;width:100%}
 :root body[data-ui-theme] #workspace .brotherhood-page .member-row{gap:5px;padding:6px 8px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-member b{font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-member small{font-size:14px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-member-actions{gap:5px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-member-actions button{font-size:14px;min-height:44px}
 :root body[data-ui-theme] #workspace .brotherhood-page .community-controls{padding:8px;gap:8px}
 :root body[data-ui-theme] #workspace .brotherhood-page .community-controls form{margin-top:0}
 :root body[data-ui-theme] #workspace .brotherhood-page .community-controls label{font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .community-controls :is(input,select,button){font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-create{display:grid;grid-template-columns:44px minmax(0,1fr);padding:10px;gap:8px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-create-standard{width:44px;height:44px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-create label{font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-create :is(input,button){font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-create .primary{grid-column:1/-1;margin:0}
 :root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-grid{grid-template-columns:minmax(0,1fr);gap:9px}
 :root body[data-ui-theme] #workspace .brotherhood-page .brotherhood-card p{font-size:16px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-joining{font-size:14px}
 :root body[data-ui-theme] #workspace .brotherhood-page .crew-banner>span:last-child{font-size:14px;letter-spacing:0}
 :root body[data-ui-theme] #workspace .brotherhood-page .community-actions button{font-size:16px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .tab-strip{flex-wrap:wrap;gap:5px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .tab-strip button{font-size:14px;min-height:44px;padding:5px 7px;gap:4px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-toolbar .community-atlas-icon{width:25px;height:25px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-messages{height:clamp(160px,calc(var(--game-height,100dvh) - 540px),280px);min-height:160px;padding:6px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-message{padding:7px;gap:6px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-message header b{font-size:14px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-message header time{font-size:14px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-message p{font-size:16px;line-height:1.45}
 :root body[data-ui-theme] #workspace .tavern-page #chat-form>label{font-size:16px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-compose{grid-template-columns:minmax(0,1fr) 84px;gap:6px}
 :root body[data-ui-theme] #workspace .tavern-page .chat-compose :is(textarea,button){font-size:16px}
 :root body[data-ui-theme] #workspace .chat-compose-foot>small{font-size:14px}
 :root body[data-ui-theme] #workspace .battle-card>header>span{font-size:14px;letter-spacing:0}
 :root body[data-ui-theme] #workspace .battle-card h3{font-size:20px}
 :root body[data-ui-theme] #workspace .battle-card h4{font-size:16px}
 :root body[data-ui-theme] #workspace .battle-card .battle-round{font-size:14px}
 :root body[data-ui-theme] #workspace .battle-card .battle-forces section>small{font-size:14px;letter-spacing:0}
 :root body[data-ui-theme] #workspace .battle-card .battle-ships .atlas-token{width:34px;height:32px}
 :root body[data-ui-theme] #workspace .battle-card .troop-tokens b{font-size:16px}
 :root body[data-ui-theme] #workspace .battle-card .fort-health,:root body[data-ui-theme] #workspace .battle-card .fort-health b{font-size:14px}
 :root body[data-ui-theme] #workspace .battle-card .battle-actions button{font-size:16px;min-height:44px}
 :root body[data-ui-theme] #workspace .battle-card .battle-playback :is(label,select,button){font-size:16px;min-height:44px}
 :root body[data-ui-theme] #workspace .battle-card .battle-playback label{min-height:0}
 :root body[data-ui-theme] #workspace .battle-card .battle-playback>small{font-size:14px}
 :root body[data-ui-theme] #workspace .battle-card .battle-history summary{font-size:16px;min-height:44px}
}
