/* Site header (2026-10-22 redesign): dark account row over a green nav bar.
   The header resizes by its own width (container "hdr"), not the window's. */

.headerContainer { position: relative; z-index: 60; container: hdr / inline-size; }

.hx { position: relative; font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif; color: #E6EDF3; border-radius: 16px; border: 1px solid #232B33; box-shadow: 0 10px 30px rgb(0 0 0 / 28%); background: none; }
.hx a { text-decoration: none; }
.hx .ic, .hx-strip .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-strip { font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif; color: #E6EDF3; }
.hx button, .hx-strip button { font-family: inherit; }
.hx button:focus-visible, .hx a:focus-visible { outline: 2px solid #D4E8A6; outline-offset: 2px; }

/* top row */
.hx-top { position: relative; display: flex; align-items: center; gap: 8px; height: 84px; padding: 0 20px 0 22px; background: #101417; border-radius: 16px 16px 0 0; overflow: hidden; }
.hx-scene { position: absolute; inset: 0; pointer-events: none; }
.hx-brand { position: relative; display: flex; align-items: center; gap: 14px; color: #FFFFFF; }
.hx-brand:hover { color: #FFFFFF; }
.hx-brand img { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 45%)); }
.hx-word { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; color: #FFFFFF; }
.hx-word span { color: #B8D86B; }
.hx-gap { flex: 1 1 auto; }
.hx-right { position: relative; display: flex; align-items: center; gap: 8px; }
.hx-div { width: 1px; height: 28px; background: #2A323D; margin: 0 8px; }

.hx-upload { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: #7CAE7A; color: #14201A; font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 4px 14px rgb(124 174 122 / 22%); transition: background .15s, transform .15s; }
.hx-upload:hover, .hx-upload:focus { background: #8BBB89; color: #14201A; transform: translateY(-1px); }
.hx-ghost { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 10px; background: none; color: #E6EDF3; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.hx-ghost:hover { background: rgb(255 255 255 / 7%); color: #FFFFFF; }

.hx-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: none; color: #C3CCD5; cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.hx-iconbtn:hover, .hx-iconbtn[aria-expanded="true"] { background: rgb(255 255 255 / 7%); color: #FFFFFF; }
.hx-badge { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #E56E56; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; justify-content: center; box-shadow: 0 0 0 2px #101417; }

.hx-acct { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.hx-acct:hover, .hx-acct[aria-expanded="true"] { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 8%); }
.hx-acct .chev { width: 16px; height: 16px; color: #8B97A6; }
.hx-flag { height: 16px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%); }
.hx-xp { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: rgb(245 196 81 / 12%); color: #F5D27E; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-xp i { font-size: 12px; }

/* green nav bar */
.hx-bar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 9px; background: #4A6B4C; border-top: 1px solid rgb(255 255 255 / 7%); border-radius: 0 0 16px 16px; box-shadow: inset 0 -1px 0 rgb(0 0 0 / 18%); }
.hx-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.hx-nav::-webkit-scrollbar { display: none; }
.hx-nav a, .hx-nav button { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px; border: 0; border-radius: 10px; background: none; font-size: 16px; font-weight: 600; color: rgb(255 255 255 / 82%); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.hx-nav .ic { color: rgb(255 255 255 / 55%); width: 18px; height: 18px; transition: color .15s; }
.hx-nav .ic.chev { width: 15px; height: 15px; margin-left: -3px; }
.hx-nav a:hover, .hx-nav button:hover { background: rgb(255 255 255 / 7%); color: #FFFFFF; }
.hx-nav a:hover .ic, .hx-nav button:hover .ic { color: rgb(255 255 255 / 80%); }
.hx-nav .on { background: rgb(255 255 255 / 13%); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 9%); }
.hx-nav .on .ic { color: #D4E8A6; }
.hx-nav button[aria-expanded="true"] { background: rgb(255 255 255 / 9%); color: #FFFFFF; }

/* room login code: hidden until the eye button is pressed */
.hx-code { flex: none; display: inline-flex; align-items: center; gap: 11px; height: 42px; padding: 0 4px 0 12px; box-sizing: border-box; border: 1px solid rgb(255 255 255 / 12%); border-radius: 10px; background: rgb(0 0 0 / 22%); }
.hx-code .ic { color: #D4E8A6; width: 18px; height: 18px; }
.hx-code .lbl { display: flex; flex-direction: column; line-height: 1.1; }
.hx-code .lbl small { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgb(255 255 255 / 60%); }
.hx-code .lbl b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; font-weight: 600; color: #FFFFFF; letter-spacing: 0.02em; white-space: nowrap; }
.hx-code .pre { color: rgb(255 255 255 / 62%); }
.hx-code .val { display: none; }
.hx-code .dots { color: rgb(255 255 255 / 72%); letter-spacing: 0.12em; }
.hx-code.shown .val { display: inline; }
.hx-code.shown .dots { display: none; }
.hx-code .btns { display: inline-flex; gap: 4px; }
.hx-code .eye-off, .hx-code.shown .eye-on { display: none; }
.hx-code.shown .eye-off { display: block; }
.hx-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 9px; box-sizing: border-box; border: 0; border-radius: 7px; background: rgb(255 255 255 / 10%); color: #E6EDF3; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.hx-copy:hover { background: rgb(255 255 255 / 18%); color: #FFFFFF; }
.hx-copy.done { background: rgb(212 232 166 / 22%); color: #E9F5D2; }
.hx-copy .ic { color: inherit; }
.hx-strip { display: none; }

/* dropdown menus */
.hx-menu { position: absolute; z-index: 70; display: none; padding: 10px; box-sizing: border-box; background: #161B20; border: 1px solid #2C353F; border-radius: 14px; box-shadow: 0 24px 48px rgb(0 0 0 / 55%), 0 2px 6px rgb(0 0 0 / 30%); }
.hx-menu.open { display: flex; }
.hx-mi { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 8px; color: #D5DCE3; font-size: 16px; font-weight: 600; white-space: nowrap; }
.hx-mi:hover, .hx-mi[aria-current] { background: #222A32; color: #FFFFFF; }
.hx-mi .ic { color: #8B97A6; }
.hx-mh { padding: 12px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #7E8A98; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hx-tag { margin-left: auto; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.hx-tag.asia { color: #F2A08F; background: rgb(229 110 86 / 16%); }
.hx-tag.eu { color: #9DB8F2; background: rgb(86 137 229 / 18%); }
.hx-tag.vn { color: #F5C98F; background: rgb(240 163 94 / 16%); }

.hx-stats { width: 520px; max-width: calc(100% - 16px); }
.hx-stats > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; width: 100%; }
.hx-stats > div > div { display: flex; flex-direction: column; gap: 2px; }

.hx-account { top: 76px; right: 14px; width: 310px; max-width: calc(100% - 16px); flex-direction: column; gap: 2px; }
.hx-me { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid #2C353F; color: #FFFFFF; }
.hx-me:hover { color: #FFFFFF; }
.hx-me .pic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #252C34; border: 1px solid #333C47; }
.hx-me .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hx-me .who b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.hx-me .who span { display: inline-flex; align-items: center; gap: 5px; color: #F5D27E; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-me .go { margin-left: auto; color: #8B97A6; width: 18px; height: 18px; }
.hx-sep { height: 1px; background: #2C353F; margin: 8px 0; }
.hx-mi.out, .hx-mi.out .ic { color: #EE9B8A; }

/* narrower headers */
@container hdr (max-width: 1240px) { .hx .pitch { display: none; } }
@container hdr (max-width: 1080px) {
	.hx-nav a > .ic:first-child, .hx-nav button > .ic:first-child { display: none; }
	.hx-nav a, .hx-nav button { padding: 0 14px; }
	.hx-xp { display: none; }
}
@container hdr (max-width: 1000px) {
	.hx-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
}
@container hdr (max-width: 800px) {
	.hx-nav a, .hx-nav button { padding: 0 12px; }
	.hx-upload .long { display: none; }
	.hx-code .lbl small, .hx-code .pre { display: none; }
}

/* phones: smaller top row, login code in a strip under the header */
@container hdr (max-width: 600px) {
	.hx { border-radius: 14px; }
	.hx-top { height: 64px; gap: 4px; padding: 0 8px 0 12px; border-radius: 14px 14px 0 0; }
	.hx-brand { gap: 9px; }
	.hx-brand img { width: 40px; height: 40px; }
	.hx-word { font-size: 19px; }
	.hx-div, .hx-acct .name, .hx-upload span { display: none; }
	.hx-upload { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.hx-ghost, .hx-right .hx-upload.guest { width: auto; height: 40px; padding: 0 12px; font-size: 15px; }
	.hx-right .hx-upload.guest span { display: inline; }
	.hx-iconbtn { width: 44px; height: 44px; }
	.hx-acct { height: 44px; padding: 0 8px; gap: 6px; }
	.hx-bar { height: 52px; padding: 0 8px; border-radius: 0 0 14px 14px; }
	.hx-nav { gap: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
	.hx-bar .hx-code { display: none; }
	.hx-strip { display: flex; width: 100%; height: 50px; margin-top: 12px; padding: 0 6px 0 14px; background: #252C34; border-color: #333C47; }
	.hx-strip .lbl { flex: 1 1 auto; }
	.hx-strip .lbl small, .hx-strip .pre { display: inline; }
	.hx-strip .lbl small { display: block; }
	.hx-strip .hx-copy { height: 38px; min-width: 38px; }
	.hx-account { top: 58px; right: 8px; }
	.hx-stats > div { grid-template-columns: minmax(0, 1fr); }
}

/* notification panel (opens under the bell; placed by hmPositionNotificationPanel) */
.np { position: fixed; z-index: 9999; display: none; flex-direction: column; width: 420px; max-height: min(620px, calc(100vh - 100px)); box-sizing: border-box; font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif; color: #E6EDF3; background: #161B20; border: 1px solid #2C353F; border-radius: 14px; box-shadow: 0 24px 48px rgb(0 0 0 / 55%), 0 2px 6px rgb(0 0 0 / 30%); overflow: hidden; }
.np.is-open { display: flex; }
.np .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.np button { font-family: inherit; }
.np button:focus-visible, .np a:focus-visible { outline: 2px solid #D4E8A6; outline-offset: 2px; }
.np-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; }
.np-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: #FFFFFF; }
.np-new { padding: 2px 8px; border-radius: 999px; background: rgb(229 110 86 / 18%); color: #F2A08F; font-size: 12px; font-weight: 700; }
.np-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #D4E8A6; font-size: 14px; font-weight: 600; cursor: pointer; }
.np-all:hover { background: rgb(255 255 255 / 6%); }
.np-all:disabled { opacity: 0.4; cursor: default; background: none; }
.np-all .ic { width: 16px; height: 16px; }
.np-tabs { display: flex; gap: 4px; padding: 0 14px 10px; border-bottom: 1px solid #2C353F; }
.np-tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: #9AA6B3; font-size: 14px; font-weight: 600; cursor: pointer; }
.np-tabs button:hover { color: #FFFFFF; }
.np-tabs button[aria-pressed="true"] { background: #252C34; color: #FFFFFF; }
.np-list { display: flex; flex-direction: column; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.np-day { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #7E8A98; }
.nt { position: relative; display: flex; gap: 12px; padding: 10px 30px 10px 10px; border-radius: 10px; color: #C3CCD5; text-decoration: none; }
.nt:hover { background: #1E252C; color: #C3CCD5; }
.nt.unread { background: rgb(124 174 122 / 8%); }
.nt.unread:hover { background: rgb(124 174 122 / 13%); }
.nt .thumb { flex: none; width: 52px; height: 38px; border-radius: 7px; overflow: hidden; background: #2B3540; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%); }
.nt .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt .sys { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 38px; border-radius: 7px; background: #252C34; color: #B8D86B; }
.nt .body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nt .line { font-size: 15px; line-height: 1.3; color: #C3CCD5; overflow-wrap: anywhere; }
.nt .line b { color: #FFFFFF; font-weight: 700; }
.nt .quote { font-size: 14px; line-height: 1.35; color: #AEB8C3; padding: 6px 10px; border-radius: 7px; background: rgb(255 255 255 / 4%); overflow-wrap: anywhere; }
.nt .quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt .meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #7E8A98; }
.nt .meta .ic { width: 14px; height: 14px; }
.nt .meta.like .ic { color: #E56E56; fill: #E56E56; }
.nt .udot { position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #B8D86B; box-shadow: 0 0 0 3px rgb(184 216 107 / 18%); }
.np-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 30px 40px; text-align: center; }
.np-empty .ring { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #1E252C; color: #7CAE7A; margin-bottom: 6px; }
.np-empty .ring .ic { width: 26px; height: 26px; }
.np-empty b { font-size: 17px; color: #FFFFFF; }
.np-empty span { font-size: 15px; color: #9AA6B3; max-width: 260px; }
