/*
Theme Name: Happentell
Description: Happentell's own interface. Minimal but fun: people are the only colour. Features live in the Happentell plugin; this theme is looks only.
Version: 0.9.62
Requires at least: 6.4
Requires PHP: 7.4
Author: Happentell
Text Domain: happentell
License: GPL-2.0-or-later
*/

/* ---------- Tokens: themes and skins (see the design handoff) ---------- */
:root, [data-theme="stone"] {
	--bg: #E5E2DB; --paper: #F4F2EE; --ink: #1E1F23; --muted: #57554F; --soft: rgba(110, 78, 52, .11); --line: #CFCBC3;
	--scrim: rgba(30,31,35,.28); --danger: #B4382A;
}
/* Two families. Soft: Auto, Paper, Clay. Bolder: Stone and Charcoal, with more
   contrast between page, cards and text. (Auto keeps the softer values.) */
[data-theme="stone"] { --bg: #DEDAD1; --paper: #F8F6F2; --ink: #111215; --muted: #45423C; --soft: rgba(96, 64, 40, .14); --line: #BDB7AC; }
[data-theme="charcoal"] { --bg: #121316; --paper: #222329; --ink: #F7F5F1; --muted: #BAB7B0; --soft: rgba(255, 236, 218, .11); --line: #33343B; --scrim: rgba(0,0,0,.45); --danger: #FF7A6B; }
[data-theme="paper"]    { --bg: #F7F6F2; --paper: #FFFFFF; --ink: #1E1F23; --muted: #5A5852; --soft: rgba(110, 78, 52, .075); --line: #E2DFD8; }
[data-theme="clay"]     { --bg: #D3DDE7; --paper: #EDF2F6; --ink: #111215; --muted: #3A4048; --soft: rgba(40, 62, 88, .1); --line: #B9C6D3; } /* "Nordic" (key kept as clay) */
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] { --bg: #1E1F23; --paper: #2A2B30; --ink: #ECEAE5; --muted: #A9A7A1; --soft: rgba(255, 236, 218, .085); --line: #34353A; --scrim: rgba(0,0,0,.45); --danger: #FF7A6B; }
}
/* --soft (pills, quiet buttons, tiles) is a see-through warm tint on every theme,
   like the skins: it takes on the colour beneath it, glow included, instead of
   being a flat grey that sits oddly on the moving background. */
/* Paid skins: one flat colour each, nothing else. */
/* Soft skins: Violet, Duranta, Apricot (dark text).
   Deep skins: Pine, Tetsu-Kon, Aubergine, Mulberry (light text). */
[data-skin="rose"] { --bg: #D6B4FC; --paper: #EDDDFE; --ink: #111215; --muted: #3C3648; --soft: rgba(17,18,21,.1); --line: rgba(17,18,21,.18); --on-ink: #fff; }
[data-skin="citron"] { --bg: #D8E63C; --paper: #EDF4A7; --ink: #111215; --muted: #3D411E; --soft: rgba(17,18,21,.1); --line: rgba(17,18,21,.18); --on-ink: #fff; }
[data-skin="vermilion"] { --bg: #ED9E59; --paper: #F7D3B4; --ink: #111215; --muted: #413124; --soft: rgba(17,18,21,.1); --line: rgba(17,18,21,.18); --on-ink: #fff; }
[data-skin="pine"] { --bg: #0E3B2E; --paper: #214B3F; --ink: #F1F3F2; --muted: #B7C4C0; --soft: rgba(241,243,242,.1); --line: rgba(241,243,242,.17); --on-ink: #0A2920; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }
[data-skin="tetsukon"] { --bg: #17184B; --paper: #2A2A59; --ink: #F1F1F4; --muted: #B9BAC9; --soft: rgba(241,241,244,.1); --line: rgba(241,241,244,.17); --on-ink: #101134; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }
[data-skin="plum"] { --bg: #44174E; --paper: #532A5C; --ink: #F4F1F4; --muted: #C7B9CA; --soft: rgba(244,241,244,.1); --line: rgba(244,241,244,.17); --on-ink: #301037; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }
[data-skin="mulberry"] { --bg: #662249; --paper: #723458; --ink: #F6F2F4; --muted: #D1BDC8; --soft: rgba(246,242,244,.1); --line: rgba(246,242,244,.17); --on-ink: #471833; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }

:root { --online: #43BE5A; --col: 560px; --radius: 26px; --head: 'Archivo', system-ui, sans-serif; --body: 'Funnel Sans', system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }
html[data-size="0"] { zoom: .92; }
html[data-size="2"] { zoom: 1.12; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background-color .4s ease, color .4s ease; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .ht-title { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.ht-head { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; padding: 24px 40px; }
.ht-logo { justify-self: start; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ht-logo img, .ht-logo .custom-logo { width: 40px; height: 40px; display: block; }
.ht-logo .ht-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 18px; }
.ht-nav { width: var(--col); display: flex; justify-content: space-between; align-items: center; }
.ht-nav a { height: 44px; display: flex; align-items: center; font-family: var(--head); font-weight: 600; font-size: 16px; opacity: .42; transition: opacity .16s ease; }
.ht-nav a:hover, .ht-nav a.is-current { opacity: 1; }
.ht-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.ht-icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; opacity: .42; transition: opacity .16s ease; padding: 0; }
.ht-icon-btn:hover, .ht-icon-btn.is-current { opacity: 1; }
.ht-icon-btn svg, .ht-ico { width: 22px; height: 22px; }
.ht-me { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--online); overflow: hidden; display: block; flex: none; animation: htPulse 2.4s ease-out infinite; }
.ht-me img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes htPulse { 0% { box-shadow: 0 0 0 0 rgba(67,190,90,.55); } 70% { box-shadow: 0 0 0 12px rgba(67,190,90,0); } 100% { box-shadow: 0 0 0 0 rgba(67,190,90,0); } }

/* ---------- Page column ---------- */
.ht-col { width: min(var(--col), calc(100% - 40px)); margin: 0 auto; padding: 40px 0 80px; }
.ht-page-title { font-size: 42px; margin: 0 0 20px; }

/* ---------- App shell: sections as panels ---------- */
.ht-app { overflow: hidden; }
.ht-track { display: flex; width: 100%; will-change: transform; transition: transform .45s cubic-bezier(.22,1.25,.36,1); }
.ht-track.is-dragging { transition: none; }
.ht-panel { flex: 0 0 100%; min-width: 0; }
.ht-panel-inner { width: min(var(--col), calc(100% - 40px)); margin: 0 auto; padding: 40px 0 80px; }
.ht-panel h1 { font-size: 42px; margin: 0; }
.ht-sub { margin: 8px 0 0; font-size: 18px; color: var(--muted); }

/* Hello */
.ht-online { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.ht-faces { display: flex; padding-left: 10px; }
.ht-faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; margin-left: -10px; box-shadow: 0 0 0 3px var(--bg); }
.ht-online span { font-size: 15px; font-weight: 600; color: var(--muted); }
.ht-rows { margin-top: 24px; }
.ht-rowlink { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ht-rowlink .ht-ico { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--muted); opacity: .8; }
.ht-rowlink strong { font-weight: 700; }
.ht-rowlink small { display: block; font-size: 15px; color: var(--muted); }
.ht-end { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; color: var(--muted); }

.ht-card { padding: 22px; border-radius: var(--radius); background: var(--paper); margin-top: 22px; }
.ht-card p { margin: 0 0 12px; color: var(--muted); }
.ht-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink, var(--bg)); font-weight: 600; font-size: 15px; }
.ht-btn.is-quiet { background: var(--soft); color: var(--ink); }

/* ---------- Phone ---------- */
.ht-phonebar { display: none; }
@media (max-width: 759px) {
	.ht-head { display: none; }
	.ht-phonebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; position: sticky; top: 0; z-index: 5; background: var(--bg); }
	.ht-phonebar nav { display: flex; gap: 0; }
	.ht-phonebar .ht-icon-btn { width: 40px; }
	.ht-phonebar .ht-me { width: 40px; height: 40px; }
	.ht-panel-inner, .ht-col { width: calc(100% - 48px); padding: 26px 0 100px; }
	.ht-panel h1, .ht-page-title { font-size: 34px; }
	.ht-track { touch-action: pan-y pinch-zoom; }
}

/* ---------- Pop-ups (shared) ---------- */
.ht-scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ---------- Activities ---------- */
.ht-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ht-feed-head h1 { margin: 0; }
.ht-post { padding: 20px 0 14px; border-top: 1px solid var(--line); }
.ht-post-who { display: flex; align-items: center; gap: 10px; }
.ht-post-who strong { display: block; font-size: 15px; }
.ht-post-who small { display: block; font-size: 13px; color: var(--muted); }
.ht-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.ht-av.is-small { width: 32px; height: 32px; }
.ht-post-text { margin-top: 12px; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.ht-post-text.is-open { display: block; -webkit-line-clamp: none; }
.ht-post-text a { text-decoration: underline; text-underline-offset: 3px; }
.ht-gif { display: block; max-width: 70%; border-radius: 14px; margin: 8px 0; }
.ht-more-text { margin-top: 2px; padding: 0; height: 32px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-media { position: relative; margin-top: 14px; }
.ht-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; }
.ht-strip::-webkit-scrollbar { display: none; }
.ht-media-item { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--soft); cursor: zoom-in; display: block; max-height: 640px; }
.ht-media.is-multi .ht-media-item { flex-basis: 86%; }
.ht-media-item img, video.ht-media-item { width: 100%; height: 100%; object-fit: cover; display: block; }
video.ht-media-item { cursor: auto; background: #000; }
.ht-count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(17,17,17,.6); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.ht-tools-row { display: flex; justify-content: flex-end; gap: 2px; margin: 6px -10px 0 0; color: var(--muted); }
.ht-tool { height: 40px; min-width: 40px; padding: 0 8px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 999px; }
.ht-tool:hover { color: var(--ink); background: var(--soft); }
.ht-tool svg { width: 20px; height: 20px; }
.ht-comments { display: flex; flex-direction: column; gap: 12px; }
.ht-comments.is-folded .is-extra { display: none; }
.ht-comments:not(.is-folded) .ht-view-all { display: none; }
.ht-comment { display: flex; gap: 8px; }
.ht-comment.is-reply { margin-left: 40px; }
.ht-bubble { display: inline-block; padding: 9px 14px; border-radius: 18px; background: var(--paper); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ht-bubble strong { display: block; font-size: 13px; }
.ht-comment-meta { display: flex; gap: 14px; padding: 4px 0 0 14px; font-size: 12px; color: var(--muted); }
.ht-comment-meta button { padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); }
.ht-view-all { align-self: flex-start; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-reply { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 5px 0 16px; border-radius: 999px; background: var(--paper); }
.ht-reply[hidden] { display: none; }
.ht-reply input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.ht-reply button[type=submit] { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.ht-reply svg { width: 16px; height: 16px; }
.ht-empty { color: var(--muted); }
.ht-feed-end { padding: 26px 0 10px; border-top: 1px solid var(--line); text-align: center; }
.ht-end-note { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Composer, dialogs, viewer, toast ---------- */
.ht-scrim[hidden] { display: none; }
body.ht-noscroll { overflow: hidden; }
.ht-sheet, .ht-dialog { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 26px; background: var(--paper); padding: 14px 24px 22px; display: flex; flex-direction: column; gap: 14px; animation: htPop .22s ease-out; }
.ht-dialog { width: min(420px, 100%); padding: 26px 22px 18px; gap: 8px; }
.ht-dialog p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.ht-dialog textarea { min-height: 160px; border: 0; border-radius: 16px; background: var(--bg); padding: 14px 16px; font-size: 16px; line-height: 1.45; resize: vertical; outline: none; margin-bottom: 8px; }
.ht-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.ht-sheet-title { margin: 0; font-size: 22px; }
.ht-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: inherit; }
.ht-x svg { width: 20px; height: 20px; }
.ht-write { border-radius: 18px; background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ht-write textarea { min-height: 220px; border: 0; background: transparent; resize: none; font-size: 18px; line-height: 1.45; outline: none; padding: 0; }
.ht-attached { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-attached:empty { display: none; }
.ht-thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.ht-thumb img, .ht-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ht-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(30,31,35,.7); color: #fff; font-size: 16px; line-height: 1; }
.ht-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--muted); border-top-color: transparent; animation: htSpin .8s linear infinite; }
.ht-compose-tools { display: flex; margin: -4px -8px 0; }
.ht-compose-tools .ht-tool { width: 44px; height: 44px; }
.ht-compose-tools .ht-tool svg { width: 22px; height: 22px; }
.ht-audience { display: flex; flex-direction: column; gap: 10px; }
.ht-audience > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ht-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ht-chip { flex: none; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ht-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-wide { width: 100%; height: 52px; font-size: 16px; }
.ht-btn-text { height: 48px; border: 0; background: transparent; font-size: 16px; font-weight: 600; }
.ht-btn-text.is-danger { color: var(--danger); }
.ht-scrim.is-dark { background: rgba(12,12,14,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 0; color: #F2F1EE; }
.ht-viewer { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.ht-viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; font-weight: 700; }
.ht-viewer-top .ht-x { margin: 0; }
.ht-viewer-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.ht-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.ht-viewer-nav { position: absolute; top: 0; bottom: 0; width: 30%; border: 0; background: transparent; color: inherit; display: flex; align-items: center; padding: 0 16px; }
.ht-viewer-nav[hidden] { display: none; }
.ht-viewer-nav.is-prev { left: 0; justify-content: flex-start; }
.ht-viewer-nav.is-next { right: 0; justify-content: flex-end; }
.ht-viewer-nav span { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.ht-viewer-nav svg { width: 22px; height: 22px; }
.ht-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 28px; min-height: 6px; }
.ht-dots i { width: 6px; height: 6px; border-radius: 999px; background: #F2F1EE; opacity: .4; transition: width .2s ease; }
.ht-dots i.is-on { width: 18px; opacity: 1; }
.ht-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: htToast .26s ease-out; }
.ht-toast[hidden] { display: none; }
@keyframes htPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes htToast { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes htSpin { to { transform: rotate(360deg); } }
@media (max-width: 759px) {
	.ht-scrim:not(.is-dark) { align-items: flex-end; padding: 0; }
	.ht-sheet { width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; padding-bottom: 34px; animation: htUp .26s cubic-bezier(.2,.8,.2,1); }
	.ht-write textarea { min-height: 150px; }
	.ht-chips { gap: 5px; }
	.ht-chip { height: 36px; padding: 0 12px; font-size: 13px; }
	.ht-dialog { margin: 0 12px 24px; }
	.ht-viewer-nav span { display: none; }
	.ht-toast { bottom: 24px; }
}
@keyframes htUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Profile ---------- */
.ht-icon-btn.is-solid { opacity: 1; margin: 0 -10px; }
.ht-profile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ht-profile-head { display: flex; align-items: center; gap: 20px; }
.ht-profile-head h1 { margin: 0; font-size: 32px; }
.ht-big-av { flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: block; background: var(--soft); }
.ht-big-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-big-av.is-online { border: 3px solid var(--online); box-sizing: border-box; animation: htPulseBig 2.4s ease-out infinite; }
@keyframes htPulseBig { 0% { box-shadow: 0 0 0 0 rgba(67,190,90,.5); } 70% { box-shadow: 0 0 0 16px rgba(67,190,90,0); } 100% { box-shadow: 0 0 0 0 rgba(67,190,90,0); } }
.ht-handle { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); }
.ht-qr-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.ht-qr-btn svg { width: 17px; height: 17px; }
.ht-profile-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ht-bio { margin: 18px 0 0; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ht-bio.is-open { display: block; }
.ht-keywords { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.ht-keywords .ht-chip { height: 32px; display: inline-flex; align-items: center; line-height: 1; }
@media (min-width: 760px) { .ht-keywords { flex-wrap: wrap; overflow: visible; } }
.ht-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ht-btn.is-static { cursor: default; }
.ht-btn.is-small { height: 36px; padding: 0 14px; font-size: 13px; }
.ht-village-row { margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ht-village-row strong { display: block; }
.ht-village-row small { color: var(--muted); font-size: 13px; }
.ht-faces.is-small img { width: 30px; height: 30px; margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.ht-tabs-line { display: flex; gap: 22px; margin: 20px 0 6px; }
.ht-tabs-line a { height: 40px; display: flex; align-items: center; font-weight: 700; opacity: .45; border-bottom: 2px solid transparent; }
.ht-tabs-line a.is-current { opacity: 1; border-color: var(--ink); }
.ht-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.ht-grid-cell { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); }
.ht-grid-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-grid .ht-empty { grid-column: 1 / -1; }
.ht-qr { align-items: center; text-align: center; }
.ht-qr-code { width: 220px; height: 220px; padding: 14px; border-radius: 20px; background: #fff; margin: 0 auto 6px; }
.ht-qr-code svg { width: 100%; height: 100%; display: block; }
.ht-two { display: flex; gap: 8px; width: 100%; }
.ht-two .ht-btn { flex: 1; }

/* ---------- Settings ---------- */
.ht-settings { display: flex; justify-content: center; gap: 64px; padding: 40px 20px 80px; }
.ht-side { flex: none; width: 210px; position: sticky; top: 24px; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.ht-side-title { font-family: var(--head); font-weight: 700; font-size: 22px; padding: 0 14px 12px; }
.ht-side a { height: 42px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 500; opacity: .7; }
.ht-side a.is-current { background: var(--paper); font-weight: 700; opacity: 1; }
.ht-side-note { margin: 16px 14px 0; font-size: 13px; color: var(--muted); }
.ht-side a.ht-side-out { margin-top: 20px; }
.ht-settings::after { content: ""; flex: none; width: 210px; }
.ht-set-col { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ht-set-top { display: none; justify-content: space-between; align-items: center; }
.ht-saved { font-size: 13px; font-weight: 600; color: var(--muted); }
.ht-saved[hidden] { display: none; }
.ht-jumps { display: none; }
.ht-sec[hidden] { display: none; }
.ht-sec { display: flex; flex-direction: column; gap: 10px; }
.ht-sec > .ht-page-title { margin: 0; }
.ht-sec > .ht-sub { margin: 0 0 10px; font-size: 15px; }
.ht-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ht-card > small, .ht-sec > small { color: var(--muted); font-size: 13px; }
.ht-center { align-items: center; text-align: center; }
.ht-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ht-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.ht-row-head small { color: var(--muted); font-size: 13px; }
.ht-tile { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--paper); }
.ht-tile strong { display: block; font-size: 16px; }
.ht-tile small { display: block; font-size: 13px; color: var(--muted); }
.ht-tile-you { align-items: center; }
.ht-tile-you img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--online); }
.ht-tile-you strong { font-family: var(--head); font-size: 20px; }
.ht-tile-stats { flex-direction: column; background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-tile-stats > small { display: flex; justify-content: space-between; color: inherit; opacity: .7; font-weight: 600; }
.ht-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ht-stats3 span { font-size: 12px; opacity: .8; }
.ht-stats3 b, .ht-tile b, .ht-big-stat b { display: block; font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.02em; margin-bottom: 4px; opacity: 1; }
.ht-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 900px) { .ht-sec[data-section="home"] .ht-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.ht-tiles.is-two .ht-tile { flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.ht-tiles.is-two .ht-tile b { color: var(--ink); }
.ht-sq { aspect-ratio: 1; flex-direction: column; justify-content: space-between; }
.ht-dots4 { display: flex; }
.ht-dots4 i { width: 32px; height: 32px; border-radius: 50%; margin-right: -9px; box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 1px rgba(0,0,0,.08); }
.ht-monos { display: flex; }
.ht-monos i { width: 30px; height: 30px; border-radius: 50%; margin-right: -8px; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 3px var(--paper); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 12px; }
.ht-ico-box { width: 40px; height: 40px; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.ht-list { border-radius: var(--radius); background: var(--paper); padding: 4px 18px; }
.ht-list a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ht-list a + a { border-top: 1px solid var(--soft); }
.ht-list small { color: var(--muted); font-size: 13px; }
.ht-logout { align-self: center; margin-top: 10px; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ht-logout svg { width: 20px; height: 20px; }
.ht-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ht-field input, .ht-field textarea, .ht-field select { border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); padding: 12px 14px; font-size: 16px; font-weight: 500; outline: none; }
.ht-field textarea { resize: none; line-height: 1.45; }
.ht-field.ht-inline { margin-top: 8px; }
.ht-gifs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; width: 100%; }
.ht-gifs button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; overflow: hidden; background: var(--soft); }
.ht-gifs img { width: 100%; height: 100%; object-fit: cover; }
.ht-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-kw-chip { height: 36px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.ht-kw-chip button { width: 28px; height: 28px; border: 0; background: transparent; color: inherit; font-size: 16px; opacity: .7; }
.ht-kw input { height: 36px; border: 0; border-radius: 999px; background: var(--bg); padding: 0 14px; font-size: 14px; width: 140px; outline: none; }
.ht-kw input[hidden] { display: none; }
.ht-themes { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.ht-themes button, .ht-skins button { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.ht-themes button[aria-checked="true"], .ht-skins button[aria-pressed="true"] { font-weight: 700; }
.ht-mini { width: 100%; aspect-ratio: 9/15; border-radius: 12px; padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
[aria-checked="true"] > .ht-mini, [aria-pressed="true"] > .ht-swatch { box-shadow: 0 0 0 2.5px var(--ink); }
.ht-mini i { display: block; border-radius: 5px; }
.ht-mini i:nth-child(1) { width: 60%; height: 5px; }
.ht-mini i:nth-child(2) { flex: 1; }
.ht-mini i:nth-child(3) { height: 12px; }
.ht-mini.is-auto { background: linear-gradient(135deg, #E5E2DB 50%, #1E1F23 50%); }
.ht-mini.is-auto i { background: rgba(138,135,128,.4); }
.ht-mini.is-stone { background: #DEDAD1; } .ht-mini.is-stone i { background: #F8F6F2; } .ht-mini.is-stone i:first-child { background: #111215; }
.ht-mini.is-charcoal { background: #121316; } .ht-mini.is-charcoal i { background: #222329; } .ht-mini.is-charcoal i:first-child { background: #F7F5F1; }
.ht-mini.is-paper { background: #F7F6F2; } .ht-mini.is-paper i { background: #fff; } .ht-mini.is-paper i:first-child { background: #1E1F23; }
.ht-mini.is-clay { background: #D3DDE7; } .ht-mini.is-clay i { background: #EDF2F6; } .ht-mini.is-clay i:first-child { background: #111215; }
/* Skins: pills with a colour dot and the full name, wrapping as needed. */
.ht-skins { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-skins button { flex-direction: row; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink); }
.ht-skins .ht-swatch { width: 28px; height: 28px; flex: none; }
.ht-skins .ht-skins-label { flex-basis: 100%; }
.ht-swatch { width: 100%; aspect-ratio: 1; border-radius: 50%; display: block; }
.ht-swatch.is-rose { background: #D6B4FC; }
.ht-swatch.is-citron { background: #D8E63C; }
.ht-swatch.is-vermilion { background: #ED9E59; }
.ht-swatch.is-pine { background: #0E3B2E; }
.ht-swatch.is-tetsukon { background: #17184B; }
.ht-swatch.is-plum { background: #44174E; }
.ht-swatch.is-mulberry { background: #662249; }
.ht-skins-label { grid-column: 1 / -1; margin: 6px 0 -2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ht-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.ht-seg button { flex: 1; height: 44px; border: 0; border-radius: 999px; background: transparent; font-family: var(--head); font-weight: 700; }
.ht-seg button[aria-checked="true"] { background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-order { list-style: none; margin: 0; padding: 0; }
.ht-order li { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.ht-order li + li { border-top: 1px solid var(--soft); }
.ht-order span { flex: 1; font-weight: 600; }
.ht-order button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.ht-order li:first-child [data-move="-1"], .ht-order li:last-child [data-move="1"] { opacity: .25; }
.ht-count-line { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.ht-count-line b { color: var(--ink); font-size: 22px; }
.ht-source { width: 100%; min-height: 56px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 0; }
.ht-source + .ht-source { border-top: 1px solid var(--soft); }
.ht-source strong { display: block; font-size: 16px; font-weight: 600; }
.ht-lean { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ht-lean i { position: relative; width: 44px; height: 4px; border-radius: 2px; background: var(--soft); }
.ht-lean i::after { content: ""; position: absolute; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ht-lean.is-left i::after { left: 0; } .ht-lean.is-neutral i::after { left: 18px; } .ht-lean.is-right i::after { right: 0; }
.ht-check { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: transparent; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.ht-source[aria-pressed="true"] .ht-check { background: var(--ink); color: var(--paper); }
.is-news-full .ht-source[aria-pressed="false"] { opacity: .45; }
.ht-sentences { gap: 0; }
.ht-sentence { margin: 0; padding: 12px 0; font-size: 17px; line-height: 1.45; }
.ht-sentence + .ht-sentence { border-top: 1px solid var(--soft); }
.ht-word { padding: 0; border: 0; background: transparent; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.ht-person { display: flex; align-items: center; gap: 12px; }
.ht-person img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.ht-person span { flex: 1; font-weight: 600; }
.ht-switch-row { width: 100%; min-height: 60px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.ht-switch-row + .ht-switch-row { border-top: 1px solid var(--soft); }
.ht-switch-row strong { display: block; font-weight: 600; }
.ht-switch-row small { color: var(--muted); font-size: 13px; }
.ht-switch { flex: none; position: relative; width: 48px; height: 30px; border-radius: 999px; background: var(--soft); transition: background .2s ease; }
.ht-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s ease; }
[aria-checked="true"] > .ht-switch { background: var(--ink); }
[aria-checked="true"] > .ht-switch::after { transform: translateX(18px); background: var(--bg); }
.ht-big-stat { padding: 20px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink, var(--bg)); font-size: 15px; }
.ht-big-stat b { font-size: 60px; }
.ht-periods { flex-wrap: wrap; }
.ht-period { display: flex; flex-direction: column; gap: 10px; }
.ht-period[hidden] { display: none; }
.ht-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 14px; }
.ht-bar-row i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--ink); }
.ht-pick { flex-direction: column; gap: 2px; cursor: pointer; }
.ht-pick:has(input:checked) { background: var(--ink); color: var(--bg); }
.ht-pick:has(input:checked) small { color: inherit; opacity: .75; }
.ht-kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ht-kv span:first-child { font-weight: 600; }
.ht-kv span:last-child { color: var(--muted); }
.ht-download small { color: var(--muted); font-size: 13px; }
.ht-leave { align-self: center; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ht-about { padding: 20px 0; }
.ht-logo.is-big img, .ht-logo.is-big .ht-mark { width: 64px; height: 64px; }
.ht-crop-stage { display: flex; justify-content: center; }
.ht-crop-stage canvas { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; background: var(--soft); }
.ht-preview-bar { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 40; max-width: 520px; margin: 0 auto; border-radius: 22px; background: var(--ink); color: var(--bg); padding: 12px 12px 12px 20px; display: flex; align-items: center; gap: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.ht-preview-bar[hidden] { display: none; }
.ht-preview-bar span { flex: 1; }
.ht-preview-bar strong { display: block; }
.ht-preview-bar small { opacity: .75; font-size: 13px; }
.ht-preview-bar .ht-btn-text { color: inherit; font-size: 14px; height: 40px; padding: 0 10px; }
.ht-btn.is-light { background: var(--bg); color: var(--ink); height: 40px; }
.ht-card img.ht-big-av, img.ht-big-av { width: 160px; height: 160px; flex: none; border-radius: 50%; object-fit: cover; }
.ht-logo.is-big { width: auto; height: auto; display: inline-flex; }
.ht-logo.is-big img, .ht-logo.is-big .ht-mark { width: 64px; height: 64px; border-radius: 50%; }
.ht-self-start { align-self: flex-start; }
.ht-counter { align-self: flex-end; margin-top: -4px; color: var(--muted); font-size: 12px; }
.ht-kw-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ht-kw-suggest[hidden] { display: none; }
.ht-kw-suggest span { font-size: 13px; color: var(--muted); }
.ht-kw-suggest button { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; }
.ht-pro-form { display: flex; flex-direction: column; gap: 16px; }
.ht-pro-form .ht-tiles { gap: 12px; }
.ht-pro-form .ht-pick { padding: 18px; gap: 4px; }
.ht-pro-form .ht-card { padding: 22px; gap: 16px; }
/* Our own dropdown, used instead of the browser's everywhere. */
.ht-select { position: relative; }
.ht-select-btn { width: 100%; height: 48px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 500; text-align: left; }
.ht-select-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); flex: none; }
.ht-select-btn .is-placeholder { color: var(--muted); }
.ht-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent), 0 10px 28px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.06); animation: htPop .16s ease-out; }
.ht-menu-list { max-height: 308px; overflow-y: auto; overscroll-behavior: contain; }
.ht-menu[hidden] { display: none; }
.ht-menu button { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.ht-menu button:hover, .ht-menu button:focus-visible { background: var(--soft); outline: none; }
.ht-menu button[aria-selected="true"] { font-weight: 700; }
.ht-menu button[aria-selected="true"]::after { content: "✓"; }
.ht-menu-title { display: none; }
@media (max-width: 759px) {
	.ht-menu.is-sheet .ht-menu-list { max-height: calc(70vh - 64px); }
	.ht-menu.is-sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; border-radius: 28px 28px 0 0; padding: 12px 16px 34px; animation: htUp .26s cubic-bezier(.2,.8,.2,1); }
	.ht-menu.is-sheet .ht-menu-title { display: block; padding: 6px 8px 10px; font-weight: 700; font-size: 18px; }
	.ht-menu-scrim { position: fixed; inset: 0; z-index: 29; background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (max-width: 899px) {
	.ht-settings { gap: 0; padding: 26px 20px 100px; }
	.ht-side, .ht-settings::after { display: none; }
	.ht-set-top { display: flex; }
	.ht-jumps { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px 6px; padding: 0 20px; scrollbar-width: none; }
	.ht-settings.is-home .ht-jumps { display: none; }
	.ht-jumps a { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--paper); display: flex; align-items: center; font-size: 14px; font-weight: 600; }
	.ht-jumps a.is-current { background: var(--ink); color: var(--bg); }
	.ht-profile-head { gap: 16px; }
	.ht-big-av { width: 92px; height: 92px; }
	.ht-profile-head h1 { font-size: 26px; }
	.ht-gifs { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.ht-me, .ht-sheet, .ht-dialog, .ht-toast, .ht-spin, .ht-big-av { animation: none; }
	.ht-track { transition: none; }
	body { transition: none; }
}

/* =================================================================== */
/* 0.4: Messages, Atrium, Village, Groups                               */
/* =================================================================== */
.ht-audience[hidden] { display: none; }
.ht-phonebar .ht-icon-btn { width: 38px; }
[data-badge] { position: relative; }
[data-badge]::after { content: attr(data-badge); position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--online); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
.ht-icon-btn[data-badge] { opacity: 1; }
.ht-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--online); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; vertical-align: middle; }
.ht-input { width: 100%; box-sizing: border-box; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); padding: 13px 14px; font-size: 16px; outline: none; resize: none; }
.ht-optional { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ht-hint { margin: 0; font-size: 14px; color: var(--muted); }
.ht-back { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 14px -6px; height: 40px; font-weight: 600; color: var(--muted); }
.ht-back svg { width: 18px; height: 18px; }

/* Faces with an online ring */
.ht-face { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: block; }
.ht-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--soft); }
.ht-face.is-online::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2.5px var(--bg); }
.ht-mono { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--ink); color: var(--on-ink, var(--bg)); font-family: var(--head); font-weight: 800; font-size: 17px; }
.ht-mono.is-big { width: 96px; height: 96px; border-radius: 30px; font-size: 34px; }

/* Rows (chat list, village list, who's here) */
.ht-rows .ht-row, .ht-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: inherit; cursor: pointer; }
.ht-row:first-child { border-top: 0; }
.ht-row-main { flex: 1; min-width: 0; }
.ht-row-main strong { display: block; font-size: 16px; }
.ht-row-main small { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-row.is-unread .ht-row-main small { color: var(--ink); font-weight: 600; }
.ht-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.ht-day { align-self: center; margin: 16px auto 8px; padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 700; color: var(--muted); width: max-content; }

/* ---------- Messages ---------- */
.ht-msg-tabs { margin-top: 20px; background: var(--paper); }
.ht-convo { display: flex; flex-direction: column; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 380px; }
.ht-convo[hidden] { display: none; }
.ht-convo-head { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ht-convo-head .ht-x { margin: 0 0 0 -12px; }
.ht-convo-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ht-convo-who .ht-face { width: 40px; height: 40px; }
.ht-convo-who strong { display: block; font-size: 17px; }
.ht-convo-who small { display: block; font-size: 13px; color: var(--online); font-weight: 600; }
.ht-bubbles, .ht-room { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 14px; overscroll-behavior: contain; }
.ht-bubbles .ht-bubble, .ht-room .ht-bubble { position: relative; max-width: 78%; align-self: flex-start; padding: 9px 14px 7px; border-radius: 20px 20px 20px 6px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ht-bubbles .ht-bubble.is-mine, .ht-room .ht-bubble.is-mine { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--on-ink, var(--bg)); cursor: pointer; }
.ht-room .ht-bubble.is-mine { cursor: default; }
.ht-bubble-time { display: block; margin-top: 2px; font-size: 11px; opacity: .6; text-align: right; }
.ht-bubbles .ht-bubble.is-deleted { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-style: italic; cursor: default; }
.ht-bubbles .ht-bubble.is-emoji { background: transparent; padding: 0 2px; font-size: 44px; line-height: 1.15; }
.ht-bubbles .ht-bubble.is-emoji .ht-bubble-time { color: var(--muted); opacity: 1; }
.ht-bubbles .ht-bubble.is-media { padding: 5px 5px 7px; }
.ht-bubbles .ht-bubble.is-media img { display: block; max-width: 100%; max-height: 300px; border-radius: 15px; }
.ht-bubbles .ht-bubble.is-media .ht-bubble-text { display: block; padding: 6px 9px 0; }
.ht-bubbles .ht-bubble.is-media .ht-bubble-time { padding-right: 8px; }
.ht-gif-label { position: absolute; top: 12px; left: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.ht-seen { align-self: flex-end; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ht-msg-bar { display: flex; align-items: flex-end; gap: 2px; padding: 6px 6px 6px 8px; border-radius: 26px; background: var(--paper); }
.ht-msg-bar[hidden] { display: none; }
.ht-msg-bar textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; padding: 9px 8px; border: 0; background: transparent; font-size: 16px; line-height: 1.4; resize: none; outline: none; }
.ht-msg-bar .ht-tool { color: var(--muted); }
.ht-gif-btn { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .03em; }
.ht-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink, var(--bg)); display: flex; align-items: center; justify-content: center; }
.ht-send svg { width: 18px; height: 18px; }
.ht-msg-attach { position: relative; align-self: flex-start; margin: 0 0 8px; }
.ht-msg-attach img { display: block; height: 90px; border-radius: 14px; }
.ht-msg-attach.is-loading img { opacity: .5; }
.ht-msg-attach .ht-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 18px; }
.ht-picker { margin-top: 8px; padding: 12px; border-radius: 22px; background: var(--paper); max-height: 260px; overflow-y: auto; }
.ht-picker input { width: 100%; box-sizing: border-box; margin-bottom: 10px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg); font-size: 16px; outline: none; }
.ht-picker-grid.is-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 2px; }
.ht-emoji { height: 42px; border: 0; border-radius: 12px; background: transparent; font-size: 24px; }
.ht-emoji:hover { background: var(--soft); }
.ht-picker-grid.is-gif { columns: 3 110px; column-gap: 6px; }
.ht-gif-pick { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--soft); break-inside: avoid; }
.ht-gif-pick img { display: block; width: 100%; }
.ht-picker-credit { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); text-align: right; }
.ht-choices { width: min(420px, 100%); gap: 4px; padding: 14px; }
.ht-choice { height: 54px; border: 0; border-radius: 16px; background: var(--bg); font-size: 16px; font-weight: 600; color: var(--ink); }
.ht-choice.is-danger { color: var(--danger); }
.ht-choice.is-quiet { background: transparent; color: var(--muted); }
@media (max-width: 759px) {
	.ht-msg.is-open .ht-convo { height: calc(100dvh - 150px); }
	.ht-choices { padding-bottom: 30px; }
}

/* ---------- Atrium ---------- */
.ht-atrium { display: flex; flex-direction: column; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 420px; }
.ht-atrium-head { display: flex; align-items: center; gap: 10px; }
.ht-atrium-head h1 { flex: 1; }
.ht-here { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; color: var(--ink); }
.ht-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); animation: htPulse 2.4s ease-out infinite; }
.ht-help { margin: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font-family: var(--head); font-weight: 800; font-size: 16px; }
.ht-atrium-sub { margin: 6px 0 4px; font-size: 15px; color: var(--muted); }
.ht-said { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.ht-said.is-cont { margin-top: 0; }
.ht-said.is-cont .ht-face { visibility: hidden; }
.ht-said.is-mine { justify-content: flex-end; }
.ht-said .ht-face { width: 32px; height: 32px; }
.ht-said-body { display: flex; flex-direction: column; max-width: 78%; min-width: 0; }
.ht-said.is-mine .ht-said-body { align-items: flex-end; }
.ht-said-name { font-size: 12px; color: var(--muted); margin: 0 0 3px 12px; }
.ht-room .ht-bubble { max-width: 100%; }
.ht-skull { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); opacity: .35; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.ht-skull svg { width: 17px; height: 17px; }
.ht-said:hover .ht-skull, .ht-skull:focus-visible { opacity: .8; }
.ht-skull.is-on { opacity: .9; color: var(--danger); }
.ht-skull-n { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; box-sizing: border-box; }
.ht-typing { min-height: 20px; margin: 0 0 4px 4px; font-size: 13px; color: var(--muted); font-style: italic; }
.ht-ban { margin: 0; padding: 16px 18px; border-radius: 20px; background: var(--paper); font-size: 15px; color: var(--muted); }
.ht-left { align-self: center; padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ht-left.is-low { color: var(--danger); }
.ht-rules { margin: 6px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--muted); line-height: 1.45; }
.ht-rules strong { display: block; color: var(--ink); }

/* ---------- Village ---------- */
.ht-meter { height: 6px; margin: 14px 0 22px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.ht-meter i { display: block; height: 100%; border-radius: inherit; background: var(--online); }
.ht-vil-tabs { background: var(--paper); }
.ht-vil-tabs a { flex: 1; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--head); font-weight: 700; }
.ht-vil-tabs a[aria-selected="true"] { background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-vtab { margin-top: 22px; }
.ht-circle-filter { margin-bottom: 18px; }
@media (min-width: 760px) { .ht-circle-filter { flex-wrap: wrap; overflow: visible; } }
.ht-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; }
.ht-villager { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; border-radius: 18px; background: transparent; color: inherit; text-align: center; cursor: pointer; min-width: 0; }
.ht-villager[hidden] { display: none; }
.ht-villager:hover { background: var(--soft); }
.ht-villager .ht-face { width: 72px; height: 72px; margin-bottom: 4px; }
.ht-villager .ht-face.is-online::after { width: 15px; height: 15px; right: 2px; bottom: 2px; }
.ht-villager strong { max-width: 100%; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-villager small { font-size: 12px; color: var(--muted); }
.ht-person-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -18px; text-align: center; }
.ht-person-top img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
#ht-person-sheet .ht-seg { background: var(--bg); }
.ht-person-btns { display: flex; gap: 8px; }
.ht-person-btns .ht-btn { flex: 1; height: 50px; }
.ht-request { padding: 18px; border-radius: var(--radius); background: var(--paper); margin-bottom: 12px; }
.ht-request-who { display: flex; align-items: center; gap: 12px; }
.ht-request-who strong { display: block; font-size: 17px; }
.ht-request-who small { display: block; font-size: 13px; color: var(--muted); }
.ht-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--bg); font-size: 16px; line-height: 1.45; }
.ht-note.is-empty { background: transparent; padding: 0; color: var(--muted); }
.ht-request-btns { display: flex; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--muted); }
.ht-request-btns .ht-btn { flex: 1; }
.ht-request.is-invite .ht-request-btns { margin-top: 12px; }
.ht-request.is-done { opacity: .75; }
.ht-start-group { margin: 4px 0 20px; }
.ht-groups { display: flex; flex-direction: column; gap: 10px; }
.ht-group-card { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--paper); }
.ht-group-cover { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--soft) center / cover no-repeat; display: flex; overflow: hidden; }
.ht-group-cover .ht-mono { width: 100%; height: 100%; border-radius: 0; }
.ht-group-meta { flex: 1; min-width: 0; }
.ht-group-meta strong { display: block; font-size: 17px; }
.ht-group-meta small { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Group page ---------- */
.ht-cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 22px; }
.ht-cover.is-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; }
.ht-cover-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 6s ease-out; }
.ht-cover-img.is-on { opacity: 1; transform: scale(1); }
.ht-cover-edit { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(17,17,17,.55); color: #fff; display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ht-cover-edit svg { width: 20px; height: 20px; }
.ht-group-name { margin-bottom: 6px; }
.ht-group-about { margin: 0 0 14px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.ht-group-people { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.ht-privacy { display: flex; align-items: center; gap: 8px; margin: 12px 0 20px; font-size: 14px; color: var(--muted); }
.ht-privacy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ht-group-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.ht-group-btns .ht-btn-text { margin-left: auto; color: var(--muted); font-size: 15px; }
.ht-pick-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.ht-pick { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ht-pick:first-child { border-top: 0; }
.ht-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ht-pick img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ht-pick span { flex: 1; font-weight: 600; }
.ht-pick i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.ht-pick input:checked ~ i { background: var(--ink); box-shadow: inset 0 0 0 7px var(--ink), inset 0 0 0 12px var(--paper); }
.ht-pick input:focus-visible ~ i { outline: 2px solid var(--ink); outline-offset: 2px; }
.ht-cover-opt { display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--bg); text-align: left; color: var(--ink); box-shadow: inset 0 0 0 2px transparent; }
.ht-cover-opt.is-on, .ht-cover-grid .is-on { box-shadow: inset 0 0 0 3px var(--ink); }
.ht-cover-opt strong { display: block; }
.ht-cover-opt small { display: block; margin-top: 2px; color: var(--muted); }
.ht-cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.ht-cover-grid button { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--soft) center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) {
	.ht-cover-img { transition: none; transform: none; }
	.ht-dot { animation: none; }
}

.ht-picker-credit[hidden], .ht-picker input[hidden] { display: none; }
.ht-nav [data-badge]::after { position: static; display: inline-block; margin-left: 6px; vertical-align: 2px; }

/* =================================================================== */
/* 0.5: reactions, you menu, full-screen viewer, Hello, badges          */
/* =================================================================== */

/* Reactions */
.ht-tools-row { align-items: center; }
.ht-tools-row .ht-reacts { margin-right: auto; padding-left: 10px; }
.ht-reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ht-reacts .ht-react, .ht-comment-meta .ht-reacts .ht-react, .ht-msg-reacts .ht-react { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1; }
.ht-reacts .ht-react span, .ht-msg-reacts .ht-react span { font-size: 12px; color: var(--muted); }
.ht-reacts .ht-react.is-mine, .ht-msg-reacts .ht-react.is-mine { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.ht-react-add, .ht-comment-meta .ht-react-add { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.ht-react-add:hover { background: var(--soft); color: var(--ink); }
.ht-react-add svg { width: 19px; height: 19px; }
.ht-reacts.is-small .ht-react { height: 24px; padding: 0 8px; font-size: 13px; }
.ht-reacts.is-small .ht-react-add { width: 26px; height: 24px; }
.ht-reacts.is-small .ht-react-add svg { width: 16px; height: 16px; }
.ht-comment-meta { align-items: center; flex-wrap: wrap; }
.ht-react-pop { position: fixed; z-index: 80; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 1px var(--line); animation: htPop .16s ease-out; }
.ht-react-pop[hidden] { display: none; }
.ht-react-pop button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; transition: transform .12s ease; }
.ht-react-pop button:hover, .ht-react-pop button:focus-visible { transform: scale(1.25); background: var(--soft); }
@media (max-width: 420px) { .ht-react-pop button { width: 35px; height: 35px; font-size: 21px; } }
.ht-bubbles .ht-bubble.has-reacts { margin-bottom: 14px; }
.ht-msg-reacts { position: absolute; bottom: -16px; right: 10px; display: flex; gap: 3px; }
.ht-bubble.is-mine .ht-msg-reacts { right: auto; left: 10px; }
.ht-msg-reacts .ht-react { height: 24px; padding: 0 7px; font-size: 14px; box-shadow: 0 0 0 2px var(--bg); background: var(--paper); }
.ht-bubbles .ht-bubble:not(.is-mine):not(.is-deleted) { cursor: pointer; }

/* Skull: white, dark eyes */
.ht-skull-ico { width: 20px; height: 20px; }
.ht-skull-bone { fill: #fff; stroke: #1E1F23; stroke-width: 1.3; stroke-linejoin: round; }
.ht-skull-eye { fill: #1E1F23; }
.ht-skull-teeth { fill: none; stroke: #1E1F23; stroke-width: 1.3; stroke-linecap: round; }
.ht-skull { opacity: .7; }
.ht-skull svg { width: 19px; height: 19px; }
.ht-said:hover .ht-skull, .ht-skull:focus-visible { opacity: 1; }
.ht-skull.is-on { opacity: 1; }
.ht-skull.is-on .ht-skull-bone { stroke: var(--danger); stroke-width: 1.8; }

/* Atrium emoji */
#ht-atrium-picker { margin: 8px 0 0; }

/* You menu */
.ht-me-menu { position: fixed; z-index: 70; width: 250px; padding: 8px; border-radius: 22px; background: var(--paper); box-shadow: 0 14px 40px rgba(0,0,0,.18), 0 0 0 1px var(--line); animation: htPop .16s ease-out; }
.ht-me-menu[hidden] { display: none; }
.ht-me-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 14px; font-weight: 600; }
.ht-me-menu a:hover, .ht-me-menu a:focus-visible { background: var(--soft); }
.ht-me-menu a:first-child { margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.ht-me-menu img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ht-me-menu small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.ht-me-menu svg { width: 20px; height: 20px; margin: 0 10px 0 10px; color: var(--muted); }
.ht-me-menu [data-logout] { color: var(--danger); }
.ht-me-menu [data-logout] svg { color: inherit; }

/* Full-screen viewer with previews */
#ht-viewer { padding: 0; background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; color: #F2F1EE; }
#ht-viewer .ht-viewer { width: 100vw; height: 100vh; height: 100dvh; }
.ht-viewer-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; background: #000; }
.ht-viewer-stage video[hidden], .ht-viewer-stage img[hidden] { display: none; }
.ht-thumbs { display: flex; gap: 6px; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; justify-content: safe center; min-height: 0; }
.ht-thumbs::-webkit-scrollbar { display: none; }
.ht-thumbs:empty { padding: 0 0 16px; }
.ht-thumbs button { position: relative; flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #222; opacity: .45; transition: opacity .15s, transform .15s; }
.ht-thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px #fff; transform: scale(1.06); }
.ht-thumbs img, .ht-thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ht-thumbs .is-video::after, .ht-grid-cell.is-video .ht-play { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.ht-grid-cell { position: relative; display: block; cursor: zoom-in; }
.ht-grid-cell video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ht-grid-cell.is-video .ht-play { border-width: 12px 0 12px 19px; }

/* Hello */
.ht-rowlink span small { display: inline; margin-left: 8px; font-size: 13px; color: var(--muted); }
.ht-rowlink.is-new strong, .ht-rowlink.is-new > span { font-weight: 700; }
.ht-rowlink.is-new .ht-ico { color: var(--online); opacity: 1; }
.ht-rowlink.is-old { opacity: .75; }
.ht-earlier { display: block; width: 100%; height: 48px; margin: 6px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; text-align: left; }
.ht-end { font-style: italic; }

/* Partner badge */
.ht-badge-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .03em; white-space: nowrap; vertical-align: 2px; }
.ht-profile h1 + .ht-badge-pill, .ht-profile h1 + .ht-badge-link { margin: 4px 0 2px; }
.ht-badge-link { display: inline-block; }

/* Groups */
.ht-group-people { border: 0; background: transparent; padding: 0; color: var(--muted); cursor: pointer; text-align: left; }
.ht-btn.is-small { height: 36px; padding: 0 14px; font-size: 14px; }
.ht-member-list { margin-top: 0; max-height: 55vh; overflow-y: auto; }
.ht-member-list .ht-face { width: 42px; height: 42px; }

/* 0.5.1: skull in the same light tone as the other icons; Atrium reactions */
.ht-skull-bone { fill: currentColor; stroke: none; }
.ht-skull-eye { fill: var(--bg); }
.ht-skull-teeth { stroke: var(--bg); }
.ht-tool .ht-skull-ico { color: inherit; }
.ht-skull.is-on { color: var(--danger); }
.ht-skull.is-on .ht-skull-bone { stroke: none; }
.ht-room .ht-bubble.has-reacts { margin-bottom: 14px; }
.ht-room .ht-bubble:not(.is-mine) { cursor: pointer; }

/* 0.7: composer emoji/GIF, reaction pills sit on the bubble's edge in every browser */
#ht-compose-picker { margin: 0; max-height: 240px; }
#ht-compose-picker[data-kind="gif"] { max-height: none; }
.ht-thumb.is-gif img { object-fit: cover; }
.ht-msg-reacts { bottom: 0; transform: translateY(60%); }
.ht-msg-reacts .ht-react { line-height: 1; }

/* News */
.ht-news-sub { margin: 0 0 14px; font-size: 16px; }
.ht-news-filter { margin-bottom: 8px; }
@media (min-width: 760px) { .ht-news-filter { flex-wrap: wrap; overflow: visible; } }
.ht-news-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.ht-news-item:hover .ht-news-title { text-decoration: underline; text-underline-offset: 3px; }
.ht-news-src { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ht-news-title { font-size: 17px; font-weight: 600; line-height: 1.32; }
.ht-news-end { padding: 18px 0 0; border-top: 1px solid var(--line); }

/* Search */
.ht-search-bar { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 999px; background: var(--paper); margin-bottom: 26px; }
.ht-search-bar svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ht-search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; outline: none; color: var(--ink); }
.ht-search .ht-label { display: block; margin: 26px 0 10px; }
.ht-kw-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-kw-cloud .ht-chip small { margin-left: 6px; color: var(--muted); font-weight: 600; font-size: 12px; }
.ht-chip.is-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ht-chip.is-on { background: var(--ink); color: var(--on-ink, var(--bg)); font-size: 20px; height: 44px; padding: 0 20px; }
.ht-kw-title { margin-bottom: 8px; }
a.ht-chip:hover { background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-search .ht-rows { margin-top: 0; }

/* Games */
.ht-game-list { margin-top: 22px; }
.ht-game { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ht-game:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ht-game-main { flex: 1; min-width: 0; }
.ht-game-main strong { display: block; font-size: 18px; font-family: var(--head); }
.ht-game-main small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ht-game-state { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink, var(--bg)); display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; }
.ht-game-state.is-done { background: var(--soft); color: var(--muted); }
.ht-games-end { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* Logo */
.ht-logo { color: var(--ink); }
.ht-logo-svg { width: 40px; height: 40px; display: block; }
.ht-logo-glyph { fill: var(--bg); }
.ht-logo.is-phone { width: 34px; height: 34px; flex: none; }
.ht-logo.is-phone .ht-logo-svg { width: 32px; height: 32px; }
.ht-logo.is-big .ht-logo-svg { width: 64px; height: 64px; }
@media (max-width: 759px) {
	.ht-phonebar { gap: 6px; padding-left: 12px; padding-right: 12px; }
	.ht-phonebar nav { flex: 1; justify-content: space-between; min-width: 0; }
	.ht-phonebar .ht-icon-btn { width: 34px; }
}

/* =================================================================== */
/* Welcome screen (log in / register), from the Login mockups           */
/* =================================================================== */
.ht-door-page { background: var(--bg); }
.ht-door { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: background-color .4s ease, color .4s ease; }
.ht-ripples { position: absolute; inset: 0; pointer-events: none; }
.ht-ripples span { position: absolute; left: 88%; top: 82%; width: 1500px; height: 1500px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ink) 5%, transparent) 0%, color-mix(in srgb, var(--ink) 5%, transparent) 38%, transparent 70%); animation: htRipple 10.5s ease-out infinite; opacity: 0; }
.ht-ripples span:nth-child(2) { animation-delay: 3.5s; }
.ht-ripples span:nth-child(3) { animation-delay: 7s; }
@keyframes htRipple { 0% { transform: translate(-50%,-50%) scale(.15); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.25); opacity: 0; } }
.ht-door-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 26px 40px; }
.ht-door-head .ht-logo-svg { width: 44px; height: 44px; }
.ht-swatches { display: flex; align-items: center; }
.ht-swatch-dot { width: 38px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ht-swatch-dot span { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 .75px var(--ink); }
.ht-swatch-dot[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--ink); }
.ht-swatch-dot.is-stone span { background: #DEDAD1; } .ht-swatch-dot.is-charcoal span { background: #121316; } .ht-swatch-dot.is-paper span { background: #F7F6F2; } .ht-swatch-dot.is-clay span { background: #D3DDE7; }
.ht-door-main { position: relative; flex: 1; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.ht-door-hello { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; }
.ht-slogans { position: relative; height: 270px; }
.ht-slogan { position: absolute; inset: 0 0 auto 0; margin: 0; font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.ht-slogan.is-on { opacity: 1; transform: none; }
.ht-door-lede { margin: 10px 0 0; max-width: 420px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.ht-door-start { display: none; }
.ht-door-card { flex: 1 1 360px; max-width: 400px; box-sizing: border-box; padding: 30px 30px 28px; border-radius: 28px; background: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.ht-door-tabs { display: flex; gap: 22px; }
.ht-door-tabs button { height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; font-family: var(--head); font-size: 18px; font-weight: 700; opacity: .45; cursor: pointer; color: inherit; }
.ht-door-tabs button[aria-selected="true"] { border-bottom-color: var(--ink); opacity: 1; }
.ht-door-form { display: none; flex-direction: column; gap: 18px; }
.ht-door[data-desk-view="login"] [data-form="login"], .ht-door[data-desk-view="join"] [data-form="join"] { display: flex; }
.ht-door-intro, .ht-door-back { display: none; }
.ht-door-field { display: flex; flex-direction: column; gap: 6px; }
.ht-door-field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ht-door-field input { height: 50px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--soft); color: var(--ink); font-size: 16px; outline: none; }
.ht-door-field input:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.ht-door-forgot { align-self: flex-end; margin-top: -8px; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-door-agree { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.ht-door-agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.ht-door-agree a { text-decoration: underline; text-underline-offset: 2px; }
.ht-door-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ht-door-note { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; background: var(--soft); }
.ht-door-note.is-bad, .ht-door-note.is-good { display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; border-radius: 999px; font-weight: 600; }
.ht-door-note.is-bad { background: color-mix(in srgb, var(--danger) 16%, var(--paper)); color: color-mix(in srgb, var(--danger) 78%, var(--ink)); }
.ht-door-note.is-good { background: color-mix(in srgb, var(--online) 18%, var(--paper)); color: color-mix(in srgb, var(--online) 45%, var(--ink)); }
.ht-door-note.is-bad::before, .ht-door-note.is-good::before { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.ht-door-note.is-bad::before { content: "!"; background: var(--danger); }
.ht-door-note.is-good::before { content: "✓"; background: var(--online); }
.ht-door-hint { margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.ht-door-hint[hidden] { display: none; }
.ht-door .ht-btn { height: 52px; font-size: 16px; }
.ht-door-foot { position: relative; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; font-size: 14px; }
.ht-door-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.ht-door-cols div { display: flex; flex-direction: column; gap: 6px; }
.ht-door-cols a, .ht-door-copy { color: var(--muted); }
.ht-door-copy { align-self: flex-end; }

/* Phone: welcome first, then one form at a time */
@media (max-width: 759px) {
	.ht-door-head { padding: 22px 20px 0 24px; }
	.ht-door-head .ht-logo-svg { width: 40px; height: 40px; }
	.ht-swatch-dot { width: 32px; }
	.ht-swatch-dot span { width: 22px; height: 22px; }
	.ht-ripples span { left: 92%; top: 88%; width: 760px; height: 760px; }
	.ht-door-main { width: calc(100% - 52px); padding: 0 0 20px; gap: 0; align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
	.ht-door-hello { flex: 1; justify-content: center; }
	.ht-slogans { height: 210px; }
	.ht-slogan { font-size: 38px; line-height: 1.06; letter-spacing: -.03em; }
	.ht-door-lede { font-size: 17px; max-width: 300px; }
	.ht-door-start { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
	.ht-door-start .ht-btn { height: 54px; }
	.ht-door-card { display: none; max-width: none; flex: 1; padding: 0; background: transparent; border-radius: 0; justify-content: center; }
	.ht-door-tabs { display: none; }
	.ht-door[data-view="login"] .ht-door-hello, .ht-door[data-view="join"] .ht-door-hello { display: none; }
	.ht-door[data-view="login"] .ht-door-card, .ht-door[data-view="join"] .ht-door-card { display: flex; }
	.ht-door[data-view="login"] [data-form="join"], .ht-door[data-view="join"] [data-form="login"] { display: none; }
	.ht-door[data-view="login"] [data-form="login"], .ht-door[data-view="join"] [data-form="join"] { display: flex; }
	.ht-door-intro { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
	.ht-door-intro h2 { margin: 0; font-size: 32px; letter-spacing: -.025em; }
	.ht-door-intro p { margin: 0; font-size: 16px; color: var(--muted); }
	.ht-door-back { display: block; height: 44px; border: 0; background: transparent; font-size: 15px; color: var(--muted); margin-top: -10px; }
	.ht-door-field input { height: 52px; }
	.ht-door-foot { width: calc(100% - 48px); padding: 8px 0 22px; justify-content: center; font-size: 13px; }
	.ht-door-cols { gap: 4px 16px; justify-content: center; }
	.ht-door-cols div { flex-direction: row; gap: 4px 16px; flex-wrap: wrap; justify-content: center; }
	.ht-door-cols strong, .ht-door-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ht-ripples span { animation: none; opacity: .6; transform: translate(-50%,-50%) scale(.8); }
	.ht-slogan, .ht-door { transition: none; }
}

/* News pictures */
.ht-news-item { flex-direction: row; align-items: center; gap: 14px; }
.ht-news-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ht-news-img { flex: none; width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--soft); }
@media (min-width: 760px) { .ht-news-img { width: 120px; height: 84px; } }

/* The logo is the same everywhere: dark disc, white mark */
.ht-logo, .ht-door-head .ht-logo { color: #1E1F23; }
.ht-logo-glyph { fill: #fff; }
.ht-kw-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ht-kw-set .ht-chip.is-on { font-size: 16px; height: 40px; padding: 0 14px 0 18px; gap: 8px; }
.ht-kw-set .ht-chip.is-on span { opacity: .6; font-size: 18px; }
.ht-kw-add input { height: 40px; width: 180px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 15px; outline: none; }
.ht-kw-add input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.ht-match { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; color: var(--muted); }
.ht-match.is-all { background: var(--online); color: #fff; }
.ht-see-all { margin-top: 10px; }

/* 0.7.3: reactions without outlines, same place everywhere; no focus ring on menus opened by mouse */
.ht-reacts .ht-react.is-mine, .ht-msg-reacts .ht-react.is-mine { box-shadow: none; background: var(--soft); }
.ht-msg-reacts .ht-react { box-shadow: 0 0 0 2px var(--bg); background: var(--paper); }
.ht-msg-reacts .ht-react.is-mine { box-shadow: 0 0 0 2px var(--bg); background: var(--soft); }
.ht-msg-reacts, .ht-bubble.is-mine .ht-msg-reacts { left: auto; right: 10px; }
.ht-me-menu a:focus { outline: none; }
.ht-me-menu a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ht-react-pop button:focus { outline: none; }
.ht-react-pop button:focus-visible { outline: 2px solid var(--ink); }
/* Chat panels: their own height is set to fit the screen */
.ht-panel-inner:has(> .ht-msg), .ht-panel-inner:has(> .ht-atrium) { padding-bottom: 12px; }
@media (max-width: 759px) { .ht-panel-inner:has(> .ht-msg), .ht-panel-inner:has(> .ht-atrium) { padding-bottom: 8px; } }
/* Reply tools and photos */
.ht-reply { flex-wrap: wrap; height: auto; min-height: 46px; padding: 5px 5px 5px 8px; row-gap: 6px; border-radius: 24px; }
.ht-reply-att { flex: 1 1 100%; display: flex; gap: 6px; padding: 4px 4px 0; }
.ht-reply-att[hidden] { display: none; }
.ht-thumb.is-small { width: 64px; height: 64px; border-radius: 10px; }
.ht-thumb.is-small.is-loading img { opacity: .5; }
.ht-reply-tools { display: flex; align-items: center; }
.ht-rtool { width: 32px; height: 36px; border: 0; padding: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ht-rtool svg { width: 19px; height: 19px; }
.ht-rtool.ht-gif-btn { font-size: 11px; }
.ht-rtool:hover { color: var(--ink); }
.ht-reply input[type=text] { min-width: 120px; }
.ht-rpick { position: fixed; z-index: 75; margin: 0; max-height: 280px; box-shadow: 0 12px 34px rgba(0,0,0,.18), 0 0 0 1px var(--line); }
.ht-rpick[hidden] { display: none; }
.ht-comment-media { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 4px; }
.ht-comment-photo { width: 120px; height: 120px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.ht-comment-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.ht-village-row { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
button.ht-village-row[disabled] { cursor: default; opacity: .8; }
.ht-sheet-list { margin-top: 0; max-height: 60vh; overflow-y: auto; }
.ht-village-row + .ht-village-row { margin-top: 0; border-top: 0; }

/* Header: Share something; floating menu pill */
.ht-share-btn { height: 40px; padding: 0 18px; font-size: 14px; margin-right: 6px; white-space: nowrap; }
.ht-float { position: fixed; top: 14px; left: 50%; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px var(--line); transform: translate(-50%, -90px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.22,1.25,.36,1), opacity .2s ease; }
.ht-float.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.ht-float[hidden] { display: none; }
.ht-float .ht-logo, .ht-float .ht-logo-svg { width: 34px; height: 34px; }
.ht-float > a:not(.ht-logo):not(.ht-btn):not(.ht-float-icon):not(.ht-float-me) { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--muted); }
.ht-float > a.is-current, .ht-float > a:not(.ht-logo):not(.ht-btn):not(.ht-float-icon):not(.ht-float-me):hover { color: var(--ink); background: var(--soft); }
.ht-float .ht-share-btn { height: 36px; margin: 0 2px 0 6px; }
.ht-float-top { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.ht-float-top svg { width: 18px; height: 18px; }
@media (max-width: 759px) { .ht-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .ht-float { transition: none; } }
/* Reply tools: plain icons like the composer */
.ht-reply .ht-rtool { background: transparent; border-radius: 0; color: var(--muted); }
@media (max-width: 1399px) { .ht-share-long { display: none; } }
@media (max-width: 1099px) { .ht-nav { width: min(var(--col), 46vw); } .ht-nav a { font-size: 15px; } }

/* 0.7.6 */
/* Reactions: a bit bigger, sitting under the bubble's edge rather than over it */
.ht-msg-reacts { transform: translateY(78%); gap: 4px; }
.ht-msg-reacts .ht-react, .ht-msg-reacts .ht-react.is-mine { height: 28px; padding: 0 9px; font-size: 16px; }
.ht-msg-reacts .ht-react span { font-size: 12px; }
.ht-bubbles .ht-bubble.has-reacts, .ht-room .ht-bubble.has-reacts { margin-bottom: 26px; }
.ht-reacts.is-small .ht-react { height: 28px; padding: 0 9px; font-size: 15px; }
/* Air around the avatar in the top corner */
.ht-head { padding: 22px 40px 30px; }
.ht-tools { gap: 12px; }
.ht-phonebar { padding-bottom: 12px; }
/* Media grid: the play mark stays above the video */
.ht-grid-cell img, .ht-grid-cell video { position: relative; z-index: 1; }
.ht-grid-cell .ht-play { z-index: 2; }
/* Games: each with its colour and icon */
.ht-game-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #1E1F23; color: var(--g, #ff2ed6); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g, #ff2ed6) 45%, transparent); }
.ht-game-ico { width: 26px; height: 26px; display: block; }
.ht-game-main strong { color: var(--ink); }
/* A shared game result in the feed */
.ht-post-text:has(.ht-game-share) { -webkit-line-clamp: none; display: block; overflow: visible; }
.ht-game-share { --g-bg: #1E1F23; display: flex; align-items: center; gap: 14px; margin: 4px 0; padding: 14px 16px; border-radius: 18px; background: #1E1F23; color: #ECEAE5; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 40%, transparent); }
.ht-game-share-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--g); background: color-mix(in srgb, var(--g) 14%, transparent); }
.ht-game-share-ico .ht-game-ico { width: 26px; height: 26px; }
.ht-game-share-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-game-share-body strong { color: var(--g); font-family: var(--head); font-size: 16px; }
.ht-game-share-body small { color: #A9A7A1; font-size: 13px; }
.ht-game-share-play { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--g); color: #1E1F23; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; text-decoration: none !important; }
@media (max-width: 420px) { .ht-game-share { flex-wrap: wrap; } .ht-game-share-play { margin-left: 58px; } }
.ht-game-share, .ht-game-share * { overflow-wrap: normal; word-break: normal; }

/* Gentler slide between panels: a slow, soft ease-out, no bounce. */
.ht-track { transition: transform .62s cubic-bezier(.25,.85,.3,1); }
.ht-track.is-dragging { transition: none; }
@media (prefers-reduced-motion: reduce) { .ht-track { transition: transform .2s linear; } }

/* Hello rows: what you've opened fades */
.ht-rowlink { transition: opacity .25s ease; }
.ht-rowlink.is-seen { opacity: .42; }
.ht-rowlink.is-seen > span { font-weight: 400; }
.ht-rowlink.is-seen .ht-ico { color: var(--muted); }
.ht-row-sub { display: block; font-style: normal; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.ht-seen-all { display: block; margin: 4px 0 6px auto; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; }
.ht-seen-all:hover { background: var(--soft); color: var(--ink); }
.ht-single .ht-post { border-top: 0; }
/* 0.7.6 hello row tidy */
.ht-rowlink .ht-row-sub{display:block}
.ht-rowlink .ht-row-sub + small{margin-left:0;display:inline-block;margin-top:2px}
.ht-rowlink small:empty{display:none}
/* 0.7.6 video tiles: never a black box */
.ht-vstill { position: absolute; inset: 0; display: block; background: radial-gradient(120% 90% at 30% 20%, #4a4d55 0%, #2a2c31 55%, #1e1f23 100%); }
.ht-vstill-c { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-grid-cell.is-video .ht-play { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); filter: none; }
.ht-grid-cell.is-video .ht-play::before { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.ht-bubble strong .ht-badge-pill { height: 16px; padding: 0 6px; font-size: 9.5px; margin-left: 3px; vertical-align: 1px; }
/* 0.7.9: the green ring is a background behind the photo, so nothing can cover it */
.ht-me { border: 0; padding: 2.5px; background: var(--online); box-sizing: border-box; overflow: visible; isolation: isolate; }
.ht-me img { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--bg); }
/* Faces in a row never get squeezed into ovals */
.ht-faces img, .ht-face img, .ht-face { flex: none; aspect-ratio: 1; }
.ht-faces { flex: none; }
/* 0.8.0: historical figures (bots) always wear a pulsing pink ring */
:root { --bot: #FF2E8D; }
@keyframes htPulseBot { 0% { box-shadow: 0 0 0 2px var(--bot), 0 0 0 2px rgba(255,46,141,.8); } 70% { box-shadow: 0 0 0 2px var(--bot), 0 0 0 11px rgba(255,46,141,0); } 100% { box-shadow: 0 0 0 2px var(--bot), 0 0 0 11px rgba(255,46,141,0); } }
@keyframes htPulseBotBig { 0% { box-shadow: 0 0 0 0 rgba(255,46,141,.6); } 70% { box-shadow: 0 0 0 16px rgba(255,46,141,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,141,0); } }
img.ht-av.is-bot { border: 2px solid var(--bg); box-sizing: border-box; animation: htPulseBot 2s ease-out infinite; }
.ht-face.is-bot img { border: 2px solid var(--bg); box-sizing: border-box; border-radius: 50%; animation: htPulseBot 2s ease-out infinite; }
.ht-face.is-bot::after { display: none; }
.ht-big-av.is-bot { border: 3px solid var(--bot); box-sizing: border-box; overflow: hidden; animation: htPulseBotBig 2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { img.ht-av.is-bot, .ht-face.is-bot img { animation: none; box-shadow: 0 0 0 2px var(--bot); } .ht-big-av.is-bot { animation: none; } }

/* Search → Historical figures */
.ht-figures { margin-top: 28px; }
.ht-figures-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.ht-ring-sample { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 3px solid var(--bot); box-sizing: border-box; animation: htPulseBotBig 2s ease-out infinite; }
.ht-figures .ht-row { cursor: default; }
.ht-figures .ht-row-main { color: inherit; }
.ht-btn-sm { height: 36px; min-height: 36px; padding: 0 16px; font-size: 14px; flex: none; }

/* Hello → today's historical figure */
.ht-figure { margin: 26px 0 6px; padding: 18px 20px; border-radius: 22px; background: var(--paper); }
.ht-figure-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ht-figure-who { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.ht-figure-who strong { font-size: 17px; }
.ht-figure blockquote { margin: 12px 0 10px; padding: 0; font-size: 19px; line-height: 1.45; font-family: var(--head); font-weight: 600; letter-spacing: -.01em; }
.ht-figure-more { margin: 0; font-size: 14px; color: var(--muted); }
.ht-figure-more a { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   0.8.1 — The app: each panel scrolls on its own
   ========================================================================== */
body.ht-is-app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; overscroll-behavior: none; }
body.ht-is-app #ht-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.ht-is-app .ht-app { flex: 1; min-height: 0; position: relative; }
body.ht-is-app .ht-track { height: 100%; transition: none; }
body.ht-is-app .ht-panel { height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; scrollbar-gutter: stable; }
body.ht-is-app .ht-phonebar { position: relative; top: auto; flex: none; }
body.ht-is-app .ht-head { flex: none; max-height: 180px; transition: max-height .45s cubic-bezier(.16,1,.3,1), padding .45s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
body.ht-is-app.is-scrolled .ht-head { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.ht-head, .ht-phonebar { position: relative; }
@media (max-width: 759px) { .ht-phonebar { position: sticky; } body.ht-is-app .ht-phonebar { position: relative; } }

/* The marker that travels under the current section */
.ht-ind { position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; background: var(--ink); pointer-events: none; opacity: 0; will-change: transform, width; }
.ht-head .ht-ind { height: 3px; }
.ht-phonebar .ht-ind { height: 3px; }

/* Messages and the Atrium: exactly the height of their panel */
body.ht-is-app .ht-panel-inner:has(> .ht-msg), body.ht-is-app .ht-panel-inner:has(> .ht-atrium) { padding-bottom: 0; }

/* Panels loaded on first visit */
.ht-panel-load { display: flex; justify-content: center; padding: 90px 0; }
.ht-panel.is-loading .ht-panel-page { opacity: .45; transition: opacity .2s; }
.ht-panel-page .ht-col { padding-top: 26px; }
.ht-panel-page .ht-profile-top > a[aria-label="Back"], .ht-panel-page .ht-back { visibility: hidden; }
.ht-profile-tools { display: inline-flex; gap: 8px; }

/* Text size: only the reading area grows or shrinks, never the top bar or pop-ups */
html[data-size="0"], html[data-size="2"] { zoom: 1; }
html[data-size="0"] :is(.ht-panel-inner, .ht-col, .ht-settings) { zoom: .92; }
html[data-size="2"] :is(.ht-panel-inner, .ht-col, .ht-settings) { zoom: 1.12; }
.ht-float-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.ht-float-icon svg { width: 20px; height: 20px; }
.ht-float-icon:hover, .ht-float-icon.is-current { color: var(--ink); background: var(--soft); }
.ht-float-me { width: 32px; height: 32px; margin: 0 2px; border-radius: 50%; padding: 2px; background: var(--online); flex: none; }
.ht-float-me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1.5px var(--paper); }


/* ==========================================================================
   0.8.3 — Wider on computers; a calm top bar when you scroll
   ========================================================================== */
@media (min-width: 900px) { :root { --col: 640px; } }
@media (min-width: 1100px) { :root { --col: 720px; } }
.ht-nav { width: min(var(--col), calc(100vw - 400px)); }
.ht-nav a { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1099px) { .ht-nav a { font-size: 14px; } }
@media (min-width: 760px) and (max-width: 899px) { .ht-head { padding-left: 24px; padding-right: 24px; } .ht-nav { width: calc(100vw - 380px); } .ht-nav a { font-size: 12.5px; } }

/* App page: instead of a menu popping in, the top bar tightens and the logo fades */
body.ht-is-app .ht-head { max-height: none; opacity: 1; transition: padding .5s cubic-bezier(.16,1,.3,1), box-shadow .4s ease; }
body.ht-is-app.is-scrolled .ht-head { max-height: none; padding-top: 10px; padding-bottom: 12px; opacity: 1; overflow: visible; pointer-events: auto; box-shadow: 0 1px 0 var(--line); }
body.ht-is-app .ht-head .ht-logo { transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1); }
body.ht-is-app.is-scrolled .ht-head .ht-logo { opacity: 0; transform: scale(.8); pointer-events: none; }
body.ht-is-app .ht-head .ht-me { transition: width .5s cubic-bezier(.16,1,.3,1), height .5s cubic-bezier(.16,1,.3,1); }
body.ht-is-app.is-scrolled .ht-head .ht-me { width: 38px; height: 38px; }
body.ht-is-app .ht-float { display: none; }

/* Other pages: a calm pill, no logo, no bounce */
.ht-float { background: var(--paper); color: var(--ink); padding: 6px; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.10), 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; transform: translate(-50%, -14px); transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s ease; }
.ht-float.is-on { transform: translate(-50%, 0); }
.ht-float > * { flex: none; }
.ht-float > a.is-current:not(.ht-logo):not(.ht-btn):not(.ht-float-icon):not(.ht-float-me) { color: var(--ink); background: var(--soft); }
/* The strip can't be scrolled sideways by the browser, only slid */
body.ht-is-app .ht-app { overflow: clip; }
body.ht-is-app .ht-panel { overflow-x: clip; }
/* Tightened top bar keeps the logo (a little smaller) */
body.ht-is-app.is-scrolled .ht-head .ht-logo { opacity: 1; transform: scale(.85); pointer-events: auto; }
/* Avatar ring: green right against the photo, no gap */
.ht-me { padding: 2px; }
.ht-me img { box-shadow: none; }
.ht-float-me img { box-shadow: none; }

/* 0.8.5 — reading progress: a hairline at the bottom of the screen */
.ht-progress { position: fixed; left: 0; right: 0; bottom: 0; bottom: env(safe-area-inset-bottom, 0); height: 2px; z-index: 60; background: var(--ink); opacity: 0; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; transition: transform .12s linear, opacity .3s ease; }
.ht-progress.is-on { opacity: .35; }
.ht-caught-up { margin: 4px auto 18px; max-width: 420px; }
.ht-caught-up[hidden] { display: none; }
.ht-caught-up strong { display: block; font-family: var(--head); font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.ht-caught-up span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* Search: real section titles */
.ht-search .ht-page-title { margin-bottom: 4px; }
.ht-search > .ht-sub { margin: 0 0 22px; }
.ht-search .ht-label { margin: 34px 0 4px; font-family: var(--head); font-size: 21px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.ht-search .ht-sec-sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.ht-search .ht-figures { margin-top: 0; }

/* 0.8.5 — the pulses, drawn the cheap way: a disc behind the avatar that
   grows and fades (transform + opacity only, no repainting) */
@keyframes htRipple { 0% { transform: scale(1); opacity: .55; } 75% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes htRippleBig { 0% { transform: scale(1); opacity: .5; } 75% { transform: scale(1.28); opacity: 0; } 100% { transform: scale(1.28); opacity: 0; } }
.ht-me { animation: none; position: relative; isolation: isolate; }
.ht-me::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--online); animation: htRipple 2.4s ease-out infinite; will-change: transform, opacity; pointer-events: none; }
.ht-big-av.is-online, .ht-big-av.is-bot { animation: none; overflow: visible; position: relative; isolation: isolate; }
.ht-big-av.is-online img, .ht-big-av.is-bot img { border-radius: 50%; }
.ht-big-av.is-online::after, .ht-big-av.is-bot::after { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; background: var(--online); animation: htRippleBig 2.4s ease-out infinite; will-change: transform, opacity; pointer-events: none; }
.ht-big-av.is-bot::after { background: var(--bot); animation-duration: 2s; }
.ht-face.is-bot { isolation: isolate; }
.ht-face.is-bot img { animation: none; box-shadow: 0 0 0 2px var(--bot); }
.ht-face.is-bot::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 50%; background: var(--bot); animation: htRipple 2s ease-out infinite; will-change: transform, opacity; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ht-me::after, .ht-big-av::after, .ht-face.is-bot::before { animation: none; opacity: 0; } }
.ht-btn[hidden], .ht-icon-btn[hidden] { display: none; }
[role=dialog]:focus, .ht-dialog:focus, .ht-sheet:focus { outline: none; }

/* 0.8.6 — Pro accounts quiet for a week: a red ring, and a "?" that says why */
:root { --quiet: #D22B2B; }
[data-theme="charcoal"], [data-theme="auto"] { --quiet: #FF5A4E; }
img.ht-av.is-quiet { box-shadow: 0 0 0 2.5px var(--quiet); }
.ht-face.is-quiet img { box-shadow: 0 0 0 2.5px var(--quiet); border-radius: 50%; }
.ht-face.is-quiet::after { display: none; }
.ht-big-av.is-quiet { border: 4px solid var(--quiet); box-sizing: border-box; overflow: visible; }
.ht-big-av.is-quiet img { border-radius: 50%; }
.ht-big-av.is-quiet::after { display: none; }
.ht-me.is-quiet { background: var(--quiet); }
.ht-me.is-quiet::after { display: none; }
.ht-pro-status { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-pro-status.is-quiet { color: var(--quiet); }
.ht-why { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--quiet); color: #fff; font-family: var(--head); font-weight: 800; font-size: 13px; line-height: 22px; cursor: pointer; }
.ht-why-text { margin: 8px 0 0; max-width: 360px; padding: 10px 14px; border-radius: 14px; background: var(--paper); font-size: 14px; line-height: 1.45; color: var(--ink); }
.ht-why-text[hidden] { display: none; }

/* 0.8.6 — the background drifts: three soft blobs, drawn small once and
   only moved, turned and enlarged by the graphics card (no live blur) */
/* Warm: orange, honey and a touch of coral */
/* Kept faint, so every theme stays itself: dark stays dark */
:root { --glow-a: rgba(255, 138, 61, .11); --glow-b: rgba(255, 193, 92, .12); --glow-c: rgba(255, 99, 112, .06); }
[data-theme="charcoal"] { --glow-a: rgba(255, 128, 50, .055); --glow-b: rgba(255, 175, 80, .04); --glow-c: rgba(255, 90, 100, .035); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --glow-a: rgba(255, 128, 50, .055); --glow-b: rgba(255, 175, 80, .04); --glow-c: rgba(255, 90, 100, .035); } }
[data-theme="paper"] { --glow-a: rgba(255, 138, 61, .075); --glow-b: rgba(255, 193, 92, .085); --glow-c: rgba(255, 99, 112, .045); }
[data-skin] { --glow-a: rgba(255, 255, 255, .13); --glow-b: rgba(255, 255, 255, .09); --glow-c: rgba(255, 255, 255, .06); }
/* Bigger spots: same small drawing, enlarged more */
.ht-glow i { width: 280px; height: 200px; margin: -100px 0 0 -140px; }
.ht-glow i:nth-child(3) { width: 240px; height: 220px; margin: -110px 0 0 -120px; }
.ht-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.ht-glow i { position: absolute; left: 50%; top: 50%; width: 220px; height: 150px; margin: -75px 0 0 -110px; border-radius: 50%; will-change: transform; animation: htDrift1 34s ease-in-out infinite; }
.ht-glow i:nth-child(1) { background: radial-gradient(closest-side, var(--glow-a), transparent); }
.ht-glow i:nth-child(2) { background: radial-gradient(closest-side, var(--glow-b), transparent); animation-name: htDrift2; animation-duration: 46s; animation-delay: -15s; }
.ht-glow i:nth-child(3) { background: radial-gradient(closest-side, var(--glow-c), transparent); width: 180px; height: 170px; animation-name: htDrift3; animation-duration: 58s; animation-delay: -27s; }
@keyframes htDrift1 { 0% { transform: translate(-28vw, -22vh) rotate(0deg) scale(6.7); } 22% { transform: translate(18vw, -30vh) rotate(50deg) scale(8.1); } 48% { transform: translate(30vw, 12vh) rotate(100deg) scale(6.1); } 74% { transform: translate(-12vw, 28vh) rotate(145deg) scale(7.7); } 100% { transform: translate(-28vw, -22vh) rotate(180deg) scale(6.7); } }
@keyframes htDrift2 { 0% { transform: translate(26vw, 24vh) rotate(20deg) scale(7.2); } 30% { transform: translate(-22vw, 18vh) rotate(-40deg) scale(5.8); } 55% { transform: translate(-30vw, -20vh) rotate(-90deg) scale(8.4); } 80% { transform: translate(14vw, -26vh) rotate(-130deg) scale(6.4); } 100% { transform: translate(26vw, 24vh) rotate(-160deg) scale(7.2); } }
@keyframes htDrift3 { 0% { transform: translate(0, 30vh) rotate(0deg) scale(5.8); } 35% { transform: translate(-32vw, -6vh) rotate(70deg) scale(7.5); } 65% { transform: translate(22vw, -28vh) rotate(150deg) scale(6.7); } 100% { transform: translate(0, 30vh) rotate(180deg) scale(5.8); } }
html[data-motion="off"] .ht-glow i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ht-glow i { animation-play-state: paused; } }

/* Phones: smaller, fainter spots that drift around the edges, so the
   middle of the screen (where you read) keeps the theme colour */
@media (max-width: 759px) {
	.ht-glow { opacity: .8; }
	.ht-glow i { animation-name: htDriftM1; }
	.ht-glow i:nth-child(2) { animation-name: htDriftM2; }
	.ht-glow i:nth-child(3) { animation-name: htDriftM3; }
}
@keyframes htDriftM1 { 0% { transform: translate(-42vw, -36vh) rotate(0deg) scale(1.6); } 25% { transform: translate(38vw, -40vh) rotate(50deg) scale(2); } 50% { transform: translate(44vw, 6vh) rotate(100deg) scale(1.5); } 75% { transform: translate(-40vw, 30vh) rotate(145deg) scale(1.9); } 100% { transform: translate(-42vw, -36vh) rotate(180deg) scale(1.6); } }
@keyframes htDriftM2 { 0% { transform: translate(40vw, 38vh) rotate(20deg) scale(1.8); } 30% { transform: translate(-44vw, 26vh) rotate(-40deg) scale(1.5); } 60% { transform: translate(-38vw, -34vh) rotate(-95deg) scale(2); } 85% { transform: translate(42vw, -30vh) rotate(-140deg) scale(1.6); } 100% { transform: translate(40vw, 38vh) rotate(-160deg) scale(1.8); } }
@keyframes htDriftM3 { 0% { transform: translate(0, 44vh) rotate(0deg) scale(1.5); } 35% { transform: translate(-46vw, -4vh) rotate(70deg) scale(1.9); } 70% { transform: translate(44vw, -42vh) rotate(150deg) scale(1.6); } 100% { transform: translate(0, 44vh) rotate(180deg) scale(1.5); } }

/* GTranslate: our own Language setting drives it, so its switcher and
   Google's bar and pop-ups stay hidden */
.gtranslate_wrapper, #gt_float_wrapper, .gt_float_switcher, .gt_switcher_wrapper, .goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, font[style*="background-color"] { background: none !important; box-shadow: none !important; }
/* Welcome screen: language picker beside the colours */
.ht-door-head { gap: 12px; }
.ht-door-lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin-left: auto; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ht-door-lang svg { width: 17px; height: 17px; flex: none; }
.ht-door-lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0 2px; cursor: pointer; outline: none; }
.ht-door-lang:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.ht-door-lang + .ht-swatches { margin-left: 0; }
/* Any GTranslate switcher style (float, popup, dropdown, flags): hidden, ours is used */
[class^="gt_"], [class*=" gt_"], [id^="gt_"], .gt-current-lang, .gtranslate_wrapper { display: none !important; }
/* Language pill on the welcome screen: one surface, no inner box */
.ht-door-lang .ht-select-btn { height: 36px; background: transparent; padding: 0 4px 0 6px; font-size: 14px; }
.ht-door-lang .ht-menu:not(.is-sheet) { min-width: 200px; right: 0; left: auto; }
.ht-door-lang .ht-menu:not(.is-sheet) .ht-menu-list { max-height: 60vh; }
/* Following list (Village → People, own profile) */
.ht-follow-row { display: flex; align-items: center; gap: 10px; }
.ht-follow-row .ht-row { flex: 1; min-width: 0; }
.ht-follow-row .ht-btn { flex: none; }
.ht-following { margin-top: 28px; }
.ht-following h2 { font-size: 17px; margin: 0 0 4px; }
.ht-following > p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

/* ---------- Profile head: room to breathe, keywords that don't look like buttons ---------- */
.ht-profile .ht-bio, .ht-bio { margin-top: 24px; }
.ht-keywords { margin-top: 20px; gap: 8px; }
.ht-keywords .ht-chip { height: 30px; padding: 0 12px; background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); color: var(--muted); font-weight: 500; font-size: 13px; }
.ht-keywords a.ht-chip:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ht-profile-actions { margin-top: 28px; gap: 10px; }
/* A link button shows a short name (calendly.com), never a whole address. */
.ht-link-btn { gap: 8px; max-width: 100%; min-width: 0; }
.ht-link-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-link-btn svg { width: 16px; height: 16px; flex: none; }
/* Phone: the keyword row scrolls sideways, so it fades out on the right while there's more. */
@media (max-width: 759px) {
	.ht-keywords { margin-right: -16px; padding-right: 16px; }
	.ht-keywords.has-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
	.ht-keywords.has-before.has-more { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 64px), transparent); }
	.ht-keywords.has-before:not(.has-more) { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
}

/* Skins decide their own glow and red ring, whatever the theme underneath. */
html[data-skin] { --quiet: #C41F1F; }
/* Each skin glows in a lighter shade of its own colour. */
html[data-skin="rose"] { --glow-a: rgba(232,214,253,.75); --glow-b: rgba(226,202,253,.6); --glow-c: rgba(239,225,254,.55); }
html[data-skin="citron"] { --glow-a: rgba(234,241,148,.75); --glow-b: rgba(228,238,118,.6); --glow-c: rgba(239,245,177,.55); }
html[data-skin="vermilion"] { --glow-a: rgba(245,202,164,.75); --glow-b: rgba(242,187,139,.6); --glow-c: rgba(248,216,189,.55); }
html[data-skin="pine"] { color-scheme: dark; --quiet: #FF6B5E; --glow-a: rgba(48,86,75,.42); --glow-b: rgba(36,77,65,.36); --glow-c: rgba(57,94,84,.28); }
html[data-skin="tetsukon"] { color-scheme: dark; --quiet: #FF6B5E; --glow-a: rgba(55,56,100,.42); --glow-b: rgba(44,45,91,.36); --glow-c: rgba(65,66,107,.28); }
html[data-skin="plum"] { color-scheme: dark; --quiet: #FF6B5E; --glow-a: rgba(94,55,103,.42); --glow-b: rgba(85,44,94,.36); --glow-c: rgba(102,65,110,.28); }
html[data-skin="mulberry"] { color-scheme: dark; --quiet: #FF6B5E; --glow-a: rgba(123,65,98,.42); --glow-b: rgba(116,54,89,.36); --glow-c: rgba(130,74,106,.28); }
/* Nordic theme glows in paler versions of its own blue-grey. */
[data-theme="clay"] { --glow-a: rgba(235,240,244,.8); --glow-b: rgba(229,235,241,.65); --glow-c: rgba(198,212,228,.35); }

/* Welcome screen: a fifth dot opens every skin. */
.ht-door-colours { position: relative; }
.ht-swatch-dot.is-more span { background: conic-gradient(#D6B4FC, #D8E63C, #ED9E59, #0E3B2E, #17184B, #44174E, #662249, #D6B4FC); }
.ht-door-skins { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 250px; padding: 14px; border-radius: 20px; background: var(--paper); box-shadow: 0 12px 40px rgba(0,0,0,.18); display: flex; flex-wrap: wrap; gap: 6px; }
.ht-door-skins[hidden] { display: none; }
.ht-door-skins small { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.ht-door-skins button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.ht-door-skins button i { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.ht-door-skins button[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.ht-door-skins { width: min(300px, calc(100vw - 32px)); }
@media (max-width: 400px) {
	.ht-door-head { gap: 8px; padding-right: 14px; }
	.ht-swatch-dot { width: 27px; }
	.ht-swatch-dot span { width: 21px; height: 21px; }
	.ht-door-lang .ht-select-btn { font-size: 13px; }
}

/* ---------- Help page ---------- */
.ht-helppage { padding-bottom: 60px; }
.ht-help-form[hidden], .ht-help-done[hidden] { display: none; }
.ht-help-back { display: inline-block; margin: 0 0 18px; font-weight: 600; color: var(--muted); }
.ht-help-faq { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); color: var(--ink); }
.ht-help-faq span { display: flex; flex-direction: column; gap: 3px; }
.ht-help-faq small { color: var(--muted); font-size: 14px; }
.ht-help-faq svg { width: 22px; height: 22px; flex: none; }
.ht-help-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ht-help-form h2, .ht-help-done h2 { margin: 0; font-size: 22px; }
.ht-help-note { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.ht-help-error { margin: 0; color: var(--danger); font-weight: 600; font-size: 14px; }
.ht-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ht-help-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; margin-top: 36px; }
.ht-help-links div { display: flex; flex-direction: column; gap: 8px; }
.ht-help-links strong { font-size: 13px; color: var(--muted); }
.ht-help-links a { font-weight: 600; }
.ht-help-links a:hover { text-decoration: underline; }
/* Dropdown lists that scroll: a thin visible scrollbar and soft fades at the edges with more. */
.ht-menu-list { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 30%, transparent) transparent; }
.ht-menu-list::-webkit-scrollbar { width: 6px; }
.ht-menu-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 3px; }
.ht-menu-list.has-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0,0,0,.15)); mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0,0,0,.15)); }
.ht-menu-list.has-before.has-more { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 56px), transparent); }
.ht-menu-list.has-before:not(.has-more) { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px); mask-image: linear-gradient(to bottom, transparent, #000 36px); }
.ht-push-card .ht-switch-row[disabled] { opacity: 1; cursor: default; }
.ht-push-card .ht-switch-row[disabled] .ht-switch { opacity: .35; }
.ht-push-help { margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.45; }

/* ---------- Dropdowns: lifted off the page with a subtle shadow and a hairline edge.
   The list scrolls inside (.ht-menu-list) and fades where there's more, so the
   fade never eats the shadow. ---------- */
.ht-menu { box-shadow: 0 12px 32px rgba(0,0,0,.13), 0 3px 10px rgba(0,0,0,.07); }
.ht-menu.is-sheet { box-shadow: 0 -10px 34px rgba(0,0,0,.14); }
.ht-door-skins { box-shadow: 0 12px 32px rgba(0,0,0,.13), 0 3px 10px rgba(0,0,0,.07); }

/* ---------- The floating mini menu, everywhere on computers ---------- */
.ht-float { box-shadow: 0 10px 28px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.05), 0 0 0 1px var(--line); }
@media (min-width: 760px) {
	body.ht-is-app .ht-float { display: flex; }
	body.ht-is-app .ht-float[hidden] { display: none; }
	/* In the app the top bar keeps its place and fades away; the pill drops in over it. */
	body.ht-is-app .ht-head { transition: opacity .3s ease, transform .45s cubic-bezier(.16,1,.3,1); }
	body.ht-is-app.is-floating .ht-head { opacity: 0; transform: translateY(-12px); pointer-events: none; }
}

/* Visitors on About, FAQ, Help…: logo, Help, Log in */
.ht-visitor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(var(--col), calc(100% - 40px)); margin: 0 auto; padding: 22px 0 0; }
.ht-visitor-head .ht-logo-svg { width: 42px; height: 42px; }
.ht-visitor-head nav { display: flex; align-items: center; gap: 6px; }
.ht-visitor-link { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; color: var(--ink); }
.ht-visitor-link:hover { background: var(--soft); }
.ht-visitor-head .ht-btn { height: 40px; padding: 0 18px; }

/* ---------- News reader: a story inside Happentell ---------- */
.ht-reader-scrim { z-index: 60; display: flex; align-items: center; justify-content: center; padding: 3vh 16px; }
.ht-reader-scrim[hidden] { display: none; }
.ht-reader { width: min(760px, 100%); height: min(94vh, 980px); display: flex; flex-direction: column; border-radius: 28px; background: var(--paper); box-shadow: 0 24px 70px rgba(0,0,0,.25), 0 0 0 1px var(--line); overflow: hidden; animation: htPop .2s ease-out; }
.ht-reader-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 24px; }
.ht-reader-src { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ht-reader-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.ht-reader-img { display: block; width: 100%; max-height: 46vh; object-fit: cover; border-radius: 18px; background: var(--soft); margin-bottom: 20px; }
.ht-reader-img[hidden] { display: none; }
.ht-reader-title { margin: 0 0 16px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.18; }
.ht-reader-text p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }
.ht-reader-text .ht-reader-lede { font-weight: 600; }
.ht-reader-text .ht-reader-wait { color: var(--muted); font-size: 15px; }
.ht-reader-actions { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.ht-reader-go { flex: 1 1 220px; justify-content: center; }
.ht-reader-actions [aria-pressed="true"] { background: var(--ink); color: var(--on-ink, var(--bg)); }
html.ht-reading, html.ht-reading body { overflow: hidden; }
@media (max-width: 759px) {
	.ht-reader-scrim { padding: 0; align-items: stretch; }
	.ht-reader { height: 100%; width: 100%; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
	.ht-reader-body { padding: 0 20px 20px; }
	.ht-reader-actions { padding: 12px 20px 16px; }
	.ht-reader-text p { font-size: 17px; }
}
.ht-reader-actions { flex-wrap: nowrap; }
.ht-reader-go { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-reader-actions .is-quiet { flex: none; }
@media (max-width: 400px) { .ht-reader-actions .ht-btn { padding: 0 14px; } }

/* GIFs: a bigger window with bigger tiles, so they're worth watching. */
.ht-picker:has(.ht-picker-grid.is-gif) { max-height: min(56vh, 520px); padding: 12px 12px 8px; }
.ht-picker-grid.is-gif { columns: 3 180px; column-gap: 8px; }
.ht-picker-grid.is-gif .ht-gif-pick { margin-bottom: 8px; border-radius: 14px; }
@media (max-width: 759px) { .ht-picker-grid.is-gif { columns: 2; } }

/* ---------- Avatars are always circles ----------
   Real photos are rarely square. The base "img { max-width: 100% }" let a
   crowded row squeeze an avatar's width while its height stayed fixed: an
   oval. Every avatar keeps its size and is cropped square. */
.ht-faces img, .ht-av, .ht-me img, .ht-big-av img, img.ht-big-av, .ht-tile-you img, .ht-person img,
.ht-face, .ht-face img, .ht-person-top img, .ht-pick img, .ht-me-menu img, .ht-float-me, .ht-float-me img,
img.avatar, .ht-post-head img, .ht-comment img.ht-av {
	max-width: none; flex-shrink: 0; aspect-ratio: 1 / 1; object-fit: cover;
}
.ht-big-av img { width: 100%; height: 100%; display: block; }
.ht-me img { width: 100%; height: 100%; display: block; }

/* Bot rings sit right against the photo, like every other ring: no gap. */
img.ht-av.is-bot, .ht-face.is-bot img { border: 0; }

/* ---------- Phones: the page always fits ----------
   No zoom when tapping into a field (iPhone zooms on text under 16px), no
   double-tap zoom; pinching to zoom stays possible, on purpose. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(html, body, body *) { touch-action: manipulation; }
@media (pointer: coarse) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select, [contenteditable="true"] { font-size: max(16px, 1em) !important; }
}

/* Fields stay at a true 16px with the smaller text size too (so phones never zoom into them). */
@media (pointer: coarse) {
	html[data-size="0"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select) { font-size: calc(16px / .92) !important; }
}

/* "Log out?" */
.ht-confirm-scrim { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: htMomIn .2s ease both; }
.ht-confirm-scrim.is-closing { animation: htMomOut .2s ease both; }
.ht-confirm { width: min(340px, 100%); padding: 24px; border-radius: 26px; background: var(--paper); box-shadow: 0 18px 50px rgba(0,0,0,.18); text-align: center; animation: htPop .2s ease-out; }
.ht-confirm-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 22px; }
.ht-confirm-text { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }
.ht-confirm-actions { display: flex; gap: 8px; }
.ht-confirm-actions .ht-btn { flex: 1; justify-content: center; }

.ht-confirm-scrim.is-leaving .ht-confirm { opacity: .6; transition: opacity .2s; }



/* "Log out?": no focus ring for taps and clicks, only for the keyboard. */
.ht-confirm .ht-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }


/* ---------- "How Happentell works" (the walkthrough) ---------- */
.ht-tour-scrim { position: fixed; inset: 0; z-index: 2147482500; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: htMomIn .25s ease both; }
.ht-tour-scrim[hidden] { display: none; }
.ht-tour-scrim.is-closing { animation: htMomOut .22s ease both; }
.ht-tour { width: min(480px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.28); overflow: hidden; animation: htPop .25s ease-out; }
.ht-tour-body { flex: 1; min-height: 0; overflow-y: auto; padding: 36px 30px 10px; }
.ht-tour-logo { display: block; width: 64px; height: 64px; margin: 0 auto 24px; }
.ht-tour-logo svg { width: 100%; height: 100%; color: #111214; }
.ht-tour-logo .ht-logo-glyph { fill: #fff; }
.ht-tour-step[hidden] { display: none; }
.ht-tour-step { animation: htTourIn .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes htTourIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ht-tour-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ht-tour-title { margin: 0 0 14px; font-family: var(--head); font-size: 24px; line-height: 1.22; }
.ht-tour-text { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.ht-tour-hint { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.ht-tour-hint a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ht-tour-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ht-tour-chip { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.ht-tour-chip.is-on { background: var(--ink); color: var(--on-ink, var(--bg)); box-shadow: none; }
.ht-tour-app { display: grid; gap: 10px; margin-top: 12px; }
.ht-tour-app > div { padding: 14px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.ht-tour-app ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.ht-tour-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px 22px; }
.ht-tour-dots { display: flex; gap: 7px; }
.ht-tour-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; transition: width .25s ease, background .25s ease; }
.ht-tour-dot.is-on { width: 22px; border-radius: 4px; background: var(--ink); }
.ht-tour-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) {
	.ht-tour-scrim { padding: 0; align-items: stretch; }
	.ht-tour { width: 100%; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
	.ht-tour-body { padding: 40px 24px 10px; }
}
.ht-helppage .ht-help-faq + .ht-help-faq { margin-top: 10px; }


/* ---------- Moments: logging in and out ----------
   1. Discs come in over the current page and dissolve it into one colour
      (Charcoal when logging in, the member's own skin colour when logging out).
   2. On that colour: the small black logo, then the words.
   3. Everything blurs away to reveal the page underneath. */
.ht-moment { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; cursor: pointer; -webkit-user-select: none; user-select: none; display: flex; align-items: center; justify-content: center; }
@keyframes htMomIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes htMomOut { to { opacity: 0; } }
@keyframes htBlurIn { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }

/* 1. Cover */
.ht-moment.is-cover { background: transparent; }
.ht-discs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ht-discs i { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--w) / 2); width: var(--w); height: var(--w); border-radius: 50%; opacity: 0; will-change: transform, opacity;
	background: radial-gradient(closest-side, var(--mc) 52%, color-mix(in srgb, var(--mc) 55%, transparent) 72%, transparent 100%);
	animation: htDiscCome calc(var(--ti) * .78) cubic-bezier(.6,0,.3,1) calc(var(--di) * .6) both; }
@keyframes htDiscCome { from { transform: translate(var(--dx), var(--dy)) scale(.35); opacity: 0; } to { transform: none; opacity: var(--o); } }
.ht-veil { position: absolute; inset: 0; background: var(--mc); opacity: 0; animation: htMomIn 1.3s cubic-bezier(.45,0,.4,1) 3s both; }

/* 2. Reveal: the logo, then the words */
.ht-moment.is-reveal { background: var(--mc); }
.ht-moment-logo { position: relative; display: block; width: 58px; height: 58px; border-radius: 50%; opacity: 0; animation: htBlurIn 1.4s cubic-bezier(.22,1,.36,1) .3s both; }
.ht-moment-logo svg { width: 100%; height: 100%; display: block; color: #111214; }
.ht-moment-logo .ht-logo-glyph { fill: #fff; }
.ht-moment-line { position: absolute; left: 0; right: 0; top: calc(50% + 50px); margin: 0; padding: 0 24px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .02em; color: var(--mi); opacity: 0; animation: htBlurIn 1.8s cubic-bezier(.22,1,.36,1) 1.3s both; }

/* 3. Everything blurs away to the page underneath */
.ht-moment.is-reveal.is-leaving { animation: htBlurAway 1.45s cubic-bezier(.4,0,.2,1) both; }
@keyframes htBlurAway { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(28px); transform: scale(1.04); } }

/* While a moment plays, forms stay out of reach (no password pop-ups on top of it). */
html.ht-moment-on form { visibility: hidden; }

/* Reduced motion: no discs, quick and still. */
.ht-moment.is-calm .ht-moment-logo { animation: htMomIn 1.2s ease .3s both; filter: none; }
.ht-moment.is-calm .ht-moment-line { animation: htMomIn 1.4s ease 1.3s both; filter: none; }
.ht-moment.is-calm.is-reveal.is-leaving { animation: htMomOut 1.3s ease both; }

/* Readable placeholders on every theme and skin */
::placeholder { color: var(--muted); opacity: .85; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: .85; }

/* GIF mode: a big, steady window (about twice the old one) in the composer, replies and chat */
.ht-picker[data-kind="gif"] { height: min(64vh, 600px); max-height: none; padding: 12px 12px 8px; display: flex; flex-direction: column; overflow: hidden; }
.ht-picker[data-kind="gif"] .ht-picker-grid { flex: 1; min-height: 0; overflow-y: auto; }
.ht-picker[data-kind="gif"][hidden] { display: none; }
.ht-picker[data-kind="gif"] .ht-picker-grid.is-gif { columns: 3 160px; column-gap: 8px; }
@media (max-width: 759px) { .ht-picker[data-kind="gif"] .ht-picker-grid.is-gif { columns: 2; } }
#ht-composer .ht-sheet:has(.ht-picker[data-kind="gif"]:not([hidden])) { max-height: 96vh; }
.ht-picker[data-kind="gif"] { flex-shrink: 0; }
#ht-composer .ht-sheet:has(.ht-picker[data-kind="gif"]:not([hidden])) #ht-compose-text { height: 84px; min-height: 84px; }
/* Close buttons: a soft round cue instead of a hard outline when focused */
.ht-x:focus-visible { outline: 0; background: var(--soft); border-radius: 50%; }

/* One language everywhere: keywords are light outlined tags, buttons are solid borderless pills */
.ht-kw-cloud .ht-chip:not(.is-on) { height: 34px; padding: 0 13px; background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); color: var(--ink); font-weight: 500; }
.ht-kw-cloud a.ht-chip:not(.is-on):hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.ht-btn, .ht-btn.is-quiet, .ht-btn.is-light { border: 0; box-shadow: none; }
.ht-see-all { gap: 8px; }
.ht-see-all svg { width: 17px; height: 17px; flex: none; }

/* Phones: Village, Following and Followers sit side by side as small tiles */
@media (max-width: 759px) {
	.ht-village-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
	.ht-village-rows .ht-village-row, .ht-village-rows .ht-village-row + .ht-village-row { margin: 0; padding: 12px 12px 13px; border: 0; border-radius: 18px; background: var(--soft); flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 10px; min-width: 0; }
	.ht-village-rows .ht-village-row > span:first-child { min-width: 0; max-width: 100%; }
	.ht-village-rows .ht-village-row strong { font-size: 15px; }
	.ht-village-rows .ht-village-row small { display: block; font-size: 12px; line-height: 1.3; }
	.ht-village-rows .ht-faces.is-small img { width: 26px; height: 26px; margin-left: -9px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 6%, var(--bg)); }
	.ht-village-rows .ht-faces.is-small img:nth-child(n+5) { display: none; }
	.ht-village-rows .ht-faces:empty { display: none; }
}
@media (max-width: 759px) {
	.ht-village-rows > .ht-village-row:only-child { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px; }
}
#ht-picker[data-kind="gif"] { height: min(54vh, 540px); }
.ht-discs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* A video the device can't play */
video.is-failed { display: none !important; }
.ht-vfail { flex: none; width: 100%; aspect-ratio: 16 / 9; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 18px; background: var(--soft); color: var(--muted); text-align: center; scroll-snap-align: start; }
.ht-vfail svg { width: 30px; height: 30px; }
.ht-vfail p { margin: 0; font-size: 14px; color: var(--ink); }
.ht-vfail a { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: var(--on-ink, var(--bg)); font-size: 13px; font-weight: 600; }
.ht-viewer .ht-vfail { width: min(92vw, 640px); background: rgba(255,255,255,.08); color: #ddd; }
.ht-viewer .ht-vfail p { color: #fff; }
.ht-viewer .ht-vfail a { background: #fff; color: #111; }
.ht-vfail-why { display: block; max-width: 100%; margin-top: 4px; font-size: 11px; line-height: 1.35; opacity: .75; word-break: break-all; -webkit-user-select: text; user-select: text; }

/* Installed app on iPhone: the page runs under the status bar (time, battery)
 * and above the home bar. Keep everything clear of both. These insets are 0
 * in browsers, on Android and on computers, so nothing moves there. */
.ht-phonebar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.ht-float { top: calc(14px + env(safe-area-inset-top, 0px)); }
.ht-viewer-top { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
@media (max-width: 759px) {
	.ht-scrim:not(.is-dark) { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.ht-toast { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.ht-preview-bar { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.ht-menu.is-sheet { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
body.ht-is-app .ht-panel-inner:has(> .ht-msg), body.ht-is-app .ht-panel-inner:has(> .ht-atrium) { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Pull to refresh (phones, in the swipeable sections) */
.ht-pull { position: absolute; left: 50%; top: 10px; z-index: 6; width: 38px; height: 38px; margin: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.14), 0 0 0 1px var(--line); opacity: 0; transform: translate(-50%,-20px) scale(.7); pointer-events: none; }
.ht-pull svg { width: 20px; height: 20px; }
.ht-pull.is-ready { background: var(--ink); color: var(--bg); }
.ht-pull.is-busy svg { animation: htPullSpin .8s linear infinite; }
@keyframes htPullSpin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .ht-pull { display: none; } }

/* =================================================================
   Looks, 2026-11: five themes (light grey, stone, Nordic, dark grey,
   charcoal) and eight skins (four soft, four deep), each skin with a
   two-tone glow and its own accent colour for the main buttons.
   ================================================================= */
html:not([data-theme]), [data-theme="grey"] { --bg: #E4E5E8; --paper: #F7F7F8; --ink: #141518; --muted: #4A4D54; --soft: rgba(20, 21, 24, .07); --line: #D0D2D7; --scrim: rgba(30,31,35,.28); --danger: #B4382A; }
[data-theme="stone"] { --bg: #D8CFBD; --paper: #F4EFE5; --ink: #17130D; --muted: #4A4134; --soft: rgba(96, 64, 40, .13); --line: #BDB19B; }
[data-theme="graphite"] { --bg: #2B2D32; --paper: #3A3C42; --ink: #F3F3F1; --muted: #C0C1C4; --soft: rgba(255, 255, 255, .09); --line: #46484F; --scrim: rgba(0,0,0,.45); --danger: #FF8A7C; }
[data-theme="graphite"] { color-scheme: dark; --quiet: #FF5A4E; }

/* Theme glows: soft light on the light ones, a faint cool shimmer on dark grey. */
[data-theme="grey"] { --glow-a: rgba(255, 255, 255, .8); --glow-b: rgba(204, 212, 226, .55); --glow-c: rgba(255, 255, 255, .55); }
[data-theme="stone"] { --glow-a: rgba(255, 224, 168, .6); --glow-b: rgba(242, 192, 146, .45); --glow-c: rgba(255, 244, 222, .65); }
[data-theme="graphite"] { --glow-a: rgba(150, 168, 200, .11); --glow-b: rgba(210, 196, 170, .08); --glow-c: rgba(140, 160, 196, .08); }

/* Soft skins: dark text, a deep accent. */
[data-skin="cornflower"] { --bg: #AFC4F4; --paper: #D9E3FB; --ink: #0E1838; --muted: #2F3D66; --soft: rgba(14,24,56,.09); --line: rgba(14,24,56,.16); --on-ink: #fff; --accent: #2B44C9; --on-accent: #fff; }
[data-skin="coral"] { --bg: #FFAE9C; --paper: #FFD9CF; --ink: #2A0E09; --muted: #64302A; --soft: rgba(42,14,9,.09); --line: rgba(42,14,9,.16); --on-ink: #fff; --accent: #B3301A; --on-accent: #fff; --danger: #8E1C0C; }
[data-skin="sunflower"] { --bg: #FFD54F; --paper: #FFEBA3; --ink: #231900; --muted: #574100; --soft: rgba(35,25,0,.09); --line: rgba(35,25,0,.17); --on-ink: #fff; --accent: #A23F05; --on-accent: #fff; --danger: #9A2412; }
[data-skin="pistachio"] { --bg: #B7DFA6; --paper: #DCF0D2; --ink: #0E230F; --muted: #324F33; --soft: rgba(14,35,15,.09); --line: rgba(14,35,15,.16); --on-ink: #fff; --accent: #226B2A; --on-accent: #fff; --danger: #9E2A1C; }
/* Deep skins: light text, a bright accent. */
[data-skin="cobalt"] { --bg: #1B2D8F; --paper: #2B3EA1; --ink: #F3F5FF; --muted: #C6CDF3; --soft: rgba(243,245,255,.1); --line: rgba(243,245,255,.18); --on-ink: #13205F; --accent: #FFC857; --on-accent: #1D1503; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }
[data-skin="crimson"] { --bg: #6E0F1B; --paper: #84212D; --ink: #FFF3F2; --muted: #F2C4C6; --soft: rgba(255,243,242,.1); --line: rgba(255,243,242,.18); --on-ink: #4A0A12; --accent: #FFB48C; --on-accent: #2A0D05; --scrim: rgba(0,0,0,.45); --danger: #FFB3A8; }
[data-skin="amber"] { --bg: #6B3E00; --paper: #7E4E0A; --ink: #FFF8EA; --muted: #F6E3BC; --soft: rgba(255,248,234,.1); --line: rgba(255,248,234,.18); --on-ink: #4A2B00; --accent: #FFE08A; --on-accent: #2A1C00; --scrim: rgba(0,0,0,.45); --danger: #FFB3A8; }
[data-skin="emerald"] { --bg: #0A4D3A; --paper: #1A5F4B; --ink: #EEFBF5; --muted: #B6DECD; --soft: rgba(238,251,245,.1); --line: rgba(238,251,245,.18); --on-ink: #063526; --accent: #8EEFC0; --on-accent: #062A1F; --scrim: rgba(0,0,0,.45); --danger: #FFA396; }
html[data-skin="cobalt"], html[data-skin="crimson"], html[data-skin="amber"], html[data-skin="emerald"] { color-scheme: dark; --quiet: #FF6B5E; }

/* Two-tone glows: two neighbouring colours drifting over the page. */
html[data-skin="cornflower"] { --glow-a: rgba(217,204,255,.85); --glow-b: rgba(191,235,255,.8); --glow-c: rgba(232,238,255,.6); }
html[data-skin="coral"] { --glow-a: rgba(255,221,170,.85); --glow-b: rgba(255,187,216,.8); --glow-c: rgba(255,232,224,.6); }
html[data-skin="sunflower"] { --glow-a: rgba(255,241,184,.9); --glow-b: rgba(255,184,119,.75); --glow-c: rgba(255,248,214,.6); }
html[data-skin="pistachio"] { --glow-a: rgba(237,246,168,.85); --glow-b: rgba(171,229,214,.8); --glow-c: rgba(228,244,220,.6); }
html[data-skin="cobalt"] { --glow-a: rgba(74,45,184,.65); --glow-b: rgba(29,106,196,.6); --glow-c: rgba(60,80,190,.4); }
html[data-skin="crimson"] { --glow-a: rgba(160,30,85,.6); --glow-b: rgba(168,64,15,.55); --glow-c: rgba(140,30,45,.4); }
html[data-skin="amber"] { --glow-a: rgba(163,60,0,.6); --glow-b: rgba(138,110,0,.55); --glow-c: rgba(150,90,10,.4); }
html[data-skin="emerald"] { --glow-a: rgba(12,106,128,.6); --glow-b: rgba(74,122,30,.55); --glow-c: rgba(20,110,85,.4); }

/* The accent: the main buttons, send buttons, your own messages, switches
   and the marker under the menu. Themes keep it in the text colour. */
.ht-btn:not(.is-quiet):not(.is-light) { background: var(--accent, var(--ink)); color: var(--on-accent, var(--on-ink, var(--bg))); }
.ht-reply button[type=submit], .ht-send { background: var(--accent, var(--ink)); color: var(--on-accent, var(--on-ink, var(--bg))); }
.ht-bubbles .ht-bubble.is-mine, .ht-room .ht-bubble.is-mine { background: var(--accent, var(--ink)); color: var(--on-accent, var(--on-ink, var(--bg))); }
[aria-checked="true"] > .ht-switch { background: var(--accent, var(--ink)); }
.ht-ind, .ht-tour-dot.is-on { background: var(--accent, var(--ink)); }
.ht-pull.is-ready { background: var(--accent, var(--ink)); color: var(--on-accent, var(--on-ink, var(--bg))); }

/* Pickers: theme previews, skin swatches, welcome-screen dots. */
.ht-mini.is-grey { background: #E4E5E8; } .ht-mini.is-grey i { background: #F7F7F8; } .ht-mini.is-grey i:first-child { background: #141518; }
.ht-mini.is-stone { background: #D8CFBD; } .ht-mini.is-stone i { background: #F4EFE5; } .ht-mini.is-stone i:first-child { background: #17130D; }
.ht-mini.is-graphite { background: #2B2D32; } .ht-mini.is-graphite i { background: #3A3C42; } .ht-mini.is-graphite i:first-child { background: #F3F3F1; }
.ht-swatch.is-cornflower { background: #AFC4F4; } .ht-swatch.is-coral { background: #FFAE9C; } .ht-swatch.is-sunflower { background: #FFD54F; } .ht-swatch.is-pistachio { background: #B7DFA6; }
.ht-swatch.is-cobalt { background: #1B2D8F; } .ht-swatch.is-crimson { background: #6E0F1B; } .ht-swatch.is-amber { background: #6B3E00; } .ht-swatch.is-emerald { background: #0A4D3A; }
.ht-swatch-dot.is-grey span { background: #E4E5E8; } .ht-swatch-dot.is-stone span { background: #D8CFBD; } .ht-swatch-dot.is-graphite span { background: #2B2D32; }
.ht-swatch-dot.is-more span { background: conic-gradient(#AFC4F4, #FFAE9C, #FFD54F, #B7DFA6, #0A4D3A, #6B3E00, #6E0F1B, #1B2D8F, #AFC4F4); }

/* Login and logout moments: reach past the screen edges, under the phone's
   status and home bars (the installed app on iPhone), centred as before. */
.ht-moment { inset: -120px 0; }
/* The welcome screen's header clears the iPhone status bar in the installed app. */
.ht-door-head { padding-top: calc(26px + env(safe-area-inset-top, 0px)); }
@media (max-width: 759px) { .ht-door-head { padding-top: calc(22px + env(safe-area-inset-top, 0px)); } }

/* Settings → Account: two-step sign-in */
.ht-twostep .ht-row-head { align-items: center; }
.ht-twostep .ht-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 600; }
.ht-twostep .ht-pill.is-on { background: var(--accent, var(--ink)); color: var(--on-accent, var(--on-ink, var(--bg))); }
.ht-twostep [data-twostep-step] { display: flex; flex-direction: column; gap: 10px; }
.ht-twostep [data-twostep-step][hidden] { display: none; }
.ht-twostep-note { margin: 0; font-size: 14px; color: var(--muted); }
.ht-twostep [data-twostep-code] { letter-spacing: .3em; font-size: 20px; }
.ht-row-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ht-row-btns .ht-btn-text { color: var(--muted); font-size: 15px; height: 40px; }

/* =================================================================== */
/* Happened: big buttons, today's taps, yesterday's greyed out          */
/* =================================================================== */
@media (max-width: 389px) { .ht-phonebar .ht-icon-btn { width: 32px; } }
.ht-hap-boards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ht-hap-boards[hidden] { display: none; }
.ht-hap-boards .ht-chip { height: 44px; padding: 0 18px; font-size: 16px; }
.ht-hap-boards .ht-chip[aria-selected="true"] { background: var(--ink); color: var(--on-ink, var(--bg)); }
.ht-hap-boards .ht-hap-new { width: 44px; padding: 0; font-size: 22px; font-weight: 500; }
.ht-hap-start { margin-top: 26px; }
.ht-hap-start h2 { margin: 0; font-size: 24px; }
.ht-hap-start p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.ht-hap-start .ht-btn { align-self: flex-start; }
.ht-hap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ht-hap-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.ht-hap-act { position: relative; min-height: 104px; padding: 18px; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; text-align: left; font: inherit; cursor: pointer; transition: transform .12s ease, background .25s ease, color .25s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ht-hap-act strong { display: block; max-width: 100%; font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.08; overflow-wrap: normal; }
.ht-hap-act strong.is-long { overflow-wrap: anywhere; }
.ht-hap-sheet .ht-sheet:focus { outline: none; }
.ht-hap-act small { font-size: 14px; color: var(--muted); }
.ht-hap-act:active { transform: scale(.97); }
.ht-hap-act.is-done { background: var(--accent, var(--ink)); color: var(--on-accent, var(--bg)); }
.ht-hap-act.is-done small { color: inherit; opacity: .85; }
.ht-hap-act.is-done small::before { content: "✓ "; font-weight: 800; }
.ht-hap-people { width: 100%; display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ht-hap-faces { display: inline-flex; }
.ht-hap-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--soft); border: 2px solid var(--bg); margin-left: -9px; }
.ht-hap-faces > :first-child { margin-left: 0; }
.ht-hap-edit { margin-left: auto; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; }
.ht-hap-day { margin: 28px 0 4px; font-size: 22px; }
.ht-hap-day.is-past { color: var(--muted); }
.ht-hap-none { margin: 6px 0 0; font-size: 17px; color: var(--muted); }
.ht-hap-log { list-style: none; margin: 0; padding: 0; }
.ht-hap-log.is-past { opacity: .5; }
.ht-hap-log.is-past .ht-hap-av { filter: grayscale(1); }
.ht-hap-row.is-pending { opacity: .55; }
.ht-hap-entry { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; }
button.ht-hap-entry { cursor: pointer; }
.ht-hap-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--soft); display: block; }
.ht-hap-what { display: flex; flex-direction: column; min-width: 0; }
.ht-hap-what strong { font-family: var(--head); font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.ht-hap-what small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-hap-entry time { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ht-hap-more { display: block; margin: 20px auto 0; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; }
.ht-hap-toast { display: flex; align-items: center; gap: 16px; }
.ht-hap-toast button { border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.ht-hap-sheet .ht-sheet { gap: 12px; max-height: calc(100% - 12px); }
/* In the installed app the screen runs under the clock and notch: keep the sheet's title and × below them. */
@media (max-width: 759px) { .ht-hap-sheet { padding-top: max(env(safe-area-inset-top, 0px), 12px); } .ht-hap-sheet .ht-sheet { max-height: 100%; } }
.ht-hap-sheet .ht-sheet > * { flex-shrink: 0; }
.ht-hap-label { margin: 8px 0 -4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-hap-input { width: 100%; box-sizing: border-box; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 18px; -webkit-appearance: none; appearance: none; }
.ht-hap-btns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ht-hap-btns li { display: flex; gap: 8px; }
.ht-hap-x { flex: none; width: 52px; height: 52px; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 24px; line-height: 1; }
.ht-hap-add { align-self: flex-start; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; }
.ht-hap-folks { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.ht-hap-folks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 17px; }
.ht-hap-folks li[hidden] { display: none; }
.ht-hap-folks label { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ht-hap-folks .ht-hap-av { width: 40px; height: 40px; }
.ht-hap-folks input[type="checkbox"] { margin-left: auto; width: 24px; height: 24px; accent-color: var(--ink); }
.ht-hap-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ht-hap-danger { height: 46px; padding: 0 10px; border: 0; background: none; color: var(--danger); font: inherit; font-weight: 600; }
.ht-hap-err { margin: 0; color: var(--danger); font-size: 15px; }
.ht-hap-err[hidden] { display: none; }
.ht-hap-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ht-hap-who { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: var(--muted); }
.ht-hap-who .ht-hap-av { width: 36px; height: 36px; }
/* Happened: timed buttons (a walk: tap to start, tap again to stop) */
.ht-hap-act .ht-hap-clock { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; opacity: .5; }
.ht-hap-act.is-running { background: var(--ink); color: var(--bg); }
.ht-hap-act.is-running small { color: inherit; opacity: .9; }
.ht-hap-act.is-running small b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ht-hap-act.is-running .ht-hap-clock { opacity: 1; animation: htHapBreathe 2.4s ease-in-out infinite; }
.ht-hap-act .ht-hap-stop { font-size: 13px; opacity: .75 !important; }
.ht-hap-act.is-busy { opacity: .6; pointer-events: none; }
@keyframes htHapBreathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ht-hap-act.is-running .ht-hap-clock { animation: none; } }
.ht-hap-when { display: flex; flex-direction: column; align-items: flex-end; }
.ht-hap-when time { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht-hap-when small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ht-hap-when.is-live small { color: var(--ink); font-weight: 700; }
.ht-hap-when.is-live small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent, var(--ink)); vertical-align: 1px; animation: htHapBreathe 2.4s ease-in-out infinite; }
.ht-hap-timed svg { width: 22px; height: 22px; }
.ht-hap-timed[aria-pressed="false"] { color: var(--muted); }
.ht-hap-timed[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ht-hap-lens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ht-hap-lens span { flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--muted); }
.ht-hap-lens .ht-chip { padding: 0 12px; }
.ht-hap-lens .ht-chip { height: 40px; padding: 0 14px; font-size: 15px; }

/* Happened: Stats and Edit, board changes in the timeline, mini stats */
.ht-hap-people { display: flex; align-items: center; gap: 8px; }
.ht-hap-who-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
button.ht-hap-edit { margin-left: 0; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ht-hap-changed { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--muted); }
.ht-hap-changed b { color: var(--ink); font-weight: 600; }
.ht-hap-changed time { font-size: 14px; font-variant-numeric: tabular-nums; }
.ht-hap-changed .ht-hap-face { margin-left: 0; border: 0; }
.ht-hap-folks small { color: var(--muted); font-size: 13px; }
.ht-hap-folks input:disabled { opacity: .5; }
.ht-hap-stats { display: flex; flex-direction: column; }
.ht-hap-stat { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ht-hap-stat:last-child { border-bottom: 0; }
.ht-hap-stat header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ht-hap-stat header strong { font-family: var(--head); font-size: 21px; }
.ht-hap-stat header span { color: var(--muted); font-size: 15px; }
.ht-hap-stat header b { color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.ht-hap-stat p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ht-hap-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 96px; margin-top: 10px; }
.ht-hap-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ht-hap-bar i { display: block; width: 100%; border-radius: 6px; background: var(--soft); }
.ht-hap-bar.is-today i { background: var(--ink); }
.ht-hap-bar b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 15px; }
.ht-hap-bar em { font-style: normal; font-size: 12px; color: var(--muted); }
.ht-hap-bar.is-today em { color: var(--ink); font-weight: 700; }
.ht-hap-counts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.ht-hap-count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ht-hap-count .ht-hap-face { margin-left: 0; border: 0; width: 24px; height: 24px; }

/* The online pulse, calmer (it read as blinking on phones): it fades in instead of
   starting at full strength, grows slowly, and doesn't ask for its own layer (iOS
   redrew that layer every cycle, which flickered in the sticky top bar). */
@keyframes htRipple { 0% { transform: scale(1); opacity: 0; } 15% { transform: scale(1.06); opacity: .42; } 80% { transform: scale(1.42); opacity: 0; } 100% { transform: scale(1.42); opacity: 0; } }
@keyframes htRippleBig { 0% { transform: scale(1); opacity: 0; } 15% { transform: scale(1.04); opacity: .4; } 80% { transform: scale(1.26); opacity: 0; } 100% { transform: scale(1.26); opacity: 0; } }
.ht-me::after, .ht-big-av.is-online::after, .ht-big-av.is-bot::after, .ht-face.is-bot::before { will-change: auto; animation-timing-function: ease-in-out; animation-duration: 3s; }
.ht-big-av.is-bot::after, .ht-face.is-bot::before { animation-duration: 2.6s; }
/* Replies: avatar and name lead to the profile. */
.ht-comment-who { display: block; flex: none; border-radius: 50%; }
.ht-comment-name { color: inherit; text-decoration: none; }
.ht-comment-name:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Photo series: slid by the same finger logic as the panels (app.js), so the panels
   take over after the last photo. The browser's own sideways scrolling would keep the
   touch to itself. */
body.ht-is-app .ht-strip { touch-action: pan-y pinch-zoom; }
