/* A captain's instrument panel: one title, visible values, explanations on demand. */
:root body[data-ui-theme] #workspace .page-heading{position:relative;width:auto;height:auto;overflow:visible;clip-path:none;display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 10px;margin:8px 0;border:1px solid #997442;background:linear-gradient(90deg,#132c36f7 28%,#132c3699),var(--scene) center 42%/cover;box-shadow:inset 0 0 0 1px #f2d49a16}
:root body[data-ui-theme] #workspace .page-heading::after{display:none}
:root body[data-ui-theme] #workspace .page-title-block{flex:1;min-width:0}
:root body[data-ui-theme] #workspace .page-heading h1{font-size:23px;line-height:1.2;margin:0;color:#fff3d7}
:root body[data-ui-theme] #workspace .page-heading .eyebrow{display:none}
:root body[data-ui-theme] #workspace .view-emblem{display:block;width:34px;height:34px;margin:0;flex:0 0 34px}
:root body[data-ui-theme] #workspace .view-emblem .painted-icon{width:34px;height:34px}
:root body[data-ui-theme] #workspace .world-meta{font-size:11px;line-height:1.4;max-width:none;gap:7px;color:#fff3d7;white-space:nowrap}
:root body[data-ui-theme] #workspace .world-meta :is(.divider,#server-clock){display:none}
:root body[data-ui-theme] #workspace .content-page{padding-top:0}
:root body[data-ui-theme][data-player=guest] #workspace .island-command-strip{display:none!important}
:root body[data-ui-theme] :is(#workspace,#modal) .info-button{display:inline-grid;place-items:center;flex:0 0 auto;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid #9c6d2c;border-radius:50%;background:radial-gradient(circle at 40% 30%,#f9e7ba,#d2ae6c);box-shadow:inset 0 0 0 2px #f8e3af,inset 0 0 0 3px #b58b4e,0 1px 2px #22150d40;color:#352414;text-shadow:none;font:italic 700 18px/1 Georgia,serif;text-decoration:none}
:root body[data-ui-theme] :is(#workspace,#modal) .info-button:hover{background:#ffedc5;border-color:#5e3b19}
:root body[data-ui-theme] #workspace .page-heading .info-button{order:3}
:root body[data-ui-theme] #workspace #activity-bar.harbor-briefing{min-height:44px;padding:4px 9px;margin:6px 0}
:root body[data-ui-theme] #workspace #activity-bar[hidden]{display:none!important}
:root body[data-ui-theme] #workspace .briefing-main{display:flex;gap:8px;align-items:center}
:root body[data-ui-theme] #workspace .briefing-emblem{flex:0 0 26px;width:26px}
:root body[data-ui-theme] #workspace .briefing-emblem .painted-icon{width:26px;height:26px}
:root body[data-ui-theme] #workspace .briefing-copy>strong{font-size:14px;line-height:1.4;margin:0}
:root body[data-ui-theme] #workspace .briefing-copy .briefing-time{display:inline-block;font-size:13px;margin-left:9px;color:#65411f;white-space:nowrap}
:root body[data-ui-theme] #workspace .briefing-copy>span{display:none}
:root body[data-ui-theme] #workspace .briefing-main>button{margin:0;min-height:36px;padding:4px 10px;font-size:13px}
:root body[data-ui-theme] #workspace .briefing-links{display:none}
:root body[data-ui-theme] #workspace .queue{padding:7px 12px;margin:0 0 8px;min-height:40px;font-size:14px;gap:8px;border-width:1px}
:root body[data-ui-theme] #workspace .queue>span{display:flex;align-items:center;gap:7px}
:root body[data-ui-theme] #workspace .empty{min-height:0;padding:24px 16px;margin:0 auto;max-width:700px}
:root body[data-ui-theme] #workspace .empty h3{font-size:22px;margin:0 0 8px}
:root body[data-ui-theme] #workspace .empty p{font-size:15px;line-height:1.5;margin:6px 0 14px}
/* A report headline is enough to scan the log; its full contents open on demand. */
:root body[data-ui-theme] #workspace .reports{gap:6px}
:root body[data-ui-theme] #workspace .report{padding:0;border-width:1px}
:root body[data-ui-theme] #workspace .report>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:9px 12px;cursor:pointer;list-style:none;color:#322317}
:root body[data-ui-theme] #workspace .report>summary::-webkit-details-marker{display:none}
:root body[data-ui-theme] #workspace .report>summary::after{content:'⌄';margin-left:auto;color:#664321;font-size:20px}
:root body[data-ui-theme] #workspace .report[open]>summary::after{content:'⌃'}
:root body[data-ui-theme] #workspace .report>summary h3{margin:0;font-size:16px;line-height:1.4;flex:1}
:root body[data-ui-theme] #workspace .report>summary small{font-size:11px;line-height:1.4;max-width:140px;color:#5b4128}
:root body[data-ui-theme] #workspace .report>p{margin:0;padding:4px 14px 14px;font-size:15px;line-height:1.6}
:root body[data-ui-theme] #workspace .report>.battle-archive{margin:0 14px 14px}
/* Readable paper dialogs, including touch, keyboard, Escape and focus return. */
:root body[data-ui-theme] #modal.info-dialog{width:520px;background:linear-gradient(#f4e7ccf5,#f4e7ccf5),url('/art/interface/ledger-paper.webp') center/640px;color:#2d2117;border:2px solid #aa8046;box-shadow:0 12px 60px #0008}
:root body[data-ui-theme] #modal.info-dialog .modal-inner{padding:22px;background:transparent;color:#2d2117}
:root body[data-ui-theme] #modal.info-dialog .modal-top{gap:12px;margin-bottom:12px}
:root body[data-ui-theme] #modal.info-dialog .modal-top h2{font-size:24px;line-height:1.3;color:#2d2117}
:root body[data-ui-theme] #modal.info-dialog .modal-top button{min-height:40px;min-width:40px;margin:0}
:root body[data-ui-theme] #modal.info-dialog .context-help{color:#2d2117}
:root body[data-ui-theme] #modal.info-dialog .context-help p{font-size:15px;line-height:1.65;color:#2d2117;margin:10px 0 14px}
:root body[data-ui-theme] #modal.info-dialog .info-art{float:left;width:58px;height:58px;margin:0 14px 6px 0;opacity:1}
:root body[data-ui-theme] #modal.info-dialog .info-vessel{display:block;width:150px;height:110px;object-fit:contain;margin:0 auto}
:root body[data-ui-theme] #modal.info-dialog .info-effect{padding:10px 12px;border-left:3px solid #9b7136;background:#dbc79c66;clear:both}
:root body[data-ui-theme] #modal.info-dialog .info-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;clear:both;margin:16px 0}
:root body[data-ui-theme] #modal.info-dialog .info-values>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #9a78474d;padding-bottom:5px;font-size:14px;color:#2d2117}
:root body[data-ui-theme] #modal.info-dialog .info-values dd{margin:0;font-size:16px;font-weight:700}
:root body[data-ui-theme] #workspace .compact-building .building-effect small{color:#3b2919}
:root body[data-ui-theme] #modal.info-dialog .context-help>.text-button{clear:both;display:block;min-height:40px;font-size:14px;padding:8px 0;color:#593612}
@media(min-width:951px){
 :root body[data-ui-theme] .shell{grid-template-columns:196px minmax(0,1fr)}
 :root body[data-ui-theme] #sidebar{padding:9px 9px 12px}
 :root body[data-ui-theme] #sidebar:after{left:187px}
 :root body[data-ui-theme] #sidebar .brand{gap:6px;padding-bottom:6px;margin:0}
 :root body[data-ui-theme] #sidebar .brand-crest{width:46px;height:50px}
 :root body[data-ui-theme] #sidebar .brand>span{font-size:17px}
 :root body[data-ui-theme] #sidebar .brand small{font-size:9px;margin-top:4px}
 :root body[data-ui-theme] #sidebar .world-label{padding:3px 6px;margin:0;font-size:10px}
 :root body[data-ui-theme] #sidebar #navigation{gap:2px}
 :root body[data-ui-theme] #sidebar #navigation .nav-group-label{margin:8px 5px 3px;font-size:9px}
 :root body[data-ui-theme] #sidebar #navigation .nav-item{min-height:36px;padding:2px 5px;gap:7px;font-size:13px;line-height:1.3}
 :root body[data-ui-theme] #sidebar #navigation .painted-icon{width:30px;height:30px}
 :root body[data-ui-theme] #sidebar .sidebar-section{margin:8px 5px 4px;font-size:10px}
 :root body[data-ui-theme] #sidebar .my-islands button{min-height:38px;padding:3px;font-size:12px}
 :root body[data-ui-theme] #sidebar .my-islands button small{font-size:9px}
 :root body[data-ui-theme] #sidebar .my-islands .painted-icon{width:28px;height:28px}
 :root body[data-ui-theme] #sidebar .sidebar-bottom{padding-top:8px;margin-top:auto}
 :root body[data-ui-theme] #sidebar .season{display:none}
 :root body[data-ui-theme] #sidebar .sidebar-bottom>.nav-item{min-height:34px;padding:2px 5px;gap:7px;font-size:12px}
 :root body[data-ui-theme] #sidebar .sidebar-bottom>.nav-item .painted-icon{width:28px;height:28px}
 :root body[data-ui-theme] #sidebar .legal-links{font-size:9px;margin-top:5px}
 :root body[data-ui-theme] #workspace{padding-left:16px;padding-right:16px}
 :root body[data-ui-theme] #workspace .topbar .helm{height:46px;gap:10px}
 :root body[data-ui-theme] #workspace .topbar{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;padding-bottom:5px}
 :root body[data-ui-theme] #workspace .topbar #active-island{font-size:17px;min-height:28px}
 :root body[data-ui-theme] #workspace .topbar .current-island .painted-icon{width:32px;height:32px}
 :root body[data-ui-theme] #workspace .topbar .current-island small{font-size:10px}
 :root body[data-ui-theme] #workspace .topbar .resource{height:44px;min-height:44px;padding:3px 6px;gap:5px}
 :root body[data-ui-theme] #workspace .topbar .resource-icon{width:26px;height:26px;flex-basis:26px}
 :root body[data-ui-theme] #workspace .topbar .resource strong{font-size:18px}
 :root body[data-ui-theme] #workspace .topbar #harbor-summary{flex-basis:310px;width:310px;min-width:310px;min-height:44px;padding:0 2px}
 :root body[data-ui-theme] #workspace .topbar .header-ship{grid-template-columns:36px minmax(0,1fr);grid-template-rows:28px 12px;min-height:40px}
 :root body[data-ui-theme] #workspace .topbar .ship-miniature{width:36px;height:28px}
 :root body[data-ui-theme] #workspace .topbar .header-ship strong{font-size:15px}
 :root body[data-ui-theme] #workspace .topbar .ship-label{font-size:10px}
 :root body[data-ui-theme] #workspace .topbar #header-status{flex-basis:132px;min-height:44px;max-width:132px}
 :root body[data-ui-theme] #workspace #inventory-toggle{display:none}
 :root body[data-ui-theme] #workspace .map-card{height:calc(var(--game-height,100dvh) - 176px);min-height:490px}
 :root body[data-ui-theme] #workspace .map-layout{grid-template-columns:minmax(0,1fr) 255px;gap:12px}
 :root body[data-ui-theme] #workspace .island-art{height:115px;min-height:115px}
 :root body[data-ui-theme] #workspace .detail-body{padding:13px}
 :root body[data-ui-theme] #workspace .detail-body h2{font-size:23px;margin:7px 0}
}
@media(min-width:951px) and (max-width:1250px){
 :root body[data-ui-theme] #workspace .topbar .island-command-strip{display:flex;gap:5px}
 :root body[data-ui-theme] #workspace .topbar #harbor-summary{flex-basis:240px;width:240px;min-width:240px}
 :root body[data-ui-theme] #workspace .topbar #header-status{flex-basis:100px;max-width:100px}
 :root body[data-ui-theme] #workspace .topbar .resource-icon{width:21px;height:21px;flex-basis:21px}
 :root body[data-ui-theme] #workspace .topbar .resource .resource-label{display:none}
 :root body[data-ui-theme] #workspace .topbar .resource strong{font-size:16px}
 :root body[data-ui-theme] #workspace .topbar .header-ship{grid-template-columns:25px minmax(0,1fr)}
 :root body[data-ui-theme] #workspace .topbar .ship-miniature{width:25px}
}
@media(max-width:950px){
 :root{--mobile-helm:64px;--mobile-dock:66px}
 :root body[data-ui-theme] #workspace{padding-left:12px;padding-right:12px}
 :root body[data-ui-theme] #workspace .topbar{margin-left:-12px;margin-right:-12px;padding-left:0;padding-right:0;padding-top:64px;padding-bottom:6px}
 :root body[data-ui-theme] #workspace .topbar .helm{height:64px;min-height:64px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:6px;padding:4px 10px;align-items:center}
 :root body[data-ui-theme] #workspace .topbar #mobile-menu{grid-column:1;grid-row:1;min-width:44px;width:44px;min-height:44px;height:44px;padding:4px}
 :root body[data-ui-theme] #workspace .topbar .current-island{grid-column:2;grid-row:1;display:flex;min-width:0;gap:0;max-width:none}
 :root body[data-ui-theme] #workspace .topbar .current-island>span{display:none}
 :root body[data-ui-theme] #workspace .topbar .current-island>div{min-width:0;width:100%}
 :root body[data-ui-theme] #workspace .topbar .current-island small{font-size:14px;line-height:1.2;margin:0;white-space:nowrap}
 :root body[data-ui-theme] #workspace .topbar #active-island{font-size:16px;min-height:44px;height:44px;line-height:1.3;width:100%;max-width:none;padding:0 15px 0 0;margin-top:-5px}
 :root body[data-ui-theme] #workspace .topbar #account{grid-column:4;grid-row:1;width:44px;min-width:44px;position:static;margin:0}
 :root body[data-ui-theme] #workspace .topbar .captain-portrait{width:40px;height:40px}
 :root body[data-ui-theme] #workspace .topbar #player-menu-toggle{padding:0;min-width:44px;width:44px;height:44px;min-height:44px}
 :root body[data-ui-theme] #workspace .topbar #inventory-toggle{grid-column:3;grid-row:1;grid-template-columns:1fr;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:3px;margin:0;position:static;order:0;border:1px solid #bd935b66;background:linear-gradient(#352319dc,#352319dc),url('/art/interface/cabin-timber.webp');color:#fff3d7;box-shadow:inset 0 0 0 1px #d8b67922}
 :root body[data-ui-theme] #workspace #inventory-toggle .inventory-art{display:block;grid-column:1;grid-row:1;width:34px;height:34px}
 :root body[data-ui-theme] #workspace #inventory-toggle .inventory-art .painted-icon{width:34px;height:34px}
 :root body[data-ui-theme] #workspace #inventory-toggle :is(#mobile-harbor-total,.inventory-chevron){display:none}
 :root body[data-ui-theme] #workspace .topbar .island-command-strip{display:flex;flex-wrap:wrap;gap:6px;padding:4px 10px 0;max-width:none;margin:0}
 :root body[data-ui-theme] #workspace #resources{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%;flex:0 0 100%;margin:0}
 :root body[data-ui-theme] #workspace .topbar .resource{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:3px;padding:5px 4px;min-height:54px;height:54px;border-width:1px}
 :root body[data-ui-theme] #workspace .topbar .resource-icon{display:block;position:static;width:24px;height:28px;flex-basis:24px;opacity:1}
 :root body[data-ui-theme] #workspace .topbar .resource-icon .resource-illustration{width:24px;height:28px;opacity:1}
 :root body[data-ui-theme] #workspace .topbar .resource-copy{min-width:0;text-align:left;width:auto;display:block}
 :root body[data-ui-theme] #workspace .topbar .resource strong{font-size:16px;line-height:1.25;letter-spacing:-.03em}
 :root body[data-ui-theme] #workspace #resources .resource small{display:block;margin:1px 0 0;line-height:1.1}
 :root body[data-ui-theme] #workspace #resources .resource-label{display:none!important}
 :root body[data-ui-theme] #workspace #resources .rate{display:block;font-size:14px;line-height:1.2;white-space:nowrap}
 :root body[data-ui-theme] #workspace #resources .resource-gauge{position:absolute;bottom:1px;left:3px;width:calc(100% - 6px);height:2px}
 :root body[data-ui-theme] #workspace .topbar:not(.inventory-open) :is(#harbor-summary,#header-status){display:none!important}
 :root body[data-ui-theme] #workspace .topbar.inventory-open #harbor-summary{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px;gap:5px;min-height:72px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open #header-status{display:flex;flex:1 1 100%;min-height:44px;padding:6px 10px;gap:10px;font-size:14px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open #header-status :is(strong,small){font-size:14px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .header-ship{min-height:60px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px;padding:3px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .ship-miniature{width:34px;height:28px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .header-ship-copy{display:contents}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .header-ship strong{font-size:17px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .ship-label{flex-basis:100%;font-size:14px;text-align:center;line-height:1.2}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .header-army{min-height:60px;padding:3px}
 :root body[data-ui-theme] #workspace .topbar.inventory-open .garrison-label{font-size:14px}
 :root body[data-ui-theme] #workspace .page-heading{margin:6px 0;min-height:48px;padding:2px 7px;gap:7px}
 :root body[data-ui-theme] #workspace .page-heading h1{font-size:21px}
 :root body[data-ui-theme] #workspace .world-meta{display:none}
 :root body[data-ui-theme] :is(#workspace,#modal) .info-button{width:44px;min-width:44px;height:44px;min-height:44px;background-size:auto;font-size:20px}
 :root body[data-ui-theme] #workspace .briefing-main{display:flex;gap:6px;flex:1}
 :root body[data-ui-theme] #workspace .briefing-copy{flex:1;min-width:0}
 :root body[data-ui-theme] #workspace .briefing-copy>strong{font-size:14px;line-height:1.35}
 :root body[data-ui-theme] #workspace .briefing-copy .briefing-time{font-size:14px;margin-left:0;display:block}
 :root body[data-ui-theme] #workspace .briefing-main>button{width:auto;min-height:44px;flex:0 0 auto;font-size:14px;padding:6px 9px}
 :root body[data-ui-theme] #workspace .briefing-emblem{display:none}
 :root body[data-ui-theme] #workspace .queue{font-size:14px;min-height:44px;padding:6px 9px}
 :root body[data-ui-theme] #workspace .empty{padding:20px 10px}
 :root body[data-ui-theme] #workspace .empty p{font-size:16px}
 :root body[data-ui-theme] #workspace .report>summary{min-height:58px;gap:8px;padding:9px 10px}
 :root body[data-ui-theme] #workspace .report>summary small{font-size:14px;max-width:105px}
 :root body[data-ui-theme] #workspace .report>summary h3{font-size:16px}
 :root body[data-ui-theme] #workspace .report>p{font-size:16px}
 :root body[data-ui-theme] #modal.info-dialog{position:fixed;inset:auto 12px;top:50%;transform:translateY(-50%);width:calc(100% - 24px);max-width:520px;max-height:calc(var(--game-height,100dvh) - 32px);margin:0 auto;overflow:auto;box-sizing:border-box;border-radius:1px}
 :root body[data-ui-theme] #modal.info-dialog .modal-inner{padding:16px}
 :root body[data-ui-theme] #modal.info-dialog .context-help p{font-size:16px}
 :root body[data-ui-theme] #modal.info-dialog .modal-top button{min-height:44px;min-width:44px}
 :root body[data-ui-theme] #modal.info-dialog .context-help>.text-button{font-size:14px;min-height:44px}
 :root body[data-ui-theme] #modal.info-dialog .info-values{grid-template-columns:1fr}
 :root body[data-ui-theme] #workspace .guide-achievement-footer .guide-quiet{font-size:14px}
 :root body[data-ui-theme] #sidebar .brand{padding-bottom:8px;gap:9px}
 :root body[data-ui-theme] #sidebar .brand-crest{width:52px;height:58px}
 :root body[data-ui-theme] #sidebar .brand>span{font-size:20px}
 :root body[data-ui-theme] #sidebar .world-label{padding:5px 8px;margin-bottom:4px;min-height:28px;font-size:13px}
 :root body[data-ui-theme] #sidebar #navigation{gap:5px}
 :root body[data-ui-theme] #sidebar #navigation .nav-group-label{font-size:12px;margin:10px 5px 3px}
 :root body[data-ui-theme] #sidebar #navigation .nav-item{min-height:64px;padding:4px 6px;gap:2px;justify-content:center;font-size:16px;line-height:1.2}
 :root body[data-ui-theme] #sidebar #navigation .nav-item .painted-icon{width:32px;height:32px}
 :root body[data-ui-theme] #sidebar #navigation .nav-label{font-size:16px;line-height:1.25}
 :root body[data-ui-theme][data-player=guest] #workspace .topbar .helm{grid-template-columns:44px minmax(0,1fr) auto}
 :root body[data-ui-theme][data-player=guest] #workspace .topbar #inventory-toggle{display:none}
 :root body[data-ui-theme][data-player=guest] #workspace .topbar #account{grid-column:3;min-width:0;width:auto}
 :root body[data-ui-theme][data-player=guest] #workspace #account>[data-auth=register]{display:none}
 :root body[data-ui-theme][data-player=guest] #workspace #account>[data-auth=login]{font-size:14px;min-height:44px;margin:0;padding:5px 8px}
}
