#treemap-view{height:100dvh;background:#f5f7f8;color:#22333f;overflow:auto;padding:28px 32px;font-family:'DM Sans',sans-serif;box-sizing:border-box}#treemap-view[hidden]{display:none}.tree-header{display:flex;justify-content:space-between;align-items:center;height:auto;padding:0 0 24px;background:none;border-bottom:1px solid #dbe1e5;gap:20px}.tree-header h1{font-size:25px;letter-spacing:-.7px;margin:0 0 7px}.tree-header p{font-size:13px;color:#647581;margin:0}.tree-header nav{display:flex;gap:4px;flex-shrink:0}.tree-header button,.tree-breadcrumb button,.tree-empty-countries button,.tree-inspector button{background:white;color:#344954;border:1px solid #d5dde1;border-radius:5px;padding:8px 13px;font-size:12px}.tree-header [aria-current]{background:#283f4e;color:white;border-color:#283f4e}.tree-summary{display:flex;justify-content:space-between;gap:20px;padding:18px 0;font-size:13px;color:#647581}.tree-summary b{color:#22333f}.tree-breadcrumb{display:flex;gap:12px;align-items:center}.tree-breadcrumb button{border:0;background:none;padding:0}.tree-separator{padding:0 9px}.tree-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:24px}.tree-chart{position:relative;height:calc(100dvh - 230px);min-height:350px}.tree-group{position:absolute;box-sizing:border-box;border:3px solid #f5f7f8;background:#e5eaed;overflow:hidden}.tree-group-title{width:100%;height:30px;border:0;background:#e5eaed;text-align:left;padding:4px 8px;font-size:12px;font-weight:600;color:#364b58;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;justify-content:space-between;gap:8px}.tree-group-title:hover{background:#d8e1e6}.tree-countries{position:absolute;left:1px;top:32px}.tree-country{position:absolute;border:2px solid #f5f7f8;border-radius:0;background:var(--tree-color);color:#22333f;padding:12px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;min-width:0;min-height:0}.tree-country span{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.tree-country strong{font-size:clamp(18px,2vw,32px);font-weight:500;font-variant-numeric:tabular-nums}.tree-country:hover{filter:brightness(1.05)}.tree-country.is-selected{box-shadow:inset 0 0 0 3px #344e62}.tree-country.is-small{padding:4px}.tree-country.is-small span{font-size:10px;white-space:nowrap}.tree-country.is-small strong{font-size:13px}.tree-inspector{border-left:1px solid #dbe1e5;padding:18px 0 18px 22px}.tree-inspector h2{font-size:18px;line-height:1.35;margin:8px 0 18px}.tree-inspector p{font-size:13px;line-height:1.65;color:#667884}.tree-detail-continent{font-size:12px;color:#667884}.tree-detail-value{font-size:42px;letter-spacing:-1px}.tree-detail-value span{display:block;font-size:12px;letter-spacing:0;color:#667884}.tree-empty-countries{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:12px;color:#687984}.tree-empty-countries button{padding:5px 9px}.tree-empty-countries b{margin-left:8px}.tree-empty{padding:50px 24px;color:#687984;line-height:1.8}body:has(#treemap-view:not([hidden])) main{padding:0}@media(max-width:760px){#treemap-view{padding:18px 12px}.tree-header{align-items:flex-start;flex-direction:column;gap:14px}.tree-header h1{font-size:22px}.tree-summary{flex-direction:column;gap:10px}.tree-workspace{grid-template-columns:1fr}.tree-chart{height:55dvh;min-height:330px}.tree-inspector{border-left:0;border-top:1px solid #dbe1e5;padding:12px 0}.tree-country{padding:7px}.tree-country span{font-size:12px}}
.tree-header h1{font-family:'DM Sans',sans-serif;font-weight:600}.tree-country span{flex-shrink:0}.tree-country.is-small{justify-content:flex-start;gap:2px}

.tree-group.is-single .tree-countries{top:1px}

.tree-country .tree-resource-list{display:block;flex:1;min-height:0;margin:12px 0 8px;overflow:hidden;width:100%;font-weight:400}.tree-resource{display:block;margin-bottom:7px;line-height:1.3}.tree-resource b{display:block;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-resource span,.tree-country .tree-resource span{display:block;font-size:11px;font-weight:400;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-country .tree-resource-more{display:block;font-size:11px;font-weight:400;margin-top:7px}.tree-inspector .tree-resource-list{display:block;margin:20px 0;max-height:45vh;overflow:auto}.tree-inspector .tree-resource{padding:7px 0;border-bottom:1px solid #dbe1e5}.tree-inspector .tree-resource b{white-space:normal}.tree-inspector .tree-resource span{white-space:normal}
.tree-resource[data-tree-person]{cursor:grab;touch-action:none;user-select:none}.tree-resource[data-tree-person]:hover{background:#ffffff26;border-radius:3px}.tree-person-dragging{opacity:.3}.tree-drop-target{outline:3px solid #344e62;outline-offset:-4px;filter:brightness(1.1)}.tree-drag-ghost{position:fixed;z-index:10000;pointer-events:none;padding:10px 16px;background:#fff;color:#22333f;box-shadow:0 4px 18px #22333f30;border:1px solid #ccd6dc;border-radius:5px;font:12px 'DM Sans',sans-serif;min-width:110px}.tree-drag-ghost b,.tree-drag-ghost span{display:block}.tree-drag-ghost span{opacity:.7;margin-top:3px}.tree-reserve-drop{margin-left:auto}
.tree-adjusting .tree-chart,.tree-adjusting .tree-empty-countries,.tree-adjusting .tree-inspector{pointer-events:none}.tree-adjusting-status{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);padding:10px 18px;background:#283f4eeF;color:white;border-radius:24px;font-size:13px;box-shadow:0 3px 12px #22333f20;z-index:50;pointer-events:none}.tree-adjusting .tree-group{overflow:visible}.tree-adjusting .tree-country{will-change:left,top,width,height}
/* Shared view navigation stays in the same corner in every workspace. */
#view-navigation{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));z-index:20;display:flex;gap:3px;padding:5px;background:#f9faf5f5;border:1px solid #bdcab2;border-radius:7px;box-shadow:0 2px 10px #22333f0d}#view-navigation[hidden]{display:none}#view-navigation button{display:flex;align-items:center;gap:7px;border:0;background:transparent;border-radius:4px;padding:9px 11px;min-height:40px;color:#53675c;font:12px 'DM Sans',sans-serif}#view-navigation button:hover{background:#e9eee4}#view-navigation button[aria-current]{background:#dce5d4;color:#263f33}#view-navigation svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}#map-dock{bottom:calc(76px + env(safe-area-inset-bottom))}#open-spreadsheet,.sheet-bottom>.return-map,.tree-header nav{display:none}#app>#spreadsheet-view{padding-bottom:calc(68px + env(safe-area-inset-bottom));box-sizing:border-box}#treemap-view{padding-bottom:90px}.tree-adjusting-status{bottom:80px}@media(max-width:600px){#view-navigation{left:10px}#view-navigation button{padding:8px;gap:5px}#map-dock{bottom:calc(76px + env(safe-area-inset-bottom))}.sheet-bottom .sheet-tabs{grid-column:1 / 5}}
/* One shared bottom bar for all views. */
.map-dock-controls[hidden],.sheet-settings{display:none!important}
#view-navigation .sound-off{display:none}#view-navigation [aria-pressed="true"] .sound-off{display:block}#view-navigation [aria-pressed="true"] .sound-waves{display:none}
@media(max-width:600px){#view-navigation{max-width:calc(100vw - 20px);box-sizing:border-box;gap:1px}#view-navigation button{padding:8px;flex-shrink:0}#view-navigation [data-view] span{display:none}}

[data-tree-edit]{cursor:text}[data-tree-edit]:hover{text-decoration:underline;text-decoration-color:#65788466;text-underline-offset:3px}.tree-name-input{font:inherit!important;color:inherit!important;width:100%;min-width:0;padding:1px 3px!important;margin:0!important;line-height:inherit!important;border:1px solid #7a919b!important;background:#fffffff0!important;border-radius:3px!important;box-sizing:border-box}.tree-person-found{background:#fff9d5!important;outline:1px solid #9b976b;border-radius:3px}
