/* Compact visual orders: painted objects and numbers remain visible; explanations use info buttons. */
body[data-ui-theme] #workspace .compact-glyph{display:inline-block;width:17px;height:17px;flex:none;vertical-align:middle;color:inherit}
body[data-ui-theme] #workspace .compact-info{display:inline-grid;place-items:center;flex:none;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid #8b6533;border-image:none;border-radius:50%;background:#ead5ab;color:#4d3119;box-shadow:inset 0 0 0 2px #fff4d7;text-shadow:none;font:700 italic 16px/1 Georgia,serif;text-decoration:none}
body[data-ui-theme] #workspace .compact-info:hover{background:#fff3d4;color:#2d2117}
body[data-ui-theme] #workspace .compact-info:focus-visible{outline:3px solid #674014;outline-offset:3px}
body[data-ui-theme] #workspace .compact-island{display:flex;flex-direction:column;gap:10px}
body[data-ui-theme] #workspace .compact-island>.construction-queue,body[data-ui-theme] #workspace .compact-island>.island-buildings{order:initial;width:100%;min-width:0}
body[data-ui-theme] #workspace .island-workplaces{gap:8px;margin:0 0 10px}
body[data-ui-theme] #workspace .island-workplaces .workplace{min-height:48px;max-height:58px;flex-direction:row;align-items:center;gap:8px;padding:4px 10px}
body[data-ui-theme] #workspace .island-workplaces .workplace-art{width:34px;height:34px;align-self:center}
body[data-ui-theme] #workspace .workplace-copy{display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
body[data-ui-theme] #workspace .workplace-title{font-size:14px;line-height:1.3}
body[data-ui-theme] #workspace .workplace-copy>strong{font-size:12px;line-height:1.3}
body[data-ui-theme] #workspace .workplace-arrow{display:block;font-size:19px}
body[data-ui-theme] #workspace .building-section-heading{min-height:32px;margin:0 0 7px}
body[data-ui-theme] #workspace .building-section-heading h3{font-size:18px}
body[data-ui-theme] #workspace .island-title-actions{display:flex;gap:6px}
body[data-ui-theme] #workspace .island-title-actions .text-button{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:36px;min-height:32px;margin:0;padding:3px;text-decoration:none;color:#fff3d7;border:1px solid #987142;background:#322114;font-size:17px}
body[data-ui-theme] #workspace .section-action-art{width:25px;height:25px}
body[data-ui-theme] #workspace .compact-island .construction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body[data-ui-theme] #workspace .construction-card.compact-building{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) 30px;grid-template-rows:auto auto auto;gap:6px 9px;padding:10px;scroll-margin-top:120px;align-items:center}
body[data-ui-theme] #workspace .compact-building>.construction-art{grid-column:1;grid-row:1;width:54px;height:54px;border-width:1px}
body[data-ui-theme] #workspace .compact-building>.construction-title{grid-column:2;grid-row:1;align-self:center;min-width:0}
body[data-ui-theme] #workspace .compact-building>.compact-info{grid-column:3;grid-row:1;align-self:start}
body[data-ui-theme] #workspace .compact-building .construction-title h3{font-size:15px;line-height:1.4;margin:0 0 1px;overflow-wrap:anywhere}
body[data-ui-theme] #workspace .compact-building .building-level{font-size:12px;line-height:1.4;display:inline}
body[data-ui-theme] #workspace .compact-building .planned-level{display:inline}
body[data-ui-theme] #workspace .compact-building .building-effect{display:flex;align-items:center;gap:4px;margin:2px 0 0;font-size:12px;line-height:1.4;min-height:21px;color:#59432e}
body[data-ui-theme] #workspace .building-effect .benefit-art,body[data-ui-theme] #workspace .building-effect>img{display:inline-block;width:22px;height:22px;flex:none;object-fit:contain}
body[data-ui-theme] #workspace .building-effect .compact-glyph{width:16px;height:16px}
body[data-ui-theme] #workspace .building-effect small{font-size:11px;margin-left:3px;color:#59432e}
body[data-ui-theme] #workspace .compact-building>.costs{grid-column:1/-1;grid-row:2;gap:5px 12px;margin:0;min-height:22px;font-size:13px;line-height:1.4}
body[data-ui-theme] #workspace .compact-building>.costs img{width:22px;height:22px}
body[data-ui-theme] #workspace .compact-building .construction-action{grid-column:1/-1;grid-row:3;display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0;min-width:0}
body[data-ui-theme] #workspace .compact-building .construction-action .duration{display:flex;align-items:center;gap:4px;font-size:12px;line-height:1.4;min-width:0}
body[data-ui-theme] #workspace .compact-building .construction-action button{flex-shrink:0;min-height:36px;margin:0;padding:5px 9px;font-size:13px;white-space:nowrap}

/* The build plan is a short, always visible timeline rather than a second column of instructions. */
body[data-ui-theme] #workspace .construction-queue.compact-queue{position:static;top:auto;padding:7px 10px 6px;scroll-margin-top:120px;border-top-width:2px!important;overflow:hidden}
body[data-ui-theme] #workspace .compact-queue>header{display:flex;align-items:center;flex-wrap:nowrap;gap:9px;min-height:32px;padding:0 0 5px;margin:0 0 6px;border-bottom:1px solid #b79b68}
body[data-ui-theme] #workspace .compact-queue h3{display:flex;gap:6px;margin:0;font-size:16px;white-space:nowrap}
body[data-ui-theme] #workspace .compact-queue .queue-heading-art{width:27px;height:27px}
body[data-ui-theme] #workspace .compact-queue .construction-state{font-size:12px;line-height:1.4}
body[data-ui-theme] #workspace .compact-queue .queue-count{font-size:13px;white-space:nowrap;margin-left:auto}
body[data-ui-theme] #workspace .compact-queue .queue-track{display:flex;align-items:stretch;gap:8px;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#8b6533 #ead5ab}
body[data-ui-theme] #workspace .compact-queue .queue-track:has(>.queue-idle):not(:has(.construction-orders>li)){display:none}
body[data-ui-theme] #workspace .compact-queue .active-construction{display:grid;grid-template-columns:38px minmax(0,1fr);gap:4px 7px;align-content:center;flex:0 1 230px;min-width:180px;padding:7px 10px;background:#e4c896;border:1px solid #a37d47}
body[data-ui-theme] #workspace .compact-queue .active-construction .construction-art{width:38px;height:42px;align-self:center;border-width:1px}
body[data-ui-theme] #workspace .compact-queue .active-construction small{font-size:10px;line-height:1.3;margin:0}
body[data-ui-theme] #workspace .compact-queue .active-construction strong{font-size:13px;line-height:1.4}
body[data-ui-theme] #workspace .compact-queue .active-construction span:not(.construction-art){display:flex;align-items:center;gap:3px;margin:2px 0 0;font-size:12px;line-height:1.4}
body[data-ui-theme] #workspace .compact-queue .active-construction progress{height:5px;margin:3px 0 0}
body[data-ui-theme] #workspace .compact-queue .construction-orders{display:flex;flex:1;gap:8px;min-width:0;margin:0;padding:0}
body[data-ui-theme] #workspace .compact-queue .construction-orders:empty{display:none}
body[data-ui-theme] #workspace .compact-queue .construction-orders>li{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 6px;flex:1 0 200px;min-width:180px;max-width:340px;padding:6px 8px;border:1px solid #b79b68;background:#efdfbb}
body[data-ui-theme] #workspace .compact-queue .order-number{position:absolute;left:4px;top:3px;display:grid;place-items:center;width:15px;height:15px;border:1px solid #9c7845;border-radius:50%;background:#f4e7cc;color:#59432e;font-size:9px;line-height:1}
body[data-ui-theme] #workspace .compact-queue .construction-orders .construction-art{grid-column:1;grid-row:1;width:30px;height:34px;margin-top:3px;border-width:1px}
body[data-ui-theme] #workspace .compact-queue .order-copy{grid-column:2;min-width:0}
body[data-ui-theme] #workspace .compact-queue .order-copy>strong{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-ui-theme] #workspace .compact-queue .order-copy>small{font-size:10px;line-height:1.4;margin:2px 0}
body[data-ui-theme] #workspace .compact-queue .order-copy .costs{font-size:11px;gap:3px 8px;margin:2px 0}
body[data-ui-theme] #workspace .compact-queue .order-copy .costs img{width:15px;height:15px}
body[data-ui-theme] #workspace .compact-queue .order-controls{grid-column:1/-1;display:flex;justify-content:flex-end;gap:4px}
body[data-ui-theme] #workspace .compact-queue .order-controls .text-button{display:grid;place-items:center;width:30px;min-width:30px;height:28px;min-height:28px;font-size:17px;padding:0;margin:0;text-decoration:none;border:1px solid #a07b44;color:#4d3117;background:#f4e7cc}
body[data-ui-theme] #workspace .compact-queue .queue-idle{display:flex;align-items:center;justify-content:center;flex:0 1 170px;min-width:145px;gap:6px;padding:6px 10px;border:1px dashed #a37d47;color:#59432e;font-size:12px}
body[data-ui-theme] #workspace .compact-queue .queue-idle-art{width:34px;height:34px}
body[data-ui-theme] #workspace .compact-queue .queue-free-slots{display:flex;flex:0 0 90px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 6px}
body[data-ui-theme] #workspace .compact-queue .queue-free-slots>span{display:flex;gap:3px}
body[data-ui-theme] #workspace .compact-queue .queue-free-slots i{display:grid;place-items:center;width:22px;height:25px;border:1px dashed #9c7845;font:16px/1 var(--font-body);color:#59432e}
body[data-ui-theme] #workspace .compact-queue .queue-free-slots small{font-size:10px;color:#59432e;white-space:nowrap}
body[data-ui-theme] #workspace .compact-queue>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
body[data-ui-theme] #workspace .compact-queue .queue-payment{font-size:11px;line-height:1.5;margin:0;color:#59432e}
body[data-ui-theme] #workspace .compact-queue .queue-controls{display:flex;gap:6px;flex-wrap:nowrap;margin:0}
body[data-ui-theme] #workspace .compact-queue .queue-controls button{margin:0;min-height:30px;padding:3px 8px;font-size:11px;white-space:nowrap}

/* Ships, research and garrison share the same illustrated object / value / action rhythm. */
body[data-ui-theme] #workspace .compact-shipyard{gap:8px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-row{grid-template-columns:100px minmax(190px,1fr) minmax(280px,440px);min-height:100px;padding:8px 12px;gap:8px 12px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-art{width:100px;height:80px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-title{display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-title h3{font-size:18px;line-height:1.4}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stock{display:flex;align-items:center;gap:4px;font-size:13px;line-height:1.4;margin:0}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stock .compact-glyph{width:14px;height:14px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-title .compact-info{margin-left:auto}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats{gap:6px 18px;margin:5px 0 0}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats>div{align-items:center;gap:4px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats dt{display:flex}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats dd{font-size:14px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-prerequisite{display:inline-block;min-height:26px;padding:3px 0;font-size:12px;line-height:1.4;margin-top:3px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-cost .costs{font-size:13px;gap:5px 14px;margin-bottom:6px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-order form{display:grid;grid-template-columns:64px minmax(80px,1fr) auto;gap:8px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-order input{width:64px;min-height:38px;font-size:15px;margin:0;padding:5px 7px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-order button{grid-column:auto;min-height:38px;margin:0;padding:5px 12px;font-size:13px}
body[data-ui-theme] #workspace .compact-shipyard .shipyard-order .duration{font-size:12px}

body[data-ui-theme] #workspace .compact-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body[data-ui-theme] #workspace .compact-research{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px;padding:10px;overflow:visible}
body[data-ui-theme] #workspace .compact-research>img{width:58px;height:70px;max-height:70px;min-height:0;object-fit:contain;padding:0;background:none}
body[data-ui-theme] #workspace .compact-research>.research-card-copy{display:block;min-width:0;padding:0;position:static}
body[data-ui-theme] #workspace .compact-card-title{display:flex;align-items:center;gap:7px;min-width:0}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .compact-card-title h3{flex:1;min-width:0;min-height:0;margin:0;padding:0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .level{display:inline;position:static;white-space:nowrap;font-size:12px;line-height:1.4;margin:0;padding:0;border:0;background:none}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .level svg{width:16px;height:16px}
body[data-ui-theme] #workspace .research-effect{display:flex;align-items:center;gap:5px;min-height:23px;font-size:13px;margin:2px 0;color:#59432e}
body[data-ui-theme] #workspace .research-effect small{font-size:11px;color:#59432e}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .costs{grid-column:auto;display:flex;flex-wrap:wrap;font-size:12px;gap:4px 9px;margin:4px 0}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .costs img{width:20px;height:20px}
body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .prerequisite-link{display:inline-flex;align-items:center;min-height:27px;margin:0;padding:3px 0;font-size:12px;line-height:1.3}
body[data-ui-theme] #workspace .research-card-action{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:6px}
body[data-ui-theme] #workspace .research-card-action .duration{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.4;margin:0}
body[data-ui-theme] #workspace .research-card-action .duration svg{width:15px;height:15px}
body[data-ui-theme] #workspace .research-card-action button{grid-column:auto;min-width:0;width:auto;min-height:36px;margin:0;padding:5px 8px;font-size:12px;line-height:1.4;white-space:nowrap}
body[data-ui-theme] #workspace .compact-troops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-ui-theme] #workspace .compact-troop{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:12px;padding:12px;overflow:visible}
body[data-ui-theme] #workspace .compact-troop>img{width:80px;height:125px;min-height:0;max-height:125px;object-fit:contain;padding:0;background:none}
body[data-ui-theme] #workspace .compact-troop>.troop-card-copy{min-width:0;padding:0;position:static}
body[data-ui-theme] #workspace .compact-troop .compact-stats{display:flex;align-items:center;gap:13px;margin:5px 0;font-size:13px;line-height:1.4}
body[data-ui-theme] #workspace .compact-stats>span{display:flex;align-items:center;gap:4px}
body[data-ui-theme] #workspace .compact-stats svg{width:17px;height:17px}
body[data-ui-theme] #workspace .compact-troop form{display:grid;grid-template-columns:64px minmax(70px,1fr) auto;align-items:center;gap:8px;margin-top:7px}
body[data-ui-theme] #workspace .compact-troop input{grid-column:1;grid-row:1;width:64px;min-height:38px;padding:5px 7px;margin:0;font-size:15px}
body[data-ui-theme] #workspace .compact-troop .training-estimate{grid-column:2;grid-row:1;min-width:0;margin:0;font-size:12px;line-height:1.4}
body[data-ui-theme] #workspace .compact-troop form button{grid-column:3;grid-row:1;width:auto;min-height:38px;margin:0;padding:5px 12px;font-size:13px;white-space:nowrap}
@media(min-width:951px) and (max-width:1199px){
 body[data-ui-theme] #workspace .compact-island .construction-grid,body[data-ui-theme] #workspace .compact-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-row{grid-template-columns:80px minmax(145px,1fr) minmax(250px,300px);gap:9px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-art{width:80px;height:76px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-title{flex-wrap:wrap;gap:4px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-title h3{font-size:16px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats{gap:5px 9px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order form{grid-template-columns:58px minmax(0,1fr)}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order button{grid-column:1/-1}
 body[data-ui-theme] #workspace .compact-troops{grid-template-columns:1fr}
}
@media(max-width:950px){
 body[data-ui-theme] #workspace .compact-info{width:44px;min-width:44px;height:44px;min-height:44px;font-size:18px}
 body[data-ui-theme] #workspace .island-workplaces{gap:6px;margin-bottom:8px}
 body[data-ui-theme] #workspace .island-workplaces .workplace{min-height:48px;max-height:none;gap:5px;padding:5px 6px}
 body[data-ui-theme] #workspace .island-workplaces .workplace-art{width:27px;height:27px}
 body[data-ui-theme] #workspace .workplace-copy{flex-direction:column;align-items:flex-start;gap:1px}
 body[data-ui-theme] #workspace .workplace-title,body[data-ui-theme] #workspace .workplace-copy>strong{font-size:13px}
 body[data-ui-theme] #workspace .workplace-arrow{display:none}
 body[data-ui-theme] #workspace .island-title-actions .text-button{width:44px;min-height:44px}
 body[data-ui-theme] #workspace .building-section-heading{margin-bottom:6px;min-height:44px}
 body[data-ui-theme] #workspace .compact-island .construction-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-ui-theme] #workspace .construction-card.compact-building{grid-template-columns:50px minmax(0,1fr) 44px;gap:6px 8px;padding:9px;scroll-margin-top:95px}
 body[data-ui-theme] #workspace .compact-building>.construction-art{width:50px;height:55px}
 body[data-ui-theme] #workspace .compact-building .construction-title h3{font-size:16px}
 body[data-ui-theme] #workspace .compact-building .building-level{font-size:14px}
 body[data-ui-theme] #workspace .compact-building .building-effect{font-size:14px;line-height:1.45;min-height:24px}
 body[data-ui-theme] #workspace .building-effect small{font-size:14px}
 body[data-ui-theme] #workspace .compact-building>.costs{font-size:15px;gap:5px 13px}
 body[data-ui-theme] #workspace .compact-building>.costs img{width:24px;height:24px}
 body[data-ui-theme] #workspace .compact-building .construction-action .duration{font-size:14px}
 body[data-ui-theme] #workspace .compact-building .construction-action button{min-height:44px;font-size:14px;padding:7px 10px}
 body[data-ui-theme] #workspace .construction-queue.compact-queue{padding:5px 8px;scroll-margin-top:95px}
 body[data-ui-theme] #workspace .compact-queue>header{gap:5px;min-height:44px;margin-bottom:4px;padding-bottom:3px}
 body[data-ui-theme] #workspace .compact-queue h3{font-size:15px;gap:4px}
 body[data-ui-theme] #workspace .compact-queue .queue-heading-art{width:25px;height:25px}
 body[data-ui-theme] #workspace .compact-queue .construction-state{font-size:12px}
 body[data-ui-theme] #workspace .compact-queue .queue-count{font-size:13px}
 body[data-ui-theme] #workspace .compact-queue .active-construction{flex:0 0 190px;min-width:190px;padding:6px 8px}
 body[data-ui-theme] #workspace .compact-queue .active-construction small{font-size:12px}
 body[data-ui-theme] #workspace .compact-queue .active-construction strong{font-size:14px}
 body[data-ui-theme] #workspace .compact-queue .active-construction span:not(.construction-art){font-size:14px}
 body[data-ui-theme] #workspace .compact-queue .construction-orders>li{flex:0 0 210px;min-width:210px;max-width:210px;gap:3px 6px;padding:5px 7px}
 body[data-ui-theme] #workspace .compact-queue .order-copy>strong{font-size:14px}
 body[data-ui-theme] #workspace .compact-queue .order-copy>small{font-size:12px}
 body[data-ui-theme] #workspace .compact-queue .order-copy .costs{display:none}
 body[data-ui-theme] #workspace .compact-queue .order-controls{gap:4px}
 body[data-ui-theme] #workspace .compact-queue .order-controls .text-button{width:44px;min-width:44px;height:44px;min-height:44px;font-size:21px}
 body[data-ui-theme] #workspace .compact-queue .queue-payment{font-size:12px;line-height:1.4}
 body[data-ui-theme] #workspace .compact-queue .queue-controls button{min-height:44px;font-size:13px;padding:5px 8px}
 body[data-ui-theme] #workspace .compact-queue .queue-controls .text-button{font-size:13px}
 body[data-ui-theme] #workspace .compact-queue>footer{gap:5px;margin-top:4px}
 body[data-ui-theme] #workspace .compact-queue .queue-idle{font-size:14px}
 body[data-ui-theme] #workspace .compact-queue .queue-free-slots{flex-basis:90px}
 body[data-ui-theme] #workspace .compact-queue .queue-free-slots small{font-size:12px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-row{grid-template-columns:80px minmax(0,1fr);gap:6px 10px;padding:10px;min-height:0}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-art{width:80px;height:78px;margin:0;align-self:center}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-title{flex-wrap:wrap;gap:4px 7px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-title h3{font-size:18px;flex:1;min-width:0}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-stock strong{font-size:16px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats{gap:5px 12px;margin-top:3px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats dd{font-size:15px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-stats .compact-glyph{width:17px;height:17px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order{grid-column:1/-1}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-cost .costs{font-size:15px;gap:5px 16px;margin:2px 0 7px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-cost .costs img{width:24px;height:24px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order form{grid-template-columns:66px minmax(70px,1fr) auto;gap:7px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order input{width:66px;min-height:44px;font-size:17px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order button{grid-column:3;width:auto;min-height:44px;padding:7px 11px;font-size:14px}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-order .duration{font-size:14px;line-height:1.4;text-align:center}
 body[data-ui-theme] #workspace .compact-shipyard .shipyard-prerequisite{min-height:44px;font-size:14px;padding:7px 0}
 body[data-ui-theme] #workspace .compact-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-ui-theme] #workspace .compact-research{grid-template-columns:50px minmax(0,1fr);gap:8px;padding:10px}
 body[data-ui-theme] #workspace .compact-research>img{width:50px;height:65px;min-height:0;max-height:65px}
 body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .compact-card-title h3{font-size:16px}
 body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .level{font-size:14px}
 body[data-ui-theme] #workspace .research-effect{font-size:15px;min-height:25px}
 body[data-ui-theme] #workspace .research-effect small{font-size:14px}
 body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .costs{font-size:15px;gap:5px 11px;margin:5px 0}
 body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .costs img{width:24px;height:24px}
 body[data-ui-theme] #workspace :is(.compact-research,.compact-troop) .prerequisite-link{min-height:44px;font-size:14px;padding:6px 0}
 body[data-ui-theme] #workspace .research-card-action .duration{font-size:14px}
 body[data-ui-theme] #workspace .research-card-action button{min-height:44px;font-size:14px;padding:7px 10px}
 body[data-ui-theme] #workspace .compact-troops{grid-template-columns:1fr;gap:8px}
 body[data-ui-theme] #workspace .compact-troop{grid-template-columns:65px minmax(0,1fr);gap:9px;padding:10px}
 body[data-ui-theme] #workspace .compact-troop>img{width:65px;height:120px;min-height:0;max-height:120px}
 body[data-ui-theme] #workspace .compact-troop .compact-stats{font-size:15px;gap:14px;margin:4px 0}
 body[data-ui-theme] #workspace .compact-troop form{grid-template-columns:62px minmax(60px,1fr) auto;gap:7px;margin-top:5px}
 body[data-ui-theme] #workspace .compact-troop input{width:62px;min-height:44px;font-size:17px}
 body[data-ui-theme] #workspace .compact-troop .training-estimate{font-size:14px}
 body[data-ui-theme] #workspace .compact-troop form button{min-height:44px;font-size:14px;padding:6px 8px}
}
@media(max-width:639px){
 body[data-ui-theme] #workspace .compact-island .construction-grid,body[data-ui-theme] #workspace .compact-progress{grid-template-columns:1fr}
 body[data-ui-theme] #workspace .compact-progress .compact-research{grid-template-columns:55px minmax(0,1fr)}
 body[data-ui-theme] #workspace .compact-card-title{gap:6px}
}

/* Building price and command share one baseline; the short duration sits by the benefit. */
body[data-ui-theme] #workspace .construction-card.compact-building{grid-template-rows:auto auto}
body[data-ui-theme] #workspace .compact-building .building-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px}
body[data-ui-theme] #workspace .compact-building .building-metadata .building-effect{margin:0;min-height:22px}
body[data-ui-theme] #workspace .compact-building .card-build-time{display:flex;align-items:center;gap:4px;margin:0;font-size:11px;line-height:1.5;color:#59432e}
body[data-ui-theme] #workspace .compact-building .card-build-time .compact-glyph{width:13px;height:13px}
body[data-ui-theme] #workspace .compact-building .construction-footer{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
body[data-ui-theme] #workspace .compact-building .construction-footer>.costs{display:flex;flex:1;flex-wrap:wrap;gap:5px 10px;min-height:22px;margin:0;font-size:13px;line-height:1.4}
body[data-ui-theme] #workspace .compact-building .construction-footer>.costs img{width:22px;height:22px}
body[data-ui-theme] #workspace .compact-building .construction-action{display:block;flex:none;margin:0}
@media(max-width:950px){
 body[data-ui-theme] #workspace .compact-building .building-metadata{gap:3px 8px}
 body[data-ui-theme] #workspace .compact-building .card-build-time{font-size:14px;line-height:1.45}
 body[data-ui-theme] #workspace .compact-building .construction-footer{gap:7px}
 body[data-ui-theme] #workspace .compact-building .construction-footer>.costs{font-size:15px;gap:5px 8px}
 body[data-ui-theme] #workspace .compact-building .construction-footer>.costs img{width:24px;height:24px}
}
@media(max-width:950px){
 body[data-ui-theme] #workspace .island-workplaces .workplace{padding:4px;gap:4px}
 body[data-ui-theme] #workspace .island-workplaces .workplace-art{width:24px;height:28px}
 body[data-ui-theme] #workspace .workplace-title,body[data-ui-theme] #workspace .workplace-copy>strong{font-size:14px}
 body[data-ui-theme] #workspace .compact-queue :is(.construction-state,.queue-count,.active-construction small,.order-copy>small,.queue-payment,.queue-free-slots small){font-size:14px}
 body[data-ui-theme] #workspace .compact-queue .queue-controls :is(button,.text-button){font-size:14px}
}
/* Touch commands live in the plan's heading; no explanatory footer consumes the phone viewport. */
body[data-ui-theme] #workspace .compact-queue .queue-payment.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-ui-theme] #workspace .compact-queue>header .queue-controls{margin:0}
@media(max-width:950px){
 body[data-ui-theme] #workspace .compact-queue>header{gap:5px;padding-bottom:3px;margin-bottom:4px;min-height:44px}
 body[data-ui-theme] #workspace .compact-queue .construction-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-ui-theme] #workspace .compact-queue .queue-controls{gap:4px}
 body[data-ui-theme] #workspace .compact-queue .queue-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:19px;text-decoration:none}
 body[data-ui-theme] #workspace .compact-queue .queue-control-label{display:none}
 body[data-ui-theme] #workspace .compact-queue .construction-orders>li{padding:4px 7px;gap:3px 6px}
 body[data-ui-theme] #workspace .compact-queue .order-copy>strong,body[data-ui-theme] #workspace .compact-queue .order-copy>small{line-height:1.2}
 body[data-ui-theme] #workspace .compact-queue .active-construction{padding:5px 8px}
 body[data-ui-theme] #workspace .compact-queue:has(.queue-idle):not(:has(.construction-orders>li))>header{border-bottom:0;margin-bottom:0;padding-bottom:0}
}
body[data-ui-theme] #workspace .island-title-actions .text-button[data-show-queue]{width:auto;min-width:48px;gap:6px;padding:3px 5px}
body[data-ui-theme] #workspace .island-title-actions .section-action-art{width:24px;height:24px;flex:0 0 24px}
body[data-ui-theme] #workspace .island-title-actions .queue-short-count{display:inline-block;min-width:12px;color:#fff3d7;font-size:14px;line-height:1.4;font-weight:700;background:#322114}
body[data-ui-theme] #workspace .compact-queue .queue-controls .text-button{border:1px solid #9c7845;background:#ead5ab;color:#4d3117;text-decoration:none}
@media(max-width:950px){body[data-ui-theme] #workspace .compact-queue .queue-controls button.text-button{font-size:22px}}
@media(max-width:950px){
 body[data-ui-theme] #workspace .construction-queue.compact-queue{padding:4px 8px}
 body[data-ui-theme] #workspace .compact-queue>header{padding-bottom:0;margin-bottom:2px}
 body[data-ui-theme] #workspace .compact-queue .construction-orders>li{padding:3px 7px}
}
