/* Shared navigation geometry. Keep labels complete in both Hmong and Korean. */
:root{--layout-gutter:16px;--layout-nav-height:72px;--menu-accent:#c92570;--menu-tint:#c9257014}
body.light{--menu-accent:#c92570;--menu-tint:#c9257014}
.toolbar{min-height:60px;padding-inline:8px;gap:4px}
.toolbar>.icon-button,.toolbar>.voice-menu-wrap>.icon-button{width:44px;height:44px}
.app-frame>.tabs{padding:10px var(--layout-gutter);gap:8px}
.app-frame>.tabs .pill{min-height:44px;padding:9px 16px;line-height:1.4}
.intro-strip{margin:16px var(--layout-gutter) 0;padding:14px;width:calc(100% - 2 * var(--layout-gutter));gap:12px;border-radius:14px}
.intro-strip>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.intro-strip strong{font-size:16px;line-height:1.45}
.intro-strip small{font-size:13px;line-height:1.5}

/* Compact single-row navigation on every screen. */
.quick-boards,.tube-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:2px;padding:8px 10px;border-bottom:1px solid var(--line)}
.quick-boards>button,.quick-boards>.voice-menu-wrap,.tube-categories>button,.tube-categories>.voice-menu-wrap{grid-column:auto;min-width:0;max-width:none}
.quick-boards>.voice-menu-wrap,.tube-categories>.voice-menu-wrap{display:flex;flex-direction:column;align-items:stretch}
.quick-boards button[data-action=board],.tube-categories button[data-tube-action=category],.tube-categories button[data-action=board]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:60px;width:100%;padding:5px 2px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:11px;font-weight:500;line-height:1.2;text-align:center}
.quick-boards button[data-action=board]>.icon,.tube-categories button>.icon{width:20px;height:20px;margin:0;color:var(--menu-accent)}
.quick-boards button[data-action=board]>span,.tube-categories button>span{display:block;width:100%;white-space:normal;overflow-wrap:normal;word-break:normal}
.quick-boards>.voice-menu-wrap>button:first-child,.tube-categories>.voice-menu-wrap>button:first-child{flex:1;height:100%}
.quick-boards .voice-menu-record,.tube-categories .voice-menu-record{position:absolute;right:0;top:0;flex:none;transform:translate(3px,-6px)}
.tube-categories button[data-tube-action=category].active{background:var(--menu-tint);color:var(--menu-accent);box-shadow:inset 0 -2px var(--blue)}
@media(max-width:359px){.quick-boards button[data-action=board],.tube-categories button[data-tube-action=category],.tube-categories button[data-action=board]{font-size:10px}}

/* Identical rows in the full menu and drawer, including service shortcuts. */
.board-group{padding-inline:var(--layout-gutter)}
.board-group h3{margin:24px 0 8px;font-size:12px;font-weight:650;line-height:1.5}
.board-row{min-height:60px;align-items:stretch;gap:4px}
.board-row>.voice-menu-wrap{display:flex;flex:1;min-width:0;align-items:stretch}
.board-row .board-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:60px;padding:12px 4px;text-align:left;font-size:14px;line-height:1.5}
.board-row .board-link>span{min-width:0;overflow-wrap:anywhere}
.board-row .board-link>.icon{width:24px;height:24px;color:var(--menu-accent)}
.board-row .board-link>.menu-chevron{width:18px;height:18px;margin-left:auto;color:var(--muted)}
.board-row>.favorite{width:44px;height:auto;min-height:44px;align-self:stretch}
.board-row .voice-menu-record{align-self:center;flex-shrink:0}
.service-menu-row{background:var(--menu-tint);border:1px solid var(--line);border-radius:12px;margin-bottom:8px;padding-inline:10px}
.drawer .board-group{padding-bottom:24px}
.drawer-search{margin:16px var(--layout-gutter) 4px}
.drawer-home{padding:12px var(--layout-gutter);min-height:52px}
.board-grid{padding:8px var(--layout-gutter);gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.board-card{min-height:124px;overflow-wrap:anywhere;border-radius:14px}
.board-card>.icon{width:24px;height:24px;color:var(--menu-accent)}

/* Six equal navigation slots, also when a recording control wraps a button. */
.bottom-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;height:calc(var(--layout-nav-height) + var(--app-bottom-inset));padding:4px 8px calc(4px + var(--app-bottom-inset));gap:2px}
.bottom-nav>button,.bottom-nav>.voice-menu-wrap{min-width:0;width:100%;position:relative}
.bottom-nav>button,.bottom-nav>.voice-menu-wrap>button[data-action=go]{min-height:60px;justify-content:flex-start;gap:4px;padding:7px 2px 3px;border-radius:12px;line-height:1.25}
.bottom-nav button[data-action=go]>.icon{width:24px;height:24px}
.bottom-nav button[data-action=go]>span{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.25;text-align:center}
.bottom-nav button[data-action=go].active{color:var(--menu-accent);background:var(--menu-tint)}
body:has(.bottom-nav .voice-menu-record){--layout-nav-height:90px}
.bottom-nav:has(.voice-menu-record)>button,.bottom-nav:has(.voice-menu-record)>.voice-menu-wrap>button[data-action=go]{padding-top:25px}
.bottom-nav .voice-menu-record{flex:none;top:0}
body:has(.bottom-nav) .voice-dock{bottom:calc(var(--layout-nav-height) + 8px + var(--app-bottom-inset))}
.voice-dock{max-width:648px}
@media(hover:hover){.quick-boards button[data-action=board]:hover,.board-row .board-link:hover{background:var(--menu-tint)}}

/* A compact, persistent seven-language selector inside the main hero. */
.hero-languages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:8px 14px 0;padding:8px 0 12px;border-top:1px solid #182d4324}
.hero-language{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:54px;padding:5px 1px;border:1px solid transparent;border-radius:9px;background:transparent;color:#24364a;cursor:pointer;font:inherit}
.hero-language img{display:block;object-fit:contain;width:26px;height:20px;border-radius:2px;filter:drop-shadow(0 1px 2px #0004)}
.hero-language img.language-hmong{width:25px;height:25px;border-radius:50%;margin-block:-2.5px}
.hero-language span{font-size:10px;line-height:1.35;text-align:center;white-space:nowrap}
.hero-language[aria-pressed=true]{background:#fff0f6;border-color:#d21b73;color:#901249;box-shadow:inset 0 -2px #d21b73}
.hero-language:focus-visible{outline:2px solid #b51764;outline-offset:2px}
.hero-language[aria-busy=true]{opacity:.6}
@media(hover:hover){.hero-language:hover{background:#fce7f1}}
@media(min-width:600px){.hero-languages{max-width:520px;margin-inline:auto;gap:8px}.hero-language span{font-size:12px}}
@media(max-width:359px){.hero-languages{margin-inline:8px;gap:1px}.hero-language span{font-size:9px}}

/* Compact home hero and safe top edge; 1 cm is approximately 38 CSS pixels. */
:root{--app-top-inset:env(safe-area-inset-top,0px)}
html.hmong-android-edge{--app-top-inset:max(env(safe-area-inset-top,0px),24px)}
.app-frame{padding-top:calc(var(--app-top-inset) + 2px)}
.toolbar{top:calc(var(--app-top-inset) + 2px)}
.drawer{padding-top:var(--app-top-inset)}
.cover .hero-layout.hero-brand-only{min-height:168px;height:168px;padding:4px 18px}
.cover .hero-brand-only .hero-art{width:112px;max-height:140px}
.quick-boards,#tube-root .tube-categories{grid-template-columns:repeat(5,minmax(0,1fr))}
#tube-root .tube-categories{gap:2px;padding:8px 10px}

/* Native 1.7+ already reserves system bars outside its WebView. */
:root{--app-bottom-inset:env(safe-area-inset-bottom,0px)}
html.hmong-native-insets{--app-top-inset:0px;--app-bottom-inset:0px}

/* Home uses compact sections while keeping the same navigation and controls. */
body:has(.app-frame>.cover){--layout-nav-height:64px}
body:has(.app-frame>.cover):has(.bottom-nav .voice-menu-record){--layout-nav-height:82px}
.app-frame:has(>.cover){padding-bottom:12px!important}
.app-frame>.cover .topbar{min-height:54px;padding:5px 10px}
.app-frame>.cover .hero-layout.hero-brand-only{height:120px;min-height:120px;padding:4px 16px}
.app-frame>.cover .hero-brand-only .hero-art{width:84px;max-height:105px}
.app-frame>.cover .hero-languages{margin-top:0;padding:4px 0}
.app-frame>.cover .hero-language{min-height:44px;padding:3px 1px;gap:3px}
.app-frame>.cover+.identity{padding:8px 16px;gap:10px}
.app-frame>.cover+.identity .brand-icon{width:44px;height:44px}
.app-frame>.cover+.identity h1{font-size:18px;line-height:1.3}
.app-frame>.cover+.identity .sub{margin-top:2px;line-height:1.4}
.app-frame:has(>.cover)>.tabs{padding:4px 12px;gap:6px}
.app-frame:has(>.cover)>.intro-strip{margin:8px 12px 0;padding:8px 10px;width:calc(100% - 24px);gap:10px}
.app-frame:has(>.cover)>.intro-strip strong{font-size:15px;line-height:1.3}
.app-frame:has(>.cover)>.intro-strip small{font-size:12px;line-height:1.4}
.app-frame:has(>.cover)>.intro-strip .flower{width:36px;height:36px}
.app-frame:has(>.cover)>.quick-boards{padding-block:4px}
.app-frame:has(>.cover)>.quick-boards button[data-action=board]{min-height:52px}
.app-frame:has(>.cover)>.section-caption{padding:8px 18px 0}
.app-frame:has(>.cover)>.bottom-nav>button,.app-frame:has(>.cover)>.bottom-nav>.voice-menu-wrap>button[data-action=go]{min-height:52px;padding:3px 2px 1px;gap:1px;border-radius:9px}
.app-frame:has(>.cover)>.bottom-nav:has(.voice-menu-record)>button,.app-frame:has(>.cover)>.bottom-nav:has(.voice-menu-record)>.voice-menu-wrap>button[data-action=go]{padding-top:20px}
body:has(.app-frame>.cover) #voice-dock{bottom:calc(var(--layout-nav-height) + 4px + var(--app-bottom-inset))}
body:has(.app-frame>.cover) .fab{bottom:calc(var(--layout-nav-height) + 68px + var(--app-bottom-inset))!important}
body:has(.app-frame>.cover) .policy-footer{padding:12px 0;margin-bottom:calc(var(--layout-nav-height) + 64px + var(--app-bottom-inset))}
body:has(.app-frame>.cover) .policy-footer nav{padding-right:0;gap:0 14px}
body:has(.app-frame>.cover) .policy-footer a{min-height:36px}
/* Reserve fixed controls once, after a compact footer, rather than below every full-height page. */
body{--page-controls-space:0px;--page-audio-space:0px;display:flex;flex-direction:column;min-height:100dvh;padding-bottom:calc(var(--page-controls-space) + var(--page-audio-space))}
body:has(.bottom-nav){--page-controls-space:calc(var(--layout-nav-height) + var(--app-bottom-inset) + 8px)}
body:has(.action-bar){--page-controls-space:calc(64px + var(--app-bottom-inset) + 8px)}
body:has(.comment-input){--page-controls-space:calc(90px + var(--app-bottom-inset))}
body:has(.editor-tools){--page-controls-space:calc(66px + var(--app-bottom-inset))}
body:not(.hc-route):has(#voice-dock:not([hidden]):not(.voice-dock-minimized)){--page-audio-space:64px}
body.hc-route{--page-audio-space:0px;--page-controls-space:calc(var(--layout-nav-height) + var(--app-bottom-inset))}
body.hc-route:not(.hc-open) .hc-root{min-height:calc(100dvh - var(--page-controls-space))}
body.hc-open{--page-controls-space:0px}
body>#app{width:100%;flex:1 0 auto}
body .app-frame{min-height:0;padding-bottom:16px!important}
body.hc-route .app-frame{padding-top:0;padding-bottom:0!important}
body .policy-footer,body:has(.app-frame>.cover) .policy-footer{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;margin:0 auto;padding:10px 0;font-size:11px;flex-shrink:0}
body .policy-footer strong{margin:0;font-size:11px}
body .policy-footer nav,body:has(.app-frame>.cover) .policy-footer nav{padding:0;gap:0 12px}
body .policy-footer a,body:has(.app-frame>.cover) .policy-footer a{min-height:36px}
body.hc-route .policy-footer{display:none}
.search-top{margin:0;background:#ffffff14;min-width:0}
.search-top input{flex:1;width:0;min-height:44px;padding:10px 12px}
.search-top button{width:44px;height:44px;min-width:44px}
.search-top button .icon{margin:0;width:20px}
.search-summary{padding-bottom:8px}

/* HMONG_UI18 C01: bottom navigation polish, existing geometry and insets preserved. */
.bottom-nav{border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -4px 19px #162e3617;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.bottom-nav>button,.bottom-nav>.voice-menu-wrap>button[data-action=go]{border-radius:13px;position:relative;transition:background-color .16s ease,color .16s ease}
.bottom-nav button[data-action=go].active::after{content:"";position:absolute;top:2px;left:30%;width:40%;height:3px;border-radius:0 0 5px 5px;background:currentColor;opacity:.8}
.bottom-nav button[data-action=go]:focus-visible{outline:2px solid var(--menu-accent);outline-offset:-2px}
.bottom-nav button[data-action=go]>span{font-weight:650;letter-spacing:-.01em}
@media(prefers-reduced-motion:reduce){.bottom-nav>button,.bottom-nav>.voice-menu-wrap>button[data-action=go]{transition:none}}


/* HMONG-GLOBAL-UI W06 | home tabs: explicit backgrounds and ink in both themes. */
body .app-frame[data-page="home"]>.tabs{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
 margin:8px 12px 10px;padding:7px;overflow:visible;
 background:#f7f5f0;border:1px solid #d9e4df;border-radius:16px;
 box-shadow:0 2px 12px #173b3410;
}
body .app-frame[data-page="home"]>.tabs>.pill{
 display:flex;align-items:center;justify-content:center;
 width:100%;min-width:0;min-height:48px;padding:7px 4px;
 white-space:normal;overflow-wrap:anywhere;word-break:normal;
 line-height:1.25;font-size:clamp(12px,3.4vw,14px);font-weight:700;text-align:center;
 color:#1c4248;background:#fff;border:1px solid #c9d8d4;
 border-radius:11px;box-shadow:none;
}
body .app-frame[data-page="home"]>.tabs>.pill.active,
body .app-frame[data-page="home"]>.tabs>.pill[aria-pressed="true"]{
 background:#176864;color:#fff;border-color:#176864;box-shadow:0 2px 7px #143d3a22;
}
body .app-frame[data-page="home"]>.tabs>.pill:not(.active):hover{
 background:#eaf4f0;color:#174f4c;border-color:#9ebfba;
}
body .app-frame[data-page="home"]>.tabs>.pill:focus-visible{
 outline:3px solid #d41b73;outline-offset:2px;z-index:1;
}
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs{
 background:#26343d;border-color:#435863;box-shadow:0 3px 14px #0002;
}
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs>.pill{
 background:#34454e;color:#f3f8f7;border-color:#647780;
}
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs>.pill.active,
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs>.pill[aria-pressed="true"]{
 background:#176864;color:#fff;border-color:#4eb7aa;
}
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs>.pill:not(.active):hover{
 background:#405a62;color:#fff;border-color:#89b8ac;
}
body:not(.light):not(.social-home) .app-frame[data-page="home"]>.tabs>.pill:focus-visible{
 outline-color:#ff9ecb;
}
/* Alternative social feed uses the same four filters, without altering their data. */
body.social-home .app-frame[data-page="home"] .social-filters{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
}
body.social-home .app-frame[data-page="home"] .social-filters button{
 min-width:0;min-height:48px;padding:7px 4px;
 white-space:normal;overflow-wrap:anywhere;line-height:1.25;
 font-size:clamp(12px,3.4vw,14px);font-weight:700;
 color:#235055;background:#fff;border:1px solid #bbcfcb;border-radius:11px;
}
body.social-home .app-frame[data-page="home"] .social-filters button[aria-pressed="true"]{
 background:#176864;color:#fff;border-color:#176864;
}
body.social-home .app-frame[data-page="home"] .social-filters button:focus-visible{
 outline:3px solid #d41b73;outline-offset:2px;
}
/* Scoped home visual rhythm; no profile/chat/call components touched. */
.app-frame[data-page="home"]>.identity{
 border-bottom:1px solid #ffffff24;background:#162a40;color:#fff;
 padding:12px 16px;gap:12px;
}
.app-frame[data-page="home"]>.identity h1{
 font-size:clamp(19px,5vw,23px);line-height:1.3;letter-spacing:-.025em;
}
.app-frame[data-page="home"]>.identity .sub{font-size:13px;line-height:1.45;opacity:.9;}
.app-frame[data-page="home"]>.section-caption{
 padding:17px 18px 8px;gap:10px;line-height:1.4;
}
.app-frame[data-page="home"]>.section-caption strong{
 font-size:17px;font-weight:750;letter-spacing:-.025em;
}
.app-frame[data-page="home"]>.section-caption .text-button{
 font-size:13px;min-height:44px;color:var(--muted);
}
.app-frame[data-page="home"]>.intro-strip{border-radius:16px;min-height:64px;}
.app-frame[data-page="home"]>.intro-strip strong{font-size:16px;}
.app-frame[data-page="home"]>.intro-strip small{font-size:13px;}
.app-frame[data-page="home"]>.quick-boards{
 grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;
 margin:8px 12px;border:1px solid var(--line);border-radius:16px;
 background:var(--surface);padding:8px 6px;
}
.app-frame[data-page="home"]>.quick-boards button[data-action="board"]{
 min-width:0;min-height:72px;padding:8px 2px;gap:5px;
 border-radius:11px;font-size:12px;font-weight:650;line-height:1.3;
}
.app-frame[data-page="home"]>.quick-boards button[data-action="board"]>.icon{
 width:23px;height:23px;flex-shrink:0;
}
.app-frame[data-page="home"]>.quick-boards button[data-action="board"]:focus-visible,
.drawer :focus-visible,.bottom-nav button:focus-visible{
 outline:3px solid #d41b73;outline-offset:2px;
}
.app-frame[data-page="home"] .empty{padding:32px 20px 38px;}
.app-frame[data-page="home"] .empty h3{font-size:19px;line-height:1.45;}
.app-frame[data-page="home"] .empty p{font-size:15px;line-height:1.65;}
.app-frame[data-page="home"] .empty .primary{
 min-height:48px;border-radius:13px;font-size:15px;
}
.app-frame[data-page="home"] .post-row{padding:15px 12px;gap:12px;}
.app-frame[data-page="home"] .post-title{line-height:1.45;overflow-wrap:anywhere;}
.bottom-nav button[data-action="go"]>span{font-size:11.5px;line-height:1.3;}
.bottom-nav button[data-action="go"]>.icon{width:24px;height:24px;}
.bottom-nav button[data-action="go"]{min-height:48px;}
.drawer{border-radius:18px 0 0 18px;}
.drawer .board-group h3{font-size:13px;letter-spacing:.01em;}
.drawer .board-row .board-link{
 font-size:15px;line-height:1.5;min-height:52px;border-radius:11px;
}
.drawer .drawer-home{font-size:15px;}
/* Existing main contact footer, now with a responsive company-information block. */
body .policy-footer{
 width:min(calc(100% - 24px),640px);padding:16px 12px 18px;
 gap:10px 12px;border-top:1px solid var(--line);
 color:var(--muted);font-size:13px;line-height:1.55;
}
body .policy-footer>strong{font-size:14px;font-weight:750;color:var(--text);}
body .policy-footer nav{display:flex;flex-wrap:wrap;gap:4px 12px;}
body .policy-footer a{
 min-height:44px;display:inline-flex;align-items:center;
 color:var(--text);text-underline-offset:3px;
}
body .policy-footer a:focus-visible{
 outline:3px solid #d41b73;outline-offset:2px;border-radius:5px;
}
body .policy-footer .company-contact{
 display:block;width:100%;min-width:0;margin:0;padding:15px 16px;
 border:1px solid var(--line);border-radius:16px;
 background:var(--surface);color:var(--text);font-style:normal;
}
body .policy-footer .company-name{
 display:block;font-size:17px;font-weight:800;line-height:1.4;
 margin-bottom:9px;letter-spacing:-.025em;color:var(--text);
}
body .policy-footer .company-meta{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px 16px;align-items:center;font-size:13px;line-height:1.5;
}
body .policy-footer .company-meta>span,
body .policy-footer .company-meta>a{
 display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;
 min-width:0;min-height:44px;overflow-wrap:anywhere;word-break:break-word;
 text-decoration:none;color:var(--text);
}
body .policy-footer .company-meta b{
 font-size:12px;min-width:51px;color:var(--muted);font-weight:700;
}
body .policy-footer .company-meta a{
 text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;
}
@media(max-width:430px){
 body .policy-footer .company-meta{grid-template-columns:minmax(0,1fr);}
 body .app-frame[data-page="home"]>.tabs{gap:4px;margin-inline:10px;padding:6px;}
 body .app-frame[data-page="home"]>.tabs>.pill{padding:6px 3px;min-height:50px;}
 body.social-home .app-frame[data-page="home"] .social-filters{gap:4px;}
}
@media(max-width:340px){
 body .app-frame[data-page="home"]>.tabs>.pill{font-size:11.5px;min-height:54px;}
 .bottom-nav button[data-action="go"]>span{font-size:10.5px;}
}
@media(prefers-reduced-motion:reduce){
 body .app-frame[data-page="home"]>.tabs>.pill{transition:none;}
}

/* The compact home-footer rule defined earlier must not reduce contact tap targets. */
body:has(.app-frame>.cover) .policy-footer nav a,
body:has(.app-frame>.cover) .policy-footer .company-meta>a{min-height:44px;}

/* Long translated navigation labels: prefer two balanced rows over letter-by-letter wrapping. */
@media(max-width:390px){
 html:is([lang="hmn"],[lang^="en"],[lang^="vi"],[lang^="th"],[lang^="lo"]) body .app-frame[data-page="home"]>.tabs,
 html:is([lang="hmn"],[lang^="en"],[lang^="vi"],[lang^="th"],[lang^="lo"]) body.social-home .app-frame[data-page="home"] .social-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* HMONG UNIFIED SHELL W06-02: common brand geometry, theme-safe chrome and floating action. */
:root{
  --shell-header-height:64px;
  --shell-header-bg:#162a40;
  --shell-brand-logo:30px;
  --shell-brand-font:16px;
  --shell-inset:12px;
  --shell-fab-diameter:58px;
  --shell-fab-color:#c92570;
  --shell-canvas:#191c20;
}
body.light{--shell-canvas:#f6f8fa}
body:not(.editor){background:var(--bg);}
body .app-frame{background-color:var(--bg);}
/* Header width and logo x-coordinate must match on every route. */
body .app-frame .shell-topbar,
body .app-frame>.cover>.shell-topbar{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;column-gap:8px;
  width:100%;height:var(--shell-header-height);min-height:var(--shell-header-height);
  padding:0 var(--shell-inset);
  margin:0;
  color:#fff;background:var(--shell-header-bg);
  border:0;border-bottom:1px solid #ffffff16;
  box-shadow:none;
  position:sticky;top:var(--app-top-inset,0px);z-index:22;
}
body .app-frame .shell-topbar .shell-leading{
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;min-width:0;
}
body .app-frame .shell-topbar .shell-leading-space{display:block;width:44px;height:44px}
body .app-frame .shell-topbar .shell-leading>.icon-button{
  flex:0 0 44px;width:44px;height:44px;padding:10px;
  background:#ffffff0e;color:#fff;border-radius:12px;
}
body .app-frame .shell-topbar .shell-brand-host{
  min-width:0;margin:0;display:flex;align-items:center;overflow:hidden;flex:initial;
}
.shell-brand{
  display:inline-flex;align-items:center;justify-content:flex-start;
  gap:8px;width:100%;min-width:0;min-height:44px;
  padding:0;text-decoration:none;color:#fff;font-size:var(--shell-brand-font);
  font-weight:800;line-height:1.25;letter-spacing:-.035em;text-align:left;
  white-space:nowrap;
}
.shell-brand-logo{
  display:block;width:var(--shell-brand-logo);height:var(--shell-brand-logo);
  flex:0 0 var(--shell-brand-logo);
  object-fit:contain;border-radius:9px;background:#ffffff12;
}
.shell-brand-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
body .app-frame .shell-topbar .shell-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:4px;
  width:auto;min-width:88px;min-height:44px;
}
body .app-frame .shell-topbar .shell-actions:empty{min-width:88px}
body .app-frame .shell-topbar .shell-actions>.icon-button{
  flex-shrink:0;min-width:44px;width:44px;height:44px;
  border:1px solid #ffffff1c;border-radius:12px;
  background:#ffffff12;color:#fff;
}
body .app-frame .shell-topbar button:focus-visible,
body.hc-route .hc-header .shell-brand:focus-visible{
  outline:3px solid #ff9bc4;outline-offset:2px;
}
.shell-context{
  display:block;width:100%;min-width:0;max-width:100%;
  padding:10px 16px;background:var(--surface);color:var(--text);
  border-bottom:1px solid var(--line);font-size:15px;font-weight:700;
}
.shell-context .search-top{display:flex;width:100%;min-width:0;margin:0}
.shell-context .search-top input{min-width:0;width:100%;flex:1}
.shell-home-summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 16px!important;min-height:53px;
  background:var(--surface)!important;color:var(--text)!important;
  border-block:1px solid var(--line);
}
.shell-home-summary strong{font-size:16px;font-weight:780}
.shell-home-summary small{font-size:13px;color:var(--muted);white-space:nowrap}
body .app-frame[data-page="home"]>.tabs{margin-top:10px}
body .app-frame[data-page="home"] .intro-strip{cursor:default}
body .app-frame .shell-editor-actions{
  display:flex;align-items:center;justify-content:flex-end;
  gap:8px;min-height:54px;padding:6px 12px;background:var(--surface);
  border-bottom:1px solid var(--line);color:var(--text);
}
.shell-editor-actions .shell-editor-title{
  min-width:0;margin:0 auto 0 0;font-size:17px;font-weight:750;line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body .shell-editor-actions>.publish{min-height:44px;padding-inline:16px;border-radius:12px}
body .shell-editor-actions>.publish:not(:disabled),body .social-compose-tools .publish:not(:disabled){background:var(--shell-fab-color,#c92570);color:#fff}
body .shell-editor-actions .text-button{min-height:44px}
body.editor .app-frame{background:var(--bg)!important;color:var(--text)!important}
body.editor .compose-form{background:var(--bg);color:var(--text)}
body.editor .compose-form :is(input,textarea,select){
  color:var(--text);background:var(--surface);border-color:var(--line);
}
body.editor .compose-form :is(input,textarea)::placeholder{color:var(--muted)}
body .app-frame[data-page="home"]>.fab,
body .app-frame[data-page="board"]>.fab{
  position:fixed!important;z-index:25;display:grid;place-items:center;
  width:var(--shell-fab-diameter);height:var(--shell-fab-diameter);
  right:max(18px,calc((100vw - 680px)/2 + 18px));
  bottom:calc(var(--layout-nav-height) + var(--app-bottom-inset,0px) + 20px)!important;
  border-radius:50%;background:var(--shell-fab-color);color:#fff;
  border:1px solid #ff96c034;box-shadow:0 6px 19px #0005;
}
body .app-frame>.fab .icon{width:26px;height:26px;stroke-width:2}
body .app-frame>.fab:focus-visible{outline:3px solid #f5c7db;outline-offset:3px}
body .app-frame[data-page="home"],body .app-frame[data-page="board"]{
  padding-bottom:104px!important;
}
body .bottom-nav{background:var(--surface);border-color:var(--line)}
/* Chat retains its own event delegation, tabs, room identity and call controls.
   Only the existing .hc-header is decorated; there is no extra shell header. */
body.hc-route .app-frame .hc-root{--hc-bg:var(--bg);background:var(--bg);color:var(--text);}
body.hc-route .app-frame .hc-root .hc-header{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  column-gap:6px;row-gap:0;
  min-height:0;height:auto;padding:0 12px 6px;
  border-bottom:1px solid #ffffff20;background:var(--shell-header-bg);
  color:#fff;position:relative;z-index:21;
}
body.hc-route .app-frame .hc-root .hc-header>[data-hc="back"]{
  order:0;display:grid;place-items:center;
  flex:0 0 44px;width:44px;height:64px;min-width:44px;min-height:64px;
  margin:0;background:transparent;color:#fff;border:0;border-radius:12px;
}
body.hc-route .app-frame .hc-root .hc-header>.shell-chat-brand{
  order:1;flex:1 1 calc(100% - 50px);min-width:0;height:64px;
  display:flex;align-items:center;justify-content:flex-start;
}
body.hc-route .app-frame .hc-root .hc-header>.shell-chat-brand .shell-brand{
  width:auto;max-width:100%;min-width:0;color:#fff;
}
body.hc-route .app-frame .hc-root .hc-header>.hc-room-header-avatar{
  order:2;flex:0 0 auto;max-width:40px;
}
body.hc-route .app-frame .hc-root .hc-header>.hc-heading{
  order:3;flex:1 1 56px;min-width:56px;max-width:100%;
  display:flex;align-items:center;gap:4px;overflow:hidden;min-height:44px;
}
body.hc-route .app-frame .hc-root .hc-header>.hc-heading h1{
  margin:0;min-width:0;max-width:100%;font-size:15px;
  font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
body.hc-route .app-frame .hc-root .hc-header>.hc-heading .hc-subtitle{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c5d4df;
}
body.hc-route .app-frame .hc-root .hc-header>.hc-icon,
body.hc-route .app-frame .hc-root .hc-header>.hm-call-launch{
  order:4;flex-shrink:0;min-width:44px;width:44px;min-height:44px;height:44px;
  padding:8px;margin:0;
  display:grid;place-items:center;
}
body.hc-route .app-frame .hc-root .hc-header .hc-icon:focus-visible{
  outline:3px solid #ff9bc4;outline-offset:1px;
}
body.hc-route .app-frame .hc-conversation{
  background:var(--bg);height:100dvh;min-height:0;
}
@media(max-width:359px){
 :root{--shell-brand-font:14px;--shell-brand-logo:28px}
 .shell-brand{gap:6px}
 body .app-frame .shell-topbar{column-gap:6px;padding-inline:10px}
 body.hc-route .app-frame .hc-root .hc-header{padding-inline:10px;column-gap:4px}
}
@media(prefers-reduced-motion:reduce){
 .shell-brand,.fab{transition:none!important}
}

/* Chat back must keep first-slot order; the generic chat icon rule is later. */
body.hc-route .app-frame .hc-root .hc-header>.hc-icon[data-hc="back"]{
  order:0;flex:0 0 44px;width:44px;min-width:44px;
  height:64px;min-height:64px;display:grid;place-items:center;
}

/* Exact shell start edge, including chat's existing header and native safe area. */
body .app-frame{padding-top:var(--app-top-inset,0px)!important}
body.hc-route .app-frame{padding-top:var(--app-top-inset,0px)!important}
body.hc-route .app-frame .hc-root .hc-header{column-gap:8px}
body.hc-route .app-frame .hc-root .hc-header>.shell-chat-brand{
  flex-basis:calc(100% - 52px);
}
@media(max-width:359px){
 body.hc-route .app-frame .hc-root .hc-header{column-gap:6px}
 body.hc-route .app-frame .hc-root .hc-header>.shell-chat-brand{
   flex-basis:calc(100% - 50px);
 }
}

/* Both home layouts use the identical 72px nav and 20px floating gap. */
body:has(.app-frame[data-page="home"]){--layout-nav-height:72px!important}
body .app-frame[data-page="home"]>.bottom-nav{
  height:calc(72px + var(--app-bottom-inset,0px));
}
body .app-frame[data-page="home"]>.fab{
  bottom:calc(92px + var(--app-bottom-inset,0px))!important;
}

/* Keep the real pink compose FAB identical while voice UI remains hidden.
   This selector intentionally wins over the older voice.css :has() override. */
body #app .app-frame[data-page="home"]>.fab.shell-fab:not([hidden]){
  bottom:calc(92px + var(--app-bottom-inset,0px))!important;
}


/* HMONG-PAGE-AUDIT W06-03: compact legal/contact footer.
   Contact actions are preserved inside native, keyboard-operable details. */
body .policy-footer,
body:has(.app-frame>.cover) .policy-footer{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  gap:0 12px;
  width:min(calc(100% - 24px),640px);
  margin:0 auto;padding:8px 12px 10px;
  border-top:1px solid var(--line);
  background:transparent;min-height:0;
  font-size:12px;line-height:1.45;
}
body .policy-footer>strong{flex:0 0 auto;font-size:12px;margin:0;color:var(--text);font-weight:750;}
body .policy-footer nav,
body:has(.app-frame>.cover) .policy-footer nav{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:0 9px;min-width:0;padding:0;margin:0;
}
body .policy-footer nav>a,
body:has(.app-frame>.cover) .policy-footer nav>a{
  min-height:44px;font-size:12px;padding:4px 0;line-height:1.35;
}
body .policy-footer .company-details{
  display:block;flex:0 0 auto;max-width:100%;width:auto;min-width:0;
  border:0;margin:0;padding:0;
}
body .policy-footer .company-details[open]{
  flex:1 0 100%;width:100%;padding-top:2px;
}
body .policy-footer .company-details>.company-summary{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;min-width:76px;max-width:100%;
  padding:7px 12px;border:1px solid var(--line);
  border-radius:11px;background:var(--surface);color:var(--text);
  font-size:12px;font-weight:750;line-height:1.35;
  list-style:none;cursor:pointer;
}
body .policy-footer .company-summary::-webkit-details-marker{display:none;}
body .policy-footer .company-summary::after{
  content:"";display:block;width:7px;height:7px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-top:-3px;
}
body .policy-footer .company-details[open]>.company-summary::after{
  transform:rotate(225deg);margin-top:3px;
}
body .policy-footer .company-summary:focus-visible{
  outline:3px solid #d41b73;outline-offset:2px;
}
body .policy-footer .company-details:not([open])>.company-contact{
  display:none!important;
}
body .policy-footer .company-details[open]>.company-contact{
  display:block;box-sizing:border-box;
  width:100%;min-width:0;margin:5px 0 0;padding:13px 15px;
  background:var(--surface);color:var(--text);
  border-radius:14px;border:1px solid var(--line);
}
body .policy-footer .company-details[open] .company-name{font-size:16px;margin-bottom:6px;}
body .policy-footer .company-details[open] .company-meta{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px;
}
body .policy-footer .company-details[open] .company-meta a{
  display:inline-flex;align-items:center;min-height:44px;
  color:var(--text);text-decoration:underline;text-underline-offset:3px;
}
body .policy-footer .company-details[open] .company-meta a:focus-visible{
  outline:3px solid #d41b73;outline-offset:2px;
}
/* Editors, comment typing, real-time calls and chat keep their working canvas;
   the company details remain discoverable from all ordinary pages. */
body:is(.editor,.social-editor,.hc-route)>.policy-footer,
body:has(.app-frame[data-page="compose"])>.policy-footer,
body:has(.app-frame[data-page="comments"])>.policy-footer,
body:has(.app-frame[data-page="incoming"])>.policy-footer,
body:has(.comment-input)>.policy-footer,
body:has(.hm-call-screen:not([hidden]))>.policy-footer{
  display:none!important;
}
/* Drawer primary writing action uses existing pink FAB brand, guest login stays neutral. */
body .drawer-head>.primary[data-action="compose"]{
  min-height:48px;background:var(--shell-fab-color,#c92570);
  color:#fff;border:1px solid #ffffff1c;border-radius:13px;
  font-weight:800;
}
body .drawer-head>.primary[data-action="login"]{
  min-height:48px;background:var(--surface);color:var(--text);
  border:1px solid var(--line);border-radius:13px;
}
body .drawer-head>.primary:focus-visible{
  outline:3px solid #e65a9d;outline-offset:3px;
}
@media(max-width:430px){
  body .policy-footer,body:has(.app-frame>.cover) .policy-footer{
    gap:0 10px;padding:6px 10px 8px;
  }
  body .policy-footer .company-details[open] .company-meta{
    grid-template-columns:minmax(0,1fr);
  }
  body .policy-footer .company-details>.company-summary{
    min-width:74px;padding-inline:9px;
  }
}


/* W06-03 320px parity: override the old board-cover and social-top 12px padding. */
@media(max-width:359px){
  body .app-frame[data-page="home"] .shell-topbar,
  body .app-frame[data-page="home"]>.cover>.shell-topbar{
    padding-inline:10px!important;
    column-gap:6px!important;
  }
}


/* W06-03 home density: the FAB already opens writing, so suppress the redundant
   decorative prompt in board mode; preserve all five category shortcuts. */
body .app-frame[data-page="home"]>.intro-strip{display:none!important}
body .app-frame[data-page="home"]>.quick-boards{
  margin:5px 12px 2px;padding:4px 5px;gap:3px;
  border-radius:13px;min-height:0;
}
body .app-frame[data-page="home"]>.quick-boards button[data-action="board"]{
  min-height:52px;padding:3px 1px;gap:2px;
  line-height:1.2;font-size:11px;font-weight:650;
}
body .app-frame[data-page="home"]>.quick-boards button[data-action="board"]>.icon{
  width:20px;height:20px;flex-shrink:0;
}
body .app-frame[data-page="home"]>.section-caption{
  padding-top:5px;padding-bottom:4px;
}


/* Integrated conversation chrome must outrank lazy-loaded legacy light-theme rules. */
body.hc-route .app-frame .hc-root.hc-conversation{
  --hc-bg:var(--bg);background:var(--bg);
}
body.hc-route .app-frame .hc-root.hc-conversation .hc-header{
  background:var(--shell-header-bg);color:#fff;
  border-bottom:1px solid #ffffff20;box-shadow:none;
}
body.hc-route .app-frame .hc-root.hc-conversation .hc-header::after{display:none}
body.hc-route .app-frame .hc-root.hc-conversation .hc-header :is(.hc-icon,.hm-call-launch){
  color:#fff;background:transparent;
}

/* Keep the voice label in the same foreground as the actual input-tool button. */
body.hc-route .hc-root.hc-conversation .hc-composer .hc-microphone::after{color:inherit}


/* HMONG-HOTPINK-RESTORE W06-04: restore approved hot-pink states only.
   White-text solid buttons have 5.27:1 contrast; light tinted selections
   use deep-pink text (4.81:1). Dark inactive icons use a saturated, brighter
   hot-pink for legibility, never pastel #ed91b9/#ff9bc8. */
:root{
  --hm-hot-pink:#c92570;
  --hm-hot-pink-ink:#c92570;
  --hm-hot-pink-wash:#fff1f6;
  --hm-hot-pink-dark-icon:#f34898;
}
html body.social-home,
html body.social-home.light{
  --menu-accent:var(--hm-hot-pink);
  --menu-tint:#c9257014;
}
html body:not(.light):not(.hmong-website){
  --hm-hot-pink-ink:var(--hm-hot-pink-dark-icon);
  --menu-accent:var(--hm-hot-pink);
  --menu-tint:#c9257026;
}
html body.hmong-website{
  /* Later-loaded website.css used to force pale pink #ff9bc8. */
  --menu-accent:#c92570!important;
  --menu-tint:#c9257026!important;
  --hm-hot-pink-ink:var(--hm-hot-pink-dark-icon);
}
/* Original active navigation is a high-contrast, hot-pink button in dark mode. */
html body:not(.light):not(.hmong-website) .bottom-nav button[data-action="go"].active,
html body.hmong-website .bottom-nav button[data-action="go"].active{
  background:var(--hm-hot-pink)!important;
  color:#fff!important;
}
html body:not(.light):not(.hmong-website) .bottom-nav button[data-action="go"].active :is(svg,.icon,span),
html body.hmong-website .bottom-nav button[data-action="go"].active :is(svg,.icon,span){
  color:#fff!important;
}
html body.light:not(.hmong-website) .bottom-nav button[data-action="go"].active{
  background:var(--hm-hot-pink-wash)!important;
  color:var(--hm-hot-pink)!important;
  border-color:#ecc1d3;
}
html body.light:not(.hmong-website) .bottom-nav button[data-action="go"].active :is(svg,.icon,span){
  color:var(--hm-hot-pink)!important;
}
/* Both home modes: active filters / feed-board switcher use the same action pink. */
html body:not(.hmong-website) #app .app-frame[data-page="home"] :is(
  .social-filters button[aria-pressed="true"],
  .social-viewbar .home-views button[aria-pressed="true"]
),
html body:not(.hmong-website) #app .app-frame[data-page="home"]>.tabs>.pill[aria-pressed="true"]{
  background:var(--hm-hot-pink)!important;
  color:#fff!important;
  border-color:var(--hm-hot-pink)!important;
}
html body:not(.hmong-website) #app .app-frame[data-page="home"] :is(
  .social-filters button[aria-pressed="true"],
  .social-viewbar .home-views button[aria-pressed="true"]
) :is(.icon,svg,span){
  color:#fff!important;
}
/* Desktop/mobile website uses a higher-priority dark palette; override
   only selected navigation, without recoloring neutral cards or messages. */
html body.hmong-website .ws-layout .ws-sidebar nav .ws-nav-link.is-active,
html body.hmong-website .ws-main-column .app-frame .social-filters button[aria-pressed="true"],
html body.hmong-website .ws-main-column .app-frame .social-viewbar .home-views button[aria-pressed="true"]{
  background:var(--hm-hot-pink)!important;
  color:#fff!important;
  border-color:var(--hm-hot-pink)!important;
}
html body.hmong-website .ws-layout .ws-sidebar nav .ws-nav-link.is-active :is(span,svg,.icon),
html body.hmong-website .ws-main-column .app-frame .social-viewbar .home-views button[aria-pressed="true"] :is(span,svg,.icon){
  color:#fff!important;
}
html body.hmong-website .ws-languages button[aria-pressed="true"]{
  background:var(--hm-hot-pink-wash)!important;
  color:var(--hm-hot-pink)!important;
  border-radius:10px;
}
/* The user's hot-pink icon identity is for menu / category icons and
   explicit social actions, not every decorative or informational symbol. */
html body:not(.hmong-website) #app :is(
  .quick-boards button[data-action="board"]>.icon,
  .board-row .board-link>.icon
),
html body:not(.hmong-website) .drawer .board-row .board-link>.icon,
html body:not(.hmong-website) #app .app-frame:is([data-page="profile"],[data-page="settings"]) .hm-menu-row>.icon:first-child,
html body:not(.hmong-website) #app .app-frame[data-page="home"] .social-add-photo,
html body:not(.hmong-website) #app .app-frame[data-page="home"] :is(.social-save.active,.social-reactions .liked){
  color:var(--hm-hot-pink-ink)!important;
}
html body.hmong-website :is(
  .app-frame .board-row .board-link>.icon,
  .drawer .board-row .board-link>.icon,
  .app-frame .quick-boards button[data-action="board"]>.icon,
  .app-frame .social-add-photo,
  .app-frame[data-page="profile"] .hm-menu-row>.icon:first-child,
  .app-frame[data-page="settings"] .hm-menu-row>.icon:first-child,
  .ws-note-card button
){
  color:var(--hm-hot-pink-ink)!important;
}
/* The FAB, pink submit / writing actions, and desktop compose are already
   #c92570 in the deployed source: keep those exact values and interactions. */
html body .app-frame .fab.shell-fab,
html body .drawer-head>.primary[data-action="compose"]{
  background:var(--hm-hot-pink)!important;color:#fff!important;
}
/* Never tint guest login, disabled actions, destructive warnings or chat's
   W03-owned attachment '+' button. Their independent colors stay intact. */


/* HMONG-W03-09: only the active conversation uses the full WebView viewport. */
html:has(body.hc-room-fullscreen){height:100%;overflow:hidden}
body.hc-room-fullscreen{
  height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;
  padding:0!important;--page-controls-space:0px;--page-audio-space:0px;
}
body.hc-room-fullscreen #app{
  display:flex;flex:1 1 100%;height:100%;min-height:0;width:100%;
  overflow:hidden;margin:0;padding:0;
}
body.hc-room-fullscreen #app>.app-frame[data-page="chat"]{
  display:flex;flex-direction:column;flex:1 1 100%;height:100%;
  min-height:0;max-height:100%;margin:0;overflow:hidden;
  padding:0!important;width:100%;max-width:none;
}
body.hc-room-fullscreen #app>.app-frame[data-page="chat"]>.hc-root.hc-conversation{
  flex:1 1 100%;height:100%!important;min-height:0;max-height:100%;
  overflow:hidden;position:relative;margin:0;width:100%;
}
body.hc-room-fullscreen :is(.ws-header,.ws-sidebar,.ws-farewell,.shell-chat-brand,.bottom-nav,.policy-footer){
  display:none!important;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header{
  display:flex!important;flex-flow:row nowrap!important;align-items:center;
  flex:0 0 54px;height:54px!important;min-height:54px!important;
  max-height:54px;padding:4px 6px!important;column-gap:4px!important;
  overflow:hidden;background:var(--shell-header-bg,#162a40);
  border-bottom:1px solid #ffffff22;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>[data-hc="back"]{
  order:0;flex:0 0 44px;height:44px!important;min-height:44px!important;
  width:44px;min-width:44px;max-width:44px;padding:8px;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-room-header-avatar{
  order:1;flex:0 0 32px;width:32px;min-width:32px;max-width:32px;
  height:34px;min-height:34px;border-radius:11px;display:grid;place-items:center;
  margin:0;padding:0;cursor:pointer;overflow:hidden;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-room-header-avatar .hc-avatar{
  width:32px;height:32px;min-width:32px;min-height:32px;border-radius:10px;
  margin:0;font-size:14px;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-heading{
  order:2;display:flex;flex:1 1 0;min-width:0;max-width:none;
  width:0;min-height:44px;height:44px;align-items:flex-start;justify-content:center;
  flex-direction:column;gap:0;overflow:hidden;padding:0;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-heading h1{
  font-size:14px;line-height:1.25;max-width:100%;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;color:#fff;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-heading .hc-subtitle{
  font-size:10.5px;line-height:1.2;min-width:0;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>:is(.hc-icon,.hm-call-launch){
  order:3;display:grid;place-items:center;flex:0 0 44px;
  width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;
  padding:9px;margin:0;color:#fff;background:transparent;
}
body.hc-room-fullscreen .hc-header .country-name{
  display:inline-flex;align-items:center;min-width:0;max-width:100%;
  gap:4px;white-space:nowrap;vertical-align:middle;
}
body.hc-room-fullscreen .hc-header .country-name>.country-flag{
  order:2;width:19px!important;min-width:19px!important;
  height:19px!important;margin:0!important;border-radius:50%;object-fit:cover;
}
body.hc-room-fullscreen .hc-header .country-name>.country-label{
  order:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
}
body.hc-room-fullscreen .hc-header [data-member-name]:focus-visible{
  outline:2px solid #f34898;outline-offset:2px;
}
@media(max-height:440px){
 body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header{
   flex-basis:48px;height:48px!important;max-height:48px;min-height:48px!important;
   padding-block:2px!important;
 }
}

/* Keep the back control first even though generic .hc-icon matches it. */
body.hc-room-fullscreen #app .hc-root.hc-conversation .hc-header>.hc-icon[data-hc="back"]{order:-1!important}


/* HMONG W06-09: ONLY the two screenshots attached to the newest in-app board
   post are the palette reference. Navigation/category ~= #ed91b9 (historical
   design token), while action CTAs remain #c92570. JPEG pixels are not CSS. */
:root{
  --hm-navigation-pink:#ed91b9;
  --hm-navigation-pink-light:#a82060;
  --hm-navigation-dark-tint:#c9257026;
  --hm-navigation-light-tint:#fff1f6;
}
/* Selected tab remains distinguishable by ink, tinted background and line.
   Do not recolor disabled/warning controls or the full body text. */
html body:not(.light) .bottom-nav.hm-six-nav>button[data-action="go"].active,
html body.hmong-website .bottom-nav.hm-six-nav>button[data-action="go"].active{
  color:var(--hm-navigation-pink)!important;
  background:var(--hm-navigation-dark-tint)!important;
  border-top:2px solid var(--hm-navigation-pink)!important;
  font-weight:750!important;
}
html body:not(.light) .bottom-nav.hm-six-nav>button[data-action="go"].active :is(.icon,svg,span),
html body.hmong-website .bottom-nav.hm-six-nav>button[data-action="go"].active :is(.icon,svg,span){
  color:var(--hm-navigation-pink)!important;
}
html body.light:not(.hmong-website) .bottom-nav.hm-six-nav>button[data-action="go"].active{
  color:var(--hm-navigation-pink-light)!important;
  background:var(--hm-navigation-light-tint)!important;
  border-top:2px solid var(--hm-navigation-pink-light)!important;
  font-weight:750!important;
}
html body.light:not(.hmong-website) .bottom-nav.hm-six-nav>button[data-action="go"].active :is(.icon,svg,span){
  color:var(--hm-navigation-pink-light)!important;
}
/* Existing categories: songs, dramas, films and all sibling navigation icons.
   Existing UI functionality and actual icon assets are unchanged. */
html body:not(.light):not(.hmong-website) :is(
 #tube-root .tube-categories>button .icon,
 #tube-root .tube-categories>button svg,
 .app-frame .quick-boards button[data-action="board"]>.icon,
 .app-frame .board-row .board-link>.icon,
 .drawer .board-row .board-link>.icon
){
  color:var(--hm-navigation-pink)!important;
}
html body.light:not(.hmong-website) :is(
 #tube-root .tube-categories>button .icon,
 #tube-root .tube-categories>button svg,
 .app-frame .quick-boards button[data-action="board"]>.icon,
 .app-frame .board-row .board-link>.icon,
 .drawer .board-row .board-link>.icon
){
  color:var(--hm-navigation-pink-light)!important;
}
html body.hmong-website :is(
 #tube-root .tube-categories>button .icon,
 #tube-root .tube-categories>button svg,
 .app-frame .quick-boards button[data-action="board"]>.icon,
 .app-frame .board-row .board-link>.icon,
 .drawer .board-row .board-link>.icon
){
  color:var(--hm-navigation-pink)!important;
}
/* Website sidebar is also navigation, not an action CTA. */
html body.hmong-website .ws-layout .ws-sidebar nav .ws-nav-link.is-active{
  color:var(--hm-navigation-pink)!important;
  background:var(--hm-navigation-dark-tint)!important;
  border-color:var(--hm-navigation-pink)!important;
  font-weight:750!important;
}
html body.hmong-website .ws-layout .ws-sidebar nav .ws-nav-link.is-active :is(.icon,svg,span){
  color:var(--hm-navigation-pink)!important;
}
/* These two mode selectors navigate views; writing/photo actions stay pink. */
html body:not(.hmong-website) #app .app-frame[data-page="home"] .social-viewbar .home-views>button[aria-pressed="true"]{
  background:var(--hm-navigation-dark-tint)!important;
  color:var(--hm-navigation-pink)!important;
  border:1px solid var(--hm-navigation-pink)!important;
}
/* Light home tabs pair white labels/icons with a solid pink background. */
html body.light:not(.hmong-website) #app .app-frame[data-page="home"] .social-viewbar .home-views>button[aria-pressed="true"]{
  background:var(--hm-hot-pink)!important;
  color:#fff!important;
  border-color:var(--hm-hot-pink)!important;
}
html body.light:not(.hmong-website) #app .app-frame[data-page="home"] .social-viewbar .home-views>button[aria-pressed="true"] :is(span,svg,.icon){
  color:#fff!important;
}
html body.hmong-website .ws-main-column .app-frame .social-viewbar .home-views>button[aria-pressed="true"]{
  background:var(--hm-navigation-dark-tint)!important;
  color:var(--hm-navigation-pink)!important;
  border-color:var(--hm-navigation-pink)!important;
}
html body.hmong-website .ws-main-column .app-frame .social-viewbar .home-views>button[aria-pressed="true"] :is(span,svg,.icon){
  color:var(--hm-navigation-pink)!important;
}
/* Action affordance invariants: send, compose, attachment (+), phone and
   note/DM remain --hm-hot-pink/#c92570. No blanket --hm-hot-pink rewrite. */


/* W06-10 measured closeout: selected-navigation LABELS and ICONS are
   separate semantic roles on light canvas. Historical screenshot icon
   #ed91b9 is only ~2.05:1 on #fff1f6; use a related pink #c85d8b
   (3.55:1 non-text) for glyphs while keeping the readable #a82060
   (6.30:1 text) for captions. Do not touch --hm-hot-pink actions. */
:root{
  --hm-navigation-light-icon:#c85d8b;
}
html body.light:not(.hmong-website) .bottom-nav.hm-six-nav>button[data-action="go"].active :is(svg,.icon){
  color:var(--hm-navigation-light-icon)!important;
}
html body.light:not(.hmong-website) :is(
  #tube-root .tube-categories>button svg,
  #tube-root .tube-categories>button .icon,
  .app-frame .quick-boards button[data-action="board"]>.icon,
  .app-frame .board-row .board-link>.icon,
  .drawer .board-row .board-link>.icon
){
  color:var(--hm-navigation-light-icon)!important;
}
/* Active captions/spans continue to use --hm-navigation-pink-light
   = #a82060; write/send/call/new-message remain #c92570. */
