/* The same header and section bar serve home, detail and directory views. */
:root[data-compact-dock=true] {--sidebar:0px;--header-height:60px;--world-home-dock-gap:calc(10px + env(safe-area-inset-bottom,0px))}
:root .heyloworld-app .world-home-header {
 --shell-edge-space:clamp(14px,2vw,28px);
 --shell-safe-edge:max(var(--shell-edge-space),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
 --shell-control-size:44px;
 --shell-action-width:var(--shell-control-size);
 --header-a:var(--bg);
 --header-ink:color-mix(in srgb,var(--section-deep) 72%,#101f32);
 --header-line:color-mix(in srgb,var(--section-glow) 38%,var(--line));
 --header-action-hover:color-mix(in srgb,var(--section-glow) 18%,var(--header-a));
 --header-switch:color-mix(in srgb,var(--section-glow) 27%,var(--header-a));
 --header-switch-active:color-mix(in srgb,var(--section-glow) 42%,var(--header-a));
 --header-shadow:0 6px 20px #0b243712;
 display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:clamp(4px,.5vw,7px);position:sticky;top:0;
 box-sizing:border-box;min-height:68px;height:auto;margin:0;padding:8px var(--shell-safe-edge);
 padding-block-start:calc(8px + env(safe-area-inset-top,0px));
 color:var(--header-ink);background:var(--header-a);border:0;border-block-end:1px solid var(--header-line);
 border-radius:0;box-shadow:var(--header-shadow);z-index:40;
}
:root[data-theme=dark] .heyloworld-app .world-home-header {
 --header-a:var(--section-deep);
 --header-ink:color-mix(in srgb,var(--section-glow) 20%,#f5fbfa);
 --header-line:color-mix(in srgb,var(--section-glow) 45%,var(--header-a));
 --header-action-hover:color-mix(in srgb,var(--section-glow) 14%,var(--header-a));
 --header-switch:color-mix(in srgb,var(--section-glow) 22%,var(--header-a));
 --header-switch-active:color-mix(in srgb,var(--section-glow) 28%,var(--header-a));
 --header-shadow:0 6px 20px #0005;
}
:root[data-interface-colour]:not([data-tab=reels]) .heyloworld-app .world-home-header {
 --header-a:var(--account-canvas);
}
:root .heyloworld-app .world-home-header .mobile-brand {
 display:flex;flex:0 1 330px;min-width:0;min-height:var(--shell-control-size);height:auto;margin:0;padding:0;align-items:center;justify-content:flex-start;
}
:root .heyloworld-app .world-home-header .mobile-brand .theme-brand {width:100%;min-width:0;max-width:320px}
:root .heyloworld-app .world-home-header .brand-wordmark.brand-lockup {
 width:100%!important;height:auto;aspect-ratio:1309/336;object-fit:contain;content:normal!important;
 filter:var(--brand-image-filter,none)!important;
}
:root[data-theme=dark] .heyloworld-app .world-home-header .brand-wordmark.brand-lockup {
 content:url('/assets/brand/lockup-light.webp?v=reference-20261016')!important;
}
:root .heyloworld-app .world-home-selector {
 position:relative;display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;gap:7px;
 min-width:var(--shell-control-size);min-height:var(--shell-control-size);
 max-inline-size:220px;margin:0;padding:5px 12px;border:1px solid var(--header-line);border-radius:999px;
 background:var(--header-switch);color:var(--header-ink);box-shadow:none;
 font-size:.875rem;font-weight:750;line-height:1.2;text-align:start;cursor:pointer;
 transition:background-color .16s ease,border-color .16s ease;
}
:root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-selector {
 margin-inline-start:auto;
}
:root .world-home-selector>span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .heyloworld-app .world-home-selector-vibe {box-sizing:border-box;flex:none;inline-size:112px}
:root .world-home-selector-vibe .world-home-signature {display:grid;flex:none;place-items:center;overflow:visible}
:root .world-home-signature svg {display:block;height:auto}

:root .world-home-selector>.icon {
 flex:none;width:18px;height:18px;
}
:root .world-home-selector::after {
 content:"";flex:none;width:6px;height:6px;margin:-4px 2px 0;border-right:1.5px solid currentColor;
 border-bottom:1.5px solid currentColor;transform:rotate(45deg);
}
@media(hover:hover){
 :root .heyloworld-app .world-home-selector:hover {
  background-color:var(--header-switch-active);
 }
}
:root .world-home-actions {display:flex;flex:none;align-items:center;gap:0;margin-inline-start:0}
@media(min-width:601px){
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-actions::before {
  content:"";align-self:center;inline-size:1px;block-size:30px;margin-inline-end:3px;background:var(--header-line);
 }
}
:root .heyloworld-app .world-home-actions>.icon-button,
:root .heyloworld-app .world-home-search>summary {
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 inline-size:var(--shell-action-width);min-inline-size:var(--shell-action-width);
 block-size:var(--shell-control-size);min-block-size:var(--shell-control-size);
 margin:0;padding:10px;border:0;border-radius:12px;list-style:none;color:var(--header-ink);background:transparent;cursor:pointer;
}
:root .world-home-search>summary::-webkit-details-marker {display:none}
:root .world-home-actions :is(.icon-button,summary)>.icon {width:23px;height:23px}
:root .heyloworld-app .world-home-actions>.icon-button:hover,
:root .heyloworld-app .world-home-search>summary:hover,
:root .heyloworld-app .world-home-search[open]>summary {background:var(--header-action-hover)}
:root .heyloworld-app .world-home-actions>[data-action=notifications][data-badge]::after {
 box-sizing:border-box;inset-block:2px auto;inset-inline:auto 1px;
 min-inline-size:17px;block-size:17px;padding-inline:2px;border:1px solid var(--header-a);border-radius:999px;
 background:#b83f23;color:#fff;font-size:.62rem;line-height:15px;text-align:center;
}
:root .world-home-search-panel {
 position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:var(--shell-safe-edge);width:min(420px,calc(100% - var(--shell-safe-edge) * 2));box-sizing:border-box;
 padding:9px;border:1px solid var(--line,#cfdfdf);border-radius:17px;background:var(--panel,var(--paper,#fff));box-shadow:0 8px 28px #111b2220;
}
:root .heyloworld-app .world-home-search-panel .search-box {display:flex;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:46px;height:auto;margin:0;border-radius:11px;background:var(--soft,#eff6f6)}
:root .world-home-search-panel .search-box>input {flex:1 1 0%;min-width:0;font-size:16px}
:root .world-home-search-panel .search-submit {display:grid;place-items:center;flex:none;min-width:44px;min-height:44px}
:root .heyloworld-app .world-home-search-panel .search-suggestions {width:100%;max-width:100%;inset-inline-start:0;top:calc(100% + 5px);max-height:min(340px,55dvh);overflow-y:auto}
:root[data-compact-dock=true] .heyloworld-app .sidebar {display:none}
:root[data-compact-dock=true] .heyloworld-app .main-shell {margin-inline-start:0}
:root .world-home-title {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root[data-compact-dock=true] .heyloworld-app .main-shell>.content {padding-top:14px;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
:root[data-compact-dock=true] .heyloworld-app .stories-bar {margin-block:0 12px;padding:8px;scroll-padding-inline:8px;gap:12px;background:transparent;border:0;box-shadow:none;border-radius:0;min-width:0}
:root .world-discovery-island {
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;gap:0;
 margin:0 0 16px;padding:4px;min-width:0;border:1px solid var(--line,#cfdfdf);border-radius:22px;
 background:var(--panel,var(--paper,#fff));background:color-mix(in srgb,var(--panel,var(--paper,#fff)) 85%,transparent);
 -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 4px 14px #14201208;
}
:root .world-discovery-island:after {content:"";position:absolute;left:50%;top:13px;bottom:13px;width:1px;background:var(--line,#cfdfdf);pointer-events:none}
:root .world-discovery-island>:is(button,a) {
 display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:54px;padding:7px 14px;
 border:0;border-radius:17px;color:var(--ink,#203a40);background:transparent;text-align:start;cursor:pointer;transition:background-color .16s ease,transform .16s ease;
}
:root .world-discovery-island>:is(button,a)>span:last-child {min-width:0}
:root .world-discovery-island strong {display:block;font-size:14px;font-weight:750;line-height:1.3}
:root .world-discovery-island small {display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted,#51696d)}
:root .island-symbol {display:grid;place-items:center;flex:none;color:var(--accent,#08778a)}
:root .island-symbol .icon {width:21px;height:21px}
:root .world-discovery-island>:is(button,a):hover,
:root .world-discovery-island>:is(button,a):active {background:var(--soft,#eff6f6)}
:root .world-discovery-island>:is(button,a):active {transform:scale(.985)}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock {
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:45;
 left:50%;right:auto;bottom:var(--world-home-dock-gap);transform:translateX(-50%);
 box-sizing:border-box;width:min(460px,calc(100% - 24px));height:auto;min-height:58px;gap:2px;margin:0;padding:3px 5px;
 border:1px solid var(--line,#cfdfdf);border-radius:22px;background:var(--panel,var(--paper,#fff));background:color-mix(in srgb,var(--panel,var(--paper,#fff)) 89%,transparent);
 -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 4px 18px #14201212;
}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock>button {
 display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:stretch;gap:3px;width:auto;height:auto;min-width:44px;min-height:50px;
 padding:3px 1px;margin:0;border:0;border-radius:16px;background:transparent;color:var(--muted,#51696d);font-size:var(--ui-type-meta,.75rem);line-height:1.25;transform:none;box-shadow:none;
}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock>button>.icon {width:21px;height:21px;flex:none}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock>button>span {position:static;max-width:100%;overflow-wrap:anywhere;white-space:normal;color:inherit;font-size:inherit;line-height:1.25}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock>button.active {color:var(--accent,#08778a);background:var(--soft,#eff6f6)}
:root[data-compact-dock=true] .heyloworld-app .mobile-dock>.dock-create {background:var(--accent,#08778a);color:var(--on-accent,#fff)}

:root .heyloworld-app :is(.world-home-header,.world-discovery-island,.mobile-dock) :is(button,summary):focus-visible {outline:2px solid var(--accent,#08778a);outline-offset:2px}
:root .heyloworld-app .world-home-header :is(button,summary):focus-visible {outline-color:var(--header-ink)}
@media(min-width:1101px){:root[data-compact-dock=true] .heyloworld-app .mobile-dock {left:50%}}
@media (max-width:1024px), (max-width:1366px) and (pointer:coarse){
 :root .heyloworld-app .world-home-header {
  --shell-edge-space:10px;
  gap:clamp(2px,.65vw,7px);min-height:calc(60px + env(safe-area-inset-top,0px));
 }
 :root .heyloworld-app .world-home-header .mobile-brand {flex-basis:clamp(140px,44vw,246px)}
 :root .heyloworld-app .world-home-selector {
  flex:0 0 auto;inline-size:max-content;min-inline-size:44px;max-inline-size:min(25%,180px);
  padding-inline:5px;gap:3px;font-size:.81rem;
 }
 :root .heyloworld-app .world-home-selector-vibe {inline-size:80px;max-inline-size:none}
 :root .world-home-signature svg {width:37px}
 :root .world-home-selector>.icon {width:15px;height:15px}
 :root .world-home-selector::after {margin-inline:0}
 :root .world-home-actions :is(.icon-button,summary)>.icon {width:20px;height:20px}
 :root[data-compact-dock=true] .heyloworld-app .main-shell>.content {padding-top:6px}
 :root .world-discovery-island {border-radius:18px;margin-bottom:10px;padding:2px}
 :root .world-discovery-island>:is(button,a) {padding:3px 8px;gap:5px;min-height:44px;border-radius:15px}
 :root .world-discovery-island strong {font-size:13px}
 :root .world-discovery-island small {font-size:12px;margin-top:1px;white-space:normal}
}
@media(max-width:760px){
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header {
  /* Align the painted H with the hamburger strokes inside its 44px control. */
  --shell-logo-optical-inset:12px;
 }
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .mobile-brand {
  box-sizing:border-box;
  flex-basis:calc(clamp(140px,44vw,246px) + var(--shell-logo-optical-inset));
  padding-inline-start:var(--shell-logo-optical-inset);
 }
}
@media(max-width:743px){
 /* Give the switcher the space reclaimed from the phone actions, pixel for pixel. */
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header {
  --shell-action-count:3;
  --shell-action-reduction:3px;
  --shell-action-width:calc(var(--shell-action-base-width,var(--shell-control-size)) - var(--shell-action-reduction));
 }
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header[data-has-assistant] {--shell-action-count:4}
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .mobile-brand {margin-inline-end:auto}
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-selector {
  margin-inline-start:calc(var(--shell-action-count) * var(--shell-action-reduction));
 }
}
@media(max-width:480px){
 /* The phone header keeps all four actions within the same row. */
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header {
  --shell-action-base-width:38px;
  --shell-logo-optical-inset:10px;
 }
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-actions>.icon-button,
 :root:not([data-tab=reels]) .heyloworld-app .world-home-search>summary {
  padding-inline:7px;
 }
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-selector {
  padding-inline:4px;
 }
 :root:not([data-tab=reels]) .world-home-header .world-home-selector>.icon {display:none}
 :root:not([data-tab=reels]) .world-home-header .world-home-selector-vibe {inline-size:max-content}
 :root:not([data-tab=reels]) .world-home-header .world-home-signature svg {width:32px}
}
@media(max-width:375px){
 /* The labeled button keeps its dropdown arrow even in the compact state. */
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header .world-home-selector {
  inline-size:var(--shell-control-size);padding-inline:0;
 }
 :root:not([data-tab=reels]) .world-home-header .world-home-selector:not(.world-home-selector-vibe)>span {display:none}
 :root:not([data-tab=reels]) .world-home-header .world-home-selector:not(.world-home-selector-vibe)>.icon {display:block}
}
@media(max-width:430px){
 :root:not([data-tab=reels]) .heyloworld-app .world-home-header {--shell-edge-space:clamp(8px,2.5vw,10px);gap:2px}
}
@media(max-width:350px){
 :root .world-discovery-island>:is(button,a) {padding-inline:4px;gap:3px}
 :root .island-symbol .icon {width:17px;height:17px}
}
@media(prefers-reduced-motion:reduce){
 :root .heyloworld-app .world-home-selector,:root .world-discovery-island>:is(button,a) {transition:none}
}
:root[data-motion=reduced] .heyloworld-app .world-home-selector,
:root[data-motion=reduced] .world-discovery-island>:is(button,a) {transition:none}
@media(forced-colors:active){
 :root :is(.world-discovery-island,.mobile-dock,.world-home-search-panel) {background:Canvas;border:1px solid CanvasText}
 :root .heyloworld-app .world-home-header {--header-a:Canvas;--header-ink:CanvasText;--header-line:CanvasText}
 :root .heyloworld-app .world-home-selector {background:ButtonFace;color:ButtonText;border-color:ButtonText}
 :root .heyloworld-app .world-home-header :is(button,summary):focus-visible {outline-color:Highlight}
}

/* Keep the dock clear of content and the device safe area. */
:root[data-compact-dock=true] .mobile-dock button:focus-visible{outline:2px solid var(--accent,#08778a);outline-offset:2px}
@media(forced-colors:active){:root[data-compact-dock=true] .mobile-dock{background:Canvas;border:1px solid CanvasText}}

body:has(dialog:modal) .world-discovery-island{visibility:hidden}
:root .world-discovery-island button:focus-visible,
.site-nav-tools :is(a,summary):focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* Wide touch screens use the section sidebar and keep compact content layouts. */
:root[data-tablet-navigation=true] {--sidebar:clamp(150px,20vw,194px)}
:root[data-tablet-navigation=true] .heyloworld-app .sidebar {display:flex;width:var(--sidebar);padding-inline:12px}
:root[data-tablet-navigation=true] .heyloworld-app .main-shell {margin-inline-start:var(--sidebar)}
:root[data-tablet-navigation=true][data-mode=universal] .heyloworld-app .main-shell>.quick-spaces {
 display:flex!important;gap:6px;padding:8px 12px;
}
:root[data-tablet-navigation=true] .heyloworld-app .quick-spaces>button {
 flex:1 1 0;min-inline-size:0;min-block-size:44px;gap:4px;padding-inline:6px;white-space:normal;line-height:1.2;
}
:root:is([data-compact-dock=false],[data-tablet-navigation=true]) .heyloworld-app .sidebar>.brand{display:none}
:root .heyloworld-app .world-home-header .icon-button{position:relative}

/* One flush desktop frame. The top of the existing sidebar meets the header
   in its own current theme colour; compact navigation keeps its existing CSS. */
:root[data-tablet-navigation=true][data-space] .heyloworld-app .sidebar,
:root[data-compact-dock=false][data-space] .heyloworld-app .sidebar {
 border-radius:0;border-inline-end:0;box-shadow:none;
 background:linear-gradient(180deg,var(--header-a) 0,var(--header-a) 64px,var(--section-deep) 230px,color-mix(in srgb,var(--section-deep) 75%,#087d9f) 100%);
 scrollbar-color:#ffffff4d transparent;
}
:root[data-interface-colour]:is([data-compact-dock=false],[data-tablet-navigation=true]) .heyloworld-app .sidebar {
 background:var(--account-sidebar);
}
/* Preserve the native scrollbar's width and scrolling; let the existing
   frame background show through its track instead of painting a white seam. */
@media(forced-colors:none){
 :root[data-compact-dock=false][data-space] .heyloworld-app .sidebar::-webkit-scrollbar,
 :root[data-compact-dock=false][data-space] .heyloworld-app .sidebar::-webkit-scrollbar-track,
 :root[data-compact-dock=false][data-space] .heyloworld-app .sidebar::-webkit-scrollbar-corner {background:transparent}
 :root[data-compact-dock=false][data-space] .heyloworld-app .sidebar::-webkit-scrollbar-thumb {background:#ffffff4d;border-radius:20px}
}
.site-nav-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;color:inherit}
.site-nav-tools .site-search-link,.site-nav-tools .site-menu>summary{
 display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;
 border:0;border-radius:12px;color:inherit;background:transparent;text-decoration:none;list-style:none;cursor:pointer
}
.site-nav-tools .icon{width:21px;height:21px;flex:none}
.site-nav-tools summary::-webkit-details-marker{display:none}
.site-nav-tools .site-menu{position:relative;margin:0;padding:0;background:transparent;border:0}
.site-nav-tools .site-menu>nav{
 position:absolute;z-index:55;inset-inline-end:0;top:calc(100% + 3px);min-width:150px;margin:0;padding:5px;
 border:1px solid var(--line,#cfdfdf);border-radius:14px;background:var(--panel,#fff);color:var(--ink,#203a40);
 box-shadow:0 8px 24px #152b3329
}
.site-nav-tools .site-menu>nav>a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;text-decoration:none;color:inherit;font-weight:650}
.site-nav-tools a:hover,.site-nav-tools summary:hover{background:var(--soft,#e3f3f3)}
.site-nav-tools .site-menu>nav>a:hover{border-radius:9px}
heylo-page-tools{display:inline-block;color:inherit}
:root .heyloworld-app .section-dialog-head{
 display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;align-items:center;gap:2px 8px;z-index:4
}
.section-dialog-head h2{min-width:0;overflow-wrap:anywhere}
:root .heyloworld-app .heart77-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
@media print{heylo-page-tools{display:none!important}}
.entry-page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px clamp(16px,4vw,36px)}
:root .auth-header{display:flex;align-items:center;justify-content:space-between}
.entry-brand{display:flex;align-items:center;min-height:44px}
.entry-brand img{display:block;width:clamp(110px,30vw,145px);height:auto}

:root .heyloworld-app .section-dialog-head:has([data-detail-return]){
 grid-template-columns:auto minmax(0,1fr) max-content max-content
}
.dialog-head [data-detail-return]{width:44px;height:44px;transform:rotate(180deg)}
[dir=rtl] .dialog-head [data-detail-return]{transform:none}

.heyloworld-app :is(.work-board,.work-detail) .work-task-grid{
 display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--line);
 border-radius:14px;background:var(--panel)
}
.heyloworld-app .work-task-grid .work-task-card{
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title status" "people due";
 align-items:center;align-content:center;gap:4px 12px;padding:9px 12px;min-height:66px;
 border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;min-width:0;text-align:start;background:transparent
}
.heyloworld-app .work-task-grid .work-task-card:last-child{border-bottom:0}
.work-task-card:focus-visible,.directory-person-actions summary:focus-visible,.family-directory-tools summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.heyloworld-app .work-task-card>strong{grid-area:title;font-size:.94rem;line-height:1.35;overflow-wrap:anywhere}
.heyloworld-app .work-task-card .work-task-top{grid-area:status;justify-content:end;gap:4px;flex-wrap:wrap}
.heyloworld-app .work-task-card .work-task-people{grid-area:people;min-width:0;overflow-wrap:anywhere}
.heyloworld-app .work-task-card .work-task-bottom{grid-area:due;justify-content:end;margin:0;padding:0;border:0}
.heyloworld-app .work-task-card :is(.work-task-people,.work-task-bottom){font-size:.78rem;line-height:1.35}
.heyloworld-app .work-board .section-heading{align-items:center;gap:8px;margin:4px 0 8px}
.heyloworld-app .work-board .section-heading h2{font-size:1.35rem;line-height:1.3;margin:0}
.heyloworld-app .work-board .work-board-filters{gap:5px;margin:0 0 8px}
.heyloworld-app .work-board .work-board-filters button{min-height:44px;padding:5px 8px}
.heyloworld-app .family-people59-intro.family90-people-intro{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;padding:6px 10px;margin:4px 0 8px}
.heyloworld-app .family-people59-intro h2{margin:0;font-size:1.15rem}
.family-directory-tools>summary{min-height:44px;align-content:center;cursor:pointer;color:var(--accent)}
.family-directory-tools>div{display:flex;gap:6px;flex-wrap:wrap}
.heyloworld-app .family-people59-group{margin:6px 0 12px}
.heyloworld-app .family-people59-group>header{padding:0;margin:0 0 4px}
.heyloworld-app .family-people59-group>header h3{margin:0;font-size:.95rem}
.family-directory-empty{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}
.heyloworld-app .directory-row .family-person59-choices{grid-column:2/-1;grid-row:3;gap:4px;margin:2px 0 0}
.heyloworld-app .directory-row .family-person59-choices button{min-height:44px}
.heyloworld-app .family-people59-note.family90-people-note{margin:8px 0;padding:4px 10px}
.heyloworld-app .together-items.task{grid-template-columns:minmax(0,1fr);margin:8px 0 14px;gap:6px}
.heyloworld-app .together-items .together-item.task{padding:8px 12px;min-height:0}
.heyloworld-app .together-item.task :is(h3,p,.task-state,.together-actions){margin-block:4px}
.heyloworld-app .together-item.task button{min-height:44px}
.heyloworld-app .relationship-directory .relationship-card{padding:9px 12px;gap:3px}
.heyloworld-app .relationship-directory .relationship-card :is(h3,h4,p){margin:0}
.heyloworld-app .relationship-directory .relationship-card>div:last-child{margin-top:2px}
.heyloworld-app .relationship-directory .relationship-card button,.heyloworld-app .friend-directory article button{min-height:44px}
.heyloworld-app .friend-directory article{padding-block:6px}
@media(max-width:520px){
 .heyloworld-app .work-task-card .work-task-top{max-width:10.5rem}
 .heyloworld-app .work-task-card :is(.work-status,.work-priority){font-size:.7rem;padding:3px 6px;white-space:normal;overflow-wrap:anywhere}
 .heyloworld-app .work-task-card .work-task-bottom{max-width:10.5rem;overflow-wrap:anywhere}
}
.work-explore-professionals,.relationship-directory .people-grid.relationship-rows{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr);gap:0}
.heyloworld-app :is(.work-professional-row,.relationship-rows .relationship-card){
 display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:1px 9px;align-items:center;
 min-height:64px;padding:8px 12px;margin:0;text-align:start;box-shadow:none;border-radius:0
}
.work-explore-professionals .avatar-button,.relationship-rows .avatar-button{grid-area:1/1/3/2;width:44px;height:44px}
.work-explore-professionals .avatar-button .avatar,.relationship-rows .avatar-button .avatar{width:44px;height:44px}
.heyloworld-app .work-professional-row>.author-copy,.relationship-rows h3{grid-area:1/2/2/3;text-align:start;min-width:0;overflow-wrap:anywhere}
.heyloworld-app .work-professional-row .person-profession,.relationship-rows .relationship-card>p{grid-area:2/2/3/3;margin:0;line-height:1.35}
.work-professional-row .person-profession small,.work-professional-row .person-profession p{display:inline;margin:0 5px 0 0}
.relationship-row-actions{grid-area:1/3/3/4}
.relationship-row-actions>summary{list-style:none;display:grid;place-items:center;cursor:pointer;min-width:44px;min-height:44px}
.relationship-row-actions>summary::-webkit-details-marker{display:none}
.relationship-row-actions[open]{display:contents}
.relationship-row-actions[open]>summary{grid-area:1/3/3/4}
.relationship-row-actions[open]>div{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.relationship-row-actions[open]>div>div{display:flex;flex-wrap:wrap;gap:4px}
.family-directory-tools p{max-width:34rem;line-height:1.45}
.heyloworld-app .work-board .section-heading:has(.work-board-tools){
 display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;text-align:start
}
.heyloworld-app .work-board .section-heading>.work-board-tools{display:flex;flex-flow:row nowrap;align-items:center;gap:4px;width:auto}
.heyloworld-app .work-board-tools :is(.button,.icon-button){width:auto;min-height:44px}
.heyloworld-app .work-board-tools .icon-button{min-width:44px}

/* Allow navigation lists to scroll in a short window or above the software keyboard. */
.site-nav-tools .site-menu>nav {
 max-block-size:min(20rem,45dvh);
 overflow-y:auto;
 overscroll-behavior:contain;
}
:root .heyloworld-app .world-home-search-panel .search-suggestions {
 max-height:min(340px,55dvh,max(48px,calc(100dvh - 10rem - env(safe-area-inset-bottom,0px))));
}
@media(max-width:520px) {
 .heyloworld-app .work-task-grid .work-task-card {
  grid-template-columns:minmax(0,1fr) fit-content(45%);
 }
}

.work-section-return:focus-visible,
.work-employee-dashboard :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.work-entry-content {
  inline-size: min(100%, 65rem);
  margin-inline: auto;
}
.work-employee-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-block: .35rem 1.25rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(125deg, var(--soft), var(--panel) 75%);
}
.work-employee-heading :is(h1,h2) { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; }
.work-employee-heading p { max-inline-size: 42ch; margin: .45rem 0 0; color: var(--muted); line-height: 1.5; }
#work-companies-heading { scroll-margin-block-start: 6rem; }
.work-section-return {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-block-size: 2.75rem;
  padding-inline: .7rem;
  border-radius: .7rem;
  color: var(--accent);
  font-weight: 700;
}
.work-section-return:hover { background: var(--soft); }
.heyloworld-app .work-explore-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 0 1.15rem;
  overflow: visible;
}
.heyloworld-app .work-explore-categories .work-explore-category {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-block-size: 2.75rem;
  padding: .5rem .75rem;
  color: var(--ink);
  font-size: .875rem;
  box-shadow: none;
}
.work-explore-categories .work-explore-category .icon { inline-size: 1rem; block-size: 1rem; }
.heyloworld-app .work-explore-categories .work-explore-category[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}
.work-explore-categories .work-explore-category:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) {
  .work-employee-dashboard :is(.work-dashboard-panels, .work-company-row) { grid-template-columns: minmax(0, 1fr); }
  .work-employee-dashboard .work-actions-grid .work-action-tile { flex-wrap: wrap; align-content: center; }
}
@media (max-width: 360px) {
  .work-employee-dashboard .work-counters > div { padding-inline: .25rem; }
  .work-employee-dashboard .work-counters span { font-size: .8125rem; }
}
@media (forced-colors: active) {
  :is(.work-role-entry, .work-employee-heading) { border-color: CanvasText; }
  .work-role-entry:focus-visible, .work-section-return:focus-visible,
  .work-employee-dashboard :is(a, button):focus-visible { outline-color: Highlight; }
}

.heyloworld-app .mode-dialog .mode-grid {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,174px),1fr));gap:10px;margin-block:0 14px;
}
.heyloworld-app .mode-dialog .mode-grid>.mode-choice {
 display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;align-content:center;column-gap:9px;row-gap:4px;
 min-height:79px;padding:12px;padding-inline-end:31px;text-align:start;border-radius:13px;
}
.heyloworld-app .mode-dialog .mode-choice .mode-symbol {
 display:grid;grid-row:1 / span 2;place-items:center;width:34px;height:34px;border-radius:9px;
}
.heyloworld-app .mode-dialog .mode-choice strong,
.heyloworld-app .mode-dialog .mode-choice small {grid-column:2;min-width:0;overflow-wrap:anywhere}
.heyloworld-app .mode-dialog .mode-choice strong {font-size:.95rem;line-height:1.25}
.heyloworld-app .mode-dialog .mode-choice small {font-size:.83rem;line-height:1.4}
.heyloworld-app .mode-dialog .mode-choice>.icon {inset-inline-end:9px;inset-block-start:11px;width:17px;height:17px;color:var(--accent)}
.heyloworld-app .mode-dialog .mode-choice:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:480px){
 .heyloworld-app .mode-dialog .mode-grid {grid-template-columns:minmax(0,1fr);gap:7px}
 .heyloworld-app .mode-dialog .mode-grid>.mode-choice {min-height:58px;padding-block:8px}
}

.world-news-topic-picker>summary {
 display:flex;align-items:center;justify-content:flex-start;gap:.375rem;
 min-height:44px;padding:.4rem .6rem;border-radius:.7rem;cursor:pointer;
 font-weight:650;font-size:.875rem;line-height:1.35;
}
.world-news-topic-picker>summary::-webkit-details-marker {display:none;}
.world-news-topic-picker>summary>.icon {flex:none;width:1rem;height:1rem;}
.world-news-topic-picker[open]>summary {background:var(--soft);}
.world-news-topic-picker>summary:focus-visible {outline:2px solid var(--accent);outline-offset:1px;}
.world-news-topic-picker {margin-block:.6rem;border:1px solid var(--line);border-radius:.8rem;}
.world-news-topic-picker>summary>strong {color:var(--ink);overflow-wrap:anywhere;}
.world-news-topic-picker .topic-chips {display:flex;flex-wrap:wrap;gap:.375rem;padding:.5rem;}
.world-news-topic-picker .chip {min-height:44px;}
